(function(e){function t(t){for(var s,n,i=t[0],l=t[1],c=t[2],d=0,g=[];d0&&(this.innerValue=r)},onDragEnter:function(e){e.preventDefault(),this.isDragging=!0,this.dragCount++},onDragLeave:function(e){e.preventDefault(),this.dragCount--,this.dragCount<=0&&(this.isDragging=!1)},onChange:function(t){var a=t.target.files,s=new RegExp(/^[0-9]+$/),r=[],o=0;for(var l in this.displayFileNameCount=0,this.allFileNameCount=0,a)if(s.test(l))if("account-image-file"===this.inputType&&i(a[l].name,n)){var c=e.byteLength(a[l].name,"utf8");o+c<=this.maxSumFileNameSize&&(o+=c,this.displayFileNameCount+=1),r.push(a[l])}else("file"===this.inputType&&"*.*"!==this.accept&&i(a[l].name,this.accept.split(","))||"file"===this.inputType&&"*.*"===this.accept)&&(this.files.push(a[l]),r.push(a[l]));this.allFileNameCount=r.length,r.length>0&&(this.innerValue=r)}}})}).call(this,a("b639").Buffer)},"21ba":function(e,t,a){},"21cf":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhsAAADGCAYAAAB7GEJlAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAHYYAAB2GAV2iE4EAAA+USURBVHhe7d0LlNZlncDxn3JRLJW46RKISa4YaOUNhMRbYrqlKYKiQoiAVhpqJcKa9xBENIVEbhOC92pPtlmKma2mrrJdNM3yUpQgnmW9YgHi4M7/PU9bmizzDvPMvDPv5+Ph+P4eOKcOzgxf5v0/z7PF23UCACCTLdO/AQCyEBsAQFZiAwDISmwAAFmJDQAgK7EBAGQlNgCArMQGAJCV2AAAshIbAEBWYgMAyEpsAABZiQ0AICuxAQBkJTYAgKzEBgCQldgAALISGwBAVmIDAMhKbAAAWYkNACArsQEAZCU2AICsxAYAkJXYAACyEhsAQFZiAwDISmwAAFmJDQAgK7EBAGQlNgCArMQGAJCV2AAAshIbAEBWYgMAyEpsAABZiQ0AICuxAQBkJTYAgKzEBgCQldgAALISGwBAVmIDAMhKbAAAWYkNACArsQEAZCU2AICstni7TnpdUdavXx9P/PqJNAFA69Opc6fo1atXmlqvio2NVf+9Kvbfb780AUDr89ljjokrr74qTa2Xt1EAgKzEBgCQldgAALISGwBAVmIDAMjKbhSoABdecnG0bdMmTUBr87V/PT+9eqdq2Y0iNqACPPm738ZWW22VJqC1+fDOH0qv3snWVwCARiA2AICsxAYAkJXYAACyEhsAQFZiAwDISmwAAFmJDQAgK7EBAGQlNgCArMQGAJBVVd+N0rlLl9h3333TVH02vL0hltx1d5rqp98ee0SPHj3SVPm22GKLaNO2TaxdszZeeeWVuh8vx6uvvBqvvvpqbNiwIf2q5pf7bpQ33ngjfvqT+9LUOnXboVvs179/mt7pniVLYt3adWkqT/Hxc9iQIdG2bdu0UnmKj+ef3f9Amsq32+59Ytddd03T3/z5z3+O++79SZpapy5du8aA/QekKZ9qvxulqmPjEwccEAsXL0pT9Vm3bl303a1Pmurn8mnTYtjxw9PUchWh8czTT8fSR5fG0qWPxsMPPhQvv/xy+tmmlzs2fv/cczHk0E+mqXUafNCBUbNwYZre6aEHH4zxp46NtWvXppXyHDbksLhm1qxo3759Wqkcr7/2eow88cR48skn00p5+g/oH/NqamKbbbZJK3/zxz/+MQ498KA0tU4DBw2KRTfdmKZ8XMQGVWjLLbeM3fr0iZNHjYxrZs6M+x96MCZOnhQdOnRIv4LWpPgDpeaGhe/5B2p93LPknvjCaaeXAr2SrF69OkaPGtXg0Ch+XxbUBVpDf1+gvsQG1Nl6661j3Pjx8e8/+mF0/+AH0yqtSfEWy7cWL4r3v//9aaU8P73vvjht7LgGf3eksRVvcZw6+pR4/LHH0kp5Bh84OOYtWFD62IfcxAb8nZ133jkW33xTdOvWLa3Qmuy9995xw42LY9vttk0r5fnZAw/E2FPGxJo1a9JK8yj+98eNOTV+8fOfp5XyHHzIITF77tzYaut8b93B3xMb8C69evWKOfPnlR4upfX56Mc+VheUN8f222+fVsrznw8/HGM+N7r0nYXmUDzoWjx/8ugjj6SV8hTPn1w35/qszwjBu4kNeA977LlnHHvc0DTR2vTr1y9uuvWW6NSpU1opz9JHH43RI0eWnploSsUzI6ePHx8PP/RQWinPp444ImZed120a9curUDTEBuwEWd/+cvpFa1Rn913j5tuuzW6dO2SVsrzy1/8MkaddHK89tpraSWv9evXxxmf/0I8cP/9aaU8nz7qM3HNrJkVvYWX1ktswEbsuOOO8ZG+H0kTrVFxtsTNt97a4Gd0fv3446Vtp8UZLjm99dZb8aUzzoj7ftKwMy+K7ZUzrr462rRpk1agaVX1ORvFroPDP3V4mvLZd7/+MeTwIWnatNra2pg6ZUqa8qmt3RCLNnIuwcaUe87GCy+8ENMuvzxNZdrcj8wtIj7Q8QPx4bo/UI74lyOjc+fO6Sfqb+qUy2P+3LlpyqcSz9kYf/rpLSq2dthhh7rPtYZ9zVi2bFmMHHFirFy5Mq2U55932y0W33Rj6aDAxlZ8PTj7SxPih3femVbKM3TYcaXP22K7d7kacs7G2HHjot+ee6Sp8nXt2jX6D3CoV25VHRtNZdTo0XHBRRemadMacthWUyk3Nn771FPx6SOOTFPz2W677WL23Dllf1G5oS7GLr3o4jTlU4mxMa9mQWnXQrVY/vzyOGnECbFi+Yq0Up7eH+4dN958S3Tt1jWtbL7i8LmvnH1OfP+OO9JKeU4YMSIunfL1Bj/s3JDYKD7PihNXeSeHekEVeP3112PSuRPjzTffTCv1066tB+mqRY+ePeKW22+PnXbaKa2U57lnn4sRxx8fL774YlrZPMXfA88799wGh8bJI0duVmhAYxIbVI0//elP8czTz6QJ/lH37t3jlm/fHh/aZZe0Up5lf/hDnDj8+HhhRcO+O/JXRWicP2ly/Nt3vptWyjN6zClx0aWXCA0qhtigqqxfX953Nqg+xbMfxUOj73UxWX0UUXtCXXA8//zzaaV8F19wYdxW9/+hIcaOHx/nX3BBmqAyiA2Adymeu7jx1ltK9+c0RPGdjRHDhpe+01Guyy65JG5cvDhN5fnCGV+M8yZPShNUDrEB8B6K3UvFwV99+/ZNK+Upnt0YMfz40rMc9TXt8qmxsOZbaSrPmRMmxDlf+UqaoLKIDapKZe69olJ17NixdLT5nh/9aFopz6pVq0oPjT79u9+llY276soZMW/OnDSVpziAbsLZZ6UJKo/YoKp4Xo5ybbf9dqXL2/baa6+0Up6XX3opTjphRPzmyd+klX8069pr47pZs9JUnomTzosvnnlGmqAyiQ2qyjbve196VT/r31qfXlHNtt1229L19A09NKw4YfTkESNKJ46+25zZs+MbV12dpvL869e+FuNOOy1NULnEBlWjeO+9d+/eaaqfF1c2zpkJtHzvqwvVmhsWxv4DB6aV8hRnvYw86eTSnSp/VTN/QUyfdkWaynPhJRfHKaeOSRNUNrFBq1eczHngwQfFN2ZeW/bdEA299IrWqUOHDjG/piYOGDw4rZTnjdWrS7fF/tfSpbF40aKYctll6WfKc9mUr8fIUaPSBJXPceVNoJqPK1+3dl08++yzaWpabdu2iQ7bbBM7dNshttq6/KPAi+2Lgwd9Ik15Oa68ZSk+R4sbWBt6MVr7rdrHm+vKP/OlOKRrytSpZX0Obg7HlTced6OIjeyqOTZastPGjot7f/zjNOVVibFR3HpbxFpzK976un5e/svwylVc+V7cxHrP3UvSSl7FRWrTrpwexxx7bFrJryGxURyKVu6zUTns1GunWPCthm0jzkFsiI3sxEbL882Zs+LqGTPSlF8lxkalKA7WuvOuH6WpshRXv58z4awG38haX0VoFFfEf+boo9JK02hIbFSKXXrvEkvuvTdNzc9FbMD/WbF8eXzx9M83aWjQcrVt2zauvvaaOOroo9NK4yueM7pm1swmDw1oTGID6hTfSZv41a/GIXV/i7v7rrvSKmxaEQPF30yHDjsurTSedu3axczrrosjjjwyrUDLJDagTnEXRnEK47Dhw8vesQLF2xxTr7giThgxIq1svvbt28c3r58dQw73sCUtn9iApHgg8rLLp8R37/hedO7SJa1C/RQ7RS5tpC2pxW6V2XPnxiGHHppWoGUTG/Au/fr1i9u/+53o2bNnWoH6KYKjOGxrzNhT00r5igeF5y1YEAcedGBagZbPbpQmUM27UVavXh0PP/RwmppWcQ9K8YV7l116R4+ePdJq/RU7OI48/FOlHQe52Y2ycZW8G+X/M73uc2XO7OvTVD/FoWHzampiwP4D0krzshul8dj6Kjayq+bY+O1TT8Wnj2j+h9t23XXXmDhpUhx0yMFppX4uuejiWLRwYZryERsb11JjozD0s8fEY7/6VZo27ZihQ2P6jCvT1PzERuMRG2IjO7FRGU/SFw9+3vrtb8fH9/p4Wtm05c8vj4MOOCBN+VRibEy/akYMHDQoTc2n2F7auXPnNLUsJx5/Qjz6yCNp2rTWEBvTpk+PTwzO/zmzKZX2ceOcDagStbW1seTuu9NUP8XbL//UvXuaqkvHjh1Lp0E294+WGhrVqriS/73+Ozb1Dx83lUVsUFWefOKJ9Kr+OnfqlF4B0BBig6pSW9uAhz2LJ00BaDCxAQBkJTYAgKzEBgCQldgAALISG1SV4jhpAJqW2KCq9Oy5U3oFQFMRG1SVAQP3T68AaCpig6qxX//+8ZmjjkpT/b29YUN6BUBDuBulCVTz3SjLli2Ls878UpqaXvv27aP7B7vHHnvsGSM/N6o0l+uA/QfGypUr05RHJd6Nct7kybHX3nunqWXY/SO7l25OrRTVeDfKuedNjH32bVlfu5vi48ZFbGIju2qOjZbu8ccei2OP/mya8nHra+MoboctbomtFNUYGy3RHT/4QfTt1zdNebiIDdioO+u+CAGwecQGbERxS+wPf3BnmgBoKLEBG3HF1KnZn9UAqAZiA97D9793RyyYNz9NAGwOsQHvcvttt8WkiRPTBMDmEhuQFDs2xoweHZMnnlfaEQRA4xAbVLU1a9aUdpycMupzcfgnD4v7f/of6WcAaCzO2WgCAwcNiqOOPjpNm/ZW7Vtx/qTJaaosxw0fFvvss2+aKl/x4V38s6G2NmprN5R+b1eueCGeefaZeO6ZZ2PFihWlX9Pccp+z8T+rVsWM6ZVzfkMuE845O3bcccc0Nb95c+fGH577fZo2be999omhw45LU/N76aWX4sppV6Sp9TrzrAnRvXv3NOXhUC+xAc0ud2wAzcuhXgAAGYkNACArsQEAZCU2AICsxAYAkJXYAACyEhsAQFZiAwDISmwAAFmJDQAgK7EBAGTlbhSoAD+6Z0m0a9s2TUBr88mDD0mv3slFbM1MbADQ2rmIDQCgEYgNACArsQEAZCU2AICsxAYAkFXF7kb5y1/+EjXz56cJAFqf3fr0icOGDElT61WxsQEAtA7eRgEAshIbAEBWYgMAyEpsAABZiQ0AICuxAQBkJTYAgKzEBgCQldgAALISGwBAVmIDAMhKbAAAWYkNACArsQEAZCU2AICsxAYAkJXYAACyEhsAQFZiAwDISmwAAFmJDQAgK7EBAGQlNgCArMQGAJCV2AAAshIbAEBWYgMAyEpsAABZiQ0AICuxAQBkJTYAgKzEBgCQldgAALISGwBAVmIDAMhKbAAAWYkNACArsQEAZCU2AICsxAYAkJXYAACyEhsAQFZiAwDISmwAAFmJDQAgK7EBAGQlNgCArMQGAJCV2AAAshIbAEBWYgMAyEpsAABZiQ0AICuxAQBkJTYAgKzEBgCQUcT/Av1h8fWMeiUgAAAAAElFTkSuQmCC"},"24f1":function(e,t,a){},2800:function(e,t,a){},"2b52":function(e,t,a){},"2b7c":function(e,t,a){},"2c38":function(e,t,a){"use strict";a("0be8")},"2cf5":function(e,t,a){"use strict";a("5a94")},"2e86":function(e,t,a){"use strict";a("a1fb")},3:function(e,t){},"300e":function(e,t,a){e.exports=a.p+"img/jobcan_logo.7b4f6235.jpg"},3032:function(e,t,a){"use strict";a("24f1")},"309e":function(e,t,a){},"33c7":function(e,t,a){},"36a8":function(e,t,a){},3801:function(e,t,a){"use strict";a("62e40")},3900:function(e,t,a){},"3abe":function(e,t,a){},"3d46":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAACnCAMAAAAPIrEmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAtlQTFRFAAAAG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HG35HZ7lL3gAAAPN0Uk5TAA6OAhVrBJb/cwjE92N7/PlBivMnOUAvPBQ3ATIpB9P9cVaEMduUPlHYuGH+zRALvwOQwMv6Be2wXvEYK0PaSkkT3+okDcLUD5GnyWm8+FKx0Nws9QrnPyA67plYTq1gT7RwGhKIoXQJb4A0j6hGdaCed+8bLpxupFDZf5oWDLvyPS1UHuHsM0zjt52M5gb2jeU1ufsjx1ko66Kytt7B5Es7F4WsXYbgKs+qV1tffBxolejVq6WYfkUlysPw9HYhpr15ER+vHVomfdK+U9d6ODajm2JE1rNli7WCg03pIjBkxZ8ZyNFCl3jdaq5yiUdsqYGHQowLkAAACoJJREFUeJztnQ1cTWkex//P3nJTy2JEtDWVmjGoOwZZbkm2GjNCijHJe2O8ZC2lVdZrNGFz03IpHyJspKnYzfu7NEZL9MKQWxmJkGkxpVf2nHvvebm3Dz7u9Xme+XTO7/NxzvP876nn93XOfc7/Oec5JwSCFSJtgJxEdCFKRBeiRHQhSkQXokR0IUpEF6JEdCFKRBeiRHQhSkQXokR0IUpEF6JEdCGKBDpCqBnABDUSaJtvA3+TbSj0F2BOLZ/jb5wnAujtUb0Zqu5UCxaoCn/rnAigW1JtoirLlwAvBYberZkrmzy0Qg0gLcdughZ+dFv0kC1boTKHJ/XWJdhN0CJwwDsibi+bmNbY3f3wFn4TQObk1rOyji3bP661+/UuAROEUpreSMWWnagznTlUVuJ3QQS9L9I0i1AhODZ0uGeT/3sCfT3RRFYy4Bq1bG4chC41v3Xj9y4y6HJmr+dSS5N+54aeJWCCCLon+oFflaOTJFyQQPdG53UDHugoARsE0PtandEPDTuM3wb58bqLzSlq6XW1AnvL+NHNnXSqj/qfoJY+6CB2I9jRO7vd0anb31anN1+idNxOcKN7VxcxRTMvgJNsSmvzaRpmK5jRbbv/yuSwo+iUDqEM5qOAony8XjCjm0qcZAjtp0pS6SM6MCW9iVr26fPjoP+6JuH1ghc9uKzc44J78tRdFHOiJtS2hwqc5AglOtd7JGA1gxc95NzQTW2/yQjYCjO212pCssZSmBk/H8WFIhSL1Qxe9PCtM9ctQmsi4zweFDCx4Z8pwqKD7FfPuTV4FVYzeNGXIbWyhxTu44IB/Z50jp/fZIoi8Q7fMHdzMbGeAxG6KEmlyor1FRJJA1Xo+Mk4dMzdAs3D6wX3eT3cFi3sWXWPKk29WVCrRCkXqOIfu16Xzs/BPXzDn8gqitUd+Za1tk/zExatW6o+x8mmhGI3Qmz4MiTXeUbI5r/Apm9IOcCKbttcAS4F0HdSKLi81GZ1yqNpMC6jmY6DeS1ON1jRh8LZoZMjTDu47AX5FW1sS1wB7PzH9S4rLBZ7w06cbrCibznitktl5n7eJRt2fQsRyTXrZ6jRRx/bdiDLxLMwOginG7zoCzTrAdn0Xg+9nZbQtFCDrolvFwz6htrOK4SCPvF7zTppAqyM0aKHdFwiedVGE2/F6Mxej2nsLpkGNoFR+2bWQzJa0StLE2/F6GmT+DWzrWftlul8vmcsTjdY0ce/5doj1QdgFFZ0E/9/v+njiEysl6jwJrL21dyddYi4m9WOf/U9xjYAqxm86OZ77i9kK/R5fVE9W7VorGnV43XIRP6Z1EpZXKk9uYFzHz8qMCZjbBNmK4RGbopIpEWX9solcG+dFlZ0a+qrLWlW/7N5DK5Do6gDfn/cGSaGWVjRp3oHfS8Nb+t69hadyDovP3y2VD18iayNj8yZHt/wohSnG7zZnOrj41n+QcUZ6pGbNkbn8K9mrc9ZJivu0nqzOd3hizYmjOELD11vvK6Jt2J0ZuSW6dt81A/sa+4eW1IY4vO5ZPpuTbwVozN73TkaIV/mvB6dglTaHK8Vozvc59e06Dy14pFbxxf8mna8ztOB4TjdYEX3HL6cV2sxXl9WF4XTDd5E9siYN3wYW74WmxFaeNFd3ZLqXvfZITQJ7wQyzMMX67mV2fRBfyCzjhmvR/SSUoGVsVPuY87iCY3cJLO3QegvCfTIrdtNMhaI3W4884X25Bb90zZCFkihuxTzbkGAt5MquGvVydY8jYhTm49UNnYnbJ7Vb0k9CjBtLxVyLFuF9SY7sfvrYUrnb7t0+Fw9fLF8vnnfKCqvOx6Is48nhv6h9mm3aFd38O20S7I+gsrxndwwOiCGnvNnzTrCZzCsvpoOO2dRlb8vxeiAGDqb2NlpTm4el6jFHAVGB8TQAzO1hfje9FHu6kNPlUyagNEBMXTXAGYoY5+EHjzLcaGHr4eHYXRA7gGQSx5sMcJ0r2ZS0cBzGA2QQ1/mO0Q/lO36CqMBgo/9XM5aoxuQxk/F2T5BdMn+MJ2HeB3b5GFtn+jDXl2OyLnKqNojrftOq64uPG8KVN9gdQzLv3xRGON1VuaKDSWXEgs2K/EPXUmjE5SILkSJ6EKUiC5EiehClIguRInoQpSILkSJ6EKUkeiS5Tf2vX2rt6nNp7n6IbnStcH4X/xGGYk+8dmICv6Mr65hqTK9d6zkT9/hohspDIOOqVy16Frf2Qn+7XXol/ZZ1e4iV/1porYwaBMTsv7dCUTfproChspIdL+j0IF/RfnjzSNSR+tusliRPF43UuwCF/qztd49jlNL5xSdV1OpAgsnb+WqKdO1hewBTGh0X81V/NfOyHqrjEQv6Q3dynj1d0cvLfUF+xVTwOqMPW+THhWQ04+r3vGD5tuwNA3cmL1us8MXQuZRTV0z2Ltx6JmBFMgg3lSId0cvHADDEidPX6tK8edtcksGzvXs+1vAtR78Y+DaeLjNPNx/cDw4TDr9iPo+GWzeOPTLbtTXu+EBF3h3dOpYDlZCcAflrA28TQZSRN11Hgf55990bkGnTgE/IztY49B3zzCri11zjwu8O3rsEhiRDtnhdYkDuS2+PmBlWaj7i/TQPymTPjXKurHoG8O9P1Ka8l7zbii6nhzuyx+UqgbyJxW1QI+da5R1Y9G/i/rhyUg+63tCX7ClpLEn/RgYpxboVo1GTrcyCj3qOyhF9opozoNh6OV51Ga89MDWLndYQZXUUsX7IT30K3LIV0/C0WvtHWQUesaEQ9Kqr6+7cf2cYeg5/wPwya5mN1A2RN5xfVrP/ya13OvaAqHz+o3Pfp7bJ0ZqwT3XYTg6zFvHbjApDYocr8h1+vyW6DILunDaYPfGoJtbl+f16lYNx7mZIYahb5CuSa7hvUv2kkeMovyxzdp1vG9zywP+ojqzM/whYGPQvX5s8po4zz5/yHE2ZGg3t+vFX3not2QKF//V88CS95cSfls9/M5Z0C4893Klfyo7KeC9oM86VT57cOrJOtg9jvuh3xb6nCTHP0jpF1+vD2FC7wW99GDkvWpnqlDxAfdDeuj/GUc0pXG+/bNPacmCnMqxe5gQhV7WTXerxYoSa92IDjpVKe0Oq+NqVoUzofQguAxdYFvUMW5qnT76xnDozMsiDZER6J559YE7ABw/yOc8WTXWfLGcOhInhrIvEbsily2Mp9Y92SkjOuj/Cob8O+2U6byZkl+ehqDt9ARi+U2un9NDLxxZOeQqfTok0s390l1tRhH/0NuaeX5htfVs9Vr2hE1HNmr3ZjP7J5100D39FsGhpXlgFrCdCUWvip9JrewfwA0HtjU9dPODI8G5PVU4ZbB/I9Ar7SCOBs0aK9vLWjw/R80sq2CPxqJpher1a9DBPfwraumff50JeD5W9aRH4UX9+f2cHjqciVepWyKS0lSfgK30+yAvlkMqm4VL9p13p2OjPNntknO86JVXJybgkAe9eE+3BisSUwYE/4mtJ3SCYDqPK585dSX7/wFKS3gyW6f95DEvqbPqVwb7F6/IClEiuhAlogtRIroQJaILUSK6ECWiC1EiuhAlogtRIroQJaILUSK6ECWiC1EiuhD1f31PvtXto/3IAAAAAElFTkSuQmCC"},"3eb4":function(e,t,a){"use strict";a("076b")},4:function(e,t){},"40eb":function(e,t,a){},"417b":function(e,t,a){},"41d7":function(e,t,a){e.exports=a.p+"img/SmartHR_Logo.82371b67.png"},"42dc":function(e,t,a){},4678:function(e,t,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=o(e);return a(t)}function o(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}r.keys=function(){return Object.keys(s)},r.resolve=o,e.exports=r,r.id="4678"},4684:function(e,t,a){"use strict";a("3900")},4685:function(e,t,a){},4792:function(e,t,a){},4802:function(e,t,a){"use strict";a("1717")},"489b":function(e,t,a){},"4b98":function(e,t,a){},"4bf8":function(e,t,a){"use strict";a("e572")},"4d60":function(e,t,a){},"4e4a":function(e,t,a){},5:function(e,t){},5090:function(e,t,a){},"50e0":function(e,t,a){},"53f8":function(e,t,a){"use strict";a("dc96")},"552f":function(e,t,a){"use strict";a("bafe")},"55a1":function(e,t,a){},"57de":function(e,t,a){},5808:function(e,t,a){"use strict";a("4e4a")},"596b":function(e,t,a){},"59e6":function(e,t,a){"use strict";a("50e0")},"5a94":function(e,t,a){},"5be7":function(e,t,a){"use strict";a("f389")},"5d16":function(e,t,a){"use strict";a("8a05")},"5d70":function(e,t,a){},"5e7f":function(e,t,a){},"5f93":function(e,t,a){},"5fa9":function(e,t,a){"use strict";a("89b0")},6:function(e,t){},"60a4":function(e,t,a){"use strict";a("b4d3")},"61d6":function(e,t,a){"use strict";a("f96b")},"62e40":function(e,t,a){},6573:function(e,t,a){"use strict";a("36a8")},"66ec":function(e,t,a){},"67aa":function(e,t,a){},6869:function(e,t,a){},"6a9b":function(e,t,a){},"6ac3":function(e,t,a){"use strict";a("7285")},"6c25":function(e,t,a){},"6d02":function(e,t,a){"use strict";a("f0ef")},"6e7e":function(e,t,a){},7:function(e,t){},7285:function(e,t,a){},7312:function(e,t,a){"use strict";a("0665")},"73a6":function(e,t,a){"use strict";a("fd02")},7458:function(e,t,a){"use strict";a("1bdd")},"74ef":function(e,t,a){"use strict";a("2800")},"754d":function(e,t,a){"use strict";a("6e7e")},7648:function(e,t,a){},7853:function(e,t,a){},7934:function(e,t,a){},7977:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("v-tooltip",{attrs:{top:"","max-width":"300px","content-class":"text-caption"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-icon",e._g(e._b({on:{click:function(t){return e.$emit("click",t)}}},"v-icon",r,!1),s),[e._v("\n mdi-alert-circle\n ")])]}}])},[e._v(" "),a("span",[e._v(e._s(e.text))])])],1)},r=[],o=a("2b0e"),n=o["a"].extend({name:"AlertIcon",props:{text:{type:String,default:""}}}),i=n,l=a("2877"),c=a("6544"),u=a.n(c),d=a("132d"),g=a("3a2f"),p=Object(l["a"])(i,s,r,!1,null,null,null);t["a"]=p.exports;u()(p,{VIcon:d["a"],VTooltip:g["a"]})},7999:function(e,t,a){},"79ea":function(e,t,a){"use strict";a("40eb")},"79fd":function(e,t,a){"use strict";a("dfe2")},"7a08":function(e,t,a){},"7ec1":function(e,t,a){},8:function(e,t){},"800c":function(e,t,a){},"80a4":function(e,t,a){"use strict";a("13c8")},"820e":function(e,t,a){},8251:function(e,t,a){"use strict";a("6c25")},8313:function(e,t,a){"use strict";a("4b98")},8501:function(e,t,a){},"85ec":function(e,t,a){},8777:function(e,t,a){"use strict";a("f9d2")},"87e4":function(e,t,a){"use strict";a("b386")},"88c4":function(e,t,a){"use strict";a("d070")},"89b0":function(e,t,a){},"89bd":function(e,t,a){},"8a05":function(e,t,a){},"8b21":function(e,t,a){"use strict";a("d2d6")},9:function(e,t){},"91eb":function(e,t,a){},9265:function(e,t,a){"use strict";a("a43e")},"928c":function(e,t,a){},"938d":function(e,t,a){"use strict";a("1b22")},"94ed":function(e,t,a){},9526:function(e,t,a){"use strict";a("7999")},9943:function(e,t,a){},9978:function(e,t,a){"use strict";a("309e")},"9a53":function(e,t,a){"use strict";a("9e06")},"9b63":function(e,t,a){"use strict";a("7ec1")},"9bc3":function(e,t,a){},"9cce":function(e,t,a){},"9e06":function(e,t,a){},"9e49":function(e,t,a){"use strict";a("d9df")},a0bb:function(e,t,a){},a1d8:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL8AAAAdCAYAAAD7Pr3jAAABN2lDQ1BBZG9iZSBSR0IgKDE5OTgpAAAokZWPv0rDUBSHvxtFxaFWCOLgcCdRUGzVwYxJW4ogWKtDkq1JQ5ViEm6uf/oQjm4dXNx9AidHwUHxCXwDxamDQ4QMBYvf9J3fORzOAaNi152GUYbzWKt205Gu58vZF2aYAoBOmKV2q3UAECdxxBjf7wiA10277jTG+38yH6ZKAyNguxtlIYgK0L/SqQYxBMygn2oQD4CpTto1EE9AqZf7G1AKcv8ASsr1fBBfgNlzPR+MOcAMcl8BTB1da4Bakg7UWe9Uy6plWdLuJkEkjweZjs4zuR+HiUoT1dFRF8jvA2AxH2w3HblWtay99X/+PRHX82Vun0cIQCw9F1lBeKEuf1UYO5PrYsdwGQ7vYXpUZLs3cLcBC7dFtlqF8hY8Dn8AwMZP/fNTP8gAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAUaaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA2LjAtYzAwNiA3OS5kYWJhY2JiLCAyMDIxLzA0LzE0LTAwOjM5OjQ0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuNCAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDYtMjFUMTU6NTk6NDQrMDk6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA2LTIxVDE2OjAyOjIxKzA5OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA2LTIxVDE2OjAyOjIxKzA5OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9IkFkb2JlIFJHQiAoMTk5OCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjBkNzI2MzAtY2I5Zi00MTZhLTliNTgtMzVlYzE1ZjI1YTIyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjYwZDcyNjMwLWNiOWYtNDE2YS05YjU4LTM1ZWMxNWYyNWEyMiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjYwZDcyNjMwLWNiOWYtNDE2YS05YjU4LTM1ZWMxNWYyNWEyMiI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NjBkNzI2MzAtY2I5Zi00MTZhLTliNTgtMzVlYzE1ZjI1YTIyIiBzdEV2dDp3aGVuPSIyMDIxLTA2LTIxVDE1OjU5OjQ0KzA5OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuNCAoTWFjaW50b3NoKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5qLptEAAAHj0lEQVR4nO2ca2wVRRSAv1sKlLS0PCIiammLgMhLAVEo4aFRVKLGnyT6Qw0aQ4AIGDFVE+IjRo0GjS8CEqOiiUbUiAo/jEZF5BFBoIWCPBR5pPKqBSkU6o+zmzv3dPbe233cPrJfsrk7s7Nz5u7OnjkzZ2YS8+dX4UF34DlgKvAM8IVXwpjI6QmUAgngL+BUhLK6AIuBm4DXgY8ilNWm5KW5thBYAIwFPgT6hyj3XqARqAbqkYccBXcDDY6cE8CKiOSMAGqBP4B9wO9AeQj5TgBWAYeA7cA24DDwNaKUomAuUOXI/gAYHkKebyDvuTrL4zSwKKDMmchz2gPsVPkfBDblp7n5ZuO8ENEEKwMWyKU30A0Y5oRLQ8pXU4KU3ZUTRoX0kjNYxfUMmOfTiAbW9ABud46XgccCytFMNM7zgPHAjoB5DkSex7BMCQ0G+JR1GfAVMCZDuhIvzV8IXKfiRvssTDZcjDDvXMg5p8LnLXGtYS72iq9ZCDwVQI6mCLhexY0LMf+o6QesJ3PFB8BL848Ceqk4/THERMMA4ElL/CmgmZbvZSHwPrA/BNmDEC1tMtGWsJUcAP5FzI0mpPW6yrjeBOxGlFOeU4ZDPuS8jd2KqEf6SgnnKAaOeFV+2x8e79xU76NQMdlzF3CJilsAvOKcPwS8RbK/VgzcA7wagmybli9DTInDAfKd7RwuVyCV0eUo0rdoDiBjOPIcTE4Ac4CPgQv6Bi+zZ4QlrgQYGaBwMdmhK+AykhUfYCmwRKUJQzt75dMLuDGk/KPkTkvcDGSwpkXFB3vlTwCTPARM8VeumFZwqQr/bEnzqwp3C0n21R7xQ0LKP0pKVPgT4Jd0N9gqfxneoyJeDycmPLqqcDYVuzEEuRXADR7XpoaQf67ZkimBzeafjDg6AP4DzgB9nXClc83ajMREQsIS9w1igl5APpZjIcgZRPK9n0E6n0VOeCiiKHM1KpcTbJrf1O7VpHr4ypDOSkzbUo84vWoQh9rfIeQ5zTjfizi4XMrxbhU6LLbKP9k43wt8r9JPJqYzco1xfpjUyq+vdwTSOXCtCYpJHdHZibjXz5O0RUcj48oxnYfeyFC2Sy3i1TXf+zhgeY7LFYTZiO9jL+JXMM3HfKBRV/4xpLrlDyF23nGSoxBjoyhpTEYmIePYDch4eBfkJa4CNgTMuwIZy3epAU4iH8C1TlxYw6m5oh/wXprrDbrya7tui/O7FbjVOR+LjP2eDFa2mFYyHZhviV/kXFsbIO/xKux6V3eSrPwDEe+zH89ru0Tb/KZzqxGZEQewyYjvid0JFhMtZ9NceyBg3qbSa0Q60yBTDlxK6BjOrqzJV+emE2s38I9zXqvumwL8FGG5YlqSbpgxqJPLnG15gGSl36TSdQRnl0sz8CbyfwrVtQKg3qz8pcDlRnijcb6O5KQjiJ1dbcFSZKruQeBB4CXj2vkA+Q4m1ezZZ5xvI/W9TwVeCCArlywBHk2XwDR7JqvwLuc3gbQAdca1iWQxlBQTKseQyngCWTQTFlqbr1Mya1XadAug2hN1mRKYf0Rr88+QFVcXkeGiPsa1cmJnV1tSEGJe2m+zBpkk1oy0MuZUl3I6kd2vNb/LaaT5q3TCvUidc5IgnuTWWdBKbwfJutATWctt0tGcXZ64lb83soDFpQap7NPT3Bvlyq6YJLZ5VE0h5d2XVHt/GzKfq9KeHOhYK7vS4trt40jtEW9EHsIpkrsF9EAmP7mE6ewKY1ZiNgRZWpgr9LOwTWzT/S2//a8KUjcm2IM4z5qR934SqRcVRpoJPmVFjV4Ik9Ep52p+/TUfdX7HIqNAIxFNb84edJ1dYdAnc5JQKMqcpM3Rk9SmWdLoOL/KQzu3qhEFUYm891HIez9gpCkjdVSwvbBRhWeQdMxacTXGKBVf7fyaY8unEeeHa+sXIh/Fj60uZktuAZ4FPkdMMFPbFSIjT9Utb2s1lcDzyB5ExUpOAeLR1D6NXLMBeMQIz0RG2xYjJtDjwCx1j23BSzboyl9jSdMAbCa5trcY0f6f+pQZFauR1upKI+5LZIH/u8hMWLf/kgAu5iMOErOz24SsgLexmdSO7hT8Vf5dlrgq57CxFHjYh5yjlrgnnMPGa8A8H3LCZDUyhcDcumMOyQ9CmzjHkPk9ftBbiXgNoe5TYb1NS3vgHKIglhlx3YEXkc3XzpJUdkXAkTzEnjMftB7TN9mrwkN9FnQtWay0CYE1tGwO09EeFunUIdpdk4/dtq/C33ybIaRuU7If+M0j7ToVtpli7YHliALTdEVGropImr5FecAdKuF6vOeR6LWjt+Hfjr4PMaWiZhayMikb9LBetuhx964B8gKZS5/NfJ05wDs+ZegBiyN49x20yTmK4JtyRcU8stzIKx/5w7VI01aG2ElebEea2P5IM3MBmfDU4KOQ25GWYxHyMM9hn79SSjB7fyvSTC9E9h5qsshJINuFbPEp4yjwHTKAkEA+tuM+83JZAfyAbGA1A3Eq5iF27bfIFoA2Gz1buiP/tw757+l24/sT2QWhAnlPzUind6dP2Y1I61/gHGF6rEF2slsJ3I/08wpInQJSBNT9D+GVYuTGB7nAAAAAAElFTkSuQmCC"},a1fb:function(e,t,a){},a31e:function(e,t,a){"use strict";a("57de")},a335:function(e,t,a){"use strict";a("3abe")},a43e:function(e,t,a){},a464:function(e,t,a){"use strict";a("dd7c")},a496:function(e,t,a){e.exports=a.p+"img/kingoftime_logo.db823208.jpg"},a766:function(e,t,a){"use strict";a("800c")},a97d:function(e,t,a){},aa87:function(e,t,a){e.exports=a.p+"img/support-center.146beda8.svg"},aca4:function(e,t,a){},ad49:function(e,t,a){"use strict";a("0b29")},ae3d:function(e,t,a){},ae845:function(e,t,a){"use strict";a("596b")},aeeb:function(e,t,a){"use strict";a("f6d5")},af68:function(e,t,a){"use strict";a("7853")},af7d:function(e,t,a){"use strict";a("21ba")},b0b9:function(e,t,a){},b153:function(e,t,a){"use strict";a("0413")},b386:function(e,t,a){},b3ba:function(e,t,a){},b4cb:function(e,t,a){"use strict";a("417b")},b4d3:function(e,t,a){},b57b:function(e,t,a){},b989:function(e,t,a){"use strict";a("33c7")},ba87b:function(e,t,a){"use strict";a("5d70")},bafe:function(e,t,a){},bb83:function(e,t,a){"use strict";a("5e7f")},bc57:function(e,t,a){},bdbf:function(e,t,a){"use strict";a("d79a")},bde7:function(e,t,a){"use strict";a("0442")},be69:function(e,t,a){"use strict";a("06d6")},bfc1:function(e,t,a){"use strict";a("67aa")},c072:function(e,t,a){"use strict";a("6a9b")},c3aa:function(e,t,a){},c447:function(e,t,a){},c544:function(e,t,a){"use strict";a("66ec")},c850:function(e,t,a){},cb1f:function(e,t,a){"use strict";a("4792")},cd0f:function(e,t,a){"use strict";a("0e04")},cd49:function(e,t,a){"use strict";a.r(t);var s={};a.r(s),a.d(s,"DOMAIN",(function(){return M})),a.d(s,"FEDERATED_LOGIN_SERVICE_API",(function(){return L})),a.d(s,"OWNER_FEDERATED_LOGIN_SERVICE_API",(function(){return D})),a.d(s,"LOGIN_API",(function(){return G})),a.d(s,"REFRESH_TOKEN_API",(function(){return A})),a.d(s,"USER_PROFILE_API",(function(){return R})),a.d(s,"USERS_LIST_API",(function(){return T})),a.d(s,"CALENDAR_LIST_API",(function(){return E})),a.d(s,"CALENDARS_LIST_API",(function(){return O})),a.d(s,"PLAN_API",(function(){return V})),a.d(s,"CONTROLLER_COMMAND_API",(function(){return U})),a.d(s,"USER_FEDERATED_LOGIN_SERVICE_API",(function(){return $})),a.d(s,"LOG_GATE_LIST_API",(function(){return N})),a.d(s,"CONFIG_LOG_API",(function(){return F})),a.d(s,"CARD_LIST_API",(function(){return j})),a.d(s,"LOG_OWNER_LIST_API",(function(){return B})),a.d(s,"LOG_USER_OPERATION_LIST_API",(function(){return z})),a.d(s,"GROUP_LIST_API",(function(){return H})),a.d(s,"GROUPS_LIST_API",(function(){return K})),a.d(s,"RELATION_GATE_GROUP",(function(){return Y})),a.d(s,"GROUP_PASSAGE",(function(){return q})),a.d(s,"PASSABLE_TIME_SETTING",(function(){return W})),a.d(s,"PASSABLE_TIME_SETTING_API",(function(){return J})),a.d(s,"GROUPS_PASSAGE_API",(function(){return Z})),a.d(s,"RELATION_GATE_GROUP_API",(function(){return X})),a.d(s,"PHONES_LIST_API",(function(){return Q})),a.d(s,"GATES_PASSAGE_API",(function(){return ee})),a.d(s,"GATES_LIST_API",(function(){return te})),a.d(s,"DATE_TYPE",(function(){return ae})),a.d(s,"DAY_TYPE_API",(function(){return se})),a.d(s,"UNLOCKING_TIME_SETTING",(function(){return re})),a.d(s,"RELATION_CONTROLLER_GATE",(function(){return oe})),a.d(s,"RELATION_CONTROLLER_GATE_API",(function(){return ne})),a.d(s,"CONTROLLER_API",(function(){return ie})),a.d(s,"CONTROLLER_MANAGEMENT_USER_API",(function(){return le})),a.d(s,"CONTROLLER_MODEL_API",(function(){return ce})),a.d(s,"CONTROLLER_MANAGEMENT_DEVICE",(function(){return ue})),a.d(s,"WORKTIME",(function(){return de})),a.d(s,"FORGOT_PASSWORD_API",(function(){return ge})),a.d(s,"RESET_PASSWORD_API",(function(){return pe})),a.d(s,"USER_CHANGE_PASSWORD_API",(function(){return me})),a.d(s,"PERSONAL_CHANGE_PASSWORD_API",(function(){return fe})),a.d(s,"NOTICE_SETTING_API",(function(){return he})),a.d(s,"NOTICE_SETTING_TYPE_LIST_API",(function(){return ve})),a.d(s,"ROOM_API",(function(){return be})),a.d(s,"LOG_ROOM_API",(function(){return ye})),a.d(s,"SAFIE_RELATIONS_GATE_API",(function(){return Ie})),a.d(s,"TBEYE_RELATIONS_GATE_API",(function(){return xe})),a.d(s,"CONFIG_PCODE_TYPE_API",(function(){return Ce})),a.d(s,"KEY_ADD_PAGE",(function(){return we})),a.d(s,"KEY_SHARE_API",(function(){return ke})),a.d(s,"GROUP_ADMINISTRATOR_API",(function(){return Se})),a.d(s,"DEPARTMENT_ADMINISTRATOR_API",(function(){return _e})),a.d(s,"RELATION_DEPARTMENT_USER_API",(function(){return Pe})),a.d(s,"RELATION_DEPARTMENT_GROUP_API",(function(){return Me})),a.d(s,"DEPARTMENT_API",(function(){return Le})),a.d(s,"DEPARTMENT_SIMPLE_API",(function(){return De})),a.d(s,"FACE_IMAGE_API",(function(){return Ge})),a.d(s,"TEAMSPIRIT_WEB_APP",(function(){return Ae})),a.d(s,"JOBCAN_WEB_APP",(function(){return Re})),a.d(s,"KINGOFTIME_WEB_APP",(function(){return Te})),a.d(s,"SMARTHR_WEB_APP",(function(){return Ee})),a.d(s,"SAFIE_STREAM_URL",(function(){return Oe})),a.d(s,"GATE_MODEL_LIST_API",(function(){return Ve})),a.d(s,"RELATION_ANTIPASS_GATE_API",(function(){return Ue})),a.d(s,"CUBE_REGISTER_COMMAND_API",(function(){return $e})),a.d(s,"USERS_LIST_SIMPLE_API",(function(){return Ne})),a.d(s,"GATES_LIST_SIMPLE_API",(function(){return Fe})),a.d(s,"DOWNLOAD_FILE_TEMPLATE_API",(function(){return je})),a.d(s,"DOWNLOAD_IN_ROOM_SUMMARY_BY_USER_TEMPLATE_API",(function(){return Be})),a.d(s,"DOWNLOAD_IN_ROOM_SUMMARY_BY_ROOM_TEMPLATE_API",(function(){return ze})),a.d(s,"DOWNLOAD_FACE_IMAGE_TEMPLATE_API",(function(){return He})),a.d(s,"LOGIN",(function(){return Ke})),a.d(s,"DASHBOARD",(function(){return Ye})),a.d(s,"CARD_LIST",(function(){return qe})),a.d(s,"CARD_ADD",(function(){return We})),a.d(s,"CARD_EDIT",(function(){return Je})),a.d(s,"CARD_DETAIL",(function(){return Ze})),a.d(s,"CARD_IMPORT",(function(){return Xe})),a.d(s,"SETTING",(function(){return Qe})),a.d(s,"REFLECTION_STATUS",(function(){return et})),a.d(s,"NOTICE_LIST",(function(){return tt})),a.d(s,"LOG",(function(){return at})),a.d(s,"GATE",(function(){return st})),a.d(s,"CONFIRM_SETTING",(function(){return rt})),a.d(s,"GATE_EDIT",(function(){return ot})),a.d(s,"GATE_LOCK_ADD_USER",(function(){return nt})),a.d(s,"GATE_LOCK_ADD_GROUP",(function(){return it})),a.d(s,"GATE_LOCK_ADD",(function(){return lt})),a.d(s,"GATE_LOCK_EDIT",(function(){return ct})),a.d(s,"GATE_LOCK_DETAIL",(function(){return ut})),a.d(s,"GATE_DETAIL",(function(){return dt})),a.d(s,"GATE_ADD_USER",(function(){return gt})),a.d(s,"GATE_ADD_GROUP",(function(){return pt})),a.d(s,"GATE_ADD_USER_GROUP",(function(){return mt})),a.d(s,"GROUP",(function(){return ft})),a.d(s,"GROUP_DETAIL",(function(){return ht})),a.d(s,"GROUP_ADD",(function(){return vt})),a.d(s,"GROUP_EDIT",(function(){return bt})),a.d(s,"GROUP_ADD_GATE",(function(){return yt})),a.d(s,"GROUP_ADD_USER",(function(){return It})),a.d(s,"PERSONAL_SETTING",(function(){return xt})),a.d(s,"CONTROL_PANEL",(function(){return Ct})),a.d(s,"CONTROL_PANEL_DETAIL",(function(){return wt})),a.d(s,"CONTROL_PANEL_ADD",(function(){return kt})),a.d(s,"CONTROL_PANEL_EDIT",(function(){return St})),a.d(s,"USER_LIST",(function(){return _t})),a.d(s,"USER_ADD",(function(){return Pt})),a.d(s,"USER_EDIT",(function(){return Mt})),a.d(s,"USER_ADD_GROUP",(function(){return Lt})),a.d(s,"TIME_ADD_GROUP",(function(){return Dt})),a.d(s,"USER_ADD_GROUP_GATE",(function(){return Gt})),a.d(s,"USER_DETAIL",(function(){return At})),a.d(s,"IN_ROOM_MANAGEMENT",(function(){return Rt})),a.d(s,"IN_ROOM_MANAGEMENT_STATUS_ROOM",(function(){return Tt})),a.d(s,"IN_ROOM_MANAGEMENT_STATUS_USER",(function(){return Et})),a.d(s,"PCODE_LIST_API",(function(){return Ot})),a.d(s,"SAFIE_RELATIONS_GATE",(function(){return Vt})),a.d(s,"TBEYE_RELATIONS_GATE",(function(){return Ut})),a.d(s,"EXTERNAL_RELATION_LIST",(function(){return $t})),a.d(s,"USER_CHANGE_PASSWORD",(function(){return Nt})),a.d(s,"GROUP_LIST_MODAL_PAGE",(function(){return Ft})),a.d(s,"GROUP_MODAL_ADD",(function(){return jt})),a.d(s,"FACE_AUTHENTICATION",(function(){return Bt})),a.d(s,"GOOGLE",(function(){return zt})),a.d(s,"ONELOGIN",(function(){return Ht})),a.d(s,"APPLEID",(function(){return Kt})),a.d(s,"OWNER_LOGIN_METHOD_API",(function(){return Yt})),a.d(s,"OWNER_API",(function(){return qt})),a.d(s,"PAGE_DEFAULT",(function(){return Wt})),a.d(s,"PER_PAGE",(function(){return Jt})),a.d(s,"TEXT_EDIT",(function(){return Zt})),a.d(s,"TEXT_DELETE",(function(){return Xt})),a.d(s,"ERROR_400",(function(){return Qt})),a.d(s,"ERROR_401",(function(){return ea})),a.d(s,"ERROR_403",(function(){return ta})),a.d(s,"ERROR_404",(function(){return aa})),a.d(s,"ERROR_404_GATE_PASSAGE",(function(){return sa})),a.d(s,"ERROR_404_CALENDAR",(function(){return ra})),a.d(s,"ERROR_400_UNLOCKTIME",(function(){return oa})),a.d(s,"ERROR_409_UNLOCKTIME",(function(){return na})),a.d(s,"ERROR_403_DENIED",(function(){return ia})),a.d(s,"ERROR_409",(function(){return la})),a.d(s,"ERROR_409_USER",(function(){return ca})),a.d(s,"ERROR_409_CONTROLLER",(function(){return ua})),a.d(s,"ERROR_409_GATE_GROUP",(function(){return da})),a.d(s,"ERROR_409_GATE_PASSAGE",(function(){return ga})),a.d(s,"ERROR_409_GATE",(function(){return pa})),a.d(s,"ERROR_409_CALENDAR",(function(){return ma})),a.d(s,"ERROR_500",(function(){return fa})),a.d(s,"ERROR_503",(function(){return ha})),a.d(s,"ERROR_420",(function(){return va})),a.d(s,"ERROR_DEFAULT",(function(){return ba})),a.d(s,"ERROR_409_DEPARTMENT",(function(){return ya})),a.d(s,"ERROR_409_GROUP_PASSAGE",(function(){return Ia})),a.d(s,"ERROR_409_DE_GROUP",(function(){return xa})),a.d(s,"ERROR_420_DE_GROUP",(function(){return Ca})),a.d(s,"ERROR_GET",(function(){return wa})),a.d(s,"ERROR_POST",(function(){return ka})),a.d(s,"ERROR_PUT",(function(){return Sa})),a.d(s,"ERROR_DELETE",(function(){return _a})),a.d(s,"ERROR_MAINTENANCE",(function(){return Pa})),a.d(s,"SERVER_CONNECT_ERROR",(function(){return Ma})),a.d(s,"ADD_PASSABLE_TIME_API_SUCCESS",(function(){return La})),a.d(s,"EDIT_PASSABLE_TIME_API_SUCCESS",(function(){return Da})),a.d(s,"ADD_PCODE_API_SUCCESS",(function(){return Ga})),a.d(s,"ADD_USER_API_ERROR",(function(){return Aa})),a.d(s,"ADD_PASSABLE_SUCCESS",(function(){return Ra})),a.d(s,"EDIT_USER_API_SUCCESS",(function(){return Ta})),a.d(s,"ADD_USER_API_SUCCESS",(function(){return Ea})),a.d(s,"ADD_GATE_API_SUCCESS",(function(){return Oa})),a.d(s,"ADD_API_ERROR",(function(){return Va})),a.d(s,"ADD_GROUP_API_SUCCESS",(function(){return Ua})),a.d(s,"EDIT_GROUP_API_SUCCESS",(function(){return $a})),a.d(s,"EDIT_GATE_API_SUCCESS",(function(){return Na})),a.d(s,"EDIT_PCODE_API_SUCCESS",(function(){return Fa})),a.d(s,"EDIT_SETTING_API_SUCCESS",(function(){return ja})),a.d(s,"DELETE_NOTICE_SETTING_API_SUCCESS",(function(){return Ba})),a.d(s,"ADD_NOTICE_SETTING_API_SUCCESS",(function(){return za})),a.d(s,"EDIT_NOTICE_SETTING_API_SUCCESS",(function(){return Ha})),a.d(s,"EDIT_PHONE_API_SUCCESS",(function(){return Ka})),a.d(s,"DELETE_API_SUCCESS",(function(){return Ya})),a.d(s,"DELETE_API_GROUP_PASSABLE_SUCCESS",(function(){return qa})),a.d(s,"EDIT_CONFIG_LOG_API_SUCCESS",(function(){return Wa})),a.d(s,"DELETE_CONFIG_LOG_API_SUCCESS",(function(){return Ja})),a.d(s,"CALENDAR_SUCCESS",(function(){return Za})),a.d(s,"ADD_AFFILIATION_SUCCESS",(function(){return Xa})),a.d(s,"EDIT_AFFILIATION_SUCCESS",(function(){return Qa})),a.d(s,"ADD_CONTROLER_API_SUCCESS",(function(){return es})),a.d(s,"EDIT_CONTROLER_API_SUCCESS",(function(){return ts})),a.d(s,"ERROR_END_TIME",(function(){return as})),a.d(s,"PCODE_REQUIRED",(function(){return ss})),a.d(s,"PCODENAME_REQUIRED",(function(){return rs})),a.d(s,"PCODE_VALIDATE_NFC",(function(){return os})),a.d(s,"PCODE_VALIDATE_NUMERIC",(function(){return ns})),a.d(s,"USERID_VALIDATE",(function(){return is})),a.d(s,"VALIDATE_GROUP_NAME",(function(){return ls})),a.d(s,"VALIDATE_START_TIME",(function(){return cs})),a.d(s,"VALIDATE_END_TIME",(function(){return us})),a.d(s,"VALIDATE_USER_ID",(function(){return ds})),a.d(s,"VALIDATE_PASSWORD",(function(){return gs})),a.d(s,"VALIDATE_MODEL",(function(){return ps})),a.d(s,"ERROR_ADD_USER_1",(function(){return ms})),a.d(s,"ERROR_EDIT_USER_1",(function(){return fs})),a.d(s,"ERROR_ADD_USER_2",(function(){return hs})),a.d(s,"ERROR_EDIT_USER_2",(function(){return vs})),a.d(s,"ERROR_ADD_USER_3",(function(){return bs})),a.d(s,"ERROR_EDIT_USER_3",(function(){return ys})),a.d(s,"ERROR_ADD_USER_4",(function(){return Is})),a.d(s,"ERROR_EDIT_USER_4",(function(){return xs})),a.d(s,"ERROR_ADD_USER_5",(function(){return Cs})),a.d(s,"ERROR_EDIT_USER_5",(function(){return ws})),a.d(s,"ERROR_ADD_USER_6",(function(){return ks})),a.d(s,"ERROR_EDIT_USER_6",(function(){return Ss})),a.d(s,"ERROR_ADD_USER_7",(function(){return _s})),a.d(s,"ERROR_EDIT_USER_7",(function(){return Ps})),a.d(s,"ERROR_GATE_EDIT",(function(){return Ms})),a.d(s,"TEXT_TITLE_ANTI",(function(){return Ls})),a.d(s,"SUNDAY_ID",(function(){return Ds})),a.d(s,"MONDAY_ID",(function(){return Gs})),a.d(s,"TUESDAY_ID",(function(){return As})),a.d(s,"WEDNESDAY_ID",(function(){return Rs})),a.d(s,"THURSDAY_ID",(function(){return Ts})),a.d(s,"FRIDAY_ID",(function(){return Es})),a.d(s,"SATURDAY_ID",(function(){return Os})),a.d(s,"ALLDAY_NO_SETTING",(function(){return Vs})),a.d(s,"ALLDAY_PASSABLE",(function(){return Us})),a.d(s,"ALLDAY_IMPASSABLE",(function(){return $s})),a.d(s,"REGISTERED",(function(){return Ns})),a.d(s,"DESC",(function(){return Fs})),a.d(s,"ASC",(function(){return js}));var r={};a.r(r),a.d(r,"user",(function(){return Ys}));var o={};a.r(o),a.d(o,"UPDATE_AUTH",(function(){return Ws})),a.d(o,"UPDATE_USER",(function(){return Js})),a.d(o,"CLEAR_ALL_DATA",(function(){return Zs}));var n={};a.r(n),a.d(n,"getAllGroups",(function(){return Hn})),a.d(n,"getGroups",(function(){return Wn})),a.d(n,"putGroups",(function(){return Zn}));var i={};a.r(i),a.d(i,"getAllDayTypes",(function(){return ti}));var l={};a.r(l),a.d(l,"getAllControllers",(function(){return oi})),a.d(l,"getAllControllerGates",(function(){return ci})),a.d(l,"getAllGatesSimple",(function(){return pi}));var c={};a.r(c),a.d(c,"getMyPlan",(function(){return vi}));var u={};a.r(u),a.d(u,"getAllUsers",(function(){return yi})),a.d(u,"getUser",(function(){return wi})),a.d(u,"getGroupAuth",(function(){return Si})),a.d(u,"getDepartmentAuth",(function(){return Pi})),a.d(u,"setAdministrator",(function(){return Li})),a.d(u,"getDepartmentUser",(function(){return $i}));var d={};a.r(d),a.d(d,"getAllRooms",(function(){return Fi})),a.d(d,"getRoomsByKeyword",(function(){return Hi})),a.d(d,"getRoomById",(function(){return Yi})),a.d(d,"getInRoomUsers",(function(){return Wi})),a.d(d,"postRoom",(function(){return Zi})),a.d(d,"deleteRoom",(function(){return Qi})),a.d(d,"putRoom",(function(){return tl}));var g={};a.r(g),a.d(g,"getAllRoomRoomLogs",(function(){return sl})),a.d(g,"getRoomRoomLogs",(function(){return il})),a.d(g,"getUserRoomLogs",(function(){return cl}));var p={};a.r(p),a.d(p,"getAllNoticeSettings",(function(){return dl})),a.d(p,"deleteNoticeSetting",(function(){return fl})),a.d(p,"putNoticeSetting",(function(){return vl})),a.d(p,"postNoticeSetting",(function(){return yl}));var m={};a.r(m),a.d(m,"getNoticeSettingType",(function(){return xl}));a("e260"),a("e6cf"),a("cca6"),a("a79d");var f=a("2b0e"),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-app",[a("router-view")],1)},v=[],b=f["a"].extend({name:"App"}),y=b,I=(a("034f"),a("2877")),x=a("6544"),C=a.n(x),w=a("7496"),k=Object(I["a"])(y,h,v,!1,null,null,null),S=k.exports;C()(k,{VApp:w["a"]});a("d3b7"),a("25f0"),a("caad"),a("b0c0");var _=a("8c4f"),P="mgr",M="https://web.api.alligate.net/",L=M+P+"/federated-login-service",D=M+P+"/relation/owner-federated-login-service",G=M+P+"/login",A=M+P+"/refresh",R=M+P+"/myprofile",T=M+P+"/user",E=M+P+"/calendar",O=M+P+"/calendars",V=M+P+"/plan",U=M+P+"/controller-command",$=M+P+"/relation/user-federated-login-service",N=M+P+"/log/gate",F=M+P+"/config/log",j=M+P+"/pcode",B=M+P+"/log/owner",z=M+P+"/log/user-operation",H=M+P+"/group",K=M+P+"/groups",Y=M+P+"/relation/gate-group",q=M+P+"/group/passage",W=M+P+"/passable-time-setting",J=M+P+"/passable-time-setting",Z=M+P+"/group/passage",X=M+P+"/relation/gate-group",Q=M+P+"/phone",ee=M+P+"/gate/passage",te=M+P+"/gate",ae=M+P+"/day-type",se=M+P+"/day-type",re=M+P+"/unlocking-time-setting",oe=M+P+"/relation/controller-gate",ne=M+P+"/relation/controller-gate",ie=M+P+"/controller",le=M+P+"/controller-management-user",ce=M+P+"/controller/model",ue=M+P+"/controller-management-device",de=M+P+"/worktime",ge=M+P+"/password/forgot",pe=M+P+"/password/reset",me=M+P+"/force/password/change",fe=M+P+"/password/change",he=M+P+"/notice-setting",ve=M+P+"/notice-setting-type",be=M+P+"/room",ye=M+P+"/log/room",Ie=M+P+"/safie/relation-gate-device",xe=M+P+"/tbeye/relation-gate-device",Ce=M+P+"/config/pcode/type",we="/key-add",ke=M+P+"/key/share",Se=M+P+"/group/administrator",_e=M+P+"/department/administrator",Pe=M+P+"/relation/department-user",Me=M+P+"/relation/department-group",Le=M+P+"/department",De=M+P+"/department-simplified",Ge=M+P+"/face-image",Ae="https://alliboard-spirit.alligate.net/",Re="https://alliboard-jobcan.alligate.net/",Te="https://alliboard-kingoftime.alligate.net/",Ee="https://alliboard-smarthr.alligate.net/",Oe="https://safie.link/app/streaming",Ve=M+P+"/gate/model",Ue=M+P+"/relation/anti-passback",$e=M+P+"/register/cube/command",Ne=M+P+"/user-simplified",Fe=M+P+"/gate-simplified",je=M+P+"/file/template/",Be=je+"in-room-summary_by-user_template.xlsx",ze=je+"in-room-summary_by-room_template.xlsx",He=je+"face-image_template.xlsx",Ke="/login",Ye="/dashboard",qe="/cards",We="/card/add",Je="/card/edit",Ze="/card/detail",Xe="/card/import",Qe="/setting",et="/reflection-status",tt="/notice-list",at="/log",st="/gates",rt="/confirm-setting",ot="/gate/edit",nt="/gate-lock/add-user",it="/gate-lock/add-group",lt="/gate-lock/add",ct="/gate-lock/edit",ut="/gate-lock/detail",dt="/gate/detail",gt="/gate/user",pt="/gate/gate-group",mt="/gate/user-group",ft="/groups",ht="/group/detail",vt="/group/add",bt="/group/edit",yt="/group/group-gate",It="/group/group-user",xt="/personal",Ct="/control-panel",wt="/control-panel/detail",kt="/control-panel/add",St="/control-panel/edit",_t="/user",Pt="/user/add",Mt="/user/edit",Lt="/user/group",Dt="/setting/group",Gt="/user/group-gate",At="/user/detail",Rt="/in-room-management",Tt="/in-room-management/room",Et="/in-room-management/user",Ot=M+P+"/pcode",Vt="/safie/relations/gate",Ut="/tbeye/relations/gate",$t="/external",Nt="/change-password",Ft="/group-list-modal",jt="/group-modal-add",Bt="/face-authentication",zt="Google",Ht="SAML",Kt="Apple",Yt=M+P+"/login/method",qt=M+P+"/owner",Wt=25,Jt=25,Zt="編集",Xt="削除",Qt="入力したパラメーターが誤っています。入力内容をご確認ください。",ea="アクセス情報が不正です。ログインし直してからやり直してください。",ta="アクセス情報が不正です。ログインし直してからやり直してください。",aa="該当するデーターがありません。",sa="対象のgateId, 対象のユーザーIDかゲートIDが存在しません。入力内容をご確認ください。",ra="カレンダーの設定に失敗しました。再度やり直してください。",oa="連続解錠時間の更新に失敗しました。再度やり直してください。",na="既に同じ曜日の連続解錠時間が登録されてます。",ia="アクセス情報が不正です。ログインし直してからやり直してください",la="入力されたユーザーIDは既に使用されています。他のユーザーIDを入力してください。",ca="該当するメールアドレス・ユーザーは登録済みです。",ua="Attoユーザーに指定したユーザーは既に登録済みです。別のユーザーを指定して再度お試しください。",da="選択された通行権限グループは既に使用されています。選択内容をご確認ください。",ga="対象のユーザーは入力期間の通行権限を既に持っています。入力内容をご確認ください。",pa="ゲート名が既に使用されてます。入力内容をご確認ください。",ma="対象の日付に休日設定が既にされてます。入力内容をご確認ください。",fa="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",ha="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",va="登録上限を超えたため通行可能時間帯を登録できません。
※登録上限が9件までです。",ba="アクセス情報が不正です。ログインし直してからやり直してください。",ya="{{所属名}}にユーザーが既に登録されています。",Ia="選択されたユーザの通行権限グループに含まれる制御盤ゲートが、この通行権限グループにも登録されております。通行可能時間設定が重複してしまうため登録できません。",xa="選択された通行権限グループに含まれる制御盤ゲートが、既に別の通行権限グループにも登録されております。通行可能時間設定が重複してしまうため登録できません。",Ca="ゲートに紐づくカードの上限を超えるため、登録/更新ができません。
通行権限グループを確認してください。",wa="情報の取得に失敗しました。しばらく経ってからやり直してください。",ka="情報の登録に失敗しました。しばらく経ってからやり直してください。",Sa="情報の更新に失敗しました。しばらく経ってからやり直してください。",_a="削除に失敗しました。しばらく経ってからやり直してください。",Pa="サーバメンテナンス中です。しばらく経ってからやり直してください。",Ma="システム管理者にお問い合わせください。",La="通行可能時間帯設定が追加されました。",Da="通行可能時間帯設定が編集されました。",Ga="カード番号が追加されました。",Aa="エラーが起こりました。システム管理者にお問い合わせください。",Ra="ADD_PASSABLE_SUCCESS",Ta="ユーザーが編集されました。",Ea="ユーザーが追加されました。",Oa="ゲートが追加されました。",Va="エラーが起こりました。システム管理者にお問い合わせください。",Ua="通行権限グループが追加されました。",$a="通行権限グループが編集されました。",Na="ゲートが編集されました。",Fa="個人コードが編集されました。",ja="設定が編集されました。",Ba="通知設定が削除されました。",za="通知設定が追加されました。",Ha="通知設定が編集されました。",Ka="スマートフォンが編集されました。",Ya="選択項目が削除されました。",qa="選択項目が削除されました。",Wa="照合ログが編集されました。",Ja="照合ログが初期化しました。",Za="カレンダーの設定を行いました。",Xa="所属が追加されました。",Qa="所属が編集されました。",es="制御盤が追加されました。",ts="制御盤を更新しました。",as="開始/終了の設定した時間を確認してください。",ss="カード番号は必須です。",rs="個人コードは必須です",os="カード番号は半角英数字を組み合わせた4文字以上20文字以内で入力してください。",ns="テンキーは半角数字を4文字以上20文字以内で入力してください。",is="ユーザーIDは半角英数字で4文字以上96文字以内で設定してください。",ls="通行権限グループ名は64文字以内で入力してください。",cs="入力したパラメーターが誤っています。入力内容をご確認ください。",us="入力したパラメーターが誤っています。入力内容をご確認ください。",ds="ユーザーIDは半角英数字で4文字以上96文字以内で設定してください。",gs="ログインパスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください。",ps="制御盤モデルを選択してください。",ms="ユーザーが 追加されました。ユーザーと通行権限グループの紐づけに失敗しています。
また、カードの紐づけ、期限付き解錠可能ゲートの登録に失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME
登録失敗ゲート名:GATE_NAME
登録失敗カード番号:CARD_NAME
",fs="ユーザーが 編集されました。ユーザーと通行権限グループの紐づけに失敗しています。
また、カードの紐づけ、期限付き解錠可能ゲートの登録に失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME
登録失敗ゲート名:GATE_NAME
登録失敗カード番号:CARD_NAME
",hs="ユーザーが 追加されました。 ユーザーと通行権限グループの紐づけに失敗しています。
ユーザー編集より、ユーザーと通行権限グループの確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME",vs="ユーザーが 編集されました。 ユーザーと通行権限グループの紐づけに失敗しています。
ユーザー編集より、ユーザーと通行権限グループの確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME",bs="ユーザーが 追加されました。
すでに解錠可能なゲートな為、期限付き解錠可能ゲートは登録できません
登録失敗ゲート名:GATE_NAME",ys="ユーザーが 編集されました。
すでに解錠可能なゲートな為、期限付き解錠可能ゲートは登録できません
登録失敗ゲート名:GATE_NAME",Is="ユーザーが 追加されました。ユーザーとカードの紐づけに失敗しています。
ユーザー編集より、カードの確認をしてください。
登録失敗カード番号:CARD_NAME",xs="ユーザーが 編集されました。ユーザーとカードの紐づけに失敗しています。
ユーザー編集より、カードの確認をしてください。
登録失敗カード番号:CARD_NAME",Cs="ユーザーが 追加されました。カードの紐づけ、期限付き解錠可能ゲートの登録に失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗ゲート名:GATE_NAME
登録失敗カード番号:CARD_NAME ",ws="ユーザーが 編集されました。カードの紐づけ、期限付き解錠可能ゲートの登録に失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗ゲート名:GATE_NAME
登録失敗カード番号:CARD_NAME ",ks="ユーザーが 追加されました。ユーザーと通行権限グループの紐づけに失敗しています。
また、カードの紐づけに失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME
登録失敗カード番号:CARD_NAME ",Ss="ユーザーが 編集されました。ユーザーと通行権限グループの紐づけに失敗しています。
また、カードの紐づけに失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME
登録失敗カード番号:CARD_NAME ",_s="ユーザーが 追加されました。ユーザーと通行権限グループの紐づけに失敗しています。
また、期限付き解錠可能ゲートの登録に失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME
登録失敗ゲート名:GATE_NAME ",Ps="ユーザーが 編集されました。ユーザーと通行権限グループの紐づけに失敗しています。
また、期限付き解錠可能ゲートの登録に失敗しています。
ユーザー編集より、再度確認をしてください。
別の通行可能時間帯が設定されている通行権限グループが複数ある場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME
登録失敗ゲート名:GATE_NAME ",Ms=" ゲートが編集されました。
通行権限グループとゲートの紐づけに失敗しています。
別の通行可能時間帯が設定されている通行権限グループを複数紐づけている場合、追加することができません。
登録失敗通行権限グループ名:GROUP_NAME
",Ls=" アンチパスバック設定が変更されました。
ユーザーの入退室状態をリセットしますか?",Ds="0",Gs="1",As="2",Rs="3",Ts="4",Es="5",Os="6",Vs=0,Us=1,$s=2,Ns="registered",Fs="desc",js="asc",Bs=a("2f62"),zs="alliboard",Hs={auth:{isLoggedIn:!1,isLoginChallenge:!1,accessToken:null,refreshToken:null},user:{name:null}};localStorage.getItem(zs)&&(Hs=JSON.parse(localStorage.getItem(zs)||""));var Ks=Object.assign(Hs),Ys=function(){return Ks.user},qs=a("fc60"),Ws=function(e,t){e.federatedLoginService=t},Js=function(e,t){e.user=t},Zs=function(e){e.auth.isLoggedIn=!1,e.auth.accessToken=null,e.auth.refreshToken=null,e.user.name=""},Xs=function(e){e.subscribe((function(e,t){var a={auth:t.auth,user:t.user};localStorage.setItem(zs,JSON.stringify(a)),"CLEAR_ALL_DATA"===e.type&&localStorage.removeItem(zs)}))},Qs=[Xs];f["a"].use(Bs["a"]);var er=new Bs["a"].Store({state:Ks,getters:r,actions:qs,mutations:o,plugins:Qs}),tr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("card-list-template",{attrs:{loading:e.loading,dataCards:e.dataCards,cardTotalCount:e.cardTotalCount,page:e.currPage,perPage:e.perPage,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageCsvXlsx:e.errorMessageCsvXlsx,showProgressExportCSV:e.showProgressExportCSV,showModalImport:e.showModalImport,isShowViewCSV:e.isShowViewCSV,showProgressImport:e.showProgressImport,successItemImport:e.successItemImport,totalDataRowImport:e.totalDataRowImport,errorMessageImport:e.errorMessageImport,isFinishProcess:e.isFinishProcess,progressCsvXlsx:e.progressCsvXlsx,sheetUserName:e.sheetUserName,successItemSheet2:e.successItemSheet2,progressSheet2:e.progressSheet2,totalDataRowSheet2:e.totalDataRowSheet2,sheet2Name:e.sheetGroupName,typeAction:e.typeAction,showProgress:e.showProgress,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,progress:e.progress,isFinishProcessEnable:e.isFinishProcessEnable,typeConfirm:e.typeConfirm,showModalProcess:e.showModalProcess,showModalConfirmEmail:e.showModalConfirmEmail,showConfirm:e.showConfirm,isGetDataList:e.isGetDataList,isHasLowerCaseCardNumberCSV:e.isHasLowerCaseCardNumberCSV,isHasLowerCaseCardNumberExcel:e.isHasLowerCaseCardNumberExcel},on:{changePerPage:function(t){return e.changePerPage(t)},clickAddCard:function(t){return e.clickAddCard(t)},changePage:function(t){return e.changePage(t)},"search-card":function(t){return e.searchCard(t)},clickCardDetail:function(t){return e.clickCardDetail(t)},closeImportCSV:function(t){return e.closeImportCSV()},clickImportCSV:function(t){return e.clickImportCSV(t)},clickExportCSV:function(t){return e.clickExportCSV(t)},closeModalProcessCSV:function(t){return e.closeModalProcessCSV(t)},clickExportExcel:function(t){return e.clickExportExcel(t)},clickImportExcel:function(t){return e.clickImportExcel(t)},closeModalProgressImport:function(t){return e.closeModalProgressImport()},showDialogImport:function(t){return e.showDialogImport(t)},clickEditCard:function(t){return e.clickEditCard(t)},"click-pcodes-action":function(t){return e.clickPCodesAction(t)},closeDialogEnable:function(t){return e.closeDialogEnable()},showDialogConfirm:function(t){return e.showDialogConfirm(t)},"close-dialog-confirm":function(t){return e.closeDialogConfirm()},"show-only-isVaild":function(t){return e.ShowOnlyIsVaild(t)},"close-dialog-check-card-csv":function(t){return e.closeDialogCheckCardCSV()},"accept-dialog-check-card-csv":function(t){return e.excuteImportCsv()},"close-dialog-check-card-excel":function(t){return e.closeDialogCheckCardExcel()},"accept-dialog-check-card-excel":function(t){return e.excuteImportExcel()},clickCheckBoxExportUserInfoCSV:function(t){return e.clickCheckBoxExportUserInfoCSV()},clickConfirmEmail:function(t){return e.clickConfirmEmail(t)}}})},ar=[],sr=(a("4de4"),a("c740"),a("4160"),a("a15b"),a("d81d"),a("fb6a"),a("a434"),a("4ec9"),a("b64b"),a("ac1f"),a("3ca3"),a("466d"),a("5319"),a("1276"),a("498a"),a("5cc6"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ca91"),a("25a1"),a("cd26"),a("3c5d"),a("2954"),a("649e"),a("219c"),a("170b"),a("b39a"),a("72f7"),a("159b"),a("ddb0"),a("2b3d"),a("3835")),rr=a("b85c"),or=(a("96cf"),a("1da1")),nr=a("1b40"),ir=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table allig-user-table"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("div",{staticClass:"container-user"},[a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{xl:"4",sm:"6"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search",attrs:{disabled:e.isGetDataList,searchTargetItems:e.searchTargetItems,title:"選択項目にチェックして検索"},on:{search:function(t){return e.$emit("search-card",t)}}})],1)],1)],1)]),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-1"},[a("v-menu",{attrs:{"open-on-hover":"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"btn-primary"},"v-btn",r,!1),s),[e._v("\n カード登録\n ")])]}}])},[e._v(" "),a("v-list",[a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("clickAddCard")}}},[a("v-list-item-title",[e._v("カード登録")])],1),e._v(" "),e.authority.isAdmin?a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",!0)}}},[a("v-list-item-title",[e._v("一括登録")])],1):e._e(),e._v(" "),e.authority.isAdmin?a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",!1)}}},[a("v-list-item-title",[e._v("ユーザーも併せて一括登録")])],1):e._e()],1)],1)],1),e._v(" "),e.authority.isAdmin?a("div",{staticClass:"text-center mr-4"},[a("action-button",{attrs:{text:"アクション ▼","action-items":e.actionItems,disabled:0===e.selectedpCodeIds.length},on:{"click-enable":function(t){return e.$emit("showDialogConfirm",{data:e.selectedpCodeIds,type:0})},"click-disable":function(t){return e.$emit("showDialogConfirm",{data:e.selectedpCodeIds,type:1})}}})],1):e._e()])],1)],1)],1),e._v(" "),a("v-spacer"),e._v(" "),a("card-list-table",{attrs:{isGetDataList:e.isGetDataList,cardTotalCount:e.cardTotalCount,dataCards:e.dataCards,page:e.page,loading:e.loading,perPage:e.perPage,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,isFinishProcessEnable:e.isFinishProcessEnable,authority:e.authority},on:{clickCardDetail:function(t){return e.$emit("clickCardDetail",t)},"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-pcodes":function(t){e.selectedpCodeIds=t},showDialogConfirm:function(t){return e.$emit("showDialogConfirm",t)},"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},clickEditCard:function(t){return e.$emit("clickEditCard",t)}}})],1),e._v(" "),a("card-import",{attrs:{showModalImport:e.showModalImport,showProgressExportCSV:e.showProgressExportCSV,progressCsvXlsx:e.progressCsvXlsx,errorMessageCsvXlsx:e.errorMessageCsvXlsx,showProgressImport:e.showProgressImport,successItemImport:e.successItemImport,totalDataRowImport:e.totalDataRowImport,errorMessageImport:e.errorMessageImport,isFinishProcess:e.isFinishProcess,sheetUserName:e.sheetUserName,sheet2Name:e.sheet2Name,progressSheet2:e.progressSheet2,successItemSheet2:e.successItemSheet2,totalDataRowSheet2:e.totalDataRowSheet2,isShowViewCSV:e.isShowViewCSV,typeConfirm:e.typeConfirm,showModalProcess:e.showModalProcess,showModalConfirmEmail:e.showModalConfirmEmail},on:{clickExportCSV:function(t){return e.$emit("clickExportCSV",t)},closeModalProcessCSV:function(t){return e.$emit("closeModalProcessCSV",t)},closeImportCSV:function(t){return e.$emit("closeImportCSV",t)},clickImportCSV:function(t){return e.$emit("clickImportCSV",t)},clickExportExcel:function(t){return e.$emit("clickExportExcel",t)},clickImportExcel:function(t){return e.$emit("clickImportExcel",t)},closeModalProgressImport:function(t){return e.$emit("closeModalProgressImport",t)},clickConfirmEmail:function(t){return e.$emit("clickConfirmEmail",t)},clickCheckBoxExportUserInfoCSV:function(t){return e.$emit("clickCheckBoxExportUserInfoCSV",t)}}}),e._v(" "),a("Modal",{attrs:{title:0===e.typeAction?"カードを有効化":"カードを無効化",text:0===e.typeAction?"チェックしたカードを有効化します。":"チェックしたカードを無効化します。",smallScreen:"600",className:"common-modal"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){return e.$emit("close-dialog-confirm")}}}),e._v(" "),a("success-button",{staticClass:"ml-2",attrs:{text:"OK"},on:{click:function(t){return e.$emit("click-pcodes-action")}}})]},proxy:!0}]),model:{value:e.isConfirmAction,callback:function(t){e.isConfirmAction=t},expression:"isConfirmAction"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[0===e.typeAction?a("v-card-title",{staticClass:"background-color-green"},[e._v("カードを有効化")]):1===e.typeAction?a("v-card-title",{staticClass:"background-color-green"},[e._v("カードを無効化")]):e._e(),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0&&0===e.typeAction?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を有効化しました。")]):e._e(),e._v(" "),e.successItemProcess>0&&1===e.typeAction?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を無効化しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[0===e.typeAction?a("span",{staticClass:"error-box-title"},[e._v("有効化失敗")]):1===e.typeAction?a("span",{staticClass:"error-box-title"},[e._v("無効化失敗")]):e._e(),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcessEnable?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeDialogEnable")}}})],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isHasLowerCaseCardNumberCSV,callback:function(t){e.isHasLowerCaseCardNumberCSV=t},expression:"isHasLowerCaseCardNumberCSV"}},[a("v-card",{staticClass:"modal-export"},[a("v-card-title",{staticClass:"modal-title",attrs:{color:"green"}},[e._v("カード登録")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n カード番号に半角英字の小文字が含まれております。"),a("br"),e._v("\n 小文字が含まれているとカードが正常に読み込まれません。"),a("br"),e._v("\n 小文字が含まれているかを確認してください。\n ")])])]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("close-dialog-check-card-csv")}}},[e._v("\n 見直す\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary btn-red",attrs:{outlined:""},on:{click:function(t){return e.$emit("accept-dialog-check-card-csv")}}},[e._v("\n 小文字が含まれていても登録する\n ")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isHasLowerCaseCardNumberExcel,callback:function(t){e.isHasLowerCaseCardNumberExcel=t},expression:"isHasLowerCaseCardNumberExcel"}},[a("v-card",{staticClass:"modal-export"},[a("v-card-title",{staticClass:"modal-title",attrs:{color:"green"}},[e._v("カード登録")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n カード番号に半角英字の小文字が含まれております。"),a("br"),e._v("\n 小文字が含まれているとカードが正常に読み込まれません。"),a("br"),e._v("\n 小文字が含まれているかを確認してください。\n ")])])]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("close-dialog-check-card-excel")}}},[e._v("\n 見直す\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary btn-red",attrs:{outlined:""},on:{click:function(t){return e.$emit("accept-dialog-check-card-excel")}}},[e._v("\n 小文字が含まれていても登録する\n ")])],1)],1)],1)],1)],1)],1)},lr=[],cr=(a("a9e3"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-camcel-button"},[a("v-btn",{staticClass:"text-bold btn-secondary",attrs:{color:"green darken-1",outlined:"",disabled:e.disabled},on:{click:function(t){return e.$emit("click")}}},[e._v("\n "+e._s(e.text)+"\n ")])],1)}),ur=[],dr=f["a"].extend({name:"CancelButton",props:{text:{type:String,default:""},disabled:{type:Boolean,default:!1}}}),gr=dr,pr=(a("0300"),a("8336")),mr=Object(I["a"])(gr,cr,ur,!1,null,"4a727eb2",null),fr=mr.exports;C()(mr,{VBtn:pr["a"]});var hr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isPageLog?a("div",{staticClass:"allig-searchbox row"},[a("v-col",[a("v-text-field",{staticClass:"input-search-box included",attrs:{color:"gray",label:e.title,"single-line":"","hide-details":"",solo:"",disabled:e.disabled,"prepend-inner-icon":"mdi-magnify"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)},click:e.clickShowCustomSearch},scopedSlots:e._u([{key:"append",fn:function(){return[a("v-btn",{staticClass:"included",attrs:{icon:"",top:""},on:{click:function(){e.showCustomSearch=!e.showCustomSearch}}},[a("v-icon",[e._v("mdi-menu-down")])],1)]},proxy:!0}],null,!1,3724487459),model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("v-btn",{ref:"btnSearch",staticClass:"btn-secondary btn-search-box btnSearch",attrs:{disabled:e.disabled,outlined:""},on:{click:function(t){return e.$emit("search",{text:e.text,targets:e.targets})}}},[e._v("\n 検索\n ")])],1),e._v(" "),e.showCustomSearch?a("v-card",{directives:[{name:"click-outside",rawName:"v-click-outside",value:{handler:e.onClickOutsideCustomSearch,include:e.included},expression:"{ handler: onClickOutsideCustomSearch, include: included}"}],staticClass:"allig-custom-search",attrs:{color:"white"}},[a("v-card-text",{staticClass:"mt-3 mb-3 ml-3 mr-3"},[a("div",{staticClass:"font-weight-black"},[e._v("\n 検索対象: \n ")]),e._v(" "),a("div",{staticClass:"font-weight-black"},[a("v-radio-group",{staticClass:"m0 p0",attrs:{row:"","hide-details":"auto"},on:{change:e.ChangeSearch},model:{value:e.typeSearch,callback:function(t){e.typeSearch=t},expression:"typeSearch"}},[a("v-radio",{staticClass:"radio-item",attrs:{color:"green-primary",label:"絞込情報1",value:"0"}}),e._v(" "),a("v-radio",{staticClass:"radio-item",attrs:{color:"green-primary",label:"絞込情報2",value:"1"}})],1)],1),e._v(" "),"0"===e.typeSearch?a("div",{staticClass:"d-flex flex-wrap"},e._l(e.items,(function(t){return a("v-checkbox",{key:t.value,staticClass:"mr-5 allig-custom-search-checkbox",attrs:{label:t.label,value:t.value,color:"grey",dense:"","hide-details":"",disabled:t.isDisabled},model:{value:e.targets,callback:function(t){e.targets=t},expression:"targets"}})})),1):e._e(),e._v(" "),"1"===e.typeSearch?a("div",{staticClass:"d-flex flex-wrap"},e._l(e.itemsTwo,(function(t){return a("v-checkbox",{key:t.value,staticClass:"mr-5 allig-custom-search-checkbox",attrs:{label:t.label,value:t.value,color:"grey",dense:"","hide-details":"",disabled:t.isDisabled},model:{value:e.targets,callback:function(t){e.targets=t},expression:"targets"}})})),1):e._e()])],1):e._e()],1):a("div",{staticClass:"allig-searchbox row"},[a("v-col",[a("v-text-field",{staticClass:"input-search-box",attrs:{color:"gray",label:e.title,"single-line":"","hide-details":"",solo:"",disabled:e.disabled,"prepend-inner-icon":"mdi-magnify"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},scopedSlots:e._u([{key:"append",fn:function(){return[a("v-btn",{staticClass:"included",attrs:{icon:"",top:""},on:{click:function(){e.showCustomSearch=!e.showCustomSearch}}},[a("v-icon",[e._v("mdi-menu-down")])],1)]},proxy:!0}]),model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1),e._v(" "),e.isSearch?a("v-col",{attrs:{cols:"2"}},[a("v-btn",{ref:"btnSearch",staticClass:"btn-secondary btn-search-box btnSearch",attrs:{disabled:e.disabled,outlined:""},on:{click:function(t){return e.$emit("search",{text:e.text,targets:e.targets})}}},[e._v("\n 検索\n ")])],1):e._e(),e._v(" "),e.showCustomSearch?a("v-card",{directives:[{name:"click-outside",rawName:"v-click-outside",value:{handler:e.onClickOutsideCustomSearch,include:e.included},expression:"{ handler: onClickOutsideCustomSearch, include: included}"}],staticClass:"allig-custom-search",attrs:{color:"white"}},[a("v-card-text",{staticClass:"mt-3 mb-3 ml-3 mr-3"},[a("div",{staticClass:"font-weight-black"},[e._v("\n 検索対象: \n ")]),e._v(" "),a("div",{staticClass:"d-flex flex-wrap"},e._l(e.searchTargetItems,(function(t){return a("v-checkbox",{key:t.value,staticClass:"mt-1 mr-10 allig-custom-search-checkbox",attrs:{label:t.label,value:t.value,color:"grey",dense:"","hide-details":"",disabled:t.isDisabled},model:{value:e.targets,callback:function(t){e.targets=t},expression:"targets"}})})),1)])],1):e._e()],1)},vr=[],br=a("53ca"),yr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-success-button"},[a("v-btn",{staticClass:"text-color-white text-bold",attrs:{color:"green",elevation:"0",disabled:e.disabled,outlined:e.outlined},on:{click:function(t){return e.$emit("click",t)}}},[e._v("\n "+e._s(e.text)+"\n ")])],1)},Ir=[],xr=f["a"].extend({name:"SuccessButton",props:{text:{type:String,default:""},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}}}),Cr=xr,wr=(a("5d16"),Object(I["a"])(Cr,yr,Ir,!1,null,"283298f6",null)),kr=wr.exports;C()(wr,{VBtn:pr["a"]});var Sr=f["a"].extend({name:"Searchbox",components:{SuccessButton:kr},props:{searchTargetItems:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},isPageLog:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1},title:{type:String,default:""},goBack:{type:String,default:""},inputSearch:{type:String,default:""}},data:function(){return{text:"",showCustomSearch:!1,targets:[],items:[],itemsTwo:[],typeSearch:"0"}},watch:{goBack:function(e){""!==e&&(void 0!==Object(br["a"])(localStorage.gateName)&&"undefined"!==localStorage.gateName&&""!==localStorage.gateName&&"/groups"===this.goBack&&(this.text=localStorage.gateName),void 0!==Object(br["a"])(localStorage.userName)&&"undefined"!==localStorage.userName&&""!==localStorage.userName&&"/user"===this.goBack&&(this.text=localStorage.userName))},inputSearch:function(e){this.text=e}},computed:{},mounted:function(){this.targets=this.searchTargetItems.map((function(e){return e.value}));var e=this.searchTargetItems;this.isPageLog&&(this.ChangeSearch("0"),this.items=e.slice(0,5),this.itemsTwo=e.slice(5,8))},methods:{clickShowCustomSearch:function(e){this.showCustomSearch=!0},ChangeSearch:function(e){this.targets=[],"0"===e?this.targets.push("userName","gateName","logLabel","userId","deviceId"):this.targets.push("email","option1","option2")},onClickOutsideCustomSearch:function(){this.showCustomSearch&&(this.showCustomSearch=!1)},included:function(){return[document.querySelector(".included")]},search:function(e){this.disabled||13!==e.keyCode||this.$emit("search",{text:this.text,targets:this.targets})}}}),_r=Sr,Pr=(a("0190"),a("b0af")),Mr=a("99d9"),Lr=a("ac7c"),Dr=a("62ad"),Gr=a("132d"),Ar=a("67b6"),Rr=a("43a6"),Tr=a("8654"),Er=a("269a"),Or=a.n(Er),Vr=a("a293"),Ur=Object(I["a"])(_r,hr,vr,!1,null,"d5e5ffc2",null),$r=Ur.exports;C()(Ur,{VBtn:pr["a"],VCard:Pr["a"],VCardText:Mr["b"],VCheckbox:Lr["a"],VCol:Dr["a"],VIcon:Gr["a"],VRadio:Ar["a"],VRadioGroup:Rr["a"],VTextField:Tr["a"]}),Or()(Ur,{ClickOutside:Vr["a"]});var Nr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-card-table"},[a("v-container",{staticClass:"pa-0"},[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1),e._v(" "),a("v-row",{staticClass:"mt-3 border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-8 mb-3",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.cardTotalCount}}),e._v(" "),a("v-spacer"),e._v(" "),a("CheckBoxValid",{attrs:{isVaildOnly:e.isVaildOnly,title:"有効なカードのみ表示"},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)}}}),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption mr-8",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",{staticClass:"mb-3"},[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),a("v-row",{staticClass:"pt-0 pb-0 mt-0"},[a("v-container",{staticClass:"pt-0"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.isGetDataList,isVaildOnly:e.isVaildOnly},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},input:function(t){return e.CheckColumn(t)}},model:{value:e.selectedDisplayOption,callback:function(t){e.selectedDisplayOption=t},expression:"selectedDisplayOption"}})],1)],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table",attrs:{"must-sort":"",headers:e.headers,items:e.dataCards,"items-per-page":e.perPage,"item-key":"pCodeId","no-data-text":"データーはありません","loading-text":"データを読み込中です",loading:e.isGetDataList,"hide-default-footer":"","show-select":e.authority.isAdmin,"custom-sort":e.customSort},scopedSlots:e._u([{key:"item.pCodeId",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.pCodeId},on:{click:function(t){return e.$emit("clickCardDetail",s.pCodeId)}}})]}},{key:"item.userId",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.userId))])]}},{key:"item.userName",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.userName))])]}},{key:"item.type",fn:function(t){var s=t.item;return[0===s.type?a("span",[e._v(" NFCカード ")]):1===s.type?a("span",[e._v("テンキー")]):e._e()]}},{key:"item.registered",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.convertDate(s.registered)))])]}},{key:"item.updated",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.convertDate(s.updated)))])]}},{key:"item.isValid",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isValid?"有効":"無効")+"\n ")]}},{key:"item.icons",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({class:{"background-disabled-color":!e.authority.isAdmin},attrs:{disabled:!e.authority.isAdmin,icon:""},on:{click:function(t){return e.$emit("showDialogConfirm",{data:[s.pCodeId],type:!0===s.isValid?1:0})}}},"v-btn",o,!1),r),[s.isValid?a("v-icon",{class:{"green--text":e.authority.isAdmin}},[e._v("mdi-card-account-details-star-outline")]):a("v-icon",[e._v("mdi-card-account-details-outline")])],1)]}}],null,!0)},[e._v("\n "+e._s(s.isValid?"有効":"無効")+"\n ")]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditCard",s.pCodeId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("カード編集")])])]}}],null,!0),model:{value:e.cardSelected,callback:function(t){e.cardSelected=t},expression:"cardSelected"}}),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.cardTotalCount,disabled:e.isGetDataList},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.cardTotalCount/e.perPage),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},Fr=[],jr=(a("2532"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"info-item"},[a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"3"}},[a("v-subheader",[e._v(e._s(e.title))])],1):e._e(),e._v(" "),a("v-col",{staticClass:"text-body-2",attrs:{"align-self":"center"}},[e._t("text",[e._v("\n "+e._s(e.text)+"\n ")])],2)],1)],1)}),Br=[],zr=f["a"].extend({name:"FormInput",props:{title:{type:String,default:""},text:{type:String,default:""}}}),Hr=zr,Kr=a("0fd9"),Yr=a("e0c7"),qr=Object(I["a"])(Hr,jr,Br,!1,null,null,null),Wr=qr.exports;C()(qr,{VCol:Dr["a"],VRow:Kr["a"],VSubheader:Yr["a"]});var Jr=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"input-form"},["vertical"===e.isShow?a("v-row",{staticClass:"col-vertical"},[a("v-col",{attrs:{cols:"12"}},[a("div",{staticClass:"title-display-block"},[a("span",{domProps:{innerHTML:e._s(e.title)}}),e._v(" "),""!==e.helpText?a("help-icon",{staticClass:"ml-2",attrs:{text:e.helpText},on:{click:function(t){return e.$emit("click-help",t)}}}):e._e()],1)]),e._v(" "),a("v-col",{attrs:{cols:"12"}},["number"===e.inputType?a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:"number",outlined:"",dense:"",clearable:e.clearable,disabled:e.disabled,rules:e.rules,min:"1","append-icon":e.appendIcon,autocomplete:"off"},on:{"click:append":function(t){return e.$emit("click-append-icon",t)},change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),"text"===e.inputType?a("v-text-field",{attrs:{color:"green","hide-details":"auto",type:e.textType,outlined:"",dense:"",clearable:e.clearable,disabled:e.disabled,rules:e.rules,"append-icon":e.appendIcon,autocomplete:"off"},on:{"click:append":function(t){return e.$emit("click-append-icon",t)},change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),"password"===e.inputType?a("v-text-field",{attrs:{"append-icon":e.showIconEye?"mdi-eye":"mdi-eye-off",label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:e.showIconEye?"text":"password",outlined:"",dense:"",disabled:e.disabled,rules:e.rules,autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},on:{"click:append":function(t){e.showIconEye=!e.showIconEye}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),"clearable"===e.inputType?a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:e.textType,outlined:"",dense:"",clearable:"",rules:e.rules,disabled:e.disabled,autocomplete:"off"},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"switch"===e.inputType?a("v-switch",{staticClass:"ml-1",class:e.$vuetify.breakpoint.mdAndUp?"mt-2":"mt-0",attrs:{color:"green","hide-details":"auto",inset:"",disabled:e.disabled,label:e.$vuetify.breakpoint.mdAndUp?e.innerValue?"ON":"OFF":e.innerValue?e.title+":ON":e.title+":OFF"},on:{change:function(t){return e.$emit("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"select"===e.inputType?a("v-autocomplete",{ref:"scroll-track-input",attrs:{items:e.selectItems,label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",outlined:"",dense:"",disabled:e.disabled,rules:e.rules,clearable:e.clearable,"no-data-text":"",autocomplete:"off",attach:e.isAttach},on:{change:function(t){return e.$emit("change-select",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"multi-select"===e.inputType?a("v-autocomplete",{attrs:{items:e.selectItems,label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",outlined:"",dense:"",multiple:"","small-chips":"",disabled:e.disabled,rules:e.rules,"no-data-text":"",autocomplete:"off",attach:e.isAttach},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"checkbox"===e.inputType?a("v-checkbox",{attrs:{label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",dense:"",disabled:e.disabled,rules:e.rules,"true-value":e.trueValue,"false-value":e.falseValue},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"file"===e.inputType?a("v-file-input",{attrs:{accept:e.accept,label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",dense:"",outlined:"",disabled:e.disabled,rules:e.rules,"prepend-icon":"","append-icon":"mdi-paperclip"},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),e._t("form")],2),e._v(" "),e._t("right-append")],2):a("v-row",[e.$vuetify.breakpoint.mdAndUp&&(e.title||""!==e.helpText)?a("v-col",{attrs:{cols:e.isCol}},[a("v-subheader",[a("span",{domProps:{innerHTML:e._s(e.title)}}),e._v(" "),""!==e.helpText?a("help-icon",{staticClass:"ml-2",attrs:{text:e.helpText},on:{click:function(t){return e.$emit("click-help",t)}}}):e._e()],1)],1):e._e(),e._v(" "),a("v-col",["number"===e.inputType?a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:"number",outlined:"",dense:"",clearable:e.clearable,disabled:e.disabled,rules:e.rules,min:"1","append-icon":e.appendIcon,autocomplete:"off"},on:{"click:append":function(t){return e.$emit("click-append-icon",t)},change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),"text"===e.inputType?a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:e.textType,outlined:"",dense:"",clearable:e.clearable,disabled:e.disabled,rules:e.rules,"append-icon":e.appendIcon,autocomplete:"off"},on:{"click:append":function(t){return e.$emit("click-append-icon",t)},change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)},blur:function(t){return e.$emit("blur",t)}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),"password"===e.inputType?a("v-text-field",{attrs:{"append-icon":e.showIconEye?"mdi-eye":"mdi-eye-off",label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:e.showIconEye?"text":"password",outlined:"",dense:"",disabled:e.disabled,rules:e.rules,autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},on:{"click:append":function(t){e.showIconEye=!e.showIconEye}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),"clearable"===e.inputType?a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:e.textType,outlined:"",dense:"",clearable:"",rules:e.rules,disabled:e.disabled,autocomplete:"off"},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"switch"===e.inputType?a("v-switch",{staticClass:"ml-1",class:e.$vuetify.breakpoint.mdAndUp?"mt-2":"mt-0",attrs:{color:"green","hide-details":"auto",inset:"",disabled:e.disabled,label:e.$vuetify.breakpoint.mdAndUp?e.innerValue?"ON":"OFF":e.innerValue?e.title+":ON":e.title+":OFF"},on:{change:function(t){return e.$emit("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"select"===e.inputType?a("v-autocomplete",{ref:"scroll-track-input",attrs:{items:e.selectItems,label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",outlined:"",dense:"",disabled:e.disabled,rules:e.rules,clearable:e.clearable,"no-data-text":"",autocomplete:"off",attach:e.isAttach},on:{change:function(t){return e.$emit("change-select",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"multi-select"===e.inputType?a("v-autocomplete",{attrs:{items:e.selectItems,label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",outlined:"",dense:"",multiple:"","small-chips":"",disabled:e.disabled,rules:e.rules,"no-data-text":"",autocomplete:"off","menu-props":{contentClass:e.classMore},attach:e.isAttach},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"checkbox"===e.inputType?a("v-checkbox",{attrs:{label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",dense:"",disabled:e.disabled,rules:e.rules,"true-value":e.trueValue,"false-value":e.falseValue},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"file"===e.inputType?a("v-file-input",{attrs:{accept:e.accept,label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",dense:"",outlined:"","truncate-length":"50",disabled:e.disabled,rules:e.rules,"prepend-icon":"","append-icon":"mdi-paperclip"},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"account-image-file"===e.inputType?a("v-file-input",{attrs:{accept:e.imageAccept,label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",dense:"",outlined:"","truncate-length":"50",disabled:e.disabled,rules:e.rules,"prepend-icon":"","append-icon":"mdi-file-account-outline"},on:{change:function(t){return e.$emit("change-image-file",t)}},scopedSlots:e._u([{key:"selection",fn:function(t){var s=t.text;return[a("v-chip",{attrs:{color:"primary",label:"",small:""}},[e._v(e._s(s))])]}}]),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),"text-plus"===e.inputType?a("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",type:e.textType,outlined:"",dense:"",clearable:e.clearable,disabled:e.disabled,rules:e.rules,"append-icon":e.appendIcon,autocomplete:"off"},on:{"click:append":function(t){return e.$emit("click-append-icon",t)},change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)},blur:function(t){return e.$emit("blur",t)}},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append"),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{small:"",icon:""},on:{click:function(t){return e.$emit("click-add-btn",t)}}},[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-icon",e._g(e._b({},"v-icon",r,!1),s),[e._v("\n mdi-plus\n ")])]}}],null,!1,1005057128)},[e._v(" "),a("span",[e._v(e._s(e.plusBtnTooltip.length>0?e.plusBtnTooltip:"追加"))])])],1)]},proxy:!0}],null,!0),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"switch-is-valid"===e.inputType?a("v-switch",{staticClass:"mt-2",attrs:{color:"green","hide-details":"auto",inset:"",disabled:e.disabled,label:!0===e.innerValue?"有効":"無効"},on:{change:function(t){return e.$emit("change",t)}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e(),e._v(" "),e._t("form")],2),e._v(" "),e._t("right-append")],2)],1)},Zr=[],Xr=a("ecb8"),Qr=f["a"].extend({name:"FormInput",components:{HelpIcon:Xr["a"]},props:{value:{type:[String,Boolean,Array,Number,File],default:void 0},title:{type:String,default:""},classMore:{type:String,default:""},isShow:{type:String,default:""},isCol:{type:String,default:"2"},label:{type:String,default:""},inputType:{type:String,default:"text"},textType:{type:String,default:"text"},selectItems:{type:Array,default:function(){return[]}},helpText:{type:String,default:""},disabled:{type:Boolean,default:!1},rules:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!1},isAttach:{type:Boolean,default:!1},trueValue:{type:[String,Boolean,Number],default:!0},falseValue:{type:[String,Boolean,Number],default:!1},accept:{type:String,default:"*.csv"},appendIcon:{type:String,default:function(){return""}},imageAccept:{type:String,default:".jpg,.jpeg,.png,.bmp,.tif"},plusBtnTooltip:{type:String,default:function(){return""}}},data:function(){return{showIconEye:!1}},computed:{innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}}),eo=Qr,to=(a("80a4"),a("c6a6")),ao=a("cc20"),so=a("23a7"),ro=a("b73d"),oo=a("3a2f"),no=Object(I["a"])(eo,Jr,Zr,!1,null,null,null),io=no.exports;C()(no,{VAutocomplete:to["a"],VBtn:pr["a"],VCheckbox:Lr["a"],VChip:ao["a"],VCol:Dr["a"],VFileInput:so["a"],VIcon:Gr["a"],VRow:Kr["a"],VSubheader:Yr["a"],VSwitch:ro["a"],VTextField:Tr["a"],VTooltip:oo["a"]});var lo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return"log"===e.type?a("div",[e.perPage>=0&&e.page>=0&&e.itemsLength>0?a("div",{staticClass:"allig-show-per-page text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[e._v("\n 全"+e._s(e.itemsLength)+"件中 1-"+e._s(Math.min(e.perPage,e.itemsLength))+"を表示\n ")]):a("div",{staticClass:"allig-show-per-page text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[e._v("\n 全0件中 0-0を表示\n ")])]):a("div",[e.perPage>=0&&e.page>=0&&e.itemsLength>0?a("div",{staticClass:"allig-show-per-page text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[e._v("\n 全"+e._s(e.itemsLength)+"件中 "+e._s((e.page-1)*e.perPage+1)+"-"+e._s(Math.min(e.page*e.perPage,e.itemsLength))+"を表示\n ")]):a("div",{staticClass:"allig-show-per-page text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[e._v("\n 全0件中 0-0を表示\n ")])])},co=[],uo=f["a"].extend({name:"SelectPerPage",props:{perPage:{type:Number,default:25},page:{type:Number,default:1},type:{type:String,default:""},itemsLength:{type:Number,required:!0}}}),go=uo,po=(a("bdbf"),Object(I["a"])(go,lo,co,!1,null,"4d2d8572",null)),mo=po.exports,fo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.pageLength>0?a("div",{staticClass:"allig-pagination"},[a("v-pagination",{attrs:{length:e.pageLength,disabled:e.disabled,color:"green","total-visible":"7"},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}})],1):e._e()},ho=[],vo=f["a"].extend({name:"Pagination",props:{value:{type:Number,default:1},pageLength:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},computed:{innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}}),bo=vo,yo=a("891e"),Io=Object(I["a"])(bo,fo,ho,!1,null,null,null),xo=Io.exports;C()(Io,{VPagination:yo["a"]});var Co=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-display-option"},[e.isShowOption?a("v-card",{directives:[{name:"click-outside",rawName:"v-click-outside",value:{handler:e.onClickOutsideOption,include:e.included},expression:"{ handler: onClickOutsideOption, include: included}"}],staticClass:"display-option-contents mr-0 ml-5 mt-1",attrs:{color:"white"}},[a("v-card-text",{staticClass:"pb-0"},[a("div",{staticClass:"font-weight-black"},[e._v("\n 表示項目: \n ")]),e._v(" "),a("div",{staticClass:"d-flex flex-wrap"},e._l(e.displayOptionItems,(function(t){return a("v-checkbox",{key:t.value,staticClass:"mt-1 mr-10 allig-custom-search-checkbox",attrs:{label:t.label,value:t.value,color:"grey",dense:"","hide-details":"",disabled:t.isDisabled},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}})})),1)]),e._v(" "),""===e.isLog||"gate"!==e.isLog&&"operation"!==e.isLog?e._e():a("v-card-text",{staticClass:"pt-0"},[a("div",{staticClass:"d-flex flex-wrap"},[a("div",{staticClass:"allig-per-page-select-page"},[a("v-row",[a("div",{staticClass:"mr-4 lable-page"},[e._v("\n ページことに表示する項目: \n ")]),e._v(" "),a("v-select",{staticClass:"input-search",attrs:{color:"gray","item-color":"gray","hide-details":"auto",outlined:"",dense:"",items:e.items,"item-text":"text","item-value":"value"},model:{value:e.perPageValue,callback:function(t){e.perPageValue=t},expression:"perPageValue"}})],1)],1)])])],1):e._e()],1)},wo=[],ko=f["a"].extend({name:"DisplayOption",props:{value:{type:Array,default:function(){return[]}},displayOptionItems:{type:Array,default:function(){return[]}},isShowOption:{type:Boolean},isVaildOnly:{type:Boolean,default:!0},isVaildOnlyShow:{type:Boolean,default:!0},isLog:{type:String,default:""}},data:function(){return{showOption:!1,perPage:100,items:[{text:"25 件",value:25},{text:"50 件",value:50},{text:"100 件",value:100},{text:"1000 件",value:1e3}]}},computed:{innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},perPageValue:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page-log",e)}},isValid:{get:function(){return this.isVaildOnly},set:function(e){this.$emit("show-only-isVaild",e)}}},methods:{onClickOutsideOption:function(){this.showOption&&(this.showOption=!1)},included:function(){return[document.querySelector(".included-option")]}}}),So=ko,_o=(a("79ea"),a("b974")),Po=Object(I["a"])(So,Co,wo,!1,null,"02b4096a",null),Mo=Po.exports;C()(Po,{VCard:Pr["a"],VCardText:Mr["b"],VCheckbox:Lr["a"],VRow:Kr["a"],VSelect:_o["a"]}),Or()(Po,{ClickOutside:Vr["a"]});var Lo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.page>0?a("div",{staticClass:"allig-select-per-page"},[a("v-row",{staticClass:"text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption",attrs:{"no-gutters":"",justify:"end"}},[a("div",{staticClass:"d-flex align-end allig-per-page-select"},[a("div",{staticClass:"mr-4 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[e._v("\n 表示件数: \n ")]),e._v(" "),a("v-select",{staticClass:"text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption pt-0",attrs:{color:"gray","item-color":"gray","hide-details":"",light:"",items:e.items,disabled:e.disabled},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}})],1)])],1):e._e()},Do=[],Go=f["a"].extend({name:"SelectPerPage",props:{value:{type:Number,default:25},perPageItems:{type:Array,default:[25,50,100]},disabled:{type:Boolean,default:!1},page:{type:Number,default:!1}},computed:{innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},items:{get:function(){return this.perPageItems.map((function(e){return{text:e,value:e}}))},set:function(){}}}}),Ao=Go,Ro=(a("f84d"),Object(I["a"])(Ao,Lo,Do,!1,null,"b77e7004",null)),To=Ro.exports;C()(Ro,{VRow:Kr["a"],VSelect:_o["a"]});var Eo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-text-link",on:{click:function(t){return e.$emit("click")}}},[e._v("\n "+e._s(e.text)+"\n")])},Oo=[],Vo=f["a"].extend({name:"TextLink",props:{text:{type:String,required:!0}}}),Uo=Vo,$o=(a("fc8c"),Object(I["a"])(Uo,Eo,Oo,!1,null,"bfd6d490",null)),No=$o.exports,Fo=a("c1df"),jo=a.n(Fo),Bo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-checkbox",{staticClass:"text-caption-checkbox mr-5",attrs:{label:e.title,color:"green",dense:"","hide-details":""},model:{value:e.isValid,callback:function(t){e.isValid=t},expression:"isValid"}})},zo=[],Ho=f["a"].extend({name:"isVaildOnly",components:{},props:{isVaildOnly:{type:Boolean,default:!0},title:{type:String,default:"有効なカードのみ表示"}},computed:{isValid:{get:function(){return this.isVaildOnly},set:function(e){this.$emit("show-only-isVaild",e)}}}}),Ko=Ho,Yo=Object(I["a"])(Ko,Bo,zo,!1,null,null,null),qo=Yo.exports;C()(Yo,{VCheckbox:Lr["a"]});var Wo=f["a"].extend({name:"CardListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No,CheckBoxValid:qo},watch:{cardSelected:function(e){this.$emit("select-pcodes",e.map((function(e){return e.pCodeId})))},isFinishProcessEnable:function(e){e&&(this.cardSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))}},props:{typeItems:{type:Array,default:function(){return[]}},cardTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataCards:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},isFinishProcessEnable:{type:Boolean,default:!1},authority:{type:Object,default:{}}},mounted:function(){"undefined"===typeof localStorage.displayOptionPCode?localStorage.setItem("displayOptionPCode",JSON.stringify(this.selectedDisplayOption)):this.selectedDisplayOption=JSON.parse(localStorage.displayOptionPCode)},computed:{headers:{get:function(){var e=[{text:"カード番号",align:"start",sortable:!0,width:"20%",value:"pCodeId"}];return this.selectedDisplayOption.includes("name")&&e.push({text:"名称",align:"start",sortable:!0,value:"name"}),this.selectedDisplayOption.includes("userId")&&e.push({text:"ユーザーID",align:"start",sortable:!0,value:"userId"}),this.selectedDisplayOption.includes("userName")&&e.push({text:"ユーザー名",align:"start",sortable:!0,value:"userName"}),this.selectedDisplayOption.includes("type")&&e.push({text:"カード種別",align:"start",sortable:!0,value:"type"}),this.selectedDisplayOption.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!0,value:"registered"}),this.selectedDisplayOption.includes("updated")&&e.push({text:"更新日",align:"start",sortable:!0,value:"updated"}),this.selectedDisplayOption.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!0,value:"isValid"}),e.push({text:"",align:"end",sortable:!1,width:"150px",value:"icons"}),e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{selectedDisplayOption:["pCodeId","userId","userName"],displayOptionItems:[{label:"カード番号",value:"pCodeId",isDisabled:!0},{label:"名称",value:"name"},{label:"ユーザーID",value:"userId"},{label:"ユーザー名",value:"userName"},{label:"カード種別",value:"type"},{label:"登録日",value:"registered"},{label:"更新日",value:"updated"},{label:"ステータス",value:"isValid"}],cardSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard}},methods:{CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]"}})],1)},sn=[],rn=f["a"].extend({name:"Breadcrumbs",props:{items:{type:Array,default:function(){return[]}}}}),on=rn,nn=a("2bc5"),ln=Object(I["a"])(on,an,sn,!1,null,null,null),cn=ln.exports;C()(ln,{VBreadcrumbs:nn["a"]});var un=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showModalConfirmEmail,callback:function(t){e.showModalConfirmEmail=t},expression:"showModalConfirmEmail"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green",staticStyle:{"font-size":"15px"}},[e._v("作成したユーザーのメールアドレスへ通知メールを送信しますか?")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.yesChoice()}}},[e._v("\r\n 送信する\r\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.noChoice()}}},[e._v("送信しない")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressExportCSV,callback:function(t){e.showProgressExportCSV=t},expression:"showProgressExportCSV"}},[a("v-card",{staticClass:"modal-export"},[a("v-card-title",{staticClass:"modal-title",attrs:{color:"green"}},[e._v(" CSVエクスポート")]),e._v(" "),a("div",{staticClass:"pa-5"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressCsvXlsx,callback:function(t){e.progressCsvXlsx=t},expression:"progressCsvXlsx"}},[a("strong",[e._v(e._s(Math.round(e.progressCsvXlsx))+"%")])])],1),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProcessCSV")}}},[e._v("\r\n OK\r\n ")])],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressImportCSV,callback:function(t){e.showProgressImportCSV=t},expression:"showProgressImportCSV"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._t("modal-title",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e._v("\r\n 登録データのアップロード\r\n "),!0===e.isFinishProcess&&""!==e.errorMessageCsvXlsx?a("v-icon",{attrs:{color:"white"},on:{click:function(t){return e.$emit("closeModalProgressImport")}}},[e._v("mdi-close")]):e._e()],1)])],2),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"row-message"},[""!==e.errorMessageCsvXlsx?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[a("div",{domProps:{innerHTML:e._s(e.errorMessageCsvXlsx)}})]):e._e()],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowImport>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressCsvXlsx,callback:function(t){e.progressCsvXlsx=t},expression:"progressCsvXlsx"}},[a("strong",[e._v(e._s(Math.round(e.progressCsvXlsx))+"%")])]),e._v(" "),e.successItemImport>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowImport)+"件中"+e._s(e.successItemImport)+"件をアップロードしました。")]):e._e(),e._v(" "),e.errorMessageImport.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("アップロード失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageImport,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgressImport")}}})],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgressImport")}}},[e._v("キャンセル")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressImportExcel,callback:function(t){e.showProgressImportExcel=t},expression:"showProgressImportExcel"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._t("modal-title",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e._v("\r\n 登録データのアップロード\r\n "),!0===e.isFinishProcess&&""!==e.errorMessageCsvXlsx?a("v-icon",{attrs:{color:"white"},on:{click:function(t){return e.$emit("closeModalProgressImport")}}},[e._v("mdi-close")]):e._e()],1)])],2),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"row-message"},[""!==e.errorMessageCsvXlsx?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[a("div",{domProps:{innerHTML:e._s(e.errorMessageCsvXlsx)}})]):e._e()],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowImport>0?a("v-card-text",{staticClass:"pa-4"},[e.sheetUserName?a("span",[e._v(e._s(e.sheetUserName)+":")]):e._e(),e._v(" "),a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressCsvXlsx,callback:function(t){e.progressCsvXlsx=t},expression:"progressCsvXlsx"}},[a("strong",[e._v(e._s(Math.round(e.progressCsvXlsx))+"%")])]),e._v(" "),e.successItemImport>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowImport)+"件中"+e._s(e.successItemImport)+"件をアップロードしました。")]):e._e(),e._v(" "),a("div",{staticStyle:{"padding-top":"13px"}},[e.sheet2Name?a("span",[e._v(e._s(e.sheet2Name)+":")]):e._e()]),e._v(" "),a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressSheet2,callback:function(t){e.progressSheet2=t},expression:"progressSheet2"}},[a("strong",[e._v(e._s(Math.round(e.progressSheet2))+"%")])]),e._v(" "),e.successItemSheet2>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowSheet2)+"件中"+e._s(e.successItemSheet2)+"件をアップロードしました。")]):e._e(),e._v(" "),e.errorMessageImport.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("アップロード失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageImport,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgressImport")}}})],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgressImport")}}},[e._v("キャンセル")])],1)],1)],1)],1),e._v(" "),a("Modal",{attrs:{title:e.isShowViewCSV?"一括登録(カードCSV) ":"ユーザーも併せて一括登録","no-footer":"",smallScreen:"1000px",className:"common-padding"},on:{close:function(t){return e.closeDialogImport()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowViewCSV?a("v-card",{staticClass:"modal-export"},[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n カードの登録とユーザーの紐づけを一括で登録するテンプレートファイルをダウンロードできます。"),a("br"),e._v("\r\n <本ファイルで設定可能なデーター>"),a("br"),e._v("\r\n カード(個人コード)の登録"),a("br")]),e._v(" "),a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickExportCSV",e.isCheckDataCSV)}}},[e._v("\r\n テンプレートのダウンロード\r\n ")]),e._v(" "),a("v-checkbox",{staticClass:"mt-5 checkBoxExportCardInfoCSV",attrs:{color:"grey",dense:"","hide-details":"",label:"カード情報を入れてダウンロード"},model:{value:e.isCheckDataCSV,callback:function(t){e.isCheckDataCSV=t},expression:"isCheckDataCSV"}})],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5 pt-0"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ユーザーの登録をCSVファイルを使用して、一括で実施することができます。"),a("br"),e._v("\r\n 登録するために必要なテンプレートCSVファイルは、”テンプレートのダウンロード”から取得して下さい。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("CSVファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:""},on:{click:function(t){return e.openFile()}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_csv"}},[e._v("\r\n ...\r\n "),a("input",{ref:"files",staticClass:"custom-file-input",staticStyle:{display:"none"},attrs:{type:"file",id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}})])])],1)],1)]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickImportCSV",{files:e.files})}}},[e._v("\r\n ファイルをインポート\r\n ")])],1)],1)],1):a("v-card",{staticClass:"modal-export"},[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n カードの登録とユーザーの紐づけを一括で登録するテンプレートファイルをダウンロードできます。"),a("br"),e._v("\r\n <本ファイルで設定可能なデーター>"),a("br"),e._v("\r\n カード(個人コード)の登録"),a("br"),e._v("\r\n カード(個人コード)とユーザーの紐づけ"),a("br"),e._v(" "),a("br"),e._v("\r\n <SMS認証サービス加入者のみ設定可能なデーター>"),a("br"),e._v("\r\n SMS認証の設定"),a("br"),e._v("\r\n 携帯電話番号の登録"),a("br")]),e._v(" "),a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickExportExcel",e.isCheckData)}}},[e._v("\r\n テンプレートのダウンロード\r\n ")]),e._v(" "),a("div",{staticClass:"mt-5 isCheckData"},[a("v-checkbox",{attrs:{color:"grey",dense:"","hide-details":"",label:"ユーザー情報を入れてダウンロード"},model:{value:e.isCheckData,callback:function(t){e.isCheckData=t},expression:"isCheckData"}}),e._v(" "),a("div",{staticClass:"noteExportExcel"},[e._v("\r\n ※個人コードは最大3件まで表示されます\r\n ")])],1)],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n 個人コードとユーザーの登録の紐づけをExcelファイルを使用して、一括で実施することができます。"),a("br"),e._v("\r\n登録するために必要なテンプレートExcelファイルは、”テンプレートのダウンロード”から取得して下さい。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("Excelファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:""},on:{click:function(t){return e.openFile()}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_excel"}},[e._v("\r\n ...\r\n "),a("input",{ref:"files",staticClass:"custom-file-input",staticStyle:{display:"none"},attrs:{type:"file",id:"file_excel",multiple:"",accept:".xlsx,xls"},on:{change:e.previewFiles}})])])],1)],1)]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirmEmail",{type:2})}}},[e._v("\r\n ファイルをインポート\r\n ")])],1)],1)],1)]},proxy:!0}]),model:{value:e.showModalImport,callback:function(t){e.showModalImport=t},expression:"showModalImport"}})],1)},dn=[],gn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-modal"},[a("v-dialog",{attrs:{scrollable:"",persistent:"",width:e.smallScreen?e.smallScreen:""},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[a("v-card",{class:e.className},[e.noTitle?e._e():a("v-card-title",{staticClass:"green white--text background-color-green font-weight-bold"},[e._t("modal-title",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e._v("\n "+e._s(e.title)+"\n "),a("v-icon",{attrs:{color:"white"},on:{click:function(t){e.innerValue=!1}}},[e._v("mdi-close")])],1)])],2),e._v(" "),a("v-card-text",{staticClass:"overflow-y-auto",style:{background:e.backgroundColor}},[e._t("modal-body",[e._v("\n "+e._s(e.text)+"\n ")])],2),e._v(" "),e.noFooter?e._e():a("v-card-actions",[e._t("modal-footer",[a("v-spacer"),e._v(" "),a("cancel-button",{attrs:{text:"閉じる"},on:{click:function(t){e.innerValue=!1}}})])],2)],1)],1)],1)},pn=[],mn=f["a"].extend({name:"Modal",components:{CancelButton:fr},props:{value:{type:Boolean,default:!1},title:{type:String,default:""},text:{type:String,default:""},persistent:{type:Boolean,default:!1},noTitle:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},smallScreen:{type:String,default:""},backgroundColor:{type:String,default:""},className:{type:String,default:""}},computed:{innerValue:{get:function(){return this.value},set:function(e){!1===e&&this.$emit("close"),this.$emit("input",e)}}}}),fn=mn,hn=a("169a"),vn=Object(I["a"])(fn,gn,pn,!1,null,null,null),bn=vn.exports;C()(vn,{VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VDialog:hn["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var yn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-error-button"},[a("v-btn",{staticClass:"text-color-white text-bold",attrs:{color:"error",elevation:"0",disabled:e.disabled,outlined:e.outlined},on:{click:function(t){return e.$emit("click",t)}}},[e._v("\n "+e._s(e.text)+"\n ")])],1)},In=[],xn=f["a"].extend({name:"ErrorButton",props:{text:{type:String,default:""},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}}}),Cn=xn,wn=(a("e06c"),Object(I["a"])(Cn,yn,In,!1,null,"2ffb7c60",null)),kn=wn.exports;C()(wn,{VBtn:pr["a"]});var Sn=f["a"].extend({name:"CardImport",components:{Modal:bn,CancelButton:fr,SuccessButton:kr,ErrorButton:kn},props:{typeConfirm:{type:Number,default:0},showModalConfirmEmail:{type:Boolean,default:!1},showProgressExportCSV:{type:Boolean,default:!1},showModalImport:{type:Boolean,default:!1},progressCsvXlsx:{type:Number,default:0},successMessageLogs:{type:String,default:""},errorMessageCsvXlsx:{type:String,default:""},isShowViewCSV:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},successItemImport:{type:Number,default:0},totalDataRowImport:{type:Number,default:0},errorMessageImport:{default:[]},isFinishProcess:{type:Boolean,default:!1},sheetUserName:{type:String,default:""},sheet2Name:{type:String,default:""},successItemSheet2:{type:Number,default:0},progressSheet2:{type:Number,default:0},totalDataRowSheet2:{type:Number,default:0}},watch:{},computed:{showProgressImportCSV:{get:function(){return this.showProgressImport&&this.isShowViewCSV}},showProgressImportExcel:{get:function(){return this.showProgressImport&&!this.isShowViewCSV}}},data:function(){return{files:[],fileName:"",isCheckData:!1,isCheckDataCSV:!1}},methods:{previewFiles:function(e){console.log(e.target.files[0]),this.files=e.target.files[0],this.fileName=e.target.files[0]?e.target.files[0].name:""},openFile:function(){var e=document.getElementsByClassName("custom-file-input")[0];e.click()},closeDialogImport:function(){var e=document.getElementsByClassName("custom-file-input")[0];e.value="",this.files=null,this.fileName="",this.$emit("closeImportCSV")},yesChoice:function(){0===this.typeConfirm?this.$emit("clickImportCSV",{files:this.files,isSendEmail:!0}):2===this.typeConfirm&&this.$emit("clickImportExcel",{files:this.files,isSendEmail:!0})},noChoice:function(){0===this.typeConfirm?this.$emit("clickImportCSV",{files:this.files,isSendEmail:!1}):2===this.typeConfirm&&this.$emit("clickImportExcel",{files:this.files,isSendEmail:!1})}}}),_n=Sn,Pn=(a("edca"),a("ce7e")),Mn=a("8e36"),Ln=Object(I["a"])(_n,un,dn,!1,null,null,null),Dn=Ln.exports;C()(Ln,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCheckbox:Lr["a"],VCol:Dr["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VTextField:Tr["a"]});var Gn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-action-button"},[a("v-menu",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"text-bold",attrs:{color:"grey darken-1",outlined:"",disabled:e.disabled}},"v-btn",r,!1),s),[e._v("\n "+e._s(e.text)+"\n ")])]}}])},[e._v(" "),a("v-list",e._l(e.actionItems,(function(t,s){return a("v-list-item",{key:s,attrs:{link:""},on:{click:function(a){return e.$emit(t.emitName,a)}}},[a("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1)],1)},An=[],Rn=f["a"].extend({name:"ActionButton",props:{text:{type:String,default:"アクション"},disabled:{type:Boolean,default:!1},actionItems:{type:Array,default:function(){return[]}}}}),Tn=Rn,En=(a("b153"),a("8860")),On=a("da13"),Vn=a("5d23"),Un=a("e449"),$n=Object(I["a"])(Tn,Gn,An,!1,null,"50c8f410",null),Nn=$n.exports;C()($n,{VBtn:pr["a"],VList:En["a"],VListItem:On["a"],VListItemTitle:Vn["b"],VMenu:Un["a"]});var Fn=f["a"].extend({name:"CardListTemplate",components:{CancelButton:fr,Searchbox:$r,CardListTable:tn,Breadcrumbs:cn,CardImport:Dn,ActionButton:Nn,Modal:bn,SuccessButton:kr},props:{cardTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dataCards:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},showProgressExportCSV:{type:Boolean,default:!1},progressCsvXlsx:{type:Number,default:0},showModalImport:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},successItemImport:{type:Number,default:0},totalDataRowImport:{type:Number,default:0},errorMessageImport:{default:[]},isFinishProcess:{type:Boolean,default:!1},sheetUserName:{type:String,default:""},sheet2Name:{type:String,default:""},isShowViewCSV:{type:Boolean,default:!1},errorMessageCsvXlsx:{type:String,default:""},showProgress:{type:Boolean,default:!1},errorMessageProcess:{default:[]},successItemProcess:{type:Number,default:0},totalDataRowProcess:{type:Number,default:0},progress:{type:Number,default:0},isFinishProcessEnable:{type:Boolean,default:!1},typeAction:{type:Number,default:0},showConfirm:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},isHasLowerCaseCardNumberCSV:{type:Boolean,default:!1},isHasLowerCaseCardNumberExcel:{type:Boolean,default:!1},successItemSheet2:{type:Number,default:0},progressSheet2:{type:Number,default:0},totalDataRowSheet2:{type:Number,default:0},typeConfirm:{type:Number,default:0},showModalConfirmEmail:{type:Boolean,default:!1},showModalProcess:{type:Boolean,default:!1}},computed:{breadcrumbs:{get:function(){return[{text:"カード",disabled:!0}]}},isConfirmAction:{get:function(){return this.showConfirm},set:function(e){!1===e&&this.$emit("close-dialog-confirm")}}},data:function(){return{actionItems:[{title:"有効化する",emitName:"click-enable"},{title:"無効化する",emitName:"click-disable"}],searchTargetItems:[{label:"カード番号",value:"pCodeId"},{label:"名称",value:"name"},{label:"ユーザーID",value:"userId"}],selectedpCodeIds:[],authority:er.state.auth}}}),jn=Fn,Bn=(a("1169"),Object(I["a"])(jn,ir,lr,!1,null,null,null)),zn=Bn.exports;C()(Bn,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VList:En["a"],VListItem:On["a"],VListItemTitle:Vn["b"],VMenu:Un["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"]});a("99af");function Hn(e){return Kn.apply(this,arguments)}function Kn(){return Kn=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Yn(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("通行権限グループ情報の取得に失敗しました。通行権限グループ情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),Kn.apply(this,arguments)}function Yn(e,t){return qn.apply(this,arguments)}function qn(){return qn=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns),e.prev=1,e.next=4,t.$axios.get(H+s);case 4:if(r=e.sent,o=r.data.groups.map((function(e){return e.groupName=e.name,e})),r.data.endRecord!==r.data.maxRecords){e.next=10;break}return e.abrupt("return",o);case 10:return e.next=12,Yn(t,a+1);case 12:return n=e.sent,e.abrupt("return",o.concat(n));case 14:e.next=19;break;case 16:throw e.prev=16,e.t0=e["catch"](1),e.t0;case 19:case"end":return e.stop()}}),e,null,[[1,16]])}))),qn.apply(this,arguments)}function Wn(e,t){return Jn.apply(this,arguments)}function Jn(){return Jn=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="",Object.keys(a).forEach((function(e,t){var r=0===t?"?":"&";s+="".concat(r).concat(e,"=").concat(a[e])})),e.prev=2,e.next=5,t.$axios.get(H+s);case 5:return r=e.sent,o=r.data.groups.map((function(e){return e.groupName=e.name,e})),e.abrupt("return",{maxRecords:r.data.maxRecords,groups:o});case 10:e.prev=10,e.t0=e["catch"](2),e.t1=e.t0.response.status,e.next=403===e.t1?15:404===e.t1?16:503===e.t1?17:18;break;case 15:throw new Error("通行権限グループ情報を取得する権限がありません。");case 16:return e.abrupt("return",{maxRecords:0,groups:[]});case 17:throw new Error(Pa);case 18:throw new Error(wa);case 19:case"end":return e.stop()}}),e,null,[[2,10]])}))),Jn.apply(this,arguments)}function Zn(e,t,a){return Xn.apply(this,arguments)}function Xn(){return Xn=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o,n,i,l,c,u,d,g,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=[],e.prev=1,e.next=4,Promise.all(a.map((function(e){return Qn(t,e.groupId,s)})));case 4:r=e.sent,e.next=10;break;case 7:throw e.prev=7,e.t0=e["catch"](1),new Error("通行権限グループの更新に失敗しました。しばらく経ってからやり直してください");case 10:if(o=0,n="以下の通行権限グループの更新に失敗しました。情報を設定する権限がありません。\n",i="以下の通行権限グループの更新に失敗しました。情報がクラウドに存在しませんでした。\n",l="以下の通行権限グループの更新に失敗しました。しばらく経ってからやり直してください。\n",c=0,u=0,d=0,g=0,r.forEach((function(e,t){if(200===e.status)o++;else{var s=a[t],r=s.groupName;switch(e.status){case 403:n+="・".concat(r,"\n"),c++;break;case 404:i+="・".concat(r,"\n"),u++;break;case 503:d++;break;default:l+="・".concat(r,"\n"),g++;break}}})),o!==a.length){e.next=23;break}return e.abrupt("return");case 23:if(!(d>0)){e.next=27;break}throw new Error(Pa);case 27:throw p="",c>0&&(p+=n+"\n"),u>0&&(p+=i+"\n"),g>0&&(p+=l+"\n"),new Error(p);case 32:case"end":return e.stop()}}),e,null,[[1,7]])}))),Xn.apply(this,arguments)}function Qn(e,t,a){return ei.apply(this,arguments)}function ei(){return ei=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.put("".concat(H,"/").concat(a),s);case 3:return e.abrupt("return",{status:200});case 6:return e.prev=6,e.t0=e["catch"](0),e.abrupt("return",{status:e.t0.response.status});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),ei.apply(this,arguments)}function ti(e){return ai.apply(this,arguments)}function ai(){return ai=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,si(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("日付タイプの取得に失敗しました。日付タイプを取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),ai.apply(this,arguments)}function si(e,t){return ri.apply(this,arguments)}function ri(){return ri=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns),e.prev=1,e.next=4,t.$axios.get(se+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.dayTypes);case 9:return e.next=11,si(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.dayTypes.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),ri.apply(this,arguments)}function oi(e){return ni.apply(this,arguments)}function ni(){return ni=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ii(t,1);case 3:return a=e.sent,s=[],a.forEach((function(e){-1===s.findIndex((function(t){return t.controllerId===e.controllerId}))&&s.push(e)})),e.abrupt("return",s);case 9:e.prev=9,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?14:404===e.t1?15:503===e.t1?16:17;break;case 14:throw new Error("制御盤情報の取得に失敗しました。制御盤情報を取得する権限がありません。");case 15:return e.abrupt("return",[]);case 16:throw new Error(Pa);case 17:throw new Error(wa);case 18:case"end":return e.stop()}}),e,null,[[0,9]])}))),ni.apply(this,arguments)}function ii(e,t){return li.apply(this,arguments)}function li(){return li=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&embed=controller"),e.prev=1,e.next=4,t.$axios.get(ne+s);case 4:if(r=e.sent,o=r.data.relationsControllerGate.map((function(e){return e.controller})),r.data.endRecord!==r.data.maxRecords){e.next=10;break}return e.abrupt("return",o);case 10:return e.next=12,ii(t,a+1);case 12:return n=e.sent,e.abrupt("return",o.concat(n));case 14:e.next=19;break;case 16:throw e.prev=16,e.t0=e["catch"](1),e.t0;case 19:case"end":return e.stop()}}),e,null,[[1,16]])}))),li.apply(this,arguments)}function ci(e){return ui.apply(this,arguments)}function ui(){return ui=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,di(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("ゲート情報の取得に失敗しました。ゲート情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),ui.apply(this,arguments)}function di(e,t){return gi.apply(this,arguments)}function gi(){return gi=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&embed=gate"),e.prev=1,e.next=4,t.$axios.get(ne+s);case 4:if(r=e.sent,o=r.data.relationsControllerGate.map((function(e){return e.gate})),r.data.endRecord!==r.data.maxRecords){e.next=10;break}return e.abrupt("return",o);case 10:return e.next=12,di(t,a+1);case 12:return n=e.sent,e.abrupt("return",o.concat(n));case 14:e.next=19;break;case 16:throw e.prev=16,e.t0=e["catch"](1),e.t0;case 19:case"end":return e.stop()}}),e,null,[[1,16]])}))),gi.apply(this,arguments)}function pi(e){return mi.apply(this,arguments)}function mi(){return mi=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fi(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("ゲート情報の取得に失敗しました。ユーザー情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),mi.apply(this,arguments)}function fi(e,t){return hi.apply(this,arguments)}function hi(){return hi=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns,"&isExceptOptionalGate=true"),e.prev=1,e.next=4,t.$axios.get(Fe+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.gates);case 9:return e.next=11,fi(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.gates.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),hi.apply(this,arguments)}function vi(e){return bi.apply(this,arguments)}function bi(){return bi=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.get(V);case 3:return a=e.sent,e.abrupt("return",a.data.plans[0]);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("プラン情報の取得に失敗しました。プラン情報を取得する権限がありません。");case 13:throw new Error("プランが設定されていません。");case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),bi.apply(this,arguments)}function yi(e){return Ii.apply(this,arguments)}function Ii(){return Ii=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,xi(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("ユーザー情報の取得に失敗しました。ユーザー情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),Ii.apply(this,arguments)}function xi(e,t){return Ci.apply(this,arguments)}function Ci(){return Ci=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&exclude=thumbnail&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns),e.prev=1,e.next=4,t.$axios.get(T+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.users);case 9:return e.next=11,xi(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.users.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),Ci.apply(this,arguments)}function wi(e,t){return ki.apply(this,arguments)}function ki(){return ki=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?userId=".concat(encodeURIComponent(a)),e.prev=1,e.next=4,t.$axios.get(T+s);case 4:return r=e.sent,e.abrupt("return",r.data.users[0]);case 8:e.prev=8,e.t0=e["catch"](1),e.t1=e.t0.response.status,e.next=403===e.t1?13:404===e.t1?14:503===e.t1?15:16;break;case 13:throw new Error("ユーザー情報の取得に失敗しました。ユーザー情報を取得する権限がありません。");case 14:throw new Error("指定されたユーザーは存在しません。");case 15:throw new Error(Pa);case 16:throw new Error(wa);case 17:case"end":return e.stop()}}),e,null,[[1,8]])}))),ki.apply(this,arguments)}function Si(e,t){return _i.apply(this,arguments)}function _i(){return _i=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.get(Se+"?userId="+a);case 3:return s=e.sent,e.abrupt("return",s.data.groupAdministrators);case 7:return e.prev=7,e.t0=e["catch"](0),e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),_i.apply(this,arguments)}function Pi(e,t){return Mi.apply(this,arguments)}function Mi(){return Mi=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.get(_e+"?userId="+a);case 3:return s=e.sent,e.abrupt("return",s.data.departmentAdministrators);case 7:return e.prev=7,e.t0=e["catch"](0),e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),Mi.apply(this,arguments)}function Li(e,t,a){return Di.apply(this,arguments)}function Di(){return Di=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o,n,i,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Pi(t,s);case 2:if(r=e.sent,!(null!==r&&r.length>0)){e.next=9;break}return o={isAdminToEditUser:a.department.isAdminToEditUser,isAdminToAddUser:a.department.isAdminToAddUser,isAdminToSetPcodesToUser:a.department.isAdminToSetPcodesToUser},e.next=7,Ri(t,o,r.relationId);case 7:e.next=12;break;case 9:return n={departmentId:a.department.departmentId,userId:s,isAdminToEditUser:a.department.isAdminToEditUser,isAdminToAddUser:a.department.isAdminToAddUser,isAdminToSetPcodesToUser:a.department.isAdminToSetPcodesToUser},e.next=12,Gi(t,n);case 12:return e.next=14,Si(t,s);case 14:if(i=e.sent,!(null!==i&&i.length>0)){e.next=21;break}return l={isAdminOfGroupPassages:a.group.isAdminOfGroupPassages,isAdminOfGatePassages:a.group.isAdminOfGatePassages,isAdminOfRemoteUnlock:a.group.isAdminOfRemoteUnlock},e.next=19,Vi(t,l,i.groupAdministratorId);case 19:e.next=24;break;case 21:return c={groupId:a.group.groupId,userId:s,isAdminToEditUser:a.group.isAdminToEditUser,isAdminToAddUser:a.group.isAdminToAddUser,isAdminToSetPcodesToUser:a.group.isAdminToSetPcodesToUser},e.next=24,Ei(t,c);case 24:return e.abrupt("return",!0);case 25:case"end":return e.stop()}}),e)}))),Di.apply(this,arguments)}function Gi(e,t){return Ai.apply(this,arguments)}function Ai(){return Ai=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,s){t.$http.post(_e,a).then((function(t){e(!0)})).then(null,(function(t){e(!1)}))})));case 1:case"end":return e.stop()}}),e)}))),Ai.apply(this,arguments)}function Ri(e,t,a){return Ti.apply(this,arguments)}function Ti(){return Ti=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){t.$http.put(_e+"/"+s,a).then((function(t){e(!0)})).then(null,(function(t){e(!1)}))})));case 1:case"end":return e.stop()}}),e)}))),Ti.apply(this,arguments)}function Ei(e,t){return Oi.apply(this,arguments)}function Oi(){return Oi=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,s){t.$http.put(Se,a).then((function(t){e(!0)})).then(null,(function(t){e(!1)}))})));case 1:case"end":return e.stop()}}),e)}))),Oi.apply(this,arguments)}function Vi(e,t,a){return Ui.apply(this,arguments)}function Ui(){return Ui=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){t.$http.put(Se+"/"+s,a).then((function(t){e(!0)})).then(null,(function(t){e(!1)}))})));case 1:case"end":return e.stop()}}),e)}))),Ui.apply(this,arguments)}function $i(e,t){return Ni.apply(this,arguments)}function Ni(){return Ni=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.get(Pe+"?userId=".concat(encodeURIComponent(a),"&embed=department"));case 3:return s=e.sent,e.abrupt("return",s.data.relationsDepartmentUser);case 7:return e.prev=7,e.t0=e["catch"](0),e.abrupt("return",[]);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),Ni.apply(this,arguments)}function Fi(e){return ji.apply(this,arguments)}function ji(){return ji=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Bi(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("部屋情報の取得に失敗しました。部屋情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),ji.apply(this,arguments)}function Bi(e,t){return zi.apply(this,arguments)}function zi(){return zi=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=100&page=".concat(a,"&sortKey=").concat(js,":name&embed=roomUserCount,relationsRoomGate"),e.prev=1,e.next=4,t.$axios.get(be+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.rooms);case 9:return e.next=11,Bi(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.rooms.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),zi.apply(this,arguments)}function Hi(e,t,a){return Ki.apply(this,arguments)}function Ki(){return Ki=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="?limit=25&page=".concat(a).concat(s?"&keyword=".concat(s):"","&sortKey=").concat(js,":name&embed=roomUserCount,relationsRoomGate&scorp=name"),e.prev=1,e.next=4,t.$axios.get(be+r);case 4:return o=e.sent,e.abrupt("return",o.data);case 8:throw e.prev=8,e.t0=e["catch"](1),e.t0;case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),Ki.apply(this,arguments)}function Yi(e,t){return qi.apply(this,arguments)}function qi(){return qi=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?roomId=".concat(a,"&embed=relationsRoomGate"),e.prev=1,e.next=4,t.$axios.get(be+s);case 4:return r=e.sent,e.abrupt("return",r.data.rooms[0]);case 8:e.prev=8,e.t0=e["catch"](1),e.t1=e.t0.response.status,e.next=400===e.t1?13:403===e.t1?14:404===e.t1?19:500===e.t1?20:503===e.t1?21:22;break;case 13:throw new Error(Qt);case 14:if("Unauthorized"!==e.t0.message){e.next=18;break}throw new Error(ta);case 18:throw new Error(ia);case 19:throw new Error(aa);case 20:throw new Error(fa);case 21:throw new Error(ha);case 22:throw new Error(ba);case 23:case"end":return e.stop()}}),e,null,[[1,8]])}))),qi.apply(this,arguments)}function Wi(e,t,a){return Ji.apply(this,arguments)}function Ji(){return Ji=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="",Object.keys(s).forEach((function(e,t){var a=0===t?"?":"&";r+="".concat(a).concat(e,"=").concat(s[e])})),e.prev=2,e.next=5,t.$axios.get("".concat(be,"/").concat(a,"/user").concat(r));case 5:return o=e.sent,e.abrupt("return",{maxRecords:o.data.maxRecords,users:o.data.users});case 9:e.prev=9,e.t0=e["catch"](2),e.t1=e.t0.response.status,e.next=403===e.t1?14:404===e.t1?15:503===e.t1?16:17;break;case 14:throw new Error("在室中ユーザー情報を取得する権限がありません。");case 15:return e.abrupt("return",{maxRecords:0,users:[]});case 16:throw new Error(Pa);case 17:throw new Error(wa);case 18:case"end":return e.stop()}}),e,null,[[2,9]])}))),Ji.apply(this,arguments)}function Zi(e,t){return Xi.apply(this,arguments)}function Xi(){return Xi=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.post(be,a);case 3:return s=e.sent,e.abrupt("return",s.data.roomId);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("部屋情報を編集する権限がありません。");case 13:throw new Error("指定されたゲートが存在しません。");case 14:throw new Error(Pa);case 15:throw new Error(ka);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),Xi.apply(this,arguments)}function Qi(e,t){return el.apply(this,arguments)}function el(){return el=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.delete("".concat(be,"/").concat(a));case 3:e.next=14;break;case 5:e.prev=5,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?10:404===e.t1?11:503===e.t1?12:13;break;case 10:throw new Error("部屋情報を削除する権限がありません。");case 11:throw new Error("指定された部屋が存在しません。");case 12:throw new Error(Pa);case 13:throw new Error(ka);case 14:case"end":return e.stop()}}),e,null,[[0,5]])}))),el.apply(this,arguments)}function tl(e,t,a){return al.apply(this,arguments)}function al(){return al=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.put("".concat(be,"/").concat(a),s);case 3:e.next=14;break;case 5:e.prev=5,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?10:404===e.t1?11:503===e.t1?12:13;break;case 10:throw new Error("部屋情報を更新する権限がありません。");case 11:throw new Error("指定された部屋あるいはゲートが存在しません。");case 12:throw new Error(Pa);case 13:throw new Error(ka);case 14:case"end":return e.stop()}}),e,null,[[0,5]])}))),al.apply(this,arguments)}function sl(e,t,a){return rl.apply(this,arguments)}function rl(){return rl=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ol(t,a,s,1);case 3:return r=e.sent,e.abrupt("return",r);case 7:e.prev=7,e.t0=e["catch"](0),console.log("|||",e.t0),e.t1=e.t0.response.status,e.next=403===e.t1?13:404===e.t1?14:503===e.t1?15:16;break;case 13:throw new Error("部屋情報の取得に失敗しました。部屋情報を取得する権限がありません。");case 14:return e.abrupt("return",[]);case 15:throw new Error(Pa);case 16:throw new Error(wa);case 17:case"end":return e.stop()}}),e,null,[[0,7]])}))),rl.apply(this,arguments)}function ol(e,t,a,s){return nl.apply(this,arguments)}function nl(){return nl=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s,r){var o,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o="?date=".concat(s,"&limit=1000&page=").concat(r),e.prev=1,e.next=4,t.$axios.get("".concat(ye,"/").concat(a).concat(o));case 4:if(n=e.sent,n.data.endRecord!==n.data.maxRecords){e.next=9;break}return e.abrupt("return",n.data.users);case 9:return e.next=11,ol(t,a,s,r+1);case 11:return i=e.sent,e.abrupt("return",n.data.users.concat(i));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),nl.apply(this,arguments)}function il(e,t,a){return ll.apply(this,arguments)}function ll(){return ll=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="",Object.keys(s).forEach((function(e,t){var a=0===t?"?":"&";r+="".concat(a).concat(e,"=").concat(s[e])})),e.prev=2,e.next=5,t.$axios.get("".concat(ye,"/").concat(a).concat(r));case 5:return o=e.sent,e.abrupt("return",{maxRecords:o.data.maxRecords,users:o.data.users});case 9:e.prev=9,e.t0=e["catch"](2),e.t1=e.t0.response.status,e.next=403===e.t1?14:404===e.t1?15:503===e.t1?20:21;break;case 14:throw new Error("履歴情報を取得する権限がありません。");case 15:if(!s.userId){e.next=19;break}return e.abrupt("return",{maxRecords:0,users:[]});case 19:throw new Error("指定された部屋が存在しません。");case 20:throw new Error(Pa);case 21:throw new Error(wa);case 22:case"end":return e.stop()}}),e,null,[[2,9]])}))),ll.apply(this,arguments)}function cl(e,t,a){return ul.apply(this,arguments)}function ul(){return ul=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="",Object.keys(s).forEach((function(e,t){var a=0===t?"?":"&";r+="".concat(a).concat(e,"=").concat(s[e])})),e.prev=2,e.next=5,t.$axios.get("".concat(ye,"/user/").concat(encodeURIComponent(encodeURIComponent(a))).concat(r));case 5:return o=e.sent,e.abrupt("return",{maxRecords:o.data.maxRecords,rooms:o.data.rooms});case 9:e.prev=9,e.t0=e["catch"](2),e.t1=e.t0.response.status,e.next=403===e.t1?14:404===e.t1?15:503===e.t1?20:21;break;case 14:throw new Error("履歴情報を取得する権限がありません。");case 15:if(!s.roomId){e.next=19;break}return e.abrupt("return",{maxRecords:0,rooms:[]});case 19:throw new Error("ユーザが存在しません。");case 20:throw new Error(Pa);case 21:throw new Error(wa);case 22:case"end":return e.stop()}}),e,null,[[2,9]])}))),ul.apply(this,arguments)}function dl(e){return gl.apply(this,arguments)}function gl(){return gl=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,pl(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("ユーザー情報の取得に失敗しました。ユーザー情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),gl.apply(this,arguments)}function pl(e,t){return ml.apply(this,arguments)}function ml(){return ml=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns),e.prev=1,e.next=4,t.$axios.get(he+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.noticeSettings);case 9:return e.next=11,pl(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.noticeSettings.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),ml.apply(this,arguments)}function fl(e,t){return hl.apply(this,arguments)}function hl(){return hl=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.delete(he+"/".concat(encodeURIComponent(a)));case 3:return s=e.sent,e.abrupt("return",s.data);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=400===e.t1?12:401===e.t1?13:403===e.t1?14:404===e.t1?15:503===e.t1?16:17;break;case 12:throw new Error("通知設定の削除に失敗しました。");case 13:throw new Error("通知設定の削除に失敗しました。通知設定を削除する権限がありません。");case 14:throw new Error("通知設定の削除に失敗しました。通知設定を削除する権限がありません。");case 15:return e.abrupt("return",{});case 16:throw new Error(Pa);case 17:throw new Error(_a);case 18:case"end":return e.stop()}}),e,null,[[0,7]])}))),hl.apply(this,arguments)}function vl(e,t,a){return bl.apply(this,arguments)}function bl(){return bl=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.put(he+"/".concat(encodeURIComponent(a)),s);case 3:return r=e.sent,e.abrupt("return",r.data);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("通知設定の変更に失敗しました。通知設定を変更する権限がありません。");case 13:throw new Error("通知設定の変更に失敗しました。通知設定は既に削除されています。");case 14:throw new Error(Pa);case 15:throw new Error(Sa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),bl.apply(this,arguments)}function yl(e,t){return Il.apply(this,arguments)}function Il(){return Il=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.post(he,a);case 3:return s=e.sent,e.abrupt("return",s.data);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=400===e.t1?12:403===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("通知設定の追加に失敗しました。");case 13:throw new Error("通知設定の追加に失敗しました。通知設定を追加する権限がありません。");case 14:throw new Error(Pa);case 15:throw new Error(ka);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),Il.apply(this,arguments)}function xl(e){return Cl.apply(this,arguments)}function Cl(){return Cl=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,wl(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("情報の取得に失敗しました。通知設定情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),Cl.apply(this,arguments)}function wl(e,t){return kl.apply(this,arguments)}function kl(){return kl=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?",e.prev=1,e.next=4,t.$axios.get(ve+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.noticeSettingTypes);case 9:return e.next=11,wl(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.noticeSettingTypes.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),kl.apply(this,arguments)}var Sl={controller:l,dayType:i,group:n,plan:c,user:u,room:d,log:g,noticeSettingType:m,noticeSetting:p},_l=2,Pl=2,Ml=nr["a"].extend({name:"CardListPage",components:{CardListTemplate:zn},data:function(){return{isReload:!1,isGetDataList:!1,perPage:Wt,currPage:1,scorp:["pCodeId"],keyword:"",cardTotalCount:0,dataCards:[],loading:!1,errorMessageLogs:"",successMessageLogs:"",exportDataCSV:[],showProgressExportCSV:!1,errorMessageCsvXlsx:"",progressCsvXlsx:0,showModalImport:!1,isShowViewCSV:!1,showProgressImport:!1,successItemImport:0,totalDataRowImport:0,percentProcess:0,errorMessageImport:[],isFinishProcess:!1,isLoading:!1,UserSheetImportData:[],groupGateArray:[],dataImport:[],sheetUserName:"",sheetGroupName:"",rowinErrDialog:0,maxPagePcode:1,userIdArray:[],userInGroupMx:[],successItemSheet2:0,totalDataRowSheet2:0,progressSheet2:0,percentProcessSheet2:0,showProgress:!1,errorMessageProcess:[],successItemProcess:0,totalDataRowProcess:0,progress:0,isFinishProcessEnable:!1,typeAction:0,dataAction:[],showConfirm:!1,isHasLowerCaseCardNumberCSV:!1,isHasLowerCaseCardNumberExcel:!1,isExportUserInfoCSV:!1,exportUserData:[],maxPageUser:1,maxPageGroup:1,exportGroupData:[],countColumn:1,exportGroupPassages:[],typeConfirm:0,showModalProcess:!1,showModalConfirmEmail:!1,authority:er.state.auth}},watch:{isLoading:function(e){this.$emit("loading",e)},loading:function(e){this.$emit("loading",e)}},created:function(){"undefined"===typeof localStorage.isVaildDataCard&&localStorage.setItem("isVaildDataCard","true"),"undefined"===typeof localStorage.cardSortKey&&localStorage.setItem("cardSortKey","registered"),"undefined"===typeof localStorage.cardSortName&&localStorage.setItem("cardSortName","desc"),"undefined"===typeof localStorage.pageSizeCard?(localStorage.setItem("pageSizeCard",Wt.toString()),this.perPage=Wt):this.perPage=parseInt(localStorage.pageSizeCard),this.getListCards()},mounted:function(){this.$emit("activeMenu","cards")},methods:{ShowOnlyIsVaild:function(e){localStorage.setItem("isVaildDataCard",e.toString()),this.getListCards()},clickAddCard:function(){this.$router.push({path:We})},clickCardDetail:function(e){this.$router.push({path:Ze,query:{pCodeId:e}})},changePerPage:function(e){this.perPage=e,localStorage.setItem("pageSizeCard",e),this.getListCards()},changePage:function(e){this.currPage=e,this.getListCards()},searchCard:function(e){this.keyword=e.text,this.scorp=e.targets,this.getListCards()},getListCards:function(){var e=this;this.isGetDataList=!0,this.isFinishProcessEnable=!1;var t=j+"?limit="+this.perPage+"&page="+this.currPage+"&sortKey="+localStorage.cardSortName+":"+localStorage.cardSortKey;""!==this.keyword&&(t+="&keyword="+this.keyword+"&scorp="+this.scorp),"true"===localStorage.isVaildDataCard&&(t+="&isValid=true"),t+="&embed=user",this.authority.isAdmin||(t+="&isExceptUnsettablePcode=true"),this.$http.get(t).then((function(t){e.resetData(),e.isFinishProcessEnable=!0,e.isGetDataList=!1,e.isEmpty(t.body.pCodes)?(e.cardTotalCount=0,e.currPage=1):(e.dataCards=t.body.pCodes,e.dataCards.forEach((function(t,a){t.user?e.dataCards[a].userName=t.user.name:e.dataCards[a].userName=""})),e.cardTotalCount=t.body.maxRecords,e.currPage=Math.ceil(t.body.startRecord/e.perPage),console.log("currPage = ",e.currPage))})).then(null,(function(t){switch(e.resetData(),e.isFinishProcessEnable=!0,e.isGetDataList=!1,t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataCards=[],this.errorMessageLogs=""},resetAllValue:function(){this.isLoading=!1,this.progressCsvXlsx=0,this.successItemImport=0,this.isFinishProcess=!1,this.totalDataRowImport=0,this.errorMessageImport=[],this.rowinErrDialog=0,this.showProgressImport=!1,this.errorMessageCsvXlsx="",this.dataImport=[],this.exportDataCSV=[],this.maxPagePcode=1,this.showProgressExportCSV=!1},clickExportCSV:function(e){var t=this;this.resetAllValue(),this.showProgressExportCSV=!0,setTimeout((function(){t.getDataForPcode(e)}),200)},getDataForPcode:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e){a.next=14;break}t,s=1,r=!0;case 4:if(!r){a.next=12;break}return a.next=7,t.getPCodeExport(s);case 7:t.progressCsvXlsx+=100/t.maxPagePcode,s++,r=s<=t.maxPagePcode,a.next=4;break;case 12:a.next=15;break;case 14:t.progressCsvXlsx=100;case 15:t.downloadCSV(),t.isFinishProcess=!0;case 17:case"end":return a.stop()}}),a)})))()},getPCodeExport:function(e){var t=this,a=this;return new Promise((function(s){t.$http.get(j+"?limit=1000&page="+e).then((function(e){var t,r=Object(rr["a"])(e.body.pCodes);try{for(r.s();!(t=r.n()).done;){var o=t.value;a.exportDataCSV.push({"ユーザーID":o.userId,"個人コードID":o.pCodeId,"コード種別(変更不可)":o.type,"ステータス(1:有効.0:無効)":a.converToBit(o.isValid),"登録日(読み取り専用)":a.converToDate(o.registered),"更新日(読み取り専用)":a.converToDate(o.updated)})}}catch(n){r.e(n)}finally{r.f()}e.body.maxRecords>0&&(a.maxPagePcode=Math.ceil(e.body.maxRecords/1e3)),s(!0)})).then(null,(function(e){console.log(e),s(!1)}))}))},downloadCSV:function(){var e,t=a("21a6");0===this.exportDataCSV.length&&this.exportDataCSV.push({"ユーザーID":"","個人コードID":"","コード種別(変更不可)":"","ステータス(1:有効.0:無効)":"","登録日(読み取り専用)":"","更新日(読み取り専用)":""});var s=this.convertArrayOfObjectsToCSV({data:this.exportDataCSV});e="pcode-data.csv";var r=new Uint8Array([239,187,191]),o=new Blob([r,s],{type:"text/csv;charset=utf-8;"}),n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(n)t(o,e);else if(console.log("window.navigator.msSaveOrOpenBlob",window.navigator.msSaveOrOpenBlob),void 0!==window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(o,e);else{var i=document.createElement("a");i.setAttribute("href",window.URL.createObjectURL(o)),i.setAttribute("download",e),i.setAttribute("target","_blank"),i.click(),i.remove()}},closeModalProcessCSV:function(){this.resetAllValue()},clickImportCSV:function(e){var t=this;this.resetAllValue(),this.isLoading=!0,setTimeout((function(){t.importCSV(e)}),200)},importCSV:function(e){var t=this,a=e.files,s=this;if(null!==a&&void 0!==a&&0!==a.length){var r=new FileReader;r.onload=function(){var e=r.result,a=e.split("\n"),o=[],n=!1;t.isLoading=!1,t.showProgressImport=!0;for(var i=0;i1){for(var l=1;l0&&o[l][2].length>0&&o[l][3].length>0&&(o[l][1].toUpperCase()!==o[l][1]&&(n=!0),s.dataImport.push(o[l]));s.dataImport.length>0?(t.totalDataRowImport=t.dataImport.length,t.percentProcess=100/t.totalDataRowImport,t.isHasLowerCaseCardNumberCSV=n,t.isHasLowerCaseCardNumberCSV?t.showProgressImport=!1:s.excuteImportCsv()):(s.isFinishProcess=!0,s.errorMessageCsvXlsx="不正なファイルです。正しいファイルを選択しなおしてください。")}else s.isFinishProcess=!0,s.errorMessageCsvXlsx="不正なファイルです。正しいファイルを選択しなおしてください。"},r.onerror=function(){s.isLoading=!1,s.showProgressImport=!0,s.errorMessageCsvXlsx="選択されているファイルの読み込みに失敗しました。
ブラウザの更新、もしくは別ファイルを選択してから
再度アップロードしたいファイルを選択してください。",s.isFinishProcess=!0},r.readAsText(a,"Shift_JIS")}else s.isLoading=!1,s.showProgressImport=!0,s.errorMessageCsvXlsx="CSVのファイルを選択してください。",s.isFinishProcess=!0},excuteImportCsv:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.closeDialogCheckCardCSV(),e.showProgressImport=!0,a=1,s=Object(rr["a"])(e.dataImport),t.prev=4,s.s();case 6:if((r=s.n()).done){t.next=21;break}if(o=r.value,0!==e.dataImport.length){t.next=10;break}return t.abrupt("break",21);case 10:return t.next=12,e.pCodeAddExe(o[0],o[2],o[1],e.convertStringToBoolean(o[3],!1),a+=1);case 12:if(n=t.sent,2!==n){t.next=17;break}return t.next=16,e.pCodeEditCSV(o[0],o[1],e.convertStringToBoolean(o[3],!1),a);case 16:n=t.sent;case 17:1===n&&e.dataImport.length>0&&e.successItemImport++,e.dataImport.length>0&&(e.progressCsvXlsx+=e.percentProcess);case 19:t.next=6;break;case 21:t.next=26;break;case 23:t.prev=23,t.t0=t["catch"](4),s.e(t.t0);case 26:return t.prev=26,s.f(),t.finish(26);case 29:e.isFinishProcess=!0;case 30:case"end":return t.stop()}}),t,null,[[4,23,26,29]])})))()},convertArrayOfObjectsToCSV:function(e){var t,a,s,r,o,n;return n=e.data||null,null!=n&&n.length?(r=e.columnDelimiter||",",o=e.lineDelimiter||"\n",s=Object.keys(n[0]),t="",t+=s.join(r),t+=o,n.forEach((function(e){a=0,s.forEach((function(s){a>0&&(t+=r),t+=e[s],a++})),t+=o})),t):null},clickExportExcel:function(e){var t=this;this.loading=!0,this.exportUserData=[],this.exportGroupData=[],this.exportGroupPassages=[],e?this.getDataForUserExcel().then((function(){return t.getDataForGroup(e)})).then((function(){return t.downloadExcel()})).then((function(){t.loading=!1})):this.getDataForGroup(e).then((function(){return t.downloadExcel()})).then((function(){t.loading=!1}))},downloadExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w,k,S,_,P,M,L,D;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s="!@#"+Math.random().toString(36).substring(7)+Date.now(),r=e.exportGroupData,o=e.exportUserData,n=e.exportGroupPassages,i=a("5586"),l=new i.Workbook,c=o.length>0?o.length+2:1002,u={sheetFormat:{defaultColWidth:13}},d={sheetFormat:{defaultColWidth:3}},g={sheetProtection:{password:s},hidden:!0},p=["ユーザーとカードの設定","通行権限グループとユーザーの紐づけ","参照"],m=l.addWorksheet(p[0],u),f=l.addWorksheet(p[1],d),h=l.addWorksheet(p[2],g),v=l.createStyle({fill:{type:"pattern",patternType:"solid",bgColor:"FFC008"},font:{color:"000000",name:"MS PGothic"}}),b=l.createStyle({alignment:{vertical:"center",horizontal:"left",wrapText:!0}}),y=l.createStyle({font:{size:11,name:"MS PGothic"},border:{left:{style:"thin",color:"000000"},right:{style:"thin",color:"000000"},top:{style:"thin",color:"000000"},bottom:{style:"thin",color:"000000"}}}),I=l.createStyle({alignment:{vertical:"center",horizontal:"center"},font:{size:11,name:"MS PGothic"},border:{left:{style:"thin",color:"000000"},right:{style:"thin",color:"000000"},top:{style:"thin",color:"000000"},bottom:{style:"thin",color:"000000"}}}),x=[{color:"000000",size:11,value:"ユーザーID \n",name:"MS PGothic"},{value:"(重複不可)\n",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"(半角英数字)",size:9,color:"ff0000",name:"MS PGothic",bold:!1}],C=["ログインパスワード",{value:"(新規ユーザー登録のみ有効)\n",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"(必須:半角英大文字+半角英小文字+半角数字の組み合わせ)",size:9,color:"ff0000",name:"MS PGothic",bold:!1}],w=["個人コード1 \n",{value:"(テンキー:半角数字)(NFC:半角英数字)",size:9,color:"ff0000",name:"MS PGothic"}],k=["個人コード2 \n",{value:"(テンキー:半角数字)(NFC:半角英数字)",size:9,color:"ff0000",name:"MS PGothic"}],S=["個人コード3 \n",{value:"(テンキー:半角数字)(NFC:半角英数字)",size:9,color:"ff0000",name:"MS PGothic"}],_=["通行権限グループ一覧 ",{value:"※紐づけ設定 1:設定、0:解除",color:"ff0000",name:"MS PGothic"}],P=["※赤セルの箇所は、",{value:"入力必須項目",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"です \n",bold:!1,size:11,color:"000000",name:"MS PGothic"},{value:"※青セルの箇所は、",bold:!1,size:11,color:"000000",name:"MS PGothic"},{value:"サービス加入者のみ入力可能",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"です",bold:!1,size:11,color:"000000",name:"MS PGothic"}],h.cell(2,2).string("通行権限グループの値").style(I),h.cell(3,2).string(" ").style(I),h.cell(4,2).number(0).style(I),h.cell(5,2).number(1).style(I),h.column(2).setWidth(22),m.cell(1,2,1,5,!0).string(P).style({alignment:{vertical:"center",horizontal:"left",wrapText:!0},font:{size:11,name:"MS PGothic"}}),m.row(1).setHeight(31),m.cell(2,2).string(x).style(b),m.cell(2,3).string(C).style(b),m.cell(2,4).string("ユーザー名").style(b),m.cell(2,5).string("ふりがな").style(b),m.cell(2,6).string("メールアドレス").style(b),m.cell(2,7).string("組織管理権限(1:有効.0:無効)").style(b),m.cell(2,8).string("所属ID").style(b),m.cell(2,9).string("所属名").style(b),m.cell(2,8+_l).string("ゲート設定権限ステータス(1:有効.0:無効)").style(b),m.cell(2,9+_l).string("鍵共有権限ステータス(1:有効.0:無効)").style(b),m.cell(2,10+_l).string("アプリへのログイン(1:有効.0:無効)").style(b),m.cell(2,11+_l).string("SMS認証(1:有効.0:無効)").style(b),m.cell(2,12+_l).string(["電話番号 \n",{value:"(-(ハイフン)無しの携帯電話番号)",size:11,color:"ff0000",name:"MS PGothic"}]).style(b),m.cell(2,13+_l).string("備考1").style(b),m.cell(2,14+_l).string("備考2").style(b),m.cell(2,15+_l).string("個人コード1-種別(1:テンキー.0:NFCカード)").style(b),m.cell(2,16+_l).string(w).style(b),m.cell(2,17+_l).string("個人コード2-種別(1:テンキー.0:NFCカード)").style(b),m.cell(2,18+_l).string(k).style(b),m.cell(2,19+_l).string("個人コード3-種別(1:テンキー.0:NFCカード)").style(b),m.cell(2,20+_l).string(S).style(b),m.cell(2,2,c,4,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"fcd5b4",fgColor:"fcd5b4"}}),m.cell(3,2,c,20+_l,!1).style({alignment:{vertical:"center",horizontal:"left"}}),m.cell(2,7,c,7,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"fcd5b4",fgColor:"fcd5b4"}}),m.cell(2,10,c,9+_l,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"fcd5b4",fgColor:"fcd5b4"}}),m.cell(2,11+_l,c,12+_l,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"daeef3",fgColor:"daeef3"}}),m.cell(3,12+_l,c,12+_l,!1).style({numberFormat:"@"}),m.cell(2,2,c,20+_l,!1).style(y),m.column(13+_l).setWidth(34),m.column(15+_l).setWidth(34),m.column(17+_l).setWidth(34),m.column(1).setWidth(3),M=3,!(o.length>0)){t.next=68;break}return t.next=68,o.forEach((function(e,t){m.cell(M+t,2).string(e.userId),m.cell(M+t,4).string(e.name),m.cell(M+t,5).string(e.furigana),m.cell(M+t,6).string(e.email),m.cell(M+t,7).number(e.isAdmin),m.cell(M+t,8).string(e.departmentId),m.cell(M+t,9).string(e.departmentName),m.cell(M+t,8+_l).number(e.isPhoneAdmin),m.cell(M+t,9+_l).number(e.shareKeyBeValid),m.cell(M+t,10+_l).number(e.isPasswordLoginValid),m.cell(M+t,11+_l).number(e.isMfaSms),m.cell(M+t,12+_l).string(e.phoneNumber),m.cell(M+t,13+_l).string(e.option1),m.cell(M+t,14+_l).string(e.option2),e.pCodes[0]&&(m.cell(M+t,15+_l).number(e.pCodes[0].type),m.cell(M+t,16+_l).string(e.pCodes[0].pCodeId)),e.pCodes[1]&&(m.cell(M+t,17+_l).number(e.pCodes[1].type),m.cell(M+t,18+_l).string(e.pCodes[1].pCodeId)),e.pCodes[2]&&(m.cell(M+t,19+_l).number(e.pCodes[2].type),m.cell(M+t,20+_l).string(e.pCodes[2].pCodeId))}));case 68:return f.cell(2,2).string("ユーザーID"),f.cell(3,2).string("編集禁止").style({alignment:{vertical:"center",horizontal:"right"}}),t.next=72,r.forEach((function(t,a){var s=a+3;f.cell(2,s).string(t.name).style({alignment:{textRotation:90,vertical:"center",horizontal:"center"}}),f.cell(3,s).string(t.groupId).style({alignment:{textRotation:90,vertical:"center",horizontal:"center"},fill:{type:"pattern",patternType:"solid",bgColor:"808080",fgColor:"808080"}});for(var r=3;r<=c;r++){var o=p[0]+"!B"+r;f.cell(r+1,s).string(""),f.cell(r+1,2).formula("IF( "+o+'= "", "", '+o+")").style({alignment:{vertical:"center",horizontal:"left"}})}e.countColumn++}));case 72:return t.next=74,o.forEach((function(e,t){r.forEach((function(a,s){var r=n.filter((function(t){return t.userId===e.userId&&t.groupId===a.groupId}));r.length>0&&f.cell(t+4,s+3).number(1)}))}));case 74:L=i.getExcelCellRef(c+1,e.countColumn+1),f.cell(2,2,c+1,e.countColumn+1,!1).style(y),f.cell(1,3).string(_).style({alignment:{vertical:"center",horizontal:"left"},font:{name:"MS PGothic"}}),f.addDataValidation({type:"list",allowBlank:!0,showDropDown:!0,sqref:"C4:"+L,formulas:["="+p[2]+"!$B$3:$B$5"]}),f.cell(2,2).style({alignment:{vertical:"center",horizontal:"left"}}),f.cell(4,3,c+1,e.countColumn+1).style({fill:{type:"pattern",patternType:"solid",bgColor:"bfbfbf",fgColor:"bfbfbf"}}),f.column(2).setWidth(24),f.row(3).hide(),f.addConditionalFormattingRule("C4:"+L,{type:"expression",priority:1,formula:'NOT(ISERROR(SEARCH("1",C4:'+L+")))",style:v}),D=a("21a6"),l.writeToBuffer().then((function(e){var t=new Blob([e]);D(t,"alluser-data.xlsx")}));case 85:case"end":return t.stop()}}),t)})))()},clickConfirmEmail:function(e){this.typeConfirm=e.type,this.showModalProcess=!1,this.showModalConfirmEmail=!0},clickImportExcel:function(e){var t=this;this.showModalConfirmEmail=!1,this.resetAllValue(),this.isLoading=!0,setTimeout((function(){t.importExelAllUser(e)}),200)},importExelAllUser:function(e){var t=this,s=e.files;if(null!==s&&void 0!==s&&0!==s.length){var r=new FileReader;r.onload=function(){var e=r.result,s=a("1146"),o=s.read(e,{type:"array"});t.sheetUserName=o.SheetNames[0],t.sheetGroupName=o.SheetNames[1];var n=o.Sheets[t.sheetUserName],i=o.Sheets[t.sheetGroupName];if(t.isLoading=!1,t.showProgressImport=!0,void 0!==n&&void 0!==i){var l=s.utils.sheet_to_json(n,{header:1}),c=s.utils.sheet_to_json(i,{header:1}),u=l[1],d=c[1],g=void 0===u[0];l.forEach((function(e){g&&void 0===e[0]&&e.splice(0,1);for(var t=0;t0)for(var I=0;I0&&t.groupGateArray.length>0)for(var w=1;w0?t.isHasLowerCaseCardNumberExcel?t.showProgressImport=!1:t.UserSheetImportData.length>0?(t.percentProcess=100/t.totalDataRowImport,t.excuteRegisterUser().then((function(){t.groupGateArray.length>1?(t.percentProcessSheet2=100/t.totalDataRowSheet2,t.gateGrpImportExe()):t.isFinishProcess=!0}))):t.groupGateArray.length>0?t.gateGrpImportExe():t.isFinishProcess=!0:(t.isFinishProcess=!0,t.errorMessageCsvXlsx="不正なファイルです。正しいファイルを選択しなおしてください。")}else t.isFinishProcess=!0,t.errorMessageCsvXlsx="不正なファイルです。正しいファイルを選択しなおしてください。"}else t.isFinishProcess=!0,t.errorMessageCsvXlsx="不正なファイルです。正しいファイルを選択しなおしてください。"},r.onerror=function(){t.isLoading=!1;var e="選択されているファイルの読み込みに失敗しました。
";e+="ブラウザの更新、もしくは別ファイルを選択してから
再度アップロードしたいファイルを選択してください。",t.errorMessageCsvXlsx=e,t.isFinishProcess=!0,t.showProgressImport=!0},r.readAsArrayBuffer(s)}else this.isLoading=!1,this.showProgressImport=!0,this.errorMessageCsvXlsx="XLSXのファイルを選択してください。",this.isFinishProcess=!0},excuteRegisterUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.closeDialogCheckCardExcel(),e.showProgressImport=!0,a=Object(rr["a"])(e.UserSheetImportData),t.prev=3,a.s();case 5:if((s=a.n()).done){t.next=63;break}if(r=s.value,0!==e.UserSheetImportData.length){t.next=9;break}return t.abrupt("break",63);case 9:if(o="",!(void 0===r[0]||r[0][0].length<4||r[0][0].length>96)){t.next=15;break}o=e.sheetUserName+"シート>>"+r[1]+" 行目>>入力したパラメーターが誤っています。入力内容をご確認ください。",e.$set(e.errorMessageImport,e.rowinErrDialog++,o),t.next=60;break;case 15:return n=r[0][10+Pl].replace(/\u200B/g,""),i=n.substring(1),l=r[0][9+Pl],c="",u=e.convertStringToBoolean(l,!1),d=e.convertStringToBoolean(r[0][5],!1),g=e.convertStringToBoolean(r[0][6+Pl],!1),p=e.convertStringToBoolean(r[0][7+Pl],!1),m=e.convertStringToBoolean(r[0][8+Pl],!0),f=!1,f=null!==r[0][4]&&""!==r[0][4],console.log("excuteRegisterUser",r[0][0]),h={userId:r[0][0],name:r[0][2],furigana:r[0][3],email:r[0][4],isAdmin:d,isPhoneAdmin:g,shareKeyBeValid:p,isMfaSms:u,option1:r[0][11+Pl],option2:r[0][12+Pl],isSendEmail:f,isPasswordLoginValid:m},u&&(n.match(/^[0][0-9]{10}$/)&&(c="+81"+i),h.phoneNumber=c),r[0][1]&&(h.password=r[0][1]),t.next=32,e.userEditExel(h,r[1],r[0][6]);case 32:if(v=t.sent,2!==v){t.next=38;break}return""!==r[0][6]&&Pl>0&&(h.departmentIds=[r[0][6]]),t.next=37,e.userAddExel(h,r[1]);case 37:v=t.sent;case 38:return t.next=40,e.pCodeAddExel(r[0][0],r[0][13+Pl],r[0][14+Pl],r[1]);case 40:if(b=t.sent,2!==b){t.next=45;break}return t.next=44,e.pCodeEditExel(r[0][0],r[0][14+Pl],r[1]);case 44:b=t.sent;case 45:return t.next=47,e.pCodeAddExel(r[0][0],r[0][15+Pl],r[0][16+Pl],r[1]);case 47:if(y=t.sent,2!==y){t.next=52;break}return t.next=51,e.pCodeEditExel(r[0][0],r[0][16+Pl],r[1]);case 51:y=t.sent;case 52:return t.next=54,e.pCodeAddExel(r[0][0],r[0][17+Pl],r[0][18+Pl],r[1]);case 54:if(I=t.sent,2!==I){t.next=59;break}return t.next=58,e.pCodeEditExel(r[0][0],r[0][18+Pl],r[1]);case 58:I=t.sent;case 59:1===v&&1===b&&1===y&&1===I&&e.UserSheetImportData.length>0&&e.successItemImport++;case 60:e.UserSheetImportData.length>0&&(e.progressCsvXlsx+=e.percentProcess);case 61:t.next=5;break;case 63:t.next=68;break;case 65:t.prev=65,t.t0=t["catch"](3),a.e(t.t0);case 68:return t.prev=68,a.f(),t.finish(68);case 71:case"end":return t.stop()}}),t,null,[[3,65,68,71]])})))()},userEditExel:function(e,t,a){var s=this,r=this;return console.log("useruseruseruser",e),new Promise((function(o){s.$http.put(T+"/"+encodeURIComponent(encodeURIComponent(e.userId)),e).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(r),t.next=3,s.updateDepartmentId(a,e.userId);case 3:o(1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(null,(function(a){console.log("err: ",a);var n="",i="";switch(a.status){case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageImport,r.rowinErrDialog++,n);break;case 403:i="アクセス情報が不正です。ログインし直してからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageImport,r.rowinErrDialog++,n);break;case 404:case 401:o(2);break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageImport,r.rowinErrDialog++,n);break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageImport,r.rowinErrDialog++,n);break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageImport,r.rowinErrDialog++,n);break}o(0)}))}))},gateGrpImportExe:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,s=new Map,r=1;case 3:if(!(r96)){t.next=23;break}p=a.sheetGroupName+"シート>>>>"+d+" 行目>>入力したパラメーターが誤っています。入力内容をご確認ください。",e.$set(e.errorMessageImport,a.rowinErrDialog++,p),t.next=71;break;case 23:if(!0===s.has(u)){t.next=30;break}return console.log("call api to check user",u),t.next=27,e.checkUserValid(u);case 27:m=t.sent,console.log(u,"is valid",m),s.set(u,m);case 30:if(f=s.get(u),!f){t.next=68;break}if(void 0!==g&&""!==g){t.next=36;break}a.successItemSheet2++,t.next=66;break;case 36:if(1!==parseInt(g)&&0!==parseInt(g)){t.next=63;break}return t.next=39,e.getGroupPassageId(o,u);case 39:if(h=t.sent,!1!==h){t.next=52;break}if(1!==parseInt(g)){t.next=49;break}return console.log("Add "+u+" to "+o),t.next=45,e.addGroupPassage(o,u);case 45:v=t.sent,!0===v?a.successItemSheet2++:(console.log(u,a.rowinErrDialog),b=a.sheetGroupName+"シート>>"+d+" 行目>>"+o+">>"+u+">>"+v+"",e.$set(e.errorMessageImport,a.rowinErrDialog++,b)),t.next=50;break;case 49:0===parseInt(g)&&a.successItemSheet2++;case 50:t.next=61;break;case 52:if(0!==parseInt(g)){t.next=60;break}return console.log("Delelte "+u+" from "+o),t.next=56,a.deleteGroupPassage(h);case 56:y=t.sent,!0===y?a.successItemSheet2++:(I=a.sheetGroupName+"シート>>"+d+" 行目>>"+o+">>"+u+">>"+y+"",e.$set(e.errorMessageImport,a.rowinErrDialog++,I)),t.next=61;break;case 60:1===parseInt(g)&&a.successItemSheet2++;case 61:t.next=66;break;case 63:console.log("status is invalid"),x=a.sheetGroupName+"シート>>"+d+" 行目>>"+o+">>"+u+">>ステータス値が無効です",e.$set(e.errorMessageImport,a.rowinErrDialog++,x);case 66:t.next=71;break;case 68:console.log("user is invalid",u),C=a.sheetGroupName+"シート>>"+d+" 行目>>"+u+">>ユーザーは存在しません。入力内容をご確認ください。",e.$set(e.errorMessageImport,a.rowinErrDialog++,C);case 71:e.groupGateArray.length>0&&(e.progressSheet2+=e.percentProcessSheet2);case 72:t.next=11;break;case 74:t.next=79;break;case 76:t.prev=76,t.t0=t["catch"](9),i.e(t.t0);case 79:return t.prev=79,i.f(),t.finish(79);case 82:r++,t.next=3;break;case 85:e.isFinishProcess=!0;case 86:case"end":return t.stop()}}),t,null,[[9,76,79,82]])})))()},addGroupPassage:function(e,t){var a=this;return new Promise((function(s){a.$http.post(Z,{groupId:e,userId:t}).then((function(e){s(!0)}),(function(a){console.log(a);var r="";switch(a.status){case 401:r="The incoming token has expired"===a.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:r="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:r="アクセス情報が不正です。ログインし直してからやり直してください。";break;case 404:r="該当するデーターがありません。";break;case 409:console.log(Z+":"+e+" "+t+" failed"),r="通行権限が重複しています。";break;case 420:r="ユーザー登録数が上限に達しています。";break;case 500:r="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:r="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:r="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}s(r)}))}))},deleteGroupPassage:function(e){var t=this;return new Promise((function(a){t.$http.delete(Z+"/"+encodeURIComponent(e)).then((function(e){a(!0)}),(function(e){console.log(e);var t="";switch(e.status){case 403:t="通行権限グループ通行権限の削除権限がありません。";break;case 404:t="該当するデーターがありません。";break;case 500:t="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:t="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:t="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}a(t)}))}))},checkUserValid:function(e){var t=this;return new Promise((function(a){t.$http.get(T+"?userId="+encodeURIComponent(e)).then((function(e){a(!0)}),(function(e){console.log(e),a(!1)}))}))},getGroupPassageId:function(e,t){var a=this;return new Promise((function(s){a.$http.get(Z+"?groupId="+encodeURIComponent(e)+"&userId="+encodeURIComponent(t)).then((function(e){e.data.groupPassages.length>0&&s(e.data.groupPassages[0].groupPassageId),s("")}),(function(e){console.log(e),s(!1)}))}))},pCodeAddExe:function(e,t,a,s,r){var o=this,n=this;return new Promise((function(i){if(""!==t&&""!==a){var l={userId:e,pCodeId:a,type:parseInt(t),isValid:s};o.$http.post(Ot,l).then((function(e){console.log(e),i(1)})).then(null,(function(e){console.log("err: ",e);var t="",s="",l="";switch(n.sheetUserName.length>0&&(l=n.sheetUserName+"シート>>"),e.status){case 401:s="The incoming token has expired"===e.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:s="入力したパラメーターが誤っています。入力内容をご確認ください。",t=l+r+" 行目>>"+a+">>"+s+"",o.$set(o.errorMessageImport,n.rowinErrDialog++,t);break;case 403:s="個人コードの追加権限がありません。",t=l+r+" 行目>>"+a+">>"+s+"",o.$set(o.errorMessageImport,n.rowinErrDialog++,t);break;case 404:i(3);break;case 409:i(2);break;case 420:o.errorMessageCsvXlsx="個人コード登録数が上限に達しています。";break;case 500:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=l+r+" 行目>>"+a+">>"+s+"",o.$set(o.errorMessageImport,n.rowinErrDialog++,t);break;case 503:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=l+r+" 行目>>"+a+">>"+s+"",o.$set(o.errorMessageImport,n.rowinErrDialog++,t);break;default:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=l+r+" 行目>>"+a+">>"+s+"",o.$set(o.errorMessageImport,n.rowinErrDialog++,t);break}i(0)}))}else i(1)}))},pCodeAddExel:function(e,t,a,s){var r=this,o=this;return new Promise((function(n){if(""!==t&&""!==a){var i={userId:e,pCodeId:a,type:parseInt(t),isValid:!0};r.$http.post(Ot,i).then((function(e){console.log(e),n(1)})).then(null,(function(e){console.log("err: ",e);var t="",i="";switch(e.status){case 401:i="The incoming token has expired"===e.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageImport,o.rowinErrDialog++,t);break;case 403:i="個人コードの追加権限がありません。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageImport,o.rowinErrDialog++,t);break;case 404:i=aa,t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageImport,o.rowinErrDialog++,t);break;case 409:n(2);break;case 420:r.errorMessageCsvXlsx="個人コード登録数が上限に達しています。";break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageImport,o.rowinErrDialog++,t);break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageImport,o.rowinErrDialog++,t);break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageImport,o.rowinErrDialog++,t);break}n(0)}))}else n(1)}))},pCodeEditCSV:function(e,t,a,s){var r=this,o=this;return new Promise((function(n){var i;i=null!==a&&void 0!==a?{userId:e,isValid:a}:{userId:e},r.$http.put(Ot+"/"+encodeURIComponent(t),i).then((function(e){console.log(e),n(1)})).then(null,(function(e){console.log("err: ",e);var a="",i="",l="";switch(o.sheetUserName.length>0&&(l=o.sheetUserName+"シート>>"),e.status){case 401:i="The incoming token has expired"===e.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:i="個人コードの編集権限がありません。";break;case 404:i=aa;break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}a=l+s+" 行目>> 個人コード: "+t+">>"+i+"",r.$set(r.errorMessageImport,o.rowinErrDialog++,a),n(0)}))}))},pCodeEditExel:function(e,t,a){var s=this,r=this;return new Promise((function(o){var n={userId:e};s.$http.put(Ot+"/"+encodeURIComponent(t),n).then((function(e){console.log(e),o(1)})).then(null,(function(e){console.log("err: ",e);var n="",i="";switch(e.status){case 401:i="The incoming token has expired"===e.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:i="個人コードの編集権限がありません。";break;case 404:i=aa;break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}n=r.sheetUserName+"シート>>"+a+" 行目>> 個人コード: "+t+">>"+i+"",s.$set(s.errorMessageImport,r.rowinErrDialog++,n),o(0)}))}))},userAddExel:function(e,t){var a=this,s=this;return new Promise((function(r){a.$http.post(T,e).then((function(o){if("Success"===o.body.message)console.log(o),r(1);else{var n="",i="";i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",a.$set(a.errorMessageImport,s.rowinErrDialog++,n),r(0)}})).then(null,(function(o){console.log("err: ",o);var n="",i="";switch(o.status){case 401:i="The incoming token has expired"===o.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 403:i="アクセス情報が不正です。ログインし直してからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 409:i="入力されたユーザーIDは既に使用されています。他のユーザーIDを入力してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break}a.$set(a.errorMessageImport,s.rowinErrDialog++,n),r(0)}))}))},closeModalProgressImport:function(){this.successItemImport>0?(this.isReload=!0,this.resetAllValue()):this.resetAllValue()},showDialogImport:function(e){this.showModalImport=!0,this.isShowViewCSV=e,this.isReload=!1},clickEditCard:function(e){this.$router.push({path:Je,query:{pCodeId:e}})},closeImportCSV:function(){this.showModalImport=!1,this.isReload&&this.getListCards()},convertStringToBoolean:function(e,t){var a=e.trim().toLowerCase();switch(a){case"1":return!0;case"0":return!1;default:return t}},converToBit:function(e){var t=void 0!==e?e.toString():"";switch(t=null!==t&&""!==t?t.trim().toLowerCase():"false",t){case"true":return 1;case"false":return 0;default:return 1}},converToDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD")},closeDialogEnable:function(){this.showProgress=!1,this.successItemProcess>0&&this.getListCards()},showDialogConfirm:function(e){this.typeAction=e.type,this.dataAction=e.data,this.showConfirm=!0},closeDialogConfirm:function(){this.showConfirm=!1},clickPCodesAction:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.showConfirm=!1,e.errorMessageLogs="",e.showProgress=!0,e.rowinErrDialog=0,e.rowinErrDialog=0,e.errorMessageProcess=[],e.successItemProcess=0,e.progress=0,e.isFinishProcessEnable=!1,e.totalDataRowProcess=e.dataAction.length,a=100/e.totalDataRowProcess,s=Object(rr["a"])(e.dataAction),t.prev=12,s.s();case 14:if((r=s.n()).done){t.next=31;break}if(o=r.value,n=void 0,0!==e.typeAction){t.next=23;break}return t.next=20,e.enableOrDisablePcodes(o,!0);case 20:n=t.sent,t.next=27;break;case 23:if(1!==e.typeAction){t.next=27;break}return t.next=26,e.enableOrDisablePcodes(o,!1);case 26:n=t.sent;case 27:n&&e.successItemProcess++,e.progress+=a;case 29:t.next=14;break;case 31:t.next=36;break;case 33:t.prev=33,t.t0=t["catch"](12),s.e(t.t0);case 36:return t.prev=36,s.f(),t.finish(36);case 39:e.isFinishProcessEnable=!0;case 40:case"end":return t.stop()}}),t,null,[[12,33,36,39]])})))()},enableOrDisablePcodes:function(e,t){var a=this;return new Promise((function(s){var r={isValid:t};a.$http.put(Ot+"/"+encodeURIComponent(e),r).then((function(e){console.log(e),s(!0)})).then(null,(function(t){var r="";switch(t.status){case 400:r="pcodeIdの形式が間違っている。";break;case 403:r="Unauthorized"===t.message?ta:ia;break;case 404:r="pcodeIdが存在しない。";break;case 420:r="ゲートに紐づく個人コードが上限を超えるため、変更できない。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},closeDialogCheckCardCSV:function(){this.isHasLowerCaseCardNumberCSV=!1},closeDialogCheckCardExcel:function(){this.isHasLowerCaseCardNumberExcel=!1},clickCheckBoxExportUserInfoCSV:function(){this.isExportUserInfoCSV=!this.isExportUserInfoCSV},getDataForGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t,s=1,r=!0;case 3:if(!r){a.next=10;break}return a.next=6,t.getGroupExport(s,e);case 6:s++,r=s<=t.maxPageGroup,a.next=3;break;case 10:case"end":return a.stop()}}),a)})))()},getGroupExport:function(e,t){var a=this;return new Promise((function(s,r){a.$http.get(H+"?limit=1000&page="+e).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(r){var o,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=Object(rr["a"])(r.body.groups);try{for(o.s();!(n=o.n()).done;)i=n.value,a.exportGroupData.push({groupId:i.groupId,name:i.name})}catch(l){o.e(l)}finally{o.f()}if(!t){e.next=5;break}return e.next=5,Promise.all(r.body.groups.map((function(e){return a.getUserGroup(e.groupId)})));case 5:console.log(a.exportGroupData),r.body.maxRecords>0&&(a.maxPageGroup=Math.ceil(r.body.maxRecords/1e3)),s(!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),s(!1)}))}))},getDataForUserExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e,a=1,s=!0;case 3:if(!s){t.next=10;break}return t.next=6,e.getUserExportExcel(a);case 6:a++,s=a<=e.maxPageUser,t.next=3;break;case 10:case"end":return t.stop()}}),t)})))()},getUserExportExcel:function(e){var t=this,a=1e3;return new Promise((function(s,r){t.$http.get(T+"?limit="+a+"&page="+e+"&isExceptOptionalUser=true&exclude=thumbnail").then(function(){var r=Object(or["a"])(regeneratorRuntime.mark((function r(o){var n,i,l,c,u,d;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=0;case 1:if(!(n=0&&(t.exportUserData[s].departmentId=a.length>0&&""!==a[0].departmentId?a[0].departmentId:"",t.exportUserData[s].departmentName=a.length>0&&""!==a[0].departmentId?a[0].department.name:"")})),l.push(g);case 9:case"end":return s.stop()}}),s)})),c.s();case 8:if((u=c.n()).done){r.next=12;break}return r.delegateYield(d(),"t0",10);case 10:r.next=8;break;case 12:r.next=17;break;case 14:r.prev=14,r.t1=r["catch"](5),c.e(r.t1);case 17:return r.prev=17,c.f(),r.finish(17);case 20:return r.next=22,Promise.all(l);case 22:n+=20,r.next=1;break;case 25:o.body.maxRecords>0&&(t.maxPageUser=Math.ceil(o.body.maxRecords/a)),s(!0);case 27:case"end":return r.stop()}}),r,null,[[5,14,17,20]])})));return function(e){return r.apply(this,arguments)}}()).then(null,(function(e){s(!1)}))}))},getPcodeOneUser:function(e,t){var a=this;return new Promise((function(t,s){a.$http.get(j+"?limit=1000&page=1&sortKey=desc:registered&userId="+encodeURIComponent(e)).then((function(s){if(s.body.maxRecords>0&&s.body.pCodes){var r=a.exportUserData.findIndex((function(t){return t.userId===e}));r>=0&&(a.exportUserData[r].pCodes=s.body.pCodes.slice(0,3)),t(!0)}else t(!1)})).then(null,(function(e){t(!1)}))}))},getUserGroup:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Z+"?groupId="+encodeURIComponent(e)+"&limit=1000&page=1").then((function(e){if(e.body.maxRecords>0&&e.body.groupPassages){var s,r=Object(rr["a"])(e.body.groupPassages);try{for(r.s();!(s=r.n()).done;){var o=s.value,n={groupId:o.groupId,userId:o.userId};t.exportGroupPassages.push(n)}}catch(i){r.e(i)}finally{r.f()}setTimeout((function(){a(!0)}),300)}else setTimeout((function(){a(!1)}),300)})).then(null,(function(e){setTimeout((function(){a(!1)}),300)}))}))},excuteImportExcel:function(){var e=this;this.UserSheetImportData.length>0?(this.percentProcess=100/this.totalDataRowImport,this.excuteRegisterUser().then((function(){e.groupGateArray.length>1?(e.percentProcessSheet2=100/e.totalDataRowSheet2,e.gateGrpImportExe()):e.isFinishProcess=!0}))):this.groupGateArray.length>0?this.gateGrpImportExe():this.isFinishProcess=!0},actionWait:function(e){return new Promise((function(t,a){setTimeout((function(){t(!0)}),e)}))},getDepartmentUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Pe+"?userId=".concat(encodeURIComponent(e),"&embed=department")).then((function(e){a(e.body)})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},updateDepartmentId:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r,o,n,i,l;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(Pl>0)){s.next=20;break}return s.next=3,a.getDepartmentUser(t);case 3:if(r=s.sent,o="",!r){s.next=18;break}if(n=r.relationsDepartmentUser[0],o=n.department.departmentId,i=n.relationId,e===o){s.next=16;break}return s.next=12,a.deleteDepartmentId(i);case 12:if(l=s.sent,!l){s.next=16;break}return s.next=16,a.addDepartmentId({departmentId:e,userId:t});case 16:s.next=20;break;case 18:return s.next=20,a.addDepartmentId({departmentId:e,userId:t});case 20:case"end":return s.stop()}}),s)})))()},deleteDepartmentId:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Pe+"/"+e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},addDepartmentId:function(e){var t=this;return new Promise((function(a,s){t.$http.post(Pe,e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))}}}),Ll=Ml,Dl=Object(I["a"])(Ll,tr,ar,!1,null,null,null),Gl=Dl.exports,Al=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("card-add-template",{attrs:{typeItems:e.typeItems,userItems:e.userItems,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,cardDetail:e.cardDetail,isEdit:e.isEdit,isResetData:e.isResetData},on:{clickBackCard:function(t){return e.clickBackCard(t)},clickSaveCard:function(t){return e.clickSaveCard(t)},clickUpdateCard:function(t){return e.clickUpdateCard(t)}}})},Rl=[],Tl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add-card"},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickBackCard")}}},[e._v("\n 戻る\n ")])],1)],1),e._v(" "),""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n カード情報\n ")])],1),e._v(" "),a("card-add-form",{attrs:{typeItems:e.typeItems,userItems:e.userItems,cardDetail:e.cardDetail,loading:e.loading,isResetData:e.isResetData,isEdit:e.isEdit,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs},on:{clickSaveCard:function(t){return e.$emit("clickSaveCard",t)},clickUpdateCard:function(t){return e.$emit("clickUpdateCard",t)}}})],1)],1)},El=[],Ol=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-card-add-form common-class"},[a("v-container",{staticClass:"pa-0"},[a("v-form",{ref:"CardAddForm",attrs:{"lazy-validation":""}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("input-form",{attrs:{title:"カード番号 ※必須",inputType:"text",disabled:e.isEdit,rules:[e.rulesValidate.requiredPcodeId,e.rulesValidate.validatePcodeId(e.cardDetail.pCodeId,e.cardDetail.type)]},model:{value:e.cardDetail.pCodeId,callback:function(t){e.$set(e.cardDetail,"pCodeId",t)},expression:"cardDetail.pCodeId"}}),e._v(" "),a("input-form",{attrs:{title:"名称",inputType:"text",rules:[e.rulesValidate.validatePcodeName(e.cardDetail.name)],disabled:!e.authority.isAdmin&&e.isEdit},model:{value:e.cardDetail.name,callback:function(t){e.$set(e.cardDetail,"name",t)},expression:"cardDetail.name"}}),e._v(" "),a("input-form",{attrs:{title:"カード種別",inputType:"select","select-items":e.typeItems,disabled:e.isEdit,isAttach:!0},model:{value:e.cardDetail.type,callback:function(t){e.$set(e.cardDetail,"type",t)},expression:"cardDetail.type"}}),e._v(" "),a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("\n ユーザー\n "),e.authority.isAdmin||e.isEdit?e._e():a("span",{staticClass:"required"},[e._v(" ※必須")])])],1):e._e(),e._v(" "),a("v-col",{class:{"required-user-color":!e.authority.isAdmin}},[a("v-autocomplete",{attrs:{rules:e.authority.isAdmin?[]:[function(){return e.rulesValidate.validateUserIdAutoComplete(e.cardDetail.userId,!e.isEdit)}],items:e.userItems,color:"green","return-object":"","hide-details":"auto",outlined:"",dense:"","deletable-chips":"","small-chips":"","no-data-text":"",disabled:0===e.userItems.length,autocomplete:"off","menu-props":{contentClass:"v-select-item "},attach:!0},model:{value:e.cardDetail.userId,callback:function(t){e.$set(e.cardDetail,"userId",t)},expression:"cardDetail.userId"}})],1)],1),e._v(" "),a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("div",{staticClass:"v-subheader justify-start theme--light"},[e._v("ステータス")])]):e._e(),e._v(" "),a("v-col",[a("v-switch",{staticClass:"v-input--reverse swicth-all",attrs:{disabled:!e.authority.isAdmin,color:"green","hide-details":"auto",inset:"",label:e.$vuetify.breakpoint.mdAndUp?e.cardDetail.isValid?"ON":"OFF":e.cardDetail.isValid?"ステータス ON":"ステータス OFF"},model:{value:e.cardDetail.isValid,callback:function(t){e.$set(e.cardDetail,"isValid",t)},expression:"cardDetail.isValid"}})],1)],1)],1)],1),e._v(" "),!0===e.isEdit?a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-col",{staticClass:"messageRow",attrs:{cols:"11",align:"right"}},[""!==e.successMessageLogs&&!1===e.loading?a("span",{staticClass:"mb-4 font-weight-bold mt-2 bg-success bg-no"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("span",{staticClass:"mb-4 font-weight-bold mt-2 bg-error bg-no"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()]),e._v(" "),a("v-col",{staticClass:"messageRow",attrs:{cols:"1",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:null===e.cardDetail.pCodeId||void 0===e.cardDetail.pCodeId||""===e.cardDetail.pCodeId,outlined:""},on:{click:e.updateCard}},[e._v("\n 保存する\n ")])],1)],1):a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-col",{staticClass:"messageRow",attrs:{cols:"11",align:"right"}},[""!==e.successMessageLogs&&!1===e.loading?a("span",{staticClass:"mb-4 font-weight-bold mt-2 bg-success bg-no"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("span",{staticClass:"mb-4 font-weight-bold mt-2 bg-error bg-no"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()]),e._v(" "),a("v-col",{staticClass:"messageRow",attrs:{cols:"1",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.checkCard}},[e._v("\n 登録\n ")])],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isHasLowerCaseCardNumber,callback:function(t){e.isHasLowerCaseCardNumber=t},expression:"isHasLowerCaseCardNumber"}},[a("v-card",{staticClass:"modal-export"},[a("v-card-title",{staticClass:"modal-title",attrs:{color:"green"}},[e._v("カード登録")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n カード番号に半角英字の小文字が含まれております。"),a("br"),e._v("\n 小文字が含まれているとカードが正常に読み込まれません。"),a("br"),e._v("\n 小文字が含まれているかを確認してください。\n ")])])]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.closeDialogConfirm}},[e._v("見直す\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary btn-red",attrs:{outlined:""},on:{click:e.saveCard}},[e._v("小文字が含まれていても登録する\n ")])],1)],1)],1)],1)],1)],1)},Vl=[],Ul=f["a"].extend({name:"CardAddForm",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io},props:{confirm:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},typeItems:{type:Array,default:function(){return[]}},userItems:{type:Array,default:function(){return[]}},cardDetail:{type:Object,default:{}},isResetData:{default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}},watch:{isResetData:function(e){e&&this.$refs.CardAddForm.resetValidation()}},data:function(){return{rulesValidate:{requiredPcodeId:function(e){return!!e||ss},validatePcodeId:function(e,t){var a;return a=1===t?/^[0-9]{4,20}$/:/^[a-zA-Z0-9]{4,20}$/,a.test(e)||(1===t?ns:os)},validateUserId:function(e){if(null!==e&&void 0!==e&&""!==e){var t=/^[a-zA-Z0-9.!@#$%&'*+/=?^_`{|}~-]{4,96}$/;return t.test(e)||is}return!0},validatePcodeName:function(e){return null===e||void 0===e||""===e||(e.length<=64||"名称は64文字以内で入力してください。")},validateUserIdAutoComplete:function(e,t){return!t||(!(!e||!e.value)||"ユーザーは必須です。")}},isHasLowerCaseCardNumber:!1,authority:er.state.auth}},methods:{checkCard:function(){var e=this.$refs.CardAddForm.validate();e&&(this.cardDetail.pCodeId.toUpperCase()!==this.cardDetail.pCodeId?this.isHasLowerCaseCardNumber=!0:this.saveCard())},saveCard:function(){var e=this.$refs.CardAddForm.validate();e&&this.$emit("clickSaveCard",{data:this.cardDetail}),this.closeDialogConfirm()},updateCard:function(){var e=this.$refs.CardAddForm.validate();e&&this.$emit("clickUpdateCard",{data:this.cardDetail})},closeDialogConfirm:function(){this.isHasLowerCaseCardNumber=!1}}}),$l=Ul,Nl=(a("60a4"),a("4bd4")),Fl=Object(I["a"])($l,Ol,Vl,!1,null,null,null),jl=Fl.exports;C()(Fl,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VForm:Nl["a"],VRow:Kr["a"],VSubheader:Yr["a"],VSwitch:ro["a"]});var Bl=f["a"].extend({name:"CardAddtemplate",components:{CardAddForm:jl,Breadcrumbs:cn},props:{typeItems:{type:Array,default:function(){return[]}},userItems:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!0},isEdit:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},cardDetail:{default:{}},isResetData:{default:!1}},computed:{breadcrumbs:{get:function(){return[{text:"カード",link:!0,exact:!0,disabled:!1,to:{path:qe}},{text:this.isEdit?"カード編集":"新規カード登録",disabled:!0}]}}}}),zl=Bl,Hl=Object(I["a"])(zl,Tl,El,!1,null,null,null),Kl=Hl.exports;C()(Hl,{VBtn:pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var Yl=nr["a"].extend({name:"CardAddPage",components:{CardAddTemplate:Kl},data:function(){return{typeItems:[{text:"NFCカード",value:0},{text:"テンキー",value:1}],userItems:[],loading:!1,successMessageLogs:"",errorMessageLogs:"",isEdit:!1,cardDetail:{pCodeId:"",userId:{},type:0,name:"",isValid:!0},isResetData:!1,authority:er.state.auth,targetDepartmentIds:[]}},watch:{loading:function(e){this.$emit("loading",e)}},mounted:function(){this.loadData()},methods:{clickBackCard:function(){this.$router.push({path:qe})},clickSaveCard:function(e){this.registerData(e)},clickUpdateCard:function(e){this.updateData(e)},loadData:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e.$route.query,void 0!==a.pCodeId&&(e.isEdit=!0,e.getCardData(a.pCodeId.toString())),e.getUsers(1);case 3:case"end":return t.stop()}}),t)})))()},getUsers:function(e){var t=this;this.authority.isAdmin?this.$http.get(Ne+"?limit=10000&page="+e+"&sortKey=asc:userId&isValid=true&isExceptOptionalUser=true&exclude=thumbnail").then((function(a){a.body.maxRecords>0?(a.body.users.forEach((function(e){t.userItems.push({text:e.name,value:e.userId})})),a.body.maxRecords>a.body.endRecord&&t.getUsers(e+1)):t.userItems=[]})).then(null,(function(e){console.log("err: ",e)})):this.$http.get(_e+"?userId="+encodeURIComponent(localStorage.userProfileId)+"&limit=1000&page="+e).then((function(a){a.body.maxRecords>0?(a.body.departmentAdministrators.forEach((function(e){e.isAdminToSetPcodesToUser&&t.targetDepartmentIds.push(e.departmentId)})),a.body.maxRecords>a.body.endRecord?t.getUsers(e+1):t.targetDepartmentIds.length>0&&t.getRelationDepartmentUsers(1)):t.userItems=[]})).then(null,(function(e){console.log("err: ",e)}))},getRelationDepartmentUsers:function(e){var t=this;this.$http.get(Pe+"?limit=1000&page="+e+"&embed=user&isExceptOptionalUser=true&isValidUser=true").then((function(a){a.body.maxRecords>0&&(a.body.relationsDepartmentUser.forEach((function(e){t.targetDepartmentIds.includes(e.departmentId)&&t.userItems.push({text:e.user.name,value:e.user.userId})})),a.body.maxRecords>a.body.endRecord&&t.getRelationDepartmentUsers(e+1))})).then(null,(function(e){console.log("err: ",e)}))},getCardData:function(e){var t=this;this.loading=!0;var a=j+"?pCodeId="+encodeURIComponent(e);this.authority.isAdmin||(a+="&isExceptUnsettablePcode=true"),this.$http.get(a).then((function(e){t.loading=!1,console.log("response: ",e),e.body.maxRecords>0&&e.body.pCodes.length>0?(t.cardDetail=e.body.pCodes[0],t.cardDetail.userId={text:e.body.pCodes[0].userId,value:e.body.pCodes[0].userId}):(t.errorMessageLogs=ba,t.cardDetail={pCodeId:"",userId:{},type:-1,name:"",isValid:!1})})).then(null,(function(e){switch(t.loading=!1,console.log("err: ",e),t.cardDetail={pCodeId:"",userId:{},type:-1,name:"",isValid:!1},e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},registerData:function(e){var t=this,a=JSON.parse(JSON.stringify(e.data));void 0!==a.userId&&null!==a.userId&&""!==a.userId?a.userId=a.userId.value:a.userId="",console.log(a),this.resetData(),this.loading=!0,this.isResetData=!1,this.$http.post(j,a).then((function(e){"Success"===e.body.message?(t.loading=!1,t.successMessageLogs=Ga,t.cardDetail={pCodeId:"",userId:{},type:0,name:"",isValid:!0},t.isResetData=!0):(t.loading=!1,t.errorMessageLogs=ba)})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=t.cardDetail.userId+">>"+aa;break;case 409:t.errorMessageLogs="入力されたカード番号は既に使用されています。他のカード番号を入力してください。";break;case 420:t.errorMessageLogs="ゲートに紐づく個人カード番号が上限を超えるため、追加できない。";break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1}))},updateData:function(e){var t=this;console.log(e);var a=e.data,s={};s={userId:void 0!==a.userId&&null!==a.userId&&""!==a.userId?a.userId.value:"",type:a.type,isValid:a.isValid,name:a.name},this.authority.isAdmin||(s={userId:void 0!==a.userId&&null!==a.userId&&""!==a.userId?a.userId.value:""}),this.resetData(),this.loading=!0,this.$http.put(j+"/"+encodeURIComponent(a.pCodeId),s).then((function(e){"Success"===e.body.message?(t.loading=!1,t.successMessageLogs=Fa):(t.loading=!1,t.errorMessageLogs=ba)})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 409:t.errorMessageLogs="カード番号がすでに存在している。";break;case 420:t.errorMessageLogs="ゲートに紐づく個人カード番号が上限を超えるため、追加できない。";break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1}))},resetData:function(){this.successMessageLogs="",this.errorMessageLogs=""}}}),ql=Yl,Wl=Object(I["a"])(ql,Al,Rl,!1,null,null,null),Jl=Wl.exports,Zl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("card-detail-template",{attrs:{loading:e.loading,errorMessageLogs:e.errorMessageLogs,cardDetail:e.cardDetail},on:{clickBackCard:function(t){return e.clickBackCard(t)},clickEditCard:function(t){return e.clickEditCard(t)}}})},Xl=[],Ql=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add-card"},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickBackCard")}}},[e._v("\n 戻る\n ")])],1)],1),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n カード情報\n ")])],1),e._v(" "),a("card-detail-form",{attrs:{cardDetail:e.cardDetail},on:{clickEditCard:function(t){return e.$emit("clickEditCard",t)}}})],1)],1)},ec=[],tc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-card-detail"},[a("v-container",{staticClass:"pa-0"},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("div",{staticClass:"page-detail mb-10"},[a("div",{staticClass:"item-time-zone ml-10 mt-5"},[a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-3"},[a("div",{staticClass:"v-subheader"},[e._v("カード番号")])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.cardDetail.pCodeId)+" ")])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-3"},[a("div",{staticClass:"v-subheader"},[e._v("名称")])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.cardDetail.name)+" ")])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-3"},[a("div",{staticClass:"v-subheader"},[e._v("カード種別")])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[0===e.cardDetail.type?a("span",[e._v(" NFCカード ")]):1===e.cardDetail.type?a("span",[e._v("テンキー")]):e._e()])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-3"},[a("div",{staticClass:"v-subheader"},[e._v("ユーザー")])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.cardDetail.userId)+" ")])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-3"},[a("div",{staticClass:"v-subheader"},[e._v("ステータス")])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[!0===e.cardDetail.isValid?a("span",[e._v("有効")]):a("span",[e._v("OFF")])])])])])])]),e._v(" "),a("v-row",{staticClass:"mb-10",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:null===e.cardDetail.pCodeId||void 0===e.cardDetail.pCodeId||""===e.cardDetail.pCodeId},on:{click:function(t){return e.$emit("clickEditCard",e.cardDetail.pCodeId)}}},[e._v("編集")])],1)],1)],1)},ac=[],sc=f["a"].extend({name:"CardDetailForm",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io},props:{loading:{type:Boolean,default:!1},cardDetail:{default:{}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}}}),rc=sc,oc=Object(I["a"])(rc,tc,ac,!1,null,"2aa98120",null),nc=oc.exports;C()(oc,{VBtn:pr["a"],VCard:Pr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var ic=f["a"].extend({name:"CardDetailtemplate",components:{Breadcrumbs:cn,CardDetailForm:nc},props:{errorMessageLogs:{type:String,default:""},cardDetail:{default:{}}},computed:{breadcrumbs:{get:function(){return[{text:"カード",link:!0,exact:!0,disabled:!1,to:{path:qe}},{text:"カード詳細",disabled:!0}]}}}}),lc=ic,cc=Object(I["a"])(lc,Ql,ec,!1,null,null,null),uc=cc.exports;C()(cc,{VBtn:pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var dc=nr["a"].extend({name:"CardDetailPage",components:{CardDetailTemplate:uc},data:function(){return{loading:!1,errorMessageLogs:"",cardDetail:{pCodeId:"",userId:"",type:-1,name:"",isValid:!1},authority:er.state.auth}},watch:{loading:function(e){this.$emit("loading",e)}},mounted:function(){this.loadData()},methods:{clickBackCard:function(){this.$router.push({path:qe})},clickEditCard:function(e){this.$router.push({path:Je,query:{pCodeId:e}})},loadData:function(){var e=this.$route.query;void 0!==e.pCodeId&&this.getCardData(e.pCodeId.toString())},getCardData:function(e){var t=this;this.loading=!0;var a=j+"?pCodeId="+encodeURIComponent(e);this.authority.isAdmin||(a+="&isExceptUnsettablePcode=true"),this.$http.get(a).then((function(e){t.loading=!1,e.body.maxRecords>0&&e.body.pCodes.length>0?t.cardDetail=e.body.pCodes[0]:t.errorMessageLogs=ba})).then(null,(function(e){switch(t.loading=!1,console.log("err: ",e),e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))}}}),gc=dc,pc=Object(I["a"])(gc,Zl,Xl,!1,null,null,null),mc=pc.exports,fc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("card-import-template",{attrs:{loading:e.loading,showModalImport:e.showModalImport,progress:e.progress}})},hc=[],vc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table allig-user-table"},[!1===e.loading?a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1):e._e(),e._v(" "),a("v-container",[a("v-row",{staticClass:"ml-1 mt-2",attrs:{justify:"start"}},[a("CancelButton",{attrs:{text:"戻る"},on:{click:function(t){return e.$emit("goPageSetting")}}})],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-container",{staticClass:"info-export"},[a("v-dialog",{attrs:{width:"600"},model:{value:e.showModalImport,callback:function(t){e.showModalImport=t},expression:"showModalImport"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(" CSVファイルエクスポート ")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"row-message"},[""!==e.successMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-text",{staticClass:"pa-4"},[""===e.errorMessageLogs?a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.ceil(e.progress))+"%")])]):e._e()],1),e._v(" "),e.success?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalImport")}}})],1)],1):e._e()],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold mt-10"},[e._v("\n ログインユーザー 一括登録\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-5"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n Google ログインユーザーの登録を一括で実施することができます。"),a("br"),e._v("\n 登録するために必要なテンプレートCSVファイルは、”テンプレートのダウンロード”から取得してください。"),a("br"),e._v("\n このアップロードでは、既に登録されているユーザー情報を変更することはできません。"),a("br"),e._v("\n 変更したいユーザーについては、削除を行ってから実施してください。\n ")]),e._v(" "),a("div",{staticClass:"fallback mt-5"},[a("p",{staticClass:"desc"},[e._v("自分のコンピューターからファイルを選択する :")]),e._v(" "),a("label",{staticClass:"btn-upload",attrs:{for:"file_csv"}},[e._v("\n CSVファイルを選択\n "),a("input",{ref:"myFiles",staticClass:"custom-file-input",staticStyle:{display:"none"},attrs:{type:"file",id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}})]),e._v(" "),e.files?a("span",{staticClass:"filename"},[e._v(e._s(e.files.name))]):a("span",{staticClass:"filename"},[e._v("選択されていません")]),e._v(" "),a("span",{staticClass:"error"}),e._v(" "),a("div",{attrs:{id:"result"}}),e._v(" "),a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickImport",{files:e.files})}}},[e._v("\n 登録データのアップロード\n ")])],1)]),e._v(" "),a("v-card",{staticClass:"mt-10 pa-5"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n Google ログインユーザーの登録を一括で実施するテンプレートファイルをダウンロードできます。\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-secondary mr-0 mt-10",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickExport")}}},[e._v("\n 登録データのアップロード\n ")])],1)],1)],1)],1)},bc=[],yc=f["a"].extend({name:"RegisterLoginUserTemplate",components:{CancelButton:fr,SuccessButton:kr,InputForm:io},props:{loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},showModalImport:{type:Boolean,default:!1},success:{type:Boolean,default:!1},progress:{type:Number,default:0}},computed:{progressWidth:function(){return"width:"+this.progress+"%"}},data:function(){return{isShowModal:!1,files:[]}},watch:{message:function(){this.isShowModal&&(this.isShowModal=!1)}},methods:{showModal:function(e){this.isShowModal=!0},previewFiles:function(e){console.log(e.target.files[0]),this.files=e.target.files[0]}}}),Ic=yc,xc=(a("3032"),Object(I["a"])(Ic,vc,bc,!1,null,"8dd82eca",null)),Cc=xc.exports;C()(xc,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"]});var wc=nr["a"].extend({name:"CardImportPage",components:{CardImportTemplate:Cc},data:function(){return{loading:!0,successMessageLogs:"",errorMessageLogs:"",progress:0,showModalImport:!1}},mounted:function(){console.log("Card")},methods:{resetData:function(){this.successMessageLogs="",this.errorMessageLogs=""}}}),kc=wc,Sc=Object(I["a"])(kc,fc,hc,!1,null,null,null),_c=Sc.exports,Pc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("setting-template",{attrs:{passableTotalCount:e.passableTotalCount,dataPassables:e.dataPassables,pagePassable:e.pagePassable,perPagePassable:e.perPagePassable,dataPassableDetail:e.dataPassableDetail,ExpandedGroup:e.ExpandedGroup,timeSettings:e.timeSettings,pageGroup:e.pageGroup,loadingDate:e.loadingDate,timeAdd:e.timeAdd,loadingGroup:e.loadingGroup,saveFinish:e.saveFinish,isFinishDate:e.isFinishDate,isSaveDate:e.isSaveDate,isEdit:e.isEdit,isGetDataList:e.isGetDataList,showConfirmDelete:e.showConfirmDelete,blockCount:e.blockCount,pageLogin:e.currPage,pageSizeList:e.pageSizeList,loading:e.loading,SettingInfo:e.SettingInfo,logLabelErr:e.logLabelErr,message_success:e.message_success,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,errorMessageLogsModal:e.errorMessageLogsModal,successMessageLogsModal:e.successMessageLogsModal,countReset:e.countReset,oneLoginLoginService:e.oneLoginLoginService,appleIdLoginService:e.appleIdLoginService,googleLoginService:e.googleLoginService,isSamlFederatedLoginService:e.isSamlFederatedLoginService,isFederatedLoginService:e.isFederatedLoginService,federatedLoginServiceId:e.federatedLoginServiceId,isExternalLogin:e.isExternalLogin,isDisabled:e.isDisabled,userList:e.userList,realtionsUserList:e.realtionsUserList,cognitoIdProviderName:e.cognitoIdProviderName,sucessStatus:e.sucessStatus,maxRecord:e.maxRecord,pages:e.pages,page:e.currPage,perPage:e.perPage,groupListAdd:e.groupListAdd,groupListEdit:e.groupListEdit,dayTypes:e.dayTypes,showModalImport:e.showModalImport,groupListByPassableTime:e.groupListByPassableTime,progress:e.progress,errorMessageExcel:e.errorMessageExcel,successItem:e.successItem,totalDataRow:e.totalDataRow,success:e.success,errorMessage:e.errorMessage,errorMessageParams:e.errorMessageParams,isFinishProcess:e.isFinishProcess,imshowProgressExport:e.imshowProgressExport,showProgressExportCSV:e.showProgressExportCSV,showProgressImport:e.showProgressImport,months:e.months,isLoadingAdd:e.isLoadingAdd,dayTypesCalendar:e.dayTypesCalendar,noticeSettingTypes:e.noticeSettingTypes,noticeSettings:e.noticeSettings,userFullList:e.userFullList,pcodeFullList:e.pcodeFullList,gateFullList:e.gateFullList,configLogFullList:e.configLogFullList,isLoadBlockingNoticeSettingType:e.isLoadBlockingNoticeSettingType,isLoadBlockingNoticeSetting:e.isLoadBlockingNoticeSetting,isLoadingNoticeSetting:e.isLoadingNoticeSetting,loadBlockingTextNoticeSetting:e.loadBlockingTextNoticeSetting,editStatusException:e.editStatusException,editStatus:e.editStatus,settingInfor:e.settingInfor,isFelica:e.isFelica,isMifare:e.isMifare,listNfcSettingSelect:e.listNfcSettingSelect,listConfifLog:e.listConfifLog,isEditLogLabel:e.isEditLogLabel,dataEditLogLabel:e.dataEditLogLabel},on:{"search-login":function(t){return e.searchLogin(t)},"select-user-login":function(t){return e.selectUserLogin(t)},changePerPageLogin:function(t){return e.changePerPageLogin(t)},changePageLogin:function(t){return e.changePageLogin(t)},goPageExport:function(t){return e.goPageExport(t)},clickExport:function(t){return e.clickExport(t)},closeModalProcessImport:function(t){return e.closeModalProcessImport(t)},closeModalProcess:function(t){return e.closeModalProcess(t)},clickImport:function(t){return e.clickImport(t)},closeModalImport:function(t){return e.closeModalImport(t)},clickResetNfc:function(t){return e.clickResetNfc()},isGetFederatedLoginService:e.getFederatedLoginService,saveConfig:e.saveConfig,goRelation:e.goRelation,goPageSetting:e.goPageSetting,addRelation:e.addRelation,deleteRelation:e.deleteRelation,changePerPagePassable:function(t){return e.changePerPagePassable(t)},changePagePassable:function(t){return e.changePagePassable(t)},clickEditPassable:function(t){return e.clickEditPassable(t)},clickSavePassable:function(t){return e.clickSavePassable(t)},clickRegisterPassable:function(t){return e.clickRegisterPassable(t)},clickBackPassable:function(t){return e.clickBackPassable(t)},clickDetailPassable:function(t){return e.clickDetailPassable(t)},clickAddPassable:function(t){return e.clickAddPassable(t)},clickDeletePassable:function(t){return e.clickDeletePassable(t)},saveDate:function(t){return e.saveDate(t)},setDateOne:function(t){return e.setDateOne(t)},closeDate:function(t){return e.closeDate(t)},closeDateFinish:function(t){return e.closeDateFinish(t)},saveAllDate:function(t){return e.saveAllDate(t)},setTypeDate:function(t){return e.setTypeDate(t)},changeTab:function(t){return e.resetMessage()},isGetCalendar:e.isGetCalendar,clickConfirmDeletePassable:function(t){return e.clickConfirmDeletePassable(t)},clickCloseConfirmDeletePassable:function(t){return e.clickCloseConfirmDeletePassable(t)},"reload-notice-settings":function(t){return e.reloadNoticeSettingList(t)},"initialize-notice-setting":function(t){return e.initializeNoticeSetting(t)},"click-delete-notice-setting":function(t){return e.clickDeleteNoticeSetting(t)},"click-add-notice-setting":function(t){return e.addNewPostNoticeSetting(t)},"click-edit-notice-setting":function(t){return e.editPutNoticeSetting(t)},resetMsg:function(t){return e.resetMsg(t)},"change-expanded":function(t){return e.changeExpanded(t)},"change-page-group":function(t){return e.changePageGroup(t)},"initialize-nfc-setting":function(t){return e.initializeNFCSetting()},saveNfcSetting:function(t){return e.saveNfcSetting()},checkEditStatus:function(t){return e.checkEditStatus()},"initialize-log-label-setting":function(t){return e.initializeLogLabelSetting()},changePerPage:function(t){return e.changePerPage(t)},"change-page":function(t){return e.changePage(t)},clickEditLogLabel:function(t){return e.clickEditLogLabel(t)},clickBackLogLabel:function(t){return e.clickBackLogLabel()},clickSaveLogLabel:function(t){return e.clickSaveLogLabel(t)},clickDeleteLogLabel:function(t){return e.clickDeleteLogLabel(t)},saveKeyToken:function(t){return e.saveKeyToken()},savePhoneStatus:function(t){return e.savePhoneStatus()}}})},Mc=[],Lc=(a("a630"),a("c975"),a("45fc"),a("4d90"),a("ade3")),Dc=a("5530"),Gc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-setting-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("div",{staticClass:"round-tab"},[[a("v-tabs",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.tabItems,(function(t){return a("v-tab",{key:t.tabname,staticClass:"setting-tab",on:{click:function(a){return e.clickTab(t.tabname)},change:function(t){return e.$emit("changeTab",t)}}},[e._v("\n "+e._s(t.title)+"\n ")])})),1)],e._v(" "),a("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[a("v-tab-item",{key:"tab1",attrs:{transition:!1,"reverse-transition":!1}},[0===e.isEdit?a("v-card",[a("passable-time-setting-list",{attrs:{passableTotalCount:e.passableTotalCount,ExpandedGroup:e.ExpandedGroup,loadingGroup:e.loadingGroup,pageGroup:e.pageGroup,dataPassables:e.dataPassables,pagePassable:e.pagePassable,perPagePassable:e.perPagePassable,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,errorMessageLogsModal:e.errorMessageLogsModal,successMessageLogsModal:e.successMessageLogsModal,loading:e.loading,isEdit:e.isEdit,isGetDataList:e.isGetDataList,showConfirmDelete:e.showConfirmDelete},on:{"change-expanded-time":function(t){return e.$emit("change-expanded",t)},clickDetailPassable:function(t){return e.$emit("clickDetailPassable",t)},"change-per-page-passable":function(t){return e.$emit("changePerPagePassable",t)},"change-page-group":function(t){return e.$emit("change-page-group",t)},"change-page-passable":function(t){return e.$emit("changePagePassable",t)},clickEditPassable:function(t){return e.$emit("clickEditPassable",t)},clickAddPassable:function(t){return e.$emit("clickAddPassable",t)},clickDeletePassable:function(t){return e.$emit("clickDeletePassable",t)},clickConfirmDeletePassable:function(t){return e.$emit("clickConfirmDeletePassable",t)},clickCloseConfirmDeletePassable:function(t){return e.$emit("clickCloseConfirmDeletePassable",t)}}})],1):a("v-card",[a("passable-time-setting-edit",{attrs:{timeSettings:e.timeSettings,dataPassableDetail:e.dataPassableDetail,groupListAdd:e.groupListAdd,groupListEdit:e.groupListEdit,dayTypes:e.dayTypes,isEdit:e.isEdit,loading:e.loading,loadingDate:e.loadingDate,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,groupListByPassableTime:e.groupListByPassableTime},on:{clickEditPassable:function(t){return e.$emit("clickEditPassable",t)},clickSavePassable:function(t){return e.$emit("clickSavePassable",t)},clickBackPassable:function(t){return e.$emit("clickBackPassable",t)},clickRegisterPassable:function(t){return e.$emit("clickRegisterPassable",t)},resetMsg:function(t){return e.$emit("resetMsg",t)}}})],1)],1),e._v(" "),a("v-tab-item",{key:"tab2",attrs:{transition:!1,"reverse-transition":!1}},[a("HolidaySetting",{attrs:{errorMessageLogs:e.errorMessageLogs,isFinishProcess:e.isFinishProcess,saveFinish:e.saveFinish,successMessageLogs:e.successMessageLogs,errorMessageLogsModal:e.errorMessageLogsModal,successMessageLogsModal:e.successMessageLogsModal,months:e.months,timeAdd:e.timeAdd,dayTypesCalendar:e.dayTypesCalendar,isFinishDate:e.isFinishDate,isSaveDate:e.isSaveDate,loading:e.loading},on:{isGetCalendar:function(t){return e.$emit("isGetCalendar",t)},saveDate:function(t){return e.$emit("saveDate",t)},closeDate:function(t){return e.$emit("closeDate",t)},closeDateFinish:function(t){return e.$emit("closeDateFinish",t)},saveAllDate:function(t){return e.$emit("saveAllDate",t)},setDateOne:function(t){return e.$emit("setDateOne",t)},setTypeDate:function(t){return e.$emit("setTypeDate",t)}}})],1),e._v(" "),a("v-tab-item",{key:"tab4",attrs:{transition:!1,"reverse-transition":!1}},[a("v-card",["setting"===e.isExternalLogin?a("ExternalLoginSetting",{attrs:{oneLoginLoginService:e.oneLoginLoginService,appleIdLoginService:e.appleIdLoginService,googleLoginService:e.googleLoginService,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,loading:e.loading,showModalImport:e.showModalImport,isFederatedLoginService:e.isFederatedLoginService,isSamlFederatedLoginService:e.isSamlFederatedLoginService},on:{isGetFederatedLoginService:e.isGetFederatedLoginService,goRelation:e.goRelation,saveConfig:function(t){return e.$emit("saveConfig")}}}):a("RegisterLoginUserTemplate",{attrs:{errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,oneLoginLoginService:e.oneLoginLoginService,appleIdLoginService:e.appleIdLoginService,googleLoginService:e.googleLoginService,isDisabled:e.isDisabled,userList:e.userList,page:e.pageLogin,pageSizeList:e.pageSizeList,realtionsUserList:e.realtionsUserList,cognitoIdProviderName:e.cognitoIdProviderName,isFederatedLoginService:e.isFederatedLoginService,isSamlFederatedLoginService:e.isSamlFederatedLoginService,federatedLoginServiceId:e.federatedLoginServiceId,sucessStatus:e.sucessStatus,message:e.message,loading:e.loading,maxRecord:e.maxRecord,isExternalLogin:e.isExternalLogin,showModalImport:e.showModalImport,progress:e.progress,errorMessageExcel:e.errorMessageExcel,successItem:e.successItem,totalDataRow:e.totalDataRow,success:e.success,errorMessage:e.errorMessage,errorMessageParams:e.errorMessageParams},on:{"change-per-page-login":function(t){return e.$emit("changePerPageLogin",t)},"change-page-login":function(t){return e.$emit("changePageLogin",t)},isGetFederatedLoginService:e.isGetFederatedLoginService,goRelation:e.goRelation,goPageSetting:function(t){return e.$emit("goPageSetting")},"search-login":function(t){return e.$emit("search-login",t)},"select-user-login":function(t){return e.$emit("select-user-login",t)},goPageExport:function(t){return e.$emit("goPageExport",t)},closeModalImport:function(t){return e.$emit("closeModalImport",t)},addRelation:e.addRelation,deleteRelation:e.deleteRelation}}),e._v(" "),a("ExternalLoginImport",{attrs:{isFederatedLoginService:e.isFederatedLoginService,isSamlFederatedLoginService:e.isSamlFederatedLoginService,federatedLoginServiceId:e.federatedLoginServiceId,showModalImport:e.showModalImport,showProgressImport:e.showProgressImport,progress:e.progress,isFinishProcess:e.isFinishProcess,cognitoIdProviderName:e.cognitoIdProviderName,showProgressExportCSV:e.showProgressExportCSV,errorMessageExcel:e.errorMessageExcel,successItem:e.successItem,totalDataRow:e.totalDataRow,success:e.success,errorMessage:e.errorMessage,errorMessageParams:e.errorMessageParams},on:{clickExport:function(t){return e.$emit("clickExport",t)},clickImport:function(t){return e.$emit("clickImport",t)},closeModalProcess:function(t){return e.$emit("closeModalProcess",t)},closeModalProcessImport:function(t){return e.$emit("closeModalProcessImport",t)}}})],1)],1),e._v(" "),a("v-tab-item",{key:"tab5",attrs:{transition:!1,"reverse-transition":!1}},[a("v-card",[a("NoticeSettingTypeList",{attrs:{noticeSettingTypes:e.noticeSettingTypes,noticeSettings:e.noticeSettings,errorMessageLogsModal:e.errorMessageLogsModal,successMessageLogsModal:e.successMessageLogsModal,isLoadBlockingNoticeSettingType:e.isLoadBlockingNoticeSettingType,isLoadBlockingNoticeSetting:e.isLoadBlockingNoticeSetting,isLoadingNoticeSetting:e.isLoadingNoticeSetting,loadBlockingTextNoticeSetting:e.loadBlockingTextNoticeSetting,configurableConnectStatus:e.configurableConnectStatus,configurableGates:e.configurableGates,configurablePcodes:e.configurablePcodes,configurableUsers:e.configurableUsers,configurableLogs:e.configurableLogs},on:{"click-delete-notice-setting":function(t){return e.$emit("click-delete-notice-setting",t)},"click-add-notice-setting":function(t){return e.$emit("click-add-notice-setting",t)},"click-edit-notice-setting":function(t){return e.$emit("click-edit-notice-setting",t)},"reset-msg":function(t){return e.$emit("resetMsg")},"reload-notice-settings":function(t){return e.$emit("reload-notice-settings")}}})],1)],1),e._v(" "),a("v-tab-item",{key:"tabLogLabelSetting",attrs:{transition:!1,"reverse-transition":!1}},[!1===e.isEditLogLabel?a("LogLabelSetting",{attrs:{listConfifLog:e.listConfifLog,loading:e.loading,isGetDataList:e.isGetDataList,pages:e.pages,page:e.page,perPage:e.perPage,maxRecord:e.maxRecord,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("change-page",t)},clickEditLogLabel:function(t){return e.$emit("clickEditLogLabel",t)}}}):a("LogLabelSettingEdit",{attrs:{dataEditLogLabel:e.dataEditLogLabel,logLabelErr:e.logLabelErr,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,loading:e.loading},on:{clickBackLogLabel:function(t){return e.$emit("clickBackLogLabel")},clickSaveLogLabel:function(t){return e.$emit("clickSaveLogLabel",t)},clickDeleteLogLabel:function(t){return e.$emit("clickDeleteLogLabel",t)}}})],1),e._v(" "),a("v-tab-item",{key:"tabPhoneAutoApproval",attrs:{transition:!1,"reverse-transition":!1}},[a("smartphone-auto-approval",{attrs:{settingInfor:e.settingInfor,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs},on:{savePhoneStatus:function(t){return e.$emit("savePhoneStatus")}}})],1),e._v(" "),a("v-tab-item",{key:"tabKeyTokenSetting",attrs:{transition:!1,"reverse-transition":!1}},[a("key-token-setting",{attrs:{settingInfor:e.settingInfor,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs},on:{saveKeyToken:function(t){return e.$emit("saveKeyToken")}}})],1),e._v(" "),a("v-tab-item",{key:"tabNFCSetting",attrs:{transition:!1,"reverse-transition":!1}},[a("NfcSetting",{attrs:{editStatusException:e.editStatusException,editStatus:e.editStatus,settingInfor:e.settingInfor,isFelica:e.isFelica,isMifare:e.isMifare,listNfcSettingSelect:e.listNfcSettingSelect,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs},on:{saveNfcSetting:function(t){return e.$emit("saveNfcSetting")},checkEditStatus:function(t){return e.$emit("checkEditStatus")}}})],1)],1)],2)])],1)},Ac=[],Rc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-card",[a("div",{staticClass:"allig-gate-passage-table"},[a("v-container",[""!==e.successMessageLogs&&!1===e.isGetDataList?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.isGetDataList?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add"},[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}])},[e._v(" "),a("span",[e._v("通行可能時間設定は、ALLIGATE Lock Proのゲートのみ設定が可能です")])]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickAddPassable")}}},[e._v("\n 追加\n ")])],1)],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"end"}},[a("show-per-page",{staticClass:"ml-4 mb-2 mr-2",attrs:{"per-page":e.perPagePassable,page:e.pagePassable,"items-length":e.passableTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table",attrs:{"must-sort":"",headers:e.headers,loading:e.isGetDataList,items:e.filteredItems,"items-per-page":e.perPagePassable,"custom-sort":e.customSort,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"",dense:"","show-expand":"","single-expand":"","item-key":"passableTimeSettingId"},on:{"update:options":function(t){return e.$emit("change-sort-passable",t)},"item-expanded":function(t){return e.$emit("change-expanded-time",{event:t,expanded:"time"})}},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[a("span",{staticClass:"click-name item-user-name",on:{click:function(t){return e.$emit("clickDetailPassable",s.passableTimeSettingId)}}},[e._v("\n "+e._s(s.name)+"\n ")])]}},{key:"item.isDefault",fn:function(t){var s=t.item;return[a("span",[e._v("\n "+e._s(e.convertStatus(s.timeSettings))+"\n ")])]}},{key:"item.data-table-expand",fn:function(t){var s=t.expand,r=t.item,o=t.isExpanded;return[a("v-tooltip",{attrs:{bottom:"",disabled:o},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,i=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"no-bg",attrs:{color:"white",elevation:"0",disabled:e.isGetDataList},on:{click:function(t){e.selectedGroupIds=[],s(!o)}}},"v-btn",i,!1),n),[a("span",{staticClass:"item-count"},[a("v-icon",[e._v("mdi-account-supervisor")]),e._v("\n "+e._s(r.groupCount)+"\n ")],1)])]}}],null,!0)},[e._v(" "),a("span",{staticClass:"text-caption"},[e._v("通行権限グループ一覧を開く")])]),e._v(" "),a("transition",{attrs:{name:"expand-icon"}},[o?a("v-icon",[e._v("mdi-chevron-down")]):e._e()],1)]}},{key:"item.icons",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditPassable",s.passableTimeSettingId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" 時間帯編集 ")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickConfirmDeletePassable",s.passableTimeSettingId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-trash-can-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" 時間帯削除 ")])])]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{staticClass:"group-of-time",attrs:{colspan:s.length}},[a("v-container",[a("v-row",{staticClass:"mt-2 mb-5 ml-5 mr-5",attrs:{justify:"space-between"}},[e.ExpandedGroup[r.passableTimeSettingId]&&void 0!==e.ExpandedGroup[r.passableTimeSettingId].maxRecords?a("div",{staticClass:"allig-title mt-1"},[e._v("\n "+e._s("通行権限グループ一覧 (全"+e.ExpandedGroup[r.passableTimeSettingId].maxRecords+"件)")+"\n ")]):a("div",{staticClass:"allig-title mt-1"},[e._v("\n "+e._s("通行権限グループ一覧 (全0件)")+"\n ")]),e._v(" "),a("div",[a("v-row",{staticClass:"mt-0"},[a("v-btn",{staticClass:"btn-primary",on:{click:function(t){return e.clickJoinGroup(r.passableTimeSettingId)}}},[e._v("\n 関連付け追加\n ")])],1)],1)]),e._v(" "),a("group-of-time",{attrs:{loading:e.loadingGroup,passableTimeSettingId:r.passableTimeSettingId,groups:e.ExpandedGroup[r.passableTimeSettingId]?e.ExpandedGroup[r.passableTimeSettingId].groups:[],pageGroup:e.pageGroup,groupTotalCount:e.ExpandedGroup[r.passableTimeSettingId]&&e.ExpandedGroup[r.passableTimeSettingId].maxRecords?e.ExpandedGroup[r.passableTimeSettingId].maxRecords:0},on:{"select-groups":function(t){e.selectedGroupIds=t},"change-page-group":function(t){return e.$emit("change-page-group",t)},"confirm-action":function(t){return e.$emit("confirm-action",t)}}})],1)],1)]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer")],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirmDelete,callback:function(t){e.showConfirmDelete=t},expression:"showConfirmDelete"}},[a("v-card",[a("ModalTitle",{attrs:{title:"通行可能時間設定"},on:{click:function(t){return e.$emit("clickCloseConfirmDeletePassable")}}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-text",{staticClass:"pa-4"},[""===e.successMessageLogsModal&&""===e.errorMessageLogsModal?a("p",[e._v("この通行可能時間設定との関連付けを削除しますか?")]):e._e(),e._v(" "),a("v-row",[""!==e.successMessageLogsModal?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-success no-bg"},[e._v("\n "+e._s(e.successMessageLogsModal)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogsModal?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error no-bg"},[e._v("\n "+e._s(e.errorMessageLogsModal)+"\n ")]):e._e()],1)],1),e._v(" "),""===e.successMessageLogsModal&&""===e.errorMessageLogsModal?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickCloseConfirmDeletePassable")}}},[e._v("\n キャンセル\n ")]),e._v(" "),""===e.successMessageLogsModal&&""===e.errorMessageLogsModal?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickDeletePassable")}}},[e._v("OK")]):e._e()],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickCloseConfirmDeletePassable")}}},[e._v("\n OK\n ")])],1)],1)],1)],1)],1)])},Tc=[],Ec=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-gate-table"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2",attrs:{"per-page":25,page:e.pageGroup,"items-length":e.groupTotalCount}})],1),e._v(" "),a("v-divider"),e._v(" "),a("v-data-table",{staticClass:"border-table ",attrs:{"must-sort":"","custom-sort":e.customSort,loading:e.loading,headers:e.headers,items:e.groups,"items-per-page":25,"no-data-text":" 該当する通行権限グループがありません","loading-text":"データを読み込中です","hide-default-footer":"",dense:"","item-key":"groupId"},on:{"item-expanded":function(t){return e.$emit("change-expanded-group",{event:t,passableTimeSettingId:e.passableTimeSettingId})}},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.name},on:{click:function(t){return e.clickDetail(s.groupId)}}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.groupTotalCount/25),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},Oc=[],Vc=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-gate-table"},[a("v-row",{staticClass:"mt-2 mb-1 ml-5 mr-5",attrs:{justify:"space-between"}},[a("div",{staticClass:"allig-title mt-1"},[e._v("\n "+e._s("所属ゲート一覧 (全"+e.gates.length+"件)")+" \n ")]),e._v(" "),a("div",[a("v-row",{staticClass:"mt-0"},[a("v-btn",{staticClass:"btn-primary",on:{click:function(t){return e.clickJoinGroup(e.groupId)}}},[e._v("\n 関連付け追加\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-secondary",attrs:{disabled:0===e.selectedItem.length},on:{click:function(t){return e.$emit("confirm-action",{action:5,groudId:e.groupId,gateIds:e.selectedItem})}}},[e._v("\n 関連付け解除\n ")])],1)],1)]),e._v(" "),a("v-container",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2",attrs:{"per-page":25,page:e.page,"items-length":e.gateTotalCount}})],1),e._v(" "),a("v-divider"),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,loading:e.loading,headers:e.headers,items:e.gates,"items-per-page":25,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"",dense:"","show-select":e.gates.length>0,"item-key":"relationId"},scopedSlots:e._u([{key:"item.gateName",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-name",attrs:{text:s.name}},[e._v(e._s(s.gateName)+"\n ")])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.gateTotalCount/25),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)],1)},Uc=[],$c=f["a"].extend({name:"GateList",components:{Pagination:xo,ShowPerPage:mo,TextLink:No},props:{gateTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},loading:{type:Boolean,default:!1},groupId:{type:String,default:""},gates:{type:Array,default:function(){return[]}}},data:function(){return{selectedItem:[]}},computed:{headers:{get:function(){var e=[{text:"ゲート名",align:"start",sortable:!0,value:"gateName"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page-gate",{page:e,groupId:this.groupId,change:"gate"})}}},watch:{gates:function(){this.selectedItem=[]}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0?a("div",{staticClass:"ml-10 mt-5 input-time-zone"},[e._l(e.dataTimes,(function(t,s){return[e._l(t.child,(function(r,o){return a("v-row",{key:o,staticClass:"child"},[a("v-col",{attrs:{cols:"1",pa:"0"}},[a("div",{staticClass:"v-subheader justify-end theme--light"},[e._v(e._s(0===o?t.text:""))])]),e._v(" "),a("v-col",{attrs:{cols:"2",pa:"0"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,l=n.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{id:"inputS-"+s+o,color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline",rules:[e.rulesValidate.validateStartTime(t.text,r.startTime,t.notSet,t.doSet,e.allDay)],disabled:e.allDay,"hide-details":"auto"},on:{click:function(t){return e.resetInput()}},model:{value:r.startTime,callback:function(t){e.$set(r,"startTime",t)},expression:"itemChild.startTime"}},"v-text-field",l,!1),i))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){r.startTime=e.formatTime(r.hourStart,r.minuteStart),e.updateHasAtLeastOneItem(s)}},model:{value:r.hourStart,callback:function(t){e.$set(r,"hourStart",t)},expression:"itemChild.hourStart"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){r.startTime=e.formatTime(r.hourStart,r.minuteStart),e.updateHasAtLeastOneItem(s)}},model:{value:r.minuteStart,callback:function(t){e.$set(r,"minuteStart",t)},expression:"itemChild.minuteStart"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"text-center pad17",attrs:{cols:"1",pa:"0"}},[e._v("~")]),e._v(" "),a("v-col",{attrs:{cols:"2",pa:"0"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,l=n.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{id:"inputE-"+s+o,color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline",rules:[e.rulesValidate.validateEndTime(t.text,r.endTime,t.notSet,t.doSet,e.allDay,r.startTime)],disabled:e.allDay,"hide-details":"auto"},on:{click:function(t){return e.resetInput()}},model:{value:r.endTime,callback:function(t){e.$set(r,"endTime",t)},expression:"itemChild.endTime"}},"v-text-field",l,!1),i))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){r.endTime=e.formatTime(r.hourEnd,r.minuteEnd),e.updateHasAtLeastOneItem(s)}},model:{value:r.hourEnd,callback:function(t){e.$set(r,"hourEnd",t)},expression:"itemChild.hourEnd"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){r.endTime=e.formatTime(r.hourEnd,r.minuteEnd),e.updateHasAtLeastOneItem(s)}},model:{value:r.minuteEnd,callback:function(t){e.$set(r,"minuteEnd",t)},expression:"itemChild.minuteEnd"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"cus-del-btn",attrs:{cols:"1",pa:"0"}},[t.child.length>1?a("v-btn",{staticClass:"delTime",attrs:{icon:"",al:""},on:{click:function(t){return e.deleteItem(s,o)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1):e._e()],1),e._v(" "),0===o?a("v-col",{attrs:{cols:"3",pa:"0"}},[a("v-row",[a("v-col",{attrs:{cols:"5"}},[a("v-checkbox",{staticClass:"allig-checkbox",attrs:{label:"終日可能",id:"doCheck-"+t.value,disabled:e.allDay,"hide-details":"auto"},on:{change:function(a){return e.changeDoSet("notCheck-"+t.value,t.notSet,t.doSet)}},model:{value:t.doSet,callback:function(a){e.$set(t,"doSet",a)},expression:"itemParent.doSet"}})],1),e._v(" "),a("v-col",{attrs:{cols:"5"}},[a("v-checkbox",{staticClass:"allig-checkbox",attrs:{label:"終日不可",id:"notCheck-"+t.value,disabled:e.allDay,"hide-details":"auto"},on:{change:function(a){return e.changeDoSet("doCheck-"+t.value,t.doSet,t.notSet)}},model:{value:t.notSet,callback:function(a){e.$set(t,"notSet",a)},expression:"itemParent.notSet"}})],1)],1)],1):e._e()],1)})),e._v(" "),a("v-row",{staticClass:"my-0 py-0",staticStyle:{"margin-bottom":"25px !important"}},[a("v-col",{attrs:{cols:"1",pa:"0"}}),e._v(" "),a("v-col",{attrs:{cols:"2",pa:"0"}}),e._v(" "),a("v-col",{staticClass:"text-center pad17",attrs:{cols:"1",pa:"0"}}),e._v(" "),a("v-col",{staticStyle:{"padding-top":"0px !important"},attrs:{cols:"2",pa:"0"}},[t.child.length<3&&!0===t.hasAtLeastOneItem&&!t.doSet&&!t.notSet?a("text-link",{staticClass:"text-body-2 text-right",attrs:{text:"+時間追加"},on:{click:function(t){return e.addRow(s)}}}):e._e()],1),e._v(" "),a("v-col",{attrs:{cols:"3",pa:"0"}})],1)]}))],2):e._e(),e._v(" "),a("v-spacer",{staticClass:"mt-10"}),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2 btn-more",attrs:{justify:"start"}},[a("v-btn",{staticClass:"btn-secondary btn-toggle-more",attrs:{outlined:"",disabled:e.allDay},on:{click:function(t){return e.advancedSetting(e.isAdvanced)}}},[e._v("\n 詳細設定\n "),a("v-icon",[e._v("mdi-menu-down-outline")])],1)],1),e._v(" "),e.isAdvanced?a("div",{staticClass:"table-edit-time special-time "},[""!==e.errorMessageTime&&!1===e.allDay?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageTime)+"\n ")]):e._e(),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"items-per-page":-1,"must-sort":"",headers:e.headers,items:e.dataSpecialTimes,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":""},scopedSlots:e._u([{key:"item",fn:function(t){var s=t.item,r=t.index;return[a("tr",[a("td",[e._v(e._s(s.dayTypeName))]),e._v(" "),a("td",[1===s.allDay?a("span",{staticClass:"span-time"},[e._v("終日可能")]):2===s.allDay?a("span",{staticClass:"span-time"},[e._v("終日不可")]):a("span",{staticClass:"span-time"},[e._v(e._s(s.startTime)+" ~ "+e._s(s.endTime))]),e._v(" "),a("span",{staticClass:"ml-3"},[a("v-btn",{attrs:{icon:""},on:{click:function(t){return e.deleteSpecialTime(r)}}},[a("v-icon",{staticClass:"gray--text"},[e._v("mdi-trash-can-outline")])],1)],1)])])]}}],null,!1,1955330375)},[a("template",{slot:"body.prepend"},[a("tr",{staticClass:"first"},[a("td",{attrs:{colspan:"2"}},[a("v-row",{staticClass:"mt-1"},[a("v-col",{attrs:{md:"2",xl:"2"}},[a("v-autocomplete",{staticClass:"table-select",attrs:{items:e.itemSpecialday,"return-object":"",label:e.$vuetify.breakpoint.mdAndUp?"":"その他時間帯",color:"green","hide-details":"auto",outlined:"",dense:"","no-data-text":"",disabled:e.allDay,"menu-props":{contentClass:"common-class"}},model:{value:e.inputSpecialday,callback:function(t){e.inputSpecialday=t},expression:"inputSpecialday"}}),e._v(" "),""!==e.errorListGate?a("p",{staticClass:"error-special"},[e._v(e._s(e.errorListGate))]):e._e()],1),e._v(" "),a("v-col",[a("v-row",{staticClass:"input-time"},[a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline",disabled:e.allDay,"hide-details":"auto",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},on:{click:function(t){return e.resetInput()}},model:{value:e.hoursStartSpecial,callback:function(t){e.hoursStartSpecial=t},expression:"hoursStartSpecial"}},"v-text-field",r,!1),s)),e._v(" "),a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorHoursStartSpecial))])]}}],null,!1,4005117647)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){e.hoursStartSpecial=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.hourStart,callback:function(t){e.hourStart=t},expression:"hourStart"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){e.hoursStartSpecial=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.minuteStart,callback:function(t){e.minuteStart=t},expression:"minuteStart"}})],1)])],1)],1),e._v(" "),a("span",{staticClass:"text-center ml-1 mr-1 mt-2",attrs:{cols:"1"}},[e._v(" ~ ")]),e._v(" "),a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline",disabled:e.allDay,"hide-details":"auto",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},on:{click:function(t){return e.resetInput()}},model:{value:e.hoursEndSpecial,callback:function(t){e.hoursEndSpecial=t},expression:"hoursEndSpecial"}},"v-text-field",r,!1),s)),e._v(" "),a("div",{staticClass:"error-special add hours"},[e._v(e._s(e.errorHoursEndSpecial))])]}}],null,!1,950849892)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){e.hoursEndSpecial=e.formatTime(e.hourEnd,e.minuteEnd)}},model:{value:e.hourEnd,callback:function(t){e.hourEnd=t},expression:"hourEnd"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){e.hoursEndSpecial=e.formatTime(e.hourEnd,e.minuteEnd)}},model:{value:e.minuteEnd,callback:function(t){e.minuteEnd=t},expression:"minuteEnd"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"pa-0 ml-2",attrs:{cols:"2"}},[a("v-checkbox",{staticClass:"allig-checkbox mt-1",attrs:{label:"終日可能","hide-details":"auto"},on:{change:function(t){return e.changeDoSetSpecial()}},model:{value:e.doSet,callback:function(t){e.doSet=t},expression:"doSet"}})],1),e._v(" "),a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-checkbox",{staticClass:"allig-checkbox mt-1",attrs:{label:"終日不可","hide-details":"auto"},on:{change:function(t){return e.changeNotSetSpecial()}},model:{value:e.notSet,callback:function(t){e.notSet=t},expression:"notSet"}})],1),e._v(" "),a("span",{staticClass:"ml-2 btn-add-time"},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:"",disabled:e.allDay,"hide-details":"auto"},on:{click:function(t){return e.addSpecialTime()}}},[e._v("\n 追加\n ")])],1)],1)],1)],1),e._v(" "),a("v-row",[a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorAddListGate))])])],1)])])],2)],1):e._e()],1),e._v(" "),a("v-row",{staticClass:"mb-10 mt-10",attrs:{justify:"end"}},[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-success messageRow bg-no",attrs:{cols:"11",align:"right"},domProps:{innerHTML:e._s(e.successMessageLogs)}}):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error messageRow bg-no",attrs:{cols:"11",align:"right"},domProps:{innerHTML:e._s(e.errorMessageLogs)}}):e._e(),e._v(" "),a("v-col",{staticClass:"messageRow",attrs:{cols:"1",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.clickRegisterPassable()}}},[e._v("\n 登録\n ")])],1)],1)],1)],1):e._e(),e._v(" "),2===e.isEdit?a("v-container",[a("v-row",{attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add-card"},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickBackPassable")}}},[e._v("\n 戻る\n ")])],1)],1),e._v(" "),a("v-row",[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 設定情報\n "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}],null,!1,2569386827)},[e._v(" "),a("span",[e._v("通行可能時間設定は、ALLIGATE Lock Proのゲートのみ設定が可能です")])])],1)],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-2 passable-name"},[a("div",{staticClass:"v-subheader"},[e._v("時間帯設定名")])]),e._v(" "),a("input-form",{staticClass:"timezone-name",attrs:{inputType:"text"},model:{value:e.passableName,callback:function(t){e.passableName=t},expression:"passableName"}})],1)]),e._v(" "),a("v-row",[a("div",{staticClass:"col col-2 passable-name"},[a("div",{staticClass:"v-subheader"},[e._v("通行権限グループ名")])]),e._v(" "),a("v-col",{staticClass:"pl-0"},[a("v-autocomplete",{attrs:{items:e.groupListEdit,color:"green","return-object":"","hide-details":"auto",outlined:"",dense:"","deletable-chips":"",multiple:"","small-chips":"","no-data-text":"",disabled:0===e.groupListEdit.length,"menu-props":{contentClass:"common-class"},isAttach:!0},model:{value:e.inputGroup,callback:function(t){e.inputGroup=t},expression:"inputGroup"}})],1)],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 時間帯\n "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}],null,!1,2569386827)},[e._v(" "),a("span",[e._v("通行可能時間設定は、ALLIGATE Lock Proのゲートのみ設定が可能です")])])],1)],1),e._v(" "),a("div",{staticClass:"page-edit"},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("div",{staticClass:"ml-10 mt-5 input-time-zone"},[e._l(e.dataTimes,(function(t,s){return[e._l(t.child,(function(r,o){return a("v-row",{key:o,staticClass:"child"},[a("v-col",{attrs:{cols:"1",pa:"0"}},[a("div",{staticClass:"v-subheader justify-end theme--light"},[e._v(e._s(0===o?t.text:""))])]),e._v(" "),a("v-col",{attrs:{cols:"2",pa:"0"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(s){var o=s.on,n=s.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline",rules:[e.rulesValidate.validateStartTime(t.dayTypeName,r.startTime,t.notSet,t.doSet,e.allDay)],disabled:e.allDay,"hide-details":"auto"},model:{value:r.startTime,callback:function(t){e.$set(r,"startTime",t)},expression:"itemChild.startTime"}},"v-text-field",n,!1),o))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){r.startTime=e.formatTime(r.hourStart,r.minuteStart),e.updateHasAtLeastOneItem(s)}},model:{value:r.hourStart,callback:function(t){e.$set(r,"hourStart",t)},expression:"itemChild.hourStart"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){r.startTime=e.formatTime(r.hourStart,r.minuteStart),e.updateHasAtLeastOneItem(s)}},model:{value:r.minuteStart,callback:function(t){e.$set(r,"minuteStart",t)},expression:"itemChild.minuteStart"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"text-center pad17",attrs:{cols:"1",pa:"0"}},[e._v("~")]),e._v(" "),a("v-col",{attrs:{cols:"2",pa:"0"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(s){var o=s.on,n=s.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline",rules:[e.rulesValidate.validateEndTime(t.dayTypeName,r.endTime,t.notSet,t.doSet,e.allDay,r.startTime)],disabled:e.allDay,"hide-details":"auto"},model:{value:r.endTime,callback:function(t){e.$set(r,"endTime",t)},expression:"itemChild.endTime"}},"v-text-field",n,!1),o))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){r.endTime=e.formatTime(r.hourEnd,r.minuteEnd),e.updateHasAtLeastOneItem(s)}},model:{value:r.hourEnd,callback:function(t){e.$set(r,"hourEnd",t)},expression:"itemChild.hourEnd"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){r.endTime=e.formatTime(r.hourEnd,r.minuteEnd),e.updateHasAtLeastOneItem(s)}},model:{value:r.minuteEnd,callback:function(t){e.$set(r,"minuteEnd",t)},expression:"itemChild.minuteEnd"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"cus-del-btn",attrs:{cols:"3",pa:"0"}},[t.child.length>1?a("v-btn",{staticClass:"delTime",attrs:{icon:"",al:""},on:{click:function(t){return e.deleteItem(s,o)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1):e._e()],1),e._v(" "),0===o?a("v-col",{attrs:{cols:"3",pa:"0"}},[a("v-row",[a("v-col",{attrs:{cols:"5"}},[a("v-checkbox",{staticClass:"allig-checkbox",attrs:{label:"終日可能",id:"doCheck-"+t.dayTypeId,disabled:e.allDay,"hide-details":"auto"},on:{change:function(a){return e.changeDoSet("notCheck-"+t.dayTypeId,t.notSet,t.doSet)}},model:{value:t.doSet,callback:function(a){e.$set(t,"doSet",a)},expression:"itemParent.doSet"}})],1),e._v(" "),a("v-col",{attrs:{cols:"5"}},[a("v-checkbox",{staticClass:"allig-checkbox",attrs:{label:"終日不可",id:"notCheck-"+t.dayTypeId,disabled:e.allDay,"hide-details":"auto"},on:{change:function(a){return e.changeDoSet("doCheck-"+t.dayTypeId,t.doSet,t.notSet)}},model:{value:t.notSet,callback:function(a){e.$set(t,"notSet",a)},expression:"itemParent.notSet"}})],1)],1)],1):e._e()],1)})),e._v(" "),a("v-row",{staticClass:"my-0 py-0",staticStyle:{"margin-bottom":"25px !important"}},[a("v-col",{attrs:{cols:"1",pa:"0"}}),e._v(" "),a("v-col",{attrs:{cols:"2",pa:"0"}}),e._v(" "),a("v-col",{staticClass:"text-center pad17",attrs:{cols:"1",pa:"0"}}),e._v(" "),a("v-col",{staticStyle:{"padding-top":"0px !important"},attrs:{cols:"2",pa:"0"}},[t.child.length<3&&!0===t.hasAtLeastOneItem&&!t.doSet&&!t.notSet?a("text-link",{staticClass:"text-body-2 text-right",attrs:{text:"+時間追加"},on:{click:function(t){return e.addRow(s)}}}):e._e()],1),e._v(" "),a("v-col",{attrs:{cols:"3",pa:"0"}})],1)]}))],2),e._v(" "),a("v-spacer",{staticClass:"mt-10"}),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2 btn-more",attrs:{justify:"start"}},[a("v-btn",{staticClass:"btn-secondary btn-toggle-more",attrs:{outlined:"",disabled:e.allDay},on:{click:function(t){return e.advancedSetting(e.isAdvanced)}}},[e._v("\n 詳細設定\n "),a("v-icon",[e._v("mdi-menu-down-outline")])],1)],1),e._v(" "),e.isAdvanced?a("div",{staticClass:"table-edit-time special-time"},[""!==e.errorMessageTime&&!1===e.allDay?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageTime)+"\n ")]):e._e(),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"items-per-page":-1,"must-sort":"",headers:e.headers,items:e.dataSpecialTimes,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":""},scopedSlots:e._u([{key:"item",fn:function(t){var s=t.item,r=t.index;return[a("tr",[a("td",[e._v(e._s(s.dayTypeName))]),e._v(" "),a("td",[1===s.allDay?a("span",{staticClass:"span-time"},[e._v("終日可能")]):2===s.allDay?a("span",{staticClass:"span-time"},[e._v("終日不可")]):a("span",{staticClass:"span-time"},[e._v(e._s(s.startTime)+" ~ "+e._s(s.endTime))]),e._v(" "),a("span",{staticClass:"last-col ml-3"},[a("v-btn",{attrs:{icon:""},on:{click:function(t){return e.deleteSpecialTime(r)}}},[a("v-icon",{staticClass:"gray--text"},[e._v("mdi-trash-can-outline")])],1)],1)])])]}}],null,!1,1466226656)},[a("template",{slot:"body.prepend"},[a("tr",{staticClass:"first"},[a("td",{attrs:{colspan:"2"}},[a("v-row",{staticClass:"mt-1"},[a("v-col",{attrs:{md:"2",xl:"2"}},[a("v-autocomplete",{staticClass:"table-select",attrs:{items:e.itemSpecialday,"return-object":"",label:e.$vuetify.breakpoint.mdAndUp?"":"その他時間帯",color:"green","hide-details":"auto",outlined:"",dense:"","no-data-text":""},model:{value:e.inputSpecialday,callback:function(t){e.inputSpecialday=t},expression:"inputSpecialday"}}),e._v(" "),""!==e.errorListGate?a("p",{staticClass:"error-special"},[e._v(e._s(e.errorListGate))]):e._e()],1),e._v(" "),a("v-col",[a("v-row",{staticClass:"input-time"},[a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline"},model:{value:e.hoursStartSpecial,callback:function(t){e.hoursStartSpecial=t},expression:"hoursStartSpecial"}},"v-text-field",r,!1),s)),e._v(" "),a("p",{staticClass:"error-special hours"},[e._v(e._s(e.errorHoursStartSpecial))])]}}],null,!1,2476932953)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){e.hoursStartSpecial=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.hourStart,callback:function(t){e.hourStart=t},expression:"hourStart"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){e.hoursStartSpecial=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.minuteStart,callback:function(t){e.minuteStart=t},expression:"minuteStart"}})],1)])],1)],1),e._v(" "),a("span",{staticClass:"text-center ml-1 mr-1 mt-2",attrs:{cols:"1"}},[e._v(" ~ ")]),e._v(" "),a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline"},model:{value:e.hoursEndSpecial,callback:function(t){e.hoursEndSpecial=t},expression:"hoursEndSpecial"}},"v-text-field",r,!1),s)),e._v(" "),a("div",{staticClass:"error-special hours"},[e._v(e._s(e.errorHoursEndSpecial))])]}}],null,!1,1422140722)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){e.hoursEndSpecial=e.formatTime(e.hourEnd,e.minuteEnd)}},model:{value:e.hourEnd,callback:function(t){e.hourEnd=t},expression:"hourEnd"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){e.hoursEndSpecial=e.formatTime(e.hourEnd,e.minuteEnd)}},model:{value:e.minuteEnd,callback:function(t){e.minuteEnd=t},expression:"minuteEnd"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"pa-0 ml-2",attrs:{cols:"2"}},[a("v-checkbox",{staticClass:"allig-checkbox mt-1",attrs:{label:"終日可能","hide-details":"auto"},on:{change:function(t){return e.changeDoSetSpecial()}},model:{value:e.doSet,callback:function(t){e.doSet=t},expression:"doSet"}})],1),e._v(" "),a("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[a("v-checkbox",{staticClass:"allig-checkbox mt-1",attrs:{label:"終日不可","hide-details":"auto"},on:{change:function(t){return e.changeNotSetSpecial()}},model:{value:e.notSet,callback:function(t){e.notSet=t},expression:"notSet"}})],1),e._v(" "),a("span",{staticClass:"ml-2 btn-add-time"},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:"",disabled:e.allDay},on:{click:function(t){return e.addSpecialTime()}}},[e._v("\n 追加\n ")])],1)],1)],1)],1),e._v(" "),a("v-row",[a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorAddListGate))])])],1)])])],2)],1):e._e()],1),e._v(" "),a("v-row",{staticClass:"mb-10 mt-10",attrs:{justify:"end"}},[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-success messageRow bg-no",attrs:{cols:"11",align:"right"},domProps:{innerHTML:e._s(e.successMessageLogs)}}):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error messageRow bg-no",attrs:{cols:"11",align:"right"},domProps:{innerHTML:e._s(e.errorMessageLogs)}}):e._e(),e._v(" "),a("v-col",{staticClass:"messageRow",attrs:{cols:"1",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.clickSavePassable()}}},[e._v("\n 登録\n ")])],1)],1)],1)],1):1===e.isEdit?a("v-container",[a("v-row",{attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add-card"},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickBackPassable")}}},[e._v("\n 戻る\n ")])],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 設定情報\n "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}])},[e._v(" "),a("span",[e._v("通行可能時間設定は、ALLIGATE Lock Proのゲートのみ設定が可能です")])])],1)],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-2 passable-name"},[a("div",{staticClass:"v-subheader"},[e._v("時間帯設定名")])]),e._v(" "),a("v-row",[a("v-col",{staticClass:" text-body-2 align-self-center",attrs:{md:"3",sm:"6",cols:"12"}},[e._v("\n "+e._s(e.passableName)+"\n ")])],1)],1)]),e._v(" "),a("v-row",[a("div",{staticClass:"col col-2 passable-name"},[a("div",{staticClass:"v-subheader"},[e._v("通行権限グループ名")])]),e._v(" "),a("v-col",{staticClass:"pl-0"},[a("v-row",e._l(e.groupListByPassableTime,(function(t){return a("v-col",{key:t.value,attrs:{md:"3",sm:"6",cols:"12"}},[a("text-link",{attrs:{text:t.text},on:{click:function(a){return e.goGroup(t.value)}}})],1)})),1)],1)],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 設定情報\n "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}])},[e._v(" "),a("span",[e._v("通行可能時間設定は、ALLIGATE Lock Proのゲートのみ設定が可能です")])])],1)],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-5 mb-5"},[a("div",{staticClass:"page-detail"},[a("div",{staticClass:"item-time-zone"},e._l(e.dataTimes,(function(t){return a("div",{key:t.name,staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-3"},[a("div",{staticClass:"v-subheader cus-row-height"},[e._v(e._s(t.dayTypeName))])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[1===t.allDay?a("span",[e._v("終日可能")]):2===t.allDay?a("span",[e._v("終日不可")]):a("span",{domProps:{innerHTML:e._s(e.formatTimeDetail(t))}})])])])})),0)])]),e._v(" "),a("div",{staticClass:"item-time-zone"},[a("v-data-table",{staticClass:"border-table scroll-table",attrs:{"items-per-page":-1,"must-sort":"",headers:e.headers,items:e.dataSpecialTimes,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":""},scopedSlots:e._u([{key:"item",fn:function(t){return[a("tr",[a("td",[e._v(e._s(t.item.dayTypeName))]),e._v(" "),a("td",{attrs:{colspan:"2"}},[1===t.item.allDay?a("span",[e._v("終日可能")]):2===t.item.allDay?a("span",[e._v("終日不可")]):a("span",[e._v(e._s(t.item.startTime)+" ~ "+e._s(t.item.endTime))])])])]}}])})],1),e._v(" "),a("v-row",{staticClass:"mb-10 mt-10",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickEditPassable",e.dataPassableDetail[0].passableTimeSettingId)}}},[e._v("\n 編集\n ")])],1)],1):e._e()],1)],1)},ru=[],ou=(a("5db7"),a("73d9"),a("15fd")),nu=[],iu=0;iu<=59;iu++){var lu="";lu=iu<10?"0"+iu:iu.toString(),nu.push(lu)}var cu=[{dayTypeName:"月曜"},{dayTypeName:"火曜"},{dayTypeName:"水曜"},{dayTypeName:"木曜"},{dayTypeName:"金曜"},{dayTypeName:"土曜"},{dayTypeName:"日曜"}],uu=f["a"].extend({name:"PassableTimeSettingEdit",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,TextLink:No},props:{dataPassableDetail:{type:Array,default:function(){return[]}},isEdit:{type:Number,default:0},groupListAdd:{type:Array,default:function(){return[]}},timeSettings:{type:Array,default:function(){return[]}},groupListEdit:{type:Array,default:function(){return[]}},dayTypes:{type:Array,default:function(){return[{value:0,text:""}]}},groupListByPassableTime:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},loading:{type:Boolean,default:!1},loadingDate:{type:Boolean,default:!1}},computed:{headers:{get:function(){var e=[{text:"その他時間帯",align:"start",sortable:!1,width:"20%",value:"name"},{text:"期間指定",align:"start",sortable:!1,value:"expand-time"},{text:"",align:"start",sortable:!1,value:"expand-action"}];return e},set:function(){}},headersGroup:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!1,width:"20%",value:"text"},{text:"",align:"start",sortable:!1,value:"expand-action"}];return e},set:function(){}}},data:function(){return{valid:!0,hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","15","30","45"],hourStart:"00",minuteStart:"00",hourEnd:"00",minuteEnd:"00",timeZones:[{dayTypeId:7,dayTypeName:"日曜",allDay:1,startTime:"00:00",endTime:"00:00",notSet:!1},{dayTypeId:1,dayTypeName:"月曜",allDay:1,startTime:"00:00",endTime:"00:00",notSet:!1},{dayTypeId:2,dayTypeName:"火曜",allDay:1,startTime:"00:00",endTime:"00:00",notSet:!1},{dayTypeId:3,dayTypeName:"水曜",allDay:1,startTime:"00:00",endTime:"00:00",notSet:!1},{dayTypeId:4,dayTypeName:"木曜",allDay:1,startTime:"00:00",endTime:"00:00",notSet:!1},{dayTypeId:5,dayTypeName:"金曜",allDay:1,startTime:"00:00",endTime:"00:00",notSet:!1},{dayTypeId:6,dayTypeName:"土曜",allDay:1,startTime:"00:00",endTime:"00:00",notSet:!1}],isAdvanced:!1,doSet:!1,notSet:!1,dataTimes:[],dataSpecialTimes:[],allDay:!1,itemSpecialday:[],arrayAddSpecialTime:[],inputSpecialday:[],hoursEndSpecial:"",hoursStartSpecial:"",inputGroup:"",arrayAddGroup:[],passableName:"",errorMessageTime:"",errorMessageGroup:"",errorListGate:"",errorHoursStartSpecial:"",errorHoursEndSpecial:"",errorAddListGate:"",dataTimesDefault:[],rulesValidate:{validateStartTime:function(e,t,a,s,r){if(!0===a||!0===s||!0===r)return!0;var o=/^([01][0-9]|2[0-3]):[0-5][0-9]$/;return o.test(t)||e+"開始時間を設定してください。"},validateEndTime:function(e,t,a,s,r,o){if(!0===a||!0===s||!0===r)return!0;if(t<=o)return e+as;var n=/^([01][0-9]|2[0-3]):[0-5][0-9]$/;return n.test(t)||e+"終了時間を設定してください。"}}}},methods:{changeDoSetSpecial:function(){this.notSet=!1},changeNotSetSpecial:function(){this.doSet=!1},changeDoSet:function(e,t,a){if(!0===a&&!0===t){var s=document.querySelector("#"+e);s.click()}},changeNotSet:function(e,t,a){if(!0===a&&!0===t){var s=document.querySelector("#"+e);s.click()}},goGroup:function(e){this.$router.push({path:ht,query:{groupId:e,goBack:"setting"}})},init:function(){var e=this;if(this.dataTimes=[],this.dataPassableDetail.length>0){var t;void 0!==this.groupListByPassableTime&&void 0!==this.groupListByPassableTime[0]&&(this.inputGroup=this.groupListByPassableTime),t=1===this.isEdit?this.dataPassableDetail[0].timeSettings:this.timeSettings,this.passableName=this.dataPassableDetail[0].name,this.dataTimes=t.filter((function(e){var t=e.dayTypeName;return cu.some((function(e){var a=e.dayTypeName;return a===t}))}));var a=t.filter((function(e){var t=e.dayTypeName;return!cu.some((function(e){var a=e.dayTypeName;return a===t}))}));this.dataSpecialTimes=a.flatMap((function(t){return e.expandSpecialTimes(t)})),this.dataTimes.forEach((function(t,a){2===t.allDay&&"99:99"===t.startTime&&"99:99"===t.endTime?(e.dataTimes[a].notSet=!0,e.dataTimes[a].doSet=!1,e.dataTimes[a].hasAtLeastOneItem=!1):1===t.allDay?(e.dataTimes[a].notSet=!1,e.dataTimes[a].doSet=!0,e.dataTimes[a].hasAtLeastOneItem=!1):(e.dataTimes[a].notSet=!1,e.dataTimes[a].doSet=!1,e.dataTimes[a].hasAtLeastOneItem=!0),e.dataTimes[a].child=[];var s=t.startTime.split(":"),r=t.endTime.split(":");e.dataTimes[a].child.push({startTime:t.startTime,endTime:t.endTime,hourStart:"99"!==s[0]?s[0]:"00",minuteStart:"99"!==s[1]?s[1]:"00",hourEnd:"99"!==r[0]?r[0]:"00",minuteEnd:"99"!==r[1]?r[1]:"00"}),0===t.allDay&&t.startTime2&&"99:99"!==t.startTime2&&t.endTime2&&"99:99"!==t.endTime2&&e.dataTimes[a].child.push({startTime:t.startTime2,endTime:t.endTime2,hourStart:t.startTime2.split(":")[0],minuteStart:t.startTime2.split(":")[1],hourEnd:t.endTime2.split(":")[0],minuteEnd:t.endTime2.split(":")[1]}),0===t.allDay&&t.startTime3&&"99:99"!==t.startTime3&&t.endTime3&&"99:99"!==t.endTime3&&e.dataTimes[a].child.push({startTime:t.startTime3,endTime:t.endTime3,hourStart:t.startTime3.split(":")[0],minuteStart:t.startTime3.split(":")[1],hourEnd:t.endTime3.split(":")[0],minuteEnd:t.endTime3.split(":")[1]})}))}else this.dataTimes=this.dayTypes.filter((function(e){var t=e.text;return cu.some((function(e){var a=e.dayTypeName;return a===t}))})),this.dataTimes.map((function(e){return e.hourStart="00"})),this.dataTimes.map((function(e){return e.hourEnd="00"})),this.dataTimes.map((function(e){return e.minuteEnd="00"})),this.dataTimes.map((function(e){return e.minuteStart="00"}))},clickRegisterPassable:function(){this.$emit("resetMsg"),this.errorListGate="",this.errorHoursStartSpecial="",this.errorHoursEndSpecial="";var e=this.$refs.formPassable.validate();e&&this.$emit("clickRegisterPassable",{timeZones:this.dataTimes,allDay:this.allDay,arrayAddSpecialTime:this.arrayAddSpecialTime,passableName:this.passableName,inputGroup:this.inputGroup})},clickSavePassable:function(){this.$emit("resetMsg"),this.errorListGate="",this.errorHoursStartSpecial="",this.errorHoursEndSpecial="";var e=this.$refs.formPassable.validate();e&&this.$emit("clickSavePassable",{timeZones:this.dataTimes,allDay:this.allDay,inputGroup:this.inputGroup,arrayAddSpecialTime:this.dataSpecialTimes,dataPassableDetail:this.dataPassableDetail,passableName:this.passableName})},resetInput:function(){this.hourStart="00",this.hourEnd="00",this.minuteEnd="00",this.minuteStart="00"},convertStatus:function(e){var t,a=0,s=Object(rr["a"])(e);try{for(s.s();!(t=s.n()).done;){var r=t.value;1===r.allDay&&a++}}catch(o){s.e(o)}finally{s.f()}return a===e.length?"有効":"無効"},updateSelect:function(e){console.log("value",e)},formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},advancedSetting:function(e){this.isAdvanced=!e},addSpecialTime:function(){var e=this,t=0;this.errorMessageTime="",this.errorListGate="",this.errorHoursStartSpecial="",this.errorHoursEndSpecial="",this.errorAddListGate="";var a,s=Object(rr["a"])(this.dataSpecialTimes);try{for(s.s();!(a=s.n()).done;){var r=a.value;if(void 0===r.dayTypeId||""===r.dayTypeId||null===r.dayTypeId){this.errorAddListGate="すでに追加されている時間帯になります。追加する場合は、一度削除してから実施してください。",this.errorHoursEndSpecial="",this.errorHoursStartSpecial="";break}if(r.dayTypeId.toString()===this.inputSpecialday.value){if(0!==r.allDay){this.errorAddListGate="すでに追加されている時間帯になります。追加する場合は、一度削除してから実施してください。",this.errorHoursEndSpecial="",this.errorHoursStartSpecial="";break}var o=this.dataSpecialTimes.filter((function(t){return t.dayTypeId.toString()===e.inputSpecialday.value})).length;if(o>=3){this.errorAddListGate="すでに3つ追加されてます。追加する場合は、いずれかを削除してから実施してください。",this.errorHoursEndSpecial="",this.errorHoursStartSpecial="";break}t++}else t++}}catch(u){s.e(u)}finally{s.f()}var n=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,i=n.test(this.hoursStartSpecial),l=n.test(this.hoursEndSpecial);if(t===this.dataSpecialTimes.length&&void 0!==this.inputSpecialday.value&&null!==this.inputSpecialday.value&&""!==this.inputSpecialday.value&&(!0===i&&!0===l&&this.hoursStartSpecial")},updateHasAtLeastOneItem:function(e){var t=JSON.parse(JSON.stringify(this.dataTimes));t[e].hasAtLeastOneItem=!0,this.dataTimes=t},expandSpecialTimes:function(e){if(0!==e.allDay){e.startTime2,e.endTime2,e.startTime3,e.endTime3;var t=Object(ou["a"])(e,["startTime2","endTime2","startTime3","endTime3"]);return[t]}var a=[[e.startTime,e.endTime],[e.startTime2,e.endTime2],[e.startTime3,e.endTime3]].filter((function(e){var t=Object(sr["a"])(e,2),a=t[0],s=t[1];return a&&s&&"99:99"!==a&&"99:99"!==s}));return a.map((function(t){var a=Object(sr["a"])(t,2),s=a[0],r=a[1];return Object(Dc["a"])(Object(Dc["a"])({},e),{},{startTime:s,endTime:r})}))}},watch:{loadingDate:function(e){!1===e&&2!==this.isEdit&&this.init()},loading:function(e){(1===this.isEdit||2===this.isEdit&&!1===e)&&this.init()},dayTypes:function(e){var t=this;this.loadDefaultTimes().then((function(){3===t.isEdit&&(t.loadTimes(),t.allDay=!1,t.loadSpecialTimes()),2===t.isEdit&&t.loadSpecialTimes(),0===t.dataTimes.length&&1!==t.isEdit?t.loadTimes():t.dataTimes.length0&&setTimeout((function(){e.innerValue=!1}),1e3*this.timer)}},mounted:function(){this.startTimer()}}),Ru=Au,Tu=a("0798"),Eu=Object(I["a"])(Ru,Du,Gu,!1,null,null,null),Ou=Eu.exports;C()(Eu,{VAlert:Tu["a"]});var Vu=f["a"].extend({name:"NoticeSettingList",components:{InputForm:io,SuccessButton:kr,CancelButton:fr,Modal:bn,Alert:Ou,ModalTitle:Xc},props:{isVisible:{type:Boolean,default:function(){return!0}},loadBlockingTextNoticeSetting:{type:String,default:function(){return""}},isLoadBlockingNoticeSetting:{type:Boolean,default:function(){return!1}},isLoadingNoticeSetting:{type:Boolean,default:function(){return!1}},successMessageLogsModal:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},noticeSettings:{type:Array,default:function(){return[]}},noticeSettingType:{type:Object,default:function(){return{noticeSettingTypeId:"miss",description:"未設定",name:"未設定",targets:[]}}}},data:function(){return{deleteTargetNoticeSettingId:"",isDisplaySuccessMessage:!1,isDisplayErrorMessage:!1,isDisplayConfirm:!1,perPageItemLength:10,page:1,headers:[{text:"通知設定名",align:"start",sortable:!0,value:"name"},{text:"備考欄",align:"start",sortable:!1,value:"option"},{text:"有効/無効",align:"center",sortable:!1,value:"isValid"},{text:"",align:"end",sortable:!1,value:"icons"}]}},watch:{successMessageLogsModal:function(e){e.length>0?this.isDisplaySuccessMessage=!0:this.isDisplaySuccessMessage=!1},errorMessageLogsModal:function(e){e.length>0?this.isDisplayErrorMessage=!0:this.isDisplayErrorMessage=!1}},computed:{selectedTypeNoticeSettings:{get:function(){var e=this,t=JSON.parse(JSON.stringify(this.noticeSettings));return t.filter((function(t){return t.noticeSettingTypeId===e.noticeSettingType.noticeSettingTypeId}))},set:function(){}}},methods:{clickConfirmDeleteNoticeSetting:function(e){this.$emit("reset-msg"),this.deleteTargetNoticeSettingId=e,this.isDisplayConfirm=!0},deleteComfirmNoticeSetting:function(e){!0===e&&(this.$emit("click-delete-notice-setting",this.deleteTargetNoticeSettingId),this.$emit("reload-notice-settings")),this.deleteTargetNoticeSettingId="",this.isDisplayConfirm=!1}}}),Uu=Vu,$u=Object(I["a"])(Uu,Mu,Lu,!1,null,null,null),Nu=$u.exports;C()($u,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var Fu=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-loading allig-loading-mask"},[a("v-row",{staticClass:"allig-loading-contents",attrs:{"no-gutters":"",justify:"center",align:"center"}},[a("v-progress-circular",{staticClass:"col-auto",attrs:{color:"green",indeterminate:""}}),e._v(" "),a("v-col",{staticClass:"col-auto pl-5"},[e._v("\n "+e._s(e.text)+"\n ")])],1)],1)},ju=[],Bu=f["a"].extend({name:"Loading",props:{text:{type:String,default:""}}}),zu=Bu,Hu=(a("9265"),a("490a")),Ku=Object(I["a"])(zu,Fu,ju,!1,null,"f83e0b80",null),Yu=Ku.exports;C()(Ku,{VCol:Dr["a"],VProgressCircular:Hu["a"],VRow:Kr["a"]});var qu=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{className:"round-button-footer",value:e.isVisible,title:e.noticeSettingType.name+" : "+("edit"===e.mode?"編集":"新規追加")},on:{close:e.close},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isLoadBlockingNoticeSetting?a("loading",{attrs:{text:e.loadBlockingTextNoticeSetting}}):e._e(),e._v(" "),a("alert",{attrs:{text:e.errorMessageLogsModal,type:"error"},model:{value:e.isDisplayErrorMessage,callback:function(t){e.isDisplayErrorMessage=t},expression:"isDisplayErrorMessage"}}),e._v(" "),a("alert",{attrs:{text:e.successMessageLogsModal,type:"success"},model:{value:e.isDisplaySuccessMessage,callback:function(t){e.isDisplaySuccessMessage=t},expression:"isDisplaySuccessMessage"}}),e._v(" "),a("v-form",{ref:"formNoticeSetting",staticClass:"modal-body-top formNoticeSetting",attrs:{"lazy-validation":""}},[a("v-row",[a("v-col",{attrs:{md:12}},[a("input-form",{attrs:{title:"設定名称",inputType:e.text,rules:[0!==e.innerEditNoticeSettingName.length]},model:{value:e.innerEditNoticeSettingName,callback:function(t){e.innerEditNoticeSettingName=t},expression:"innerEditNoticeSettingName"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{md:12}},[a("input-form",{attrs:{title:"備考欄",inputType:e.text,rules:[]},model:{value:e.innerEditNoticeSettingOption,callback:function(t){e.innerEditNoticeSettingOption=t},expression:"innerEditNoticeSettingOption"}})],1)],1),e._v(" "),e._l(e.innerEditNoticeSettingEmails,(function(t,s){return[a("v-row",{key:""+e.innerEditNoticeSettingEmails.length+s},[a("v-col",{attrs:{md:e.innerEditNoticeSettingEmails.length>1?11:12}},[a("input-form",{attrs:{title:"通知先メールアドレス"+(s+1),inputType:e.text,helpText:",区切りでまとめてメールアドレス登録できます",rules:[e.isValidateEmail(t)],value:e.innerEditNoticeSettingEmails[s]},on:{change:function(t){return e.splitEmail(t,s)}}})],1),e._v(" "),e.innerEditNoticeSettingEmails.length>1?a("v-col",{attrs:{md:1}},[a("icon-button",{attrs:{text:"メール削除",icon:"mdi-minus mdi-18px"},on:{click:function(t){return e.deleteEmail(s)}}})],1):e._e()],1)]})),e._v(" "),a("v-row",[a("v-col",{staticClass:"btn-add-notice-setting",attrs:{"offset-md":2}},[a("icon-button",{attrs:{text:"メール追加",icon:"mdi-plus mdi-18px"},on:{click:function(t){return e.addNewEmail()}}})],1)],1),e._v(" "),e._l(e.noticeSettingType.targets,(function(t){return["userId"===t.targetColumn?a("v-row",{key:t.targetColumn+t.targetTable},[a("v-col",{attrs:{md:12}},[a("input-form",{attrs:{title:"監視対象ユーザー",helpText:(t.isRequired?"指定必須。":"")+"複数ユーザー指定した場合はいずれかのユーザー通過及びアクションを起こした時通知します。",inputType:"multi-select",rules:[!t.isRequired||e.isValidateLengthOneMore(e.userIds)],selectItems:e.configurableUsers,classMore:"common-class"},model:{value:e.userIds,callback:function(t){e.userIds=t},expression:"userIds"}})],1)],1):e._e(),e._v(" "),"deviceId"===t.targetColumn?a("v-row",{key:t.targetColumn+t.targetTable},[a("v-col",{attrs:{md:12}},[a("input-form",{attrs:{title:"監視対象個人コード",helpText:(t.isRequired?"指定必須。":"")+"複数個人コード指定した場合はいずれかの個人コードによる通過した時通知します。",inputType:"multi-select",rules:[!t.isRequired||e.isValidateLengthOneMore(e.pCodeIds)],selectItems:e.configurablePcodes,classMore:"common-class"},model:{value:e.pCodeIds,callback:function(t){e.pCodeIds=t},expression:"pCodeIds"}})],1)],1):e._e(),e._v(" "),"gateId"===t.targetColumn?a("v-row",{key:t.targetColumn+t.targetTable},[a("v-col",{attrs:{md:12}},[a("input-form",{attrs:{title:"監視対象ゲート",helpText:(t.isRequired?"指定必須。":"")+"複数ゲートを指定した場合は、いずれかのゲートでログが発生したときに通知します。",inputType:"multi-select",rules:[!t.isRequired||e.isValidateLengthOneMore(e.gateIds)],selectItems:e.configurableGates,classMore:"common-class"},model:{value:e.gateIds,callback:function(t){e.gateIds=t},expression:"gateIds"}})],1)],1):e._e(),e._v(" "),"logId"===t.targetColumn?a("v-row",{key:t.targetColumn+t.targetTable},[a("v-col",{attrs:{md:12}},[a("input-form",{attrs:{title:"監視対象ログ",helpText:(t.isRequired?"指定必須。":"")+"複数ログ指定した場合はいずれかのログが発生した時通知します。",inputType:"multi-select",rules:[!t.isRequired||e.isValidateLengthOneMore(e.logIds)],selectItems:e.configurableLogs,classMore:"common-class"},model:{value:e.logIds,callback:function(t){e.logIds=t},expression:"logIds"}})],1)],1):e._e()]}))],2)]},proxy:!0},{key:"modal-footer",fn:function(){return["edit"===e.mode?a("success-button",{attrs:{text:"決定"},on:{click:function(t){return e.clickEditPutNoticeSetting()}}}):a("success-button",{attrs:{text:"登録"},on:{click:function(t){return e.clickAddPostNoticeSetting()}}}),e._v(" "),a("cancel-button",{attrs:{text:"閉じる"},on:{click:function(t){return e.close()}}})]},proxy:!0}])})},Wu=[],Ju=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-icon-button"},[a("v-btn",{staticClass:"ma-2 white--text text-bold",attrs:{disabled:e.disabled,color:"green",elevation:"0"},on:{click:function(t){return e.$emit("click",t)}}},[a("v-icon",{staticClass:"icon",attrs:{left:"",light:""}},[e._v("\n "+e._s(e.icon)+"\n ")]),e._v("\n "+e._s(e.text)+"\n ")],1)],1)},Zu=[],Xu=f["a"].extend({name:"IconButton",props:{text:{type:String,default:""},disabled:{type:Boolean,default:!1},icon:{type:String,default:""}}}),Qu=Xu,ed=(a("f25e"),Object(I["a"])(Qu,Ju,Zu,!1,null,"f789824c",null)),td=ed.exports;C()(ed,{VBtn:pr["a"],VIcon:Gr["a"]});var ad=f["a"].extend({name:"NoticeSettingTarget",components:{Modal:bn,Loading:Yu,InputForm:io,SuccessButton:kr,CancelButton:fr,IconButton:td,Alert:Ou},data:function(){return{isDisplaySuccessMessage:!1,isDisplayErrorMessage:!1}},props:{isVisible:{type:Boolean,default:function(){return!1}},mode:{type:String,default:function(){return"new"}},isLoadBlockingNoticeSetting:{type:Boolean,default:function(){return!0}},loadBlockingTextNoticeSetting:{type:String,default:function(){return""}},successMessageLogsModal:{type:String,default:function(){return""}},errorMessageLogsModal:{type:String,default:function(){return""}},value:{type:Object,default:function(){return{name:"",noticeSettingId:"",noticeSettingTypeId:"",isValid:!0,option:"",emails:[],targets:[]}}},noticeSettingType:{type:Object,default:function(){return{noticeSettingTypeId:"miss",description:"未設定",name:"未設定",targets:[]}}},configurableUsers:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},configurableGates:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},configurablePcodes:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},configurableLogs:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},configurableConnectStatus:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}}},watch:{successMessageLogsModal:function(e){e.length>0?(this.isDisplaySuccessMessage=!0,"new"===this.mode&&(this.value.name="",this.value.noticeSettingId="",this.value.option="",this.value.emails=[""],this.value.targets=[])):this.isDisplaySuccessMessage=!1},errorMessageLogsModal:function(e){e.length>0?this.isDisplayErrorMessage=!0:this.isDisplayErrorMessage=!1}},computed:{innerEditNoticeSettingName:{get:function(){return this.value.name},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{name:e}))}},innerEditNoticeSettingId:{get:function(){return this.value.noticeSettingId},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{noticeSettingId:e}))}},innerEditNoticeSettingTypeId:{get:function(){return this.value.noticeSettingTypeId},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{noticeSettingTypeId:e}))}},innerEditNoticeSettingIsValid:{get:function(){return this.value.isValid},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{isValid:e}))}},innerEditNoticeSettingOption:{get:function(){return this.value.option},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{option:e}))}},innerEditNoticeSettingEmails:{get:function(){return 0===this.value.emails.length?[""]:this.value.emails},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{emails:e}))}},innerEditNoticeSettingTargets:{get:function(){return this.value.targets},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{targets:e}))}},userIdTargetIndex:{get:function(){var e=this.noticeSettingType.targets.find((function(e){return"userId"===e.targetColumn}));if(void 0===e)return-1;for(var t=e.noticeSettingTypeTargetId,a=-1,s=0;s0)||"必須項目のため、一つ以上の指定が必須です。"},isValidateEmail:function(e){var t=[];t.push({regexp:/^.+@.+$/,errorMessage:"メールアドレスの形式が異なります。"}),t.push({regexp:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,errorMessage:"メールアドレスに使用できない文字列が含まれています。使用可能な文字列は英字、数字、記号(.!#$%&'*+/=?^_`{|}~-)が使用可能です"});for(var a=!0,s=0;t.length>s;s++)if(!e.match(t[s].regexp)){a=t[s].errorMessage;break}return a},addNewEmail:function(){var e=JSON.parse(JSON.stringify(this.value.emails));e.push(""),this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{emails:e}))},deleteEmail:function(e){var t=JSON.parse(JSON.stringify(this.value.emails));t.splice(e,1),this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{emails:t}))},splitEmail:function(e,t){var a=e.split(","),s=this.value.emails.slice(0,t),r=this.value.emails.slice(t+1,this.value.emails.length),o=s.concat(a).concat(r);this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{emails:o}))},clickAddPostNoticeSetting:function(){var e=this.$refs.formNoticeSetting.validate();e&&this.$emit("click-add-notice-setting",this.value)},clickEditPutNoticeSetting:function(){var e=this.$refs.formNoticeSetting.validate();e&&this.$emit("click-edit-notice-setting",this.value)}}}),sd=ad,rd=(a("a464"),Object(I["a"])(sd,qu,Wu,!1,null,"2ed7aca6",null)),od=rd.exports;C()(rd,{VCol:Dr["a"],VForm:Nl["a"],VRow:Kr["a"]});var nd="edit",id="new",ld=f["a"].extend({name:"NoticeSettingTypeList",components:{InputForm:io,TextLink:No,SuccessButton:kr,CancelButton:fr,Loading:Yu,NoticeSettingList:Nu,NoticeSettingTarget:od},data:function(){return{isVisibleNoticeSettingList:!1,isVisibleNoticeSettingTarget:!1,selectedNoticeSettingType:{noticeSettingTypeId:"",name:"",targets:[],description:""},editNoticeSetting:{name:"",noticeSettingId:"",noticeSettingTypeId:"",option:"",targets:[],emails:[],isValid:!1},editMode:"new"}},props:{isLoadingNoticeSetting:{type:Boolean,default:function(){return!1}},isLoadBlockingNoticeSettingType:{type:Boolean,default:function(){return!1}},isLoadBlockingNoticeSetting:{type:Boolean,default:function(){return!0}},loadBlockingTextNoticeSetting:{type:String,default:function(){return""}},successMessageLogsModal:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},noticeSettingTypes:{type:Array,default:function(){return[]}},noticeSettings:{type:Array,default:function(){return[]}},configurableUsers:{type:Array,default:function(){return[]}},configurableGates:{type:Array,default:function(){return[]}},configurablePcodes:{type:Array,default:function(){return[]}},configurableLogs:{type:Array,default:function(){return[]}},configurableConnectStatus:{type:Array,default:function(){return[]}}},created:function(){},mounted:function(){},methods:{displayNoticeSettingList:function(e){this.$emit("reset-msg"),this.isVisibleNoticeSettingList=!0,this.selectedNoticeSettingType=e},clickOpenNewAddNoticeSeting:function(e){this.$emit("reset-msg"),this.editNoticeSetting={name:"",option:"",noticeSettingId:"",noticeSettingTypeId:e.noticeSettingTypeId,isValid:!1,targets:[],emails:[]},this.selectedNoticeSettingType=e,this.editMode=id,this.isVisibleNoticeSettingTarget=!0},clickOpenEditNoticeSeting:function(e){this.$emit("reset-msg"),this.editNoticeSetting={name:"",option:"",noticeSettingId:e,noticeSettingTypeId:"",isValid:!1,targets:[],emails:[]};var t=this.noticeSettings.find((function(t){return t.noticeSettingId===e}));void 0!==t&&t.noticeSettingTypeId===this.selectedNoticeSettingType.noticeSettingTypeId&&(this.editNoticeSetting=JSON.parse(JSON.stringify(t)),this.editMode=nd,this.isVisibleNoticeSettingTarget=!0)}}}),cd=ld,ud=(a("7312"),Object(I["a"])(cd,_u,Pu,!1,null,"235dd4f0",null)),dd=ud.exports;C()(ud,{VCol:Dr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var gd=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table allig-user-table"},["registration"===e.isExternalLogin?a("v-container",[a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("CancelButton",{attrs:{text:"戻る"},on:{click:function(t){return e.$emit("goPageSetting")}}})],1),e._v(" "),a("v-col",{staticClass:"mt-2 title-sub-login",staticStyle:{"text-align":"center"},attrs:{cols:"8"}},[a("v-row",{attrs:{justify:"center"}},["SAML"===e.cognitoIdProviderName?a("v-col",{staticClass:"text-subtitle-2 font-weight-bold",attrs:{"align-self":"start"}},[e._v("\n "+e._s(e.lableButtonLogin.oneLogin)+"\n ")]):"Google"===e.cognitoIdProviderName?a("v-col",{staticClass:" mb-4 text-subtitle-2 font-weight-bold",attrs:{"align-self":"start"}},[e._v("\n "+e._s(e.lableButtonLogin.googleLogin)+"\n ")]):"Apple"===e.cognitoIdProviderName?a("v-col",{staticClass:" mb-4 text-subtitle-2 font-weight-bold",attrs:{"align-self":"start"}},[e._v("\n "+e._s(e.lableButtonLogin.appleLogin)+"\n ")]):e._e()],1)],1)],1),e._v(" "),a("v-row",{staticClass:"ml-1 mt-5",attrs:{justify:"start"}}),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("div",{staticClass:"round-action mb-5"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{cols:"10"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"start"}},[a("v-col",{attrs:{md:"5",xl:"4"}},[a("searchbox",{staticClass:"input-search",attrs:{title:"メールアドレスで絞り込み",searchTargetItems:e.searchTargetItems},on:{search:function(t){return e.$emit("search-login",t)}}})],1),e._v(" "),a("v-col",{staticClass:"ml-10",attrs:{md:"5",xl:"3"}},[a("v-autocomplete",{staticClass:"input-search",attrs:{items:e.userList,label:"ログインに使用するIDで絞り込み","no-data-text":"",solo:"",clearable:"","hide-details":"",disabled:e.isDisabled},on:{change:function(t){return e.$emit("select-user-login",t)}}})],1)],1)],1)]),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-1"},[a("v-col",{staticClass:"btn-add pt-0"},["SAML"===e.cognitoIdProviderName?a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:"",disabled:"false"===e.isSamlFederatedLoginService},on:{click:function(t){return e.$emit("goPageExport",t)}}},[e._v("\n ー括登録\n ")]):a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:"",disabled:"false"===e.isFederatedLoginService},on:{click:function(t){return e.$emit("goPageExport",t)}}},[e._v("\n ー括登録\n ")])],1)],1)])],1)],1)],1),e._v(" "),a("v-row",{staticClass:"row-message"},[""!==e.successMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageParams.email?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageParams.email)+"\n ")]):""===e.errorMessageParams.email&&""!==e.errorMessageParams.userId?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageParams.userId)+"\n ")]):e._e()],1),e._v(" "),a("v-row",{staticClass:"mt-4 mr-1",attrs:{"no-gutters":"",justify:"end","align-content":"end"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2",attrs:{"per-page":e.innerPerPage,page:e.page,"items-length":e.maxRecord}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,items:e.realtionsUserList,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"","items-per-page":e.pageSizeList},scopedSlots:e._u([{key:"item",fn:function(t){return[a("tr",[e.selectedDisplayOption.includes("federatedLoginEmail")?a("td",[e._v(e._s(t.item.federatedLoginEmail))]):e._e(),e._v(" "),e.selectedDisplayOption.includes("userId")?a("td",[e._v(e._s(t.item.userId))]):e._e(),e._v(" "),a("td",{staticClass:"last-col"},[a("v-row",{attrs:{justify:"center"}},["SAML"===e.cognitoIdProviderName?a("v-btn",{attrs:{icon:"",al:"",disabled:"false"===e.isSamlFederatedLoginService},on:{click:function(a){return e.showModal(t.item.relationId)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-trash-can-outline")])],1):a("v-btn",{attrs:{icon:"",al:"",disabled:"false"===e.isFederatedLoginService},on:{click:function(a){return e.showModal(t.item.relationId)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-trash-can-outline")])],1)],1)],1)])]}}],null,!1,1981258235)},[a("template",{slot:"body.prepend"},[a("tr",{staticClass:"mt-4"},[e.selectedDisplayOption.includes("federatedLoginEmail")?a("td",[a("v-text-field",{class:""!==e.errorMessageParams.email?"input-add input-error":"input-add",attrs:{"hide-details":"auto",outlined:"",dense:""},model:{value:e.newUser.email,callback:function(t){e.$set(e.newUser,"email",t)},expression:"newUser.email"}})],1):e._e(),e._v(" "),e.selectedDisplayOption.includes("userId")?a("td",[a("v-autocomplete",{class:""!==e.errorMessageParams.userId?"input-add input-error":"input-add",attrs:{items:e.userList,color:"green",outlined:"",dense:"","hide-details":"auto","no-data-text":"",disabled:e.isDisabled,clearable:""},model:{value:e.newUser.userId,callback:function(t){e.$set(e.newUser,"userId",t)},expression:"newUser.userId"}})],1):e._e(),e._v(" "),a("td",{staticClass:"align-self-center"},[a("v-row",{attrs:{justify:"center"}},["SAML"===e.cognitoIdProviderName?a("v-btn",{staticClass:"btn-secondary",attrs:{disabled:"false"===e.isSamlFederatedLoginService,outlined:""},on:{click:function(t){return e.$emit("addRelation",e.newUser)}}},[e._v("\n 追加\n ")]):a("v-btn",{staticClass:"btn-secondary",attrs:{disabled:"false"===e.isFederatedLoginService,outlined:""},on:{click:function(t){return e.$emit("addRelation",e.newUser)}}},[e._v("\n 追加\n ")])],1)],1)])])],2),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.pageSizeList,"per-page-items":[25,50,100],"items-length":1,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),e.disablePagination?e._e():a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.maxRecord/e.pageSizeList),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}}),e._v(" "),a("v-dialog",{attrs:{width:"500"},model:{value:e.isShowModal,callback:function(t){e.isShowModal=t},expression:"isShowModal"}},[a("v-card",[a("ModalTitle",{attrs:{title:"ログインユーザーを削除"},on:{click:function(t){e.isShowModal=!1}}}),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-10 pt-5 pb-5"},[e._v("ログインユーザーを削除しますか?")]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){e.isShowModal=!1}}}),e._v(" "),a("success-button",{staticClass:"ml-3",attrs:{text:"削除"},on:{click:e.deleteRelation}})],1)],1)],1)],1)],1)],1):a("v-container",[a("v-row",{staticClass:"ml-1 mt-5",attrs:{justify:"start"}},[a("CancelButton",{attrs:{text:"戻る"},on:{click:function(t){return e.$emit("goPageSetting")}}})],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-container",{staticClass:"info-export"},[a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showModalImport,callback:function(t){e.showModalImport=t},expression:"showModalImport"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(" CSVファイルエクスポート ")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"row-message"},[""!==e.errorMessage?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessage)+"\n ")]):e._e()],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-text",{staticClass:"pa-4"},[""===e.errorMessage?a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]):e._e(),e._v(" "),e.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRow)+"件中"+e._s(e.successItem)+"件をインポートしました。")]):e._e(),e._v(" "),e.errorMessageExcel.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("インポート失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageExcel,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e(),e._v(" "),""===e.errorMessage&&0===e.errorMessageExcel.length&&100===Math.round(e.progress)&&0===e.successItem?a("div",{staticClass:"success-label"},[e._v("\n "+e._s(e.totalDataRow)+"件中"+e._s(e.totalDataRow)+"件をインポートしました。\n ")]):e._e()],1),e._v(" "),e.success?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalImport")}}},[e._v("\n OK\n ")])],1)],1):e._e()],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"ml-4 mb-4 text-subtitle-2 border-left-blue font-weight-bold mt-10"},[e._v("\n "+e._s(e.cognitoIdProviderName)+" ログインユーザー 一括登録\n ")])],1),e._v(" "),a("v-card",{staticClass:"mt-10 pa-5"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n "+e._s(e.cognitoIdProviderName)+" ログインユーザーの登録を一括で実施することができます。"),a("br"),e._v("\n 登録するために必要なテンプレートCSVファイルは、”テンプレートのダウンロード”から取得してください。"),a("br"),e._v("\n このアップロードでは、既に登録されているユーザー情報を変更することはできません。"),a("br"),e._v("\n 変更したいユーザーについては、削除を行ってから実施してください。\n ")]),e._v(" "),a("div",{staticClass:"fallback mt-5"},[a("p",{staticClass:"desc"},[e._v("自分のコンピューターからファイルを選択する :")]),e._v(" "),a("label",{staticClass:"btn-upload",attrs:{for:"file_csv"}},[e._v("\n CSVファイルを選択\n "),a("input",{ref:"myFiles",staticClass:"custom-file-input",staticStyle:{display:"none"},attrs:{type:"file",id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}})]),e._v(" "),e.files?a("span",{staticClass:"filename"},[e._v(e._s(e.files.name))]):a("span",{staticClass:"filename"},[e._v("選択されていません")]),e._v(" "),a("span",{staticClass:"error"}),e._v(" "),a("div",{attrs:{id:"result"}}),e._v(" "),a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickImport",{files:e.files})}}},[e._v("\n 登録データのアップロード\n ")])],1)]),e._v(" "),a("v-card",{staticClass:"mt-10 pa-5"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n "+e._s(e.cognitoIdProviderName)+" ログインユーザーの登録を一括で実施するテンプレートファイルをダウンロードできます。\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-secondary mr-0 mt-10",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickExport",{federatedLoginServiceId:e.federatedLoginServiceId})}}},[e._v("\n 登録データのアップロード\n ")])],1)],1)],1)],1)},pd=[],md=f["a"].extend({name:"RegisterLoginUserTemplate",components:{CancelButton:fr,SuccessButton:kr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,ModalTitle:Xc},props:{typeItems:{type:Array,default:function(){return[]}},userTotalCount:{type:Number,default:0},listID:{type:Array,default:function(){return[]}},gatePassageTotalCount:{type:Number,default:0},perPage:{type:Number,default:25},pageSizeList:{type:Number,default:25},page:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},cognitoIdProviderName:{type:String,default:""},errorMessage:{type:String,default:""},userList:{type:Array,default:function(){return[]}},isDisabled:{type:Boolean,default:!1},realtionsUserList:{type:Array,default:function(){return[]}},isFederatedLoginService:{type:String,default:"false"},isSamlFederatedLoginService:{type:String,default:"false"},sucessStatus:{type:Boolean,default:!1},message:{type:String,default:""},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},maxRecord:{type:Number,default:0},successItem:{type:Number,default:0},totalDataRow:{type:Number,default:0},progress:{type:Number,default:0},isExternalLogin:{type:String,default:""},showModalImport:{type:Boolean,default:!1},success:{type:Boolean,default:!1},federatedLoginServiceId:{type:String,default:""},errorMessageExcel:{default:[]},errorMessageParams:{default:[]}},computed:{progressWidth:function(){return"width:"+this.progress+"%"},headers:{get:function(){var e=[];return this.selectedDisplayOption.includes("federatedLoginEmail")&&e.push({text:"メールアドレス",align:"start",sortable:!0,value:"federatedLoginEmail"}),this.selectedDisplayOption.includes("userId")&&e.push({text:"ログインに使用するID",align:"start",sortable:!0,value:"userId"}),e.push({text:"",align:"start",sortable:!0,value:"edit"}),e},set:function(){}},groupNames:{get:function(){return this.newUser.map((function(e){return{text:e.userName,value:e.relationId}}))},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page-login",e)}},innerPerPage:{get:function(){return this.pageSizeList},set:function(e){this.$emit("change-per-page-login",e)}}},data:function(){return{check:!0,input:null,lableButtonLogin:{oneLogin:"SAML ログインユーザー登録",googleLogin:"Google ログインユーザー登録",appleLogin:"AppleID ログインユーザー登録"},newUser:[],searchTargetItems:[{label:"メールアドレス",value:"email"}],selectedDisplayOption:["federatedLoginEmail","name","userId"],displayOptionItems:[],isShowModal:!1,relationId:"",currentPage:1,pageSize:25,queryOptions:{},searchKey:"",files:[]}},watch:{sucessStatus:function(e){e&&(this.newUser=[])},message:function(){this.isShowModal&&(this.isShowModal=!1)}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRow)+"件中"+e._s(e.successItem)+"件をインポートしました。")]):e._e(),e._v(" "),e.errorMessageExcel.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("インポート失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageExcel,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e(),e._v(" "),""===e.errorMessage&&0===e.errorMessageExcel.length&&100===Math.round(e.progress)&&0===e.successItem?a("div",{staticClass:"success-label"},[e._v("\r\n "+e._s(e.totalDataRow)+"件中"+e._s(e.totalDataRow)+"件をインポートしました。\r\n ")]):e._e()],1),e._v(" "),e.success?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:e.closeModalProcessImportFile}},[e._v("\r\n OK\r\n ")])],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"1000",persistent:""},model:{value:e.showModalImport,callback:function(t){e.showModalImport=t},expression:"showModalImport"}},[a("v-card",{staticClass:"modal-export"},[a("ModalTitle",{attrs:{title:"一括登録(ログインユーザーCSV) "},on:{click:function(t){return e.closeModalProcessFile()}}}),e._v(" "),a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n "+e._s(e.cognitoIdProviderName)+" ログインユーザーの登録を一括で実施するテンプレートファイルをダウンロードできます。\r\n ")]),e._v(" "),"SAML"===e.cognitoIdProviderName?a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:"",disabled:"false"===e.isSamlFederatedLoginService},on:{click:function(t){return e.$emit("clickExport",{federatedLoginServiceId:e.federatedLoginServiceId})}}},[e._v("\r\n 登録データのダウンロード\r\n ")])],1):a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{disabled:"false"===e.isFederatedLoginService,outlined:""},on:{click:function(t){return e.$emit("clickExport",{federatedLoginServiceId:e.federatedLoginServiceId})}}},[e._v("\r\n 登録データのダウンロード\r\n ")])],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5 pt-0"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n "+e._s(e.cognitoIdProviderName)+" ログインユーザーの登録を一括で実施することができます。"),a("br"),e._v("\r\n 登録するために必要なテンプレートCSVファイルは、”テンプレートのダウンロード”から取得してください。"),a("br"),e._v("\r\n このアップロードでは、既に登録されているユーザー情報を変更することはできません。"),a("br"),e._v("\r\n 変更したいユーザーについては、削除を行ってから実施してください。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("CSVファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},["SAML"===e.cognitoIdProviderName?a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:"",disabled:"false"===e.isSamlFederatedLoginService},on:{click:function(t){return e.openFile()}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}}):a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:"",disabled:"false"===e.isFederatedLoginService},on:{click:function(t){return e.openFile()}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_csv"}},[e._v("\r\n ...\r\n "),"SAML"===e.cognitoIdProviderName?a("input",{ref:"files",staticClass:"custom-file-input",staticStyle:{display:"none"},attrs:{type:"file",disabled:"false"===e.isSamlFederatedLoginService,id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}}):a("input",{ref:"files",staticClass:"custom-file-input",staticStyle:{display:"none"},attrs:{type:"file",disabled:"false"===e.isFederatedLoginService,id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}})])])],1)],1)]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},["SAML"===e.cognitoIdProviderName?a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:"",disabled:"false"===e.isSamlFederatedLoginService},on:{click:function(t){return e.$emit("clickImport",{files:e.files})}}},[e._v("\r\n アップロード\r\n ")]):a("v-btn",{staticClass:"btn-primary mr-0",attrs:{disabled:"false"===e.isFederatedLoginService,outlined:""},on:{click:function(t){return e.$emit("clickImport",{files:e.files})}}},[e._v("\r\n アップロード\r\n ")])],1)],1)],1)],1)],1)},yd=[],Id=f["a"].extend({name:"ExternalLoginImport",components:{ModalTitle:Xc},props:{showModalImport:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},success:{type:Boolean,default:!1},progress:{type:Number,default:0},cognitoIdProviderName:{type:String,default:""},federatedLoginServiceId:{type:String,default:""},errorMessage:{type:String,default:""},showProgressExportCSV:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},successItem:{type:Number,default:0},totalDataRow:{type:Number,default:0},errorMessageExcel:{default:[]},errorMessageParams:{default:[]},isSamlFederatedLoginService:{type:String,default:"false"},isFederatedLoginService:{type:String,default:"false"}},watch:{},computed:{},data:function(){return{files:[],fileName:""}},methods:{previewFiles:function(e){console.log(e.target.files[0]),this.files=e.target.files[0],this.fileName=e.target.files[0]?e.target.files[0].name:"",e.target.value=null},openFile:function(){var e=document.getElementsByClassName("custom-file-input")[0];e.click()},closeDialogImport:function(){this.files=null,this.fileName="",this.$emit("closeImportCSV")},closeModalProcessFile:function(){this.files=null,this.fileName="",this.$emit("closeModalProcess")},closeModalProcessImportFile:function(){this.files=null,this.fileName="",this.$emit("closeModalProcessImport")}}}),xd=Id,Cd=(a("bb83"),Object(I["a"])(xd,bd,yd,!1,null,null,null)),wd=Cd.exports;C()(Cd,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VTextField:Tr["a"]});for(var kd=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-setting-template"},[a("v-card",{staticClass:"overflow-y-auto",attrs:{"max-height":"1000"}},[a("v-container",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end",cols:"12"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.saveDate}},[e._v("\n 休日設定\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.timeAdd.length},on:{click:e.saveAllDate}},[e._v("\n 登録\n ")])],1),e._v(" "),a("v-row",{staticClass:"holiday-setting"},e._l(e.months,(function(t){return a("v-col",{key:t.month,attrs:{cols:"4",pa:"0"}},[a("v-date-picker",{staticClass:"allig-date-picker",attrs:{color:"bg-title-date lighten-1 ","weekday-format":e.weekday,"full-width":"",multiple:"",readonly:"","title-date-format":e.getTitle},on:{"click:date":function(a){return e.setDate(a,t)}},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"item.value"}})],1)})),1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}},[a("v-card",[a("ModalTitle",{attrs:{title:"休日設定"},on:{click:e.closeDate}}),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[!1===e.popupProcess?a("v-row",[a("v-col",[a("v-select",{staticClass:"item-year",attrs:{items:e.dayTypesCalendar,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"",autocomplete:"off","return-object":"","menu-props":{contentClass:"common-class"}},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1)],1):e._e(),e._v(" "),e.popupProcess?a("v-row",[""!==e.successMessageLogsModal&&!1===e.loading?a("v-col",{staticClass:"font-weight-bold bg-success no-bg"},[e._v("\n "+e._s(e.successMessageLogsModal)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogsModal&&!1===e.loading?a("v-col",{staticClass:"font-weight-bold bg-error no-bg"},[e._v("\n "+e._s(e.errorMessageLogsModal)+"\n ")]):e._e()],1):e._e()],1),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[e.popupProcess?a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:e.closeDateFinish}},[a("span",[e._v("OK")])])],1):a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:e.closeDate}},[a("span",[e._v("キャンセル")])]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.setTypeDate}},[e._v("\n 保存する\n ")])],1)],1)],1)],1)],1)},Sd=[],_d=(new Date).getFullYear(),Pd=[],Md=_d-10;Md<=_d;Md++)Pd.push({text:Md.toString()+"年",value:Md.toString()});var Ld=f["a"].extend({name:"Holiday",components:{InputForm:io,TextLink:No,SuccessButton:kr,ModalTitle:Xc},props:{months:{default:function(){return[]}},timeAdd:{default:function(){return[]}},dayTypesCalendar:{default:function(){return[]}},loading:{default:!1},isFinishDate:{default:!1},isFinishProcess:{default:!1},saveFinish:{default:!1},errorMessageLogs:{type:String,default:""},successMessageLogs:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},successMessageLogsModal:{type:String,default:""},isSaveDate:{type:Number,default:0}},data:function(){return{yearsItems:Pd,itemDate:{inputDate:"",date:[],dayTypeId:""},years:"2021",showModal:!1,popupProcess:!1,dateTime:[],inputDate:"",item1:["2021-01-01"],item2:["2022-01","2022-01-01"],c:0}},created:function(){this.$emit("isGetCalendar")},watch:{isFinishDate:function(e){var t=this;e&&setTimeout((function(){t.setColor(!0)}),10)},isSaveDate:function(e){var t=this;e&&setTimeout((function(){t.setColor(!1)}),10)},loading:function(e){!1===e&&!0===this.saveFinish&&(this.showModal=!0)}},mounted:function(){},methods:{weekday:function(e){var t=new Date(e),a="";switch(t.getDay()){case 0:a="日";break;case 1:a="月";break;case 2:a="火";break;case 3:a="水";break;case 4:a="木";break;case 5:a="金";break;case 6:a="土";break}return a},getTitle:function(e){var t=e[0].split("-");return t[0]+"年"+t[1]+"月"},setDate:function(e,t){this.itemDate.inputDate=e,this.itemDate.inputDate=e,this.itemDate.date=t,this.$emit("setDateOne",this.itemDate)},closeDate:function(){this.itemDate.inputDate="",this.itemDate.date=[],this.showModal=!1,this.$emit("closeDate")},closeDateFinish:function(){this.showModal=!1,this.itemDate={inputDate:"",date:[],dayTypeId:""},this.$emit("closeDateFinish")},saveDate:function(){this.dateTime=[],this.showModal=!0,this.popupProcess=!1},cancelDate:function(){this.showModal=!1,this.popupProcess=!1,this.$emit("setTypeDate",{typeDate:{value:"Del",text:"設定なし"}})},setTypeDate:function(){void 0!==this.dateTime&&null!==this.dateTime&&0!==this.dateTime.length&&this.$emit("setTypeDate",{typeDate:this.dateTime}),this.showModal=!1},saveAllDate:function(){this.popupProcess=!0,this.itemDate.dayTypeId=this.dateTime,this.$emit("saveAllDate",{itemDate:this.itemDate})},setColor:function(e){var t=this,a=document.querySelectorAll(".allig-date-picker .bg-title-date .v-btn__content");a.forEach((function(e,a){var s=e.closest(".allig-date-picker"),r="";if(null!==e.parentNode&&e.parentNode.classList.remove("type7","type8","type9","typeA","typeB","typeC","typeD","typeE","typeF","Del","change"),null===s)console.log("not parent");else{var o=s.querySelector(".v-date-picker-title__date > div"),n=o.innerHTML,i=e.innerHTML;r=null!==n?n.toString().replace("年","-").replace("月","-")+(parseInt(i)<10?"0"+i:i):"";var l="",c="";t.months.forEach((function(e,t){var a=e.dayTypeId.map((function(e){return e.date})).indexOf(r);if(a>=0)switch(void 0!==e.dayTypeId[a].action&&""!==e.dayTypeId[a].action&&null!==e.dayTypeId[a].action&&(c=e.dayTypeId[a].action),e.dayTypeId[a].dayTypeName){case"休日":l="type7";break;case"特日1":l="type8";break;case"特日2":l="type9";break;case"特日3":l="typeA";break;case"特日4":l="typeB";break;case"特日5":l="typeC";break;case"特日6":l="typeD";break;case"特日7":l="typeE";break;case"特日8":l="typeF";break;case"設定なし":l="Del";break;case"":l="Del";break}})),null!==e.parentNode&&""!==l&&(""!==c&&e.parentNode.classList.add(c),e.parentNode.classList.add(l))}}))}}}),Dd=Ld,Gd=(a("c544"),a("2e4b")),Ad=Object(I["a"])(Dd,kd,Sd,!1,null,null,null),Rd=Ad.exports;C()(Ad,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCol:Dr["a"],VContainer:Zo["a"],VDatePicker:Gd["a"],VDialog:hn["a"],VDivider:Pn["a"],VRow:Kr["a"],VSelect:_o["a"]});var Td=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-key-token-setting"},[a("v-container",[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-form",{ref:"KeyTokenSettingForm",attrs:{"lazy-validation":""}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("span",{staticClass:"col-2 pl-0 pr-0 mt-1"},[a("v-subheader",{staticClass:"justify-start title-sub",staticStyle:{"padding-left":"12px"}},[e._v("オフラインでの鍵有効期間")])],1):e._e(),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("input-form",{staticClass:"v-input--reverse swicth-all",attrs:{inputType:"switch"},model:{value:e.settingInfor.keyTokenRefreshable,callback:function(t){e.$set(e.settingInfor,"keyTokenRefreshable",t)},expression:"settingInfor.keyTokenRefreshable"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("div",{staticClass:"v-subheader theme--light no-padding"},[e._v("\n オフラインでの鍵有効期間\n ")])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("v-select",{staticClass:"common-class",attrs:{items:e.listKeyTokenLifetime,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"","menu-props":{contentClass:"common-class"}},model:{value:e.settingInfor.keyTokenLifetime,callback:function(t){e.$set(e.settingInfor,"keyTokenLifetime",t)},expression:"settingInfor.keyTokenLifetime"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("div",{staticClass:"v-subheader theme--light no-padding"},[e._v("\n 更新間隔\n ")])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("v-select",{staticClass:"common-class",attrs:{items:e.listKeyTokenRefreshRate,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"","menu-props":{contentClass:"common-class"}},model:{value:e.settingInfor.keyTokenRefreshRate,callback:function(t){e.$set(e.settingInfor,"keyTokenRefreshRate",t)},expression:"settingInfor.keyTokenRefreshRate"}})],1)],1)],1),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-col",{staticClass:"messageRow",attrs:{cols:"10",align:"right"}},[""!==e.successMessageLogs&&!1===e.loading?a("span",{staticClass:"mr-5 mb-4 font-weight-bold mt-3 bg-success bg-no messageRow",attrs:{cols:"9",align:"right"}},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("span",{staticClass:"mr-5 mb-4 font-weight-bold mt-3 bg-error bg-no messageRow",attrs:{cols:"9",align:"right"}},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("saveKeyToken")}}},[e._v("\n 設定を保存\n ")])],1)],1)],1)],1)],1)},Ed=[],Od=f["a"].extend({name:"KeyTokenSetting",components:{InputForm:io},props:{loading:{type:Boolean,default:!1},settingInfor:{type:Object,default:{}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}},data:function(){return{listKeyTokenLifetime:[{text:"1時間",value:60},{text:"3時間",value:180},{text:"6時間",value:360},{text:"12時間",value:720},{text:"1日",value:1440},{text:"3日",value:4320},{text:"5日",value:7200},{text:"10日",value:14400},{text:"30日",value:43200}],listKeyTokenRefreshRate:[{text:"30分",value:30},{text:"60分",value:60},{text:"90分",value:90},{text:"120分",value:120},{text:"150分",value:150},{text:"180分",value:180}]}}}),Vd=Od,Ud=Object(I["a"])(Vd,Td,Ed,!1,null,null,null),$d=Ud.exports;C()(Ud,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VForm:Nl["a"],VRow:Kr["a"],VSelect:_o["a"],VSubheader:Yr["a"]});var Nd=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-key-token-setting"},[a("v-container",[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-form",{ref:"KeyTokenSettingForm",attrs:{"lazy-validation":""}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("span",{staticClass:"col-3 pl-0 pr-0 mt-1"},[a("v-subheader",{staticClass:"justify-start title-sub",staticStyle:{"padding-left":"12px"}},[e._v("\n スマートフォン自動承認機能\n "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}],null,!1,2569386827)},[e._v(" "),a("span",[e._v("自動承認が無効の場合、スマホアプリのログイン操作後、「承認依頼」という画面に移り"),a("br"),e._v("\n Webの管理画面から「承認(ステータスの有効)」する必要があります。"),a("br"),e._v("\n 「承認」するまで鍵が表示されず、通行ができません。")])])],1)],1):e._e(),e._v(" "),a("v-col",{staticClass:"col-6"},[a("input-form",{staticClass:"v-input--reverse swicth-all",attrs:{inputType:"switch"},model:{value:e.settingInfor.phonesBeValid,callback:function(t){e.$set(e.settingInfor,"phonesBeValid",t)},expression:"settingInfor.phonesBeValid"}})],1)],1)],1),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-col",{staticClass:"messageRow",attrs:{cols:"10",align:"right"}},[""!==e.successMessageLogs&&!1===e.loading?a("span",{staticClass:"mr-5 mb-4 font-weight-bold mt-3 bg-success bg-no messageRow",attrs:{cols:"9",align:"right"}},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("span",{staticClass:"mr-5 mb-4 font-weight-bold mt-3 bg-error bg-no messageRow",attrs:{cols:"9",align:"right"}},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("savePhoneStatus")}}},[e._v("\n 設定を保存\n ")])],1)],1)],1)],1)],1)},Fd=[],jd=f["a"].extend({name:"SmartphoneAutoApproval",components:{InputForm:io},props:{loading:{type:Boolean,default:!1},settingInfor:{type:Object,default:{}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}}}),Bd=jd,zd=Object(I["a"])(Bd,Nd,Fd,!1,null,null,null),Hd=zd.exports;C()(zd,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VForm:Nl["a"],VIcon:Gr["a"],VRow:Kr["a"],VSubheader:Yr["a"],VTooltip:oo["a"]});var Kd=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-log-label-setting"},[a("v-container",[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-data-table",{staticClass:"border-table shadow-table scroll-log-table ",attrs:{"must-sort":"",headers:e.headers,loading:e.loading,items:e.listConfifLog,"items-per-page":-1,"item-key":"accessLogId","no-data-text":"該当するデーターがありません。","loading-text":"データを読み込中です","hide-default-footer":""},scopedSlots:e._u([{key:"item.accessLogId",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(" "+e._s(s.accessLogId)+"\n ")])]}},{key:"item.logLabel",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(" "+e._s(s.logLabel)+"\n ")])]}},{key:"item.actionEdit",fn:function(t){var s=t.item;return[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickEditLogLabel",{accessLogId:s.accessLogId,logLabel:""})}}},[e._v("\n 編集\n ")])]}}],null,!0)}),e._v(" "),a("v-divider"),e._v(" "),e.pages>0?a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.maxRecord,disabled:e.isGetDataList},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.maxRecord/e.perPage),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1):e._e()],1)],1)},Yd=[],qd=f["a"].extend({name:"LogLabelSetting",components:{ShowPerPage:mo,SelectPerPage:To,Pagination:xo},props:{listConfifLog:{default:[]},loading:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},pages:{type:Number,default:1},page:{type:Number,default:1},perPage:{type:Number,default:25},maxRecord:{type:Number,default:0},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}},computed:{headers:{get:function(){var e=[{text:"照合ログID",align:"center",sortable:!0,width:"150px",value:"accessLogId"}];return e.push({text:"ログ名称",align:"start",sortable:!0,value:"logLabel"}),e.push({text:"アクション",align:"center",sortable:!1,width:"200px",value:"actionEdit"}),e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",{page:e,change:"log"})}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}}}),Wd=qd,Jd=(a("e56a"),Object(I["a"])(Wd,Kd,Yd,!1,null,null,null)),Zd=Jd.exports;C()(Jd,{VBtn:pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDivider:Pn["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var Xd=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-log-label-setting-edit"},[a("v-container",[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 照合ログ編集\n ")])],1),e._v(" "),a("v-form",{ref:"LogLabelSettingEditForm",staticClass:"LogLabelSettingEditForm",attrs:{"lazy-validation":""}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("input-form",{attrs:{title:"照合ログID",inputType:"text",disabled:!0},model:{value:e.dataEditLogLabel.accessLogId,callback:function(t){e.$set(e.dataEditLogLabel,"accessLogId",t)},expression:"dataEditLogLabel.accessLogId"}}),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",[a("span",{staticClass:"error_m"},[e._v(e._s(e.logLabelErr))])])],1),e._v(" "),a("input-form",{attrs:{title:"ログ名称",inputType:"text"},on:{input:function(t){return e.inputLogLabel()}},model:{value:e.dataEditLogLabel.logLabel,callback:function(t){e.$set(e.dataEditLogLabel,"logLabel",t)},expression:"dataEditLogLabel.logLabel"}})],1),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-col",{staticClass:"messageRow",attrs:{cols:"10",align:"right"}},[""!==e.successMessageLogs&&!1===e.loading?a("span",{staticClass:"mr-5 mb-4 font-weight-bold mt-3 bg-success bg-no messageRow",attrs:{cols:"9",align:"right"}},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("span",{staticClass:"mr-5 mb-4 font-weight-bold mt-3 bg-error bg-no messageRow",attrs:{cols:"9",align:"right"}},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-btn",{staticClass:"btn-primary background-cancel",attrs:{outlined:""},on:{click:function(t){return e.clickBackLogLabel()}}},[e._v("\n キャンセル\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{disabled:(e.loading||e.dataEditLogLabel.isDefault)&&e.isDisableDefaultTrue,outlined:""},on:{click:function(t){return e.$emit("clickSaveLogLabel",{accessLogId:e.dataEditLogLabel.accessLogId,logLabel:e.dataEditLogLabel.logLabel})}}},[e._v("\n 編集を保存\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary background-delete",attrs:{disabled:e.loading||e.dataEditLogLabel.isDefault,outlined:""},on:{click:function(t){return e.$emit("clickDeleteLogLabel",{accessLogId:e.dataEditLogLabel.accessLogId})}}},[e._v("\n 初期化する\n ")])],1)],1)],1)],1)],1)},Qd=[],eg=f["a"].extend({name:"LogLabelSettingEdit",components:{InputForm:io},data:function(){return{isDisableDefaultTrue:!0}},props:{loading:{type:Boolean,default:!1},dataEditLogLabel:{type:Object,default:{}},successMessageLogs:{type:String,default:""},logLabelErr:{type:String,default:""},errorMessageLogs:{type:String,default:""}},methods:{inputLogLabel:function(){this.isDisableDefaultTrue=!1},clickBackLogLabel:function(){this.isDisableDefaultTrue=!0,this.$emit("clickBackLogLabel")}}}),tg=eg,ag=(a("938d"),Object(I["a"])(tg,Xd,Qd,!1,null,null,null)),sg=ag.exports;C()(ag,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VForm:Nl["a"],VRow:Kr["a"]});var rg=f["a"].extend({components:{PassableTimeSettingList:au,NfcSetting:yu,ExternalLoginSetting:Su,NoticeSettingTypeList:dd,Breadcrumbs:cn,PassableTimeSettingEdit:pu,RegisterLoginUserTemplate:vd,ExternalLoginImport:wd,HolidaySetting:Rd,KeyTokenSetting:$d,SmartphoneAutoApproval:Hd,LogLabelSetting:Zd,LogLabelSettingEdit:sg},props:{dataPassables:{default:function(){return[]}},dataPassableDetail:{default:function(){return[]}},timeAdd:{default:function(){return[]}},totalCount:{type:Number,default:0},isEdit:{type:Number,default:0},isSaveDate:{type:Number,default:0},oneLoginLoginService:{type:Object,default:function(){return{}}},appleIdLoginService:{type:Object,default:function(){return{}}},googleLoginService:{type:Object,default:function(){return{}}},noticeSettingTypes:{type:Array,default:function(){return[]}},noticeSettings:{type:Array,default:function(){return[]}},isLoadingNoticeSetting:{type:Boolean,default:function(){return!1}},isSamlFederatedLoginService:{type:String,default:"false"},isFederatedLoginService:{type:String,default:"false"},allowSubmit:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},saveFinish:{type:Boolean,default:!1},showProgressExportCSV:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},message_success:{type:String,default:""},message_error:{type:String,default:""},errorMessage:{type:String,default:""},isGetDataList:{type:Boolean,default:!1},blockCount:{type:Boolean,default:!1},isLoadingAdd:{type:Boolean,default:!1},isExternalLogin:{type:String,default:""},isDisabled:{type:Boolean,default:!1},userList:{type:Array,default:function(){return[]}},months:{type:Array,default:function(){return[]}},groupListAdd:{type:Array,default:function(){return[]}},groupListEdit:{type:Array,default:function(){return[]}},groupListByPassableTime:{type:Array,default:function(){return[]}},dayTypes:{type:Array,default:function(){return[]}},realtionsUserList:{type:Array,default:function(){return[]}},dayTypesCalendar:{default:function(){return[]}},timeSettings:{default:function(){return[]}},cognitoIdProviderName:{type:String,default:""},successMessageLogsModal:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},successMessageLogs:{type:String,default:""},ExpandedGroup:{default:[]},errorMessageParams:{default:[]},logLabelErr:{type:String,default:""},errorMessageLogs:{type:String,default:""},sucessStatus:{type:Boolean,default:!1},showConfirmDelete:{type:Boolean,default:!1},loadingDate:{type:Boolean,default:!1},message:{type:String,default:""},loading:{type:Boolean,default:!1},maxRecord:{type:Number,default:0},passableTotalCount:{type:Number,default:0},pagePassable:{type:Number,default:1},pageSizeList:{type:Number,default:25},pageLogin:{type:Number,default:1},perPagePassable:{type:Number,default:25},showModalImport:{type:Boolean,default:!1},success:{type:Boolean,default:!1},loadingGroup:{type:Boolean,default:!1},isFinishDate:{type:Boolean,default:!1},progress:{type:Number,default:0},errorMessageExcel:{default:[]},successItem:{type:Number,default:0},totalDataRow:{type:Number,default:0},federatedLoginServiceId:{type:String,default:""},pageGroup:{type:Number,default:0},userFullList:{type:Array,default:function(){return[]}},gateFullList:{type:Array,default:function(){return[]}},pcodeFullList:{type:Array,default:function(){return[]}},configLogFullList:{type:Array,default:function(){return[]}},isLoadBlockingNoticeSettingType:{type:Boolean,default:function(){return!0}},isLoadBlockingNoticeSetting:{type:Boolean,default:function(){return!0}},loadBlockingTextNoticeSetting:{type:String,default:function(){return""}},editStatusException:{type:Boolean,default:!1},editStatus:{type:Boolean,default:!1},settingInfor:{type:Object,default:{}},listNfcSettingSelect:{default:[]},isFelica:{type:Boolean,default:!1},isMifare:{type:Boolean,default:!1},listConfifLog:{default:[]},isEditLogLabel:{type:Boolean,default:!1},dataEditLogLabel:{type:Object,default:{}},pages:{type:Number,default:0},page:{type:Number,default:0},perPage:{type:Number,default:0}},computed:{breadcrumbs:{get:function(){return[{text:"システム設定",disabled:!0}]}},configurableUsers:{get:function(){return this.userFullList.map((function(e){return{text:"".concat(e.name,"(").concat(e.userId,")"),value:e.userId}}))}},configurablePcodes:{get:function(){return this.pcodeFullList.map((function(e){return{text:"".concat(e.name,"(").concat(e.pCodeId,")/").concat(e.userId?e.userId:" [ユーザー紐づけなし]"),value:e.pCodeId}}))}},configurableGates:{get:function(){return this.gateFullList.map((function(e){return{text:"".concat(e.gateName,"(").concat(e.gateId,")"),value:e.gateId}}))}},configurableLogs:{get:function(){return this.configLogFullList.map((function(e){return{text:"".concat(e.logLabel,"(").concat(e.accessLogId,")"),value:e.accessLogId}}))}}},methods:{isGetFederatedLoginService:function(){this.$emit("isGetFederatedLoginService")},goRelation:function(e){this.$emit("goRelation",e)},addRelation:function(e){this.$emit("addRelation",e)},deleteRelation:function(e){this.$emit("deleteRelation",e)},clickTab:function(e){"tab5"===e?this.$emit("initialize-notice-setting"):"tabLogLabelSetting"===e&&this.$emit("initialize-log-label-setting")}},data:function(){return{tabItems:[{title:"通行可能時間設定",tabname:"tab1"},{title:"カレンダー設定",tabname:"tab2"},{title:"外部ログイン設定",tabname:"tab4"},{title:"通知設定",tabname:"tab5"},{title:"ゲートログ名称設定",tabname:"tabLogLabelSetting"},{title:"スマートフォン自動承認設定",tabname:"tabPhoneAutoApproval"},{title:"キートークン有効期間設定",tabname:"tabKeyTokenSetting"},{title:"NFC読み出し位置設定",tabname:"tabNFCSetting"}],tab:"tab1",configurableConnectStatus:[{text:"接続状態になった時",value:"connected"},{text:"未接続状態になった時",value:"disconnected"}]}}}),og=rg,ng=(a("a31e"),a("71a3")),ig=a("c671"),lg=a("fe57"),cg=a("aac8"),ug=Object(I["a"])(og,Gc,Ac,!1,null,"0864d54f",null),dg=ug.exports;function gg(e){return pg.apply(this,arguments)}function pg(){return pg=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,mg(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("個人コード情報の取得に失敗しました。ユーザー情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),pg.apply(this,arguments)}function mg(e,t){return fg.apply(this,arguments)}function fg(){return fg=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns),e.prev=1,e.next=4,t.$axios.get(j+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.pCodes);case 9:return e.next=11,mg(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.pCodes.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),fg.apply(this,arguments)}function hg(e,t,a){return vg.apply(this,arguments)}function vg(){return vg=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.put(Ot+"/".concat(encodeURIComponent(a)),s);case 3:return r=e.sent,e.abrupt("return",r.data);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("個人コード情報の変更に失敗しました。個人コード情報を変更する権限がありません。");case 13:throw new Error("個人コード情報の変更に失敗しました。個人コード情報は既に削除されています。");case 14:throw new Error(Pa);case 15:throw new Error(Sa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),vg.apply(this,arguments)}function bg(e,t){return yg.apply(this,arguments)}function yg(){return yg=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.post(Ot,a);case 3:return s=e.sent,e.abrupt("return",s.data);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=400===e.t1?12:403===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("個人コード情報の追加に失敗しました。");case 13:throw new Error("個人コード情報の追加に失敗しました。個人コード情報を追加する権限がありません。");case 14:throw new Error(Pa);case 15:throw new Error(ka);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),yg.apply(this,arguments)}function Ig(e){return xg.apply(this,arguments)}function xg(){return xg=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Cg(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("個人コード情報の取得に失敗しました。ユーザ情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),xg.apply(this,arguments)}function Cg(e,t){return wg.apply(this,arguments)}function wg(){return wg=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?embed=user&limit=1000&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns),e.prev=1,e.next=4,t.$axios.get(j+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.pCodes);case 9:return e.next=11,Cg(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.pCodes.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),wg.apply(this,arguments)}function kg(e){return Sg.apply(this,arguments)}function Sg(){return Sg=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_g(t,1);case 3:return a=e.sent,e.abrupt("return",a);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("ゲート情報の取得に失敗しました。ユーザー情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),Sg.apply(this,arguments)}function _g(e,t){return Pg.apply(this,arguments)}function Pg(){return Pg=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?limit=1000&page=".concat(a,"&sortKey=").concat(Fs,":").concat(Ns),e.prev=1,e.next=4,t.$axios.get(te+s);case 4:if(r=e.sent,r.data.endRecord!==r.data.maxRecords){e.next=9;break}return e.abrupt("return",r.data.gates);case 9:return e.next=11,_g(t,a+1);case 11:return o=e.sent,e.abrupt("return",r.data.gates.concat(o));case 13:e.next=18;break;case 15:throw e.prev=15,e.t0=e["catch"](1),e.t0;case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),Pg.apply(this,arguments)}function Mg(e){return Lg.apply(this,arguments)}function Lg(){return Lg=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.get(F);case 3:return a=e.sent,e.abrupt("return",a.data.logConfigs);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("ログラベル一覧情報の取得に失敗しました。ログラベル情報を取得する権限がありません。");case 13:return e.abrupt("return",[]);case 14:throw new Error(Pa);case 15:throw new Error(wa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),Lg.apply(this,arguments)}C()(ug,{VCard:Pr["a"],VContainer:Zo["a"],VTab:ng["a"],VTabItem:ig["a"],VTabs:lg["a"],VTabsItems:cg["a"]});new Date;var Dg=(new Date).getFullYear().toString(),Gg=nr["a"].extend({components:{SettingTemplate:dg},data:function(){return{passableTotalCount:0,dataPassables:[],pagePassable:0,dataPassableDetail:[],isEdit:0,perPagePassable:Wt,currPagePassable:1,scorpPassable:["passableTimeSettingId"],keywordPassable:"",groupListAdd:[],groupListEdit:[],arrayController:[],dayTypes:[],groupListByPassableTime:[],arrayTime:[],ownerId:"",blockCount:!1,ownerInfor:[],timeSettings:[],message_success:"",countReset:0,countDateType:0,totalDateType:0,googleLoginService:{relationId:"",federatedLoginServiceId:"",oldMetadataUrl:"",metadataUrl:"",isValid:!1,name:"Google",oldIsValid:!1,isSaml:!1,isResponse:!1},oneLoginLoginService:{relationId:"",federatedLoginServiceId:"",metadataUrl:"",oldMetadataUrl:"",isValid:!1,name:"SAML",oldIsValid:!1,isSaml:!1,isResponse:!1},appleIdLoginService:{relationId:"",federatedLoginServiceId:"",oldMetadataUrl:"",metadataUrl:"",isValid:!1,name:"Apple",oldIsValid:!1,isSaml:!1,isResponse:!1},SettingInfo:[],saveInfor:[],loading:!1,logLabelErr:"",errorMessageLogs:"",federatedLoginServices:[],OwnerFederatedLoginService:[],isSaveGoogle:!0,isSaveOnelogin:!0,isSaveAppleId:!0,savingProgress:0,successMessageLogs:"",isSamlFederatedLoginService:"false",isExternalLogin:"",cognitoIdProviderName:"",federatedLoginServiceId:"",isFederatedLoginService:"false",pages:0,currPage:1,sucessStatus:!1,imshowProgressExport:!1,showProgressImport:!1,isDisabled:!0,userList:[],realtionsUserList:[],pageSizeList:25,relationOwnerFederatedLoginServiceId:"",maxRecord:0,perPage:Wt,keyword:"",exportData:[],dataLoad:0,progress:0,importData:[],totalDataRow:0,percent:0,exeCount:0,errorName:"",successItem:0,errorMessageExcel:[],showModalImport:!1,success:!1,showConfirmDelete:!1,isGetDataList:!1,passableTimeSettingId:"",errorMessage:"",errorMessageParams:{email:"",userId:""},errorMessageLogsModal:"",successMessageLogsModal:"",isFinishProcess:!1,showProgressExportCSV:!1,ExpandedGroup:[],dayTypesCalendar:[],pageGroup:1,maxGroup:0,loadingGroup:!0,isCountGroup:0,selectYear:Dg,months:[],timeAdd:[],timeOrig:[],isLoadingAdd:!1,countDate:0,calendarsLength:0,isSaveDate:0,isFinishDate:!1,saveFinish:!1,loadingDate:!1,listDates:[],timeDefault:"",checkLoadPassDetail:0,noticeSettingTypes:[],noticeSettings:[],userFullList:[],pcodeFullList:[],gateFullList:[],configLogFullList:[],isOneLoad:!1,isLoadingNoticeSetting:!1,isLoadBlockingNoticeSetting:!1,isLoadBlockingNoticeSettingType:!1,loadBlockingTextNoticeSetting:"",settingInfor:{type:0,isOwnerCodeValid:!0,pCodeConfigType:0,ownerCodePosition1:0,ownerCodePosition2:0,ownerCodePosition3:0,ownerCodeLength1:0,ownerCodeLength2:0,ownerCodeLength3:0,readPosition1:0,readPosition2:0,readPosition3:0,readLength1:0,readLength2:0,readLength3:0,systemCode:"",serviceCode:"",blockCount:0,keyType:0,keyValue:"",sectorNumber:0,ownerCode:"",phonesBeValid:!1,keyTokenRefreshable:!1,keyTokenLifetime:60,keyTokenRefreshRate:30},nfcSettingSelect:{},listNfcSettingSelect:[],fistTime:!0,editStatus:!0,isFelica:!0,isMifare:!0,editStatusException:!0,listConfifLog:[],isEditLogLabel:!1,dataEditLogLabel:{},countEditPassableAPI:0,countReloadEditPassableAPI:0}},created:function(){var e=this,t=this.$route.query.p;""!==t&&void 0!==t&&null!==t?localStorage.setItem("isExternalLogin",t):localStorage.setItem("isExternalLogin","setting"),"undefined"===typeof localStorage.passableSortKey&&localStorage.setItem("passableSortKey","registered"),"undefined"===typeof localStorage.passableSortName&&localStorage.setItem("passableSortName","desc"),"undefined"===typeof localStorage.pageSizePassable?(localStorage.setItem("pageSizePassable",Wt.toString()),this.perPagePassable=Wt):this.perPagePassable=parseInt(localStorage.pageSizePassable),this.isGetDataList=!0,this.getListPassableTimeSettings().then((function(){return e.getGroupCount()})),this.$emit("activeMenu","setting")},watch:{countEditPassableAPI:function(e){4===e&&(this.loading=!1)},countReloadEditPassableAPI:function(e){3===e&&(this.loading=!1)},checkLoadPassDetail:function(e){1===e&&this.getDayTypesDetail(1)},countDate:function(e){e>0&&e>=this.calendarsLength&&(this.isFinishDate=!0,this.isSaveDate++,this.loading=!1)},countDateType:function(e){console.log(e),console.log(this.totalDateType),e>0&&e>=this.totalDateType&&(this.loadingDate=!1)},savingProgress:function(e){e>=3&&(this.loading=!1)},loading:function(e){this.$emit("loading",e)},exeCount:function(e,t){var a=this;e>0&&e0&&e===a.totalDataRow&&(this.exeCount=0,this.success=!0,this.importData=[])},isCountGroup:function(e){e>0&&e>=this.dataPassables.length&&(this.isGetDataList=!1)}},mounted:function(){var e=this;this.resetMessage();var t=this;t.isExternalLogin=localStorage.isExternalLogin,t.cognitoIdProviderName=localStorage.cognitoIdProviderName,console.log(t.cognitoIdProviderName),t.federatedLoginServiceId=localStorage.federatedLoginServiceId,"setting"===t.isExternalLogin?this.getPlan().then((function(){t.isFederatedLoginService=localStorage.isFederatedLoginService,t.isSamlFederatedLoginService=localStorage.isSamlFederatedLoginService,e.loading=!1})):"registration"===t.isExternalLogin?(this.loading=!0,this.getUsers(1),this.getPlan().then((function(){return e.getOwnerFederatedLoginService()})).then((function(){return e.getFederatedLoginRelation()})).then((function(){t.isFederatedLoginService=localStorage.isFederatedLoginService,t.isSamlFederatedLoginService=localStorage.isSamlFederatedLoginService,e.loading=!1}))):this.getPlan().then((function(){return e.getOwnerFederatedLoginService()})).then((function(){t.isFederatedLoginService=localStorage.isFederatedLoginService,t.isSamlFederatedLoginService=localStorage.isSamlFederatedLoginService;var a=t.getFederatedLoginServiceRelationId(t.federatedLoginServiceId);t.relationOwnerFederatedLoginServiceId=a,e.loading=!1})),"undefined"===typeof localStorage.pageSizeLogConfig?(localStorage.setItem("pageSizeLogConfig","100"),this.perPage=100):this.perPage=parseInt(localStorage.pageSizeLogConfig),"undefined"===typeof localStorage.configLogSortKey&&localStorage.setItem("configLogSortKey","accessLogId"),"undefined"===typeof localStorage.configLogSortName&&localStorage.setItem("configLogSortName","desc"),"undefined"===typeof localStorage.activeTab&&localStorage.setItem("activeTab","setting1"),this.getTypeInfo(),this.getOwnerInfor()},methods:{getMonths:function(){for(var e=[],t=new Date,a=0;a<12;a++){var s=jo()(t,"YYYY-MM").add(a,"months").format("YYYY-MM"),r=s.split("-"),o={month:r[1],year:r[0],value:r[0]+"-"+r[1].toString().padStart(2,"0")};e.push(o)}this.months=[{month:e[0].month,compare:e[0].value,value:[e[0].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[1].month,compare:e[1].value,value:[e[1].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[2].month,compare:e[2].value,value:[e[2].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[3].month,compare:e[3].value,value:[e[3].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[4].month,compare:e[4].value,value:[e[4].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[5].month,compare:e[5].value,value:[e[5].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[6].month,compare:e[6].value,value:[e[6].value,e[6].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[7].month,compare:e[7].value,value:[e[7].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[8].month,compare:e[8].value,value:[e[8].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[9].month,compare:e[9].value,value:[e[9].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[10].month,compare:e[10].value,value:[e[10].value],calendarId:"",controllerId:"",dayTypeId:[]},{month:e[11].month,compare:e[11].value,value:[e[11].value],calendarId:"",controllerId:"",dayTypeId:[]}]},formatTimestamp:function(e){return""!==e?jo()(e).unix():""},reset:function(){this.errorMessageLogs="",this.successMessageLogs="",this.errorMessageExcel=[],this.exportData=[],this.dataLoad=0,this.loading=!1,this.exeCount=0,this.success=!0,this.importData=[]},getDayTypeCalendar:function(){var e=this;return new Promise((function(t,a){var s=["月曜","火曜","水曜","木曜","金曜","土曜","日曜"];e.$http.get(ae+"?limit=1000&page=1&sortKey=asc:dayTypeId").then((function(a){a.body.maxRecords>0?a.body.dayTypes.forEach((function(t){s.includes(t.name)||e.dayTypesCalendar.push({text:t.name,value:t.dayTypeId})})):e.dayTypes=null,t(!0)})).then(null,(function(e){console.log("err: ",e),t(!1)}))}))},initializeNoticeSetting:function(){var e=this;!1===this.isOneLoad&&(this.isOneLoad=!0,this.isLoadingNoticeSetting=!0,this.isLoadBlockingNoticeSettingType=!0,this.isLoadBlockingNoticeSetting=!0,this.loadBlockingTextNoticeSetting="通知設定の各種データ取得中",Promise.all([this.resetMsg(),xl(this).then((function(t){return e.noticeSettingTypes=t})).then((function(){return e.isLoadBlockingNoticeSettingType=!1})),dl(this).then((function(t){return e.noticeSettings=t})),yi(this).then((function(t){return e.userFullList=t})),gg(this).then((function(t){return e.pcodeFullList=t})),kg(this).then((function(t){return e.gateFullList=t})),Mg(this).then((function(t){return e.configLogFullList=t}))]).then((function(){e.loadBlockingTextNoticeSetting="",e.isLoadingNoticeSetting=!1,e.isLoadBlockingNoticeSetting=!1,e.isOneLoad=!0})).catch((function(t){e.loadBlockingTextNoticeSetting="",e.isLoadingNoticeSetting=!1,e.isLoadBlockingNoticeSetting=!1,e.isOneLoad=!1,e.errorMessageLogsModal=t.message})))},reloadNoticeSettingList:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoadingNoticeSetting=!0,t.abrupt("return",Promise.all([dl(e).then((function(t){return e.noticeSettings=t}))]).then((function(){e.isLoadingNoticeSetting=!1})).catch((function(t){e.isLoadingNoticeSetting=!1,e.errorMessageLogsModal=t.message})));case 2:case"end":return t.stop()}}),t)})))()},addNewPostNoticeSetting:function(e){var t=this;this.isLoadBlockingNoticeSetting=!0,this.loadBlockingTextNoticeSetting="通知設定の新規登録中",this.isLoadingNoticeSetting=!0,this.resetMsg(),yl(this,e).then((function(a){"Success"===a.message&&(t.successMessageLogsModal="".concat(e.name," ").concat(za)),t.loadBlockingTextNoticeSetting="",t.isLoadBlockingNoticeSetting=!1})).then((function(){return t.reloadNoticeSettingList()})).catch((function(e){t.errorMessageLogsModal=e.message,t.isLoadingNoticeSetting=!1,t.isLoadBlockingNoticeSetting=!1,console.error(e)}))},editPutNoticeSetting:function(e){var t=this;this.isLoadBlockingNoticeSetting=!0,this.isLoadingNoticeSetting=!0,this.loadBlockingTextNoticeSetting="通知設定の変更中",this.resetMsg(),vl(this,e.noticeSettingId,e).then((function(a){"Success"===a.message&&(t.successMessageLogsModal="".concat(e.name," ").concat(Ha)),t.loadBlockingTextNoticeSetting="",t.isLoadBlockingNoticeSetting=!1})).then((function(){return t.reloadNoticeSettingList()})).catch((function(e){t.errorMessageLogsModal=e.message,t.isLoadingNoticeSetting=!1,t.isLoadBlockingNoticeSetting=!1,console.error(e)}))},clickDeleteNoticeSetting:function(e){var t=this;this.isLoadBlockingNoticeSetting=!0,this.isLoadingNoticeSetting=!0,this.loadBlockingTextNoticeSetting="通知設定の削除中",this.resetMsg(),fl(this,e).then((function(e){"Success"===e.message&&(t.successMessageLogsModal="".concat(Ba)),t.loadBlockingTextNoticeSetting="",t.isLoadBlockingNoticeSetting=!1})).then((function(){return t.reloadNoticeSettingList()})).catch((function(e){t.errorMessageLogsModal=e.message,t.isLoadingNoticeSetting=!1,t.isLoadBlockingNoticeSetting=!1}))},getDayTypeDetail:function(e,t,a){var s=this;this.$http.get(ae+"?dayTypeId="+encodeURIComponent(e)).then((function(e){if(e.body.maxRecords>0){var r=t.date.split("-");r[0],r[1];a.value.push(t.date),a.calendarId=t.calendarId,a.controllerId=t.controllerId,a.dayTypeId.push({date:t.date,dayTypeId:t.dayTypeId,dayTypeName:e.body.dayTypes[0].name}),s.timeOrig.push({inputDate:t.date,calendarId:t.calendarId,controllerId:t.controllerId,dayTypeId:t.dayTypeId})}s.countDate++})).then(null,(function(e){console.log("err: ",e),s.countDate++}))},getCalendar:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=new Date,r=jo()(s,"YYYY-MM").add(0,"months").format("YYYY-MM"),o=jo()(s,"YYYY-MM").add(11,"months").format("YYYY-MM"),n=r.split("-"),i=o.split("-"),l=n[0]+"-"+n[1]+"-01",c=i[0]+"-"+i[1]+"-"+new Date(parseInt(i[0]),parseInt(i[1]),0).getDate(),a.next=9,t.$http.get(E+"?limit=1000&page="+e+"¬Before="+l+"¬After="+c).then(function(){var a=Object(or["a"])(regeneratorRuntime.mark((function a(s){var r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.calendarsLength=s.body.maxRecords,s.body.maxRecords>0?(r=s.body.calendars,r.forEach((function(e,a){if(void 0!==t.listDates[e.date]){var s=t.listDates.filter((function(t){return t.controllerId===e.controllerId&&t.calendarId===e.calendarId}));0===s.length&&t.listDates[e.date].push({controllerId:e.controllerId,calendarId:e.calendarId})}else t.$set(t.listDates,e.date,[]),t.listDates[e.date].push({controllerId:e.controllerId,calendarId:e.calendarId});var r=e.date.split("-"),o=r[0]+"-"+r[1],n=t.months.map((function(e){return e.compare})).indexOf(o);if(n>=0&&!t.months[n].value.includes(e.date)){var i=t.dayTypesCalendar.map((function(e){return e.value})).indexOf(e.dayTypeId),l=t.months[n];i>=0&&(l.value.push(e.date),l.calendarId=e.calendarId,l.controllerId=e.controllerId,l.dayTypeId.push({date:e.date,dayTypeId:e.dayTypeId,dayTypeName:t.dayTypesCalendar[i].text,dayTypeIdDefault:e.dayTypeId,dayTypeNameDefault:t.dayTypesCalendar[i].text}),t.timeOrig.push({inputDate:e.date,calendarId:e.calendarId,controllerId:e.controllerId,dayTypeId:e.dayTypeId}))}t.countDate++})),s.body.maxRecords>s.body.endRecord&&t.getCalendar(e+1)):t.countDate++;case 2:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}return t.isFinishDate=!0,t.loading=!1,t.countDate++,!1}));case 9:case"end":return a.stop()}}),a)})))()},isGetCalendar:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isFinishDate=!1,e.loading=!0,e.dayTypesCalendar=[{text:"設定なし",value:"Del"}],e.timeOrig=[],e.timeAdd=[],e.countDate=0,e.calendarsLength=0,e.getMonths(),t.next=10,e.getDayTypeCalendar();case 10:e.listDates=[],e.getCalendar(1);case 12:case"end":return t.stop()}}),t)})))()},closeDate:function(){this.isFinishProcess=!0,this.saveFinish=!1,this.errorMessageLogsModal="",this.successMessageLogsModal=""},closeDateFinish:function(){this.errorMessageLogsModal="",this.successMessageLogsModal="",this.arrayController=[],this.saveFinish=!1},setDateOne:function(e){var t=this;Array.prototype.map.call(Object(this.months),(function(a){if(a.compare===e.date.compare){var s=a.dayTypeId.map((function(e){return e.date})).indexOf(e.inputDate),r=a.value.indexOf(e.inputDate);if(r>=0)if("choose"===a.dayTypeId[s].dayTypeId){void 0===a.dayTypeId[s].dayTypeIdDefault?(a.dayTypeId.splice(parseInt(s),1),r>=0&&a.value.splice(parseInt(r),1)):(a.dayTypeId[s].dayTypeId=a.dayTypeId[s].dayTypeIdDefault,a.dayTypeId[s].dayTypeName=a.dayTypeId[s].dayTypeNameDefault,a.dayTypeId[s].action="");var o=t.timeAdd.map((function(e){return e.inputDate})).indexOf(e.inputDate);o>=0&&t.timeAdd.splice(parseInt(o),1)}else a.dayTypeId[s].dayTypeId="choose",a.dayTypeId[s].dayTypeName="choose",a.dayTypeId[s].action="change";else a.value.push(e.inputDate),a.dayTypeId.push({date:e.inputDate,dayTypeId:"choose",dayTypeName:"choose",action:"change"})}}));this.isSaveDate++},setTypeDate:function(e){var t=this,a=e.typeDate;console.log(e);Array.prototype.map.call(Object(this.months),(function(e){e.dayTypeId.forEach((function(s,r){if("choose"===s.dayTypeId){s.dayTypeId=a.value,s.dayTypeName=a.text;var o=t.timeAdd.map((function(e){return e.inputDate})).indexOf(s.date),n=e.dayTypeId.map((function(e){return e.date})).indexOf(s.date);console.log(n),o>=0?t.timeAdd[o].dayTypeId=a.value:("Del"!==s.dayTypeId||void 0!==e.dayTypeId[n].dayTypeIdDefault&&void 0!==e.dayTypeId[n].dayTypeNameDefault)&&t.timeAdd.push({inputDate:s.date,calendarId:e.calendarId,controllerId:e.controllerId,dayTypeId:s.dayTypeId})}}))}));this.isSaveDate++},saveDate:function(e){var t=this;this.isLoadingAdd=!0;var a=e.itemDate;Array.prototype.map.call(Object(this.months),(function(e){if(e.compare===a.date.compare){var s=t.timeAdd.map((function(e){return e.inputDate})).indexOf(a.inputDate),r=t.timeOrig.map((function(e){return e.inputDate})).indexOf(a.inputDate),o=e.value.indexOf(a.inputDate);"Del"===a.dayTypeId&&r<0||("Del"===a.dayTypeId&&r>=0?(t.timeAdd.push({inputDate:a.inputDate,calendarId:a.date.calendarId,controllerId:a.date.controllerId,dayTypeId:a.dayTypeId}),o>=0&&e.value.splice(o,1)):s>=0?(t.timeAdd[s].dayTypeId=a.dayTypeId,o<0&&e.value.push(a.inputDate)):(t.timeAdd.push({inputDate:a.inputDate,calendarId:a.date.calendarId,controllerId:a.date.controllerId,dayTypeId:a.dayTypeId}),e.value.push(a.inputDate),e.dayTypeId.push({date:a.inputDate,dayTypeId:"New"})))}}));this.isLoadingAdd=!1},saveAllDate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function e(){var a,s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w,k,S,_,P,M,L,D,G,A,R,T,E;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.loading=!0,t.isFinishProcess=!1,t.saveFinish=!1,t.errorMessageLogsModal="",t.successMessageLogsModal="",a=t.timeAdd,s=t.timeOrig,r=a.filter((function(e){return!s.some((function(t){return e.inputDate===t.inputDate}))})),o=a.filter((function(e){return s.some((function(t){return e.inputDate===t.inputDate&&e.dayTypeId.toString()!==t.dayTypeId.toString()&&"Del"===e.dayTypeId}))})),n=a.filter((function(e){return s.some((function(t){return e.inputDate===t.inputDate&&"Del"!==e.dayTypeId}))})),i=o.concat(n),l=!0,!(i.length>0)){e.next=42;break}c=[],u=[],d=[],g=Object(rr["a"])(i);try{for(g.s();!(p=g.n()).done;)m=p.value,c=c.concat(t.listDates[m.inputDate])}catch(O){g.e(O)}finally{g.f()}f=c.filter((function(e,t,a){return a.findIndex((function(t){return t.calendarId===e.calendarId&&t.controllerId===e.controllerId}))===t})),h=Object(rr["a"])(f);try{for(h.s();!(v=h.n()).done;)b=v.value,d.includes(b.controllerId)||d.push(b.controllerId),void 0!==u[b.controllerId]?u[b.controllerId].includes(b.calendarId)||u[b.controllerId].push(b.calendarId):(t.$set(u,b.controllerId,[]),u[b.controllerId].push(b.calendarId))}catch(O){h.e(O)}finally{h.f()}y=Object(rr["a"])(d),e.prev=22,y.s();case 24:if((I=y.n()).done){e.next=34;break}return x=I.value,C=u[x],e.next=29,t.deleteDate(x,C);case 29:if(l=e.sent,!1!==l){e.next=32;break}return e.abrupt("break",34);case 32:e.next=24;break;case 34:e.next=39;break;case 36:e.prev=36,e.t0=e["catch"](22),y.e(e.t0);case 39:return e.prev=39,y.f(),e.finish(39);case 42:if(!(n.length>0&&!0===l)){e.next=68;break}w=[],k=[],S=Object(rr["a"])(n);try{for(P=function(){var e=_.value;if(w.includes(e.controllerId)||w.push(e.controllerId),void 0!==k[e.controllerId]){var a=k[e.controllerId].filter((function(t){return t.date===e.date}));0===a.length&&k[e.controllerId].push({date:e.inputDate,dayTypeId:e.dayTypeId})}else t.$set(k,e.controllerId,[]),k[e.controllerId].push({date:e.inputDate,dayTypeId:e.dayTypeId})},S.s();!(_=S.n()).done;)P()}catch(O){S.e(O)}finally{S.f()}M=Object(rr["a"])(w),e.prev=48,M.s();case 50:if((L=M.n()).done){e.next=60;break}return D=L.value,G={controllerId:D,calendars:k[D]},e.next=55,t.addDate(G);case 55:if(l=e.sent,!1!==l){e.next=58;break}return e.abrupt("break",60);case 58:e.next=50;break;case 60:e.next=65;break;case 62:e.prev=62,e.t1=e["catch"](48),M.e(e.t1);case 65:return e.prev=65,M.f(),e.finish(65);case 68:if(A=[],!(r.length>0&&!0===l)){e.next=76;break}R=Object(rr["a"])(r);try{for(R.s();!(T=R.n()).done;)E=T.value,"Del"!==E.dayTypeId&&A.push({date:E.inputDate,dayTypeId:E.dayTypeId})}catch(O){R.e(O)}finally{R.f()}if(!(A.length>0)){e.next=76;break}return e.next=75,t.addDateWithController(A);case 75:l=e.sent;case 76:return 0===A.length&&0===o.length&&0===n.length&&(t.errorMessageLogsModal=ra),e.next=79,t.isGetCalendar();case 79:t.saveFinish=!0;case 80:case"end":return e.stop()}}),e,null,[[22,36,39,42],[48,62,65,68]])})))()},deleteDate:function(e,t){var a=this;return new Promise((function(s,r){a.$http.delete(E,{body:{controllerId:e,calendarIds:t}}).then((function(e){"Success"===e.body.message?(a.successMessageLogsModal=Za,s(!0)):(a.errorMessageLogsModal=ba,s(!1))})).then(null,(function(e){switch(e.status){case 400:a.errorMessageLogsModal=Qt;break;case 403:"Unauthorized"===e.message?a.errorMessageLogsModal=ta:a.errorMessageLogsModal=ia;break;case 404:a.errorMessageLogsModal=ra;break;case 500:a.errorMessageLogsModal=fa;break;case 503:a.errorMessageLogsModal=ha;break;default:a.errorMessageLogsModal=ba;break}s(!1)}))}))},updateDate:function(e,t){var a=this;return new Promise((function(s,r){a.$http.put(E+"/"+encodeURIComponent(t),e).then((function(e){"Success"===e.body.message?(a.successMessageLogsModal=Za,s(!0)):(a.errorMessageLogsModal=ba,s(!1))})).then(null,(function(e){switch(e.status){case 400:a.errorMessageLogsModal=Qt;break;case 403:"Unauthorized"===e.message?a.errorMessageLogsModal=ta:a.errorMessageLogsModal=ia;break;case 404:a.errorMessageLogsModal=ra;break;case 500:a.errorMessageLogsModal=fa;break;case 503:a.errorMessageLogsModal=ha;break;default:a.errorMessageLogsModal=ba;break}s(!1)}))}))},addDate:function(e){var t=this;return new Promise((function(a,s){t.errorMessageLogsModal="",t.successMessageLogsModal="",t.$http.post(E,e).then((function(e){"Success"===e.body.message?(t.successMessageLogsModal=Za,a(!0)):(t.errorMessageLogsModal=ba,a(!1))})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogsModal=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogsModal=ta:t.errorMessageLogsModal=ia;break;case 404:t.errorMessageLogsModal=ra;break;case 409:t.errorMessageLogsModal=ma;break;case 500:t.errorMessageLogsModal=fa;break;case 503:t.errorMessageLogsModal=ha;break;default:t.errorMessageLogsModal=ba;break}a(!1)}))}))},searchLogin:function(e){var t=this;this.loading=!0,null!==e.text?this.keyword=e.text:this.keyword="",this.getFederatedLoginRelation().then((function(){t.loading=!1}))},selectUserLogin:function(e){var t=this;this.loading=!0,this.keyword=null!==e?e:"",this.getFederatedLoginRelation().then((function(){t.loading=!1}))},addDateAll:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var r,o,n,i,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:o=Object(rr["a"])(e),a.prev=1,o.s();case 3:if((n=o.n()).done){a.next=13;break}return i=n.value,l={controllerId:i.controllerId,calendars:t},a.next=8,s.addDate(l);case 8:if(r=a.sent,!1!==r){a.next=11;break}return a.abrupt("break",13);case 11:a.next=3;break;case 13:a.next=18;break;case 15:a.prev=15,a.t0=a["catch"](1),o.e(a.t0);case 18:return a.prev=18,o.f(),a.finish(18);case 21:return a.abrupt("return",r);case 22:case"end":return a.stop()}}),a,null,[[1,15,18,21]])})))()},addDateWithController:function(e){var t=this;return new Promise((function(a,s){t.arrayController=[];var r=t.getController(1,e);a(r)}))},getController:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return a.successMessageLogsModal="",a.errorMessageLogsModal="",s.next=4,a.$http.get(oe+"?limit=1000&page="+e+"&embed=controller").then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o,n,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(r.body.maxRecords>0)){s.next=14;break}return n=r.body.relationsControllerGate,i=[],n.forEach((function(e,t){a.arrayController.includes(e.controllerId)||(a.arrayController.push(e.controllerId),i.push(e))})),s.next=6,a.addDateAll(i,t,e);case 6:if(o=s.sent,!(r.body.maxRecords>r.body.endRecord&&!0===o)){s.next=11;break}a.getController(e+1,t),s.next=12;break;case 11:return s.abrupt("return",o);case 12:s.next=16;break;case 14:return a.successMessageLogsModal=ba,s.abrupt("return",!1);case 16:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(e){switch(e.status){case 400:a.errorMessageLogsModal=Qt;break;case 403:"Unauthorized"===e.message?a.errorMessageLogsModal=ta:a.errorMessageLogsModal=ia;break;case 404:a.errorMessageLogsModal=aa;break;case 500:a.errorMessageLogsModal=fa;break;case 503:a.errorMessageLogsModal=ha;break;default:a.errorMessageLogsModal=ba;break}return!1}));case 4:return r=s.sent,s.abrupt("return",r);case 6:case"end":return s.stop()}}),s)})))()},changePerPagePassable:function(e){var t=this;this.perPagePassable=e,this.isCountGroup=0,localStorage.setItem("pageSizePassable",e),this.isGetDataList=!0,this.getListPassableTimeSettings().then((function(){return t.getGroupCount()}))},changePagePassable:function(e){var t=this;this.currPagePassable=e,this.isGetDataList=!0,this.isCountGroup=0,this.getListPassableTimeSettings().then((function(){return t.getGroupCount()}))},clickAddPassable:function(e){this.groupListAdd=[],this.dayTypes=[];var t=0;this.resetMessage(),this.isEdit=3,this.groupListByPassableTime=[],this.getGroups(1,t),this.getDayTypes(1),console.log(this.dayTypes)},clickEditPassable:function(e){var t=this;this.countEditPassableAPI=0,this.groupListAdd=[],this.groupListByPassableTime=[],this.dayTypes=[];var a=1;this.resetMessage(),this.loading=!0,this.isEdit=2,this.loadingDate=!0,this.countDateType=0,this.timeSettings=[],void 0!==e&&this.getDetailPassableTimeSetting(e).then((function(){t.getGroups(1,a),t.getGroupByPassableTime(1,e),t.getDayTypes(1),t.dataPassableDetail.length>0&&void 0!==t.dataPassableDetail[0].timeSettings&&null!==t.dataPassableDetail[0].timeSettings&&""!==t.dataPassableDetail[0].timeSettings&&t.dataPassableDetail[0].timeSettings.forEach((function(e){t.timeSettings.push({dayTypeId:e.dayTypeId,dayTypeName:e.dayTypeName,doSet:null,endTime:e.endTime,hourEnd:"00",hourStart:"00",minuteEnd:"00",minuteStart:"00",name:e.dayTypeName,notSet:null,startTime:e.startTime,text:e.dayTypeName,value:e.dayTypeId,allDay:e.allDay,startTime2:e.startTime2,endTime2:e.endTime2,startTime3:e.startTime3,endTime3:e.endTime3})}))}))},clickDetailPassable:function(e){var t=this;this.resetMessage(),this.loading=!0,this.isEdit=1,this.groupListByPassableTime=[],this.dayTypes=[],this.checkLoadPassDetail=0,void 0!==e&&this.getDetailPassableTimeSetting(e).then((function(){t.getGroupByPassableTimeDetail(1,e)}))},clickConfirmDeletePassable:function(e){this.showConfirmDelete=!0,this.passableTimeSettingId=e},resetMsg:function(){this.successMessageLogs="",this.errorMessageLogs="",this.errorMessageLogsModal="",this.successMessageLogsModal=""},clickCloseConfirmDeletePassable:function(){this.showConfirmDelete=!1,this.passableTimeSettingId="",this.errorMessageLogsModal="",this.successMessageLogsModal=""},clickDeletePassable:function(){this.resetMessage(),this.loading=!0,this.delPassable(this.passableTimeSettingId)},clickBackPassable:function(){var e=this;this.resetMessage(),this.resetData(),this.isGetDataList=!0,this.isCountGroup=0,this.getListPassableTimeSettings().then((function(){return e.getGroupCount()})),this.isEdit=0},clickSavePassable:function(e){var t=this;console.log(e),this.loading=!0,this.countReloadEditPassableAPI=0;var a=e.dataPassableDetail[0].passableTimeSettingId,s=e.timeZones,r=e.arrayAddSpecialTime;this.arrayTime={name:e.passableName,timeSettings:[]};var o,n=Object(rr["a"])(s);try{for(n.s();!(o=n.n()).done;){var i=o.value;!0!==i.notSet&&!0!==i.doSet?this.arrayTime.timeSettings.push(Object(Dc["a"])(Object(Dc["a"])({dayTypeId:i.dayTypeId,allDay:0,startTime:i.child[0].startTime,endTime:i.child[0].endTime},i.child[1]?{startTime2:i.child[1].startTime,endTime2:i.child[1].endTime}:{}),i.child[2]?{startTime3:i.child[2].startTime,endTime3:i.child[2].endTime}:{})):!0===i.notSet?this.arrayTime.timeSettings.push({dayTypeId:i.dayTypeId,allDay:2,startTime:"00:00",endTime:"00:00"}):!0===i.doSet&&this.arrayTime.timeSettings.push({dayTypeId:i.dayTypeId,allDay:1,startTime:"00:00",endTime:"00:00"})}}catch(g){n.e(g)}finally{n.f()}if(r.length>0){var l,c=this.mergeSpecialTimes(r),u=Object(rr["a"])(c);try{for(u.s();!(l=u.n()).done;){var d=l.value;d.endTime=0===d.allDay?d.endTime:"00:00",d.startTime=0===d.allDay?d.startTime:"00:00",this.arrayTime.timeSettings.push(Object(Dc["a"])(Object(Dc["a"])({dayTypeId:d.dayTypeId,allDay:d.allDay,startTime:d.startTime,endTime:d.endTime},0===d.allDay&&d.startTime2&&d.endTime2?{startTime2:d.startTime2,endTime2:d.endTime2}:{}),0===d.allDay&&d.startTime3&&d.endTime3?{startTime3:d.startTime3,endTime3:d.endTime3}:{}))}}catch(g){u.e(g)}finally{u.f()}}console.log(this.arrayTime),void 0!==a&&this.updatePassable(a,this.arrayTime).then((function(){return t.removePassableGroup(e)})).then((function(){return t.updatePassableGroup(e,a)})).then((function(){var e=a;t.groupListByPassableTime=[],t.dayTypes=[],void 0!==e&&t.getDetailPassableTimeSetting(e).then((function(){t.getGroupByPassableTime(1,e),t.getDayTypes(1),t.timeSettings=[],t.dataPassableDetail.length>0&&void 0!==t.dataPassableDetail[0].timeSettings&&null!==t.dataPassableDetail[0].timeSettings&&""!==t.dataPassableDetail[0].timeSettings&&t.dataPassableDetail[0].timeSettings.forEach((function(e){t.timeSettings.push({dayTypeId:e.dayTypeId,dayTypeName:e.dayTypeName,doSet:null,endTime:e.endTime,hourEnd:"00",hourStart:"00",minuteEnd:"00",minuteStart:"00",name:e.dayTypeName,notSet:null,startTime:e.startTime,text:e.dayTypeName,value:e.dayTypeId,allDay:e.allDay,startTime2:e.startTime2,endTime2:e.endTime2,startTime3:e.startTime3,endTime3:e.endTime3})}))}))}))},clickRegisterPassable:function(e){var t=this;this.loading=!0;var a=e.timeZones,s=e.arrayAddSpecialTime;this.arrayTime={name:e.passableName,timeSettings:[]};var r,o=Object(rr["a"])(a);try{for(o.s();!(r=o.n()).done;){var n=r.value;!0!==n.notSet&&!0!==n.doSet?this.arrayTime.timeSettings.push(Object(Dc["a"])(Object(Dc["a"])({dayTypeId:n.value,allDay:0,startTime:n.child[0].startTime,endTime:n.child[0].endTime},n.child[1]?{startTime2:n.child[1].startTime,endTime2:n.child[1].endTime}:{}),n.child[2]?{startTime3:n.child[2].startTime,endTime3:n.child[2].endTime}:{})):!0===n.notSet?this.arrayTime.timeSettings.push({dayTypeId:n.value,allDay:2,startTime:"00:00",endTime:"00:00"}):!0===n.doSet&&this.arrayTime.timeSettings.push({dayTypeId:n.value,allDay:1,startTime:"00:00",endTime:"00:00"})}}catch(d){o.e(d)}finally{o.f()}if(s.length>0){var i,l=this.mergeSpecialTimes(s),c=Object(rr["a"])(l);try{for(c.s();!(i=c.n()).done;){var u=i.value;u.endTime=0===u.allDay?u.endTime:"00:00",u.startTime=0===u.allDay?u.startTime:"00:00",this.arrayTime.timeSettings.push(Object(Dc["a"])(Object(Dc["a"])({dayTypeId:u.dayTypeId,allDay:u.allDay,startTime:u.startTime,endTime:u.endTime},0===u.allDay&&u.startTime2&&u.endTime2?{startTime2:u.startTime2,endTime2:u.endTime2}:{}),0===u.allDay&&u.startTime3&&u.endTime3?{startTime3:u.startTime3,endTime3:u.endTime3}:{}))}}catch(d){c.e(d)}finally{c.f()}}this.postPassable(this.arrayTime).then((function(){return t.updatePassableGroup(e,t.passableTimeSettingId)})).then((function(){t.groupListByPassableTime=[],t.groupListAdd=[],t.dayTypes=[],t.getGroups(1,0),t.getDayTypes(1),t.loading=!1}))},mergeSpecialTimes:function(e){var t,a=new Map,s=Object(rr["a"])(e);try{for(s.s();!(t=s.n()).done;){var r=t.value,o=String(r.dayTypeId),n=a.get(o)||{dayTypeId:o,dayTypeName:r.dayTypeName,allDay:0};if(0===n.allDay&&0!==r.allDay&&(n.allDay=r.allDay),!n.dayTypeName&&r.dayTypeName&&(n.dayTypeName=r.dayTypeName),0===r.allDay&&r.startTime&&r.endTime)for(var i=[["startTime","endTime"],["startTime2","endTime2"],["startTime3","endTime3"]],l=0,c=i;l0){var s=a.body;t.ExpandedGroup[e]={maxRecords:s.maxRecords,groups:s.groups}}else t.ExpandedGroup={};t.loadingGroup=!1})).then(null,(function(e){t.loadingGroup=!1,console.log(e)}))},getListPassableTimeSettings:function(){var e=this;return new Promise((function(t,a){var s=W+"?limit="+localStorage.pageSizePassable+"&page="+e.currPagePassable;e.dataPassables=[],e.$http.get(s).then((function(a){e.isEmpty(a.body.passableTimeSettings)?t(!1):(e.dataPassables=a.body.passableTimeSettings,e.passableTotalCount=a.body.maxRecords,e.dataPassables.forEach((function(t,a){!0===t.isDefault&&(e.timeDefault=t.passableTimeSettingId,e.passableTotalCount--)})),e.pagePassable=e.currPagePassable,t(!0))})).then(null,(function(a){switch(a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}t(!1)}))}))},getGroupCount:function(){if(this.dataPassables.length>0){var e,t=Object(rr["a"])(this.dataPassables.entries());try{for(t.s();!(e=t.n()).done;){var a=Object(sr["a"])(e.value,2),s=a[0],r=a[1];this.getGroupCountItem(r,s)}}catch(o){t.e(o)}finally{t.f()}}else this.isGetDataList=!1},getGroupCountItem:function(e,t){var a=this;return new Promise((function(s,r){var o=H+"?passableTimeSettingId="+encodeURIComponent(e.passableTimeSettingId)+"&isValid=true";a.$http.get(o).then((function(e){a.dataPassables[t].groupCount=0,e.body.maxRecords>0&&(a.dataPassables[t].groupCount=e.body.maxRecords),a.isCountGroup++,s(!0)})).then(null,(function(e){a.dataPassables.length>0&&(a.dataPassables[t].groupCount=0),a.isCountGroup++,s(!1)}))}))},getDetailPassableTimeSetting:function(e){var t=this;return new Promise((function(a,s){t.pagePassable=Math.ceil(t.passableTotalCount/localStorage.pageSizePassable);var r=W+"?limit="+localStorage.pageSizePassable+"&page="+t.currPagePassable+"&scorp="+t.scorpPassable+"&keyword="+e;t.dataPassableDetail=[],t.$http.get(r).then((function(e){t.isEmpty(e.body.passableTimeSettings)||(t.dataPassableDetail=e.body.passableTimeSettings),t.countEditPassableAPI++,t.countReloadEditPassableAPI++,a(!0)})).then(null,(function(e){switch(t.countEditPassableAPI++,t.countReloadEditPassableAPI++,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a(!1)}))}))},delPassable:function(e){var t=this;this.$http.delete(W+"/"+encodeURIComponent(e)).then((function(e){t.successMessageLogsModal="アイテムが削除されました",t.errorMessageLogsModal="",t.getListPassableTimeSettings(),t.loading=!1})).then(null,(function(e){switch(t.successMessageLogsModal="",t.loading=!1,e.status){case 400:t.errorMessageLogsModal="形式が誤っている。";break;case 403:t.errorMessageLogsModal="IDトークンが無効、もしくは権限がない。削除対象のpassableTimeSettingがデフォルト設定であり、削除権限がない。";break;case 404:t.errorMessageLogsModal="該当するデーターがありません。";break;case 409:t.errorMessageLogsModal="対象の通行可能時間帯設定が設定されているゲートが存在するため、削除できません";break;case 500:t.errorMessageLogsModal="意図しないエラー。";break;case 503:t.errorMessageLogsModal="サービスが利用不可。システムメンテナンス等の場合に利用します。";break;default:t.errorMessageLogsModal=ba;break}}))},postPassable:function(e){var t=this;return new Promise((function(a,s){t.$http.post(W,e).then((function(e){t.successMessageLogs=La,t.errorMessageLogs="",t.passableTimeSettingId=e.body.passableTimeSettingId,a(!0)})).then(null,(function(e){switch(t.successMessageLogs="",e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 420:t.errorMessageLogs=va;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1,a(!1)}))}))},updatePassable:function(e,t){var a=this;return new Promise((function(s,r){a.$http.put(W+"/"+encodeURIComponent(e),t).then((function(e){a.successMessageLogs=Da,a.errorMessageLogs="",s(null)})).then(null,(function(e){switch(a.successMessageLogs="",e.status){case 400:a.errorMessageLogs=Qt;break;case 403:a.errorMessageLogs=ta;break;case 500:a.errorMessageLogs=fa;break;case 503:a.errorMessageLogs=ha;break;default:a.errorMessageLogs=ba;break}s(null)}))}))},removePassableGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(s=t.groupListByPassableTime,r=s.filter((function(t){return!e.inputGroup.some((function(e){return t.value===e.value}))})),!(null!==r&&r.length>0)){a.next=21;break}o={passableTimeSettingId:t.timeDefault},n=Object(rr["a"])(r),a.prev=5,n.s();case 7:if((i=n.n()).done){a.next=13;break}return l=i.value,a.next=11,t.updatePassableGroupItem(l.value,o);case 11:a.next=7;break;case 13:a.next=18;break;case 15:a.prev=15,a.t0=a["catch"](5),n.e(a.t0);case 18:return a.prev=18,n.f(),a.finish(18);case 21:case"end":return a.stop()}}),a,null,[[5,15,18,21]])})))()},updatePassableGroup:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r,o,n,i,l;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(void 0!==e.inputGroup&&null!==e.inputGroup&&""!==e.inputGroup&&e.inputGroup.length>0)){s.next=20;break}r=t,o={passableTimeSettingId:r},n=Object(rr["a"])(e.inputGroup),s.prev=4,n.s();case 6:if((i=n.n()).done){s.next=12;break}return l=i.value,s.next=10,a.updatePassableGroupItem(l.value,o);case 10:s.next=6;break;case 12:s.next=17;break;case 14:s.prev=14,s.t0=s["catch"](4),n.e(s.t0);case 17:return s.prev=17,n.f(),s.finish(17);case 20:case"end":return s.stop()}}),s,null,[[4,14,17,20]])})))()},updatePassableGroupItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.put(H+"/"+encodeURIComponent(e),t).then((function(e){a.errorMessageLogs="","Success"===e.body.message&&console.log(e.body.message),s(!0)})).then(null,(function(e){console.log(e),s(!0)}))}))},getGroups:function(e,t){var a=this;this.$http.get(H+"?limit=1000&page="+e+"&sortKey=desc:registered&isValid=true").then((function(s){s.body.maxRecords>0?(s.body.groups.forEach((function(e){0===t?a.groupListAdd.push({text:void 0!==e.name?e.name:"",value:e.groupId}):a.groupListEdit.push({text:void 0!==e.name?e.name:"",value:e.groupId})})),s.body.maxRecords>s.body.endRecord?a.getGroups(e+1,t):a.countEditPassableAPI++):(a.groupListAdd=[],a.groupListEdit=[],a.countEditPassableAPI++)})).then(null,(function(e){console.log(e),a.countEditPassableAPI++}))},getGroupByPassableTimeDetail:function(e,t){var a=this;this.$http.get(H+"?passableTimeSettingId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&sortKey=desc:registered&embed=passableTimeSetting&isValid=true").then((function(s){s.body.maxRecords>0?(s.body.groups.forEach((function(e){a.groupListByPassableTime.push({text:e.name,value:e.groupId})})),s.body.maxRecords>s.body.endRecord&&a.getGroupByPassableTime(e+1,t),s.body.maxRecords<=s.body.endRecord&&(a.checkLoadPassDetail=1)):(a.groupListByPassableTime=[],a.checkLoadPassDetail=1)})).then(null,(function(e){console.log(e),a.checkLoadPassDetail=1}))},getGroupByPassableTime:function(e,t){var a=this;this.$http.get(H+"?passableTimeSettingId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&sortKey=desc:registered&embed=passableTimeSetting&isValid=true").then((function(s){s.body.maxRecords>0?(s.body.groups.forEach((function(e){a.groupListByPassableTime.push({text:e.name,value:e.groupId})})),s.body.maxRecords>s.body.endRecord?a.getGroupByPassableTime(e+1,t):(a.countEditPassableAPI++,a.countReloadEditPassableAPI++)):(a.groupListByPassableTime=[],a.countEditPassableAPI++,a.countReloadEditPassableAPI++)})).then(null,(function(e){console.log(e),a.countEditPassableAPI++,a.countReloadEditPassableAPI++}))},getDayTypes:function(e){var t=this;this.dayTypes=[],this.$http.get(ae+"?limit=1000&page="+e+"&sortKey=asc:dayTypeId").then((function(a){t.totalDateType=Math.ceil(a.body.maxRecords/1e3),a.body.maxRecords>0?(t.countDateType++,a.body.dayTypes.forEach((function(e){t.dayTypes.push({text:e.name,value:e.dayTypeId,notSet:!1,doSet:!1})})),a.body.maxRecords>a.body.endRecord?t.getDayTypes(e+1):(t.countEditPassableAPI++,t.countReloadEditPassableAPI++)):(t.dayTypes=[],t.countEditPassableAPI++,t.countReloadEditPassableAPI++)})).then(null,(function(e){t.countDateType++,console.log("err: ",e),t.countEditPassableAPI++,t.countReloadEditPassableAPI++}))},getDayTypesDetail:function(e){var t=this;this.dayTypes=[],this.$http.get(ae+"?limit=1000&page="+e+"&sortKey=asc:dayTypeId").then((function(a){t.totalDateType=Math.ceil(a.body.maxRecords/1e3),a.body.maxRecords>0?(t.countDateType++,a.body.dayTypes.forEach((function(e){t.dayTypes.push({text:e.name,value:e.dayTypeId,notSet:!1,doSet:!1})})),a.body.maxRecords>a.body.endRecord?t.getDayTypesDetail(e+1):t.loading=!1):(t.dayTypes=[],t.loading=!1)})).then(null,(function(e){t.countDateType++,console.log("err: ",e),t.loading=!1}))},resetData:function(){this.dataPassables=[],this.passableTotalCount=0,this.pagePassable=0},getFederatedLoginService:function(){var e=this;this.loading=!0,this.$http.get(L).then((function(t){e.federatedLoginServices=t.body.federatedLoginServices,e.getFederatedLoginServiceId("Onelogin"),e.getFederatedLoginServiceId("Google"),e.getFederatedLoginServiceId("Apple"),e.getOwnerFederatedLoginService(),e.getPlan(),e.loading=!1})).then(null,(function(t){e.loading=!1}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},changePerPageLogin:function(e){var t=this;this.pageSizeList=e,this.loading=!0,this.currPage=1,this.getFederatedLoginRelation().then((function(){t.loading=!1}))},changePageLogin:function(e){var t=this;this.currPage=e,this.loading=!0,this.getFederatedLoginRelation().then((function(){t.loading=!1}))},goPageExport:function(){this.showModalImport=!0},closeModalProcess:function(e){this.showProgressExportCSV=!1,this.showProgressImport=!1,this.showModalImport=!1,this.reset()},clickExport:function(e){var t=this;this.showModalImport=!1,this.reset(),this.pages=1,this.progress=0,this.federatedLoginServiceId=e.federatedLoginServiceId,this.showProgressExportCSV=!0,setTimeout((function(){t.getData()}),200)},getData:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e,a=1,s=!0;case 3:if(!s){t.next=11;break}return t.next=6,e.getDataForExport(a);case 6:e.progress+=100/e.pages,a++,s=a<=e.pages,t.next=3;break;case 11:e.downloadCSV(),e.isFinishProcess=!0;case 13:case"end":return t.stop()}}),t)})))()},getDataForExport:function(e){var t=this,a=this;return new Promise((function(s){var r=t.getFederatedLoginServiceRelationId(t.federatedLoginServiceId),o=t.cognitoIdProviderName+"ID";r?t.$http.get($+"?limit=1000&page="+e+"&relationOwnerFederatedLoginServiceId="+r).then((function(e){var r,n=Object(rr["a"])(e.body.relationsUserFederatedLoginService);try{for(n.s();!(r=n.n()).done;){var i,l=r.value;t.exportData.push((i={},Object(Lc["a"])(i,o,l.federatedLoginEmail),Object(Lc["a"])(i,"ALLIGATEユーザーID",l.userId),Object(Lc["a"])(i,"変更(1:登録、2:削除、3:変更無し)",3),i))}}catch(c){n.e(c)}finally{n.f()}e.body.maxRecords>0&&(a.pages=Math.ceil(e.body.maxRecords/1e3)),s(!0)})).then(null,(function(e){console.log(e),s(!1)})):s(!1)}))},downloadCSV:function(){var e,t=a("21a6");if(0===this.exportData.length){var s,r=this.cognitoIdProviderName+"ID";this.exportData.push((s={},Object(Lc["a"])(s,r,""),Object(Lc["a"])(s,"ALLIGATEユーザーID",""),Object(Lc["a"])(s,"変更(1:登録、2:削除、3:変更無し)",""),s))}var o=this.convertArrayOfObjectsToCSV({data:this.exportData});e="user-federated-login-data.csv",""!==this.cognitoIdProviderName&&(e=this.cognitoIdProviderName.toLowerCase()+"-user-federated-login-data.csv");var n=new Uint8Array([239,187,191]),i=new Blob([n,o],{type:"text/csv;charset=utf-8;"}),l=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(l)t(i,e);else if(console.log("window.navigator.msSaveOrOpenBlob",window.navigator.msSaveOrOpenBlob),void 0!==window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(i,e);else{var c=document.createElement("a");c.setAttribute("href",window.URL.createObjectURL(i)),c.setAttribute("download",e),c.setAttribute("target","_blank"),c.click(),c.remove()}},clickImport:function(e){this.showProgressImport=!0,this.showModalImport=!1,this.showProgressExportCSV=!1,this.importExe(e)},closeModalImport:function(){this.showModalImport=!1,this.exportData=[],this.importData=[],this.exeCount=0,this.successItem=0,this.success=!1,this.loading=!1,this.errorName="",this.progress=0,this.pages=0,this.dataLoad=0,this.errorMessageExcel=[],this.errorMessageLogs="",this.successMessageLogs=""},closeModalProcessImport:function(){this.showModalImport=!1,this.showProgressImport=!1,this.exportData=[],this.importData=[],this.exeCount=0,this.successItem=0,this.success=!1,this.loading=!1,this.errorName="",this.progress=0,this.pages=0,this.dataLoad=0,this.errorMessageExcel=[],this.errorMessageLogs="",this.successMessageLogs="",this.getFederatedLoginRelation()},importExe:function(e){var t=this;console.log("file",e.files);var a=this,s=e.files;if(void 0!==s&&null!==s&&0!==s.length){this.progress=0;var r=new FileReader;r.onload=function(){var e=r.result,s=e.split("\n");console.log("lineArr",s);for(var o=[],n=0;n1)if(void 0===o[0][0]||o[0][0]!==i)a.errorMessage="選択されたファイルフォーマットが外部ログインサービスの種類と異なります。 選択ファイルを確認して下さい。",t.success=!0;else{a.importData=[];for(var l=1;l0&&a.importData.push(o[l]);a.importData.length>0?(a.totalDataRow=a.importData.length,a.errorMessage="",a.percent=100/a.totalDataRow,a.addExe(a.importData[0][0],a.importData[0][1],a.importData[0][2],2,a.percent)):(a.errorMessage="不正なファイルです。正しいファイルを選択しなおしてください。",t.success=!0)}else a.errorMessage="不正なファイルです。正しいファイルを選択しなおしてください。",t.success=!0},r.readAsText(s,"Shift_JIS")}else a.errorMessage="CSVのファイルを選択してください。",this.success=!0},addExe:function(e,t,a,s,r){var o=this,n=this;a=n.replaceSpecilSymboy(a);var i={userId:n.replaceSpecilSymboy(t),federatedLoginEmail:n.replaceSpecilSymboy(e),relationOwnerFederatedLoginServiceId:this.relationOwnerFederatedLoginServiceId};"1"===a?this.$http.post($,i).then((function(e){console.log(e.status),setTimeout((function(){n.exeCount++,n.progress+=r,n.successItem++}),200)})).then(null,(function(a){var i="",l="";switch(a.status){case 401:l="The incoming token has expired"===a.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:l="入力したパラメーターが誤っています。入力内容をご確認ください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 403:l="アクセス情報が不正です。ログインし直してからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 409:l="入力されたユーザーIDは既に使用されています。他のユーザーIDを入力してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 500:l="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 503:l="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;default:l="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break}o.$set(o.errorMessageExcel,s,i),setTimeout((function(){n.exeCount++,n.progress+=r}),200),console.log(a.status)})):"2"===a?this.$http.get($+"?relationOwnerFederatedLoginServiceId="+this.relationOwnerFederatedLoginServiceId+"&userId="+n.replaceSpecilSymboy(t)).then((function(a){var i="";a.body.relationsUserFederatedLoginService.forEach((function(e){i=e.relationId})),""!==i&&o.$http.delete($+"/"+i).then((function(e){setTimeout((function(){n.exeCount++,n.progress+=r,n.successItem++,console.log(e.status)}),200)})).then(null,(function(a){var i="",l="";switch(a.status){case 401:l="The incoming token has expired"===a.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:l="入力したパラメーターが誤っています。入力内容をご確認ください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 403:l="アクセス情報が不正です。ログインし直してからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 409:l="入力されたユーザーIDは既に使用されています。他のユーザーIDを入力してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 500:l="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;case 503:l="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break;default:l="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+l+"";break}o.$set(o.errorMessageExcel,s,i),setTimeout((function(){n.exeCount++,n.progress+=r,console.log(a.status)}),200)}))})).then(null,(function(a){var i="";switch(a.status){case 401:"The incoming token has expired"===a.body.message?n.errorName="":n.errorName="アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:n.errorName="入力したパラメーターが誤っています。入力内容をご確認ください。",i=s+" 行目>>"+t+"("+e+") >>"+n.errorName+"";break;case 403:n.errorName="アクセス情報が不正です。ログインし直してからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+n.errorName+"";break;case 409:n.errorName="入力されたユーザーIDは既に使用されています。他のユーザーIDを入力してください。",i=s+" 行目>>"+t+"("+e+") >>"+n.errorName+"";break;case 500:n.errorName="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+n.errorName+"";break;case 503:n.errorName="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+n.errorName+"";break;default:n.errorName="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",i=s+" 行目>>"+t+"("+e+") >>"+n.errorName+"";break}o.$set(o.errorMessageExcel,s,i),setTimeout((function(){n.exeCount++,n.progress+=r,console.log(a.status)}),200)})):setTimeout((function(){n.exeCount++,n.progress+=r,n.successItem++}),200)},replaceSpecilSymboy:function(e){return e.replace(/\r/g,"").replace(/\n/g,"\r\n")},convertArrayOfObjectsToCSV:function(e){var t,a,s,r,o,n;return n=e.data||null,null!=n&&n.length?(r=e.columnDelimiter||",",o=e.lineDelimiter||"\n",s=Object.keys(n[0]),t="",t+=s.join(r),t+=o,n.forEach((function(e){a=0,s.forEach((function(s){a>0&&(t+=r),t+=e[s],a++})),t+=o})),t):null},getFederatedLoginServiceId:function(e){switch(e){case"Google":var t=this.federatedLoginServices.filter((function(e){return"Google"===e.name}));t.length>0&&(this.googleLoginService.federatedLoginServiceId=t[0].federatedLoginServiceId,this.googleLoginService.name=t[0].name);break;case"Onelogin":var a=this.federatedLoginServices.filter((function(e){return"Onelogin"===e.name}));a.length>0&&(this.oneLoginLoginService.federatedLoginServiceId=a[0].federatedLoginServiceId,this.oneLoginLoginService.name="SAML");break;case"Apple":var s=this.federatedLoginServices.filter((function(e){return"Apple"===e.name}));s.length>0&&(this.appleIdLoginService.federatedLoginServiceId=s[0].federatedLoginServiceId,this.appleIdLoginService.name=s[0].name);break;default:break}},getOwnerFederatedLoginService:function(){var e=this;return new Promise((function(t,a){e.$http.get(D+"?embed=federatedLoginService").then((function(a){e.OwnerFederatedLoginService=a.body.relationsOwnerFederatedLoginService,e.isLoginServiceEnable(),t(null)})).then(null,(function(e){console.log("err: ",e),t(null)}))}))},isLoginServiceEnable:function(){var e=this,t=this.OwnerFederatedLoginService.filter((function(t){return t.federatedLoginServiceId===e.googleLoginService.federatedLoginServiceId})),a=this.OwnerFederatedLoginService.filter((function(t){return t.federatedLoginServiceId===e.oneLoginLoginService.federatedLoginServiceId})),s=this.OwnerFederatedLoginService.filter((function(t){return t.federatedLoginServiceId===e.appleIdLoginService.federatedLoginServiceId}));t.length>0&&(this.googleLoginService.isValid=t[0].isValid,this.googleLoginService.oldIsValid=t[0].isValid,this.googleLoginService.relationId=t[0].relationId,this.googleLoginService.isSaml=t[0].federatedLoginService.isSaml,this.googleLoginService.isResponse=!0),a.length>0&&(this.oneLoginLoginService.isValid=a[0].isValid,this.oneLoginLoginService.oldIsValid=a[0].isValid,this.oneLoginLoginService.relationId=a[0].relationId,this.oneLoginLoginService.metadataUrl=a[0].metadataUrl,this.oneLoginLoginService.oldMetadataUrl=a[0].metadataUrl,this.oneLoginLoginService.isSaml=a[0].federatedLoginService.isSaml,this.oneLoginLoginService.isResponse=!0),s.length>0&&(this.appleIdLoginService.isValid=s[0].isValid,this.appleIdLoginService.oldIsValid=s[0].isValid,this.appleIdLoginService.relationId=s[0].relationId,this.appleIdLoginService.isSaml=s[0].federatedLoginService.isSaml,this.appleIdLoginService.isResponse=!0),console.log("oneLoginLoginService",this.oneLoginLoginService)},saveConfig:function(){this.loading=!0,this.isSaveGoogle=!0,this.isSaveOnelogin=!0,this.isSaveAppleId=!0,this.saveOnelogin(),this.saveGoogle(),this.saveAppleId()},saveOnelogin:function(){console.log(this.oneLoginLoginService),this.oneLoginLoginService.oldIsValid!==this.oneLoginLoginService.isValid||this.oneLoginLoginService.oldMetadataUrl!==this.oneLoginLoginService.metadataUrl?(this.isSaveOnelogin=!1,""===this.oneLoginLoginService.relationId?this.submitRelationConfig(Ht,this.oneLoginLoginService.federatedLoginServiceId,this.oneLoginLoginService.isValid,this.oneLoginLoginService.metadataUrl):this.updateRelationConfig(Ht,this.oneLoginLoginService.relationId,this.oneLoginLoginService.isValid,this.oneLoginLoginService.metadataUrl)):this.savingProgress++},saveGoogle:function(){this.googleLoginService.oldIsValid!==this.googleLoginService.isValid?(this.isSaveGoogle=!1,""===this.googleLoginService.relationId?this.submitRelationConfig(zt,this.googleLoginService.federatedLoginServiceId,this.googleLoginService.isValid,this.googleLoginService.metadataUrl):this.updateRelationConfig(zt,this.googleLoginService.relationId,this.googleLoginService.isValid,this.googleLoginService.metadataUrl)):this.savingProgress++},saveAppleId:function(){this.appleIdLoginService.oldIsValid!==this.appleIdLoginService.isValid?(this.isSaveAppleId=!1,""===this.appleIdLoginService.relationId?this.submitRelationConfig(Kt,this.appleIdLoginService.federatedLoginServiceId,this.appleIdLoginService.isValid,this.appleIdLoginService.metadataUrl):this.updateRelationConfig(Kt,this.appleIdLoginService.relationId,this.appleIdLoginService.isValid,this.appleIdLoginService.metadataUrl)):this.savingProgress++},submitRelationConfig:function(e,t,a,s){var r=this,o={};o=!0===a?{federatedLoginServiceId:t,isValid:a,metadataFile:"",metadataUrl:s}:{federatedLoginServiceId:t,isValid:a,metadataFile:""},this.$http.post(D,o).then((function(t){r.savingProgress++,r.checkSaveStatus(e)})).then(null,(function(e){console.log("err: ",e),r.savingProgress++}))},updateRelationConfig:function(e,t,a,s){var r=this,o={};o=!0===a?{metadataUrl:s,metadataFile:"",isValid:a}:{metadataFile:"",isValid:a},this.$http.put(D+"/"+t,o).then((function(t){r.savingProgress++,r.checkSaveStatus(e)})).then(null,(function(e){console.log("err: ",e),r.savingProgress++}))},checkSaveStatus:function(e){switch(e){case zt:this.isSaveGoogle=!0;break;case Ht:this.isSaveOnelogin=!0;break;case Kt:this.isSaveAppleId=!0;break}},checkIsChangeConfig:function(){return this.googleLoginService.oldIsValid!==this.googleLoginService.isValid||(this.oneLoginLoginService.oldIsValid!==this.oneLoginLoginService.isValid||this.oneLoginLoginService.oldMetadataUrl!==this.oneLoginLoginService.metadataUrl||this.appleIdLoginService.oldIsValid!==this.appleIdLoginService.isValid)},getPlan:function(){var e=this;return new Promise((function(t,a){localStorage.setItem("isMfa","false"),localStorage.setItem("isFederatedLoginService","false"),localStorage.setItem("isSamlFederatedLoginService","false"),e.$http.get(V).then((function(e){e.body.maxRecords>0&&(localStorage.setItem("isMfa",e.body.plans[0].isMfa),localStorage.setItem("isFederatedLoginService",e.body.plans[0].isFederatedLoginService),localStorage.setItem("isSamlFederatedLoginService",e.body.plans[0].isSamlFederatedLoginService)),t(null)})).then(null,(function(e){console.log("err: ",e),t(null)}))}))},clickResetNfc:function(){var e=this;this.$http.get(qt+"?ownerId="+encodeURIComponent(this.ownerId)).then((function(t){if(!e.isEmpty(t.body.owners[0].pCodeConfig)){e.blockCount=t.body.owners[0].pCodeConfig.blockCount,e.ownerInfor=t.body.owners;var a,s=t.body.owners[0].pCodeConfig.readPosition,r=Object(rr["a"])(s);try{for(r.s();!(a=r.n()).done;){var o=a.value;e.SettingInfo.push({position:o.position,length:o.length})}}catch(n){r.e(n)}finally{r.f()}}})).then(null,(function(e){return console.log("err: ",e)})),this.countReset++},goRelation:function(e){var t=this;return this.pages=0,this.currPage=1,this.maxRecord=0,this.$router.push({query:Object.assign({},this.$route.query,{p:"registration"})}),localStorage.setItem("isExternalLogin","registration"),localStorage.setItem("cognitoIdProviderName",e.name),localStorage.setItem("federatedLoginServiceId",e.federatedLoginServiceId),this.cognitoIdProviderName=localStorage.cognitoIdProviderName,this.isExternalLogin=localStorage.isExternalLogin,this.federatedLoginServiceId=localStorage.federatedLoginServiceId,this.userList=[],this.realtionsUserList=[],this.loading=!0,this.getPlan().then((function(){return t.getUsers(1)})).then((function(){return t.getOwnerFederatedLoginService()})).then((function(){return t.getFederatedLoginRelation()})).then((function(){t.isFederatedLoginService=localStorage.isFederatedLoginService,t.loading=!1}))},resetMessage:function(){this.sucessStatus=!1,this.errorMessageLogs="",this.successMessageLogs="",this.savingProgress=0},resetInput:function(){this.errorMessageLogs="",this.successMessageLogs="",this.errorMessageParams={email:"",userId:""}},goPageSetting:function(){var e=this;this.resetMessage(),this.resetInput(),localStorage.setItem("cognitoIdProviderName",""),localStorage.setItem("isExternalLogin","setting"),this.isExternalLogin=localStorage.isExternalLogin,this.loading=!0;var t=Object.assign({},this.$route.query);return delete t.p,this.$router.replace({query:t}),this.getPlan().then((function(){return e.getOwnerFederatedLoginService()})).then((function(){e.isFederatedLoginService=localStorage.isFederatedLoginService,e.loading=!1}))},getUsers:function(e){var t=this;this.$http.get(T+"?limit=100&page="+e+"&sortKey=asc:userId&isValid=true&isExceptOptionalUser=true&exclude=thumbnail").then((function(a){a.body.maxRecords>0?(a.body.users.forEach((function(e){t.userList.push({text:e.userId,value:e.userId})})),a.body.maxRecords>a.body.endRecord?t.getUsers(e+1):t.isDisabled=!1):t.userList=null})).then(null,(function(e){return console.log("err: ",e)}))},getFederatedLoginRelation:function(){var e=this;return new Promise((function(t,a){var s=e.getFederatedLoginServiceRelationId(e.federatedLoginServiceId);if(e.realtionsUserList=[],s){var r=$+"?limit="+e.pageSizeList+"&page="+e.currPage+"&relationOwnerFederatedLoginServiceId="+s;""!==e.keyword&&void 0!==e.keyword&&(r=$+"?limit="+e.pageSizeList+"&page="+e.currPage+"&relationOwnerFederatedLoginServiceId="+s+"&keyword="+e.keyword),e.relationOwnerFederatedLoginServiceId=s,e.$http.get(r).then((function(a){e.maxRecord=a.body.maxRecords,a.body.maxRecords>0?(a.body.relationsUserFederatedLoginService.forEach((function(t){e.realtionsUserList.push(t)})),e.pages=Math.ceil(a.body.maxRecords/e.pageSizeList)):e.realtionsUserList=[],t(null)})).then(null,(function(a){console.log("err: ",a),e.realtionsUserList=[],t(null)}))}else t(null)}))},getFederatedLoginServiceRelationId:function(e){var t=this.OwnerFederatedLoginService.filter((function(t){return t.federatedLoginServiceId===e}));return t.length>0&&t[0].relationId},addRelation:function(e){var t=this,a=this.validateBeforeSubmit(e),s={userId:e.userId,federatedLoginEmail:e.email,relationOwnerFederatedLoginServiceId:this.relationOwnerFederatedLoginServiceId};this.sucessStatus=!1,a&&(this.loading=!0,this.resetInput(),this.$http.post($,s).then((function(e){console.log(e),t.realtionsUserList=[],t.pages=0,t.currPage=1,t.getFederatedLoginRelation(),t.successMessageLogs="ログインユーザーが追加されました。",t.errorMessageLogs="",t.sucessStatus=!0,t.loading=!1})).then(null,(function(e){switch(e.status){case 401:"The incoming token has expired"===e.body.message?t.errorMessageLogs="":t.errorMessageLogs=ta;break;case 400:t.errorMessageLogs=Qt;break;case 403:t.errorMessageLogs=ta;break;case 409:t.errorMessageLogs=ca;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1,t.sucessStatus=!1,t.successMessageLogs=""})))},deleteRelation:function(e){var t=this;this.loading=!0,this.$http.delete($+"/"+e).then((function(e){console.log(e),t.realtionsUserList=[],t.pages=0,t.currPage=1,t.resetInput(),t.successMessageLogs="ログインユーザーが削除されました。",t.errorMessageLogs="",t.loading=!1,t.sucessStatus=!0,t.getFederatedLoginRelation()})).then(null,(function(e){switch(e.status){case 401:"The incoming token has expired"===e.body.message?t.errorMessageLogs="":t.errorMessageLogs="アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:t.errorMessageLogs="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:t.errorMessageLogs="アクセス情報が不正です。ログインし直してからやり直してください。";break;case 500:t.errorMessageLogs="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:t.errorMessageLogs="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:t.errorMessageLogs="アクセス情報が不正です。ログインし直してからやり直してください。";break}t.loading=!1,t.sucessStatus=!1,t.successMessageLogs=""}))},validateBeforeSubmit:function(e){this.errorMessageParams.email="",this.errorMessageParams.userId="";var t=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/.test(e.email);if(!t)return this.errorMessageParams.email="正しいメールアドレスを入力してください。",!1;this.errorMessageParams.email="";var a="";null!==e.userId&&""!==e.userId&&void 0!==e.userId&&(a=e.userId);var s=/^[a-zA-Z0-9@.!#$%&'*+/=?^_`{|}~-]{4,96}$/.test(a);return s?(this.errorMessageParams.userId="",!0):(this.errorMessageParams.userId="ログインに使用するIDは必須です。",!1)},initializeNFCSetting:function(){this.getTypeInfo(),this.getOwnerInfor()},checkEditStatus:function(){switch(this.fistTime||(this.settingInfor.ownerCodePosition1=0,this.settingInfor.ownerCodePosition2=0,this.settingInfor.ownerCodePosition3=0,this.settingInfor.ownerCodeLength1=0,this.settingInfor.ownerCodeLength2=0,this.settingInfor.ownerCodeLength3=0,this.settingInfor.readPosition1=0,this.settingInfor.readPosition2=0,this.settingInfor.readPosition3=0,this.settingInfor.readLength1=0,this.settingInfor.readLength2=0,this.settingInfor.readLength3=0,this.settingInfor.ownerCode="",this.settingInfor.systemCode="",this.settingInfor.serviceCode="",this.settingInfor.blockCount=0,this.settingInfor.keyType=1,this.settingInfor.keyValue="",this.settingInfor.sectorNumber=0,this.settingInfor.isOwnerCodeValid=!1),this.settingInfor.pCodeConfigType){case 0:this.fistTime=!1,this.editStatus=!0,this.isFelica=!0,this.isMifare=!0,this.editStatusException=!0;break;case 1:this.fistTime=!1,this.editStatus=!0,this.isFelica=!0,this.isMifare=!0,this.editStatusException=!1;break;case 2:this.fistTime=!1,this.editStatus=!0,this.isFelica=!0,this.isMifare=!0,this.editStatusException=!1;break;case 3:this.fistTime=!1,this.editStatus=!0,this.isFelica=!0,this.isMifare=!0,this.editStatusException=!0;break;case 4:this.fistTime=!1,this.editStatus=!1,this.isFelica=!0,this.isMifare=!1,this.editStatusException=!1;break;case 5:this.fistTime=!1,this.editStatus=!1,this.isFelica=!1,this.isMifare=!0,this.editStatusException=!1;break;case 6:this.fistTime=!1,this.editStatus=!0,this.isFelica=!0,this.isMifare=!0,this.editStatusException=!0;break;case 7:this.fistTime=!1,this.editStatus=!0,this.isFelica=!0,this.isMifare=!0,this.editStatusException=!0;break}},getTypeInfo:function(){var e=this;this.loading=!0,this.$http.get(Ce).then((function(t){if(void 0!==t.body.pCodeConfigTypes&&t.body.pCodeConfigTypes.length>0){var a=1;t.body.pCodeConfigTypes.forEach((function(t){6===t.type||7===t.type?(e.listNfcSettingSelect.splice(a,0,t),a++):e.listNfcSettingSelect.push(t)}))}else e.errorMessageLogs=ba;e.loading=!1})).then(null,(function(t){switch(e.loading=!1,console.log("err: ",t),t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},getOwnerInfor:function(){var e=this;this.loading=!0,this.$http.get(qt+"?ownerId="+encodeURIComponent(localStorage.ownerId)).then((function(t){if(e.fistTime=!0,e.settingInfor.pCodeConfigType=t.body.owners[0].pCodeConfigType,e.settingInfor.phonesBeValid=t.body.owners[0].phonesBeValid,e.settingInfor.keyTokenRefreshable=t.body.owners[0].keyTokenRefreshable,e.settingInfor.keyTokenLifetime=t.body.owners[0].keyTokenLifetime,e.settingInfor.keyTokenRefreshRate=t.body.owners[0].keyTokenRefreshRate,e.settingInfor.type=t.body.owners[0].pCodeConfig.type,e.settingInfor.isOwnerCodeValid=t.body.owners[0].pCodeConfig.isOwnerCodeValid,e.settingInfor.ownerCode=t.body.owners[0].pCodeConfig.ownerCode,!e.isEmpty(t.body.owners[0].pCodeConfig)){for(var a=t.body.owners[0].pCodeConfig.ownerCodePosition,s=0;s0?(e.pages=Math.ceil(t.body.maxRecords/localStorage.pageSizeLogConfig),e.listConfifLog=t.body.logConfigs):e.listConfifLog=[],e.loading=!1})).then(null,(function(t){switch(t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}e.listConfifLog=[],e.loading=!1}))},reloadDataLogLabel:function(){var e=this;this.$http.get(F).then((function(t){void 0!==t.body.logConfigs&&t.body.logConfigs.length>0&&t.body.logConfigs.forEach((function(t){t.accessLogId===e.dataEditLogLabel.accessLogId&&(e.dataEditLogLabel.logLabel=t.logLabel,e.dataEditLogLabel.isDefault=t.isDefault)})),e.loading=!1})).then(null,(function(t){switch(t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}e.loading=!1}))},clickEditLogLabel:function(e){this.loading=!0,this.successMessageLogs="",this.errorMessageLogs="",this.isEditLogLabel=!0,this.dataEditLogLabel=e,this.reloadDataLogLabel()},clickSaveLogLabel:function(e){var t=this;if(this.successMessageLogs="",this.errorMessageLogs="",null!==e.logLabel&&""!==e.logLabel){this.logLabelErr="";var a={accessLogId:e.accessLogId,logLabel:e.logLabel};this.loading=!0,this.$http.post(F,a).then((function(e){"Success"===e.body.message?t.successMessageLogs=Wa:t.errorMessageLogs=ba,t.reloadDataLogLabel()})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1}))}else this.logLabelErr="ログ名称は必須です。"},clickDeleteLogLabel:function(e){var t=this;this.successMessageLogs="",this.errorMessageLogs="",this.loading=!0,this.$http.delete(F+"/"+encodeURIComponent(e.accessLogId)).then((function(e){"Success"===e.body.message?t.successMessageLogs=Wa:t.errorMessageLogs=ba,t.reloadDataLogLabel()})).then(null,(function(e){switch(e.status){case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1}))},clickBackLogLabel:function(){this.isEditLogLabel=!1,this.initializeLogLabelSetting()},changePerPage:function(e){this.perPage=e,localStorage.setItem("pageSizeUserList",e),this.initializeLogLabelSetting()},changePage:function(e){console.log(e);var t=e.change;"log"===t&&(this.currPage=e.page,this.initializeLogLabelSetting())},saveKeyToken:function(){var e=this;if(this.successMessageLogs="",this.errorMessageLogs="",this.settingInfor.keyTokenRefreshRate>=this.settingInfor.keyTokenLifetime)this.errorMessageLogs="更新間隔は、有効期間より長く設定することはできません。";else{this.loading=!0;var t={keyTokenRefreshable:this.settingInfor.keyTokenRefreshable,keyTokenLifetime:this.settingInfor.keyTokenLifetime,keyTokenRefreshRate:this.settingInfor.keyTokenRefreshRate};console.log(t),this.$http.put(qt+"/"+localStorage.ownerId,t).then((function(t){console.log(t),e.successMessageLogs=ja,e.loading=!1})).then(null,(function(t){switch(t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}e.loading=!1}))}},savePhoneStatus:function(){var e=this;this.loading=!0,this.successMessageLogs="",this.errorMessageLogs="";var t={phonesBeValid:this.settingInfor.phonesBeValid};console.log(t),this.$http.put(qt+"/"+localStorage.ownerId,t).then((function(t){console.log(t),e.successMessageLogs=ja,e.loading=!1})).then(null,(function(t){switch(t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}e.loading=!1}))}}}),Ag=Gg,Rg=Object(I["a"])(Ag,Pc,Mc,!1,null,null,null),Tg=Rg.exports,Eg=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("reflection-status-list-template",{attrs:{dataCommands:e.dataCommands,statusTotalCount:e.statusTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,loadingChild:e.loadingChild,errorMessageLogs:e.errorMessageLogs},on:{changePerPage:function(t){return e.changePerPage(t)},changePage:function(t){return e.changePage(t)},"select-detail":function(t){return e.selectDetail(t)},"select-status":function(t){return e.selectStatus(t)},clickBackGate:function(t){return e.clickBackGate(t)},"loading-from-child":function(t){return e.$emit("loading",t)}}})},Og=[],Vg=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-status-template"},[a("v-container",{staticStyle:{position:"relative"}},[a("ModalLoading",{attrs:{loading:e.loadingChild}}),e._v(" "),a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{cols:"10"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",{attrs:{cols:"12",sm:"7"}},[a("v-autocomplete",{staticClass:"input-search",attrs:{items:e.searchTargetTypeItems,label:"詳細で絞り込み",color:"green",solo:"",clearable:"","hide-details":"","menu-props":{contentClass:"v-select-item"},attach:!0},on:{change:function(t){return e.$emit("select-detail",t)}}})],1),e._v(" "),a("v-col",{attrs:{cols:"12",sm:"4"}},[a("v-autocomplete",{staticClass:"input-search",attrs:{items:e.searchTargetStatusItems,label:"ステータスで絞り込み",solo:"",clearable:"","hide-details":"","menu-props":{contentClass:"v-select-item"},attach:!0},on:{change:function(t){return e.$emit("select-status",t)}}})],1)],1)],1)])],1)],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("reflection-status-table",{attrs:{statusTotalCount:e.statusTotalCount,dataCommands:e.dataCommands,page:e.page,perPage:e.perPage,loading:e.loading,errorMessageLogs:e.errorMessageLogs},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)}}})],1)],1)},Ug=[],$g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-status-table"},[""!==e.errorMessageLogs?a("v-container",[a("v-row",[""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1)],1):e._e(),e._v(" "),a("v-row",{attrs:{"no-gutters":"",justify:"end","align-content":"end"}},[a("v-col",[""!==e.controllerName?a("p",{staticClass:"controllerName"},[e._v("制御盤: "+e._s(e.controllerName))]):e._e()]),e._v(" "),a("v-col",{staticStyle:{"text-align":"end"},attrs:{justify:"end"}},[a("show-per-page",{staticClass:"ml-4 mt-5 mr-2",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.statusTotalCount}})],1)],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,headerChild:e.headerChild,items:e.dataCommands,"items-per-page":e.perPage,"item-key":"commandId","no-data-text":"データーはありません","hide-default-footer":""},scopedSlots:e._u([{key:"item.status",fn:function(t){var s=t.item;return[0===s.status?a("span",[e._v("未送信")]):1===s.status?a("span",[e._v("送信済み")]):2===s.status?a("span",[e._v("成功")]):3===s.status?a("span",[e._v("失敗")]):4===s.status?a("span",[e._v("キャンセル")]):e._e()]}},{key:"item.registered",fn:function(t){var a=t.item;return[e._v("\n "+e._s(e.converDateShort(a.registered))+"\n ")]}},{key:"item.sendAt",fn:function(t){var a=t.item;return[e._v("\n "+e._s(e.converDateShort(a.sendAt))+"\n ")]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{attrs:{colspan:s.length}},[a("v-col",{attrs:{cols:"12"}},[a("v-container",[a("p",{staticClass:"title-expand"},[e._v("追加予定の個人コード一覧")]),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"",headers:e.headerChild,items:r.items,"no-data-text":"データーはありません","hide-default-footer":"",dense:""}})],1)],1)],1)]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.statusTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.statusTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},Ng=[],Fg=f["a"].extend({name:"ReflectionStatusTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,DisplayOption:Mo,SelectPerPage:To},props:{typeItems:{type:Array,default:function(){return[]}},statusTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dataCommands:{type:Array,default:function(){return[]}},errorMessageLogs:{type:String,default:""}},computed:{headers:{get:function(){var e=[{text:"#",align:"start",sortable:!1,width:"100px",value:"revision"},{text:"詳細",align:"start",sortable:!0,value:"detail"},{text:"登録日時",align:"start",sortable:!0,value:"registered"},{text:"最終送信日時",align:"start",sortable:!0,value:"sendAt"},{text:"ステータス",align:"start",sortable:!0,value:"status"}];return e},set:function(){}},headerChild:{get:function(){var e=[{text:"個人コード",align:"start",sortable:!1,value:"pCodeId"},{text:"ユーザーID",align:"start",sortable:!1,value:"userId"},{text:"ユーザー名",align:"start",sortable:!1,value:"userName"}];return e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{searchTargetItems:[{label:"内容",value:"detail"}],selectedItem:[],selectedDisplayOption:["detail"],displayOptionItems:[{label:"内容",value:"detail"},{label:"ステータス",value:"status"},{label:"Type",value:"type"}],controllerName:localStorage.controllerName}},watch:{},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]=0&&(a=U+"?controllerId="+encodeURIComponent(e)+"&limit="+localStorage.pageSizeStatus+"&page="+this.currPage+"&keyword="+this.keyword+"&scorp="+this.scorp+"&sortKey="+localStorage.statusSortName+":"+localStorage.statusSortKey+"&status="+this.status),this.$http.get(a).then((function(e){t.resetData(),t.loadingChild=!1,t.isEmpty(e.body.controllerCommands)?(t.statusTotalCount=0,t.currPage=1):(t.dataCommands=e.body.controllerCommands,t.statusTotalCount=e.body.maxRecords,t.currPage=Math.ceil(e.body.startRecord/t.perPage))})).then(null,(function(e){switch(console.log("err: ",e),t.resetData(),t.loadingChild=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataCommands=[],this.errorMessageLogs=""}}}),sp=ap,rp=Object(I["a"])(sp,Eg,Og,!1,null,null,null),op=rp.exports,np=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("notice-list-template",{attrs:{linkList:e.makeListLink(10)}})},ip=[],lp=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("v-card",{staticClass:"pa-6 pr-10 mb-5",attrs:{elevation:"3"}},[a("v-row",[a("v-col",{staticClass:"ml-4 mb-4 text-subtitle-2 font-weight-bold"},[e._v("\n 基本情報\n ")])],1),e._v(" "),a("notice-list",{attrs:{linkList:e.linkList}})],1)],1)},cp=[],up=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",e._l(e.linkList,(function(t,s){return a("v-row",{key:s,staticClass:"ma-1",attrs:{justify:"center"}},[a("text-link",{attrs:{text:t.link},on:{click:e.addItem}})],1)})),1)},dp=[],gp=f["a"].extend({name:"NoticeList",components:{InputForm:io,TextLink:No,SuccessButton:kr,CancelButton:fr},props:{linkList:{type:Array,default:function(){return[]}}}}),pp=gp,mp=Object(I["a"])(pp,up,dp,!1,null,null,null),fp=mp.exports;C()(mp,{VContainer:Zo["a"],VRow:Kr["a"]});var hp=f["a"].extend({name:"NoticeListTemplate",components:{InputForm:io,TextLink:No,SuccessButton:kr,CancelButton:fr,NoticeList:fp},props:{linkList:{type:Array,default:function(){return[]}}}}),vp=hp,bp=Object(I["a"])(vp,lp,cp,!1,null,null,null),yp=bp.exports;C()(bp,{VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var Ip=nr["a"].extend({name:"NoticeListPage",components:{NoticeListTemplate:yp},data:function(){return{listLink:[]}},methods:{makeListLink:function(e){for(var t=[],a=0;a>"))])])})):e._e(),e._v(" "),e.gateIdToSafieDeviceIds[s.gateId]?e._l(e.gateIdToSafieDeviceIds[s.gateId],(function(t){return a("v-tooltip",{key:t.deviceId,attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(r){var o=r.on,n=r.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(a){return e.safieDeviceAndTimestampLinkTo(t.deviceId,s.unixtimestamp-5)}}},"v-btn",n,!1),o),[a("v-icon",[e._v("mdi-video-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(e._s(t.notes?t.notes:"<<名称未設定>>"))])])})):e._e()]}},{key:"item.location",fn:function(t){var s=t.item;return[s.location?a("span",[e._v(e._s(s.location.latitude+","+s.location.longitude)+" ")]):e._e()]}},{key:"item.userId",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.userId)+" ")])]}},{key:"item.userName",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.userName)+" ")])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),e.disableNextGate?a("v-row",{attrs:{justify:"start"}},[a("v-btn",{staticClass:"btn-secondary margin-button-load-more",attrs:{outlined:""},on:{click:function(){e.page++}}},[e._v("\n 更に読み込む\n ")])],1):e._e()],1)],1),e._v(" "),a("modal",{attrs:{noTitle:!0},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isRerender?a("tb-eye",{attrs:{videoId:e.showTbeyeVideo.relationId,hostname:e.showTbeyeVideo.hostName,port:e.showTbeyeVideo.port,channel:e.showTbeyeVideo.channelNo,device:e.showTbeyeVideo.deviceType,username:e.showTbeyeVideo.loginInfo.username,password:e.showTbeyeVideo.loginInfo.password,replayStartDate:e.replayStartDate},on:{close:function(t){e.showTbeyeModal=!1},rerender:function(t){return e.rerender()},"update-login-info":function(t){return e.$emit("update-login-info",{relationId:e.showTbeyeVideo.relationId,username:t.username,password:t.password})}}}):e._e()]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"TBEYE管理画面"},on:{click:function(t){return e.openToLink("https://"+e.showTbeyeVideo.loginInfo.username+":"+e.showTbeyeVideo.loginInfo.password+"@"+e.showTbeyeVideo.hostName+":"+e.showTbeyeVideo.port)}}}),e._v(" "),a("cancel-button",{attrs:{text:"閉じる"},on:{click:function(t){e.showTbeyeModal=!1}}})]},proxy:!0}]),model:{value:e.showTbeyeModal,callback:function(t){e.showTbeyeModal=t},expression:"showTbeyeModal"}})],1)},Ep=[],Op=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"px-0",attrs:{fluid:""},on:{change:function(t){return e.$emit("change")}}},[a("v-radio-group",{model:{value:e.radioGroup,callback:function(t){e.radioGroup=t},expression:"radioGroup"}},e._l(e.arrayItem,(function(e){return a("v-radio",{key:e.value,attrs:{color:"green",checked:e.checked,label:e.name,value:e.value}})})),1)],1)},Vp=[],Up=f["a"].extend({name:"RadioButton",props:{arrayItem:{type:Array,required:!0}},data:function(){return{radioGroup:1}}}),$p=Up,Np=(a("ae845"),Object(I["a"])($p,Op,Vp,!1,null,"69b5b312",null)),Fp=Np.exports;C()(Np,{VRadio:Ar["a"],VRadioGroup:Rr["a"]});for(var jp=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("v-row",{attrs:{justify:"center",align:"end"}},[a("v-col",{staticClass:"distance-col",attrs:{cols:"3",pa:"0"}},[a("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","content-class":"background-white","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-add",attrs:{color:"green","prepend-inner-icon":"mdi-calendar",outlined:"",dense:"","hide-details":"auto",disabled:e.isDisable,autocomplete:"off",readonly:""},model:{value:e.dateS,callback:function(t){e.dateS=t},expression:"dateS"}},"v-text-field",r,!1),s))]}}]),model:{value:e.dateStart,callback:function(t){e.dateStart=t},expression:"dateStart"}},[e._v(" "),a("v-date-picker",{attrs:{color:"green","no-title":""},on:{input:function(t){e.dateStart=!1}},model:{value:e.dateS,callback:function(t){e.dateS=t},expression:"dateS"}})],1)],1),e._v(" "),a("v-col",{staticClass:"distance-col",attrs:{cols:"3",pa:"0"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-add input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline","hide-details":"auto",disabled:e.isDisable||e.isExportCSVWorkTimeType,autocomplete:"off",readonly:""},scopedSlots:e._u([{key:"append-outer",fn:function(){return[a("div",{staticClass:"pr-1"},[e._v(" ~")])]},proxy:!0}],null,!0),model:{value:e.timeS,callback:function(t){e.timeS=t},expression:"timeS"}},"v-text-field",r,!1),s))]}}]),model:{value:e.menuTime,callback:function(t){e.menuTime=t},expression:"menuTime"}},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:"","hide-details":"auto",disabled:e.isDisable},model:{value:e.hourStart,callback:function(t){e.hourStart=t},expression:"hourStart"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","full-width":"","hide-details":"auto",disabled:e.isDisable},model:{value:e.minuteStart,callback:function(t){e.minuteStart=t},expression:"minuteStart"}})],1)])],1)],1),e._v(" "),a("v-spacer"),e._v(" "),a("v-col",{staticClass:"distance-col",attrs:{cols:"3",pa:"0",mt:"4"}},[a("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","content-class":"background-white","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-add",attrs:{color:"green","prepend-inner-icon":"mdi-calendar",outlined:"",dense:"","hide-details":"auto",disabled:e.isDisable,autocomplete:"off",readonly:""},model:{value:e.dateE,callback:function(t){e.dateE=t},expression:"dateE"}},"v-text-field",r,!1),s))]}}]),model:{value:e.dateEnd,callback:function(t){e.dateEnd=t},expression:"dateEnd"}},[e._v(" "),a("v-date-picker",{attrs:{color:"green","no-title":"",max:e.maxDateEnd,min:e.minDateEnd},on:{input:function(t){e.dateEnd=!1}},model:{value:e.dateE,callback:function(t){e.dateE=t},expression:"dateE"}})],1)],1),e._v(" "),a("v-col",{staticClass:"distance-col",attrs:{cols:"3",pa:"0"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-add input-time",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline","hide-details":"auto",disabled:e.isDisable||e.isExportCSVWorkTimeType,autocomplete:"off",readonly:""},scopedSlots:e._u([{key:"append-outer",fn:function(){return[a("div",{staticClass:"pr-1",staticStyle:{width:"12px"}})]},proxy:!0}],null,!0),model:{value:e.timeE,callback:function(t){e.timeE=t},expression:"timeE"}},"v-text-field",r,!1),s))]}}]),model:{value:e.menuTimeE,callback:function(t){e.menuTimeE=t},expression:"menuTimeE"}},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},model:{value:e.hourEnd,callback:function(t){e.hourEnd=t},expression:"hourEnd"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","full-width":"","hide-details":"auto",disabled:e.isDisable},model:{value:e.minuteEnd,callback:function(t){e.minuteEnd=t},expression:"minuteEnd"}})],1)])],1)],1)],1)],1)},Bp=[],zp=[],Hp=0;Hp<=59;Hp++){var Kp="";Kp=Hp<10?"0"+Hp:Hp.toString(),zp.push(Kp)}var Yp=f["a"].extend({props:{dateStartValue:{default:""},dateEndValue:{default:""},timeSValue:{default:""},timeEValue:{default:""},errorAddListGate:{default:""},isDisable:{type:Boolean,default:!1},isUserPage:{type:Boolean,default:!1},isExportCSVWorkTimeType:{type:Boolean,default:!1}},data:function(){return{dateS:"",dateE:"",hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","15","30","45"],timeS:"",dateStart:!1,dateEnd:!1,hourStart:"00",minuteStart:"00",timeE:"",timeEnd:!1,hourEnd:"00",minuteEnd:"00",maxDateEnd:"",minDateEnd:"",menuTime:!1,menuTimeE:!1}},mounted:function(){this.minutes=this.isUserPage?["00","15","30","45"]:zp,this.timeS="",this.timeE="",this.dateS=this.dateStartValue,this.dateE=this.dateEndValue,this.timeS=this.timeSValue,this.timeE=this.timeEValue},watch:{menuTime:function(e){!1===e&&(this.timeS=this.formatTime(this.hourStart,this.minuteStart),this.$emit("getNewTimeStart",this.timeS))},menuTimeE:function(e){!1===e&&(this.timeE=this.formatTime(this.hourEnd,this.minuteEnd),this.$emit("getNewTimeEnd",this.timeE))},dateStartValue:function(e){this.dateS=e},dateEndValue:function(e){this.dateE=e},timeSValue:function(e){this.timeS=e},timeEValue:function(e){this.timeE=e},dateS:function(e){this.$emit("getNewDateStart",e),this.updateDateStartDateEnd()},minuteStart:function(e){this.$emit("getNewTimeStart",this.formatTime(this.hourStart,e)),this.timeS=this.formatTime(this.hourStart,e)},hourStart:function(e){this.timeS=this.formatTime(e,this.minuteStart),this.$emit("getNewTimeStart",this.timeS)},dateE:function(e){this.$emit("getNewDateEnd",e),this.updateDateStartDateEnd()},hourEnd:function(e){this.timeE=this.formatTime(e,this.minuteEnd),this.$emit("getNewTimeEnd",this.timeE)},minuteEnd:function(e){this.$emit("getNewTimeEnd",this.formatTime(this.hourEnd,e)),this.timeE=this.formatTime(this.hourEnd,e)},isExportCSVWorkTimeType:function(){this.updateDateStartDateEnd()}},methods:{formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},updateDateStartDateEnd:function(){if(this.isExportCSVWorkTimeType){var e=this.dateS.split("-"),t=new Date(Number(e[0]),Number(e[1])-1,Number(e[2])),a=this.dateE.split("-"),s=new Date(Number(a[0]),Number(a[1])-1,Number(a[2]));sr&&(this.dateE=this.maxDateEnd)}else this.minDateEnd="",this.maxDateEnd=""},formatDateYYYYMMDD:function(e){return e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)},addDays:function(e,t){var a=new Date(e);return a.setDate(a.getDate()+t),a}}}),qp=Yp,Wp=(a("03ea"),Object(I["a"])(qp,jp,Bp,!1,null,"9c374118",null)),Jp=Wp.exports;C()(Wp,{VCol:Dr["a"],VDatePicker:Gd["a"],VMenu:Un["a"],VRow:Kr["a"],VSelect:_o["a"],VSpacer:Qo["a"],VTextField:Tr["a"]});var Zp=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"date-picker"},[a("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({attrs:{color:"green","prepend-inner-icon":"mdi-calendar","single-line":"","hide-details":"",readonly:"",outlined:"",dense:""},on:{click:function(t){return e.$emit("activate")}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},"v-text-field",r,!1),s))]}}]),model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[e._v(" "),a("v-date-picker",{attrs:{color:"green","no-title":"",scrollable:"",min:e.min,max:e.max},on:{input:function(t){e.show=!1}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}})],1)],1)},Xp=[],Qp=f["a"].extend({name:"DatePicker",props:{value:{type:String,default:new Date(Date.now()+324e5).toISOString().slice(0,10)},min:{type:String},max:{type:String}},data:function(){return{show:!1}},computed:{innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}}),em=Qp,tm=Object(I["a"])(em,Zp,Xp,!1,null,null,null),am=tm.exports;C()(tm,{VDatePicker:Gd["a"],VMenu:Un["a"],VTextField:Tr["a"]});var sm=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-edit"},[a("v-data-table",{attrs:{"must-sort":"",headers:e.headers,items:e.innerValue,"items-per-page":e.innerValue.length,"item-key":"passageId","loading-text":"データを読み込中です","hide-default-footer":"",dense:""},scopedSlots:e._u([{key:"item.gateName",fn:function(t){var s=t.item;return[a("v-autocomplete",{staticClass:"mt-4 pa-0",attrs:{items:e.gateItems,outlined:"",dense:""},on:{change:function(t){return e.change(e.innerValue)}},model:{value:s.gateId,callback:function(t){e.$set(s,"gateId",t)},expression:"item.gateId"}})]}},{key:"item.time",fn:function(t){var s=t.item;return[a("v-row",{attrs:{justify:"center",align:"end"}},[a("v-col",{staticClass:"mt-4 pa-0",attrs:{cols:"3"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-text-field",e._g(e._b({attrs:{color:"green",readonly:"",outlined:"",dense:"","prepend-inner-icon":"mdi-calendar"},model:{value:s.notBeforeFormattedDate,callback:function(t){e.$set(s,"notBeforeFormattedDate",t)},expression:"item.notBeforeFormattedDate"}},"v-text-field",o,!1),r))]}}],null,!0),model:{value:s.menuNotBeforeDate,callback:function(t){e.$set(s,"menuNotBeforeDate",t)},expression:"item.menuNotBeforeDate"}},[e._v(" "),a("v-date-picker",{attrs:{color:"green","no-title":"",scrollable:""},on:{input:function(t){s.notBeforeFormattedDate=e.formatDate(s.notBeforeDate),s.menuNotBeforeDate=!1,e.change(e.innerValue)}},model:{value:s.notBeforeDate,callback:function(t){e.$set(s,"notBeforeDate",t)},expression:"item.notBeforeDate"}})],1)],1),e._v(" "),a("v-col",{staticClass:"pa-0",attrs:{cols:"3"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-text-field",e._g(e._b({attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline"},scopedSlots:e._u([{key:"append-outer",fn:function(){return[a("div",{staticClass:"pr-2"},[e._v("\n ~\n ")])]},proxy:!0}],null,!0),model:{value:s.notBeforeTime,callback:function(t){e.$set(s,"notBeforeTime",t)},expression:"item.notBeforeTime"}},"v-text-field",o,!1),r))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){s.notBeforeTime=e.formatTime(s.notBeforeTimeHour,s.notBeforeTimeMinute),e.change(e.innerValue)}},model:{value:s.notBeforeTimeHour,callback:function(t){e.$set(s,"notBeforeTimeHour",t)},expression:"item.notBeforeTimeHour"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v("\n :\n ")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){s.notBeforeTime=e.formatTime(s.notBeforeTimeHour,s.notBeforeTimeMinute),e.change(e.innerValue)}},model:{value:s.notBeforeTimeMinute,callback:function(t){e.$set(s,"notBeforeTimeMinute",t)},expression:"item.notBeforeTimeMinute"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"pa-0",attrs:{cols:"3"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"allig-text-field",attrs:{color:"green",readonly:"",outlined:"",dense:"","prepend-inner-icon":"mdi-calendar"},model:{value:s.notAfterFormattedDate,callback:function(t){e.$set(s,"notAfterFormattedDate",t)},expression:"item.notAfterFormattedDate"}},"v-text-field",o,!1),r))]}}],null,!0),model:{value:s.menuNotAfterDate,callback:function(t){e.$set(s,"menuNotAfterDate",t)},expression:"item.menuNotAfterDate"}},[e._v(" "),a("v-date-picker",{attrs:{color:"green","no-title":"",scrollable:""},on:{input:function(t){s.notAfterFormattedDate=e.formatDate(s.notAfterDate),s.menuNotAfterDate=!1,e.change(e.innerValue)}},model:{value:s.notAfterDate,callback:function(t){e.$set(s,"notAfterDate",t)},expression:"item.notAfterDate"}})],1)],1),e._v(" "),a("v-col",{staticClass:"pa-0",attrs:{cols:"3"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-text-field",e._g(e._b({attrs:{color:"green",readonly:"",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline"},scopedSlots:e._u([{key:"append-outer",fn:function(){return[a("v-btn",{attrs:{icon:""},on:{click:function(t){return e.deleteItem(s.index)}}},[a("v-icon",[e._v("mdi-close")])],1)]},proxy:!0}],null,!0),model:{value:s.notAfterTime,callback:function(t){e.$set(s,"notAfterTime",t)},expression:"item.notAfterTime"}},"v-text-field",o,!1),r))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:""},on:{change:function(t){s.notAfterTime=e.formatTime(s.notAfterTimeHour,s.notAfterTimeMinute),e.change(e.innerValue)}},model:{value:s.notAfterTimeHour,callback:function(t){e.$set(s,"notAfterTimeHour",t)},expression:"item.notAfterTimeHour"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v("\n :\n ")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":""},on:{change:function(t){s.notAfterTime=e.formatTime(s.notAfterTimeHour,s.notAfterTimeMinute),e.change(e.innerValue)}},model:{value:s.notAfterTimeMinute,callback:function(t){e.$set(s,"notAfterTimeMinute",t)},expression:"item.notAfterTimeMinute"}})],1)])],1)],1)],1)]}}],null,!0)}),e._v(" "),a("v-row",{staticClass:"ma-1",attrs:{justify:"end"}},[a("text-link",{attrs:{text:"+ 行を追加する"},on:{click:e.addItem}})],1)],1)},rm=[],om=new Date,nm=f["a"].extend({name:"GatePassageEdit",components:{TextLink:No,CancelButton:fr,SuccessButton:kr},props:{value:{type:Array,default:function(){return[]}},userId:{type:String,default:""},allGates:{type:Array,default:function(){return[]}}},data:function(){return{headers:[{text:"ゲート名",align:"start",sortable:!1,value:"gateName"},{text:"解錠可能期限",align:"start",sortable:!1,value:"time"}],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","15","30","45"]}},computed:{innerValue:{get:function(){var e=this;return this.value.map((function(t,a){var s=new Date(1e3*t.notBefore),r=new Date(1e3*t.notAfter),o={gateId:t.gateId,notBeforeDate:"".concat(s.getFullYear(),"-").concat(s.getMonth()+1,"-").concat(s.getDate()),notBeforeFormattedDate:"".concat(s.getFullYear(),"/").concat(s.getMonth()+1,"/").concat(s.getDate()),notBeforeTime:e.formatTime(s.getHours(),s.getMinutes()),notBeforeTimeHour:("00"+s.getHours()).slice(-2),notBeforeTimeMinute:("00"+s.getMinutes()).slice(-2),notAfterDate:"".concat(r.getFullYear(),"-").concat(r.getMonth()+1,"-").concat(r.getDate()),notAfterFormattedDate:"".concat(r.getFullYear(),"/").concat(r.getMonth()+1,"/").concat(r.getDate()),notAfterTime:e.formatTime(r.getHours(),r.getMinutes()),notAfterTimeHour:("00"+r.getHours()).slice(-2),notAfterTimeMinute:("00"+r.getMinutes()).slice(-2),menuNotBeforeDate:!1,menuNotAfterDate:!1,index:a};return o}))},set:function(e){this.change(e)}},gateItems:{get:function(){return this.allGates.map((function(e){return{text:e.gateName,value:e.gateId}}))}}},methods:{formatDate:function(e){var t=e.split("-"),a=Object(sr["a"])(t,3),s=a[0],r=a[1],o=a[2];return"".concat(s,"/").concat(r,"/").concat(o)},formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},addItem:function(){var e=this.innerValue.length;this.innerValue.push({gateId:"",notBeforeDate:"".concat(om.getFullYear(),"-").concat(om.getMonth()+1,"-").concat(om.getDate()),notBeforeFormattedDate:"".concat(om.getFullYear(),"/").concat(om.getMonth()+1,"/").concat(om.getDate()),notBeforeTime:"00:00",notBeforeTimeHour:"00",notBeforeTimeMinute:"00",notAfterDate:"".concat(om.getFullYear(),"-").concat(om.getMonth()+1,"-").concat(om.getDate()),notAfterFormattedDate:"".concat(om.getFullYear(),"/").concat(om.getMonth()+1,"/").concat(om.getDate()),notAfterTime:"23:45",notAfterTimeHour:"23",notAfterTimeMinute:"45",menuNotBeforeDate:!1,menuNotAfterDate:!1,index:e}),this.change(this.innerValue)},deleteItem:function(e){this.change(this.innerValue.filter((function(t){return t.index!==e})))},change:function(e){}}}),im=nm,lm=Object(I["a"])(im,sm,rm,!1,null,null,null),cm=lm.exports;C()(lm,{VAutocomplete:to["a"],VBtn:pr["a"],VCol:Dr["a"],VDataTable:Xo["a"],VDatePicker:Gd["a"],VIcon:Gr["a"],VMenu:Un["a"],VRow:Kr["a"],VSelect:_o["a"],VTextField:Tr["a"]});var um=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",{class:{minimum:e.isMinimum,normal:!e.isMinimum}},[a("v-row",{staticClass:"mb-3",attrs:{justify:"center"}},[a("span",{staticClass:"mt-3"},[e._v(e._s(e.playingTime))])]),e._v(" "),a("v-row",{attrs:{justify:"center"}},[a("ump-player",{style:{height:e.innerHeight+"px",width:e.innerWidth+"px"},attrs:{id:e.videoId,hostname:e.hostname,channel:e.channel,port:e.port,device:e.device,width:e.width,height:e.height,username:e.username,password:e.password,secure:"true"}})],1),e._v(" "),!0!==e.isMinimum?a("v-row",{attrs:{justify:"center"}},[!0===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.seekingTime(-60)}}},[a("v-icon",[e._v("\n mdi-rewind-60\n ")]),e._v("\n 60秒戻し\n ")],1):e._e(),e._v(" "),!0===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.seekingTime(-10)}}},[a("v-icon",[e._v("\n mdi-rewind-10\n ")]),e._v("\n 10秒戻し\n ")],1):e._e(),e._v(" "),!1===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.backward()}}},[a("v-icon",[e._v("\n mdi-step-backward\n ")]),e._v("\n 1秒戻し\n ")],1):e._e(),e._v(" "),!0===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.pause()}}},[a("v-icon",[e._v("\n mdi-pause-circle-outline\n ")]),e._v("\n 一時停止\n ")],1):e._e(),e._v(" "),!1===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.play()}}},[a("v-icon",[e._v("\n mdi-play-circle-outline\n ")]),e._v("\n 再生\n ")],1):e._e(),e._v(" "),!1===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.forward()}}},[a("v-icon",[e._v("\n mdi-step-forward\n ")]),e._v("\n 1秒送り\n ")],1):e._e(),e._v(" "),!0===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.seekingTime(10)}}},[a("v-icon",[e._v("\n mdi-fast-forward-10\n ")]),e._v("\n 10秒送り\n ")],1):e._e(),e._v(" "),!0===e.isPlay?a("v-btn",{staticClass:"ml-2 mt-2",attrs:{color:"green"},on:{click:function(t){return e.seekingTime(60)}}},[a("v-icon",[e._v("\n mdi-fast-forward-60\n ")]),e._v("\n 60秒送り\n ")],1):e._e()],1):e._e(),e._v(" "),a("modal",{scopedSlots:e._u([{key:"modal-title",fn:function(){return[e._v("\n ネットワークビデオレコーダーにログインできませんでした\n ")]},proxy:!0},{key:"modal-body",fn:function(){return[a("InputForm",{attrs:{inputType:"text",title:"username"},model:{value:e.login.username,callback:function(t){e.$set(e.login,"username",t)},expression:"login.username"}}),e._v(" "),a("InputForm",{attrs:{inputType:"password",title:"password"},model:{value:e.login.password,callback:function(t){e.$set(e.login,"password",t)},expression:"login.password"}})]},proxy:!0},{key:"modal-footer",fn:function(){return[a("SuccessButton",{attrs:{text:"このブラウザに記憶する"},on:{click:function(t){return e.updateLoginInfo()}}}),e._v(" "),a("CancelButton",{attrs:{text:"今回は入力しない"},on:{click:function(t){return e.cancelUpdateLoginInfo()}}})]},proxy:!0}]),model:{value:e.isUnauthorized,callback:function(t){e.isUnauthorized=t},expression:"isUnauthorized"}}),e._v(" "),a("modal",{scopedSlots:e._u([{key:"modal-title",fn:function(){return[e._v("\n ネットワークビデオレコーダーの映像が再生できませんでした(ERROR:"+e._s(e.errorCode)+"["),a("small",[e._v(e._s(e.errorMessage))]),e._v("])\n ")]},proxy:!0},{key:"modal-body",fn:function(){return[a("div",{staticClass:"fw-bold fs-4 text-warning"},[e._v("以下の点を今一度ご確認・設定の上、再生画面を開きなおしてください")]),e._v(" "),a("ul",{staticClass:"fw-bold fs-4"},[a("li",[e._v("設定されている値が正しいか今一度ご確認ください。")]),e._v(" "),a("li",[e._v("設定したネットワークビデオレコーダー("),a("a",{on:{click:function(t){return e.openToLink()}}},[a("b",[e._v("https://"+e._s(e.hostname)+":"+e._s(e.port))])]),e._v(")にアクセスしてカメラ映像を確認してください")]),e._v(" "),a("li",[a("a",{attrs:{href:"https://support.alligate.me/hc/ja/articles/25190258064409#h_01HFAS5VN2NTYYHK595QJJY9PZ",target:"_blank"}},[a("b",[e._v("こちらの記事")])]),e._v("から連携時の注意事項をご確認ください")])])]},proxy:!0}]),model:{value:e.isOtherError,callback:function(t){e.isOtherError=t},expression:"isOtherError"}})],1)},dm=[],gm=(a("bf19"),f["a"].extend({name:"TbEyeVideo",components:{InputForm:io,Modal:bn,SuccessButton:kr,CancelButton:fr},props:{videoId:{type:String,default:function(){return Math.random().toString(32).substring(2)}},isMinimum:{type:Boolean,default:function(){return!1}},replayStartDate:{type:Number,default:function(){return(new Date).getTime()}},username:{type:String,default:function(){return""}},password:{type:String,default:function(){return""}},hostname:{type:String,default:function(){return""}},channel:{type:Number,default:function(){return 1}},port:{type:Number,default:function(){return 80}},device:{type:String,default:function(){return""}},height:{type:Number,default:function(){return Math.floor(window.innerHeight)}},width:{type:Number,default:function(){return Math.floor(window.innerWidth)}}},data:function(){return{url:"url",player:null,playingTime:new Date,isPlay:!0,isUnauthorized:!1,isOtherError:!1,errorCode:0,errorMessage:"",innerHeight:0,innerWidth:0,login:{username:"",password:""}}},mounted:function(){this.player=document.getElementById(this.videoId),this.playingTime=new Date(this.replayStartDate),null!==this.player&&(this.player.playType=1,this.player.startTime=new Date(this.replayStartDate).toJSON(),this.player.secure=!0,this.player.addEventListener("error",this.onError,!1),this.player.addEventListener("statechange",this.onStatechange,!1),this.player.addEventListener("timestamp",this.onTimestamp,!1),this.player.play()),this.innerHeight=this.height,this.innerWidth=this.width,window.addEventListener("resize",this.onResize)},beforeDestroy:function(){window.removeEventListener("resize",this.onResize),null!==this.player&&(this.player.stop(),this.player.removeEventListener("timestamp",this.onTimestamp,!1),this.player.removeEventListener("error",this.onError,!1),this.player.removeEventListener("statechange",this.onStatechange,!1))},watch:{isOtherError:function(e){!1===e&&this.$emit("close")},isUnauthorized:function(e){!1===e&&this.$emit("rerender")}},methods:{onResize:function(){this.innerHeight=Math.floor(window.innerHeight-350),this.innerWidth=Math.floor(window.innerWidth)},onTimestamp:function(e){this.playingTime=new Date(e.detail.timestamp)},onStatechange:function(e){1===e.detail.readyState?this.isPlay=!0:2===e.detail.readyState&&(this.isPlay=!1)},onError:function(e){this.errorCode=e.detail.error,this.errorMessage=e.detail.message,518===e.detail.error||1027===e.detail.error?(this.isUnauthorized=!0,this.login.username=this.username,this.login.password=this.password,this.$emit("unauthorized"),this.stop()):[768].includes(e.detail.error)||(this.isOtherError=!0,this.stop())},play:function(){null!==this.player&&!1===this.player.isplay&&this.player.play()},stop:function(){null!==this.player&&!0===this.player.isplay&&this.player.stop()},pause:function(){null!==this.player&&!0===this.player.isplay&&this.player.pause()},resume:function(){null!==this.player&&!1===this.player.isplay&&this.player.resume()},forward:function(){null!==this.player&&!1===this.player.isplay&&this.player.forward()},backward:function(){null!==this.player&&!1===this.player.isplay&&this.player.backward()},seekingTime:function(e){if(null!==this.player){var t=new Date(this.playingTime.getTime()+1e3*e).toJSON();this.player.seekingTime=t,this.playingTime=new Date(t)}},updateLoginInfo:function(){this.$emit("update-login-info",this.login),this.isUnauthorized=!1},cancelUpdateLoginInfo:function(){this.$emit("close"),this.isUnauthorized=!1},openToLink:function(){window.open("https://".concat(this.hostname,":").concat(this.port),"_blank")}}})),pm=gm,mm=(a("7458"),Object(I["a"])(pm,um,dm,!1,null,"67a40734",null)),fm=mm.exports;C()(mm,{VBtn:pr["a"],VContainer:Zo["a"],VIcon:Gr["a"],VRow:Kr["a"]});for(var hm=new Date,vm=(new Date((new Date).setDate(hm.getDate()+30)),new Date((new Date).setDate(hm.getDate()-30))),bm=[],ym=0;ym<=59;ym++){var Im="";Im=ym<10?"0"+ym:ym.toString(),bm.push(Im)}var xm=f["a"].extend({name:"GateLogList",components:{ShowPerPage:mo,Pagination:xo,Searchbox:$r,SuccessButton:kr,GatePassageEdit:cm,DateTimePicker:Jp,CancelButton:fr,RadioButton:Fp,DatePicker:am,DisplayOption:Mo,Modal:bn,TbEye:fm,ModalTitle:Xc},mounted:function(){this.minutes=bm,console.log("goBack",this.authority),this.isDisableLog=!1===this.authority.isAdmin&&!1===this.authority.isAdminToViewUser&&!1===this.authority.isAdminToViewGroup},created:function(){"undefined"!==typeof localStorage.checkedLogGateList&&(this.selectedDisplayOption=JSON.parse(localStorage.checkedLogGateList))},props:{logGates:{type:Array,default:function(){return[]}},dataDate:{type:Array,default:function(){return[]}},gatePassageTotalCount:{type:Number,default:0},disableNextGate:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},groups:{type:Array,default:function(){return[]}},optionGate:{default:function(){return[]}},maxRecord:{type:Number,default:0},gateIdToSafieDeviceIds:{type:Object,default:function(){return{}}},gateIdToTbeyeDeviceIds:{type:Object,default:function(){return{}}},activeTab:{type:Number,default:0},errorMessageLogs:{type:String,default:""},goBack:{type:String,default:""}},data:function(){return{tab:null,selectedItem:[],showModal:!1,messageErrorDialog:"",displayOptionItems:[{label:"時間",value:"timestamp",isDisabled:!0},{label:"ユーザーID ",value:"userId"},{label:"ユーザー名",value:"userName"},{label:"ユーザー名ふりがな ",value:"userFurigana"},{label:"ゲートID",value:"gateId"},{label:"ゲート名",value:"gateName"},{label:"カード番号",value:"deviceId"},{label:"照合機器タイプ ",value:"deviceType"},{label:"ログID",value:"accessLogId"},{label:"ログ名称",value:"logLabel"},{label:"ゲートログNo ",value:"sequenceNo"},{label:"電池電圧 ",value:"voltage"},{label:"照合位置情報 ",value:"location"},{label:"メールアドレス ",value:"email"},{label:"備考1 ",value:"option1"},{label:"備考2 ",value:"option2"}],searchTargetItems:[{label:"ユーザー名",value:"userName"},{label:"ゲート名",value:"gateName"},{label:"ログ名称",value:"logLabel"},{label:"ユーザーID",value:"userId"},{label:"カード番号",value:"deviceId"},{label:"メールアドレス",value:"email"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"}],selectedDisplayOption:["timestamp","userName","gateName","logLabel","deviceId"],queryOptions:{},searchKey:"",page:1,perPage:100,perPageValue:100,dateStart:vm.toISOString().substr(0,10),dateEnd:(new Date).toISOString().substr(0,10),isDateStart:!1,isDateEnd:!1,dateStartExportCSV:"",dateEndExportCSV:"",typeExportCSV:"0",isDateStartCSV:!1,isDateEndCSV:!1,timeStartGate:"00:00",timeEndGate:"23:59",dateStartGate:"",dateEndGate:"",timeStartGateCSV:"00:00",timeEndGateCSV:"23:59",dateStartGateCSV:"",dateEndGateCSV:"",logType:"0",timeStart:"00:00",timeEnd:"23:59",replayStartDate:0,showTbeyeModal:!1,isRerender:!1,showTbeyeVideo:{},showOption:!1,isDisableLog:!1,timeWorktime:"00:00",hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],hourWorktime:"00",minuteWorktime:"00",minutes:[],authority:er.state.auth}},computed:{headers:{get:function(){var e=[];return this.selectedDisplayOption.includes("timestamp")&&e.push({text:"時間",align:"start",sortable:!0,value:"timestamp"}),this.selectedDisplayOption.includes("userId")&&e.push({text:"ユーザーID",align:"start",sortable:!0,value:"userId"}),this.selectedDisplayOption.includes("userName")&&e.push({text:"ユーザー名",align:"start",sortable:!0,value:"userName"}),this.selectedDisplayOption.includes("userFurigana")&&e.push({text:"ユーザー名ふりがな",align:"start",sortable:!0,value:"userFurigana"}),this.selectedDisplayOption.includes("gateId")&&e.push({text:"ゲートID",align:"start",sortable:!0,value:"gateId"}),this.selectedDisplayOption.includes("gateName")&&e.push({text:"ゲート名",align:"start",sortable:!0,value:"gateName"}),this.selectedDisplayOption.includes("deviceId")&&e.push({text:"カード番号",align:"start",sortable:!0,value:"deviceId"}),this.selectedDisplayOption.includes("deviceType")&&e.push({text:"照合機器タイプ",align:"start",sortable:!0,value:"deviceType"}),this.selectedDisplayOption.includes("accessLogId")&&e.push({text:"ログID",align:"start",sortable:!0,value:"accessLogId"}),this.selectedDisplayOption.includes("logLabel")&&e.push({text:"ログ名称",align:"start",sortable:!0,value:"logLabel"}),this.selectedDisplayOption.includes("sequenceNo")&&e.push({text:"ゲートログNo",align:"start",sortable:!0,value:"sequenceNo"}),this.selectedDisplayOption.includes("voltage")&&e.push({text:"電池電圧",align:"start",sortable:!0,value:"voltage"}),this.selectedDisplayOption.includes("location")&&e.push({text:"照合位置情報",align:"start",sortable:!0,value:"location"}),this.selectedDisplayOption.includes("email")&&e.push({text:"メールアドレス",align:"start",sortable:!0,value:"email"}),this.selectedDisplayOption.includes("option1")&&e.push({text:"備考1",align:"start",sortable:!0,value:"option1"}),this.selectedDisplayOption.includes("option2")&&e.push({text:"備考2",align:"start",sortable:!0,value:"option2"}),e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},isDisable:{get:function(){return!1},set:function(e){}},isExportCSVWorkTimeType:{get:function(){return"0"===this.typeExportCSV},set:function(e){}},isDisableSearch:{get:function(){return!0===this.isDisableLog||!0===this.isGetDataList},set:function(e){}},groupNames:{get:function(){return this.groups.map((function(e){return{text:e.groupName,value:e.groupId}}))},set:function(){}}},watch:{page:function(e){e>1&&(this.perPage=e*this.perPageValue,this.queryOptions=this.optionGate,this.queryOptions.page=e,this.queryOptions.logType=this.logType,this.queryOptions.perPage=this.perPageValue,this.$emit("getGateLogList",this.queryOptions))},goBack:function(e){this.queryOptions.text="",void 0!==Object(br["a"])(localStorage.gateName)&&"undefined"!==localStorage.gateName&&""!==localStorage.gateName&&"/groups"===this.goBack&&(this.queryOptions.text=localStorage.gateName),void 0!==Object(br["a"])(localStorage.userName)&&"undefined"!==localStorage.userName&&""!==localStorage.userName&&"/user"===this.goBack&&(this.queryOptions.text=localStorage.userName),this.queryOptions.page=1,this.queryOptions.dateStart="",this.queryOptions.dateEnd="",this.queryOptions.targets=["userName","gateName","logLabel","userId","deviceId"],this.queryOptions.logType="0",this.queryOptions.perPage=this.perPageValue,this.$emit("getGateLogList",this.queryOptions)},minuteWorktime:function(e){this.$emit("getNewTimeStart",this.formatTime(this.hourWorktime,e)),this.timeWorktime=this.formatTime(this.hourWorktime,e)},hourWorktime:function(e){this.timeWorktime=this.formatTime(e,this.minuteWorktime),this.$emit("getNewTimeStart",this.timeWorktime)},showTbeyeModal:function(e){var t=this;!0===e?setTimeout((function(){t.isRerender=!0}),100):(this.isRerender=!1,this.showTbeyeVideo={})}},methods:{formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]1&&(this.perPage=e*this.perPageValue,this.queryOptions=this.optionOwner,this.queryOptions.page=e,this.queryOptions.perPage=this.perPageValue,this.$emit("getOperationLogList",this.queryOptions))}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0&&(e.body.logs.forEach((function(e){e.unixtimestamp=e.timestamp,e.timestamp=a.converToDateLog(e.timestamp),a.logGates.push(e)})),a.maxRecord=e.body.maxRecords,e.body.maxRecords>e.body.endRecord&&(a.disableNextGate=!0)),a.isGetDataList=!1})).then(null,(function(e){switch(a.isGetDataList=!1,e.status){case 400:a.errorMessageLogsGate=Qt;break;case 403:"Unauthorized"===e.message?a.errorMessageLogsGate=ta:a.errorMessageLogsGate=ia;break;case 404:a.errorMessageLogsGate=aa;break;case 500:a.errorMessageLogsGate=fa;break;case 503:a.errorMessageLogsGate=ha;break;default:a.errorMessageLogsGate=ba;break}}))},converToDateLog:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss")},converToDateLogExport:function(e){return null!==e&&""!==e?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):""},clickExportLog:function(e){console.log(e),this.pageLog=1,this.exportData=[],this.arrayDataExportWorktimeDay=[],this.logsDataLoad=0,this.logType=e.typeExportCSV,this.notBefore=e.dateStartExportCSV,this.notAfter=e.dateEndExportCSV,this.worktimeTime=e.worktimeTime+":00",this.loading=!0,"0"!==e.typeExportCSV?this.getDataLog(1):(this.dataUser=[],this.getDataLogWorktimeDateStartDateEnd())},clickExportOperationLog:function(e){this.pageLog=1,this.exportData=[],this.logsDataLoadOperation=0,this.notBefore=e.dateStartExportCSV,this.notAfter=e.dateEndExportCSV,this.loading=!0,this.dataUser=[],this.getDataExportOperationLog(1)},searchOperationLog:function(e){var t=!0;this.getOperationLogList(e,t)},searchGateLog:function(e){var t=!0;console.log(e),this.getGateLogList(e,t)},formatDateYYYYMMDD:function(e){return e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)},addDays:function(e,t){var a=new Date(e);return a.setDate(a.getDate()+t),a},getDataLogWorktimeDateStartDateEnd:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u,d,g;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(a=e.notBefore.split(" ")[0].split("-"),s=new Date(Number(a[0]),Number(a[1])-1,Number(a[2])),r=e.notAfter.split(" ")[0].split("-"),o=new Date(Number(r[0]),Number(r[1])-1,Number(r[2])),n=864e5,i=[],e.pageLog=Math.round(Math.abs((o.getTime()-s.getTime())/n))+1,l=0;l0?s.body.worktime.forEach((function(a){var r;t.arrayDataExportWorktimeDay[e.index].push((r={},Object(Lc["a"])(r,"ユーザーID",a.userId),Object(Lc["a"])(r,"ユーザー名",a.name),Object(Lc["a"])(r,"ユーザー名ふりがな",a.furigana),Object(Lc["a"])(r,"メールアドレス",a.email),Object(Lc["a"])(r,"時間指定",s.body.date?s.body.date:""),Object(Lc["a"])(r,"entry",t.converToDateLogExport(a.entry)),Object(Lc["a"])(r,"exit",t.converToDateLogExport(a.exit)),r))})):t.arrayDataExportWorktimeDay[e.index].push((r={},Object(Lc["a"])(r,"ユーザーID",""),Object(Lc["a"])(r,"ユーザー名",""),Object(Lc["a"])(r,"ユーザー名ふりがな",""),Object(Lc["a"])(r,"メールアドレス",""),Object(Lc["a"])(r,"時間指定",""),Object(Lc["a"])(r,"entry",""),Object(Lc["a"])(r,"exit",""),r));a(!0)}),(function(s){var r;t.arrayDataExportWorktimeDay[e.index].push((r={},Object(Lc["a"])(r,"ユーザーID",""),Object(Lc["a"])(r,"ユーザー名",""),Object(Lc["a"])(r,"ユーザー名ふりがな",""),Object(Lc["a"])(r,"メールアドレス",""),Object(Lc["a"])(r,"時間指定",""),Object(Lc["a"])(r,"entry",""),Object(Lc["a"])(r,"exit",""),r)),console.log(s),a(!1)}))}))},getDataLogWorktime:function(e){var t=this,a=de;this.$http.get(a).then((function(e){var a;e.body.worktime.length>0?e.body.worktime.forEach((function(a){var s;t.exportData.push((s={},Object(Lc["a"])(s,"ユーザーID",a.userId),Object(Lc["a"])(s,"ユーザー名",a.name),Object(Lc["a"])(s,"ユーザー名ふりがな",a.furigana),Object(Lc["a"])(s,"メールアドレス",a.email),Object(Lc["a"])(s,"時間指定",e.body.date?e.body.date:""),Object(Lc["a"])(s,"entry",t.converToDateLogExport(a.entry)),Object(Lc["a"])(s,"exit",t.converToDateLogExport(a.exit)),s))})):t.exportData.push((a={},Object(Lc["a"])(a,"ユーザーID",""),Object(Lc["a"])(a,"ユーザー名",""),Object(Lc["a"])(a,"ユーザー名ふりがな",""),Object(Lc["a"])(a,"メールアドレス",""),Object(Lc["a"])(a,"時間指定",""),Object(Lc["a"])(a,"entry",""),Object(Lc["a"])(a,"exit",""),a));t.logsDataLoad++})).then(null,(function(e){var a;t.exportData.push((a={},Object(Lc["a"])(a,"ユーザーID",""),Object(Lc["a"])(a,"ユーザー名",""),Object(Lc["a"])(a,"ユーザー名ふりがな",""),Object(Lc["a"])(a,"メールアドレス",""),Object(Lc["a"])(a,"時間指定",""),Object(Lc["a"])(a,"entry",""),Object(Lc["a"])(a,"exit",""),a)),console.log(e),t.logsDataLoad++}))},getSafieRelationGateDevice:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise((function(a,s){var r=25,o="".concat(Ie,"?limit=").concat(r)+"&page=".concat(e,"&sortKey=ASC:deviceId");t.$http.get(o).then((function(s){if(s.body.relationsGateDevice){for(var r=s.body.relationsGateDevice,o=0;o0?(t.pageLog=Math.ceil(e.body.maxRecords/1e3),e.body.logs.forEach((function(e){t.exportData.push({"時間":t.converToDateLog(e.timestamp),"ユーザーID":e.userId,"ユーザー名":e.userName,"ユーザー名ふりがな":e.userFurigana,"ゲートID":e.gateId,"ゲート名":e.gateName,"カード番号":e.deviceId,"照合機器タイプ":e.deviceType,"ログID":e.accessLogId,"ログ名称":e.logLabel,"ゲートログNo":e.sequenceNo,"電池電圧":e.voltage,"照合位置情報:緯度":"","照合位置情報:経度":"","メールアドレス":e.email,"備考1":e.option1,"備考2":e.option2})})),t.logsDataLoad++):(t.exportData.push({"時間指定":"","ユーザーID":"","ユーザー名":"","ユーザー名ふりがな":"","ゲートID":"","ゲート名":"","カード番号":"","照合機器タイプ":"","ログID":"","ログ名称":"","ゲートログNo":"","電池電圧":"","照合位置情報:緯度":"","照合位置情報:経度":"","メールアドレス":"","備考1":"","備考2":""}),t.logsDataLoad++)})).then(null,(function(e){t.logsDataLoad++}))},getDataExportOperationLog:function(e){var t=this,a="";""!==this.optionOwner.text&&void 0!==this.optionOwner.text&&null!==this.optionOwner.text&&(a="&scorp="+this.optionOwner.targets+"&keyword="+this.optionOwner.text);var s=z+"?limit=1000&page="+e+(""!==a?a:"")+(""!==this.notBefore?"¬Before="+this.formatTimestamp(this.notBefore):"")+(""!==this.notAfter?"¬After="+this.formatTimestamp(this.notAfter):"");this.$http.get(s).then((function(e){e.body.maxRecords>0?(t.pageLog=Math.ceil(e.body.maxRecords/1e3),e.body.logs.forEach((function(e){t.exportData.push({"時間":t.converToDateLog(e.timestamp),"ユーザーID":e.userId,"ユーザー名":e.name,"ふりがな":e.furigana,"操作ログID":e.configUserOperationLogId.toString(),"メッセージ":e.logLabel,"操作対象":e.targetId,"操作内容":e.details})})),t.logsDataLoadOperation++):(t.exportData.push({"時間":"","ユーザーID":"","ユーザー名":"","ふりがな":"","操作ログID":"","メッセージ":"","操作対象":"","操作内容":""}),t.logsDataLoadOperation++)})).then(null,(function(e){t.logsDataLoadOperation++}))},downloadCSV:function(){var e,t=a("21a6"),s=this.convertArrayOfObjectsToCSV({data:this.exportData});e="logs-data.csv";var r=new Uint8Array([239,187,191]),o=new Blob([r,s],{type:"text/csv;charset=utf-8;"}),n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(n)t(o,e);else if(console.log("window.navigator.msSaveOrOpenBlob",window.navigator.msSaveOrOpenBlob),void 0!==window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(o,e);else{var i=document.createElement("a");i.setAttribute("href",window.URL.createObjectURL(o)),i.setAttribute("download",e),i.setAttribute("target","_blank"),i.click(),i.remove()}},convertArrayOfObjectsToCSV:function(e){var t,a,s,r,o,n;return n=e.data||null,null!=n&&n.length?(r=e.columnDelimiter||",",o=e.lineDelimiter||"\n",s=Object.keys(n[0]),t="",t+=s.join(r),t+=o,n.forEach((function(e){a=0,s.forEach((function(s){a>0&&(t+=r),t+=e[s],a++})),t+=o})),t):null},getOperationLogList:function(e,t){var a=this;console.log("AAAA"),this.isGetDataList=!0,this.disableNextOwner=!1;var s=""!==e.dateStart?e.dateStart:$m+" 00:00",r=""!==e.dateEnd?e.dateEnd:Nm+" 23:59",o="";this.optionOwner=e,t&&(this.logOwner=[]),o=z+"?limit="+e.perPage+"&page="+e.page+"&scorp="+e.targets+"&keyword="+e.text+"¬Before="+this.formatTimestamp(s)+"¬After="+this.formatTimestamp(r),this.$http.get(o).then((function(e){a.maxRecordOwner=e.body.maxRecords,a.errorMessageLogsGate="",a.errorMessageLogs="",e.body.maxRecords>0&&(e.body.logs.forEach((function(e){e.timestamp=a.converToDateLog(e.timestamp),a.logOwner.push(e)})),a.maxRecord=e.body.maxRecords,e.body.maxRecords>e.body.endRecord&&(a.disableNextOwner=!0)),a.isGetDataList=!1})).then(null,(function(e){switch(a.isGetDataList=!1,e.status){case 400:a.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?a.errorMessageLogs=ta:a.errorMessageLogs=ia;break;case 404:a.errorMessageLogs=aa;break;case 500:a.errorMessageLogs=fa;break;case 503:a.errorMessageLogs=ha;break;default:a.errorMessageLogs="アクセス情報が不正です。ログインし直してからやり直してください。";break}}))},getTbeyeRelationGateDevice:function(e){var t=this;return new Promise((function(a,s){var r=25,o="".concat(xe,"?limit=").concat(r)+"&page=".concat(e,"&sortKey=ASC:gateId&isExceptOptionalGate=true");t.$http.get(o).then((function(s){if(s.body.relationsGateDevice){for(var r=s.body.relationsGateDevice,o=0;o0&&(e>=this.pageLog?(console.log("newVal",e),console.log("pageLog",this.pageLog),this.downloadCSV(),this.reset()):"0"===this.logType||this.getDataLog(e+1))},logsDataLoadOperation:function(e,t){e>0&&(e>=this.pageLog?(console.log("newVal",e),console.log("pageLog",this.pageLog),this.downloadCSV(),this.reset()):this.getDataExportOperationLog(e+1))}}}),Bm=jm,zm=Object(I["a"])(Bm,kp,Sp,!1,null,null,null),Hm=zm.exports,Km=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("gate-list-template",{attrs:{loading:e.loading,inPage:e.inPage,dataGates:e.dataGates,gateTotalCount:e.gateTotalCount,isGetDataList:e.isGetDataList,page:e.currPage,dataGatesLock:e.dataGatesLock,pageLock:e.currPageLock,perPage:e.perPage,perPageLock:e.perPageLock,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,isFinishProcess:e.isFinishProcess,errorMessageProcess:e.errorMessageProcess,progress:e.progress,isFinishProcessUser:e.isFinishProcessUser,showProgressExportCSV:e.showProgressExportCSV,errorMessageCsvXlsx:e.errorMessageCsvXlsx,showConfirm:e.showConfirm,showModal:e.showModal,gateId:e.gateId,gateName:e.gateName,safieRelationsGateDevice:e.safieRelationsGateDevice,successMessageModal:e.successMessageModal,errorMessageModal:e.errorMessageModal,isGetDataListLock:e.isGetDataListLock,gateTotalCountLock:e.gateTotalCountLock,gateLockExpanedGroup:e.gateLockExpanedGroup,gateLockExpanedUser:e.gateLockExpanedUser,showProgressGroup:e.showProgressGroup,groupTotalCountDel:e.groupTotalCountDel,totalDataRowProcessGroup:e.totalDataRowProcessGroup,progressGroup:e.progressGroup,successItemProcessGroup:e.successItemProcessGroup,errorMessageProcessGroup:e.errorMessageProcessGroup,isFinishProcessGroup:e.isFinishProcessGroup,showProgressUser:e.showProgressUser,successItemProcessUser:e.successItemProcessUser,totalDataRowProcessUser:e.totalDataRowProcessUser,errorMessageProcessUser:e.errorMessageProcessUser,progressUser:e.progressUser,errorMessageLogsPhone:e.errorMessageLogsPhone,successMessageLogsPhone:e.successMessageLogsPhone,lastLog:e.lastLog,btnUnlock:e.btnUnlock,isFinishHandleCommand:e.isFinishHandleCommand,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,isGateEditModalShow:e.isGateEditModalShow,isGateLockModalShow:e.isGateLockModalShow,isReflectionStatusListModalShow:e.isReflectionStatusListModalShow,gateExpanedGroup:e.gateExpanedGroup,isReRenderGroup:e.isReRenderGroup,isRemoveGroupSelected:e.isRemoveGroupSelected,gateExpanedUser:e.gateExpanedUser,isReRenderUser:e.isReRenderUser,isRemoveUserSelected:e.isRemoveUserSelected,gatePassword:e.gatePassword,typeAction:e.typeAction,showModalImport:e.showModalImport,isShowViewCSV:e.isShowViewCSV,showProgressImport:e.showProgressImport,successItemImport:e.successItemImport,totalDataRowImport:e.totalDataRowImport,errorMessageImport:e.errorMessageImport,progressCsvXlsx:e.progressCsvXlsx,sheetUserName:e.sheetUserName,actionUpdateValidLock:e.actionUpdateValidLock,showConfirmUpdateValidLock:e.showConfirmUpdateValidLock,showProgressUpdateValidLock:e.showProgressUpdateValidLock,totalDataRowProcessUpdateValidLock:e.totalDataRowProcessUpdateValidLock,successItemProcessUpdateValidLock:e.successItemProcessUpdateValidLock,progressUpdateValidLock:e.progressUpdateValidLock,errorMessageProcessUpdateValidLock:e.errorMessageProcessUpdateValidLock,isFinishProcessUpdateValidLock:e.isFinishProcessUpdateValidLock,dataRelationGate:e.dataRelationGate,expandData:e.expandData,authority:e.authority},on:{changePerPage:function(t){return e.changePerPage(t)},clickConfirm:function(t){return e.clickConfirm(t)},closeDialogConfirm:function(t){return e.closeDialogConfirm(t)},closeModalProgress:function(t){return e.closeModalProgress(t)},clickAddGate:function(t){return e.clickAddGate(t)},clickEditGate:function(t){return e.clickEditGate(t)},changePage:function(t){return e.changePage(t)},clickEditGateLock:function(t){return e.clickEditGateLock(t)},"search-gate":function(t){return e.searchGate(t)},"search-gate-lock":function(t){return e.searchGateLock(t)},goReflectionPage:function(t){return e.goReflectionPage(t)},ChangeProperty:e.ChangeProperty,goLogPage:function(t){return e.goLogPage(t)},clickRemoteUnlock:function(t){return e.clickRemoteUnlock(t)},"change-expanded-gate":function(t){return e.changeExpandedGate(t)},"change-expanded-gate-lock":function(t){return e.changeExpandedGateLock(t)},"click-leave-user":function(t){return e.clickLeaveUser(t)},"change-expanded-group":function(t){return e.changeExpandedGroup(t)},"change-page-group":function(t){return e.changePageGroup(t)},"change-page-user":function(t){return e.changePageUser(t)},"show-only-isVaild":function(t){return e.ShowOnlyIsVaild(t)},"click-gate-action":function(t){return e.clickGateAction(t)},clickUnClock:function(t){return e.clickUnClock(t)},closeModalUnClock:function(t){return e.closeModalUnClock(t)},changeTab:function(t){return e.changeTab(t)},closeImportCSV:function(t){return e.closeImportCSV()},clickImportCSV:function(t){return e.clickImportCSV(t)},closeModalProcessCSV:function(t){return e.closeModalProcessCSV(t)},clickExportExcel:function(t){return e.clickExportExcel()},clickImportExcel:function(t){return e.clickImportExcel(t)},closeModalProgressImport:function(t){return e.closeModalProgressImport()},showDialogImport:function(t){return e.showDialogImport(t)},"change-page-user-lock":function(t){return e.changePageUserLock(t)},"change-page-group-lock":function(t){return e.changePageGroupLock(t)},"change-expanded-group-lock":function(t){return e.changeExpandedGroupLock(t)},clickRemoveUserLock:function(t){return e.clickRemoveUserLock(t)},clickRemoveGroupLock:function(t){return e.clickRemoveGroupLock(t)},closeModalProgressUserLock:function(t){return e.closeModalProgressUserLock(t)},closeModalProgressGroupLock:function(t){return e.closeModalProgressGroupLock(t)},clickExportGateLockCSV:function(t){return e.clickExportGateLockCSV(t)},passwordGenerate:function(t){return e.passwordGenerate(t)},closePasswordGenerate:function(t){return e.closePasswordGenerate(t)},openHandleCommand:function(t){return e.openHandleCommand(t)},handleCommand:function(t){return e.handleCommand(t)},getLog:function(t){return e.getLog(t)},clickCheckBoxExportGateInfoCSV:function(t){return e.clickCheckBoxExportGateInfoCSV(t)},changePerPageLock:function(t){return e.changePerPageLock(t)},changePageLock:function(t){return e.changePageLock(t)},clickUpdateValid:function(t){return e.clickUpdateValid(t)},noChoiceUpdateValidLock:function(t){return e.noChoiceUpdateValidLock()},yesChoiceUpdateValidLock:function(t){return e.yesChoiceUpdateValidLock()},closeModalProgressUpdateValidLock:function(t){return e.closeModalProgressUpdateValidLock()},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},"loading-from-child-modal":function(t){return e.loadingModal(t)},"remove-gate":function(t){return e.removeGate(t)},"load-gates":function(t){return e.loadGates(t)},"load-all-gate":function(t){return e.loadAllGates(t)},"add-gate":function(t){return e.addGate(t)},"change-page-gate-all":function(t){return e.changePageGateAll(t)},"change-per-page-gate-all":function(t){return e.changePerPageGateAll(t)},"confirm-action":function(t){return e.confirmAction(t)},clickGroupDetail:function(t){return e.$emit("clickGroupDetail",t)},"close-modal-control":e.closeModalGate,"get-gate-isValid":function(t){return e.getGateIsValid(t)},"close-modal-page-from-add":function(t){return e.$emit("close-modal-page-from-add")},"close-modal-control-add-other":function(t){return e.closeModalGateAdd(t)},"change-sort":function(t){return e.changeSort(t)}}})},Ym=[],qm=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("v-container",{class:"modal-group"===e.inPage?"pt-0":"pa-0"},[a("gate-list-table-modal",{attrs:{inPage:e.inPage,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,authority:e.authority,isGetDataList:e.isGetDataList,safieRelationsGateDevice:e.safieRelationsGateDevice,gateTotalCount:e.gateTotalCount,searchTargetItems:"modal-group"===e.inPage?e.searchTargetItemsLock:e.searchTargetItems,dataGates:e.dataGates,page:e.page,gateName:e.gateName,showModal:e.showModal,perPage:e.perPage,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageModal:e.errorMessageModal,successMessageModal:e.successMessageModal,isReflectionStatusListModalShow:e.isReflectionStatusListModalShow,isGateEditModalShow:e.isGateEditModalShow,isGateLockModalShow:e.isGateLockModalShow,gateExpanedGroup:e.gateExpanedGroup,isReRenderGroup:e.isReRenderGroup,isRemoveGroupSelected:e.isRemoveGroupSelected,gateExpanedUser:e.gateExpanedUser,isReRenderUser:e.isReRenderUser,isRemoveUserSelected:e.isRemoveUserSelected,dataRelationGate:e.dataRelationGate,expandData:e.expandData,btnUnlock:e.btnUnlock,gatePassword:e.gatePassword,errorMessageLogsPhone:e.errorMessageLogsPhone,successMessageLogsPhone:e.successMessageLogsPhone,lastLog:e.lastLog,isFinishHandleCommand:e.isFinishHandleCommand,showModalImport:e.showModalImport,showProgressExportCSV:e.showProgressExportCSV,progressCsvXlsx:e.progressCsvXlsx,errorMessageCsvXlsx:e.errorMessageCsvXlsx,showProgressImport:e.showProgressImport,successItemImport:e.successItemImport,totalDataRowImport:e.totalDataRowImport,errorMessageImport:e.errorMessageImport,isFinishProcess:e.isFinishProcess,sheetUserName:e.sheetUserName,isShowViewCSV:e.isShowViewCSV},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},clickUnClock:function(t){return e.$emit("clickUnClock",t)},closeModalUnClock:function(t){return e.$emit("closeModalUnClock",t)},postUnLock:function(t){return e.$emit("postUnLock",t)},"change-page":function(t){return e.$emit("changePage",t)},goReflectionPage:function(t){e.$emit("goReflectionPage",t),e.isReloadData=!1},goLogPage:function(t){return e.$emit("goLogPage",t)},clickEditGate:function(t){e.$emit("clickEditGate",t),e.isReloadData=!1},clickEditGateLock:function(t){return e.$emit("clickEditGateLock",t)},clickRemoteUnlock:function(t){return e.$emit("clickRemoteUnlock",t)},"change-expanded-gate":function(t){return e.$emit("change-expanded-gate",t)},"click-leave-user":function(t){return e.$emit("click-leave-user",t)},clickConfirm:function(t){return e.$emit("clickConfirm",t)},"change-page-group":function(t){return e.$emit("change-page-group",t)},"change-expanded-group":function(t){return e.$emit("change-expanded-group",t)},"search-gate":function(t){return e.$emit("search-gate-lock",t)},"click-go-controller":function(t){return e.clickGoController()},"change-page-user":function(t){return e.$emit("change-page-user",t)},"loading-from-child":function(t){return e.$emit("loading-from-child-modal",t)},"remove-gate":function(t){return e.$emit("remove-gate",t)},"load-gates":function(t){return e.$emit("load-gates",t)},"change-page-gate-all":function(t){return e.$emit("change-page-gate-all",t)},"change-per-page-gate-all":function(t){return e.$emit("change-per-page-gate-all",t)},"load-all-gate":function(t){return e.$emit("load-all-gate",t)},"add-gate":function(t){return e.$emit("add-gate",t)},"confirm-action":function(t){return e.$emit("confirm-action",t)},clickUpdateValid:function(t){return e.$emit("clickUpdateValid",t)},"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},passwordGenerate:function(t){return e.$emit("passwordGenerate",t)},closePasswordGenerate:function(t){return e.$emit("closePasswordGenerate",t)},openHandleCommand:function(t){return e.$emit("openHandleCommand",t)},handleCommand:function(t){return e.$emit("handleCommand",t)},getLog:function(t){return e.$emit("getLog",t)},closeModalProcessCSV:function(t){return e.$emit("closeModalProcessCSV",t)},closeImportCSV:function(t){return e.$emit("closeImportCSV",t)},clickImportCSV:function(t){return e.$emit("clickImportCSV",t)},clickExportCSV:function(t){return e.$emit("clickExportGateLockCSV",t)},showDialogImport:function(t){return e.$emit("showDialogImport",t)},clickCheckBoxExportGateInfoCSV:function(t){return e.$emit("clickCheckBoxExportGateInfoCSV",t)},closeModalProgressImport:function(t){return e.$emit("closeModalProgressImport",t)},clickGroupDetail:function(t){return e.$emit("clickGroupDetail",t)},"close-modal-control":function(t){return e.$emit("close-modal-control",t)},"get-gate-isValid":function(t){return e.$emit("get-gate-isValid",t)},"close-modal-page-from-add":function(t){return e.$emit("close-modal-page-from-add")},"change-sort":function(t){return e.$emit("change-sort",t)}}})],1),e._v(" "),a("Modal",{attrs:{title:0===e.actionUpdateValidLock?"ゲートを有効化":"ゲートを無効化",text:0===e.actionUpdateValidLock?"チェックしたゲートを有効化します。":"チェックしたゲートを無効化します。",smallScreen:"600px",className:"common-modal"},on:{close:function(t){return e.$emit("noChoiceUpdateValidLock")}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("yesChoiceUpdateValidLock")}}})]},proxy:!0}]),model:{value:e.showConfirmUpdateValidLock,callback:function(t){e.showConfirmUpdateValidLock=t},expression:"showConfirmUpdateValidLock"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressUpdateValidLock,callback:function(t){e.showProgressUpdateValidLock=t},expression:"showProgressUpdateValidLock"}},[a("v-card",[0===e.actionUpdateValidLock?a("v-card-title",{staticClass:"background-color-green"},[e._v("ゲートを有効化")]):e._e(),e._v(" "),1===e.actionUpdateValidLock?a("v-card-title",{staticClass:"background-color-green"},[e._v("ゲートを無効化")]):e._e(),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcessUpdateValidLock>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressUpdateValidLock,callback:function(t){e.progressUpdateValidLock=t},expression:"progressUpdateValidLock"}},[a("strong",[e._v(e._s(Math.round(e.progressUpdateValidLock))+"%")])]),e._v(" "),e.successItemProcessUpdateValidLock>0&&0===e.actionUpdateValidLock?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcessUpdateValidLock)+"件中"+e._s(e.successItemProcessUpdateValidLock)+"件を有効化しました。")]):e._e(),e._v(" "),e.successItemProcessUpdateValidLock>0&&1===e.actionUpdateValidLock?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcessUpdateValidLock)+"件中"+e._s(e.successItemProcessUpdateValidLock)+"件を無効化しました。")]):e._e(),e._v(" "),e.errorMessageProcessUpdateValidLock.length>0?a("div",[0===e.actionUpdateValidLock?a("span",{staticClass:"error-box-title"},[e._v("有効化失敗")]):e._e(),e._v(" "),1===e.actionUpdateValidLock?a("span",{staticClass:"error-box-title"},[e._v("無効化失敗")]):e._e(),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcessUpdateValidLock,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcessUpdateValidLock?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgressUpdateValidLock")}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:(e.typeAction,"関連付け解除"),text:0===e.typeAction?"この通行権限グループとの関連付けを解除しますか?":"このユーザーとの関連付けを解除しますか?",smallScreen:"600px",className:"common-modal"},on:{close:function(t){return e.$emit("closeDialogConfirm")}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("click-gate-action")}}})]},proxy:!0}]),model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[0===e.typeAction||1===e.typeAction?a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け解除")]):e._e(),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0&&0===e.typeAction?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を解除しました。")]):e._e(),e._v(" "),e.successItemProcess>0&&1===e.typeAction?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を解除しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgress")}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:"反映状況一覧","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){e.isReflection=!1}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isReflection?a("ReflectionStatusListPage",{on:{deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)}}}):e._e()]},proxy:!0}]),model:{value:e.isReflection,callback:function(t){e.isReflection=t},expression:"isReflection"}}),e._v(" "),a("Modal",{attrs:{title:"ゲート編集","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){e.isGateEdit=!1,e.deleteBridgeProperty()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isGateEdit?a("GateEditPage",{attrs:{isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,authority:e.authority},on:{getReload:function(t){return e.getReload(t)},deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child-modal",t)},"load-gates":function(t){return e.$emit("load-gates",t)}}}):e._e()]},proxy:!0}]),model:{value:e.isGateEdit,callback:function(t){e.isGateEdit=t},expression:"isGateEdit"}})],1)},Wm=[],Jm=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-gate-table no-box-shadow gate-list-modal-table"},[a("v-container",{staticClass:"tab-gate-log-list"},[a("div",{staticClass:"round-action ",class:"modal-group"===e.inPage?"pa-0":""},["modal-group"===e.inPage?a("v-row",{staticClass:"btn-div mr-1",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mt-0 "},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.goControlAdd}},[e._v("\n 制御盤登録\n ")]):e._e()],1),e._v(" "),a("div",{staticClass:"text-center mr-1"},[!0===e.authority.isAdmin?a("v-menu",{attrs:{"open-on-hover":"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"btn-primary"},"v-btn",r,!1),s),[e._v("\n ゲート登録\n ")])]}}],null,!1,4046293573)},[e._v(" "),!0===e.authority.isAdmin?a("v-list",[a("v-list-item",{attrs:{link:""},on:{click:function(t){e.isGateLockModalShow=!0,e.isGateLockAdd=!0,e.isControlEdit=!1,e.isReload=!1}}},[a("v-list-item-title",[e._v("ゲート登録")])],1),e._v(" "),a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",!0)}}},[a("v-list-item-title",[e._v("一括登録")])],1)],1):e._e()],1):e._e()],1),e._v(" "),!0===e.authority.isAdmin?a("div",{staticClass:"text-center mt-0 "},[a("action-button",{attrs:{text:"アクション ▼","action-items":e.actionItems,disabled:0===e.selectedItem.length},on:{"click-enable":function(t){e.isConfirmAction=!0,e.type="enable"},"click-disable":function(t){e.isConfirmAction=!0,e.type="disable"}}})],1):e._e()]):a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{cols:"12"}},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-10"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"12",lg:"6",sm:"12",md:"6"}},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-second",attrs:{outlined:"",disabled:0===e.selectedItem.length},on:{click:function(t){e.isConfirm=!0}}},[e._v("\n チェックしたゲートを通行権限グループから削除する\n ")]):e._e()],1),e._v(" "),a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"12",lg:"6",sm:"12",md:"6"}},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-primary",attrs:{disabled:e.isDisable,outlined:""},on:{click:function(t){return e.loadGate()}}},[e._v("\n 他のゲートを通行権限グループに追加する\n ")]):e._e()],1)],1)])],1)],1),e._v(" "),a("v-row",{staticClass:"mt-3"},[a("v-col",{attrs:{cols:"12"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search ",attrs:{searchTargetItems:e.searchTargetItems,title:"ゲートを検索",disabled:e.isGetDataList},on:{search:function(t){return e.$emit("search-gate",t)}}})],1)],1)],1)])],1),e._v(" "),""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",{staticClass:"mt-3 border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-5 ",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.gateTotalCount}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-checkbox",{staticClass:"text-caption-checkbox mr-5",attrs:{label:"有効なゲートのみ表示",color:"green",dense:"","hide-details":"",disabled:e.isGetDataList},model:{value:e.showValid,callback:function(t){e.showValid=t},expression:"showValid"}}),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),e.showOption?a("v-row",{staticClass:"pt-0 pb-0 mt-1"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.isGetDataList,isVaildOnly:e.isVaildOnly,isVaildOnlyShow:!1},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},input:function(t){return e.CheckColumn(t)}},model:{value:e.selectedDisplayOptionModal,callback:function(t){e.selectedDisplayOptionModal=t},expression:"selectedDisplayOptionModal"}})],1):e._e()],1),e._v(" "),a("v-row",[a("v-col",[a("div",{staticClass:"round-data table-affiliation",staticStyle:{position:"relative"}},["modal-group"===e.inPage?a("ModalLoading",{attrs:{loading:e.isGetDataList}}):e._e(),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table table-no-bg customize-table-scroll",class:{"modal-table":"modal-group"===e.inPage},attrs:{"mobile-breakpoint":0,"must-sort":"",headers:e.headers,loading:e.isGetDataList,items:e.dataGatesLoad,"items-per-page":e.perPage,"item-key":"relationId","no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"",expanded:e.expanded},on:{"update:options":function(t){e.selectedItem=[],"modal-group"!==e.inPage&&e.$emit("change-sort",t)},"update:expanded":function(t){e.expanded=t}},scopedSlots:e._u([{key:"item.controller.name",fn:function(t){var s=t.item;return[void 0!==s.controller&&"ALIG-030"===s.gate.gateModelCode?a("div",{class:s.class},[a("text-link",{class:["modal-group"===e.inPage?"item-user-id ":"item-user-id"],attrs:{text:s.controller.name},on:{click:function(t){return e.goDetailControl(s.controller.controllerId)}}})],1):a("div",{class:[1!==s.index?"no-controller":""]},[e._v("\n ALLIGATE Pro以外\n ")])]}},{key:"item.gate.isValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateId",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.name",fn:function(t){t.item;return[a("span",{class:e.checkControllerName(e.headers)?"":"hide-row"})]}},{key:"item.gate.gateModelId",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateModelCode",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateModelName",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.iconType",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.makerCode",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.customizable",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.target",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.controlTime",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.timeUnit",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isNFCValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isVisitor",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isTenKeyValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isGatePasswordValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gatePasswordLength",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gatePasswordSeed",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isTwoStepAuthValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.bleIntensity",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.buzzerPattern",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.needLocation",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.option1",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.option2",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateSNMain",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateFWMain",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateFWBLE",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.registered",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.updated",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.reported",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.revisionDesired",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateSNBLE",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.revisionReported",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.voltage",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.scanDate",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.controllerGateNo",fn:function(e){e.item;return[a("span")]}},e.checkControllerName(e.headers)?{key:"item.action-expand",fn:function(t){var s=t.item;return[void 0!==s.controller&&"ALIG-030"===s.gate.gateModelCode?a("div",[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){e.$emit("goReflectionPage",{controllerId:s.controller.controllerId,name:s.controller.name}),e.isReload=!1}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-format-list-checks")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("反映状況一覧")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[!0===e.authority.isAdmin?a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.goControlEdit(s.controller.controllerId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-circle-edit-outline")])],1):e._e()]}}],null,!0)},[e._v(" "),a("span",[e._v("制御盤編集")])])],1):a("div")]}}:null,{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return e._l(s,(function(t){return a("td",{key:t.value},["gate.gateId"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateId)+"\n ")]):e._e(),e._v(" "),"gate.name"===t.value?a("div",[!0===e.authority.isAdmin?a("v-checkbox",{staticClass:"check-box-expanded",staticStyle:{margin:"0px",padding:"0px"},attrs:{color:"grey-class",value:r,"hide-details":""},model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}):e._e(),e._v(" "),a("div",{staticClass:"allig-text-link item-user-name gate-name "},["ALIG-030"!==r.gate.gateModelCode?a("text-link",{class:["modal-group"===e.inPage?"item-user-id ":"item-user-id"],attrs:{text:r.gate.name},on:{click:function(t){return e.goDetailGateLock(r.gate.gateId,r.gate.name)}}}):a("text-link",{class:["modal-group"===e.inPage?"item-user-id ":"item-user-id"],attrs:{text:r.gate.name},on:{click:function(t){return e.goDetailGate(r.gate.gateId,r.gate.name)}}})],1)],1):e._e(),e._v(" "),"gate.gateModelId"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateModelId)+"\n ")]):e._e(),e._v(" "),"gate.gateModelName"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateModelName)+"\n ")]):e._e(),e._v(" "),"gate.gateModelCode"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateModelCode)+"\n ")]):e._e(),e._v(" "),"gate.iconType"===t.value?a("div",[e._v("\n "+e._s(r.gate.iconType)+"\n ")]):e._e(),e._v(" "),"gate.makerCode"===t.value?a("div",[e._v("\n "+e._s(r.gate.makerCode)+"\n ")]):e._e(),e._v(" "),"gate.customizable"===t.value?a("div",[e._v("\n "+e._s(r.gate.customizable)+"\n ")]):e._e(),e._v(" "),"gate.target"===t.value?a("div",[e._v("\n "+e._s(r.gate.target)+"\n ")]):e._e(),e._v(" "),"gate.controlTime"===t.value?a("div",[e._v("\n "+e._s(r.gate.controlTime)+"\n ")]):e._e(),e._v(" "),"gate.timeUnit"===t.value?a("div",[e._v("\n "+e._s(r.gate.timeUnit)+"\n ")]):e._e(),e._v(" "),"gate.isVisitor"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isVisitor))+"\n ")]):e._e(),e._v(" "),"gate.isNFCValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isNFCValid))+"\n ")]):e._e(),e._v(" "),"gate.isTenKeyValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isTenKeyValid))+"\n ")]):e._e(),e._v(" "),"gate.isGatePasswordValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isGatePasswordValid))+"\n ")]):e._e(),e._v(" "),"gate.gatePasswordLength"===t.value?a("div",[e._v("\n "+e._s(r.gate.gatePasswordLength)+"\n ")]):e._e(),e._v(" "),"gate.gatePasswordSeed"===t.value?a("div",[e._v("\n "+e._s(r.gate.gatePasswordSeed)+"\n ")]):e._e(),e._v(" "),"gate.isTwoStepAuthValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isTwoStepAuthValid))+"\n ")]):e._e(),e._v(" "),"gate.bleIntensity"===t.value?a("div",[e._v("\n "+e._s(e.converTextBLE(r.gate.bleIntensity))+"\n ")]):e._e(),e._v(" "),"gate.buzzerPattern"===t.value?a("div",[e._v("\n "+e._s(r.gate.buzzerPattern)+"\n ")]):e._e(),e._v(" "),"gate.needLocation"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.needLocation))+"\n ")]):e._e(),e._v(" "),"gate.option1"===t.value?a("div",[e._v("\n "+e._s(r.gate.option1)+"\n ")]):e._e(),e._v(" "),"gate.option2"===t.value?a("div",[e._v("\n "+e._s(r.gate.option2)+"\n ")]):e._e(),e._v(" "),"gate.gateSNMain"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateSNMain)+"\n ")]):e._e(),e._v(" "),"gate.gateSNBLE"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateSNBLE)+"\n ")]):e._e(),e._v(" "),"gate.gateFWMain"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateFWMain)+"\n ")]):e._e(),e._v(" "),"gate.gateFWBLE"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateFWBLE)+"\n ")]):e._e(),e._v(" "),"gate.registered"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.registered))+"\n ")]):e._e(),e._v(" "),"gate.updated"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.updated))+"\n ")]):e._e(),e._v(" "),"gate.reported"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.reported))+"\n ")]):e._e(),e._v(" "),"gate.revisionDesired"===t.value?a("div",[e._v("\n "+e._s(r.gate.revisionDesired)+"\n ")]):e._e(),e._v(" "),"gate.revisionReported"===t.value?a("div",[e._v("\n "+e._s(r.gate.revisionReported)+"\n ")]):e._e(),e._v(" "),"gate.voltage"===t.value?a("div",[e._v("\n "+e._s(r.gate.voltage)+"\n ")]):e._e(),e._v(" "),"gate.scanDate"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.scanDate))+"\n ")]):e._e(),e._v(" "),"gate.controllerGateNo"===t.value?a("div",[r.controllerGateNo?a("span",[e._v(e._s(r.controllerGateNo))]):e._e()]):e._e(),e._v(" "),"gate.isValid"===t.value?a("div",[e._v("\n "+e._s(r.gate.isValid?"有効":"無効")+"\n ")]):e._e(),e._v(" "),"action-expand"===t.value?a("div",{staticClass:"text-end"},["ALIG-030"!==r.gate.gateModelCode?a("div",[!0===e.authority.isAdmin?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickUpdateValid",{gateId:r.gate.gateId,isValid:!r.gate.isValid})}}},"v-btn",o,!1),s),[r.gate.isValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-lock-check")]):a("v-icon",[e._v("mdi-lock-alert")])],1)]}}],null,!0)},[e._v("\n "+e._s(r.gate.isValid?"有効":"無効")+"\n ")]):e._e(),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[!0===e.authority.isAdmin?a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.clickEditGateLock(r.gate.gateId)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-square-edit-outline")])],1):e._e()]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲート編集")])]),e._v(" "),!0===e.authority.isAdmin||!0===e.isAdminOfRemoteUnlock?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:"",disabled:1===r.gate.isTwoStepAuthValid||1===r.gate.isVisitor||91===r.gate.makerCode},on:{click:function(t){return e.openHandleCommand(r.gate.gateId,r.gate.name)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-lock-open-variant-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("リモート解錠")])]):e._e(),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("goLogPage",r.gate.name)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-file-move-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" ゲートログ")])]),e._v(" "),!0===e.authority.isAdmin?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:"",disabled:!r.gate.isGatePasswordValid||!r.gate.isValid},on:{click:function(t){return e.getGatePassword(r.gate.gateId)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-arrow-horizontal-lock")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲートパスワード取得")])]):e._e()],1):a("div",[!0===e.authority.isAdmin?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickUpdateValid",{gateId:r.gate.gateId,isValid:!r.gate.isValid})}}},"v-btn",o,!1),s),[r.gate.isValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-lock-check")]):a("v-icon",[e._v("mdi-lock-alert")])],1)]}}],null,!0)},[e._v("\n "+e._s(r.gate.isValid?"有効":"無効")+"\n ")]):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.isAdminOfUnlockingTimeSetting?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){e.$emit("clickEditGate",r.gate),e.isReload=!1}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲート編集")])]):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.isAdminOfRemoteUnlock?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:""},on:{click:function(t){return e.$emit("clickUnClock",{gateId:r.gate.gateId,gateName:r.gate.name})}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-lock-open-variant-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("リモート解錠")])]):e._e(),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("goLogPage",r.gate.name)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-file-move-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" ゲートログ")])]),e._v(" "),e.safieRelationsGateDevice[r.gateId]?e._l(e.safieRelationsGateDevice[r.gateId],(function(t){return a("v-tooltip",{key:t.deviceId,attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(s){var r=s.on,o=s.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(a){return e.safieDeviceLinkTo(t.deviceId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-video-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(e._s(t.notes?t.notes:"<<名称未設定>>"))])])})):e._e()],2)]):e._e()])}))}},{key:"item.status",fn:function(t){var s=t.item;return[!1===s.controller.connectionStatus?a("span",[e._v("通信エラー発生")]):!0===s.controller.connectionStatus&&1===s.controller.commandStatus?a("span",[e._v("コマンド送信待ち")]):!0===s.controller.connectionStatus&&2===s.controller.commandStatus?a("span",[e._v("設定反映中")]):!0===s.controller.connectionStatus&&3===s.controller.commandStatus?a("span",[e._v("設定エラー発生")]):e._e()]}},{key:"item.isValid",fn:function(e){e.item}}],null,!0)})],1)])],1),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.gateTotalCount,disabled:e.isGetDataList},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.gateTotalCount/e.perPage),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1),e._v(" "),a("Modal",{attrs:{title:"リモート解錠",smallScreen:"600px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("v-row",[""===e.successMessageModal&&""===e.errorMessageModal?a("v-col",[e._v("\n "+e._s(e.gateName)+"ゲートをリモート解錠します。\n ")]):e._e(),e._v(" "),""!==e.successMessageModal?a("v-col",{staticClass:"font-weight-bold bg-success no-bg"},[e._v("\n "+e._s(e.successMessageModal)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageModal?a("v-col",{staticClass:"font-weight-bold bg-error no-bg",domProps:{innerHTML:e._s(e.errorMessageModal)}}):e._e()],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),""===e.errorMessageModal&&""===e.successMessageModal?a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("clickRemoteUnlock")}}}):a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalUnClock")}}})]},proxy:!0}]),model:{value:e.isShowModal,callback:function(t){e.isShowModal=t},expression:"isShowModal"}})],1),e._v(" "),a("Modal",{attrs:{title:"制御盤詳細","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){return e.deleteBridgeProperty()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowControlPanelDetail?a("ControlPanelDetail",{attrs:{authority:e.authority},on:{deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)},clickGroupDetail:e.clickGroupDetail,"controller-success":function(t){return e.controllerSuccess(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isShowControlPanelDetail,callback:function(t){e.isShowControlPanelDetail=t},expression:"isShowControlPanelDetail"}}),e._v(" "),a("Modal",{attrs:{title:e.gateNameHandle,"no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){return e.deleteBridgeProperty()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowDetailGate?a("GateDetailPage",{attrs:{isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting},on:{updateGate:function(t){return e.updateGate(t)},getReload:function(t){return e.controllerSuccess(t)},deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)},clickGroupDetail:e.clickGroupDetail}}):e._e()]},proxy:!0}]),model:{value:e.isShowDetailGate,callback:function(t){e.isShowDetailGate=t},expression:"isShowDetailGate"}}),e._v(" "),a("Modal",{attrs:{title:e.gateNameHandle,"no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:function(t){return e.deleteBridgeProperty()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowDetailGateLock?a("GateLockDetailPage",{attrs:{isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,btnUnlock:!0,gateId:e.gateid},on:{clickRemoteUnlock:function(t){return e.openHandleCommand(e.gateid,e.gateNameHandle)},"gate-edit":function(t){return e.clickEditGateLock(t)},loading:function(t){return e.$emit("loading-from-child",t)},clickBackGate:function(t){e.isShowDetailGateLock=!1,e.$emit("close-modal-control")}}}):e._e()]},proxy:!0}]),model:{value:e.isShowDetailGateLock,callback:function(t){e.isShowDetailGateLock=t},expression:"isShowDetailGateLock"}}),e._v(" "),a("Modal",{attrs:{title:e.isControlEdit?"制御盤編集":"新規制御盤登録","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){return e.closeModalControl(e.isReload)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isAddControlShow?a("ControlPanelAddPage",{on:{deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)},"close-modal-control":function(t){return e.closeModalControl(t)},"controller-success":function(t){return e.controllerSuccess(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isAddControlShow,callback:function(t){e.isAddControlShow=t},expression:"isAddControlShow"}}),e._v(" "),a("Modal",{attrs:{title:e.isControlEdit?"ゲート > ゲート編集":"新規ゲート登録","no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:function(t){return e.closeModalControl((!e.isControlEdit||!e.isShowDetailGateLock)&&e.isReload)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isGateLockModalShow?a("GateLockAddPage",{attrs:{isGateLockAdd:e.isGateLockAdd},on:{deleteBridgeProperty:e.deleteGateLockAddPage,loading:function(t){return e.$emit("loading-from-child",t)},"close-modal-control":function(t){e.isGateLockModalShow=!1,e.$emit("close-modal-control")},"load-gates":function(t){return e.$emit("load-gates",1)},"gate-success":function(t){return e.controllerSuccess(t)},updateGate:function(t){return e.updateGate(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isGateLockModalShow,callback:function(t){e.isGateLockModalShow=t},expression:"isGateLockModalShow"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",["del"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("チェックしたゲートを通行権限グループから削除")]):"enable"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("ゲートを有効化")]):"disable"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("ゲートを無効化")]):a("v-card-title",{staticClass:"background-color-green"},[e._v("他のゲートを通行権限グループに追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataRelationGate.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataRelationGate.progressLoad,callback:function(t){e.$set(e.dataRelationGate,"progressLoad",t)},expression:"dataRelationGate.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataRelationGate.progressLoad))+"%")])]),e._v(" "),e.dataRelationGate.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataRelationGate.total)+"件中"+e._s(e.dataRelationGate.successItem)+" \n "),"add"===e.type?a("span",[e._v("件を追加しました。")]):e._e(),e._v(" "),"del"===e.type?a("span",[e._v("件を削除しました。")]):e._e(),e._v(" "),"disable"===e.type?a("span",[e._v("件を無効化しました。")]):e._e(),e._v(" "),"enable"===e.type?a("span",[e._v("件を有効化しました。")]):e._e()]):e._e(),e._v(" "),e.dataRelationGate.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataRelationGate.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataRelationGate.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.closeModalGate(e.dataRelationGate.successItem>0)}}},[e._v("OK")])],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:"他のゲートを通行権限グループに追加","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){e.showGate=!1,e.$emit("close-modal-control-add-other",e.dataRelationGate.successItem>0)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.showGate?a("GateAllListTable",{attrs:{isPage:"group-add-gate",dataList:e.expandData.gateAll.data,perPage:e.expandData.gateAll.perPage,page:e.expandData.gateAll.page,totalCount:e.expandData.gateAll.total,loading:e.expandData.gateAll.loading,isGetDataList:e.isGetDataList,selectedIds:e.selectedIds,relationsGateGroup:e.dataGates},on:{"change-page":function(t){return e.$emit("change-page-gate-all",t)},"change-per-page":function(t){return e.$emit("change-per-page-gate-all",t)},"add-gate":function(t){return e.addGate(t)},"select-Ids":function(t){e.selectedIds=t}}}):e._e()]},proxy:!0}]),model:{value:e.showGate,callback:function(t){e.showGate=t},expression:"showGate"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}},[a("v-card",[a("ModalTitle",{attrs:{title:"チェックしたゲートを通行権限グループから削除"},on:{click:function(t){e.isConfirm=!1}}}),e._v(" "),a("v-card-text",{staticClass:"pt-0 pb-5 text-progress"},[e._v("チェックしたゲートを通行権限グループから削除します。")]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.removeGate(e.selectedItem)}}},[e._v("\n 削除\n ")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isGatePassword,callback:function(t){e.isGatePassword=t},expression:"isGatePassword"}},[a("v-card",[a("ModalTitle",{attrs:{title:"ゲートパスワードの取得"},on:{click:function(t){return e.closePasswordGenerate()}}}),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" 対象のゲート(ゲートID)")])]),e._v(" "),a("v-col",{staticClass:"mt-3"},[e._v(e._s(e.gateid))])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" ゲートを利用する日付")])]),e._v(" "),a("v-col",[a("DatePicker",{on:{input:function(t){return e.getTime(t)}},model:{value:e.dateGate,callback:function(t){e.dateGate=t},expression:"dateGate"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" ゲートを利用する時間")])]),e._v(" "),a("v-col",[a("v-select",{attrs:{items:e.listTime,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:""},model:{value:e.timeGate,callback:function(t){e.timeGate=t},expression:"timeGate"}})],1)],1)],1),e._v(" "),a("v-card-text",[""!==e.gatePassword?a("v-row",{staticClass:"background-color-gray"},[a("div",{domProps:{innerHTML:e._s(e.gatePassword)}})]):e._e()],1),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("passwordGenerate",{scorpId:e.timeGate,date:e.dateGate,gateId:e.gateid})}}},[e._v("\n パスワードを発行\n ")])],1)],1)],1)],1),e._v(" "),a("Modal",{attrs:{title:"リモート解錠",smallScreen:"600px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("v-row",[""===e.errorMessageLogsPhone&&""===e.successMessageLogsPhone?a("v-col",[e._v("\n "+e._s(e.currentGateName)+"ゲートをリモート解錠します。\n ")]):e._e(),e._v(" "),""!==e.successMessageLogsPhone?a("v-col",{staticClass:"font-weight-bold bg-success no-bg"},[e._v("\n "+e._s(e.successMessageLogsPhone)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogsPhone?a("v-col",{staticClass:"font-weight-bold bg-error no-bg"},[a("span",{domProps:{innerHTML:e._s(e.errorMessageLogsPhone)}})]):e._e()],1),e._v(" "),e.lastLog.length>0?a("div",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v("遠隔解錠登録日時:")])]),e._v(" "),a("v-col",{staticClass:"mt-3 col-5"},[e._v(e._s(e.converDateFull(e.lastLog[0].registered)))])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v("遠隔解錠状況:")])]),e._v(" "),a("v-col",{staticClass:"col-5 mt-3"},[e._v("\n "+e._s(e.converStatus(e.lastLog[0].status))+" "),a("span",{staticClass:"ml-4 icon-refresh",on:{click:function(t){return e.getLastLog()}}},[a("v-icon",[e._v("mdi-replay")])],1)])],1)],1):e._e()]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),e.isFinishHandleCommand?a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeHandleCommand()}}}):a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.handleCommand()}}})]},proxy:!0}]),model:{value:e.isHandleCommand,callback:function(t){e.isHandleCommand=t},expression:"isHandleCommand"}}),e._v(" "),a("gate-import",{attrs:{showModalImport:e.showModalImport,showProgressExportCSV:e.showProgressExportCSV,progressCsvXlsx:e.progressCsvXlsx,errorMessageCsvXlsx:e.errorMessageCsvXlsx,showProgressImport:e.showProgressImport,successItemImport:e.successItemImport,totalDataRowImport:e.totalDataRowImport,errorMessageImport:e.errorMessageImport,isFinishProcess:e.isFinishProcess,sheetUserName:e.sheetUserName,isShowViewCSV:e.isShowViewCSV},on:{clickExportCSV:function(t){return e.$emit("clickExportCSV",t)},closeModalProcessCSV:function(t){return e.$emit("closeModalProcessCSV",t)},closeImportCSV:function(t){return e.$emit("closeImportCSV",t)},clickImportCSV:function(t){return e.$emit("clickImportCSV",t)},closeModalProgressImport:function(t){return e.$emit("closeModalProgressImport",t)},clickCheckBoxExportGateInfoCSV:function(t){return e.$emit("clickCheckBoxExportGateInfoCSV",t)}}}),e._v(" "),a("Modal",{attrs:{title:"enable"===e.type?"ゲートを有効化":"ゲートを無効化",text:"enable"===e.type?"チェックしたゲートを有効化します。":"チェックしたゲートを無効化します。",smallScreen:"600",className:"common-modal"},on:{close:function(t){return e.$emit("closeModalConfirm")}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.confirmAction()}}})]},proxy:!0}]),model:{value:e.isConfirmAction,callback:function(t){e.isConfirmAction=t},expression:"isConfirmAction"}})],1)},Zm=[],Xm=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-gate-table"},[a("v-container",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2",attrs:{"per-page":25,page:e.pageUser,"items-length":e.userTotalCount}})],1),e._v(" "),a("v-divider"),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,loading:e.loading,headers:e.headers,items:e.users,"items-per-page":25,"no-data-text":"該当するゲートがありません","loading-text":"データを読み込中です","hide-default-footer":"",dense:"","show-select":e.showSelect,"item-key":"passageId"},scopedSlots:e._u([{key:"item.userId",fn:function(t){var s=t.item;return[a("text-link",{attrs:{text:s.userId?s.userId:""},on:{click:function(t){return e.clickDetail(s.userId)}}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.userTotalCount/25),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)],1)},Qm=[],ef=f["a"].extend({name:"UserGateTable",components:{Pagination:xo,ShowPerPage:mo,TextLink:No,GateList:jc},props:{loading:{type:Boolean,default:!1},users:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},userTotalCount:{type:Number,default:0},page:{type:Number,default:1},pageUser:{type:Number,default:1},userId:{type:String,default:""},perPage:{type:Number,default:25},relationsGateUserLoading:{type:Boolean,default:!1},ExpandedUser:{default:function(){return[]}},userDetail:{default:function(){return[]}},showSelect:{type:Boolean,default:!1}},data:function(){return{selectedItem:[]}},computed:{headers:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!0,value:"userId"},{text:"所属ゲート数",align:"start",sortable:!1,width:"200px",value:"data-table-expand"}];return e}},innerPage:{get:function(){return this.pageUser},set:function(e){this.$emit("change-page-user",{page:e,userId:this.userId})}}},watch:{selectedItem:function(e){this.$emit("select-users",e.map((function(e){return e.passageId})))}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0?a("v-row",e._l(e.gateList,(function(t){return a("v-col",{key:t.value,attrs:{md:"3",sm:"6",cols:"12"}},[a("text-link",{staticClass:"item-user-name",attrs:{text:t.text},on:{click:function(a){return e.$emit("clickGateDetail",t.value)}}})],1)})),1):e._e()],1)],1)],1)]),e._v(" "),a("v-row",{staticClass:" mt-3 mb-0"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold pb-0"},[e._v("\n アンチパスバック設定\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pt-5 pb-0 pr-10 mb-4"},[a("div",{staticClass:"page-detail mb-0"},[a("v-row",{staticClass:"pa-0 ma-0"},[a("v-col",{staticClass:"pa-0 ma-0"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("アンチパスバック設定 ")]),e._v(" "),a("div",{staticClass:"weight-bold "},[void 0!==e.controlPanelDetail.controller.antipassbackSetting&&2===e.controlPanelDetail.controller.antipassbackSetting?a("span",[e._v("ON")]):a("span",[e._v("OFF")])])])],1)],1),e._v(" "),a("v-col",{staticClass:"pa-0 ma-0"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("アンチパスバッククリア時間 ")]),e._v(" "),a("div",{staticClass:"weight-bold "},[void 0!==e.controlPanelDetail.controller.antipassbackClearTime?a("span",[e._v(e._s(e.controlPanelDetail.controller.antipassbackClearTime))]):a("span")])])],1)],1)],1),e._v(" "),a("v-row",{staticClass:"pa-0 ma-0"},[a("v-col",{staticClass:"pl-0 ",attrs:{cols:"8"}},[a("v-combobox",{staticClass:"list-card",attrs:{items:e.dataAllUses,multiple:"","deletable-chips":"",chips:"",disabled:0===e.dataAllUses.length||void 0===e.controlPanelDetail.controller.antipassbackSetting||2!==e.controlPanelDetail.controller.antipassbackSetting,autocomplete:"off",color:"green","hide-details":"auto",outlined:"",dense:"","search-input":e.searchInput,"menu-props":{contentClass:"user-select-item"},attach:!0},on:{"update:searchInput":function(t){e.searchInput=t},"update:search-input":function(t){e.searchInput=t},change:function(t){return e.updateUserTags(t)}},model:{value:e.userIds,callback:function(t){e.userIds=t},expression:"userIds"}})],1),e._v(" "),a("v-col",{attrs:{cols:"4"}},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:0===e.dataAllUses.length||void 0===e.controlPanelDetail.controller.antipassbackSetting||2!==e.controlPanelDetail.controller.antipassbackSetting},on:{click:function(t){return e.$emit("clickConfirmClear")}}},[e._v("\n アンチパスバッククリア\n ")])],1),e._v(" "),a("span",{staticClass:"text-note mb-5",staticStyle:{"font-weight":"bolder"}},[e._v("※ユーザーを選択しない場合、ゲートに紐づくユーザーのアンチパスバックがクリアされます。")])],1)],1)]),e._v(" "),a("v-row",{staticClass:" mt-3 mb-0"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold pb-0"},[e._v("\n Attoユーザー\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pt-0 pb-0 pr-10 mb-3"},[a("div",{staticClass:"page-detail mb-0"},[a("v-row",{staticClass:"pa-0 ma-0"},[a("v-col",{attrs:{cols:"6"}},[a("v-row",[a("v-col",{staticClass:"col-12 pl-0"},[a("div",{staticClass:"title-display-block"},[e._v("ユーザーID ")]),e._v(" "),a("div",{staticClass:"weight-bold "},[void 0!==e.controlPanelDetail.user&&void 0!==e.controlPanelDetail.user.userId?a("span",[e._v(" "+e._s(e.controlPanelDetail.user.userId)+" ")]):a("span")])])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"6"}},[a("v-row",[a("v-col",{staticClass:"col-12 pl-0"},[a("div",{staticClass:"title-display-block"},[e._v("ユーザー名 ")]),e._v(" "),a("div",{staticClass:"weight-bold "},[void 0!==e.controlPanelDetail.user&&void 0!==e.controlPanelDetail.user.name?a("span",[e._v(" "+e._s(e.controlPanelDetail.user.name)+" ")]):a("span")])])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"12"}},[a("v-row",[a("v-col",{staticClass:"col-12 pl-0"},[a("div",{staticClass:"title-display-block"},[e._v("パスワード ")]),e._v(" "),a("div",{staticClass:"weight-bold "},[e._v("\n *******\n ")])])],1)],1)],1)],1)]),e._v(" "),a("v-row",{staticClass:"mb-0 mt-1",attrs:{justify:"end"}},[e.authority.isAdmin?a("v-btn",{staticClass:"btn-red",attrs:{outlined:"",disabled:""===e.controlPanelDetail.controllerId},on:{click:function(t){return e.$emit("clickReconfigure")}}},[e._v("\n 制御盤を再設定する\n ")]):e._e()],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600"},model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}},[a("v-card",{staticClass:"common-modal"},[a("ModalTitle",{attrs:{title:"制御盤の再設定"},on:{click:function(t){return e.$emit("closeModal")}}}),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-10"},[""===e.successMessageModal&&""===e.errorMessageModal?a("p",[e._v("\n 制御盤の設定を一度クリアした後に "),a("br"),e._v("\n 再度現在の設定を更新します。\n ")]):e._e(),e._v(" "),a("v-row",[""!==e.successMessageModal?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageModal)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageModal?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageModal)+"\n ")]):e._e()],1)],1),e._v(" "),a("v-divider"),e._v(" "),""===e.errorMessageModal&&""===e.successMessageModal?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK",disabled:""===e.controlPanelDetail.controllerId},on:{click:function(t){return e.$emit("clickPostReconfigure",e.controlPanelDetail.controllerId)}}})],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModal")}}})],1)],1)],1)],1),e._v(" "),a("Modal",{attrs:{title:"アンチパスバッククリア",smallScreen:"600px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e._v("\n チェックしたユーザーをアンチパスバッククリアしますか? "),a("br"),e._v("\n ※ユーザーを選択していない場合、ゲートに紐づくユーザーのアンチパスバックがクリアされます。\n ")]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("clickAntiPassBackClear",{data:e.userIds,controllerId:e.controlPanelDetail.controllerId})}}})]},proxy:!0}]),model:{value:e.isModalClear,callback:function(t){e.isModalClear=t},expression:"isModalClear"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("アンチパスバッククリア")]),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件をクリアしました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])])],1),e._v(" "),a("v-divider"),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgress",e.successItemProcess>0)}}})],1)],1):e._e()],1)],1)],1)},Cf=[],wf=f["a"].extend({name:"ControlPanelDetail",components:{TextLink:No,ModalTitle:Xc,Modal:bn,SuccessButton:kr},props:{loading:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},showModalClear:{type:Boolean,default:!1},controlPanelDetail:{default:{}},gateList:{default:function(){return[]}},gateListName:{default:function(){return[]}},dataAllUses:{default:function(){return[]}},errorMessageLogs:{type:String,default:""},successMessageLogs:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageProcess:{default:[]},showProgress:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},successItemProcess:{type:Number,default:0},totalDataRowProcess:{type:Number,default:0},progress:{type:Number,default:0},countUsers:{type:Number,default:0},authority:{type:Object,default:{}}},data:function(){return{userIds:[],searchInput:""}},computed:{isModalClear:{get:function(){return this.showModalClear},set:function(e){!1===e&&this.$emit("closeModalClear")}}},methods:{convertStatus:function(e){var t="登録済み";return""===e.phoneId&&(t="未登録"),t},clickEditController:function(e){},clickAddUser:function(e){this.$router.push({path:gt,query:{gateId:e}})},updateUserTags:function(){this.searchInput=""},isObject:function(e){return e instanceof Object}},watch:{loading:function(e){!1===e&&(this.userIds=[])}}}),kf=wf,Sf=(a("74ef"),a("2b5d")),_f=Object(I["a"])(kf,xf,Cf,!1,null,"1dd8b7fc",null),Pf=_f.exports;C()(_f,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VCombobox:Sf["a"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"]});for(var Mf=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("control-panel-add-template",{attrs:{loading:e.loading,dataControlPanels:e.dataControlPanels,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,typeItems:e.typeItems,isEdit:e.isEdit,gateList:e.gateList,controllerModel:e.controllerModel,dataAllGates:e.dataAllGates,loadingChild:e.loadingChild},on:{clickBackControlPanel:function(t){return e.clickBackControlPanel(t)},"close-modal-control":function(t){return e.$emit("close-modal-control",t)},clickSaveControlPanel:function(t){return e.clickSaveControlPanel(t)},clickUpdateControlPanel:function(t){return e.clickUpdateControlPanel(t)},changeModel:function(t){return e.changeModel(t)},"loading-from-child":function(t){return e.$emit("loading",t)}}})},Lf=[],Df=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-container",{staticStyle:{position:"relative"}},[a("ModalLoading",{attrs:{loading:e.loadingChild}}),e._v(" "),""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-2 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("control-panel-add-form",{attrs:{typeItems:e.typeItems,dataAllGates:e.dataAllGates,dataControlPanels:e.dataControlPanels,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,loading:e.loading,controllerModel:e.controllerModel,isEdit:e.isEdit,gateList:e.gateList},on:{clickSaveControlPanel:function(t){return e.$emit("clickSaveControlPanel",t)},"close-modal-control":function(t){return e.$emit("close-modal-control",t)},clickUpdateControlPanel:function(t){return e.$emit("clickUpdateControlPanel",t)},changeModel:function(t){return e.$emit("changeModel",t)}}})],1)],1)},Gf=[],Af=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-control-panel-add-form modal-control control-panel-add-form"},[a("v-form",{ref:"formController",attrs:{"lazy-validation":""}},[a("v-container",{staticClass:"pa-0"},[a("div",{staticClass:"round-content-scroll "},[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold ml-0 mt-2 mb-6"},[e._v("\n 制御盤情報\n ")])],1),e._v(" "),!1===e.isEdit?a("div",[a("v-card",{staticClass:"pa-6 pr-10 mb-5 mt-0"},[a("input-form",{attrs:{isShow:"vertical",isCol:"3",title:"制御盤名",inputType:"text",rules:[e.rulesValidate.requiredName,e.rulesValidate.validateName]},model:{value:e.dataControlPanels.name,callback:function(t){e.$set(e.dataControlPanels,"name",t)},expression:"dataControlPanels.name"}}),e._v(" "),a("v-row",{staticClass:"col-vertical mt-5 mb-5"},[a("v-col",{attrs:{cols:"12"}},[a("div",{staticClass:"title-display-block"},[e._v("制御盤モデル")])]),e._v(" "),a("v-col",{attrs:{cols:"12"}},[a("v-autocomplete",{attrs:{items:e.controllerModel,color:"green","return-object":"","hide-details":"auto",outlined:"",dense:"","no-data-text":"",rules:[e.rulesValidate.requiredModel],"menu-props":{contentClass:"v-select-item "}},on:{change:function(t){return e.$emit("changeModel",t)}},model:{value:e.dataControlPanels.model,callback:function(t){e.$set(e.dataControlPanels,"model",t)},expression:"dataControlPanels.model"}})],1)],1),e._v(" "),a("input-form",{attrs:{isShow:"vertical",isCol:"3",title:"ゲートの追加数",inputType:"select","select-items":e.typeItems,isAttach:!0},model:{value:e.dataControlPanels.gateCount,callback:function(t){e.$set(e.dataControlPanels,"gateCount",t)},expression:"dataControlPanels.gateCount"}})],1),e._v(" "),a("v-row",{staticClass:"col-vertical mt-3 mb-0"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold mt-2"},[e._v("\n アンチパスバック設定\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5 mt-0"},[a("input-form",{staticClass:"v-input--reverse swicth-all",attrs:{isShow:"vertical",isCol:"4",title:"アンチパスバック",inputType:"switch"},model:{value:e.antipassbackSetting,callback:function(t){e.antipassbackSetting=t},expression:"antipassbackSetting"}}),e._v(" "),a("input-form",{staticClass:"v-input--reverse swicth-all mt-5",attrs:{isShow:"vertical",isCol:"4",title:"アンチパスバッククリア",disabled:!1===e.antipassbackSetting,inputType:"switch"},model:{value:e.isAntipass,callback:function(t){e.isAntipass=t},expression:"isAntipass"}}),e._v(" "),a("v-row",{staticClass:"input-time col-vertical mb-3 mt-5"},[a("div",{staticClass:"col col-4"},[a("div",{staticClass:"v-subheader theme--light"},[a("span",[e._v("アンチパスバッククリア時間")])])]),e._v(" "),a("v-col",{attrs:{cols:"4"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{disabled:!1===e.isAntipass,autocomplete:"off",color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline","hide-details":"auto",rules:[e.rulesValidate.validateTime(e.antipassbackSetting,e.isAntipass,e.antipassbackClearTime)]},model:{value:e.antipassbackClearTime,callback:function(t){e.antipassbackClearTime=t},expression:"antipassbackClearTime"}},"v-text-field",r,!1),s))]}}],null,!1,4128401553)},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:"","no-data-text":""},on:{change:function(t){e.antipassbackClearTime=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.hourStart,callback:function(t){e.hourStart=t},expression:"hourStart"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":"","no-data-text":""},on:{change:function(t){e.antipassbackClearTime=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.minuteStart,callback:function(t){e.minuteStart=t},expression:"minuteStart"}})],1)])],1)],1)],1),e._v(" "),e.textError?a("v-row",[a("div",{staticClass:"col col-4"},[a("div",{staticClass:"v-subheader theme--light"},[a("span")])]),e._v(" "),a("v-col",{staticClass:"text-error"},[e._v("アンチパスバッククリア時間を入力してください。")])],1):e._e()],1),e._v(" "),a("v-row",{staticClass:" mt-3 mb-0"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold mt-0"},[e._v("\n Attoユーザー\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5 mt-0"},[a("input-form",{attrs:{isShow:"vertical",isCol:"3",disabled:e.loading,autocomplete:"off",title:"ユーザー※必須",rules:[e.rulesValidate.validateUserId,e.rulesValidate.requiredUserId],inputType:"text"},model:{value:e.dataControlPanels.userId,callback:function(t){e.$set(e.dataControlPanels,"userId",t)},expression:"dataControlPanels.userId"}}),e._v(" "),a("input-form",{staticClass:"mt-5",attrs:{isShow:"vertical",isCol:"3",disabled:e.loading,autocomplete:"off",title:"パスワード ※必須",rules:[e.rulesValidate.validatePassword],inputType:"password"},model:{value:e.dataControlPanels.password,callback:function(t){e.$set(e.dataControlPanels,"password",t)},expression:"dataControlPanels.password"}})],1),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",{attrs:{align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.clickSaveControlPanel()}}},[e._v("\n 登録\n ")])],1)],1)],1):a("div",[a("v-card",{staticClass:"pa-6 pr-10 mb-5 mt-0"},[a("input-form",{attrs:{isShow:"vertical",isCol:"3",title:"制御盤名",inputType:"text",rules:[e.rulesValidate.requiredName,e.rulesValidate.validateName]},model:{value:e.dataControlPanels.name,callback:function(t){e.$set(e.dataControlPanels,"name",t)},expression:"dataControlPanels.name"}}),e._v(" "),a("div",{staticClass:"info-item mt-3"},[a("div",{staticClass:"row col-vertical"},[a("div",{staticClass:"col col-3 mt-2"},[a("div",{staticClass:"title-display-block"},[e._v("制御盤モデル")])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.dataControlPanels.model)+" ")])])])],1),e._v(" "),a("v-row",{staticClass:" mt-3 mb-0"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold mt-2"},[e._v("\n ゲート\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5 mt-0"},[a("input-form",{staticClass:"mb-5",attrs:{isShow:"vertical",isCol:"3",disabled:0===e.typeItems.length,title:"ゲートの追加数",inputType:"select","select-items":e.typeItems,isAttach:!0},model:{value:e.dataControlPanels.gateCount,callback:function(t){e.$set(e.dataControlPanels,"gateCount",t)},expression:"dataControlPanels.gateCount"}}),e._v(" "),e._l(e.gateList,(function(t,s){return a("div",{key:t.value,staticClass:"info-item"},[a("div",{staticClass:"row col-vertical"},[a("div",{staticClass:"col col-3"},[a("div",{staticClass:"v-subheader"},[e._v("ゲート"+e._s(s+1)+" 名称")])]),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(t.text)+" ")])])])}))],2),e._v(" "),a("v-row",{staticClass:"mt-3 mb-0"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold mt-2"},[e._v("\n アンチパスバック設定\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5 mt-0"},[a("input-form",{staticClass:"v-input--reverse swicth-all",attrs:{isShow:"vertical",isCol:"4",title:"アンチパスバック",inputType:"switch"},model:{value:e.antipassbackSetting,callback:function(t){e.antipassbackSetting=t},expression:"antipassbackSetting"}}),e._v(" "),a("input-form",{staticClass:"v-input--reverse swicth-all mt-5",attrs:{isShow:"vertical",isCol:"4",title:"アンチパスバッククリア",disabled:!1===e.antipassbackSetting,inputType:"switch"},model:{value:e.isAntipass,callback:function(t){e.isAntipass=t},expression:"isAntipass"}}),e._v(" "),a("v-row",{staticClass:"input-time col-vertical"},[a("div",{staticClass:"col col-12"},[a("div",{staticClass:"v-subheader theme--light"},[a("span",[e._v("アンチパスバッククリア時間")])])]),e._v(" "),a("v-col",{attrs:{cols:"12"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto",disabled:!1===e.isAntipass},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time",attrs:{disabled:!1===e.isAntipass,autocomplete:"off",color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline","hide-details":"auto",rules:[e.rulesValidate.validateTime(e.antipassbackSetting,e.isAntipass,e.antipassbackClearTime)]},model:{value:e.antipassbackClearTime,callback:function(t){e.antipassbackClearTime=t},expression:"antipassbackClearTime"}},"v-text-field",r,!1),s))]}}])},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:"","no-data-text":""},on:{change:function(t){e.antipassbackClearTime=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.hourStart,callback:function(t){e.hourStart=t},expression:"hourStart"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":"","no-data-text":""},on:{change:function(t){e.antipassbackClearTime=e.formatTime(e.hourStart,e.minuteStart)}},model:{value:e.minuteStart,callback:function(t){e.minuteStart=t},expression:"minuteStart"}})],1)])],1)],1)],1),e._v(" "),e.textError?a("v-row",[a("div",{staticClass:"col col-4"},[a("div",{staticClass:"v-subheader theme--light"},[a("span")])]),e._v(" "),a("v-col",{staticClass:"text-error"},[e._v("アンチパスバッククリア時間を入力してください。")])],1):e._e()],1),e._v(" "),a("v-row",{staticClass:"col-vertical mt-3 mb-0"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold mt-2"},[e._v("\n Attoユーザー\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5 mt-0"},[a("input-form",{attrs:{isShow:"vertical",isCol:"3",title:"ユーザー",rules:[e.rulesValidate.validateUserId,e.rulesValidate.requiredUserId],inputType:"text",disabled:!0},model:{value:e.dataControlPanels.userId,callback:function(t){e.$set(e.dataControlPanels,"userId",t)},expression:"dataControlPanels.userId"}}),e._v(" "),a("input-form",{staticClass:"mt-5",attrs:{isShow:"vertical",isCol:"3",title:"新しいパスワード",inputType:"password",rules:[e.rulesValidate.validateNewPassword],disabled:e.loading},model:{value:e.dataControlPanels.newPassword,callback:function(t){e.$set(e.dataControlPanels,"newPassword",t)},expression:"dataControlPanels.newPassword"}}),e._v(" "),a("input-form",{staticClass:"mt-5",attrs:{isShow:"vertical",isCol:"3",title:"新しいパスワード再入力",inputType:"password",rules:[e.rulesValidate.validateConfirmPass(e.dataControlPanels.confirmPassword,e.dataControlPanels.newPassword)],disabled:e.loading},model:{value:e.dataControlPanels.confirmPassword,callback:function(t){e.$set(e.dataControlPanels,"confirmPassword",t)},expression:"dataControlPanels.confirmPassword"}})],1),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-col",{staticClass:"messageRow",attrs:{cols:"10",align:"right"}},[""!==e.successMessageLogs&&!1===e.loading?a("span",{staticClass:"mb-4 font-weight-bold mt-2 bg-success bg-no"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("span",{staticClass:"mb-4 font-weight-bold mt-2 bg-error bg-no"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()]),e._v(" "),a("v-col",{staticClass:"messageRow",attrs:{cols:"2",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.actionUpdate()}}},[e._v("\n 保存する\n ")])],1)],1)],1)],1)])],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isUpdate,callback:function(t){e.isUpdate=t},expression:"isUpdate"}},[e.isUpdate?a("v-card",{staticClass:"modal-export"},[a("div",{staticClass:"pa-5",domProps:{innerHTML:e._s(e.configData.TEXT_TITLE_ANTI)}}),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary mr-2",attrs:{outlined:""},on:{click:function(t){return e.clickUpdateControlPanel(!1)}}},[e._v("\n いいえ\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.clickUpdateControlPanel(!0)}}},[e._v("\n はい\n ")])],1)],1)],1):e._e()],1)],1)},Rf=[],Tf=[],Ef=0;Ef<=59;Ef++){var Of="";Of=Ef<10?"0"+Ef:Ef.toString(),Tf.push(Of)}var Vf=f["a"].extend({name:"ControlPanelAddForm",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io},props:{confirm:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},errorMessageLogs:{type:String,default:""},successMessageLogs:{type:String,default:""},step:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},typeItems:{type:Array,default:function(){return[]}},dataAllGates:{default:function(){return[]}},gateList:{default:function(){return[]}},controllerModel:{default:function(){return[]}},dataControlPanels:{default:{controllerId:"",name:"",phoneId:"",model:"",antipassbackSetting:0,antipassbackClearTime:"",userId:"",password:"",gateCount:1}}},watch:{dataControlPanels:function(e){void 0!==e.antipassbackSetting&&2===e.antipassbackSetting?(this.antipassbackSetting=!0,"99:99"!==e.antipassbackClearTime&&(this.isAntipass=!0)):this.antipassbackSetting=!1,""!==e.antipassbackClearTime&&(this.antipassbackClearTime=e.antipassbackClearTime)},isAntipass:function(e){if(!1===e)this.textError=!1;else{var t=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,a=t.test(this.antipassbackClearTime);this.textError=!a}},antipassbackSetting:function(e){!1===e&&(this.isAntipass=!1,this.textError=!1)},antipassbackClearTime:function(e){if(""!==e&&!0===this.isAntipass){var t=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,a=t.test(e);this.textError=!a}},loading:function(e){!1===e&&""!==this.dataControlPanels.antipassbackClearTime&&(this.antipassbackClearTime=this.dataControlPanels.antipassbackClearTime,"99:99"===this.dataControlPanels.antipassbackClearTime&&(this.hourStart="00",this.minuteStart="00"))},errorMessageLogs:function(e){""!==e&&!1===this.isEdit&&this.$refs.formController.resetValidation()},successMessageLogs:function(e){""!==e&&!1===this.isEdit&&this.$refs.formController.resetValidation()}},computed:{headers:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!1,width:"80%",value:"data-table-expand"},{text:"",align:"start",sortable:!1,value:"expand-action"}];return e}}},data:function(){return{hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:Tf,hourStart:"00",antipassbackClearTime:"",minuteStart:"00",modelItems:[{text:"WA-01/02",value:"WA-01/02"},{text:"WA-08/16",value:"WA-08/16"}],isMore:!1,configData:s,isUpdate:!1,isAntipass:!1,textError:!1,antipassbackSetting:!1,dataGate:[],inputGate:[],rulesValidate:{requiredName:function(e){return!!e||"制御盤名は64文字以内で入力してください。"},validateName:function(e){return console.log("name",e.length),e.length<=64||"制御盤名は64文字以内で入力してください。"},requiredUserId:function(e){return!!e||"ユーザーは半角英数字で4文字以上96文字以内で設定してください。"},validateUserId:function(e){var t=/^[a-zA-Z0-9@.!#$%&'*+/=?^_`{|}~-]{4,96}$/;return""===e||(t.test(e)||"ユーザーは半角英数字で4文字以上96文字以内で設定してください。")},requiredModel:function(e){return void 0!==e&&void 0!==e.text&&null!==e.text&&""!==e.text||ps},validatePassword:function(e){var t=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*)+[^=+]{8,64}$/;return t.test(e)||"パスワードは英大文字、英小文字、数字、記号(+,=を除く)を組み合わせた8文字以上64文字以内で設定してください。"},validateNewPassword:function(e){if(void 0!==e&&null!==e&&""!==e){var t=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*)+[^=+]{8,64}$/;return t.test(e)||"パスワードは英大文字、英小文字、数字、記号(+,=を除く)を組み合わせた8文字以上64文字以内で設定してください。"}return!0},validateConfirmPass:function(e,t){return void 0===e||null===e||""===e||e===t||"「新しいパスワード」と一致しません。"},validateTime:function(e,t,a){if(!1===t)return!0;var s=/^([01][0-9]|2[0-3]):[0-5][0-9]$/;s.test(a);return s.test(a)}}}},methods:{formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},clickSaveControlPanel:function(){var e=this.$refs.formController.validate();if(e)this.$emit("clickSaveControlPanel",{data:this.dataControlPanels,antipassbackSetting:this.antipassbackSetting,antipassbackClearTime:this.antipassbackClearTime,isAntipass:this.isAntipass});else if(this.isAntipass){var t=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,a=t.test(this.antipassbackClearTime);this.textError=!a}},actionUpdate:function(){var e=this.$refs.formController.validate();if(e)!0===this.antipassbackSetting?this.isUpdate=!0:this.clickUpdateControlPanel(!1);else if(this.isAntipass){var t=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,a=t.test(this.antipassbackClearTime);this.textError=!a}},clickUpdateControlPanel:function(e){this.isUpdate=!1,this.$emit("clickUpdateControlPanel",{data:this.dataControlPanels,antipassbackSetting:this.antipassbackSetting,antipassbackClearTime:this.antipassbackClearTime,check:e,isAntipass:this.isAntipass})},showMore:function(){this.isMore=!this.isMore}}}),Uf=Vf,$f=(a("bde7"),Object(I["a"])(Uf,Af,Rf,!1,null,null,null)),Nf=$f.exports;C()($f,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDialog:hn["a"],VForm:Nl["a"],VMenu:Un["a"],VRow:Kr["a"],VSelect:_o["a"],VTextField:Tr["a"]});var Ff=f["a"].extend({name:"ControlPanelAddTemplate",components:{ControlPanelAddForm:Nf,Breadcrumbs:cn,ModalLoading:Zg},props:{typeItems:{type:Array,default:function(){return[]}},loadingChild:{type:Boolean,default:!0},loading:{type:Boolean,default:!0},isEdit:{type:Boolean,default:!0},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataControlPanels:{default:{}},dataAllGates:{default:[]},controllerModel:{default:[]},gateList:{default:[]}},computed:{breadcrumbs:{get:function(){return[{text:this.isEdit?"制御盤編集":"新規制御盤登録",disabled:!0}]}}}}),jf=Ff,Bf=(a("a335"),Object(I["a"])(jf,Df,Gf,!1,null,"8b053740",null)),zf=Bf.exports;C()(Bf,{VCol:Dr["a"],VContainer:Zo["a"]});var Hf=nr["a"].extend({name:"ControllerListPage",components:{ControlPanelAddTemplate:zf},data:function(){return{scorp:[],keyword:"",dataControlPanels:{controllerId:"",name:"",phoneId:"",model:"",antipassbackSetting:0,antipassbackClearTime:"",userId:"",password:"",newPassword:"",gateCount:0},loading:!1,isEdit:!1,typeItems:[],controllerModel:[],successMessageLogs:"",errorMessageLogs:"",goBack:"control-panel",dataAllGates:[],controllerId:"",controllerModelId:"",gateList:[],gateCount:0,isCountProcess:0,isCheck:!1,loadingChild:!1}},watch:{loading:function(e){this.$emit("loading",e)},isCountProcess:function(e){e>0&&""===this.errorMessageLogs&&!0===this.isCheck&&(console.log("errorMessageLogs",this.errorMessageLogs),this.loading=!0,this.clearItem(this.controllerId))}},created:function(){"undefined"===typeof localStorage.controllerSortKey&&localStorage.setItem("controllerSortKey","registered"),"undefined"===typeof localStorage.controllerSortName&&localStorage.setItem("controllerSortName","desc"),this.getControllerModelAll(1)},mounted:function(){var e=localStorage.isEditFlag;null!==e&&"true"===e?(this.isEdit=!0,this.controllerId=localStorage.controllerId,this.getControllerData(this.controllerId)):(this.isEdit=!1,localStorage.setItem("isEditFlag","false")),this.successMessageLogs="",this.errorMessageLogs=""},methods:{getGateCount:function(e){var t=this;return new Promise((function(a,s){t.typeItems=[],t.typeItems.push({text:"",value:"0"}),t.$http.get(ce+"?limit=100&page=1&keyword="+e+"&scorp=controllerModelName").then((function(e){for(var s=e.body.controllerModels[0].gateCount,r=1;r<=s-t.gateCount;r++)t.typeItems.push({text:r,value:r});a(!0)})).then(null,(function(e){console.log(e),a(!1)}))}))},postGateCount:function(e,t){var a=this,s={gateCount:t.gateCount};this.$http.post(ie+"/"+encodeURIComponent(e)+"/gate",s).then((function(s){"Success"===s.body.message?void 0!==t.newPassword&&null!==t.newPassword&&""!==t.newPassword?a.changePassword(t):(a.loading=!1,a.isCountProcess++):(a.successMessageLogs="",a.errorMessageLogs=ba,a.loading=!1,a.isCountProcess++),a.getControllerData(e)})).then(null,(function(e){switch(a.successMessageLogs="",a.loading=!1,e.status){case 400:a.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?a.errorMessageLogs=ta:a.errorMessageLogs=ia;break;case 404:a.errorMessageLogs=aa;break;case 500:a.errorMessageLogs=fa;break;case 503:a.errorMessageLogs=ha;break;default:a.errorMessageLogs=ba;break}a.isCountProcess++}))},changeModel:function(e){this.typeItems=[];for(var t=e.gateCount,a=1;a<=t;a++)this.typeItems.push({text:a,value:a});this.dataControlPanels.gateCount=1},clickBackControlPanel:function(){this.$emit("deleteBridgeProperty"),this.goBack},clickSaveControlPanel:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return console.log("eventArgs",e),t.loading=!0,e.data,t.successMessageLogs="",t.errorMessageLogs="",a.next=7,t.postController(e);case 7:s=a.sent,t.loading=!1,s&&setTimeout((function(){t.$emit("close-modal-page-from-add")}),100);case 10:case"end":return a.stop()}}),a)})))()},clickUpdateControlPanel:function(e){this.isCheck=e.check,console.log("eventArgs",e),this.updateController(e.data,e.antipassbackSetting,e.antipassbackClearTime,e.isAntipass)},clearItem:function(e){var t=this;return new Promise((function(a,s){t.$http.post(ie+"/"+encodeURIComponent(e)+"/antipassback-clear",{type:0}).then((function(e){"Success"===e.body.message?a(!0):a(!1),t.loading=!1})).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a(!1)}))}))},getGate:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,a.getGateCountNumber(e);case 2:return s.next=4,a.getGateCount(t);case 4:case"end":return s.stop()}}),s)})))()},getControllerData:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.loadingChild=!0,s=le+"?controllerId="+encodeURIComponent(e)+"&embed=user,controller",t.$http.get(s).then((function(a){t.resetData(),!t.isEmpty(a.body.controllerManagementUsers)&&a.body.controllerManagementUsers.length>0?(t.dataControlPanels=a.body.controllerManagementUsers[0].controller,t.dataControlPanels.userId=a.body.controllerManagementUsers[0].user.userId,t.getListGateByControllerId(1,e),t.getGate(e,a.body.controllerManagementUsers[0].controller.model)):t.loadingChild=!1})).then(null,(function(e){switch(t.resetData(),t.loadingChild=!1,console.log("err: ",e),e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}));case 3:case"end":return a.stop()}}),a)})))()},getControllerModelAll:function(e){var t=this;this.$http.get(ce+"?limit=1000&page="+e).then((function(a){a.body.maxRecords>0?(a.body.controllerModels.forEach((function(e){t.controllerModel.push({text:e.controllerModelName,value:e.controllerModelId,gateCount:e.gateCount})})),a.body.maxRecords>a.body.endRecord&&t.getControllerModelAll(e+1)):t.controllerModel=null})).then(null,(function(e){console.log(e)}))},getListGateByControllerId:function(e,t){var a=this,s=oe+"?controllerId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&sortKey=desc:gateId&embed=gate";this.$http.get(s).then((function(s){s.body.maxRecords>0?(s.body.relationsControllerGate.forEach((function(e){a.gateList.push({text:e.gate.gateName,value:e.gateId,controllerGateNo:e.controllerGateNo})})),s.body.maxRecords>s.body.endRecord?a.getListGateByControllerId(e+1,t):(a.gateList.sort((function(e,t){return e.controllerGateNo-t.controllerGateNo})),a.loadingChild=!1)):(a.gateList=[],a.loadingChild=!1)})).then(null,(function(e){a.loadingChild=!1,console.log("err: ",e)}))},getGateCountNumber:function(e){var t=this;return new Promise((function(a,s){t.dataControlPanels.gateCount=0,t.gateCount=0;var r=oe+"?controllerId="+encodeURIComponent(e)+"&limit=25&page=1&sortKey=desc:gateId&embed=gate";t.$http.get(r).then((function(e){e.body.maxRecords>0&&(t.gateCount=e.body.maxRecords),a(!0)})).then(null,(function(e){t.loading=!1,console.log("err: ",e),a(!1)}))}))},getControllerModel:function(e){var t=this;return new Promise((function(a,s){t.$http.get(ce+"?limit=100&page=1&keyword="+e.model+"&scorp=controllerModelName").then((function(e){t.controllerModelId=e.body.controllerModels[0].controllerModelId,a(!0)})).then(null,(function(e){console.log(e),a(!1)}))}))},postController:function(e){var t,a=this;return t=e.data,new Promise((function(s,r){var o={name:t.name,gateCount:t.gateCount,antipassbackSetting:0,antipassbackClearTime:"99:99",userId:t.userId,password:t.password,controllerModelId:t.model.value};!0===e.antipassbackSetting&&(o.antipassbackSetting=2),void 0!==e.antipassbackClearTime&&null!==e.antipassbackClearTime&&""!==e.antipassbackClearTime&&!0===e.isAntipass&&(o.antipassbackClearTime=e.antipassbackClearTime),a.$http.post(ie,o).then((function(e){"Success"===e.body.message?(a.dataControlPanels={controllerId:"",name:"",phoneId:"",model:"",antipassbackSetting:0,antipassbackClearTime:"",userId:"",newPassword:"",password:"",gateCount:0},a.successMessageLogs=es,a.$emit("controller-success",!0),a.controllerId=e.body.controllerId,s(!0)):(a.errorMessageLogs=ba,a.$emit("controller-success",!1),s(!1))})).then(null,(function(e){switch(e.status){case 400:a.errorMessageLogs=Qt;break;case 403:a.errorMessageLogs=ta;break;case 409:a.errorMessageLogs=ua;break;case 500:a.errorMessageLogs=fa;break;case 503:a.errorMessageLogs=ha;break;default:a.errorMessageLogs=ba;break}s(!1)}))}))},changePassword:function(e){var t=this,a={userId:e.userId,newPassword:e.newPassword,isSendEmail:!1};this.$http.post(me,JSON.stringify(a)).then((function(e){"Success"===e.body.message?console.log(e):(t.successMessageLogs="",t.errorMessageLogs=ba),t.loading=!1,t.isCountProcess++})).then(null,(function(e){switch(t.loading=!1,t.successMessageLogs="",e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.isCountProcess++}))},updateController:function(e,t,a,s){var r=this;this.isCountProcess=0,console.log("data",e),this.successMessageLogs="",this.errorMessageLogs="",this.loading=!0;var o={name:e.name,antipassbackSetting:0,antipassbackClearTime:"99:99"};!0===t&&(o.antipassbackSetting=2),void 0!==a&&null!==a&&""!==a&&!0===s&&(o.antipassbackClearTime=a),this.$http.put(ie+"/"+encodeURIComponent(this.controllerId),o).then((function(t){"Success"===t.body.message?(r.successMessageLogs=ts,r.$emit("controller-success",!0),r.dataControlPanels.antipassbackClearTime=o.antipassbackClearTime,"0"!==e.gateCount.toString()?r.postGateCount(r.controllerId,e):void 0!==e.newPassword&&null!==e.newPassword&&""!==e.newPassword?r.changePassword(e):(r.loading=!1,r.isCountProcess++),setTimeout((function(){r.$emit("close-modal-page-from-edit")}),100)):(r.loading=!1,r.errorMessageLogs=ba,r.$emit("controller-success",!1),r.isCountProcess++)})).then(null,(function(e){switch(e.status){case 400:r.errorMessageLogs=Qt;break;case 403:r.errorMessageLogs=ta;break;case 404:r.errorMessageLogs="対象の制御盤、または、デバイスが存在しない。";break;case 409:r.errorMessageLogs="指定したphoneIdのデバイスが既に他の制御盤の管理に使われている。";break;case 500:r.errorMessageLogs=fa;break;case 503:r.errorMessageLogs=ha;break;default:r.errorMessageLogs=ba;break}r.loading=!1,r.isCountProcess++}))},postAtto:function(e){var t=this;return new Promise((function(a,s){var r={appId:"",controllerId:e.controllerId,password:e.password};t.$http.post(ue,r).then((function(e){console.log(e),a(null)})).then(null,(function(e){console.log(e),a(null)}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataControlPanels={controllerId:"",name:"",phoneId:"",model:"",antipassbackSetting:0,antipassbackClearTime:"",userId:"",newPassword:"",password:"",gateCount:0},this.gateList=[],this.successMessageLogs="",this.errorMessageLogs=""}}}),Kf=Hf,Yf=Object(I["a"])(Kf,Mf,Lf,!1,null,null,null),qf=Yf.exports,Wf=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("gate-detail-template",{attrs:{successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,successMessageModal:e.successMessageModal,errorMessageModal:e.errorMessageModal,gateDetail:e.gateDetail,groupList:e.groupList,showConfirm:e.showConfirm,groupId:e.groupId,dayTypes:e.dayTypes,loading:e.loading,loadingChild:e.loadingChild,dataUnlockingTime:e.dataUnlockingTime,groupsAddFail:e.groupsAddFail,isFinishDetailGate:e.isFinishDetailGate,isGateEditModalShow:e.isGateEditModalShow,isRemoteUnlockValid:e.isRemoteUnlockValid,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,authority:e.authority},on:{clickBackGate:function(t){return e.clickBackGate(t)},clickRemoteUnlock:function(t){return e.remoteUnlock(t)},clickConfirm:function(t){return e.clickConfirm(t)},closeModalConfirm:function(t){return e.closeModalConfirm(t)},clickEditGate:function(t){return e.clickEditGate(t)},ChangeProperty:e.ChangeProperty,"loading-from-child":function(t){return e.$emit("loading",t)},clickGroupDetail:e.clickGroupDetail,getReload:function(t){return e.$emit("getReload",t)},updateGate:function(t){return e.$emit("updateGate",t)}}})},Jf=[],Zf=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-container",{staticClass:"pt-0",staticStyle:{position:"relative"}},[a("ModalLoading",{attrs:{loading:e.loadingChild}}),e._v(" "),""!==e.successMessageLogs&&e.groupsAddFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_GATE_EDIT.replace("GROUP_NAME",e.groupsAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("gate-detail-table",{attrs:{loading:e.loading,gateDetail:e.gateDetail,groupList:e.groupList,groupId:e.groupId,showConfirm:e.showConfirm,dataUnlockingTime:e.dataUnlockingTime,successMessageModal:e.successMessageModal,errorMessageModal:e.errorMessageModal,dayTypes:e.dayTypes,isFinishEditGate:e.isFinishEditGate,authority:e.authority,isRemoteUnlockValid:e.isRemoteUnlockValid,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting},on:{clickUpdateGate:function(t){return e.$emit("clickUpdateGate",t)},clickConfirm:function(t){return e.$emit("clickConfirm",t)},closeModalConfirm:function(t){return e.$emit("closeModalConfirm",t)},clickRemoteUnlock:function(t){return e.$emit("clickRemoteUnlock",t)},clickEditGate:function(t){e.$emit("clickEditGate",t),e.isReloadData=!1},clickGroupDetail:function(t){return e.$emit("clickGroupDetail",t)}}})],1),e._v(" "),a("Modal",{attrs:{title:"ゲート編集","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:e.deleteBridgeProperty},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isGateEditModalShow?a("GateEditPage",{attrs:{isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,authority:e.authority},on:{updateGate:function(t){return e.$emit("updateGate",t)},getReload:function(t){return e.getReload(t)},deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)},"load-gates":function(t){return e.$emit("load-gates",t)}}}):e._e()]},proxy:!0}]),model:{value:e.isGateEditModalShow,callback:function(t){e.isGateEditModalShow=t},expression:"isGateEditModalShow"}})],1)},Xf=[],Qf=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-row",{staticClass:"mb-2 mt-2 mr-2",attrs:{justify:"end"}},[!0===e.authority.isAdmin||!0===e.isAdminOfRemoteUnlock?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirm")}}},[a("v-icon",{staticStyle:{color:"white !important"}},[e._v("mdi-lock-outline")]),e._v("リモート解錠\n ")],1):e._e(),e._v(" "),e.authority.isAdmin?a("v-btn",{directives:[{name:"show",rawName:"v-show",value:e.isRemoteUnlockValid,expression:"isRemoteUnlockValid"}],staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickEditGate",e.gateDetail)}}},[e._v("\n ゲート情報を編集する\n ")]):!0===e.isAdminOfUnlockingTimeSetting?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickEditGate",e.gateDetail)}}},[e._v("\n ゲート情報を編集する\n ")]):e._e()],1),e._v(" "),a("v-container",{staticClass:"pt-0"},[a("div",[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold ml-3"},[e._v("\n ゲート情報\n ")])],1),e._v(" "),a("div",{staticClass:"round-content-scroll "},[a("v-form",{ref:"GateAddForm",attrs:{"lazy-validation":""}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("div",{staticClass:"info-item"},[a("div",{staticClass:"title-display-block"},[e._v("ゲート名")]),e._v(" "),a("div",{staticClass:"text-body-2 font-weight-bold"},[e._v(" "+e._s(e.gateDetail.gateName)+" ")])]),e._v(" "),a("div",{staticClass:"info-item mt-3"},[a("div",{staticClass:"title-display-block"},[e._v("製品モデル名(型番)")]),e._v(" "),a("div",{staticClass:"text-body-2 font-weight-bold"},[e._v(" "+e._s(e.gateDetail.gateModelCode)+" ")])]),e._v(" "),a("div",{staticClass:"info-item mt-3"},[a("div",{staticClass:"title-display-block"},[e._v("備考1")]),e._v(" "),a("div",{staticClass:"text-body-2 font-weight-bold"},[e._v(" "+e._s(e.gateDetail.option1)+" ")])]),e._v(" "),a("div",{staticClass:"info-item mt-3"},[a("div",{staticClass:"title-display-block"},[e._v("備考2")]),e._v(" "),a("div",{staticClass:"text-body-2 font-weight-bold"},[e._v(" "+e._s(e.gateDetail.option2)+" ")])]),e._v(" "),a("div",{staticClass:"info-item mt-3"},[a("div",{staticClass:"title-display-block"},[e._v("通行権限グループ")]),e._v(" "),e.groupList.length>0?a("v-row",e._l(e.groupList,(function(t){return a("v-col",{key:t.value,attrs:{md:"4",sm:"6",cols:"12"}},[a("text-link",{staticClass:"font-weight-bold",attrs:{text:t.text},on:{click:function(a){return e.clickGroup(t.value)}}})],1)})),1):e._e()],1)]),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 連続解錠時間\n ")])],1),e._v(" "),a("div",{staticClass:"table-edit-time pl-0 table-edit-time-gate time-period"},[a("v-data-table",{staticClass:"border-table shadow-table scroll-table table-no-bg",attrs:{headers:e.headers,items:e.dataUnlockingTime,"no-data-text":"データーはありません","hide-default-footer":"","items-per-page":-1},scopedSlots:e._u([{key:"item",fn:function(t){return[a("tr",[a("td",{staticClass:"text-body-2 font-weight-bold"},[e._v(e._s(t.item.dayTypeName))]),e._v(" "),t.item.allDay?a("td",{staticClass:"text-body-2 font-weight-bold"},[e._v("終日")]):a("td",e._l(t.item.listTime,(function(t){return a("div",{staticClass:"text-body-2 font-weight-bold"},[e._v(e._s(t.startTime)+" ~\n "+e._s(t.endTime))])})),0)])]}}])})],1)],1)],1)],1)]),e._v(" "),a("Modal",{attrs:{title:"リモート解錠",smallScreen:"600px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("v-row",[""===e.successMessageModal&&""===e.errorMessageModal?a("v-col",[e._v("\n "+e._s(e.gateDetail.gateName)+"ゲートをリモート解錠します。\n ")]):e._e(),e._v(" "),""!==e.successMessageModal?a("v-col",{staticClass:"font-weight-bold bg-success no-bg"},[e._v("\n "+e._s(e.successMessageModal)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageModal?a("v-col",{staticClass:"font-weight-bold bg-error no-bg",domProps:{innerHTML:e._s(e.errorMessageModal)}}):e._e()],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),""===e.errorMessageModal&&""===e.successMessageModal?a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("clickRemoteUnlock")}}}):a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalConfirm")}}})]},proxy:!0}]),model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}})],1)},eh=[],th=f["a"].extend({name:"GateDetailTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,TextLink:No,ModalTitle:Xc,ModalLoading:Zg,Modal:bn},props:{typeItems:{type:Array,default:function(){return[]}},unlockTimes:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},successMessageModal:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},gateDetail:{default:{}},groupList:{default:[]},dayTypes:{type:Array,default:[]},dataUnlockingTime:{type:Array,default:[]},isFinishEditGate:{default:!1},showModal:{default:!1},showConfirm:{default:!1},isRemoteUnlockValid:{default:!1},isAdminOfRemoteUnlock:{default:!1},isAdminOfUnlockingTimeSetting:{default:!1},loading:{default:!1},authority:{type:Object,default:{}}},watch:{},computed:{headers:{get:function(){var e=[{text:"曜日",align:"start",sortable:!1,value:"date"},{text:"期間指定",align:"start",sortable:!1,value:"time"}];return e},set:function(){}},isConfirm:{get:function(){return this.showConfirm},set:function(e){!1===e&&this.$emit("closeModalConfirm")}}},methods:{formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},clickGroup:function(e){this.$emit("clickGroupDetail",e)}}}),ah=th,sh=(a("754d"),Object(I["a"])(ah,Qf,eh,!1,null,null,null)),rh=sh.exports;C()(sh,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VForm:Nl["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"]});for(var oh=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("gate-edit-template",{attrs:{successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,gateDetail:e.gateDetail,groupList:e.groupList,groupId:e.groupId,loading:e.loading,dayTypes:e.dayTypes,loadingChild:e.loadingChild,dataUnlockingTime:e.dataUnlockingTime,dataUnlockingTimeConvert:e.dataUnlockingTimeConvert,errorMessageTime:e.errorMessageTime,groupsAddFail:e.groupsAddFail,isFinishEditGate:e.isFinishEditGate,listGateModel:e.listGateModel},on:{clickBackGate:function(t){return e.clickBackGate(t)},clickUpdateGate:function(t){return e.clickUpdateGate(t)},"loading-from-child":function(t){return e.$emit("loading",t)},showDialogImport:function(t){return e.showDialogImport(t)}}})},nh=[],ih=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-container",{staticStyle:{position:"relative"}},[a("ModalLoading",{attrs:{loading:e.loadingChild}}),e._v(" "),""!==e.successMessageLogs&&e.groupsAddFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_GATE_EDIT.replace("GROUP_NAME",e.groupsAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&!1===e.loading&&""===e.errorMessageTime?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+" "),a("br")]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&!1===e.loading&&""!==e.errorMessageTime?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.successMessageLogs)+" "),a("br"),e._v("\n "+e._s(e.errorMessageTime)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("gate-edit-form",{attrs:{gateDetail:e.gateDetail,groupList:e.groupList,groupId:e.groupId,dataUnlockingTime:e.dataUnlockingTime,dayTypes:e.dayTypes,isFinishEditGate:e.isFinishEditGate,dataUnlockingTimeConvert:e.dataUnlockingTimeConvert,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageTime:e.errorMessageTime,groupsAddFail:e.groupsAddFail,loading:e.loading,listGateModel:e.listGateModel},on:{clickUpdateGate:function(t){return e.$emit("clickUpdateGate",t)}}})],1)],1)},lh=[],ch=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-container",[a("div",[e.authority.isAdmin?a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue ml-3"},[e._v("\n ゲート情報\n ")])],1):e._e(),e._v(" "),a("div",{staticClass:"round-content-scroll"},[a("v-form",{ref:"GateAddForm",attrs:{"lazy-validation":""}},[e.authority.isAdmin?a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("div",[a("div",{staticClass:"title-display-block"},[e._v("\n ゲート名\n ")]),e._v(" "),a("input-form",{staticClass:"text-body-2",attrs:{inputType:"text",rules:[e.rulesValidate.requiredName,e.rulesValidate.validateName]},model:{value:e.gateDetail.gateName,callback:function(t){e.$set(e.gateDetail,"gateName",t)},expression:"gateDetail.gateName"}})],1),e._v(" "),""===e.gateId||void 0===e.gateId||null===e.gateId?a("div",{staticClass:"mt-3"},[a("div",{staticClass:"title-display-block"},[e._v("\n 製品モデル(型番)\n ")]),e._v(" "),a("v-autocomplete",{staticClass:"text-body-2",attrs:{items:e.listGateModel,"item-text":"gateModelCode","item-value":"gateModelId",color:"green","return-object":"","hide-details":"auto",outlined:"",dense:"","no-data-text":"","menu-props":{contentClass:"v-select-item "},disabled:0===e.groupList.length},model:{value:e.gateDetail.gateModel,callback:function(t){e.$set(e.gateDetail,"gateModel",t)},expression:"gateDetail.gateModel"}})],1):e._e(),e._v(" "),a("div",{staticClass:"mt-3"},[a("div",{staticClass:"title-display-block"},[e._v("\n 備考1\n ")]),e._v(" "),a("input-form",{staticClass:"text-body-2",attrs:{inputType:"text",rules:[e.rulesValidate.validateOption1]},model:{value:e.gateDetail.option1,callback:function(t){e.$set(e.gateDetail,"option1",t)},expression:"gateDetail.option1"}})],1),e._v(" "),a("div",{staticClass:"mt-3"},[a("div",{staticClass:"title-display-block"},[e._v("\n 備考2\n ")]),e._v(" "),a("input-form",{staticClass:"text-body-2",attrs:{inputType:"text",rules:[e.rulesValidate.validateOption2]},model:{value:e.gateDetail.option2,callback:function(t){e.$set(e.gateDetail,"option2",t)},expression:"gateDetail.option2"}})],1),e._v(" "),a("div",{staticClass:"mt-3"},[[a("div",{staticClass:"title-display-block"},[e._v("\n 通行権限グループ\n ")])],e._v(" "),a("v-autocomplete",{attrs:{items:e.groupList,color:"green","return-object":"","hide-details":"auto",outlined:"",dense:"","deletable-chips":"",multiple:"","small-chips":"","no-data-text":"",disabled:0===e.groupList.length,"menu-props":{contentClass:"v-select-item "}},model:{value:e.gateDetail.groups,callback:function(t){e.$set(e.gateDetail,"groups",t)},expression:"gateDetail.groups"}})],2)]):e._e(),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 連続解錠時間\n ")])],1),e._v(" "),a("div",{staticClass:"table-edit-time pl-0 table-edit-time-gate"},[a("v-data-table",{staticClass:"border-table shadow-table scroll-table",attrs:{headers:e.headers,"items-per-page":-1,items:e.filteredItems,"no-data-text":"データーはありません","hide-default-footer":""},scopedSlots:e._u([{key:"item",fn:function(t){return[a("tr",[a("td",{staticClass:"text-body-2 font-weight-bold"},[e._v(e._s(t.item.dayTypeName))]),e._v(" "),t.item.allDay?a("td",{staticClass:"text-body-2 font-weight-bold"},[e._v("終日")]):a("td",e._l(t.item.listTime,(function(t){return a("div",{staticClass:"text-body-2 font-weight-bold"},[void 0!==t?a("span",[e._v(e._s(t.startTime))]):e._e(),e._v(" "),void 0!==t?a("span",[e._v(" ~ "+e._s(t.endTime))]):e._e()])})),0),e._v(" "),a("td",{staticClass:"last-col text-align-end"},[a("v-btn",{attrs:{icon:""},on:{click:function(a){return e.deleteSpecialTime(t.item.index)}}},[a("v-icon",{staticClass:"gray--text"},[e._v("mdi-trash-can-outline")])],1)],1)])]}}])},[a("template",{slot:"body.prepend"},[a("tr",[a("td",{staticClass:"day-type text-body-2 pr-0"},[a("v-autocomplete",{staticClass:"table-select",attrs:{items:e.dayTypes,"return-object":"",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:"","menu-props":{contentClass:"v-select-item "},autocomplete:"off"},model:{value:e.inputSpecialday,callback:function(t){e.inputSpecialday=t},expression:"inputSpecialday"}}),e._v(" "),""===e.errorAddListTime&&""!==e.errorGate?a("v-row",{staticClass:"my-0 py-0 pr-0",staticStyle:{"margin-top":"4px"}},[a("v-col",{staticClass:"my-0 py-0 pr-0"},[a("span",{staticClass:"error-special add hours"},[e._v(e._s(e.errorGate))])])],1):e._e(),e._v(" "),""!==e.errorAddListTime&&""===e.errorGate?a("v-row",{staticClass:"my-0 py-0 pr-0",staticStyle:{"margin-top":"4px"}},[a("v-col",{staticClass:"my-0 py-0"},[a("span",{staticClass:"error-special add hours"},[e._v(e._s(e.errorAddListTime))])])],1):e._e()],1),e._v(" "),a("td",{staticClass:"day-time text-body-2"},[e._l(e.tmpArray,(function(t,s){return[a("v-row",{staticClass:"mb-0 py-0",staticStyle:{"margin-top":"4px"}},[a("v-col",{staticClass:"my-0 py-0"},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time text-body-2",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline","hide-details":"auto",autocomplete:"off",readonly:""},model:{value:e.hoursStartSpecialArr[s],callback:function(t){e.$set(e.hoursStartSpecialArr,s,t)},expression:"hoursStartSpecialArr[index]"}},"v-text-field",o,!1),r))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mr-7 ml-7 mb-3 mt-3 align-center text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:"","hide-details":"","no-data-text":""},on:{change:function(t){e.hoursStartSpecialArr[s]=e.formatTime(e.hourStartArr[s],e.minuteStartArr[s])}},model:{value:e.hourStartArr[s],callback:function(t){e.$set(e.hourStartArr,s,t)},expression:"hourStartArr[index]"}})],1),e._v(" "),a("div",{staticClass:"mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","no-data-text":""},on:{change:function(t){e.hoursStartSpecialArr[s]=e.formatTime(e.hourStartArr[s],e.minuteStartArr[s])}},model:{value:e.minuteStartArr[s],callback:function(t){e.$set(e.minuteStartArr,s,t)},expression:"minuteStartArr[index]"}})],1)])],1)],1),e._v(" "),a("v-col",{staticClass:"text-center my-0 py-0",staticStyle:{"align-content":"center"},attrs:{cols:"1",pa:"0"}},[e._v("~")]),e._v(" "),a("v-col",{staticClass:"my-0 py-0"},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-time text-body-2",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline","hide-details":"auto",autocomplete:"off",readonly:""},model:{value:e.hoursEndSpecialArr[s],callback:function(t){e.$set(e.hoursEndSpecialArr,s,t)},expression:"hoursEndSpecialArr[index]"}},"v-text-field",o,!1),r))]}}],null,!0)},[e._v(" "),a("v-row",{staticClass:"mr-7 ml-7 mb-3 mt-3 align-center text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:"","hide-details":"","full-width":"","no-data-text":""},on:{change:function(t){e.hoursEndSpecialArr[s]=e.formatTime(e.hourEndArr[s],e.minuteEndArr[s])}},model:{value:e.hourEndArr[s],callback:function(t){e.$set(e.hourEndArr,s,t)},expression:"hourEndArr[index]"}})],1),e._v(" "),a("div",{staticClass:"mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","hide-details":"","full-width":"","no-data-text":""},on:{change:function(t){e.hoursEndSpecialArr[s]=e.formatTime(e.hourEndArr[s],e.minuteEndArr[s])}},model:{value:e.minuteEndArr[s],callback:function(t){e.$set(e.minuteEndArr,s,t)},expression:"minuteEndArr[index]"}})],1)])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"1"}},[s?a("v-btn",{staticClass:"delTime",attrs:{icon:"",al:""},on:{click:function(t){return e.deleteItem(s)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1):e._e()],1)],1),e._v(" "),a("v-row",{staticClass:"my-0 py-0",staticStyle:{"margin-top":"4px"}},[a("v-col",{staticClass:"my-0 py-0"},[a("span",{staticClass:"error-special add hours"},[e._v(e._s(e.errorTimeArr[s]))])])],1)]})),e._v(" "),a("v-row",{staticClass:"my-0 py-0",staticStyle:{"margin-top":"4px"}},[a("v-col",{staticClass:"my-0 py-0"},[a("text-link",{staticClass:"black--text text-body-2",attrs:{text:"+ 行を追加"},on:{click:function(t){return e.addRow()}}})],1)],1)],2),e._v(" "),a("td",{staticStyle:{"align-content":"start"}},[a("div",{staticClass:"d-flex justify-space-between"},[a("v-checkbox",{staticClass:"allig-checkbox ml-0 text-body-2",staticStyle:{"margin-top":"5px !important"},attrs:{label:"終日","hide-details":"auto"},model:{value:e.allDay,callback:function(t){e.allDay=t},expression:"allDay"}}),e._v(" "),a("v-btn",{staticClass:"btn-secondary mr-0",staticStyle:{"margin-top":"4px"},attrs:{outlined:""},on:{click:function(t){return e.addSpecialTime()}}},[e._v("\n 追加\n ")])],1)])])])],2)],1),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[""!==e.successMessageLogs&&e.groupsAddFail.length>0&&!1===e.loading?a("div",{staticClass:"mb-4 font-weight-bold mt-4 bg-error messageRow bg-no",attrs:{cols:"11",align:"right"}},[a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_GATE_EDIT.replace("GROUP_NAME",e.groupsAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&!1===e.loading&&""===e.errorMessageTime?a("div",{staticClass:"mb-4 font-weight-bold mt-4 bg-success messageRow bg-no",attrs:{cols:"11",align:"right"}},[e._v("\n "+e._s(e.successMessageLogs)+" "),a("br")]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&!1===e.loading&&""!==e.errorMessageTime?a("div",{staticClass:"mb-4 font-weight-bold mt-4 bg-error messageRow bg-no",attrs:{cols:"11",align:"right"}},[e._v("\n "+e._s(e.successMessageLogs)+" "),a("br"),e._v("\n "+e._s(e.errorMessageTime)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("div",{staticClass:"mb-4 font-weight-bold mt-4 bg-error messageRow bg-no",attrs:{cols:"11",align:"right"}},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("div",{staticClass:"messageRow",attrs:{cols:"1",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.clickUpdateGate}},[e._v("\n 保存する\n ")])],1)])],1)],1)],1)])],1)},uh=[],dh=[],gh=0;gh<=59;gh++){var ph="";ph=gh<10?"0"+gh:gh.toString(),dh.push(ph)}var mh=f["a"].extend({name:"GateEditForm",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,TextLink:No},props:{typeItems:{type:Array,default:function(){return[]}},unlockTimes:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},gateDetail:{type:Object,default:function(){return{}}},groupList:{default:[]},dayTypes:{type:Array,default:[]},dataUnlockingTimeConvert:{type:Array,default:[]},dataUnlockingTime:{type:Array,default:[]},isFinishEditGate:{default:!1},groupsAddFail:{default:[]},loading:{default:!1},errorMessageTime:{type:String,default:""},listGateModel:{type:Array,default:function(){return[]}}},data:function(){return{groupValue:"",inputSpecialday:[],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:dh,timeS:"00:00",hourStartArr:[],minuteStartArr:[],hourEndArr:[],minuteEndArr:[],hoursStartSpecialArr:[],hoursEndSpecialArr:[],errorTimeArr:["","","","",""],errorAddListTime:"",errorGate:"",allDay:!1,arrayAddSpecialTime:[],arrayDelSpecialTime:[],tmpUnlockingTime:[],rulesValidate:{requiredName:function(e){return!!e||"ゲート名は64文字以内で入力してください"},validateName:function(e){return e.length<=64||"ゲート名は64文字以内で入力してください。"},validateOption1:function(e){return null===e||void 0===e||""===e||(e.length<=64||"備考1は64文字以内で入力してください。")},validateOption2:function(e){return null===e||void 0===e||""===e||(e.length<=64||"備考2は64文字以内で入力してください。")}},Message:s,tmpArray:[],gateId:localStorage.getItem("gateId"),authority:er.state.auth}},mounted:function(){this.tmpArray=[0]},watch:{groupList:function(e){this.groupValue=this.groupId},dataUnlockingTimeConvert:function(e){this.tmpUnlockingTime=this.dataUnlockingTimeConvert},isFinishEditGate:function(e){e&&(this.arrayAddSpecialTime=[],this.arrayDelSpecialTime=[])}},computed:{headers:{get:function(){var e=[{text:"曜日",align:"start",sortable:!1,value:"date"},{text:"期間指定",align:"start",sortable:!1,value:"time"},{text:"",align:"center",sortable:!1,width:"180px !important",value:"delete"}];return e},set:function(){}},filteredItems:{get:function(){return this.tmpUnlockingTime.filter((function(e){return"del"!==e.action}))}}},methods:{clickUpdateGate:function(){var e=this.$refs.GateAddForm.validate();e&&this.$emit("clickUpdateGate",{dataUnlockingTime:this.dataUnlockingTime,tmpUnlockingTime:this.tmpUnlockingTime,gateDetail:this.gateDetail,groupId:this.groupValue})},formatTime:function(e,t){return t=t||"00",e=e||"00","".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},addSpecialTime:function(){var e=this,t=!1;this.errorAddListTime="",this.errorTimeArr=[],this.errorGate="";var a=!1;0!==this.inputSpecialday.length&&""!==this.inputSpecialday.value||(a=!0,this.errorGate="曜日を指定してください。",this.errorAddListTime="");var s,r=Object(rr["a"])(this.dataUnlockingTimeConvert);try{for(r.s();!(s=r.n()).done;){var o=s.value,n=("del"===o.action?0:o.listTime.length)+this.hoursStartSpecialArr.length,i=("del"===o.action?0:o.listTime.length)+this.hoursEndSpecialArr.length;if(o.dayTypeId===this.inputSpecialday.value&&(n>5||i>5)){this.errorAddListTime="同一の曜日での設定が上限を達しております。追加する場合は、一度削除してから実施してください。",this.errorGate="",t=!0;break}}}catch(p){r.e(p)}finally{r.f()}var l=/^([01][0-9]|2[0-3]):[0-5][0-9]$/;if(!1===this.allDay)for(var c in 0===this.hoursStartSpecialArr.length&&(a=!0,this.$set(this.errorTimeArr,0,"時間を指定してください。")),this.hoursStartSpecialArr)this.hoursStartSpecialArr.hasOwnProperty(c)&&(!1===l.test(this.hoursStartSpecialArr[c])&&(a=!0,this.$set(this.errorTimeArr,c,"時間を指定してください。")),!1===l.test(this.hoursEndSpecialArr[c])&&(a=!0,this.$set(this.errorTimeArr,c,"時間を指定してください。")),this.hoursStartSpecialArr[c]>=this.hoursEndSpecialArr[c]&&(a=!0,this.$set(this.errorTimeArr,c,as)),!1===a&&this.$set(this.errorTimeArr,c,""),this.tmpArray.length>1&&""===this.hoursStartSpecialArr[c]&&""===this.hoursEndSpecialArr[c]&&this.hoursStartSpecialArr.splice(Number(c),1));if(!t&&!1===a||!t&&!0===this.allDay&&0!==this.inputSpecialday.length){var u=this.tmpUnlockingTime.findIndex((function(t){return t.dayTypeId===e.inputSpecialday.value&&"del"===t.action}));if(u>=0)this.tmpUnlockingTime[u].action="edit",this.tmpUnlockingTime[u].allDay=!0===this.allDay?1:0,this.tmpUnlockingTime[u].listTime=this.hoursStartSpecialArr.map((function(t,a){return{startTime:!0===e.allDay?"00:00":e.hoursStartSpecialArr[a],endTime:!0===e.allDay?"00:00":e.hoursEndSpecialArr[a]}}));else{var d=this.tmpUnlockingTime.findLastIndex((function(t){return t.dayTypeId===e.inputSpecialday.value})),g=this.tmpUnlockingTime.findIndex((function(t){return t.dayTypeId===e.inputSpecialday.value}));if(-1!==g)return 1===this.tmpUnlockingTime[g].allDay&&!1===this.allDay?(this.tmpUnlockingTime[g].allDay=0,this.tmpUnlockingTime[g].listTime=this.hoursStartSpecialArr.map((function(t,a){return{startTime:e.hoursStartSpecialArr[a],endTime:e.hoursEndSpecialArr[a]}}))):(this.tmpUnlockingTime[g].allDay=!0===this.allDay?1:0,this.tmpUnlockingTime[g].listTime=this.tmpUnlockingTime[g].listTime.concat(this.hoursStartSpecialArr.map((function(t,a){return{startTime:!0===e.allDay?"00:00":e.hoursStartSpecialArr[a],endTime:!0===e.allDay?"00:00":e.hoursEndSpecialArr[a]}})))),this.tmpUnlockingTime[g].action="add"!==this.tmpUnlockingTime[g].action?"edit":this.tmpUnlockingTime[g].action,this.hoursStartSpecialArr=[],this.hoursEndSpecialArr=[],this.allDay=!1,this.inputSpecialday=[],this.tmpArray=[0],this.hourStartArr=[],this.minuteStartArr=[],this.hourEndArr=[],void(this.minuteEndArr=[]);this.tmpUnlockingTime.unshift({gateId:"",dayTypeId:this.inputSpecialday.value,dayTypeName:this.inputSpecialday.text,allDay:!0===this.allDay?1:0,pos:0,action:"add",index:d>0?this.tmpUnlockingTime[d].index+1:this.tmpUnlockingTime.length,listTime:this.hoursStartSpecialArr.map((function(t,a){return{startTime:!0===e.allDay?"00:00":e.hoursStartSpecialArr[a],endTime:!0===e.allDay?"00:00":e.hoursEndSpecialArr[a]}}))})}this.hoursStartSpecialArr=[],this.hoursEndSpecialArr=[],this.allDay=!1,this.inputSpecialday=[],this.tmpArray=[0],this.hourStartArr=[],this.minuteStartArr=[],this.hourEndArr=[],this.minuteEndArr=[]}},deleteSpecialTime:function(e){var t=this.tmpUnlockingTime.map((function(e){return e.index})).indexOf(e);"add"===this.tmpUnlockingTime[parseInt(t)].action?this.tmpUnlockingTime.splice(parseInt(t),1):this.tmpUnlockingTime[parseInt(t)].action="del"},addRow:function(){this.tmpArray.length<5&&this.tmpArray.push(this.tmpArray.length)},deleteItem:function(e){this.tmpArray.splice(parseInt(e),1),this.hoursStartSpecialArr.splice(parseInt(e),1),this.hoursEndSpecialArr.splice(parseInt(e),1),this.hourStartArr.splice(parseInt(e),1),this.minuteStartArr.splice(parseInt(e),1),this.hourEndArr.splice(parseInt(e),1),this.minuteEndArr.splice(parseInt(e),1)}}}),fh=mh,hh=(a("5be7"),Object(I["a"])(fh,ch,uh,!1,null,"2cbf4f1a",null)),vh=hh.exports;C()(hh,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCheckbox:Lr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VForm:Nl["a"],VIcon:Gr["a"],VMenu:Un["a"],VRow:Kr["a"],VSelect:_o["a"],VTextField:Tr["a"]});var bh=f["a"].extend({name:"GateEditTemplate",components:{GateEditForm:vh,Breadcrumbs:cn,ModalLoading:Zg},props:{unlockTimes:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},isEdit:{type:Boolean,default:!1},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},goBack:{type:String,default:""},errorMessageTime:{type:String,default:""},gateDetail:{type:Object,default:function(){return{}}},groupsAddFail:{default:[]},groupList:{default:[]},dataUnlockingTime:{default:[]},dataUnlockingTimeConvert:{default:[]},dayTypes:{default:[]},isFinishEditGate:{default:!1},loading:{default:!1},loadingChild:{default:!1},listGateModel:{type:Array,default:function(){return[]}}},data:function(){return{Message:s}},computed:{headers:{get:function(){var e=[{text:"能時間設定",align:"start",sortable:!0,value:"name",class:"grey"},{text:"詳細",align:"start",sortable:!0,value:"isValid",class:"grey"}];return e},set:function(){}},breadcrumbs:{get:function(){return[{text:"ゲート",disabled:!0},{text:"ゲート編集",disabled:!0}]}}}}),yh=bh,Ih=Object(I["a"])(yh,ih,lh,!1,null,null,null),xh=Ih.exports;C()(Ih,{VCol:Dr["a"],VContainer:Zo["a"]});var Ch=nr["a"].extend({name:"GateEditPage",components:{GateEditTemplate:xh},props:{isAdminOfUnlockingTimeSetting:{type:Boolean,default:!1},authority:{type:Object,default:{}}},data:function(){return{loading:!1,successMessageLogs:"",errorMessageTime:"",errorMessageLogs:"",gateDetail:{gateId:"",gateName:"",option1:"",option2:"",gateModelCode:"",groups:[],gateModel:{}},groupList:[],dataUnTimeOri:[],groupsAddFail:[],dataUnlockingTime:[],dataUnlockingTimeOri:[],groupItemsOrigin:[],dayTypes:[],dataUnlockingTimeConvert:[],dataPost:[],isFinishEditGate:!1,groupId:"",goBack:"gates",showModal:!1,successMessageModal:"",errorMessageModal:"",listGateModel:[],loadingChild:!1,countAPI:0}},mounted:function(){var e=this;if(this.authority.isAdmin){var t=localStorage.getItem("gateId");null!=t?this.getGateData(t).then((function(){e.gateDetail.groups=[],e.gateDetail.gateModelId=[],e.getGroups(1),e.getGroupByGate(1,t),e.getUnlockingTime(t),e.getDayTypes(1)})):this.getListGateModel()}else if(this.isAdminOfUnlockingTimeSetting){this.loadingChild=!0;var a=localStorage.getItem("gateId");null!=a&&(this.countAPI=0,this.getUnlockingTime(a),this.getDayTypes(1))}},created:function(){},watch:{loading:function(e){this.$emit("loading",e)},countAPI:function(e){!this.authority.isAdmin&&this.isAdminOfUnlockingTimeSetting&&e>=2&&(this.loadingChild=!1)}},methods:{clickBackGate:function(){this.$emit("deleteBridgeProperty"),this.isFinishEditGate&&this.$emit("load-gates",1)},clickUpdateGate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w,k,S,_,P,M,L,D,G,A,R,T,E,O,V,U,$,N,F,j,B;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.authority.isAdmin){a.next=141;break}t.dataPost=[],s=[],s=0===t.dataUnlockingTimeConvert.length?e.tmpUnlockingTime:t.dataUnlockingTimeConvert,r=s.slice(0),r.sort((function(e,t){return e.index-t.index})),o=Object(rr["a"])(r);try{for(i=function(){var e=n.value,a=t.dataPost.filter((function(t){return t.dayTypeId===e.dayTypeId}));if(0===a.length)if("del"===e.action)t.dataPost.push({dayTypeId:e.dayTypeId,allDay:e.allDay,del:1,add:0,edit:0,countItem:1});else{var s={dayTypeId:e.dayTypeId,allDay:e.allDay,startTime:e.startTime,endTime:e.endTime,del:0,add:"add"===e.action?1:0,edit:"edit"===e.action?1:0,countItem:1};for(var r in e.listTime)if(e.listTime.hasOwnProperty(r))switch(Number(r)){case 0:s.startTime=e.listTime[r].startTime,s.endTime=e.listTime[r].endTime;break;case 1:s.startTime2=e.listTime[r].startTime,s.endTime2=e.listTime[r].endTime;break;case 2:s.startTime3=e.listTime[r].startTime,s.endTime3=e.listTime[r].endTime;break;case 3:s.startTime4=e.listTime[r].startTime,s.endTime4=e.listTime[r].endTime;break;case 4:s.startTime5=e.listTime[r].startTime,s.endTime5=e.listTime[r].endTime;break}t.dataPost.push(s)}},o.s();!(n=o.n()).done;)i()}catch(z){o.e(z)}finally{o.f()}if(t.$route.query,e.groupId,t.dataUnlockingTimeOri,e.dataUnlockingTime,t.isFinishEditGate=!1,t.loading=!0,l=localStorage.getItem("gateId"),null===l){a.next=139;break}return c=e.gateDetail,u={gateName:c.gateName,option1:c.option1,option2:c.option2,gateModelCode:c.gateDetail},a.next=20,t.updateData(l,u);case 20:if(d=a.sent,!d){a.next=137;break}if(g=e.gateDetail.groups,p=t.groupItemsOrigin,!(void 0!==g&&g.length>0)){a.next=68;break}if(m=p.filter((function(e){return!g.some((function(t){return e.value===t.value}))})),f=g.filter((function(e){return!p.some((function(t){return e.value===t.value}))})),t.groupItemsOrigin=[],t.gateDetail.groups=[],!(m.length>0)){a.next=47;break}h=Object(rr["a"])(m),a.prev=31,h.s();case 33:if((v=h.n()).done){a.next=39;break}return b=v.value,a.next=37,t.delGroupItem(b);case 37:a.next=33;break;case 39:a.next=44;break;case 41:a.prev=41,a.t0=a["catch"](31),h.e(a.t0);case 44:return a.prev=44,h.f(),a.finish(44);case 47:if(!(f.length>0)){a.next=65;break}y=Object(rr["a"])(f),a.prev=49,y.s();case 51:if((I=y.n()).done){a.next=57;break}return x=I.value,a.next=55,t.postGroupItem(x,l);case 55:a.next=51;break;case 57:a.next=62;break;case 59:a.prev=59,a.t1=a["catch"](49),y.e(a.t1);case 62:return a.prev=62,y.f(),a.finish(62);case 65:t.getGroupByGate(1,l.toString()),a.next=88;break;case 68:if(void 0===g&&0!==g.length||!(p.length>0)){a.next=88;break}if(!(p.length>0)){a.next=87;break}C=Object(rr["a"])(p),a.prev=71,C.s();case 73:if((w=C.n()).done){a.next=79;break}return k=w.value,a.next=77,t.delGroupItem(k);case 77:a.next=73;break;case 79:a.next=84;break;case 81:a.prev=81,a.t2=a["catch"](71),C.e(a.t2);case 84:return a.prev=84,C.f(),a.finish(84);case 87:t.getGroupByGate(1,l.toString());case 88:if(t.errorMessageTime="",0!==t.groupsAddFail.length){a.next=133;break}S=[],_=Object(rr["a"])(t.dataPost),a.prev=92,_.s();case 94:if((P=_.n()).done){a.next=120;break}if(M=P.value,M.del!==M.countItem){a.next=101;break}return a.next=99,t.delUnlockingTime(M.dayTypeId,l);case 99:a.next=118;break;case 101:if(M.add!==M.countItem){a.next=109;break}delete M.add,delete M.del,delete M.edit,delete M.countItem,S.push(M),a.next=118;break;case 109:if(!(1===M.edit||M.del>0&&M.del0&&M.add0)){a.next=132;break}return D={gateId:l,timeSettings:S},a.next=132,t.postUnlockingTime(D);case 132:t.getUnlockingTime(l.toString());case 133:t.isFinishEditGate=!0,t.loading=!1,a.next=139;break;case 137:t.isFinishEditGate=!0,t.loading=!1;case 139:a.next=204;break;case 141:if(!t.isAdminOfUnlockingTimeSetting){a.next=204;break}t.countAPI=0,t.dataPost=[],G=[],G=0===t.dataUnlockingTimeConvert.length?e.tmpUnlockingTime:t.dataUnlockingTimeConvert,A=G.slice(0),A.sort((function(e,t){return e.index-t.index})),R=Object(rr["a"])(A);try{for(E=function(){var e=T.value,a=t.dataPost.filter((function(t){return t.dayTypeId===e.dayTypeId}));if(0===a.length)if("del"===e.action)t.dataPost.push({dayTypeId:e.dayTypeId,allDay:e.allDay,del:1,add:0,edit:0,countItem:1});else{var s={dayTypeId:e.dayTypeId,allDay:e.allDay,startTime:e.startTime,endTime:e.endTime,del:0,add:"add"===e.action?1:0,edit:"edit"===e.action?1:0,countItem:1};for(var r in e.listTime)if(e.listTime.hasOwnProperty(r))switch(Number(r)){case 0:s.startTime=e.listTime[r].startTime,s.endTime=e.listTime[r].endTime;break;case 1:s.startTime2=e.listTime[r].startTime,s.endTime2=e.listTime[r].endTime;break;case 2:s.startTime3=e.listTime[r].startTime,s.endTime3=e.listTime[r].endTime;break;case 3:s.startTime4=e.listTime[r].startTime,s.endTime4=e.listTime[r].endTime;break;case 4:s.startTime5=e.listTime[r].startTime,s.endTime5=e.listTime[r].endTime;break}t.dataPost.push(s)}},R.s();!(T=R.n()).done;)E()}catch(z){R.e(z)}finally{R.f()}if(t.isFinishEditGate=!1,t.loadingChild=!0,O=localStorage.getItem("gateId"),V=0,null===O){a.next=204;break}if(t.errorMessageTime="",0!==t.groupsAddFail.length){a.next=203;break}U=[],$=Object(rr["a"])(t.dataPost),a.prev=159,$.s();case 161:if((N=$.n()).done){a.next=189;break}if(F=N.value,F.del!==F.countItem){a.next=169;break}return a.next=166,t.delUnlockingTime(F.dayTypeId,O);case 166:V++,a.next=187;break;case 169:if(F.add!==F.countItem){a.next=177;break}delete F.add,delete F.del,delete F.edit,delete F.countItem,U.push(F),a.next=187;break;case 177:if(!(1===F.edit||F.del>0&&F.del0&&F.add0)){a.next=202;break}return B={gateId:O,timeSettings:U},a.next=201,t.postUnlockingTime(B);case 201:V++;case 202:V>0?(t.countAPI++,t.getUnlockingTime(O.toString())):t.loadingChild=!1;case 203:t.isFinishEditGate=!0;case 204:case"end":return a.stop()}}),a,null,[[31,41,44,47],[49,59,62,65],[71,81,84,87],[92,122,125,128],[159,191,194,197]])})))()},getGateData:function(e){var t=this;return new Promise((function(a,s){t.loadingChild=!0,t.errorMessageLogs="",t.$http.get(te+"?gateId="+encodeURIComponent(e)).then((function(e){t.loadingChild=!1,e.body.maxRecords>0&&e.body.gates.length>0&&(t.gateDetail=e.body.gates[0],t.gateDetail.gateModel={gateModelCode:e.body.gates[0].gateModelCode,gateModelId:e.body.gates[0].gateModelId,gateModelName:e.body.gates[0].gateModelName},a(null))})).then(null,(function(e){switch(console.log("err: ",e),t.loadingChild=!1,a(null),e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))}))},getGroups:function(e){var t=this;this.$http.get(H+"?limit=1000&page="+e+"&sortKey=desc:registered&isValid=true").then((function(a){a.body.maxRecords>0?(a.body.groups.forEach((function(e){t.groupList.push({text:e.name,value:e.groupId})})),a.body.maxRecords>a.body.endRecord&&t.getGroups(e+1)):t.groupList=[]})).then(null,(function(e){console.log("err: ",e)}))},getGroupByGate:function(e,t){var a=this;this.$http.get(X+"?gateId="+encodeURIComponent(t)+"&isExceptOptionalGate=true&embed=group&limit=1000&page="+e).then((function(s){s.body.maxRecords>0&&(s.body.relationsGateGroup.forEach((function(e){a.gateDetail.groups.push({text:e.group.name,value:e.groupId}),a.groupItemsOrigin.push({text:e.group.name,value:e.groupId,relationId:e.relationId})})),s.body.maxRecords>s.body.endRecord&&a.getGroupByGate(e+1,t))})).then(null,(function(e){console.log("err: ",e)}))},postGroupItem:function(e,t){var a=this;return new Promise((function(s,r){var o={gateId:t,groupId:e.value};a.$http.post(X,o).then((function(t){"Success"===t.body.message?s(!0):(a.groupsAddFail.push(e.text),s(!1))})).then(null,(function(t){console.log("err: ",t),a.groupsAddFail.push(e.text),s(!1)}))}))},delGroupItem:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(X+"/"+encodeURIComponent(e.relationId)).then((function(s){"Success"===s.body.message?a(!0):(t.groupsAddFail.push(e.text),a(!1))})).then(null,(function(s){console.log("err: ",s),t.groupsAddFail.push(e.text),a(!1)}))}))},delUnlockingTime:function(e,t){var a=this;return new Promise((function(s,r){a.$http.delete(re+"/"+encodeURIComponent(t)+"/"+encodeURIComponent(e)).then((function(e){a.errorMessageTime="",s(!0)})).then(null,(function(e){switch(e.status){case 400:a.errorMessageTime=oa;break;case 403:a.errorMessageTime=ta;break;case 500:a.errorMessageTime=fa;break;case 503:a.errorMessageTime=ha;break;default:a.errorMessageTime=ba;break}s(!1)}))}))},putUnlockingTime:function(e,t,a){var s=this;return console.log("data",a),new Promise((function(r,o){s.$http.put(re+"/"+encodeURIComponent(t)+"/"+encodeURIComponent(e),a).then((function(e){s.errorMessageTime="",r(!0)})).then(null,(function(e){switch(e.status){case 400:s.errorMessageTime=oa;break;case 409:s.errorMessageTime=na;break;case 403:s.errorMessageTime=ta;break;case 500:s.errorMessageTime=fa;break;case 503:s.errorMessageTime=ha;break;default:s.errorMessageTime=ba;break}r(!1),console.log("err: ",e)}))}))},postUnlockingTime:function(e){var t=this;return console.log("data",e),new Promise((function(a,s){t.$http.post(re,e).then((function(e){t.errorMessageTime="",a(!0)})).then(null,(function(e){switch(e.status){case 400:t.errorMessageTime=oa;break;case 409:t.errorMessageTime=na;break;case 403:t.errorMessageTime=ta;break;case 500:t.errorMessageTime=fa;break;case 503:t.errorMessageTime=ha;break;default:t.errorMessageTime=ba;break}a(!1),console.log("err: ",e)}))}))},getUnlockingTime:function(e){var t=this;this.dataUnlockingTimeOri=[],this.dataUnlockingTimeConvert=[],this.$http.get(re+"?gateId="+encodeURIComponent(e)+"&sortKey=asc:dayTypeId").then((function(e){if(e.body.maxRecords>0&&e.body.unlockingTimeSettings.length>0){var a=e.body.unlockingTimeSettings;t.dataUnlockingTime=a,a.forEach((function(e,a){var s=t.dataUnlockingTimeConvert.filter((function(t){return t.dayTypeId===e.dayTypeId}));if(0===s.length){var r=[];e.startTime&&"88:88"!==e.startTime&&r.push({startTime:e.startTime,endTime:e.endTime}),e.startTime2&&"88:88"!==e.startTime2&&r.push({startTime:e.startTime2,endTime:e.endTime2}),e.startTime3&&"88:88"!==e.startTime3&&r.push({startTime:e.startTime3,endTime:e.endTime3}),e.startTime4&&"88:88"!==e.startTime4&&r.push({startTime:e.startTime4,endTime:e.endTime4}),e.startTime5&&"88:88"!==e.startTime5&&r.push({startTime:e.startTime5,endTime:e.endTime5}),t.dataUnlockingTimeConvert.push({gateId:e.gateId,dayTypeId:e.dayTypeId.toString(),dayTypeName:e.dayTypeName,allDay:e.allDay,startTime:e.startTime,endTime:e.endTime,listTime:r,pos:1,action:"",index:5*a+0})}else console.log(s)}))}else t.dataUnlockingTime=[],t.dataUnlockingTimeOri=[],t.dataUnlockingTimeConvert=[];t.countAPI++})).then(null,(function(e){t.countAPI++,console.log("err: ",e),t.dataUnlockingTime=[],t.dataUnlockingTimeOri=[],t.dataUnlockingTimeConvert=[]}))},getDayTypes:function(e){var t=this;this.$http.get(ae+"?limit=1000&page="+e+"&sortKey=asc:dayTypeId").then((function(a){a.body.maxRecords>0?(a.body.dayTypes.forEach((function(e){t.dayTypes.push({text:e.name,value:e.dayTypeId})})),a.body.maxRecords>a.body.endRecord?t.getDayTypes(e+1):t.countAPI++):(t.dayTypes=[],t.countAPI++)})).then(null,(function(e){t.countAPI++,t.dayTypes=[],console.log("err: ",e)}))},updateData:function(e,t){var a=this;return new Promise((function(s,r){a.resetData(),a.$http.put(te+"/"+encodeURIComponent(encodeURIComponent(e)),t).then((function(e){"Success"===e.body.message?(a.successMessageLogs=Na,a.$emit("getReload",!0),a.$emit("updateGate",t),s(!0)):(a.errorMessageLogs=ba,s(!1))})).then(null,(function(e){switch(s(!1),e.status){case 400:a.errorMessageLogs=Qt;break;case 403:a.errorMessageLogs=ta;break;case 409:a.errorMessageLogs=pa;break;case 500:a.errorMessageLogs=fa;break;case 503:a.errorMessageLogs=ha;break;default:a.errorMessageLogs=ba;break}}))}))},validateBeforeSubmit:function(e){this.errorMessageLogs=""},resetData:function(){this.successMessageLogs="",this.errorMessageLogs=""},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},getListGateModel:function(){var e=this;this.$http.get(Ve).then((function(t){e.listGateModel=t.body.gateModels,e.gateDetail.gateModels=t.body.gateModels})).then(null,(function(e){console.log("err: ",e)}))}}}),wh=Ch,kh=Object(I["a"])(wh,oh,nh,!1,null,null,null),Sh=kh.exports,_h=f["a"].extend({name:"GateEditTemplate",components:{GateDetailTable:rh,Breadcrumbs:cn,GateEditPage:Sh,ModalLoading:Zg,Modal:bn},props:{unlockTimes:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageModal:{type:String,default:""},isEdit:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},isAdminOfRemoteUnlock:{type:Boolean,default:!1},isAdminOfUnlockingTimeSetting:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!1},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},goBack:{type:String,default:""},gateDetail:{default:{}},groupsAddFail:{default:[]},groupList:{default:[]},dataUnlockingTime:{default:[]},dayTypes:{default:[]},isFinishEditGate:{default:!1},isGateEditModalShow:{type:Boolean,default:!1},isRemoteUnlockValid:{type:Boolean,default:!1},loadingChild:{type:Boolean,default:!1},authority:{type:Object,default:{}}},data:function(){return{Message:s,isReloadData:!1}},methods:{deleteBridgeProperty:function(){this.$emit("ChangeProperty",this.isReloadData)},getReload:function(e){this.isReloadData=e,this.$emit("getReload",e)}},computed:{headers:{get:function(){var e=[{text:"能時間設定",align:"start",sortable:!0,value:"name",class:"grey"},{text:"詳細",align:"start",sortable:!0,value:"isValid",class:"grey"}];return e},set:function(){}},breadcrumbs:{get:function(){return[{text:"ゲート",disabled:!0},{text:"ゲート詳細",disabled:!0}]}}}}),Ph=_h,Mh=Object(I["a"])(Ph,Zf,Xf,!1,null,null,null),Lh=Mh.exports;C()(Mh,{VCol:Dr["a"],VContainer:Zo["a"]});var Dh=nr["a"].extend({name:"GateDetailPage",components:{GateDetailTemplate:Lh},props:{isAdminOfRemoteUnlock:{type:Boolean,default:!1},isAdminOfUnlockingTimeSetting:{type:Boolean,default:!1}},data:function(){return{loadingChild:!1,loading:!1,showConfirm:!1,successMessageLogs:"",errorMessageLogs:"",gateDetail:{gateId:"",gateName:"",option1:"",option2:"",groups:[]},groupList:[],groupsAddFail:[],dataUnlockingTime:[],groupItemsOrigin:[],dayTypes:[],isFinishDetailGate:!1,groupId:"",goBack:"gates",showModal:!1,successMessageModal:"",errorMessageModal:"",isGateEditModalShow:!1,isRemoteUnlockValid:!1,authority:er.state.auth}},mounted:function(){var e=this,t=localStorage.getItem("gateId");null!=t&&(this.loadingChild=!0,this.groupList=[],this.getGateData(t).then((function(){return e.getGroupByGate(1,t)})).then((function(){return e.getUnlockingTime(t)})).then((function(){e.loadingChild=!1})));var a=er.state.auth;if(a.isAdminOfRemoteUnlock){var s=localStorage.getItem("remoteUnlock");this.isRemoteUnlockValid="true"===s}else this.isRemoteUnlockValid=!0},watch:{loading:function(e){this.$emit("loading",e)}},methods:{remoteUnlock:function(){var e=this;this.loading=!0,this.successMessageModal="",this.errorMessageModal="";this.$route.query;var t=this.gateDetail.gateId;this.$http.post(te+"/"+encodeURIComponent(t)+"/remote-unlock").then((function(t){"Success"===t.body.message&&(e.successMessageModal="ゲートへリモート解錠要求を行いました。",e.loading=!1),e.loading=!1})).then(null,(function(t){switch(console.log("err: ",t),t.status){case 400:e.errorMessageModal="リモート解錠要求に失敗しました。再度やり直してください。";break;case 403:"Unauthorized"===t.message?e.errorMessageModal=ta:e.errorMessageModal=ia;break;case 404:e.errorMessageModal="リモート解錠要求に失敗しました。以下の原因の可能性があります。
・ログインユーザーが組織管理権限を持っていない場合
・ログインユーザーがこのゲートに紐づく通行権限グループに登録されていない場合
・ログインユーザーが個人コードを持っていない場合";break;case 500:e.errorMessageModal=fa;break;case 503:e.errorMessageModal=ha;break;default:e.errorMessageModal=ba;break}e.loading=!1}))},clickConfirm:function(e){this.successMessageModal="",this.errorMessageModal="",this.showConfirm=!0},closeModalConfirm:function(e){this.showConfirm=!1},clickEditGate:function(e){localStorage.setItem("gateId",e.gateId),this.isGateEditModalShow=!0},ChangeProperty:function(e){var t=this;if(this.isGateEditModalShow=!1,e){var a=localStorage.getItem("gateId");null!=a&&(this.loadingChild=!0,this.groupList=[],this.getGateData(a).then((function(){return t.getGroupByGate(1,a)})).then((function(){return t.getUnlockingTime(a)})).then((function(){t.loadingChild=!1})))}},getUnlockingTime:function(e){var t=this;return new Promise((function(a,s){t.$http.get(re+"?gateId="+encodeURIComponent(e)+"&sortKey=asc:dayTypeId").then((function(e){if(e.body.maxRecords>0&&e.body.unlockingTimeSettings.length>0){var s=e.body.unlockingTimeSettings;s.forEach((function(e,a){var s=t.dataUnlockingTime.filter((function(t){return t.dayTypeId===e.dayTypeId}));if(0===s.length){var r=[];e.startTime&&"88:88"!==e.startTime&&r.push({startTime:e.startTime,endTime:e.endTime}),e.startTime2&&"88:88"!==e.startTime2&&r.push({startTime:e.startTime2,endTime:e.endTime2}),e.startTime3&&"88:88"!==e.startTime3&&r.push({startTime:e.startTime3,endTime:e.endTime3}),e.startTime4&&"88:88"!==e.startTime4&&r.push({startTime:e.startTime4,endTime:e.endTime4}),e.startTime5&&"88:88"!==e.startTime5&&r.push({startTime:e.startTime5,endTime:e.endTime5}),t.dataUnlockingTime.push({gateId:e.gateId,dayTypeId:e.dayTypeId.toString(),dayTypeName:e.dayTypeName,allDay:e.allDay,startTime:e.startTime5,endTime:e.endTime5,listTime:r})}}))}else t.dataUnlockingTime=[];a(!0)})).then(null,(function(e){console.log("err: ",e),t.dataUnlockingTime=[],a(!1)}))}))},clickBackGate:function(){this.$emit("deleteBridgeProperty")},getGateData:function(e){var t=this;return new Promise((function(a,s){t.errorMessageLogs="",t.$http.get(te+"?gateId="+encodeURIComponent(e)).then((function(e){e.body.maxRecords>0&&e.body.gates.length>0&&(t.gateDetail=e.body.gates[0],t.gateDetail.groups=[],a(null))})).then(null,(function(e){switch(console.log("err: ",e),e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a(null)}))}))},getGroupByGate:function(e,t){var a=this;return new Promise((function(e,s){var r;a.groupList=[],r=a.getGroupByGateItem(1,t),e(r)}))},getGroupByGateItem:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,a.$http.get(X+"?gateId="+encodeURIComponent(t)+"&isExceptOptionalGate=true&embed=group&limit=1000&page="+e).then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(r.body.maxRecords>0)){s.next=9;break}if(r.body.relationsGateGroup.forEach((function(e){a.groupList.push({text:e.group.name,value:e.groupId})})),!(r.body.maxRecords>r.body.endRecord)){s.next=6;break}a.getGroupByGate(e+1,t),s.next=7;break;case 6:return s.abrupt("return",!0);case 7:s.next=10;break;case 9:return s.abrupt("return",!1);case 10:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(e){return console.log("err: ",e),!1}));case 2:s.sent;case 3:case"end":return s.stop()}}),s)})))()},validateBeforeSubmit:function(e){this.errorMessageLogs=""},resetData:function(){this.successMessageLogs="",this.errorMessageLogs=""},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},clickGroupDetail:function(e){this.$emit("clickGroupDetail",e)}}}),Gh=Dh,Ah=Object(I["a"])(Gh,Wf,Jf,!1,null,null,null),Rh=Ah.exports,Th=f["a"].extend({name:"ControlPanelDetailTemplate",components:{Breadcrumbs:cn,ControlPanelDetail:Pf,ControlPanelAddPage:qf,GateDetailPage:Rh,Modal:bn,ModalLoading:Zg},data:function(){return{isReload:!1}},props:{errorMessageLogs:{type:String,default:""},loadingChild:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},showModalClear:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageModal:{type:String,default:""},controlPanelDetail:{default:{}},gateList:{default:[]},dataAllUses:{default:[]},errorMessageProcess:{default:[]},showProgress:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},successItemProcess:{type:Number,default:0},totalDataRowProcess:{type:Number,default:0},progress:{type:Number,default:0},countUsers:{type:Number,default:0},isControlPanelEditModalShow:{type:Boolean,default:!1},isGateDetailModalShow:{type:Boolean,default:0},authority:{type:Object,default:{}}},computed:{breadcrumbs:{get:function(){return[{text:"制御盤",disabled:!0},{text:"制御盤詳細",disabled:!0}]}},isShowModal:{get:function(){return this.isControlPanelEditModalShow},set:function(e){!1===e&&this.deleteBridgeProperty(this.isReload)}}},methods:{deleteBridgeProperty:function(e){!0===this.isReload&&this.$emit("load-detail-again"),this.$emit("ChangeProperty")},getReload:function(e){this.isReload=e,this.$emit("controller-success",e)}}}),Eh=Th,Oh=Object(I["a"])(Eh,yf,If,!1,null,null,null),Vh=Oh.exports;C()(Oh,{VCol:Dr["a"],VContainer:Zo["a"]});var Uh=nr["a"].extend({name:"ControlPanelDetailPage",components:{ControlPanelDetailTemplate:Vh},props:{authority:{type:Object,default:{}}},data:function(){return{loading:!1,errorMessageLogs:"",controlPanelDetail:{userId:"",controllerId:"",user:{userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",registered:null,updated:null,isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1},controller:{controllerId:"",name:"",phoneId:"",model:"",antipassbackSetting:0,antipassbackClearTime:"",registered:null,updated:null,connectionStatus:!1,commandStatus:1}},gateList:[],successMessageLogs:"",showModal:!1,showModalClear:!1,successMessageModal:"",errorMessageModal:"",dataAllUses:[],successItemProcess:0,progress:0,isFinishProcess:!1,showProgress:!1,totalDataRowProcess:0,countUsers:0,rowinErrDialog:0,errorMessageProcess:[],isControlPanelEditModalShow:!1,isGateDetailModalShow:!1,loadingChild:!1}},watch:{loading:function(e){this.$emit("loading",e)}},mounted:function(){this.countUsers=0,this.loadData(),this.getAllUsers(1)},methods:{getAllUsers:function(e){var t=this;this.$http.get(Ne+"?limit=10000&page="+e+"&sortKey=desc:userId&isExceptOptionalUser=true&isValid=true&exclude=thumbnail").then((function(a){t.countUsers=a.body.maxRecords,a.body.maxRecords>0?(a.body.users.forEach((function(e){t.dataAllUses.push({text:e.name,value:e.userId})})),a.body.maxRecords>a.body.endRecord&&t.getAllUsers(e+1)):t.dataAllUses=[]})).then(null,(function(e){console.log("err: ",e)}))},clickAntiPassBackClear:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.errorMessageModal="",t.successMessageModal="",t.showModal=!1,t.showModalClear=!1,t.showProgress=!0,s=e.controllerId,r=e.data,t.successItemProcess=0,t.progress=0,t.isFinishProcess=!1,t.totalDataRowProcess=0,t.rowinErrDialog=0,!(void 0!==r&&null!==r&&""!==r&&r.length>0)){a.next=39;break}o=100/r.length,t.totalDataRowProcess=r.length,n=Object(rr["a"])(r),a.prev=16,n.s();case 18:if((i=n.n()).done){a.next=29;break}return l=i.value,c={type:0,userId:l.value},u=void 0,a.next=24,t.clearItem(s,c);case 24:u=a.sent,u&&t.successItemProcess++,t.progress+=o;case 27:a.next=18;break;case 29:a.next=34;break;case 31:a.prev=31,a.t0=a["catch"](16),n.e(a.t0);case 34:return a.prev=34,n.f(),a.finish(34);case 37:a.next=45;break;case 39:return d={type:0},a.next=42,t.clearItem(s,d);case 42:g=a.sent,g&&t.successItemProcess++,t.progress=100;case 45:t.isFinishProcess=!0;case 46:case"end":return a.stop()}}),a,null,[[16,31,34,37]])})))()},clearItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(ie+"/"+encodeURIComponent(e)+"/antipassback-clear",t).then((function(e){"Success"===e.body.message?s(!0):s(!1)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t.userId+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},clickConfirmClear:function(){this.errorMessageModal="",this.successMessageModal="",this.showModal=!1,this.showModalClear=!0},closeModalClear:function(){this.errorMessageModal="",this.successMessageModal="",this.showModal=!1,this.showModalClear=!1},closeModalProgress:function(e){this.errorMessageModal="",this.successMessageModal="",this.showModal=!1,this.showModalClear=!1,this.showProgress=!1,this.successItemProcess=0,this.progress=0,this.isFinishProcess=!1,this.totalDataRowProcess=0,this.rowinErrDialog=0,e&&this.loadData()},closeModal:function(){this.errorMessageModal="",this.successMessageModal="",this.showModal=!1},clickReconfigure:function(e){this.errorMessageModal="",this.successMessageModal="",this.showModal=!0},postReconfigure:function(e){var t=this;this.loading=!0,this.$http.post(ie+"/"+encodeURIComponent(e)+"/reconfigure").then((function(e){"Success"===e.body.message?(t.loading=!1,t.successMessageModal="制御盤再設定の要求が完了しました。"):(t.loading=!1,t.errorMessageModal=ba)})).then(null,(function(e){switch(e.status){case 400:t.errorMessageModal=Qt;break;case 403:t.errorMessageModal=ta;break;case 404:t.errorMessageModal=aa;break;case 500:t.errorMessageModal=fa;break;case 503:t.errorMessageModal=ha;break;default:t.errorMessageModal=ba;break}t.loading=!1}))},clickBackControlPanel:function(){this.$router.push({path:qe})},clickEditControlPanel:function(e){this.$router.push({path:Je,query:{controllerId:e}})},clickBackController:function(){this.$emit("deleteBridgeProperty")},clickEditController:function(){localStorage.setItem("isEditFlag","true"),this.isControlPanelEditModalShow=!0},ChangeProperty:function(e){this.isControlPanelEditModalShow=!1,this.isGateDetailModalShow=!1},loadData:function(){var e=this.$route.query;void 0!==e.controllerId&&this.getControlPanel(e.controllerId.toString());var t=localStorage.getItem("controllerId");this.getControlPanel(t)},getControlPanel:function(e){var t=this;this.loadingChild=!0,this.errorMessageLogs="";var a=le+"?controllerId="+encodeURIComponent(e)+"&embed=user,controller";this.$http.get(a).then((function(a){t.loadingChild=!1,t.isEmpty(a.body.controllerManagementUsers)||(t.controlPanelDetail=a.body.controllerManagementUsers[0],t.gateList=[],t.getListGateByControlId(1,e))})).then(null,(function(e){switch(t.loadingChild=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},getListGateByControlId:function(e,t){var a=this,s=oe+"?controllerId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&sortKey=desc:gateId&embed=gate";this.$http.get(s).then((function(s){s.body.maxRecords>0&&(s.body.relationsControllerGate.forEach((function(e){a.gateList.push({text:e.gate.gateName,value:e.gateId,controllerGateNo:e.controllerGateNo})})),s.body.maxRecords>s.body.endRecord?a.getListGateByControlId(e+1,t):(a.gateList.sort((function(e,t){return e.controllerGateNo-t.controllerGateNo})),a.loading=!1))})).then(null,(function(e){return console.log("err: ",e)}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},clickGateDetail:function(e){this.isGateDetailModalShow=!0,localStorage.setItem("gateId",e)},loadDetailAgain:function(){this.loadData()}}}),$h=Uh,Nh=Object(I["a"])($h,vf,bf,!1,null,null,null),Fh=Nh.exports,jh=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",{staticClass:"mb-0",staticStyle:{position:"relative"}},[a("ModalLoading",{attrs:{loading:e.isGetDataList}}),e._v(" "),a("div",{staticClass:"allig-reflection-card-table"},[a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{staticClass:"mt-0"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"12"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.checkItem(e.idSelected).length},on:{click:function(t){e.$emit("add-gate",e.checkItem(e.idSelected))}}},[e._v("\n ゲートを追加する\n ")])],1)],1)])],1)],1),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{attrs:{"per-page":e.perPage,page:e.page,"items-length":e.totalCount}}),e._v(" "),a("v-spacer")],1)],1),e._v(" "),a("div",{staticClass:"round-data"},[a("v-data-table",{staticClass:"border-table scroll-table modal-table modal-gate",attrs:{"must-sort":"",headers:e.headers,items:e.dataList,"items-per-page":e.perPage,"item-key":"gateId","no-data-text":"データーはありません","loading-text":"データを読み込中です",loading:e.loading,"hide-default-footer":"","show-select":!0,"custom-sort":e.customSort},scopedSlots:e._u([e.checkAll?null:{key:"header.data-table-select",fn:function(t){var s=t.on,r=t.props;return[a("v-simple-checkbox",e._g(e._b({attrs:{color:"purple",disabled:""}},"v-simple-checkbox",r,!1),s))]}},{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[t.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:t.disable,disabled:t.disable,ripple:!1},on:{input:function(e){return r(e)}}}):a("v-simple-checkbox",{attrs:{value:s,readonly:t.disabled,disabled:t.disabled,ripple:!1},on:{input:function(e){return r(e)}}})]}}],null,!0),model:{value:e.idSelected,callback:function(t){e.idSelected=t},expression:"idSelected"}})],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.totalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.totalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)],1)},Bh=[],zh=f["a"].extend({name:"UsersListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No,ModalLoading:Zg},watch:{isFinishProcessEnable:function(e){e&&(this.idSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},loading:function(e){var t=this;!1===e&&(this.getData=this.dataList,this.getData.map((function(e){return e.disable=!1})),this.getData.forEach((function(e,a){var s=t.relationsGateGroup.some((function(t){return t.gateId===e.gateId}));s?t.getData[a].disable=!0:t.checkAll=!0})),this.idSelected=this.selectedIds)},isGetDataList:function(e){var t=this;!1===e&&this.getData.length>0&&(this.getData.forEach((function(e,a){var s=t.relationsGateGroup.some((function(t){return t.gateId===e.gateId}));s&&(t.getData[a].disable=!0)})),this.idSelected=this.selectedIds)},idSelected:function(e){this.$emit("select-Ids",e.map((function(e){return e})))}},props:{typeItems:{type:Array,default:function(){return[]}},totalCount:{type:Number,default:0},isPage:{type:String,default:""},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataList:{default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},isFinishProcessEnable:{type:Boolean,default:!1},relationsGateGroup:{type:Array,default:function(){return[]}},selectedIds:{type:Array,default:function(){return[]}}},mounted:function(){"undefined"===typeof localStorage.displayOptionPCode?localStorage.setItem("displayOptionPCode",JSON.stringify(this.selectedDisplayOption)):this.selectedDisplayOption=JSON.parse(localStorage.displayOptionPCode),"group-add-gate"===this.isPage&&(this.selectedDisplayOption=["gateId","name","groupCount"])},computed:{headers:{get:function(){var e=[{text:"ゲートID",align:"start",sortable:!0,value:"gateId"}];return e.push({text:"ゲート名",align:"start",sortable:!0,value:"gateName"}),e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{isShow:!1,isShowUserDetail:!1,selectedDisplayOption:["gateId","name"],displayOptionItems:[{label:"ゲート名",value:"groupId",isDisabled:!0},{label:"ゲート名",value:"name",isDisabled:!1}],idSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard,getData:[],checkAll:!1}},methods:{CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0?"キャンセル":"実行"},on:{click:function(t){return e.$emit("closeModalConfirm")}}}),e._v(" "),e.selectedItem.length>0?a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("clickRemoveUser",e.selectedItem)}}}):e._e()]},proxy:!0}]),model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け解除")]),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を解除しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("処理状況")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),a("v-divider"),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e._v("OK")])],1)],1):e._e()],1)],1)],1)}),av=[],sv=f["a"].extend({name:"UserGateTable",components:{Pagination:xo,ShowPerPage:mo,TextLink:No,Modal:bn,SuccessButton:kr,CancelButton:fr},props:{isUserOfGate:{default:!1},isShowConfirm:{default:!1},userOfGate:{type:Array,default:function(){return[]}},gateId:{default:""},groupId:{default:""},pageUser:{type:Number,default:1},userTotalCount:{type:Number,default:1},total:{type:Number,default:1},isReRenderUser:{default:0},isRemoveUserSelected:{default:0},showProgress:{type:Boolean,default:!1},progress:{type:Number,default:0},isFinishProcess:{type:Boolean,default:!1},userTotalCountDel:{type:Number,default:0},totalDataRowProcess:{type:Number,default:0},successItemProcess:{type:Number,default:0},errorMessageProcess:{type:Array,default:function(){return[]}}},data:function(){return{selectedItem:[]}},computed:{innerPageUser:{get:function(){return this.pageUser},set:function(e){this.$emit("change-page-user",{page:e})}},isShow:{get:function(){return this.isShowConfirm},set:function(e){!1===e&&this.$emit("closeModalConfirm")}},headersUser:{get:function(){var e=[{text:"ユーザーID\t\t",align:"start",sortable:!1,value:"user.userId"},{text:"ユーザー名\t\t",align:"start",sortable:!1,value:"user.name"},{text:"ふりがな",align:"start",sortable:!1,value:"user.furigana"},{text:"ステータス",align:"start",sortable:!1,value:"isValid"},{text:"開始日時\t",align:"start",sortable:!1,value:"notBefore"},{text:"終了日時",align:"start",sortable:!1,value:"notAfter"}];return e},set:function(){}}},watch:{isReRenderUser:function(e){console.log(e),this.$forceUpdate()},isRemoveUserSelected:function(e){this.selectedItem=[]},selectedItem:function(e){this.$emit("select-user",e.map((function(e){return e.passageId})))}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return"user.name"===t[0]?a[0]?s.user.name\n ")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.total/25),disabled:e.isGroupOfGate},model:{value:e.innerPageGroup,callback:function(t){e.innerPageGroup=t},expression:"innerPageGroup"}})],1)],1),e._v(" "),a("Modal",{attrs:{title:"関連付け解除",text:"このグループとの関連付けを解除しますか?",smallScreen:"600",className:"common-modal"},on:{close:function(t){return e.$emit("closeModalConfirm")}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("cancel-button",{staticClass:"mr-2",attrs:{text:e.selectedItem.length>0?"キャンセル":"実行"},on:{click:function(t){return e.$emit("closeModalConfirm")}}}),e._v(" "),e.selectedItem.length>0?a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("clickRemoveGroup",e.selectedItem)}}}):e._e()]},proxy:!0}]),model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け解除")]),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を解除しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("処理状況")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),a("v-divider"),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgress")}}})],1)],1):e._e()],1)],1)],1)},lv=[],cv=f["a"].extend({name:"GroupOfGateLockTable",components:{Pagination:xo,ShowPerPage:mo,TextLink:No,Modal:bn,SuccessButton:kr,CancelButton:fr},props:{isReRenderGroup:{default:0},isGroupOfGate:{default:!1},isShowConfirm:{default:!1},groupOfGate:{type:Array,default:function(){return[]}},gateId:{default:""},groupId:{default:""},pageGroup:{type:Number,default:1},total:{type:Number,default:1},isRemoveGroupSelected:{default:0},showProgress:{type:Boolean,default:!1},progress:{type:Number,default:0},isFinishProcess:{type:Boolean,default:!1},groupTotalCountDel:{type:Number,default:0},totalDataRowProcess:{type:Number,default:0},successItemProcess:{type:Number,default:0},errorMessageProcess:{type:Array,default:function(){return[]}}},data:function(){return{selectedItem:[]}},computed:{innerPageGroup:{get:function(){return this.pageGroup},set:function(e){this.$emit("change-page-group",{page:e})}},isShow:{get:function(){return this.isShowConfirm},set:function(e){!1===e&&this.$emit("closeModalConfirm")}},headersGroup:{get:function(){var e=[{text:"通行権限グループID\t",align:"start",sortable:!1,value:"group.groupId"},{text:"通行権限グループ名\t",align:"start",sortable:!1,value:"group.name"},{text:"ステータス",align:"start",sortable:!1,value:"isValid"}];return e},set:function(){}}},watch:{isReRenderGroup:function(e){this.$forceUpdate()},isRemoveGroupSelected:function(e){this.selectedItem=[]},selectedItem:function(e){this.$emit("select-group",e.map((function(e){return e.relationId})))}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return"group.name"===t[0]?a[0]?s.group.name0){var a=/^[0-9a-fA-F]+$/.test(t);return!(!a||18!==t.length)||"半角英数(0~9、A〜F)で18文字入力してください。"}return!0},validateOption1:function(e){return null===e||void 0===e||""===e||(e.length<=64||"備考1は64文字以内で入力してください。")},validateOption2:function(e){return null===e||void 0===e||""===e||(e.length<=64||"備考2は64文字以内で入力してください。")},validateAntiPassback:function(e,t){return!0!==e||(""!==t.trim()||"対向ゲートを選択してください")}}}},watch:{isFinishEditGate:function(e){e&&(this.arrayAddSpecialTime=[],this.arrayDelSpecialTime=[])},loading:function(e){!1===e&&!0===this.isEdit&&this.matchHeight()},gateDetail:function(e){this.isEdit&&(this.selected=e.antiPassback.gateId)}},mounted:function(){this.matchHeight()},computed:{innerPageGroup:{get:function(){return this.pageGroup},set:function(e){this.$emit("change-page-gate",{page:e})}},headers:{get:function(){var e=[{text:"曜日",align:"start",sortable:!1,value:"date"},{text:"期間指定",align:"start",sortable:!1,value:"time"},{text:"",align:"center",sortable:!1,value:"delete"}];return e},set:function(){}},headersGate:{get:function(){var e=[{text:"ゲートID",align:"start",sortable:!1,value:"gateId"},{text:"ゲート名",align:"start",sortable:!1,value:"gateName"}];return e},set:function(){}},headersGroup:{get:function(){var e=[{text:"通行権限グループID\t",align:"start",sortable:!1,value:"group.groupId"},{text:"通行権限グループ名\t",align:"start",sortable:!1,value:"group.groupName"},{text:"ステータス",align:"start",sortable:!1,value:"isValid"}];return e},set:function(){}},filteredItems:{get:function(){return this.tmpUnlockingTime.filter((function(e){return"del"!==e.action}))}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",{page:e})}}},methods:{addUser:function(e){var t=this.$route.query;this.$router.push({path:nt,query:{gateId:e,goBack:"gate-lock-edit",groupId:void 0!==t.groupId?t.groupId:""}})},addGroup:function(e){var t=this.$route.query;this.$router.push({path:it,query:{gateId:e,goBack:"gate-lock-edit",groupId:void 0!==t.groupId?t.groupId:""}})},clickChangeInfoGate:function(e){this.$emit("changeInfoGate",e),this.matchHeight()},clickRemoveUser:function(e){this.isShowConfirmUser=!1,this.$emit("clickRemoveUser",e)},clickRemoveGroup:function(e){this.isShowConfirmGroup=!1,this.$emit("clickRemoveGroup",e)},getSelectUser:function(e){this.selectUser=e},getSelectGroup:function(e){this.selectGroup=e},setGate:function(e){this.$emit("setGate",e),this.isShow=!1},getGate:function(){this.searchText="",this.$emit("get-gates"),this.isShow=!0},addGate:function(){var e=this.$refs.GateAddForm.validate();e&&this.$emit("register-gates")},editGate:function(){var e=this.$refs.GateAddForm.validate();e&&this.$emit("edit-gates")},disableTwoStepAuth:function(){return this.gateDetail.isAntiPassback&&(this.gateDetail.isTwoStepAuthValid=!1),this.gateDetail.isAntiPassback},disableAntiPass:function(){return this.gateDetail.isTwoStepAuthValid&&(this.gateDetail.isAntiPassback=!1,this.gateDetail.antiPassback.gateId="",this.gateDetail.antiPassback.gateName="",this.gateDetail.antiPassback.mode=0),this.gateDetail.isTwoStepAuthValid},clickSearch:function(){this.search=this.searchText},matchHeight:function(){var e=this;this.filterSectionHeight=734;var t=document.getElementById("col-left"),a=document.getElementById("col-right");setTimeout((function(){if(a&&t){var s=a.offsetHeight,r=t.offsetHeight;e.filterSectionHeight=s>r?s:r}}),100)},clickUpdateGate:function(){var e=this.$refs.GateAddForm.validate();e&&this.$emit("clickUpdateGate",{dataUnlockingTime:this.dataUnlockingTime,tmpUnlockingTime:this.tmpUnlockingTime,gateDetail:this.gateDetail,groupId:this.groupValue})},formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},converDate:function(e){return""!==e&&0!==e?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):"ー"},deleteSpecialTime:function(e){console.log(e);var t=this.tmpUnlockingTime.map((function(e){return e.index})).indexOf(e);"add"===this.tmpUnlockingTime[parseInt(t)].action?this.tmpUnlockingTime.splice(parseInt(t),1):this.tmpUnlockingTime[parseInt(t)].action="del"},checkShowAnti:function(){if(!this.gateDetail.isVisitor){if(1===this.gateDetail.makerCode&&(1===this.gateDetail.target||5===this.gateDetail.target))return!0;this.resetAntiPassGate()}return!1},getEditStatus:function(){return!(this.gateDetail.isGatePasswordValid&&!this.gateDetail.isVisitor)},resetAntiPassGate:function(){this.$emit("resetAntiPassGate")},disableAntiModes:function(){return this.$emit("disableAntiModes"),!this.gateDetail.isAntiPassback},checkShowHide:function(e,t){switch(t=t||-1,t){case this.inputIndex.isTwoStepAuthValid:return 91!==e;case this.inputIndex.bleIntensity:return 91!==e;case this.inputIndex.buzzerPattern:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gateSNMain:return 91!==e;case this.inputIndex.gateSNBLE:return 91!==e;case this.inputIndex.gateFWMain:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gateFWBLE:return 91!==e&&2!==e&&4!==e;case this.inputIndex.registered:return 91!==e;case this.inputIndex.updated:return 91!==e;case this.inputIndex.reported:return 91!==e;case this.inputIndex.revisionDesired:return 91!==e;case this.inputIndex.revisionReported:return 91!==e;case this.inputIndex.voltage:return 91!==e;case this.inputIndex.scanDate:return 91!==e;case this.inputIndex.isVisitor:return 91!==e&&2!==e&&4!==e;case this.inputIndex.isNFCValid:return 91!==e&&2!==e&&4!==e;case this.inputIndex.isTenKeyValid:return 91!==e&&2!==e&&4!==e;case this.inputIndex.isGatePasswordValid:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gatePasswordLength:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gatePasswordSeed:return 91!==e&&2!==e&&4!==e;case this.inputIndex.controlTime:return 91!==e&&2!==e&&4!==e;case this.inputIndex.needLocation:return 91===e;default:return 2!==e&&4!==e}}}}),vv=hv,bv=(a("59e6"),a("b989"),a("cd55")),yv=a("49e2"),Iv=a("c865"),xv=a("0393"),Cv=a("a844"),wv=Object(I["a"])(vv,Qh,ev,!1,null,"16d0cf26",null),kv=wv.exports;C()(wv,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VExpansionPanel:bv["a"],VExpansionPanelContent:yv["a"],VExpansionPanelHeader:Iv["a"],VExpansionPanels:xv["a"],VForm:Nl["a"],VRow:Kr["a"],VSpacer:Qo["a"],VSubheader:Yr["a"],VSwitch:ro["a"],VTextField:Tr["a"],VTextarea:Cv["a"]});var Sv=f["a"].extend({name:"GateEditTemplate",components:{GateLockForm:kv,Breadcrumbs:cn,ModalLoading:Zg},props:{unlockTimes:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},isEdit:{type:Boolean,default:!1},isUserOfGate:{type:Boolean,default:!1},isGroupOfGate:{type:Boolean,default:!1},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},goBack:{type:String,default:""},errorMessageTime:{type:String,default:""},gateDetail:{type:Object,default:function(){return{}}},groupsAddFail:{default:[]},listGateModel:{type:Array,default:function(){return[]}},dataUnlockingTime:{default:[]},dayTypes:{default:[]},isFinishEditGate:{default:!1},loading:{default:!1},gateListPages:{type:Number,default:0},totalGate:{type:Number,default:0},groupTotalCount:{type:Number,default:0},pageGroup:{type:Number,default:1},userTotalCount:{type:Number,default:0},pageUser:{type:Number,default:1},page:{type:Number,default:0},listAntiPassGates:{type:Array,default:function(){return[]}},relationsGateGroup:{type:Array,default:function(){return[]}},userOfGate:{type:Array,default:function(){return[]}},showProgressUser:{type:Boolean,default:!1},progressUser:{type:Number,default:0},isFinishProcessUser:{type:Boolean,default:!1},userTotalCountDel:{type:Number,default:0},totalDataRowProcessUser:{type:Number,default:0},successItemProcessUser:{type:Number,default:0},errorMessageProcessUser:{type:Array,default:function(){return[]}},showProgressGroup:{type:Boolean,default:!1},progressGroup:{type:Number,default:0},isFinishProcessGroup:{type:Boolean,default:!1},groupTotalCountDel:{type:Number,default:0},totalDataRowProcessGroup:{type:Number,default:0},successItemProcessGroup:{type:Number,default:0},errorMessageProcessGroup:{type:Array,default:function(){return[]}},isEditGate:{type:Boolean,default:!1},loadingChild:{type:Boolean,default:!1}},data:function(){return{Message:s}},computed:{headers:{get:function(){var e=[{text:"能時間設定",align:"start",sortable:!0,value:"name",class:"grey"},{text:"詳細",align:"start",sortable:!0,value:"isValid",class:"grey"}];return e},set:function(){}},breadcrumbs:{get:function(){return[{text:"ゲート",disabled:!0},{text:this.isEdit?"ゲート編集":"新規ゲート登録",disabled:!0}]}}}}),_v=Sv,Pv=Object(I["a"])(_v,Zh,Xh,!1,null,null,null),Mv=Pv.exports;C()(Pv,{VCol:Dr["a"],VContainer:Zo["a"]});var Lv=nr["a"].extend({name:"GateLockAddPage",components:{GateLockAddTemplate:Mv},props:{isEditGate:{type:Boolean,default:!1},isGateLockAdd:{type:Boolean,default:!1}},data:function(){return{loading:!1,isGroupOfGate:!1,showConfirm:!1,successMessageLogs:"",errorMessageLogs:"",gateDetail:{gateId:"",gateModelCode:"",gateModelName:"",gateModelId:"",gateModel:{},iconType:0,makerCode:"",customizable:!1,target:0,controlTime:0,timeUnit:0,gateName:"",isVisitor:!1,isNFCValid:!0,isTenKeyValid:!0,isGatePasswordValid:!1,gatePasswordLength:5,gatePasswordSeed:"",isTwoStepAuthValid:!1,bleIntensity:"",buzzerPattern:1,option1:"",option2:"",gateSNMain:"",gateSNBLE:"",gateFWMain:"",gateFWBLE:"",registered:"",updated:"",reported:"",revisionDesired:"",revisionReported:"",voltage:"",scanDate:"",isValid:!0,needLocation:!1,isAntiPassback:!1,antiPassback:{gateId:"",gateName:"",mode:0,relationId:0},antiPassbackPrev:{relationId:0,gateId:"",gateName:"",mode:""}},listGateModel:[],groupsAddFail:[],dataUnlockingTime:[],groupItemsOrigin:[],dayTypes:[],isFinishDetailGate:!1,groupId:"",goBack:"gates",showModal:!1,successMessageModal:"",errorMessageModal:"",listAntiPassGates:[],relationsGateGroup:[],userOfGate:[],currPage:1,currPageGroup:1,currPageUser:1,keyword:"",gateListPages:0,totalGate:0,groupTotalCount:0,userTotalCount:0,isEdit:!1,isUserOfGate:!1,isShowConfirmUser:!1,showProgressUser:!1,userTotalCountDel:0,totalDataRowProcessUser:0,progressUser:0,successItemProcessUser:0,errorMessageProcessUser:[],isFinishProcessUser:!1,rowinErrDialog:0,isShowConfirmGroup:!1,showProgressGroup:!1,groupTotalCountDel:0,totalDataRowProcessGroup:0,progressGroup:0,successItemProcessGroup:0,errorMessageProcessGroup:[],isFinishProcessGroup:!1,isFinishUpdate:!1,isFinishCreate:!1,loadingChild:!1}},mounted:function(){var e=this,t=this.$route.query;void 0!==t.gateId&&(this.isEdit=!0,this.listGateModel=[],this.getGateData(t.gateId.toString()).then((function(){e.getGroupOfGate(1,t.gateId.toString()),e.getUserOfGate(1,t.gateId.toString())})));var a=localStorage.getItem("gateId");null!=a&&!1===this.isGateLockAdd&&(this.isEdit=!0,this.listGateModel=[],this.getGateData(a).then((function(){e.getGroupOfGate(1,a.toString()),e.getUserOfGate(1,a.toString())}))),void 0!==this.$route.query.goBack&&(this.goBack=this.$route.query.goBack.toString())},created:function(){this.getListGateModel()},watch:{loading:function(e){this.$emit("loading",e)}},methods:{resetAntiPassGate:function(){this.gateDetail.isAntiPassback=!1,this.gateDetail.antiPassback={relationId:0,gateId:"",gateName:"",mode:0}},disableAntiModes:function(){this.gateDetail.isAntiPassback||(this.gateDetail.antiPassback.gateId="",this.gateDetail.antiPassback.gateName="")},changePage:function(e){this.currPage=e.page,this.getGates()},changePageUser:function(e){this.userOfGate=[],this.currPageUser=e.page;var t=localStorage.getItem("gateId");this.getUserOfGate(e.page,t)},changePageGroup:function(e){this.relationsGateGroup=[],this.currPageGroup=e.page;var t=localStorage.getItem("gateId");this.getGroupOfGate(e.page,t)},searchPage:function(e){this.currPage=1;var t=e.replace(/\s/g,",");this.keyword=t,this.getGates()},loadGates:function(){this.keyword="",this.getGates()},setGate:function(e){this.gateDetail.antiPassback.gateId=e[0].gateId,this.gateDetail.antiPassback.gateName=e[0].gateName},registerGates:function(){var e=this;this.loading=!0;var t={};this.isFinishCreate=!1,t={gateName:this.gateDetail.gateName,gateModelId:this.gateDetail.gateModelId,gateModelName:this.gateDetail.gateModelName,gateModelCode:this.gateDetail.gateModelCode,iconType:this.gateDetail.iconType,makerCode:this.gateDetail.makerCode,customizable:this.gateDetail.customizable,target:this.gateDetail.target,timeUnit:this.gateDetail.timeUnit,controlTime:parseInt(this.gateDetail.controlTime),isVisitor:this.gateDetail.isVisitor,isNFCValid:this.gateDetail.isNFCValid,isTenKeyValid:this.gateDetail.isTenKeyValid,isGatePasswordValid:this.gateDetail.isGatePasswordValid,isTwoStepAuthValid:this.gateDetail.isTwoStepAuthValid,bleIntensity:this.gateDetail.bleIntensity,buzzerPattern:this.gateDetail.buzzerPattern,option1:this.gateDetail.option1,option2:this.gateDetail.option2,isValid:this.gateDetail.isValid,needLocation:this.gateDetail.needLocation},this.gateDetail.isGatePasswordValid&&(t.gatePasswordLength=this.gateDetail.gatePasswordLength,this.gateDetail.gatePasswordSeed.length>0&&(t.gatePasswordSeed=this.gateDetail.gatePasswordSeed)),console.log(t),this.$http.post(te,t).then((function(t){e.gateDetail.isAntiPassback?e.createAntiPassGate(t.body.gateId,!1):(e.loading=!1,e.successMessageLogs=Oa,e.$emit("gate-success",!0),e.errorMessageLogs=""),e.isFinishCreate=!0})).then(null,(function(t){switch(e.loading=!1,e.$emit("gate-success",!1),t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 409:e.errorMessageLogs=pa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},editGates:function(){var e=this;this.loading=!0;var t={};this.isFinishUpdate=!1,t={gateName:this.gateDetail.gateName,gateModelId:this.gateDetail.gateModelId,gateModelName:this.gateDetail.gateModelName,gateModelCode:this.gateDetail.gateModelCode,iconType:this.gateDetail.iconType,makerCode:this.gateDetail.makerCode,customizable:this.gateDetail.customizable,target:this.gateDetail.target,timeUnit:this.gateDetail.timeUnit,controlTime:parseInt(this.gateDetail.controlTime),isVisitor:this.gateDetail.isVisitor,isNFCValid:this.gateDetail.isNFCValid,isTenKeyValid:this.gateDetail.isTenKeyValid,isGatePasswordValid:this.gateDetail.isGatePasswordValid,isTwoStepAuthValid:this.gateDetail.isTwoStepAuthValid,bleIntensity:this.gateDetail.bleIntensity,buzzerPattern:this.gateDetail.buzzerPattern,option1:this.gateDetail.option1,option2:this.gateDetail.option2,isValid:this.gateDetail.isValid,needLocation:this.gateDetail.needLocation},this.gateDetail.isGatePasswordValid&&(t.gatePasswordLength=this.gateDetail.gatePasswordLength,this.gateDetail.gatePasswordSeed.length>0&&(t.gatePasswordSeed=this.gateDetail.gatePasswordSeed)),console.log(t),this.$http.put(te+"/"+encodeURIComponent(this.gateDetail.gateId),t).then((function(a){e.updateAntiPassGate(),e.$emit("gate-success",!0),e.$emit("updateGate",{gateName:t.gateName})})).then(null,(function(t){switch(e.loading=!1,e.isFinishUpdate=!0,e.$emit("gate-success",!1),t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 409:e.errorMessageLogs=pa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},updateAntiPassGate:function(){this.errorMessageLogs="",this.gateDetail.isAntiPassbackPrev?this.deleteAntiPassGate(this.gateDetail.antiPassbackPrev.relationId):!0===this.gateDetail.isAntiPassback?this.createAntiPassGate(this.gateDetail.gateId,!0):(this.loading=!1,this.successMessageLogs=Na,this.errorMessageLogs="")},deleteAntiPassGate:function(e){var t=this;this.$http.delete(Ue+"/"+encodeURIComponent(e)).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!0!==t.gateDetail.isAntiPassback){e.next=4;break}t.createAntiPassGate(t.gateDetail.gateId,!0),e.next=9;break;case 4:return t.loading=!1,e.next=7,t.getGateData(t.gateDetail.gateId);case 7:t.successMessageLogs=Na,t.errorMessageLogs="";case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!1,e.next=3,t.getGateData(t.gateDetail.gateId);case 3:t.successMessageLogs="",t.errorMessageLogs="アンチパスバックの更新に失敗しました。
再度アンチパスバックの変更をお願いします。";case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},setAntiPassData:function(e){this.gateDetail.antiPassback.relationId=e.relationId?e.relationId:"",this.gateDetail.antiPassback.gateId=e.gateId,this.gateDetail.antiPassback.gateName=e.gateName,this.gateDetail.antiPassback.mode=e.mode,this.gateDetail.antiPassbackPrev.relationId=e.relationId?e.relationId:"",this.gateDetail.antiPassbackPrev.gateId=e.gateId,this.gateDetail.antiPassbackPrev.gateName=e.gateName,this.gateDetail.antiPassbackPrev.mode=e.mode},createAntiPassGate:function(e,t){var a=this,s=Oa,r="ゲートの新規登録は完了しました。アンチパスバックの登録に失敗しました。
ゲート編集より、再度アンチパスバックの変更をお願いします。";t&&(s=Na,r="アンチパスバックの更新に失敗しました。
再度アンチパスバックの変更をお願いします。");var o={ownerId:localStorage.ownerId,gateIdA:e,gateIdB:this.gateDetail.antiPassback.gateId,mode:this.gateDetail.antiPassback.mode};this.$http.post(Ue,o).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.successMessageLogs=s,a.errorMessageLogs="",a.loading=!1,t.next=5,a.getGateData(e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(null,function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(s){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.resetAntiPassGate(),a.loading=!1,t.next=4,a.getGateData(e);case 4:a.successMessageLogs="",a.errorMessageLogs=r;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},getGates:function(){var e=this;this.loadingChild=!0,this.listAntiPassGates=[],this.$http.get(te+"?limit=25&page="+this.currPage+"&keyword="+this.keyword+"&scorp=gateId,gateName&sortKey=desc:registered&isValid=true").then((function(t){e.totalGate=t.body.maxRecords,t.body.maxRecords>0&&t.body.gates.length>0&&(e.gateListPages=Math.ceil(t.body.maxRecords/25),e.listAntiPassGates=t.body.gates),e.loadingChild=!1})).then(null,(function(t){e.loadingChild=!0}))},changeInfoGate:function(e){this.gateDetail.gateModelCode=e.gateModelCode,this.gateDetail.gateModelName=e.gateModelName,this.gateDetail.gateModelId=e.gateModelId,this.gateDetail.controlTime=e.controlTime,this.gateDetail.makerCode=e.makerCode,this.gateDetail.customizable=e.customizable,this.gateDetail.iconType=e.iconType,this.gateDetail.target=e.target,this.gateDetail.timeUnit=e.timeUnit,2===e.makerCode||4===e.makerCode?this.gateDetail.bleIntensity=6:this.gateDetail.bleIntensity=1,console.log(this.gateDetail)},clickConfirm:function(e){this.successMessageModal="",this.errorMessageModal="",this.showConfirm=!0},closeModalConfirm:function(e){this.showConfirm=!1},clickBackGate:function(e){this.$emit("deleteBridgeProperty",e),!0!==this.isFinishUpdate&&!0!==this.isFinishCreate||this.$emit("load-gates",1)},getGateData:function(e){var t=this;return this.loadingChild=!0,new Promise((function(a,s){t.errorMessageLogs="",t.$http.get(te+"?gateId="+encodeURIComponent(e)).then((function(e){e.body.maxRecords>0&&e.body.gates.length>0?(t.gateDetail=e.body.gates[0],t.gateDetail.isAntiPassbackPrev=e.body.gates[0].isAntiPassback,t.gateDetail.gateModel={gateModelCode:e.body.gates[0].gateModelCode,gateModelId:e.body.gates[0].gateModelId,gateModelName:e.body.gates[0].gateModelName},t.gateDetail.antiPassbackPrev={relationId:0,gateId:"",gateName:"",mode:""},!0===t.gateDetail.isAntiPassback&&t.setAntiPassData(e.body.gates[0].antiPassback),a(null)):a(null),t.loadingChild=!1})).then(null,(function(e){switch(t.loadingChild=!1,console.log("err: ",e),t.errorMessageLogs="",e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a(null)}))}))},getGroupOfGate:function(e,t){var a=this;this.isGroupOfGate=!0,this.$http.get(Y+"?gateId="+encodeURIComponent(t)+"&limit=25&page="+e+"&embed=group&isExceptOptionalGate=true").then((function(e){a.groupTotalCount=e.body.maxRecords,a.relationsGateGroup=e.body.relationsGateGroup,a.currPageGroup=Math.ceil(e.body.startRecord/25),a.isGroupOfGate=!1})).then(null,(function(e){a.isGroupOfGate=!1}))},getUserOfGate:function(e,t){var a=this;this.isUserOfGate=!0,this.$http.get(ee+"?gateId="+encodeURIComponent(t)+"&limit=25&page="+e+"&isExceptOptionalGate=true").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:s=t.body.passages,a.currPageUser=Math.ceil(t.body.startRecord/25),a.userTotalCount=t.body.maxRecords,r=0;case 4:if(!(r>"+aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcessUser,++t.rowinErrDialog,o),a(!1)}))}))},closeModalProgressUser:function(){this.showProgressUser=!1,this.rowinErrDialog=0,this.errorMessageProcessUser=[],this.successItemProcessUser=0,this.progressUser=0,this.isFinishProcessUser=!1,this.userOfGate=[];var e=localStorage.getItem("gateId");this.getUserOfGate(1,e)},closeModalProgressGroup:function(){this.showProgressGroup=!1,this.rowinErrDialog=0,this.errorMessageProcessGroup=[],this.successItemProcessGroup=0,this.progressGroup=0,this.isFinishProcessGroup=!1,this.relationsGateGroup=[];var e=localStorage.getItem("gateId");this.getGroupOfGate(1,e)},clickRemoveUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log(e),t.showProgressUser=!0,t.rowinErrDialog=0,t.errorMessageProcessUser=[],t.successItemProcessUser=0,t.progressUser=0,t.isFinishProcessUser=!1,t.totalDataRowProcessUser=e.length,s=100/t.totalDataRowProcessUser,r=Object(rr["a"])(e),a.prev=10,r.s();case 12:if((o=r.n()).done){a.next=22;break}return n=o.value,i=void 0,a.next=17,t.deleteGatePassage(n.passageId);case 17:i=a.sent,i&&t.successItemProcessUser++,t.progressUser+=s;case 20:a.next=12;break;case 22:a.next=27;break;case 24:a.prev=24,a.t0=a["catch"](10),r.e(a.t0);case 27:return a.prev=27,r.f(),a.finish(27);case 30:t.isFinishProcessUser=!0;case 31:case"end":return a.stop()}}),a,null,[[10,24,27,30]])})))()},clickRemoveGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log(e),t.showProgressGroup=!0,t.rowinErrDialog=0,t.errorMessageProcessGroup=[],t.successItemProcessGroup=0,t.progressGroup=0,t.isFinishProcessGroup=!1,t.totalDataRowProcessGroup=e.length,s=100/t.totalDataRowProcessGroup,r=Object(rr["a"])(e),a.prev=10,r.s();case 12:if((o=r.n()).done){a.next=22;break}return n=o.value,i=void 0,a.next=17,t.deleteRelationGateGroup(n.relationId);case 17:i=a.sent,i&&t.successItemProcessGroup++,t.progressGroup+=s;case 20:a.next=12;break;case 22:a.next=27;break;case 24:a.prev=24,a.t0=a["catch"](10),r.e(a.t0);case 27:return a.prev=27,r.f(),a.finish(27);case 30:t.isFinishProcessGroup=!0,t.successItemProcessGroup>0&&t.$emit("gate-success",!0);case 32:case"end":return a.stop()}}),a,null,[[10,24,27,30]])})))()},deleteRelationGateGroup:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(X+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=e+">>"+aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcessGroup,++t.rowinErrDialog,o),a(!1)}))}))},validateBeforeSubmit:function(e){this.errorMessageLogs=""},resetData:function(){this.successMessageLogs="",this.errorMessageLogs=""},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}}}),Dv=Lv,Gv=Object(I["a"])(Dv,Wh,Jh,!1,null,null,null),Av=Gv.exports,Rv=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressExportCSV,callback:function(t){e.showProgressExportCSV=t},expression:"showProgressExportCSV"}},[a("v-card",{staticClass:"modal-export"},[a("v-card-title",{staticClass:"modal-title",attrs:{color:"green"}},[e._v(" CSVエクスポート")]),e._v(" "),a("div",{staticClass:"pa-5"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressCsvXlsx,callback:function(t){e.progressCsvXlsx=t},expression:"progressCsvXlsx"}},[a("strong",[e._v(e._s(Math.round(e.progressCsvXlsx))+"%")])])],1),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProcessCSV")}}})],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressImportCSV,callback:function(t){e.showProgressImportCSV=t},expression:"showProgressImportCSV"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("登録データのアップロード")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"row-message"},[""!==e.errorMessageCsvXlsx?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\r\n "+e._s(e.errorMessageCsvXlsx)+"\r\n ")]):e._e()],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowImport>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressCsvXlsx,callback:function(t){e.progressCsvXlsx=t},expression:"progressCsvXlsx"}},[a("strong",[e._v(e._s(Math.round(e.progressCsvXlsx))+"%")])]),e._v(" "),e.successItemImport>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowImport)+"件中"+e._s(e.successItemImport)+"件をアップロードしました。")]):e._e(),e._v(" "),e.errorMessageImport.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("アップロード失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageImport,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgressImport")}}})],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressImportExcel,callback:function(t){e.showProgressImportExcel=t},expression:"showProgressImportExcel"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("登録データのアップロード")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"row-message"},[""!==e.errorMessageCsvXlsx?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\r\n "+e._s(e.errorMessageCsvXlsx)+"\r\n ")]):e._e()],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowImport>0?a("v-card-text",{staticClass:"pa-4"},[e.sheetUserName?a("span",[e._v(e._s(e.sheetUserName)+":")]):e._e(),e._v(" "),a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressCsvXlsx,callback:function(t){e.progressCsvXlsx=t},expression:"progressCsvXlsx"}},[a("strong",[e._v(e._s(Math.round(e.progressCsvXlsx))+"%")])]),e._v(" "),e.successItemImport>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowImport)+"件中"+e._s(e.successItemImport)+"件をアップロードしました。")]):e._e(),e._v(" "),e.errorMessageImport.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("アップロード失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageImport,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgressImport")}}})],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"1000",persistent:""},model:{value:e.showModalImport,callback:function(t){e.showModalImport=t},expression:"showModalImport"}},[e.isShowViewCSV?a("v-card",{staticClass:"modal-export common-modal"},[a("ModalTitle",{attrs:{title:"一括登録(ゲートCSV) "},on:{click:function(t){return e.closeDialogImport()}}}),e._v(" "),a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info "},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ゲートの編集をCSVファイルから行うことができます。"),a("br"),e._v("\r\n アップロードするCSVファイルを選択し、「ファイルをインポート」してください。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickExportCSV")}}},[e._v("\r\n テンプレートのダウンロード\r\n ")]),e._v(" "),a("v-checkbox",{staticClass:"mt-5 checkBoxExportGateInfoCSV",attrs:{color:"grey",dense:"","hide-details":"",label:"ゲート情報を入れてダウンロード"},on:{change:function(t){return e.$emit("clickCheckBoxExportGateInfoCSV")}}})],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5 pt-0"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ゲートの編集をCSVファイルから行うことができます。"),a("br"),e._v("\r\n アップロードするCSVファイルを選択し、「ファイルをインポート」してください。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("CSVファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:""},on:{click:function(t){return e.openFile()}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_csv"}},[e._v("\r\n ...\r\n "),a("input",{ref:"files",staticClass:"custom-file-input",staticStyle:{display:"none"},attrs:{type:"file",id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}})])])],1)],1)]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickImportCSV",{files:e.files})}}},[e._v("\r\n ファイルをインポート\r\n ")])],1)],1)],1):e._e()],1)],1)},Tv=[],Ev=f["a"].extend({name:"CardImport",components:{ModalTitle:Xc,SuccessButton:kr},props:{showProgressExportCSV:{type:Boolean,default:!1},showModalImport:{type:Boolean,default:!1},progressCsvXlsx:{type:Number,default:0},successMessageLogs:{type:String,default:""},errorMessageCsvXlsx:{type:String,default:""},isShowViewCSV:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},successItemImport:{type:Number,default:0},totalDataRowImport:{type:Number,default:0},errorMessageImport:{default:[]},isFinishProcess:{type:Boolean,default:!1},sheetUserName:{type:String,default:""}},watch:{},computed:{showProgressImportCSV:{get:function(){return this.showProgressImport&&this.isShowViewCSV}},showProgressImportExcel:{get:function(){return this.showProgressImport&&!this.isShowViewCSV}}},data:function(){return{files:[],fileName:""}},methods:{previewFiles:function(e){console.log(e.target.files[0]),this.files=e.target.files[0],this.fileName=e.target.files[0]?e.target.files[0].name:""},openFile:function(){var e=document.getElementsByClassName("custom-file-input")[0];e.click()},closeDialogImport:function(){var e=document.getElementsByClassName("custom-file-input")[0];e.value="",this.files=null,this.fileName="",this.$emit("closeImportCSV")}}}),Ov=Ev,Vv=(a("4802"),Object(I["a"])(Ov,Rv,Tv,!1,null,null,null)),Uv=Vv.exports;C()(Vv,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCheckbox:Lr["a"],VCol:Dr["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VTextField:Tr["a"]});var $v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("gate-lock-detail-template",{attrs:{successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,successMessageModal:e.successMessageModal,errorMessageModal:e.errorMessageModal,gateDetail:e.gateDetail,groupList:e.groupList,loading:e.loading,showConfirm:e.showConfirm,groupId:e.groupId,dayTypes:e.dayTypes,dataUnlockingTime:e.dataUnlockingTime,groupsAddFail:e.groupsAddFail,isFinishDetailGate:e.isFinishDetailGate,loadingChild:e.loadingChild,isRemoteUnlockValid:e.isRemoteUnlockValid,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,btnUnlock:e.btnUnlock},on:{clickBackGate:function(t){return e.$emit("clickBackGate",t)},clickRemoteUnlock:function(t){return e.$emit("clickRemoteUnlock",t)},clickConfirm:function(t){return e.clickConfirm(t)},closeModalConfirm:function(t){return e.closeModalConfirm(t)},"loading-from-child":function(t){return e.$emit("loading",t)},"gate-edit":function(t){return e.$emit("gate-edit",t)}}})},Nv=[],Fv=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-container",{staticClass:"pt-0",staticStyle:{position:"relative"}},[a("ModalLoading",{attrs:{loading:e.loadingChild}}),e._v(" "),""!==e.successMessageLogs&&e.groupsAddFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_GATE_EDIT.replace("GROUP_NAME",e.groupsAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("gate-lock-detail-table",{attrs:{gateDetail:e.gateDetail,loading:e.loading,groupList:e.groupList,groupId:e.groupId,showConfirm:e.showConfirm,dataUnlockingTime:e.dataUnlockingTime,successMessageModal:e.successMessageModal,errorMessageModal:e.errorMessageModal,dayTypes:e.dayTypes,isFinishEditGate:e.isFinishEditGate,isRemoteUnlockValid:e.isRemoteUnlockValid,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,btnUnlock:e.btnUnlock},on:{clickUpdateGate:function(t){return e.$emit("clickUpdateGate",t)},clickConfirm:function(t){return e.$emit("clickConfirm",t)},closeModalConfirm:function(t){return e.$emit("closeModalConfirm",t)},clickRemoteUnlock:function(t){return e.$emit("clickRemoteUnlock",t)},"gate-edit":function(t){return e.$emit("gate-edit",t)}}})],1)],1)},jv=[],Bv=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-row",{staticClass:"mb-2 mt-2 mr-2",attrs:{justify:"end"}},[!0===e.authority.isAdmin||!0===e.isAdminOfRemoteUnlock?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:!1===e.btnUnlock||!0===e.gateDetail.isTwoStepAuthValid||!0===e.gateDetail.isVisitor||91===e.gateDetail.makerCode},on:{click:function(t){return e.$emit("clickRemoteUnlock")}}},[a("v-icon",{staticStyle:{color:"white !important"}},[e._v("mdi-lock-outline")]),e._v("リモート解錠\n ")],1):e._e(),e._v(" "),e.authority.isAdmin?a("v-btn",{directives:[{name:"show",rawName:"v-show",value:e.isRemoteUnlockValid,expression:"isRemoteUnlockValid"}],staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("gate-edit",e.gateDetail.gateId)}}},[e._v("\n ゲート情報を編集する\n ")]):e._e()],1),e._v(" "),a("v-container",{staticClass:"pt-0"},[a("div",[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold ml-3"},[e._v("\n ゲート情報\n ")])],1),e._v(" "),a("div",{staticClass:"round-content-scroll vh75"},[a("v-form",{ref:"GateAddForm",attrs:{"lazy-validation":""}},[a("v-row",[a("v-col",{attrs:{cols:"12",lg:"6"}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5",attrs:{id:"col-left","min-height":e.filterSectionHeight}},[a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ゲートID")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateId)+" ")])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("製品ID")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateModelId)+" ")])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("製品名")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateModelName)+" ")])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("型番")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateModelCode)+" ")])])]),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.iconType)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("アイコンタイプ")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.getTextArray(e.listIconType,e.gateDetail.iconType))+" ")])])]):e._e(),e._v(" "),e.checkShowHideAdvance(e.gateDetail.makerCode,e.inputIndex.customizable)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ターゲット動作設定Time")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.controlTime)+" ")])])]):e._e(),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ゲート名")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateName)+" ")])])]),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.isVisitor)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ゲート動作モード")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(e._s(e.getTextArray(e.listIsVisitor,e.gateDetail.isVisitor)))])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.isNFCValid)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("NFCの有効")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e.gateDetail.isNFCValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.isTenKeyValid)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("テンキーの有効・無効")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e.gateDetail.isTenKeyValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.isGatePasswordValid)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ゲートパスワードの有効・無効")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e.gateDetail.isGatePasswordValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.gatePasswordLength)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ゲートパスワードの桁数")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(e._s(e.getTextArray(e.listPassLenght,e.gateDetail.gatePasswordLength)))])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.gatePasswordSeed)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ゲートパスワードのseed値")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gatePasswordSeed)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.isTwoStepAuthValid)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("2段階認証の有効・無効")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e.gateDetail.isTwoStepAuthValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.bleIntensity)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("BLE出力設定")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(e._s(e.getTextArray(e.listBleIntensity,e.gateDetail.bleIntensity)))])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.buzzerPattern)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("ブザー鳴動設定")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(e._s(e.getTextArray(e.listBuzzerPattern,e.gateDetail.buzzerPattern)))])])]):e._e()])],1),e._v(" "),a("v-col",{attrs:{cols:"12",lg:"6"}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5",attrs:{id:"col-right","min-height":e.filterSectionHeight}},[e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.needLocation)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-4"},[a("v-subheader",[e._v("位置情報取得")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e.gateDetail.needLocation?a("span",[e._v("有効")]):a("span",[e._v("無効")])])])]):e._e(),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("備考.1")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.option1)+" ")])])]),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("備考.2")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.option2)+" ")])])]),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.gateSNMain)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("ゲート個体番号1")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateSNMain)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.gateSNBLE)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("ゲート個体番号2")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateSNBLE)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.gateFWMain)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("適用されているファームウェアバージョン(メインボード)")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateFWMain)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.gateFWBLE)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("適用されているファームウェアバージョン(BLE)")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.gateFWBLE)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.registered)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("登録日")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.converDate(e.gateDetail.registered))+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.updated)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("更新日")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.converDate(e.gateDetail.updated))+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.reported)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("ゲートへ設定情報を適用した日時")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.converDate(e.gateDetail.reported))+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.revisionDesired)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("個人コード照合データー:最新リビジョン")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.revisionDesired)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.revisionReported)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("個人コード照合データー:ゲートへ設定済みのリビジョン")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.revisionReported)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.voltage)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("電池電圧")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.gateDetail.voltage)+" ")])])]):e._e(),e._v(" "),e.checkShowHide(e.gateDetail.makerCode,e.inputIndex.scanDate)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("電池電圧更新日")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.converDate(e.gateDetail.scanDate))+" ")])])]):e._e(),e._v(" "),a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("ステータス")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e.gateDetail.isValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])])])]),e._v(" "),e.displayAntiSetting(e.gateDetail.isVisitor,e.gateDetail.makerCode)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("アンチパスバックの有効・無効")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e.gateDetail.isAntiPassback?a("span",[e._v("有効")]):a("span",[e._v("無効")])])])]):e._e(),e._v(" "),e.displayAntiSetting(e.gateDetail.isVisitor,e.gateDetail.makerCode)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("アンチパスバックのモード")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[0===e.gateDetail.antiPassback.mode?a("span",[e._v("ログモード")]):1===e.gateDetail.antiPassback.mode?a("span",[e._v("通行禁止モード")]):a("span")])])]):e._e(),e._v(" "),e.displayAntiSetting(e.gateDetail.isVisitor,e.gateDetail.makerCode)?a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("v-subheader",[e._v("アンチパスバックの対向ゲート名")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v("\n "+e._s(e.gateDetail.antiPassback.gateName)+"\n ")])])]):e._e()])],1)],1)],1)],1)],1)])],1)},zv=[],Hv=f["a"].extend({name:"GateDetailTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,TextLink:No,ModalTitle:Xc},props:{btnUnlock:{type:Boolean,default:!1},isAdminOfRemoteUnlock:{type:Boolean,default:!1},isRemoteUnlockValid:{type:Boolean,default:!1},typeItems:{type:Array,default:function(){return[]}},unlockTimes:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},successMessageModal:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},gateDetail:{default:{}},groupList:{default:[]},dayTypes:{type:Array,default:[]},dataUnlockingTime:{type:Array,default:[]},isFinishEditGate:{default:!1},loading:{default:!1},showModal:{default:!1},showConfirm:{default:!1}},data:function(){return{filterSectionHeight:0,listIconType:[{text:"ドア",value:1},{text:"ロッカー",value:2},{text:"その他",value:0}],listIconTypeForVirtualGate:[{text:"その他",value:0}],listControlTime:[{text:"0000-9999 S",value:0},{text:"000.0-999.9 S",value:1},{text:"00.00-99.99 S",value:2},{text:"0.000-9.999 S",value:3}],listIsVisitor:[{text:"ビジター",value:!0},{text:"メンバー",value:!1}],listBuzzerPattern:[{text:"OFF",value:0},{text:"鳴動パターン1",value:1},{text:"鳴動パターン2",value:2}],listPassLenght:[{text:"5桁",value:5},{text:"6桁",value:6},{text:"7桁",value:7},{text:"8桁",value:8}],listBleIntensity:[{text:"非常に強い",value:0},{text:"とても強い",value:1},{text:"強い",value:2},{text:"やや強い",value:3},{text:"普通",value:4},{text:"やや弱い",value:5},{text:"弱い",value:6},{text:"とても弱い",value:7}],listBleIntensityForWafer:[{text:"とても強い",value:1},{text:"強い",value:2},{text:"やや強い",value:3},{text:"普通",value:4},{text:"やや弱い",value:5},{text:"弱い",value:6}],listAntiMode:[{text:"ログモード",value:0},{text:"通行禁止モード",value:1}],inputIndex:{gateName:1,isVisitor:2,isNFCValid:3,isTenKeyValid:4,isGatePasswordValid:5,gatePasswordLength:6,gatePasswordSeed:7,isTwoStepAuthValid:8,bleIntensity:9,buzzerPattern:10,option1:11,option2:12,gateSNMain:13,gateSNBLE:14,gateFWMain:15,gateFWBLE:16,registered:17,updated:18,reported:19,revisionDesired:20,revisionReported:21,voltage:22,scanDate:23,isValid:24,needLocation:25},authority:er.state.auth}},watch:{loading:function(e){!1===e&&this.matchHeight()}},mounted:function(){},computed:{headers:{get:function(){var e=[{text:"曜日",align:"start",sortable:!1,value:"date"},{text:"期間指定",align:"start",sortable:!1,value:"time"}];return e},set:function(){}}},methods:{checkShowHide:function(e,t){switch(t=t||-1,t){case this.inputIndex.isTwoStepAuthValid:return 91!==e;case this.inputIndex.isVisitor:return 91!==e&&2!==e&&4!==e;case this.inputIndex.isNFCValid:return 91!==e&&2!==e&&4!==e;case this.inputIndex.isTenKeyValid:return 91!==e&&2!==e&&4!==e;case this.inputIndex.isGatePasswordValid:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gatePasswordLength:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gatePasswordSeed:return 91!==e&&2!==e&&4!==e;case this.inputIndex.bleIntensity:return 91!==e;case this.inputIndex.buzzerPattern:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gateSNMain:return 91!==e;case this.inputIndex.gateSNBLE:return 91!==e;case this.inputIndex.gateFWMain:return 91!==e&&2!==e&&4!==e;case this.inputIndex.gateFWBLE:return 91!==e&&2!==e&&4!==e;case this.inputIndex.registered:return 91!==e;case this.inputIndex.updated:return 91!==e;case this.inputIndex.reported:return 91!==e;case this.inputIndex.revisionDesired:return 91!==e;case this.inputIndex.revisionReported:return 91!==e;case this.inputIndex.voltage:return 91!==e;case this.inputIndex.scanDate:return 91!==e;case this.inputIndex.iconType:return 91!==e;case this.inputIndex.needLocation:return 91===e;default:return 2!==e&&4!==e}},checkShowHideAdvance:function(e,t){return 2!==e&&91!==e&&4!==e&&!!t},displayAntiSetting:function(e,t){return!e&&1===t},matchHeight:function(){var e=this,t=document.getElementById("col-left"),a=document.getElementById("col-right");setTimeout((function(){if(a&&t){var s=a.offsetHeight,r=t.offsetHeight;e.filterSectionHeight=s>r?s:r}}),200)},formatTime:function(e,t){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2))},clickGroup:function(e,t){this.$router.push({path:ht,query:{groupId:e,goBack:"gate/detail?gateId="+t}})},clickEditGate:function(e){this.$router.push({path:ct,query:{gateId:e,goBack:"gate-lock/detail?gateId="+e}})},converDate:function(e){return""!==e&&0!==e?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):"ー"},getTextArray:function(e,t){var a=e.find((function(e){return e.value===t}));return void 0!==a?a.text:""}}}),Kv=Hv,Yv=(a("5fa9"),Object(I["a"])(Kv,Bv,zv,!1,null,null,null)),qv=Yv.exports;C()(Yv,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VForm:Nl["a"],VIcon:Gr["a"],VRow:Kr["a"],VSubheader:Yr["a"]});var Wv=f["a"].extend({name:"GateEditTemplate",components:{GateLockDetailTable:qv,Breadcrumbs:cn,ModalLoading:Zg},props:{btnUnlock:{type:Boolean,default:!1},isAdminOfRemoteUnlock:{type:Boolean,default:!1},isRemoteUnlockValid:{type:Boolean,default:!1},unlockTimes:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageModal:{type:String,default:""},isEdit:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},goBack:{type:String,default:""},gateDetail:{default:{}},groupsAddFail:{default:[]},groupList:{default:[]},dataUnlockingTime:{default:[]},dayTypes:{default:[]},isFinishEditGate:{default:!1},loadingChild:{default:!1}},data:function(){return{Message:s}},computed:{breadcrumbs:{get:function(){return[{text:"ゲート",disabled:!0},{text:"ゲート詳細",disabled:!0}]}}}}),Jv=Wv,Zv=Object(I["a"])(Jv,Fv,jv,!1,null,null,null),Xv=Zv.exports;C()(Zv,{VCol:Dr["a"],VContainer:Zo["a"]});var Qv=nr["a"].extend({name:"GateDetailPage",components:{GateLockDetailTemplate:Xv},props:{gateId:{type:String,default:""},btnUnlock:{type:Boolean,default:!1},isAdminOfRemoteUnlock:{type:Boolean,default:!1}},data:function(){return{loading:!1,showConfirm:!1,successMessageLogs:"",errorMessageLogs:"",gateDetail:{gateId:"",gateName:"",option1:"",option2:"",groups:[]},groupList:[],groupsAddFail:[],dataUnlockingTime:[],groupItemsOrigin:[],dayTypes:[],isFinishDetailGate:!1,groupId:"",goBack:"gates",showModal:!1,successMessageModal:"",errorMessageModal:"",isRemoteUnlockValid:!1,loadingChild:!1}},mounted:function(){var e=this;this.$route.query;void 0!==this.gateId&&""!==this.gateId&&(this.loadingChild=!0,this.groupList=[],this.getGateData(this.gateId).then((function(){e.loadingChild=!1})));var t=er.state.auth;if(t.isAdminOfRemoteUnlock){var a=localStorage.getItem("remoteUnlock");this.isRemoteUnlockValid="true"===a}else this.isRemoteUnlockValid=!0},watch:{loading:function(e){this.$emit("loading",e)},gateId:function(e){var t=this;""!==e&&(this.loadingChild=!0,this.groupList=[],this.getGateData(this.gateId).then((function(){t.loadingChild=!1})))}},methods:{remoteUnlock:function(){var e=this;this.loading=!0,this.successMessageModal="",this.errorMessageModal="";this.$route.query;var t=this.gateDetail.gateId;this.$http.post(te+"/"+encodeURIComponent(t)+"/remote-unlock").then((function(t){"Success"===t.body.message&&(e.successMessageModal="ゲートへリモート解錠要求を行いました。",e.loading=!1),e.loading=!1})).then(null,(function(t){switch(console.log("err: ",t),t.status){case 400:e.errorMessageModal="リモート解錠要求に失敗しました。再度やり直してください。";break;case 403:"Unauthorized"===t.message?e.errorMessageModal=ta:e.errorMessageModal=ia;break;case 404:e.errorMessageModal="リモート解錠要求に失敗しました。以下の原因の可能性があります。
・ログインユーザーが組織管理権限を持っていない場合
・ログインユーザーがこのゲートに紐づく通行権限グループに登録されていない場合
・ログインユーザーが個人コードを持っていない場合";break;case 500:e.errorMessageModal=fa;break;case 503:e.errorMessageModal=ha;break;default:e.errorMessageModal=ba;break}e.loading=!1}))},clickConfirm:function(e){this.successMessageModal="",this.errorMessageModal="",this.showConfirm=!0},closeModalConfirm:function(e){this.showConfirm=!1},clickBackGate:function(){this.$router.push({path:st,query:{goBack:"gate-lock"}})},getGateData:function(e){var t=this;return new Promise((function(a,s){t.errorMessageLogs="",t.$http.get(te+"?gateId="+encodeURIComponent(e)).then((function(e){e.body.maxRecords>0&&e.body.gates.length>0&&(t.gateDetail=e.body.gates[0],t.gateDetail.groups=[],a(null))})).then(null,(function(e){switch(console.log("err: ",e),e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a(null)}))}))},validateBeforeSubmit:function(e){this.errorMessageLogs=""},resetData:function(){this.successMessageLogs="",this.errorMessageLogs=""},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}}}),eb=Qv,tb=Object(I["a"])(eb,$v,Nv,!1,null,null,null),ab=tb.exports,sb=f["a"].extend({name:"GateListTableModal",components:{ShowPerPage:mo,SuccessButton:kr,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,UserGateTable:sf,TextLink:No,GroupOfGateTable:hf,Searchbox:$r,ControlPanelDetail:Fh,GateDetailPage:Rh,ActionButton:Nn,ControlPanelAddPage:qf,GateAllListTable:qh,GateLockAddPage:Av,DatePicker:am,GateImport:Uv,GateLockDetailPage:ab,ModalTitle:Xc,Modal:bn,ModalLoading:Zg},props:{inPage:{type:String,default:""},gateTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:100},searchTargetItems:{default:function(){return[]}},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},isAdminOfRemoteUnlock:{type:Boolean,default:!1},isAdminOfUnlockingTimeSetting:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataGates:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageLogs:{type:String,default:""},gateExpanedGroup:{type:Map,default:new Map},gateId:{default:""},gateName:{default:""},isReRenderGroup:{default:0},isRemoveGroupSelected:{default:0},gateExpanedUser:{type:Map,default:new Map},isReRenderUser:{default:0},isRemoveUserSelected:{default:0},safieRelationsGateDevice:{type:Object,default:function(){return{}}},dataRelationGate:{type:Object,default:function(){return{}}},expandData:{type:Object,default:function(){return{}}},authority:{type:Object,default:{}},btnUnlock:{type:Array,default:function(){return[]}},gatePassword:{type:String,default:""},errorMessageLogsPhone:{type:String,default:""},successMessageLogsPhone:{type:String,default:""},lastLog:{type:Array,default:function(){return[]}},isFinishHandleCommand:{type:Boolean,default:!1},showProgressExportCSV:{type:Boolean,default:!1},progressCsvXlsx:{type:Number,default:0},showModalImport:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},successItemImport:{type:Number,default:0},totalDataRowImport:{type:Number,default:0},errorMessageImport:{default:[]},isFinishProcess:{type:Boolean,default:!1},sheetUserName:{type:String,default:""},isShowViewCSV:{type:Boolean,default:!1},errorMessageCsvXlsx:{type:String,default:""},isDisable:{type:Boolean,default:!1}},mounted:function(){"/groups"===this.$route.path?"undefined"!==typeof localStorage.displayOptionGateModal&&(this.selectedDisplayOptionModal=JSON.parse(localStorage.displayOptionGateModal)):"undefined"!==typeof localStorage.displayOptionGate&&(this.selectedDisplayOptionModal=JSON.parse(localStorage.displayOptionGate))},watch:{isShowDetailGateLock:function(e){this.$emit("isShowDetailGateLock",e)},dataGates:function(e){0===e.length&&(this.dataGatesLoad=[])},isGetDataList:function(e){!1===e&&this.dataGates.length>0&&(this.selectedItem=[],this.dataGatesLoad=this.dataGates,this.expanded=this.dataGates)},selectedDisplayOptionModal:function(e){if("/groups"===this.$route.path?localStorage.setItem("displayOptionGateModal",JSON.stringify(e)):localStorage.setItem("displayOptionGate",JSON.stringify(e)),e.length>8){var t,a=Object(rr["a"])(this.displayOptionItems);try{var s=function(){var a=t.value;void 0===e.find((function(e){return e===a.value}))&&(a.isDisabled=!0)};for(a.s();!(t=a.n()).done;)s()}catch(i){a.e(i)}finally{a.f()}}else{var r,o=Object(rr["a"])(this.displayOptionItems);try{for(o.s();!(r=o.n()).done;){var n=r.value;"controllerName"!==n.value&&"gateName"!==n.value&&(n.isDisabled=!1)}}catch(i){o.e(i)}finally{o.f()}}}},data:function(){return{isControlEdit:!1,isReload:!1,type:"del",showProgress:!1,showGate:!1,isShow:!1,actionItems:[{title:"有効化する",emitName:"click-enable"},{title:"無効化する",emitName:"click-disable"}],expanded:[],selectedItem:[],selectedDisplayOptionModal:["gateName","gateModelName"],displayOptionItems:[{label:"制御盤",value:"controllerName"},{label:"ゲートID",value:"gateId"},{label:"ゲート名",value:"gateName",isDisabled:!0},{label:"製品ID",value:"gateModelId"},{label:"製品名",value:"gateModelName"},{label:"型番",value:"gateModelCode"},{label:"アイコンタイプ",value:"iconType"},{label:"メーカー番号",value:"makerCode"},{label:"変更有無",value:"customizable"},{label:"ターゲット動作設定",value:"target"},{label:"ターゲット動作設定Time",value:"controlTime"},{label:"ターゲット動作設定TimeUnit",value:"timeUnit"},{label:"ゲート動作モード",value:"isVisitor"},{label:"NFCの有効",value:"isNFCValid"},{label:"テンキーの有効・無効",value:"isTenKeyValid"},{label:"ゲートパスワードの有効・無効",value:"isGatePasswordValid"},{label:"ゲートパスワードの桁数",value:"gatePasswordLength"},{label:"ゲートパスワードのseed値",value:"gatePasswordSeed"},{label:"2段階認証の有効・無効",value:"isTwoStepAuthValid"},{label:"BLE出力設定",value:"bleIntensity"},{label:"ブザー鳴動設定",value:"buzzerPattern"},{label:"位置情報取得",value:"needLocation"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"},{label:"ゲート個体番号1",value:"gateSNMain"},{label:"ゲート個体番号2",value:"gateSNBLE"},{label:"ファームウェアバージョン",value:"gateFWMain"},{label:"ファームウェアバージョン(BLE)",value:"gateFWBLE"},{label:"登録日",value:"registered"},{label:"更新日",value:"updated"},{label:"ゲートへ設定情報を適用した日時",value:"reported"},{label:"個人コード照合データー:最新リビジョン",value:"revisionDesired"},{label:"個人コード照合データー:ゲートへ設定済みのリビジョン",value:"revisionReported"},{label:"電池電圧",value:"voltage"},{label:"電池電圧更新日",value:"scanDate"},{label:"回線番号",value:"controllerGateNo"},{label:"ステータス",value:"isValid"}],selectedUserIds:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataGate,isShowControlPanelDetail:!1,isShowDetailGate:!1,isGateLockModalShow:!1,isAddControlShow:!1,isGateLockAdd:!1,isConfirm:!1,isHandleCommand:!1,isHandleCommandProcess:!1,gateid:"",currentGateName:"",isGatePassword:!1,dataGatesLoad:[],timeGate:1,dateGate:jo()(new Date).format("YYYY-MM-DD"),listTime:[{text:"00:00〜23:59",value:1},{text:"00:00〜11:59",value:2},{text:"12:00〜23:59",value:3},{text:"09:00〜16:59",value:4}],isShowDetailGateLock:!1,isConfirmAction:!1,isValid:!0,selectedIds:[],gateNameHandle:"",isCloseControll:!1}},methods:{customSort:function(e,t,a){return this.selectedItem=[],t&&t.length&&a&&a.length?(console.log(t[0]),e.sort((function(e,s){return"controller.name"===t[0]?a[0]?s.controllerName0?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):"-"},goDetailControl:function(e){window.localStorage.setItem("controllerId",e),this.isShowControlPanelDetail=!0},goDetailGate:function(e,t){this.gateNameHandle="",this.gateNameHandle=t,window.localStorage.setItem("gateId",e),this.isShowDetailGate=!0,this.isReload=!1},goDetailGateLock:function(e,t){this.gateid=e,this.gateNameHandle="",this.gateNameHandle=t,this.isShowDetailGateLock=!0,this.isReload=!1},goControlEdit:function(e){this.isReload=!1,window.localStorage.setItem("controllerId",e),window.localStorage.setItem("isEditFlag","true"),this.isAddControlShow=!0,this.isControlEdit=!0,this.isCloseControll=!1},goControlAdd:function(e){this.isReload=!1,window.localStorage.setItem("isEditFlag","false"),this.isAddControlShow=!0,this.isControlEdit=!1,this.isCloseControll=!1},safieDeviceLinkTo:function(e){window.open("".concat(Oe,"/").concat(e),"_blank")},closeModal:function(){this.isShowControlPanelDetail=!1,this.isShowDetailGate=!1,this.isAddControlShow=!1,this.isGateLockModalShow=!1,this.isGateLockAdd=!1},deleteBridgeProperty:function(){this.closeModal(),this.$emit("close-modal-control",this.isReload)},deleteGateLockAddPage:function(e){this.closeModal(),!1===this.isShowDetailGateLock&&this.$emit("close-modal-control",e)},clickGroupDetail:function(e){this.closeModal(),this.$emit("clickGroupDetail",e)},closeModalGate:function(e){this.showProgress=!1,e&&this.$emit("load-gates",this.page)},removeGate:function(e){this.type="del",this.showProgress=!0,this.isConfirm=!1,this.$emit("remove-gate",e)},confirmAction:function(){var e="disable"!==this.type;this.showProgress=!0,this.isConfirmAction=!1,this.$emit("confirm-action",{isValid:e,selectedItem:this.selectedItem})},addGate:function(e){this.type="add",this.showProgress=!0,this.$emit("add-gate",e)},loadGate:function(){this.showGate=!0,this.selectedIds=[],this.$emit("load-all-gate",1)},openHandleCommand:function(e,t){this.isHandleCommand=!0,this.gateid=e,this.currentGateName=t,this.$emit("openHandleCommand",this.gateid)},closeHandleCommand:function(){this.isHandleCommand=!1},handleCommand:function(){this.$emit("handleCommand",this.gateid)},getGatePassword:function(e){this.dateGate=jo()(new Date).format("YYYY-MM-DD"),this.isGatePassword=!0,this.gateid=e},getTime:function(e){console.log(e),this.dateGate=e},closePasswordGenerate:function(){this.isGatePassword=!1,this.gateid="",this.$emit("closePasswordGenerate")},converDateFull:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD H:mm:ss")},converStatus:function(e){var t="";return 0===e||99===e?t="実行中":1===e?t="解錠成功":2===e&&(t="解錠失敗"),t},getLastLog:function(){this.$emit("getLog",this.gateid)},convertStatus:function(e){return!0===e||1===e?"有効":"無効"},clickEditGateLock:function(e){this.isControlEdit=!0,this.isGateLockModalShow=!0,this.isReload=!1,this.$emit("clickEditGateLock",e)},converTextBLE:function(e){var t="";switch(e){case 0:t="非常に強い";break;case 1:t="とても強い";break;case 2:t="強い";break;case 3:t="やや強い";break;case 4:t="普通";break;case 5:t="やや弱い";break;case 6:t="弱い";break;case 7:t="とても弱い";break;default:t="普通";break}return t},closeModalControl:function(e){var t=this;if(this.isShowDetailGateLock){if(this.isReload){var a=this.gateid;this.gateid="",setTimeout((function(){t.gateid=a}),100)}}else console.log("isShowDetailGateLock",this.isShowDetailGateLock),this.isAddControlShow=!1,this.isCloseControll?(this.$emit("close-modal-page-from-add"),this.$emit("loading-from-child",!1)):this.$emit("close-modal-control",e)},controllerSuccess:function(e){this.isReload=e},updateGate:function(e){console.log("data: ",e),this.gateNameHandle=e.gateName},checkControllerName:function(e){var t=e.find((function(e){return"controller.name"===e.value}));return console.log("data",e),console.log("check",t),void 0!==t}},computed:{headers:{get:function(){var e=[];return this.selectedDisplayOptionModal.includes("controllerName")&&e.push({text:"制御盤名",align:"start",sortable:!0,value:"controller.name",class:"controllerName"}),this.selectedDisplayOptionModal.includes("gateId")&&e.push({text:"ゲートID",align:"start",sortable:!0,value:"gate.gateId"}),this.selectedDisplayOptionModal.includes("gateName")&&e.push({text:"ゲート名",align:"start",sortable:!0,value:"gate.name"}),this.selectedDisplayOptionModal.includes("gateModelId")&&e.push({text:"製品ID",align:"start",sortable:!1,value:"gate.gateModelId"}),this.selectedDisplayOptionModal.includes("gateModelName")&&e.push({text:"製品名",align:"start",sortable:!1,value:"gate.gateModelName"}),this.selectedDisplayOptionModal.includes("gateModelCode")&&e.push({text:"型番",align:"start",sortable:!1,value:"gate.gateModelCode"}),this.selectedDisplayOptionModal.includes("iconType")&&e.push({text:"アイコンタイプ",align:"start",sortable:!1,value:"gate.iconType"}),this.selectedDisplayOptionModal.includes("makerCode")&&e.push({text:"メーカー番号",align:"start",sortable:!1,value:"gate.makerCode"}),this.selectedDisplayOptionModal.includes("customizable")&&e.push({text:"変更有無",align:"start",sortable:!1,value:"gate.customizable"}),this.selectedDisplayOptionModal.includes("target")&&e.push({text:"ターゲット動作設定",align:"start",sortable:!1,value:"gate.target"}),this.selectedDisplayOptionModal.includes("controlTime")&&e.push({text:"ターゲット動作設定Time",align:"start",sortable:!1,value:"gate.controlTime"}),this.selectedDisplayOptionModal.includes("timeUnit")&&e.push({text:"ターゲット動作設定TimeUnit",align:"start",sortable:!1,value:"gate.timeUnit"}),this.selectedDisplayOptionModal.includes("isVisitor")&&e.push({text:"ゲート動作モード",align:"start",sortable:!1,value:"gate.isVisitor"}),this.selectedDisplayOptionModal.includes("isNFCValid")&&e.push({text:"NFCの有効",align:"start",sortable:!1,value:"gate.isNFCValid"}),this.selectedDisplayOptionModal.includes("isTenKeyValid")&&e.push({text:"テンキーの有効・無効",align:"start",sortable:!1,value:"gate.isTenKeyValid"}),this.selectedDisplayOptionModal.includes("isGatePasswordValid")&&e.push({text:"ゲートパスワードの有効・無効",align:"start",sortable:!1,value:"gate.isGatePasswordValid"}),this.selectedDisplayOptionModal.includes("gatePasswordLength")&&e.push({text:"ゲートパスワードの桁数",align:"start",sortable:!1,value:"gate.gatePasswordLength"}),this.selectedDisplayOptionModal.includes("gatePasswordSeed")&&e.push({text:"ゲートパスワードのseed値",align:"start",sortable:!1,value:"gate.gatePasswordSeed"}),this.selectedDisplayOptionModal.includes("isTwoStepAuthValid")&&e.push({text:"2段階認証の有効・無効",align:"start",sortable:!1,value:"gate.isTwoStepAuthValid"}),this.selectedDisplayOptionModal.includes("bleIntensity")&&e.push({text:"BLE出力設定",align:"start",sortable:!1,value:"gate.bleIntensity"}),this.selectedDisplayOptionModal.includes("buzzerPattern")&&e.push({text:"ブザー鳴動設定",align:"start",sortable:!1,value:"gate.buzzerPattern"}),this.selectedDisplayOptionModal.includes("needLocation")&&e.push({text:"位置情報取得",align:"start",sortable:!1,value:"gate.needLocation"}),this.selectedDisplayOptionModal.includes("option1")&&e.push({text:"備考1",align:"start",sortable:!1,value:"gate.option1"}),this.selectedDisplayOptionModal.includes("option2")&&e.push({text:"備考2",align:"start",sortable:!1,value:"gate.option2"}),this.selectedDisplayOptionModal.includes("gateSNMain")&&e.push({text:"ゲート個体番号1",align:"start",sortable:!1,value:"gate.gateSNMain"}),this.selectedDisplayOptionModal.includes("gateSNBLE")&&e.push({text:"ゲート個体番号2",align:"start",sortable:!1,value:"gate.gateSNBLE"}),this.selectedDisplayOptionModal.includes("gateFWMain")&&e.push({text:"ファームウェアバージョン",align:"start",sortable:!1,value:"gate.gateFWMain"}),this.selectedDisplayOptionModal.includes("gateFWBLE")&&e.push({text:"ファームウェアバージョン(BLE)",align:"start",sortable:!1,value:"gate.gateFWBLE"}),this.selectedDisplayOptionModal.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!1,value:"gate.registered"}),this.selectedDisplayOptionModal.includes("updated")&&e.push({text:"更新日",align:"start",sortable:!1,value:"gate.updated"}),this.selectedDisplayOptionModal.includes("reported")&&e.push({text:"ゲートへ設定情報を適用した日時",align:"start",sortable:!1,value:"gate.reported"}),this.selectedDisplayOptionModal.includes("revisionDesired")&&e.push({text:"個人コード照合データー:最新リビジョン",align:"start",sortable:!1,value:"gate.revisionDesired"}),this.selectedDisplayOptionModal.includes("revisionReported")&&e.push({text:"個人コード照合データー:ゲートへ設定済みのリビジョン",align:"start",sortable:!1,value:"gate.revisionReported"}),this.selectedDisplayOptionModal.includes("voltage")&&e.push({text:"電池電圧",align:"start",sortable:!1,value:"gate.voltage"}),this.selectedDisplayOptionModal.includes("scanDate")&&e.push({text:"電池電圧更新日",align:"start",sortable:!1,value:"gate.scanDate"}),this.selectedDisplayOptionModal.includes("controllerGateNo")&&e.push({text:"回線番号",align:"start",sortable:!1,value:"gate.controllerGateNo"}),this.selectedDisplayOptionModal.includes("status")&&e.push({text:"ステータス",align:"start",sortable:!1,value:"status"}),this.selectedDisplayOptionModal.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!1,value:"gate.isValid"}),e.push({text:"",align:"end",sortable:!1,value:"action-expand",width:"250px"}),e}},innerPage:{get:function(){return this.page},set:function(e){this.expanded=[],this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.expanded=[],this.$emit("change-per-page",e)}},showValid:{get:function(){return this.isValid},set:function(e){this.$emit("get-gate-isValid",e)}},isShowModal:{get:function(){return this.showModal},set:function(e){!1===e&&this.$emit("closeModalUnClock")}}}}),rb=sb,ob=(a("3801"),a("6ac3"),Object(I["a"])(rb,Jm,Zm,!1,null,"0eec824a",null)),nb=ob.exports;C()(ob,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCheckbox:Lr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VList:En["a"],VListItem:On["a"],VListItemTitle:Vn["b"],VMenu:Un["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSelect:_o["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var ib=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-gate-table no-box-shadow list-gate-content"},[a("v-container",{staticClass:"tab-gate-log-list pt-0"},[a("div",["modal-group"===e.inPage?a("v-row",{attrs:{justify:"end"}},[a("v-col",{attrs:{cols:"12"}},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{staticClass:"mr-2",attrs:{cols:"3"}},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.goControlAdd}},[e._v("\n 新規制御盤を追加する\n ")]):e._e()],1),e._v(" "),a("v-col",{attrs:{cols:"3"}},[a("div",{staticClass:"text-center mr-1"},[!0===e.authority.isAdmin?a("v-menu",{attrs:{"open-on-hover":"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"btn-primary"},"v-btn",r,!1),s),[e._v("\n ゲート登録\n ")])]}}],null,!1,1538645317)},[e._v(" "),!0===e.authority.isAdmin?a("v-list",[a("v-list-item",{attrs:{link:""},on:{click:function(t){e.isGateLockModalShow=!0,e.isGateLockAdd=!0,e.isControlEdit=!1}}},[a("v-list-item-title",[e._v("ゲート登録")])],1),e._v(" "),a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",!0)}}},[a("v-list-item-title",[e._v("一括登録")])],1)],1):e._e()],1):e._e()],1)]),e._v(" "),a("v-col",{attrs:{cols:"3"}},[!0===e.authority.isAdmin?a("div",{staticClass:"text-center mt-0"},[a("action-button",{attrs:{text:"アクション ▼","action-items":e.actionItems,disabled:0===e.selectedItem.length},on:{"click-enable":function(t){e.isConfirmAction=!0,e.type="enable"},"click-disable":function(t){e.isConfirmAction=!0,e.type="disable"}}})],1):e._e()])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"12"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search ",attrs:{searchTargetItems:e.searchTargetItems,title:"選択項目にチェックして検索",disabled:e.isGetDataList},on:{search:function(t){return e.$emit("search-gate",t)}}})],1)],1)],1)])],1):a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{cols:"12"}},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-10"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"12",lg:"6",sm:"12",md:"6"}},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-second",attrs:{outlined:"",disabled:0===e.selectedItem.length},on:{click:function(t){e.isConfirm=!0}}},[e._v("\n チェックしたゲートを通行権限グループから削除する\n ")]):e._e()],1),e._v(" "),a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"12",lg:"6",sm:"12",md:"6"}},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-primary",attrs:{disabled:e.isDisable,outlined:""},on:{click:function(t){return e.loadGate()}}},[e._v("\n 他のゲートを通行権限グループに追加する\n ")]):e._e()],1)],1)])],1),e._v(" "),a("v-col",{staticClass:"pt-0",attrs:{cols:"12"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search",attrs:{searchTargetItems:e.searchTargetItems,title:"ゲートを検索",disabled:e.isGetDataList},on:{search:function(t){return e.$emit("search-gate",t)}}})],1)],1)],1)])],1),e._v(" "),""===e.successMessageLogs||e.isCheck()?e._e():a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]),e._v(" "),""===e.errorMessageLogs||e.isCheck()?e._e():a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]),e._v(" "),a("v-row",{staticClass:"ml-3 mt-3 border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{attrs:{"per-page":e.perPage,page:e.page,"items-length":e.gateTotalCount}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-checkbox",{staticClass:"text-caption-checkbox mr-5",attrs:{label:"有効なゲートのみ表示",color:"green",dense:"","hide-details":""},model:{value:e.showValid,callback:function(t){e.showValid=t},expression:"showValid"}}),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",{staticClass:"mb-3"},[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),a("v-row",{staticClass:"pt-0 pb-0 mt-0"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.isGetDataList,isVaildOnly:e.isVaildOnly,isVaildOnlyShow:!1},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},input:function(t){return e.CheckColumn(t)}},model:{value:e.selectedDisplayOption,callback:function(t){e.selectedDisplayOption=t},expression:"selectedDisplayOption"}})],1)],1),e._v(" "),a("v-row",{staticClass:"btn-div area-search-box pl-0",attrs:{justify:"end"}},[a("v-col",{attrs:{sm:"12"}},[a("div",{staticClass:"round-data table-affiliation"},[a("v-data-table",{staticClass:"border-table scroll-table table-no-bg",class:{"modal-table":"modal-group"===e.inPage},attrs:{"must-sort":"",headers:e.headers,loading:e.isGetDataList,items:e.dataGatesLoad,"items-per-page":e.perPage,"item-key":"gate.gateId","no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"",expanded:e.expanded},on:{"update:options":function(t){e.selectedItem=[],e.$emit("change-sort",t)},"update:expanded":function(t){e.expanded=t}},scopedSlots:e._u([{key:"item.controller.name",fn:function(t){var s=t.item;return[void 0!==s.controller&&"ALIG-030"===s.gate.gateModelCode?a("div",{class:s.class},[a("text-link",{class:["modal-group"===e.inPage?"item-user-id wrap-name":"item-user-id"],attrs:{text:s.controller.name},on:{click:function(t){return e.goDetailControl(s.controller.controllerId)}}})],1):a("div",{class:[1!==s.index?"no-controller":""]},[e._v("\n 制御盤なし\n ")])]}},{key:"item.gate.isValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateId",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.name",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateModelId",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateModelCode",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateModelName",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.iconType",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.makerCode",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.customizable",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.target",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.controlTime",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.timeUnit",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isNFCValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isVisitor",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isTenKeyValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isGatePasswordValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gatePasswordLength",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gatePasswordSeed",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.isTwoStepAuthValid",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.bleIntensity",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.buzzerPattern",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.needLocation",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.option1",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.option2",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateSNMain",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateFWMain",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateFWBLE",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.registered",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.updated",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.reported",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.revisionDesired",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.gateSNBLE",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.revisionReported",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.voltage",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.scanDate",fn:function(e){e.item;return[a("span")]}},{key:"item.gate.controllerGateNo",fn:function(e){e.item;return[a("span")]}},{key:"item.action-expand",fn:function(t){var s=t.item;return[void 0!==s.controller&&"ALIG-030"===s.gate.gateModelCode?a("div",[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("goReflectionPage",{controllerId:s.controller.controllerId,name:s.controller.name})}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-format-list-checks")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("反映状況一覧")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[!0===e.authority.isAdmin?a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.goControlEdit(s.controller.controllerId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-circle-edit-outline")])],1):e._e()]}}],null,!0)},[e._v(" "),a("span",[e._v("制御盤編集")])])],1):a("div")]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return e._l(s,(function(t){return a("td",{key:t.value},["controller.name"===t.value?a("div",["modal-group"!==e.inPage||"modal-group"===e.inPage&&"ALIG-030"!==r.gate.gateModelCode?a("v-checkbox",{staticClass:"check-box-expanded",staticStyle:{margin:"0px",padding:"0px"},attrs:{value:r,"hide-details":""},model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}):e._e()],1):e._e(),e._v(" "),"gate.gateId"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateId)+"\n ")]):e._e(),e._v(" "),"gate.name"===t.value?a("div",[a("div",{staticClass:"allig-text-link item-user-name gate-name"},["ALIG-030"!==r.gate.gateModelCode?a("text-link",{class:["modal-group"===e.inPage?"item-user-id wrap-name":"item-user-id"],attrs:{text:r.gate.name},on:{click:function(t){return e.goDetailGateLock(r.gate.gateId,r.gate.name)}}}):a("text-link",{class:["modal-group"===e.inPage?"item-user-id wrap-name":"item-user-id"],attrs:{text:r.gate.name},on:{click:function(t){return e.goDetailGate(r.gate.gateId,r.gate.name)}}})],1)]):e._e(),e._v(" "),"gate.gateModelId"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateModelId)+"\n ")]):e._e(),e._v(" "),"gate.gateModelName"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateModelName)+"\n ")]):e._e(),e._v(" "),"gate.gateModelCode"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateModelCode)+"\n ")]):e._e(),e._v(" "),"gate.iconType"===t.value?a("div",[e._v("\n "+e._s(r.gate.iconType)+"\n ")]):e._e(),e._v(" "),"gate.makerCode"===t.value?a("div",[e._v("\n "+e._s(r.gate.makerCode)+"\n ")]):e._e(),e._v(" "),"gate.customizable"===t.value?a("div",[1===r.gate.customizable||!0===r.gate.customizable?a("span",[e._v("true")]):a("span",[e._v("false")])]):e._e(),e._v(" "),"gate.target"===t.value?a("div",[e._v("\n "+e._s(r.gate.target)+"\n ")]):e._e(),e._v(" "),"gate.controlTime"===t.value?a("div",[e._v("\n "+e._s(r.gate.controlTime)+"\n ")]):e._e(),e._v(" "),"gate.timeUnit"===t.value?a("div",[e._v("\n "+e._s(r.gate.timeUnit)+"\n ")]):e._e(),e._v(" "),"gate.isVisitor"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isVisitor))+"\n ")]):e._e(),e._v(" "),"gate.isNFCValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isNFCValid))+"\n ")]):e._e(),e._v(" "),"gate.isTenKeyValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isTenKeyValid))+"\n ")]):e._e(),e._v(" "),"gate.isGatePasswordValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isGatePasswordValid))+"\n ")]):e._e(),e._v(" "),"gate.gatePasswordLength"===t.value?a("div",[e._v("\n "+e._s(r.gate.gatePasswordLength)+"\n ")]):e._e(),e._v(" "),"gate.gatePasswordSeed"===t.value?a("div",[e._v("\n "+e._s(r.gate.gatePasswordSeed)+"\n ")]):e._e(),e._v(" "),"gate.isTwoStepAuthValid"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.isTwoStepAuthValid))+"\n ")]):e._e(),e._v(" "),"gate.bleIntensity"===t.value?a("div",[e._v("\n "+e._s(e.converTextBLE(r.gate.bleIntensity))+"\n ")]):e._e(),e._v(" "),"gate.buzzerPattern"===t.value?a("div",[e._v("\n "+e._s(r.gate.buzzerPattern)+"\n ")]):e._e(),e._v(" "),"gate.needLocation"===t.value?a("div",[e._v("\n "+e._s(e.convertStatus(r.gate.needLocation))+"\n ")]):e._e(),e._v(" "),"gate.option1"===t.value?a("div",[e._v("\n "+e._s(r.gate.option1)+"\n ")]):e._e(),e._v(" "),"gate.option2"===t.value?a("div",[e._v("\n "+e._s(r.gate.option2)+"\n ")]):e._e(),e._v(" "),"gate.gateSNMain"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateSNMain)+"\n ")]):e._e(),e._v(" "),"gate.gateSNBLE"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateSNBLE)+"\n ")]):e._e(),e._v(" "),"gate.gateFWMain"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateFWMain)+"\n ")]):e._e(),e._v(" "),"gate.gateFWBLE"===t.value?a("div",[e._v("\n "+e._s(r.gate.gateFWBLE)+"\n ")]):e._e(),e._v(" "),"gate.registered"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.registered))+"\n ")]):e._e(),e._v(" "),"gate.updated"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.updated))+"\n ")]):e._e(),e._v(" "),"gate.reported"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.reported))+"\n ")]):e._e(),e._v(" "),"gate.revisionDesired"===t.value?a("div",[e._v("\n "+e._s(r.gate.revisionDesired)+"\n ")]):e._e(),e._v(" "),"gate.revisionReported"===t.value?a("div",[e._v("\n "+e._s(r.gate.revisionReported)+"\n ")]):e._e(),e._v(" "),"gate.voltage"===t.value?a("div",[e._v("\n "+e._s(r.gate.voltage)+"\n ")]):e._e(),e._v(" "),"gate.scanDate"===t.value?a("div",[e._v("\n "+e._s(e.converDateTime(r.gate.scanDate))+"\n ")]):e._e(),e._v(" "),"gate.controllerGateNo"===t.value?a("div",[r.controllerGateNo?a("span",[e._v(e._s(r.controllerGateNo))]):e._e()]):e._e(),e._v(" "),"gate.isValid"===t.value?a("div",[e._v("\n "+e._s(r.gate.isValid?"有効":"無効")+"\n ")]):e._e(),e._v(" "),"action-expand"===t.value?a("div",{staticClass:"text-end"},["ALIG-030"!==r.gate.gateModelCode?a("div",[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickUpdateValid",{gateId:r.gate.gateId,isValid:!r.gate.isValid})}}},"v-btn",o,!1),s),[r.gate.isValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-lock-check")]):a("v-icon",[e._v("mdi-lock-alert")])],1)]}}],null,!0)},[e._v("\n "+e._s(r.gate.isValid?"有効":"無効")+"\n ")]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[!0===e.authority.isAdmin?a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.clickEditGateLock(r.gate.gateId)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-square-edit-outline")])],1):e._e()]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲート編集")])]),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminOfRemoteUnlock?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:"",disabled:!1===e.btnUnlock.includes(r.gate.gateId)||!0===r.gate.isTwoStepAuthValid||1===r.gate.isTwoStepAuthValid||!0===r.gate.isVisitor||1===r.gate.isVisitor||91===r.gate.makerCode},on:{click:function(t){return e.openHandleCommand(r.gate.gateId,r.gate.name)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-lock-open-variant-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("リモート解錠")])]):e._e(),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:"",disabled:!r.gate.isGatePasswordValid||!r.gate.isValid},on:{click:function(t){return e.getGatePassword(r.gate.gateId)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-arrow-horizontal-lock")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲートパスワード取得")])])],1):a("div",[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[!0===e.authority.isAdmin?a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditGate",r.gate)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-square-edit-outline")])],1):e._e()]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲート編集")])]),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminOfRemoteUnlock?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:""},on:{click:function(t){return e.$emit("clickUnClock",{gateId:r.gate.gateId,gateName:r.gate.name})}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-lock-open-variant-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("リモート解錠")])]):e._e(),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("goLogPage",r.gate.name)}}},"v-btn",o,!1),s),[a("v-icon",[e._v("mdi-file-move-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" ゲートログ")])]),e._v(" "),e.safieRelationsGateDevice[r.gateId]?e._l(e.safieRelationsGateDevice[r.gateId],(function(t){return a("v-tooltip",{key:t.deviceId,attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(s){var r=s.on,o=s.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(a){return e.safieDeviceLinkTo(t.deviceId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-video-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(e._s(t.notes?t.notes:"<<名称未設定>>"))])])})):e._e()],2)]):e._e()])}))}},{key:"item.status",fn:function(t){var s=t.item;return[!1===s.controller.connectionStatus?a("span",[e._v("通信エラー発生")]):!0===s.controller.connectionStatus&&1===s.controller.commandStatus?a("span",[e._v("コマンド送信待ち")]):!0===s.controller.connectionStatus&&2===s.controller.commandStatus?a("span",[e._v("設定反映中")]):!0===s.controller.connectionStatus&&3===s.controller.commandStatus?a("span",[e._v("設定エラー発生")]):e._e()]}},{key:"item.isValid",fn:function(e){e.item}}],null,!0)})],1)])],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.gateTotalCount,disabled:e.isGetDataList},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.gateTotalCount/e.perPage),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._t("default",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e._v("\n リモート解錠\n "),a("v-icon",{attrs:{color:"white"},on:{click:function(t){return e.$emit("closeModalUnClock")}}},[e._v("mdi-close")])],1)])],2),e._v(" "),""!==e.successMessageModal||""!==e.errorMessageModal?a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[""!==e.successMessageModal?a("v-col",{staticClass:"font-weight-bold bg-success no-bg"},[e._v("\n "+e._s(e.successMessageModal)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageModal?a("v-col",{staticClass:"font-weight-bold bg-error no-bg"},[a("span",{domProps:{innerHTML:e._s(e.errorMessageModal)}})]):e._e()],1)],1):a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",[e._v("\n "+e._s(e.gateName)+"ゲートをリモート解錠します。\n ")])],1)],1),e._v(" "),a("v-divider"),e._v(" "),""===e.errorMessageModal&&""===e.successMessageModal?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickRemoteUnlock")}}},[e._v("\n OK\n ")])],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalUnClock")}}},[e._v("\n OK\n ")])],1)],1)],1)],1)],1),e._v(" "),a("Modal",{attrs:{title:"制御盤 > 制御盤詳細","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){return e.deleteBridgeProperty()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowControlPanelDetail?a("ControlPanelDetail",{attrs:{authority:e.authority},on:{"controller-success":function(t){return e.controllerSuccess(t)},deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)},clickGroupDetail:e.clickGroupDetail}}):e._e()]},proxy:!0}]),model:{value:e.isShowControlPanelDetail,callback:function(t){e.isShowControlPanelDetail=t},expression:"isShowControlPanelDetail"}}),e._v(" "),a("Modal",{attrs:{title:e.gateNameHandle,"no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){return e.deleteBridgeProperty()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowDetailGate?a("GateDetailPage",{on:{deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)},clickGroupDetail:e.clickGroupDetail}}):e._e()]},proxy:!0}]),model:{value:e.isShowDetailGate,callback:function(t){e.isShowDetailGate=t},expression:"isShowDetailGate"}}),e._v(" "),a("Modal",{attrs:{title:e.gateNameHandle,"no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:function(t){return e.deleteBridgeProperty()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowDetailGateLock?a("GateLockDetailPage",{attrs:{btnUnlock:e.btnUnlock.includes(e.gateid),gateId:e.gateid},on:{clickRemoteUnlock:function(t){return e.openHandleCommand(e.gateid,e.gateNameHandle)},"gate-edit":function(t){return e.clickEditGateLockFrom(t)},loading:function(t){return e.$emit("loading-from-child",t)},clickBackGate:function(t){e.isShowDetailGateLock=!1,e.$emit("close-modal-control")}}}):e._e()]},proxy:!0}]),model:{value:e.isShowDetailGateLock,callback:function(t){e.isShowDetailGateLock=t},expression:"isShowDetailGateLock"}}),e._v(" "),a("Modal",{attrs:{title:e.isControlEdit?"制御盤編集":"制御盤追加","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){return e.closeModalControl(e.isReload)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isAddControlShow?a("ControlPanelAddPage",{on:{deleteBridgeProperty:e.deleteBridgeProperty,loading:function(t){return e.$emit("loading-from-child",t)},"close-modal-control":function(t){return e.closeModalControl(t)},"controller-success":function(t){return e.controllerSuccess(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isAddControlShow,callback:function(t){e.isAddControlShow=t},expression:"isAddControlShow"}}),e._v(" "),a("Modal",{attrs:{title:e.isControlEdit?"ゲート > ゲート編集":"ゲート > 新規ゲート登録","no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:function(t){return e.closeModalControl(e.isReload)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isGateLockModalShow?a("GateLockAddPage",{attrs:{isGateLockAdd:e.isGateLockAdd},on:{deleteBridgeProperty:e.deleteGateLockAddPage,loading:function(t){return e.$emit("loading-from-child",t)},"close-modal-control":function(t){e.isGateLockModalShow=!1,e.$emit("close-modal-control")},"load-gates":function(t){return e.$emit("load-gates",1)},"gate-success":function(t){return e.controllerSuccess(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isGateLockModalShow,callback:function(t){e.isGateLockModalShow=t},expression:"isGateLockModalShow"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",["del"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("チェックしたゲートを通行権限グループから削除")]):"enable"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け有効")]):"disable"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け無効")]):a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataRelationGate.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataRelationGate.progressLoad,callback:function(t){e.$set(e.dataRelationGate,"progressLoad",t)},expression:"dataRelationGate.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataRelationGate.progressLoad))+"%")])]),e._v(" "),e.dataRelationGate.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataRelationGate.total)+"件中"+e._s(e.dataRelationGate.successItem)+" \n "),"add"===e.type?a("span",[e._v("件を追加しました。")]):e._e(),e._v(" "),"del"===e.type?a("span",[e._v("件を削除しました。")]):e._e(),e._v(" "),"disable"===e.type?a("span",[e._v("件を無効化しました。")]):e._e(),e._v(" "),"enable"===e.type?a("span",[e._v("件を有効化しました。")]):e._e()]):e._e(),e._v(" "),e.dataRelationGate.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataRelationGate.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataRelationGate.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.closeModalGate()}}},[e._v("OK")])],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:"他のゲートを通行権限グループに追加","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){e.showGate=!1,e.$emit("close-modal-control-add-other",e.dataRelationGate.successItem>0)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.showGate?a("GateAllListTable",{attrs:{isPage:"group-add-gate",dataList:e.expandData.gateAll.data,perPage:e.expandData.gateAll.perPage,page:e.expandData.gateAll.page,totalCount:e.expandData.gateAll.total,loading:e.expandData.gateAll.loading,selectedIds:e.selectedIds,relationsGateGroup:e.dataGates},on:{"change-page":function(t){return e.$emit("change-page-gate-all",t)},"change-per-page":function(t){return e.$emit("change-per-page-gate-all",t)},"add-gate":function(t){return e.addGate(t)},"select-Ids":function(t){e.selectedIds=t}}}):e._e()]},proxy:!0}]),model:{value:e.showGate,callback:function(t){e.showGate=t},expression:"showGate"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._t("default",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e._v("チェックしたゲートを通行権限グループから削除\n "),a("v-icon",{attrs:{color:"white"},on:{click:function(t){e.isConfirm=!1}}},[e._v("mdi-close")])],1)])],2),e._v(" "),a("v-card-text",{staticClass:"pt-5 pb-5"},[e._v("チェックしたゲートを通行権限グループから削除しますか?")]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.removeGate(e.selectedItem)}}},[e._v("\n 削除\n ")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isGatePassword,callback:function(t){e.isGatePassword=t},expression:"isGatePassword"}},[a("v-card",[a("ModalTitle",{attrs:{title:"ゲートパスワードの取得",className:"background-color-green"},on:{click:function(t){return e.closePasswordGenerate()}}}),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" 対象のゲート(ゲートID)")])]),e._v(" "),a("v-col",{staticClass:"mt-3"},[e._v(e._s(e.gateid))])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" ゲートを利用する日付")])]),e._v(" "),a("v-col",[a("DatePicker",{on:{input:function(t){return e.getTime(t)}},model:{value:e.dateGate,callback:function(t){e.dateGate=t},expression:"dateGate"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" ゲートを利用する時間")])]),e._v(" "),a("v-col",[a("v-select",{attrs:{items:e.listTime,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:""},model:{value:e.timeGate,callback:function(t){e.timeGate=t},expression:"timeGate"}})],1)],1)],1),e._v(" "),a("v-card-text",[""!==e.gatePassword?a("v-row",{staticClass:"background-color-gray"},[e._v(" "+e._s(e.gatePassword)+" ")]):e._e()],1),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("passwordGenerate",{scorpId:e.timeGate,date:e.dateGate,gateId:e.gateid})}}},[e._v("\n パスワードを発行\n ")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isHandleCommand,callback:function(t){e.isHandleCommand=t},expression:"isHandleCommand"}},[a("v-card",[a("ModalTitle",{attrs:{title:"リモート解錠",className:"background-color-green"},on:{click:function(t){return e.closeHandleCommand()}}}),e._v(" "),a("v-divider"),e._v(" "),""!==e.errorMessageLogsPhone||""!==e.successMessageLogsPhone?a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[""!==e.successMessageLogsPhone?a("v-col",{staticClass:"font-weight-bold bg-success no-bg"},[e._v("\n "+e._s(e.successMessageLogsPhone)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogsPhone?a("v-col",{staticClass:"font-weight-bold bg-error no-bg"},[a("span",{domProps:{innerHTML:e._s(e.errorMessageLogsPhone)}})]):e._e()],1)],1):a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",[e._v("\n "+e._s(e.currentGateName)+"ゲートをリモート解錠します。\n ")])],1)],1),e._v(" "),e.lastLog.length>0?a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v("遠隔解錠登録日時:")])]),e._v(" "),a("v-col",{staticClass:"mt-3 col-5"},[e._v(e._s(e.converDateFull(e.lastLog[0].registered)))])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v("遠隔解錠状況:")])]),e._v(" "),a("v-col",{staticClass:"col-5 mt-3"},[e._v("\n "+e._s(e.converStatus(e.lastLog[0].status))+" "),a("span",{staticClass:"ml-4 icon-refresh",on:{click:function(t){return e.getLastLog()}}},[a("v-icon",[e._v("mdi-replay")])],1)])],1)],1):e._e(),e._v(" "),a("v-divider"),e._v(" "),e.isFinishHandleCommand?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.closeHandleCommand()}}},[e._v("\n OK\n ")])],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.handleCommand()}}},[e._v("\n OK\n ")])],1)],1)],1)],1),e._v(" "),a("gate-import",{attrs:{showModalImport:e.showModalImport,showProgressExportCSV:e.showProgressExportCSV,progressCsvXlsx:e.progressCsvXlsx,errorMessageCsvXlsx:e.errorMessageCsvXlsx,showProgressImport:e.showProgressImport,successItemImport:e.successItemImport,totalDataRowImport:e.totalDataRowImport,errorMessageImport:e.errorMessageImport,isFinishProcess:e.isFinishProcess,sheetUserName:e.sheetUserName,isShowViewCSV:e.isShowViewCSV},on:{clickExportCSV:function(t){return e.$emit("clickExportCSV",t)},closeModalProcessCSV:function(t){return e.$emit("closeModalProcessCSV",t)},closeImportCSV:function(t){return e.$emit("closeImportCSV",t)},clickImportCSV:function(t){return e.$emit("clickImportCSV",t)},closeModalProgressImport:function(t){return e.$emit("closeModalProgressImport",t)},clickCheckBoxExportGateInfoCSV:function(t){return e.$emit("clickCheckBoxExportGateInfoCSV",t)}}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isConfirmAction,callback:function(t){e.isConfirmAction=t},expression:"isConfirmAction"}},[a("v-card",[a("ModalTitle",{attrs:{title:"enable"===e.type?"ゲートを有効化":"ゲートを無効化",className:"background-color-green"},on:{click:function(t){e.isConfirmAction=!1}}}),e._v(" "),a("v-card-text",{staticClass:"pt-5 pb-5"},["enable"===e.type?a("span",[e._v("チェックしたゲートを有効化します。")]):a("span",[e._v("チェックしたゲートを無効化します。")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.confirmAction()}}},[e._v("\n OK\n ")])],1)],1)],1)],1)],1)},lb=[],cb=f["a"].extend({name:"GateListTable",components:{ShowPerPage:mo,SuccessButton:kr,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,UserGateTable:sf,TextLink:No,GroupOfGateTable:hf,Searchbox:$r,ControlPanelDetail:Fh,GateDetailPage:Rh,ActionButton:Nn,ControlPanelAddPage:qf,GateAllListTable:qh,GateLockAddPage:Av,DatePicker:am,GateImport:Uv,GateLockDetailPage:ab,ModalTitle:Xc,ModalLoading:Zg,Modal:bn},props:{inPage:{type:String,default:""},gateTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:100},searchTargetItems:{default:function(){return[]}},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataGates:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageLogs:{type:String,default:""},gateExpanedGroup:{type:Map,default:new Map},gateId:{default:""},gateName:{default:""},isReRenderGroup:{default:0},isRemoveGroupSelected:{default:0},gateExpanedUser:{type:Map,default:new Map},isReRenderUser:{default:0},isRemoveUserSelected:{default:0},safieRelationsGateDevice:{type:Object,default:function(){return{}}},dataRelationGate:{type:Object,default:function(){return{}}},expandData:{type:Object,default:function(){return{}}},authority:{type:Object,default:{}},btnUnlock:{type:Array,default:function(){return[]}},gatePassword:{type:String,default:""},errorMessageLogsPhone:{type:String,default:""},successMessageLogsPhone:{type:String,default:""},lastLog:{type:Array,default:function(){return[]}},isFinishHandleCommand:{type:Boolean,default:!1},showProgressExportCSV:{type:Boolean,default:!1},progressCsvXlsx:{type:Number,default:0},showModalImport:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},successItemImport:{type:Number,default:0},totalDataRowImport:{type:Number,default:0},errorMessageImport:{default:[]},isFinishProcess:{type:Boolean,default:!1},sheetUserName:{type:String,default:""},isShowViewCSV:{type:Boolean,default:!1},errorMessageCsvXlsx:{type:String,default:""},isDisable:{type:Boolean,default:!1}},mounted:function(){"undefined"!==typeof localStorage.displayOptionGate&&(this.selectedDisplayOption=JSON.parse(localStorage.displayOptionGate))},watch:{dataGates:function(e){0===e.length&&(this.dataGatesLoad=[])},isGetDataList:function(e){!1===e&&this.dataGates.length>0&&(this.selectedItem=[],this.dataGatesLoad=this.dataGates,this.expanded=this.dataGates)},selectedDisplayOption:function(e){if(localStorage.setItem("displayOptionGate",JSON.stringify(e)),e.length>8){var t,a=Object(rr["a"])(this.displayOptionItems);try{var s=function(){var a=t.value;void 0===e.find((function(e){return e===a.value}))&&(a.isDisabled=!0)};for(a.s();!(t=a.n()).done;)s()}catch(i){a.e(i)}finally{a.f()}}else{var r,o=Object(rr["a"])(this.displayOptionItems);try{for(o.s();!(r=o.n()).done;){var n=r.value;"controllerName"!==n.value&&"gateName"!==n.value&&(n.isDisabled=!1)}}catch(i){o.e(i)}finally{o.f()}}}},data:function(){return{isControlEdit:!1,isReload:!1,type:"del",showProgress:!1,showGate:!1,isShow:!1,actionItems:[{title:"有効化する",emitName:"click-enable"},{title:"無効化する",emitName:"click-disable"}],expanded:[],selectedItem:[],selectedDisplayOption:["controllerName","gateName"],displayOptionItems:[{label:"制御盤",value:"controllerName",isDisabled:!0},{label:"ゲートID",value:"gateId"},{label:"ゲート名",value:"gateName",isDisabled:!0},{label:"製品ID",value:"gateModelId"},{label:"製品名",value:"gateModelName"},{label:"型番",value:"gateModelCode"},{label:"アイコンタイプ",value:"iconType"},{label:"メーカー番号",value:"makerCode"},{label:"変更有無",value:"customizable"},{label:"ターゲット動作設定",value:"target"},{label:"ターゲット動作設定Time",value:"controlTime"},{label:"ターゲット動作設定TimeUnit",value:"timeUnit"},{label:"ゲート動作モード",value:"isVisitor"},{label:"NFCの有効",value:"isNFCValid"},{label:"テンキーの有効・無効",value:"isTenKeyValid"},{label:"ゲートパスワードの有効・無効",value:"isGatePasswordValid"},{label:"ゲートパスワードの桁数",value:"gatePasswordLength"},{label:"ゲートパスワードのseed値",value:"gatePasswordSeed"},{label:"2段階認証の有効・無効",value:"isTwoStepAuthValid"},{label:"BLE出力設定",value:"bleIntensity"},{label:"ブザー鳴動設定",value:"buzzerPattern"},{label:"位置情報取得",value:"needLocation"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"},{label:"ゲート個体番号1",value:"gateSNMain"},{label:"ゲート個体番号2",value:"gateSNBLE"},{label:"ファームウェアバージョン",value:"gateFWMain"},{label:"ファームウェアバージョン(BLE)",value:"gateFWBLE"},{label:"登録日",value:"registered"},{label:"更新日",value:"updated"},{label:"ゲートへ設定情報を適用した日時",value:"reported"},{label:"個人コード照合データー:最新リビジョン",value:"revisionDesired"},{label:"個人コード照合データー:ゲートへ設定済みのリビジョン",value:"revisionReported"},{label:"電池電圧",value:"voltage"},{label:"電池電圧更新日",value:"scanDate"},{label:"回線番号",value:"controllerGateNo"},{label:"ステータス",value:"isValid"}],selectedUserIds:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataGate,isShowControlPanelDetail:!1,isShowDetailGate:!1,isGateLockModalShow:!1,isAddControlShow:!1,isGateLockAdd:!1,isConfirm:!1,isHandleCommand:!1,isHandleCommandProcess:!1,gateid:"",currentGateName:"",isGatePassword:!1,dataGatesLoad:[],timeGate:1,dateGate:jo()(new Date).format("YYYY-MM-DD"),listTime:[{text:"00:00〜23:59",value:1},{text:"00:00〜11:59",value:2},{text:"12:00〜23:59",value:3},{text:"09:00〜16:59",value:4}],isShowDetailGateLock:!1,isConfirmAction:!1,isValid:!1,selectedIds:[],gateNameHandle:"",isFrom:""}},methods:{customSort:function(e,t,a){return this.selectedItem=[],t&&t.length&&a&&a.length?(console.log(t[0]),e.sort((function(e,s){return"controller.name"===t[0]?a[0]?s.controllerName0?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):"ー"},goDetailControl:function(e){this.isReload=!1,window.localStorage.setItem("controllerId",e),this.isShowControlPanelDetail=!0},goDetailGate:function(e,t){this.isReload=!1,this.gateNameHandle="",this.gateNameHandle=t,window.localStorage.setItem("gateId",e),this.isShowDetailGate=!0},goDetailGateLock:function(e,t){this.isReload=!1,this.gateid=e,this.gateNameHandle="",this.gateNameHandle=t,this.isShowDetailGateLock=!0},goControlEdit:function(e){this.isReload=!1,window.localStorage.setItem("controllerId",e),window.localStorage.setItem("isEditFlag","true"),this.isAddControlShow=!0,this.isControlEdit=!0},goControlAdd:function(e){this.isReload=!1,window.localStorage.setItem("isEditFlag","false"),this.isAddControlShow=!0,this.isControlEdit=!1},safieDeviceLinkTo:function(e){window.open("".concat(Oe,"/").concat(e),"_blank")},closeModal:function(){this.isShowControlPanelDetail=!1,this.isShowDetailGate=!1,this.isAddControlShow=!1,this.isGateLockModalShow=!1,this.isGateLockAdd=!1},deleteBridgeProperty:function(){this.closeModal(),this.isReload&&this.$emit("close-modal-control")},deleteGateLockAddPage:function(){this.closeModal(),!1===this.isShowDetailGateLock&&this.$emit("close-modal-control")},clickGroupDetail:function(e){this.closeModal(),this.$emit("clickGroupDetail",e)},closeModalGate:function(){this.showProgress=!1,this.dataRelationGate.successItem>0&&(this.$emit("close-modal-control"),this.$emit("load-gates",1))},removeGate:function(e){this.type="del",this.showProgress=!0,this.isConfirm=!1,this.$emit("remove-gate",e)},confirmAction:function(){var e="disable"!==this.type;this.showProgress=!0,this.isConfirmAction=!1,this.$emit("confirm-action",{isValid:e,selectedItem:this.selectedItem})},addGate:function(e){this.type="add",this.showProgress=!0,this.$emit("add-gate",e)},loadGate:function(){this.showGate=!0,this.$emit("load-all-gate",1)},openHandleCommand:function(e,t){this.isHandleCommand=!0,this.gateid=e,this.currentGateName=t,this.$emit("openHandleCommand",this.gateid)},closeHandleCommand:function(){this.isHandleCommand=!1},handleCommand:function(){this.$emit("handleCommand",this.gateid)},getGatePassword:function(e){this.dateGate=jo()(new Date).format("YYYY-MM-DD"),this.isGatePassword=!0,this.gateid=e},getTime:function(e){console.log(e),this.dateGate=e},closePasswordGenerate:function(){this.isGatePassword=!1,this.gateid="",this.$emit("closePasswordGenerate")},converDateFull:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD H:mm:ss")},converStatus:function(e){var t="";return 0===e||99===e?t="実行中":1===e?t="解錠成功":2===e&&(t="解錠失敗"),t},getLastLog:function(){this.$emit("getLog",this.gateid)},convertStatus:function(e){return!0===e||1===e?"有効":"無効"},clickEditGateLockFrom:function(e){this.isFrom="detail",this.isControlEdit=!0,this.isGateLockModalShow=!0,this.$emit("clickEditGateLock",e)},clickEditGateLock:function(e){this.isFrom="",this.isControlEdit=!0,this.isGateLockModalShow=!0,this.$emit("clickEditGateLock",e)},closeModalControl:function(e){this.isAddControlShow=!1,"detail"===this.isFrom?(this.isShowDetailGateLock=!0,this.isFrom=""):e&&this.$emit("close-modal-control",e)},controllerSuccess:function(e){this.isReload=e},converTextBLE:function(e){var t="";switch(e){case 0:t="非常に強い";break;case 1:t="とても強い";break;case 2:t="強い";break;case 3:t="やや強い";break;case 4:t="普通";break;case 5:t="やや弱い";break;case 6:t="弱い";break;case 7:t="とても弱い";break;default:t="普通";break}return t},isCheck:function(){return!0===this.showModal||!0===this.isShowControlPanelDetail||!0===this.isShowDetailGate||!0===this.isShowDetailGateLock||!0===this.isAddControlShow||!0===this.isGateLockModalShow||!0===this.showProgress||!0===this.showGate||!0===this.isConfirm||!0===this.isGatePassword||!0===this.isHandleCommand||!0===this.isConfirmAction}},computed:{headers:{get:function(){var e=[{text:"制御盤名",align:"start",sortable:!0,width:"20%",value:"controller.name"}];return this.selectedDisplayOption.includes("gateId")&&e.push({text:"ゲートID",align:"start",sortable:!1,value:"gate.gateId"}),this.selectedDisplayOption.includes("gateName")&&e.push({text:"ゲート名",align:"start",sortable:!0,value:"gate.name"}),this.selectedDisplayOption.includes("gateModelId")&&e.push({text:"製品ID",align:"start",sortable:!1,value:"gate.gateModelId"}),this.selectedDisplayOption.includes("gateModelName")&&e.push({text:"製品名",align:"start",sortable:!1,value:"gate.gateModelName"}),this.selectedDisplayOption.includes("gateModelCode")&&e.push({text:"型番",align:"start",sortable:!1,value:"gate.gateModelCode"}),this.selectedDisplayOption.includes("iconType")&&e.push({text:"アイコンタイプ",align:"start",sortable:!1,value:"gate.iconType"}),this.selectedDisplayOption.includes("makerCode")&&e.push({text:"メーカー番号",align:"start",sortable:!1,value:"gate.makerCode"}),this.selectedDisplayOption.includes("customizable")&&e.push({text:"変更有無",align:"start",sortable:!1,value:"gate.customizable"}),this.selectedDisplayOption.includes("target")&&e.push({text:"ターゲット動作設定",align:"start",sortable:!1,value:"gate.target"}),this.selectedDisplayOption.includes("controlTime")&&e.push({text:"ターゲット動作設定Time",align:"start",sortable:!1,value:"gate.controlTime"}),this.selectedDisplayOption.includes("timeUnit")&&e.push({text:"ターゲット動作設定TimeUnit",align:"start",sortable:!1,value:"gate.timeUnit"}),this.selectedDisplayOption.includes("isVisitor")&&e.push({text:"ゲート動作モード",align:"start",sortable:!1,value:"gate.isVisitor"}),this.selectedDisplayOption.includes("isNFCValid")&&e.push({text:"NFCの有効",align:"start",sortable:!1,value:"gate.isNFCValid"}),this.selectedDisplayOption.includes("isTenKeyValid")&&e.push({text:"テンキーの有効・無効",align:"start",sortable:!1,value:"gate.isTenKeyValid"}),this.selectedDisplayOption.includes("isGatePasswordValid")&&e.push({text:"ゲートパスワードの有効・無効",align:"start",sortable:!1,value:"gate.isGatePasswordValid"}),this.selectedDisplayOption.includes("gatePasswordLength")&&e.push({text:"ゲートパスワードの桁数",align:"start",sortable:!1,value:"gate.gatePasswordLength"}),this.selectedDisplayOption.includes("gatePasswordSeed")&&e.push({text:"ゲートパスワードのseed値",align:"start",sortable:!1,value:"gate.gatePasswordSeed"}),this.selectedDisplayOption.includes("isTwoStepAuthValid")&&e.push({text:"2段階認証の有効・無効",align:"start",sortable:!1,value:"gate.isTwoStepAuthValid"}),this.selectedDisplayOption.includes("bleIntensity")&&e.push({text:"BLE出力設定",align:"start",sortable:!1,value:"gate.bleIntensity"}),this.selectedDisplayOption.includes("buzzerPattern")&&e.push({text:"ブザー鳴動設定",align:"start",sortable:!1,value:"gate.buzzerPattern"}),this.selectedDisplayOption.includes("needLocation")&&e.push({text:"位置情報取得",align:"start",sortable:!1,value:"gate.needLocation"}),this.selectedDisplayOption.includes("option1")&&e.push({text:"備考1",align:"start",sortable:!1,value:"gate.option1"}),this.selectedDisplayOption.includes("option2")&&e.push({text:"備考2",align:"start",sortable:!1,value:"gate.option2"}),this.selectedDisplayOption.includes("gateSNMain")&&e.push({text:"ゲート個体番号1",align:"start",sortable:!1,value:"gate.gateSNMain"}),this.selectedDisplayOption.includes("gateSNBLE")&&e.push({text:"ゲート個体番号2",align:"start",sortable:!1,value:"gate.gateSNBLE"}),this.selectedDisplayOption.includes("gateFWMain")&&e.push({text:"ファームウェアバージョン",align:"start",sortable:!1,value:"gate.gateFWMain"}),this.selectedDisplayOption.includes("gateFWBLE")&&e.push({text:"ファームウェアバージョン(BLE)",align:"start",sortable:!1,value:"gate.gateFWBLE"}),this.selectedDisplayOption.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!1,value:"gate.registered"}),this.selectedDisplayOption.includes("updated")&&e.push({text:"更新日",align:"start",sortable:!1,value:"gate.updated"}),this.selectedDisplayOption.includes("reported")&&e.push({text:"ゲートへ設定情報を適用した日時",align:"start",sortable:!1,value:"gate.reported"}),this.selectedDisplayOption.includes("revisionDesired")&&e.push({text:"個人コード照合データー:最新リビジョン",align:"start",sortable:!1,value:"gate.revisionDesired"}),this.selectedDisplayOption.includes("revisionReported")&&e.push({text:"個人コード照合データー:ゲートへ設定済みのリビジョン",align:"start",sortable:!1,value:"gate.revisionReported"}),this.selectedDisplayOption.includes("voltage")&&e.push({text:"電池電圧",align:"start",sortable:!1,value:"gate.voltage"}),this.selectedDisplayOption.includes("scanDate")&&e.push({text:"電池電圧更新日",align:"start",sortable:!1,value:"gate.scanDate"}),this.selectedDisplayOption.includes("controllerGateNo")&&e.push({text:"回線番号",align:"start",sortable:!1,value:"gate.controllerGateNo"}),this.selectedDisplayOption.includes("status")&&e.push({text:"ステータス",align:"start",sortable:!1,value:"status"}),this.selectedDisplayOption.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!1,value:"gate.isValid"}),e.push({text:"",align:"end",sortable:!1,value:"action-expand"}),e}},innerPage:{get:function(){return this.page},set:function(e){this.expanded=[],this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.expanded=[],this.$emit("change-per-page",e)}},showValid:{get:function(){return this.isValid},set:function(e){this.$emit("get-gate-isValid",e)}}}}),ub=cb,db=(a("aeeb"),a("4bf8"),Object(I["a"])(ub,ib,lb,!1,null,"0944bc03",null)),gb=db.exports;C()(db,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCheckbox:Lr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VList:En["a"],VListItem:On["a"],VListItemTitle:Vn["b"],VMenu:Un["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSelect:_o["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var pb=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-gate-table"},[a("v-container",{staticClass:"tab-gate-log-list"},[a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{md:"4",xl:"3"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search",attrs:{searchTargetItems:e.searchTargetItems,title:"選択項目にチェックして検索",disabled:e.isGetDataList},on:{search:function(t){return e.$emit("search-gate-lock",t)}}})],1)],1)],1)]),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div mr-3",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-1"},[a("v-menu",{attrs:{"open-on-hover":"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"btn-primary"},"v-btn",r,!1),s),[e._v("\n ゲート登録\n ")])]}}])},[e._v(" "),a("v-list",[a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.addGateLock()}}},[a("v-list-item-title",[e._v("ゲート登録")])],1),e._v(" "),a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",!0)}}},[a("v-list-item-title",[e._v("一括登録")])],1)],1)],1)],1)])],1)],1),e._v(" "),""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",{staticClass:"mt-3 border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-8 mb-3",attrs:{"per-page":e.perPageLock,page:e.pageLock,"items-length":e.gateTotalCount}}),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption mr-8",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",{staticClass:"mb-3"},[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),a("v-row",{staticClass:"pt-0 pb-0 mt-0"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.isGetDataList,isVaildOnly:e.isVaildOnly,isVaildOnlyShow:!0},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},input:function(t){return e.CheckColumn(t)}},model:{value:e.selectedDisplayOption,callback:function(t){e.selectedDisplayOption=t},expression:"selectedDisplayOption"}})],1)],1),e._v(" "),a("div",{staticClass:"round-data"},[a("v-data-table",{staticClass:"border-table border-table scroll-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,loading:e.isGetDataList,items:e.dataGates,"items-per-page":e.perPageLock,"item-key":"gateId","no-data-text":"対象ゲートがありません","loading-text":"データを読み込中です","hide-default-footer":"","show-expand":"","single-expand":""},on:{"item-expanded":function(t){return e.$emit("change-expanded-gate-lock",t)}},scopedSlots:e._u([{key:"item.gateName",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.gateName},on:{click:function(t){return e.goDetailGate(s.gateId)}}})]}},{key:"item.gateId",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-id",attrs:{text:s.gateId},on:{click:function(t){return e.goDetailGate(s.gateId)}}})]}},{key:"item.isVisitor",fn:function(t){var s=t.item;return[s.isVisitor?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}},{key:"item.isNFCValid",fn:function(t){var s=t.item;return[s.isNFCValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}},{key:"item.isTenKeyValid",fn:function(t){var s=t.item;return[s.isTenKeyValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}},{key:"item.isGatePasswordValid",fn:function(t){var s=t.item;return[s.isGatePasswordValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}},{key:"item.isTwoStepAuthValid",fn:function(t){var s=t.item;return[s.isTwoStepAuthValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}},{key:"item.needLocation",fn:function(t){var s=t.item;return[s.needLocation?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}},{key:"item.registered",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.converDateTime(s.registered)))])]}},{key:"item.reported",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.converDateTime(s.reported)))])]}},{key:"item.updated",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.converDateTime(s.updated)))])]}},{key:"item.scanDate",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.converDateTime(s.scanDate)))])]}},{key:"item.bleIntensity",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.converTextBLE(s.bleIntensity)))])]}},{key:"item.data-table-expand",fn:function(t){var s=t.expand,r=t.item,o=t.isExpanded;return[a("v-tooltip",{attrs:{bottom:"",disabled:o},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,i=t.attrs;return[a("v-btn",e._g(e._b({attrs:{color:"white",elevation:"0"},on:{click:function(t){e.selectedUserIds=[],s(!o)}}},"v-btn",i,!1),n),[a("span",{staticClass:"mr-5 item-count"},[a("v-icon",[e._v("mdi-account-supervisor")]),e._v("\n "+e._s(r.groupCount)+"\n ")],1),e._v(" "),a("span",{staticClass:"item-count"},[a("v-icon",[e._v("mdi-account")]),e._v("\n "+e._s(r.userCount)+"\n ")],1)])]}}],null,!0)},[e._v(" "),a("span",{staticClass:"text-caption"},[e._v("通行権限グループ一覧を開く")])]),e._v(" "),a("transition",{attrs:{name:"expand-icon"}},[o?a("v-icon",[e._v("mdi-chevron-down")]):e._e()],1)]}},{key:"item.action-expand",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickUpdateValid",{gateId:s.gateId,isValid:!s.isValid})}}},"v-btn",o,!1),r),[s.isValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-lock-check")]):a("v-icon",[e._v("mdi-lock-alert")])],1)]}}],null,!0)},[e._v("\n "+e._s(s.isValid?"有効":"無効")+"\n ")]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditGateLock",s.gateId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲート編集")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:"",disabled:!0===s.isTwoStepAuthValid||!0===s.isVisitor||91===s.makerCode},on:{click:function(t){return e.openHandleCommand(s.gateId,s.gateName)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-lock-open-variant-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("リモート解錠")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"button-gate-lock",attrs:{icon:"",disabled:!s.isGatePasswordValid||!s.isValid},on:{click:function(t){return e.getGatePassword(s.gateId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-arrow-horizontal-lock")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("ゲートパスワード取得")])])]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{attrs:{colspan:s.length}},[a("group-of-gate-table",{attrs:{gateExpanedGroup:e.gateExpanedGroup,gateId:r.gateId,isReRenderGroup:e.isReRenderGroup,isRemoveGroupSelected:e.isRemoveGroupSelected,gateExpanedUser:e.gateExpanedUser,isReRenderUser:e.isReRenderUser,isRemoveUserSelected:e.isRemoveUserSelected},on:{"change-page-group":function(t){return e.$emit("change-page-group",t)},clickConfirm:function(t){return e.$emit("clickConfirm",t)},"change-expanded-group":function(t){return e.$emit("change-expanded-group",t)},"change-page-user":function(t){return e.$emit("change-page-user",t)}}})],1)]}},{key:"item.status",fn:function(t){var s=t.item;return[!1===s.controller.connectionStatus?a("span",[e._v("通信エラー発生")]):!0===s.controller.connectionStatus&&1===s.controller.commandStatus?a("span",[e._v("コマンド送信待ち")]):!0===s.controller.connectionStatus&&2===s.controller.commandStatus?a("span",[e._v("設定反映中")]):!0===s.controller.connectionStatus&&3===s.controller.commandStatus?a("span",[e._v("設定エラー発生")]):e._e()]}},{key:"item.isValid",fn:function(t){var s=t.item;return[s.isValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}})],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.pageLock,"per-page-items":[25,50,100,1e3],"items-length":e.gateTotalCount,disabled:e.isGetDataList},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.gateTotalCount/e.perPageLock),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(" リモート解錠 ")]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[""===e.successMessageModal&&""===e.errorMessageModal?a("v-col",[e._v("\n "+e._s(e.gateName)+"ゲートをリモート解錠します。\n ")]):e._e(),e._v(" "),""!==e.successMessageModal?a("v-col",{staticClass:"font-weight-bold bg-success no-bg"},[e._v("\n "+e._s(e.successMessageModal)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageModal?a("v-col",{staticClass:"font-weight-bold bg-error no-bg",domProps:{innerHTML:e._s(e.errorMessageModal)}}):e._e()],1)],1),e._v(" "),a("v-divider"),e._v(" "),""===e.errorMessageModal&&""===e.successMessageModal?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalUnClock")}}},[e._v("\n キャンセル\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickRemoteUnlock")}}},[e._v("\n OK\n ")])],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalUnClock")}}},[e._v("\n OK\n ")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isGatePassword,callback:function(t){e.isGatePassword=t},expression:"isGatePassword"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(" ゲートパスワードの取得 ")]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" 対象のゲート(ゲートID)")])]),e._v(" "),a("v-col",{staticClass:"mt-3"},[e._v(e._s(e.gateid))])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" ゲートを利用する日付")])]),e._v(" "),a("v-col",[a("DatePicker",{on:{input:function(t){return e.getTime(t)}},model:{value:e.dateGate,callback:function(t){e.dateGate=t},expression:"dateGate"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" ゲートを利用する時間")])]),e._v(" "),a("v-col",[a("v-select",{attrs:{items:e.listTime,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"","no-data-text":""},model:{value:e.timeGate,callback:function(t){e.timeGate=t},expression:"timeGate"}})],1)],1)],1),e._v(" "),a("v-card-text",[""!==e.gatePassword?a("v-row",{staticClass:"background-color-gray"},[a("div",{domProps:{innerHTML:e._s(e.gatePassword)}})]):e._e()],1),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.closePasswordGenerate()}}},[e._v("\n キャンセル\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("passwordGenerate",{scorpId:e.timeGate,date:e.dateGate,gateId:e.gateid})}}},[e._v("\n パスワードを発行\n ")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isHandleCommand,callback:function(t){e.isHandleCommand=t},expression:"isHandleCommand"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("リモート解錠")]),e._v(" "),a("v-divider"),e._v(" "),""!==e.errorMessageLogsPhone?a("div",{staticClass:"bg-error m5 col",domProps:{innerHTML:e._s(e.errorMessageLogsPhone)}}):e._e(),e._v(" "),""!==e.successMessageLogsPhone?a("div",{staticClass:"bg-success m5 col",domProps:{innerHTML:e._s(e.successMessageLogsPhone)}}):e._e(),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",[e._v("\n "+e._s(e.currentGateName)+"ゲートをリモート解錠します。\n ")])],1)],1),e._v(" "),e.lastLog.length>0?a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v("遠隔解錠登録日時:")])]),e._v(" "),a("v-col",{staticClass:"mt-3 col-5"},[e._v(e._s(e.converDateFull(e.lastLog[0].registered)))])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-5"},[a("div",{staticClass:"v-subheader theme--light"},[e._v("遠隔解錠状況:")])]),e._v(" "),a("v-col",{staticClass:"col-5 mt-3"},[e._v("\n "+e._s(e.converStatus(e.lastLog[0].status))+" "),a("span",{staticClass:"ml-4 icon-refresh",on:{click:function(t){return e.getLastLog()}}},[a("v-icon",[e._v("mdi-replay")])],1)])],1)],1):e._e(),e._v(" "),a("v-divider"),e._v(" "),e.isFinishHandleCommand?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.closeHandleCommand()}}},[e._v("\n OK\n ")])],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.closeHandleCommand()}}},[e._v("\n キャンセル\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.handleCommand()}}},[e._v("\n はい\n ")])],1)],1)],1)],1)],1),e._v(" "),a("gate-import",{attrs:{showModalImport:e.showModalImport,showProgressExportCSV:e.showProgressExportCSV,progressCsvXlsx:e.progressCsvXlsx,errorMessageCsvXlsx:e.errorMessageCsvXlsx,showProgressImport:e.showProgressImport,successItemImport:e.successItemImport,totalDataRowImport:e.totalDataRowImport,errorMessageImport:e.errorMessageImport,isFinishProcess:e.isFinishProcess,sheetUserName:e.sheetUserName,isShowViewCSV:e.isShowViewCSV},on:{clickExportCSV:function(t){return e.$emit("clickExportCSV",t)},closeModalProcessCSV:function(t){return e.$emit("closeModalProcessCSV",t)},closeImportCSV:function(t){return e.$emit("closeImportCSV",t)},clickImportCSV:function(t){return e.$emit("clickImportCSV",t)},closeModalProgressImport:function(t){return e.$emit("closeModalProgressImport",t)},clickCheckBoxExportGateInfoCSV:function(t){return e.$emit("clickCheckBoxExportGateInfoCSV",t)}}})],1)},mb=[],fb=f["a"].extend({name:"GateListTable",components:{ShowPerPage:mo,SuccessButton:kr,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,UserGateTable:sf,TextLink:No,GroupOfGateTable:hf,Searchbox:$r,GateImport:Uv,GroupOfGateLockTable:gv,UserOfGateLockTable:nv,DatePicker:am},props:{gateTotalCount:{type:Number,default:0},pageLock:{type:Number,default:1},perPageLock:{type:Number,default:100},searchTargetItems:{default:function(){return[]}},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},isFinishHandleCommand:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataGates:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageLogs:{type:String,default:""},gateExpanedGroup:{type:Map,default:new Map},gateLockExpanedGroup:{type:Map,default:new Map},gateLockExpanedUser:{type:Map,default:new Map},gateId:{default:""},gateName:{default:""},isReRenderGroup:{default:0},isRemoveGroupSelected:{default:0},gateExpanedUser:{type:Map,default:new Map},isReRenderUser:{default:0},isRemoveUserSelected:{default:0},showProgressExportCSV:{type:Boolean,default:!1},progressCsvXlsx:{type:Number,default:0},showModalImport:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},successItemImport:{type:Number,default:0},totalDataRowImport:{type:Number,default:0},errorMessageImport:{default:[]},isFinishProcess:{type:Boolean,default:!1},sheetUserName:{type:String,default:""},isShowViewCSV:{type:Boolean,default:!1},errorMessageCsvXlsx:{type:String,default:""},showProgressUser:{type:Boolean,default:!1},progressUser:{type:Number,default:0},isFinishProcessUser:{type:Boolean,default:!1},userTotalCountDel:{type:Number,default:0},totalDataRowProcessUser:{type:Number,default:0},successItemProcessUser:{type:Number,default:0},errorMessageProcessUser:{type:Array,default:function(){return[]}},lastLog:{type:Array,default:function(){return[]}},showProgressGroup:{type:Boolean,default:!1},progressGroup:{type:Number,default:0},isFinishProcessGroup:{type:Boolean,default:!1},groupTotalCountDel:{type:Number,default:0},totalDataRowProcessGroup:{type:Number,default:0},successItemProcessGroup:{type:Number,default:0},errorMessageProcessGroup:{type:Array,default:function(){return[]}},gatePassword:{type:String,default:""},errorMessageLogsPhone:{type:String,default:""},successMessageLogsPhone:{type:String,default:""},btnUnlock:{type:Array,default:function(){return[]}}},mounted:function(){"undefined"!==typeof localStorage.displayOptionGate&&(this.selectedDisplayOption=JSON.parse(localStorage.displayOptionGate))},watch:{selectedDisplayOption:function(e){if(localStorage.setItem("displayOptionGate",JSON.stringify(e)),e.length>8){var t,a=Object(rr["a"])(this.displayOptionItems);try{var s=function(){var a=t.value;void 0===e.find((function(e){return e===a.value}))&&(a.isDisabled=!0)};for(a.s();!(t=a.n()).done;)s()}catch(i){a.e(i)}finally{a.f()}}else{var r,o=Object(rr["a"])(this.displayOptionItems);try{for(o.s();!(r=o.n()).done;){var n=r.value;"controllerName"!==n.value&&(n.isDisabled=!1)}}catch(i){o.e(i)}finally{o.f()}}}},data:function(){return{selectedItem:[],selectedDisplayOption:["controllerName","gateName","isValid"],displayOptionItems:[{label:"ゲートID",value:"gateId",isDisabled:!0},{label:"製品ID",value:"gateModelId"},{label:"製品名",value:"gateModelName"},{label:"型番",value:"gateModelCode"},{label:"アイコンタイプ",value:"iconType"},{label:"メーカー番号",value:"makerCode"},{label:"変更有無",value:"customizable"},{label:"ターゲット動作設定",value:"target"},{label:"ターゲット動作設定Time",value:"controlTime"},{label:"ターゲット動作設定TimeUnit",value:"timeUnit"},{label:"ゲート名",value:"gateName"},{label:"ゲート動作モード",value:"isVisitor"},{label:"NFCの有効",value:"isNFCValid"},{label:"テンキーの有効・無効",value:"isTenKeyValid"},{label:"ゲートパスワードの有効・無効",value:"isGatePasswordValid"},{label:"ゲートパスワードの桁数",value:"gatePasswordLength"},{label:"ゲートパスワードのseed値",value:"gatePasswordSeed"},{label:"2段階認証の有効・無効",value:"isTwoStepAuthValid"},{label:"BLE出力設定",value:"bleIntensity"},{label:"ブザー鳴動設定",value:"buzzerPattern"},{label:"位置情報取得",value:"needLocation"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"},{label:"ゲート個体番号1",value:"gateSNMain"},{label:"ゲート個体番号2",value:"gateSNBLE"},{label:"適用されているファームウェアバージョン(メインボード)",value:"gateFWMain"},{label:"適用されているファームウェアバージョン(BLE)",value:"gateFWBLE"},{label:"登録日",value:"registered"},{label:"更新日",value:"updated"},{label:"ゲートへ設定情報を適用した日時",value:"reported"},{label:"個人コード照合データー:最新リビジョン",value:"revisionDesired"},{label:"個人コード照合データー:ゲートへ設定済みのリビジョン",value:"revisionReported"},{label:"電池電圧",value:"voltage"},{label:"電池電圧更新日",value:"scanDate"},{label:"ステータス",value:"isValid"}],selectedUserIds:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataGate,isShowConfirmUser:!1,isShowConfirmGroup:!1,isGatePassword:!1,selectUser:[],selectGroup:[],listTime:[{text:"00:00〜23:59",value:1},{text:"00:00〜11:59",value:2},{text:"12:00〜23:59",value:3},{text:"09:00〜16:59",value:4}],timeGate:1,dateGate:jo()(new Date).format("YYYY-MM-DD"),gateid:"",isHandleCommand:!1,isHandleCommandProcess:!1,currentGateName:""}},methods:{getLastLog:function(){this.$emit("getLog",this.gateid)},openHandleCommand:function(e,t){this.isHandleCommand=!0,this.gateid=e,this.currentGateName=t,this.$emit("openHandleCommand",this.gateid)},closeHandleCommand:function(){this.isHandleCommand=!1,this.gateid="",this.currentGateName=""},handleCommand:function(){this.$emit("handleCommand",this.gateid)},converDateFull:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD H:mm:ss")},converStatus:function(e){var t="";return 0===e||99===e?t="実行中":1===e?t="解錠成功":2===e&&(t="解錠失敗"),t},getTime:function(e){console.log(e),this.dateGate=e},getGatePassword:function(e){this.dateGate=jo()(new Date).format("YYYY-MM-DD"),this.isGatePassword=!0,this.gateid=e},closePasswordGenerate:function(e){this.isGatePassword=!1,this.gateid="",this.$emit("closePasswordGenerate")},clickRemoveUser:function(e){this.isShowConfirmUser=!1,this.$emit("clickRemoveUser",e)},clickRemoveGroup:function(e){this.isShowConfirmGroup=!1,this.$emit("clickRemoveGroup",e)},getSelectUser:function(e){this.selectUser=e},getSelectGroup:function(e){this.selectGroup=e},addGateLock:function(e){console.log("AAA"),this.$router.push({path:lt})},addUser:function(e){this.$router.push({path:nt,query:{gateId:e,goBack:"gate-lock"}})},addGroup:function(e){this.$router.push({path:it,query:{gateId:e,goBack:"gate-lock"}})},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return"gateId"===t[0]?a[0]?s.gateId0?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):"ー"},goDetailGate:function(e){this.$router.push({path:ut,query:{gateId:e}})}},computed:{headers:{get:function(){var e=[{text:"ゲートID",align:"start",sortable:!0,value:"gateId"}];return this.selectedDisplayOption.includes("gateModelId")&&e.push({text:"製品ID",align:"start",sortable:!0,value:"gateModelId"}),this.selectedDisplayOption.includes("gateModelName")&&e.push({text:"製品名",align:"start",sortable:!0,value:"gateModelName"}),this.selectedDisplayOption.includes("gateModelCode")&&e.push({text:"型番",align:"start",sortable:!0,value:"gateModelCode"}),this.selectedDisplayOption.includes("iconType")&&e.push({text:"アイコンタイプ",align:"start",sortable:!0,value:"iconType"}),this.selectedDisplayOption.includes("makerCode")&&e.push({text:"メーカー番号",align:"start",sortable:!0,value:"makerCode"}),this.selectedDisplayOption.includes("customizable")&&e.push({text:"変更有無",align:"start",sortable:!0,value:"customizable"}),this.selectedDisplayOption.includes("target")&&e.push({text:"ターゲット動作設定",align:"start",sortable:!0,value:"target"}),this.selectedDisplayOption.includes("controlTime")&&e.push({text:"ターゲット動作設定Time",align:"start",sortable:!0,value:"controlTime"}),this.selectedDisplayOption.includes("timeUnit")&&e.push({text:"ターゲット動作設定TimeUnit",align:"start",sortable:!0,value:"timeUnit"}),this.selectedDisplayOption.includes("gateName")&&e.push({text:"ゲート名",align:"start",sortable:!0,value:"gateName"}),this.selectedDisplayOption.includes("isVisitor")&&e.push({text:"ゲート動作モード",align:"start",sortable:!0,value:"isVisitor"}),this.selectedDisplayOption.includes("isNFCValid")&&e.push({text:"NFCの有効",align:"start",sortable:!0,value:"isNFCValid"}),this.selectedDisplayOption.includes("isTenKeyValid")&&e.push({text:"テンキーの有効・無効",align:"start",sortable:!0,value:"isTenKeyValid"}),this.selectedDisplayOption.includes("isGatePasswordValid")&&e.push({text:"ゲートパスワードの有効・無効",align:"start",sortable:!0,value:"isGatePasswordValid"}),this.selectedDisplayOption.includes("gatePasswordLength")&&e.push({text:"ゲートパスワードの桁数",align:"start",sortable:!0,value:"gatePasswordLength"}),this.selectedDisplayOption.includes("gatePasswordSeed")&&e.push({text:"ゲートパスワードのseed値",align:"start",sortable:!0,value:"gatePasswordSeed"}),this.selectedDisplayOption.includes("isTwoStepAuthValid")&&e.push({text:"2段階認証の有効・無効",align:"start",sortable:!0,value:"isTwoStepAuthValid"}),this.selectedDisplayOption.includes("bleIntensity")&&e.push({text:"BLE出力設定",align:"start",sortable:!0,value:"bleIntensity"}),this.selectedDisplayOption.includes("buzzerPattern")&&e.push({text:"ブザー鳴動設定",align:"start",sortable:!0,value:"buzzerPattern"}),this.selectedDisplayOption.includes("needLocation")&&e.push({text:"位置情報取得",align:"start",sortable:!0,value:"needLocation"}),this.selectedDisplayOption.includes("option1")&&e.push({text:"備考1",align:"start",sortable:!0,value:"option1"}),this.selectedDisplayOption.includes("option2")&&e.push({text:"備考2",align:"start",sortable:!0,value:"option2"}),this.selectedDisplayOption.includes("gateSNMain")&&e.push({text:"ゲート個体番号1",align:"start",sortable:!0,value:"gateSNMain"}),this.selectedDisplayOption.includes("gateSNBLE")&&e.push({text:"ゲート個体番号2",align:"start",sortable:!0,value:"gateSNBLE"}),this.selectedDisplayOption.includes("gateFWMain")&&e.push({text:"適用されているファームウェアバージョン(メインボード)",align:"start",sortable:!0,value:"gateFWMain"}),this.selectedDisplayOption.includes("gateFWBLE")&&e.push({text:"適用されているファームウェアバージョン(BLE)",align:"start",sortable:!0,value:"gateFWBLE"}),this.selectedDisplayOption.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!0,value:"registered"}),this.selectedDisplayOption.includes("updated")&&e.push({text:"更新日",align:"start",sortable:!0,value:"updated"}),this.selectedDisplayOption.includes("reported")&&e.push({text:"ゲートへ設定情報を適用した日時",align:"start",sortable:!0,value:"reported"}),this.selectedDisplayOption.includes("revisionDesired")&&e.push({text:"個人コード照合データー:最新リビジョン",align:"start",sortable:!0,value:"revisionDesired"}),this.selectedDisplayOption.includes("revisionReported")&&e.push({text:"個人コード照合データー:ゲートへ設定済みのリビジョン",align:"start",sortable:!0,value:"revisionReported"}),this.selectedDisplayOption.includes("voltage")&&e.push({text:"電池電圧",align:"start",sortable:!0,value:"voltage"}),this.selectedDisplayOption.includes("scanDate")&&e.push({text:"電池電圧更新日",align:"start",sortable:!0,value:"scanDate"}),this.selectedDisplayOption.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!0,value:"isValid"}),e.push({text:" 通行権限グループ/ユーザー数",align:"center",sortable:!1,width:"220px",value:"data-table-expand"}),e.push({text:"",align:"start",sortable:!1,value:"action-expand"}),e}},innerPage:{get:function(){return this.pageLock},set:function(e){this.$emit("change-page-lock",e)}},innerPerPage:{get:function(){return this.perPageLock},set:function(e){this.$emit("change-per-page-lock",e)}}}}),hb=fb,vb=(a("73a6"),a("f500"),Object(I["a"])(hb,pb,mb,!1,null,"3c25fb73",null)),bb=vb.exports;C()(vb,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VList:En["a"],VListItem:On["a"],VListItemTitle:Vn["b"],VMenu:Un["a"],VRow:Kr["a"],VSelect:_o["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var yb=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-progress-modal"},[a("v-dialog",{attrs:{scrollable:"",persistent:"",width:"600"},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[e.isShort?a("v-card",{class:e.isClass},[a("v-card-title",{staticClass:"modal-title",attrs:{color:"green"}},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e._v("\n 出力処理\n "),e.finished?a("v-icon",{on:{click:function(t){e.innerValue=!1}}},[e._v("\n mdi-close\n ")]):e._e()],1)],1),e._v(" "),a("v-card-text",{staticClass:"overflow-y-auto"},[e._v("\n "+e._s(e.title)+"\n "),""===e.message?a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.totalCount)+"件中"+e._s(e.finishedCount)+"件の処理が完了しました。")])]):a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.message))])]),e._v(" "),a("v-progress-linear",{attrs:{value:e.percent,color:"green",height:"40",striped:!e.finished,indeterminate:e.indeterminate},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.value;return[e.showPercentage?a("strong",[e._v(e._s(s)+"%")]):e._e()]}}],null,!1,1280848095)}),e._v(" "),e.errorCount>0||""!==e.errorMessage?a("v-alert",{staticClass:"mt-4",attrs:{type:"error",text:""}},[""===e.errorMessage?a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.errorCount)+"件の処理に失敗しました。")])]):a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.errorMessage))])]),e._v(" "),a("ul",e._l(e.errorContents,(function(t,s){return a("li",{key:s},[e._v("\n "+e._s(t)+"\n ")])})),0)]):e._e()],1),e._v(" "),e.finished?a("v-card-actions",[a("v-spacer"),e._v(" "),a("cancel-button",{attrs:{text:"閉じる"},on:{click:function(t){e.innerValue=!1}}})],1):e._e()],1):a("v-card",{class:e.isClass},[a("v-card-title",{staticClass:"modal-title",attrs:{color:"green"}},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e._v("\n "+e._s(e.title)+"\n "),e.finished?a("v-icon",{on:{click:function(t){e.innerValue=!1}}},[e._v("\n mdi-close\n ")]):e._e()],1)],1),e._v(" "),a("v-card-text",{staticClass:"overflow-y-auto"},[""===e.message?a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.totalCount)+"件中"+e._s(e.finishedCount)+"件の処理が完了しました。")])]):a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.message))])]),e._v(" "),a("v-progress-linear",{attrs:{value:e.percent,color:"green",height:"40",striped:!e.finished,indeterminate:e.indeterminate},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.value;return[e.showPercentage?a("strong",[e._v(e._s(s)+"%")]):e._e()]}}])}),e._v(" "),e.errorCount>0||""!==e.errorMessage?a("v-alert",{staticClass:"mt-4",attrs:{type:"error",text:""}},[""===e.errorMessage?a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.errorCount)+"件の処理に失敗しました。")])]):a("div",[a("p",{staticClass:"font-weight-bold"},[e._v(e._s(e.errorMessage))])]),e._v(" "),a("ul",e._l(e.errorContents,(function(t,s){return a("li",{key:s},[e._v("\n "+e._s(t)+"\n ")])})),0)]):e._e()],1),e._v(" "),e.finished?a("v-card-actions",[a("v-spacer"),e._v(" "),a("cancel-button",{attrs:{text:"閉じる"},on:{click:function(t){e.innerValue=!1}}})],1):e._e()],1)],1)],1)},Ib=[],xb=f["a"].extend({name:"Modal",components:{CancelButton:fr},props:{value:{type:Boolean,default:!1},title:{type:String,default:"処理中です......."},totalCount:{type:Number,default:0},finishedCount:{type:Number,default:0},showPercentage:{type:Boolean,default:!0},indeterminate:{type:Boolean,default:!1},message:{type:String,default:""},errorCount:{type:Number,default:0},errorMessage:{type:String,default:""},errorContents:{type:Array,default:function(){return[]}},isShort:{type:Boolean,default:!1},isClass:{type:String,default:""}},computed:{innerValue:{get:function(){return this.value},set:function(e){!1===e&&this.$emit("close"),this.$emit("input",e)}},percent:{get:function(){return this.totalCount<=this.finishedCount||0===this.totalCount?100:Math.floor(this.finishedCount/this.totalCount*100)}},finished:{get:function(){return this.totalCount===this.finishedCount}}}}),Cb=xb,wb=Object(I["a"])(Cb,yb,Ib,!1,null,null,null),kb=wb.exports;C()(wb,{VAlert:Tu["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VDialog:hn["a"],VIcon:Gr["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var Sb=f["a"].extend({name:"GateListTemplate",components:{Searchbox:$r,ShowPerPage:mo,IconButton:td,Pagination:xo,GateListTable:gb,Breadcrumbs:cn,GateListLockTable:bb,ReflectionStatusListPage:op,GateEditPage:Sh,ControlPanelDetailPage:Fh,GateListTableModal:nb,ModalTitle:Xc,ProgressModal:kb,Modal:bn,SuccessButton:kr},props:{lastLog:{type:Array,default:function(){return[]}},inPage:{type:String,default:""},btnUnlock:{type:Array,default:function(){return[]}},goBack:{type:String,default:""},cardTotalCount:{type:Number,default:0},loading:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},isFinishHandleCommand:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!1},totalDataRowProcess:{type:Number,default:0},successItemProcess:{type:Number,default:0},progress:{type:Number,default:0},perPage:{type:Number,default:25},perPageLock:{type:Number,default:25},page:{type:Number,default:1},pageLock:{type:Number,default:1},gateTotalCount:{type:Number,default:0},disablePagination:{type:Boolean,default:!1},dataGates:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},gateName:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageProcess:{default:[]},gateExpanedGroup:{type:Map,default:new Map},isReRenderGroup:{default:0},isRemoveGroupSelected:{default:0},gateExpanedUser:{type:Map,default:new Map},gateLockExpanedGroup:{type:Map,default:new Map},gateLockExpanedUser:{type:Map,default:new Map},isReRenderUser:{default:0},isRemoveUserSelected:{default:0},typeAction:{default:0},safieRelationsGateDevice:{type:Object,default:function(){return{}}},gateTotalCountLock:{type:Number,default:0},isGetDataListLock:{type:Boolean,default:!1},isAdminOfRemoteUnlock:{type:Boolean,default:!1},isAdminOfUnlockingTimeSetting:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataGatesLock:{type:Array,default:function(){return[]}},showProgressExportCSV:{type:Boolean,default:!1},progressCsvXlsx:{type:Number,default:0},showModalImport:{type:Boolean,default:!1},showProgressImport:{type:Boolean,default:!1},successItemImport:{type:Number,default:0},totalDataRowImport:{type:Number,default:0},errorMessageImport:{default:[]},sheetUserName:{type:String,default:""},isShowViewCSV:{type:Boolean,default:!1},errorMessageCsvXlsx:{type:String,default:""},showProgressUser:{type:Boolean,default:!1},progressUser:{type:Number,default:0},isFinishProcessUser:{type:Boolean,default:!1},userTotalCountDel:{type:Number,default:0},totalDataRowProcessUser:{type:Number,default:0},successItemProcessUser:{type:Number,default:0},errorMessageProcessUser:{type:Array,default:function(){return[]}},showProgressGroup:{type:Boolean,default:!1},progressGroup:{type:Number,default:0},isFinishProcessGroup:{type:Boolean,default:!1},gatePassword:{type:String,default:""},groupTotalCountDel:{type:Number,default:0},totalDataRowProcessGroup:{type:Number,default:0},successItemProcessGroup:{type:Number,default:0},errorMessageProcessGroup:{type:Array,default:function(){return[]}},errorMessageLogsPhone:{type:String,default:""},successMessageLogsPhone:{type:String,default:""},actionUpdateValidLock:{type:Number,default:0},showConfirmUpdateValidLock:{type:Boolean,default:!1},showProgressUpdateValidLock:{type:Boolean,default:!1},totalDataRowProcessUpdateValidLock:{type:Number,default:0},successItemProcessUpdateValidLock:{type:Number,default:0},progressUpdateValidLock:{type:Number,default:0},errorMessageProcessUpdateValidLock:{default:[]},isFinishProcessUpdateValidLock:{type:Boolean,default:!1},isReflectionStatusListModalShow:{type:Boolean,default:!1},isGateEditModalShow:{type:Boolean,default:!1},isGateLockModalShow:{type:Boolean,default:!1},dataRelationGate:{type:Object,default:function(){return{}}},expandData:{type:Object,default:function(){return{}}},authority:{type:Object,default:{}}},data:function(){return{searchTargetItems:[{label:"制御盤名",value:"controller.name"},{label:"ゲートID",value:"gate.gateId"},{label:"ゲート名",value:"gate.gateName"},{label:"備考1",value:"gate.option1"},{label:"備考2",value:"gate.option2"}],selectedItem:[],searchTargetItemsLock:[{label:"ゲートID",value:"gateId"},{label:"ゲート名",value:"gateName"},{label:"備考.1",value:"option1"},{label:"備考.2",value:"option2"}],tab:0,actionItems:[{title:"Alligate Lock Pro",tabname:"tab1"},{title:"Alligate Lock",tabname:"tab2"}],isReloadData:!1}},methods:{clickGoController:function(){this.$router.push({path:"control-panel/add",query:{goBack:"gates"}})},deleteBridgeProperty:function(){this.$emit("ChangeProperty"),this.$emit("close-modal-control",this.isReloadData)},isCheck:function(){return!0===this.showConfirmUpdateValidLock||!0===this.showProgressUpdateValidLock||!0===this.showConfirm||!0===this.showProgress||!0===this.isReflectionStatusListModalShow||!0===this.isGateEditModalShow},getReload:function(e){this.isReloadData=e}},mounted:function(){void 0!==this.$route.query.goBack&&"gate-lock"===this.$route.query.goBack&&(this.tab=1)},computed:{breadcrumbs:{get:function(){return[{text:"ゲート",disabled:!0}]}},isReflection:{get:function(){return this.isReflectionStatusListModalShow},set:function(e){!1===e&&this.$emit("ChangeProperty")}},isGateEdit:{get:function(){return this.isGateEditModalShow},set:function(e){!1===e&&this.$emit("ChangeProperty")}}}}),_b=Sb,Pb=(a("1ae0"),Object(I["a"])(_b,qm,Wm,!1,null,"2dc37e10",null)),Mb=Pb.exports;C()(Pb,{VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var Lb=nr["a"].extend({name:"GateListPage",components:{GateListTemplate:Mb},props:{inPage:{type:String,default:""},isAdminOfRemoteUnlock:{type:Boolean,default:!1},isAdminOfUnlockingTimeSetting:{type:Boolean,default:!1},groupId:{type:String,default:""}},data:function(){return{perPage:Wt,perPageLock:Wt,currPage:1,scorp:["gateId"],keyword:"",gateTotalCount:0,dataGates:[],dataGatesLock:[],loading:!1,errorMessageLogs:"",successMessageLogs:"",gateId:"",gateName:"",rowinErrDialog:0,successItemProcess:0,progress:0,showProgress:!1,isFinishProcess:!1,showConfirm:!1,isGetDataList:!1,totalDataRowProcess:0,errorMessageProcess:[],userIds:[],gateExpanedGroup:new Map,gateLockExpanedGroup:new Map,gateLockExpanedUser:new Map,isReRenderGroup:0,isRemoveGroupSelected:0,gateExpanedUser:new Map,isReRenderUser:0,isRemoveUserSelected:0,typeAction:0,dataAction:{},selectedIdAction:"",successMessageModal:"",errorMessageModal:"",showModal:!1,safieRelationsGateDevice:{},isGetDataListLock:!1,currPageLock:1,keywordLock:"",gateTotalCountLock:0,showProgressExportCSV:!1,errorMessageCsvXlsx:"",isExportGateInfoCSV:!1,showModalImport:!1,showProgressImport:!1,progressCsvXlsx:0,isShowViewCSV:!1,successItemImport:0,totalDataRowImport:0,percentProcess:0,errorMessageImport:[],isLoading:!1,dataImport:[],sheetUserName:"",maxPagePcode:0,exportDataCSV:[],isFinishProcessEnable:!1,userOfGate:[],isShowConfirmUser:!1,showProgressUser:!1,userTotalCountDel:0,totalDataRowProcessUser:0,progressUser:0,successItemProcessUser:0,errorMessageProcessUser:[],isFinishProcessUser:!1,isShowConfirmGroup:!1,showProgressGroup:!1,groupTotalCountDel:0,totalDataRowProcessGroup:0,progressGroup:0,successItemProcessGroup:0,errorMessageProcessGroup:[],exportGateLockData:[],isFinishProcessGroup:!1,percentGateLock:0,gateLockLoad:0,totalCSV:0,exeCountCSV:0,gatePassword:"",listGateGroupCube:{},btnUnlock:[],groupPassages:[],listPhoneCubes:[],errorMessageLogsPhone:"",successMessageLogsPhone:"",listPhones:[],listPhonesNoConnect:[],listPhoneRSSI:[],sequentialNo:"",currentGateId:"",lastLog:[],isFinishHandleCommand:!1,showConfirmUpdateValidLock:!1,actionUpdateValidLock:0,dataUpdateValid:{},showProgressUpdateValidLock:!1,totalDataRowProcessUpdateValidLock:0,successItemProcessUpdateValidLock:0,progressUpdateValidLock:0,errorMessageProcessUpdateValidLock:[],isFinishProcessUpdateValidLock:!1,isReflectionStatusListModalShow:!1,isGateEditModalShow:!1,isGateLockModalShow:!1,dataRelationGate:{totalDataRowProcess:0,progress:0,successItemProcess:"",errorMessageProcess:[],isFinishProcess:!1},expandData:{gateAll:{data:[],total:0,loading:!1,page:1,perPage:25}},authority:er.state.auth,isLoadData:!1}},mounted:function(){this.$emit("activeMenu","gates"),"no-id"!==this.groupId&&(this.loading=!0)},watch:{loading:function(e){this.$emit("loading",e)},isGetDataList:function(e){"no-id"!==this.groupId&&this.$emit("loading",e)},gateLockLoad:function(e,t){e>=this.totalCSV?(this.downloadCSV(),this.isFinishProcess=!0):e>0&&this.getExportGateLockData(e+1)},exeCountCSV:function(e,t){if(console.log(this.totalDataRowImport),console.log(e),e>0&&e0?this.editExe(a):this.addExe(a)}else e>0&&e===this.totalDataRowImport&&(this.isFinishProcess=!0,this.exeCountCSV=0,this.dataImport=[])}},created:function(){localStorage.setItem("isVaildDataGate","true"),"undefined"===typeof localStorage.gateSortKey&&localStorage.setItem("gateSortKey","registered"),"undefined"===typeof localStorage.gateSortName&&localStorage.setItem("gateSortName","desc"),"undefined"===typeof localStorage.pageSizeGate?(localStorage.setItem("pageSizeGate",Wt.toString()),this.perPage=Wt):this.perPage=parseInt(localStorage.pageSizeGate),"undefined"===typeof localStorage.pageSizeGateLock?(localStorage.setItem("pageSizeGateLock",Wt.toString()),this.perPageLock=Wt):this.perPageLock=parseInt(localStorage.pageSizeGateLock),localStorage.setItem("isVaildGate","true"),this.getSafieRelationGateDevice(1),this.perPage=25,void 0!==this.$route.query.goBack&&"gate-lock"===this.$route.query.goBack?this.getListGatesLock():this.getRelationGateGroup(1)},methods:{clickEditGateLock:function(e){this.isGateLockModalShow=!0,localStorage.setItem("gateId",e)},passwordGenerate:function(e){var t=this;this.loading=!0,this.$http.get(te+"/"+encodeURIComponent(encodeURIComponent(e.gateId))+"/password?date="+e.date+"&scorpId="+e.scorpId).then((function(e){t.gatePassword=e.body.gatePassword,t.loading=!1})).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.gatePassword=''+Qt+"";break;case 403:t.gatePassword='ゲートパスワードの取得権限がありません。';break;case 404:t.gatePassword='該当するデーターがありません。';break;case 500:t.gatePassword=''+fa+"";break;case 503:t.gatePassword=''+ha+"";break;default:t.gatePassword=''+ba+"";break}}))},closePasswordGenerate:function(){this.gatePassword=""},changePageUserLock:function(e){console.log(e);var t={isGetData:!1,currPage:e.page.page,totalCount:0,data:[]};this.gateLockExpanedUser=new Map,this.gateLockExpanedUser.set(e.gateId,t),this.getUserOfGateLock(e.gateId,e.page.page)},changePageGroupLock:function(e){this.getGroupOfGate(e.gateId,e.page.page)},showDialogImport:function(e){this.showModalImport=!0,this.isShowViewCSV=e},clickExportGateLockCSV:function(){this.errorMessageLogs="",this.showProgressExportCSV=!0,this.exportGateLockData=[],this.progressCsvXlsx=0,this.gateLockLoad=0,this.isExportGateInfoCSV?this.getExportGateLockData(1):(this.progressCsvXlsx=100,this.downloadCSV(),this.isFinishProcess=!0)},clickCheckBoxExportGateInfoCSV:function(){this.isExportGateInfoCSV=!this.isExportGateInfoCSV},closeModalProcessCSV:function(){this.errorMessageLogs="",this.showProgressExportCSV=!1,this.exportGateLockData=[],this.progressCsvXlsx=0,this.gateLockLoad=0},closeModalProgressImport:function(){this.isLoading=!1,this.successItemImport>0&&(this.isLoadData=!0),this.progressCsvXlsx=0,this.successItemImport=0,this.isFinishProcess=!1,this.totalDataRowImport=0,this.errorMessageImport=[],this.rowinErrDialog=0,this.showProgressImport=!1,this.errorMessageCsvXlsx="",this.dataImport=[],this.exportDataCSV=[],this.maxPagePcode=1,this.showProgressExportCSV=!1},getExportGateLockData:function(e){var t=this,a=te+"?limit=1000&page="+e+"&isExceptOptionalGate=true&isExceptProGate=true";this.$http.get(a).then((function(e){t.totalCSV=Math.ceil(e.body.maxRecords/25),t.percentGateLock=100/t.totalCSV,e.body.gates.forEach((function(e){var a;t.exportGateLockData.push((a={},Object(Lc["a"])(a,"ゲートID",e.gateId),Object(Lc["a"])(a,"ゲート名",e.gateName),Object(Lc["a"])(a,"製品ID",e.gateModelId),Object(Lc["a"])(a,"製品名",e.gateModelName),Object(Lc["a"])(a,"型番",e.gateModelCode),Object(Lc["a"])(a,"アイコンタイプ",e.iconType),Object(Lc["a"])(a,"メーカーコード",e.makerCode),Object(Lc["a"])(a,"カスタム可否",t.converToBit(e.customizable)),Object(Lc["a"])(a,"ターゲット",e.target),Object(Lc["a"])(a,"ターゲット動作設定Time",e.controlTime),Object(Lc["a"])(a,"ターゲット動作設定TimeUnit",e.timeUnit),Object(Lc["a"])(a,"ゲート動作モード",t.converToBit(e.isVisitor)),Object(Lc["a"])(a,"NFCの有効・無効(1:有効.0:無効)",t.converToBit(e.isNFCValid)),Object(Lc["a"])(a,"テンキーの有効・無効(1:有効.0:無効)",t.converToBit(e.isTenKeyValid)),Object(Lc["a"])(a,"ゲートパスワードの有効・無効(1:有効.0:無効)",t.converToBit(e.isGatePasswordValid)),Object(Lc["a"])(a,"ゲートパスワードの桁数",e.gatePasswordLength),Object(Lc["a"])(a,"ゲートパスワードのseed値",e.gatePasswordSeed),Object(Lc["a"])(a,"2段階認証の有効・無効",t.converToBit(e.isTwoStepAuthValid)),Object(Lc["a"])(a,"BLE出力設定",e.bleIntensity),Object(Lc["a"])(a,"ブザー鳴動設定",e.buzzerPattern),Object(Lc["a"])(a,"備考1",e.option1.replace("\n","")),Object(Lc["a"])(a,"備考2",e.option2.replace("\n","")),Object(Lc["a"])(a,"ゲート個体番号1(読み取り専用)",e.gateSNMain),Object(Lc["a"])(a,"ゲート個体番号2(読み取り専用)",e.gateSNBLE),Object(Lc["a"])(a,"適用されているファームウェアバージョン(メイン)(読み取り専用)",e.gateFWMain),Object(Lc["a"])(a,"適用されているファームウェアバージョン(BLE)(読み取り専用)",e.gateFWBLE),Object(Lc["a"])(a,"登録日(読み取り専用)",t.converToDate(e.registered)),Object(Lc["a"])(a,"更新日(読み取り専用)",t.converToDate(e.updated)),Object(Lc["a"])(a,"ゲートへ設定情報を適用した日(読み取り専用)",t.converToDate(e.reported)),Object(Lc["a"])(a,"個人コード照合データー:最新リビジョン(読み取り専用)",e.revisionDesired),Object(Lc["a"])(a,"個人コード照合データー:設定済みリビジョン(読み取り専用)",e.revisionReported),Object(Lc["a"])(a,"電池電圧(読み取り専用)",e.voltage),Object(Lc["a"])(a,"電池電圧更新日(読み取り専用)",t.converToDate(e.scanDate)),Object(Lc["a"])(a,"ステータスの有効・無効(1:有効.0:無効)",t.converToBit(e.isValid)),Object(Lc["a"])(a,"ゲートへの設定反映状況(読み取り専用)",e.status),a))})),t.progressCsvXlsx+=t.percentGateLock,t.gateLockLoad++})).then(null,(function(e){t.resetData()}))},closeImportCSV:function(){this.showModalImport=!1,this.isLoadData&&this.getRelationGateGroup(1),this.isLoadData=!1},resetAllValue:function(){this.isLoading=!1,this.progressCsvXlsx=0,this.successItemImport=0,this.isFinishProcess=!1,this.totalDataRowImport=0,this.errorMessageImport=[],this.rowinErrDialog=0,this.showProgressImport=!1,this.errorMessageCsvXlsx="",this.dataImport=[],this.exportDataCSV=[],this.maxPagePcode=1,this.showProgressExportCSV=!1},clickImportCSV:function(e){var t=this;this.resetAllValue(),this.isLoading=!0,setTimeout((function(){t.importCSV(e)}),200)},importCSV:function(e){var t=this,a=e.files;if(null!==a&&void 0!==a&&0!==a.length){var s=new FileReader;s.onload=function(){var e=s.result,a=e.split("\n"),r=[];t.isLoading=!1,t.showProgressImport=!0;for(var o=0;o1){for(var n=1;n0&&t.dataImport.push(r[n]);if(t.dataImport.length>0){t.totalDataRowImport=t.dataImport.length,t.percentProcess=100/t.totalDataRowImport;var i={gateId:t.dataImport[0][0],gateName:t.dataImport[0][1],gateModelId:t.dataImport[0][2],gateModelName:t.dataImport[0][3],gateModelCode:t.dataImport[0][4],iconType:t.dataImport[0][5],makerCode:t.dataImport[0][6],customizable:t.dataImport[0][7],target:t.dataImport[0][8],controlTime:t.dataImport[0][9],timeUnit:t.dataImport[0][10],isVisitor:t.dataImport[0][11],isNFCValid:t.dataImport[0][12],isTenKeyValid:t.dataImport[0][13],isGatePasswordValid:t.dataImport[0][14],gatePasswordLength:t.dataImport[0][15],gatePasswordSeed:t.dataImport[0][16],isTwoStepAuthValid:t.dataImport[0][17],bleIntensity:t.dataImport[0][18],buzzerPattern:t.dataImport[0][19],option1:t.dataImport[0][20],option2:t.dataImport[0][21],isValid:t.dataImport[0][33],z:2,percent:t.percentProcess};t.dataImport[0][0].length>0?t.editExe(i):t.addExe(i)}else t.isFinishProcess=!0,t.errorMessageCsvXlsx="不正なファイルです。正しいファイルを選択しなおしてください。"}else t.isFinishProcess=!0,t.errorMessageCsvXlsx="不正なファイルです。正しいファイルを選択しなおしてください。"},s.readAsText(a,"Shift_JIS")}else this.isLoading=!1,this.showProgressImport=!0,this.errorMessageCsvXlsx="CSVのファイルを選択してください。",this.isFinishProcess=!0},editExe:function(e){var t=this,a={};a={gateName:e.gateName,gateModelId:e.gateModelId,gateModelName:e.gateModelName,gateModelCode:e.gateModelCode,iconType:parseInt(e.iconType),makerCode:parseInt(e.makerCode),customizable:this.convertStringToBoolean(e.customizable),target:parseInt(e.target),controlTime:parseInt(e.controlTime),timeUnit:parseInt(e.timeUnit),isVisitor:this.convertStringToBoolean(e.isVisitor),isNFCValid:this.convertStringToBoolean(e.isNFCValid),isTenKeyValid:this.convertStringToBoolean(e.isTenKeyValid),isGatePasswordValid:this.convertStringToBoolean(e.isGatePasswordValid),isTwoStepAuthValid:this.convertStringToBoolean(e.isTwoStepAuthValid),bleIntensity:parseInt(e.bleIntensity),buzzerPattern:parseInt(e.buzzerPattern),option1:e.option1,option2:e.option2,isValid:this.convertStringToBoolean(e.isValid)},a.isGatePasswordValid&&(a.gatePasswordLength=parseInt(e.gatePasswordLength),e.gatePasswordSeed.length>0&&(a.gatePasswordSeed=e.gatePasswordSeed)),this.$http.put(te+"/"+encodeURIComponent(encodeURIComponent(e.gateId)),a).then((function(a){t.progressCsvXlsx+=e.percent,t.successItemImport++,t.exeCountCSV++})).then(null,(function(a){var s="";switch(a.status){case 401:s="The incoming token has expired"===a.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:s="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:s="ゲートの編集権限がありません。";break;case 404:s="該当するデーターがありません。";break;case 409:s="入力されたゲート名は既に使用されています。他のゲート名を入力してください。";break;case 500:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}var r=e.z+" 行目>>"+e.gateId+">>"+s+"";t.$set(t.errorMessageImport,e.z,r),t.progressCsvXlsx+=e.percent,t.exeCountCSV++}))},addExe:function(e){var t=this,a={};a={gateName:e.gateName,gateModelId:e.gateModelId,gateModelName:e.gateModelName,gateModelCode:e.gateModelCode,iconType:parseInt(e.iconType),makerCode:parseInt(e.makerCode),customizable:this.convertStringToBoolean(e.customizable),target:parseInt(e.target),controlTime:parseInt(e.controlTime),timeUnit:parseInt(e.timeUnit),isVisitor:this.convertStringToBoolean(e.isVisitor),isNFCValid:this.convertStringToBoolean(e.isNFCValid),isTenKeyValid:this.convertStringToBoolean(e.isTenKeyValid),isGatePasswordValid:this.convertStringToBoolean(e.isGatePasswordValid),isTwoStepAuthValid:this.convertStringToBoolean(e.isTwoStepAuthValid),bleIntensity:parseInt(e.bleIntensity),buzzerPattern:parseInt(e.buzzerPattern),option1:e.option1,option2:e.option2,isValid:this.convertStringToBoolean(e.isValid)},a.isGatePasswordValid&&(a.gatePasswordLength=parseInt(e.gatePasswordLength),e.gatePasswordSeed.length>0&&(a.gatePasswordSeed=e.gatePasswordSeed)),this.$http.post(te,a).then((function(a){t.progressCsvXlsx+=e.percent,t.successItemImport++,t.exeCountCSV++})).then(null,(function(a){var s="";switch(a.status){case 401:s="The incoming token has expired"===a.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:s="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:s="ゲートの編集権限がありません。";break;case 404:s="該当するデーターがありません。";break;case 409:s="入力されたゲート名は既に使用されています。他のゲート名を入力してください。";break;case 500:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:s="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}var r=e.z+" 行目>>"+e.gateName+">>"+s+"";t.$set(t.errorMessageImport,e.z,r),t.progressCsvXlsx+=e.percent,t.exeCountCSV++}))},ShowOnlyIsVaild:function(e){localStorage.setItem("isVaildDataGate",e.toString()),this.getListGatesLock()},changeTab:function(e){console.log("AAA"),this.dataGates=[],this.dataGatesLock=[],this.errorMessageLogs="",1===e?this.getListGatesLock():this.getListGates()},clickUnClock:function(e){this.gateId=e.gateId,this.gateName=e.gateName,this.showModal=!0,this.successMessageModal="",this.errorMessageModal=""},closeModalUnClock:function(){this.showModal=!1},changeExpandedGate:function(e){if(e.value){var t=e.item;this.gateExpanedGroup=new Map;var a={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateExpanedGroup.set(t.gateId,a),this.getGroupOfGate(t.gateId,1)}},changeExpandedGateLock:function(e){if(e.value){var t=e.item;this.gateExpanedGroup=new Map;var a={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateExpanedGroup.set(t.gateId,a),this.getGroupOfGate(t.gateId,1)}},getUserOfGateLock:function(e,t){var a=this,s=this.gateLockExpanedUser.get(e);console.log(e),void 0!==s&&(s.isGetData=!0,s.currPage=t,this.reRenderUser(),this.userOfGate=[],this.$http.get(ee+"?gateId="+encodeURIComponent(e)+"&limit=25&page="+t+"&isExceptOptionalGate=true").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){var r,o,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.body.maxRecords>0)||a.isEmpty(t.body.passages)){e.next=17;break}r=t.body.passages,s.totalCount=t.body.maxRecords,s.currPage=Math.ceil(t.body.startRecord/25),n=0;case 5:if(!(n0&&!a.isEmpty(e.body.relationsGateGroup)?(s.totalCount=e.body.maxRecords,s.currPage=Math.ceil(e.body.startRecord/25),s.data=e.body.relationsGateGroup):(s.totalCount=0,s.currPage=1),s.isGetData=!1,a.reRenderGroup(),a.removeGroupSelected()})).then(null,(function(e){s.isGetData=!1,a.reRenderGroup(),a.removeGroupSelected()}))}},getGroupOfGate:function(e,t){var a=this,s=this.gateExpanedGroup.get(e);if(void 0!==s){s.isGetData=!0,s.currPage=t,this.reRenderGroup();var r=Y+"?gateId="+encodeURIComponent(e)+"&limit=25&page="+t+"&sortKey=desc:groupId&embed=group&isExceptOptionalGate=true";this.$http.get(r).then((function(e){e.body.maxRecords>0&&!a.isEmpty(e.body.relationsGateGroup)?(s.totalCount=e.body.maxRecords,s.currPage=Math.ceil(e.body.startRecord/25),s.data=e.body.relationsGateGroup,s.data.forEach((function(e){e.group.userCount=0,a.$http.get(q+"?groupId="+encodeURIComponent(e.group.groupId)+"&limit=25&page=1").then((function(t){e.group.userCount=t.body.maxRecords}))}))):(s.totalCount=0,s.currPage=1),s.isGetData=!1,a.reRenderGroup(),a.removeGroupSelected()})).then(null,(function(e){s.isGetData=!1,a.reRenderGroup(),a.removeGroupSelected()}))}},changePageGroup:function(e){this.getGroupOfGate(e.gateId,e.page)},reRenderGroup:function(){this.isReRenderGroup<100?this.isReRenderGroup++:this.isReRenderGroup=0},removeGroupSelected:function(){this.isRemoveGroupSelected<100?this.isRemoveGroupSelected++:this.isRemoveGroupSelected=0},changeExpandedGroup:function(e){if(e.value){var t=e.item;this.gateExpanedUser=new Map;var a={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateExpanedUser.set(t.group.groupId,a),this.getUserOfGroup(t.group.groupId,1)}},changeExpandedGroupLock:function(e){if(e.value){var t=e.item;this.gateExpanedUser=new Map;var a={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateExpanedUser.set(t.group.groupId,a),this.getUserOfGroup(t.group.groupId,1)}},changePageUser:function(e){this.getUserOfGroup(e.groupId,e.page)},getUserOfGroup:function(e,t){var a=this,s=this.gateExpanedUser.get(e);if(void 0!==s){s.isGetData=!0,s.currPage=t,this.reRenderUser();var r=q+"?groupId="+encodeURIComponent(e)+"&limit=25&page="+t+"&sortKey=desc:userId&embed=user";this.$http.get(r).then((function(e){e.body.maxRecords>0&&!a.isEmpty(e.body.groupPassages)?(s.totalCount=e.body.maxRecords,s.currPage=Math.ceil(e.body.startRecord/25),s.data=e.body.groupPassages):(s.totalCount=0,s.currPage=1),s.isGetData=!1,a.reRenderUser(),a.removeUserSelected()})).then(null,(function(e){s.isGetData=!1,a.reRenderUser(),a.removeUserSelected()}))}},reRenderUser:function(){this.isReRenderUser<100?this.isReRenderUser++:this.isReRenderUser=0},removeUserSelected:function(){this.isRemoveUserSelected<100?this.isRemoveUserSelected++:this.isRemoveUserSelected=0},closeModalProgress:function(e){if(this.showProgress=!1,this.successItemProcess>0){if(0===this.typeAction){this.removeGroupSelected(),this.gateExpanedGroup=new Map;var t={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateExpanedGroup.set(this.selectedIdAction,t),this.getGroupOfGate(this.selectedIdAction,1)}else if(1===this.typeAction){this.removeUserSelected(),this.gateExpanedUser=new Map;var a={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateExpanedUser.set(this.selectedIdAction,a),this.getUserOfGroup(this.selectedIdAction,1)}this.getListGates()}},goReflectionPage:function(e){localStorage.setItem("controllerId",e.controllerId),localStorage.setItem("controllerName",e.name),this.isReflectionStatusListModalShow=!0},ChangeProperty:function(e){this.isReflectionStatusListModalShow=!1,this.isGateEditModalShow=!1,this.isGateLockModalShow=!1},goLogPage:function(e){console.log("value",e),localStorage.setItem("gateName",e),"no-id"===this.groupId?this.$router.push({path:at,query:{tabId:"gate",tabActive:"1"}}):this.$router.push({path:at,query:{tabId:"gate",groupId:this.groupId}})},clickRemoteUnlock:function(){this.successMessageModal="",this.errorMessageModal="","no-id"===this.groupId&&(this.loading=!0),this.$emit("loading-from-child",!0),this.remoteUnlock(this.gateId)},clickAddGate:function(){this.$router.push({path:"gate/add"})},clickEditGate:function(e){this.isGateEditModalShow=!0,localStorage.setItem("gateId",e.gateId),localStorage.setItem("isEditFlag","true")},changePerPage:function(e){this.perPage=e,localStorage.setItem("pageSizeGate",e),this.dataGates=[],this.currPage=1,this.getRelationGateGroup(this.currPage)},changePerPageLock:function(e){this.perPageLock=e,localStorage.setItem("pageSizeGateLock",e),this.getListGatesLock()},changePage:function(e){this.currPage=e,this.dataGates=[],this.getRelationGateGroup(e)},changePageLock:function(e){this.currPageLock=e,this.getListGatesLock()},searchGate:function(e){console.log(e),this.scorp=[],this.keyword=e.text,this.keywordLock="",this.scorp=e.targets,this.gateTotalCount=0,"no-id"===this.groupId?this.getRelationGateAll(1,!1,null):this.getRelationGateGroup(1)},searchGateLock:function(e){"/groups"===this.$route.path?(this.scorp=[],console.log(e),this.keyword="",this.keywordLock=e.text,this.scorp=e.targets,this.gateTotalCount=0,this.getRelationGateAll(1,!1,null)):(this.scorp=[],this.keyword=e.text,this.keywordLock="",this.scorp=e.targets,this.getRelationGateGroup(1))},getExpandedUser:function(e){},clickConfirm:function(e){this.typeAction=e.type,this.dataAction=e.data,void 0!==e.selectedId&&(this.selectedIdAction=e.selectedId),this.showConfirm=!0},closeDialogConfirm:function(){this.showConfirm=!1},clickGateAction:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.showConfirm=!1,e.showProgress=!0,e.rowinErrDialog=0,e.errorMessageProcess=[],e.successItemProcess=0,e.progress=0,e.isFinishProcess=!1,e.totalDataRowProcess=e.dataAction.length,a=100/e.totalDataRowProcess,console.log(e.dataAction),s=Object(rr["a"])(e.dataAction),t.prev=11,s.s();case 13:if((r=s.n()).done){t.next=30;break}if(o=r.value,n=void 0,0!==e.typeAction){t.next=22;break}return t.next=19,e.removeGateFromGroup(o.relationId,o.gateId);case 19:n=t.sent,t.next=26;break;case 22:if(1!==e.typeAction){t.next=26;break}return t.next=25,e.removeUserFromGroup(o.groupPassageId,o.user.userId);case 25:n=t.sent;case 26:n&&e.successItemProcess++,e.progress+=a;case 28:t.next=13;break;case 30:t.next=35;break;case 32:t.prev=32,t.t0=t["catch"](11),s.e(t.t0);case 35:return t.prev=35,s.f(),t.finish(35);case 38:e.isFinishProcess=!0;case 39:case"end":return t.stop()}}),t,null,[[11,32,35,38]])})))()},removeUserFromGroup:function(e,t){var a=this;return new Promise((function(s){a.$http.delete(q+"/"+encodeURIComponent(e)).then((function(e){s(!0)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r="groupPassageIdが存在しない。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},clickLeaveUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e.userIds,e.gateId=e.gateId,e.rowinErrDialog=0,e.successItemProcess=0,e.progress=0,e.showProgress=!0,e.totalDataRowProcess=a.length,e.showConfirm=!1,s=100/e.totalDataRowProcess,r=Object(rr["a"])(a),t.prev=10,r.s();case 12:if((o=r.n()).done){t.next=22;break}return n=o.value,i=void 0,t.next=17,e.deleteGatePassage(n);case 17:i=t.sent,i&&e.successItemProcess++,e.progress+=s;case 20:t.next=12;break;case 22:t.next=27;break;case 24:t.prev=24,t.t0=t["catch"](10),r.e(t.t0);case 27:return t.prev=27,r.f(),t.finish(27);case 30:e.isFinishProcess=!0;case 31:case"end":return t.stop()}}),t,null,[[10,24,27,30]])})))()},removeGateFromGroup:function(e,t){var a=this;return new Promise((function(s,r){a.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(e){s(!0)})).then(null,(function(r){var o="";switch(r.status){case 400:o=Qt;break;case 403:o="Unauthorized"===r.message?ta:ia;break;case 404:o=e+">>"+aa;break;case 500:o=fa;break;case 503:o=ha;break;default:o=ba;break}var n=t+">>"+o+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,n),s(!1)}))}))},deleteGatePassage:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(ee+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=e+">>"+aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))},getListGates:function(){var e=this;this.isGetDataList=!0;var t=oe+"?limit="+localStorage.pageSizeGate+"&page="+this.currPage+"&embed=gate,controller";""!==this.keyword&&(t+="&keyword="+this.keyword+"&scorp="+this.scorp),this.$http.get(t).then((function(t){e.resetData(),e.isGetDataList=!1,e.isEmpty(t.body.relationsControllerGate)?(e.gateTotalCount=0,e.currPage=1):(e.dataGates=t.body.relationsControllerGate,e.gateTotalCount=t.body.maxRecords,e.currPage=Math.ceil(t.body.startRecord/e.perPage))})).then(null,(function(t){switch(e.isGetDataList=!1,e.gateTotalCount=0,e.currPage=1,e.resetData(),t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},getSafieRelationGateDevice:function(e){var t=this;return new Promise((function(a,s){var r=25,o="".concat(Ie,"?limit=").concat(r)+"&page=".concat(e,"&sortKey=ASC:deviceId");t.$http.get(o).then((function(s){s.body.relationsGateDevice&&(s.body.relationsGateDevice.forEach((function(e,a){"undefined"===typeof t.safieRelationsGateDevice[e.gateId]&&(t.safieRelationsGateDevice[e.gateId]=[]),t.safieRelationsGateDevice[e.gateId].push({deviceId:e.deviceId,notes:e.notes})})),s.body.endRecord!==s.body.maxRecords?t.getSafieRelationGateDevice(e+1).then(a).catch(a):a())})).then(null,(function(e){s(e)}))}))},getListGatesLock:function(){var e=this;this.resetData(),this.isGetDataListLock=!0;var t=te+"?limit="+localStorage.pageSizeGateLock+"&page="+this.currPageLock+"&isExceptOptionalGate=true&isExceptProGate=true";""!==this.keywordLock&&(t=te+"?limit="+localStorage.pageSizeGateLock+"&page="+this.currPageLock+"&keyword="+this.keywordLock+"&scorp="+this.scorp+"&isExceptOptionalGate=true&isExceptProGate=true"),"true"===localStorage.isVaildDataGate&&(t+="&isValid=true"),this.$http.get(t).then((function(t){if(e.isGetDataListLock=!1,e.dataGatesLock=t.body.gates,e.isEmpty(e.dataGatesLock))e.gateTotalCountLock=0,e.currPageLock=1;else{e.gateTotalCountLock=t.body.maxRecords,e.currPageLock=Math.ceil(t.body.startRecord/e.perPageLock);for(var a=0;a0?!1===a.btnUnlock.includes(e)&&a.btnUnlock.push(e):a.listGateGroupCube[e]=[];var o,n=Object(rr["a"])(r.body.relationsGateGroup);try{for(n.s();!(o=n.n()).done;){var i=o.value;a.getCountUserItem(i.groupId,t)}}catch(l){n.e(l)}finally{n.f()}s(!0)})).then(null,(function(r){a.listGateGroupCube[e]=[],a.dataGatesLock[t].groupCount=0,s(!1)}))}))},closeModalProgressUserLock:function(e){console.log("item",e),this.showProgressUser=!1,this.rowinErrDialog=0,this.errorMessageProcessUser=[],this.successItemProcessUser=0,this.progressUser=0,this.isFinishProcessUser=!1,this.userOfGate=[],this.gateLockExpanedUser=new Map;var t={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateLockExpanedUser.set(e.gateId,t),this.getUserOfGateLock(e.gateId,1)},closeModalProgressGroupLock:function(e){console.log(e),this.showProgressGroup=!1,this.rowinErrDialog=0,this.errorMessageProcessGroup=[],this.successItemProcessGroup=0,this.progressGroup=0,this.isFinishProcessGroup=!1,this.gateLockExpanedGroup=new Map;var t={isGetData:!1,currPage:1,totalCount:0,data:[]};this.gateLockExpanedGroup.set(e.gateId,t),this.getGroupOfGateLock(e.gateId,1)},clickRemoveUserLock:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.showProgressUser=!0,t.rowinErrDialog=0,t.errorMessageProcessUser=[],t.successItemProcessUser=0,t.progressUser=0,t.isFinishProcessUser=!1,t.totalDataRowProcessUser=e.length,s=100/t.totalDataRowProcessUser,r=Object(rr["a"])(e),a.prev=9,r.s();case 11:if((o=r.n()).done){a.next=21;break}return n=o.value,i=void 0,a.next=16,t.deleteGatePassageLock(n.passageId);case 16:i=a.sent,i&&t.successItemProcessUser++,t.progressUser+=s;case 19:a.next=11;break;case 21:a.next=26;break;case 23:a.prev=23,a.t0=a["catch"](9),r.e(a.t0);case 26:return a.prev=26,r.f(),a.finish(26);case 29:t.isFinishProcessUser=!0;case 30:case"end":return a.stop()}}),a,null,[[9,23,26,29]])})))()},deleteGatePassageLock:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(ee+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=e+">>"+aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcessUser,++t.rowinErrDialog,o),a(!1)}))}))},clickRemoveGroupLock:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.showProgressGroup=!0,t.rowinErrDialog=0,t.errorMessageProcessGroup=[],t.successItemProcessGroup=0,t.progressGroup=0,t.isFinishProcessGroup=!1,t.totalDataRowProcessGroup=e.length,s=100/t.totalDataRowProcessGroup,r=Object(rr["a"])(e),a.prev=9,r.s();case 11:if((o=r.n()).done){a.next=21;break}return n=o.value,i=void 0,a.next=16,t.deleteRelationGateGroup(n.relationId);case 16:i=a.sent,i&&t.successItemProcessGroup++,t.progressGroup+=s;case 19:a.next=11;break;case 21:a.next=26;break;case 23:a.prev=23,a.t0=a["catch"](9),r.e(a.t0);case 26:return a.prev=26,r.f(),a.finish(26);case 29:t.isFinishProcessGroup=!0;case 30:case"end":return a.stop()}}),a,null,[[9,23,26,29]])})))()},deleteRelationGateGroup:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(X+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=e+">>"+aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcessGroup,++t.rowinErrDialog,o),a(!1)}))}))},remoteUnlock:function(e){var t=this;this.$http.post(te+"/"+encodeURIComponent(e)+"/remote-unlock").then((function(e){"Success"===e.body.message&&(t.successMessageModal="ゲートへリモート解錠要求を行いました。",t.loading=!1,t.$emit("loading-from-child",!1)),t.loading=!1,t.$emit("loading-from-child",!1)})).then(null,(function(e){switch(console.log("err: ",e),e.status){case 400:t.errorMessageModal="リモート解錠要求に失敗しました。再度やり直してください。";break;case 403:"Unauthorized"===e.message?t.errorMessageModal=ta:t.errorMessageModal=ia;break;case 404:t.errorMessageModal="リモート解錠要求に失敗しました。以下の原因の可能性があります。
・ログインユーザーが組織管理権限を持っていない場合
・ログインユーザーがこのゲートに紐づく通行権限グループに登録されていない場合
・ログインユーザーが個人コードを持っていない場合";break;case 500:t.errorMessageModal=fa;break;case 503:t.errorMessageModal=ha;break;default:t.errorMessageModal=ba;break}t.loading=!1,t.$emit("loading-from-child",!1)}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataGates=[],this.dataGatesLock=[],this.errorMessageLogs=""},converToBit:function(e){var t=e.toString();switch(t=null!==t&&""!==t?t.trim().toLowerCase():"false",t){case"true":return 1;case"false":return 0;default:return 1}},converToDate:function(e){return e>0?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):"-"},downloadCSV:function(){var e,t=a("21a6"),s=this.exportGateLockData;0===s.length&&s.push((e={},Object(Lc["a"])(e,"ゲートID",""),Object(Lc["a"])(e,"ゲート名",""),Object(Lc["a"])(e,"製品ID",""),Object(Lc["a"])(e,"製品名",""),Object(Lc["a"])(e,"型番",""),Object(Lc["a"])(e,"アイコンタイプ",""),Object(Lc["a"])(e,"メーカーコード",""),Object(Lc["a"])(e,"カスタム可否",""),Object(Lc["a"])(e,"ターゲット",""),Object(Lc["a"])(e,"ターゲット動作設定Time",""),Object(Lc["a"])(e,"ターゲット動作設定TimeUnit",""),Object(Lc["a"])(e,"ゲート動作モード",""),Object(Lc["a"])(e,"NFCの有効・無効(1:有効.0:無効)",""),Object(Lc["a"])(e,"テンキーの有効・無効(1:有効.0:無効)",""),Object(Lc["a"])(e,"ゲートパスワードの有効・無効(1:有効.0:無効)",""),Object(Lc["a"])(e,"ゲートパスワードの桁数",""),Object(Lc["a"])(e,"ゲートパスワードのseed値",""),Object(Lc["a"])(e,"2段階認証の有効・無効",""),Object(Lc["a"])(e,"BLE出力設定",""),Object(Lc["a"])(e,"ブザー鳴動設定",""),Object(Lc["a"])(e,"備考1",""),Object(Lc["a"])(e,"備考2",""),Object(Lc["a"])(e,"ゲート個体番号1(読み取り専用)",""),Object(Lc["a"])(e,"ゲート個体番号2(読み取り専用)",""),Object(Lc["a"])(e,"適用されているファームウェアバージョン(メイン)(読み取り専用)",""),Object(Lc["a"])(e,"適用されているファームウェアバージョン(BLE)(読み取り専用)",""),Object(Lc["a"])(e,"登録日(読み取り専用)",""),Object(Lc["a"])(e,"更新日(読み取り専用)",""),Object(Lc["a"])(e,"ゲートへ設定情報を適用した日(読み取り専用)",""),Object(Lc["a"])(e,"個人コード照合データー:最新リビジョン(読み取り専用)",""),Object(Lc["a"])(e,"個人コード照合データー:設定済みリビジョン(読み取り専用)",""),Object(Lc["a"])(e,"電池電圧(読み取り専用)",""),Object(Lc["a"])(e,"電池電圧更新日(読み取り専用)",""),Object(Lc["a"])(e,"ステータスの有効・無効(1:有効.0:無効)",""),Object(Lc["a"])(e,"ゲートへの設定反映状況(読み取り専用)",""),e));var r=this.convertArrayOfObjectsToCSV({data:s}),o="gate-data.csv",n=new Uint8Array([239,187,191]),i=new Blob([n,r],{type:"text/csv;charset=utf-8;"}),l=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),c=window.navigator;if(l)t(i,o),console.log("DDD1");else{if(void 0!==c.msSaveOrOpenBlob)c.msSaveOrOpenBlob(i,o);else{var u=document.createElement("a");u.setAttribute("href",window.URL.createObjectURL(i)),u.setAttribute("download",o),u.setAttribute("target","_blank"),u.click(),u.remove()}console.log("DDD2")}console.log("DDD")},convertArrayOfObjectsToCSV:function(e){var t,a,s,r,o,n;return n=e.data||null,null!=n&&n.length?(r=e.columnDelimiter||",",o=e.lineDelimiter||"\n",s=Object.keys(n[0]),t="",t+=s.join(r),t+=o,n.forEach((function(e){a=0,s.forEach((function(s){a>0&&(t+=r),t+=e[s],a++})),t+=o})),t):null},convertStringToBoolean:function(e){var t=e.trim().toLowerCase();switch(t){case"1":return!0;case"0":return!1;default:return!0}},getLog:function(){this.getLastLog(this.currentGateId)},openHandleCommand:function(e){this.currentGateId=e,this.isFinishHandleCommand=!1,this.errorMessageLogsPhone="",this.successMessageLogsPhone="",this.getLastLog(this.currentGateId)},handleCommand:function(e){var t=this,a=e;this.errorMessageLogs="",this.errorMessageLogsPhone="",this.successMessageLogsPhone="","no-id"===this.groupId&&(this.loading=!0),this.$emit("loading-from-child",!0),this.$http.post(te+"/"+encodeURIComponent(a)+"/remote-unlock").then((function(e){"Success"===e.body.message&&(t.successMessageLogsPhone="ゲートへリモート解錠要求を行いました。",t.loading=!1,t.$emit("loading-from-child",!1)),t.loading=!1,t.$emit("loading-from-child",!1)})).then(null,(function(e){switch(console.log("err: ",e),e.status){case 400:t.errorMessageLogsPhone="リモート解錠要求に失敗しました。再度やり直してください。";break;case 403:"Unauthorized"===e.message?t.errorMessageLogsPhone=ta:t.errorMessageLogsPhone=ia;break;case 404:t.errorMessageLogsPhone="リモート解錠要求に失敗しました。以下の原因の可能性があります。
・ログインユーザーが組織管理権限を持っていない場合
・ログインユーザーがこのゲートに紐づく通行権限グループに登録されていない場合
・ログインユーザーが個人コードを持っていない場合";break;case 500:t.errorMessageLogsPhone=fa;break;case 503:t.errorMessageLogsPhone=ha;break;default:t.errorMessageLogsPhone=ba;break}t.loading=!1,t.isFinishHandleCommand=!0,t.$emit("loading-from-child",!1)}))},getListUserId:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=Object(rr["a"])(t.listGateGroupCube[e]),a.prev=1,s.s();case 3:if((r=s.n()).done){a.next=9;break}return o=r.value,a.next=7,t.getUserId(o.groupId,1);case 7:a.next=3;break;case 9:a.next=14;break;case 11:a.prev=11,a.t0=a["catch"](1),s.e(a.t0);case 14:return a.prev=14,s.f(),a.finish(14);case 17:console.log("getUserId: End");case 18:case"end":return a.stop()}}),a,null,[[1,11,14,17]])})))()},getUserId:function(e,t){var a=this;return new Promise((function(s,r){a.$http.get(Z+"?groupId="+encodeURIComponent(e)+"&limit=1000&page="+t).then((function(r){console.log("groupId",e);var o=Math.ceil(r.body.maxRecords/1e3),n=r.body.maxRecords,i=r.body.endRecord;if(t<=o){var l=r.body.groupPassages;l.forEach((function(e){a.groupPassages.push(e.userId)})),it.listPhoneRSSI[0].RSSI&&0!==r.RSSI&&(t.listPhoneRSSI=[],t.listPhoneRSSI.push({phoneId:a.alligatePhoneId,RSSI:r.RSSI})))}})),a(!0)})).then(null,(function(e){console.log(e),a(!1)}))}))},checkRemoteUnlock:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log("listPhoneRSSI.length",t.listPhoneRSSI.length),console.log("listPhonesNoConnect.length",t.listPhonesNoConnect.length),0!==t.groupPassages.length&&(0!==t.listPhoneRSSI.length||0!==t.listPhonesNoConnect.length)){a.next=6;break}t.errorMessageLogsPhone="ゲートウェイ機器(Cube)がゲートに紐づいていません。
設定を確認して下さい。",a.next=12;break;case 6:if(!(0===t.listPhoneRSSI.length&&t.listPhonesNoConnect.length>0)){a.next=10;break}t.errorMessageLogsPhone="ゲートウェイ機器(cube等)との通信に失敗しました。 ゲートウェイ機器の通信状態を確認してください。",a.next=12;break;case 10:return a.next=12,t.remoteUnlockCube(e,t.listPhoneRSSI[0].phoneId);case 12:case"end":return a.stop()}}),a)})))()},remoteUnlockCube:function(e,t){var a=this;return new Promise((function(s,r){var o={cmdId:4,option:{gateId:e},phoneId:t};a.errorMessageLogsPhone="",a.successMessageLogsPhone="",a.$http.post($e,o).then((function(e){console.log("response",e.status),a.successMessageLogsPhone="遠隔解錠要求を実施しました。 \n
更新ボタンをクリックして、遠隔解錠状況の結果を確認してください。",s(!0)})).then(null,(function(e){switch(e.status){case 404:case 400:a.errorMessageLogsPhone="遠隔解錠要求を失敗しました。ゲートウェイの情報をご確認下さい。";break;case 500:case 503:a.errorMessageLogsPhone="遠隔解錠要求を失敗しました。しばらく経ってからやり直してください。";break;default:a.errorMessageLogsPhone="アクセス情報が不正です。ログインし直してからやり直してください。";break}s(!1)}))}))},getLastLog:function(e){var t=this;return new Promise((function(e,a){t.lastLog=[],t.$http.get($e+"?keyword="+t.currentGateId+"&scorp=option").then((function(a){var s=a.body.commands;s.forEach((function(e){0===t.lastLog.length&&t.lastLog.push({registered:e.registered,status:e.status})})),e(!0)})).then(null,(function(t){e(!1),console.log(t)}))}))},wait:function(e){return new Promise((function(t,a){setTimeout(t,e)}))},resetCube:function(){this.errorMessageLogsPhone="",this.successMessageLogsPhone=""},clickUpdateValid:function(e){console.log(e),this.dataUpdateValid=e,this.showConfirmUpdateValidLock=!0,this.dataUpdateValid.isValid?this.actionUpdateValidLock=0:this.actionUpdateValidLock=1},noChoiceUpdateValidLock:function(){this.dataUpdateValid={},this.showConfirmUpdateValidLock=!1},closeModalProgressUpdateValidLock:function(){this.dataUpdateValid={},this.showProgressUpdateValidLock=!1,this.getRelationGateGroup(1)},yesChoiceUpdateValidLock:function(){var e=this;this.showConfirmUpdateValidLock=!1,this.showProgressUpdateValidLock=!0,this.isFinishProcessUpdateValidLock=!1,this.successItemProcessUpdateValidLock=0,this.progressUpdateValidLock=0,this.errorMessageProcessUpdateValidLock=[],this.totalDataRowProcessUpdateValidLock=1;var t={isValid:this.dataUpdateValid.isValid};return new Promise((function(a,s){e.$http.put(te+"/"+encodeURIComponent(e.dataUpdateValid.gateId),t).then((function(t){e.successItemProcessUpdateValidLock++,e.progressUpdateValidLock=100,e.isFinishProcessUpdateValidLock=!0,a(!0)})).then(null,(function(t){var s="";switch(t.status){case 400:s=Qt;break;case 403:s="Unauthorized"===t.message?ta:"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 404:s=aa;break;case 500:s=fa;break;case 503:s=ha;break;default:s=ba;break}var r=e.dataUpdateValid.gateId+">>"+s+"";e.$set(e.errorMessageProcessUpdateValidLock,++e.rowinErrDialog,r),e.progressUpdateValidLock=100,e.isFinishProcessUpdateValidLock=!0,a(!1)}))}))},changeSort:function(e){console.log("data",e),e.sortDesc.length>0&&e.sortBy.length>0&&("no-id"===this.groupId?this.getRelationGateAll(1,!0,e):this.getRelationGateGroupId(1,!0,e))},getRelationGateGroup:function(e){"no-id"===this.groupId?this.getRelationGateAll(e,!1,null):this.getRelationGateGroupId(e,!1,null)},getRelationGateGroupId:function(e,t,a){var s=this;this.isGetDataList=!0;var r=Y+"?groupId="+encodeURIComponent(this.groupId)+"&limit="+this.perPage+"&page="+e+"&embed=group,gate&isExceptOptionalGate=true";""!==this.keyword&&(r+="&keyword="+this.keyword+"&scorp="+this.scorp),!0===t&&(r+="&sortKey="+(a.sortDesc[0]?"desc":"asc")+":"+("gate.name"===a.sortBy[0]?"gate.gateName":"gate.gateId"===a.sortBy[0]?"gateId":a.sortBy[0])),this.$http.get(r).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(a){var r,o,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=[],r=void 0!==localStorage.isVaildGate&&"true"===localStorage.isVaildGate?a.body.relationsGateGroup.filter((function(e){return!0===e.gate.isValid})):a.body.relationsGateGroup,s.gateTotalCount=a.body.maxRecords,s.dataGates=[],s.currPage=e,o=Object(rr["a"])(r);try{for(i=function(){var e=n.value,t=a.body.relationsGateGroup.filter((function(t){return t.gateId===e.gateId}));s.$set(s.listGateGroupCube,e.gateId,t),a.body.maxRecords>0&&!1===s.btnUnlock.includes(e.gate.gateId)&&s.btnUnlock.push(e.gate.gateId),e.gate.isNFCValid=e.gate.isNfcValid,e.gate.gateSNMain=e.gate.gateSnMain,e.gate.gateSNBLE=e.gate.gateSnBle,e.gate.gateFWMain=e.gate.gateFwMain,e.gate.gateFWBLE=e.gate.gateFwBle,e.controllerName=void 0!==e.gate.relationControllerGate&&void 0!==e.gate.relationControllerGate.controller?e.gate.relationControllerGate.controller.name:"",e.controller=void 0!==e.gate.relationControllerGate&&void 0!==e.gate.relationControllerGate.controller?e.gate.relationControllerGate.controller:void 0,e.controllerGateNo=void 0!==e.gate.relationControllerGate&&void 0!==e.gate.relationControllerGate.controllerGateNo?e.gate.relationControllerGate.controllerGateNo:"",s.dataGates.push(e)},o.s();!(n=o.n()).done;)i()}catch(l){o.e(l)}finally{o.f()}return t.next=9,s.concatDataGate();case 9:s.isGetDataList=!1;case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(null,(function(e){s.isGetDataList=!1,s.dataGates=[],s.gateTotalCount=0}))},getRelationGateAll:function(e,t,a){var s=this;this.isGetDataList=!0,this.errorMessageLogs="";var r=te+"?limit="+this.perPage+"&page="+e+"&isExceptOptionalGate=true&embed=relationsControllerGate";"true"===localStorage.isVaildGate&&(r+="&isValid=true"),""!==this.keywordLock&&(r+="&keyword="+this.keywordLock+"&scorp="+this.scorp),this.$http.get(r).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(a){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=a.body.gates,s.gateTotalCount=a.body.maxRecords,s.dataGates=[],s.currPage=e,r.forEach((function(e){var t={};t.relationId=e.gateId,t.gate=e,t.gateId=e.gateId,t.gate.name=e.gateName,void 0!==e.relationControllerGate&&void 0!==e.relationControllerGate.controller&&(t.controller=e.relationControllerGate.controller,t.controllerGateNo=e.relationControllerGate.controllerGateNo),s.dataGates.push(t)})),t.next=7,s.concatDataGate();case 7:s.isGetDataList=!1;case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(null,(function(e){switch(s.isGetDataList=!1,e.status){case 400:s.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?s.errorMessageLogs=ta:s.errorMessageLogs=ia;break;case 500:s.errorMessageLogs=fa;break;case 503:s.errorMessageLogs=ha;break;default:s.errorMessageLogs=ba;break}}))},concatDataGate:function(){var e=this;return new Promise((function(t){var a=[],s=[];e.dataGates.forEach((function(e){void 0!==e&&(void 0!==e.controller&&"ALIG-030"===e.gate.gateModelCode?(e.controllerName=e.controller.name,a.push(e)):"ALIG-030"!==e.gate.gateModelCode?(e.index=s.length+1,e.controllerName="",s.push(e)):(console.log("element.gate.gateId",e.gate.gateId),console.log("element.gate.name",e.gate.name)))})),s=s.filter((function(e){return e})),a=a.filter((function(e){return e})),a.sort((function(e,t){return e.controller.name.toLowerCase()=0&&(t.class="hide-row"),r.push(t)})),e.dataGates=[],e.dataGates=r.concat(s),t(!0)}))},getContrGate:function(e){var t=this;return new Promise((function(a){t.$http.get(oe+"?limit=25&embed=controller&gateId="+encodeURIComponent(e.gateId)).then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:o=t.dataGates.map((function(e){return e.relationId})).indexOf(e.relationId),o>=0&&(t.dataGates[o].controller=r.body.relationsControllerGate[0].controller,t.dataGates[o].controllerGateNo=r.body.relationsControllerGate[0].controllerGateNo),a(!0);case 3:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}()).then(null,function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a(!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}))},removeGate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationGate={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.length,c=100/l,t.dataRelationGate.total=l,u=Object(rr["a"])(e),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=26;break}return g=d.value,p=void 0,a.next=18,t.deleteGateItem(g.relationId);case 18:p=a.sent,!0===p?r++:(m=g.gate.name+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationGate.progressLoad=o,t.dataRelationGate.successItem=r,t.dataRelationGate.errorMessage=i;case 24:a.next=13;break;case 26:a.next=31;break;case 28:a.prev=28,a.t0=a["catch"](11),u.e(a.t0);case 31:return a.prev=31,u.f(),a.finish(31);case 34:n=!0,t.dataRelationGate.isFinish=n;case 36:case"end":return a.stop()}}),a,null,[[11,28,31,34]])})))()},deleteGateItem:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}a(t)}))}))},addGate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationGate={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.length,c=100/l,t.dataRelationGate.total=l,u=Object(rr["a"])(e),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.addGateItem(g.gateId,t.groupId);case 18:p=a.sent,!0===p?r++:(m=g.gateName+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationGate.progress=o,t.dataRelationGate.successItem=r,t.dataRelationGate.progressLoad=o,t.dataRelationGate.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataRelationGate.isFinish=n;case 37:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},addGateItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Y,{gateId:e,groupId:t}).then((function(e){s(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 409:t="選択されたゲートは既に使用されています。他のゲートを選択してください。";break;case 420:t=Ca;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s(t)}))}))},confirmAction:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationGate={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.selectedItem.length,t.dataRelationGate.total=l,c=100/l,u=Object(rr["a"])(e.selectedItem),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,console.log("data.isVaild)",e.isVaild),a.next=19,t.updateGateItem(g.gate.gateId,e.isValid);case 19:p=a.sent,!0===p?r++:(m=g.gate.name+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationGate.progressLoad=o,t.dataRelationGate.successItem=r,t.dataRelationGate.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataRelationGate.isFinish=n;case 37:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},updateGateItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.put(te+"/"+encodeURIComponent(e),{isValid:t}).then((function(e){s(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s(t)}))}))},loadGates:function(e){this.dataGates=[],this.getRelationGateGroup(e)},loadAllGates:function(e){this.expandData.gateAll.page=1,this.expandData.gateAll.perPage=25,this.loadGateList({perPage:25,page:1})},changePerPageGateAll:function(e){this.expandData.gateAll.perPage=e;var t={page:this.expandData.gateAll.page,perPage:this.expandData.gateAll.perPage};this.loadGateList(t)},changePageGateAll:function(e){this.expandData.gateAll.page=e;var t={page:this.expandData.gateAll.page,perPage:this.expandData.gateAll.perPage};this.loadGateList(t)},loadGateList:function(e){var t=this;this.expandData.gateAll.loading=!0,this.$http.get(te+"?limit="+e.perPage+"&page="+e.page+"&sortKey=desc:registered&isExceptOptionalGate=true&isValid=true").then((function(e){e.body.maxRecords>0&&(t.expandData.gateAll.data=e.body.gates,t.expandData.gateAll.total=e.body.maxRecords,t.expandData.gateAll.loading=!1)})).then(null,(function(e){console.log("err: ",e),t.expandData.gateAll.loading=!1}))},checkGroupItemUnLock:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Y+"?limit=25&gateId="+encodeURIComponent(e)+"&isExceptOptionalGate=true").then((function(s){t.$set(t.listGateGroupCube,e,s.body.relationsGateGroup),s.body.maxRecords>0&&!1===t.btnUnlock.includes(e)&&t.btnUnlock.push(e),a(!0)})).then(null,(function(e){a(!1)}))}))},closeModalGate:function(e){e&&(this.dataGates=[],this.getRelationGateGroup(1)),this.$emit("close-modal-control",e)},closeModalGateAdd:function(e){e&&this.$emit("close-modal-control",e),this.dataRelationGate={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1}},getGateIsValid:function(e){localStorage.setItem("isVaildGate",e.toString()),""!==this.inPage?this.getRelationGateAll(1,!1,null):this.getRelationGateGroupId(1,!1,null)},loadingModal:function(e){console.log("loadingModal",e),this.loading=e,this.$emit("loading-from-child",e)}}}),Db=Lb,Gb=Object(I["a"])(Db,Km,Ym,!1,null,null,null),Ab=Gb.exports,Rb=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("gate-add-user-template",{attrs:{dataUsers:e.dataUsers,userTotalCount:e.userTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,showConfirm:e.showConfirm,userOfGate:e.userOfGate,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,isFinishProcess:e.isFinishProcess,progress:e.progress},on:{changePerPage:function(t){return e.changePerPage(t)},clickAddUser:function(t){return e.clickAddUser(t)},clickConfirm:function(t){return e.clickConfirm(t)},clickDelete:function(t){return e.clickDelete(t)},changePage:function(t){return e.changePage(t)},closeModalProgress:function(t){return e.closeModalProgress()}}})},Tb=[],Eb=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-list-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-round",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.clickBackGate()}}},[e._v("\n 戻る\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirm")}}},[e._v("\n アンチパスバッククリア\n ")])],1)],1),e._v(" "),a("gate-user-list-table",{attrs:{userTotalCount:e.userTotalCount,userOfGate:e.userOfGate,dataUsers:e.dataUsers,page:e.page,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-users":function(t){e.selectedUserIds=t}}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("アンチパスバッククリア")]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",[e._v("\n チェックしたユーザーをアンチパスバッククリアしますか?\n ")])],1)],1),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e.selectedUserIds.length>0?a("span",[e._v("キャンセル")]):a("span",[e._v("OK")])]),e._v(" "),e.selectedUserIds.length>0?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickAddUser",{data:e.selectedUserIds,controllerId:e.controllerId})}}},[e._v("OK")]):e._e()],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("ユーザーの関連付けを追加")]),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),a("v-divider"),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e._v("OK")])],1)],1):e._e()],1)],1)],1)],1)},Ob=[],Vb=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-table"},[a("v-container",[a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1)],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2 mr-2 mt-5",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.userTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,items:e.innerValue,"items-per-page":e.perPage,"item-key":"userId","no-data-text":"データーはありません","hide-default-footer":"","show-select":!0},on:{"update:options":function(t){return e.$emit("change-sort",t)},"item-expanded":function(t){return e.$emit("change-expanded",t)}},model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.userTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.userTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},Ub=[],$b=(new Date,f["a"].extend({name:"GateUserListTable",components:{Searchbox:$r,ShowPerPage:mo,SuccessButton:kr,Pagination:xo,DisplayOption:Mo,SelectPerPage:To},props:{userTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataUsers:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},dataTimes:{type:Array,default:function(){return[]}}},data:function(){return{searchTargetItems:[{label:"通行権限グループ名",value:"name"}],selectedItem:[],selectedDisplayOption:["name","registered"],displayOptionItems:[{label:"通行権限グループ名",value:"name",isDisabled:!0}],dateS:"",dateE:"",hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","15","30","45"],timeS:"",dateStart:!1,dateEnd:!1,hourStart:"",minuteStart:"",timeE:"",timeEnd:!1,hourEnd:"",minuteEnd:""}},computed:{headers:{get:function(){var e=[{text:"ユーザー名",align:"start",sortable:!0,value:"name"},{text:"ユーザーID",align:"start",sortable:!0,value:"userId"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}},innerValue:{get:function(){return this.dataUsers.map((function(e,t){var a={name:e.name,userId:e.userId,index:t};return a}))}}},watch:{selectedItem:function(e){this.$emit("select-users",e.map((function(e){return e})))}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},clearAll:function(e){var t=this;return new Promise((function(a,s){var r={type:0};t.$http.post(ie+"/"+encodeURIComponent(e)+"/antipassback-clear",r).then((function(e){"Success"===e.body.message?a(!0):a(!1)})).then(null,(function(e){var s="";switch(e.status){case 400:s=Qt;break;case 403:s="Unauthorized"===e.message?ta:ia;break;case 404:s=aa;break;case 500:s=fa;break;case 503:s=ha;break;default:s=ba;break}var r=s;t.$set(t.errorMessageProcess,++t.rowinErrDialog,r),a(!1)}))}))},postUser:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(ee,e).then((function(e){"Success"===e.body.message?s(!0):s(!1)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r=aa;break;case 409:r=ga;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},getUserOfGate:function(e,t){var a=this;this.$http.get(ee+"?gateId="+encodeURIComponent(t)+"&limit=1000&page="+e).then((function(s){s.body.maxRecords>0?(s.body.passages.forEach((function(e){a.userOfGate.push({text:e.userId,value:e.userId,notAfter:e.notAfter,notBefore:e.notBefore})})),s.body.maxRecords>s.body.endRecord?a.getUserOfGate(e+1,t):a.loading=!1):(a.userOfGate=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeUser",e),this.loading=!0,this.getListUsers().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.loading=!0,this.getListUsers().then((function(){t.loading=!1}))},searchUser:function(e){var t=this;this.keyword=e.text,this.scorp=e.targets,this.loading=!0,this.getListUsers().then((function(){t.loading=!1}))},getListUsers:function(){var e=this;return new Promise((function(t,a){var s=T+"?limit="+localStorage.pageSizeUser+"&page="+e.currPage+"&isExceptOptionalUser=true&isValid=true&exclude=thumbnail";e.$http.get(s).then((function(a){e.resetData(),e.isEmpty(a.body.users)?(e.userTotalCount=0,e.currPage=1):(e.dataUsers=a.body.users,e.userTotalCount=a.body.maxRecords,e.currPage=Math.ceil(a.body.startRecord/e.perPage)),t(!0)})).then(null,(function(a){switch(a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}t(!0)}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataUsers=[],this.errorMessageLogs=""},formatTimestamp:function(e){return""!==e?jo()(e).unix():""}}}),qb=Yb,Wb=Object(I["a"])(qb,Rb,Tb,!1,null,null,null),Jb=Wb.exports,Zb=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("gate-add-group-template",{attrs:{dataGroups:e.dataGroups,groupTotalCount:e.groupTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,groupOfGate:e.groupOfGate,showConfirm:e.showConfirm,isFinishProcess:e.isFinishProcess,progress:e.progress},on:{clickConfirm:function(t){return e.clickConfirm(t)},closeDialogConfirm:function(t){return e.closeDialogConfirm(t)},changePerPage:function(t){return e.changePerPage(t)},clickAddGroup:function(t){return e.clickAddGroup(t)},clickEditGroup:function(t){return e.clickEditGroup(t)},clickDelete:function(t){return e.clickDelete(t)},changePage:function(t){return e.changePage(t)},"search-group":function(t){return e.searchGroup(t)},changeExpanded:function(t){return e.changeExpanded(t)},closeModalProgress:function(t){return e.closeModalProgress()}}})},Xb=[],Qb=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-list-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-round",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.clickBack()}}},[e._v("\n 戻る\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirm")}}},[e._v("\n 関連付け追加\n ")])],1)],1),e._v(" "),a("group-list-add",{attrs:{groupTotalCount:e.groupTotalCount,dataGroups:e.dataGroups,page:e.page,perPage:e.perPage,loading:e.loading,groupOfGate:e.groupOfGate,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-groups":function(t){e.selectedGroupIds=t}}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),0===e.selectedGroupIds.length?a("v-card-text",{staticClass:"pa-4 bg-error font-weight-bold"},[a("p",[e._v("少なくても通行権限グループを一つ選んでください。")])]):a("v-card-text",{staticClass:"pa-4"},[a("p",[e._v("チェックした通行権限グループを追加しますか?")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeDialogConfirm")}}},[e.selectedGroupIds.length>0?a("span",[e._v("キャンセル")]):a("span",[e._v("OK")])]),e._v(" "),e.selectedGroupIds.length>0?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickAddGroup",e.selectedGroupIds)}}},[e._v("OK")]):e._e()],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e._v("OK")])],1)],1):e._e()],1)],1)],1)],1)},ey=[],ty=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-table"},[a("v-container",[a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1)],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2 mr-2 mt-5",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.groupTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,items:e.getDataGroups,"items-per-page":e.perPage,"item-key":"groupId","no-data-text":"データーはありません","hide-default-footer":"","show-select":!0},on:{"update:options":function(t){return e.$emit("change-sort",t)},"item-expanded":function(t){return e.$emit("change-expanded",t)}},scopedSlots:e._u([{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[t.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:t.disable,disabled:t.disable,ripple:!1},on:{input:function(e){return r(e)}}}):a("v-simple-checkbox",{attrs:{value:s,readonly:t.disabled,disabled:t.disabled,ripple:!1},on:{input:function(e){return r(e)}}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.groupTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.groupTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},ay=[],sy=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-detail"},[a("v-container",[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 通行権限グループ情報\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("div",{staticClass:"info-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-2"},[a("v-subheader",[e._v("通行権限グループ名")])],1),e._v(" "),a("div",{staticClass:"text-body-2 col align-self-center"},[e._v(" "+e._s(e.groupDetail.name)+" ")])])]),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("ゲート")])],1),e._v(" "),a("v-col",[a("v-row",e._l(e.gatesGroup,(function(t){return a("v-col",{key:t.value,attrs:{md:"3",sm:"6",cols:"12"}},[a("text-link",{attrs:{text:t.text},on:{click:function(a){return e.clickGate(t.value,e.groupDetail.groupId)}}})],1)})),1)],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("ユーザー")])],1),e._v(" "),a("v-col",[a("v-row",e._l(e.usersGroup,(function(t){return a("v-col",{key:t.value,attrs:{md:"3",sm:"6",cols:"12"}},[a("text-link",{attrs:{text:t.text},on:{click:function(a){return e.$emit("click-user",{userId:t.value,groupId:e.groupDetail.groupId})}}})],1)})),1)],1)],1)],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 通行可能時間設定\n ")])],1),e._v(" "),a("v-row",{staticClass:"ml-1 pt-0 mt-0"},[a("div",{staticClass:"col col-12 pl-0 pt-0"},[a("v-data-table",{staticClass:"border-table shadow-table ",attrs:{"must-sort":"","items-per-page":-1,headers:e.headerTimes,items:void 0!==e.groupDetail.passableTimeSetting&&null!==e.groupDetail.passableTimeSetting?e.groupDetail.passableTimeSetting.timeSettings:[],"item-key":"dayTypeId","no-data-text":"該当するデータがありません","hide-default-footer":"","custom-sort":e.tableSort},on:{"update:options":function(t){return e.$emit("change-sort",t)}},scopedSlots:e._u([{key:"item.name",fn:function(t){t.item;return[a("span",[e._v("\n "+e._s(e.groupDetail.passableTimeSetting.name)+"\n ")])]}},{key:"item.dayTypeName",fn:function(t){var s=t.item;return[a("span",[e._v("\n "+e._s(s.dayTypeName)+"\n ")])]}},{key:"item.expand-time",fn:function(t){var s=t.item;return[a("span",[e._v("\n "+e._s(s.startTime)+" ~ "+e._s(s.endTime)+"\n ")])]}}],null,!0)})],1)]),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-row",{staticClass:"mb-10",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:null===e.groupDetail.groupId||void 0===e.groupDetail.groupId||""===e.groupDetail.groupId},on:{click:function(t){return e.$emit("clickEditGroup",e.groupDetail.groupId)}}},[e._v("編集")])],1)],1)],1)},ry=[],oy=f["a"].extend({name:"GroupDetailForm",components:{InfoItem:Wr,TextLink:No},props:{gatesGroup:{default:[]},usersGroup:{default:[]},groupDetail:{default:{}},loading:{type:Boolean,default:!1}},computed:{headerTimes:{get:function(){var e=[{text:"時間帯設定名",align:"start",sortable:!1,width:"20%",value:"name"},{text:"曜日",align:"start",sortable:!0,value:"dayTypeName"},{text:"時間",align:"start",sortable:!0,value:"expand-time"}];return e}}},methods:{tableSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return"dayTypeName"===t[0]?a[0]?e.dayTypeIds.dayTypeId?1:-1:"expand-time"===t[0]?a[0]?e.startTimes.startTime||e.startTime===s.startTime&&e.endTime>s.endTime?1:-1:void 0})),e):e},clickGate:function(e,t){this.$router.push({path:dt,query:{gateId:e,goBack:"group/detail?groupId="+t}})}}}),ny=oy,iy=Object(I["a"])(ny,sy,ry,!1,null,null,null),ly=iy.exports;C()(iy,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VRow:Kr["a"],VSubheader:Yr["a"]});var cy=f["a"].extend({name:"UserGroupListTable",components:{Searchbox:$r,ShowPerPage:mo,SuccessButton:kr,Pagination:xo,DisplayOption:Mo,GroupDetailForm:ly,SelectPerPage:To},props:{groupTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataGroups:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},groupOfGate:{default:function(){return[]}},userList:{default:function(){return[]}},dataTimes:{type:Array,default:function(){return[]}}},data:function(){return{searchTargetItems:[{label:"通行権限グループ名",value:"groupName"}],getDataGroups:[],selectedItem:[],selectedDisplayOption:["groupName","registered"],displayOptionItems:[{label:"通行権限グループ名",value:"groupName",isDisabled:!0}]}},computed:{headers:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!0,value:"name"},{text:"通行権限グループID",align:"start",sortable:!0,value:"groupId"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},watch:{loading:function(){var e=this;this.getDataGroups=this.dataGroups,this.getDataGroups.map((function(e){return e.disable=!1})),this.dataGroups.forEach((function(t,a){var s=e.groupOfGate.some((function(e){var a=e.value;return a===t.groupId}));s&&(e.getDataGroups[a].disable=!0)})),this.selectedItem=[]},selectedItem:function(e){this.$emit("select-groups",e.map((function(e){return e.groupId})))},page:function(){this.selectedItem=[]}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeGroup",e),this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},searchGroup:function(e){this.keyword=e.text,this.scorp=e.targets,this.getListGroups()},getGroupOfGate:function(e,t){var a=this;this.$http.get(Y+"?gateId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&embed=group").then((function(s){s.body.maxRecords>0?(s.body.relationsGateGroup.forEach((function(e){a.groupOfGate.push({text:e.group.name,value:e.groupId})})),s.body.maxRecords>s.body.endRecord?a.getGroupOfGate(e+1,t):a.loading=!1):(a.groupOfGate=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getListGroups:function(){var e=this;return new Promise((function(t,a){var s=H+"?limit="+localStorage.pageSizeGroup+"&page="+e.currPage+"&keyword="+e.keyword+"&scorp="+e.scorp+"&sortKey="+localStorage.groupSortName+":"+localStorage.groupSortKey+"&isValid=true";e.$http.get(s).then((function(a){e.resetData(),e.isEmpty(a.body.groups)?(e.groupTotalCount=0,e.currPage=1):(e.dataGroups=a.body.groups,e.groupTotalCount=a.body.maxRecords,e.currPage=Math.ceil(a.body.startRecord/e.perPage)),t(!0)})).then(null,(function(a){switch(t(!0),a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataGroups=[],this.errorMessageLogs=""}}}),by=vy,yy=Object(I["a"])(by,Zb,Xb,!1,null,null,null),Iy=yy.exports,xy=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("gate-lock-add-user-template",{attrs:{dataUsers:e.dataUsers,userTotalCount:e.userTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,showConfirm:e.showConfirm,userOfGate:e.userOfGate,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,isFinishProcess:e.isFinishProcess,progress:e.progress},on:{"search-user":function(t){return e.searchUser(t)},changePerPage:function(t){return e.changePerPage(t)},clickAddUser:function(t){return e.clickAddUser(t)},clickConfirm:function(t){return e.clickConfirm(t)},clickDelete:function(t){return e.clickDelete(t)},changePage:function(t){return e.changePage(t)},goBackGateLockEdit:function(t){return e.goBackGateLockEdit(t)},closeModalProgress:function(t){return e.closeModalProgress()}}})},Cy=[],wy=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-list-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-div mb-5",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.$emit("goBackGateLockEdit")}}},[e._v("\n 戻る\n ")])],1)],1),e._v(" "),a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{xl:"8",sm:"8"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search",attrs:{searchTargetItems:e.searchTargetItems,title:"選択項目にチェックして検索"},on:{search:function(t){return e.$emit("search-user",t)}}})],1)],1)],1)]),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirm")}}},[e._v("\n 関連付け追加\n ")])],1)],1)],1)],1),e._v(" "),a("gate-lock-user-list-table",{attrs:{userTotalCount:e.userTotalCount,userOfGate:e.userOfGate,dataUsers:e.dataUsers,page:e.page,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-users":function(t){e.selectedUserIds=t}}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("ゲートの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",{staticClass:"pa-4 mb-0"},[a("v-row",[a("v-col",[e._v("\n チェックしたユーザーを追加しますか?\n ")])],1)],1),e._v(" "),a("v-divider"),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e.selectedUserIds.length>0?a("span",[e._v("キャンセル")]):a("span",[e._v("実行")])]),e._v(" "),e.selectedUserIds.length>0?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickAddUser",e.selectedUserIds)}}},[e._v("OK")]):e._e()],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("ユーザーの関連付けを追加")]),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),a("v-divider"),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e._v("OK")])],1)],1):e._e()],1)],1)],1)],1)},ky=[],Sy=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-table"},[a("v-container",[a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1)],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2 mr-2 mt-5",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.userTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,items:e.innerValue,"items-per-page":e.perPage,"item-key":"userId","no-data-text":"データーはありません","hide-default-footer":"","show-select":!0},on:{"update:options":function(t){return e.$emit("change-sort",t)},"item-expanded":function(t){return e.$emit("change-expanded",t)}},scopedSlots:e._u([{key:"item.begin",fn:function(t){var s=t.item,r=t.index;return[a("DateTimePickerFull",{attrs:{dateV:e.dateStart,hourV:"00",secondV:"00",minuteV:"00"},on:{getDateTime:function(t){return e.getBeginDateTime(t,r)}},model:{value:s.begin,callback:function(t){e.$set(s,"begin",t)},expression:"item.begin"}})]}},{key:"item.end",fn:function(t){var s=t.item,r=t.index;return[a("DateTimePickerFull",{attrs:{dateV:e.dateStart,hourV:"23",secondV:"59",minuteV:"59"},on:{getDateTime:function(t){return e.getEndDateTime(t,r)}},model:{value:s.end,callback:function(t){e.$set(s,"end",t)},expression:"item.end"}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.userTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.userTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},_y=[],Py=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("v-row",{attrs:{justify:"center",align:"end"}},[a("v-col",{staticClass:"distance-col",attrs:{cols:"6",pa:"0"}},[a("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","content-class":"background-white","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-add",attrs:{color:"green","prepend-inner-icon":"mdi-calendar",outlined:"",dense:"","hide-details":"auto",disabled:e.isDisable,autocomplete:"off",readonly:""},model:{value:e.dateS,callback:function(t){e.dateS=t},expression:"dateS"}},"v-text-field",r,!1),s))]}}]),model:{value:e.dateStart,callback:function(t){e.dateStart=t},expression:"dateStart"}},[e._v(" "),a("v-date-picker",{attrs:{color:"green","no-title":""},on:{input:function(t){e.dateStart=!1}},model:{value:e.dateS,callback:function(t){e.dateS=t},expression:"dateS"}})],1)],1),e._v(" "),a("v-col",{staticClass:"distance-col",attrs:{cols:"6",pa:"0"}},[a("v-menu",{attrs:{"content-class":"background-white","close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-text-field",e._g(e._b({staticClass:"input-add",attrs:{color:"green",outlined:"",dense:"","prepend-inner-icon":"mdi-clock-time-four-outline","hide-details":"auto",disabled:e.isDisable,autocomplete:"off",readonly:""},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}},"v-text-field",r,!1),s))]}}])},[e._v(" "),a("v-row",{staticClass:"mt-7 mr-7 ml-7 mb-3 text-caption text-sm-caption text-md-caption text-lg-caption text-xl-caption"},[a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.hours,color:"green",outlined:"",dense:"","hide-details":"auto",disabled:e.isDisable},model:{value:e.hour,callback:function(t){e.hour=t},expression:"hour"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.minutes,color:"green",outlined:"",dense:"","full-width":"","hide-details":"auto",disabled:e.isDisable},model:{value:e.minute,callback:function(t){e.minute=t},expression:"minute"}})],1),e._v(" "),a("div",{staticClass:"mt-2 mr-2 ml-2 font-weight-bold"},[e._v(":")]),e._v(" "),a("div",{staticClass:"allig-select"},[a("v-select",{attrs:{items:e.seconds,color:"green",outlined:"",dense:"","full-width":"","hide-details":"auto",disabled:e.isDisable},model:{value:e.second,callback:function(t){e.second=t},expression:"second"}})],1)])],1)],1)],1)],1)},My=[],Ly=[],Dy=0;Dy<=59;Dy++){var Gy="";Gy=Dy<10?"0"+Dy:Dy.toString(),Ly.push(Gy)}var Ay=f["a"].extend({name:"DateTimePickerFull",props:{dateV:{type:String,default:""},minuteV:{type:String,default:""},hourV:{type:String,default:""},secondV:{type:String,default:""},errorAddListGate:{default:""},isDisable:{type:Boolean,default:!1},isUserPage:{type:Boolean,default:!1}},data:function(){return{dateS:"",dateE:"",hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","15","30","45"],seconds:["00","15","30","45"],time:"",dateStart:!1,hour:"00",minute:"00",second:"00",dateTime:""}},mounted:function(){this.minutes=Ly,this.dateS=this.dateV,this.hour=this.hourV,this.minute=this.minuteV,this.second=this.secondV,this.time=this.formatTime(this.hour,this.minute,this.second),this.dateTime=""},watch:{dateTime:function(e){this.time=e,this.$emit("getDateTime",e)},time:function(e){this.time=e,this.$emit("getDateTime",this.dateS+" "+e)},dateS:function(e){this.$emit("getDateTime",e+" "+this.time)},minute:function(e){this.time=this.formatTime(this.hour,e,this.second)},hour:function(e){this.time=this.formatTime(e,this.minute,this.second)},second:function(e){this.time=this.formatTime(this.hour,this.minute,e)}},methods:{formatTime:function(e,t,a){return"".concat(("00"+e).slice(-2),":").concat(("00"+t).slice(-2),":").concat(("00"+a).slice(-2))}}}),Ry=Ay,Ty=(a("d65c"),Object(I["a"])(Ry,Py,My,!1,null,"f95f088c",null)),Ey=Ty.exports;C()(Ty,{VCol:Dr["a"],VDatePicker:Gd["a"],VMenu:Un["a"],VRow:Kr["a"],VSelect:_o["a"],VTextField:Tr["a"]});new Date;var Oy=f["a"].extend({name:"GateLockUserListTable",components:{Searchbox:$r,ShowPerPage:mo,SuccessButton:kr,Pagination:xo,DisplayOption:Mo,SelectPerPage:To,DateTimePickerFull:Ey},props:{userTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataUsers:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},dataTimes:{type:Array,default:function(){return[]}}},data:function(){return{searchTargetItems:[{label:"通行権限グループ名",value:"name"}],selectedItem:[],selectedDisplayOption:["name","registered"],displayOptionItems:[{label:"通行権限グループ名",value:"name",isDisabled:!0}],dateStart:(new Date).toISOString().substr(0,10),second:"",hour:"",minute:"",time:""}},computed:{headers:{get:function(){var e=[{text:"ユーザーID",align:"start",sortable:!0,value:"userId"},{text:"ユーザー名",align:"start",sortable:!0,value:"name"},{text:"開始日時",align:"start",value:"begin"},{text:"終了日時",align:"start",value:"end"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}},innerValue:{get:function(){return this.dataUsers.map((function(e,t){var a={name:e.name,userId:e.userId,begin:e.begin,end:e.end,index:t};return a}))}}},watch:{selectedItem:function(e){console.log(e),this.$emit("select-users",e.map((function(e){return e})))}},methods:{getBeginDateTime:function(e,t){this.innerValue[t].begin=e},getEndDateTime:function(e,t){this.innerValue[t].end=e},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0?100/t.totalDataRowProcess:0,r=t.$route.query,void 0===r.gateId||""===r.gateId||null===r.gateId){a.next=38;break}if(0!==t.totalDataRowProcess){a.next=15;break}t.successItemProcess++,t.progress=100,a.next=37;break;case 15:o=Object(rr["a"])(e),a.prev=16,o.s();case 18:if((n=o.n()).done){a.next=29;break}return i=n.value,l=void 0,c={gateId:r.gateId,userId:i.userId,notBefore:t.formatTimestamp(i.begin),notAfter:t.formatTimestamp(i.end)},a.next=24,t.postUser(c,i.userId);case 24:l=a.sent,l&&t.successItemProcess++,t.progress+=s;case 27:a.next=18;break;case 29:a.next=34;break;case 31:a.prev=31,a.t0=a["catch"](16),o.e(a.t0);case 34:return a.prev=34,o.f(),a.finish(34);case 37:t.isFinishProcess=!0;case 38:case"end":return a.stop()}}),a,null,[[16,31,34,37]])})))()},postUser:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(ee,e).then((function(e){"Success"===e.body.message?s(!0):s(!1)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r=aa;break;case 409:r=ga;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},getUserOfGate:function(e,t){var a=this;this.$http.get(ee+"?gateId="+encodeURIComponent(t)+"&limit=1000&page="+e).then((function(s){s.body.maxRecords>0?(s.body.passages.forEach((function(e){a.userOfGate.push({text:e.userId,value:e.userId,notAfter:e.notAfter,notBefore:e.notBefore})})),s.body.maxRecords>s.body.endRecord?a.getUserOfGate(e+1,t):a.loading=!1):(a.userOfGate=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeUser",e),this.loading=!0,this.getListUsers().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.loading=!0,this.getListUsers().then((function(){t.loading=!1}))},searchUser:function(e){var t=this;this.keyword=e.text,this.scorp=e.targets,this.loading=!0,this.dataUsers=[],this.getListUsers().then((function(){t.loading=!1}))},waitPush:function(){return new Promise((function(e,t){setTimeout((function(){e(!0)}),500)}))},getListUsers:function(){var e=this;return new Promise((function(t,a){var s=T+"?limit="+localStorage.pageSizeUser+"&page="+e.currPage+"&isExceptOptionalUser=true&isValid=true&exclude=thumbnail";""!==e.keyword&&(s+="&keyword="+e.keyword+"&scorp="+e.scorp),e.$http.get(s).then(function(){var a=Object(or["a"])(regeneratorRuntime.mark((function a(s){var r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e.resetData(),r=s.body.users,e.isEmpty(r)){a.next=21;break}o=0;case 4:if(!(o0?a("span",[e._v("キャンセル")]):a("span",[e._v("実行")])]),e._v(" "),e.selectedGroupIds.length>0?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickAddGroup",e.selectedGroupIds)}}},[e._v("実行")]):e._e()],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e._v("OK")])],1)],1):e._e()],1)],1)],1)],1)},Zy=[],Xy=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-table"},[a("v-container",[a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1)],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2 mr-2 mt-5",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.groupTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,items:e.getDataGroups,"items-per-page":e.perPage,"item-key":"groupId","no-data-text":"データーはありません","hide-default-footer":"","show-select":!0},on:{"update:options":function(t){return e.$emit("change-sort",t)},"item-expanded":function(t){return e.$emit("change-expanded",t)}},scopedSlots:e._u([{key:"item.isValid",fn:function(t){var s=t.item;return[s.isValid?a("span",[e._v("有効")]):a("span",[e._v("無効")])]}},{key:"item.registered",fn:function(t){var a=t.item;return[e._v("\n "+e._s(e.converDate(a.registered))+"\n ")]}},{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[t.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:t.disable,disabled:t.disable,ripple:!1},on:{input:function(e){return r(e)}}}):a("v-simple-checkbox",{attrs:{value:s,readonly:t.disabled,disabled:t.disabled,ripple:!1},on:{input:function(e){return r(e)}}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.groupTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.groupTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},Qy=[],eI=f["a"].extend({name:"GroupLockListAdd",components:{Searchbox:$r,ShowPerPage:mo,SuccessButton:kr,Pagination:xo,DisplayOption:Mo,GroupDetailForm:ly,SelectPerPage:To},props:{groupTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataGroups:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},groupOfGate:{default:function(){return[]}},userList:{default:function(){return[]}},dataTimes:{type:Array,default:function(){return[]}}},data:function(){return{searchTargetItems:[{label:"通行権限グループ名",value:"groupName"}],getDataGroups:[],selectedItem:[],selectedDisplayOption:["groupName","registered"],displayOptionItems:[{label:"通行権限グループ名",value:"groupName",isDisabled:!0}]}},computed:{headers:{get:function(){var e=[{text:"通行権限グループID",align:"start",sortable:!0,value:"groupId"},{text:"通行権限グループ名",align:"start",sortable:!0,value:"name"},{text:"ステータス",align:"start",sortable:!0,value:"isValid"},{text:"登録日",align:"start",sortable:!0,value:"registered"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},watch:{loading:function(){var e=this;this.getDataGroups=this.dataGroups,this.getDataGroups.map((function(e){return e.disable=!1})),this.dataGroups.forEach((function(t,a){var s=e.groupOfGate.some((function(e){var a=e.value;return a===t.groupId}));s&&(e.getDataGroups[a].disable=!0)})),this.selectedItem=[]},selectedItem:function(e){this.$emit("select-groups",e.map((function(e){return e.groupId})))},page:function(){this.selectedItem=[]}},methods:{converDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeGroup",e),this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},searchGroup:function(e){var t=this;this.keyword=e.text,this.scorp=e.targets,this.dataGroups=[],this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},getGroupOfGate:function(e,t){var a=this;this.$http.get(Y+"?gateId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&embed=group").then((function(s){s.body.maxRecords>0?(s.body.relationsGateGroup.forEach((function(e){a.groupOfGate.push({text:e.group.name,value:e.groupId})})),s.body.maxRecords>s.body.endRecord?a.getGroupOfGate(e+1,t):a.loading=!1):(a.groupOfGate=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getListGroups:function(){var e=this;return new Promise((function(t,a){var s=H+"?limit="+localStorage.pageSizeGroup+"&page="+e.currPage+"&keyword="+e.keyword+"&scorp="+e.scorp+"&sortKey="+localStorage.groupSortName+":"+localStorage.groupSortKey+"&isValid=true";""!==e.keyword&&(s+="&keyword="+e.keyword+"&scorp="+e.scorp),e.$http.get(s).then((function(a){e.resetData(),e.isEmpty(a.body.groups)?(e.groupTotalCount=0,e.currPage=1):(e.dataGroups=a.body.groups,e.groupTotalCount=a.body.maxRecords,e.currPage=Math.ceil(a.body.startRecord/e.perPage)),t(!0)})).then(null,(function(a){switch(t(!0),a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataGroups=[],this.errorMessageLogs=""}}}),cI=lI,uI=Object(I["a"])(cI,qy,Wy,!1,null,null,null),dI=uI.exports,gI=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("group-list-template",{attrs:{dataGroups:e.dataGroups,groupTotalCount:e.groupTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,loadingAff:e.loadingAff,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,typeAction:e.typeAction,showProgress:e.showProgress,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,progress:e.progress,isFinishProcess:e.isFinishProcess,showConfirm:e.showConfirm,isRemoveGroupSelected:e.isRemoveGroupSelected,isGetDataList:e.isGetDataList,groupExpanedGate:e.groupExpanedGate,isReRenderGate:e.isReRenderGate,isRemoveGateSelected:e.isRemoveGateSelected,groupExpanedUser:e.groupExpanedUser,isReRenderUser:e.isReRenderUser,isRemoveUserSelected:e.isRemoveUserSelected,dataGroup:e.dataGroup,groupList:e.groupList,departments:e.departments,users:e.users,userList:e.userList,gateList:e.gateList,dataRelationDepartmentGroup:e.dataRelationDepartmentGroup,dataRelationUserGroup:e.dataRelationUserGroup,dataGatePass:e.dataGatePass,authority:e.authority,optionDepartments:e.optionDepartments,tabClicked:e.tabClicked},on:{changePerPage:function(t){return e.changePerPage(t)},clickAddGroup:function(t){return e.clickAddGroup()},clickEditGroup:function(t){return e.clickEditGroup(t)},changePage:function(t){return e.changePage(t)},"search-group":function(t){return e.searchGroup(t)},clickGroupDetail:function(t){return e.clickGroupDetail(t)},"click-groups-action":function(t){return e.clickGroupsAction()},closeModalProgress:function(t){return e.closeModalProgress()},"show-dialog-confirm":function(t){return e.showDialogConfirm(t)},"close-dialog-confirm":function(t){return e.closeDialogConfirm()},"change-expanded-group":function(t){return e.changeExpandedGroup(t)},"change-page-gate":function(t){return e.changePageGate(t)},"change-page-user":function(t){return e.changePageUser(t)},"show-only-isVaild":function(t){return e.ShowOnlyIsVaild(t)},changeTab:function(t){return e.changeTab(t)},clickTab:function(t){return e.clickTab(t)},"load-list-aff":function(t){return e.loadListAff(t)},"change-page-aff":function(t){return e.loadListAff(t)},"add-aff-to-group":function(t){return e.addAffToGroup(t)},"remove-aff-to-group":function(t){return e.removeAffToGroup(t)},"load-users":function(t){return e.getUserAgain(t)},"add-gate":function(t){return e.addGate(t)},"remove-gate-pass":function(t){return e.removeGatePass(t)},"load-gates":function(t){return e.loadGatePass(t)},"loading-from-child":function(t){return e.$emit("loading",t)},"click-EditGate":function(t){return e.clickEditGate(t)},"remove-user-to-group":function(t){return e.removeUserToGroup(t)},"change-groupId":function(t){return e.changeGroupId(t)},"load-passable-time-setting":function(t){return e.loadPassableTime(t)},"load-groupId":function(t){return e.loadGroupId(t)},"search-user-group-passage":function(t){return e.searchUserGroupPassage(t)},getDepartmentGroup:function(t){return e.getDepartmentGroup(t)},"close-modal-add":function(t){return e.closeModalAdd(t)},"close-modal-add-aff":function(t){return e.closeModalAddAff(t)},"change-page-users":function(t){return e.changePageUsers(t)},getDepartmentUserValid:function(t){return e.getDepartmentUserValid(t)},loadingCircle:function(t){return e.$emit("loadingCircle",t)},textCircle:function(t){return e.$emit("textCircle",t)},"change-page-temporary":function(t){return e.changePageTemporary(t)}}})},pI=[],mI=(a("5ded"),a("2909")),fI=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-list-template"},[a("breadcrumbs",{staticClass:"mb-0",attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",{staticClass:"pa-0",staticStyle:{position:"relative"}},[e.isLoading?a("v-overlay",{staticClass:"overlay-group-tab",attrs:{absolute:"",value:e.isLoading,color:"white"}},[a("v-progress-circular",{staticClass:"user-loading-progress",attrs:{indeterminate:"",color:"green"}})],1):a("v-overlay",{staticClass:"overlay-group-tab",attrs:{absolute:"",value:e.dataGroup.loading,color:"white"}},[a("v-progress-circular",{staticClass:"user-loading-progress",attrs:{indeterminate:"",color:"green"}})],1),e._v(" "),a("div",{staticClass:"container-group"},[a("v-container",[a("div",[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 通行権限グループ情報\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 "},[a("div",{staticClass:"info-item font-default"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col col-6"},[a("div",{staticClass:"title-display-block"},[e._v("通行権限グループ名 ")]),e._v(" "),e.groupList.length>0?a("div",{staticClass:"weight-bold"},[e._v(" "+e._s(e.groupList[0].name)+" ")]):e._e()]),e._v(" "),a("div",{staticClass:"col col-6"},[a("div",{staticClass:"title-display-block"},[e._v("ステータス ")]),e._v(" "),e.groupList.length>0?a("div",{staticClass:"weight-bold"},[e._v(" "+e._s(e.groupList[0].isValid?"有効":"無効")+" ")]):e._e()])])])])],1)]),e._v(" "),a("v-container",[a("div",{staticClass:"round-tab round-group-tab"},[[a("v-tabs",{attrs:{transition:!1},on:{change:function(t){return e.clickTab(e.tab,e.groupItem)}},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab",{key:t.tabname,staticClass:"log-tab"},[e._v("\n "+e._s(t.title)+"\n ")])})),1)],e._v(" "),a("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab-item",{key:t.tabname,attrs:{transition:!1,"reverse-transition":!1}},["tab1"===t.tabname?a("v-card",[""===e.groupItem?a("v-container",{staticClass:"pa-0"},[a("gate-list-table",{attrs:{gateExpanedUser:new Map,gateExpanedGroup:new Map,errorMessageImport:[],authority:e.authority,gateTotalCount:0,dataGates:[],page:1,perPage:25,isDisable:!0}})],1):e._e(),e._v(" "),""!==e.groupItem?a("gate-list-page",{attrs:{isAdminOfRemoteUnlock:e.dataGroup.isAdminOfRemoteUnlock,"tab:":e.tab,groupId:e.groupItem,isAdminOfUnlockingTimeSetting:e.dataGroup.isAdminOfUnlockingTimeSetting},on:{"close-modal-control":function(t){return e.loadGroupId(e.groupItem)},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},loading:function(t){return e.loadingFromChild(t)},clickGroupDetail:function(t){return e.clickGroupDetail(t)}}}):e._e()],1):e._e(),e._v(" "),"tab2"===t.tabname?a("v-card",[a("AffiliationAllowedTable",{attrs:{isPage:"group",isAdminOfGroupPassages:e.dataGroup.isAdminOfGroupPassages,authority:e.authority,optionDepartments:e.optionDepartments,dataList:void 0!==e.dataGroup.department?e.dataGroup.department.data:[],loading:e.dataGroup.department.loading,loadingAff:e.loadingAff,departments:e.departments,dataRelationDepartmentGroup:e.dataRelationDepartmentGroup},on:{"load-list-aff":function(t){return e.$emit("load-list-aff",1)},"close-modal":function(t){e.$emit("load-list-aff",1),e.$emit("getDepartmentGroup",e.groupItem)},"load-aff-again":function(t){return e.$emit("getDepartmentGroup",e.groupItem)},"change-page-aff":function(t){return e.$emit("change-page-aff",t)},"add-aff-to-group":function(t){return e.$emit("add-aff-to-group",{groupId:e.groupItem,aff:t})},"remove-aff-to-group":function(t){return e.$emit("remove-aff-to-group",{groupId:e.groupItem,aff:t})},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},"back-group-detail":function(t){return e.clickGroupDetail(t)},"close-modal-add":function(t){return e.$emit("close-modal-add-aff",e.groupItem)}}}),e._v(" "),a("UsersAllowedTable",{attrs:{isAdminOfGroupPassages:e.dataGroup.isAdminOfGroupPassages,groupId:e.groupItem,authority:e.authority,dataList:void 0!==e.dataGroup.groupPassages?e.dataGroup.groupPassages.data:[],dataGroupPassages:void 0!==e.dataGroup.groupPassages?e.dataGroup.groupPassages:[],loading:void 0!==e.dataGroup.groupPassages&&e.dataGroup.groupPassages.loading,totalCount:void 0!==e.dataGroup.groupPassages.total?e.dataGroup.groupPassages.total:0,perPage:void 0!==e.dataGroup.groupPassages.perPage?e.dataGroup.groupPassages.perPage:25,page:void 0!==e.dataGroup.groupPassages.page?e.dataGroup.groupPassages.page:1,isPage:"group",dataRelationUser:e.dataRelationUserGroup},on:{"load-users":function(t){return e.$emit("load-users",e.groupItem)},"remove-user-to-group":function(t){return e.$emit("remove-user-to-group",{groupId:e.groupItem,users:t})},"close-modal-add":function(t){return e.closeModalAdd(t)},"change-page":function(t){return e.$emit("change-page-users",{groupId:e.groupItem,$event:t})},"search-user":function(t){return e.$emit("search-user-group-passage",{groupId:e.groupItem,data:t})},getDepartmentUserValid:function(t){return e.$emit("getDepartmentUserValid",{groupId:e.groupItem,$event:t})},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},"load-group":function(t){return e.loadGroupId(t)}}})],1):e._e(),e._v(" "),"tab3"===t.tabname?a("v-card",[a("TimePeriodAllowed",{attrs:{authority:e.authority,dataList:void 0!==e.dataGroup.passableTimeSetting?e.dataGroup.passableTimeSetting:[],passableName:void 0!==e.dataGroup.passableName?e.dataGroup.passableName:"",loading:e.dataGroup.loading,groupId:e.groupItem},on:{loadingCircle:function(t){return e.$emit("loadingCircle",t)},textCircle:function(t){return e.$emit("textCircle",t)},"click-EditGate":function(t){return e.$emit("click-EditGate",t)},"close-modal":function(t){return e.$emit("load-passable-time-setting",e.groupItem)},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},"go-time-settings":e.goTimeSettings}})],1):e._e(),e._v(" "),"tab4"===t.tabname?a("v-card",[3===e.tab?a("TemporaryAccessAuthority",{attrs:{authority:e.authority,isAdminOfGatePassages:e.dataGroup.isAdminOfGatePassages,gateList:e.gateList,userList:e.userList,errorMessageLogs:e.errorMessageLogs,dataRealtionsGateList:e.dataGroup.realtionsGateList,dataGatePass:e.dataGatePass,loading:void 0!==e.dataGroup.realtionsGateList&&e.dataGroup.realtionsGateList.loading},on:{"add-gate":function(t){return e.$emit("add-gate",t)},"load-gates":function(t){return e.$emit("load-gates",1)},"remove-gate-pass":function(t){return e.$emit("remove-gate-pass",t)},"change-page":function(t){return e.$emit("change-page-temporary",t)},"remove-gate-pass-item":function(t){return e.$emit("remove-gate-pass",t)}}}):e._e()],1):e._e()],1)})),1)],2)])],1)],1),e._v(" "),a("Modal",{attrs:{title:"全ての通行権限グループ一覧","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){return e.closePageModal(e.isLoadData)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShow?a("GroupListModalPage",{on:{loadingCircle:function(t){return e.$emit("loadingCircle",t)},textCircle:function(t){return e.$emit("textCircle",t)},isLoad:function(t){return e.getIsLoad(t)},"go-time-settings":e.goTimeSettings,"click-group-detail":function(t){return e.clickGroupDetail(t)},"close-page-modal":function(t){return e.closePageModal(t)},loading:function(t){return e.$emit("loading-from-child",t)}}}):e._e()]},proxy:!0}]),model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}}),e._v(" "),a("Modal",{attrs:{title:"全てのゲート一覧","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){e.isShowGate=!1,e.closePageModal(e.isLoading)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowGate?a("gate-list-page",{attrs:{inPage:"modal-group",groupId:"no-id"},on:{"close-modal-page-from-add":function(t){e.isShowGate=!1,e.closePageModal(!0)},"close-modal-control":function(t){return e.getIsLoad(t)},loading:function(t){return e.$emit("loading-from-child",t)},clickGroupDetail:function(t){return e.clickGroupDetail(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isShowGate,callback:function(t){e.isShowGate=t},expression:"isShowGate"}})],1)},hI=[],vI=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-table"},[a("v-container",{staticClass:"pa-0"},[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1),e._v(" "),a("v-row",{staticClass:"mt-3 border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-8 mb-3",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.groupTotalCount}}),e._v(" "),a("v-spacer"),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption mr-8",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",{staticClass:"mb-3"},[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),a("v-row",{staticClass:"pt-0 pb-0 mt-0"},[a("v-container",{staticClass:"pt-0"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.isGetDataList,isVaildOnly:e.isVaildOnly},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},input:function(t){return e.CheckColumn(t)}},model:{value:e.selectedDisplayOption,callback:function(t){e.selectedDisplayOption=t},expression:"selectedDisplayOption"}})],1)],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table",attrs:{"must-sort":"",headers:e.headers,items:e.dataGroups,"items-per-page":e.perPage,"item-key":"groupId","no-data-text":"データーはありません",loading:e.isGetDataList,"loading-text":"データを読み込中です","hide-default-footer":"","show-select":!0,"show-expand":"","single-expand":"","custom-sort":e.customSort,expanded:e.expanded},on:{"update:options":function(t){return e.$emit("change-sort",t)},"item-expanded":function(t){return e.$emit("change-expanded-group",t)},"update:expanded":function(t){e.expanded=t}},scopedSlots:e._u([{key:"item.groupId",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.groupId},on:{click:function(t){return e.$emit("click-group-detail",s.groupId)}}})]}},{key:"item.name",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.name))])]}},{key:"item.registered",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.convertDate(s.registered)))])]}},{key:"item.isValid",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isValid?"有効":"無効")+"\n ")]}},{key:"item.passableTimeSetting.name",fn:function(t){var s=t.item;return[void 0!==s.passableTimeSetting?a("span",[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("div",e._g(e._b({staticClass:"titlePassableTime",attrs:{elevation:"0"}},"div",o,!1),r),[e._v("\n "+e._s(s.passableTimeSetting.name)+"\n ")])]}}],null,!0)},[e._v(" "),a("v-data-table",{attrs:{headers:e.headerTimes,"items-per-page":-1,items:void 0!==s.passableTimeSetting&&null!==s.passableTimeSetting?s.passableTimeSetting.timeSettings:[],"item-key":"item.passableTimeSetting.timeSettings.dayTypeId","no-data-text":"該当するデータがありません","hide-default-footer":""},scopedSlots:e._u([{key:"item.expand-time",fn:function(t){var s=t.item;return[a("span",[e._v("\n "+e._s(s.startTime)+" ~ "+e._s(s.endTime)+"\n ")])]}}],null,!0)})],1)],1):e._e()]}},{key:"item.data-table-expand",fn:function(t){var s=t.expand,r=t.item,o=t.isExpanded;return[a("v-tooltip",{attrs:{bottom:"",disabled:o},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,i=t.attrs;return[a("v-btn",e._g(e._b({attrs:{color:"white",elevation:"0"},on:{click:function(e){return s(!o)}}},"v-btn",i,!1),n),[a("span",{staticClass:"item-count"},[a("v-icon",[e._v("mdi-account")]),e._v("\n "+e._s(r.userCount)+"\n ")],1),e._v(" "),a("span",{staticClass:"mr-5 item-count"},[a("v-icon",[e._v("mdi-door")]),e._v("\n "+e._s(r.gateCount)+"\n ")],1)])]}}],null,!0)},[e._v(" "),a("span",{staticClass:"text-caption"},[e._v("通行権限グループ内容を開く")])]),e._v(" "),a("transition",{attrs:{name:"expand-icon"}},[o?a("v-icon",[e._v("mdi-chevron-down")]):e._e()],1)]}},{key:"item.icons",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){e.$emit("show-dialog-confirm",{data:[s.groupId],type:!0===s.isValid?1:0})}}},"v-btn",o,!1),r),[s.isValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-account-multiple-check")]):a("v-icon",[e._v("mdi-account-multiple-outline")])],1)]}}],null,!0)},[e._v("\n "+e._s(s.isValid?"有効":"無効")+"\n ")]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditGroup",s.groupId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("通行権限グループ編集")])])]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{attrs:{colspan:s.length}},[a("gate-of-group-table",{attrs:{groupExpanedGate:e.groupExpanedGate,groupId:r.groupId,isReRenderGate:e.isReRenderGate,isRemoveGateSelected:e.isRemoveGateSelected},on:{"change-page-gate":function(t){return e.$emit("change-page-gate",t)},"show-dialog-confirm":function(t){return e.$emit("show-dialog-confirm",t)}}}),e._v(" "),a("user-of-group-table",{attrs:{groupExpanedUser:e.groupExpanedUser,groupId:r.groupId,isReRenderUser:e.isReRenderUser,isRemoveUserSelected:e.isRemoveUserSelected},on:{"change-page-user":function(t){return e.$emit("change-page-user",t)},"show-dialog-confirm":function(t){return e.$emit("show-dialog-confirm",t)}}})],1)]}}],null,!0),model:{value:e.groupSelected,callback:function(t){e.groupSelected=t},expression:"groupSelected"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.groupTotalCount,disabled:e.isGetDataList},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.groupTotalCount/e.perPage),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},bI=[],yI=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-gate-table"},[a("v-container",[a("v-row",{staticClass:"mt-2 mb-1 ml-5 mr-5",attrs:{justify:"space-between"}},[e.groupExpanedGate.has(e.groupId)?a("div",{staticClass:"allig-title mt-1"},[e._v("\n "+e._s("ゲート一覧(全"+e.groupExpanedGate.get(e.groupId).data.length+"件)")+"\n ")]):a("div",{staticClass:"allig-title mt-1"},[e._v("\n "+e._s("ゲート一覧 (全0件)")+"\n ")]),e._v(" "),a("div",[e.authority.isAdmin?a("v-row",{staticClass:"mt-0"},[a("v-btn",{staticClass:"btn-primary",on:{click:function(t){return e.clickJoinUser(e.groupId)}}},[e._v("\n 関連付け追加\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-secondary",attrs:{disabled:0===e.selectedItem.length},on:{click:function(t){return e.$emit("show-dialog-confirm",{data:e.selectedItem,type:3,groupId:e.groupId})}}},[e._v("\n 関連付け解除\n ")])],1):e._e()],1)]),e._v(" "),e.groupExpanedGate.has(e.groupId)&&""!==e.groupExpanedGate.get(e.groupId).errorMgs?a("v-col",{staticClass:"mt-5 font-weight-bold bg-error"},[e._v("\n "+e._s(e.groupExpanedGate.get(e.groupId).errorMgs)+"\n ")]):e._e(),e._v(" "),a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"mt-4 ml-4 mb-2",attrs:{"per-page":25,page:e.groupExpanedGate.has(e.groupId)?e.groupExpanedGate.get(e.groupId).currPageGate:1,"items-length":e.groupExpanedGate.has(e.groupId)?e.groupExpanedGate.get(e.groupId).totalGateCount:0}})],1),e._v(" "),a("v-divider"),e._v(" "),a("v-data-table",{staticClass:"border-table ",attrs:{"must-sort":"","custom-sort":e.customSort,loading:!!e.groupExpanedGate.has(e.groupId)&&e.groupExpanedGate.get(e.groupId).isGetDataGate,headers:e.headers,items:e.groupExpanedGate.has(e.groupId)?e.groupExpanedGate.get(e.groupId).data:[],"items-per-page":25,"no-data-text":"該当するゲートがありません","loading-text":"データを読み込中です","hide-default-footer":"",dense:"","show-select":!!e.authority.isAdmin,"item-key":"relationId"},scopedSlots:e._u([{key:"item.gate.gateId",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.gate.gateId))])]}},{key:"item.gate.name",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.gate.name))])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil((e.groupExpanedGate.has(e.groupId)?e.groupExpanedGate.get(e.groupId).totalGateCount:0)/25),disabled:!!e.groupExpanedGate.has(e.groupId)&&e.groupExpanedGate.get(e.groupId).isGetDataGate},on:{input:function(t){e.changePage(e.groupExpanedGate.get(e.groupId).currPageGate)}},model:{value:e.groupExpanedGate.get(e.groupId).currPageGate,callback:function(t){e.$set(e.groupExpanedGate.get(e.groupId),"currPageGate",t)},expression:"groupExpanedGate.get(groupId).currPageGate"}})],1)],1)],1)},II=[],xI=f["a"].extend({name:"GroupGateTable",components:{Pagination:xo,ShowPerPage:mo,TextLink:No},props:{groupExpanedGate:{type:Map,default:new Map},groupId:{default:""},isReRenderGate:{default:0},isRemoveGateSelected:{default:0},authority:{type:Object,default:{}}},data:function(){return{selectedItem:[]}},computed:{headers:{get:function(){var e=[{text:"ゲートID",align:"start",sortable:!0,value:"gate.gateId"},{text:"ゲート名",align:"start",sortable:!0,value:"gate.name"}];return e}}},watch:{isReRenderGate:function(e){this.$forceUpdate()},isRemoveGateSelected:function(e){this.selectedItem=[]}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return"gate.gateId"===t[0]?a[0]?s.gate.gateId=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataRelationUser.progressLoad,callback:function(t){e.$set(e.dataRelationUser,"progressLoad",t)},expression:"dataRelationUser.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataRelationUser.progressLoad))+"%")])]),e._v(" "),e.dataRelationUser.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataRelationUser.total)+"件中"+e._s(e.dataRelationUser.successItem)+" "),"add"===e.type?a("span",[e._v("件を追加しました。")]):a("span",[e._v("件を削除しました。")])]):e._e(),e._v(" "),e.dataRelationUser.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataRelationUser.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataRelationUser.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeModalUser(e.dataRelationUser.successItem>0)}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:"group"===e.isPage?"チェックしたユーザーを通行権限グループから削除":"チェックしたユーザーを削除",smallScreen:"600",text:"ユーザーを削除します。",className:"common-modal"},on:{close:function(t){e.isConfirm=!1}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"削除"},on:{click:function(t){return e.removeUser(e.idSelected)}}})]},proxy:!0}]),model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}})],1)])},OI=[],VI=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("div",{staticClass:"allig-reflection-card-table"},[a("h3",{staticClass:"mt-5 mb-5"},[e._v("その他の通行可能ユーザー")]),e._v(" "),a("div",{staticClass:"round-action"},["UsersAllowedTable"===e.isPage?a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{md:"4",xl:"5"}}),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-10"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}}),e._v(" "),a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.idSelected.length},on:{click:function(t){return e.$emit("add-user",e.idSelected)}}},[e._v("\n 他のユーザーを追加する\n ")])],1)],1)])],1)],1):a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{md:"4",xl:"5"}}),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-10"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}}),e._v(" "),a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.idSelected.length},on:{click:function(t){return e.$emit("add-user-to-group",e.idSelected)}}},[e._v("\n 他のユーザーを追加する\n ")])],1)],1)])],1)],1),e._v(" "),a("v-row",{staticClass:"mt-3 border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-8 mb-3",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.totalCount}}),e._v(" "),a("v-spacer")],1)],1),e._v(" "),a("div",{staticClass:"round-data"},[a("v-data-table",{staticClass:"border-table scroll-table table-no-bg",attrs:{"must-sort":"",headers:e.headers,items:e.dataList,"items-per-page":e.perPage,"item-key":"userId","no-data-text":"データーはありません","loading-text":"データを読み込中です",loading:e.loading,"hide-default-footer":"","show-select":!0,"custom-sort":e.customSort},scopedSlots:e._u([{key:"item.userId",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.user.userId))])]}},{key:"item.userName",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.user.name},on:{click:function(t){e.isShowUserDetail=!0}}})]}}],null,!0),model:{value:e.idSelected,callback:function(t){e.idSelected=t},expression:"idSelected"}},[e._v(">\n ")])],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.totalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.totalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)])},UI=[],$I=f["a"].extend({name:"UsersListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No},watch:{idSelected:function(e){this.$emit("select-pcodes",e.map((function(e){return e.pCodeId})))},isFinishProcessEnable:function(e){e&&(this.idSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))}},props:{typeItems:{type:Array,default:function(){return[]}},totalCount:{type:Number,default:0},isPage:{type:String,default:""},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dataList:{default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},isFinishProcessEnable:{type:Boolean,default:!1}},mounted:function(){"undefined"===typeof localStorage.displayOptionPCode?localStorage.setItem("displayOptionPCode",JSON.stringify(this.selectedDisplayOption)):this.selectedDisplayOption=JSON.parse(localStorage.displayOptionPCode)},computed:{headers:{get:function(){var e=[{text:"ユーザー名",align:"start",sortable:!0,width:"20%",value:"name"}];return this.selectedDisplayOption.includes("userId")&&e.push({text:"ユーザーID",align:"start",sortable:!0,value:"userId"}),this.selectedDisplayOption.includes("type")&&e.push({text:"カード種別",align:"start",sortable:!0,value:"type"}),this.selectedDisplayOption.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!0,value:"registered"}),this.selectedDisplayOption.includes("updated")&&e.push({text:"更新日",align:"start",sortable:!0,value:"updated"}),this.selectedDisplayOption.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!0,value:"isValid"}),e.push({text:"",align:"end",sortable:!1,width:"150px",value:"icons"}),e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{isShow:!1,isShowUserDetail:!1,selectedDisplayOption:["userId","userName"],displayOptionItems:[{label:"カード番号",value:"pCodeId",isDisabled:!0},{label:"名称",value:"name"},{label:"ユーザーID",value:"userId"},{label:"ユーザー名",value:"userName"},{label:"カード種別",value:"type"},{label:"登録日",value:"registered"},{label:"更新日",value:"updated"},{label:"ステータス",value:"isValid"}],idSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard}},methods:{CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0&&e.pCodeAddFail.length>0&&e.gateAddFail.length>0?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[e.isEdit?a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_EDIT_USER_1.replace("GROUP_NAME",e.groupsAddFail.toString()).replace("GATE_NAME",e.gateAddFail.toString()).replace("CARD_NAME",e.pCodeAddFail.toString()))}}):a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_ADD_USER_1.replace("GROUP_NAME",e.groupsAddFail.toString()).replace("GATE_NAME",e.gateAddFail.toString()).replace("CARD_NAME",e.pCodeAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.groupsAddFail.length>0&&0===e.pCodeAddFail.length&&0===e.gateAddFail.length?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[e.isEdit?a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_EDIT_USER_2.replace("GROUP_NAME",e.groupsAddFail.toString()))}}):a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_ADD_USER_2.replace("GROUP_NAME",e.groupsAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&0===e.pCodeAddFail.length&&e.gateAddFail.length>0?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[e.isEdit?a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_EDIT_USER_3.replace("GATE_NAME",e.gateAddFail.toString()))}}):a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_ADD_USER_3.replace("GATE_NAME",e.gateAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&e.pCodeAddFail.length>0&&0===e.gateAddFail.length?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[e.isEdit?a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_EDIT_USER_4.replace("CARD_NAME",e.pCodeAddFail.toString()))}}):a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_ADD_USER_4.replace("CARD_NAME",e.pCodeAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&e.pCodeAddFail.length>0&&e.gateAddFail.length>0?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[e.isEdit?a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_EDIT_USER_5.replace("GATE_NAME",e.gateAddFail.toString()).replace("CARD_NAME",e.pCodeAddFail.toString()))}}):a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_ADD_USER_5.replace("GATE_NAME",e.gateAddFail.toString()).replace("CARD_NAME",e.pCodeAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.groupsAddFail.length>0&&e.pCodeAddFail.length>0&&0===e.gateAddFail.length?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[e.isEdit?a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_EDIT_USER_6.replace("GROUP_NAME",e.groupsAddFail.toString()).replace("CARD_NAME",e.pCodeAddFail.toString()))}}):a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_ADD_USER_6.replace("GROUP_NAME",e.groupsAddFail.toString()).replace("CARD_NAME",e.pCodeAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.groupsAddFail.length>0&&0===e.pCodeAddFail.length&&e.gateAddFail.length>0?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[e.isEdit?a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_EDIT_USER_7.replace("GROUP_NAME",e.groupsAddFail.toString()).replace("GATE_NAME",e.gateAddFail.toString()))}}):a("span",{domProps:{innerHTML:e._s(e.Message.ERROR_ADD_USER_7.replace("GROUP_NAME",e.groupsAddFail.toString()).replace("GATE_NAME",e.gateAddFail.toString()))}})]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.groupsAddFail.length&&0===e.pCodeAddFail.length&&0===e.gateAddFail.length?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-success messageRow",attrs:{cols:"12",align:"left"}},[a("span",{domProps:{innerHTML:e._s(e.successMessageLogs)}})]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-3 bg-error messageRow",attrs:{cols:"12",align:"left"}},[a("span",{domProps:{innerHTML:e._s(e.errorMessageLogs)}})]):e._e()],1):e._e(),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold",class:e.isModal?"ml-2":""},[e._v("\n ユーザー情報\n ")])],1),e._v(" "),a("div",{class:e.isModal?"round-content-scroll":""},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("v-form",{ref:"UserAddForm",attrs:{"lazy-validation":""}},[a("input-form",{attrs:{title:"ユーザーID ※必須",inputType:"text",disabled:e.isEdit,rules:[e.rulesValidate.requiredUserId,e.rulesValidate.validateUserId]},model:{value:e.userInfo.userId,callback:function(t){e.$set(e.userInfo,"userId",t)},expression:"userInfo.userId"}}),e._v(" "),a("input-form",{attrs:{title:"ユーザー名 ※必須",inputType:"text",rules:[e.rulesValidate.requiredName,e.rulesValidate.validateName]},model:{value:e.userInfo.name,callback:function(t){e.$set(e.userInfo,"name",t)},expression:"userInfo.name"}}),e._v(" "),a("input-form",{attrs:{title:"ふりがな",inputType:"text",rules:[e.rulesValidate.validateFurigana]},model:{value:e.userInfo.furigana,callback:function(t){e.$set(e.userInfo,"furigana",t)},expression:"userInfo.furigana"}}),e._v(" "),a("input-form",{attrs:{title:"メールアドレス",inputType:"text",rules:[e.rulesValidate.validateEmail]},model:{value:e.userInfo.email,callback:function(t){e.$set(e.userInfo,"email",t)},expression:"userInfo.email"}}),e._v(" "),a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("所属選択 "),!0===e.authority.isAdminToViewUser&&!1===e.authority.isAdmin?a("span",{staticClass:"required"},[e._v("※必須")]):e._e()])],1):e._e(),e._v(" "),a("v-col",[e.isEdit?a("v-select",{attrs:{items:e.getDepartments,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"","no-data-text":"",rules:[e.rulesValidate.requiredDepartment(e.userDepartmentId,e.authority,e.userInfo.isAdmin,e.listAff)],disabled:!0===e.isGetDepartmentAll||!1===e.authority.isAdmin&&!0===e.authority.isAdminToViewUser,id:"departmentId","menu-props":{contentClass:"v-select-item "},attach:!0},model:{value:e.userDepartmentId,callback:function(t){e.userDepartmentId=t},expression:"userDepartmentId"}}):a("v-select",{attrs:{items:e.getDepartments,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"","no-data-text":"",rules:[e.rulesValidate.requiredDepartment(e.userInfo.departmentId,e.authority,e.userInfo.isAdmin,e.listAff)],disabled:e.isGetDepartmentAll,id:"departmentId","menu-props":{contentClass:"v-select-item "},attach:!0},model:{value:e.userInfo.departmentId,callback:function(t){e.$set(e.userInfo,"departmentId",t)},expression:"userInfo.departmentId"}})],1)],1),e._v(" "),e.isEdit?a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("\n スマートフォン\n ")])],1):e._e(),e._v(" "),a("v-col",[a("v-combobox",{staticClass:"list-phone",attrs:{items:e.phoneItems,multiple:"","deletable-chips":"",chips:"",autocomplete:"off",color:"green","hide-details":"auto",outlined:"",dense:"","search-input":e.searchInput,"menu-props":{contentClass:"v-select-item "},attach:!0},on:{"update:searchInput":function(t){e.searchInput=t},"update:search-input":function(t){e.searchInput=t},change:function(t){return e.updatePhoneTags(t)}},model:{value:e.userInfo.phoneIds,callback:function(t){e.$set(e.userInfo,"phoneIds",t)},expression:"userInfo.phoneIds"}})],1)],1):e._e(),e._v(" "),a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("\n 所有カード\n ")])],1):e._e(),e._v(" "),a("v-col",[a("v-combobox",{staticClass:"list-card",attrs:{id:"id-list-card",items:e.pCodeOptions,multiple:"","deletable-chips":"",chips:"",autocomplete:"off",color:"green","hide-details":"auto",outlined:"",dense:"","search-input":e.searchInput,"menu-props":{contentClass:"v-select-item "},disabled:!1===e.authority.isAdmin&&!1===e.checkShowGate(),attach:!0},on:{"update:searchInput":function(t){e.searchInput=t},"update:search-input":function(t){e.searchInput=t},change:function(t){return e.updateTags(t)}},scopedSlots:e._u([{key:"selection",fn:function(t){return[a("v-chip",e._b({key:JSON.stringify(t.item),attrs:{"input-value":t.selected,disabled:t.disabled,close:""},on:{"click:close":function(e){return t.parent.selectItem(t.item)}}},"v-chip",t.attrs,!1),[e._v("\n "+e._s(t.item.text)+"\n ")])]}},{key:"no-data",fn:function(){return[a("v-list-item",[a("v-list-item-content",[e.authority.isAdmin?a("v-list-item-title",[e._v("\n 選択できるカードがありません。番号を入力後、Enterキー押下で「NFCカード」「テンキー入力」を選択で新規カード追加ができます。\n ")]):a("v-list-item-title",[e._v("\n 選択できるカードがありません。\n ")])],1)],1)]},proxy:!0}]),model:{value:e.userInfo.pCodeIds,callback:function(t){e.$set(e.userInfo,"pCodeIds",t)},expression:"userInfo.pCodeIds"}})],1)],1),e._v(" "),e.authority.isAdmin?a("v-row",[a("v-col",{staticClass:"col-2"},[a("div",{staticClass:"v-subheader theme--light ",attrs:{"data-v-f4f20dd2":""}},[e._v(" 権限")])]),e._v(" "),a("v-col",[a("v-select",{attrs:{items:e.authorityItems,"item-text":"text","item-value":"value","single-line":"",disabled:e.sameUser,color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:"","menu-props":{contentClass:"v-select-item "},id:"isAdmin",attach:!0},on:{change:function(t){return e.changeisAdmin(e.userInfo.isAdmin)}},model:{value:e.userInfo.isAdmin,callback:function(t){e.$set(e.userInfo,"isAdmin",t)},expression:"userInfo.isAdmin"}})],1)],1):e._e(),e._v(" "),null===e.userInfo.isAdmin&&!0===e.authority.isAdmin?a("div",[e.erroMessage.isAff?a("v-row",{staticClass:"error-isAff"},[a("v-col",{staticClass:"col-2 mt-0 mb-0 pb-0 pt-0"},[a("div",{staticClass:"v-subheader theme--light ",attrs:{"data-v-f4f20dd2":""}})]),e._v(" "),a("v-col",{staticClass:"mt-0 mb-0 pb-0 pt-0"},[a("div",{staticClass:"v-messages error--text error-customize"},[e._v("\n カスタマイズ権限の時は一つ以上入力してください。\n ")])])],1):e._e(),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-2 mb-0 pb-0 pt-0"}),e._v(" "),a("v-col",{staticClass:"col-2 mb-0 pb-0 pt-0"},[a("div",{staticClass:"v-subheader theme--light ml-0 pa-0 mt-0 mb-0"},[e._v("所属")])])],1),e._v(" "),e._l(e.listAff,(function(t,s){return a("div",{key:s+1,staticClass:"mt-0"},[a("v-row",[a("v-col",{staticClass:"col-2"},[a("div",{staticClass:"v-subheader theme--light"})]),e._v(" "),a("v-col",{staticClass:"col-2 mt-0",attrs:{sm:"10",lg:"2"}},[a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("v-btn",{attrs:{icon:"",al:""},on:{click:function(t){return e.deleteAff(s)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"10"}},[t.departmentId.text?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(s){var r=s.on,o=s.attrs;return[a("span",e._g(e._b({},"span",o,!1),r),[a("v-combobox",{attrs:{items:e.dataAllow.department,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"","item-text":"text","item-value":"value",outlined:"",dense:"",disabled:!0===e.isGetDepartment||!0===t.disabled,"search-input":t.searchInput,"menu-props":{contentClass:"v-select-item v-select-item-disabled max-width-auto"},attach:!0},on:{change:e.changeDepartment,"update:searchInput":function(a){return e.$set(t,"searchInput",a)},"update:search-input":function(a){return e.$set(t,"searchInput",a)},blur:e.changeDepartmentInput},model:{value:t.departmentId,callback:function(a){e.$set(t,"departmentId",a)},expression:"item.departmentId"}})],1)]}}],null,!0)},[t.departmentId.text?a("span",[e._v(e._s(t.departmentId.text))]):e._e()]):a("v-combobox",{attrs:{items:e.dataAllow.department,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"","item-text":"text","item-value":"value",outlined:"",dense:"",disabled:!0===e.isGetDepartment||!0===t.disabled,"search-input":t.searchInput,"menu-props":{contentClass:"v-select-item v-select-item-disabled max-width-auto"},attach:!0},on:{change:e.changeDepartment,"update:searchInput":function(a){return e.$set(t,"searchInput",a)},"update:search-input":function(a){return e.$set(t,"searchInput",a)},blur:e.changeDepartmentInput},model:{value:t.departmentId,callback:function(a){e.$set(t,"departmentId",a)},expression:"item.departmentId"}})],1)],1)],1),e._v(" "),e.$vuetify.breakpoint.lgAndUp?e._e():a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",{staticClass:"col-8",attrs:{sm:"8",lg:"8"}},[a("v-row",{staticClass:"item-check-box "},[a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"ユーザー閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー追加権限"},model:{value:t.isAdminToAddUser,callback:function(a){e.$set(t,"isAdminToAddUser",a)},expression:"item.isAdminToAddUser"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー編集権限"},model:{value:t.isAdminToEditUser,callback:function(a){e.$set(t,"isAdminToEditUser",a)},expression:"item.isAdminToEditUser"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"カード設定権限"},model:{value:t.isAdminToSetPcodesToUser,callback:function(a){e.$set(t,"isAdminToSetPcodesToUser",a)},expression:"item.isAdminToSetPcodesToUser"}})],1)],1)],1),e._v(" "),a("v-col",{staticClass:"col-2 mt-0 mb-0 pt-0 pb-0",attrs:{cols:"12"}},[e.isShowMsg(e.erroMessage.messageAff,s)?a("v-row",[a("v-col",{staticClass:"col-2 mt-0 mb-0 pt-0 pb-0"},[a("div",{staticClass:"v-subheader theme--light"})]),e._v(" "),a("v-col",{staticClass:"col-2 mt-0 mb-0 pt-0 pb-0",attrs:{cols:"10"}},[a("div",{staticClass:"v-messages error--text"},[a("span",{domProps:{innerHTML:e._s(e.isMsgDepartment(e.erroMessage.messageAff,s))}})])])],1):e._e()],1)],1)],1)})),e._v(" "),a("v-row",{staticClass:"mt-0 pt-0"},[a("v-col",{staticClass:"col-2 pt-0"}),e._v(" "),a("v-col",{staticClass:"col-2 pt-0"},[a("div",{staticClass:"v-subheader theme--light ml-0 pa-0 mt-0 add-button",on:{click:e.addAffiliation}},[e._v(" + 追加する ")])])],1),e._v(" "),a("v-row",{staticClass:"pt-0 mt-0"},[a("v-col",{staticClass:"col-2 mb-0 pb-0 pt-0"}),e._v(" "),a("v-col",{staticClass:"col-2 mb-0 pb-0 pt-0"},[a("div",{staticClass:"v-subheader theme--light ml-0 pa-0 mt-0 mb-0"},[e._v(" 通行権限グループ")])])],1),e._v(" "),e._l(e.listGroup,(function(t,s){return a("v-row",{key:s+1e3,staticClass:"mt-0"},[a("v-col",{staticClass:"col-2"},[a("div",{staticClass:"v-subheader theme--light",attrs:{"data-v-f4f20dd2":""}})]),e._v(" "),a("v-col",{staticClass:"col-2",attrs:{sm:"10",lg:"2"}},[a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("v-btn",{attrs:{icon:"",al:""},on:{click:function(t){return e.deleteGroup(s)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"10"}},[t.groupId.text?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(s){var r=s.on,o=s.attrs;return[a("span",e._g(e._b({},"span",o,!1),r),[a("v-combobox",{attrs:{items:e.dataAllow.group,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"","item-text":"text","item-value":"value",outlined:"",dense:"",disabled:!0===e.isDisabledGroupOptions||!0===t.disabled,"search-input":t.searchInput,"menu-props":{contentClass:"v-select-item-group-permisson max-width-auto"},attach:!0},on:{change:e.changeGroup,"update:searchInput":function(a){return e.$set(t,"searchInput",a)},"update:search-input":function(a){return e.$set(t,"searchInput",a)},blur:e.changeGroupInput},model:{value:t.groupId,callback:function(a){e.$set(t,"groupId",a)},expression:"item.groupId"}})],1)]}}],null,!0)},[t.groupId.text?a("span",[e._v(e._s(t.groupId.text))]):e._e()]):a("v-combobox",{attrs:{items:e.dataAllow.group,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"","item-text":"text","item-value":"value",outlined:"",dense:"",disabled:!0===e.isDisabledGroupOptions||!0===t.disabled,"search-input":t.searchInput,"menu-props":{contentClass:"v-select-item-group-permisson max-width-auto"},attach:!0},on:{change:e.changeGroup,"update:searchInput":function(a){return e.$set(t,"searchInput",a)},"update:search-input":function(a){return e.$set(t,"searchInput",a)},blur:e.changeGroupInput},model:{value:t.groupId,callback:function(a){e.$set(t,"groupId",a)},expression:"item.groupId"}})],1)],1)],1),e._v(" "),e.$vuetify.breakpoint.lgAndUp?e._e():a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",{staticClass:"col-8",attrs:{sm:"8",lg:"8"}},[a("v-row",{staticClass:"item-check-box"},[a("v-col",{attrs:{sm:"6",lg:"2"}},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"ゲート閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"4"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"通行可能所属/ユーザーの設定権限"},model:{value:t.isAdminOfGroupPassages,callback:function(a){e.$set(t,"isAdminOfGroupPassages",a)},expression:"item.isAdminOfGroupPassages"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"4"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"一時通行可能ユーザーの設定権限"},model:{value:t.isAdminOfGatePassages,callback:function(a){e.$set(t,"isAdminOfGatePassages",a)},expression:"item.isAdminOfGatePassages"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"2"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"遠隔解錠権限"},model:{value:t.isAdminOfRemoteUnlock,callback:function(a){e.$set(t,"isAdminOfRemoteUnlock",a)},expression:"item.isAdminOfRemoteUnlock"}})],1),e._v(" "),a("v-col",{staticClass:"d-lg-none",attrs:{sm:"6",lg:"2"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"連続解錠時間設定権限"},model:{value:t.isAdminOfUnlockingTimeSetting,callback:function(a){e.$set(t,"isAdminOfUnlockingTimeSetting",a)},expression:"item.isAdminOfUnlockingTimeSetting"}})],1)],1),e._v(" "),a("v-row",{staticClass:"item-check-box d-none d-lg-flex"},[a("v-col",{attrs:{cols:"auto"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"連続解錠時間設定権限"},model:{value:t.isAdminOfUnlockingTimeSetting,callback:function(a){e.$set(t,"isAdminOfUnlockingTimeSetting",a)},expression:"item.isAdminOfUnlockingTimeSetting"}})],1)],1)],1),e._v(" "),a("v-col",{staticClass:"col-2 mt-0 mb-0 pt-0 pb-0",attrs:{cols:"12"}},[e.isShowMsg(e.erroMessage.messageGroup,s)?a("v-row",[a("v-col",{staticClass:"col-2 mt-0 mb-0 pt-0 pb-0"},[a("div",{staticClass:"v-subheader theme--light"})]),e._v(" "),a("v-col",{staticClass:"col-2 mt-0 mb-0 pt-0 pb-0",attrs:{cols:"10"}},[a("div",{staticClass:"v-messages error--text"},[a("span",{domProps:{innerHTML:e._s(e.isMsgGroup(e.erroMessage.messageGroup,s))}})])])],1):e._e()],1)],1)})),e._v(" "),a("v-row",{staticClass:"mt-0 pt-0 mb-0 pb-0"},[a("v-col",{staticClass:"col-2 pt-0 pb-0"}),e._v(" "),a("v-col",{staticClass:"col-2 pt-0 pb-0"},[a("div",{staticClass:"v-subheader theme--light ml-0 pa-0 mt-0 add-button",on:{click:e.addGroup}},[e._v(" + 追加する ")])])],1)],2):e._e(),e._v(" "),e.authority.isAdmin?a("input-form",{staticClass:"v-input--reverse swicth-all",attrs:{title:"ゲート設定権限",inputType:"switch",disabled:e.sameUser},model:{value:e.userInfo.isPhoneAdmin,callback:function(t){e.$set(e.userInfo,"isPhoneAdmin",t)},expression:"userInfo.isPhoneAdmin"}}):e._e(),e._v(" "),a("input-form",{staticClass:"v-input--reverse swicth-all",attrs:{title:"アプリへのログイン",inputType:"switch",disabled:e.sameUser},model:{value:e.userInfo.isPasswordLoginValid,callback:function(t){e.$set(e.userInfo,"isPasswordLoginValid",t)},expression:"userInfo.isPasswordLoginValid"}}),e._v(" "),!0===e.isNoPasswordUser&&!0===e.userInfo.isPasswordLoginValid?a("input-form",{attrs:{title:"パスワード ※必須",inputType:"password",rules:[e.rulesValidate.validatePassword(e.userInfo.password,e.userInfo.isPasswordLoginValid)]},model:{value:e.userInfo.password,callback:function(t){e.$set(e.userInfo,"password",t)},expression:"userInfo.password"}}):e._e(),e._v(" "),a("v-row",{staticClass:"expand-color"},[!1===e.isModal?a("v-col",{staticClass:"col-2"}):e._e(),e._v(" "),a("v-col",[a("div",{staticClass:"allig-text-link fontsize-title-expand",class:e.isModal?"ml-5":"",on:{click:function(){e.isClickExpandArea=!e.isClickExpandArea}}},[e._v("\n 詳細設定\n "),e.isClickExpandArea?a("v-icon",{attrs:{color:"green",size:"15"}},[e._v("mdi-delta")]):e._e(),e._v(" "),e.isClickExpandArea?e._e():a("v-icon",{attrs:{color:"green",size:"15"}},[e._v("mdi-details")])],1)])],1),e._v(" "),a("v-row",[!1===e.isModal?a("v-col",{staticClass:"col-2"}):e._e(),e._v(" "),a("v-col",[e.isClickExpandArea?a("v-card",{staticClass:"padding-row-expand",class:e.isModal?"ml-5":""},[a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("Web管理画面ログイン時のSMS認証")])],1):e._e(),e._v(" "),a("v-col",[a("v-switch",{class:e.$vuetify.breakpoint.mdAndUp?"mt-2 v-input--reverse swicth-all input-sms":"mt-0 v-input--reverse swicth-all",attrs:{color:"green","hide-details":"auto",inset:"",label:!0===e.userInfo.isMfaSms?"ON":"OFF",disabled:e.isMfa},on:{change:function(t){return e.ChangeValue(t)}},model:{value:e.userInfo.isMfaSms,callback:function(t){e.$set(e.userInfo,"isMfaSms",t)},expression:"userInfo.isMfaSms"}})],1)],1),e._v(" "),a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("電話番号"),a("span",{staticClass:"required"},[e._v("※必須")])])],1):e._e(),e._v(" "),a("v-col",[a("v-text-field",{attrs:{color:"green","hide-details":"auto",outlined:"",dense:"",disabled:!e.checkSMS,rules:[e.rulesValidate.validatePhone(e.userInfo.phoneNumber,e.checkSMS)]},scopedSlots:e._u([{key:"append",fn:function(){return[e._t("text-append")]},proxy:!0}],null,!0),model:{value:e.userInfo.phoneNumber,callback:function(t){e.$set(e.userInfo,"phoneNumber",t)},expression:"userInfo.phoneNumber"}})],1)],1),e._v(" "),a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[e._v("解錠時の二段階認証"),a("br"),e._v("パスワード \n "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}],null,!1,2569386827)},[e._v(" "),a("span",[e._v(" 二段階認証パスワードは、カード+テンキーによる二段階の解錠用パスワードです。"),a("br"),e._v("Lock Proでご利用いただくには、リーダーの設定変更が必要です。")])])],1)],1):e._e(),e._v(" "),a("v-col",[a("v-text-field",{attrs:{color:"green","hide-details":"auto",outlined:"",dense:"",rules:[e.rulesValidate.validatePassCode(e.userInfo.passCode)]},model:{value:e.userInfo.passCode,callback:function(t){e.$set(e.userInfo,"passCode",t)},expression:"userInfo.passCode"}})],1)],1),e._v(" "),e.isEdit&&!0===e.authority.isAdmin?a("div",[a("v-row",{staticClass:"pa-0 mt-0"},[a("div",{staticClass:"col col-3 pd-0 mt-0"},[a("div",{staticClass:"v-subheader theme--light font-weight-bold"},[a("span",[e._v("ログインパスワード変更")])])])]),e._v(" "),a("input-form",{attrs:{title:"新しいパスワード",inputType:"password",rules:[e.rulesValidate.validateNewPassword],disabled:e.sameUser},model:{value:e.userInfo.newPassword,callback:function(t){e.$set(e.userInfo,"newPassword",t)},expression:"userInfo.newPassword"}}),e._v(" "),a("div",{staticClass:"confirm-password"},[a("input-form",{attrs:{title:"新しいパスワード再入力",inputType:"password",rules:[e.rulesValidate.validateConfirmPass(e.userInfo.confirmPassword,e.userInfo.newPassword)],disabled:e.sameUser},model:{value:e.userInfo.confirmPassword,callback:function(t){e.$set(e.userInfo,"confirmPassword",t)},expression:"userInfo.confirmPassword"}})],1),e._v(" "),a("v-row",{staticClass:"pd-0 mt-0"},[a("div",{staticClass:"col col-2 pa-0 mt-0"},[a("div",{staticClass:"v-subheader theme--light"},[a("span")])]),e._v(" "),a("div",{staticClass:"col pa-0 mt-0"},[a("div",{staticClass:"v-subheader theme--light"},[a("span",[a("p",[e._v("ログインパスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください。")])])])])])],1):e._e(),e._v(" "),a("input-form",{staticClass:"v-input--reverse swicth-all",attrs:{title:"鍵共有権限",inputType:"switch",disabled:e.sameUser},model:{value:e.userInfo.shareKeyBeValid,callback:function(t){e.$set(e.userInfo,"shareKeyBeValid",t)},expression:"userInfo.shareKeyBeValid"}}),e._v(" "),a("input-form",{attrs:{title:"備考.1",inputType:"text",rules:[e.rulesValidate.validateOption1]},model:{value:e.userInfo.option1,callback:function(t){e.$set(e.userInfo,"option1",t)},expression:"userInfo.option1"}}),e._v(" "),a("input-form",{attrs:{title:"備考.2",inputType:"text",rules:[e.rulesValidate.validateOption2]},model:{value:e.userInfo.option2,callback:function(t){e.$set(e.userInfo,"option2",t)},expression:"userInfo.option2"}})],1):e._e()],1)],1)],1)],1),e._v(" "),e.authority.isAdmin?a("div",[a("v-row",{staticClass:"mt-3"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 通行可能なゲート\n ")])],1),e._v(" "),e.isEdit?a("v-card",{staticClass:"pt-2 mb-5"},[!1===e.loading?a("ModalPageGroupGate",{attrs:{userName:e.userInfo.name,isPage:"edit-user-group-gate",userId:e.userInfo.userId},on:{"change-page-group":function(t){return e.$emit("change-page-group",t)},loading:function(t){return e.$emit("loading-from-child",t)},"close-popup":function(t){return e.$emit("close-popup",t)},"add-groupIds":function(t){return e.addGroupIds(t)}}}):e._e()],1):a("v-card",{staticClass:"pt-2 mb-5"},[!1===e.loading?a("ModalPageGroupGate",{attrs:{isPage:"add-user-group-gate",userId:"",userName:e.userInfo.name},on:{"change-page-group":function(t){return e.$emit("change-page-group",t)},loading:function(t){return e.$emit("loading-from-child",t)},"select-Ids":function(t){e.selectedIds=t},"select-data-add":function(t){e.addIds=t},"close-popup":function(t){return e.$emit("close-popup",t)}}}):e._e()],1),e._v(" "),a("v-row",{staticClass:"mt-3"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 期限付き解錠可能ゲート\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("v-data-table",{staticClass:"ml-1 border-table table-gate-time",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,items:e.realtionsGateList,"items-per-page":1e3,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"",dense:"","item-value":"value"},scopedSlots:e._u([{key:"item",fn:function(t){return[a("tr",[a("td",[t.item.gate?a("span",[e._v(e._s(t.item.gate.text))]):e._e()]),e._v(" "),a("td",[e._v(" "+e._s(e.formatDateTime(new Date(1e3*t.item.notBefore)))+" ~ "+e._s(e.formatDateTime(new Date(1e3*t.item.notAfter))))]),e._v(" "),a("td",{staticClass:"last-col"},[a("v-row",{attrs:{justify:"center"}},[a("v-btn",{attrs:{icon:"",al:""},on:{click:function(a){return e.deleteGate(t.index)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-trash-can-outline")])],1)],1)],1)])]}}],null,!1,3227956197)},[a("template",{slot:"body.prepend"},[a("tr",{staticClass:"mt-4"},[a("td",[a("v-autocomplete",{staticClass:"input-add",attrs:{items:e.gateList,"return-object":"",color:"green",outlined:"",dense:"","hide-details":"auto","no-data-text":"","menu-props":{contentClass:"v-select-item"}},model:{value:e.itemGate,callback:function(t){e.itemGate=t},expression:"itemGate"}})],1),e._v(" "),a("td",[a("DateTimePicker",{attrs:{errorAddListGate:e.errorAddListGate,isUserPage:!0,dateStartValue:e.dateStartGate,dateEndValue:e.dateEndGate,timeSValue:e.timeStartGate,timeEValue:e.timeEndGate},on:{getNewTimeStart:e.getNewTimeStart,getNewTimeEnd:e.getNewTimeEnd,getNewDateStart:e.getNewDateStart,getNewDateEnd:e.getNewDateEnd}})],1),e._v(" "),a("td",{staticClass:"align-self-center"},[a("v-row",{attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:!(e.gateList.length>0),outlined:""},on:{click:function(t){return e.addGate()}}},[e._v("\n 追加\n ")])],1)],1)]),e._v(" "),""!==e.errorAddListGate&&""===e.errorGate&&""===e.errorTime?a("tr",[a("td",{attrs:{colspan:"3"}},[a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorAddListGate))])])]):e._e(),e._v(" "),""!==e.errorAddListGate||""===e.errorGate&&""===e.errorTime?e._e():a("tr",[a("td",[a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorGate))])]),e._v(" "),a("td",[a("p",{staticClass:"error-special add end-time"},[e._v(e._s(e.errorTime))])])])])],2)],1)],1):e._e(),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",{staticClass:"pa-0",attrs:{align:"right",cols:"12"}},[e.isEdit?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:e.isDisable()},on:{click:function(t){return e.clickUpdateUser()}}},[e._v("\n 保存する\n ")]):a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:e.isDisableRegister()},on:{click:function(t){return e.clickSaveUser()}}},[e._v("\n 登録\n ")]),e._v(" "),!1===e.isModal?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("backUserList",t)}}},[e._v("\n キャンセル\n ")]):e._e()],1)],1),e._v(" "),a("v-row",{attrs:{justify:"end"}},[""!==e.successMessageLogs&&!1===e.loading?a("span",{staticClass:"font-weight-bold bg-success bg-no align-self-center mr-2 mt-5"},[a("span",{domProps:{innerHTML:e._s(e.successMessageLogs)}})]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("span",{staticClass:"font-weight-bold bg-error bg-no align-self-center mr-2 mt-5"},[a("span",{domProps:{innerHTML:e._s(e.errorMessageLogs)}})]):e._e(),e._v(" "),!0===e.erroMessage.isAff&&""===e.successMessageLogs&&""===e.errorMessageLogs?a("span",{staticClass:"font-weight-bold bg-error bg-no align-self-center mr-2 mt-5"},[a("span",[e._v("カスタマイズ権限の時は一つ以上入力してください。")])]):e._e()])],1)],1),e._v(" "),a("Modal",{attrs:{title:"カード種別の選択",smallScreen:"600px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("div",{staticClass:"pa-5"},[a("v-row",{staticClass:"margin-row-option",attrs:{justify:"center"}},[a("v-radio-group",{attrs:{row:""},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[a("v-radio",{staticClass:"radio-item ml-2",attrs:{color:"green-primary",label:"NFCカード",value:"0"}}),e._v(" "),a("v-radio",{staticClass:"radio-item",attrs:{color:"green-primary",label:"テンキー入力",value:"1"}})],1)],1)],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.addPcode()}}})]},proxy:!0}]),model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}}),e._v(" "),a("Modal",{attrs:{title:e.isEdit?"編集したユーザーのメールアドレスへ通知メールを送信しますか?":"作成したユーザーのメールアドレスへ通知メールを送信しますか?",smallScreen:"800px",className:"common-modal"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{staticClass:"mr-2",attrs:{text:"送信する"},on:{click:function(t){return e.yesChoice()}}}),e._v(" "),a("cancel-button",{attrs:{text:"送信しない"},on:{click:function(t){return e.noChoice()}}})]},proxy:!0}]),model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}}),e._v(" "),a("Modal",{attrs:{title:"カード登録",smallScreen:"600px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\n カード番号に半角英字の小文字が含まれております。"),a("br"),e._v("\n 小文字が含まれているとカードが正常に読み込まれません。"),a("br"),e._v("\n 小文字が含まれているかを確認してください。\n ")])])])]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"見直す"},on:{click:function(t){return e.closeDialogConfirm()}}}),e._v(" "),a("error-button",{staticClass:"mr-1 ml-2",attrs:{text:"小文字が含まれていても登録する"},on:{click:function(t){return e.yesChoiceLowerCase()}}})]},proxy:!0}]),model:{value:e.isHasLowerCaseCardNumber,callback:function(t){e.isHasLowerCaseCardNumber=t},expression:"isHasLowerCaseCardNumber"}})],1)},qI=[],WI=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("modal-template",{attrs:{dataModal:e.dataModal,isAction:e.isAction,dataProgress:e.dataProgress,isPage:e.isPage,authority:e.authority,userId:e.userId,userName:e.userName,departmentId:e.departmentId,groupPassages:e.groupPassages,dataAdded:e.dataAdded,loadingParent:e.loadingParent,errorName:e.errorName},on:{"change-page-group":function(t){return e.changePageGroup(t)},"change-per-page-group":function(t){return e.changePerPageGroupAll(t)},"add-group-user":function(t){return e.addGroupToUser(t)},"remove-group-user":function(t){return e.delGroupUser(t)},"close-modal-group":function(t){return e.closeModal()},"select-Ids":function(t){return e.$emit("select-Ids",t)},"add-group-pass":function(t){return e.addGroupPass(t)},"load-all-group":function(t){return e.loadListGroups({perPage:25,page:1})},"change-page-user":function(t){return e.changePageUser(t)},"change-per-page-user":function(t){return e.changePerPageUser(t)},"add-user-to-group":function(t){return e.addUserToGroup(t)},"add-user-to-aff":function(t){return e.addUserToAff(t)},"get-all-group":function(t){return e.getAllGroups(t)},"select-data-add":function(t){return e.$emit("select-data-add",t)},"get-data-add":function(t){return e.getDataAdd(t)},"search-all-user":function(t){return e.searchAllUser(t)},"affiliation-add-item":function(t){return e.$emit("affiliation-add-item-direct",t)},"close-popup":function(t){return e.$emit("close-popup",t)},"remove-group-in-edit":function(t){return e.removeGroupInEdit(t)},"add-group-in-edit":function(t){return e.addGroupInEdit(t)}}})},JI=[],ZI=(a("13d5"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-list-template common-class"},["detail-user-group-gate"===e.isPage||"add-user-group-gate"===e.isPage||"edit-user-group-gate"===this.isPage?a("v-row",{staticClass:"mt-2 mb-1 ml-5 mr-5",attrs:{justify:"space-between",id:"expanded-data"}},[a("div",{staticClass:"allig-title mt-1"}),e._v(" "),!0===e.authority.isAdmin?a("div",[a("v-row",{staticClass:"mt-0",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:!0===e.dataModal.gateOfGroup.loading},on:{click:function(t){return e.showGroup()}}},[e._v("\n 通行権限グループ(ユーザー設定)を追加する\n ")]),e._v(" "),(e.isPage,a("v-btn",{staticClass:"btn-secondary",attrs:{disabled:0===e.selectedGroupIds.length},on:{click:function(t){e.isConfirm=!0,e.type="del"}}},[e._v("\n チェックしたユーザー設定を削除する\n ")]))],1)],1):e._e()]):e._e(),e._v(" "),a("v-container",[a("div",{staticClass:"container-user mt-0 pt-0 mb-0 pb-0"},["group"===e.isPage?a("group-list-modal-table",{attrs:{authority:e.authority,dataModalGroup:e.dataModal.groupAll},on:{"change-page":function(t){return e.$emit("change-page-group",t)},"add-group":function(t){return e.addGroup(t)}}}):e._e(),e._v(" "),"add-user-group-gate"===e.isPage?a("group-gate-table",{attrs:{isPage:e.isPage,userId:"",ExpandedGroup:e.dataModal.gateOfGroup.data.length>0?e.dataModal.gateOfGroup.data:[],pageGroup:void 0!==e.dataModal.gateOfGroup.page?e.dataModal.gateOfGroup.page:1,groupTotalCount:void 0!==e.dataModal.gateOfGroup.total&&e.dataModal.gateOfGroup.total?e.dataModal.gateOfGroup.total:0,loading:void 0!==e.dataModal.gateOfGroup.loading&&e.dataModal.gateOfGroup.loading,groupDetail:[],groupId:"",authority:e.authority,isClear:e.isClear},on:{"select-Ids":function(t){return e.selectIds(t)},"change-page-group":function(t){return e.$emit("change-page-group",t)}}}):e._e(),e._v(" "),"detail-user-group-gate"===e.isPage?a("group-gate-table",{attrs:{loading:void 0!==e.dataModal.gateOfGroup.loading&&e.dataModal.gateOfGroup.loading,isPage:e.isPage,authority:e.authority,userId:e.userId,isClear:e.isClear,ExpandedGroup:e.dataModal.gateOfGroup.data.length>0?e.dataModal.gateOfGroup.data:[],pageGroup:void 0!==e.dataModal.gateOfGroup.page?e.dataModal.gateOfGroup.page:1,groupTotalCount:void 0!==e.dataModal.gateOfGroup.total&&e.dataModal.gateOfGroup.total?e.dataModal.gateOfGroup.total:0,messageSetting:e.dataModal.gateOfGroup.messageSetting,errorName:e.errorName},on:{"select-Ids":function(t){return e.selectIds(t)},"change-page-group":function(t){return e.$emit("change-page-group",t)},"add-group-pass":function(t){return e.$emit("add-group-pass",t)},"close-popup":function(t){return e.$emit("close-popup",t)}}}):"edit-user-group-gate"===e.isPage?a("group-gate-table",{attrs:{loading:void 0!==e.dataModal.gateOfGroup.loading&&e.dataModal.gateOfGroup.loading,isPage:e.isPage,authority:e.authority,userId:e.userId,isClear:e.isClear,ExpandedGroup:e.dataModal.gateOfGroup.data.length>0?e.dataModal.gateOfGroup.data:[],pageGroup:void 0!==e.dataModal.gateOfGroup.page?e.dataModal.gateOfGroup.page:1,groupTotalCount:void 0!==e.dataModal.gateOfGroup.total&&e.dataModal.gateOfGroup.total?e.dataModal.gateOfGroup.total:0,messageSetting:e.dataModal.gateOfGroup.messageSetting},on:{"select-Ids":function(t){return e.selectIds(t)},"change-page-group":function(t){return e.$emit("change-page-group",t)},"close-popup":function(t){return e.$emit("close-popup",t)}}}):"group-load-all-user"===e.isPage||"aff-load-all-user"===e.isPage||"affiliation-add-new"===e.isPage?a("user-list-modal-table",{attrs:{isPage:e.isPage,authority:e.authority,dataModalUser:e.dataModal.userAll,loading:e.dataModal.userAll.loading,loadingParent:e.loadingParent,departmentId:e.departmentId,groupPassages:e.groupPassages,dataAdded:e.dataAdded},on:{"change-page":function(t){return e.$emit("change-page-user",t)},"change-per-page":function(t){return e.$emit("change-per-page-user",t)},"search-all-user":function(t){return e.$emit("search-all-user",t)},"add-user":function(t){return e.addUser(t)}}}):e._e()],1)]),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",["add-user-to-aff"===e.isAction?a("v-card-title",{staticClass:"background-color-green"},[e._v("他のユーザーを追加")]):"del"===e.isAction||"del"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("チェックしたユーザー設定を削除")]):a("v-card-title",{staticClass:"background-color-green"},[e._v("他のユーザーを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataProgress.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataProgress.progressLoad,callback:function(t){e.$set(e.dataProgress,"progressLoad",t)},expression:"dataProgress.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataProgress.progressLoad))+"%")])]),e._v(" "),"add"===e.type&&e.dataProgress.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataProgress.total)+"件中"+e._s(e.dataProgress.successItem)+" 件を追加しました。")]):"del"===e.type&&e.dataProgress.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataProgress.total)+"件中"+e._s(e.dataProgress.successItem)+" 件を削除しました。")]):e._e(),e._v(" "),e.dataProgress.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataProgress.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataProgress.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeModalGroup()}}})],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"800",persistent:""},model:{value:e.isShowGroup,callback:function(t){e.isShowGroup=t},expression:"isShowGroup"}},[a("v-card",[a("ModalLoading",{attrs:{loading:e.dataModal.groupAll.loading}}),e._v(" "),a("v-card-title",{staticClass:"background-color-green"},[e._v(e._s(e.userName)+"が新たに所属する通行権限を選択してください")]),e._v(" "),"add-user-group-gate"===e.isPage?a("div",[e.isShowGroup?a("group-list-modal-table",{attrs:{isPage:"add",isShowGroup:e.dataModal.groupAll.loading,dataGroupAdd:e.dataGroupAdd,dataModalGroup:e.dataModal.groupAll,dataGroupPass:e.dataModal.groupPass.data},on:{"change-page":function(t){return e.$emit("change-page-group",t)},"select-Ids":function(t){e.selectedGroupAddIds=t}}}):e._e()],1):a("div",[e.isShowGroup?a("group-list-modal-table",{attrs:{isPage:"edit-user-group-gate",dataModalGroup:e.dataModal.groupAll,dataGroupPass:e.dataModal.groupPass.data},on:{"change-page":function(t){return e.$emit("change-page-group",t)},"select-Ids":function(t){e.selectedGroupAddIds=t}}}):e._e()],1),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},["add-user-group-gate"===e.isPage?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.selectedGroupAddIds.length||!0===e.dataModal.groupAll.loading},on:{click:function(t){e.addGroupDirect(e.selectedGroupAddIds),e.isShowGroup=!1}}},[e._v("選択した通行権限グループに所属する")]):"edit-user-group-gate"===e.isPage?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.selectedGroupAddIds.length||!0===e.dataModal.groupAll.loading},on:{click:function(t){e.addGroupInEdit(e.selectedGroupAddIds),e.isShowGroup=!1}}},[e._v("選択した通行権限グループに所属する")]):a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.selectedGroupAddIds.length},on:{click:function(t){e.addGroup(e.selectedGroupAddIds),e.isShowGroup=!1}}},[e._v("選択した通行権限グループに所属する")]),e._v(" "),a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){e.isShowGroup=!1,e.closeAdd()}}})],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}},[a("v-card",{staticClass:"common-modal"},[a("ModalTitle",{attrs:{title:"チェックしたユーザー設定を削除"},on:{click:function(t){e.isConfirm=!1}}}),e._v(" "),a("v-card-text",{staticClass:"pt-0 pb-5 text-progress"},[e._v("チェックしたユーザー設定を削除しますか?")]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},["add-user-group-gate"===e.isPage?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.removeGroupDirect()}}},[e._v("\n 削除\n ")]):"edit-user-group-gate"===e.isPage?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.removeGroupInEdit()}}},[e._v("\n 削除\n ")]):a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.removeGroup()}}},[e._v("\n 削除\n ")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgressDirect,callback:function(t){e.showProgressDirect=t},expression:"showProgressDirect"}},[a("v-card",["del"===e.isAction||"del"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("チェックしたユーザー設定を削除")]):a("v-card-title",{staticClass:"background-color-green"},[e._v("選択した通行権限グループに所属")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataProgressDirect.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataProgressDirect.progressLoad,callback:function(t){e.$set(e.dataProgressDirect,"progressLoad",t)},expression:"dataProgressDirect.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataProgressDirect.progressLoad))+"%")])]),e._v(" "),"add"===e.type&&e.dataProgressDirect.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataProgressDirect.total)+"件中"+e._s(e.dataProgressDirect.successItem)+" 件を追加しました。")]):"del"===e.type&&e.dataProgressDirect.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataProgressDirect.total)+"件中"+e._s(e.dataProgressDirect.successItem)+" 件を削除しました。")]):e._e()],1):e._e(),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeProgressDirect()}}})],1)],1)],1)],1)],1)}),XI=[],QI=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",{staticClass:"mb-0"},[a("v-autocomplete",{staticClass:"input-search mt-2",attrs:{clearable:"",label:"",solo:"","hide-details":"","no-data-text":"",items:e.dataModalGroup.data,disabled:0===e.dataModalGroup.data.length,"return-object":"",chips:"",multiple:"","item-value":"groupId","item-text":"name","menu-props":{contentClass:"group-select-item v-select-item"}},model:{value:e.idSelected,callback:function(t){e.idSelected=t},expression:"idSelected"}})],1)},ex=[],tx=f["a"].extend({name:"UsersListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No},watch:{isShowGroup:function(e){var t=this;!1===e&&"add"===this.isPage&&void 0!==this.dataGroupPass&&null!==this.dataGroupPass&&this.dataGroupPass.length>0&&this.dataModalGroup.data.forEach((function(e,a){var s=t.dataGroupPass.some((function(t){return t.groupId===e.groupId}));s&&(t.dataModalGroup.data[a].disabled=!0)}))},dataGroupAdd:function(e){this.idSelected=e},idSelected:function(e){this.$emit("select-Ids",e.map((function(e){return e})))},dataGroupPass:function(e){var t=this;console.log("data",e),e.length>0&&(this.idSelected=[],this.dataModalGroup.data.forEach((function(a,s){var r=e.some((function(e){return e.groupId===a.groupId}));"edit-user-group-gate"===t.isPage&&(r=e.some((function(e){return e.group.groupId===a.groupId}))),r&&(t.dataModalGroup.data[s].disabled=!0)})))}},props:{isPage:{type:String,default:""},isShowGroup:{type:Boolean,default:!1},dataGroupAdd:{type:Array,default:function(){return[]}},typeItems:{type:Array,default:function(){return[]}},dataModalGroup:{type:Object,default:{data:[],total:0,page:1,perPage:25}},dataGroupPass:{type:Array,default:[]}},mounted:function(){},computed:{headers:{get:function(){var e=[{text:"通行権限グループID",align:"start",sortable:!0,value:"groupId"}];return this.selectedDisplayOption.includes("name")&&e.push({text:"通行権限グループ名",align:"start",sortable:!0,value:"name"}),e},set:function(){}},innerPage:{get:function(){return this.dataModalGroup.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.dataModalGroup.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{isShow:!1,isShowUserDetail:!1,selectedDisplayOption:["groupId","name"],displayOptionItems:[{label:"通行権限グループID",value:"groupId",isDisabled:!0},{label:"通行権限グループ名",value:"name",isDisabled:!1}],idSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0,"item-key":"sub","hide-default-header":""},on:{"item-expanded":function(t){return e.$emit("change-expanded-group",{event:t,expanded:"group"})}},scopedSlots:e._u([{key:"header",fn:function(t){var s=t.props.headers;return[a("thead",[a("tr",e._l(s,(function(t){return a("th",{key:t.value,attrs:{width:t.width}},[e._v("\n "+e._s(t.text)+"\n "),"groupName"===t.value?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}],null,!0)},[e._v(" "),a("span",{domProps:{innerHTML:e._s("所属の通行権限グループ、または、ユーザー個人に
設定された通行権限グループが表示されます。
両方が設定されている場合、
個人の通行権限グループの設定が優先されます。")}})]):e._e()],1)})),0)])]}},{key:"item.data-table-select",fn:function(t){var s=t.item,r=t.isSelected,o=t.select;return[!0===s.isPassageId&&!0===e.authority.isAdmin?a("v-simple-checkbox",{attrs:{value:r,ripple:!1},on:{input:function(t){o(t),e.getItem(s,t)}}}):e._e()]}},{key:"item.groupName",fn:function(t){var s=t.item;return[a("span",{staticClass:"group-inline"},[!0===e.authority.isAdmin||!0===s.isClick?a("text-link",{staticClass:"item-user-name",attrs:{text:s.group.name},on:{click:function(t){return e.clickDetail(s.group.groupId)}}}):a("span",[e._v(e._s(s.group.name)+"\n ")])],1),e._v(" "),"add-user-group-gate"!==e.isPage&&!1===s.isGroupPassableGate?a("span",{staticClass:"group-inline button-settings"},[a("span",{staticClass:"btn-primary no-click"},[e._v("\n 所属通行権限\n ")])]):e._e()]}},{key:"item.passableTimeSettingName",fn:function(t){var s=t.item;return["ALIG-030"===s.gateModelCode?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[void 0!==s.group.passableTimeSetting&&void 0!==s.group.passableTimeSetting.name?a("span",e._g(e._b({staticClass:"item-user-id passable-time-setting"},"span",o,!1),r),[e._v("\n "+e._s(s.group.passableTimeSetting.name)+"\n ")]):e._e()]}}],null,!0)},[e._v(" "),e.checkPassableTimeSetting(s.group)?a("span",e._l(s.group.passableTimeSetting.timeSettings,(function(t,s){return a("div",{key:s},[e._v(e._s(t.dayTypeName)+" "+e._s(e.showTime(t)))])})),0):e._e()]):e._e()]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),!1===e.loading&&e.ExpandedGroup.length>0?a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.groupTotalCount/25),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}}):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(e._s(e.userId)+"が新たに所属する通行権限を選択してください。")]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",[""===e.messageSetting.success&&""===e.messageSetting.error?a("v-autocomplete",{staticClass:"input-search mt-2",attrs:{clearable:"",label:"'適用されている通行権限グループ'",solo:"","hide-details":"","no-data-text":"",items:e.groupPassage},model:{value:e.groupItem,callback:function(t){e.groupItem=t},expression:"groupItem"}}):e._e(),e._v(" "),""!==e.messageSetting.success&&!1===e.loading?a("div",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.messageSetting.success)+"\n ")]):e._e(),e._v(" "),""!==e.messageSetting.error&&!1===e.loading?a("div",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.messageSetting.error)+"\n ")]):e._e()],1),e._v(" "),""===e.messageSetting.success&&""===e.messageSetting.error?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("add-group-pass",{groupId:e.groupItem,userId:e.userId})}}},[e._v("選択した通行権限グループに所属する")]),e._v(" "),a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){e.showConfirm=!1}}},[e._v("\n キャンセル\n ")])],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){e.showConfirm=!1}}},[e._v("\n OK\n ")])],1)],1)],1)],1)],1)},nx=[],ix=(a("4c53"),f["a"].extend({name:"GroupGateTable",components:{Pagination:xo,ShowPerPage:mo,TextLink:No,GateList:jc},props:{isClear:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},groupTotalCount:{type:Number,default:0},page:{type:Number,default:0},pageGroup:{type:Number,default:0},userId:{type:String,default:""},ExpandedGroup:{type:Array,default:function(){return[]}},isPage:{type:String,default:""},messageSetting:{default:function(){return{error:"",success:""}}},authority:{type:Object,default:{}},errorName:{type:String,default:""}},data:function(){return{groupPassage:[],selectedItem:[],loadGroups:[],showConfirm:!1,groupItem:""}},computed:{headers:{get:function(){var e=[{text:"ゲート名",align:"start",sortable:!1,width:"33.3%",value:"gateName"},{text:"適用されている通行権限グループ",align:"start",sortable:!1,width:"33.3%",value:"groupName"},{text:"通行可能時間帯",align:"start",sortable:!1,width:"33.3%",value:"passableTimeSettingName"}];return e}},innerPage:{get:function(){return this.pageGroup},set:function(e){this.$emit("change-page-group",{page:e,userId:this.userId,change:"group"})}}},watch:{selectedItem:function(e){"add-user-group-gate"===this.isPage?this.$emit("select-Ids",e.map((function(e){return e.groupId}))):(this.isPage,this.$emit("select-Ids",e.map((function(e){return e.group}))))},isClear:function(e){!1===e&&(this.selectedItem=[])}},methods:{getItem:function(e,t){var a=this;if(t){var s=this.ExpandedGroup.filter((function(t){return t.group.groupId===e.group.groupId}));s.forEach((function(e){var t=a.selectedItem.map((function(e){return e.sub})).indexOf(e.sub);t<0&&a.selectedItem.push(e)}))}else{var r=this.selectedItem.filter((function(t){return t.group.groupId!==e.group.groupId}));this.selectedItem=r.length>0?r:[]}},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0},showTime:function(e){var t=e.startTime+"〜"+e.endTime;return"99:99"===e.startTime&&"99:99"===e.endTime?t="終日不可":"00:00"===e.startTime&&"00:00"===e.endTime&&(t="終日可能"),t}}})),lx=ix,cx=Object(I["a"])(lx,ox,nx,!1,null,null,null),ux=cx.exports;C()(cx,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VRow:Kr["a"],VSimpleCheckbox:Kh["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var dx=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",{staticClass:"mb-0"},[a("div",{staticClass:"allig-reflection-card-table"},[a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{staticClass:"pt-0",attrs:{xl:"7",sm:"8"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search",attrs:{title:"選択項目にチェックして検索",searchTargetItems:e.searchTargetItems,disabled:e.dataModalUser.loading},on:{search:function(t){return e.$emit("search-all-user",t)}}})],1)],1)],1)]),e._v(" "),a("v-col",{staticClass:"mt-0 pt-0"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"12"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.checkItem(e.idSelected).length||!0===e.dataModalUser.loading||!0===e.loadingParent},on:{click:function(t){e.$emit("add-user",e.checkItem(e.idSelected))}}},[e._v("\n ユーザーを追加する\n ")])],1)],1)])],1)],1),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{attrs:{"per-page":e.dataModalUser.perPage,page:e.dataModalUser.page,"items-length":e.dataModalUser.total}}),e._v(" "),a("v-spacer")],1)],1),e._v(" "),a("div",{staticClass:"round-data"},[a("v-data-table",{staticClass:"border-table scroll-table modal-table",attrs:{"must-sort":"",headers:e.headers,"items-per-page":e.dataModalUser.perPage,"item-key":"userId","no-data-text":"データーはありません","loading-text":"データを読み込中です",loading:e.loadDone,"hide-default-footer":"","show-select":!0,"custom-sort":e.customSort,items:e.filteredItems},scopedSlots:e._u(["aff-load-all-user"===e.isPage||"affiliation-add-new"===e.isPage?{key:"item.data-table-select",fn:function(t){var s=t.item,r=t.isSelected,o=t.select;return[s.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:s.disable,disabled:s.disable,ripple:!1},on:{input:function(e){return o(e)}}}):""!==s.departmentId&&s.departmentId===e.departmentId&&!1===s.disable?a("v-simple-checkbox",{attrs:{value:r,ripple:!1},on:{input:function(e){return o(e)}}}):""!==s.departmentName?a("v-simple-checkbox",{attrs:{value:!1,readonly:"",disabled:"",ripple:!1},on:{input:function(e){return o(e)}}}):a("v-simple-checkbox",{attrs:{value:r,ripple:!1},on:{input:function(e){return o(e)}}})]}}:{key:"item.data-table-select",fn:function(t){var s=t.item,r=t.isSelected,o=t.select;return[s.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:s.disable,disabled:s.disable,ripple:!1},on:{input:function(e){return o(e)}}}):""===s.departmentName&&"group-load-all-user"!==e.isPage?a("v-simple-checkbox",{attrs:{value:r,readonly:s.disabled,disabled:s.disabled,ripple:!1},on:{input:function(e){return o(e)}}}):a("v-simple-checkbox",{attrs:{value:r,readonly:s.disable,disabled:s.disable,ripple:!1},on:{input:function(e){return o(e)}}})]}}],null,!0),model:{value:e.idSelected,callback:function(t){e.idSelected=t},expression:"idSelected"}})],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.dataModalUser.page,"per-page-items":[25,50,100,1e3],"items-length":e.dataModalUser.total,disabled:e.dataModalUser.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.dataModalUser.total/e.dataModalUser.perPage),disabled:e.dataModalUser.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)])},gx=[],px=f["a"].extend({name:"UsersListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No},watch:{idSelected:function(e){this.$emit("select-Ids",e.map((function(e){return e.groupId})))},loadDone:function(e){var t=this;!1===e&&(this.getData=this.dataModalUser.data,this.getData.map((function(e){return e.disable=!1})),this.getData.forEach((function(e,a){var s=t.groupPassages.some((function(t){return t.userId===e.userId}));s&&(t.getData[a].disable=!0)})),this.idSelected=[],this.dataAdded.length>0&&"affiliation-add-new"===this.isPage&&(this.idSelected=this.dataAdded))}},props:{typeItems:{type:Array,default:function(){return[]}},dataModalUser:{type:Object,default:{data:[],total:0,page:1,perPage:25}},groupPassages:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingParent:{type:Boolean,default:!1},groupPassagesLoading:{type:Boolean,default:!1},departmentId:{type:String,default:""},isPage:{type:String,default:""},authority:{type:Object,default:{}},dataAdded:{type:Array,default:[]}},mounted:function(){""===this.departmentId&&"affiliation-add-new"!==this.isPage||(this.selectedDisplayOption=["groupId","name","departmentName"])},computed:{headers:{get:function(){var e=[{text:"ユーザーID",align:"start",sortable:!0,value:"userId"}];return this.selectedDisplayOption.includes("name")&&e.push({text:"ユーザー名",align:"start",sortable:!0,value:"name"}),this.selectedDisplayOption.includes("departmentName")&&e.push({text:"所属名",align:"start",sortable:!1,value:"departmentName"}),e},set:function(){}},innerPage:{get:function(){return this.dataModalUser.page},set:function(e){this.$emit("change-page",e)}},loadDone:{get:function(){return!1!==this.loadingParent||!1!==this.dataModalUser.loading},set:function(e){}},innerPerPage:{get:function(){return this.dataModalUser.perPage},set:function(e){this.$emit("change-per-page",e)}},filteredItems:{get:function(){return this.getData}}},data:function(){return{getData:[],isShow:!1,isShowUserDetail:!1,selectedDisplayOption:["groupId","name"],displayOptionItems:[{label:"通行権限グループID",value:"groupId",isDisabled:!0},{label:"通行権限グループ名",value:"name",isDisabled:!1},{label:"departmentName",value:"departmentName"}],idSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard,searchTargetItems:[{label:"ユーザーID",value:"userId"},{label:"ユーザー名",value:"name"}]}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]=0&&e.dataGroupAdd.splice(parseInt(a),1)}));var t=[];this.dataGroupAdd.forEach((function(e){t.push(e.groupId)})),this.$emit("select-Ids",t),this.$emit("select-data-add",this.dataGroupAdd),this.$emit("get-data-add",this.dataGroupAdd),setTimeout((function(){e.isClear=!1}),100)}},removeGroupDirect:function(){this.showProgressDirect=!0,this.type="del",this.isConfirm=!1,this.dataProgressDirect.total=this.selectedGroupIds.length,this.dataProgressDirect.progressLoad=100,this.dataProgressDirect.successItem=this.selectedGroupIds.length},removeGroupInEdit:function(){this.showProgressDirect=!0,this.type="del-in-edit",this.isConfirm=!1,this.dataProgressDirect.total=this.selectedGroupIds.length,this.dataProgressDirect.progressLoad=100,this.dataProgressDirect.successItem=this.selectedGroupIds.length},removeGroup:function(){this.type="del",this.isConfirm=!1,this.showProgress=!0,this.$emit("remove-group-user",this.selectedGroupIds)},showGroup:function(){this.selectedGroupAddIds=[],this.isShowGroup=!0,this.$emit("get-all-group")},addUser:function(e){"affiliation-add-new"===this.isPage?this.$emit("affiliation-add-item",e):(this.type="add",this.showProgress=!0,"add-user-to-aff"===this.isAction?this.$emit("add-user-to-aff",e):this.$emit("add-user-to-group",e))}}}),bx=vx,yx=Object(I["a"])(bx,ZI,XI,!1,null,null,null),Ix=yx.exports;C()(yx,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"]});var xx=nr["a"].extend({name:"GateListModalPage",components:{ModalTemplate:Ix},props:{loadingParent:{type:Boolean,default:!1},isPage:{type:String,default:""},userId:{type:String,default:""},userName:{type:String,default:""},groupId:{type:String,default:""},departmentId:{type:String,default:""},itemDepartment:{type:Object,default:function(){return{}}},isAction:{type:String,default:""},groupPassages:{default:function(){return[]}},dataAdded:{default:function(){return[]}},isPageFrom:{type:String,default:""}},data:function(){return{loading:!1,dataModal:{userAll:{data:[],total:0,loading:!1,page:1,perPage:25,keyword:"",scorp:["userId","name"]},groupAll:{data:[],total:0,loading:!1,page:1,perPage:25},groupPass:{data:[],total:0,loading:!1,page:1,perPage:25},gateOfGroup:{groupIds:[],first:[],tmp:[],data:[],dataOri:[],dataDel:[],dataAdd:[],page:1,perPage:25,total:0,loading:!1,messageSetting:{error:"",success:""}}},dataProgress:{total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},allGroups:[],isGetGroup:!1,authority:er.state.auth,isGetUserGate:!1,errorName:""}},created:function(){if("group"===this.isPage)this.loadListGroups({perPage:25,page:1});else if("add-user-group-gate"===this.isPage);else if("detail-user-group-gate"!==this.isPage&&"edit-user-group-gate"!==this.isPage||""===this.userId)"group-load-all-user"!==this.isPage&&"aff-load-all-user"!==this.isPage&&"affiliation-add-new"!==this.isPage||this.loadListUsers(1,25);else{this.dataModal.gateOfGroup.loading=!0,this.dataModal.gateOfGroup.data=[],this.dataModal.gateOfGroup.tmp=[];var e={dataAdd:[],dataDel:[],dataOri:[]};this.$emit("add-groupIds",e),this.getUserGateId(this.userId,1)}},watch:{loading:function(e){this.$emit("loading",e)},isGetGroup:function(e){!0===e&&this.getGateOfGroup()},isGetUserGate:function(e){var t=this;!1===e&&!1===this.dataModal.gateOfGroup.loading&&(this.dataModal.gateOfGroup.tmp=[],this.dataModal.gateOfGroup.data=[],this.dataModal.gateOfGroup.first.forEach((function(e){if(e.gates.length>0)e.gates.forEach((function(a){var s={groupPassageId:e.groupPassageId,relationId:a.relationId,gateName:a.name,group:e.group,isGroupPassableGate:void 0!==a.isGroupPassableGate?a.isGroupPassableGate:""};s.group.passableTimeSetting=e.passableTimeSetting,s.group.name=e.group.groupName,t.dataModal.gateOfGroup.data.push(s)}));else{var a={groupPassageId:e.groupPassageId,relationId:e.groupPassageId+"-"+Math.random().toString(5).substring(2),gateName:"",group:e.group};a.group.name=e.group.groupName,a.group.passableTimeSetting=e.passableTimeSetting,t.dataModal.gateOfGroup.data.push(a)}})),this.dataModal.gateOfGroup.total=this.dataModal.gateOfGroup.data.length,this.dataModal.gateOfGroup.tmp=this.dataModal.gateOfGroup.data)}},mounted:function(){},methods:{closeModal:function(){var e=this;"detail-user-group-gate"===this.isPage||"edit-user-group-gate"===this.isPage?(this.isGetUserGate=!0,this.dataModal.gateOfGroup.loading=!0,this.dataModal.gateOfGroup.first=[],this.dataModal.gateOfGroup.data=[],this.dataModal.gateOfGroup.tmp=[],this.dataModal.gateOfGroup.total=0,this.dataModal.gateOfGroup.page=0,this.getUserGateId(this.userId,1)):"aff-load-all-user"===this.isPage?(this.$emit("close-modal-aff"),this.dataModal.userAll.loading=!0,setTimeout((function(){e.dataModal.userAll.loading=!1}),300)):this.$emit("close-modal")},changePageGroup:function(e){var t=this;if("group"===this.isPage)this.changePageGroupAll(e);else if("add-user-group-gate"===this.isPage)this.userAddChangePageGroup(e);else if("detail-user-group-gate"===this.isPage||"edit-user-group-gate"===this.isPage){this.dataModal.gateOfGroup.loading=!0,this.dataModal.gateOfGroup.page=e.page;var a=Array.of.apply(Array,Object(mI["a"])(this.dataModal.gateOfGroup.tmp));this.dataModal.gateOfGroup.data=a.slice(25*(e.page-1),25*e.page),setTimeout((function(){t.dataModal.gateOfGroup.loading=!1}),100)}},changePageGroupAll:function(e){this.dataModal.groupAll.page=e;var t={page:this.dataModal.groupAll.page,perPage:this.dataModal.groupAll.perPage};this.loadListGroups(t)},changePerPageGroupAll:function(e){this.dataModal.groupAll.perPage=e;var t={page:this.dataModal.groupAll.page,perPage:this.dataModal.groupAll.perPage};this.loadListGroups(t)},loadListGroups:function(e){var t=this;this.dataModal.groupAll.loading=!0,this.$http.get(H+"?limit="+e.perPage+"&page="+e.page+"&isValid=true").then((function(e){e.body.maxRecords>0&&(t.dataModal.groupAll.data=e.body.groups,t.dataModal.groupAll.total=e.body.maxRecords,t.dataModal.groupAll.loading=!1,t.dataModal.groupAll.data.map((function(e){return Object.assign(e,{group:{groupId:e.groupId,name:e.name}})})))})).then(null,(function(e){console.log("err: ",e),t.dataModal.groupAll.loading=!1}))},addGroupToUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m,f;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataProgress={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.length,c=100/l,t.dataProgress.total=l,u=Object(rr["a"])(e),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=28;break}return g=d.value,p=void 0,m=void 0!==g.groupId?g.groupId:g.group.groupId,a.next=19,t.addGroupUser(m,t.userId);case 19:p=a.sent,!0===p?r++:(f=g.name+">>"+p+"",t.$set(i,++s,f)),o+=c,t.dataProgress.progress=o,t.dataProgress.successItem=r,t.dataProgress.progressLoad=o,t.dataProgress.errorMessage=i;case 26:a.next=13;break;case 28:a.next=33;break;case 30:a.prev=30,a.t0=a["catch"](11),u.e(a.t0);case 33:return a.prev=33,u.f(),a.finish(33);case 36:n=!0,t.dataProgress.isFinish=n,r>0&&t.$emit("getReload",!0);case 39:case"end":return a.stop()}}),a,null,[[11,30,33,36]])})))()},addGroupUser:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(q,{groupId:e,userId:t}).then((function(e){s(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 409:t=Ia;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s(t)}))}))},getGroupListAll:function(e){var t=this;this.$http.get(H+"?limit=1000&page="+e+"&keyword=&isValid=true&embed=passableTimeSetting").then((function(a){a.body.maxRecords>0?(a.body.groups.forEach((function(e){t.allGroups.push(e)})),a.body.maxRecords>a.body.endRecord?(e++,t.getGroupListAll(e)):t.isGetGroup=!0):t.isGetGroup=!0})).then(null,(function(e){t.allGroups=[],t.isGetGroup=!0}))},getGateOfGroup:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.dataModal.gateOfGroup.loading=!0,a=e.allGroups,s=0;case 3:if(!(s0?(r.body.relationsGateGroup.forEach((function(e){var s={gateName:e.gate.name,Id:e.gate.gateId+"-"+t.groupId,group:t};a.dataModal.gateOfGroup.tmp.push(s)})),r.body.maxRecords>r.body.endRecord&&a.getGateItem(e+1,t)):a.dataModal.gateOfGroup.tmp=[],s(!0)})).then(null,(function(e){console.log("err: ",e),s(!1)}))}))},userAddChangePageGroup:function(e){this.dataModal.gateOfGroup.page=e.page,this.dataModal.gateOfGroup.loading=!0,this.dataModal.gateOfGroup.data=this.dataModal.gateOfGroup.tmp.slice(25*(e.page-1),25*e.page),this.dataModal.gateOfGroup.loading=!1},getUserGateId:function(e,t){var a=this;this.dataModal.gateOfGroup.page=t,this.$http.get(T+"/"+encodeURIComponent(e)+"/gate?limit=1000&isValid=true&page="+t+"&isExceptOptionalGate=true").then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o,n,i,l;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(r.body.maxRecords>0)){s.next=23;break}if(a.dataModal.gateOfGroup.total=r.body.maxRecords,console.log("response.body.gates",r.body.gates),r.body.gates.forEach((function(e){var t={gateModelCode:e.gateModelCode,gateName:e.gateName,gateId:e.gateId,groupPassageId:e.gateId+"-"+e.group.groupId,isPassageId:e.isGroupPassableGate,group:e.group,isClick:!!a.authority.isAdmin,sub:e.group.groupId+"-"+e.gateId,isGroupPassableGate:void 0!==e.isGroupPassableGate?e.isGroupPassableGate:""};a.dataModal.gateOfGroup.tmp.push(t);var s=a.dataModal.gateOfGroup.dataOri.findIndex((function(t){return t.groupId===e.group.groupId}));s<0&&a.dataModal.gateOfGroup.dataOri.push({groupId:e.group.groupId,name:e.group.name,groupPassageId:""}),a.dataModal.gateOfGroup.data.push(t),a.dataModal.gateOfGroup.tmp.sort((function(e,t){return e.group.name.toLowerCase()r.body.endRecord)){s.next=9;break}t++,a.getUserGateId(e,t),s.next=21;break;case 9:if(!1!==a.authority.isAdmin){s.next=19;break}o=a.dataModal.gateOfGroup.tmp,n=[],i=regeneratorRuntime.mark((function e(t){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o[t],t,s=o[t].group.groupId,!1!==n.includes(s)){e.next=9;break}return e.next=6,a.getGroupAuth(s);case 6:r=e.sent,r&&(a.dataModal.gateOfGroup.tmp.map((function(e){return Object.assign(e,{isClick:e.group.groupId===s||e.isClick})})),a.dataModal.gateOfGroup.data.map((function(e){return Object.assign(e,{isClick:e.group.groupId===s||e.isClick})}))),n.push(s);case 9:case"end":return e.stop()}}),e)})),l=0;case 14:if(!(l0)){s.next=41;break}o=r.body.groupPassages,n=0;case 3:if(!(nr.body.endRecord?(t++,a.getUserGate(e,t)):(a.dataModal.gateOfGroup.loading=!1,a.isGetUserGate=!1),s.next=44;break;case 41:a.dataModal.gateOfGroup.first=[],a.dataModal.gateOfGroup.loading=!1,a.isGetUserGate=!1;case 44:case"end":return s.stop()}}),s,null,[[8,27,30,33]])})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),a.dataModal.gateOfGroup.first=[],a.dataModal.gateOfGroup.loading=!1,a.isGetUserGate=!1}))},getGateGroup:function(e,t){var a=this;return new Promise((function(s,r){a.$http.get(X+"?groupId="+encodeURIComponent(e.groupId)+"&embed=gate&limit=1000&page="+t+"&isExceptOptionalGate=true&isValid=true").then(function(){var r=Object(or["a"])(regeneratorRuntime.mark((function r(o){var n,i,l,c,u,d;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o.body.maxRecords>0){n=o.body.relationsGateGroup,i=Object(rr["a"])(n);try{for(i.s();!(l=i.n()).done;)c=l.value,u=a.dataModal.gateOfGroup.first.findIndex((function(t){return t.groupPassageId===e.groupPassageId})),u>=0&&(d={relationId:"",gateId:"",name:"",group:e.group},d.relationId=c.relationId,d.gateId=c.gateId,d.name=c.gate.name,a.dataModal.gateOfGroup.first[u].gates.push(d))}catch(g){i.e(g)}finally{i.f()}o.body.maxRecords>o.body.endRecord?(t++,a.getGateGroup(e,t)):s(!0)}else s(!1);case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).then(null,(function(e){console.log(e),s(!1)}))}))},getGroupDetail:function(e){var t=this;return new Promise((function(a,s){var r=H+"?groupId="+encodeURIComponent(e.groupId)+"&embed=passableTimeSetting";t.$http.get(r).then((function(s){var r=t.dataModal.gateOfGroup.first.findIndex((function(t){return t.groupPassageId===e.groupPassageId}));r>=0&&(t.dataModal.gateOfGroup.first[r].passableTimeSetting=s.body.groups[0].passableTimeSetting),a(!0)})).then(null,(function(e){a(!1)}))}))},addGroupPass:function(e){var t=this;return this.loading=!0,new Promise((function(a,s){t.dataModal.gateOfGroup.messageSetting.error="",t.dataModal.gateOfGroup.messageSetting.success="",t.$http.post(Z,{groupId:e.groupId,userId:t.userId}).then((function(e){a(!0),t.dataModal.gateOfGroup.messageSetting.success=Ua,t.loading=!1})).then(null,(function(e){switch(e.status){case 400:t.dataModal.gateOfGroup.messageSetting.error=Qt;break;case 403:"Unauthorized"===e.message?t.dataModal.gateOfGroup.messageSetting.error=ta:t.dataModal.gateOfGroup.messageSetting.error=ia;break;case 409:t.dataModal.gateOfGroup.messageSetting.error="他通行権限グループと紐づいてます。通行可能時間設定が適用されたユーザーのため追加できません。";break;case 404:t.dataModal.gateOfGroup.messageSetting.error=aa;break;case 500:t.dataModal.gateOfGroup.messageSetting.error=fa;break;case 503:t.dataModal.gateOfGroup.messageSetting.error=ha;break;default:t.dataModal.gateOfGroup.messageSetting.error=ba;break}t.loading=!1,a(!1)}))}))},delGroupUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m,f;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=e.reduce((function(e,t){var a=e.find((function(e){return e.groupId===t.groupId}));return a?e:e.concat([t])}),[]),t.dataProgress={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},r=0,o=0,n=0,i=!1,l=[],c=s.length,u=100/c,t.dataProgress.total=c,d=Object(rr["a"])(s),a.prev=11,d.s();case 13:if((g=d.n()).done){a.next=27;break}return p=g.value,m=void 0,a.next=18,t.getPassageId(p.groupId,t.userId);case 18:m=a.sent,!0===m?o++:(f=p.name+">>"+m+"",t.$set(l,++r,f)),n+=u,t.dataProgress.progress=n,t.dataProgress.successItem=o,t.dataProgress.progressLoad=n,t.dataProgress.errorMessage=l;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),d.e(a.t0);case 32:return a.prev=32,d.f(),a.finish(32);case 35:i=!0,t.dataProgress.isFinish=i,o>0&&t.$emit("getReload",!0);case 38:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},delGroupUserItem:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Z+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}a(t)}))}))},getAllGroups:function(e){this.dataModal.groupAll.loading=!0,this.dataModal.groupAll.data=[],this.getAllGroupsNoPage(1)},getAllGroupsNoPage:function(e){var t=this;this.$http.get(H+"?limit=1000&page="+e+"&isValid=true&embed=passableTimeSetting").then((function(a){a.body.maxRecords>0?(t.dataModal.groupAll.total=a.body.maxRecords,a.body.groups.forEach((function(e){t.dataModal.groupAll.data.push(e)})),a.body.maxRecords>a.body.endRecord?(e++,t.getAllGroupsNoPage(e)):(t.dataModal.groupAll.loading=!1,""!==t.userId&&(t.dataModal.groupPass.data=[],"edit-user-group-gate"===t.isPage?t.dataModal.groupPass.data=t.dataModal.gateOfGroup.tmp:t.getGroupPass(1,t.userId)))):t.dataModal.groupAll.loading=!1})).then(null,(function(e){console.log("err: ",e),t.dataModal.groupAll.loading=!1}))},loadListUsers:function(e,t){"group-load-all-user"===this.isPage?this.loadListUsersForGroup(e,t):this.loadListUsersDefault(e,t)},loadListUsersDefault:function(e,t){var a=this;this.dataModal.userAll.data=[],this.dataModal.userAll.loading=!0;var s=T+"?limit="+t+"&page="+e+"&isExceptOptionalUser=true&isValid=true&exclude=thumbnail"+(""!==this.dataModal.userAll.keyword?"&keyword="+this.dataModal.userAll.keyword+"&scorp="+this.dataModal.userAll.scorp:"");""===this.departmentId&&"affiliation-add-new"!==this.isPage||(s+="&embed=departments"),this.$http.get(s).then((function(e){e.body.maxRecords>0&&(""!==a.departmentId||"affiliation-add-new"===a.isPage?(e.body.users.forEach((function(e){e.departmentName="",void 0!==e.departments&&e.departments.length>0&&(e.departmentName=e.departments[0].name),a.dataModal.userAll.data.push(e)})),a.dataModal.userAll.total=e.body.maxRecords):(a.dataModal.userAll.data=e.body.users,a.dataModal.userAll.data.map((function(e){return Object.assign(e,{isAdmin:void 0!==e.isAdmin&&e.isAdmin})})),a.dataModal.userAll.total=e.body.maxRecords)),a.dataModal.userAll.loading=!1})).then(null,(function(e){console.log("err: ",e),a.dataModal.userAll.loading=!1}))},loadListUsersForGroup:function(e,t){var a=this;this.dataModal.userAll.data=[],this.dataModal.userAll.loading=!0;var s=Ne+"?limit="+t+"&page="+e+"&isExceptOptionalUser=true&isValid=true&exclude=thumbnail"+(""!==this.dataModal.userAll.keyword?"&keyword="+this.dataModal.userAll.keyword+"&scorp="+this.dataModal.userAll.scorp:"");this.$http.get(s).then((function(e){e.body.maxRecords>0&&(a.dataModal.userAll.data=e.body.users,a.dataModal.userAll.data.map((function(e){return Object.assign(e,{isAdmin:void 0!==e.isAdmin&&e.isAdmin})})),a.dataModal.userAll.total=e.body.maxRecords),a.dataModal.userAll.loading=!1})).then(null,(function(e){console.log("err: ",e),a.dataModal.userAll.loading=!1}))},getDepartmentUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Pe+"?userId=".concat(encodeURIComponent(e),"&embed=department")).then((function(s){var r=s.body.relationsDepartmentUser,o=t.dataModal.userAll.data.findIndex((function(t){return t.userId===e}));o>=0&&(t.dataModal.userAll.data[o].departmentName=r.length>0?r[0].department.name:"",t.dataModal.userAll.data[o].departmentId=r.length>0?r[0].department.departmentId:""),a(!0)})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},changePageUser:function(e){this.dataModal.userAll.page=e,this.loadListUsers(this.dataModal.userAll.page,this.dataModal.userAll.perPage)},changePerPageUser:function(e){this.dataModal.userAll.page=1,this.dataModal.userAll.perPage=e,this.loadListUsers(this.dataModal.userAll.page,this.dataModal.userAll.perPage)},addUserToGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataProgress={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.length,c=100/l,t.dataProgress.total=l,u=Object(rr["a"])(e),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.addGroupUser(t.groupId,g.userId);case 18:p=a.sent,!0===p?r++:(m=g.name+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataProgress.progress=o,t.dataProgress.successItem=r,t.dataProgress.progressLoad=o,t.dataProgress.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataProgress.isFinish=n,r>0&&t.$emit("getReload",!0);case 38:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},addUserToAff:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataProgress={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.length,c=100/l,t.dataProgress.total=l,u=Object(rr["a"])(e),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.postUserDepartment(g.userId,t.departmentId);case 18:p=a.sent,!0===p?r++:(m=g.name+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataProgress.progress=o,t.dataProgress.successItem=r,t.dataProgress.progressLoad=o,t.dataProgress.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataProgress.isFinish=n,r>0&&(console.log("successItemProcess",r),t.$emit("getReload",!0));case 38:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},postUserDepartment:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Pe,{userId:e,departmentId:t}).then((function(e){s(!0)})).then(null,function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(r){var o,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:o="",t.t0=r.status,t.next=400===t.t0?4:403===t.t0?6:404===t.t0?8:409===t.t0?10:420===t.t0?18:500===t.t0?20:503===t.t0?22:24;break;case 4:return o=Qt,t.abrupt("break",26);case 6:return o="Unauthorized"===r.message?ta:ia,t.abrupt("break",26);case 8:return o=aa,t.abrupt("break",26);case 10:return t.next=12,a.getDepartmentUserInfo(e);case 12:return n=t.sent,console.log("result",n),i="",n.length>0&&(i=n[0].department.name),o=ya.replace("{{所属名}}",i.toString()),t.abrupt("break",26);case 18:return o=Ca,t.abrupt("break",26);case 20:return o=fa,t.abrupt("break",26);case 22:return o=ha,t.abrupt("break",26);case 24:return o=ba,t.abrupt("break",26);case 26:s(o);case 27:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},getGroupPass:function(e,t){var a=this;this.$http.get(Z+"?userId="+encodeURIComponent(t)+"&embed=group&limit=1000&page="+e).then((function(s){s.body.maxRecords>0?(s.body.groupPassages.forEach((function(e){a.dataModal.groupPass.data.push(e),a.dataModal.groupPass.data.sort((function(e,t){return e.group.groupName.toLowerCase()s.body.endRecord&&a.getGroupPass(e+1,t)):a.dataModal.groupPass.data=[]})).then(null,(function(e){console.log(e)}))},getDataAdd:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e,t.dataModal.groupPass.data=e,t.dataModal.gateOfGroup.tmp=[],t.dataModal.gateOfGroup.data=[],t.dataModal.gateOfGroup.first=e,t.dataModal.gateOfGroup.loading=!0,s=0,r=!0;case 8:if(!r){a.next=17;break}if(!(t.dataModal.gateOfGroup.first.length>0)){a.next=13;break}return t.dataModal.gateOfGroup.first[s].gates=[],a.next=13,t.getGateGroupAdd(e[s],1,s);case 13:s++,r=s0)e.gates.forEach((function(a){var s={relationId:a.relationId,gateName:a.name,group:e.group,isPassageId:!0,groupId:e.group.groupId,sub:e.group.groupId+"-"+a.gateId};t.dataModal.gateOfGroup.data.push(s)}));else{var a={gateName:"",group:e.group,groupId:e.group.groupId,isPassageId:!0,sub:e.group.groupId+"-"+Math.random().toString(36).slice(-8)};t.dataModal.gateOfGroup.data.push(a)}})),t.dataModal.gateOfGroup.total=t.dataModal.gateOfGroup.data.length,t.dataModal.gateOfGroup.tmp=t.dataModal.gateOfGroup.data,t.dataModal.gateOfGroup.tmp.sort((function(e,t){return e.group.name.toLowerCase()0){i=n.body.relationsGateGroup,l=Object(rr["a"])(i);try{for(l.s();!(c=l.n()).done;)u=c.value,d={relationId:"",gateId:"",name:"",group:e},d.relationId=u.relationId,d.gateId=u.gateId,d.name=u.gate.name,s.dataModal.gateOfGroup.first[a].gates.push(d)}catch(g){l.e(g)}finally{l.f()}n.body.maxRecords>n.body.endRecord?(t++,s.getGateGroupAdd(e,t,a)):r(!0)}else r(!1);case 1:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()).then(null,(function(e){console.log(e),r(!1)}))}))},searchAllUser:function(e){console.log("data",e);var t=e.text;t=t.replace(/\s/g,","),this.dataModal.userAll.keyword=encodeURIComponent(t),this.dataModal.userAll.scorp=e.targets,this.loadListUsers(1,25)},getGroupAuth:function(e){var t=this;return new Promise((function(a,s){console.log("AAAA");var r=Se+"?userId="+encodeURIComponent(localStorage.userProfileId)+"&groupId="+e+"&limit=25&embed=group";t.$http.get(r).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.body.maxRecords>0?a(!0):a(!1);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},getDepartmentUserInfo:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Pe+"?userId=".concat(encodeURIComponent(e),"&embed=department")).then((function(e){e.body.maxRecords>0?a(e.body.relationsDepartmentUser):a([])})).then(null,(function(e){console.log("err: ",e),a([])}))}))},removeGroupInEdit:function(e){var t=this,a=e.reduce((function(e,t){var a=e.find((function(e){return e.groupId===t.groupId}));return a?e:e.concat([t])}),[]);console.log("removeGroupInEdit",a),a.forEach((function(e){t.syncDataAction(e,"remove");var a=t.dataModal.gateOfGroup.tmp.filter((function(t){return t.group.groupId!==e.groupId}));t.dataModal.gateOfGroup.tmp=a;var s=Array.of.apply(Array,Object(mI["a"])(t.dataModal.gateOfGroup.tmp));t.dataModal.gateOfGroup.data=s.slice(0,25),t.dataModal.gateOfGroup.total=t.dataModal.gateOfGroup.tmp.length,t.dataModal.gateOfGroup.page=1}))},addGroupInEdit:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("addGroupInEdit",e),e.forEach((function(e){t.syncDataAction(e,"add")})),e,t.dataModal.gateOfGroup.first=e,t.dataModal.gateOfGroup.loading=!0,s=0,r=!0;case 7:if(!r){a.next=16;break}if(!(t.dataModal.gateOfGroup.first.length>0)){a.next=12;break}return t.dataModal.gateOfGroup.first[s].gates=[],a.next=12,t.getGateGroupAdd(e[s],1,s);case 12:s++,r=s0)e.gates.forEach((function(a){var s={relationId:a.relationId,gateName:a.name,group:e,isPassageId:!0,groupId:e.groupId,sub:e.groupId+"-"+a.gateId,isGroupPassableGate:void 0!==a.isGroupPassableGate?a.isGroupPassableGate:""};t.dataModal.gateOfGroup.data.push(s)}));else{var a={gateName:"",group:e,groupId:e.groupId,isPassageId:!0,sub:e.groupId+"-"+Math.random().toString(36).slice(-8),isGroupPassableGate:""};t.dataModal.gateOfGroup.data.push(a)}})),t.dataModal.gateOfGroup.total=t.dataModal.gateOfGroup.data.length,t.dataModal.gateOfGroup.tmp=t.dataModal.gateOfGroup.data,t.dataModal.gateOfGroup.tmp.sort((function(e,t){return e.group.name.toLowerCase()=0&&this.dataModal.gateOfGroup.dataAdd.splice(parseInt(s),1)}else{var r=this.dataModal.gateOfGroup.dataAdd.findIndex((function(t){return t.groupId===e.groupId}));r<0&&this.dataModal.gateOfGroup.dataAdd.push({groupId:e.groupId,name:e.name});var o=this.dataModal.gateOfGroup.dataDel.findIndex((function(t){return t.groupId===e.groupId}));o>=0&&this.dataModal.gateOfGroup.dataDel.splice(parseInt(o),1)}var n={dataAdd:this.dataModal.gateOfGroup.dataAdd,dataDel:this.dataModal.gateOfGroup.dataDel,dataOri:this.dataModal.gateOfGroup.dataOri};this.$emit("add-groupIds",n)},getPassageId:function(e,t){var a=this;return new Promise((function(s,r){a.$http.get(Z+"?userId="+encodeURIComponent(t)+"&groupId="+encodeURIComponent(e)).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.body.maxRecords>0)){e.next=11;break}if(void 0===t.body.groupPassages[0].groupPassageId||""===t.body.groupPassages[0].groupPassageId||null===t.body.groupPassages[0].groupPassageId){e.next=8;break}return e.next=4,a.delGroupUserItem(t.body.groupPassages[0].groupPassageId);case 4:r=e.sent,s(r),e.next=9;break;case 8:s(ba);case 9:e.next=12;break;case 11:s(ba);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t=ta;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s(t)}))}))}}}),Cx=xx,wx=Object(I["a"])(Cx,WI,JI,!1,null,null,null),kx=wx.exports,Sx=f["a"].extend({name:"UserAddForm",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,DateTimePicker:Jp,TextLink:No,ModalPageGroupGate:kx,ModalTitle:Xc,Modal:bn,ErrorButton:kn},props:{isGetDepartmentAll:{type:Boolean,default:!1},isGetDepartment:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},gates:{type:Array,default:function(){return[]}},listGatePassages:{default:function(){return[]}},gateList:{type:Array,default:function(){return[]}},isDisabledGateOption:{type:Boolean,default:!0},isDisabledPCodeOptions:{type:Boolean,default:!0},isDisabledGroupOptions:{type:Boolean,default:!0},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},gateGroupOptions:{type:Array,default:function(){return[]}},pCodeOptions:{type:Array,default:function(){return[]}},userInfo:{type:Object,default:function(){return{}}},phoneItems:{type:Array,default:function(){return[]}},groupsAddFail:{type:Array,default:function(){return[]}},pCodeAddFail:{type:Array,default:function(){return[]}},gateAddFail:{type:Array,default:function(){return[]}},departments:{type:Array,default:function(){return[]}},getDepartments:{type:Array,default:function(){return[]}},isModal:{type:Boolean,default:!1},authority:{type:Object,default:{}},dataFailed:{type:Object,default:{}}},created:function(){this.$emit("getListGate")},mounted:function(){this.isNoPasswordUser=!0!==this.isEdit||!0!==this.userInfo.isPasswordLoginValid,this.authority.isCustomUserAuthorityService?this.authorityItems=[{text:"一般ユーザー",value:!1},{text:"管理者",value:!0},{text:"カスタマイズ権限",value:null}]:this.authorityItems=[{text:"一般ユーザー",value:!1},{text:"管理者",value:!0}]},computed:{headers:{get:function(){var e=[];return e.push({text:"ゲート名",align:"start",sortable:!0,width:"300px",value:"gateName"}),e.push({text:"時間",align:"start",sortable:!0,value:"time"}),e.push({text:"",align:"start",sortable:!1,value:"edit",width:"100px"}),e},set:function(){}}},data:function(){return{isAddGroup:!1,Error:"",userDepartmentId:"",selectedIds:[],listAff:[{departmentId:"",isAdminToView:!0,isAdminToAddUser:!1,isAdminToEditUser:!1,isAdminToSetPcodesToUser:!1,disabled:!1,relationId:"",searchInput:""}],listGroup:[{groupId:"",isAdminToView:!0,isAdminOfGroupPassages:!1,isAdminOfGatePassages:!1,isAdminOfRemoteUnlock:!1,isAdminOfUnlockingTimeSetting:!1,disabled:!1,groupAdministratorId:"",searchInput:""}],addItem:{index:0,item:""},showModal:!1,showConfirm:!1,autoselectMenu:!1,isNoPasswordUser:!0,type:"0",model:[],errorAddListGate:"",errorGate:"",errorTime:"",pCodeIdValue:"",detailValue:"",typeValue:"",userIdValue:"",searchInput:"",searchInputTmp:"",realtionsGateList:[],timeStartGate:"",timeEndGate:"",dateStartGate:"",dateEndGate:"",itemGate:[],isClickExpandArea:!1,checkSMS:!1,update:!0,sameUser:!1,isHasLowerCaseCardNumber:!1,lastSearchCard:"",erroMessage:{isAff:!1,messageAff:[],messageGroup:[],isGroup:!1},rulesValidate:{requiredUserId:function(e){return!!e||"ユーザーIDは必須です。"},validateUserId:function(e){var t=/^[a-zA-Z0-9@.!#$&*+/=?^_`{|}~-]{4,96}$/;return t.test(e)||"ユーザーIDは半角英数字で4文字以上96文字以内で設定してください。"},validateFurigana:function(e){return null===e||void 0===e||""===e||(e.length<=64||"ふりがなは64文字以内で入力してください。")},validateOption1:function(e){return null===e||void 0===e||""===e||(e.length<=8192||"備考は8192文字以内で入力してください。")},validateOption2:function(e){return null===e||void 0===e||""===e||(e.length<=8192||"備考は8192文字以内で入力してください。")},validateEmail:function(e){if(null!==e&&void 0!==e&&""!==e){var t=e.match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/);return!!t||"正しいメールアドレスを入力してください。"}return!0},validatePassword:function(e,t){if(t){var a=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*).{8,64}$/;return a.test(e)||"パスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください。"}return!0},validateNewPassword:function(e){if(null!==e&&void 0!==e&&""!==e){var t=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*).{8,64}$/;return t.test(e)||"パスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください。"}return!0},requiredName:function(e){return!!e||"ユーザー名は必須です。"},validateName:function(e){return null===e||void 0===e||""===e||(e.length<=64||"ユーザー名は64文字以内で入力してください。")},validatePhone:function(e,t){if(t){var a=/^[0][0-9]{10}$/;return a.test(e)||"0から始まる-(ハイフン)無しの携帯電話番号を半角数字で11桁入力してください。"}return!0},validateConfirmPass:function(e,t){var a=void 0===e?"":e,s=void 0===t?"":t;return a===s||"「新しいパスワード」と一致しません。"},validatePassCode:function(e){if(""!==e&&null!==e){var t=e.match(/^\d{4}$/);return!!t||"解錠時の二段階認証パスワードは半角数字で4文字入力してください。"}return!0},requiredDepartment:function(e,t,a,s){if(void 0!==t&&!0===t.isAdmin)return!0;var r=s.filter((function(e,t){if(""!==e.departmentId)return e}));return void 0!==t&&!1===t.isAdmin&&!0===t.isAdminToViewUser?!!e||"所属選択は必須です。":null!==a||null===a&&0===r.length||(!!e||"所属選択は必須です。")},isShowGate:function(e,t){if(""!==e){var a=t.findIndex((function(t){return t.departmentId===e&&!0===t.isAdminToSetPcodesToUser}));return a>=0}return!0}},authorityItems:[{text:"一般ユーザー",value:!1},{text:"管理者",value:!0}],dataTime:"",isMfa:"true"!==localStorage.isMfa,Message:s,deleteData:{relationIds:[],groupAdministratorIds:[]},dataAllow:{group:[],groupOri:[],department:[]},addIds:[],groupIds:[]}},watch:{isGetDepartmentAll:function(e){!1===e&&(this.userDepartmentId=this.userInfo.departmentId?this.userInfo.departmentId:"")},userDepartmentId:function(e){this.$emit("change-user-departmentId",e)},isGetDepartment:function(e){var t=this;if(!1===e){var a=Array.of.apply(Array,Object(mI["a"])(this.departments));this.dataAllow.department=a}!1===e&&this.userInfo.departmentAdministrators.length>0&&!0===this.isEdit&&(this.deleteData.relationIds=[],this.listAff=[],this.userInfo.departmentAdministrators.forEach((function(e){var a=t.dataAllow.department.filter((function(t){if(t.value===e.departmentId)return t}));t.listAff.push({departmentId:{value:e.departmentId,text:a.length>0?a[0].text:""},isAdminToView:!0,isAdminToEditUser:e.isAdminToEditUser,isAdminToAddUser:e.isAdminToAddUser,isAdminToSetPcodesToUser:e.isAdminToSetPcodesToUser,disabled:!0,relationId:e.departmentAdministratorId,searchInput:""})})),this.changeDepartment())},isDisabledGroupOptions:function(e){var t=this;if(!1===e){var a=Array.of.apply(Array,Object(mI["a"])(this.gateGroupOptions));this.dataAllow.group=a,this.dataAllow.groupOri=a}!1===e&&this.userInfo.groupAdministrators.length>0&&!0===this.isEdit&&(this.listGroup=[],this.deleteData.groupAdministratorIds=[],this.userInfo.groupAdministrators.forEach((function(e){var a=t.dataAllow.group.filter((function(t){if(t.value===e.groupId)return t}));t.listGroup.push({groupId:{value:e.groupId,text:a.length>0?a[0].text:""!==e.group.name?e.group.name:""},isAdminToView:!0,isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,disabled:!0,groupAdministratorId:e.groupAdministratorId,searchInput:""})})),this.changeGroup())},loading:function(e){var t=this;if(!1===e){this.deleteData.groupAdministratorIds=[],this.deleteData.relationIds=[],this.isNoPasswordUser=!0!==this.isEdit||!0!==this.userInfo.isPasswordLoginValid;var a=Array.of.apply(Array,Object(mI["a"])(this.gateGroupOptions)),s=Array.of.apply(Array,Object(mI["a"])(this.departments));this.dataAllow.department=s,this.dataAllow.group=a,""!==this.successMessageLogs&&!0===this.isEdit?this.isEdit&&(this.listGroup=[],this.userInfo.groupAdministrators.forEach((function(e){var a=t.dataAllow.group.filter((function(t){if(t.value===e.groupId)return t}));t.listGroup.push({groupId:{value:e.groupId,text:a.length>0?a[0].text:""!==e.group.name?e.group.name:""},isAdminToView:!0,isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,disabled:!0,groupAdministratorId:e.groupAdministratorId,searchInput:""})})),this.dataFailed.groupAdministrators.add.length>0&&this.dataFailed.groupAdministrators.add.forEach((function(e){t.listGroup.push({groupId:e.groupId,isAdminToView:e.isAdminToView,isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting,disabled:!1,groupAdministratorId:e.groupAdministratorId,searchInput:""})})),this.changeGroup(),this.listAff=[],this.userInfo.departmentAdministrators.forEach((function(e){var a=t.dataAllow.department.filter((function(t){if(t.value===e.departmentId)return t}));t.listAff.push({departmentId:{value:e.departmentId,text:a.length>0?a[0].text:""},isAdminToView:!0,isAdminToEditUser:e.isAdminToEditUser,isAdminToAddUser:e.isAdminToAddUser,isAdminToSetPcodesToUser:e.isAdminToSetPcodesToUser,disabled:!0,relationId:e.departmentAdministratorId,searchInput:""})})),this.dataFailed.departmentAdministrators.add.length>0&&this.dataFailed.departmentAdministrators.add.forEach((function(e){t.listAff.push({departmentId:e.departmentId,isAdminToView:e.isAdminToView,isAdminToEditUser:e.isAdminToEditUser,isAdminToAddUser:e.isAdminToAddUser,isAdminToSetPcodesToUser:e.isAdminToSetPcodesToUser,disabled:!1,relationId:e.departmentAdministratorId,searchInput:""})})),this.changeDepartment(),this.dataFailed.departmentAdministrators.add.length>0&&this.listAff.filter((function(e,a){var s=t.dataFailed.departmentAdministrators.add.findIndex((function(t){return""!==t.departmentId&&t.departmentId.value===e.departmentId.value}));s>=0&&t.erroMessage.messageAff.push({i:a,type:"add"})})),this.dataFailed.departmentAdministrators.edit.length>0&&this.listAff.filter((function(e,a){var s=t.dataFailed.departmentAdministrators.edit.findIndex((function(t){return""!==t.departmentId&&t.departmentId.value===e.departmentId.value}));s>=0&&t.erroMessage.messageAff.push({i:a,type:"edit"})})),this.dataFailed.departmentAdministrators.del.length>0&&this.listAff.filter((function(e,a){var s=t.dataFailed.departmentAdministrators.del.findIndex((function(t){return""!==t.departmentId&&t.departmentId.value===e.departmentId.value}));s>=0&&t.erroMessage.messageAff.push({i:a,type:"del"})})),this.dataFailed.groupAdministrators.add.length>0&&this.listGroup.filter((function(e,a){var s=t.dataFailed.groupAdministrators.add.findIndex((function(t){return""!==t.groupId&&t.groupId.value===e.groupId.value}));s>=0&&t.erroMessage.messageGroup.push({i:a,type:"add"})})),this.dataFailed.groupAdministrators.edit.length>0&&this.listGroup.filter((function(e,a){var s=t.dataFailed.groupAdministrators.edit.findIndex((function(t){return""!==t.groupId&&t.groupId.value===e.groupId.value}));s>=0&&t.erroMessage.messageGroup.push({i:a,type:"edit"})})),this.dataFailed.groupAdministrators.del.length>0&&this.listGroup.filter((function(e,a){var s=t.dataFailed.groupAdministrators.del.findIndex((function(t){return""!==t.groupId&&t.groupId.value===e.groupId.value}));s>=0&&t.erroMessage.messageGroup.push({i:a,type:"del"})}))):(this.dataFailed.departmentAdministrators.add.length>0&&this.listAff.filter((function(e,a){var s=t.dataFailed.departmentAdministrators.add.findIndex((function(t){return""!==t.departmentId&&t.departmentId.value===e.departmentId.value}));s>=0&&t.erroMessage.messageAff.push({i:a,type:"add"})})),this.dataFailed.groupAdministrators.add.length>0&&this.listGroup.filter((function(e,a){var s=t.dataFailed.groupAdministrators.add.findIndex((function(t){return""!==t.groupId&&t.groupId.value===e.groupId.value}));s>=0&&t.erroMessage.messageGroup.push({i:a,type:"add"})})),""!==this.successMessageLogs&&!1===this.isEdit&&0===this.dataFailed.groupAdministrators.add.length&&0===this.dataFailed.departmentAdministrators.add.length&&(this.$emit("init-data"),this.dateStartGate="",this.dateEndGate="",this.timeStartGate="",this.timeEndGate="",this.itemGate=[],this.$refs.UserAddForm.resetValidation()))}},listGatePassages:function(e){this.realtionsGateList=e},userInfo:function(e){console.log("data",e),this.checkSMS=this.userInfo.isMfaSms,this.sameUser=this.userInfo.userId===localStorage.userProfileId},successMessageLogs:function(e){""!==e&&!1===this.isEdit&&0===this.dataFailed.groupAdministrators.add.length&&this.dataFailed.departmentAdministrators.add.length}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(console.log(e),e.sort((function(e,s){return"gateName"===t[0]?a[0]?s.gate.text0||this.listAff.length>0)||0===this.listGroup.length&&0===this.listAff.length)&&(this.erroMessage.isAff=!0)}e&&0===this.erroMessage.messageGroup.length&&0===this.erroMessage.messageAff.length&&!1===this.erroMessage.isAff&&(void 0!==this.userInfo.email&&null!==this.userInfo.email&&""!==this.userInfo.email&&void 0!==this.userInfo.isPasswordLoginValid&&null!==this.userInfo.isPasswordLoginValid&&!0===this.userInfo.isPasswordLoginValid?this.showConfirm=!0:(this.isNoPasswordUser=!0!==this.userInfo.isPasswordLoginValid,this.$emit("clickSaveUser",{userInfo:this.userInfo,gate:this.realtionsGateList,listAff:this.listAff,listGroup:this.listGroup,addIds:this.addIds,checkShowGate:this.checkShowGate()})))},clickUpdateUser:function(){var e=this,t=this.$refs.UserAddForm.validate();if(this.erroMessage={isAff:!1,messageAff:[],messageGroup:[],isGroup:!1},null===this.userInfo.isAdmin){var a=this.listAff.filter((function(e,t){if(""===e.departmentId)return e})),s=this.listGroup.filter((function(e,t){if(""===e.groupId)return e}));(a.length===this.listAff.length&&s.length===this.listGroup.length&&(this.listGroup.length>0||this.listAff.length>0)||0===this.listGroup.length&&0===this.listAff.length)&&(this.erroMessage.isAff=!0)}if(t&&0===this.erroMessage.messageGroup.length&&0===this.erroMessage.messageAff.length&&!1===this.erroMessage.isAff)if(void 0!==this.userInfo.email&&null!==this.userInfo.email&&""!==this.userInfo.email)this.showConfirm=!0;else{this.erroMessage={isAff:!1,isGroup:!1,messageAff:[],messageGroup:[]},this.isNoPasswordUser=!0!==this.userInfo.isPasswordLoginValid;var r=[];this.phoneItems.forEach((function(t){if(t.text.startsWith("申請中 : ")){var a=e.userInfo.phoneIds.find((function(e){return e.text===t.text&&e.value===t.value}));a&&r.push(a)}else{var s=e.userInfo.phoneIds.find((function(e){return e.text===t.text&&e.value===t.value}));s||r.push(t)}})),this.$emit("clickUpdateUser",{userInfo:this.userInfo,gate:this.realtionsGateList,updatedPhonesList:r,listAff:this.listAff,listGroup:this.listGroup,deleteData:this.deleteData,checkShowGate:this.checkShowGate(),groupIds:this.groupIds})}},isObject:function(e){return e instanceof Object},closeModal:function(){var e=this.userInfo.pCodeIds;e.splice(parseInt(this.addItem.index),1),this.showModal=!1},addPcode:function(){var e=this.userInfo.pCodeIds;e.splice(parseInt(this.addItem.index),1),e.push({text:this.addItem.value+"<"+this.addItem.value+">",value:this.addItem.value,type:parseInt(this.type)}),this.showModal=!1,this.addItem={index:0,value:""},this.type="0"},toggle:function(e){this.autoselectMenu=e},updateGroupTags:function(){var e=this.userInfo.groupIds,t=Object.keys(e).length-1,a=e[Object.keys(e)[t]];void 0!==a&&!1===this.isObject(a)&&(e.splice(t,1),e.push({text:a,value:a,type:1})),this.searchInput=""},updatePhoneTags:function(){var e=this.userInfo.phoneIds,t=Object.keys(e).length-1,a=e[Object.keys(e)[t]];void 0!==a&&!1===this.isObject(a)&&(this.addItem={index:Object.keys(e).length-1,value:a},e.splice(parseInt(this.addItem.index),1)),this.searchInput=""},updateTags:function(e){var t=this.userInfo.pCodeIds,a=Object.keys(t).length-1;this.searchInputTmp=this.searchInput,this.lastSearchCard=t[Object.keys(t)[a]],void 0!==this.lastSearchCard&&!1===this.isObject(this.lastSearchCard)&&(this.authority.isAdmin?(this.addItem={index:Object.keys(t).length-1,value:this.lastSearchCard},this.lastSearchCard.toUpperCase()!==this.lastSearchCard?this.isHasLowerCaseCardNumber=!0:this.showModal=!0):t.splice(a,1)),this.searchInput=""},ChangeValue:function(e){this.checkSMS=e},ClickForm:function(){this.$refs.form123.validate()},getNewTimeStart:function(e){this.timeStartGate=e},getNewTimeEnd:function(e){this.timeEndGate=e},getNewDateStart:function(e){this.dateStartGate=e},getNewDateEnd:function(e){this.dateEndGate=e},formatDateTime:function(e){var t=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0");return t+"/"+a+"/"+s+" "+r+":"+o},formatTimestamp:function(e){return""!==e?jo()(e).unix():""},deleteGate:function(e){this.realtionsGateList.splice(parseInt(e),1)},addGate:function(){var e=0;this.errorAddListGate="",this.errorGate="",this.errorTime="";var t,a=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,s=a.test(this.timeStartGate),r=a.test(this.timeEndGate),o=this.dateStartGate+" "+this.timeStartGate,n=this.dateEndGate+" "+this.timeEndGate,i=Object(rr["a"])(this.realtionsGateList);try{for(i.s();!(t=i.n()).done;){var l=t.value,c=l.gate.value+"-"+l.notBefore+"-"+l.notAfter,u=this.itemGate.value+"-"+this.formatTimestamp(this.dateStartGate+" "+this.timeStartGate)+"-"+this.formatTimestamp(this.dateEndGate+" "+this.timeEndGate);if(c===u){this.errorAddListGate="すでに追加されている時間帯になります。追加する場合は、一度削除してから実施してください。",this.errorGate="",this.errorTime="";break}e++}}catch(d){i.e(d)}finally{i.f()}e===this.realtionsGateList.length&&""!==this.dateStartGate&&""!==this.timeStartGate&&" "!==this.dateEndGate&&""!==this.timeEndGate&&!0===s&&!0===r&&n>o?this.realtionsGateList.push({gate:this.itemGate,notBefore:this.formatTimestamp(this.dateStartGate+" "+this.timeStartGate),notAfter:this.formatTimestamp(this.dateEndGate+" "+this.timeEndGate)}):(0!==this.itemGate.length&&""!==this.itemGate.value||(this.errorGate="ゲートを指定してください。",this.errorAddListGate=""),n<=o&&""===this.errorAddListGate&&(this.errorTime=as),!1!==s&&!1!==r||""!==this.errorAddListGate||(this.errorTime="時間を指定してください。"))},closeDialogConfirm:function(){var e=this;this.isHasLowerCaseCardNumber=!1;var t=this.userInfo.pCodeIds;t.splice(parseInt(this.addItem.index),1),setTimeout((function(){e.searchInput=e.searchInputTmp;var t=document.getElementById("id-list-card");t&&t.focus()}),300)},yesChoiceLowerCase:function(){this.isHasLowerCaseCardNumber=!1;var e=this.userInfo.pCodeIds;this.showModal=!0,this.addItem={index:Object.keys(e).length-1,value:this.lastSearchCard}},addAffiliation:function(){this.listAff.push({departmentId:"",isAdminToView:!0,isAdminToAddUser:!1,isAdminToEditUser:!1,isAdminToSetPcodesToUser:!1,disabled:!1,relationId:"",searchInput:""})},addGroup:function(){this.listGroup.push({groupId:"",isAdminToView:!0,isAdminOfGroupPassages:!1,isAdminOfGatePassages:!1,isAdminOfRemoteUnlock:!1,isAdminOfUnlockingTimeSetting:!1,disabled:!1,groupAdministratorId:"",searchInput:""}),this.isAddGroup=!0},deleteAff:function(e){var t=this.dataAllow.department.map((function(e){return e.value})).indexOf(this.listAff[e].departmentId.value);t>=0&&(this.dataAllow.department[t].disabled=!1),this.listAff[e].disabled&&this.deleteData.relationIds.push(this.listAff[e]),this.listAff.splice(parseInt(e),1)},deleteGroup:function(e){var t=this.dataAllow.groupOri.map((function(e){return e.value})).indexOf(this.listGroup[e].groupId.value);t>=0&&(this.dataAllow.groupOri[t].disabled=!1),this.listGroup[e].disabled&&this.deleteData.groupAdministratorIds.push(this.listGroup[e]),this.listGroup.splice(parseInt(e),1),this.changeGroup()},changeGroup:function(){var e=this;this.dataAllow.groupOri.map((function(e){return Object.assign(e,{disabled:!1})})),this.dataAllow.groupOri.forEach((function(t,a){var s=e.listGroup.some((function(e){return e.groupId.value===t.value}));s&&(e.dataAllow.groupOri[a].disabled=!0)})),this.dataAllow.group=this.dataAllow.groupOri.filter((function(e){return!1===e.disabled}))},changeDepartment:function(){var e=this;this.dataAllow.department.map((function(e){return Object.assign(e,{disabled:!1})})),this.dataAllow.department.forEach((function(t,a){var s=e.listAff.some((function(e){return e.departmentId.value===t.value}));s&&(e.dataAllow.department[a].disabled=!0)}))},changeisAdmin:function(e){this.$emit("change-id")},isDisable:function(){if(!1===this.loading){var e=this.rulesValidate.requiredDepartment(this.userInfo.departmentId,this.authority,this.userInfo.isAdmin,this.listAff),t=this.rulesValidate.validateEmail(this.userInfo.email),a=this.rulesValidate.requiredUserId(this.userInfo.userId),s=this.rulesValidate.validateUserId(this.userInfo.userId),r=this.rulesValidate.validateFurigana(this.userInfo.furigana),o=this.rulesValidate.validateOption1(this.userInfo.option1),n=this.rulesValidate.validateOption2(this.userInfo.option2),i=this.rulesValidate.requiredName(this.userInfo.name),l=this.rulesValidate.validateName(this.userInfo.name),c=this.rulesValidate.validatePhone(this.userInfo.phoneNumber,this.checkSMS),u=this.rulesValidate.validateConfirmPass(this.userInfo.confirmPassword,this.userInfo.newPassword),d=!0!==this.isNoPasswordUser||this.rulesValidate.validatePassword(this.userInfo.password,this.userInfo.isPasswordLoginValid),g=this.rulesValidate.validatePassCode(this.userInfo.passCode,this.userInfo.newPassword);return!0!==e||!0!==a||!0!==s||!0!==r||!0!==t||!0!==o||!0!==n||!0!==i||!0!==l||!0!==c||!0!==u||!0!==g||!0!==d}return!0},isDisableRegister:function(){var e=this.rulesValidate.requiredDepartment(this.userInfo.departmentId,this.authority,this.userInfo.isAdmin,this.listAff),t=this.rulesValidate.validateEmail(this.userInfo.email),a=this.rulesValidate.requiredUserId(this.userInfo.userId),s=this.rulesValidate.validateUserId(this.userInfo.userId),r=this.rulesValidate.validateFurigana(this.userInfo.furigana),o=this.rulesValidate.validateOption1(this.userInfo.option1),n=this.rulesValidate.validateOption2(this.userInfo.option2),i=this.rulesValidate.requiredName(this.userInfo.name),l=this.rulesValidate.validateName(this.userInfo.name),c=this.rulesValidate.validatePhone(this.userInfo.phoneNumber,this.checkSMS),u=this.rulesValidate.validatePassword(this.userInfo.password,this.userInfo.isPasswordLoginValid),d=this.rulesValidate.validateNewPassword(this.userInfo.newPassword,this.userInfo.newPassword),g=this.rulesValidate.validateConfirmPass(this.userInfo.confirmPassword,this.userInfo.newPassword),p=this.rulesValidate.validatePassCode(this.userInfo.passCode,this.userInfo.newPassword);return!0!==e||!0!==a||!0!==s||!0!==r||!0!==t||!0!==u||!0!==d||!0!==o||!0!==n||!0!==i||!0!==l||!0!==c||!0!==g||!0!==p},isShowMsg:function(e,t){var a=e.find((function(e){return e.i===t}));return!!a},isMsgDepartment:function(e,t){var a=e.find((function(e){return e.i===t}));return a?"add"===a.type?"所属権限追加に失敗しました。":"edit"===a.type?"所属権限編集に失敗しました。":"del"===a.type?"所属権限削除に失敗しました。":"カスタマイズ権限の時は一つ以上入力してください。":"カスタマイズ権限の時は一つ以上入力してください。"},isMsgGroup:function(e,t){var a=e.find((function(e){return e.i===t}));return a?"add"===a.type?"通行権限グループ追加に失敗しました。":"edit"===a.type?"通行権限グループ編集に失敗しました。":"del"===a.type?"通行権限グループ削除に失敗しました。":"カスタマイズ権限の時は一つ以上入力してください。":"カスタマイズ権限の時は一つ以上入力してください。"},isValidateItem:function(e,t){return"department"===t?""===e.departmentId:"group"===t?""===e.groupId:void 0},changeDepartmentInput:function(){var e=this;this.listAff.forEach((function(t,a){(""!==t.departmentId&&void 0===t.departmentId.value||""===t.departmentId)&&(console.log("key",a),e.listAff[a].searchInput="",e.listAff[a].departmentId="")}))},changeGroupInput:function(){var e=this;this.listGroup.forEach((function(t,a){(""!==t.groupId&&void 0===t.groupId.value||""===t.groupId)&&(console.log("key",a),e.listGroup[a].searchInput="",e.listGroup[a].groupId="")}))},checkShowGate:function(){var e=this.userInfo.departmentId;if(this.isEdit)return e=this.userDepartmentId,this.rulesValidate.isShowGate(e,this.userInfo.departmentAdministratorsAll);var t=this.rulesValidate.requiredDepartment(e,this.authority,this.userInfo.isAdmin,this.listAff);return!0===t&&this.rulesValidate.isShowGate(e,this.userInfo.departmentAdministratorsAll)},addGroupIds:function(e){this.groupIds=e}}}),_x=Sx,Px=(a("fb9d"),a("88c4"),Object(I["a"])(_x,YI,qI,!1,null,"a6adddde",null)),Mx=Px.exports;C()(Px,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCheckbox:Lr["a"],VChip:ao["a"],VCol:Dr["a"],VCombobox:Sf["a"],VDataTable:Xo["a"],VForm:Nl["a"],VIcon:Gr["a"],VListItem:On["a"],VListItemContent:Vn["a"],VListItemTitle:Vn["b"],VRadio:Ar["a"],VRadioGroup:Rr["a"],VRow:Kr["a"],VSelect:_o["a"],VSpacer:Qo["a"],VSubheader:Yr["a"],VSwitch:ro["a"],VTextField:Tr["a"],VTooltip:oo["a"]});var Lx=f["a"].extend({name:"UserAddTemplate",components:{Breadcrumbs:cn,UserAddForm:Mx,SuccessButton:kr},props:{departments:{type:Array,default:function(){return[]}},groupsAddFail:{type:Array,default:function(){return[]}},getDepartments:{type:Array,default:function(){return[]}},gateList:{type:Array,default:function(){return[]}},isModal:{type:Boolean,default:!0},isDisabledGateOption:{type:Boolean,default:!0},isGetDepartment:{type:Boolean,default:!0},isGetDepartmentAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},isDisabledPCodeOptions:{type:Boolean,default:!0},isDisabledGroupOptions:{type:Boolean,default:!0},gateGroupOptions:{type:Array,default:function(){return[]}},phoneItems:{type:Array,default:function(){return[]}},pCodeAddFail:{type:Array,default:function(){return[]}},gateAddFail:{type:Array,default:function(){return[]}},pCodeOptions:{type:Array,default:function(){return[]}},listGatePassages:{default:function(){return[]}},userData:{default:function(){return{}}},isEdit:{type:Boolean,default:!1},errorMessageLogs:{type:String,default:""},successMessageLogs:{type:String,default:""},authority:{type:Object,default:{}},dataFailed:{default:function(){return{}}}},data:function(){return{Message:s}},computed:{breadcrumbs:{get:function(){return[{text:"ユーザー",link:!0,exact:!0,disabled:!1,to:{path:_t}},{text:this.isEdit?"ユーザー編集":"新規ユーザー登録",disabled:!0}]}}},methods:{}}),Dx=Lx,Gx=Object(I["a"])(Dx,HI,KI,!1,null,null,null),Ax=Gx.exports;C()(Gx,{VContainer:Zo["a"],VOverlay:Wg["a"],VProgressCircular:Hu["a"]});var Rx=f["a"].extend({name:"UserAddPage",components:{UserAddTemplate:Ax},props:{isModal:{type:Boolean,default:!1},userId:{type:String,default:""},departmentId:{type:String,default:""}},created:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isGetDepartmentAll=!0,e.getDepartments=[{text:"",value:""}],"/user/edit"!==e.$route.path&&""===e.userId){t.next=8;break}e.isEdit=!0,(null!==e.$route.query.userId&&void 0!==e.$route.query.userId||""!==e.userId)&&(a=""!==e.userId?e.userId:e.$route.query.userId,e.loading=!0,e.getInFoUser(a).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(s){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.userData.authority=e.authority,!s){t.next=35;break}return e.userData.groupIds=[],e.userData.pCodeIds=[],e.userData.phoneIds=[],e.userData.groupAdministrators=[],e.userData.departmentAdministrators=[],e.userData.groupAdministratorsOri=[],e.userData.departmentAdministratorsOri=[],e.userData.departmentAdministratorsAll=[],e.userData.departmentOri={relationId:"",departmentId:""},e.userData.departmentId="",t.next=14,e.getDepartmentUser(a);case 14:if(e.getInforGatePassage(1,a),!0===e.userData.isAdmin||!0!==e.authority.isAdmin){t.next=20;break}return t.next=18,e.getGroupAuth(a);case 18:return t.next=20,e.getDepartmentAuth(a,1);case 20:return t.next=22,e.getDepartmentAuth("no-id",1);case 22:e.getPcodeById(1,a),e.getGroup=!1,e.isDisabledGroupOptions=!0,e.isGetDepartment=!0,e.getListGate(),e.getGroupList(),e.getPCodeList(),e.getDepartment(1),e.getPhone(1,a),(e.userData.groupAdministrators.length>0||e.userData.departmentAdministrators.length>0)&&(e.userData.isAdmin=null),e.loading=!1,t.next=36;break;case 35:e.loading=!1;case 36:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),console.log("userId",e.userData)),void 0!==e.$route.query.goBack&&(e.goBack=e.$route.query.goBack.toString()),t.next=20;break;case 8:return""!==e.departmentId&&(e.userData.departmentId=e.departmentId),e.userData.authority=e.authority,e.changeId(),e.getGroup=!1,e.isDisabledGroupOptions=!0,e.isGetDepartment=!0,t.next=16,e.getDepartmentAuth("no-id",1);case 16:e.getListGate(),e.getGroupList(),e.getPCodeList(),e.getDepartment(1);case 20:case"end":return t.stop()}}),t)})))()},watch:{loading:function(e){if(!0!==this.isModal){var t=!1!==this.isGetDepartmentAll||!1!==e;this.$emit("loading",t)}},reLoad:function(e){if(console.log("val",e+""+this.isEdit+this.$route.query.userId),!1===e&&!0===this.isEdit&&(null!==this.$route.query.userId&&void 0!==this.$route.query.userId||""!==this.userId)){var t=""!==this.userId?this.userId:this.$route.query.userId;this.getPcodeByIdAfterUpdate(1,t)}},isGetDepartment:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!1!==e){a.next=15;break}if(!t.authority.isAdmin){a.next=6;break}t.isGetDepartmentAll=!1,t.$emit("loading",!1),a.next=15;break;case 6:return s=t.getDepartments.map((function(e){return Object(Dc["a"])({},e)})),t.getDepartments=[],s.map((function(e){return Object.assign(e,{disabled:!0})})),a.next=11,t.getDepartmentAuthAll(localStorage.userProfileId,1,s);case 11:r=a.sent,t.getDepartments=r.filter((function(e){return!1===e.disabled})),t.isGetDepartmentAll=!1,t.$emit("loading",!1);case 15:case"end":return a.stop()}}),a)})))()}},data:function(){return{isGetDepartment:!1,getGroup:!1,isEdit:!1,isDisabledGateOption:!1,gateList:[],isDisabledGroupOptions:!1,isDisabledPCodeOptions:!1,gateGroupOptions:[],pCodeOptions:[],pageLoadGateList:1,userData:{isAdmin:!1,isMfaSms:!1,userId:"",password:"",passCode:"",name:"",furigana:"",phoneNumber:"",option1:"",option2:"",isSendEmail:!1,isPasswordLoginValid:!0,departmentAdministratorsAll:[],departmentAdministrators:[],groupAdministrators:[],departmentAdministratorsOri:[],groupAdministratorsOri:[],groups:[],departments:[],departmentId:"",departmentOri:{relationId:"",departmentId:""}},errorMessageLogs:"",successMessageLogs:"",listGatePassages:[],loading:!1,goBack:"user",pagePCode:1,pageGroup:1,groupsAddFail:[],pCodeAddFail:[],groupItemsOrigin:[],gateItemsOrigin:[],pcodeItemsOrigin:[],gateAddFail:[],timeDefault:"",phoneItems:[],departments:[],gateOfGroup:{tmp:[],data:[],page:1,perPage:25,total:1,loading:!1},authority:er.state.auth,reLoad:!1,isGetDepartmentAll:!1,getDepartments:[],dataFailed:{departmentAdministrators:{add:[],edit:[],del:[]},groupAdministrators:{add:[],edit:[],del:[]}},groupFailed:{add:[],del:[]}}},computed:{},methods:{backUserList:function(){"personal"===this.goBack?this.$router.push({path:"/"+this.goBack,query:{goBack:"true"}}):this.$router.push({path:"/"+this.goBack})},initData:function(){this.loading=!1,this.userData={isAdmin:!1,isMfaSms:!1,userId:"",password:"",name:"",furigana:"",phoneNumber:"",passCode:"",option1:"",option2:"",isSendEmail:!1,isPasswordLoginValid:!0,pCodeIds:[],groupIds:[],phoneIds:[],gate:{},departmentAdministrators:[],departmentAdministratorsAll:[],groupAdministrators:[],departmentAdministratorsOri:[],groupAdministratorsOri:[]}},getDataAgain:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w,k,S,_,P,M,L,D,G,A,R,T,E,O,V,U,$,N,F,j,B,z,H,K,Y,q,W,J,Z,X,Q,ee,te;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log(e),t.groupsAddFail=[],t.pCodeAddFail=[],t.gateAddFail=[],s=e.gate,r=t.gateItemsOrigin,!(void 0!==s&&s.length>0)){a.next=48;break}if(o=r.filter((function(e){return!s.some((function(t){return e.gate.value===t.gate.value&&e.notAfter===t.notAfter&&e.notBefore===t.notBefore}))})),n=s.filter((function(e){return!r.some((function(t){return e.gate.value===t.gate.value&&e.notAfter===t.notAfter&&e.notBefore===t.notBefore}))})),!(o.length>0)){a.next=27;break}i=Object(rr["a"])(o),a.prev=11,i.s();case 13:if((l=i.n()).done){a.next=19;break}return c=l.value,a.next=17,t.delGatePassage(c.passageId,c.gate.text);case 17:a.next=13;break;case 19:a.next=24;break;case 21:a.prev=21,a.t0=a["catch"](11),i.e(a.t0);case 24:return a.prev=24,i.f(),a.finish(24);case 27:if(!(n.length>0)){a.next=46;break}u=Object(rr["a"])(n),a.prev=29,u.s();case 31:if((d=u.n()).done){a.next=38;break}return g=d.value,p={userId:e.userInfo.userId,gateId:g.gate.value,notBefore:g.notBefore,notAfter:g.notAfter},a.next=36,t.postGatePassage(p,g.gate.text);case 36:a.next=31;break;case 38:a.next=43;break;case 40:a.prev=40,a.t1=a["catch"](29),u.e(a.t1);case 43:return a.prev=43,u.f(),a.finish(43);case 46:a.next=66;break;case 48:if(void 0===s&&0!==s.length||!(r.length>0)){a.next=66;break}m=Object(rr["a"])(r),a.prev=50,m.s();case 52:if((f=m.n()).done){a.next=58;break}return h=f.value,a.next=56,t.delGatePassage(h.passageId,h.gate.text);case 56:a.next=52;break;case 58:a.next=63;break;case 60:a.prev=60,a.t2=a["catch"](50),m.e(a.t2);case 63:return a.prev=63,m.f(),a.finish(63);case 66:if(!0!==t.authority.isAdmin&&!0!==e.checkShowGate){a.next=151;break}if(v=e.userInfo.pCodeIds,b=t.pcodeItemsOrigin,!(void 0!==v&&v.length>0)){a.next=132;break}if(y=b.filter((function(e){return!v.some((function(t){return e.value===t.value}))})),I=b.filter((function(e){return v.some((function(t){return e.value===t.value}))})),x=v.filter((function(e){return!b.some((function(t){return e.value===t.value}))})),!(y.length>0)){a.next=92;break}C=Object(rr["a"])(y),a.prev=75,C.s();case 77:if((w=C.n()).done){a.next=84;break}return k=w.value,S={userId:""},a.next=82,t.delPcode(k.value,S,""!==k.text?k.text:k.lableText);case 82:a.next=77;break;case 84:a.next=89;break;case 86:a.prev=86,a.t3=a["catch"](75),C.e(a.t3);case 89:return a.prev=89,C.f(),a.finish(89);case 92:if(!(I.length>0)){a.next=111;break}_=Object(rr["a"])(I),a.prev=94,_.s();case 96:if((P=_.n()).done){a.next=103;break}return M=P.value,L={userId:e.userInfo.userId},a.next=101,t.delPcode(M.value,L,""!==M.text?M.text:M.lableText);case 101:a.next=96;break;case 103:a.next=108;break;case 105:a.prev=105,a.t4=a["catch"](94),_.e(a.t4);case 108:return a.prev=108,_.f(),a.finish(108);case 111:if(!(x.length>0)){a.next=130;break}D=Object(rr["a"])(x),a.prev=113,D.s();case 115:if((G=D.n()).done){a.next=122;break}return A=G.value,R={userId:e.userInfo.userId,type:A.type,pCodeId:A.value},a.next=120,t.addPcode(R,""!==A.text?A.text:A.lableText);case 120:a.next=115;break;case 122:a.next=127;break;case 124:a.prev=124,a.t5=a["catch"](113),D.e(a.t5);case 127:return a.prev=127,D.f(),a.finish(127);case 130:a.next=151;break;case 132:if(void 0===v&&0!==v.length||!(b.length>0)){a.next=151;break}T=Object(rr["a"])(b),a.prev=134,T.s();case 136:if((E=T.n()).done){a.next=143;break}return O=E.value,V={userId:""},a.next=141,t.delPcode(O.value,V,""!==O.text?O.text:O.lableText);case 141:a.next=136;break;case 143:a.next=148;break;case 145:a.prev=145,a.t6=a["catch"](134),T.e(a.t6);case 148:return a.prev=148,T.f(),a.finish(148);case 151:return a.next=153,t.updateDepartmentId(e.userInfo);case 153:if(U=a.sent,$="",!1===U&&(N=t.departments.filter((function(t,a){if(t.value===e.userInfo.departmentId)return t})),N[0].text&&($+="所属選択( "+N[0].text+")の編集に失敗しています。
")),null!==e.userInfo.isAdmin){a.next=165;break}return a.next=159,t.deleteData(e);case 159:return a.next=161,t.addDepartmentAdministrators(e);case 161:return a.next=163,t.addGroupAdministrators(e);case 163:a.next=167;break;case 165:return a.next=167,t.deleteDataAll(e);case 167:return a.next=169,t.addErrorItem();case 169:if(F=a.sent,console.log("dataResult",F),F.department.length>0&&($+="所属権限( "+F.department.toString()+")編集に失敗しています。
"),F.group.length>0&&($+="通行可能通行権限グループ権限( "+F.group.toString()+")編集に失敗しています。
"),!(void 0!==e.groupIds.dataOri&&e.groupIds.dataOri.length>=0)){a.next=230;break}if(t.groupFailed.add=[],t.groupFailed.del=[],j=e.groupIds.dataAdd,B=e.groupIds.dataDel,z=e.groupIds.dataOri,H=z.filter((function(e){return B.some((function(t){return e.groupId===t.groupId}))})),K=j.filter((function(e){return!z.some((function(t){return e.groupId===t.groupId}))})),!(H.length>0)){a.next=210;break}Y=Object(rr["a"])(H),a.prev=183,Y.s();case 185:if((q=Y.n()).done){a.next=202;break}return W=q.value,J=void 0,a.next=190,t.getPassageId(W.groupId,t.userData.userId);case 190:if(J=a.sent,!1===J){a.next=199;break}return Z=void 0,a.next=195,t.delGroupPass(J);case 195:Z=a.sent,!1===Z&&t.groupFailed.del.push(W.name),a.next=200;break;case 199:t.groupFailed.del.push(W.name);case 200:a.next=185;break;case 202:a.next=207;break;case 204:a.prev=204,a.t7=a["catch"](183),Y.e(a.t7);case 207:return a.prev=207,Y.f(),a.finish(207);case 210:if(!(K.length>0)){a.next=228;break}X=Object(rr["a"])(K),a.prev=212,X.s();case 214:if((Q=X.n()).done){a.next=220;break}return ee=Q.value,a.next=218,t.addGroupPass(ee,e.userInfo.userId);case 218:a.next=214;break;case 220:a.next=225;break;case 222:a.prev=222,a.t8=a["catch"](212),X.e(a.t8);case 225:return a.prev=225,X.f(),a.finish(225);case 228:t.groupFailed.add.length>0&&($+="通行権限グループ(ユーザー設定)( "+t.groupFailed.add.toString()+")編集に失敗しています。
"),t.groupFailed.del.length>0&&($+="通行権限グループ(ユーザー設定)( "+t.groupFailed.del.toString()+")編集に失敗しています。
");case 230:return""!==$&&(t.successMessageLogs="",t.errorMessageLogs=Ta+"
",t.errorMessageLogs+=$,t.errorMessageLogs+="失敗した項目は反映されませんので再度確認してください。"),te=e.userInfo.departmentId,t.groupItemsOrigin=[],t.pcodeItemsOrigin=[],t.gateItemsOrigin=[],t.listGatePassages=[],t.phoneItems=[],t.userData.phoneIds=[],t.userData.pCodeIds=[],t.pCodeOptions=[],t.userData.departmentOri={relationId:"",departmentId:""},t.userData.departmentId="",t.userData.groupAdministrators=[],t.userData.departmentAdministrators=[],t.userData.groupAdministratorsOri=[],t.userData.departmentAdministratorsOri=[],t.userData.departmentAdministratorsAll=[],a.next=249,t.getDepartmentUser(e.userInfo.userId);case 249:if(!1===U&&(t.userData.departmentId=te),!0===t.userData.isAdmin||!0!==t.authority.isAdmin){a.next=255;break}return a.next=253,t.getGroupAuth(e.userInfo.userId);case 253:return a.next=255,t.getDepartmentAuth(e.userInfo.userId,1);case 255:return a.next=257,t.getDepartmentAuth("no-id",1);case 257:t.getInforGatePassage(1,e.userInfo.userId),t.getPhone(1,e.userInfo.userId),t.isDisabledPCodeOptions=!0,t.getPCodeList(),t.reLoad=!0,t.loading=!1;case 263:case"end":return a.stop()}}),a,null,[[11,21,24,27],[29,40,43,46],[50,60,63,66],[75,86,89,92],[94,105,108,111],[113,124,127,130],[134,145,148,151],[183,204,207,210],[212,222,225,228]])})))()},getAllPassable:function(e){var t=this,a=W+"?limit=1000&page="+e;this.$http.get(a).then((function(a){a.body.maxRecords>0&&(a.body.passableTimeSettings.forEach((function(e){!0===e.isDefault&&(t.timeDefault=e.passableTimeSettingId)})),a.body.maxRecords>a.body.endRecord&&""===t.timeDefault&&t.getAllPassable(e+1))})).then(null,(function(e){console.log("err: ",e)}))},getListGate:function(){var e=this;this.isDisabledGroupOptions=!0,this.isDisabledPCodeOptions=!0,this.gateGroupOptions=[],this.pCodeOptions=[],this.pagePCode=1,this.pageGroup=1,this.$http.get(Fe+"?limit=1000&page="+this.pageLoadGateList+"&sortKey=asc:gateId&isValid=true&isExceptOptionalGate=true").then((function(t){t.body.maxRecords>0?(t.body.gates.forEach((function(t){e.gateList.push({text:t.gateName,value:t.gateId})})),t.body.maxRecords>t.body.endRecord?(e.pageLoadGateList+=1,e.getListGate()):e.isDisabledGateOption=!1):(e.isDisabledGateOption=!1,e.pageLoadGateList=1,e.gateList=[])})).then(null,(function(e){return console.log("err: ",e)}))},getInforGatePassage:function(e,t){var a=this;this.$http.get(ee+"?userId="+encodeURIComponent(t)+"&embed=gate&limit=1000&page="+e+"&isExceptOptionalGate=true&sortKey=desc:notAfter").then((function(s){s.body.maxRecords>0?(s.body.passages.forEach((function(e){a.listGatePassages.push({gate:{value:e.gateId,text:e.gate?e.gate.name:""},notAfter:e.notAfter,notBefore:e.notBefore}),a.gateItemsOrigin.push({gate:{value:e.gateId,text:e.gate?e.gate.name:""},notAfter:e.notAfter,notBefore:e.notBefore,passageId:e.passageId})})),s.body.maxRecords>s.body.endRecord&&a.getInforGatePassage(e+1,t)):(a.listGatePassages=[],a.gateItemsOrigin=[])})).then(null,(function(e){console.log(e)}))},clickSaveUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.loading=!0,t.errorMessageLogs="",t.successMessageLogs="",t.dataFailed={departmentAdministrators:{add:[],edit:[],del:[]},groupAdministrators:{add:[],edit:[],del:[]}},a.next=6,t.postUser(e);case 6:s=a.sent,s?null===e.userInfo.isAdmin?t.startAddGatePassage(e).then((function(){return t.startAddPcode(e)})).then((function(){return t.startAddGroupOne(e)})).then((function(){return t.addDepartmentAdministrators(e)})).then((function(){return t.addGroupAdministrators(e)})).then(Object(or["a"])(regeneratorRuntime.mark((function e(){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.addErrorItem();case 2:a=e.sent,s="",a.department.length>0&&(s+="所属権限( "+a.department.toString()+")登録に失敗しています。
"),a.group.length>0&&(s+="通行可能通行権限グループ権限( "+a.group.toString()+")登録に失敗しています。
"),""!==s&&(t.successMessageLogs="",t.errorMessageLogs="ユーザーが追加されました。
",t.errorMessageLogs+=s,t.errorMessageLogs+="失敗した項目は反映されませんので再度確認してください。"),t.loading=!1,t.getDepartmentAuth("no-id",1);case 9:case"end":return e.stop()}}),e)})))):t.startAddGatePassage(e).then((function(){return t.startAddPcode(e)})).then((function(){return t.startAddGroupOne(e)})).then((function(){t.loading=!1,t.getDepartmentAuth("no-id",1)})):t.loading=!1;case 8:case"end":return a.stop()}}),a)})))()},postUser:function(e){var t=this;return new Promise((function(a,s){var r;if(t.loading=!0,r={isAdmin:!!e.userInfo.isAdmin,isMfaSms:e.userInfo.isMfaSms,userId:e.userInfo.userId,name:e.userInfo.name,furigana:e.userInfo.furigana,option1:e.userInfo.option1,option2:e.userInfo.option2,isSendEmail:e.userInfo.isSendEmail,password:e.userInfo.password,isPasswordLoginValid:e.userInfo.isPasswordLoginValid},void 0!==e.userInfo.departmentId&&""!==e.userInfo.departmentId&&(r.departmentIds=[e.userInfo.departmentId]),void 0!==e.userInfo.phoneNumber&&null!==e.userInfo.phoneNumber&&""!==e.userInfo.phoneNumber&&!0===e.userInfo.isMfaSms){var o=e.userInfo.phoneNumber.substring(1);r.phoneNumber="+81"+o}void 0!==e.userInfo.email&&null!==e.userInfo.email&&""!==e.userInfo.email&&(r.email=e.userInfo.email),void 0!==e.userInfo.isPhoneAdmin&&null!==e.userInfo.isPhoneAdmin&&""!==e.userInfo.isPhoneAdmin&&(r.isPhoneAdmin=e.userInfo.isPhoneAdmin),console.log("data",e),t.$http.post(T,JSON.stringify(r)).then((function(e){"Success"===e.body.message?(t.errorMessageLogs="",t.successMessageLogs="ユーザーが追加されました。",t.listGatePassages=[],t.$emit("getReload",!0),a(!0)):(t.successMessageLogs="",t.errorMessageLogs=Aa,a(!1))})).then(null,(function(e){switch(console.log("error",e),t.successMessageLogs="",t.errorMessageLogs="",e.status){case 400:t.errorMessageLogs=Qt;break;case 403:t.errorMessageLogs=ta;break;case 404:t.errorMessageLogs=aa;break;case 409:t.errorMessageLogs=la;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a(!1)}))}))},startAddGroupOne:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(void 0!==e.addIds&&null!==e.addIds&&""!==e.addIds&&e.addIds.length>0)){a.next=23;break}t.groupsAddFail=[],s=[],r=Object(rr["a"])(e.addIds),a.prev=4,r.s();case 6:if((o=r.n()).done){a.next=15;break}if(n=o.value,s.includes(n.groupId)){a.next=13;break}return i={value:n.groupId,text:n.groupId},a.next=12,t.AddGroupItem(i,e.userInfo.userId);case 12:s.push(n.groupId);case 13:a.next=6;break;case 15:a.next=20;break;case 17:a.prev=17,a.t0=a["catch"](4),r.e(a.t0);case 20:return a.prev=20,r.f(),a.finish(20);case 23:case"end":return a.stop()}}),a,null,[[4,17,20,23]])})))()},startAddGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(void 0!==e.selectedIds&&null!==e.selectedIds&&""!==e.selectedIds&&e.selectedIds.length>0)){a.next=23;break}t.groupsAddFail=[],s=[],r=Object(rr["a"])(e.selectedIds),a.prev=4,r.s();case 6:if((o=r.n()).done){a.next=15;break}if(n=o.value,s.includes(n)){a.next=13;break}return i={value:n,text:n},a.next=12,t.AddGroupItem(i,e.userInfo.userId);case 12:s.push(n);case 13:a.next=6;break;case 15:a.next=20;break;case 17:a.prev=17,a.t0=a["catch"](4),r.e(a.t0);case 20:return a.prev=20,r.f(),a.finish(20);case 23:case"end":return a.stop()}}),a,null,[[4,17,20,23]])})))()},postGroupItem:function(e,t){var a=this;return new Promise((function(s,r){if(""!==a.timeDefault){var o={name:e.value,isValid:!0,passableTimeSettingId:a.timeDefault};a.$http.post(H,o).then((function(r){"Success"===r.body.message?a.$http.post(Z,{groupId:r.body.groupId,userId:t}).then((function(e){s(!0)})).then(null,(function(t){switch(a.loading=!1,t.status){case 409:a.groupsAddFail.push(e.text);break}s(!0)})):s(!1)})).then(null,(function(t){a.groupsAddFail.push(e.text),s(!1)}))}else a.groupsAddFail.push(e.text),s(!1)}))},AddGroupItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Z,{groupId:e.value,userId:t}).then((function(e){s(!0)})).then(null,(function(t){switch(a.loading=!1,t.status){case 409:a.groupsAddFail.push(e.text);break}s(!0)}))}))},startAddPcode:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!0!==t.authority.isAdmin&&!0!==e.checkShowGate){a.next=23;break}if(!(void 0!==e.userInfo.pCodeIds&&null!==e.userInfo.pCodeIds&&""!==e.userInfo.pCodeIds&&e.userInfo.pCodeIds.length>0)){a.next=21;break}t.pCodeAddFail=[],s=Object(rr["a"])(e.userInfo.pCodeIds),a.prev=4,s.s();case 6:if((r=s.n()).done){a.next=13;break}return o=r.value,n={userId:e.userInfo.userId,type:o.type,pCodeId:o.value},a.next=11,t.addPcode(n,o.text);case 11:a.next=6;break;case 13:a.next=18;break;case 15:a.prev=15,a.t0=a["catch"](4),s.e(a.t0);case 18:return a.prev=18,s.f(),a.finish(18);case 21:a.next=24;break;case 23:return a.abrupt("return",!0);case 24:case"end":return a.stop()}}),a,null,[[4,15,18,21]])})))()},addPcodeItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Ot,{pCodeId:e.value,userId:t,type:e.type}).then((function(t){"Success"===t.body.message?console.log("Success"):a.pCodeAddFail.push(e.text),s(!0)})).then(null,(function(r){switch(r.status){case 409:var o={userId:t};a.$http.put(j+"/"+encodeURIComponent(e.value),o).then((function(e){console.log("Success"),s(!0)})).then(null,(function(t){a.pCodeAddFail.push(e.text),s(!0)}));break;default:a.pCodeAddFail.push(e.text),s(!0);break}}))}))},startAddGatePassage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(void 0!==e.gate&&null!==e.gate&&""!==e.gate&&e.gate.length>0)){a.next=18;break}s=Object(rr["a"])(e.gate),a.prev=2,s.s();case 4:if((r=s.n()).done){a.next=10;break}return o=r.value,a.next=8,t.startAddGatePassageItem(o,e.userInfo.userId);case 8:a.next=4;break;case 10:a.next=15;break;case 12:a.prev=12,a.t0=a["catch"](2),s.e(a.t0);case 15:return a.prev=15,s.f(),a.finish(15);case 18:case"end":return a.stop()}}),a,null,[[2,12,15,18]])})))()},startAddGatePassageItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(ee,{userId:t,gateId:e.gate.value,notBefore:e.notBefore,notAfter:e.notAfter}).then((function(t){"Success"===t.body.message?console.log("Success"):a.gateAddFail.push(e.gate.text),s(!0)})).then(null,(function(t){switch(t.status){case 409:a.gateAddFail.push(e.gate.text);break}s(!0)}))}))},getGroupById:function(e,t){var a=this;this.$http.get(q+"?userId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&sortKey=desc:userId&embed=group").then((function(s){if(s.body.maxRecords>0){var r=s.body.groupPassages;r.sort((function(e,t){return e.group.groupName.toLowerCase()s.body.endRecord?a.getGroupById(e+1,t):a.loading=!1}else a.userData.groupIds=[],a.loading=!1})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getGroupByIdAfterUpdate:function(e,t){var a=this;this.$http.get(q+"?userId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&sortKey=desc:userId&embed=group").then((function(s){if(s.body.maxRecords>0){var r=s.body.groupPassages;r.sort((function(e,t){return e.group.groupName.toLowerCase()s.body.endRecord&&a.getGroupByIdAfterUpdate(e+1,t)}})).then(null,(function(e){console.log("err: ",e)}))},getPcodeById:function(e,t){var a=this,s=this.userData.departmentAdministratorsAll.findIndex((function(e){return e.departmentId===a.userData.departmentId&&!0===e.isAdminToSetPcodesToUser})),r=j+"?userId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&isValid=true&embed=user";!this.authority.isAdmin&&s>=0&&(r+="&isExceptUnsettablePcode=true"),this.$http.get(r).then((function(s){console.log(s),s.body.maxRecords>0?(s.body.pCodes.forEach((function(e){console.log(e);var t=e.pCodeId+(""!==e.name?"<"+e.name+">":"")+(void 0!==e.user?"("+e.user.name+")":"");a.userData.pCodeIds.push({text:t,value:e.pCodeId,type:e.type}),a.pcodeItemsOrigin.push({text:e.name,value:e.pCodeId,type:e.type,lableText:t})})),s.body.maxRecords>s.body.endRecord?a.getPcodeById(e+1,t):a.loading=!1):(a.userData.pCodeIds=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getPcodeByIdAfterUpdate:function(e,t){var a=this,s=j+"?userId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&isValid=true&embed=user";!this.authority.isAdmin&&this.authority.isAdminToSetPcodesToUser&&(s+="&isExceptUnsettablePcode=true"),this.$http.get(s).then((function(s){console.log(s),s.body.maxRecords>0?(s.body.pCodes.forEach((function(e){var t=e.pCodeId+(""!==e.name?"<"+e.name+">":"")+(void 0!==e.user?"("+e.user.name+")":"");a.userData.pCodeIds.push({text:t,value:e.pCodeId,type:e.type}),a.pcodeItemsOrigin.push({text:e.name,value:e.pCodeId,type:e.type,lableText:t})})),s.body.maxRecords>s.body.endRecord&&a.getPcodeByIdAfterUpdate(e+1,t)):a.userData.pCodeIds=[]})).then(null,(function(e){console.log("err: ",e)}))},getGroupList:function(){var e=this;this.$http.get(H+"?limit=1000&page="+this.pagePCode+"&keyword=&isValid=true").then((function(t){t.body.maxRecords>0?(t.body.groups.forEach((function(t){e.gateGroupOptions.push({text:t.name,value:t.groupId,disabled:!1}),e.gateGroupOptions.sort((function(e,t){return e.text.toLowerCase()t.body.endRecord?(e.pageGroup+=1,e.getGroupList()):e.isDisabledGroupOptions=!1):(e.loading=!1,e.isDisabledGroupOptions=!1)})).then(null,(function(t){e.gateGroupOptions=[],e.isDisabledGroupOptions=!1}))},getPCodeList:function(){var e=this,t=Ot+"?limit=1000&page="+this.pagePCode+"&sortKey=desc:registered&isValid=true&embed=user";!this.authority.isAdmin&&this.authority.isAdminToSetPcodesToUser&&(t+="&isExceptUnsettablePcode=true"),this.$http.get(t).then((function(t){t.body.maxRecords>0?(t.body.pCodes.forEach((function(t){var a=t.pCodeId+(""!==t.name?"<"+t.name+">":"")+(void 0!==t.user?"("+t.user.name+")":"");e.pCodeOptions.push({text:a,value:t.pCodeId,type:t.type})})),t.body.maxRecords>t.body.endRecord?(e.pagePCode+=1,e.getPCodeList()):(e.isDisabledPCodeOptions=!1,e.reLoad=!1)):(e.isDisabledPCodeOptions=!1,e.pCodeOptions=[],e.pagePCode=1,e.reLoad=!1)})).then(null,(function(t){e.isDisabledPCodeOptions=!0,e.pCodeOptions=[],e.reLoad=!1}))},getInFoUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(T+"?userId="+encodeURIComponent(e)).then((function(e){t.userData=e.body.users[0],t.userData.phoneNumber=t.userData.phoneNumber.replace("+81","0"),t.userData.isMfaSms="true"===localStorage.isMfa&&e.body.users[0].isMfaSms,a(!0)})).then(null,(function(e){switch(a(!1),e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))}))},changePassword:function(e){var t=this,a={userId:e.userInfo.userId,newPassword:e.userInfo.newPassword,isSendEmail:e.userInfo.isSendEmail};console.log(a),this.$http.post(me,JSON.stringify(a)).then((function(a){console.log("response",a),t.updateUser(e)})).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},clickUpdateUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.loading=!0,t.successMessageLogs="",t.errorMessageLogs="",t.groupsAddFail=[],void 0===e.userInfo.newPassword||null===e.userInfo.newPassword||""===e.userInfo.newPassword){a.next=8;break}t.changePassword(e),a.next=12;break;case 8:if(!(void 0!==e.updatedPhonesList&&null!==e.updatedPhonesList&&e.updatedPhonesList.length>0)){a.next=11;break}return a.next=11,t.updatePhone(e.updatedPhonesList);case 11:t.updateUser(e);case 12:case"end":return a.stop()}}),a)})))()},delGatePassage:function(e,t){var a=this;return new Promise((function(s,r){a.$http.delete(ee+"/"+encodeURIComponent(e)).then((function(e){console.log("Success"),s(!0)})).then(null,(function(e){a.gateAddFail.push(t),s(!0)}))}))},postGatePassage:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(ee,e).then((function(e){"Success"===e.body.message?console.log("Success"):a.gateAddFail.push(t),s(!0)})).then(null,(function(e){switch(e.status){case 409:a.gateAddFail.push(t);break}s(!0)}))}))},addPcode:function(e,t){var a=this;return new Promise(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r,o){var n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,a.getPcode(e.userId,e.pCodeId);case 2:n=s.sent,!0===n||!1===a.authority.isAdmin?(a.putPcodeItems(e,t),r(!0)):(a.addPcodeItems(e,t),r(!0));case 4:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())},addPcodeItems:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(j,e).then((function(e){console.log("Success"),s(!0)})).then(null,(function(r){switch(r.status){case 409:var o={userId:e.userId};a.$http.put(j+"/"+encodeURIComponent(e.pCodeId),o).then((function(e){console.log("Success"),s(!0)})).then(null,(function(e){a.pCodeAddFail.push(t),s(!0)}));break;default:console.log(r),a.pCodeAddFail.push(t),s(!0);break}}))}))},putPcodeItems:function(e,t){var a=this;return new Promise((function(s,r){var o={userId:e.userId};a.$http.put(j+"/"+encodeURIComponent(e.pCodeId),o).then((function(e){console.log("Success"),s(!0)})).then(null,(function(e){a.pCodeAddFail.push(t),s(!0)}))}))},getPcode:function(e,t){var a=this;return new Promise((function(e,s){a.$http.get(j+"?pCodeId="+encodeURIComponent(t)).then((function(t){if(t.body.maxRecords>0){var a=t.body.pCodes.findIndex((function(e){return""!==e.userId}));console.log("i",a),e(a>=0)}else e(!1)})).then(null,(function(t){e(!1)}))}))},delPcode:function(e,t,a){var s=this;return new Promise((function(r,o){s.$http.put(j+"/"+encodeURIComponent(e),t).then((function(e){console.log("Success"),r(!0)})).then(null,(function(e){s.pCodeAddFail.push(a),r(!0)}))}))},delGroup:function(e,t){var a=this;return new Promise((function(s,r){a.$http.delete(Z+"/"+encodeURIComponent(e)).then((function(e){s(!0)})).then(null,(function(e){a.groupsAddFail.push(t),s(!0)}))}))},postGroup:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(q,e).then((function(e){"Success"===e.body.message?console.log("Success"):a.groupsAddFail.push(t),s(!0)})).then(null,(function(e){switch(console.log("err: ",e),e.status){case 409:a.groupsAddFail.push(t);break}s(!0)}))}))},updatePhone:function(e){var t=this;return new Promise((function(a,s){var r,o=Object(rr["a"])(e);try{for(o.s();!(r=o.n()).done;){var n=r.value,i={isValid:!1};n.text.startsWith("申請中 : ")&&(i={isValid:!0}),t.$http.put(Q+"/"+encodeURIComponent(n.value),i).then((function(e){console.log("responseresponse",e),a(!0)})).then(null,(function(e){console.log("errerrerr",e),a(!0)}))}}catch(l){o.e(l)}finally{o.f()}}))},updateUser:function(e){var t=this,a=encodeURIComponent(encodeURIComponent(e.userInfo.userId));if(localStorage.userProfileId===e.userInfo.userId){var s={};if(s.name=e.userInfo.name,s.furigana=e.userInfo.furigana,s.email=e.userInfo.email,s.isSendEmail=e.userInfo.isSendEmail,s.passCode=e.userInfo.passCode,s.isMfaSms=e.userInfo.isMfaSms,!0===e.userInfo.isMfaSms){var r=e.userInfo.phoneNumber.substring(1);s.phoneNumber="+81"+r}s.isPasswordLoginValid=e.userInfo.isPasswordLoginValid,s.password=e.userInfo.password,s.option1=e.userInfo.option1,s.option2=e.userInfo.option2,console.log(s),this.$http.put(T+"/"+a,JSON.stringify(s)).then((function(a){t.errorMessageLogs="",t.successMessageLogs=Ta,t.$emit("getReload",!0),t.getDataAgain(e)})).then(null,(function(e){switch(t.successMessageLogs="",t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))}else{var o={};if(o.name=e.userInfo.name,o.furigana=e.userInfo.furigana,o.isSendEmail=!1,o.email=e.userInfo.email,null!==e.userInfo.thumbnail&&""!==e.userInfo.thumbnail&&(o.thumbnail=e.userInfo.thumbnail),o.passCode=e.userInfo.passCode,o.isMfaSms=e.userInfo.isMfaSms,!0===e.userInfo.isMfaSms){var n=e.userInfo.phoneNumber.substring(1);o.phoneNumber="+81"+n}o.isPasswordLoginValid=e.userInfo.isPasswordLoginValid,o.password=e.userInfo.password,this.authority.isAdmin&&(o.isAdmin=!!e.userInfo.isAdmin,o.isPhoneAdmin=e.userInfo.isPhoneAdmin,o.shareKeyBeValid=e.userInfo.shareKeyBeValid),o.isValid=e.userInfo.isValid,o.option1=e.userInfo.option1,o.option2=e.userInfo.option2,o.isSendEmail=e.userInfo.isSendEmail,console.log(o),this.$http.put(T+"/"+a,JSON.stringify(o)).then((function(a){t.successMessageLogs=Ta,t.$emit("getReload",!0),t.errorMessageLogs="",t.getDataAgain(e)})).then(null,(function(e){switch(t.successMessageLogs="",t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=fa;break}}))}},formatTimestamp:function(e){return jo()(e).unix()},getPhone:function(e,t){var a=this,s=[],r=[];this.$http.get(Q+"?limit=1000&page="+e+"&sortKey=desc:registered&userId="+encodeURIComponent(t)).then((function(o){o.body.maxRecords>0&&(o.body.phones.forEach((function(e){if("申請中"===e.status){var t="申請中 : "+e.model+"("+a.convertDate(e.registered)+")";r.push({text:t,value:e.phoneId})}if("有効"===e.status){var o=e.model+"("+a.convertDate(e.registered)+")";s.push({text:o,value:e.phoneId})}})),o.body.maxRecords>o.body.endRecord&&a.getPhone(e+1,t),r.forEach((function(e){a.phoneItems.push(e)})),s.forEach((function(e){a.phoneItems.push(e),a.userData.phoneIds.push(e)})))})).then(null,(function(e){console.log("err: ",e)}))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD")},getDepartment:function(e){var t=this;this.$http.get(Le+"?limit=1000&page="+e).then((function(a){a.body.departments.forEach((function(e){t.departments.push({text:e.name,value:e.departmentId}),t.getDepartments.push({text:e.name,value:e.departmentId}),t.departments.sort((function(e,t){return e.text.toLowerCase()a.body.endRecord?(e++,t.getDepartment(e)):t.isGetDepartment=!1})).then(null,(function(e){t.isGetDepartment=!1}))},updateDepartmentId:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e.departmentId===e.departmentOri.departmentId){a.next=20;break}if(s=!0,""===e.departmentOri.departmentId){a.next=6;break}return a.next=5,t.deleteDepartmentId(e.departmentOri.relationId);case 5:s=a.sent;case 6:if(!s){a.next=17;break}if(""===e.departmentId){a.next=14;break}return a.next=10,t.addDepartmentId({departmentId:e.departmentId,userId:e.userId});case 10:return r=a.sent,a.abrupt("return",r);case 14:return a.abrupt("return",!0);case 15:a.next=18;break;case 17:return a.abrupt("return",!1);case 18:a.next=21;break;case 20:return a.abrupt("return",!0);case 21:case"end":return a.stop()}}),a)})))()},deleteDepartmentId:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Pe+"/"+e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},addDepartmentId:function(e){var t=this;return new Promise((function(a,s){t.$http.post(Pe,e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},deleteDataAll:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.dataFailed.departmentAdministrators.del=[],t.dataFailed.groupAdministrators.del=[],!(e.userInfo.departmentAdministratorsOri.length>0)){a.next=22;break}s=Object(rr["a"])(e.userInfo.departmentAdministratorsOri),a.prev=4,s.s();case 6:if((r=s.n()).done){a.next=14;break}return o=r.value,a.next=10,t.deleteDepartmentItem(o.departmentAdministratorId);case 10:n=a.sent,!1===n&&t.dataFailed.departmentAdministrators.del.push(o);case 12:a.next=6;break;case 14:a.next=19;break;case 16:a.prev=16,a.t0=a["catch"](4),s.e(a.t0);case 19:return a.prev=19,s.f(),a.finish(19);case 22:if(!(e.userInfo.groupAdministratorsOri.length>0)){a.next=42;break}i=Object(rr["a"])(e.userInfo.groupAdministratorsOri),a.prev=24,i.s();case 26:if((l=i.n()).done){a.next=34;break}return c=l.value,a.next=30,t.deleteGroupAdministratorsItem(c.groupAdministratorId);case 30:u=a.sent,!1===u&&t.dataFailed.groupAdministrators.del.push(c);case 32:a.next=26;break;case 34:a.next=39;break;case 36:a.prev=36,a.t1=a["catch"](24),i.e(a.t1);case 39:return a.prev=39,i.f(),a.finish(39);case 42:case"end":return a.stop()}}),a,null,[[4,16,19,22],[24,36,39,42]])})))()},deleteData:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.dataFailed.departmentAdministrators.del=[],t.dataFailed.groupAdministrators.del=[],!(e.deleteData.relationIds.length>0)){a.next=22;break}s=Object(rr["a"])(e.deleteData.relationIds),a.prev=4,s.s();case 6:if((r=s.n()).done){a.next=14;break}return o=r.value,a.next=10,t.deleteDepartmentItem(o.relationId);case 10:n=a.sent,!1===n&&t.dataFailed.departmentAdministrators.del.push(o);case 12:a.next=6;break;case 14:a.next=19;break;case 16:a.prev=16,a.t0=a["catch"](4),s.e(a.t0);case 19:return a.prev=19,s.f(),a.finish(19);case 22:if(!(e.deleteData.groupAdministratorIds.length>0)){a.next=42;break}i=Object(rr["a"])(e.deleteData.groupAdministratorIds),a.prev=24,i.s();case 26:if((l=i.n()).done){a.next=34;break}return c=l.value,a.next=30,t.deleteGroupAdministratorsItem(c.groupAdministratorId);case 30:u=a.sent,!1===u&&t.dataFailed.groupAdministrators.del.push(c);case 32:a.next=26;break;case 34:a.next=39;break;case 36:a.prev=36,a.t1=a["catch"](24),i.e(a.t1);case 39:return a.prev=39,i.f(),a.finish(39);case 42:case"end":return a.stop()}}),a,null,[[4,16,19,22],[24,36,39,42]])})))()},addDepartmentAdministrators:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(void 0!==e.listAff&&null!==e.listAff&&""!==e.listAff&&e.listAff.length>0)){a.next=19;break}t.dataFailed.departmentAdministrators.add=[],t.dataFailed.departmentAdministrators.edit=[],s=Object(rr["a"])(e.listAff),a.prev=4,o=regeneratorRuntime.mark((function a(){var s,o,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(s=r.value,void 0===s.departmentId.value||""===s.departmentId.value){a.next=13;break}if(!s.disabled){a.next=11;break}if(o=t.userData.departmentAdministratorsOri.findIndex((function(e){return e.departmentId===s.departmentId.value})),!(o>=0)){a.next=9;break}if(n=t.userData.departmentAdministratorsOri[o],n.isAdminToEditUser===s.isAdminToEditUser&&n.isAdminToAddUser===s.isAdminToAddUser&&n.isAdminToSetPcodesToUser===s.isAdminToSetPcodesToUser){a.next=9;break}return a.next=9,t.updateDepartmentItem(s,e.userInfo.userId);case 9:a.next=13;break;case 11:return a.next=13,t.addDepartmentItem(s,e.userInfo.userId);case 13:case"end":return a.stop()}}),a)})),s.s();case 7:if((r=s.n()).done){a.next=11;break}return a.delegateYield(o(),"t0",9);case 9:a.next=7;break;case 11:a.next=16;break;case 13:a.prev=13,a.t1=a["catch"](4),s.e(a.t1);case 16:return a.prev=16,s.f(),a.finish(16);case 19:case"end":return a.stop()}}),a,null,[[4,13,16,19]])})))()},deleteDepartmentItem:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(_e+"/"+e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},updateDepartmentItem:function(e,t){var a=this;return new Promise((function(t,s){a.$http.put(_e+"/"+e.relationId,{isAdminToEditUser:e.isAdminToEditUser,isAdminToAddUser:e.isAdminToAddUser,isAdminToSetPcodesToUser:e.isAdminToSetPcodesToUser}).then((function(s){"Success"===s.body.message?console.log("Success"):a.dataFailed.departmentAdministrators.edit.push(e),t(!0)})).then(null,(function(s){a.dataFailed.departmentAdministrators.edit.push(e),t(!0)}))}))},addDepartmentItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(_e,{departmentId:e.departmentId.value,userId:t,isAdminToEditUser:e.isAdminToEditUser,isAdminToAddUser:e.isAdminToAddUser,isAdminToSetPcodesToUser:e.isAdminToSetPcodesToUser}).then((function(t){"Success"===t.body.message?console.log("Success"):a.dataFailed.departmentAdministrators.add.push(e),s(!0)})).then(null,(function(t){a.dataFailed.departmentAdministrators.add.push(e),s(!0)}))}))},addGroupAdministrators:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(void 0!==e.listGroup&&null!==e.listGroup&&""!==e.listGroup&&e.listGroup.length>0)){a.next=19;break}t.dataFailed.groupAdministrators.add=[],t.dataFailed.groupAdministrators.edit=[],s=Object(rr["a"])(e.listGroup),a.prev=4,o=regeneratorRuntime.mark((function a(){var s,o,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(s=r.value,void 0===s.groupId.value||""===s.groupId.value){a.next=12;break}if(!s.disabled){a.next=10;break}if(o=t.userData.groupAdministratorsOri.findIndex((function(e){return e.groupId===s.groupId.value})),n=t.userData.groupAdministratorsOri[o],n.isAdminOfGatePassages===s.isAdminOfGatePassages&&n.isAdminOfGroupPassages===s.isAdminOfGroupPassages&&n.isAdminOfRemoteUnlock===s.isAdminOfRemoteUnlock&&n.isAdminOfUnlockingTimeSetting===s.isAdminOfUnlockingTimeSetting){a.next=8;break}return a.next=8,t.updateGroupAdministratorsItem(s,e.userInfo.userId);case 8:a.next=12;break;case 10:return a.next=12,t.addGroupAdministratorsItem(s,e.userInfo.userId);case 12:case"end":return a.stop()}}),a)})),s.s();case 7:if((r=s.n()).done){a.next=11;break}return a.delegateYield(o(),"t0",9);case 9:a.next=7;break;case 11:a.next=16;break;case 13:a.prev=13,a.t1=a["catch"](4),s.e(a.t1);case 16:return a.prev=16,s.f(),a.finish(16);case 19:case"end":return a.stop()}}),a,null,[[4,13,16,19]])})))()},updateGroupAdministratorsItem:function(e,t){var a=this;return new Promise((function(t,s){a.$http.put(Se+"/"+e.groupAdministratorId,{isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting}).then((function(s){"Success"===s.body.message?console.log("Success"):a.dataFailed.groupAdministrators.edit.push(e),t(!0)})).then(null,(function(s){a.dataFailed.groupAdministrators.edit.push(e),t(!0)}))}))},addGroupAdministratorsItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Se,{groupId:e.groupId.value,userId:t,isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,isAdminOfUnlockingTimeSetting:e.isAdminOfUnlockingTimeSetting}).then((function(t){"Success"===t.body.message?console.log("Success"):a.dataFailed.groupAdministrators.add.push(e),s(!0)})).then(null,(function(t){a.dataFailed.groupAdministrators.add.push(e),s(!0)}))}))},deleteGroupAdministratorsItem:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Se+"/"+e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},getGroupAuth:function(e){var t=this;return new Promise((function(a,s){"true"===localStorage.isCustomUserAuthorityService?t.$http.get(Se+"?userId="+e+"&limit=1000&embed=group").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.userData.groupAdministrators=s.body.groupAdministrators,t.userData.groupAdministratorsOri=s.body.groupAdministrators,a(!0);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){a(!1)})):a(!1)}))},getDepartmentAuth:function(e,t){var a=this;return new Promise((function(s,r){if("true"===localStorage.isCustomUserAuthorityService){var o=_e+"?limit=100&page="+t;o+="no-id"!==e?"&userId="+encodeURIComponent(e):"&userId="+encodeURIComponent(localStorage.userProfileId),a.$http.get(o).then(function(){var r=Object(or["a"])(regeneratorRuntime.mark((function r(o){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:o.body.departmentAdministrators.forEach((function(t){"no-id"===e?a.userData.departmentAdministratorsAll.push(t):(a.userData.departmentAdministrators.push(t),a.userData.departmentAdministratorsOri.push(t))})),o.body.maxRecords>o.body.endRecord?s(a.getDepartmentAuth(e,t+1)):s(!0);case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).then(null,(function(e){s(!1)}))}else s(!1)}))},getDepartmentUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Pe+"?userId=".concat(encodeURIComponent(e),"&embed=department")).then((function(e){if(e.body.relationsDepartmentUser){var s=e.body.relationsDepartmentUser[0];t.userData.departmentId=s.departmentId,t.userData.departmentOri.departmentId=s.departmentId,t.userData.departmentOri.relationId=s.relationId}a(!0)})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},getDepartmentAuthAll:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;return new Promise((function(r,o){"true"===localStorage.isCustomUserAuthorityService?t.$http.get(_e+"?userId="+e+"&limit=1000&page="+a).then(function(){var o=Object(or["a"])(regeneratorRuntime.mark((function o(n){return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:n.body.departmentAdministrators.forEach((function(e){var a=t.isEdit?e.isAdminToEditUser:e.isAdminToAddUser;if(a){var r=s.map((function(e){return e.value})).indexOf(e.departmentId);r>=0&&(s[r].disabled=!1)}})),n.body.maxRecords>n.body.endRecord?(a++,t.getDepartmentAuthAll(e,a,s)):r(s);case 2:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()).then(null,(function(e){r(s)})):r([])}))},changeId:function(){var e=this;""===this.userData.departmentId&&!0!==this.userData.isAdmin&&(setTimeout((function(){e.userData.departmentId=""}),100),this.userData.departmentId=null)},addErrorItem:function(){var e=this;return new Promise((function(t,a){var s=[],r=[],o=[],n=[],i=[],l=[];e.dataFailed.departmentAdministrators.add.length>0&&e.dataFailed.departmentAdministrators.add.forEach((function(e){s.push(e.departmentId.text)})),e.dataFailed.departmentAdministrators.edit.length>0&&e.dataFailed.departmentAdministrators.edit.forEach((function(t){var a=e.departments.filter((function(e){if(e.value===t.departmentId.value)return e}));r.push(a[0].text)})),e.dataFailed.departmentAdministrators.del.length>0&&e.dataFailed.departmentAdministrators.del.forEach((function(t){var a=e.departments.filter((function(e){if(e.value===t.departmentId.value)return e}));o.push(a[0].text)})),e.dataFailed.groupAdministrators.add.length>0&&e.dataFailed.groupAdministrators.add.forEach((function(e){n.push(e.groupId.text)})),e.dataFailed.groupAdministrators.edit.length>0&&e.dataFailed.groupAdministrators.edit.forEach((function(t){var a=e.gateGroupOptions.filter((function(e){if(e.value===t.groupId.value)return e}));i.push(a[0].text)})),e.dataFailed.groupAdministrators.del.length>0&&e.dataFailed.groupAdministrators.del.forEach((function(t){var a=e.gateGroupOptions.filter((function(e){if(e.value===t.groupId.value)return e}));l.push(a[0].text)}));var c={department:s.concat(r).concat(o),group:n.concat(i).concat(l)};t(c)}))},changeUserDepartmentId:function(e){this.userData.departmentId=e},addGroupPass:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(q,{groupId:e.groupId,userId:t}).then((function(e){s(!0)})).then(null,(function(t){a.groupFailed.add.push(e.name),s(!1)}))}))},delGroupPass:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Z+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},getPassageId:function(e,t){var a=this;return new Promise((function(s,r){a.$http.get(Z+"?userId="+encodeURIComponent(t)+"&groupId="+encodeURIComponent(e)).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.body.maxRecords>0&&void 0!==t.body.groupPassages[0].groupPassageId&&""!==t.body.groupPassages[0].groupPassageId&&null!==t.body.groupPassages[0].groupPassageId?s(t.body.groupPassages[0].groupPassageId):s(!1);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){s(!1)}))}))}}}),Tx=Rx,Ex=Object(I["a"])(Tx,BI,zI,!1,null,null,null),Ox=Ex.exports,Vx=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UserDetailTemplate",{attrs:{loading:e.loading,tempGroupPassages:e.tempGroupPassages,cardItems:e.cardItems,phoneItems:e.phoneItems,errorMessageLogs:e.errorMessageLogs,listphones:e.listphones,listGatePassagesInUser:e.listGatePassagesInUser,userData:e.userData,gateList:e.gateList,goBack:e.goBack,isModal:e.isModal,ExpandedData:e.ExpandedData,rowinErrDialog:e.rowinErrDialog,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,isFinishProcess:e.isFinishProcess,showConfirm:e.showConfirm,progress:e.progress,messageSetting:e.messageSetting,authority:e.authority,dataProgress:e.dataProgress,dataAllow:e.dataAllow,titlePage:e.titlePage},on:{"click-leave-action":function(t){return e.clickLeaveAction(t)},confirmAction:function(t){return e.confirmAction(t)},closeDialogConfirm:function(t){return e.closeDialogConfirm()},closeModalProgress:function(t){return e.closeModalProgress(t)},"add-gate":function(t){return e.addGate(t)},"loading-from-child":function(t){return e.$emit("loading",t)},"del-gate":function(t){return e.delGate(t)},"close-modal-gate":function(t){return e.closeModalGate(t)},"load-user-again":function(t){return e.loadUserAgain(t)},"close-popup":function(t){return e.$emit("close-popup",t)},getReload:function(t){return e.$emit("getReload",t)}}})},Ux=[],$x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-users-template",staticStyle:{position:"relative"}},[!1===e.isModal?a("breadcrumbs",{attrs:{items:e.breadcrumbs}}):e._e(),e._v(" "),e.isModal?a("v-overlay",{staticClass:"overlay-group-tab",attrs:{absolute:"",value:e.loading,color:"white"}},[a("v-progress-circular",{staticClass:"user-loading-progress",attrs:{indeterminate:"",color:"green"}})],1):e._e(),e._v(" "),a("v-container",{staticClass:"container-common"},[a("user-detail-table",{attrs:{listphones:e.listphones,listGatePassagesInUser:e.listGatePassagesInUser,tempGroupPassages:e.tempGroupPassages,cardItems:e.cardItems,phoneItems:e.phoneItems,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,messageSetting:e.messageSetting,user:e.userData,loading:e.loading,isModal:e.isModal,gateList:e.gateList,isGetDepartment:e.isGetDepartment,authority:e.authority,dataProgress:e.dataProgress,dataAllow:e.dataAllow,titlePage:e.titlePage},on:{"select-users":function(t){e.selectedUserIds=t},"confirm-action":function(t){return e.$emit("confirmAction",t)},"add-gate":function(t){return e.$emit("add-gate",t)},"del-gate":function(t){return e.$emit("del-gate",t)},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},"close-modal-gate":function(t){return e.$emit("close-modal-gate",t)},"load-user-again":function(t){return e.$emit("load-user-again",t)},goUserEdit:function(t){return e.goUserEdit(t)},goUserList:e.goUserList,"close-popup":function(t){return e.$emit("close-popup",t)},getReload:function(t){return e.$emit("getReload",t)}}})],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("ModalTitle",{attrs:{title:"関連付け削除"},on:{click:function(t){return e.$emit("closeDialogConfirm")}}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-text",{staticClass:"pa-4"},[a("p",[e._v("この通行権限グループとの関連付けを解除しますか?")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("click-leave-action",{leave:"gate-passage",action:4})}}})],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け削除")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を削除しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("削除失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgress",e.userData.userId)}}})],1)],1):e._e()],1)],1)],1)},Nx=[],Fx=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-user-table-detail common-class "},[a("v-row",{staticClass:"round-user-detail"},[a("v-col",{staticClass:"btn-add"},[!1===e.isModal?a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.$emit("goUserList")}}},[e._v("\n 戻る\n ")]):e._e()],1),e._v(" "),a("v-col",[!0===e.isModal?a("v-row",{attrs:{justify:"end"}},[!0===e.authority.isAdmin||!0===e.authority.isAdminToEditUser&&void 0!==e.user.departmentId&&e.dataAllow.includes(e.user.departmentId)?a("v-btn",{staticClass:"btn-primary mtop-10",attrs:{outlined:"",disabled:""===e.user.userId},on:{click:function(t){e.isShow=!0}}},[e._v("\n ユーザー情報を編集する\n ")]):e._e()],1):a("v-row",{attrs:{justify:"end"}},[!0===e.authority.isAdmin||!0===e.authority.isAdminToEditUser&&void 0!==e.user.departmentId&&e.dataAllow.includes(e.user.departmentId)?a("v-btn",{staticClass:"btn-primary mtop-10",attrs:{outlined:"",disabled:""===e.user.userId},on:{click:function(t){e.isReloadData=!1,e.$emit("goUserEdit",e.user.userId)}}},[e._v("\n ユーザー情報を編集する\n ")]):e._e()],1)],1)],1),e._v(" "),a("v-row",[""!==e.successMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1),e._v(" "),a("div",{class:e.isModal?"round-content-scroll mt-7":""},[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold ml-0"},[""!==e.titlePage?a("span",[e._v(e._s(e.titlePage))]):a("span",[e._v("ユーザー情報")])])],1),e._v(" "),a("v-card",{staticClass:"pa-6 mb-5 round-user-detail"},[a("info-item",{staticClass:"ml-5",attrs:{title:"ユーザーID",text:e.user.userId}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"ユーザー名",text:e.user.name}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"ふりがな",text:e.user.furigana}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"メールアドレス",text:e.user.email}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"所属",text:void 0!==e.user.department?e.user.department:""}}),e._v(" "),a("div",{staticClass:"info-item ml-5"},[a("v-row",[a("v-col",{attrs:{cols:"3"}},[a("v-subheader",[e._v("スマートフォン")])],1),e._v(" "),a("v-col",{staticClass:"text-body-2",attrs:{"align-self":"center"}},[a("v-row",e._l(e.phoneItems,(function(t){return a("v-col",{key:t.value,attrs:{md:"2","align-self":"center"}},[t.text.startsWith("申請中 : ")?a("span",{staticClass:"applying-color"},[e._v(e._s(t.text))]):a("span",[e._v(e._s(t.text))])])})),1)],1)],1)],1),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToSetPcodesToUser?a("div",{staticClass:"info-item ml-5"},[a("v-row",[a("v-col",{staticClass:"col col-3"},[a("v-subheader",[e._v("所有カード")])],1),e._v(" "),a("v-col",{staticClass:"text-body-2",attrs:{"align-self":"center"}},[a("v-row",e._l(e.cardItems,(function(t){return a("v-col",{key:t.value,attrs:{md:"2","align-self":"center"}},[e._v(e._s(t.text))])})),1)],1)],1)],1):e._e(),e._v(" "),e.user.isAdmin&&!1===e.loading?a("info-item",{staticClass:"ml-5",attrs:{title:"権限",text:"管理者"}}):e._e(),e._v(" "),!1===e.user.isAdmin&&!1===e.loading?a("info-item",{staticClass:"ml-5",attrs:{title:"権限",text:"一般ユーザー"}}):e._e(),e._v(" "),null===e.user.isAdmin&&!1===e.loading?a("info-item",{staticClass:"ml-5",attrs:{title:"権限",text:"カスタマイズ権限"}}):e._e(),e._v(" "),null===e.user.isAdmin&&!1===e.loading?a("div",{staticClass:"info-permisson",class:e.$vuetify.breakpoint.lgAndUp?"ml-5":"ml-9"},[e.user.departmentAdministrators&&e.user.departmentAdministrators.length>0?a("v-row",{staticClass:"height-sub"},[e.$vuetify.breakpoint.lgAndUp?a("v-col",{class:[e.isModal?"col-1":"col-3"]},[a("div",{staticClass:"v-subheader theme--light"})]):e._e(),e._v(" "),a("v-col",{staticClass:"col-8"},[a("div",{staticClass:"title-display-block theme--light ml-10 pa-0 mt-0 "},[e._v(" 所属管理者")])])],1):e._e(),e._v(" "),e._l(e.user.departmentAdministrators,(function(t,s){return a("v-row",{key:s+1e3,staticClass:"mt-0 ml-5 mb-2"},[e.$vuetify.breakpoint.lgAndUp?a("v-col",{class:[e.isModal?"col-1":"col-3"]},[a("div",{staticClass:"v-subheader theme--light"})]):e._e(),e._v(" "),a("v-col",{staticClass:"pb-0 col",attrs:{cols:"12",lg:"2"}},[a("div",{staticClass:"v-subheader theme--light ml-10 pa-0 title-permisson "},[e._v(" "+e._s(t.name))])]),e._v(" "),a("v-col",{class:[e.isModal?"col-8":"col-7"],attrs:{sm:"12",lg:"7"}},[a("v-row",{staticClass:"item-check-box"},[a("v-col",{attrs:{cols:"3"}},[a("v-checkbox",{attrs:{color:"grey",dense:"","hide-details":"",disabled:"",label:"ユーザー閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}})],1),e._v(" "),a("v-col",{attrs:{cols:"3"}},[a("v-checkbox",{attrs:{color:"grey",dense:"","hide-details":"",disabled:"",label:"ユーザー追加権限"},model:{value:t.isAdminToAddUser,callback:function(a){e.$set(t,"isAdminToAddUser",a)},expression:"item.isAdminToAddUser"}})],1),e._v(" "),a("v-col",{attrs:{cols:"3"}},[a("v-checkbox",{attrs:{color:"grey",dense:"","hide-details":"",disabled:"",label:"ユーザー編集権限"},model:{value:t.isAdminToEditUser,callback:function(a){e.$set(t,"isAdminToEditUser",a)},expression:"item.isAdminToEditUser"}})],1),e._v(" "),a("v-col",{attrs:{cols:"3"}},[a("v-checkbox",{attrs:{color:"grey",dense:"","hide-details":"",disabled:"",label:"カード設定権限"},model:{value:t.isAdminToSetPcodesToUser,callback:function(a){e.$set(t,"isAdminToSetPcodesToUser",a)},expression:"item.isAdminToSetPcodesToUser"}})],1)],1)],1)],1)})),e._v(" "),e.user.groupAdministrators&&e.user.groupAdministrators.length>0?a("v-row",{staticClass:"height-sub mt-5 mb-1"},[e.$vuetify.breakpoint.lgAndUp?a("v-col",{class:[e.isModal?"col-1":"col-3"]},[a("div",{staticClass:"v-subheader theme--light"})]):e._e(),e._v(" "),a("v-col",{staticClass:"col-8"},[a("div",{staticClass:"title-display-block theme--light ml-10 pa-0 mt-3 "},[e._v(" 通行権限グループ")])])],1):e._e(),e._v(" "),e._l(e.user.groupAdministrators,(function(t,s){return a("v-row",{key:s+1,class:["mt-0","ml-5","small-bottom",e.isModal?"mb-2":"mb-4"]},[e.$vuetify.breakpoint.lgAndUp?a("v-col",{class:[e.isModal?"col-1":"col-3"]},[a("div",{staticClass:"v-subheader theme--light",attrs:{"data-v-f4f20dd2":""}})]):e._e(),e._v(" "),a("v-col",{staticClass:"pb-0 col",attrs:{cols:"12",lg:"2"}},[a("div",{staticClass:"v-subheader theme--light ml-10 pa-0 title-permisson"},[e._v(" "+e._s(t.name))])]),e._v(" "),a("v-col",{class:[e.isModal?"col-8":"col-7"],attrs:{sm:"12",lg:[e.isModal?"9":"7"]}},[a("v-row",{class:[e.isModal?"item-check-box col-modal":"item-check-box"]},[a("v-col",{class:[e.isModal?"col-5":"col-2"]},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"ゲート閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}})],1),e._v(" "),a("v-col",{class:[e.isModal?"col-5":"col-4"]},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"通行可能所属/ユーザーの設定権限"},model:{value:t.isAdminOfGroupPassages,callback:function(a){e.$set(t,"isAdminOfGroupPassages",a)},expression:"item.isAdminOfGroupPassages"}})],1),e._v(" "),a("v-col",{class:[e.isModal?"col-5":"col-4"]},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"一時通行可能ユーザーの設定権限"},model:{value:t.isAdminOfGatePassages,callback:function(a){e.$set(t,"isAdminOfGatePassages",a)},expression:"item.isAdminOfGatePassages\t"}})],1),e._v(" "),a("v-col",{class:[e.isModal?"col-4":"col-2"]},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"遠隔解錠権限"},model:{value:t.isAdminOfRemoteUnlock,callback:function(a){e.$set(t,"isAdminOfRemoteUnlock",a)},expression:"item.isAdminOfRemoteUnlock"}})],1),e._v(" "),a("v-col",{class:[e.isModal?"col-3":"col-2 d-lg-none"]},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"連続解錠時間設定権限"},model:{value:t.isAdminOfUnlockingTimeSetting,callback:function(a){e.$set(t,"isAdminOfUnlockingTimeSetting",a)},expression:"item.isAdminOfUnlockingTimeSetting"}})],1)],1),e._v(" "),a("v-row",{class:[e.isModal?"d-none":"item-check-box d-none d-lg-flex"]},[a("v-col",{staticClass:"auto"},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"連続解錠時間設定権限"},model:{value:t.isAdminOfUnlockingTimeSetting,callback:function(a){e.$set(t,"isAdminOfUnlockingTimeSetting",a)},expression:"item.isAdminOfUnlockingTimeSetting"}})],1)],1)],1)],1)}))],2):e._e(),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"ゲート設定権限",text:e.user.isPhoneAdmin?"ON":"OFF"}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"アプリへのログイン",text:e.user.isPasswordLoginValid?"ON":"OFF"}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"Web管理画面ログイン時のSMS認証",text:e.user.isMfaSms?"ON":"OFF"}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"電話番号",text:e.user.phoneNumber}}),e._v(" "),a("div",{staticClass:"info-item ml-5"},[a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"3"}},[a("v-subheader",[e._v("解錠時の二段階認証パスワード\n "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}],null,!1,2569386827)},[e._v(" "),a("span",[e._v(" 二段階認証パスワードは、カード+テンキーによる二段階の解錠用パスワードです。"),a("br"),e._v("Lock Proでご利用いただくには、リーダーの設定変更が必要です。")])])],1)],1):e._e(),e._v(" "),a("v-col",{staticClass:"text-body-2",attrs:{"align-self":"center"}},[e._t("text",[e._v("\n "+e._s(e.user.passCode)+" \n ")])],2)],1)],1),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"鍵共有権限",text:e.user.shareKeyBeValid?"ON":"OFF"}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"備考.1",text:e.user.option1}}),e._v(" "),a("info-item",{staticClass:"ml-5",attrs:{title:"備考.2",text:e.user.option2}})],1),e._v(" "),a("v-row",{staticClass:"mt-3"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 通行可能なゲート\n ")])],1),e._v(" "),a("v-card",{staticClass:"pt-1 pa-2 mb-5 round-user-detail"},[!1===e.loading?a("ModalPageGroupGateInDetail",{attrs:{userName:e.user.name,isPage:"detail-user-group-gate",userId:e.user.userId},on:{"select-Ids":function(t){e.selectedIds=t},"change-page-group":function(t){return e.$emit("change-page-group",t)},loading:function(t){return e.$emit("loading-from-child",t)},"close-popup":function(t){return e.$emit("close-popup",t)}}}):e._e()],1),e._v(" "),a("v-row",{staticClass:"mt-3"},[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("期限付き解錠可能ゲート")])],1),e._v(" "),a("v-card",{staticClass:"mt-1 pt-5 pa-5"},[a("v-data-table",{staticClass:"border-table table-gate-time table table-shadow",attrs:{"items-per-page":-1,headers:e.headerGateTable,items:e.dataGatePassages,"hide-default-footer":"","item-key":"gateId","no-data-text":"データーはありません"},scopedSlots:e._u([{key:"item",fn:function(t){return[a("tr",[a("td",[t.item.gateName?a("span",[e._v(e._s(t.item.gateName))]):e._e()]),e._v(" "),a("td",[e._v(" "+e._s(e.formatDateTime(new Date(1e3*t.item.notBefore)))+" ~ "+e._s(e.formatDateTime(new Date(1e3*t.item.notAfter))))]),e._v(" "),a("td",{staticClass:"last-col"},[a("v-row",{attrs:{justify:"center"}},[e.authority.isAdmin?a("v-btn",{attrs:{icon:""},on:{click:function(a){return e.deleteGate(t.item.passageId)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-trash-can-outline")])],1):e._e()],1)],1)])]}}])},[e.authority.isAdmin&&!1===e.loading?a("template",{slot:"body.prepend"},[a("tr",{staticClass:"mt-4"},[a("td",[a("v-autocomplete",{staticClass:"input-add",attrs:{items:e.gateList,"return-object":"",color:"green",outlined:"",dense:"","hide-details":"auto","no-data-text":"","menu-props":{contentClass:"v-select-item"},attach:!0},model:{value:e.itemGate,callback:function(t){e.itemGate=t},expression:"itemGate"}})],1),e._v(" "),a("td",[a("DateTimePicker",{attrs:{isUserPage:!0,dateStartValue:e.dateStartGate,dateEndValue:e.dateEndGate,timeSValue:e.timeStartGate,timeEValue:e.timeEndGate},on:{getNewTimeStart:e.getNewTimeStart,getNewTimeEnd:e.getNewTimeEnd,getNewDateStart:e.getNewDateStart,getNewDateEnd:e.getNewDateEnd}})],1),e._v(" "),a("td",{staticClass:"align-self-center"},[a("v-row",{attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:!(e.gateList.length>0),outlined:""},on:{click:function(t){return e.addGate()}}},[e._v("\n 追加\n ")])],1)],1)]),e._v(" "),""!==e.errGate.errAdd||""!==e.errGate.errorGate||""!==e.errGate.errorTime?a("tr",[a("td",{attrs:{colspan:"3"}},[""!==e.errGate.errAdd?a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errGate.errAdd))]):""!==e.errGate.errorGate?a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errGate.errorGate))]):""!==e.errGate.errorTime?a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errGate.errorTime))]):e._e()])]):e._e()]):e._e()],2)],1)],1),e._v(" "),a("Modal",{attrs:{title:"ユーザー編集","no-footer":"",smallScreen:"1400px",className:"common-padding"},on:{close:function(t){return e.closeModal(e.isReloadData)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShow?a("UserAddPage",{attrs:{isModal:!0,userId:e.user.userId},on:{getReload:function(t){return e.getReload(t)},"close-modal-edit":function(t){e.isShow=!1},loading:function(t){return e.$emit("loading-from-child",t)},"close-popup":function(t){return e.$emit("close-popup",t)}}}):e._e()]},proxy:!0}]),model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}}),e._v(" "),a("Modal",{attrs:{title:"関連付け削除",smallScreen:"600",text:"ゲートを削除しますか ?",className:"common-modal"},on:{close:function(t){e.showConfirm=!1}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("cancel-button",{staticClass:"mr-2",attrs:{text:"閉じる"},on:{click:function(t){return e.noChoice()}}}),e._v(" "),a("success-button",{attrs:{text:"削除"},on:{click:function(t){return e.yesChoice()}}})]},proxy:!0}]),model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け削除")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataProgress.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataProgress.progressLoad,callback:function(t){e.$set(e.dataProgress,"progressLoad",t)},expression:"dataProgress.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataProgress.progressLoad))+"%")])]),e._v(" "),e.dataProgress.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataProgress.total)+"件中"+e._s(e.dataProgress.successItem)+" 件を削除しました。")]):e._e(),e._v(" "),e.dataProgress.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataProgress.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataProgress.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{staticClass:"mr-2",attrs:{text:"OK"},on:{click:function(t){return e.closeModalGate()}}})],1)],1):e._e()],1)],1)],1)},jx=[],Bx=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-gate-table"},[a("v-container",[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2",attrs:{"per-page":25,page:e.pageGroup,"items-length":e.groupTotalCount}})],1),e._v(" "),a("v-divider"),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,loading:e.loading,headers:e.headers,items:e.ExpandedGroup,"items-per-page":25,"no-data-text":"","loading-text":"","hide-default-footer":"",dense:"","show-select":e.ExpandedGroup.length>0,"item-key":"passageId","hide-default-header":""},on:{"item-expanded":function(t){return e.$emit("change-expanded-group",{event:t,expanded:"group"})}},scopedSlots:e._u([{key:"header",fn:function(t){var s=t.props.headers;return[a("thead",[a("tr",e._l(s,(function(t){return a("th",{key:t.value,attrs:{width:t.width}},[e._v("\n "+e._s(t.text)+"\n "),"groupName"===t.value?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-help-circle")])],1)]}}],null,!0)},[e._v(" "),a("span",{domProps:{innerHTML:e._s("所属の通行権限グループ、または、ユーザー個人に
設定された通行権限グループが表示されます。
両方が設定されている場合、
個人の通行権限グループの設定が優先されます。")}})]):e._e()],1)})),0)])]}},{key:"item.groupName",fn:function(t){var s=t.item;return[a("span",{staticClass:"group-inline"},[a("text-link",{staticClass:"item-user-name",attrs:{text:s.group.name},on:{click:function(t){return e.clickDetail(s.groupId)}}})],1),e._v(" "),a("span",{staticClass:"group-inline"},[a("span",{staticClass:"btn-primary no-click"},[e._v("\n ユーザー設定適用中\n ")])])]}},{key:"item.passableTimeSettingName",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:"",v:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[void 0!==s.group.passableTimeSetting&&void 0!==s.group.passableTimeSetting.name?a("div",e._g(e._b({staticClass:"item-user-id passable-time-setting"},"div",o,!1),r),[e._v("\n "+e._s(s.group.passableTimeSetting.name)+"\n ")]):e._e()]}}],null,!0)},[e._v(" "),e.checkPassableTimeSetting(s.group)?a("span",e._l(s.group.passableTimeSetting.timeSettings,(function(t,s){return a("div",{key:s},[e._v(e._s(t.dayTypeName)+" "+e._s(t.startTime)+"〜"+e._s(t.endTime))])})),0):e._e()])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.groupTotalCount/25),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(e._s(e.userId)+"が新たに所属する通行権限を選択してください。")]),e._v(" "),a("v-divider"),e._v(" "),a("v-card-text",[""===e.messageSetting.success&&""===e.messageSetting.error?a("v-autocomplete",{staticClass:"input-search mt-2",attrs:{clearable:"",label:"'適用されている通行権限グループ'",solo:"","hide-details":"","no-data-text":"",items:e.groupPassage},model:{value:e.groupItem,callback:function(t){e.groupItem=t},expression:"groupItem"}}):e._e(),e._v(" "),""!==e.messageSetting.success&&!1===e.loading?a("div",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.messageSetting.success)+"\n ")]):e._e(),e._v(" "),""!==e.messageSetting.error&&!1===e.loading?a("div",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.messageSetting.error)+"\n ")]):e._e()],1),e._v(" "),""===e.messageSetting.success&&""===e.messageSetting.error?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("add-group-pass",{groupId:e.groupItem,userId:e.userId})}}},[e._v("選択した通行権限グループに所属する")]),e._v(" "),a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){e.showConfirm=!1}}},[e._v("\n キャンセル\n ")])],1)],1):a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){e.showConfirm=!1}}},[e._v("\n OK\n ")])],1)],1)],1)],1)],1)},zx=[],Hx=f["a"].extend({name:"GroupGateTable",components:{Pagination:xo,ShowPerPage:mo,TextLink:No,GateList:jc},props:{isChange:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},groups:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},groupTotalCount:{type:Number,default:0},page:{type:Number,default:1},pageGroup:{type:Number,default:1},userId:{type:String,default:""},groupId:{type:String,default:""},perPage:{type:Number,default:25},relationsGateGroupLoading:{type:Boolean,default:!1},loadingGate:{type:Boolean,default:!1},ExpandedGroup:{default:function(){return[]}},groupDetail:{default:function(){return[]}},errorMessageProcess:{default:function(){return[]}},showSelect:{type:Boolean,default:!1},pageGate:{type:Number,default:0},messageSetting:{default:function(){return{}}}},data:function(){return{groupPassage:[],selectedItem:[],loadGroups:[],showConfirm:!1,groupItem:""}},computed:{headers:{get:function(){var e=[{text:"ゲート名",align:"start",sortable:!1,value:"gateName"},{text:"適用されている通行権限グループ",align:"start",sortable:!1,value:"groupName"},{text:"通行可能時間帯",align:"start",sortable:!1,width:"150px",value:"passableTimeSettingName"}];return e}},innerPage:{get:function(){return this.pageGroup},set:function(e){this.$emit("change-page-group",{page:e,userId:this.userId,change:"group"})}}},watch:{groups:function(e){this.selectedItem=[]},selectedItem:function(e){this.$emit("select-Ids",e.map((function(e){return e.groupPassageId})))},loading:function(e){e||(this.loadGroups=this.groups.length>0?this.groups:[])},isChange:function(e){if(e){this.loadGroups=[];var t=document.getElementById("expanded-data");t.scrollIntoView({block:"center"})}}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0}}}),Kx=Hx,Yx=Object(I["a"])(Kx,Bx,zx,!1,null,null,null),qx=Yx.exports;C()(Yx,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var Wx=f["a"].extend({name:"UserTable",components:{CancelButton:fr,DisplayOption:Mo,Pagination:xo,Searchbox:$r,SelectPerPage:To,ShowPerPage:mo,SuccessButton:kr,TextLink:No,GroupGateTable:qx,InfoItem:Wr,InputForm:io,GateDetailTemplate:Lh,ModalPage:kx,DateTimePicker:Jp,ModalPageGroupGateInDetail:kx,UserAddPage:Ox,Modal:bn},props:{isModal:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},listGatePassagesInUser:{type:Array,default:function(){return[]}},listphones:{type:Array,default:function(){return[]}},tempGroupPassages:{default:function(){return[]}},cardItems:{default:function(){return[]}},errorMessageLogs:{type:String,default:""},authority:{type:Object,default:{}},user:{type:Object,default:function(){return{userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0,department:"",groupAdministrators:[{name:"",isAdminToView:!1,isAdminOfGroupPassages:!1,isAdminOfGatePassages:!1,isAdminOfRemoteUnlock:!1,isAdminOfUnlockingTimeSetting:!1}],departmentAdministrators:[{name:"",isAdminToView:!1,isAdminToAddUser:!1,isAdminToEditUser:!1,isAdminToSetPcodesToUser:!1}]}}},phoneItems:{default:function(){return[]}},successMessageLogs:{type:String,default:""},messageSetting:{default:function(){return{}}},dataProgress:{default:function(){return{}}},gateList:{type:Array,default:function(){return[]}},dataAllow:{type:Array,default:function(){return[]}},titlePage:{type:String,default:""}},data:function(){return{dataGatePassages:[],errGate:{errAdd:"",errorGate:"",errorTime:""},itemGate:{},timeStartGate:"",timeEndGate:"",dateStartGate:"",dateEndGate:"",isShowGroup:!1,selectedIds:[],isCheck:!0,searchTargetItems:[{label:"ユーザー名",value:"id"},{label:"メールアドレス",value:"time"}],selectedDisplayOption:["id","time"],selectedItem:[],searchItem:[],selectedGroupIds:[],sortBy:"time",isShow:!1,showConfirm:!1,passageId:"",showProgress:!1,isReloadData:!1}},computed:{headerGateTable:{get:function(){var e=[{text:"ゲート名",align:"start",sortable:!1,width:"300px",value:"gateId"},{text:"時間",align:"start",sortable:!1,value:"time"},{text:"",align:"start",sortable:!1,value:"edit",width:"100px"}];return e}}},watch:{listGatePassagesInUser:function(e){e.length>0?this.dataGatePassages=e:this.dataGatePassages=[]},loading:function(e){!1===e&&(this.itemGate={},this.timeStartGate="",this.timeEndGate="",this.dateStartGate="",this.dateEndGate="",this.errGate={errAdd:"",errorGate:"",errorTime:""})}},methods:{getNewTimeStart:function(e){this.timeStartGate=e},getNewTimeEnd:function(e){this.timeEndGate=e},getNewDateStart:function(e){this.dateStartGate=e},getNewDateEnd:function(e){this.dateEndGate=e},goLogPage:function(){this.$router.push({path:at,query:{tabId:"user"}})},clickGroup:function(e,t){this.$router.push({path:ht,query:{groupId:t,goBack:"user/detail?userId="+e}})},formatDateTime:function(e){var t=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0");return t+"/"+a+"/"+s+" "+r+":"+o},closeModalGroup:function(){this.isShowGroup=!1,this.$emit("closeModalProgress")},formatTimestamp:function(e){return""!==e?jo()(e).unix():""},deleteGate:function(e){this.showConfirm=!0,this.passageId=e},addGate:function(){var e=0;this.errGate.errAdd="",this.errGate.errorGate="",this.errGate.errorTime="";var t,a=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,s=a.test(this.timeStartGate),r=a.test(this.timeEndGate),o=this.dateStartGate+" "+this.timeStartGate,n=this.dateEndGate+" "+this.timeEndGate,i=Object(rr["a"])(this.dataGatePassages);try{for(i.s();!(t=i.n()).done;){var l=t.value,c=l.gateId+"-"+l.notBefore+"-"+l.notAfter,u=this.itemGate.value+"-"+this.formatTimestamp(this.dateStartGate+" "+this.timeStartGate)+"-"+this.formatTimestamp(this.dateEndGate+" "+this.timeEndGate);if(c===u){this.errGate.errAdd="すでに追加されている時間帯になります。追加する場合は、一度削除してから実施してください。",this.errGate.errorGate="",this.errGate.errorTime="";break}e++}}catch(d){i.e(d)}finally{i.f()}e===this.dataGatePassages.length&&""!==this.dateStartGate&&""!==this.timeStartGate&&" "!==this.dateEndGate&&""!==this.timeEndGate&&!0===s&&!0===r&&n>o?this.$emit("add-gate",{userId:this.user.userId,gateId:this.itemGate.value,gateName:this.itemGate.text,notBefore:this.formatTimestamp(this.dateStartGate+" "+this.timeStartGate),notAfter:this.formatTimestamp(this.dateEndGate+" "+this.timeEndGate)}):(void 0!==this.itemGate.value&&""!==this.itemGate.value||(this.errGate.errorGate="ゲートを指定してください。",this.errGate.errAdd=""),n<=o&&""===this.errGate.errAdd&&(this.errGate.errorTime=as),!1!==s&&!1!==r||""!==this.errGate.errAdd||(this.errGate.errorTime="時間を指定してください。"))},yesChoice:function(){this.showProgress=!0,this.$emit("del-gate",this.passageId)},noChoice:function(){this.showConfirm=!1,this.showProgress=!1,this.passageId=""},closeModalGate:function(){this.showConfirm=!1,this.showProgress=!1,this.passageId="",this.$emit("close-modal-gate",this.user.userId)},getReload:function(e){this.isReloadData=e,this.$emit("getReload",e)},closeModal:function(e){e&&this.$emit("load-user-again",this.user.userId)}}}),Jx=Wx,Zx=(a("1d808"),Object(I["a"])(Jx,Fx,jx,!1,null,null,null)),Xx=Zx.exports;C()(Zx,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCheckbox:Lr["a"],VCol:Dr["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"],VSubheader:Yr["a"],VTooltip:oo["a"]});var Qx=f["a"].extend({name:"UsersTemplate",components:{Breadcrumbs:cn,SuccessButton:kr,UserDetailTable:Xx,ActionButton:Nn,ModalTitle:Xc},props:{isGetDepartment:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},errorMessageProcess:{default:[]},successItemProcess:{type:Number,default:0},progress:{type:Number,default:0},showConfirm:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!1},totalDataRowProcess:{type:Number,default:0},isModal:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},messageSetting:{default:function(){return{}}},dataProgress:{default:function(){return{}}},listphones:{type:Array,default:function(){return[]}},listGatePassagesInUser:{type:Array,default:function(){return[]}},tempGroupPassages:{default:function(){return[]}},userData:{type:Object,default:function(){return{userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0,department:"",groupAdministrators:[{name:"",isAdminToViewGate:!1,isAdminOfGroupPassages:!1,isAdminOfGatePassages:!1,isAdminOfRemoteUnlock:!1}],departmentAdministrators:[{name:"",isAdminToViewUser:!1,isAdminToAddUser:!1,isAdminToEditUser:!1}]}}},cardItems:{default:function(){return[]}},phoneItems:{default:function(){return[]}},gateList:{default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},goBack:{type:String,default:""},authority:{type:Object,default:{}},dataAllow:{default:function(){return[]}},titlePage:{type:String,default:""}},data:function(){return{actionItems:[{title:"有効化する",emitName:"click-enable"},{title:"無効化する",emitName:"click-disable"}],selectedUserIds:[]}},computed:{breadcrumbs:{get:function(){return[{text:"ユーザー",link:!0,exact:!0,disabled:!1,to:{path:_t}},{text:"ユーザー詳細",disabled:!0}]}}},methods:{goUserEdit:function(e){this.$router.push({path:Mt,query:{userId:e}})},goUserList:function(){this.$router.push({path:"/"+this.goBack})}}}),eC=Qx,tC=Object(I["a"])(eC,$x,Nx,!1,null,null,null),aC=tC.exports;C()(tC,{VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VOverlay:Wg["a"],VProgressCircular:Hu["a"],VProgressLinear:Mn["a"],VRow:Kr["a"]});var sC=f["a"].extend({name:"UserDetailPage",components:{Breadcrumbs:cn,SuccessButton:kr,ActionButton:Nn,UserDetailTemplate:aC},props:{isModal:{type:Boolean,default:!1},userIdModal:{type:String,default:""},titlePage:{type:String,default:""},authority:{type:Object,default:{}}},mounted:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a="",a=e.isModal?e.userIdModal:e.$route.query.userId.toString(),null===a||void 0===a){t.next=27;break}return e.loading=!0,t.next=6,e.getInFoUser(a);case 6:if(s=t.sent,!s){t.next=24;break}if(e.userData.departmentAdministrators=[],e.userData.groupAdministrators=[],e.getDepartmentUser(a),!0===e.userData.isAdmin){t.next=16;break}return t.next=14,e.getGroupAuth(a);case 14:return t.next=16,e.getDepartmentAuth(a);case 16:return t.next=18,e.getDepartmentAuthAll(localStorage.userProfileId,1);case 18:e.loading=!1,(e.userData.groupAdministrators.length>0||e.userData.departmentAdministrators.length>0)&&(e.userData.isAdmin=null),e.getInforGatePassage(1,a),e.getPcode(1,a),e.getPhone(1,a),e.loading=!1;case 24:e.getListGate(1),t.next=28;break;case 27:e.loading=!1;case 28:null!==e.$route.query.goBack&&void 0!==e.$route.query.goBack&&(e.goBack=e.$route.query.goBack.toString()),e.$emit("activeMenu","user");case 30:case"end":return t.stop()}}),t)})))()},watch:{loading:function(e){!0!==this.isModal&&this.$emit("loading",e)}},data:function(){return{loading:!1,page:1,tempGroupPassages:[],cardItems:[],phoneItems:[],errorMessageLogs:"",listphones:[],listGatePassagesInUser:[],userData:{isAdmin:!1,isMfaSms:!1,userId:"",password:"",name:"",furigana:"",phoneNumber:"",option1:"",option2:"",groupAdministrators:[],departmentAdministrators:[]},goBack:"user",departments:[],ExpandedData:{data:[],maxRecords:0,page:1,loading:!1},rowinErrDialog:0,errorMessageProcess:[],successItemProcess:0,totalDataRowProcess:0,showProgress:!1,isFinishProcess:!1,showConfirm:!1,progress:0,gatePassageIds:[],userId:"",messageSetting:{success:"",error:""},gateList:[],dataProgress:[],dataAllow:[]}},methods:{getInFoUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(T+"?userId="+encodeURIComponent(e)).then((function(e){t.userData=e.body.users[0],t.userData.phoneNumber=t.userData.phoneNumber.replace("+81","0"),console.log(t.userData),a(!0)})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1,a(!1)}))}))},getInforGroup:function(e,t){var a=this;this.$http.get(Z+"?userId="+encodeURIComponent(t)+"&embed=group&limit=1000&page="+e).then((function(s){s.body.maxRecords>0?(s.body.groupPassages.forEach((function(e){a.tempGroupPassages.push(e),a.tempGroupPassages.sort((function(e,t){return e.group.groupName.toLowerCase()s.body.endRecord&&a.getInforGroup(e+1,t)):a.tempGroupPassages=[]})).then(null,(function(e){console.log(e)}))},getPcode:function(e,t){var a=this;this.$http.get(j+"?limit=1000&page="+e+"&sortKey=desc:registered&userId="+encodeURIComponent(t)+"&isValid=true").then((function(s){s.body.maxRecords>0&&void 0!==s.body.pCodes?(s.body.pCodes.forEach((function(e){a.cardItems.push({text:e.pCodeId,value:e.pCodeId})})),s.body.maxRecords>s.body.endRecord&&a.getPcode(e+1,t)):a.cardItems=[]})).then(null,(function(e){console.log("err: ",e)}))},getPhone:function(e,t){var a=this,s=[],r=[];this.$http.get(Q+"?limit=1000&page="+e+"&sortKey=desc:registered&userId="+encodeURIComponent(t)).then((function(o){o.body.maxRecords>0?(o.body.phones.forEach((function(e){"申請中"===e.status&&s.push({text:"申請中 : "+e.model,value:e.phoneId}),"有効"===e.status&&r.push({text:e.model,value:e.phoneId})})),o.body.maxRecords>o.body.endRecord&&a.getPhone(e+1,t),s.forEach((function(e){a.phoneItems.push(e)})),r.forEach((function(e){a.phoneItems.push(e)}))):a.phoneItems=[]})).then(null,(function(e){console.log("err: ",e)}))},getInforGatePassage:function(e,t){var a=this;return new Promise((function(s,r){var o=new Date;jo()(o).unix();a.$http.get(ee+"?userId="+encodeURIComponent(t)+"&embed=gate&limit=1000&page="+e+"&isExceptOptionalGate=true&sortKey=desc:notAfter").then((function(r){r.body.maxRecords>0?(r.body.passages.forEach((function(e,t){a.listGatePassagesInUser.push({subId:t+"-"+e.gateId+"-"+e.notAfter+"-"+e.notBefore,passageId:e.passageId,gateId:e.gateId,notAfter:e.notAfter,notBefore:e.notBefore,gateName:void 0!==e.gate?e.gate.name:""})})),r.body.maxRecords>r.body.endRecord?a.getInforGatePassage(e+1,t):s(!0)):(a.listGatePassagesInUser=[],s(!1))})).then(null,(function(e){console.log(e),s(!1)}))}))},getDepartmentUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Pe+"?userId="+encodeURIComponent(e)+"&limit=25&page=1&embed=department").then((function(e){t.userData.department=e.body.relationsDepartmentUser[0].department.name,t.userData.departmentId=e.body.relationsDepartmentUser[0].department.departmentId,a(!0)})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},getGroupAuth:function(e){var t=this;return new Promise((function(a,s){"true"===localStorage.isCustomUserAuthorityService?t.$http.get(Se+"?userId="+e+"&embed=user,group").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.userData.groupAdministrators=s.body.groupAdministrators,t.userData.groupAdministrators.map((function(e){return Object.assign(e,{isAdminToView:!0,name:e.group.name})})),a(!0);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){a(!1)})):a(!1)}))},getGroupAuthItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.get(H+"?groupId="+encodeURIComponent(e.groupId)+"&limit=25&page=1&isExceptOptionalGate=true&embed=passableTimeSetting").then((function(e){a.userData.groupAdministrators[t].name=e.body.groups[0].name,s(!0)})).then(null,(function(e){console.log("err: ",e),s(!1)}))}))},getDepartmentAuth:function(e){var t=this;return new Promise((function(a,s){"true"===localStorage.isCustomUserAuthorityService?t.$http.get(_e+"?userId="+encodeURIComponent(e)).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(s){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.userData.departmentAdministrators=s.body.departmentAdministrators,t.userData.departmentAdministrators.map((function(e){return Object.assign(e,{isAdminToView:!0})})),r=0;case 3:if(!(r>"+o+"";t.$set(r,++t.rowinErrDialog,n),t.dataProgress={total:1,progressLoad:100,successItem:0,errorMessage:r,isFinish:!0},a(!1)}))}))},deleteUserGate:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Z+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))},closeDialogConfirm:function(){this.showProgress=!1,this.showConfirm=!1,this.userId=""},getListGate:function(e){var t=this;this.$http.get(Fe+"?limit=1000&page="+e+"&sortKey=asc:gateId&isValid=true&isExceptOptionalGate=true").then((function(a){a.body.maxRecords>0?(a.body.gates.forEach((function(e){t.gateList.push({text:e.gateName,value:e.gateId})})),a.body.maxRecords>a.body.endRecord&&(e++,t.getListGate(e))):t.gateList=[]})).then(null,(function(e){return console.log("err: ",e)}))},addGate:function(e){var t=this;return new Promise((function(a,s){t.errorMessageLogs="",t.loading=!0,t.$http.post(ee,{userId:e.userId,gateId:e.gateId,notBefore:e.notBefore,notAfter:e.notAfter}).then((function(s){"Success"===s.body.message&&console.log("Success"),a(!0),t.listGatePassagesInUser=[],t.getInforGatePassage(1,e.userId),t.loading=!1})).then(null,(function(s){switch(s.status){case 409:t.errorMessageLogs="登録失敗ゲート名: "+e.gateName}a(!0),t.loading=!1}))}))},delGate:function(e){this.deleteGatePass(e)},closeModalGate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.loading=!0,t.listGatePassagesInUser=[],a.next=4,t.getInforGatePassage(1,e);case 4:t.loading=!1;case 5:case"end":return a.stop()}}),a)})))()},getDepartmentAuthAll:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(s,r){"true"===localStorage.isCustomUserAuthorityService?t.$http.get(_e+"?userId="+e+"&limit=1000&page="+a).then(function(){var r=Object(or["a"])(regeneratorRuntime.mark((function r(o){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:o.body.departmentAdministrators.forEach((function(e){e.isAdminToEditUser&&t.dataAllow.push(e.departmentId)})),o.body.maxRecords>o.body.endRecord?(a++,t.getDepartmentAuthAll(e,a)):s(!0);case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).then(null,(function(e){s(!1)})):s(!1)}))},loadUserAgain:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.loading=!0,a.next=3,t.getInFoUser(e);case 3:if(s=a.sent,!s){a.next=22;break}if(t.userData.departmentAdministrators=[],t.userData.groupAdministrators=[],t.getDepartmentUser(e),!0===t.userData.isAdmin){a.next=13;break}return a.next=11,t.getGroupAuth(e);case 11:return a.next=13,t.getDepartmentAuth(e);case 13:return a.next=15,t.getDepartmentAuthAll(localStorage.userProfileId,1);case 15:t.loading=!1,(t.userData.groupAdministrators.length>0||t.userData.departmentAdministrators.length>0)&&(t.userData.isAdmin=null),t.listGatePassagesInUser=[],t.gateList=[],t.getInforGatePassage(1,e),t.getPcode(1,e),t.getListGate(1);case 22:case"end":return a.stop()}}),a)})))()}}}),rC=sC,oC=(a("e0c3"),Object(I["a"])(rC,Vx,Ux,!1,null,"dce3b864",null)),nC=oC.exports,iC=f["a"].extend({name:"UsersAllowedTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No,UserAddPage:Ox,UserDetailPage:nC,UserListTable:jI,ModalPageUser:kx,Modal:bn},watch:{idSelected:function(e){"affiliation-add"===this.isPage?this.$emit("select-Ids",e.map((function(e){return e}))):this.$emit("select-Ids",e.map((function(e){return e.userId})))},isFinishProcessEnable:function(e){e&&(this.idSelected=[])},loading:function(e){!1===e&&!1===this.isShowValidUser&&(this.isShowValidUser="true"===localStorage.isShowValidUser),!1===e&&"affiliation-add"===this.isPage&&(this.selectedDisplayOption=["userId","userName","company"])}},props:{typeItems:{type:Array,default:function(){return[]}},totalCount:{type:Number,default:0},authority:{type:Object,default:{}},isPage:{type:String,default:""},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dataList:{default:function(){return[]}},dataGroupPassages:{default:function(){return[]}},users:{type:Object,default:function(){return{}}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},isFinishProcessEnable:{type:Boolean,default:!1},dataRelationUser:{type:Object,default:function(){return{}}},itemDepartment:{type:Object,default:function(){return{}}},groupId:{type:String,default:""},departmentId:{type:String,default:""},inputSearch:{type:String,default:""},isActionPage:{type:String,default:""},isAdminToAddUser:{type:Boolean,default:!1},isAdminOfGroupPassages:{type:Boolean,default:!1}},mounted:function(){},computed:{headers:{get:function(){var e=[];return e.push({text:"ユーザー名",align:"start",sortable:!0,value:"userName",width:"33%"}),this.selectedDisplayOption.includes("userId")&&e.push({text:"ユーザーID",align:"start",sortable:!0,value:"userId"}),this.selectedDisplayOption.includes("company")&&e.push({text:"所属名",align:"start",sortable:!0,value:"company"}),this.selectedDisplayOption.includes("email")&&e.push({text:"メールアドレス",align:"start",sortable:!0,value:"user.email"}),this.selectedDisplayOption.includes("furigana")&&e.push({text:"ユーザー名ふりがな",align:"start",sortable:!0,value:"user.furigana"}),this.selectedDisplayOption.includes("isAdmin")&&e.push({text:"組織管理権限",align:"start",sortable:!0,value:"user.isAdmin"}),this.selectedDisplayOption.includes("isPhoneAdmin")&&e.push({text:"ゲート設定権限",align:"start",sortable:!0,value:"user.isPhoneAdmin"}),this.selectedDisplayOption.includes("shareKeyBeValid")&&e.push({text:"鍵共有権限",align:"start",sortable:!0,value:"user.shareKeyBeValid"}),this.selectedDisplayOption.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!0,value:"user.isValid"}),this.selectedDisplayOption.includes("option1")&&e.push({text:"備考1",align:"start",sortable:!0,value:"user.option1"}),this.selectedDisplayOption.includes("option2")&&e.push({text:"備考2",align:"start",sortable:!0,value:"user.option2"}),this.selectedDisplayOption.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!0,value:"user.registered"}),this.selectedDisplayOption.includes("updated")&&e.push({text:"更新日",align:"start",sortable:!0,value:"user.updated"}),this.selectedDisplayOption.includes("isMfaSms")&&e.push({text:"SMS認証",align:"start",sortable:!0,value:"user.isMfaSms"}),this.selectedDisplayOption.includes("passCode")&&e.push({text:"二段階認証パスワード",align:"start",sortable:!0,value:"user.passCode"}),e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",{page:e,perPage:this.perPage})}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",{perPage:e,page:1})}},showUserValid:{get:function(){return this.isShowValidUser},set:function(e){"affiliation-add-new"!==this.isPage&&this.$emit("getDepartmentUserValid",{departmentId:this.departmentId,value:e})}}},data:function(){return{searchTargetItems:[{label:"ユーザーID",value:"userId"},{label:"ユーザー名",value:"name"}],type:"add",isShowUser:!1,isShow:!1,isShowUserDetail:!1,selectedDisplayOption:["userId","userName"],displayOptionItems:[{label:"ユーザー名",value:"userName",isDisabled:!0},{label:"ユーザーID",value:"userId",isDisabled:!0},{label:"ステータス",value:"isValid"}],idSelected:[],showOption:!1,showProgress:!1,isVaildOnly:"true"===localStorage.isVaildDataCard,userId:"",isConfirm:!1,isShowValidUser:"true"===localStorage.isShowValidUser,isReloadData:!1}},methods:{Change:function(){"affiliation-add-new"!==this.isPage&&this.$emit("getDepartmentUserValid",{departmentId:this.departmentId,value:this.isShowValidUser})},showUserDetail:function(e){this.userId=e,this.isShowUserDetail=!0},closeModalUser:function(e){this.showProgress=!1,this.idSelected=[],e&&this.$emit("load-users",1)},removeUser:function(e){this.type="del","affiliation-add-new"===this.isPage?(this.showProgress=!1,this.isConfirm=!1,this.$emit("affiliation-remove-item-direct",e),this.idSelected=[]):(this.showProgress=!0,this.isConfirm=!1,this.$emit("remove-user-to-group",e))},loadShowUser:function(){this.isShowUser=!0,this.isReloadData=!1},CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},converDateShort:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return"userName"===t[0]?a[0]?s.user.name0)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("AffiliationListTable",{attrs:{authority:e.authority,isPage:"group-aff",perPage:25,cardTotalCount:e.optionDepartments.total,page:e.optionDepartments.page,loading:e.loading,loadingAff:e.loadingAff,relationsDepartmentGroup:e.dataList,dataList:e.departments},on:{"change-page":function(t){return e.$emit("change-page-aff",t)},"add-aff-to-group":function(t){return e.addAff(t)}}})]},proxy:!0}]),model:{value:e.isShowAff,callback:function(t){e.isShowAff=t},expression:"isShowAff"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(e._s("del"===e.type?"チェックした所属を削除":"他の所属を追加"))]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataRelationDepartmentGroup.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataRelationDepartmentGroup.progressLoad,callback:function(t){e.$set(e.dataRelationDepartmentGroup,"progressLoad",t)},expression:"dataRelationDepartmentGroup.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataRelationDepartmentGroup.progressLoad))+"%")])]),e._v(" "),a("span",{staticClass:"success-label"},[e._v(e._s(e.dataRelationDepartmentGroup.total)+"件中"+e._s(e.dataRelationDepartmentGroup.successItem)),"add"===e.type?a("span",[e._v("件を追加しました。")]):a("span",[e._v("件を削除しました。")])]),e._v(" "),e.dataRelationDepartmentGroup.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataRelationDepartmentGroup.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataRelationDepartmentGroup.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},["del"===e.type?a("success-button",{attrs:{text:"OK"},on:{click:function(t){e.showProgress=!1,e.cardSelected=[],e.closeModal(e.dataRelationDepartmentGroup.successItem>0)}}}):a("success-button",{attrs:{text:"OK"},on:{click:function(t){e.showProgress=!1,e.closeModalAdd(e.dataRelationDepartmentGroup.successItem>0)}}})],1)],1):e._e()],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}},[a("v-card",[a("ModalTitle",{attrs:{title:"チェックした所属を削除"},on:{click:function(t){e.isConfirm=!1}}}),e._v(" "),a("v-card-text",{staticClass:"pt-0 pb-5 text-progress"},[e._v("所属を削除します。")]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.removeAff(e.cardSelected)}}},[e._v("\n 削除\n ")])],1)],1)],1)],1),e._v(" "),e.isShow?a("AffiliationListModalPage",{attrs:{isPage:"detail",department:e.department},on:{loading:function(t){return e.$emit("loading-from-child",t)},getReload:function(t){return e.getReload(t)},"close-page-modal":function(t){return e.closeModalAff(e.isReloadData)},"get-list-user":function(t){return e.$emit("get-list-user")},"back-group-detail":function(t){e.$emit("back-group-detail",t),e.isShow=!1}}}):e._e()],1)])},gC=[],pC=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("div",{staticClass:"allig-reflection-card-table",staticStyle:{position:"relative"}},[a("ModalLoading",{attrs:{loading:e.loadingAff}}),e._v(" "),a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{staticClass:"pt-0",attrs:{xl:"7",sm:"8"}}),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center "},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"12"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.checkItem(e.cardSelected).length},on:{click:function(t){e.$emit("add-aff-to-group",e.checkItem(e.cardSelected))}}},[e._v("\n 他の所属を追加する\n ")])],1)],1)])],1)],1),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{attrs:{"per-page":e.perPage,page:e.page,"items-length":e.cardTotalCount}}),e._v(" "),a("v-spacer")],1)],1),e._v(" "),a("div",{staticClass:"round-data"},[a("v-data-table",{class:"group-aff"===e.isPage?"modal-table border-table scroll-table":"border-table scroll-table",attrs:{"must-sort":"",headers:e.headers,items:e.getData,"items-per-page":e.perPage,"item-key":"departmentId","no-data-text":"データーはありません","loading-text":"データを読み込中です",loading:e.loadingAff,"hide-default-footer":"","show-select":!0,"custom-sort":e.customSort},on:{"toggle-select-all":function(t){return e.handleToggleAll(t)}},scopedSlots:e._u([{key:"item.icon",fn:function(t){var s=t.item;return[a("span",[a("v-icon",[e._v("mdi-account")]),e._v("\n "+e._s(s.userCount)+"\n ")],1),e._v(" "),a("span",{staticClass:"mr-5 item-count"},[a("v-icon",[e._v("mdi-domain")]),e._v("\n "+e._s(s.groupCount)+"\n ")],1)]}},{key:"item.name",fn:function(t){var s=t.item;return[void 0!==s.name?a("span",{staticClass:"item-user-id"},[e._v(e._s(s.name))]):e._e()]}},e.checkAll?null:{key:"header.data-table-select",fn:function(t){var s=t.on,r=t.props;return[a("v-simple-checkbox",e._g(e._b({attrs:{color:"purple",disabled:""}},"v-simple-checkbox",r,!1),s))]}},{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[t.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:t.disable,disabled:t.disable,ripple:!1},on:{input:function(e){return r(e)}}}):a("v-simple-checkbox",{attrs:{value:s,readonly:t.disabled,disabled:t.disabled,ripple:!1},on:{input:function(e){return r(e)}}})]}}],null,!0),model:{value:e.cardSelected,callback:function(t){e.cardSelected=t},expression:"cardSelected"}})],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"}),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.cardTotalCount/e.perPage),disabled:e.loadingAff},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)])},mC=[],fC=f["a"].extend({name:"AffiliationListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No,ModalLoading:Zg},watch:{cardSelected:function(e){this.$emit("select-department",e.map((function(e){return e.departmentId})))},isFinishProcessEnable:function(e){e&&(this.cardSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},loadingAff:function(e){var t=this;!1===e&&(this.getData=this.dataList,this.getData.map((function(e){return e.disable=!1})),this.getData.forEach((function(e,a){var s=t.relationsDepartmentGroup.some((function(t){return t.departmentId===e.departmentId}));s?t.getData[a].disable=!0:t.checkAll=!0})),this.cardSelected=[])}},props:{typeItems:{type:Array,default:function(){return[]}},cardTotalCount:{type:Number,default:0},isPage:{type:String,default:""},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},loadingAff:{type:Boolean,default:!1},dataList:{default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},isFinishProcessEnable:{type:Boolean,default:!1},relationsDepartmentGroup:{type:Array,default:function(){return[]}},authority:{type:Object,default:{}}},mounted:function(){"undefined"===typeof localStorage.displayOptionPCode?localStorage.setItem("displayOptionPCode",JSON.stringify(this.selectedDisplayOption)):this.selectedDisplayOption=JSON.parse(localStorage.displayOptionPCode)},computed:{headers:{get:function(){var e=[{text:"所属名",align:"start",sortable:!0,value:"name"}];return this.authority.isAdmin&&e.push({text:"所属ユーザー数 / 通行権限グループ数",align:"start",sortable:!1,width:"350px",value:"icon"}),e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{selectedDisplayOption:["name"],displayOptionItems:[],cardSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard,getData:[],checkAll:!1}},methods:{CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0&&0===e.typeAction?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を有効化しました。")]):e._e(),e._v(" "),e.successItemProcess>0&&1===e.typeAction?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を無効化しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[0===e.typeAction?a("span",{staticClass:"error-box-title"},[e._v("有効化失敗")]):1===e.typeAction?a("span",{staticClass:"error-box-title"},[e._v("無効化失敗")]):e._e(),e._v(" "),a("div",{staticClass:"error-box"},e._l(e.errorMessageProcess,(function(t){return a("p",{key:t,domProps:{innerHTML:e._s(t)}})})),0)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeModalProgress()}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:"新規所属登録","no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:e.clickBack},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShow?a("AffiliationAdd",{attrs:{authority:e.authority,expandData:e.expandData,userItems:e.userItems,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs},on:{"load-list-groups":function(t){return e.$emit("load-list-groups",t)},"expand-gate-group":function(t){return e.$emit("expand-gate-group",t)},"change-page-group-all":function(t){return e.$emit("change-page-group-all",t)},"change-per-page-group-all":function(t){return e.$emit("change-per-page-group-all",t)},"change-page-gate-group":function(t){return e.$emit("change-page-gate-group",t)},"register-aff":function(t){return e.$emit("register-aff",t)}}}):e._e()]},proxy:!0}],null,!1,3578008600),model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}})],1):a("div",[a("AffiliationTable",{attrs:{loadingChild:e.loadingChild,authority:e.authority,dataGroupsModal:e.dataGroupsModal,page:e.page,perPage:e.perPage,loading:e.loading,expandData:e.expandData,dataRelationUser:e.dataRelationUser,dataRelationGroup:e.dataRelationGroup,userItems:e.userItems,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,isPage:e.isPage,departmentItem:e.department,isGetUser:e.isGetUser},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},changeTab:function(t){return e.$emit("changeTab",t)},"select-groups":function(t){e.selectedGroupIds=t},"expand-gate-group":function(t){return e.$emit("expand-gate-group",t)},"click-delete-item":function(t){return e.clickDeleteItem(t)},"change-page-user":function(t){return e.$emit("change-page-user",t)},"change-per-page-user":function(t){return e.$emit("change-per-page-user",t)},"search-user":function(t){return e.$emit("search-user",t)},"load-list-users":function(t){return e.$emit("load-list-users",t)},"add-user":function(t){return e.$emit("add-user",t)},"change-page-user-all":function(t){return e.$emit("change-page-user-all",t)},"change-per-page-user-all":function(t){return e.$emit("change-per-page-user-all",t)},"remove-user":function(t){return e.$emit("remove-user",t)},"load-users":function(t){return e.$emit("load-users",t)},"change-page-group":function(t){return e.$emit("change-page-group",t)},"change-page-gate-group":function(t){return e.$emit("change-page-gate-group",t)},"remove-group":function(t){return e.$emit("remove-group",t)},"load-list-groups":function(t){return e.$emit("load-list-groups",t)},"add-group":function(t){return e.$emit("add-group",t)},"change-page-group-all":function(t){return e.$emit("change-page-group-all",t)},"change-per-page-group-all":function(t){return e.$emit("change-per-page-group-all",t)},"load-aff-detail":function(t){return e.$emit("load-aff-detail",t)},"remove-detail-aff":function(t){return e.$emit("remove-detail-aff",t)},"load-detail-aff-again":function(t){return e.$emit("load-detail-aff-again",t)},"update-aff":function(t){return e.$emit("update-aff",t)},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},"close-page-modal":function(t){return e.$emit("close-page-modal")},"search-group-department":function(t){return e.$emit("search-group-department",t)},"get-list-group-modal":function(t){return e.$emit("get-list-group-modal")},"get-list-user":function(t){return e.$emit("get-list-user")},"back-group-detail":function(t){return e.$emit("back-group-detail",t)},getDepartmentUserValid:function(t){return e.$emit("getDepartmentUserValid",t)},"change-expanded":function(t){return e.$emit("change-expanded",t)},getReload:function(t){return e.$emit("getReload",t)}}})],1)},CC=[],wC=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-table aff-table"},[a("div",[a("v-container",{staticClass:"pt-0 pb-0"},[""!==e.successMessageLogs&&!1===e.loading&&0===e.expandData.errorData.groups.length&&0===e.expandData.errorData.users.length?a("div",{staticClass:"pa-2 mt-2 font-weight-bold bg-success align-self-center mr-2"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):""===e.successMessageLogs&&""===e.errorMessageLogs||!1!==e.loading?e._e():a("div",{staticClass:"font-weight-bold bg-error align-self-center mr-2 pa-2 mt-2"},[""!==e.successMessageLogs&&!1===e.loading?a("p",[e._v(e._s(e.successMessageLogs))]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("p",[e._v(e._s(e.errorMessageLogs))]):e._e(),e._v(" "),e.expandData.errorData.users.length>0&&!1===e.loading?a("p",[e._v("登録失敗所属ユーザー: "+e._s(e.expandData.errorData.users.toString()))]):e._e(),e._v(" "),e.expandData.errorData.groups.length>0&&!1===e.loading?a("p",[e._v("設定失敗通行権限グループ: "+e._s(e.expandData.errorData.groups.toString()))]):e._e()])]),e._v(" "),a("div",{staticClass:"round-content-scroll vh75 pa-0 mt-3 pt-2"},[a("v-container",[a("div",{staticClass:"title-block-card "},[e._v("所属情報")]),e._v(" "),a("v-card",{staticClass:"affiliation-information"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("所属名 ")])]),e._v(" "),a("v-col",{staticClass:"col-12"},[a("v-form",{ref:"AffAddForm",attrs:{"lazy-validation":""}},[a("input-form",{attrs:{rules:[e.rulesValidate.requiredName,e.rulesValidate.validateName]},model:{value:e.departmentInfo.name,callback:function(t){e.$set(e.departmentInfo,"name",t)},expression:"departmentInfo.name"}})],1)],1)],1),e._v(" "),e.authority.isCustomUserAuthorityService?a("div",{staticClass:"mt-5"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("所属管理者 ")])])],1),e._v(" "),e._l(e.listAff,(function(t,s){return a("v-row",{key:s,staticClass:"mt-2 ml-5"},[a("v-col",{attrs:{sm:"10",lg:"3"}},[a("v-row",{staticClass:"mt-2 mb-2"},[a("v-col",{staticClass:"btn-del-aff",attrs:{cols:"1"}},[a("v-btn",{attrs:{icon:"",al:""},on:{click:function(t){return e.deleteAff(s)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"10"}},[a("v-combobox",{staticClass:"v-select-group",attrs:{items:e.dataAllow,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:"","menu-props":{contentClass:"v-select-item v-select-item-disabled"},disabled:0==e.dataAllow.length,attach:!0},on:{change:e.changeAllow},model:{value:t.userId,callback:function(a){e.$set(t,"userId",a)},expression:"item.userId"}})],1)],1)],1),e._v(" "),a("v-col",{staticClass:"mt-2",attrs:{sm:"12",lg:"9"}},[a("v-row",{staticClass:"item-check-box-detail"},[a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"ユーザー閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー追加権限"},model:{value:t.isAdminToAddUser,callback:function(a){e.$set(t,"isAdminToAddUser",a)},expression:"item.isAdminToAddUser"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー編集権限"},model:{value:t.isAdminToEditUser,callback:function(a){e.$set(t,"isAdminToEditUser",a)},expression:"item.isAdminToEditUser"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"カード設定権限"},model:{value:t.isAdminToSetPcodesToUser,callback:function(a){e.$set(t,"isAdminToSetPcodesToUser",a)},expression:"item.isAdminToSetPcodesToUser"}})],1)],1)],1)],1)})),e._v(" "),a("v-row",{staticClass:"mt-0 pt-0"},[a("v-col",{staticClass:"col-2 pt-0"},[a("div",{staticClass:"v-subheader theme--light ml-0 pa-0 mt-0 add-button",on:{click:e.addAffiliation}},[e._v(" + 追加する ")])])],1)],2):a("div",{staticClass:"mt-5"})],1),e._v(" "),a("div",{staticClass:"title-block-card title-margin"},[e._v("所属ユーザー")]),e._v(" "),a("v-card",[a("UsersAllowedTable",{attrs:{isActionPage:"add",authority:e.authority,departmentId:"",dataList:e.dataDirectUser.data,isPage:"affiliation-add-new",loading:e.dataDirectUser.loading,totalCount:e.dataDirectUser.total,perPage:e.dataDirectUser.perPage,page:e.dataDirectUser.page,users:e.expandData.userAll,dataRelationUser:{}},on:{"change-page":function(t){return e.changePageUserDirect(t)},"search-user":function(t){return e.searchItemDirect(t)},"affiliation-add-item-direct":function(t){return e.affiliationAddItemDirect(t)},"affiliation-remove-item-direct":function(t){return e.affiliationRemoveItemDirect(t)}}})],1),e._v(" "),a("div",{staticClass:"title-block-card title-margin"},[e._v("設定されている通行権限グループ")]),e._v(" "),a("v-card",[a("AccessPermissionGroupTable",{attrs:{isActionPage:"add",authority:e.authority,dataGroupsModal:e.dataDirectGroup,gateGroup:e.expandData.gateGroup,isPage:"affiliation-add-new",loading:e.dataDirectGroup.loading,page:e.dataDirectGroup.page,dataRelation:{},groups:e.expandData.groupAll},on:{"expand-gate-group":function(t){return e.$emit("expand-gate-group",t)},"change-page":function(t){return e.changePageGroupDirect(t)},"change-page-gate-group":function(t){return e.$emit("change-page-gate-group",t)},"remove-group":function(t){return e.removeGroupDirect(t)},"add-group":function(t){return e.addGroupDirect(t)},"load-list-groups":function(t){return e.$emit("load-list-groups",{page:1,perPage:25})},"change-page-group-all":function(t){return e.$emit("change-page-group-all",t)},"change-per-page-group-all":function(t){return e.$emit("change-per-page-group-all",t)},"search-group":function(t){return e.searchGroupDirect(t)}}})],1)],1),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[""!==e.successMessageLogs&&!1===e.loading&&0===e.expandData.errorData.groups.length&&0===e.expandData.errorData.users.length?a("div",{staticClass:"font-weight-bold bg-success bg-no align-self-center mr-2"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):a("div",{staticClass:"font-weight-bold bg-error bg-no align-self-center mr-2"},[""!==e.successMessageLogs&&!1===e.loading?a("p",[e._v(e._s(e.successMessageLogs))]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("p",[e._v(e._s(e.errorMessageLogs))]):e._e(),e._v(" "),e.expandData.errorData.users.length>0&&!1===e.loading?a("p",[e._v("登録失敗所属ユーザー: "+e._s(e.expandData.errorData.users.toString()))]):e._e(),e._v(" "),e.expandData.errorData.groups.length>0&&!1===e.loading?a("p",[e._v("設定失敗通行権限グループ: "+e._s(e.expandData.errorData.groups.toString()))]):e._e()]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{type:"button",outlined:""},on:{click:function(t){return e.registerAff()}}},[e._v("\n 登録\n ")])],1)],1)],1)],1)])},kC=[],SC=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("div",{staticClass:"allig-group-table"},[a("div",{staticClass:"round-action"},["affiliation-add"===e.isPage?a("v-row"):a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{staticClass:"pt-0 pb-0"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center mr-12"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-second",attrs:{outlined:"",disabled:0===e.groupSelected.length},on:{click:function(t){return e.removeGroup()}}},[e._v("\n チェックした通行権限グループを削除する\n ")]):e._e()],1),e._v(" "),a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[!0===e.authority.isAdmin?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.loadShowGroup()}}},[e._v("\n 通行権限グループを追加する\n ")]):e._e()],1)],1)])],1)],1),e._v(" "),a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{md:"12",xl:"12"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search",attrs:{searchTargetItems:e.searchTargetItems,title:"通行権限グループ名を検索",disabled:e.loading},on:{search:function(t){return e.$emit("search-group",t)}}})],1)],1)],1)])],1),e._v(" "),a("v-row",{staticClass:"mt-3 ",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-3 ",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.dataGroupsModal.total}}),e._v(" "),a("v-spacer")],1),e._v(" "),a("v-row",{staticClass:"pt-0 pb-0 mt-0"})],1),e._v(" "),a("v-row",{staticClass:"pa-3"},[a("v-col",{attrs:{sm:"12"}},[a("div",{staticClass:"round-data table-affiliation"},[a("v-data-table",{staticClass:"border-table table-no-bg",attrs:{"must-sort":"",headers:e.headers,items:e.dataGroupsModal.data,"items-per-page":e.perPage,"item-key":"groupId","no-data-text":"データーはありません",loading:e.loading,"loading-text":"データを読み込中です","hide-default-footer":"","custom-sort":e.customSort,"show-expand":!0===e.authority.isAdminToViewGroup||!0===e.authority.isAdmin,"single-expand":"","show-select":!0},on:{"item-expanded":function(t){return e.$emit("expand-gate-group",t)}},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[!0!==e.authority.isAdmin&&!0!==e.authority.isAdminOfGroupPassages||""===s.relationId?a("span",[e._v(e._s(s.group.name))]):a("text-link",{staticClass:"item-user-name",attrs:{text:s.group.name},on:{click:function(t){return e.clickGroupDetail(s.group.groupId)}}})]}},{key:"item.passableTimeSettingName",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[void 0!==s.group.passableTimeSetting&&void 0!==s.group.passableTimeSetting.name?a("div",e._g(e._b({},"div",o,!1),r),[e._v("\n "+e._s(s.group.passableTimeSetting.name)+"\n ")]):e._e()]}}],null,!0)},[e._v(" "),e.checkPassableTimeSetting(s.group)?a("span",e._l(s.group.passableTimeSetting.timeSettings,(function(t,s){return a("div",{key:s},[e._v(e._s(t.dayTypeName)+" "+e._s(e.showTime(t)))])})),0):e._e()])]}},!0===e.authority.isAdminToViewGroup||!0===e.authority.isAdmin?{key:"item.data-table-expand",fn:function(t){var s=t.expand,r=t.item,o=t.isExpanded;return[a("v-tooltip",{attrs:{bottom:"",disabled:o},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,i=t.attrs;return[a("v-btn",e._g(e._b({attrs:{color:"white",elevation:"0"},on:{click:function(e){return s(!o)}}},"v-btn",i,!1),n),[a("span",{staticClass:"mr-5 item-count"},[a("v-icon",[e._v("mdi-door")]),e._v("\n "+e._s(r.group.gateCount)+"\n ")],1)])]}}],null,!0)},[e._v(" "),a("span",{staticClass:"text-caption"},[e._v("ゲート一覧を開く")])]),e._v(" "),a("transition",{attrs:{name:"expand-icon"}},[o?a("v-icon",[e._v("mdi-chevron-down")]):e._e()],1)]}}:null,{key:"item.icons",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditGroup",s.groupId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("通行権限グループ編集")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditGroup",s.groupId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-trash-can-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("通行権限グループ編集")])])]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{attrs:{colspan:s.length}},[a("GateGroupListTable",{attrs:{dataGates:e.gateGroup.data,loading:e.gateGroup.loading,gateTotalCount:e.gateGroup.total,page:e.gateGroup.page},on:{"change-page":function(t){return e.$emit("change-page-gate-group",{groupId:r.groupId,page:t})}}})],1)]}}],null,!0),model:{value:e.groupSelected,callback:function(t){e.groupSelected=t},expression:"groupSelected"}})],1)])],1),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"}),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.dataGroupsModal.total/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1),e._v(" "),a("Modal",{attrs:{title:"通行権限グループを追加","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){e.isShowGroup=!1,e.closeModal(e.dataRelation.successItem>0)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowGroup?a("GroupListTable",{attrs:{dataList:e.groups.data,perPage:e.groups.perPage,page:e.groups.page,totalCount:e.groups.total,loading:e.groups.loading,loadingGroup:e.loading,dataAdded:"affiliation-add-new"===e.isPage?e.dataGroupsModal.dataOri:[],isPage:"affiliation-add-new"===e.isPage?e.isPage:"",relationsDepartmentGroup:"affiliation-add-new"===e.isPage&&void 0!==e.dataGroupsModal.dataOri?e.dataGroupsModal.dataOri:e.dataGroupsModal.data},on:{getReload:function(t){return e.getReload(t)},"change-page":function(t){return e.$emit("change-page-group-all",t)},"change-per-page":function(t){return e.$emit("change-per-page-group-all",t)},"add-group":function(t){return e.addGroup(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isShowGroup,callback:function(t){e.isShowGroup=t},expression:"isShowGroup"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",["add"===e.type?a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループを追加")]):a("v-card-title",{staticClass:"background-color-green"},[e._v("チェックした通行権限グループを削除")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataRelation.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataRelation.progressLoad,callback:function(t){e.$set(e.dataRelation,"progressLoad",t)},expression:"dataRelation.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataRelation.progressLoad))+"%")])]),e._v(" "),e.dataRelation.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataRelation.total)+"件中"+e._s(e.dataRelation.successItem)+" "),"add"===e.type?a("span",[e._v("件を追加しました。")]):a("span",[e._v("件を削除しました。")])]):e._e(),e._v(" "),e.dataRelation.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataRelation.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataRelation.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeModalGroup(e.dataRelation.successItem>0)}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:"チェックした通行権限グループを削除",smallScreen:"600",text:"チェックした通行権限グループを削除します。",className:"common-modal"},on:{close:function(t){e.showConfirm=!1}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"削除"},on:{click:function(t){return e.yesChoice()}}})]},proxy:!0}]),model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}})],1)},_C=[],PC=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-gate-table mt-5"},[a("v-container",{staticClass:"pb-0 pt-0 mb-5"},[a("div",{staticClass:"title-block-gate mt-0 mb-0"},[e._v("ゲート一覧")]),e._v(" "),a("v-row",{staticClass:"mt-1 ",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-3 mb-1",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.gateTotalCount}})],1),e._v(" "),a("div",{staticClass:"round-data table-affiliation"},[a("v-data-table",{staticClass:"border-table gate-of-group table-no-bg",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,loading:e.loading,items:e.dataGates,"items-per-page":25,"item-key":"gateId","no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"",expanded:e.expanded},on:{"update:expanded":function(t){e.expanded=t}},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(s.gate.name))])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}})],1),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mt-5"}),e._v(" "),a("pagination",{attrs:{"page-length":Math.ceil(e.gateTotalCount/e.perPage),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)],1)},MC=[],LC=f["a"].extend({name:"GateListTable",components:{ShowPerPage:mo,SuccessButton:kr,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,UserGateTable:sf,TextLink:No,GroupOfGateTable:hf,Searchbox:$r,ActionButton:Nn,ControlPanelAddPage:qf},props:{inPage:{type:String,default:""},gateTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},searchTargetItems:{default:function(){return[]}},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataGates:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageModal:{type:String,default:""},successMessageModal:{type:String,default:""},errorMessageLogs:{type:String,default:""},gateId:{default:""},gateName:{default:""},isReRenderGroup:{default:0},isRemoveGroupSelected:{default:0},isReRenderUser:{default:0},isRemoveUserSelected:{default:0},safieRelationsGateDevice:{type:Object,default:function(){return{}}}},mounted:function(){"undefined"!==typeof localStorage.displayOptionGate&&(this.selectedDisplayOption=JSON.parse(localStorage.displayOptionGate))},watch:{selectedDisplayOption:function(e){if(localStorage.setItem("displayOptionGate",JSON.stringify(e)),e.length>8){var t,a=Object(rr["a"])(this.displayOptionItems);try{var s=function(){var a=t.value;void 0===e.find((function(e){return e===a.value}))&&(a.isDisabled=!0)};for(a.s();!(t=a.n()).done;)s()}catch(i){a.e(i)}finally{a.f()}}else{var r,o=Object(rr["a"])(this.displayOptionItems);try{for(o.s();!(r=o.n()).done;){var n=r.value;"controllerName"!==n.value&&(n.isDisabled=!1)}}catch(i){o.e(i)}finally{o.f()}}}},data:function(){return{isShow:!1,actionItems:[{title:"チェックしたゲート",emitName:"click-enable"},{title:"チェックしたゲート",emitName:"click-disable"}],expanded:[],selectedItem:[],selectedDisplayOption:["controllerName","gateName","isValid"],displayOptionItems:[{label:"制御盤",value:"controllerName",isDisabled:!0},{label:"ゲートID",value:"gateId"},{label:"ゲート名",value:"gateName"},{label:"製品ID",value:"gateModelId"},{label:"製品名",value:"gateModelName"},{label:"型番",value:"gateModelCode"},{label:"アイコンタイプ",value:"iconType"},{label:"メーカー番号",value:"makerCode"},{label:"変更有無",value:"customizable"},{label:"ターゲット動作設定",value:"target"},{label:"ターゲット動作設定Time",value:"controlTime"},{label:"ターゲット動作設定TimeUnit",value:"timeUnit"},{label:"ゲート動作モード",value:"isVisitor"},{label:"NFCの有効",value:"isNFCValid"},{label:"テンキーの有効・無効",value:"isTenKeyValid"},{label:"ゲートパスワードの有効・無効",value:"isGatePasswordValid"},{label:"ゲートパスワードの桁数",value:"gatePasswordLength"},{label:"ゲートパスワードのseed値",value:"gatePasswordSeed"},{label:"2段階認証の有効・無効",value:"isTwoStepAuthValid"},{label:"BLE出力設定",value:"bleIntensity"},{label:"ブザー鳴動設定",value:"buzzerPattern"},{label:"位置情報取得",value:"needLocation"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"},{label:"ゲート個体番号1",value:"gateSNMain"},{label:"ゲート個体番号2",value:"gateSNBLE"},{label:"ファームウェアバージョン",value:"gateFWMain"},{label:"ファームウェアバージョン(BLE)",value:"gateFWBLE"},{label:"登録日",value:"registered"},{label:"更新日",value:"updated"},{label:"ゲートへ設定情報を適用した日時",value:"reported"},{label:"個人コード照合データー:最新リビジョン",value:"revisionDesired"},{label:"個人コード照合データー:ゲートへ設定済みのリビジョン",value:"revisionReported"},{label:"電池電圧",value:"voltage"},{label:"電池電圧更新日",value:"scanDate"},{label:"回線番号",value:"controllerGateNo"}],selectedUserIds:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataGate}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return"controller.name"===t[0]?a[0]?s.controller.name0?jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm:ss"):"ー"},goDetailControl:function(e){this.$router.push({path:wt,query:{controllerId:e}})},goDetailGate:function(e){this.$router.push({path:dt,query:{gateId:e}})},safieDeviceLinkTo:function(e){window.open("".concat(Oe,"/").concat(e),"_blank")}},computed:{headers:{get:function(){var e=[{text:"ゲート名",align:"start",sortable:!0,width:"20%",value:"name"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.expanded=[],this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.expanded=[],this.$emit("change-per-page",e)}}}}),DC=LC,GC=(a("bfc1"),Object(I["a"])(DC,PC,MC,!1,null,"21370e3c",null)),AC=GC.exports;C()(GC,{VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var RC=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-card-table mt-5 mb-5 pa-5"},[a("h3",[e._v("ゲート一覧")]),e._v(" "),a("div",{staticClass:"round-data"},[a("v-data-table",{staticClass:"border-table scroll-table",attrs:{"must-sort":"",headers:e.headers,items:e.dataList,"items-per-page":-1,"item-key":"userId","no-data-text":"データーはありません","loading-text":"データを読み込中です",loading:e.isGetDataList,"hide-default-footer":"","custom-sort":e.customSort},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.name))])]}}],null,!0),model:{value:e.cardSelected,callback:function(t){e.cardSelected=t},expression:"cardSelected"}})],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer")],1)},TC=[],EC=f["a"].extend({name:"GateListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No},watch:{cardSelected:function(e){this.$emit("select-pcodes",e.map((function(e){return e.pCodeId})))},isFinishProcessEnable:function(e){e&&(this.cardSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))}},props:{typeItems:{type:Array,default:function(){return[]}},cardTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataList:{default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},isFinishProcessEnable:{type:Boolean,default:!1}},mounted:function(){},computed:{headers:{get:function(){var e=[{text:"ゲート名",align:"start",sortable:!1,value:"name"}];return e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{selectedDisplayOption:["name"],displayOptionItems:[],cardSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard}},methods:{CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]\n ")])],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.totalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.totalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)])},NC=[],FC=f["a"].extend({name:"UsersListTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No,ModalLoading:Zg},watch:{idSelected:function(e){this.$emit("select-pcodes",e.map((function(e){return e.pCodeId})))},isFinishProcessEnable:function(e){e&&(this.idSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},loadingChild:function(e){var t=this;!1===e&&(this.getData=this.dataList,this.getData.map((function(e){return e.disable=!1})),this.getData.forEach((function(e,a){var s=t.relationsDepartmentGroup.some((function(t){return t.group.groupId===e.groupId}));s&&(t.getData[a].disable=!0)})),this.idSelected=[],this.dataAdded.length>0&&"affiliation-add-new"===this.isPage&&(this.idSelected=this.dataAdded))}},props:{typeItems:{type:Array,default:function(){return[]}},totalCount:{type:Number,default:0},isPage:{type:String,default:""},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingGroup:{type:Boolean,default:!1},dataList:{default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},isFinishProcessEnable:{type:Boolean,default:!1},relationsDepartmentGroup:{type:Array,default:function(){return[]}},dataAdded:{type:Array,default:function(){return[]}}},mounted:function(){"undefined"===typeof localStorage.displayOptionPCode?localStorage.setItem("displayOptionPCode",JSON.stringify(this.selectedDisplayOption)):this.selectedDisplayOption=JSON.parse(localStorage.displayOptionPCode)},computed:{headers:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!0,value:"name"}];return e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}},loadingChild:{get:function(){return!(!this.loading&&!this.loadingGroup)},set:function(e){}}},data:function(){return{isShow:!1,isShowUserDetail:!1,selectedDisplayOption:["groupId","name"],displayOptionItems:[{label:"通行権限グループID",value:"groupId",isDisabled:!0},{label:"通行権限グループ名",value:"name",isDisabled:!1}],idSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard,getData:[]}},methods:{CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0},getReload:function(e){this.isReloadData=!0},closeModal:function(e){e&&this.$emit("close-modal")},showTime:function(e){var t=e.startTime+"〜"+e.endTime;return"99:99"===e.startTime&&"99:99"===e.endTime?t="終日不可":"00:00"===e.startTime&&"00:00"===e.endTime&&(t="終日可能"),t}}}),KC=HC,YC=(a("08b7"),Object(I["a"])(KC,SC,_C,!1,null,"a1b01862",null)),qC=YC.exports;C()(YC,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var WC=f["a"].extend({name:"AffiliationAdd",components:{ShowPerPage:mo,Pagination:xo,DisplayOption:Mo,SelectPerPage:To,TextLink:No,UsersAllowedTable:uC,AccessPermissionGroupTable:qC,InputForm:io,Modal:bn},props:{successMessageLogs:{type:String,default:""},loading:{type:Boolean,default:!1},errorMessageLogs:{type:String,default:""},expandData:{type:Object,default:{}},authority:{type:Object,default:{}},userItems:{type:Array,default:[]}},mounted:function(){},watch:{userItems:function(e){if(e.length>0){var t=Array.of.apply(Array,Object(mI["a"])(e));this.dataAllow=t}}},data:function(){return{rulesValidate:{requiredName:function(e){return!!e||"所属名は必須です。"},validateName:function(e){return null===e||void 0===e||""===e||(e.length<=64||"所属名は64文字以内で入力してください。")}},dataAllow:[],departmentInfo:{},listAff:[{userId:"",isAdminToView:!0,isAdminToAddUser:!1,isAdminToEditUser:!1,isAdminToSetPcodesToUser:!1}],dataDirectUser:{loading:!1,total:0,perPage:25,page:1,data:[],tmp:[],keyword:"",scorp:["userId","name"]},dataDirectGroup:{loading:!1,total:0,perPage:25,page:1,data:[],tmp:[],keyword:"",scorp:["name"]}}},computed:{},methods:{addAffiliation:function(){this.listAff.push({userId:"",isAdminToView:!0,isAdminToAddUser:!1,isAdminToEditUser:!1,isAdminToSetPcodesToUser:!1})},changeAllow:function(){var e=this;this.dataAllow.map((function(e){return Object.assign(e,{disabled:!1})})),this.dataAllow.forEach((function(t,a){var s=e.listAff.some((function(e){return e.userId.value===t.value}));s&&(e.dataAllow[a].disabled=!0)}))},affiliationAddItemDirect:function(e){this.dataDirectUser.keyword="",this.dataDirectUser.data=e.filter((function(e){return""===e.departmentName})),this.dataDirectUser.data.map((function(e){return Object.assign(e,{user:{userId:e.userId,name:e.name,isValid:e.isValid}})})),this.dataDirectUser.tmp=this.dataDirectUser.data,this.dataDirectUser.total=this.dataDirectUser.tmp.length},affiliationRemoveItemDirect:function(e){var t=this;this.dataDirectUser.page=1,e.forEach((function(e){var a=t.dataDirectUser.data.map((function(e){return e.userId})).indexOf(e.userId);a>=0&&t.dataDirectUser.data.splice(parseInt(a),1);var s=t.dataDirectUser.tmp.map((function(e){return e.userId})).indexOf(e.userId);s>=0&&t.dataDirectUser.tmp.splice(parseInt(s),1)})),this.dataDirectUser.total=this.dataDirectUser.tmp.length},searchItemDirect:function(e){this.dataDirectUser.scorp=e.targets,this.dataDirectUser.keyword=e.text,this.dataDirectUser.page=1,this.loadDataDirect()},changePageUserDirect:function(e){this.dataDirectUser.page=e.page,this.loadDataDirect()},loadDataDirect:function(){var e=this,t=this.dataDirectUser.tmp;console.log("dataOri",t),""!==this.dataDirectUser.keyword&&(t=2===this.dataDirectUser.scorp.length?t.filter((function(t){return!0===t.user.name.toLowerCase().includes(e.dataDirectUser.keyword.toLowerCase())||!0===t.user.userId.toLowerCase().includes(e.dataDirectUser.keyword.toLowerCase())})):"name"===this.dataDirectUser.scorp[0]?t.filter((function(t){return!0===t.user.name.toLowerCase().includes(e.dataDirectUser.keyword.toLowerCase())})):t.filter((function(t){return!0===t.user.userId.toLowerCase().includes(e.dataDirectUser.keyword.toLowerCase())}))),this.dataDirectUser.data=t.slice(25*(this.dataDirectUser.page-1),25*this.dataDirectUser.page)},addGroupDirect:function(e){this.dataDirectGroup.keyword="",this.dataDirectGroup.data=e,this.dataDirectGroup.data.map((function(e){return Object.assign(e,{group:{groupId:e.groupId,name:e.name,gateCount:e.gateCount,passableTimeSetting:e.passableTimeSetting}})})),this.dataDirectGroup.tmp=this.dataDirectGroup.data,this.dataDirectGroup.total=this.dataDirectGroup.tmp.length},removeGroupDirect:function(e){var t=this;this.dataDirectGroup.keyword="",this.dataDirectGroup.page=1,e.forEach((function(e){var a=t.dataDirectGroup.data.map((function(e){return e.groupId})).indexOf(e.groupId);a>=0&&t.dataDirectGroup.data.splice(parseInt(a),1);var s=t.dataDirectGroup.tmp.map((function(e){return e.groupId})).indexOf(e.groupId);s>=0&&t.dataDirectGroup.tmp.splice(parseInt(s),1)})),this.dataDirectGroup.total=this.dataDirectGroup.tmp.length},searchGroupDirect:function(e){this.dataDirectGroup.scorp=e.targets,this.dataDirectGroup.keyword=e.text,this.dataDirectGroup.page=1,this.loadDataGroupDirect()},changePageGroupDirect:function(e){this.dataDirectGroup.page=e,this.loadDataGroupDirect()},loadDataGroupDirect:function(){var e=this,t=this.dataDirectGroup.tmp;console.log("dataOri",t),""!==this.dataDirectGroup.keyword&&this.dataDirectGroup.scorp.length>0&&(t=t.filter((function(t){return!0===t.group.name.toLowerCase().includes(e.dataDirectGroup.keyword.toLowerCase())}))),this.dataDirectGroup.data=t.slice(25*(this.dataDirectGroup.page-1),25*this.dataDirectGroup.page)},registerAff:function(){var e=this.$refs.AffAddForm.validate();e&&this.$emit("register-aff",{data:this.listAff,name:this.departmentInfo.name,userIds:this.dataDirectUser.tmp,groupIds:this.dataDirectGroup.tmp})},deleteAff:function(e){var t=this.dataAllow.map((function(e){return e.value})).indexOf(this.listAff[e].userId.value);t>=0&&(this.dataAllow[t].disabled=!1),this.listAff.splice(parseInt(e),1)}}}),JC=WC,ZC=(a("8777"),Object(I["a"])(JC,wC,kC,!1,null,null,null)),XC=ZC.exports;C()(ZC,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCheckbox:Lr["a"],VCol:Dr["a"],VCombobox:Sf["a"],VContainer:Zo["a"],VForm:Nl["a"],VIcon:Gr["a"],VRow:Kr["a"]});var QC=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-table aff-table",staticStyle:{position:"relative"}},["detail"!==e.isPage?a("div",[a("v-row",{staticClass:"mt-2 border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-4",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.dataGroupsModal.total}}),e._v(" "),a("v-spacer"),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),a("v-row",{staticClass:"pt-0 pb-0 mt-0"},[a("v-container",{staticClass:"pt-0"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.loading,isVaildOnly:e.isVaildOnly,isVaildOnlyShow:!1},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)}},model:{value:e.selectedDisplayOption,callback:function(t){e.selectedDisplayOption=t},expression:"selectedDisplayOption"}})],1)],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table modal-table aff-modal-table table-no-bg",attrs:{"must-sort":"",headers:e.headers,items:e.dataGroupsModal.data,"items-per-page":e.perPage,"item-key":"departmentId","no-data-text":"データーはありません",loading:e.loading,"loading-text":"データを読み込中です","hide-default-footer":"","custom-sort":e.customSort,"show-expand":"","single-expand":""},on:{"item-expanded":function(t){return e.$emit("change-expanded",{tab:e.tab,change:t})}},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.name},on:{click:function(t){return e.loadAffDetails(s,!0)}}})]}},{key:"item.data-table-expand",fn:function(t){var s=t.expand,r=t.item,o=t.isExpanded;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,i=t.attrs;return[a("v-btn",e._g(e._b({attrs:{color:"white",elevation:"0"},on:{click:function(e){return s(!o)}}},"v-btn",i,!1),n),[a("span",{staticClass:"item-count"},[a("v-icon",[e._v("mdi-account")]),e._v("\n "+e._s(r.userCount)+"\n ")],1),e._v(" "),a("span",{staticClass:"mr-5 item-count"},[a("v-icon",[e._v("mdi-domain")]),e._v("\n "+e._s(r.groupCount)+"\n ")],1)])]}}],null,!0)},[e._v(" "),a("span",[e._v("所属内容を開く")])]),e._v(" "),a("transition",{attrs:{name:"expand-icon"}},[o?a("v-icon",[e._v("mdi-chevron-down")]):e._e()],1)]}},{key:"item.icons",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[!0===e.authority.isAdmin?a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.loadEdit(s)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1):e._e()]}}],null,!0)},[e._v(" "),a("span",[e._v("所属編集")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[!0===e.authority.isAdmin?a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("click-delete-item",s)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-trash-can-outline")])],1):e._e()]}}],null,!0)},[e._v(" "),a("span",[e._v("所属削除")])])]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{staticClass:"pt-5 pb-5 round-tab round-group-tab",attrs:{colspan:s.length}},[[a("v-tabs",{attrs:{transition:!1},on:{change:function(t){return e.$emit("changeTab",{tab:e.tab,departmentId:r.departmentId})}},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab",{key:t.tabname,staticClass:"log-tab"},[e._v("\n "+e._s(t.title)+"\n ")])})),1)],e._v(" "),a("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab-item",{key:t.tabname,attrs:{transition:!1,"reverse-transition":!1}},["tab1"===t.tabname?a("v-card",[""!==e.expandData.user.errorMsg&&!1===e.expandData.user.loading?a("v-col",{staticClass:"mb-8 font-weight-bold bg-error"},[e._v("\n "+e._s(e.expandData.user.errorMsg)+"\n ")]):e._e(),e._v(" "),a("UsersAllowedTable",{attrs:{authority:e.authority,isAdminToAddUser:e.expandData.isAdminToAddUser,departmentId:r.departmentId,itemDepartment:r,dataList:e.expandData.user.data,inputSearch:e.expandData.user.keyword,isPage:"affiliation",loading:e.expandData.user.loading,totalCount:e.expandData.user.total,perPage:e.expandData.user.perPage,page:e.expandData.user.page,users:e.expandData.userAll,dataRelationUser:e.dataRelationUser},on:{"change-page":function(t){return e.$emit("change-page-user",{agr:t,departmentId:r.departmentId})},"change-per-page":function(t){return e.$emit("change-per-page-user",{agr:t,departmentId:r.departmentId})},"search-user":function(t){return e.$emit("search-user",{agr:t,departmentId:r.departmentId})},"load-list-users":function(t){return e.$emit("load-list-users",{page:1,perPage:25})},"add-user-to-group":function(t){return e.$emit("add-user",{users:t,departmentId:r.departmentId,departments:r})},"remove-user-to-group":function(t){return e.$emit("remove-user",{users:t,departmentId:r.departmentId})},"load-users":function(t){e.$emit("changeTab",{tab:0,departmentId:r.departmentId}),e.$emit("getReload",!0)},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},getDepartmentUserValid:function(t){return e.$emit("getDepartmentUserValid",t)},"close-modal":function(t){e.$emit("changeTab",{tab:0,departmentId:r.departmentId}),e.$emit("getReload",t)}}})],1):e._e(),e._v(" "),"tab2"===t.tabname?a("v-card",[""!==e.expandData.group.errorMsg&&!1===e.expandData.group.loading?a("v-col",{staticClass:"mb-8 font-weight-bold bg-error"},[e._v("\n "+e._s(e.expandData.group.errorMsg)+"\n ")]):e._e(),e._v(" "),a("AccessPermissionGroupTable",{attrs:{authority:e.authority,dataGroupsModal:e.expandData.group,gateGroup:e.expandData.gateGroup,isPage:"affiliation",loading:e.expandData.group.loading,page:e.expandData.group.page,dataRelation:e.dataRelationGroup,groups:e.expandData.groupAll},on:{"expand-gate-group":function(t){return e.$emit("expand-gate-group",t)},"change-page":function(t){return e.$emit("change-page-group",{page:t,departmentId:r.departmentId})},"change-page-gate-group":function(t){return e.$emit("change-page-gate-group",t)},"remove-group":function(t){return e.$emit("remove-group",{groups:t,departmentId:r.departmentId})},"load-list-groups":function(t){return e.$emit("load-list-groups",{page:e.expandData.groupAll.page,perPage:e.expandData.groupAll.perPage})},"add-group":function(t){return e.$emit("add-group",{groups:t,departmentId:r.departmentId})},"change-page-group-all":function(t){return e.$emit("change-page-group-all",t)},"change-per-page-group-all":function(t){return e.$emit("change-per-page-group-all",t)},"search-group":function(t){e.$emit("search-group-department",{agr:t,departmentId:r.departmentId}),e.isReloadData=!0},"close-modal":function(t){return e.$emit("changeTab",{tab:1,departmentId:r.departmentId})},"reload-data-group":function(t){e.$emit("changeTab",{tab:1,departmentId:r.departmentId}),e.isReloadData=!0},"load-groups":function(t){e.$emit("changeTab",{tab:1,departmentId:r.departmentId}),e.$emit("load-list-groups",{page:1,perPage:25})},"reload-data-group-again":function(t){return e.$emit("reload-data-group",{departmentId:r.departmentId})}}})],1):e._e()],1)})),1)],2)]}}],null,!0),model:{value:e.groupSelected,callback:function(t){e.groupSelected=t},expression:"groupSelected"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.dataGroupsModal.total,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.dataGroupsModal.total/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1):e._e(),e._v(" "),a("Modal",{attrs:{title:"detail"===e.isAction?"所属詳細":"所属編集","no-footer":"",smallScreen:"1200px",className:"common-padding position-relative"},on:{close:function(t){return e.clickBack(e.departmentInfo)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("ModalLoading",{attrs:{loading:e.loadingChild}}),e._v(" "),a("v-container",{staticStyle:{"padding-bottom":"0"}},[""!==e.successMessageLogs&&!1===e.loading&&0===e.expandData.errorData.groups.length&&0===e.expandData.errorData.users.length?a("div",{staticClass:"pa-2 mt-2 font-weight-bold bg-success align-self-center mr-2"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):""===e.successMessageLogs&&""===e.errorMessageLogs||!1!==e.loading?e._e():a("div",{staticClass:"font-weight-bold bg-error align-self-center mr-2 pa-2 mt-2"},[""!==e.successMessageLogs&&!1===e.loading?a("p",[e._v(e._s(e.successMessageLogs))]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("p",[a("span",{domProps:{innerHTML:e._s(e.errorMessageLogs)}})]):e._e(),e._v(" "),e.expandData.errorData.users.length>0&&!1===e.loading?a("p",[e._v("登録失敗所属ユーザー: "+e._s(e.expandData.errorData.users.toString()))]):e._e(),e._v(" "),e.expandData.errorData.groups.length>0&&!1===e.loading?a("p",[e._v("設定失敗通行権限グループ: "+e._s(e.expandData.errorData.groups.toString()))]):e._e()])]),e._v(" "),a("v-container",{staticClass:"pb-0 pt-0"},["detail"===e.isAction?a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[e.authority.isAdmin?a("v-btn",{staticClass:"btn-red",attrs:{outlined:""},on:{click:function(t){e.isConfirm=!0}}},[e._v("\n 所属を削除する\n ")]):e._e()],1),e._v(" "),a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[e.authority.isAdmin?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.editAff()}}},[e._v("\n 所属情報を編集する\n ")]):e._e()],1)],1)]):e._e()],1),e._v(" "),a("div",{staticClass:"round-content-scroll vh75 pa-0"},[a("v-container",[a("div",{staticClass:"title-block-card"},[e._v("所属情報")]),e._v(" "),"edit"===e.isAction?a("v-card",{staticClass:"affiliation-information"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("所属名 ")])]),e._v(" "),a("v-col",{staticClass:"col-12"},[a("v-form",{ref:"AffAddForm",attrs:{"lazy-validation":""}},[a("input-form",{attrs:{rules:[e.rulesValidate.requiredName,e.rulesValidate.validateName]},model:{value:e.departmentInfo.name,callback:function(t){e.$set(e.departmentInfo,"name",t)},expression:"departmentInfo.name"}})],1)],1)],1),e._v(" "),e.authority.isCustomUserAuthorityService?a("div",{staticClass:"mt-5"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("所属管理者 ")])])],1),e._v(" "),e._l(e.listAff,(function(t,s){return a("v-row",{key:s,staticClass:"mt-2"},[a("v-col",{attrs:{sm:"10",lg:"3"}},[a("v-row",{staticClass:"mt-2 mb-2"},[a("v-col",{staticClass:"btn-del-aff",attrs:{cols:"1"}},[a("v-btn",{attrs:{icon:"",al:""},on:{click:function(t){return e.deleteAff(s)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1)],1),e._v(" "),a("v-col",{attrs:{cols:"10"}},[a("v-combobox",{staticClass:"v-select-group",attrs:{items:e.dataAllow,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:"",disabled:t.disabled,"menu-props":{contentClass:"v-select-item v-select-item-disabled"},attach:!0},on:{change:e.changeAllow},model:{value:t.userId,callback:function(a){e.$set(t,"userId",a)},expression:"item.userId"}})],1)],1)],1),e._v(" "),a("v-col",{staticClass:"mt-2",attrs:{sm:"12",lg:"9"}},[a("v-row",{staticClass:"item-check-box-detail"},[a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"ユーザー閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー追加権限"},model:{value:t.isAdminToAddUser,callback:function(a){e.$set(t,"isAdminToAddUser",a)},expression:"item.isAdminToAddUser"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー編集権限"},model:{value:t.isAdminToEditUser,callback:function(a){e.$set(t,"isAdminToEditUser",a)},expression:"item.isAdminToEditUser"}})],1),e._v(" "),a("v-col",{attrs:{sm:"6",lg:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"カード設定権限"},model:{value:t.isAdminToSetPcodesToUser,callback:function(a){e.$set(t,"isAdminToSetPcodesToUser",a)},expression:"item.isAdminToSetPcodesToUser"}})],1)],1)],1)],1)})),e._v(" "),a("v-row",{staticClass:"mt-0 pt-0"},[a("v-col",{staticClass:"col-2 pt-0"},[a("div",{staticClass:"v-subheader theme--light ml-0 pa-0 mt-0 add-button",on:{click:e.addAffiliation}},[e._v(" + 追加する ")])])],1)],2):a("div",{staticClass:"mt-5"})],1):e._e(),e._v(" "),"edit"===e.isAction?a("div",[a("div",{staticClass:"title-block-card title-margin"},[e._v("所属ユーザー")]),e._v(" "),a("v-card",[a("UsersAllowedTable",{attrs:{isAdminToAddUser:e.expandData.isAdminToAddUser,inputSearch:e.expandData.user.keyword,authority:e.authority,isActionPage:"add",departmentId:e.departments.departmentId,itemDepartment:e.departments,dataList:e.expandData.user.data,isPage:"affiliation-add-new",loading:e.expandData.user.loading,totalCount:e.expandData.user.total,perPage:e.expandData.user.perPage,page:e.expandData.user.page,users:e.expandData.userAll,dataRelationUser:e.dataRelationUser},on:{"change-page":function(t){return e.$emit("change-page-user",{agr:t,departmentId:e.departments.departmentId})},"change-per-page":function(t){return e.$emit("change-per-page-user",{agr:t,departmentId:e.departments.departmentId})},"search-user":function(t){return e.$emit("search-user",{agr:t,departmentId:e.departments.departmentId})},"change-page-user-all":function(t){return e.$emit("change-page-user-all",t)},"change-per-page-user-all":function(t){return e.$emit("change-per-page-user-all",t)},"affiliation-add-item-direct":function(t){return e.$emit("affiliation-add-item-direct",t)},"affiliation-remove-item-direct":function(t){return e.$emit("affiliation-remove-item-direct",t)}}})],1),e._v(" "),a("div",{staticClass:"title-block-card title-margin"},[e._v("設定されている通行権限グループ")]),e._v(" "),a("v-card",[a("AccessPermissionGroupTable",{attrs:{authority:e.authority,dataGroupsModal:e.expandData.group,gateGroup:e.expandData.gateGroup,isPage:"affiliation-add-new",isActionPage:"add",loading:e.expandData.group.loading,page:e.expandData.group.page,dataRelation:e.dataRelationGroup,groups:e.expandData.groupAll},on:{"expand-gate-group":function(t){return e.$emit("expand-gate-group",t)},"change-page":function(t){return e.$emit("change-page-group",{page:t,departmentId:e.departments.departmentId})},"change-page-gate-group":function(t){return e.$emit("change-page-gate-group",t)},"change-page-group-all":function(t){return e.$emit("change-page-group-all",t)},"change-per-page-group-all":function(t){return e.$emit("change-per-page-group-all",t)},"search-group":function(t){return e.$emit("search-group-department",{agr:t,departmentId:e.departments.departmentId})},"back-group-detail":function(t){return e.$emit("back-group-detail",t)},"add-group":function(t){return e.$emit("add-group-item-direct",{groups:t,departmentId:e.departments.departmentId})},"remove-group":function(t){return e.$emit("remove-group-item-direct",{groups:t,departmentId:e.departments.departmentId})}}})],1)],1):a("div",[a("div",{staticClass:"title-block-card title-margin"},[e._v("所属ユーザー")]),e._v(" "),a("v-card",[a("UsersAllowedTable",{attrs:{isAdminToAddUser:e.expandData.isAdminToAddUser,inputSearch:e.expandData.user.keyword,authority:e.authority,isActionPage:"add",departmentId:e.departments.departmentId,itemDepartment:e.departments,dataList:e.expandData.user.data,isPage:"affiliation",loading:e.expandData.user.loading,totalCount:e.expandData.user.total,perPage:e.expandData.user.perPage,page:e.expandData.user.page,users:e.expandData.userAll,dataRelationUser:e.dataRelationUser},on:{"change-page":function(t){return e.$emit("change-page-user",{agr:t,departmentId:e.departments.departmentId})},"change-per-page":function(t){return e.$emit("change-per-page-user",{agr:t,departmentId:e.departments.departmentId})},"search-user":function(t){return e.$emit("search-user",{agr:t,departmentId:e.departments.departmentId})},"load-list-users":function(t){return e.$emit("load-list-users",{page:1,perPage:25})},"add-user-to-group":function(t){return e.$emit("add-user",{users:t,departmentId:e.departments.departmentId,departments:e.departments})},"change-page-user-all":function(t){return e.$emit("change-page-user-all",t)},"change-per-page-user-all":function(t){return e.$emit("change-per-page-user-all",t)},"remove-user-to-group":function(t){return e.$emit("remove-user",{users:t,departmentId:e.departments.departmentId})},"load-users":function(t){e.$emit("changeTab",{tab:0,departmentId:e.departments.departmentId}),e.isReloadData=!0},"close-modal":function(t){e.$emit("changeTab",{tab:0,departmentId:e.departments.departmentId}),e.$emit("load-list-users-again"),e.isReloadData=!0},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},getDepartmentUserValid:function(t){return e.$emit("getDepartmentUserValid",t)},getReload:function(t){return e.$emit("getReload",t)}}})],1),e._v(" "),a("div",{staticClass:"title-block-card title-margin"},[e._v("設定されている通行権限グループ")]),e._v(" "),a("v-card",[a("AccessPermissionGroupTable",{attrs:{authority:e.authority,dataGroupsModal:e.expandData.group,gateGroup:e.expandData.gateGroup,isPage:"affiliation",loading:e.expandData.group.loading,page:e.expandData.group.page,dataRelation:e.dataRelationGroup,groups:e.expandData.groupAll},on:{"expand-gate-group":function(t){return e.$emit("expand-gate-group",t)},"change-page":function(t){return e.$emit("change-page-group",{page:t,departmentId:e.departments.departmentId})},"change-page-gate-group":function(t){return e.$emit("change-page-gate-group",t)},"remove-group":function(t){return e.$emit("remove-group",{groups:t,departmentId:e.departments.departmentId})},"load-list-groups":function(t){return e.$emit("load-list-groups",{page:e.expandData.groupAll.page,perPage:e.expandData.groupAll.perPage})},"add-group":function(t){return e.$emit("add-group",{groups:t,departmentId:e.departments.departmentId})},"change-page-group-all":function(t){return e.$emit("change-page-group-all",t)},"change-per-page-group-all":function(t){return e.$emit("change-per-page-group-all",t)},"reload-data-group":function(t){e.$emit("reload-data-group",{departmentId:e.departments.departmentId}),e.isReloadData=!0},"search-group":function(t){return e.$emit("search-group-department",{agr:t,departmentId:e.departments.departmentId})},"back-group-detail":function(t){return e.$emit("back-group-detail",t)},"close-modal":function(t){e.$emit("changeTab",{tab:1,departmentId:e.departments.departmentId}),e.isReloadData=!0},"load-groups":function(t){e.$emit("changeTab",{tab:1,departmentId:e.departments.departmentId}),e.$emit("load-list-groups",{page:1,perPage:25})},"reload-data-group-again":function(t){return e.$emit("reload-data-group",{departmentId:e.departments.departmentId})}}})],1)],1),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",{staticClass:"mt-5 pr-0",attrs:{align:"right",cols:"12"}},["edit"===e.isAction?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.updateAff()}}},[e._v("\n 保存する\n ")]):e._e()],1)],1),e._v(" "),""!==e.successMessageLogs||""!==e.errorMessageLogs?a("div",{staticClass:"ma-2",attrs:{justify:"end"}},[""!==e.successMessageLogs&&!1===e.loading?a("div",{staticClass:"font-weight-bold bg-success bg-no align-self-center mr-2"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("div",{staticClass:"font-weight-bold bg-error bg-no align-self-center mr-2"},[a("span",{domProps:{innerHTML:e._s(e.errorMessageLogs)}})]):e._e()]):e._e()],1)],1)]},proxy:!0}]),model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}}),e._v(" "),a("ModalDetail",{attrs:{title:"所属詳細","no-footer":"",smallScreen:"1200px",className:"common-padding position-relative"},on:{close:function(t){return e.clickBack(e.departmentInfo)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("ModalLoading",{attrs:{loading:e.loadingChild}}),e._v(" "),a("v-container",{staticStyle:{"padding-bottom":"0"}},[""!==e.successMessageLogs&&!1===e.loading&&0===e.expandData.errorData.groups.length&&0===e.expandData.errorData.users.length?a("div",{staticClass:"pa-2 mt-2 font-weight-bold bg-success align-self-center mr-2"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):""===e.successMessageLogs&&""===e.errorMessageLogs||!1!==e.loading?e._e():a("div",{staticClass:"font-weight-bold bg-error align-self-center mr-2 pa-2 mt-2"},[""!==e.successMessageLogs&&!1===e.loading?a("p",[e._v(e._s(e.successMessageLogs))]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("p",[e._v(e._s(e.errorMessageLogs))]):e._e(),e._v(" "),e.expandData.errorData.users.length>0&&!1===e.loading?a("p",[e._v("登録失敗所属ユーザー: "+e._s(e.expandData.errorData.users.toString()))]):e._e(),e._v(" "),e.expandData.errorData.groups.length>0&&!1===e.loading?a("p",[e._v("設定失敗通行権限グループ: "+e._s(e.expandData.errorData.groups.toString()))]):e._e()])]),e._v(" "),a("v-container",{staticClass:"pb-0 pt-0"},["detail"===e.isAction?a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center"},[a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[e.authority.isAdmin?a("v-btn",{staticClass:"btn-red",attrs:{outlined:""},on:{click:function(t){e.isConfirm=!0}}},[e._v("\n 所属を削除する\n ")]):e._e()],1),e._v(" "),a("v-col",{staticClass:"btn-add pt-0",attrs:{cols:"6"}},[e.authority.isAdmin?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.editAff()}}},[e._v("\n 所属情報を編集する\n ")]):e._e()],1)],1)]):e._e()],1),e._v(" "),a("div",{staticClass:"round-content-scroll vh75 pa-0"},[a("v-container",[a("div",{staticClass:"title-block-card"},[e._v("所属情報")]),e._v(" "),"detail"===e.isAction?a("v-card",{staticClass:"affiliation-information"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("所属名 ")]),e._v(" "),a("div",{staticClass:"weight-bold"},[e._v(" "+e._s(e.departments.name))])])],1),e._v(" "),e.authority.isCustomUserAuthorityService?a("div",{staticClass:"mt-5"},[a("v-row",[a("v-col",{staticClass:"col-12"},[a("div",{staticClass:"title-display-block"},[e._v("所属管理者 ")])])],1),e._v(" "),e._l(e.expandData.departmentAd.data,(function(t){return a("v-row",{key:t.relationId,staticClass:"mt-1"},[a("v-col",{staticClass:" mt-0 pt-0",attrs:{sm:"12",lg:"3"}},[a("div",{staticClass:"weight-bold"},[e._v(e._s(t.userName)+" ")])]),e._v(" "),a("v-col",{staticClass:" mt-0 pt-0",attrs:{sm:"12",lg:"9"}},[a("v-row",{staticClass:"item-check-box-detail"},[a("v-checkbox",{staticClass:"mt-2 mb-2",attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー閲覧権限","input-value":!0,disabled:""}}),e._v(" "),a("v-checkbox",{staticClass:"mt-2 mb-2",attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー追加権限",disabled:""},model:{value:t.isAdminToAddUser,callback:function(a){e.$set(t,"isAdminToAddUser",a)},expression:"el.isAdminToAddUser"}}),e._v(" "),a("v-checkbox",{staticClass:"mt-2 mb-2",attrs:{color:"green",dense:"","hide-details":"",label:"ユーザー編集権限",disabled:""},model:{value:t.isAdminToEditUser,callback:function(a){e.$set(t,"isAdminToEditUser",a)},expression:"el.isAdminToEditUser"}}),e._v(" "),a("v-checkbox",{staticClass:"mt-2 mb-2 ",attrs:{color:"green",dense:"","hide-details":"",label:"カード設定権限",disabled:""},model:{value:t.isAdminToSetPcodesToUser,callback:function(a){e.$set(t,"isAdminToSetPcodesToUser",a)},expression:"el.isAdminToSetPcodesToUser"}})],1)],1)],1)}))],2):e._e()],1):e._e(),e._v(" "),a("div",{staticClass:"title-block-card title-margin"},[e._v("所属ユーザー")]),e._v(" "),a("v-card",[a("UsersAllowedTable",{attrs:{isAdminToAddUser:e.expandData.isAdminToAddUser,inputSearch:e.expandData.user.keyword,authority:e.authority,isActionPage:e.isAction,departmentId:e.departments.departmentId,itemDepartment:e.departments,dataList:e.expandData.user.data,isPage:"affiliation",loading:e.expandData.user.loading,totalCount:e.expandData.user.total,perPage:e.expandData.user.perPage,page:e.expandData.user.page,users:e.expandData.userAll,dataRelationUser:e.dataRelationUser},on:{"change-page":function(t){return e.$emit("change-page-user",{agr:t,departmentId:e.departments.departmentId,page:"detail"})},"change-per-page":function(t){return e.$emit("change-per-page-user",{agr:t,departmentId:e.departments.departmentId,page:"detail"})},"search-user":function(t){return e.$emit("search-user",{agr:t,departmentId:e.departments.departmentId,page:"detail"})},"load-list-users":function(t){return e.$emit("load-list-users",{page:1,perPage:25})},"add-user-to-group":function(t){return e.$emit("add-user",{users:t,departmentId:e.departments.departmentId,departments:e.departments})},"change-page-user-all":function(t){return e.$emit("change-page-user-all",t)},"change-per-page-user-all":function(t){return e.$emit("change-per-page-user-all",t)},"remove-user-to-group":function(t){return e.$emit("remove-user",{users:t,departmentId:e.departments.departmentId})},"load-users":function(t){e.$emit("changeTab",{tab:0,departmentId:e.departments.departmentId}),e.isReloadData=!0},"close-modal":function(t){e.$emit("changeTab",{tab:0,departmentId:e.departments.departmentId}),e.isReloadData=!0},"loading-from-child":function(t){return e.$emit("loading-from-child",t)},getDepartmentUserValid:function(t){return e.$emit("getDepartmentUserValid",t)},getReload:function(t){return e.$emit("getReload",t)}}})],1),e._v(" "),a("div",{staticClass:"title-block-card title-margin"},[e._v("設定されている通行権限グループ")]),e._v(" "),a("v-card",[a("AccessPermissionGroupTable",{attrs:{authority:e.authority,dataGroupsModal:e.expandData.group,gateGroup:e.expandData.gateGroup,isPage:"affiliation",loading:e.expandData.group.loading,page:e.expandData.group.page,dataRelation:e.dataRelationGroup,groups:e.expandData.groupAll},on:{"expand-gate-group":function(t){return e.$emit("expand-gate-group",t)},"change-page":function(t){return e.$emit("change-page-group",{page:t,departmentId:e.departments.departmentId})},"change-page-gate-group":function(t){return e.$emit("change-page-gate-group",t)},"remove-group":function(t){return e.$emit("remove-group",{groups:t,departmentId:e.departments.departmentId})},"load-list-groups":function(t){return e.$emit("load-list-groups",{page:e.expandData.groupAll.page,perPage:e.expandData.groupAll.perPage})},"add-group":function(t){return e.$emit("add-group",{groups:t,departmentId:e.departments.departmentId})},"change-page-group-all":function(t){return e.$emit("change-page-group-all",t)},"change-per-page-group-all":function(t){return e.$emit("change-per-page-group-all",t)},"reload-data-group":function(t){e.$emit("reload-data-group",{departmentId:e.departments.departmentId}),e.isReloadData=!0},"search-group":function(t){return e.$emit("search-group-department",{agr:t,departmentId:e.departments.departmentId})},"back-group-detail":function(t){return e.$emit("back-group-detail",t)},"close-modal":function(t){e.$emit("changeTab",{tab:1,departmentId:e.departments.departmentId}),e.isReloadData=!0},"load-groups":function(t){e.$emit("changeTab",{tab:1,departmentId:e.departments.departmentId}),e.$emit("load-list-groups",{page:1,perPage:25})},"reload-data-group-again":function(t){return e.$emit("reload-data-group",{departmentId:e.departments.departmentId})}}})],1)],1),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[""!==e.successMessageLogs&&!1===e.loading?a("div",{staticClass:"font-weight-bold bg-success bg-no align-self-center mr-2"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("div",{staticClass:"font-weight-bold bg-error bg-no align-self-center mr-2"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),"edit"===e.isAction?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.updateAff()}}},[e._v("\n 保存する\n ")]):e._e()],1)],1)],1)]},proxy:!0}]),model:{value:e.isShowDetail,callback:function(t){e.isShowDetail=t},expression:"isShowDetail"}}),e._v(" "),a("Modal",{attrs:{title:"所属削除",smallScreen:"800px",text:e.departments.userCount>0?"削除しようとしている所属に、ユーザーが所属しております。所属を削除した場合、ユーザーの所属先が解除され、無所属状態となります。削除してもよろしいでしょうか?":"所属を削除します。",className:"common-modal"},on:{close:function(t){e.isConfirm=!1}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[!1!==e.loading||""===e.expandData.departmentAd.sucessMessage&&""===e.expandData.departmentAd.errorMessage?e._e():a("ModalMessage",{attrs:{sucessMessage:e.expandData.departmentAd.sucessMessage,errorMessage:e.expandData.departmentAd.errorMessage}})]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),!1!==e.loading||""===e.expandData.departmentAd.sucessMessage&&""===e.expandData.departmentAd.errorMessage?a("div",[a("success-button",{attrs:{text:"削除"},on:{click:function(t){return e.removeAff()}}})],1):a("div",[""!==e.expandData.departmentAd.sucessMessage?a("success-button",{attrs:{text:"OK"},on:{click:function(t){e.loadAffDetailsAgain(),e.$emit("get-list-user"),e.isShowDetail=!1}}}):""!==e.expandData.departmentAd.errorMessage?a("success-button",{attrs:{text:"OK"},on:{click:function(t){e.isConfirm=!1}}}):e._e()],1)]},proxy:!0}]),model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}})],1)},ew=[],tw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[""!==e.sucessMessage?a("p",{staticClass:"text-progress"},[e._v("\n "+e._s(e.sucessMessage)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessage?a("span",{staticClass:"text-progress"},[e._v("\n "+e._s(e.errorMessage)+"\n ")]):e._e()])},aw=[],sw=f["a"].extend({name:"ModalMessage",components:{},props:{sucessMessage:{type:String,default:""},errorMessage:{type:String,default:""}}}),rw=sw,ow=Object(I["a"])(rw,tw,aw,!1,null,null,null),nw=ow.exports;C()(ow,{VContainer:Zo["a"]});var iw=f["a"].extend({name:"AffiliationTable",components:{ShowPerPage:mo,Pagination:xo,DisplayOption:Mo,SelectPerPage:To,TextLink:No,UsersAllowedTable:uC,AccessPermissionGroupTable:qC,InputForm:io,ModalTitle:Xc,Modal:bn,SuccessButton:kr,ModalMessage:nw,ModalDetail:bn,ModalLoading:Zg},props:{isGetUser:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingChild:{type:Boolean,default:!1},authority:{type:Object,default:{}},page:{type:Number,default:1},perPage:{type:Number,default:25},dataGroupsModal:{type:Object,default:{data:[],total:0}},expandData:{type:Object,default:{}},dataRelationUser:{type:Object,default:{}},dataRelationGroup:{type:Object,default:{}},userItems:{default:[]},isPage:{type:String,default:""},departmentItem:{type:Object,default:{}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}},mounted:function(){"undefined"===typeof localStorage.displayOptionGroupModal?localStorage.setItem("displayOptionGroupModal",JSON.stringify(this.selectedDisplayOption)):this.selectedDisplayOption=JSON.parse(localStorage.displayOptionGroupModal),"detail"===this.isPage&&(this.isShowDetail=!0)},watch:{userItems:function(e){if(e.length>0){var t=Array.of.apply(Array,Object(mI["a"])(e));this.dataAllow=t}},loadingChild:function(e){console.log(this.departmentItem),!1===e&&"detail"===this.isPage&&"detail"===this.isAction&&(this.isShowDetail=!0,this.departments=this.departmentItem),console.log(this.departments)},loading:function(e){console.log(this.departmentItem),!1===e&&"detail"===this.isPage&&"detail"===this.isAction&&(this.isShowDetail=!0,this.departments=this.departmentItem),this.deleteData=[]},groupSelected:function(e){this.$emit("select-groups",e.map((function(e){return e.groupId})))},isRemoveGroupSelected:function(e){this.groupSelected=[]},selectedDisplayOption:function(e){localStorage.setItem("displayOptionGroupModal",JSON.stringify(e))},isGetUser:function(e){if(!0===e&&"edit"===this.isAction&&this.expandData.departmentAd.data.length>0){this.listAff=[];var t,a=Object(rr["a"])(this.expandData.departmentAd.data);try{for(a.s();!(t=a.n()).done;){var s=t.value;this.listAff.push({userId:{value:s.userId,text:s.userName},isAdminToView:!0,isAdminToAddUser:s.isAdminToAddUser,isAdminToEditUser:s.isAdminToEditUser,isAdminToSetPcodesToUser:s.isAdminToSetPcodesToUser,relationId:s.departmentAdministratorId,disabled:!0})}}catch(r){a.e(r)}finally{a.f()}this.changeAllow()}}},data:function(){return{rulesValidate:{requiredName:function(e){return!!e||"所属名は必須です。"},validateName:function(e){return null===e||void 0===e||""===e||(e.length<=64||"所属名は64文字以内で入力してください。")}},isShow:!1,isShowDetail:!1,isConfirm:!1,dataGroups:{total:1,data:[{name:"group1",gate:0,time:"時間帯設定1"},{name:"group2",gate:0,time:"時間帯設定1"}]},userList:[{userName:"ivctest1",userId:"ivctest1"}],actionItems:[{title:"所属ユーザー",tabname:"tab1"},{title:"設定されている通行権限グループ",tabname:"tab2"}],tab:0,expanded:[],groupSelected:[],selectedDisplayOption:["name","gateCount"],displayOptionItems:[{label:"所属名",value:"name",isDisabled:!0}],isVaildOnly:"true"===localStorage.isVaildDataGroup,showOption:!1,departments:{},listAff:[{userId:"",isAdminToView:!0,isAdminToAddUser:!1,isAdminToEditUser:!1,isAdminToSetPcodesToUser:!1,relationId:"",disabled:!1}],departmentInfo:[],isAction:"detail",from:"",dataAllow:[],isReloadData:!1,deleteData:[]}},computed:{headers:{get:function(){var e=[{text:"所属名",align:"start",sortable:!0,width:"200px",value:"name"}];return e.push({text:"所属ユーザー数 / 通行権限グループ数",align:"start",sortable:!1,width:"350px",value:"data-table-expand"}),e.push({text:"",align:"end",sortable:!1,width:"150px",value:"icons"}),e}},innerPage:{get:function(){return this.page},set:function(e){this.expanded=[],this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.expanded=[],this.$emit("change-per-page",e)}}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0){var t,a=Object(rr["a"])(this.expandData.departmentAd.data);try{for(a.s();!(t=a.n()).done;){var s=t.value;this.listAff.push({userId:{value:s.userId,text:s.userName},isAdminToView:!0,isAdminToAddUser:s.isAdminToAddUser,isAdminToEditUser:s.isAdminToEditUser,isAdminToSetPcodesToUser:s.isAdminToSetPcodesToUser,relationId:s.departmentAdministratorId,disabled:!0})}}catch(r){a.e(r)}finally{a.f()}this.changeAllow()}this.departmentInfo.name=this.departments.name},removeAff:function(){this.$emit("remove-detail-aff",this.departments)},loadAffDetailsAgain:function(){this.isShow=!1,this.isShowDetail=!0,this.isConfirm=!1,this.$emit("load-detail-aff-again")},addAffiliation:function(){this.listAff.push({userId:"",relationId:"",isAdminToView:!0,isAdminToAddUser:!1,isAdminToEditUser:!1,isAdminToSetPcodesToUser:!1,disabled:!1})},updateAff:function(){var e=this.$refs.AffAddForm.validate();e&&this.$emit("update-aff",{data:this.listAff,name:this.departmentInfo.name,departmentId:this.departments.departmentId,deleteData:this.deleteData})},editAff:function(){if(this.from="detail",this.isShowDetail=!1,this.isShow=!0,this.isAction="edit",this.expandData.departmentAd.data.length>0){this.listAff=[];var e,t=Object(rr["a"])(this.expandData.departmentAd.data);try{for(t.s();!(e=t.n()).done;){var a=e.value;this.listAff.push({userId:a.userId,isAdminToView:!0,isAdminToAddUser:a.isAdminToAddUser,isAdminToEditUser:a.isAdminToEditUser,isAdminToSetPcodesToUser:a.isAdminToSetPcodesToUser,relationId:a.departmentAdministratorId,disabled:!0})}}catch(s){t.e(s)}finally{t.f()}}this.departmentInfo.name=this.departments.name,this.$emit("load-aff-detail",{isAction:this.isAction,departmentId:this.departments.departmentId}),this.changeAllow()},clickBackDetail:function(){console.log("clickBackDetail",this.from)},clickBack:function(e){"detail"===this.from?(this.isAction="detail",this.isShowDetail=!0,this.departments.name=e.name,this.loadAffDetails(this.departments,""!==this.successMessageLogs)):(this.isShow=!1,this.isShowDetail=!1,this.$emit("close-page-modal",""!==this.successMessageLogs||!0===this.isReloadData),"user"===this.isPage&&(""===this.successMessageLogs&&!0!==this.isReloadData||(this.$emit("get-list-group-modal"),this.isReloadData=!1)))},changeAllow:function(){var e=this;this.dataAllow.map((function(e){return Object.assign(e,{disabled:!1})})),this.dataAllow.forEach((function(t,a){var s=e.listAff.some((function(e){return e.userId.value===t.value}));s&&(e.dataAllow[a].disabled=!0)}))},deleteAff:function(e){var t=this.dataAllow.map((function(e){return e.value})).indexOf(this.listAff[e].userId.value);t>=0&&(this.dataAllow[t].disabled=!1),this.listAff[e].disabled&&this.deleteData.push(this.listAff[e]),this.listAff.splice(parseInt(e),1)}}}),lw=iw,cw=(a("ff18"),Object(I["a"])(lw,QC,ew,!1,null,null,null)),uw=cw.exports;C()(cw,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCheckbox:Lr["a"],VCol:Dr["a"],VCombobox:Sf["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VForm:Nl["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTab:ng["a"],VTabItem:ig["a"],VTabs:lg["a"],VTabsItems:cg["a"],VTooltip:oo["a"]});var dw=f["a"].extend({name:"AffiliationListModalTemplate",components:{Searchbox:$r,AffiliationTable:uw,Breadcrumbs:cn,ActionButton:Nn,UsersAllowedTable:uC,AccessPermissionGroupTable:qC,InputForm:io,ModalTitle:Xc,AffiliationAdd:XC,ModalLoading:Zg,Modal:bn,ModalMessage:nw,SuccessButton:kr},props:{loading:{type:Boolean,default:!1},loadingChild:{type:Boolean,default:!1},page:{type:Number,default:1},perPage:{type:Number,default:25},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataGroupsModal:{type:Object,default:{data:[],total:0}},errorMessageProcess:{default:[]},userItems:{default:[]},totalDataRowProcess:{type:Number,default:0},progress:{type:Number,default:0},isFinishProcess:{type:Boolean,default:!1},isGetUser:{type:Boolean,default:!1},successItemProcess:{type:Number,default:0},expandData:{type:Object,default:{}},dataRelationUser:{type:Object,default:{}},dataRelationGroup:{type:Object,default:{}},groups:{type:Object,default:function(){return{}}},authority:{type:Object,default:{}},isPage:{type:String,default:""},department:{type:Object,default:{}}},data:function(){return{rulesValidate:{requiredName:function(e){return!!e||"所属名は必須です。"}},listAff:[{userId:"",checkOne:!1,checkTwo:!1}],departmentInfo:{},selectedUserIds:[],selectedGIds:[],departmentId:"",isShow:!1,typeAction:0,showConfirm:!1,showProgress:!1,searchTargetItems:[{label:"所属名",value:"name",isDisabled:!0}],selectedGroupIds:[],actionItems:[{title:"有効化する",emitName:"click-enable"},{title:"無効化する",emitName:"click-disable"}],dataAllow:[],departmentName:""}},computed:{breadcrumbs:{get:function(){return[{text:"所属一覧",disabled:!0}]}}},watch:{userItems:function(e){if(e.length>0){var t=Array.of.apply(Array,Object(mI["a"])(e));this.dataAllow=t}},successMessageLogs:function(e){""!==e&&0===this.expandData.errorData.groups.length&&0===this.expandData.errorData.users.length&&!0===this.isShow&&(this.isShow=!1,this.$emit("get-list-group-modal"))}},methods:{isAlert:function(){var e=this,t=0,a=this.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e.departmentId}));return a>=0&&(t=this.dataGroupsModal.data[a].userCount),t>0},clickDeleteItem:function(e){this.departmentName="",this.departmentId="",this.departmentId=e.departmentId,this.departmentName=e.name,this.showConfirm=!0,this.typeAction=3},clickDeleteDepartment:function(){this.showProgress=!0,this.showConfirm=!1,this.typeAction=3,this.$emit("delete-department",this.departmentId)},showDialogConfirm:function(e){this.showConfirm=!0,this.typeAction=e},closeDialogConfirm:function(e,t){this.showConfirm=!1},clickGroupsAction:function(){this.showProgress=!0,this.showConfirm=!1,this.$emit("click-groups-action",{data:this.selectedGroupIds,typeAction:this.typeAction})},closeModalProgress:function(){this.showProgress=!1,this.showConfirm=!1,this.$emit("get-list-group-modal")},closeModalProgressDelete:function(){this.showProgress=!1,this.showConfirm=!1,""===this.errorMessageLogs&&this.$emit("get-list-group-modal")},clickAddGroupModal:function(){this.$router.push({path:jt})},addAff:function(){this.isShow=!0,this.$emit("load-group-and-user-for-add",{page:1,perPage:25})},addAffiliation:function(){this.listAff.push({userId:"",checkOne:!1,checkTwo:!1})},clickBack:function(){this.isShow=!1,this.departmentInfo={},this.listAff=[{userId:"",checkOne:!1,checkTwo:!1}],""!==this.successMessageLogs&&this.$emit("get-list-group-modal")},changeAllow:function(){var e=this;this.dataAllow.forEach((function(t,a){var s=e.listAff.some((function(e){return e.userId.value===t.value}));s&&(e.dataAllow[a].disabled=!0)}))}}}),gw=dw,pw=(a("1784"),Object(I["a"])(gw,xC,CC,!1,null,"1c210a7e",null)),mw=pw.exports;C()(pw,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var fw=nr["a"].extend({name:"AffiliationListModalPage",components:{AffiliationListModalTemplate:mw},props:{isPage:{type:String,default:""},department:{type:Object,default:{}}},data:function(){return{perPage:Wt,currPage:1,scorp:["groupName"],keyword:"",scorpUser:["name"],keywordUser:"",loading:!1,errorMessageLogs:"",successMessageLogs:"",dataGroupsModal:{dataOri:[],data:[],total:0},rowinErrDialog:0,successItemProcess:0,errorMessageProcess:[],progress:0,isFinishProcess:!1,totalDataRowProcess:0,expandData:{userAll:{data:[],total:0,loading:!1,page:1,perPage:25,keyword:"",scorp:["userId","name"]},groupAll:{data:[],total:0,loading:!1,page:1,perPage:25,keyword:"",scorp:["groupId","name"]},user:{data:[],dataOri:[],total:0,loading:!1,page:1,perPage:25,keyword:"",scorp:[],errorMsg:""},group:{data:[],total:0,page:1,loading:!1,dataOri:[],keyword:"",errorMsg:""},gateGroup:{data:[],total:0,loading:!1,page:1},departmentAd:{data:[],dataOri:[],total:0,loading:!1,page:1,errorMessage:"",sucessMessage:""},errorData:{users:[],userEdit:[],userDel:[],groups:[]},isAdminToAddUser:!1},countGroupDetail:0,dataRelationUser:{total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},dataRelationGroup:{total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},userItems:[],authority:er.state.auth,isGetUser:!1,countGetUser:0,isShowValidUser:!0,isAffiliationAdd:!1,departmentItem:"",loadingChild:!1,isDetail:!1}},created:function(){"undefined"===typeof localStorage.isVaildDataGroupModal&&localStorage.setItem("isVaildDataGroupModal","true"),"undefined"===typeof localStorage.groupModalSortKey&&localStorage.setItem("groupModalSortKey","registered"),"undefined"===typeof localStorage.groupModalSortName&&localStorage.setItem("groupModalSortName","desc"),"undefined"===typeof localStorage.pageSizeGroupModal?(localStorage.setItem("pageSizeGroupModal",Wt.toString()),this.perPage=Wt):this.perPage=parseInt(localStorage.pageSizeGroupModal),"detail"===this.isPage?this.loadAffDetail({isAction:"detail",departmentId:this.department.departmentId}):this.getListGroupsModal(),this.departmentItem=this.department},watch:{loading:function(e){this.$emit("loading",e)},countGroupDetail:function(e){e>=this.expandData.group.total&&(this.expandData.group.loading=!1)},countGetUser:function(e){e>=2&&(this.isGetUser=!0)}},mounted:function(){},methods:{searchUserAddPage:function(e){var t=e.text;t=t.replace(/\s/g,","),this.expandData.userAll.keyword=t;var a={page:this.expandData.userAll.page,perPage:this.expandData.userAll.perPage,keyword:this.expandData.userAll.keyword};this.loadListUsers(a)},searchGroupAddPage:function(e){console.log("item",e);var t=e.text;t=t.replace(/\s/g,","),this.expandData.groupAll.keyword=t;var a={page:this.expandData.groupAll.page,perPage:this.expandData.groupAll.perPage,keyword:this.expandData.groupAll.keyword};this.loadListGroups(a)},searchUser:function(e){this.expandData.user.data=[],this.expandData.user.total=0,this.expandData.user.perPage=25,this.expandData.user.page=1,this.expandData.user.keyword="",this.expandData.user.errorMsg="",this.expandData.user.dataOri=[],this.expandData.user.dataOriDefault=[],console.log("item",e),this.expandData.user.loading=!0;var t=e.agr.text,a=[];e.agr.targets.forEach((function(e){"name"===e?a.push("user.name"):a.push(e)})),this.expandData.user.scorp=a,this.keywordUser=encodeURIComponent(t),this.expandData.user.keyword=e.agr.text,this.scorpUser=a,console.log("keyword",t),void 0!==e.page&&"detail"===e.page?this.getDepartmentUserDetails(e.departmentId,25,1):this.getDepartmentUser(e.departmentId,25,1)},changePageAndPerPageUser:function(e){console.log("item",e),this.expandData.user.data=[],this.expandData.user.total=0,this.expandData.user.errorMsg="",this.expandData.user.dataOri=[],this.expandData.user.dataOriDefault=[],this.expandData.user.perPage=e.agr.perPage,this.expandData.user.page=e.agr.page,this.expandData.user.loading=!0,void 0!==e.page&&"detail"===e.page?this.getDepartmentUserDetails(e.departmentId,e.agr.perPage,e.agr.page):this.getDepartmentUser(e.departmentId,e.agr.perPage,e.agr.page)},deleteDepartment:function(e){this.deleteDepartmentItem(e)},changePageGroup:function(e){var t=this;console.log("item",e),this.expandData.group.page=e.page,this.expandData.group.loading=!0;var a=this.expandData.group.dataOri;""!==this.expandData.group.keyword&&(a=this.expandData.group.dataOri.filter((function(e){return!0===e.group.groupId.includes(t.expandData.group.keyword)||!0===e.group.name.includes(t.expandData.group.keyword)})));var s=Array.of.apply(Array,Object(mI["a"])(a));this.expandData.group.data=s.slice(25*(e.page-1),25*e.page),setTimeout((function(){t.expandData.group.loading=!1}),100)},searchGroupDe:function(e){var t=this;this.expandData.group.loading=!0;var a=e.agr.text;this.keywordUser=encodeURIComponent(a),this.scorpUser=e.agr.targets,console.log("keyword",e);var s=this.expandData.group.dataOri.filter((function(e){return!0===e.group.name.includes(a)}));this.expandData.group.data=s,this.expandData.group.total=s.length,this.expandData.group.perPage=25,this.expandData.group.page=1,this.expandData.group.keyword=a,setTimeout((function(){t.expandData.group.loading=!1}),100)},changePageGateGroup:function(e){console.log("item",e),this.expandData.gateGroup.page=e.page,this.getGateGroup(e.groupId,e.page)},expandGateGroup:function(e){e.value&&(this.expandData.gateGroup.data=[],this.expandData.gateGroup.dataOri=[],this.expandData.gateGroup.keyword="",this.expandData.gateGroup.page=1,this.expandData.gateGroup.total=0,this.getGateGroup(e.item.group.groupId,1))},loadAffDetail:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return console.log("item"),t.isDetail=!1,t.successMessageLogs="",t.errorMessageLogs="",t.expandData.departmentAd.data=[],t.isShowValidUser=void 0!==localStorage.isShowValidUser&&"true"===localStorage.isShowValidUser,t.countGetUser=0,t.getDepartmentAuth(e.departmentId),"detail"!==e.isAction?(t.isGetUser=!1,t.userItems=[],"true"===localStorage.isCustomUserAuthorityService&&t.getUsers(1)):t.isDetail=!0,a.next=11,t.wait(500);case 11:return t.expandData.user.data=[],t.expandData.user.dataOri=[],t.expandData.user.dataOriDefault=[],t.expandData.user.total=0,t.expandData.user.perPage=25,t.expandData.user.page=1,t.expandData.user.keyword="",t.expandData.user.errorMsg="",t.expandData.group.data=[],t.expandData.group.dataOri=[],t.expandData.group.total=0,t.expandData.group.perPage=25,t.expandData.group.page=1,t.expandData.group.keyword="",t.expandData.user.errorMsg="",a.next=28,t.getDepartmentPermisson(e.departmentId);case 28:t.getDepartmentUserDetails(e.departmentId,25,1),t.getDepartmentGroupDetails(e.departmentId,1);case 30:case"end":return a.stop()}}),a)})))()},changeExpanded:function(e){if(console.log("item",e),e.change.value){var t={tab:""!==e.tab?e.tab:0,departmentId:e.change.item.departmentId};this.changeTab(t)}},changeTab:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.isDetail=!1,console.log("item",e),t.isShowValidUser=!0,localStorage.setItem("isShowValidUser","true"),t.expandData.groupAll.perPage=25,t.expandData.groupAll.page=1,0===e.tab?(t.expandData.user.data=[],t.expandData.user.dataOri=[],t.expandData.user.dataOriDefault=[],t.expandData.user.total=0,t.expandData.user.perPage=25,t.expandData.user.page=1,t.expandData.user.keyword="",t.expandData.user.errorMsg="",t.getDepartmentPermisson(e.departmentId),t.getDepartmentUser(e.departmentId,25,1)):(t.expandData.group.loading=!0,t.expandData.group.data=[],t.expandData.group.dataOri=[],t.expandData.group.dataOriDefault=[],t.expandData.group.total=0,t.expandData.group.perPage=25,t.expandData.group.page=1,t.expandData.group.keyword="",t.expandData.group.errorMsg="",t.getDepartmentGroup(e.departmentId,1));case 7:case"end":return a.stop()}}),a)})))()},changePerPage:function(e){this.perPage=e,localStorage.setItem("pageSizeGroupModal",e),this.authority.isAdmin?this.getListGroupsModal():this.getDepartmentUserLoginChange()},changePage:function(e){this.currPage=e,this.authority.isAdmin?this.getListGroupsModal():this.getDepartmentUserLoginChange()},searchGroup:function(e){this.keyword=e.text,this.scorp=e.targets,this.authority.isAdmin?this.getListGroupsModal():this.getDepartmentUserLoginChange()},getDepartmentUser:function(e,t,a){var s=this;if(!this.isDetail){this.expandData.user.loading=!0;var r=Pe+"?departmentId="+encodeURIComponent(e)+"&limit="+t+"&page="+a+"&embed=user&isExceptOptionalUser=true";!0===this.isShowValidUser&&(r+="&isValidUser=true"),""!==this.expandData.user.keyword&&(r+="&keyword="+this.expandData.user.keyword+"&scorp="+this.expandData.user.scorp),this.$http.get(r).then((function(t){if(t.body.maxRecords>0){s.expandData.user.total=t.body.maxRecords,t.body.relationsDepartmentUser.forEach((function(e){s.isDetail||(e.disable=!0,s.expandData.user.data.push(e),s.expandData.user.dataOri.push(e))})),s.expandData.user.loading=!1;var a=s.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));a>=0&&(s.dataGroupsModal.data[a].userCount=t.body.maxRecords)}else{s.expandData.user.loading=!1;var r=s.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(s.dataGroupsModal.data[r].userCount=t.body.maxRecords)}})).then(null,(function(t){console.log("err: ",t);var a="";switch(t.status){case 400:a=Qt;break;case 403:a=ta;break;case 404:a=aa;break;case 500:a=fa;break;case 503:a=ha;break;default:a=ba;break}s.expandData.user.errorMsg=a,s.expandData.user.loading=!1;var r=s.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(s.dataGroupsModal.data[r].userCount=s.expandData.user.dataOri.length)}))}},getDepartmentUserDetails:function(e,t,a){var s=this;1===a&&(this.expandData.user.data=[],this.expandData.user.dataOri=[],this.expandData.user.dataOriDefault=[]),this.expandData.user.loading=!0;var r=Pe+"?departmentId="+encodeURIComponent(e)+"&limit="+t+"&page="+a+"&embed=user&isExceptOptionalUser=true";!0===this.isShowValidUser&&(r+="&isValidUser=true"),""!==this.expandData.user.keyword&&(r+="&keyword="+this.expandData.user.keyword+"&scorp="+this.expandData.user.scorp),this.$http.get(r).then((function(t){if(t.body.maxRecords>0){s.expandData.user.total=t.body.maxRecords,t.body.relationsDepartmentUser.forEach((function(e){e.disable=!0,s.expandData.user.data.push(e),s.expandData.user.dataOri.push(e),s.expandData.user.dataOriDefault.push(e)})),s.expandData.user.loading=!1;var a=s.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));a>=0&&(s.dataGroupsModal.data[a].userCount=t.body.maxRecords)}else{s.expandData.user.loading=!1;var r=s.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(s.dataGroupsModal.data[r].userCount=t.body.maxRecords)}})).then(null,(function(t){console.log("err: ",t);var a="";switch(t.status){case 400:a=Qt;break;case 403:a=ta;break;case 404:a=aa;break;case 500:a=fa;break;case 503:a=ha;break;default:a=ba;break}s.expandData.user.loading=!1,s.expandData.user.errorMsg=a;var r=s.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(s.dataGroupsModal.data[r].userCount=s.expandData.user.dataOri.length)}))},getDepartmentUserValid:function(e){this.isShowValidUser=e.value,localStorage.setItem("isShowValidUser",e.value.toString()),this.isAffiliationAdd?this.getUsers(1):(this.expandData.user.data=[],this.expandData.user.total=0,this.expandData.user.perPage=25,this.expandData.user.page=1,this.expandData.user.keyword="",this.expandData.user.errorMsg="",this.expandData.user.dataOri=[],this.expandData.user.dataOriDefault=[],this.isDetail?this.getDepartmentUserDetails(e.departmentId,25,1):this.getDepartmentUser(e.departmentId,25,1))},getDepartmentGroup:function(e,t){var a=this;this.isDetail||this.$http.get(Me+"?departmentId="+encodeURIComponent(e)+"&limit=1000&page="+t+"&embed=group&isValidGroup=true&isExceptOptionalGate=true").then((function(s){if(s.body.maxRecords>0)if(a.expandData.group.total=s.body.maxRecords,s.body.relationsDepartmentGroup.forEach((function(e,t){a.isDetail||(e.group.gateCount=0,e.disable=!0,a.expandData.group.data.push(e),a.expandData.group.dataOri.push(e),a.getGroupDetail(e.group.groupId,t))})),s.body.maxRecords>s.body.endRecord)t++,a.getDepartmentGroup(e,t);else{a.expandData.group.loading=!1;var r=a.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(a.dataGroupsModal.data[r].groupCount=s.body.maxRecords)}else{a.expandData.group.loading=!1;var o=a.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));o>=0&&(a.dataGroupsModal.data[o].groupCount=s.body.maxRecords)}})).then(null,(function(t){var s="";switch(t.status){case 400:s=Qt;break;case 403:s=ta;break;case 404:s=aa;break;case 500:s=fa;break;case 503:s=ha;break;default:s=ba;break}a.expandData.group.errorMsg=s,a.expandData.group.loading=!1;var r=a.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(a.dataGroupsModal.data[r].groupCount=a.expandData.group.dataOri.length),console.log("err: ",t)}))},getDepartmentGroupDetails:function(e,t){var a=this;1===t&&(this.expandData.group.data=[],this.expandData.group.dataOri=[],this.expandData.group.dataOriDefault=[]),this.expandData.group.loading=!0,this.$http.get(Me+"?departmentId="+encodeURIComponent(e)+"&limit=1000&page="+t+"&embed=group&isValidGroup=true&isExceptOptionalGate=true").then((function(s){if(s.body.maxRecords>0)if(a.expandData.group.total=s.body.maxRecords,s.body.relationsDepartmentGroup.forEach((function(e,t){e.group.gateCount=0,e.disable=!0,a.expandData.group.data.push(e),a.expandData.group.dataOri.push(e),a.expandData.group.dataOriDefault.push(e),a.getGroupDetail(e.group.groupId,t)})),s.body.maxRecords>s.body.endRecord)t++,a.getDepartmentGroupDetails(e,t);else{a.expandData.group.loading=!1;var r=a.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(a.dataGroupsModal.data[r].groupCount=s.body.maxRecords)}else{a.expandData.group.loading=!1;var o=a.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));o>=0&&(a.dataGroupsModal.data[o].groupCount=s.body.maxRecords)}})).then(null,(function(t){var s="";switch(t.status){case 400:s=Qt;break;case 403:s=ta;break;case 404:s=aa;break;case 500:s=fa;break;case 503:s=ha;break;default:s=ba;break}a.expandData.group.errorMsg=s,a.expandData.group.loading=!1;var r=a.dataGroupsModal.data.findIndex((function(t){return t.departmentId===e}));r>=0&&(a.dataGroupsModal.data[r].groupCount=a.expandData.group.dataOri.length),console.log("err: ",t)}))},getListGroupsModal:function(){this.resetData(),this.authority.isAdmin?this.getDeaprtment():(this.loadingChild=!0,this.getDepartmentUserLogin(1))},getDepartmentUserLoginChange:function(){var e=this;this.loadingChild=!0;var t=this.dataGroupsModal.dataOri;""!==this.keyword&&(t=this.dataGroupsModal.dataOri.filter((function(t){return!0===t.name.toLowerCase().includes(e.keyword.toLowerCase())})));var a=Array.of.apply(Array,Object(mI["a"])(t));this.dataGroupsModal.data=a.slice((this.currPage-1)*this.perPage,this.currPage*this.perPage),setTimeout((function(){e.loadingChild=!1}),100)},getDepartmentUserLogin:function(e){var t=this,a=_e+"?userId="+encodeURIComponent(localStorage.userProfileId)+"&limit=1000&page="+e;this.$http.get(a).then(function(){var a=Object(or["a"])(regeneratorRuntime.mark((function a(s){var r,o,n,i,l,c,u,d,g;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(s.body.maxRecords>0)){a.next=20;break}r=s.body.departmentAdministrators,[],o=0;case 4:if(!(os.body.endRecord?(e++,t.getDepartmentUserLogin(e)):(t.loading=!1,t.loadingChild=!1),a.next=22;break;case 20:t.loading=!1,t.loadingChild=!1;case 22:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),t.loading=!1,t.loadingChild=!1}))},getDepartmentItem:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Le+"?limit=25&departmentId="+encodeURIComponent(e.departmentId)).then((function(s){var r=t.dataGroupsModal.dataOri.findIndex((function(t){return t.departmentId===e.departmentId}));if(r>=0){var o={};o=s.body.departments[0],t.dataGroupsModal.dataOri[r].groupCount=o.groupCount,t.dataGroupsModal.dataOri[r].name=o.name,t.dataGroupsModal.dataOri[r].userCount=o.userCount}a(!0)})).then(null,(function(e){a(!1)}))}))},getDeaprtment:function(){var e=this;this.loadingChild=!0;var t=Le+"?limit="+localStorage.pageSizeGroupModal+"&page="+this.currPage;null!==this.keyword&&void 0!==this.keyword&&""!==this.keyword&&(t+="&keyword="+this.keyword+"&scorp="+this.scorp),"true"===localStorage.isVaildDataGroupModal&&(t+="&isValid=true"),this.$http.get(t).then((function(t){e.isEmpty(t.body.departments)?(e.dataGroupsModal.total=0,e.currPage=1):(e.dataGroupsModal.data=t.body.departments,e.dataGroupsModal.total=t.body.maxRecords,e.currPage=Math.ceil(t.body.startRecord/e.perPage)),e.loadingChild=!1})).then(null,(function(t){switch(e.loadingChild=!1,t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},clickGroupsAction:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.rowinErrDialog=0,t.errorMessageProcess=[],t.successItemProcess=0,t.progress=0,t.isFinishProcess=!1,t.totalDataRowProcess=e.data.length,s=100/t.totalDataRowProcess,r=Object(rr["a"])(e.data),a.prev=8,r.s();case 10:if((o=r.n()).done){a.next=27;break}if(n=o.value,i=void 0,0!==e.typeAction){a.next=19;break}return a.next=16,t.enableOrDisableGroup(n,!0);case 16:i=a.sent,a.next=23;break;case 19:if(1!==e.typeAction){a.next=23;break}return a.next=22,t.enableOrDisableGroup(n,!1);case 22:i=a.sent;case 23:i&&t.successItemProcess++,t.progress+=s;case 25:a.next=10;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](8),r.e(a.t0);case 32:return a.prev=32,r.f(),a.finish(32);case 35:t.isFinishProcess=!0;case 36:case"end":return a.stop()}}),a,null,[[8,29,32,35]])})))()},enableOrDisableGroup:function(e,t){var a=this;return new Promise((function(s){var r={isValid:t};a.$http.put(H+"/"+encodeURIComponent(e),r).then((function(e){console.log(e),s(!0)})).then(null,(function(t){var r="";switch(t.status){case 400:r="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:r="Unauthorized"===t.message?ta:ia;break;case 404:r="groupIdが存在しない。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.errorMessageLogs="",this.successMessageLogs="",this.dataGroupsModal={dataOri:[],data:[],total:0}},getGroupDetail:function(e,t){var a=this;this.expandData.group.data[t].group.gateCount=0;var s=H+"?groupId="+encodeURIComponent(e)+"&embed=passableTimeSetting&isExceptOptionalGate=true";this.$http.get(s).then((function(e){!a.isEmpty(e.body.groups)&&e.body.groups.length>0&&(a.expandData.group.data[t].gateCount=e.body.groups[0].gateCount,a.expandData.group.data[t].group.gateCount=e.body.groups[0].gateCount,a.countGroupDetail++)})).then(null,(function(e){a.countGroupDetail++}))},getGateGroup:function(e,t){var a=this;return new Promise((function(s,r){a.expandData.gateGroup.loading=!0,a.$http.get(X+"?groupId="+encodeURIComponent(e)+"&embed=gate&limit=25&page="+t+"&isExceptOptionalGate=true&isValid=true").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.body.maxRecords>0?(a.expandData.gateGroup.total=t.body.maxRecords,t.body.relationsGateGroup.forEach((function(e){a.expandData.gateGroup.data.push(e),a.expandData.gateGroup.dataOri.push(e)})),a.expandData.gateGroup.loading=!1,s(!0)):(a.expandData.gateGroup.loading=!1,s(!0));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){console.log(e),a.expandData.gateGroup.loading=!1,s(!1)}))}))},deleteDepartmentItem:function(e){var t=this;this.loading=!0,this.$http.delete(Le+"/"+encodeURIComponent(e)).then((function(e){t.loading=!1,t.$emit("getReload",!0)})).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},changePageUserAll:function(e){this.expandData.userAll.page=e;var t={page:this.expandData.userAll.page,perPage:this.expandData.userAll.perPage};this.loadListUsers(t)},changePerPageUserAll:function(e){this.expandData.userAll.perPage=e;var t={page:this.expandData.userAll.page,perPage:this.expandData.userAll.perPage};this.loadListUsers(t)},changePageGroupAll:function(e){this.expandData.groupAll.page=e;var t={page:this.expandData.groupAll.page,perPage:this.expandData.groupAll.perPage};this.loadListGroups(t)},changePerPageGroupAll:function(e){this.expandData.groupAll.perPage=e;var t={page:this.expandData.groupAll.page,perPage:this.expandData.groupAll.perPage};this.loadListGroups(t)},loadListUsers:function(e){var t=this;this.expandData.userAll.total=0,this.expandData.userAll.data=[],this.expandData.userAll.loading=!0;var a=T+"?limit="+e.perPage+"&page="+e.page+"&isValid=true";""!==this.expandData.userAll.keyword&&(a+="&keyword="+this.expandData.userAll.keyword+"&scorp="+this.expandData.userAll.scorp),this.$http.get(a).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){var s,r,o,n,i,l,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(a.body.maxRecords>0)){e.next=14;break}t.expandData.userAll.total=a.body.maxRecords,s=0;case 3:if(!(s=0&&(t.expandData.userAll.data[o].company=r.length>0?r[0].department.name:""),a(!0)})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},loadListGroups:function(e){var t=this;this.dataRelationGroup={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},this.expandData.groupAll.page=e.page,this.expandData.groupAll.perPage=e.perPage,this.expandData.groupAll.loading=!0;var a=H+"?limit="+e.perPage+"&page="+e.page+"&isValid=true&embed=passableTimeSetting";""!==this.expandData.groupAll.keyword&&(a+="&keyword="+this.expandData.groupAll.keyword+"&scorp="+this.expandData.groupAll.scorp),this.$http.get(a).then((function(e){e.body.maxRecords>0&&(t.expandData.groupAll.data=e.body.groups,t.expandData.groupAll.total=e.body.maxRecords,t.expandData.groupAll.loading=!1,t.expandData.groupAll.data.map((function(e){return Object.assign(e,{group:{groupId:e.groupId,name:e.name,gateCount:e.gateCount,passableTimeSetting:e.passableTimeSetting}})}))),t.expandData.groupAll.loading=!1})).then(null,(function(e){console.log("err: ",e),t.expandData.groupAll.loading=!1}))},addUsers:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),s=0,r=0,o=0,n=!1,i=[],l=e.users.length,c=100/l,t.dataRelationUser.total=l,u=Object(rr["a"])(e.users),a.prev=10,u.s();case 12:if((d=u.n()).done){a.next=26;break}return g=d.value,p=void 0,a.next=17,t.postUserDepartment(g.userId,e.departmentId);case 17:p=a.sent,!0===p?r++:(m=g.userId+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationUser.progress=o,t.dataRelationUser.successItem=r,t.dataRelationUser.progressLoad=o,t.dataRelationUser.errorMessage=i;case 24:a.next=12;break;case 26:a.next=31;break;case 28:a.prev=28,a.t0=a["catch"](10),u.e(a.t0);case 31:return a.prev=31,u.f(),a.finish(31);case 34:n=!0,t.dataRelationUser.isFinish=n,r>0&&t.$emit("getReload",!0);case 37:case"end":return a.stop()}}),a,null,[[10,28,31,34]])})))()},postUserDepartment:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Pe,{userId:e,departmentId:t}).then((function(e){s(!0)})).then(null,function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(r){var o,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:o="",t.t0=r.status,t.next=400===t.t0?4:403===t.t0?6:404===t.t0?8:409===t.t0?10:500===t.t0?17:503===t.t0?19:21;break;case 4:return o=Qt,t.abrupt("break",23);case 6:return o="Unauthorized"===r.message?ta:ia,t.abrupt("break",23);case 8:return o=aa,t.abrupt("break",23);case 10:return t.next=12,a.getDepartmentUserInfo(e);case 12:return n=t.sent,i="",n.length>0&&(i=n[0].department.name),o=ya.replace("{{所属名}}",i.toString()),t.abrupt("break",23);case 17:return o=fa,t.abrupt("break",23);case 19:return o=ha,t.abrupt("break",23);case 21:return o=ba,t.abrupt("break",23);case 23:s(o);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},removeUsers:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationUser={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.users.length,c=100/l,t.dataRelationUser.total=l,u=Object(rr["a"])(e.users),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.removeUserDepartment(g.relationId);case 18:p=a.sent,!0===p?r++:(m=g.userId+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationUser.progress=o,t.dataRelationUser.successItem=r,t.dataRelationUser.progressLoad=o,t.dataRelationUser.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataRelationUser.isFinish=n,r>0&&t.$emit("getReload",!0);case 38:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},removeUserDepartment:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Pe+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}a(t)}))}))},removeGroups:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationGroup={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.groups.length,c=100/l,t.dataRelationGroup.total=l,u=Object(rr["a"])(e.groups),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.removeGroupDepartment(g.relationId);case 18:p=a.sent,!0===p?r++:(m=g.group.name+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationGroup.progress=o,t.dataRelationGroup.successItem=r,t.dataRelationGroup.progressLoad=o,t.dataRelationGroup.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataRelationGroup.isFinish=n;case 37:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},removeGroupDepartment:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Me+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}a(t)}))}))},addGroups:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationGroup={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.groups.length,c=100/l,t.dataRelationGroup.total=l,u=Object(rr["a"])(e.groups),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.addGroupDepartment(g.groupId,e.departmentId);case 18:p=a.sent,!0===p?r++:(m=g.name+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationGroup.progress=o,t.dataRelationGroup.successItem=r,t.dataRelationGroup.progressLoad=o,t.dataRelationGroup.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataRelationGroup.isFinish=n;case 37:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},addGroupDepartment:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Me,{departmentId:t,groupId:e}).then((function(e){s(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 409:t=xa;break;case 420:t=Ca;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s(t)}))}))},getDepartmentAuth:function(e){var t=this;"true"===localStorage.isCustomUserAuthorityService?(this.loadingChild=!0,this.expandData.departmentAd.errorMessage="",this.expandData.departmentAd.sucessMessage="",this.$http.get(_e+"?limit=1000&departmentId="+e+"&embed=user").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=a.body.departmentAdministrators.map(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.userName=t.user.name,e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=3,Promise.all(s);case 3:return t.expandData.departmentAd.data=e.sent,e.next=6,Promise.all(s);case 6:t.expandData.departmentAd.dataOri=e.sent,t.expandData.departmentAd.loading=a.body.departmentAdministrators,t.loadingChild=!1,t.countGetUser++;case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){t.loadingChild=!1,t.countGetUser++}))):(this.loadingChild=!1,this.countGetUser++)},getUserName:function(e){var t=this;return new Promise((function(a){t.$http.get(T+"?userId="+encodeURIComponent(e)).then((function(e){void 0!==e.data.users&&null!==e.data.users&&e.data.users.length>0?a(e.data.users[0].name):a(null)}),(function(e){console.log(e),a(null)}))}))},removeAffDetail:function(e){var t=this;this.loading=!0,this.expandData.departmentAd.errorMessage="",this.expandData.departmentAd.sucessMessage="",this.$http.delete(Le+"/"+e.departmentId).then((function(a){t.loading=!1,t.expandData.departmentAd.sucessMessage=e.name+"を削除しました。"})).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},updateAff:function(e){var t=this;this.loading=!0,this.expandData.departmentAd.errorMessage="",this.expandData.departmentAd.sucessMessage="",this.successMessageLogs="",this.$http.put(Le+"/"+e.departmentId,{name:e.name}).then((function(a){t.departmentItem.name=e.name,t.actionCust(e),t.$emit("getReload",!0)})).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.expandData.departmentAd.errorMessage=t.errorMessageLogs}))},actionCust:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w,k,S,_,P,M,L,D,G,A,R,T,E,O,V;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.expandData.errorData.userDel=[],t.expandData.errorData.users=[],t.expandData.errorData.userEdit=[],a.next=5,t.deleteData(e);case 5:s=Object(rr["a"])(e.data),a.prev=6,o=regeneratorRuntime.mark((function a(){var s,o,n,i,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(s=r.value,!s.disabled){a.next=12;break}if(o=t.expandData.departmentAd.dataOri.findIndex((function(e){return e.departmentAdministratorId===s.relationId})),!(o>=0)){a.next=10;break}if(n=t.expandData.departmentAd.dataOri[o],n.isAdminToEditUser===s.isAdminToEditUser&&n.isAdminToAddUser===s.isAdminToAddUser&&n.isAdminToSetPcodesToUser===s.isAdminToSetPcodesToUser){a.next=10;break}return a.next=8,t.updateDepartmentItem(e.departmentId,s);case 8:i=a.sent,!1===i&&t.expandData.errorData.userEdit.push(s.userId.text);case 10:a.next=17;break;case 12:if(""===s.userId||void 0===s.userId.value||""===s.userId.value||null===s.userId.value){a.next=17;break}return a.next=15,t.addDepartmentItem(e.departmentId,s);case 15:l=a.sent,!1===l&&t.expandData.errorData.users.push(s.userId.text);case 17:case"end":return a.stop()}}),a)})),s.s();case 9:if((r=s.n()).done){a.next=13;break}return a.delegateYield(o(),"t0",11);case 11:a.next=9;break;case 13:a.next=18;break;case 15:a.prev=15,a.t1=a["catch"](6),s.e(a.t1);case 18:return a.prev=18,s.f(),a.finish(18);case 21:if(n=[],i=[],!(0===t.expandData.user.dataOri.length&&t.expandData.user.dataOriDefault.length>0)){a.next=46;break}l=Object(rr["a"])(t.expandData.user.dataOriDefault),a.prev=25,l.s();case 27:if((c=l.n()).done){a.next=36;break}return u=c.value,d=void 0,a.next=32,t.removeUserDepartment(u.relationId);case 32:d=a.sent,!0!==d&&n.push(u.user.name);case 34:a.next=27;break;case 36:a.next=41;break;case 38:a.prev=38,a.t2=a["catch"](25),l.e(a.t2);case 41:return a.prev=41,l.f(),a.finish(41);case 44:a.next=90;break;case 46:if(g=t.expandData.user.dataOriDefault.filter((function(e){return!t.expandData.user.dataOri.some((function(t){return e.userId===t.userId}))})),p=t.expandData.user.dataOri.filter((function(e){return!t.expandData.user.dataOriDefault.some((function(t){return e.userId===t.userId}))})),!(g.length>0)){a.next=69;break}m=Object(rr["a"])(g),a.prev=50,m.s();case 52:if((f=m.n()).done){a.next=61;break}return h=f.value,v=void 0,a.next=57,t.removeUserDepartment(h.relationId);case 57:v=a.sent,!0!==v&&n.push(h.user.name);case 59:a.next=52;break;case 61:a.next=66;break;case 63:a.prev=63,a.t3=a["catch"](50),m.e(a.t3);case 66:return a.prev=66,m.f(),a.finish(66);case 69:if(!(p.length>0)){a.next=90;break}b=Object(rr["a"])(p),a.prev=71,b.s();case 73:if((y=b.n()).done){a.next=82;break}return I=y.value,x=void 0,a.next=78,t.postUserDepartment(I.userId,e.departmentId);case 78:x=a.sent,!0!==x&&n.push(I.user.name);case 80:a.next=73;break;case 82:a.next=87;break;case 84:a.prev=84,a.t4=a["catch"](71),b.e(a.t4);case 87:return a.prev=87,b.f(),a.finish(87);case 90:if(!(0===t.expandData.group.dataOri.length&&t.expandData.group.dataOriDefault.length>0)){a.next=113;break}C=Object(rr["a"])(t.expandData.group.dataOriDefault),a.prev=92,C.s();case 94:if((w=C.n()).done){a.next=103;break}return k=w.value,S=void 0,a.next=99,t.removeGroupDepartment(k.relationId);case 99:S=a.sent,!0!==S&&i.push(k.group.name);case 101:a.next=94;break;case 103:a.next=108;break;case 105:a.prev=105,a.t5=a["catch"](92),C.e(a.t5);case 108:return a.prev=108,C.f(),a.finish(108);case 111:a.next=157;break;case 113:if(_=t.expandData.group.dataOriDefault.filter((function(e){return!t.expandData.group.dataOri.some((function(t){return e.groupId===t.groupId}))})),P=t.expandData.group.dataOri.filter((function(e){return!t.expandData.group.dataOriDefault.some((function(t){return e.groupId===t.groupId}))})),!(_.length>0)){a.next=136;break}M=Object(rr["a"])(_),a.prev=117,M.s();case 119:if((L=M.n()).done){a.next=128;break}return D=L.value,G=void 0,a.next=124,t.removeGroupDepartment(D.relationId);case 124:G=a.sent,!0!==G&&i.push(D.group.name);case 126:a.next=119;break;case 128:a.next=133;break;case 130:a.prev=130,a.t6=a["catch"](117),M.e(a.t6);case 133:return a.prev=133,M.f(),a.finish(133);case 136:if(!(P.length>0)){a.next=157;break}A=Object(rr["a"])(P),a.prev=138,A.s();case 140:if((R=A.n()).done){a.next=149;break}return T=R.value,E=void 0,a.next=145,t.addGroupDepartment(T.groupId,e.departmentId);case 145:E=a.sent,!0!==E&&i.push(T.group.name);case 147:a.next=140;break;case 149:a.next=154;break;case 151:a.prev=151,a.t7=a["catch"](138),A.e(a.t7);case 154:return a.prev=154,A.f(),a.finish(154);case 157:t.isGetUser=!1,t.countGetUser=1,t.expandData.departmentAd.data=[],t.expandData.departmentAd.dataOri=[],t.getDepartmentAuth(e.departmentId),t.resetRealtionData(),t.getDepartmentUserDetails(e.departmentId,25,1),t.getDepartmentGroupDetails(e.departmentId,1),t.loading=!1,O=t.expandData.errorData,V=O.users.concat(O.userEdit).concat(O.userDel),V.length>0||n.length>0||i.length>0?(t.errorMessageLogs="",V.length>0&&(t.errorMessageLogs+="所属権限( "+V.toString()+")編集に失敗しています。
"),n.length>0&&(t.errorMessageLogs+="所属ユーザー( "+n.toString()+")編集に失敗しています。
"),i.length>0&&(t.errorMessageLogs+="通行権限グループ( "+i.toString()+")編集に失敗しています。
"),t.errorMessageLogs+="失敗した項目は反映されませんので再度確認してください。",t.successMessageLogs=""):(t.errorMessageLogs="",t.successMessageLogs=Qa);case 169:case"end":return a.stop()}}),a,null,[[6,15,18,21],[25,38,41,44],[50,63,66,69],[71,84,87,90],[92,105,108,111],[117,130,133,136],[138,151,154,157]])})))()},getUsers:function(e){var t=this,a=this.isShowValidUser?"&isValid=true":"";this.$http.get(Ne+"?limit=10000&page="+e+"&sortKey=asc:userId"+a+"&isExceptOptionalUser=true&exclude=thumbnail").then((function(a){a.body.maxRecords>0?(a.body.users.forEach((function(e){!1===e.isAdmin&&t.userItems.push({text:e.name,value:e.userId})})),t.countGetUser++,a.body.maxRecords>a.body.endRecord?t.getUsers(e+1):t.countGetUser++):(t.userItems=[],t.countGetUser++)})).then(null,(function(e){console.log("err: ",e),t.countGetUser++}))},deleteData:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.expandData.errorData.userDel=[],!(e.deleteData.length>0)){a.next=21;break}s=Object(rr["a"])(e.deleteData),a.prev=3,s.s();case 5:if((r=s.n()).done){a.next=13;break}return o=r.value,a.next=9,t.deleteDepartmentUser(o.relationId);case 9:n=a.sent,!1===n&&t.expandData.errorData.userDel.push(o.userId.text);case 11:a.next=5;break;case 13:a.next=18;break;case 15:a.prev=15,a.t0=a["catch"](3),s.e(a.t0);case 18:return a.prev=18,s.f(),a.finish(18);case 21:case"end":return a.stop()}}),a,null,[[3,15,18,21]])})))()},deleteDepartmentUser:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(_e+"/"+e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},updateDepartmentItem:function(e,t){var a=this;return new Promise((function(e,s){a.$http.put(_e+"/"+t.relationId,{isAdminToEditUser:t.isAdminToEditUser,isAdminToAddUser:t.isAdminToAddUser,isAdminToSetPcodesToUser:t.isAdminToSetPcodesToUser}).then((function(t){e(!0)})).then(null,(function(t){e(!1)}))}))},addDepartmentItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(_e,{departmentId:e,userId:t.userId.value,isAdminToEditUser:t.isAdminToEditUser,isAdminToAddUser:t.isAdminToAddUser,isAdminToSetPcodesToUser:t.isAdminToSetPcodesToUser}).then((function(e){s(!0)})).then(null,(function(e){s(!1)}))}))},loadAllUserForAdd:function(e){this.isAffiliationAdd=!0,this.successMessageLogs="",this.errorMessageLogs="",this.userItems=[],"true"===localStorage.isCustomUserAuthorityService&&this.getUsers(1)},registerAff:function(e){var t=this;console.log("data",e),this.loading=!0,this.expandData.departmentAd.errorMessage="",this.expandData.departmentAd.sucessMessage="",this.successMessageLogs="",this.$http.post(Le,{name:e.name}).then(function(){var a=Object(or["a"])(regeneratorRuntime.mark((function a(s){var r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(e.data.length>0)){a.next=19;break}r=Object(rr["a"])(e.data),a.prev=2,r.s();case 4:if((o=r.n()).done){a.next=11;break}if(n=o.value,""===n.userId||void 0===n.userId.value||""===n.userId.value||null===n.userId.value){a.next=9;break}return a.next=9,t.addDepartmentItem(s.body.departmentId,n);case 9:a.next=4;break;case 11:a.next=16;break;case 13:a.prev=13,a.t0=a["catch"](2),r.e(a.t0);case 16:return a.prev=16,r.f(),a.finish(16);case 19:if(!(e.groupIds.length>0)){a.next=39;break}i=Object(rr["a"])(e.groupIds),a.prev=21,i.s();case 23:if((l=i.n()).done){a.next=31;break}return c=l.value,a.next=27,t.addGroupDepartment(c.groupId,s.body.departmentId);case 27:u=a.sent,!0!==u&&t.expandData.errorData.groups.push(c.name);case 29:a.next=23;break;case 31:a.next=36;break;case 33:a.prev=33,a.t1=a["catch"](21),i.e(a.t1);case 36:return a.prev=36,i.f(),a.finish(36);case 39:if(!(e.userIds.length>0)){a.next=59;break}d=Object(rr["a"])(e.userIds),a.prev=41,d.s();case 43:if((g=d.n()).done){a.next=51;break}return p=g.value,a.next=47,t.postUserDepartment(p.userId,s.body.departmentId);case 47:m=a.sent,!0!==m&&t.expandData.errorData.users.push(p.name);case 49:a.next=43;break;case 51:a.next=56;break;case 53:a.prev=53,a.t2=a["catch"](41),d.e(a.t2);case 56:return a.prev=56,d.f(),a.finish(56);case 59:t.loading=!1,t.successMessageLogs=Xa,t.$emit("getReload",!0);case 62:case"end":return a.stop()}}),a,null,[[2,13,16,19],[21,33,36,39],[41,53,56,59]])})));return function(e){return a.apply(this,arguments)}}()).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.expandData.departmentAd.errorMessage=t.errorMessageLogs}))},reloadDataGroup:function(e){this.expandData.group.data=[],this.expandData.group.dataOri=[],this.expandData.group.total=0,this.expandData.group.loading=!0,this.expandData.group.errorMsg="",this.isDetail?this.getDepartmentGroupDetails(e.departmentId,1):this.getDepartmentGroup(e.departmentId,1)},getUsersAgain:function(){this.userItems=[],"true"===localStorage.isCustomUserAuthorityService&&this.getUsers(1)},getDepartmentPermisson:function(e){var t=this;return new Promise((function(a,s){"true"===localStorage.isCustomUserAuthorityService?(t.expandData.isAdminToAddUser=!1,t.$http.get(_e+"?limit=25&departmentId="+e+"&userId="+localStorage.userProfileId).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:s.body.departmentAdministrators.length>0&&s.body.departmentAdministrators[0].isAdminToAddUser&&(t.expandData.isAdminToAddUser=!0),a(!0);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){a(!1)}))):a(!1)}))},wait:function(e){return new Promise((function(t,a){setTimeout(t,e)}))},getDepartmentUserInfo:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Pe+"?userId=".concat(encodeURIComponent(e),"&embed=department")).then((function(e){e.body.maxRecords>0?a(e.body.relationsDepartmentUser):a([])})).then(null,(function(e){console.log("err: ",e),a([])}))}))},affiliationAddItemDirect:function(e){var t=this;console.log("affiliationAddItemDirect",e),this.expandData.user.loading=!0;for(var a=function(a){var s=t.expandData.user.dataOri.findIndex((function(t){return t.userId===e[a].userId})),r=a;if(s<0){var o=e[r].user=e[r];t.expandData.user.dataOri.push(o)}},s=0;s=0&&t.expandData.user.dataOri.splice(parseInt(r),1)},s=0;s=0&&(o.relationId=t.expandData.group.dataOriDefault[n].relationId),t.expandData.group.dataOri.push(o)}},r=0;r=0&&t.expandData.group.dataOri.splice(parseInt(r),1)},r=0;r0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("通行権限グループ管理者紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ管理者: "+e._s(e.administratorsAddFail.toString())+"\n ")]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.GateSubmittedFail.length>0&&e.UserSubmittedFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ゲートとユーザーの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ゲートとユーザーの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ゲート名: "+e._s(e.GateSubmittedFail.toString())+" "),a("br"),e._v("\n 登録失敗ユーザー名: "+e._s(e.UserSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.GateSubmittedFail.length>0&&0===e.UserSubmittedFail.length&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ゲートの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ゲートの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ゲート名: "+e._s(e.GateSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.GateSubmittedFail.length&&e.UserSubmittedFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ユーザーの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ユーザーの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ユーザー名: "+e._s(e.UserSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("group-add-form",{attrs:{gateItems:e.gateItems,userItems:e.userItems,groupDetail:e.groupDetail,loading:e.loading,isEdit:e.isEdit,dataAllUses:e.dataAllUses,dataAllGates:e.dataAllGates,dataAllTimes:e.dataAllTimes,expand:e.expand,isGetGroup:e.isGetGroup,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,UserSubmittedFail:e.UserSubmittedFail,GateSubmittedFail:e.GateSubmittedFail,administratorsAddFail:e.administratorsAddFail,isDisabledGroupOptions:e.isDisabledGroupOptions,authority:e.authority},on:{clickSaveGroup:function(t){return e.$emit("clickSaveGroup",t)},clickUpdateGroup:function(t){return e.$emit("clickUpdateGroup",t)},"change-expanded":function(t){return e.$emit("change-expanded",t)},"go-time-settings":function(t){return e.$emit("go-time-settings",t)}}})],1)],1)},Mw=[],Lw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-add-form modal-control"},[a("v-container",{staticClass:"pt-0"},[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold mb-5 mt-5 ml-3"},[e._v("\n 通行権限グループ情報\n ")])],1),e._v(" "),a("div",{staticClass:"round-content-scroll"},[a("v-form",{ref:"formGroup",staticStyle:{position:"relative"},attrs:{"lazy-validation":""}},[a("v-overlay",{staticClass:"overlay-group-tab",attrs:{absolute:"",value:e.isGetGroup,color:"white"}},[a("v-progress-circular",{staticClass:"user-loading-progress",attrs:{indeterminate:"",color:"green"}})],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5 pt-5"},[a("input-form",{attrs:{isShow:"vertical",rules:[e.rulesValidate.validateGroupName],title:"通行権限グループ名 ※必須",inputType:"text"},model:{value:e.groupNameValue,callback:function(t){e.groupNameValue=t},expression:"groupNameValue"}}),e._v(" "),a("v-spacer"),e._v(" "),e.authority.isCustomUserAuthorityService?a("div",[a("v-row",{staticClass:"col-vertical mt-5"},[a("v-col",{staticClass:"col-12 mb-0 pb-0"},[a("div",{staticClass:"title-display-block ml-0 pa-0 mt-0 mb-0"},[e._v(" 通行権限グループ管理者")])])],1),e._v(" "),e._l(e.listGroup,(function(t,s){return a("div",{key:s},[a("v-row",{staticClass:"mt-5 col-vertical"},[a("v-col",{attrs:{md:"3",sm:"12",cols:"12"}},[a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("v-btn",{attrs:{icon:"",al:""},on:{click:function(t){return e.deleteItem(s)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-minus-circle")])],1)],1),e._v(" "),t.Ids.text?a("v-col",{attrs:{cols:"10"}},[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(s){var r=s.on;return[a("span",e._g({},r),[a("v-combobox",{staticClass:"item-ellipsis",attrs:{items:e.dataAllow,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:"",disabled:t.disabled,"menu-props":{contentClass:"v-select-item v-select-item-disabled"},attach:!0},on:{change:e.changeData},model:{value:t.Ids,callback:function(a){e.$set(t,"Ids",a)},expression:"item.Ids"}})],1)]}}],null,!0)},[e._v(" "),t.Ids.text?a("span",[e._v(e._s(t.Ids.text))]):e._e()])],1):a("v-col",{attrs:{cols:"10"}},[a("v-combobox",{staticClass:"item-ellipsis",attrs:{items:e.dataAllow,autocomplete:"off",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:"",disabled:t.disabled,"menu-props":{contentClass:"v-select-item v-select-item-disabled"},attach:!0},on:{change:e.changeData},model:{value:t.Ids,callback:function(a){e.$set(t,"Ids",a)},expression:"item.Ids"}})],1)],1)],1),e._v(" "),a("v-col",{attrs:{md:"9",sm:"12",cols:"12"}},[a("v-row",{staticClass:"item-check-box"},[a("v-col",{attrs:{cols:"3"}},[!0===e.isEdit?a("v-checkbox",{attrs:{disabled:"",color:"grey",dense:"","hide-details":"",label:"ゲート閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}}):a("v-checkbox",{attrs:{color:"grey",disabled:"",dense:"","hide-details":"",label:"ゲート閲覧権限"},model:{value:t.isAdminToView,callback:function(a){e.$set(t,"isAdminToView",a)},expression:"item.isAdminToView"}})],1),e._v(" "),a("v-col",{attrs:{cols:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"通行可能所属/ユーザーの設定権限"},model:{value:t.isAdminOfGroupPassages,callback:function(a){e.$set(t,"isAdminOfGroupPassages",a)},expression:"item.isAdminOfGroupPassages"}})],1),e._v(" "),a("v-col",{attrs:{cols:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"一時通行可能ユーザーの設定権限"},model:{value:t.isAdminOfGatePassages,callback:function(a){e.$set(t,"isAdminOfGatePassages",a)},expression:"item.isAdminOfGatePassages"}})],1),e._v(" "),a("v-col",{attrs:{cols:"3"}},[a("v-checkbox",{attrs:{color:"green",dense:"","hide-details":"",label:"遠隔解錠権限"},model:{value:t.isAdminOfRemoteUnlock,callback:function(a){e.$set(t,"isAdminOfRemoteUnlock",a)},expression:"item.isAdminOfRemoteUnlock"}})],1)],1)],1)],1)],1)})),e._v(" "),a("v-row",{staticClass:"mt-0 pt-0"},[a("v-col",{staticClass:"col-12 pt-0"},[a("div",{staticClass:"v-subheader theme--light ml-0 pa-0 mt-0 add-button",on:{click:e.addGroup}},[e._v(" + 追加する ")])])],1)],2):e._e(),e._v(" "),a("div",{staticClass:"input-form mt-3"},[a("v-row",{staticClass:"col-vertical"},[a("v-col",{attrs:{cols:"12"}},[a("div",{staticClass:"title-display-block ml-0 pa-0 mt-0 mb-0"},[e._v("ゲート")])]),e._v(" "),a("v-col",{attrs:{cols:"12"}},[a("v-autocomplete",{attrs:{items:e.dataAllGates,color:"green","return-object":"","hide-details":"auto",outlined:"",dense:"","no-data-text":"",multiple:"",chips:"","deletable-chips":"","menu-props":{contentClass:"class-v-select-item "},attach:!0},model:{value:e.gateValue,callback:function(t){e.gateValue=t},expression:"gateValue"}})],1)],1)],1),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"col-vertical mt-5"},[a("v-col",{attrs:{sm:"3",xl:"2"}},[a("div",{staticClass:"title-display-block ml-0 pa-0 mt-3 mb-0"},[e._v("通行可能時間設定")])]),e._v(" "),a("v-col",[a("v-subheader",[a("text-link",{staticClass:"item-user-name block",attrs:{text:"通行可能時間設定を新規作成/編集する"},on:{click:e.clickTimeSettings}})],1)],1),e._v(" "),a("v-col",{attrs:{cols:"12"}},[a("v-autocomplete",{attrs:{items:e.dataAllTimes,color:"green","return-object":"","hide-details":"auto",outlined:"",dense:"","no-data-text":"",clearable:"",disabled:2===e.isGateLock,"menu-props":{contentClass:"class-v-select-item "},attach:!0},model:{value:e.inputTime,callback:function(t){e.inputTime=t},expression:"inputTime"}}),e._v(" "),1===e.isGateLock?a("p",{staticClass:"red--text mgs-gate-lock"},[e._v("※通行可能時間設定は、ALLIGATE Lock Pro のゲートのみ設定が反映されます")]):e._e()],1)],1)],1),e._v(" "),!0===e.isEdit?a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[""!==e.successMessageLogs&&0===e.GateSubmittedFail.length&&0===e.UserSubmittedFail.length&&0===e.administratorsAddFail.length&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-no bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.GateSubmittedFail.length&&0===e.UserSubmittedFail.length&&e.administratorsAddFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-no bg-error"},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("通行権限グループ管理者紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ管理者: "+e._s(e.administratorsAddFail.toString())+"\n ")]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.GateSubmittedFail.length>0&&e.UserSubmittedFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"10",align:"right"}},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ゲートとユーザーの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ゲートとユーザーの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ゲート名: "+e._s(e.GateSubmittedFail.toString())+" "),a("br"),e._v("\n 登録失敗ユーザー名: "+e._s(e.UserSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.GateSubmittedFail.length>0&&0===e.UserSubmittedFail.length&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"10",align:"right"}},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ゲートの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ゲートの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ゲート名: "+e._s(e.GateSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.GateSubmittedFail.length&&e.UserSubmittedFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"10",align:"right"}},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ユーザーの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ユーザーの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ユーザー名: "+e._s(e.UserSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"10",align:"right"}},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-col",{staticClass:"messageRow",attrs:{cols:"2",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:null===e.groupDetail.groupId||void 0===e.groupDetail.groupId||""===e.groupDetail.groupId,outlined:""},on:{click:function(t){return e.clickUpdateGroup()}}},[e._v("\n 保存する\n ")])],1)],1):a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[""!==e.successMessageLogs&&0===e.GateSubmittedFail.length&&0===e.UserSubmittedFail.length&&0===e.administratorsAddFail.length&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-no bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.GateSubmittedFail.length&&0===e.UserSubmittedFail.length&&e.administratorsAddFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-no bg-error"},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("通行権限グループ管理者紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ管理者: "+e._s(e.administratorsAddFail.toString())+"\n ")]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.GateSubmittedFail.length>0&&e.UserSubmittedFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"11",align:"right"}},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ゲートとユーザーの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ゲートとユーザーの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ゲート名: "+e._s(e.GateSubmittedFail.toString())+" "),a("br"),e._v("\n 登録失敗ユーザー名: "+e._s(e.UserSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.successMessageLogs&&e.GateSubmittedFail.length>0&&0===e.UserSubmittedFail.length&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"11",align:"right"}},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ゲートの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ゲートの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ゲート名: "+e._s(e.GateSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.successMessageLogs&&0===e.GateSubmittedFail.length&&e.UserSubmittedFail.length>0&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"11",align:"right"}},[e.isEdit?a("span",[e._v("通行権限グループが編集されました。")]):a("span",[e._v("通行権限グループが追加されました。")]),e._v("ユーザーの紐づけに失敗しています。"),a("br"),e._v("\n 通行権限グループ編集より、ユーザーの確認をしてください。"),a("br"),e._v("\n 別の通行可能時間帯が設定されている通行権限グループに紐づいている場合、追加することができません。"),a("br"),e._v("\n 登録失敗ユーザー名: "+e._s(e.UserSubmittedFail.toString())+"\n "),e.administratorsAddFail.length>0?a("span",[a("br"),e._v(" 登録失敗ユーザー名: "+e._s(e.administratorsAddFail.toString()))]):e._e()]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.loading?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error bg-no messageRow",attrs:{cols:"11",align:"right"}},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-col",{staticClass:"messageRow",attrs:{cols:"1",align:"right"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.clickSaveGroup()}}},[e._v("\n 登録\n ")])],1)],1)],1)],1)],1)],1)},Dw=[],Gw=f["a"].extend({name:"GroupAddForm",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,TextLink:No},props:{confirm:{type:Boolean,default:!1},isGetGroup:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},gateItems:{type:Array,default:function(){return[]}},userItems:{type:Array,default:function(){return[]}},groupDetail:{type:Object,default:[]},dataAllUses:{type:Array,default:[]},dataAllGates:{type:Array,default:[]},dataAllTimes:{type:Array,default:[]},expand:{type:Number,default:0},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},GateSubmittedFail:{default:[]},administratorsAddFail:{default:[]},UserSubmittedFail:{default:[]},gateGroupOptions:{type:Array,default:function(){return[]}},isDisabledGroupOptions:{type:Boolean,default:!0},authority:{type:Object,default:{}}},mounted:function(){this.gateValue=this.gateItems,this.userIdValue=this.userItems,""!==this.groupDetail.groupName&&(this.groupNameValue=this.groupDetail.groupName)},computed:{headers:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!1,width:"80%",value:"data-table-expand"},{text:"",align:"start",sortable:!1,value:"expand-action"}];return e}},icon:function(){return Object.keys(this.gateValue).length===Object.keys(this.dataAllGates).length?"mdi-close-box":Object.keys(this.gateValue).length>0&&Object.keys(this.gateValue).length!==Object.keys(this.dataAllGates).length?"mdi-minus-box":"mdi-checkbox-blank-outline"},iconUser:function(){return Object.keys(this.userIdValue).length===Object.keys(this.dataAllUses).length?"mdi-close-box":Object.keys(this.userIdValue).length>0&&Object.keys(this.userIdValue).length0?(this.listGroup=[],this.groupDetail.groupAdministrators.forEach((function(e){t.listGroup.push({Ids:{value:e.userId,text:e.user.name,disabled:!0},isAdminToView:!0,isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock,disabled:!0,groupAdministratorId:e.groupAdministratorId})}))):this.listGroup=[{Ids:"",isAdminToView:!0,isAdminOfGroupPassages:!1,isAdminOfGatePassages:!1,isAdminOfRemoteUnlock:!1}])},isGetGroup:function(e){!1===e&&(this.dataAllow=this.dataAllUses,!1===this.isEdit?this.listGroup=[{Ids:"",isAdminToView:!0,isAdminOfGroupPassages:!1,isAdminOfGatePassages:!1,isAdminOfRemoteUnlock:!1}]:this.changeData())}},methods:{clickSaveGroup:function(){var e=this.$refs.formGroup.validate();e&&this.$emit("clickSaveGroup",{groupName:this.groupNameValue,detail:this.detailValue,dataUserId:this.userIdValue,dataGateId:this.gateValue,dataTime:this.inputTime,listGroup:this.listGroup})},clickUpdateGroup:function(){var e=this.$refs.formGroup.validate();e&&this.$emit("clickUpdateGroup",{groupName:this.groupNameValue,detail:this.detailValue,dataUserId:this.userIdValue,dataGateId:this.gateValue,dataTime:this.inputTime,groupId:this.groupDetail.groupId,groupDetail:this.groupDetail,deleteData:this.deleteData,listGroup:this.listGroup})},setValue:function(e){var t=JSON.parse(JSON.stringify(e));console.log("obj",t),""!==t.name&&(this.groupNameValue=t.name),this.detailValue=""},toggleUser:function(){var e=this;this.$nextTick((function(){Object.keys(e.userIdValue).length===Object.keys(e.dataAllUses).length?e.userIdValue=[]:e.userIdValue=e.dataAllUses.slice()}))},toggle:function(){var e=this;this.$nextTick((function(){Object.keys(e.gateValue).length===Object.keys(e.dataAllGates).length?e.gateValue=[]:e.gateValue=e.dataAllGates.slice()}))},deleteTime:function(e){console.log(e);for(var t=0,a=Object.keys(this.dataTimeByGroup);t=0&&(this.dataAllow[t].disabled=!1),this.listGroup[e].disabled&&this.deleteData.push(this.listGroup[e].groupAdministratorId),this.listGroup.splice(parseInt(e),1)},changeData:function(){var e=this;this.dataAllow.map((function(e){return Object.assign(e,{disabled:!1})})),this.dataAllow.forEach((function(t,a){var s=e.listGroup.some((function(e){return e.Ids.value===t.value}));s&&(e.dataAllow[a].disabled=!0)}))},clickTimeSettings:function(){this.$emit("go-time-settings")},checkShow:function(e){return!e.disabled||this.dataAllow.some((function(t){return e.Ids.value===t.value}))}}}),Aw=Gw,Rw=(a("1640"),a("00bc"),Object(I["a"])(Aw,Lw,Dw,!1,null,"4efef0e0",null)),Tw=Rw.exports;C()(Rw,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCheckbox:Lr["a"],VCol:Dr["a"],VCombobox:Sf["a"],VContainer:Zo["a"],VForm:Nl["a"],VIcon:Gr["a"],VOverlay:Wg["a"],VProgressCircular:Hu["a"],VRow:Kr["a"],VSpacer:Qo["a"],VSubheader:Yr["a"],VTooltip:oo["a"]});var Ew=f["a"].extend({name:"GroupAddTemplate",components:{GroupAddForm:Tw,Breadcrumbs:cn},props:{authority:{type:Object,default:{}},gateItems:{type:Array,default:function(){return[]}},userItems:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!0},isGetGroup:{type:Boolean,default:!0},expand:{type:Number,default:0},GateSubmittedFail:{default:[]},administratorsAddFail:{default:[]},UserSubmittedFail:{default:[]},isEdit:{type:Boolean,default:!0},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},groupDetail:{type:Object,default:[]},dataAllUses:{default:[]},dataAllGates:{default:[]},dataAllTimes:{default:[]},isDisabledGroupOptions:{type:Boolean,default:!0}},computed:{breadcrumbs:{get:function(){return[{text:"通行権限グループ",disabled:!0},{text:this.isEdit?"通行権限グループ編集":"新規通行権限グループ登録",disabled:!0}]}}}}),Ow=Ew,Vw=Object(I["a"])(Ow,Pw,Mw,!1,null,null,null),Uw=Vw.exports;C()(Vw,{VCol:Dr["a"],VContainer:Zo["a"]});var $w=nr["a"].extend({name:"GroupAddPage",components:{GroupAddTemplate:Uw},data:function(){return{loadingCircle:0,textCircle:"",gateItems:[],userItems:[],dataTimeByGroup:[],loading:!1,successMessageLogs:"",errorMessageLogs:"",isEdit:!1,groupDetail:{groupId:"",groupName:"",isValid:!0,passableTimeSettingId:"",passableTimeSetting:{passableTimeSettingId:"",name:"",isDefault:!0,timeSettings:[]},groupAdministrators:[]},dataAllUses:[],dataAllGates:[],groupId:"",dataAllTimes:[],expand:0,gateItemsOrigin:[],userItemsOrigin:[],isFinishGetData:0,timeDefault:"",UserSubmittedFail:[],GateSubmittedFail:[],gateGroupOptions:[],administratorsAddFail:[],isDisabledGroupOptions:!1,authority:er.state.auth,isGetGroup:!1}},watch:{loading:function(e){this.$emit("loading",e),!1===e&&(this.loadingCircle=0,this.textCircle="")},loadingCircle:function(e){this.$emit("loadingCircle",e>=100?100:e)},textCircle:function(e){this.$emit("textCircle",e)},isFinishGetData:function(e){e>=5&&(this.loading=!1,this.isGetGroup=!1)}},mounted:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.successMessageLogs="",e.errorMessageLogs="",e.getAllGates(1),e.getAllPassable(1),a=localStorage.getItem("groupId"),s=localStorage.getItem("isEdit"),e.dataAllUses=[],e.isGetGroup=!0,"true"!==s){t.next=20;break}return e.isEdit=!0,t.next=12,e.getGroupDetail(a);case 12:return t.next=14,e.getGroupAuth(a);case 14:e.getUserByGroupId(1,a),e.getGateByGroupId(1,a),e.getGroupAdministrators(1),e.isFinishGetData>=5&&(e.loading=!1,e.isGetGroup=!1),t.next=23;break;case 20:e.isFinishGetData+=2,e.getGroupAdministrators(1),e.isEdit=!1;case 23:localStorage.setItem("isEdit","false");case 24:case"end":return t.stop()}}),t)})))()},methods:{getGroupAuth:function(e){var t=this;return this.isDisabledGroupOptions=!0,new Promise((function(a,s){t.$http.get(Se+"?limit=1000&groupId="+e+"&embed=user").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.groupDetail.groupAdministrators=s.body.groupAdministrators,t.groupDetail.groupAdministratorsOri=s.body.groupAdministrators,t.isDisabledGroupOptions=!1,a(!0);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){t.isDisabledGroupOptions=!1,a(!1)}))}))},clickBackGroup:function(e){this.$emit("deleteBridgeProperty",e)},changeExpanded:function(e){this.loading=!0,void 0!==e.item.passableTimeSettingId&&""!==e.item.passableTimeSettingId?(this.getAllPassableById(e.item.passableTimeSettingId),this.loading=!1):(this.loading=!1,this.expand++)},getGroupDetail:function(e){var t=this;return new Promise((function(a,s){var r=H+"?groupId="+encodeURIComponent(e);t.$http.get(r).then((function(e){t.resetData(),!t.isEmpty(e.body.groups)&&e.body.groups.length>0?t.groupDetail=e.body.groups[0]:t.errorMessageLogs=ba,a(!0)})).then(null,(function(e){switch(t.resetData(),console.log("err: ",e),a(!1),e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))}))},getAllUsers:function(e){var t=this;this.$http.get(T+"?limit=1000&page="+e+"&sortKey=desc:userId&isExceptOptionalUser=true&isValid=true&exclude=thumbnail").then((function(a){a.body.maxRecords>0?(a.body.users.forEach((function(e){t.dataAllUses.push({text:e.name,value:e.userId})})),a.body.maxRecords>a.body.endRecord?t.getAllUsers(e+1):++t.isFinishGetData):(t.dataAllUses=[],++t.isFinishGetData)})).then(null,(function(e){console.log("err: ",e),++t.isFinishGetData}))},getGroupAdministrators:function(e){var t=this;if("true"===localStorage.isCustomUserAuthorityService){1===e&&(this.dataAllUses=[]);var a=Ne+"?limit=10000&page="+e+"&isExceptOptionalUser=true&isValid=true&exclude=thumbnail";this.$http.get(a).then(function(){var a=Object(or["a"])(regeneratorRuntime.mark((function a(s){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s.body.maxRecords>0?(s.body.users.forEach((function(e){!1===e.isAdmin&&t.dataAllUses.push({text:e.name,value:e.userId})})),++t.isFinishGetData,s.body.maxRecords>s.body.endRecord?(e++,t.getGroupAdministrators(e)):++t.isFinishGetData):++t.isFinishGetData;case 1:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),++t.isFinishGetData}))}else++this.isFinishGetData},getAllGates:function(e){var t=this;this.$http.get(Fe+"?limit=1000&page="+e+"&sortKey=desc:registered&isExceptOptionalGate=true&isValid=true").then((function(a){a.body.maxRecords>0?(a.body.gates.forEach((function(e){t.dataAllGates.push({text:e.gateName,value:e.gateId,gateModelCode:e.gateModelCode})})),a.body.maxRecords>a.body.endRecord?t.getAllGates(e+1):++t.isFinishGetData):(t.dataAllGates=[],++t.isFinishGetData)})).then(null,(function(e){console.log("err: ",e),++t.isFinishGetData}))},getUserByGroupId:function(e,t){this.isFinishGetData+=1},getGateByGroupId:function(e,t){var a=this;this.$http.get(Y+"?groupId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&sortKey=desc:gateId&embed=gate&isExceptOptionalGate=true").then((function(s){s.body.maxRecords>0?(s.body.relationsGateGroup.forEach((function(e){null!==e.gate&&void 0!==e.gate&&(a.gateItems.push({text:e.gate.name,value:e.gate.gateId,gateModelCode:e.gate.gateModelCode}),a.gateItemsOrigin.push({text:e.gate.name,value:e.gate.gateId,relationId:e.relationId}))})),s.body.maxRecords>s.body.endRecord?a.getGateByGroupId(e+1,t):++a.isFinishGetData):(a.gateItems=[],a.gateItemsOrigin=[],++a.isFinishGetData)})).then(null,(function(e){console.log("err: ",e),++a.isFinishGetData}))},getAllPassableById:function(e){var t=this,a=W+"?passableTimeSettingId="+encodeURIComponent(e);this.$http.get(a).then((function(e){t.groupDetail.passableTimeSetting=e.body.passableTimeSettings[0],t.expand++})).then(null,(function(e){console.log("err: ",e)}))},getAllPassable:function(e){var t=this,a=W+"?limit=1000&page="+e;this.dataAllTimes=[],this.$http.get(a).then((function(a){a.body.maxRecords>0?(a.body.passableTimeSettings.forEach((function(e){t.dataAllTimes.push({text:e.name,value:e.passableTimeSettingId}),!0===e.isDefault&&(t.timeDefault=e.passableTimeSettingId)})),a.body.maxRecords>a.body.endRecord?t.getAllPassable(e+1):++t.isFinishGetData):(t.dataAllTimes=[],++t.isFinishGetData)})).then(null,(function(e){++t.isFinishGetData,console.log("err: ",e)}))},clickSaveGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return console.log("eventArgs",e),t.loading=!0,t.UserSubmittedFail=[],t.GateSubmittedFail=[],t.resetData(),t.loadingCircle=0,t.textCircle="通行権限グループ登録",a.next=9,t.postGroup(e);case 9:s=a.sent,s?(r=Math.round(100/e.dataUserId.length),o=Math.round(100/e.dataGateId.length),n=Math.round(100/e.listGroup.length),t.waitforme(100).then((function(){t.loadingCircle=100})).then((function(){return t.waitforme(1e3)})).then((function(){t.loadingCircle=0,t.textCircle="ゲート登録"})).then((function(){return t.postGatesGroup(e.dataGateId,t.groupId,o)})).then((function(){0===e.dataGateId.length&&(t.loadingCircle=100)})).then((function(){return t.waitforme(1e3)})).then((function(){})).then((function(){return t.postUsersGroup(e.dataUserId,t.groupId,r)})).then((function(){0===e.dataUserId.length&&(t.loadingCircle=100)})).then((function(){return t.waitforme(1e3)})).then((function(){t.loadingCircle=0,t.textCircle="通行権限グループ管理者登録"})).then((function(){return t.postGroupAdmin(e.listGroup,t.groupId,n)})).then((function(){0===e.dataUserId.length&&(t.loadingCircle=100)})).then((function(){return t.waitforme(500)})).then((function(){t.loading=!1}))):t.waitforme(100).then((function(){t.loadingCircle=100,t.loading=!1}));case 11:case"end":return a.stop()}}),a)})))()},postGroup:function(e){var t=this;return new Promise((function(a,s){var r,o=e.dataTime,n="";n=null!==o&&void 0!==o.value&&null!==o.value&&""!==o.value?o.value:t.timeDefault,r=""===n?{name:e.groupName,isValid:!0}:{name:e.groupName,isValid:!0,passableTimeSettingId:n},t.$http.post(H,r).then((function(e){"Success"===e.body.message?(t.successMessageLogs=Ua,t.$emit("success",!0),t.groupId=e.body.groupId,a(!0)):(t.$emit("success",!1),t.errorMessageLogs=ba,a(!1))})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:t.errorMessageLogs=ta;break;case 409:t.errorMessageLogs="入力された通行権限グループ名は既に使用されています。他の通行権限グループ名を入力してください。";break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a(!1)}))}))},postGroupAdmin:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function r(){var o,n,i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!(e.length>0)){r.next=17;break}o=Object(rr["a"])(e),r.prev=2,i=regeneratorRuntime.mark((function e(){var r,o,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=n.value,void 0===r.Ids.value||""===r.Ids.value||null===r.Ids.value){e.next=13;break}if(!r.disabled){e.next=11;break}if(o=s.groupDetail.groupAdministratorsOri.findIndex((function(e){return e.userId===r.Ids.value})),!(o>=0)){e.next=9;break}if(i=s.groupDetail.groupAdministratorsOri[o],i.isAdminOfGatePassages===r.isAdminOfGatePassages&&i.isAdminOfGroupPassages===r.isAdminOfGroupPassages&&i.isAdminOfRemoteUnlock===r.isAdminOfRemoteUnlock){e.next=9;break}return e.next=9,s.updateGroupAdministratorsItem(r,t);case 9:e.next=13;break;case 11:return e.next=13,s.addGroupAdministratorsItem(r,t);case 13:s.loadingCircle=s.loadingCircle+a;case 14:case"end":return e.stop()}}),e)})),o.s();case 5:if((n=o.n()).done){r.next=9;break}return r.delegateYield(i(),"t0",7);case 7:r.next=5;break;case 9:r.next=14;break;case 11:r.prev=11,r.t1=r["catch"](2),o.e(r.t1);case 14:return r.prev=14,o.f(),r.finish(14);case 17:case"end":return r.stop()}}),r,null,[[2,11,14,17]])})))()},updateGroupAdministratorsItem:function(e,t){var a=this;return new Promise((function(t,s){a.$http.put(Se+"/"+e.groupAdministratorId,{isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock}).then((function(s){"Success"===s.body.message?console.log("Success"):a.administratorsAddFail.push(e.Ids.text),t(!0)})).then(null,(function(s){a.administratorsAddFail.push(e.Ids.text),t(!0)}))}))},addGroupAdministratorsItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Se,{userId:e.Ids.value,groupId:t,isAdminOfGroupPassages:e.isAdminOfGroupPassages,isAdminOfGatePassages:e.isAdminOfGatePassages,isAdminOfRemoteUnlock:e.isAdminOfRemoteUnlock}).then((function(t){"Success"===t.body.message?console.log("Success"):a.administratorsAddFail.push(e.Ids.text),s(!0)})).then(null,(function(t){a.administratorsAddFail.push(e.Ids.text),s(!0)}))}))},deleteData:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r,o,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(e.deleteData.length>0)){s.next=19;break}r=Object(rr["a"])(e.deleteData),s.prev=2,r.s();case 4:if((o=r.n()).done){s.next=11;break}return n=o.value,s.next=8,a.deleteGroupAdministratorsItem(n);case 8:a.loadingCircle=a.loadingCircle+t;case 9:s.next=4;break;case 11:s.next=16;break;case 13:s.prev=13,s.t0=s["catch"](2),r.e(s.t0);case 16:return s.prev=16,r.f(),s.finish(16);case 19:case"end":return s.stop()}}),s,null,[[2,13,16,19]])})))()},deleteGroupAdministratorsItem:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Se+"/"+e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},postUsersGroup:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function r(){var o,n,i,l;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!(e.length>0)){r.next=20;break}o=Object(rr["a"])(e),r.prev=2,o.s();case 4:if((n=o.n()).done){r.next=12;break}return i=n.value,l={userId:i.value,groupId:t},r.next=9,s.postUsersGroupItem(l,i.text);case 9:s.loadingCircle=s.loadingCircle+a;case 10:r.next=4;break;case 12:r.next=17;break;case 14:r.prev=14,r.t0=r["catch"](2),o.e(r.t0);case 17:return r.prev=17,o.f(),r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[2,14,17,20]])})))()},postUsersGroupItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(q,e).then((function(e){"Success"===e.body.message?console.log("Success"):a.UserSubmittedFail.push(t),s(!0)})).then(null,(function(e){console.log("err: ",e),a.UserSubmittedFail.push(t),s(!0)}))}))},postGatesGroup:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function r(){var o,n,i,l;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!(e.length>0)){r.next=20;break}o=Object(rr["a"])(e),r.prev=2,o.s();case 4:if((n=o.n()).done){r.next=12;break}return i=n.value,l={gateId:i.value,groupId:t},r.next=9,s.postGatesGroupItem(l,i.text);case 9:s.loadingCircle=s.loadingCircle+a;case 10:r.next=4;break;case 12:r.next=17;break;case 14:r.prev=14,r.t0=r["catch"](2),o.e(r.t0);case 17:return r.prev=17,o.f(),r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[2,14,17,20]])})))()},postGatesGroupItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Y,e).then((function(e){"Success"===e.body.message?console.log("Success"):a.GateSubmittedFail.push(t),s(!0)})).then(null,(function(e){console.log("err: ",e),a.GateSubmittedFail.push(t),s(!0)}))}))},waitforme:function(e){return new Promise((function(t,a){setTimeout((function(){t()}),e)}))},clickUpdateGroup:function(e){var t=this;this.loading=!0,this.resetData(),this.GateSubmittedFail=[],this.UserSubmittedFail=[],console.log("eventArgs",e);var a=e.dataGateId,s=this.gateItemsOrigin,r=e.dataUserId,o=this.userItemsOrigin,n=s.filter((function(e){return!a.some((function(t){return e.value===t.value}))})),i=a.filter((function(e){return!s.some((function(t){return e.value===t.value}))})),l=o.filter((function(e){return!r.some((function(t){return e.value===t.value}))})),c=r.filter((function(e){return!o.some((function(t){return e.value===t.value}))}));console.log(l),console.log("deGateData",n);var u=Math.round(100/(l.length+c.length)),d=Math.round(100/(n.length+i.length)),g=Math.round(100/(e.listGroup.length+e.deleteData.length));this.loadingCircle=0,this.textCircle="通行権限グループ登録",this.putGroup(e).then((function(){return t.waitforme(100)})).then((function(){t.loadingCircle=100})).then((function(){return t.waitforme(1e3)})).then((function(){t.loadingCircle=0,t.textCircle="ゲート登録"})).then((function(){return t.delGateGroup(n,d)})).then((function(){return t.postGatesGroup(i,e.groupId,d)})).then((function(){n.length+i.length===0&&(t.loadingCircle=100)})).then((function(){return t.waitforme(1e3)})).then((function(){})).then((function(){return t.delUserGroup(l,u)})).then((function(){return t.postUsersGroup(c,e.groupId,u)})).then((function(){t.loadingCircle=0,t.textCircle="通行権限グループ管理者登録"})).then((function(){return t.deleteData(e,g)})).then((function(){return t.postGroupAdmin(e.listGroup,e.groupId,g)})).then((function(){e.deleteData.length+e.listGroup.length===0&&(t.loadingCircle=100),t.groupDetail.groupAdministrators=[],t.groupDetail.groupAdministratorsOri=[]})).then((function(){return t.waitforme(500)})).then((function(){return t.getGroupAuth(e.groupId)})).then((function(){t.loading=!1})).then((function(){t.gateItemsOrigin=[],t.userItemsOrigin=[],t.userItems=[],t.gateItems=[],t.getUserByGroupId(1,e.groupId),t.getGateByGroupId(1,e.groupId)}))},delUserGroup:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r,o,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(e.length>0)){s.next=19;break}r=Object(rr["a"])(e),s.prev=2,r.s();case 4:if((o=r.n()).done){s.next=11;break}return n=o.value,s.next=8,a.delUserGroupItem(n.groupPassageId,n.text);case 8:a.loadingCircle=a.loadingCircle+t;case 9:s.next=4;break;case 11:s.next=16;break;case 13:s.prev=13,s.t0=s["catch"](2),r.e(s.t0);case 16:return s.prev=16,r.f(),s.finish(16);case 19:case"end":return s.stop()}}),s,null,[[2,13,16,19]])})))()},delUserGroupItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.delete(q+"/"+encodeURIComponent(e)).then((function(e){"Success"===e.body.message?console.log("Success"):a.UserSubmittedFail.push(t),s(!0)})).then(null,(function(e){console.log("err: ",e),a.UserSubmittedFail.push(t),s(!0)}))}))},delGateGroup:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r,o,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(e.length>0)){s.next=19;break}r=Object(rr["a"])(e),s.prev=2,r.s();case 4:if((o=r.n()).done){s.next=11;break}return n=o.value,s.next=8,a.delGateGroupItem(n.relationId,n.text);case 8:a.loadingCircle=a.loadingCircle+t;case 9:s.next=4;break;case 11:s.next=16;break;case 13:s.prev=13,s.t0=s["catch"](2),r.e(s.t0);case 16:return s.prev=16,r.f(),s.finish(16);case 19:case"end":return s.stop()}}),s,null,[[2,13,16,19]])})))()},delGateGroupItem:function(e,t){var a=this;return new Promise((function(s,r){a.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(e){"Success"===e.body.message?console.log("Success"):a.GateSubmittedFail.push(t),s(!0)})).then(null,(function(e){console.log("err: ",e),a.GateSubmittedFail.push(t),s(!0)}))}))},putGroup:function(e){var t=this;return new Promise((function(a,s){var r,o=e.dataTime,n=e.groupId,i="";i=null!==o&&void 0!==o.value&&null!==o.value&&""!==o.value?o.value:t.timeDefault,r=""===i?{name:e.groupName}:{name:e.groupName,passableTimeSettingId:i},t.resetData(),t.$http.put(H+"/"+encodeURIComponent(n),r).then((function(e){"Success"===e.body.message?(t.successMessageLogs=$a,t.groupId=e.body.groupId,t.$emit("success",!0),a()):(t.errorMessageLogs=ba,t.$emit("success",!1),a())})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs=Qt;break;case 403:t.errorMessageLogs=ta;break;case 409:t.errorMessageLogs="入力された通行権限グループ名は既に使用されています。他の通行権限グループ名を入力してください。";break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}a()}))}))},resetData:function(){this.successMessageLogs="",this.errorMessageLogs=""},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}}}),Nw=$w,Fw=Object(I["a"])(Nw,Sw,_w,!1,null,null,null),jw=Fw.exports,Bw=f["a"].extend({name:"UsersAllowedTable",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,Searchbox:$r,ShowPerPage:mo,Pagination:xo,SelectPerPage:To,DisplayOption:Mo,TextLink:No,GroupAddPage:jw,Modal:bn},watch:{cardSelected:function(e){this.$emit("select-pcodes",e.map((function(e){return e.pCodeId})))},isFinishProcessEnable:function(e){e&&(this.cardSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))}},props:{typeItems:{type:Array,default:function(){return[]}},cardTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:100},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},dataList:{default:function(){return[]},type:Array},errorMessageLogs:{default:""},isFinishProcessEnable:{type:Boolean,default:!1},groupId:{type:String,default:""},authority:{type:Object,default:{}},passableName:{type:String,default:""}},mounted:function(){},computed:{headers:{get:function(){var e=[{text:"日付名",align:"start",sortable:!0,width:"50%",value:"dayTypeName"},{text:"設定時間",align:"start",sortable:!0,value:"settingTime"}];return e},set:function(){}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},data:function(){return{selectedDisplayOption:["name"],displayOptionItems:[],cardSelected:[],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataCard,isGroupEditModalShow:!1,isReloadData:!1}},methods:{CheckColumn:function(e){localStorage.setItem("displayOptionPCode",JSON.stringify(e))},convertDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD HH:mm")},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]")}}}),zw=Bw,Hw=(a("fdbe"),Object(I["a"])(zw,ww,kw,!1,null,null,null)),Kw=Hw.exports;C()(Hw,{VBtn:pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var Yw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("div",{staticClass:"allig-reflection-card-table"},[a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{md:"4",xl:"3"}},[a("div",{staticClass:"area-search-box"})]),e._v(" "),a("v-col",[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("div",{staticClass:"text-center"},[a("v-col",{staticClass:"btn-add pt-0"},[!0===e.authority.isAdmin||!0===e.isAdminOfGatePassages?a("v-btn",{staticClass:"btn-second",attrs:{outlined:"",disabled:0===e.selectedItem.length},on:{click:function(t){e.itemDel=[],e.isConfirm=!0}}},[e._v("\n チェックした一時通行権限を削除する\n ")]):e._e()],1)],1)])],1)],1),e._v(" "),a("v-row",{staticClass:"ml-3",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{attrs:{"per-page":1e3,page:1,"items-length":e.dataRealtionsGateList.data.length}}),e._v(" "),a("v-spacer")],1)],1),e._v(" "),a("v-row",{staticClass:"btn-div pl-0",attrs:{justify:"end"}},[a("v-col",{staticClass:"pt-0",attrs:{sm:"12"}},[a("div",{staticClass:"round-data table-affiliation"},[a("div",[a("v-data-table",{staticClass:"border-table table-no-bg scroll-table customize-table-scroll table-time-of-group",attrs:{"mobile-breakpoint":0,"must-sort":"",headers:e.headers,items:e.dataRealtionsGateList.data,"items-per-page":25,"no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"","show-select":!0===e.authority.isAdmin||!0===e.isAdminOfGatePassages,dense:"","item-key":"passageId",loading:e.loading},scopedSlots:e._u([!1===e.authority.isAdmin&&!1===e.isAdminOfGatePassages?{key:"header.data-table-select",fn:function(t){var s=t.on,r=t.props;return[a("v-simple-checkbox",e._g(e._b({attrs:{color:"purple",disabled:""}},"v-simple-checkbox",r,!1),s))]}}:null,!1===e.authority.isAdmin&&!1===e.isAdminOfGatePassages?{key:"item.data-table-select",fn:function(e){e.item;var t=e.isSelected,s=e.select;return[a("v-simple-checkbox",{attrs:{readonly:"",disabled:"","aria-readonly":"",value:t,ripple:!1},on:{input:function(e){return s(e)}}})]}}:null,{key:"item.userId",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.userId))])]}},{key:"item.icon",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[!0===e.authority.isAdmin||!0===e.isAdminOfGatePassages?a("v-btn",{attrs:{icon:"",al:""},on:{click:function(t){return e.deleteGateConfirm(s)}}},[a("v-icon",{staticClass:"gray--text",attrs:{"align-self":"ceb="}},[e._v("mdi-trash-can-outline")])],1):e._e()],1)]}},{key:"item.gateName",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.gate.text))])]}},{key:"item.time",fn:function(t){var s=t.item;return[a("span",[e._v(" "+e._s(e.formatDateTime(new Date(1e3*s.notBefore)))+" ~ "+e._s(e.formatDateTime(new Date(1e3*s.notAfter))))])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}},[e._v(" "),e._v(" "),e._v(" "),e._v(" "),e._v(" "),e._v(" "),!0===e.authority.isAdmin||!0===e.isAdminOfGatePassages?a("template",{slot:"body.prepend"},[a("tr",{staticClass:"mt-4"},[a("td"),e._v(" "),a("td",[a("v-autocomplete",{staticClass:"input-add",attrs:{items:e.gateList,"return-object":"",color:"green",outlined:"",dense:"","hide-details":"auto","no-data-text":""},model:{value:e.itemGate,callback:function(t){e.itemGate=t},expression:"itemGate"}})],1),e._v(" "),a("td",[a("DateTimePicker",{attrs:{errorAddListGate:e.errorAddListGate,isUserPage:!0,dateStartValue:e.dateStartGate,dateEndValue:e.dateEndGate,timeSValue:e.timeStartGate,timeEValue:e.timeEndGate},on:{getNewTimeStart:e.getNewTimeStart,getNewTimeEnd:e.getNewTimeEnd,getNewDateStart:e.getNewDateStart,getNewDateEnd:e.getNewDateEnd}})],1),e._v(" "),a("td",[a("v-autocomplete",{staticClass:"input-add",attrs:{items:e.userList,"return-object":"",color:"green",outlined:"",dense:"","hide-details":"auto","no-data-text":""},model:{value:e.itemUser,callback:function(t){e.itemUser=t},expression:"itemUser"}})],1),e._v(" "),a("td"),e._v(" "),a("td",{staticClass:"align-self-center"},[a("v-row",{attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{disabled:!(e.gateList.length>0),outlined:""},on:{click:function(t){return e.addGate()}}},[e._v("\n 追加\n ")])],1)],1)]),e._v(" "),""!==e.errorMessageLogs?a("tr",[a("td"),e._v(" "),a("td",{attrs:{colspan:"5"}},[a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorMessageLogs))])])]):e._e(),e._v(" "),""!==e.errorAddListGate&&""===e.errorGate&&""===e.errorTime&&""===e.errorMessageLogs?a("tr",[a("td",{attrs:{colspan:"5"}},[a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorAddListGate))])])]):e._e(),e._v(" "),""!==e.errorAddListGate||""===e.errorGate&&""===e.errorTime?e._e():a("tr",[a("td"),e._v(" "),a("td",[a("p",{staticClass:"error-special add hours"},[e._v(e._s(e.errorGate))])]),e._v(" "),a("td",[a("p",{staticClass:"error-special add end-time"},[e._v(e._s(e.errorTime))])]),e._v(" "),a("td"),e._v(" "),a("td"),e._v(" "),a("td")])]):e._e()],2)],1)])])],1),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"}),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.dataRealtionsGateList.total/25),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("チェックした一時通行権限を削除")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.dataGatePass.total>=0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.dataGatePass.progressLoad,callback:function(t){e.$set(e.dataGatePass,"progressLoad",t)},expression:"dataGatePass.progressLoad"}},[a("strong",[e._v(e._s(Math.round(e.dataGatePass.progressLoad))+"%")])]),e._v(" "),e.dataGatePass.successItem>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.dataGatePass.total)+"件中"+e._s(e.dataGatePass.successItem)+" "),"add"===e.type?a("span",[e._v("件を追加しました。")]):a("span",[e._v("件を削除しました。")])]):e._e(),e._v(" "),e.dataGatePass.errorMessage.length>0?a("div",[a("div",{staticClass:"error-box"},[e._l(e.dataGatePass.errorMessage,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.dataGatePass.isFinish?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeModalGate()}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:"チェックした一時通行権限を削除",text:"一時通行権限を削除します。",smallScreen:"600",className:"common-modal"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"削除"},on:{click:function(t){return e.deleteTemporaryPermission()}}})]},proxy:!0}]),model:{value:e.isConfirm,callback:function(t){e.isConfirm=t},expression:"isConfirm"}})],1)])},qw=[],Ww=f["a"].extend({name:"UserAddForm",components:{CancelButton:fr,SuccessButton:kr,InfoItem:Wr,InputForm:io,DateTimePicker:Jp,ShowPerPage:mo,ModalTitle:Xc,Modal:bn,Pagination:xo},props:{dataList:{default:function(){return[]}},dataGatePass:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1},gates:{type:Array,default:function(){return[]}},listGatePassages:{default:function(){return[]}},userList:{type:Array,default:function(){return[]}},gateList:{type:Array,default:function(){return[]}},isDisabledGateOption:{type:Boolean,default:!0},isDisabledPCodeOptions:{type:Boolean,default:!0},isDisabledGroupOptions:{type:Boolean,default:!0},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},gateGroupOptions:{type:Array,default:function(){return[]}},pCodeOptions:{type:Array,default:function(){return[]}},userInfo:{type:Object,default:function(){return{}}},phoneItems:{type:Array,default:function(){return[]}},groupsAddFail:{type:Array,default:function(){return[]}},pCodeAddFail:{type:Array,default:function(){return[]}},gateAddFail:{type:Array,default:function(){return[]}},authority:{type:Object,default:{}},dataRealtionsGateList:{type:Object,default:{}},isAdminOfGatePassages:{type:Boolean,default:!0}},created:function(){this.$emit("getListGate")},mounted:function(){},computed:{headers:{get:function(){var e=[];return e.push({text:"ゲート名",align:"start",sortable:!0,width:"12%",value:"gate.name"}),e.push({text:"時間",align:"start",value:"time"}),e.push({text:"ユーザーID",align:"start",sortable:!1,width:"10%",value:"userId"}),e.push({text:"ユーザー名",align:"start",sortable:!1,width:"10%",value:"userName"}),e.push({text:"",align:"center",sortable:!1,width:"50px",value:"icon"}),e},set:function(){}},innerPage:{get:function(){return this.dataRealtionsGateList.page},set:function(e){this.$emit("change-page",e)}}},data:function(){return{showProgress:!1,selectedItem:[],errorAddListGate:"",errorGate:"",errorTime:"",addItem:{index:0,item:""},type:"0",realtionsGateList:[],timeStartGate:"",timeEndGate:"",dateStartGate:"",dateEndGate:"",itemGate:[],itemUser:[],rulesValidate:{requiredUserId:function(e){return!!e||"ユーザーIDは必須です。"},validateUserId:function(e){var t=/^[a-zA-Z0-9@.!#$&*+/=?^_`{|}~-]{4,96}$/;return t.test(e)||"ユーザーIDは半角英数字で4文字以上96文字以内で設定してください。"},validateFurigana:function(e){return null===e||void 0===e||""===e||(e.length<=64||"ふりがなは64文字以内で入力してください。")},validateOption1:function(e){return null===e||void 0===e||""===e||(e.length<=64||"備考は64文字以内で入力してください。")},validateOption2:function(e){return null===e||void 0===e||""===e||(e.length<=64||"備考は64文字以内で入力してください。")},validateEmail:function(e){if(null!==e&&void 0!==e&&""!==e){var t=e.match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/);return!!t||"正しいメールアドレスを入力してください。"}return!0},validatePassword:function(e){var t=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*).{8,64}$/;return t.test(e)||"パスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください。"},validateNewPassword:function(e){if(null!==e&&void 0!==e&&""!==e){var t=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*).{8,64}$/;return t.test(e)||"パスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください。"}return!0},requiredName:function(e){return!!e||"ユーザー名は必須です。"},validateName:function(e){return null===e||void 0===e||""===e||(e.length<64||"ユーザー名は64文字以内で入力してください。")},validatePhone:function(e,t){if(t){var a=/^[0][0-9]{10}$/;return a.test(e)||"0から始まる-(ハイフン)無しの携帯電話番号を半角数字で11桁入力してください。"}return!0},validateConfirmPass:function(e,t){return e===t||"「新しいパスワード」と一致しません。"},validatePassCode:function(e){if(""!==e&&null!==e){var t=e.match(/^\d{4}$/);return!!t||"解錠時の二段階認証パスワードは半角数字で4文字入力してください。"}return!0}},authorityItems:[{text:"一般ユーザー",value:!1},{text:"管理者",value:!0}],isConfirm:!1,itemDel:[]}},watch:{loading:function(e){e?(this.errorAddListGate="",this.errorGate="",this.errorTime=""):""===this.errorMessageLogs&&(this.dateStartGate="",this.dateEndGate="",this.timeStartGate="",this.timeEndGate="",this.itemGate=[],this.itemUser=[])},selectedItem:function(e){},successMessageLogs:function(e){this.dateStartGate="",this.dateEndGate="",this.timeStartGate="",this.timeEndGate="",this.itemGate=[]}},methods:{closeModalGate:function(){this.showProgress=!1,this.selectedItem=[],this.$emit("load-gates",1)},deleteTemporaryPermission:function(){if(console.log("this.itemDel",this.itemDel),this.showProgress=!0,this.isConfirm=!1,this.selectedItem.length>0)this.$emit("remove-gate-pass",this.selectedItem);else{var e=[];e.push(this.itemDel),this.$emit("remove-gate-pass-item",e)}},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(console.log(e),e.sort((function(e,s){return"gateName"===t[0]?a[0]?s.gate.texto){var d={key:this.realtionsGateList.length+1,gate:this.itemGate,userId:this.itemUser.value,userName:this.itemUser.text,notBefore:this.formatTimestamp(this.dateStartGate+" "+this.timeStartGate),notAfter:this.formatTimestamp(this.dateEndGate+" "+this.timeEndGate)};this.$emit("add-gate",d)}else 0!==this.itemGate.length&&""!==this.itemGate.value||(this.errorGate="ゲートを指定してください。",this.errorAddListGate=""),n<=o&&""===this.errorAddListGate&&(this.errorTime=as),!1!==s&&!1!==r||""!==this.errorAddListGate||(this.errorTime="時間を指定してください。")}}}),Jw=Ww,Zw=(a("0e75"),a("2cf5"),Object(I["a"])(Jw,Yw,qw,!1,null,"092a7b4b",null)),Xw=Zw.exports;C()(Zw,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSimpleCheckbox:Kh["a"],VSpacer:Qo["a"]});var Qw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("group-list-modal-template",{attrs:{page:e.currPage,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,dataGroupsModal:e.dataGroupsModal,rowinErrDialog:e.rowinErrDialog,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,progress:e.progress,isFinishProcess:e.isFinishProcess,totalDataRowProcess:e.totalDataRowProcess,authority:e.authority,isEdit:e.isEdit,isGroupEditModalShow:e.isGroupEditModalShow,groupExpanedGate:e.groupExpanedGate,isReRenderGate:e.isReRenderGate,isRemoveGateSelected:e.isRemoveGateSelected,groupExpanedUser:e.groupExpanedUser,isReRenderUser:e.isReRenderUser,isRemoveUserSelected:e.isRemoveUserSelected},on:{changePage:function(t){return e.changePage(t)},changePerPage:function(t){return e.changePerPage(t)},"search-group":function(t){return e.searchGroup(t)},"click-groups-action":function(t){return e.clickGroupsAction(t)},"get-list-group-modal":e.getListGroupsModal,clickAddGroup:function(t){return e.clickAddGroup(t)},"click-group-detail":function(t){return e.clickGroupDetail(t)},ChangeProperty:function(t){return e.ChangeProperty(t)},clickEditGroup:e.clickEditGroup,"close-page-modal":function(t){return e.$emit("close-page-modal",t)},isLoad:function(t){return e.$emit("isLoad",t)},loading:function(t){return e.$emit("loading",t)},"go-time-settings":function(t){return e.$emit("go-time-settings",t)},"get-group-isValid":function(t){return e.getGroupIsValid(t)},loadingCircle:function(t){return e.$emit("loadingCircle",t)},textCircle:function(t){return e.$emit("textCircle",t)},"change-expanded-group":function(t){return e.changeExpandedGroup(t)},"change-page-gate":function(t){return e.changePageGate(t)},"change-page-user":function(t){return e.changePageUser(t)},"show-dialog-confirm":function(t){return e.showDialogConfirm(t)},closeModalProgress:function(t){return e.closeModalProgress(t)}}})},ek=[],tk=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-list-template"},[a("v-container",{staticStyle:{position:"relative"}},[a("div",{staticClass:"container-user pt-0"},[a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12"}},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[!0===e.authority.isAdmin?a("div",{staticClass:"text-center mr-1"},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){e.isLoad=!1,e.$emit("clickAddGroup")}}},[e._v("通行権限グループ登録")])],1)],1):e._e(),e._v(" "),!0===e.authority.isAdmin?a("div",{staticClass:"text-center mr-4"},[a("action-button",{attrs:{text:"アクション ▼","action-items":e.actionItems,disabled:0===e.selectedGroupIds.length},on:{"click-enable":function(t){return e.showDialogConfirm(0)},"click-disable":function(t){return e.showDialogConfirm(1)},"click-delete":function(t){return e.showDialogConfirm(2)}}},[e._v("\n >\n ")])],1):e._e()])],1),e._v(" "),a("v-col",{staticClass:"pb-0",attrs:{cols:"12"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",[a("searchbox",{staticClass:"input-search btn-user-search",attrs:{disabled:e.dataGroupsModal.loading,searchTargetItems:e.searchTargetItems,title:"通行権限グループを検索"},on:{search:function(t){return e.$emit("search-group",t)}}})],1)],1)],1)])],1)],1),e._v(" "),a("group-list-modal-table",{attrs:{authority:e.authority,dataGroupsModal:e.dataGroupsModal,loading:e.dataGroupsModal.loading,page:e.page,perPage:e.perPage,groupExpanedGate:e.groupExpanedGate,isReRenderGate:e.isReRenderGate,groupExpanedUser:e.groupExpanedUser,isReRenderUser:e.isReRenderUser,isRemoveGateSelected:e.isRemoveGateSelected,isRemoveUserSelected:e.isRemoveUserSelected},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"click-group-detail":function(t){return e.$emit("click-group-detail",t)},"change-page":function(t){return e.$emit("changePage",t)},"get-group-isValid":function(t){return e.$emit("get-group-isValid",t)},"select-groups":function(t){e.selectedGroupIds=t},clickEditGroup:e.clickEditGroup,"change-page-gate":function(t){return e.$emit("change-page-gate",t)},"change-page-user":function(t){return e.$emit("change-page-user",t)},"show-dialog-confirm":function(t){return e.isDialogConfirm(t)},"change-expanded-group":function(t){return e.$emit("change-expanded-group",t)},"isValid-confirm":function(t){return e.showItemConfirm(t)}}})],1)]),e._v(" "),a("Modal",{attrs:{title:e.textTitle(),smallScreen:"800px",text:e.textAction(),className:"common-modal"},on:{close:function(t){return e.closeDialogConfirm()}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.clickGroupsAction()}}})]},proxy:!0}]),model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(e._s(e.textTitle()))]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+e._s(e.successLabel()))]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("div",{staticClass:"error-box"},e._l(e.errorMessageProcess,(function(t){return a("p",{key:t,domProps:{innerHTML:e._s(t)}})})),0)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.closeModalProgress()}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:e.isEdit?"通行権限グループ編集":"新規通行権限グループ登録 ","no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:function(t){return e.deleteBridgeProperty(e.isLoad)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isModalShow?a("GroupAddPage",{on:{success:function(t){return e.isSuccess(t)},"go-time-settings":function(t){return e.$emit("go-time-settings",t)},deleteBridgeProperty:function(t){return e.deleteBridgeProperty(t)},loading:function(t){return e.$emit("loading",t)},loadingCircle:function(t){return e.$emit("loadingCircle",t)},textCircle:function(t){return e.$emit("textCircle",t)}}}):e._e()]},proxy:!0}]),model:{value:e.isModalShow,callback:function(t){e.isModalShow=t},expression:"isModalShow"}})],1)},ak=[],sk=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-table mt-2"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-8",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.dataGroupsModal.total}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-checkbox",{staticClass:"text-caption-checkbox mr-10",attrs:{label:"有効な通行権限グループのみ表示",color:"green",dense:"","hide-details":"",disabled:e.dataGroupsModal.loading},model:{value:e.showValid,callback:function(t){e.showValid=t},expression:"showValid"}}),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption mr-4",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),e.showOption?a("v-row",{staticClass:"pt-0 pb-0 mt-0"},[a("v-container",{staticClass:"pt-0"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.dataGroupsModal.loading,isVaildOnly:e.isVaildOnly,isVaildOnlyShow:!1},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},input:function(t){return e.CheckColumn(t)}},model:{value:e.selectedDisplayOption,callback:function(t){e.selectedDisplayOption=t},expression:"selectedDisplayOption"}})],1)],1):e._e(),e._v(" "),a("v-row",{staticClass:"pa-3 pt-0 mt-0"},[a("v-col",{staticClass:"pt-0",attrs:{sm:"12"}},[a("div",{staticClass:"table-affiliation"},[a("v-data-table",{staticClass:"border-table scroll-table table-no-bg customize-table-scroll",attrs:{"mobile-breakpoint":0,"must-sort":"",headers:e.headers,items:e.dataGroupsModal.data,"items-per-page":e.perPage,"item-key":"groupId","no-data-text":"データーはありません",loading:e.dataGroupsModal.loading,"loading-text":"データを読み込中です","hide-default-footer":"","show-select":!0===e.authority.isAdmin,"custom-sort":e.customSort,isGroupEditModalShow:e.isGroupEditModalShow,expanded:e.expanded,"show-expand":"","single-expand":""},on:{"item-expanded":function(t){return e.$emit("change-expanded-group",t)},"update:expanded":function(t){e.expanded=t}},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.name},on:{click:function(t){return e.$emit("click-group-detail",s)}}})]}},{key:"item.data-table-expand",fn:function(t){var s=t.expand,r=t.item,o=t.isExpanded;return[a("v-tooltip",{attrs:{bottom:"",disabled:o},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,i=t.attrs;return[a("v-btn",e._g(e._b({attrs:{color:"white",elevation:"0"},on:{click:function(e){return s(!o)}}},"v-btn",i,!1),n),[a("span",{staticClass:"item-count"},[a("v-icon",[e._v("mdi-account")]),e._v("\n "+e._s(r.userCount)+"\n ")],1),e._v(" "),a("span",{staticClass:"mr-5 item-count"},[a("v-icon",[e._v("mdi-door")]),e._v("\n "+e._s(r.gateCount)+"\n ")],1)])]}}],null,!0)},[e._v(" "),a("span",[e._v("通行権限グループ内容を開く")])]),e._v(" "),a("transition",{attrs:{name:"expand-icon"}},[o?a("v-icon",[e._v("mdi-chevron-down")]):e._e()],1)]}},{key:"item.registered",fn:function(t){var s=t.item;return[a("span",[e._v(e._s(e.convertDate(s.registered)))])]}},{key:"item.isValid",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isValid?"有効":"無効")+"\n ")]}},e.authority.isAdmin?{key:"item.icons",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){e.$emit("isValid-confirm",{data:[s.groupId],type:!0===s.isValid?1:0})}}},"v-btn",o,!1),r),[s.isValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-account-multiple-check")]):a("v-icon",[e._v("mdi-account-multiple-outline")])],1)]}}],null,!0)},[e._v("\n "+e._s(s.isValid?"有効":"無効")+"\n ")]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditGroup",s.groupId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("通行権限グループ編集")])])]}}:null,{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{staticClass:"pt-5",attrs:{colspan:s.length}},[a("gate-of-group-table",{attrs:{authority:e.authority,groupExpanedGate:e.groupExpanedGate,groupId:r.groupId,isReRenderGate:e.isReRenderGate,isRemoveGateSelected:e.isRemoveGateSelected},on:{"change-page-gate":function(t){return e.$emit("change-page-gate",t)},"show-dialog-confirm":function(t){return e.$emit("show-dialog-confirm",t)}}}),e._v(" "),a("user-of-group-table",{attrs:{authority:e.authority,groupExpanedUser:e.groupExpanedUser,groupId:r.groupId,isReRenderUser:e.isReRenderUser,isRemoveUserSelected:e.isRemoveUserSelected},on:{"change-page-user":function(t){return e.$emit("change-page-user",t)},"show-dialog-confirm":function(t){return e.$emit("show-dialog-confirm",t)}}})],1)]}}],null,!0),model:{value:e.groupSelected,callback:function(t){e.groupSelected=t},expression:"groupSelected"}})],1)])],1),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.dataGroupsModal.total,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.dataGroupsModal.total/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},rk=[],ok=f["a"].extend({name:"GroupListTable",components:{ShowPerPage:mo,Pagination:xo,DisplayOption:Mo,SelectPerPage:To,TextLink:No,GateOfGroupTable:kI,UserOfGroupTable:DI},props:{loading:{type:Boolean,default:!1},page:{type:Number,default:1},perPage:{type:Number,default:25},dataGroupsModal:{type:Object,default:{}},isGroupEditModalShow:{type:Boolean,default:!1},authority:{type:Object,default:{}},groupExpanedGate:{default:[]},isReRenderGate:{default:0},groupExpanedUser:{default:[]},isReRenderUser:{default:0},isRemoveGateSelected:{default:0},isRemoveUserSelected:{default:0}},mounted:function(){"undefined"===typeof localStorage.displayOptionGroupModal?localStorage.setItem("displayOptionGroupModal",JSON.stringify(this.selectedDisplayOption)):this.selectedDisplayOption=JSON.parse(localStorage.displayOptionGroupModal)},watch:{groupSelected:function(e){this.$emit("select-groups",e.map((function(e){return e.groupId})))},isRemoveGroupSelected:function(e){this.groupSelected=[]},loading:function(e){!1===e&&(this.groupSelected=[])},selectedDisplayOption:function(e){localStorage.setItem("displayOptionGroupModal",JSON.stringify(e))}},data:function(){return{expanded:[],groupSelected:[],selectedDisplayOption:["name","gateCount","userCount"],displayOptionItems:[{label:"通行権限グループ名",value:"name",isDisabled:!0},{label:"通行可能時間名",value:"passableTimeSettingName",isDisabled:!1},{label:"登録日",value:"registered",isDisabled:!1},{label:"ステータス",value:"isValid",isDisabled:!1}],isVaildOnly:"true"===localStorage.isVaildDataGroup,showOption:!1,isValid:!0}},computed:{headers:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!0,value:"name"}];return this.selectedDisplayOption.includes("passableTimeSettingName")&&e.push({text:"通行可能時間名",align:"start",sortable:!0,value:"passableTimeSetting.name"}),this.selectedDisplayOption.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!0,value:"registered"}),this.selectedDisplayOption.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!0,value:"isValid"}),e.push({text:"ユーザー数/ゲート数",align:"center",width:"200px",sortable:!1,value:"data-table-expand"}),e.push({text:"",align:"end",sortable:!1,width:"150px",value:"icons"}),e}},innerPage:{get:function(){return this.page},set:function(e){this.expanded=[],this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.expanded=[],this.$emit("change-per-page",e)}},showValid:{get:function(){return this.isValid},set:function(e){this.$emit("get-group-isValid",e)}}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){if("passableTimeSetting.name"===t[0]){var r=void 0!==e.passableTimeSetting?e.passableTimeSetting.name:"",o=void 0!==s.passableTimeSetting?s.passableTimeSetting.name:"";return a[0]?o0)){a.next=21;break}r=s.body.groupAdministrators,[],o=0;case 4:if(!(os.body.endRecord?(e++,t.getListGroupUserLogin(e)):t.dataGroupsModal.loading=!1,a.next=22;break;case 21:t.dataGroupsModal.loading=!1;case 22:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),t.dataGroupsModal.loading=!1}))},getGroupDetail:function(e){var t=this;return new Promise((function(a,s){var r=H+"?groupId="+encodeURIComponent(e.groupId)+"&isExceptOptionalGate=true";"true"===localStorage.isVaildDataGroupModal&&(r+="&isValid=true"),t.$http.get(r).then((function(s){var r=t.dataGroupsModal.dataOri.findIndex((function(t){return t.groupId===e.groupId}));r>=0&&(t.dataGroupsModal.dataOri[r]=s.body.groups[0],t.dataGroupsModal.dataOri[r].isData=!0),a(!0)})).then(null,(function(e){a(!1)}))}))},getListGroups:function(){var e=this;this.dataGroupsModal.loading=!0;var t=H+"?limit="+localStorage.pageSizeGroupModal+"&page="+this.currPage+"&sortKey="+localStorage.groupModalSortName+":"+localStorage.groupModalSortKey;null!==this.keyword&&void 0!==this.keyword&&""!==this.keyword&&(t+="&keyword="+this.keyword+"&scorp="+this.scorp),"true"===localStorage.isVaildDataGroupModal&&(t+="&isValid=true"),t+="&embed=passableTimeSetting&isExceptOptionalGate=true",this.$http.get(t).then((function(t){e.isEmpty(t.body.groups)?(e.dataGroupsModal.total=0,e.currPage=1,e.dataGroupsModal.loading=!1):(e.dataGroupsModal.data=t.body.groups,e.dataGroupsModal.total=t.body.maxRecords,e.currPage=Math.ceil(t.body.startRecord/e.perPage),e.dataGroupsModal.loading=!1),e.dataGroupsModal.loading=!1})).then(null,(function(t){switch(e.dataGroupsModal.loading=!1,e.dataGroupsModal.data=[],t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},clickGroupsAction:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.rowinErrDialog=0,t.errorMessageProcess=[],t.successItemProcess=0,t.progress=0,t.isFinishProcess=!1,s=e.typeAction>2?t.dataAction:e.data,t.totalDataRowProcess=s.length,r=100/t.totalDataRowProcess,o=Object(rr["a"])(s),a.prev=9,o.s();case 11:if((n=o.n()).done){a.next=56;break}if(i=n.value,l=void 0,0!==e.typeAction){a.next=20;break}return a.next=17,t.enableOrDisableGroup(i,!0);case 17:l=a.sent,a.next=52;break;case 20:if(1!==e.typeAction){a.next=26;break}return a.next=23,t.enableOrDisableGroup(i,!1);case 23:l=a.sent,a.next=52;break;case 26:if(2!==e.typeAction){a.next=42;break}return c=void 0,u=void 0,a.next=31,t.deleteGroup(i);case 31:if(c=a.sent,!c){a.next=40;break}return a.next=35,t.deleteRelationGateGroup(i);case 35:if(u=a.sent,!u){a.next=40;break}return a.next=39,t.putGroup(i);case 39:l=a.sent;case 40:a.next=52;break;case 42:if(3!==e.typeAction){a.next=48;break}return a.next=45,t.removeGateFromGroup(i.relationId,i.gate.gateId);case 45:l=a.sent,a.next=52;break;case 48:if(4!==e.typeAction){a.next=52;break}return a.next=51,t.removeUserFromGroup(i.groupPassageId,i.user.userId);case 51:l=a.sent;case 52:l&&t.successItemProcess++,t.progress+=r;case 54:a.next=11;break;case 56:a.next=61;break;case 58:a.prev=58,a.t0=a["catch"](9),o.e(a.t0);case 61:return a.prev=61,o.f(),a.finish(61);case 64:t.isFinishProcess=!0;case 65:case"end":return a.stop()}}),a,null,[[9,58,61,64]])})))()},enableOrDisableGroup:function(e,t){var a=this;return new Promise((function(s){var r={isValid:t};a.$http.put(H+"/"+encodeURIComponent(e),r).then((function(e){console.log(e),s(!0)})).then(null,(function(t){var r="";switch(t.status){case 400:r="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:r="Unauthorized"===t.message?ta:ia;break;case 404:r="groupIdが存在しない。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.errorMessageLogs="",this.successMessageLogs="",this.dataGroupsModal={dataOri:[],data:[],total:0,loading:!1}},clickAddGroup:function(e){this.isGroupEditModalShow=!0,localStorage.setItem("isEdit","false"),this.isEdit=!1},ChangeProperty:function(e){this.isGroupEditModalShow=!1,e&&this.getListGroupsModal()},clickEditGroup:function(e){this.isGroupEditModalShow=!0,localStorage.setItem("isEdit","true"),this.isEdit=!0},getGroupIsValid:function(e){localStorage.setItem("isVaildDataGroupModal",e.toString()),this.getListGroupsModal()},changeExpandedGroup:function(e){if(e.value){var t=e.item;this.groupExpanedGate=new Map;var a={isGetDataGate:!1,currPageGate:1,totalGateCount:0,data:[],errorMgs:""};this.groupExpanedGate.set(t.groupId,a),this.getGateOfGroup(t.groupId,1),this.groupExpanedUser=new Map;var s={isGetDataUser:!1,currPageUser:1,totalUserCount:0,data:[],errorMgs:""};this.groupExpanedUser.set(t.groupId,s),this.getUserOfGroup(t.groupId,1)}},getGateOfGroup:function(e,t){var a=this,s=this.groupExpanedGate.get(e);if(void 0!==s){s.isGetDataGate=!0,s.currPageGate=t,this.reRenderGate();var r=Y+"?groupId="+encodeURIComponent(e)+"&limit=25&page="+t+"&sortKey=desc:gateId&embed=gate&isExceptOptionalGate=true";this.$http.get(r).then((function(e){e.body.maxRecords>0&&!a.isEmpty(e.body.relationsGateGroup)?(s.totalGateCount=e.body.maxRecords,s.currPageGate=Math.ceil(e.body.startRecord/25),s.data=e.body.relationsGateGroup):(s.totalGateCount=0,s.currPageGate=1),s.isGetDataGate=!1,a.reRenderGate(),a.removegateSelected()})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t=ta;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s.errorMgs=t,s.isGetDataGate=!1,a.reRenderGate(),a.removegateSelected()}))}},changePageGate:function(e){this.getGateOfGroup(e.groupId,e.page)},getUserOfGroup:function(e,t){var a=this,s=this.groupExpanedUser.get(e);if(void 0!==s){s.isGetDataUser=!0,s.currPageUser=t,this.reRenderUser();var r=q+"?groupId="+encodeURIComponent(e)+"&limit=25&page="+t+"&sortKey=desc:userId&embed=user";this.$http.get(r).then((function(e){e.body.maxRecords>0&&!a.isEmpty(e.body.groupPassages)?(s.totalUserCount=e.body.maxRecords,s.currPageUser=Math.ceil(e.body.startRecord/25),s.data=e.body.groupPassages):(s.totalUserCount=0,s.currPageUser=1),s.isGetDataUser=!1,a.reRenderUser(),a.removeUserSelected()})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t=ta;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s.errorMgs=t,s.isGetDataUser=!1,a.reRenderUser(),a.removeUserSelected()}))}},changePageUser:function(e){this.getUserOfGroup(e.groupId,e.page)},reRenderGate:function(){this.isReRenderGate<100?this.isReRenderGate++:this.isReRenderGate=0},reRenderUser:function(){this.isReRenderUser<100?this.isReRenderUser++:this.isReRenderUser=0},removegateSelected:function(){this.isRemoveGateSelected<100?this.isRemoveGateSelected++:this.isRemoveGateSelected=0},removeUserSelected:function(){this.isRemoveUserSelected<100?this.isRemoveUserSelected++:this.isRemoveUserSelected=0},removeGroupSelected:function(){this.isRemoveGroupSelected<100?this.isRemoveGroupSelected++:this.isRemoveGroupSelected=0},showDialogConfirm:function(e){this.dataAction=[],this.dataAction=e.data,void 0!==e.groupId&&(this.groupIdAction=e.groupId)},removeGateFromGroup:function(e,t){var a=this;return new Promise((function(s){a.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(e){s(!0)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},removeUserFromGroup:function(e,t){var a=this;return new Promise((function(s){a.$http.delete(q+"/"+encodeURIComponent(e)).then((function(e){s(!0)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r="該当するグループがありません。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},closeModalProgress:function(e){if(this.successItemProcess>0)if(0===e||1===e||2===e)this.getListGroups();else if(3===e){this.removegateSelected();var t={isGetDataGate:!1,currPageGate:1,totalGateCount:0,data:[],errorMgs:""};this.groupExpanedGate.set(this.groupIdAction,t),this.getGateOfGroup(this.groupIdAction,1),this.getListGroups()}else if(4===e){this.removeUserSelected(),this.groupExpanedUser=new Map;var a={isGetDataUser:!1,currPageUser:1,totalUserCount:0,data:[],errorMgs:""};this.groupExpanedUser.set(this.groupIdAction,a),this.getUserOfGroup(this.groupIdAction,1),this.getListGroups()}},clickGroupDetail:function(e){console.log("data",e),localStorage.setItem("groupInfo",JSON.stringify(e)),localStorage.setItem("isLoad","1"),this.$emit("click-group-detail",e.groupId)},deleteGroup:function(e){var t=this;return new Promise((function(a){t.$http.get(q+"?groupId="+encodeURIComponent(e)).then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o,n,i,l,c;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(r.body.maxRecords>0)){s.next=23;break}n=Object(rr["a"])(r.body.groupPassages),s.prev=2,n.s();case 4:if((i=n.n()).done){s.next=12;break}return l=i.value,s.next=8,t.deleteGroupItem(l.groupPassageId);case 8:o=s.sent,o||a(!1);case 10:s.next=4;break;case 12:s.next=17;break;case 14:s.prev=14,s.t0=s["catch"](2),n.e(s.t0);case 17:return s.prev=17,n.f(),s.finish(17);case 20:a(!0),s.next=26;break;case 23:c=e+">>"+aa+"",t.$set(t.errorMessageProcess,++t.rowinErrDialog,c),a(!1);case 26:case"end":return s.stop()}}),s,null,[[2,14,17,20]])})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},deleteGroupItem:function(e){var t=this;return new Promise((function(a){t.$http.delete(q+"/"+encodeURIComponent(e)).then((function(s){if("Success"===s.body.message)a(!0);else{var r=e+">>"+ba+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,r),a(!1)}})).then(null,(function(s){var r="";switch(s.status){case 400:r="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},deleteRelationGateGroup:function(e){var t=this;return new Promise((function(a){t.$http.get(Y+"?groupId="+encodeURIComponent(e)+"&isExceptOptionalGate=true").then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o,n,i,l,c;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(r.body.maxRecords>0)){s.next=23;break}n=Object(rr["a"])(r.body.relationsGateGroup),s.prev=2,n.s();case 4:if((i=n.n()).done){s.next=12;break}return l=i.value,s.next=8,t.deleteRelationGateGroupItem(l.relationId);case 8:o=s.sent,o||a(!1);case 10:s.next=4;break;case 12:s.next=17;break;case 14:s.prev=14,s.t0=s["catch"](2),n.e(s.t0);case 17:return s.prev=17,n.f(),s.finish(17);case 20:a(!0),s.next=26;break;case 23:c=e+">>"+aa+"",t.$set(t.errorMessageProcess,++t.rowinErrDialog,c),a(!1);case 26:case"end":return s.stop()}}),s,null,[[2,14,17,20]])})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},deleteRelationGateGroupItem:function(e){var t=this;return new Promise((function(a){t.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(s){if("Success"===s.body.message)a(!0);else{var r=e+">>"+ba+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,r),a(!1)}})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},putGroup:function(e){var t=this;return new Promise((function(a){var s;s={isValid:!1},t.$http.put(H+"/"+encodeURIComponent(e),s).then((function(s){if("Success"===s.body.message)a(!0);else{var r=e+">>"+ba+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,r),a(!1)}})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r=ta;break;case 409:r="入力されたグループ名は既に使用されています。他のグループ名を入力してください。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))}}}),mk=pk,fk=Object(I["a"])(mk,Qw,ek,!1,null,null,null),hk=fk.exports,vk=f["a"].extend({name:"GroupListTemplate",components:{Searchbox:$r,SuccessButton:kr,GroupListTable:TI,Breadcrumbs:cn,ActionButton:Nn,GateListPage:Ab,UsersAllowedTable:uC,AffiliationAllowedTable:Cw,TimePeriodAllowed:Kw,TemporaryAccessAuthority:Xw,TextLink:No,GroupListModalPage:hk,GateListTable:nb,Modal:bn},props:{groupTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},departments:{type:Array,default:function(){return[]}},gateList:{type:Array,default:function(){return[]}},userList:{type:Array,default:function(){return[]}},groupList:{type:Array,default:function(){return[]}},dataGroups:{type:Array,default:function(){return[]}},dataGroup:{type:Object,default:function(){return{}}},dataRelationDepartmentGroup:{type:Object,default:function(){return{}}},dataGatePass:{type:Object,default:function(){return{}}},dataRelationUserGroup:{type:Object,default:function(){return{}}},optionDepartments:{type:Object,default:function(){return{}}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},errorMessageProcess:{default:[]},showProgress:{type:Boolean,default:!1},successItemProcess:{type:Number,default:0},totalDataRowProcess:{type:Number,default:0},progress:{type:Number,default:0},isFinishProcess:{type:Boolean,default:!1},typeAction:{type:Number,default:0},showConfirm:{type:Boolean,default:!1},groupExpanedGate:{default:[]},isReRenderGate:{default:0},groupExpanedUser:{default:[]},isReRenderUser:{default:0},isRemoveGateSelected:{default:0},isRemoveUserSelected:{default:0},isRemoveGroupSelected:{default:0},authority:{type:Object,default:{}},tabClicked:{type:Object,default:{}},loadingAff:{type:Boolean,default:!1}},data:function(){return{isShow:!1,isShowGate:!1,tab:0,searchTargetItems:[{label:"通行権限グループ名",value:"name",isDisabled:!0}],selectedGroupIds:[],actionItems:[{title:"ゲート",tabname:"tab1"},{title:"通行可能ユーザー",tabname:"tab2"},{title:"通行可能時間帯",tabname:"tab3"},{title:"一時通行権限",tabname:"tab4"}],groupItem:"",isLoading:!1,isLoadData:!1}},watch:{groupList:function(e){e.length>0&&(console.log("data",e.length),void 0!==localStorage.groupId1&&localStorage.prevRoute===at?(this.groupItem=localStorage.groupId1,localStorage.removeItem("groupId1"),localStorage.removeItem("prevRoute")):(console.log("data1",e.length),this.groupItem=""!==this.groupItem?this.groupItem:e[0].value,localStorage.setItem("groupId1",e[0].value),this.$emit("change-groupId",{tab:this.tab,groupId:this.groupItem})))}},computed:{breadcrumbs:{get:function(){return[{text:"ゲート/通行権限",disabled:!0},{text:"通行権限グループ一覧",link:!0,exact:!0,disabled:!1,to:{path:ft}},{text:"通行権限詳細",disabled:!0}]}}},methods:{clickGroupDetail:function(e){var t=this;this.groupItem="",this.isShow=!1,this.isShowGate=!1,setTimeout((function(){t.groupItem=e,localStorage.setItem("isLoad",""),t.$router.push({path:ft,query:{groupId:t.groupItem}})}),100)},changeGroupId:function(e){this.$router.push({path:ht,query:{groupId:e.toString()}})},loadGroupId:function(e){var t=this;this.isLoadData&&(this.groupItem="",setTimeout((function(){t.groupItem=e,t.$emit("load-groupId",{tab:t.tab,groupId:t.groupItem})}),100))},goTimeSettings:function(){this.isShow=!1,this.$router.push({path:Qe})},isShowGroup:function(){localStorage.setItem("isVaildDataGroupModal","false"),this.isShow=!0,this.isLoadData=!1},loadingFromChild:function(e){this.isLoading=e},closePageModal:function(e){this.isShow=!1,!0===e&&this.loadGroupId(this.groupItem)},getIsLoad:function(e){this.isLoadData=e},clickTab:function(e,t){var a=this;this.tabClicked.tab0||0!==e||(this.groupItem="",setTimeout((function(){a.groupItem=t}),100)),this.$emit("clickTab",{tab:e,groupId:t})},closeModalAdd:function(e){e&&this.$emit("load-users",this.groupItem)}}}),bk=vk,yk=(a("a766"),Object(I["a"])(bk,fI,hI,!1,null,null,null)),Ik=yk.exports;C()(yk,{VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VOverlay:Wg["a"],VProgressCircular:Hu["a"],VRow:Kr["a"],VTab:ng["a"],VTabItem:ig["a"],VTabs:lg["a"],VTabsItems:cg["a"]});var xk=nr["a"].extend({name:"GroupListPage",components:{GroupListTemplate:Ik},data:function(){return{isGetDataList:!1,perPage:Wt,currPage:1,scorp:["groupName"],keyword:"",groupTotalCount:0,dataGroups:[],loading:!1,loadingAff:!1,errorMessageLogs:"",successMessageLogs:"",showProgress:!1,rowinErrDialog:0,errorMessageProcess:[],successItemProcess:0,totalDataRowProcess:0,progress:0,isFinishProcess:!1,typeAction:0,dataAction:[],groupIdAction:"",showConfirm:!1,groupExpanedGate:new Map,isReRenderGate:0,isRemoveGateSelected:0,groupExpanedUser:new Map,isReRenderUser:0,isRemoveUserSelected:0,isRemoveGroupSelected:0,dataGroup:{passableTimeSetting:[],passableName:"",department:{data:[],loading:!1},loading:!1,groupPassages:{data:[],dataOri:[],loading:!1,total:0,page:1,perPage:25,keyword:"",scorp:[]},realtionsGateList:{data:[],total:0,page:1,loading:!1},realtionsGateGroup:{data:[],loading:!1},isAdminOfRemoteUnlock:!1,isAdminOfGroupPassages:!1,isAdminOfGatePassages:!1,isAdminOfUnlockingTimeSetting:!1},groupList:[],userList:[],gateList:[],departments:[],users:[],dataRelationDepartmentGroup:{totalDataRowProcess:0,progress:0,successItemProcess:"",errorMessageProcess:[],isFinishProcess:!1},dataRelationUserGroup:{totalDataRowProcess:0,progress:0,successItemProcess:"",errorMessageProcess:[],isFinishProcess:!1},dataGatePass:{totalDataRowProcess:0,progress:0,successItemProcess:"",errorMessageProcess:[],isFinishProcess:!1},authority:er.state.auth,optionDepartments:{page:1,total:0},groupId:"",tabClicked:{tab0:!1,tab1:!1,tab2:!1,tab3:!1},tabActive:0,endRecord:{users:0,gates:0}}},created:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(localStorage.setItem("userValid","true"),localStorage.setItem("isShowValidUser","true"),"undefined"===typeof localStorage.isVaildDataGroup&&localStorage.setItem("isVaildDataGroup","true"),"undefined"===typeof localStorage.groupSortKey&&localStorage.setItem("groupSortKey","registered"),"undefined"===typeof localStorage.groupSortName&&localStorage.setItem("groupSortName","desc"),"undefined"===typeof localStorage.pageSizeGroup?(localStorage.setItem("pageSizeGroup",Wt.toString()),e.perPage=Wt):e.perPage=parseInt(localStorage.pageSizeGroup),a=e.$route.query.groupId,localStorage.setItem("userValid","true"),null===a||void 0===a||""===a){t.next=23;break}if(localStorage.setItem("prevRoute",at),localStorage.setItem("groupId1",a.toString()),e.groupId=a,void 0===localStorage.isLoad||"1"!==localStorage.isLoad||"undefined"===typeof localStorage.groupInfo){t.next=21;break}return e.dataGroup.loading=!0,e.groupList=[],localStorage.setItem("isLoad","0"),t.next=18,e.getGroupAuth(a);case 18:setTimeout((function(){e.groupList=[JSON.parse(localStorage.groupInfo)],e.dataGroup.loading=!1}),300),t.next=22;break;case 21:e.getGroups(1);case 22:e.tabClicked.tab0=!0;case 23:case"end":return t.stop()}}),t)})))()},watch:{loading:function(e){this.$emit("loading",e)}},mounted:function(){this.$emit("activeMenu","groups")},methods:{getUserAgain:function(e){this.dataGroup.groupPassages.loading=!0,this.dataGroup.groupPassages.dataOri=[],this.dataGroup.groupPassages.data=[],this.dataGroup.groupPassages.page=1,this.getUser(e,1)},clickAddGroup:function(){this.$router.push({path:vt})},clickEditGroup:function(e){this.$router.push({path:bt,query:{groupId:e}})},clickGroupDetail:function(e){this.$router.push({path:ht,query:{groupId:e}})},closeModalProgress:function(){if(this.showProgress=!1,this.successItemProcess>0)if(0===this.typeAction||1===this.typeAction||2===this.typeAction)this.getListGroups();else if(3===this.typeAction){this.removegateSelected();var e={isGetDataGate:!1,currPageGate:1,totalGateCount:0,data:[]};this.groupExpanedGate.set(this.groupIdAction,e),this.getGateOfGroup(this.groupIdAction,1),this.getListGroups()}else if(4===this.typeAction){this.removeUserSelected(),this.groupExpanedUser=new Map;var t={isGetDataUser:!1,currPageUser:1,totalUserCount:0,data:[]};this.groupExpanedUser.set(this.groupIdAction,t),this.getUserOfGroup(this.groupIdAction,1),this.getListGroups()}},showDialogConfirm:function(e){this.typeAction=e.type,this.dataAction=e.data,void 0!==e.groupId&&(this.groupIdAction=e.groupId),this.showConfirm=!0},closeDialogConfirm:function(){this.showConfirm=!1},clickGroupsAction:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.showConfirm=!1,e.showProgress=!0,e.rowinErrDialog=0,e.rowinErrDialog=0,e.errorMessageProcess=[],e.successItemProcess=0,e.progress=0,e.isFinishProcess=!1,e.totalDataRowProcess=e.dataAction.length,a=100/e.totalDataRowProcess,s=Object(rr["a"])(e.dataAction),t.prev=11,s.s();case 13:if((r=s.n()).done){t.next=58;break}if(o=r.value,n=void 0,0!==e.typeAction){t.next=22;break}return t.next=19,e.enableOrDisableGroup(o,!0);case 19:n=t.sent,t.next=54;break;case 22:if(1!==e.typeAction){t.next=28;break}return t.next=25,e.enableOrDisableGroup(o,!1);case 25:n=t.sent,t.next=54;break;case 28:if(2!==e.typeAction){t.next=44;break}return i=void 0,l=void 0,t.next=33,e.deleteGroup(o);case 33:if(i=t.sent,!i){t.next=42;break}return t.next=37,e.deleteRelationGateGroup(o);case 37:if(l=t.sent,!l){t.next=42;break}return t.next=41,e.putGroup(o);case 41:n=t.sent;case 42:t.next=54;break;case 44:if(3!==e.typeAction){t.next=50;break}return t.next=47,e.removeGateFromGroup(o.relationId,o.gate.gateId);case 47:n=t.sent,t.next=54;break;case 50:if(4!==e.typeAction){t.next=54;break}return t.next=53,e.removeUserFromGroup(o.groupPassageId,o.user.userId);case 53:n=t.sent;case 54:n&&e.successItemProcess++,e.progress+=a;case 56:t.next=13;break;case 58:t.next=63;break;case 60:t.prev=60,t.t0=t["catch"](11),s.e(t.t0);case 63:return t.prev=63,s.f(),t.finish(63);case 66:e.isFinishProcess=!0;case 67:case"end":return t.stop()}}),t,null,[[11,60,63,66]])})))()},changePerPage:function(e){this.perPage=e,localStorage.setItem("pageSizeGroup",e),this.getListGroups()},changePage:function(e){this.currPage=e,this.getListGroups()},searchGroup:function(e){this.keyword=e.text,this.scorp=e.targets,this.getListGroups()},enableOrDisableGroup:function(e,t){var a=this;return new Promise((function(s){var r={isValid:t};a.$http.put(H+"/"+encodeURIComponent(e),r).then((function(e){console.log(e),s(!0)})).then(null,(function(t){var r="";switch(t.status){case 400:r="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:r="Unauthorized"===t.message?ta:ia;break;case 404:r="groupIdが存在しない。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},putGroup:function(e){var t=this;return new Promise((function(a){var s;s={isValid:!1},t.$http.put(H+"/"+encodeURIComponent(e),s).then((function(s){if("Success"===s.body.message)a(!0);else{var r=e+">>"+ba+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,r),a(!1)}})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r=ta;break;case 409:r="入力された通行権限グループ名は既に使用されています。他の通行権限グループ名を入力してください。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))},deleteRelationGateGroupItem:function(e){var t=this;return new Promise((function(a){t.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(s){if("Success"===s.body.message)a(!0);else{var r=e+">>"+ba+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,r),a(!1)}})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},deleteRelationGateGroup:function(e){var t=this;return new Promise((function(a){t.$http.get(Y+"?groupId="+encodeURIComponent(e)).then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o,n,i,l,c;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(r.body.maxRecords>0)){s.next=23;break}n=Object(rr["a"])(r.body.relationsGateGroup),s.prev=2,n.s();case 4:if((i=n.n()).done){s.next=12;break}return l=i.value,s.next=8,t.deleteRelationGateGroupItem(l.relationId);case 8:o=s.sent,o||a(!1);case 10:s.next=4;break;case 12:s.next=17;break;case 14:s.prev=14,s.t0=s["catch"](2),n.e(s.t0);case 17:return s.prev=17,n.f(),s.finish(17);case 20:a(!0),s.next=26;break;case 23:c=e+">>"+aa+"",t.$set(t.errorMessageProcess,++t.rowinErrDialog,c),a(!1);case 26:case"end":return s.stop()}}),s,null,[[2,14,17,20]])})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},deleteGroupItem:function(e){var t=this;return new Promise((function(a){t.$http.delete(q+"/"+encodeURIComponent(e)).then((function(s){if("Success"===s.body.message)a(!0);else{var r=e+">>"+ba+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,r),a(!1)}})).then(null,(function(s){var r="";switch(s.status){case 400:r="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},deleteGroup:function(e){var t=this;return new Promise((function(a){t.$http.get(q+"?groupId="+encodeURIComponent(e)).then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o,n,i,l,c;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(r.body.maxRecords>0)){s.next=23;break}n=Object(rr["a"])(r.body.groupPassages),s.prev=2,n.s();case 4:if((i=n.n()).done){s.next=12;break}return l=i.value,s.next=8,t.deleteGroupItem(l.groupPassageId);case 8:o=s.sent,o||a(!1);case 10:s.next=4;break;case 12:s.next=17;break;case 14:s.prev=14,s.t0=s["catch"](2),n.e(s.t0);case 17:return s.prev=17,n.f(),s.finish(17);case 20:a(!0),s.next=26;break;case 23:c=e+">>"+aa+"",t.$set(t.errorMessageProcess,++t.rowinErrDialog,c),a(!1);case 26:case"end":return s.stop()}}),s,null,[[2,14,17,20]])})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";404===s.status?a(!0):(t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1))}))}))},removeGateFromGroup:function(e,t){var a=this;return new Promise((function(s){a.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(e){s(!0)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},removeUserFromGroup:function(e,t){var a=this;return new Promise((function(s){a.$http.delete(q+"/"+encodeURIComponent(e)).then((function(e){s(!0)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r="該当する通行権限グループがありません。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},ShowOnlyIsVaild:function(e){localStorage.setItem("isVaildDataGroup",e.toString()),this.getListGroups()},getListGroups:function(){var e=this;this.isGetDataList=!0,this.removeGroupSelected();var t=H+"?limit="+localStorage.pageSizeGroup+"&page="+this.currPage+"&sortKey="+localStorage.groupSortName+":"+localStorage.groupSortKey;null!==this.keyword&&void 0!==this.keyword&&""!==this.keyword&&(t+="&keyword="+this.keyword+"&scorp="+this.scorp),"true"===localStorage.isVaildDataGroup&&(t+="&isValid=true"),t+="&embed=passableTimeSetting",this.$http.get(t).then((function(t){e.resetData(),e.isEmpty(t.body.groups)?(e.groupTotalCount=0,e.currPage=1):(e.dataGroups=t.body.groups,e.groupTotalCount=t.body.maxRecords,e.currPage=Math.ceil(t.body.startRecord/e.perPage)),e.isGetDataList=!1})).then(null,(function(t){switch(e.isGetDataList=!1,e.resetData(),t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataGroups=[],this.errorMessageLogs=""},changeExpandedGroup:function(e){if(e.value){var t=e.item;this.groupExpanedGate=new Map;var a={isGetDataGate:!1,currPageGate:1,totalGateCount:0,data:[]};this.groupExpanedGate.set(t.groupId,a),this.getGateOfGroup(t.groupId,1),this.groupExpanedUser=new Map;var s={isGetDataUser:!1,currPageUser:1,totalUserCount:0,data:[]};this.groupExpanedUser.set(t.groupId,s),this.getUserOfGroup(t.groupId,1)}},getGateOfGroup:function(e,t){var a=this,s=this.groupExpanedGate.get(e);if(void 0!==s){s.isGetDataGate=!0,s.currPageGate=t,this.reRenderGate();var r=Y+"?groupId="+encodeURIComponent(e)+"&limit=25&page="+t+"&sortKey=desc:gateId&embed=gate";this.$http.get(r).then((function(e){e.body.maxRecords>0&&!a.isEmpty(e.body.relationsGateGroup)?(s.totalGateCount=e.body.maxRecords,s.currPageGate=Math.ceil(e.body.startRecord/25),s.data=e.body.relationsGateGroup):(s.totalGateCount=0,s.currPageGate=1),s.isGetDataGate=!1,a.reRenderGate(),a.removegateSelected()})).then(null,(function(e){s.isGetDataGate=!1,a.reRenderGate(),a.removegateSelected()}))}},changePageGate:function(e){this.getGateOfGroup(e.groupId,e.page)},getUserOfGroup:function(e,t){var a=this,s=this.groupExpanedUser.get(e);if(void 0!==s){s.isGetDataUser=!0,s.currPageUser=t,this.reRenderUser();var r=q+"?groupId="+encodeURIComponent(e)+"&limit=25&page="+t+"&sortKey=desc:userId&embed=user";this.$http.get(r).then((function(e){e.body.maxRecords>0&&!a.isEmpty(e.body.groupPassages)?(s.totalUserCount=e.body.maxRecords,s.currPageUser=Math.ceil(e.body.startRecord/25),s.data=e.body.groupPassages):(s.totalUserCount=0,s.currPageUser=1),s.isGetDataUser=!1,a.reRenderUser(),a.removeUserSelected()})).then(null,(function(e){s.isGetDataUser=!1,a.reRenderUser(),a.removeUserSelected()}))}},changePageUser:function(e){this.getUserOfGroup(e.groupId,e.page)},reRenderGate:function(){this.isReRenderGate<100?this.isReRenderGate++:this.isReRenderGate=0},reRenderUser:function(){this.isReRenderUser<100?this.isReRenderUser++:this.isReRenderUser=0},removegateSelected:function(){this.isRemoveGateSelected<100?this.isRemoveGateSelected++:this.isRemoveGateSelected=0},removeUserSelected:function(){this.isRemoveUserSelected<100?this.isRemoveUserSelected++:this.isRemoveUserSelected=0},removeGroupSelected:function(){this.isRemoveGroupSelected<100?this.isRemoveGroupSelected++:this.isRemoveGroupSelected=0},changeTab:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.tabActive=e.tab,0!==e.tab){a.next=5;break}t.dataGroup.loading=!1,a.next=42;break;case 5:if(1!==e.tab){a.next=21;break}return t.dataGroup.loading=!0,s=t.getDepartmentGroup(e.groupId),t.dataGroup.groupPassages.dataOri=[],t.dataGroup.groupPassages.data=[],t.dataGroup.groupPassages.page=1,t.dataGroup.groupPassages.loading=!0,t.dataGroup.groupPassages.scorp=[],t.dataGroup.groupPassages.keyword="",r=t.getUser(e.groupId,1),a.next=17,Promise.all([s,r]);case 17:t.dataGroup.groupPassages.page=1,t.dataGroup.loading=!1,a.next=42;break;case 21:if(2!==e.tab){a.next=30;break}return t.dataGroup.loading=!0,a.next=25,t.getDepartmentGroup(e.groupId);case 25:return a.next=27,t.getGroup(e.groupId);case 27:t.dataGroup.loading=!1,a.next=42;break;case 30:if(3!==e.tab){a.next=42;break}return t.dataGroup.loading=!0,t.dataGroup.realtionsGateGroup.data=[],t.dataGroup.realtionsGateList.data=[],t.gateList=[],t.dataGroup.realtionsGateList.loading=!0,a.next=38,t.getGatePass(1);case 38:t.getAllUsers(1),t.getAllGates(1),t.dataGroup.loading=!1,t.dataGroup.realtionsGateList.loading=!1;case 42:e.groupId&&localStorage.setItem("groupId1",e.groupId);case 43:case"end":return a.stop()}}),a)})))()},clickTab:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log("tab",e),t.tabActive=e.tab,0!==e.tab){a.next=7;break}t.dataGroup.loading=!1,t.tabClicked.tab0=!0,a.next=55;break;case 7:if(1!==e.tab){a.next=25;break}if(t.tabClicked.tab1){a.next=22;break}return t.dataGroup.loading=!0,s=t.getDepartmentGroup(e.groupId),t.dataGroup.groupPassages.dataOri=[],t.dataGroup.groupPassages.data=[],t.dataGroup.groupPassages.page=1,t.dataGroup.groupPassages.loading=!0,t.dataGroup.groupPassages.scorp=[],t.dataGroup.groupPassages.keyword="",r=t.getUser(e.groupId,1),a.next=20,Promise.all([s,r]);case 20:t.dataGroup.groupPassages.page=1,t.dataGroup.loading=!1;case 22:t.tabClicked.tab1=!0,a.next=55;break;case 25:if(2!==e.tab){a.next=36;break}if(t.tabClicked.tab2){a.next=33;break}return t.dataGroup.loading=!0,a.next=30,t.getDepartmentGroup(e.groupId);case 30:return a.next=32,t.getGroup(e.groupId);case 32:t.dataGroup.loading=!1;case 33:t.tabClicked.tab2=!0,a.next=55;break;case 36:if(3!==e.tab){a.next=55;break}if(!0!==t.tabClicked.tab3){a.next=42;break}t.endRecord.users>t.userList.length&&(t.userList=[],t.getAllUsers(1)),t.endRecord.gates>t.gateList.length&&(t.gateList=[],t.getAllGates(1)),a.next=54;break;case 42:if(t.tabClicked.tab3){a.next=54;break}return t.dataGroup.loading=!0,t.dataGroup.realtionsGateGroup.data=[],t.dataGroup.realtionsGateList.data=[],t.userList=[],t.gateList=[],t.dataGroup.realtionsGateList.loading=!0,a.next=51,t.getGatePass(1);case 51:!0!==t.dataGroup.isAdminOfGatePassages&&!0!==t.authority.isAdmin||(t.getAllUsers(1),t.getAllGates(1)),t.dataGroup.loading=!1,t.dataGroup.realtionsGateList.loading=!1;case 54:t.tabClicked.tab3=!0;case 55:e.groupId&&localStorage.setItem("groupId1",e.groupId);case 56:case"end":return a.stop()}}),a)})))()},changePageUsers:function(e){this.dataGroup.groupPassages.page=e.$event.page,this.dataGroup.groupPassages.loading=!0,this.getUser(e.groupId,e.$event.page)},getDepartmentUserValid:function(e){console.log("err: ",e),localStorage.setItem("userValid",e.$event.value.toString()),localStorage.setItem("isShowValidUser",e.$event.value.toString()),this.dataGroup.groupPassages.page=1,this.dataGroup.groupPassages.loading=!0,this.dataGroup.groupPassages.keyword="",this.getUser(e.groupId,1)},getUsersChange:function(){var e=this,t=this.dataGroup.groupPassages.dataOri;void 0!==localStorage.userValid&&""!==localStorage.userValid&&"true"===localStorage.userValid&&(t=this.dataGroup.groupPassages.dataOri.filter((function(e){return 1===e.user.isValid}))),""!==this.dataGroup.groupPassages.keyword&&(t=2===this.dataGroup.groupPassages.scorp.length?t.filter((function(t){return!0===t.user.name.toLowerCase().includes(e.dataGroup.groupPassages.keyword.toLowerCase())||!0===t.user.userId.toLowerCase().includes(e.dataGroup.groupPassages.keyword.toLowerCase())})):"name"===this.dataGroup.groupPassages.scorp[0]?t.filter((function(t){return!0===t.user.name.toLowerCase().includes(e.dataGroup.groupPassages.keyword.toLowerCase())})):t.filter((function(t){return!0===t.user.userId.toLowerCase().includes(e.dataGroup.groupPassages.keyword.toLowerCase())})));var a=Array.of.apply(Array,Object(mI["a"])(t));this.dataGroup.groupPassages.data=a.slice(25*(this.dataGroup.groupPassages.page-1),25*this.dataGroup.groupPassages.page),setTimeout((function(){e.dataGroup.groupPassages.loading=!1,e.dataGroup.groupPassages.total=t.length}),100)},getDepartmentGroup:function(e){var t=this;return new Promise((function(a,s){t.dataGroup.department.loading=!0,t.dataGroup.department.data=[],t.$http.get(Me+"?limit=1000&groupId=".concat(e,"&embed=department")).then((function(e){t.dataGroup.department.data=e.body.relationsDepartmentGroup,t.dataGroup.department.loading=!1,a(!0)})).then(null,(function(e){console.log("err: ",e),t.dataGroup.department.loading=!1,a(!1)}))}))},getDepartmentGroupNoLoading:function(e){var t=this;return new Promise((function(a,s){t.dataGroup.department.data=[],t.$http.get(Me+"?limit=1000&groupId=".concat(e,"&embed=department")).then((function(e){t.dataGroup.department.data=e.body.relationsDepartmentGroup,a(!0)})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},getGroup:function(e){var t=this;return new Promise((function(a,s){t.$http.get(H+"?groupId="+encodeURIComponent(e)+"&limit=25&page=1&embed=passableTimeSetting").then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return t.dataGroup.passableTimeSetting=r.body.groups[0].passableTimeSetting.timeSettings,t.dataGroup.passableName=r.body.groups[0].passableTimeSetting.name,t.groupList=r.body.groups,s.next=5,t.getGroupAuth(e);case 5:a(!0);case 6:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(e){t.dataGroup.passableTimeSetting=[],t.dataGroup.passableName="",console.log("err: ",e),a(!1)}))}))},getUser:function(e,t){var a=this;return new Promise((function(s,r){var o=q+"?groupId="+encodeURIComponent(e)+"&limit=25&embed=user&page="+t;void 0!==localStorage.userValid&&""!==localStorage.userValid&&"true"===localStorage.userValid&&(o=q+"?groupId="+encodeURIComponent(e)+"&limit=25&embed=user&page="+t+"&isValidUser=true"),""!==a.dataGroup.groupPassages.keyword&&(o+="&keyword="+a.dataGroup.groupPassages.keyword+"&scorp="+a.dataGroup.groupPassages.scorp),a.$http.get(o).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.dataGroup.groupPassages.total=t.body.maxRecords,a.dataGroup.groupPassages.data=t.body.groupPassages,a.dataGroup.groupPassages.dataOri=t.body.groupPassages,a.dataGroup.groupPassages.loading=!1,s(!1);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){a.dataGroup.groupPassages.total=0,console.log("err: ",e),a.dataGroup.groupPassages.loading=!1,s(!1)}))}))},getGroupAuth:function(e){var t=this;return new Promise((function(a,s){if("true"===localStorage.isCustomUserAuthorityService){var r=Se+"?userId="+encodeURIComponent(localStorage.userProfileId)+"&groupId="+e+"&limit=25&embed=group";t.$http.get(r).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.dataGroup.isAdminOfRemoteUnlock=s.body.groupAdministrators[0].isAdminOfRemoteUnlock,t.dataGroup.isAdminOfGroupPassages=s.body.groupAdministrators[0].isAdminOfGroupPassages,t.dataGroup.isAdminOfGatePassages=s.body.groupAdministrators[0].isAdminOfGatePassages,t.dataGroup.isAdminOfUnlockingTimeSetting=s.body.groupAdministrators[0].isAdminOfUnlockingTimeSetting,a(!0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),a(!1)}))}else a(!1)}))},getGroups:function(e){var t=this;this.dataGroup.loading=!0,this.$http.get(H+"?groupId="+encodeURIComponent(this.groupId)+"&limit=25&page=1&embed=passableTimeSetting").then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.groupList=a.body.groups,e.next=3,t.getGroupAuth(t.groupId);case 3:t.dataGroup.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){t.groupList=[],console.log("err: ",e),t.dataGroup.loading=!1}))},loadListAff:function(e){var t=this;this.dataRelationDepartmentGroup={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},this.loadingAff=!0,this.optionDepartments={page:e,total:0};var a=Le+"?limit=25&page="+e;!1===this.authority.isAdmin&&(a=De+"?limit=25&page="+e),this.$http.get(a).then((function(e){e.body.maxRecords>0?(t.departments=e.body.departments,t.optionDepartments.total=e.body.maxRecords):t.departments=[],t.loadingAff=!1})).then(null,(function(e){console.log("err: ",e),t.loadingAff=!1}))},addAffToGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationDepartmentGroup={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.aff.length,t.dataRelationDepartmentGroup.total=l,c=100/l,u=Object(rr["a"])(e.aff),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=26;break}return g=d.value,p=void 0,a.next=18,t.postRelationDepartmentGroup(e.groupId,g.departmentId);case 18:p=a.sent,!0===p?r++:(m=g.departmentId+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationDepartmentGroup.successItem=r,t.dataRelationDepartmentGroup.progressLoad=o,t.dataRelationDepartmentGroup.errorMessage=i;case 24:a.next=13;break;case 26:a.next=31;break;case 28:a.prev=28,a.t0=a["catch"](11),u.e(a.t0);case 31:return a.prev=31,u.f(),a.finish(31);case 34:n=!0,t.dataRelationDepartmentGroup.isFinish=n;case 36:case"end":return a.stop()}}),a,null,[[11,28,31,34]])})))()},postRelationDepartmentGroup:function(e,t){var a=this;return new Promise((function(s,r){a.$http.post(Me,{departmentId:encodeURIComponent(t),groupId:encodeURIComponent(e)}).then((function(e){s(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 409:t=xa;break;case 420:t=Ca;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}s(t)}))}))},removeAffToGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataRelationDepartmentGroup={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.aff.length,c=100/l,t.dataRelationDepartmentGroup.total=l,u=Object(rr["a"])(e.aff),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.deleteRelationDepartmentGroup(g.relationId);case 18:p=a.sent,!0===p?r++:(m=g.departmentId+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationDepartmentGroup.progress=o,t.dataRelationDepartmentGroup.successItem=r,t.dataRelationDepartmentGroup.progressLoad=o,t.dataRelationDepartmentGroup.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataRelationDepartmentGroup.isFinish=n;case 37:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},deleteRelationDepartmentGroup:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Me+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}a(t)}))}))},removeUserToGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("removeUserToGroup",e),t.dataRelationUserGroup={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.users.length,c=100/l,t.dataRelationUserGroup.total=l,u=Object(rr["a"])(e.users),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=27;break}return g=d.value,p=void 0,a.next=18,t.deleteGroupPass(g.groupPassageId);case 18:p=a.sent,!0===p?r++:(m=g.userId+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataRelationUserGroup.progress=o,t.dataRelationUserGroup.successItem=r,t.dataRelationUserGroup.progressLoad=o,t.dataRelationUserGroup.errorMessage=i;case 25:a.next=13;break;case 27:a.next=32;break;case 29:a.prev=29,a.t0=a["catch"](11),u.e(a.t0);case 32:return a.prev=32,u.f(),a.finish(32);case 35:n=!0,t.dataRelationUserGroup.isFinish=n;case 37:case"end":return a.stop()}}),a,null,[[11,29,32,35]])})))()},deleteGroupPass:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(q+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}a(t)}))}))},getAllUsers:function(e){var t=this;3===this.tabActive&&this.$http.get(Ne+"?limit=10000&page="+e+"&isExceptOptionalUser=true&isValid=true&sortKey=asc:name").then((function(a){t.endRecord.users=a.body.maxRecords,a.body.maxRecords>0?(a.body.users.forEach((function(e){t.userList.push({text:e.name+"( "+e.userId+" )",value:e.userId})})),a.body.maxRecords>a.body.endRecord&&t.getAllUsers(e+1)):t.userList=[]})).then(null,(function(e){console.log("err: ",e)}))},getAllGates:function(e){var t=this;return new Promise((function(a,s){3===t.tabActive?t.$http.get(te+"?limit=1000&page="+e+"&sortKey=asc:gateId&isValid=true&isExceptOptionalGate=true&groupId="+t.groupId).then((function(s){t.endRecord.gates=s.body.maxRecords,s.body.maxRecords>0?(s.body.gates.forEach((function(e){t.gateList.push({text:e.gateName,value:e.gateId}),t.gateList.sort((function(e,t){return e.text.toLowerCase()s.body.endRecord?a(t.getAllGates(e+1)):a(!0)):(t.gateList=[],a(!0))})).then(null,(function(e){console.log("err: ",e),a(!0)})):a(!1)}))},getGatePass:function(e){var t=this;return new Promise((function(a,s){t.errorMessageLogs="",t.dataGroup.realtionsGateList.loading=!0,t.dataGroup.realtionsGateList.page=e,t.$http.get(ee+"?limit=25&page="+e+"&sortKey=desc:notAfter&embed=gate,user&isExceptOptionalGate=true&groupId="+t.groupId).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.dataGroup.realtionsGateList.data=s.body.passages,t.dataGroup.realtionsGateList.data.map((function(e){return Object.assign(e,{userName:void 0!==e.user.name?e.user.name:""})})),t.dataGroup.realtionsGateList.loading=!1,t.dataGroup.realtionsGateList.total=s.body.maxRecords,a(!0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){t.dataGroup.realtionsGateList.data=[],console.log("err: ",e),t.dataGroup.realtionsGateList.loading=!1,a(!1)}))}))},getInFoUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(T+"?userId="+encodeURIComponent(e.userId)).then((function(s){var r=s.body.users[0],o=t.dataGroup.realtionsGateList.data.map((function(e){return e.passageId})).indexOf(e.passageId);o>=0&&(t.dataGroup.realtionsGateList.data[o].userName=r.name),a(!0)})).then(null,(function(e){a(!1)}))}))},addGate:function(e){var t=this;console.log("data1",e),this.loading=!0,this.errorMessageLogs="",this.$http.post(ee,{userId:e.userId,gateId:e.gate.value,notBefore:e.notBefore,notAfter:e.notAfter}).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.dataGroup.realtionsGateList.data=[],e.next=3,t.getGatePass(1);case 3:t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){var a="";switch(t.loading=!1,e.status){case 400:a=Qt;break;case 403:a="Unauthorized"===e.message?ta:ia;break;case 404:a=aa;break;case 409:a="有効な時間が設定されていません";break;case 500:a=fa;break;case 503:a=ha;break;default:a=ba;break}t.errorMessageLogs=a}))},removeGatePass:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),t.dataGatePass={total:0,progressLoad:0,successItem:0,errorMessage:[],isFinish:!1},s=0,r=0,o=0,n=!1,i=[],l=e.length,c=100/l,t.dataGatePass.total=l,u=Object(rr["a"])(e),a.prev=11,u.s();case 13:if((d=u.n()).done){a.next=26;break}return g=d.value,p=void 0,a.next=18,t.deleteGatePass(g.passageId);case 18:p=a.sent,!0===p?r++:(m=g.passageId+">>"+p+"",t.$set(i,++s,m)),o+=c,t.dataGatePass.progressLoad=o,t.dataGatePass.successItem=r,t.dataGatePass.errorMessage=i;case 24:a.next=13;break;case 26:a.next=31;break;case 28:a.prev=28,a.t0=a["catch"](11),u.e(a.t0);case 31:return a.prev=31,u.f(),a.finish(31);case 34:n=!0,t.dataGatePass.isFinish=n;case 36:case"end":return a.stop()}}),a,null,[[11,28,31,34]])})))()},deleteGatePass:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(ee+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(e){var t="";switch(e.status){case 400:t=Qt;break;case 403:t="Unauthorized"===e.message?ta:ia;break;case 404:t=aa;break;case 500:t=fa;break;case 503:t=ha;break;default:t=ba;break}a(t)}))}))},formatTimestamp:function(e){return""!==e?jo()(e).unix():""},clickEditGate:function(e){},changeGroupId:function(e){},loadPassableTime:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.dataGroup.loading=!0,a.next=3,t.getGroup(e);case 3:e&&localStorage.setItem("groupId1",e),t.dataGroup.loading=!1,t.tabClicked={tab0:!1,tab1:!1,tab2:!1,tab3:!1};case 6:case"end":return a.stop()}}),a)})))()},loadGroupId:function(){this.getGroups(1)},searchUserGroupPassage:function(e){var t=[];e.data.targets.forEach((function(e){"name"===e?t.push("user.name"):t.push(e)})),this.dataGroup.groupPassages.scorp=t,this.dataGroup.groupPassages.keyword=e.data.text,this.dataGroup.groupPassages.loading=!0,this.dataGroup.groupPassages.page=1,this.getUser(this.groupId,1)},closeModalAdd:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.getDepartmentGroup(e);case 2:t.loadListAff(1);case 3:case"end":return a.stop()}}),a)})))()},closeModalAddAff:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.loadingAff=!0,a.next=3,t.getDepartmentGroupNoLoading(e);case 3:t.loadListAff(1);case 4:case"end":return a.stop()}}),a)})))()},getGateGroup:function(e,t){var a=this;return new Promise((function(s,r){a.dataGroup.realtionsGateGroup.loading=!0,a.$http.get(X+"?groupId="+encodeURIComponent(e)+"&limit=1000&page="+t+"&isExceptOptionalGate=true").then(function(){var r=Object(or["a"])(regeneratorRuntime.mark((function r(o){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:o.body.maxRecords>0?(o.body.relationsGateGroup.forEach((function(e){a.dataGroup.realtionsGateGroup.data.push(e.gateId)})),o.body.maxRecords>o.body.endRecord?(t++,a.getGateGroup(e,t)):(a.dataGroup.realtionsGateGroup.loading=!1,s(!0))):(a.dataGroup.realtionsGateGroup.loading=!1,s(!0));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).then(null,(function(e){console.log(e),a.dataGroup.realtionsGateGroup.loading=!1,s(!1)}))}))},loadGatePass:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.dataGroup.loading=!0,t.dataGroup.realtionsGateList.data=[],a.next=4,t.getGatePass(e);case 4:t.dataGroup.loading=!1;case 5:case"end":return a.stop()}}),a)})))()},changePageTemporary:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return console.log("changePageTemporary: ",e),t.dataGroup.loading=!0,a.next=4,t.getGatePass(e);case 4:t.dataGroup.loading=!1;case 5:case"end":return a.stop()}}),a)})))()}}}),Ck=xk,wk=Object(I["a"])(Ck,gI,pI,!1,null,null,null),kk=wk.exports,Sk=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("group-list-template",{on:{"loading-from-child":function(t){return e.$emit("loading",t)},loadingCircle:function(t){return e.$emit("loadingCircle",t)},textCircle:function(t){return e.$emit("textCircle",t)}}})},_k=[],Pk=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-list-template"},[a("breadcrumbs",{staticClass:"mb-0",attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",{staticClass:"pa-0"},[a("div",{staticClass:"container-group"},[a("div",{staticClass:"round-tab round-group-tab pa-0"},[[a("v-tabs",{attrs:{transition:!1},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab",{key:t.tabname,staticClass:"log-tab"},[e._v("\n "+e._s(t.title)+"\n ")])})),1)]],2),e._v(" "),a("v-container",[a("div",{staticClass:"round-tab group-tab "},[a("v-overlay",{staticClass:"overlay-group-tab",attrs:{absolute:"",value:e.isLoading,color:"white"}},[a("v-progress-circular",{staticClass:"user-loading-progress",attrs:{indeterminate:"",color:"green"}})],1),e._v(" "),a("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab-item",{key:t.tabname,attrs:{transition:!1,"reverse-transition":!1}},["tab1"===t.tabname?a("v-card",[a("GroupListModalPage",{on:{loadingCircle:function(t){return e.$emit("loadingCircle",t)},textCircle:function(t){return e.$emit("textCircle",t)},isLoad:function(t){return e.getIsLoad(t)},"go-time-settings":e.goTimeSettings,"click-group-detail":function(t){return e.clickGroupDetail(t)},loading:function(t){return e.$emit("loading-from-child",t)}}})],1):e._e(),e._v(" "),"tab2"===t.tabname?a("v-card",[a("gate-list-page",{attrs:{inPage:"modal-group",groupId:"no-id"},on:{loading:function(t){return e.$emit("loading-from-child",t)},clickGroupDetail:function(t){return e.clickGroupDetail(t)}}})],1):e._e()],1)})),1)],1)])],1)])],1)},Mk=[],Lk=f["a"].extend({name:"GroupListTemplate",components:{Searchbox:$r,SuccessButton:kr,GroupListTable:TI,Breadcrumbs:cn,ActionButton:Nn,GateListPage:Ab,UsersAllowedTable:uC,AffiliationAllowedTable:Cw,TimePeriodAllowed:Kw,TemporaryAccessAuthority:Xw,TextLink:No,GroupListModalPage:hk,GateListTable:gb,Modal:bn},props:{},data:function(){return{isShow:!1,isShowGate:!1,tab:0,searchTargetItems:[{label:"通行権限グループ名",value:"name",isDisabled:!0}],selectedGroupIds:[],actionItems:[{title:"通行権限グループ一覧",tabname:"tab1"},{title:" 全てのゲート一覧",tabname:"tab2"}],groupItem:"",isLoading:!1,isLoadData:!1,authority:er.state.auth}},watch:{},mounted:function(){this.authority.isAdmin?this.actionItems=[{title:"通行権限グループ一覧",tabname:"tab1"},{title:" 全てのゲート一覧",tabname:"tab2"}]:this.actionItems=[{title:"通行権限グループ一覧",tabname:"tab1"}];var e=this.$route.query;void 0!==e.tabActive&&""!==e.tabActive&&null!==e.tabActive&&(this.tab=1)},computed:{breadcrumbs:{get:function(){return[{text:"ゲート/通行権限",disabled:!0},{text:0===this.tab?"通行権限グループ一覧":"全てのゲート一覧",disabled:!0}]}}},methods:{clickGroupDetail:function(e){this.$router.push({path:ht,query:{groupId:e.toString()}})},changeGroupId:function(e){var t=this;this.groupItem="",this.isShow=!1,setTimeout((function(){t.groupItem=e,t.$emit("change-groupId",{tab:t.tab,groupId:t.groupItem})}),100)},loadGroupId:function(e){var t=this;this.groupItem="",setTimeout((function(){t.groupItem=e,t.$emit("load-groupId",{tab:t.tab,groupId:t.groupItem})}),100)},goTimeSettings:function(){this.isShow=!1,this.$router.push({path:Qe})},isShowGroup:function(){localStorage.setItem("isVaildDataGroupModal","false"),this.isShow=!0,this.isLoadData=!1},loadingFromChild:function(e){console.log("loadingFromChild",e),this.isLoading=e},closePageModal:function(e){this.isShow=!1,!0===e&&this.loadGroupId(this.groupItem)},getIsLoad:function(e){this.isLoadData=e}}}),Dk=Lk,Gk=(a("d9d5"),Object(I["a"])(Dk,Pk,Mk,!1,null,null,null)),Ak=Gk.exports;C()(Gk,{VCard:Pr["a"],VContainer:Zo["a"],VOverlay:Wg["a"],VProgressCircular:Hu["a"],VTab:ng["a"],VTabItem:ig["a"],VTabs:lg["a"],VTabsItems:cg["a"]});var Rk=nr["a"].extend({name:"GroupListPage",components:{GroupListTemplate:Ak},created:function(){var e=this.$route.query.groupId;null!==e&&void 0!==e&&""!==e&&(localStorage.setItem("prevRoute",at),localStorage.setItem("groupId1",e.toString()),this.$router.push({path:ht,query:{groupId:e.toString()}}))},watch:{loading:function(e){this.$emit("loading",e)}},mounted:function(){this.$emit("activeMenu","groups")},methods:{}}),Tk=Rk,Ek=Object(I["a"])(Tk,Sk,_k,!1,null,null,null),Ok=Ek.exports,Vk=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("group-add-user-template",{attrs:{dataUsers:e.dataUsers,userTotalCount:e.userTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,goBack:e.goBack,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,isFinishProcess:e.isFinishProcess,progress:e.progress,showConfirm:e.showConfirm,userOfGroup:e.userOfGroup},on:{changePerPage:function(t){return e.changePerPage(t)},clickAddUser:function(t){return e.clickAddUser(t)},clickDelete:function(t){return e.clickDelete(t)},changePage:function(t){return e.changePage(t)},clickConfirm:function(t){return e.clickConfirm(t)},closeModalProgress:function(t){return e.closeModalProgress()},closeModal:function(t){return e.closeModal()}}})},Uk=[],$k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-list-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-round",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.clickBackGate()}}},[e._v("\n 戻る\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.selectedUserIds.length},on:{click:function(t){return e.$emit("clickConfirm",e.selectedUserIds)}}},[e._v("\n 関連付け追加\n ")])],1)],1),e._v(" "),a("group-add-user-list-table",{attrs:{userTotalCount:e.userTotalCount,dataUsers:e.dataUsers,page:e.page,perPage:e.perPage,loading:e.loading,userOfGroup:e.userOfGroup,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-users":function(t){e.selectedUserIds=t}}}),e._v(" "),a("Modal",{attrs:{title:"ユーザーの関連付けを追加",text:0===e.selectedUserIds.length?"少なくてもユーザーを一つ選んでください。":"チェックしたユーザーを追加しますか?",smallScreen:"600",className:"common-modal"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),e.selectedUserIds.length>0?a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){return e.$emit("closeModal")}}}):a("cancel-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModal")}}}),e._v(" "),e.selectedUserIds.length>0?a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("clickAddUser",e.selectedUserIds)}}}):e._e()]},proxy:!0}]),model:{value:e.showValid,callback:function(t){e.showValid=t},expression:"showValid"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("ユーザーの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgress")}}})],1)],1):e._e()],1)],1)],1)],1)},Nk=[],Fk=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-table"},[a("v-container",[a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1)],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2 mr-2 mt-5",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.userTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,items:e.getDataUsers,loading:e.loading,"items-per-page":e.perPage,"item-key":"userId","no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"","show-select":!0},on:{"update:options":function(t){return e.$emit("change-sort",t)},"item-expanded":function(t){return e.$emit("change-expanded",t)}},scopedSlots:e._u([{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[t.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:t.disable,disabled:t.disable,ripple:!1},on:{input:function(e){return r(e)}}}):a("v-simple-checkbox",{attrs:{value:s,readonly:t.disabled,disabled:t.disabled,ripple:!1},on:{input:function(e){return r(e)}}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.userTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.userTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},jk=[],Bk=(new Date,f["a"].extend({name:"GateUserListTable",components:{Searchbox:$r,ShowPerPage:mo,SuccessButton:kr,Pagination:xo,DisplayOption:Mo,SelectPerPage:To},props:{userTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataUsers:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},userOfGroup:{default:function(){return[]}},dataTimes:{type:Array,default:function(){return[]}}},data:function(){return{searchTargetItems:[{label:"ユーザー名",value:"name"}],selectedItem:[],getDataUsers:[],selectedDisplayOption:["name","registered"],displayOptionItems:[{label:"ユーザー名",value:"name",isDisabled:!0}]}},computed:{headers:{get:function(){var e=[{text:"ユーザー名",align:"start",sortable:!0,value:"name"},{text:"ユーザーID",align:"start",sortable:!0,value:"userId"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},watch:{selectedItem:function(e){this.$emit("select-users",e.map((function(e){return e})))},loading:function(){var e=this;this.getDataUsers=this.dataUsers,this.getDataUsers.map((function(e){return e.disable=!1})),this.dataUsers.forEach((function(t,a){var s=e.userOfGroup.some((function(e){var a=e.value;return a===t.userId}));s&&(e.getDataUsers[a].disable=!0)})),this.selectedItem=[]}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeUser",e),this.loading=!0,this.userTotalCount=0,this.currPage=1,this.getListUsers().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.getListUsers().then((function(){t.loading=!1}))},searchUser:function(e){this.keyword=e.text,this.scorp=e.targets,this.userTotalCount=0,this.currPage=1,this.getListUsers()},getUserOfGroup:function(e,t){var a=this;this.$http.get(Z+"?groupId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&embed=user").then((function(s){if(s.body.maxRecords>0){var r=s.body.groupPassages;r.forEach((function(e){a.userOfGroup.push({text:e.user.name,value:e.userId})})),s.body.maxRecords>s.body.endRecord?a.getUserOfGroup(e+1,t):a.loading=!1}else a.userOfGroup=[],a.loading=!1})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getListUsers:function(){var e=this;return new Promise((function(t,a){e.loading=!0;var s=T+"?limit="+localStorage.pageSizeUser+"&page="+e.currPage+"&isExceptOptionalUser=true&isValid=true&exclude=thumbnail";e.$http.get(s).then((function(a){e.resetData(),e.isEmpty(a.body.users)?(e.userTotalCount=0,e.currPage=1):(e.dataUsers=a.body.users,e.userTotalCount=a.body.maxRecords,e.currPage=Math.ceil(a.body.startRecord/e.perPage)),t(!0)})).then(null,(function(a){switch(t(!0),a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataUsers=[],this.errorMessageLogs=""},formatTimestamp:function(e){return""!==e?jo()(e).unix():""}}}),Xk=Zk,Qk=Object(I["a"])(Xk,Vk,Uk,!1,null,null,null),eS=Qk.exports,tS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Login",{attrs:{loginProcess:e.loginProcess,googleInfo:e.googleLoginInfo,appleInfo:e.appleLoginInfo,errorMessage:e.errorMessage,loading:e.loading,error:e.error,oneLoginInfo:e.oneloginLoginInfo},on:{next:e.next,signInWithIdentityProvider:e.signInWithIdentityProvider,signIn:function(t){return e.signIn(t)},resetPass:function(t){return e.resetPass(t)},forgot:function(t){return e.forgot(t)},formSubmit:function(t){return e.formSubmit(t)},formSubmitForgot:function(t){return e.formSubmitForgot(t)},goPageLogin:function(t){return e.goPageLogin()},confirmSignin:function(t){return e.confirmSignin(t)},"forgot-password":function(t){return e.forgotPassword(t)}}})},aS=[],sS=a("4327"),rS=a("bf82"),oS=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login-layout blur-login"},[s("v-overlay",{attrs:{absolute:"",value:e.loading,color:"white"}},[s("v-progress-circular",{staticClass:"user-loading-progress",attrs:{indeterminate:"",color:"green"}})],1),e._v(" "),s("v-container",{style:[1===e.step||3===e.step?{"max-width":"600px"}:{"max-width":"780px"}]},[s("v-card",{staticClass:"background-green"},[0===e.step?s("v-form",{on:{submit:function(t){return t.preventDefault(),e.$emit("formSubmit",{ownerId:e.credentials.ownerId,username:e.username,password:e.password})}},model:{value:e.formLogin,callback:function(t){e.formLogin=t},expression:"formLogin"}},[s("v-row",[s("v-col",{staticClass:"background-white ml-12",attrs:{cols:"6","align-self":"center"}},[s("v-row",{attrs:{justify:"center"}},[s("div",{staticClass:"logo-text mt-10 mb-10"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1)]),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.ownerId?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"事業者ID",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.credentials.ownerId,callback:function(t){e.$set(e.credentials,"ownerId",t)},expression:"credentials.ownerId"}}),e._v(" "),""!==e.errorMessage.ownerId?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.ownerId))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.userId?"input-login input-error":"input-login",attrs:{autocomplete:"off","prepend-inner-icon":"mdi-account-circle",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"ユーザーID",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}}),e._v(" "),""!==e.errorMessage.userId?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.userId))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.password?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-lock","append-icon":e.show1?"mdi-eye":"mdi-eye-off",type:e.show1?"text":"password",label:"パスワード",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",disabled:e.loading,autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},on:{"click:append":function(t){e.show1=!e.show1}},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),e._v(" "),""!==e.errorMessage.password?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.password))]):e._e()],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("div",{staticClass:"allig-text-link text-center col-12",on:{click:function(t){return e.$emit("forgot-password")}}},[e._v("\n パスワードがわからない場合\n ")])]),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-btn",{staticClass:"text-color-white text-bold input-login",attrs:{block:"",type:"submit",color:"green",elevation:"1",disabled:e.disabled},on:{click:function(t){return e.$emit("signIn",{ownerId:e.credentials.ownerId,username:e.username,password:e.password})}}},[e._v("\n ログイン\n ")])],1)],1)],1),e._v(" "),s("v-col",{attrs:{"align-self":"center"}},[s("v-row",{staticClass:"support-icon",attrs:{justify:"center","align-content":"center"}},[s("a",{attrs:{href:"https://support.alligate.me/hc/ja",target:"_blank"}},[s("v-row",{attrs:{justify:"center","align-content":"center"}},[s("span",{staticClass:"icon-help"},[s("v-icon",[e._v("mdi-help-circle")])],1)]),e._v(" "),s("v-row",{attrs:{justify:"center","align-content":"center"}},[s("span",{staticClass:"text-help"},[e._v("ヘルプ")])])],1)]),e._v(" "),s("v-row",{attrs:{justify:"center","align-content":"center"}},[s("div",{staticClass:"title-sso"},[e._v("SSOログインに遷移")])]),e._v(" "),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-btn",{staticClass:"input-login",attrs:{block:"",type:"submit",color:"white",elevation:"2",disabled:e.disabled},on:{click:function(t){e.step=1}}},[e._v("\n SSO ユーザー\n ")])],1)],1)],1)],1)],1):e._e(),e._v(" "),1===e.step?s("v-form",{on:{submit:function(t){return t.preventDefault(),e.$emit("next",e.credentials.ownerId)}},model:{value:e.formLogin,callback:function(t){e.formLogin=t},expression:"formLogin"}},[s("v-row",[s("v-col",{staticClass:"background-white ml-12 mr-12",attrs:{"align-self":"center"}},[s("v-row",{attrs:{justify:"center"}},[s("div",{staticClass:"logo-text mt-10 mb-10"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1)]),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.ownerId?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"事業者ID",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.credentials.ownerId,callback:function(t){e.$set(e.credentials,"ownerId",t)},expression:"credentials.ownerId"}}),e._v(" "),""!==e.errorMessage.ownerId?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.ownerId))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-btn",{staticClass:"text-color-white text-bold input-login",attrs:{block:"",type:"submit",color:"green",elevation:"2",disabled:e.disabled},on:{click:function(t){return t.stopPropagation(),e.$emit("next",e.credentials.ownerId)}}},[e._v("\n 次へ\n ")])],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"end"}},[s("div",{staticClass:"allig-text-link mr-5",on:{click:function(t){return e.PageLogin()}}},[e._v("\n Alligateログインに戻る\n ")])])],1)],1)],1):e._e(),e._v(" "),3===e.step?s("v-form",{on:{submit:function(t){return t.preventDefault(),e.$emit("confirmSignin",{mfaCode:e.credentials.mfaCode})}},model:{value:e.formLogin,callback:function(t){e.formLogin=t},expression:"formLogin"}},[s("v-row",[s("v-col",{staticClass:"background-white ml-12 mr-12",attrs:{"align-self":"center"}},[s("v-row",{attrs:{justify:"center"}},[s("div",{staticClass:"logo-text mt-10 mb-10"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1)]),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.mfaCode?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"認証コード",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.credentials.mfaCode,callback:function(t){e.$set(e.credentials,"mfaCode",t)},expression:"credentials.mfaCode"}}),e._v(" "),""!==e.errorMessage.mfaCode?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.mfaCode))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-btn",{staticClass:"text-color-white text-bold input-login",attrs:{block:"",type:"button",color:"green",elevation:"2",disabled:e.disabled},on:{click:function(t){return e.$emit("confirmSignin",{mfaCode:e.credentials.mfaCode})}}},[e._v("\n 次へ\n ")])],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"end"}},[s("div",{staticClass:"allig-text-link mr-5",on:{click:function(t){return e.PageLogin()}}},[e._v("\n Alligateログインに戻る\n ")])])],1)],1)],1):e._e(),e._v(" "),2===e.step?s("v-row",{staticClass:"background-white ml-0 mr-0"},[s("v-col",{attrs:{"align-self":"center"}},[s("v-row",{attrs:{justify:"center"}},[s("div",{staticClass:"logo-text mt-10 mb-10"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1)]),e._v(" "),s("v-row",{attrs:{justify:"center row-icon-provider"}},[e.oneLoginInfo.isValid?s("v-col",[s("v-row",{staticClass:"pa-2 my-row",attrs:{outlined:"",tile:""}},[s("v-btn",{staticClass:"white--text input-login",attrs:{tile:"",color:"#394557",width:"200px"},on:{click:function(t){return t.stopPropagation(),e.$emit("signInWithIdentityProvider",e.oneLoginInfo.cognitoIdProviderName)}}},[e._v("\n SAML でログイン\n ")])],1)],1):e._e(),e._v(" "),e.appleInfo.isValid?s("v-col",{attrs:{order:"12"}},[s("v-row",{staticClass:"pa-2 my-row",attrs:{outlined:"",tile:""}},[s("v-btn",{staticClass:"white--text input-login",attrs:{tile:"",color:"#000000",width:"200px"},on:{click:function(t){return t.stopPropagation(),e.$emit("signInWithIdentityProvider",e.appleInfo.cognitoIdProviderName)}}},[s("v-icon",{staticClass:"icon-provider",attrs:{left:""}},[e._v("\n mdi-apple\n ")]),e._v("\n Appleでサインイン\n ")],1)],1)],1):e._e(),e._v(" "),e.googleInfo.isValid?s("v-col",{attrs:{order:"1"}},[s("v-row",{staticClass:"pa-2 my-row",attrs:{outlined:"",tile:""}},[s("v-btn",{staticClass:"white--text input-login",attrs:{tile:"",color:"#4285f4",width:"200px"},on:{click:function(t){return t.stopPropagation(),e.$emit("signInWithIdentityProvider",e.googleInfo.cognitoIdProviderName)}}},[s("span",{staticClass:"logo"},[s("img",{staticClass:"img-google",attrs:{src:a("d455")}})]),e._v("\n Googleでログイン\n ")])],1)],1):e._e()],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"end"}},[s("div",{staticClass:"allig-text-link mr-5",on:{click:function(t){return e.PageLogin()}}},[e._v("\n Alligateログインに戻る\n ")])])],1)],1):e._e(),e._v(" "),4===e.step?s("v-form",{on:{submit:function(t){return t.preventDefault(),e.$emit("formSubmitForgot",{ownerId:e.credentials.ownerId,username:e.username})}},model:{value:e.formLogin,callback:function(t){e.formLogin=t},expression:"formLogin"}},[s("v-row",[s("v-col",{staticClass:"background-white ml-12",attrs:{cols:"12","align-self":"center"}},[s("v-row",{attrs:{justify:"center"}},[s("div",{staticClass:"logo-text mt-10 mb-10"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1)]),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.ownerId?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"事業者ID",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.credentials.ownerId,callback:function(t){e.$set(e.credentials,"ownerId",t)},expression:"credentials.ownerId"}}),e._v(" "),""!==e.errorMessage.ownerId?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.ownerId))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.userId?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account-circle",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"ユーザーID",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}}),e._v(" "),""!==e.errorMessage.userId?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.userId))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-btn",{staticClass:"text-color-white text-bold input-login",attrs:{block:"",type:"submit",color:"green",elevation:"1",disabled:e.disabled},on:{click:function(t){return e.$emit("forgot",{ownerId:e.credentials.ownerId,username:e.username})}}},[e._v("\n 送信\n ")])],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("div",{staticClass:"allig-text-link text-center col-12",on:{click:function(t){return e.PageLogin()}}},[e._v("\n Alligateログインに戻る\n ")])])],1)],1)],1):e._e(),e._v(" "),5===e.step?s("v-form",{on:{submit:function(t){return t.preventDefault(),e.$emit("formSubmitForgot",{credentials:e.credentials})}},model:{value:e.formLogin,callback:function(t){e.formLogin=t},expression:"formLogin"}},[s("v-row",[s("v-col",{staticClass:"background-white ml-12",attrs:{cols:"12","align-self":"center"}},[s("v-row",{attrs:{justify:"center"}},[s("div",{staticClass:"logo-text mt-10 mb-10"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1)]),e._v(" "),""!==e.error?s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("div",{staticClass:"text-center col-8 txt-error"},[e._v("\n "+e._s(e.error)+"\n ")])]):e._e(),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.ownerId?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"事業者ID",disabled:"",autocomplete:"off"},model:{value:e.credentials.ownerId,callback:function(t){e.$set(e.credentials,"ownerId",t)},expression:"credentials.ownerId"}}),e._v(" "),""!==e.errorMessage.ownerId?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.ownerId))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.userId?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account-circle",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"ユーザーID",autocomplete:"off",disabled:""},model:{value:e.credentials.username,callback:function(t){e.$set(e.credentials,"username",t)},expression:"credentials.username"}}),e._v(" "),""!==e.errorMessage.userId?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.userId))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.resetCode?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-account-circle",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"メールにて通知されたリセットコードを入力",type:"text",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.credentials.resetCode,callback:function(t){e.$set(e.credentials,"resetCode",t)},expression:"credentials.resetCode"}}),e._v(" "),""!==e.errorMessage.resetCode?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.resetCode))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("div",{staticClass:"allig-text-link text-center col-8 txt-error"},[e._v("\n パスワードは英大文字、英小文字、数字を組み合わせた8文字以上に設定してください。\n ")])]),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.password?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-lock",type:"password",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"パスワード",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.credentials.password,callback:function(t){e.$set(e.credentials,"password",t)},expression:"credentials.password"}}),e._v(" "),""!==e.errorMessage.password?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.password))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"input-full",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{class:""!==e.errorMessage.confirmPassword?"input-login input-error":"input-login",attrs:{"prepend-inner-icon":"mdi-lock",type:"password",color:"green","hide-details":"auto","single-line":"",outlined:"",dense:"",label:"再記入新しいパスワード",autocomplete:"off",readonly:"",onfocus:"this.removeAttribute('readonly');"},model:{value:e.credentials.confirmPassword,callback:function(t){e.$set(e.credentials,"confirmPassword",t)},expression:"credentials.confirmPassword"}}),e._v(" "),""!==e.errorMessage.confirmPassword?s("p",{staticClass:"txt-error"},[e._v(e._s(e.errorMessage.confirmPassword))]):e._e()],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-btn",{staticClass:"text-color-white text-bold input-login",attrs:{block:"",type:"submit",color:"green",elevation:"1",disabled:e.disabled},on:{click:function(t){return e.$emit("resetPass",{credentials:e.credentials})}}},[e._v("\n 送信\n ")])],1)],1),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("div",{staticClass:"allig-text-link text-center col-12",on:{click:function(t){return e.PageLogin()}}},[e._v("\n Alligateログインに戻る\n ")])])],1)],1)],1):e._e(),e._v(" "),6===e.step?s("v-form",{model:{value:e.formLogin,callback:function(t){e.formLogin=t},expression:"formLogin"}},[s("v-row",[s("v-col",{staticClass:"background-white ml-12",attrs:{cols:"12","align-self":"center"}},[s("v-row",{attrs:{justify:"center"}},[s("div",{staticClass:"logo-text mt-10 mb-10"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1)]),e._v(" "),s("v-row",{staticClass:"mb-2",attrs:{justify:"center"}},[s("p",{staticClass:"txt-success"},[e._v("パスワードがリセットされました。")]),e._v(" "),s("div",{staticClass:"allig-text-link text-center col-12 mt-1",on:{click:function(t){return e.PageLogin()}}},[e._v("\n Alligateログインに戻る\n ")])])],1)],1)],1):e._e()],1)],1)],1)},nS=[],iS=f["a"].extend({name:"Login",components:{InputForm:io,TextLink:No,SuccessButton:kr},props:{loginProcess:{type:Number,default:0},googleInfo:{type:Object,default:function(){return{}}},appleInfo:{type:Object,default:function(){return{}}},oneLoginInfo:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},error:{type:String,default:""},loading:{type:Boolean,default:!1},errorMessage:{default:{ownerId:"",userId:"",password:"",mfaCode:"",resetCode:"",confirmPassword:""}}},watch:{loginProcess:function(e){this.step=e,5===e&&(this.credentials.ownerId=localStorage.ownerId,this.credentials.username=localStorage.userId)}},data:function(){return{input:null,credentials:{ownerId:"",username:"",password:"",mfaCode:"",resetCode:"",confirmPassword:""},username:"",password:"",step:0,nextStep:!1,show1:!1,formLogin:!1}},methods:{PageLogin:function(){this.step=0,this.$emit("goPageLogin")}}}),lS=iS,cS=(a("fd34"),a("ceb3"),a("adda")),uS=Object(I["a"])(lS,oS,nS,!1,null,"561e616f",null),dS=uS.exports;C()(uS,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VForm:Nl["a"],VIcon:Gr["a"],VImg:cS["a"],VOverlay:Wg["a"],VProgressCircular:Hu["a"],VRow:Kr["a"],VTextField:Tr["a"]});var gS=f["a"].extend({name:"LoginPage",components:{Login:dS},props:{step:{type:Number,default:0}},data:function(){return{credentials:{ownerId:"",userId:"",password:"",mfaCode:"",confirmPassword:"",resetCode:""},loginProcess:0,error:"",federatedLoginServices:[],googleLoginInfo:{isValid:!1,cognitoIdProviderName:""},appleLoginInfo:{isValid:!1,cognitoIdProviderName:""},oneloginLoginInfo:{isValid:!1,cognitoIdProviderName:""},cognitoUser:{},mfaCode:"",IpAddress:"",loading:!1,errorMessage:{ownerId:"",userId:"",password:"",mfaCode:"",resetCode:"",confirmPassword:""}}},mounted:function(){this.loginProcess=this.step;var e=window.location.href.match(/code=/);e&&(this.loading=!0);var t=this.$route.query.status;""!==t&&void 0!==t&&(this.errorMessage.ownerId="ログインに失敗しました。ユーザー登録状況について管理者にお問い合わせください。"),this.getIPAddress()},created:function(){sS["a"].listen("auth",this.authEventListener)},methods:{authEventListener:function(e){switch(console.log(e),e.payload.event){case"signIn":IT.saveCurrentAuthenticatedUser();break;case"signIn_failure":IT.errorAuthenticatedUser();break;default:break}},goPageLogin:function(){this.errorMessage={ownerId:"",userId:"",password:"",mfaCode:"",resetCode:"",confirmPassword:""},this.loginProcess=0,this.federatedLoginServices=[]},next:function(e){var t=e,a={ownerId:t};this.validateBeforeSubmit(1,a)&&this.submitOwner(e)},confirmSignin:function(e){var t=this;this.validateBeforeSubmit(2,e)&&(this.loading=!0,rS["a"].confirmSignIn(this.cognitoUser,e.mfaCode,"SMS_MFA").then((function(e){console.log(e)})).catch((function(e){t.loading=!1,t.errorMessage.mfaCode="認証コードが間違っています。"})))},forgotPassword:function(e){this.loginProcess=4},formSubmitForgot:function(e){this.validateBeforeSubmit(4,e)},formSubmit:function(e){this.validateBeforeSubmit(3,e)},signIn:function(e){this.validateBeforeSubmit(3,e)&&this.messageHandlerSignIn(e)},forgot:function(e){var t=this;if(this.validateBeforeSubmit(4,e)){this.loading=!0;var a={ownerId:e.ownerId,userId:e.username};this.$http.post(ge,JSON.stringify(a)).then((function(e){"Success"===e.body.message&&(t.loading=!1,localStorage.setItem("ownerId",a.ownerId),localStorage.setItem("userId",a.userId),t.loginProcess=5)})).then(null,(function(e){t.loading=!1,t.errorMessage.userId="入力情報が間違ってます。",t.federatedLoginServices=[]}))}},resetPass:function(e){var t=this;if(this.validateBeforeSubmit(5,e.credentials)){this.loading=!0;var a={ownerId:e.credentials.ownerId,userId:e.credentials.username,resetCode:e.credentials.resetCode,newPassword:e.credentials.password};console.log("data",e),this.$http.post(pe,JSON.stringify(a)).then((function(e){"Success"===e.body.message&&(t.loading=!1,localStorage.setItem("ownerId",t.credentials.ownerId),localStorage.setItem("userId",t.credentials.userId),t.loginProcess=6)})).then(null,(function(e){switch(t.loading=!1,e.status){case 400:t.error="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 444:t.error="事業者ID、ユーザーIDもしくはリセットコードが間違っています。";break;case 445:t.error="事業者ID、ユーザーIDもしくはリセットコードが間違っています。";break;case 500:t.error="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:t.error="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:t.error="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}}))}},messageHandlerSignIn:function(e){var t=this,a=e.username+"\\"+e.ownerId,s=e.password;localStorage.setItem("signIn","true"),localStorage.setItem("ownerId",e.ownerId),this.loading=!0,rS["a"].signIn(a,s,{ownerId:e.ownerId,ipAddress:this.IpAddress}).then((function(e){return t.loading=!1,IT.saveCurrentAuthenticatedUser().then((function(){"SMS_MFA"===e.challengeName?(t.cognitoUser=e,t.loginProcess=3,t.errorMessage={ownerId:"",userId:"",password:"",mfaCode:"",resetCode:"",confirmPassword:""}):"/dashboard"!==t.$route.path&&t.$router.push({path:"dashboard"})}))})).catch((function(e){t.loading=!1,-1!==e.message.indexOf("PreAuthentication failed with error")?t.errorMessage.password="ご使用の環境からはご利用出来ません":t.errorMessage.password="入力情報が間違ってます。"}))},signInWithIdentityProvider:function(e){this.setStartLogin().then((function(t){rS["a"].federatedSignIn({provider:e})}))},submitOwner:function(e){var t=this;this.loading=!0,this.dispLoading(),this.$http.get(Yt+"?ownerId="+e).then((function(e){t.loading=!1,t.error="",localStorage.setItem("ownerId",t.credentials.ownerId),t.credentials.ownerId=t.credentials.ownerId,t.credentials.userId="",t.credentials.password="",t.loginProcess=2,t.federatedLoginServices=e.body.federatedLoginServices,t.getFederatedLoginServices()})).then(null,(function(e){t.loading=!1,t.errorMessage.ownerId="事業者IDが間違っています。",t.federatedLoginServices=[]}))},getFederatedLoginServices:function(){this.googleLoginInfo.isValid=!1,this.googleLoginInfo.cognitoIdProviderName="",this.appleLoginInfo.isValid=!1,this.appleLoginInfo.cognitoIdProviderName="",this.oneloginLoginInfo.isValid=!1,this.oneloginLoginInfo.cognitoIdProviderName="";var e=this.federatedLoginServices.find((function(e){return"Google"===e.name})),t=this.federatedLoginServices.find((function(e){return"Apple"===e.name})),a=this.federatedLoginServices.find((function(e){return"Onelogin"===e.name}));e&&(this.googleLoginInfo.isValid=!0,this.googleLoginInfo.cognitoIdProviderName=e.cognitoIdProviderName),t&&(this.appleLoginInfo.isValid=!0,this.appleLoginInfo.cognitoIdProviderName=t.cognitoIdProviderName),a&&(this.oneloginLoginInfo.isValid=!0,this.oneloginLoginInfo.cognitoIdProviderName=a.cognitoIdProviderName)},setStartLogin:function(){var e=this;return new Promise((function(t,a){var s=e.$store.state.auth;s.isLoginChallenge=!0,e.$store.commit("UPDATE_AUTH",s),t(null)}))},validateBeforeSubmit:function(e,t){switch(e){case 1:return null===t.ownerId||""===t.ownerId?(this.errorMessage.ownerId="事業者IDは必須項目です。",!1):(this.errorMessage.ownerId="",!0);case 2:return null===t.mfaCode||""===t.mfaCode?(this.errorMessage.mfaCode="認証コードは必須項目です。",!1):(this.errorMessage.mfaCode="",!0);case 3:var a=!0;return null===t.ownerId||""===t.ownerId?(this.errorMessage.ownerId="事業者IDは必須項目です。",a=!1):this.errorMessage.ownerId="",null===t.username||""===t.username?(this.errorMessage.userId="ユーザーIDは必須項目です。",a=!1):this.errorMessage.userId="",null===t.password||""===t.password?(this.errorMessage.password="パスワードは必須項目です。",a=!1):this.errorMessage.password="",a;case 4:var s=!0;return null===t.ownerId||""===t.ownerId?(this.errorMessage.ownerId="事業者IDは必須項目です。",s=!1):this.errorMessage.ownerId="",null===t.username||""===t.username?(this.errorMessage.userId="ユーザーIDは必須項目です。",s=!1):this.errorMessage.userId="",s;case 5:var r=!0;return null===t.ownerId||""===t.ownerId?(this.errorMessage.ownerId="事業者IDは必須項目です。",r=!1):this.errorMessage.ownerId="",null===t.resetCode||""===t.resetCode?(this.errorMessage.resetCode="リセットコードは必須項目です。",r=!1):this.errorMessage.resetCode="",null===t.username||""===t.username?(this.errorMessage.userId="ユーザーIDは必須項目です。",r=!1):this.errorMessage.userId="",null===t.password||""===t.password?(this.errorMessage.password="パスワードは必須項目です。",a=!1):t.password.match("^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*).{8,64}$")?this.errorMessage.password="":(this.errorMessage.password="ログインパスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください",a=!1),t.password!==t.confirmPassword?(this.errorMessage.confirmPassword="「新しいパスワード」と一致しません。",a=!1):this.errorMessage.confirmPassword="",r;default:return!0}},dispLoading:function(){},getIPAddress:function(){var e=this;return fetch("https://api.ipify.org?format=json").then((function(e){return e.json()})).then((function(t){var a=t.ip;e.IpAddress=a})).catch((function(e){return console.log("error: ".concat(e))}))}}}),pS=gS,mS=Object(I["a"])(pS,tS,aS,!1,null,null,null),fS=mS.exports,hS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("personal-setting-template",{attrs:{loading:e.loading,errorMessageLogs:e.errorMessageLogs,userData:e.userData}})},vS=[],bS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-round mb-5",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:"",disabled:!e.userData.userId},on:{click:function(t){return e.goHome(e.userData.userId)}}},[e._v("\n 戻る\n ")])],1)],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5",attrs:{elevation:"3"}},[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 font-weight-bold"},[e._v("\n ユーザー情報\n ")])],1),e._v(" "),a("v-row",{attrs:{justify:"start"}},[""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1),e._v(" "),a("personal-setting-form",{attrs:{userData:e.userData,loading:e.loading}})],1)],1)],1)},yS=[],IS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-personal-setting-form"},[a("v-container",{staticClass:"pa-0"},[a("v-row",{staticClass:"mb-1 ml-1",attrs:{justify:"start"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:!e.userData.userId||!1===e.userData.isAdmin},on:{click:function(t){return e.editUser(e.userData.userId)}}},[e._v("\n アカウントを編集\n ")])],1),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("info-item",{attrs:{title:"事業者ID",text:void 0!==e.userData.owner?e.userData.owner.ownerId:""}}),e._v(" "),a("info-item",{attrs:{title:"ユーザーID",text:e.userData.userId}}),e._v(" "),a("info-item",{attrs:{title:"メールアドレス",text:e.userData.email}}),e._v(" "),a("info-item",{attrs:{title:"ユーザー名",text:e.userData.name}})],1)],1)},xS=[],CS=f["a"].extend({name:"PersonalSettingForm",components:{SuccessButton:kr,InfoItem:Wr},props:{loading:{type:Boolean,default:!1},userData:{default:function(){return[]}}},computed:{},methods:{editUser:function(e){this.$router.push({path:Mt,query:{userId:e,goBack:"personal"}})}}}),wS=CS,kS=Object(I["a"])(wS,IS,xS,!1,null,null,null),SS=kS.exports;C()(kS,{VBtn:pr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var _S=f["a"].extend({name:"PersonalSettingTemplate",components:{PersonalSettingForm:SS,Breadcrumbs:cn},props:{loading:{type:Boolean,default:!1},userData:{default:function(){return[]}},errorMessageLogs:{default:""}},computed:{breadcrumbs:{get:function(){return[{text:"ホーム",disabled:!0},{text:"個人設定",disabled:!0}]}}},methods:{goHome:function(e){var t=this.$route.query;void 0!==t.goBack&&"true"===t.goBack&&""!==localStorage.goBack?this.$router.push({path:localStorage.goBack}):this.$router.go(-1)}}}),PS=_S,MS=Object(I["a"])(PS,bS,yS,!1,null,null,null),LS=MS.exports;C()(MS,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var DS=nr["a"].extend({name:"PersonalSettingPage",components:{PersonalSettingTemplate:LS},data:function(){return{loading:!1,page:1,tempGroupPassages:[],cardItems:[],phoneItems:[],errorMessageLogs:"",listphones:[],listGatePassages:[],userData:[],goBack:"user"}},mounted:function(){this.$emit("activeMenu","user")},created:function(){this.getInFoUser()},methods:{getInFoUser:function(){var e=this,t=localStorage.userProfileId;this.$http.get(T+"?userId="+encodeURIComponent(t)).then((function(t){e.userData=t.body.users[0],console.log(e.userData)})).then(null,(function(t){switch(t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}}}),GS=DS,AS=Object(I["a"])(GS,hS,vS,!1,null,null,null),RS=AS.exports,TS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("user-change-password-template",{attrs:{loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,userInfo:e.userInfo},on:{clickChangePassword:function(t){return e.clickChangePassword()}}})},ES=[],OS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-change-password-table"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("user-change-password-form",{attrs:{userInfo:e.userInfo,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs},on:{clickChangePassword:function(t){return e.$emit("clickChangePassword")}}})],1)],1)},VS=[],US=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"form",staticClass:"allig-user-change-password-form"},[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-container",[a("div",[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n パスワード変更\n ")])],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("v-form",{ref:"UserChangePasswordForm",attrs:{"lazy-validation":""}},[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[a("div",{staticClass:"subtitleChangePassword"},[e._v("\n 現在のログインパスワードと、新しいログインパスワードを入力してください。\n ")]),e._v(" "),a("br"),e._v("\n ログインパスワードを変更する:\n ")])],1),e._v(" "),a("input-form",{attrs:{disabled:e.loading,title:"現在のパスワード ※必須",inputType:"password",rules:[e.rulesValidate.validatePassword(e.userInfo.oldPassword)]},model:{value:e.userInfo.oldPassword,callback:function(t){e.$set(e.userInfo,"oldPassword",t)},expression:"userInfo.oldPassword"}}),e._v(" "),a("input-form",{attrs:{disabled:e.loading,title:"新しいパスワード ※必須",inputType:"password",rules:[e.rulesValidate.validatePassword(e.userInfo.newPassword)]},model:{value:e.userInfo.newPassword,callback:function(t){e.$set(e.userInfo,"newPassword",t)},expression:"userInfo.newPassword"}}),e._v(" "),a("v-row",[a("v-col",{staticClass:"col col-2"}),e._v(" "),a("v-col",{staticClass:"col note"},[e._v("半角英大文字・半角英小文字・数字を組み合わせた8文字以上")])],1),e._v(" "),a("input-form",{attrs:{disabled:e.loading,title:"新しいパスワード再入力 ※必須",inputType:"password",rules:[e.rulesValidate.validatePassword(e.userInfo.reNewPassword),e.rulesValidate.validateMatchPassword(e.userInfo.newPassword,e.userInfo.reNewPassword)]},model:{value:e.userInfo.reNewPassword,callback:function(t){e.$set(e.userInfo,"reNewPassword",t)},expression:"userInfo.reNewPassword"}})],1)],1),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.clickChangePassword()}}},[e._v("\n パスワードを変更 ")])],1)],1)])],1)},$S=[],NS=f["a"].extend({name:"UserChangePasswordForm",components:{Loading:Yu,InputForm:io},props:{userInfo:{type:Object,default:{}},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}},data:function(){return{rulesValidate:{validatePassword:function(e){var t=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*).{8,64}$/;return t.test(e)||"パスワードは英大文字、英小文字、数字を組み合わせた8文字以上64文字以内で設定してください。"},validateMatchPassword:function(e,t){return e===t||"「新しいパスワード」と一致しません。"}}}},methods:{clickChangePassword:function(){var e=this.$refs.UserChangePasswordForm.validate();e&&this.$emit("clickChangePassword")}},watch:{successMessageLogs:function(e){""!==e&&this.$refs.UserChangePasswordForm.resetValidation()}}}),FS=NS,jS=(a("9a53"),Object(I["a"])(FS,US,$S,!1,null,null,null)),BS=jS.exports;C()(jS,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VForm:Nl["a"],VRow:Kr["a"]});var zS=f["a"].extend({name:"UserChangePasswordTemplate",components:{UserChangePasswordForm:BS,Breadcrumbs:cn},props:{loading:{type:Boolean,default:!1},userInfo:{default:{}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""}},computed:{breadcrumbs:{get:function(){return[{text:"ホーム",disabled:!0},{text:"パスワード変更",disabled:!0}]}}},methods:{}}),HS=zS,KS=Object(I["a"])(HS,OS,VS,!1,null,null,null),YS=KS.exports;C()(KS,{VContainer:Zo["a"]});var qS=nr["a"].extend({name:"UserChangePasswordPage",components:{UserChangePasswordTemplate:YS},data:function(){return{loading:!1,errorMessageLogs:"",successMessageLogs:"",userInfo:{oldPassword:"",newPassword:"",reNewPassword:""}}},watch:{loading:function(e){this.$emit("loading",e)}},methods:{clickChangePassword:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,e.errorMessageLogs="",e.successMessageLogs="",a={oldPassword:e.userInfo.oldPassword,newPassword:e.userInfo.newPassword},t.next=6,e.userChangePassword(a);case 6:case"end":return t.stop()}}),t)})))()},userChangePassword:function(e){var t=this;return new Promise((function(a,s){t.$http.post(fe,JSON.stringify(e)).then((function(e){t.loading=!1,t.resetData(),"Success"===e.body.message?(t.successMessageLogs="パスワードが変更されました。",a(!0)):a(!1)})).then(null,(function(e){if(e.body)switch(e.status){case 401:"The incoming token has expired"===e.body.message?t.errorMessageLogs="":t.errorMessageLogs="アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:t.errorMessageLogs="現在のパスワードが間違っています。";break;case 404:t.errorMessageLogs="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 500:t.errorMessageLogs="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:t.errorMessageLogs="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:t.errorMessageLogs="入力したパラメーターが誤っています。入力内容をご確認ください。";break}else t.errorMessageLogs=Ma;t.loading=!1,a(!1)}))}))},resetData:function(){this.userInfo.oldPassword="",this.userInfo.newPassword="",this.userInfo.reNewPassword=""}}}),WS=qS,JS=Object(I["a"])(WS,TS,ES,!1,null,null,null),ZS=JS.exports,XS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"mr-0 mb-4",attrs:{justify:"start"}},[a("icon-button",{attrs:{text:"戻る",icon:"mdi-arrow-left"}})],1),e._v(" "),a("v-card",{staticClass:"pa-6 pr-10 mb-5",attrs:{elevation:"3"}},[a("ControlSettingForm")],1),e._v(" "),a("v-row",{staticClass:"mr-0 mb-4",attrs:{justify:"end"}},[a("icon-button",{attrs:{text:"登録",icon:"mdi-content-save-all-outline"}})],1)],1)],1)},QS=[],e_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("v-row",[a("v-col",{staticClass:"text-subtitle-2 font-weight-bold"},[e._v("\n 制御盤殳定情報\n ")])],1),e._v(" "),a("input-form",{attrs:{value:"",title:"名前",inputType:"text"}}),e._v(" "),a("input-form",{attrs:{value:"",title:"詳細",inputType:"text"}}),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 font-weight-bold"},[e._v("\n ゲート情報\n ")])],1),e._v(" "),a("v-row",{staticClass:"align-center custom-label",attrs:{md:"3"}},[e._v("\n Onelogin でログイン\n ")]),e._v(" "),a("v-row",{staticClass:"align-center custom-label",attrs:{md:"3"}},[e._v("\n Onelogin でログイン\n ")]),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 font-weight-bold"},[e._v("\n アンチパスバック設定\n ")])],1),e._v(" "),a("input-form",{attrs:{title:"SMS 2段階認証",inputType:"switch"}}),e._v(" "),a("input-form",{attrs:{title:"SMS 2段階認証",inputType:"switch"},model:{value:e.showAntiPass,callback:function(t){e.showAntiPass=t},expression:"showAntiPass"}}),e._v(" "),e.showAntiPass?a("v-card",[a("v-row",[a("v-col",{attrs:{cols:"3"}},[a("v-subheader",[e._v("\n クリア時間\n ")])],1),e._v(" "),a("v-col")],1)],1):e._e()],1)},t_=[],a_=f["a"].extend({name:"ControlSettingForm",components:{InputForm:io},data:function(){return{showAntiPass:!1}}}),s_=a_,r_=Object(I["a"])(s_,e_,t_,!1,null,null,null),o_=r_.exports;C()(r_,{VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VRow:Kr["a"],VSubheader:Yr["a"]});var n_=f["a"].extend({name:"ControlSettingTemplate",components:{ControlSettingForm:o_,Breadcrumbs:cn,IconButton:td},props:{},data:function(){return{breadcrumbs:[{text:"Home",to:"/home"},{text:"ゲート",to:"/gates"},{text:"制御盤設定",disabled:!0}]}}}),i_=n_,l_=Object(I["a"])(i_,XS,QS,!1,null,null,null),c_=l_.exports;C()(l_,{VCard:Pr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var u_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("layout-template",{attrs:{pathName:e.pathName,isAdmin:e.isAdmin,authority:e.authority,selectedItemNav:e.selectedItemNav,showSubMenu:e.showSubMenu,loadingParent:e.loading},on:{menuClick:function(t){return e.menuClick(t)},activeMenu:function(t){return e.activeMenu(t)},"click-user-setting":e.personal,"click-user-change-password":e.userChangePasswordClick,"click-logout":e.logout,"click-notice":e.clickNotice}})},d_=[],g_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.loadingParent?a("v-overlay",{attrs:{value:e.loadingParent,color:"white"}},[""===e.textCircleLoading?a("v-progress-circular",{staticClass:"user-loading-progress",attrs:{indeterminate:"",color:"green"}}):e._e()],1):a("v-overlay",{attrs:{value:e.loading,color:"white"}},[""===e.textCircleLoading?a("v-progress-circular",{staticClass:"user-loading-progress text-loading",attrs:{indeterminate:"",color:"green"}}):e._e(),e._v(" "),""!==e.textCircleLoading?a("div",{attrs:{id:"title-loading"}},[e._v(e._s(e.textCircleLoading))]):e._e(),e._v(" "),""!==e.textCircleLoading?a("v-progress-circular",{attrs:{indeterminate:"",size:100,width:15,value:e.valueCircleLoading,color:"green"}},[e._v("\n "+e._s(e.valueCircleLoading)+"%\n ")]):e._e()],1),e._v(" "),a("allig-header",{attrs:{userName:e.userName},on:{"click-nav":function(){return e.showNav=!e.showNav},"click-guid":function(t){return e.$emit("click-guide")},"click-notice":function(t){return e.$emit("click-notice")},"click-user-setting":function(t){return e.$emit("click-user-setting")},"click-user-change-password":function(t){return e.$emit("click-user-change-password")},"click-logout":function(t){return e.$emit("click-logout")}}}),e._v(" "),a("side-navigation",{attrs:{isAdmin:e.isAdmin,authority:e.authority,selectedItemNav:e.selectedItemNav,showSubMenu:e.showSubMenu},on:{menuClick:function(t){return e.$emit("menuClick",t)}},model:{value:e.showNav,callback:function(t){e.showNav=t},expression:"showNav"}}),e._v(" "),a("v-main",{staticClass:"allig-main",class:e.isClass(e.activeName)},[a("v-container",{staticClass:"allig-container",attrs:{fluid:""}},[a("router-view",{attrs:{isAdmin:e.isAdmin,authority:e.authority},on:{loading:function(t){return e.Loading(t)},loadingCircle:function(t){return e.loadingCircle(t)},textCircle:function(t){return e.textCircle(t)},activeMenu:function(t){return e.$emit("activeMenu",t)}}})],1)],1)],1)},p_=[],m_=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-app-bar",{staticClass:"allig-header",attrs:{color:"white",dense:e.$vuetify.breakpoint.smAndDown,elevation:"1",app:"","clipped-left":""}},[e.$vuetify.breakpoint.mobile?s("v-app-bar-nav-icon",{on:{click:function(t){return e.$emit("click-nav")}}}):e._e(),e._v(" "),s("div",{staticClass:"logo-text"},[e.$vuetify.breakpoint.xs?s("v-img",{attrs:{src:a("a1d8"),"max-height":"100%","max-width":"150px",width:e.$vuetify.breakpoint.width-150}}):s("v-img",{staticClass:"ml-2",attrs:{src:a("a1d8"),"max-height":"100%","max-width":"200px"}})],1),e._v(" "),s("v-spacer"),e._v(" "),e.$vuetify.breakpoint.mdAndUp?s("div",[s("v-img",{staticClass:"icon-support",attrs:{src:a("aa87"),"max-height":"100%","max-width":"220px"},on:{click:function(t){return e.$emit("click-notice")}}})],1):e._e(),e._v(" "),s("v-menu",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(t){var a=t.on,r=t.attrs;return[s("div",e._g(e._b({staticClass:"sub-menu"},"div",r,!1),a),[e._v("\n "+e._s(e.userName)+" "),s("v-icon",[e._v("mdi-chevron-down")])],1),e._v(" "),s("v-btn",e._g(e._b({attrs:{icon:""}},"v-btn",r,!1),a),[s("v-avatar",[s("v-icon",[e._v("mdi-account-circle")])],1)],1)]}}])},[e._v(" "),s("v-list",[e.$vuetify.breakpoint.smAndDown?s("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("click-notice")}}},[s("v-list-item-title",[s("v-icon",[e._v("mdi-help-circle")]),e._v("\n ヘルプ\n ")],1)],1):e._e(),e._v(" "),s("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("click-user-setting")}}},[s("v-list-item-title",[s("v-icon",[e._v("mdi-account-cog")]),e._v(" 個人設定")],1)],1),e._v(" "),s("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("click-user-change-password")}}},[s("v-list-item-title",[s("v-icon",[e._v("mdi-lock-open-variant")]),e._v("パスワード変更")],1)],1),e._v(" "),s("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("click-logout")}}},[s("v-list-item-title",[s("v-icon",[e._v("mdi-logout")]),e._v(" ログアウト")],1)],1)],1)],1)],1)},f_=[],h_=f["a"].extend({name:"Header",props:{isExpanded:{type:Boolean,default:!1},userName:{type:String,default:""}}}),v_=h_,b_=(a("9b63"),a("40dc")),y_=a("5bc1"),I_=a("8212"),x_=Object(I["a"])(v_,m_,f_,!1,null,"4c018a48",null),C_=x_.exports;C()(x_,{VAppBar:b_["a"],VAppBarNavIcon:y_["a"],VAvatar:I_["a"],VBtn:pr["a"],VIcon:Gr["a"],VImg:cS["a"],VList:En["a"],VListItem:On["a"],VListItemTitle:Vn["b"],VMenu:Un["a"],VSpacer:Qo["a"]});var w_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-navigation-drawer",{staticClass:"allig-nav",attrs:{app:"",clipped:"","expand-on-hover":"","mini-variant":e.mini},on:{"update:miniVariant":function(t){e.mini=t},"update:mini-variant":function(t){e.mini=t}},model:{value:e.innerShow,callback:function(t){e.innerShow=t},expression:"innerShow"}},[a("v-list",{attrs:{nav:"",dense:""}},[a("v-list-item",{class:{"v-list-item--active":0===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","dashboard")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-home")])],1),e._v(" "),a("v-list-item-title",[e._v("ホーム")])],1),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToViewUser?a("v-list-item",{class:{"v-list-item--active":1===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","user")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-account")])],1),e._v(" "),a("v-list-item-title",[e._v("ユーザー")])],1):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToSetPcodesToUser?a("v-list-item",{class:{"v-list-item--active":3===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","cards")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-badge-account-horizontal-outline")])],1),e._v(" "),a("v-list-item-title",[e._v("カード")])],1):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToViewGroup?a("v-list-item",{class:{"v-list-item--active":2===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","groups")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-door-closed")])],1),e._v(" "),a("v-list-item-title",[e._v("ゲート/通行権限")])],1):e._e(),e._v(" "),a("v-list-item",{class:{"v-list-item--active":5===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","log")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-format-list-bulleted")])],1),e._v(" "),a("v-list-item-title",[e._v("通行ログ")])],1),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToViewUser||!0===e.authority.isAdminToViewGroup?a("v-list-item",{class:{"v-list-item--active":!0===e.showSubMenu},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","in-room-management")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-account-clock")])],1),e._v(" "),a("v-list-item-title",[e._v("在室状況")])],1):e._e(),e._v(" "),10!==e.selectedItemNav&&11!==e.selectedItemNav&&!0!==e.showSubMenu||!0!==e.authority.isAdmin&&!0!==e.authority.isAdminToViewGroup?e._e():a("v-list-item",{staticClass:"sub-menu",class:{"v-list-item--active":10===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","in-room-management/room")}}},[a("v-list-item-title",[e._v("部屋別状況")])],1),e._v(" "),10!==e.selectedItemNav&&11!==e.selectedItemNav&&!0!==e.showSubMenu||!0!==e.authority.isAdmin&&!0!==e.authority.isAdminToViewUser?e._e():a("v-list-item",{staticClass:"sub-menu",class:{"v-list-item--active":11===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","in-room-management/user")}}},[a("v-list-item-title",[e._v("ユーザー別状況")])],1),e._v(" "),!0===e.authority.isAdmin?a("v-list-item",{class:{"v-list-item--active":7===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","setting")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-cog")])],1),e._v(" "),a("v-list-item-title",[e._v("システム設定")])],1):e._e(),e._v(" "),!0===e.authority.isAdmin?a("v-list-item",{class:{"v-list-item--active":13===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","key-add")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-checkbox-marked-outline")])],1),e._v(" "),a("v-list-item-title",[e._v("鍵共有")])],1):e._e(),e._v(" "),!0===e.authority.isAdmin?a("v-list-item",{class:{"v-list-item--active":9===e.selectedItemNav},attrs:{link:""},on:{click:function(t){return e.$emit("menuClick","external")}}},[a("v-list-item-icon",[a("v-icon",[e._v("mdi-puzzle")])],1),e._v(" "),a("v-list-item-title",[e._v("外部システム連携")])],1):e._e()],1)],1)},k_=[],S_=f["a"].extend({name:"SideNavigation",props:{value:{type:Boolean,default:!1},isAdmin:{type:Boolean,default:!1},selectedItemNav:{type:Number,default:0},authority:{type:Object,default:{}},showSubMenu:{type:Boolean,default:!1}},computed:{innerShow:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},data:function(){return{mini:!0,selectedItem:0}},mounted:function(){},methods:{},watch:{selectedItemNav:function(e){this.selectedItem=e}}}),__=S_,P_=(a("c072"),a("34c3")),M_=a("f774"),L_=Object(I["a"])(__,w_,k_,!1,null,"7e65b1dc",null),D_=L_.exports;C()(L_,{VIcon:Gr["a"],VList:En["a"],VListItem:On["a"],VListItemIcon:P_["a"],VListItemTitle:Vn["b"],VNavigationDrawer:M_["a"]});var G_=f["a"].extend({name:"LayoutTemplate",components:{AlligHeader:C_,SideNavigation:D_},props:{pathName:{type:String,default:"setting"},loadingParent:{type:Boolean,default:!1},selectedItemNav:{type:Number,default:0},isAdmin:{type:Boolean,default:!1},authority:{type:Object,default:{}},showSubMenu:{type:Boolean,default:!1}},data:function(){return{showNav:!0,activeName:"setting",loading:!1,userName:"",textCircleLoading:"",valueCircleLoading:0}},created:function(){this.userName=localStorage.userProfileId;var e=this.$route.path.replace("/",""),t=e.split("/");this.menuActive("in-room-management"===t[0]&&t.length>1?e:t[0]),this.$vuetify.breakpoint.smAndDown&&(this.showNav=!1)},watch:{pathName:function(e,t){this.activeName=e,this.menuActive(this.activeName)}},mounted:function(){},methods:{Loading:function(e){this.loading=e,this.textCircleLoading=""},loadingCircle:function(e){this.valueCircleLoading=e},textCircle:function(e){this.textCircleLoading=e},menuActive:function(e){this.textCircleLoading="";var t=1;switch(e){case"user":t=1;break;case"groups":case"group":t=2;break;case"cards":case"card":t=3;break;case"gates":case"gate":t=4;break;case"log":t=5;break;case"setting":t=7;break;case"reflection-status":t=8;break;case"external":t=9;break;case"safie":t=9;break;case"in-room-management/room":t=10;break;case"in-room-management/user":t=11;break;case"key-add":t=13;break;default:t=0;break}localStorage.setItem("selectedItemNav",t.toString())},isClass:function(e){var t=e;switch(e){case"user":case"groups":case"group":case"cards":case"card":case"gates":case"gate":case"log":case"in-room-management/room":case"in-room-management/user":t=e+" common-class";break}return t}}}),A_=G_,R_=(a("61d6"),a("6d02"),a("f6c4")),T_=Object(I["a"])(A_,g_,p_,!1,null,null,null),E_=T_.exports;C()(T_,{VContainer:Zo["a"],VMain:R_["a"],VOverlay:Wg["a"],VProgressCircular:Hu["a"]});var O_=nr["a"].extend({name:"LayoutTemplatePage",components:{LayoutTemplate:E_},data:function(){return{pathName:"",isAdmin:!1,selectedItemNav:0,authority:{},showSubMenu:!1,loading:!1}},created:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log=function(e,t){if("err:"!==e||""===e)return null},a=er.state.auth,void 0!==a.isAdmin&&null!==a.isAdmin){t.next=9;break}return e.loading=!0,t.next=6,e.getPlan();case 6:e.getProfile(),t.next=11;break;case 9:e.isAdmin=a.isAdmin,e.authority=er.state.auth;case 11:case"end":return t.stop()}}),t)})))()},mounted:function(){"undefined"===typeof localStorage.selectedItemNav?(localStorage.setItem("selectedItemNav","0"),this.selectedItemNav=0):this.selectedItemNav=parseInt(localStorage.selectedItemNav)},methods:{activeMenu:function(e){switch("in-room-management"!==e&&(this.showSubMenu=!1),e){case"user":this.selectedItemNav=1;break;case"groups":this.selectedItemNav=2;break;case"cards":this.selectedItemNav=3;break;case"gates":this.selectedItemNav=4;break;case"log":this.selectedItemNav=5;break;case"setting":this.selectedItemNav=7;break;case"reflection-status":this.selectedItemNav=8;break;case"external":this.selectedItemNav=9;break;case"safie":this.selectedItemNav=9;break;case"in-room-management":this.showSubMenu=!this.showSubMenu,this.selectedItemNav=12;break;case"in-room-management/room":this.selectedItemNav=10;break;case"in-room-management/user":this.selectedItemNav=11;break;case"key-add":this.selectedItemNav=13;break;default:this.selectedItemNav=0;break}this.pathName=e,localStorage.setItem("selectedItemNav",this.selectedItemNav.toString())},menuClick:function(e){"in-room-management"!==e&&(this.showSubMenu=!1),this.pathName=e;var t="/".concat(e);switch(console.log("menuName",e),e){case"user":this.selectedItemNav=1;break;case"groups":this.selectedItemNav=2;break;case"cards":this.selectedItemNav=3;break;case"gates":this.selectedItemNav=4;break;case"log":this.selectedItemNav=5;break;case"in-room-management":this.showSubMenu=!this.showSubMenu,this.selectedItemNav=12;break;case"in-room-management/room":this.selectedItemNav=10;break;case"in-room-management/user":this.selectedItemNav=11;break;case"setting":this.selectedItemNav=7;break;case"reflection-status":this.selectedItemNav=8;break;case"external":this.selectedItemNav=9;break;case"safie":this.selectedItemNav=9;break;case"key-add":this.selectedItemNav=13;break;default:this.selectedItemNav=0;break}if(localStorage.setItem("selectedItemNav",this.selectedItemNav.toString()),"in-room-management/room"===e||"in-room-management/user"===e)("in-room-management/user"===e&&void 0!==this.$route.query.userId||this.$route.path!==t)&&this.$router.push({path:t});else{if("in-room-management"===e)return;this.$route.path!==t?this.$router.push({path:t}):this.$router.go(0)}},logout:function(){IT.logout()},personal:function(){var e="/user/edit?userId="+localStorage.userProfileId+"&goBack=personal";e!==this.$route.fullPath&&"/personal"!==this.$route.fullPath&&localStorage.setItem("goBack",this.$route.fullPath),this.$router.push({path:xt})},userChangePasswordClick:function(){this.$router.push({path:Nt})},clickNotice:function(){window.open("https://support.alligate.me/hc/ja","_blank")},getPlan:function(){var e=this;return new Promise((function(t,a){localStorage.setItem("isMfa","false"),e.$http.get(V).then((function(e){e.body.maxRecords>0&&(localStorage.setItem("isMfa",e.body.plans[0].isMfa),localStorage.setItem("isCustomUserAuthorityService",void 0!==e.body.plans[0].isCustomUserAuthorityService?e.body.plans[0].isCustomUserAuthorityService:"")),t(!0)})).then(null,(function(e){console.log("err: ",e),t(!1)}))}))},getProfile:function(){var e=this;this.$http.get(T+"?userId="+encodeURIComponent(localStorage.userProfileId)).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(a){var s,r,o,n,i,l,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(a),s=er.state.auth,s.isAdmin=a.body.users[0].isAdmin,s.isCustomUserAuthorityService="true"===localStorage.isCustomUserAuthorityService,s.isAdminToViewGroup=!1,s.isAdminOfGroupPassages=!1,s.isAdminOfGatePassages=!1,s.isAdminOfRemoteUnlock=!1,s.isAdminToViewUser=!1,s.isAdminToEditUser=!1,s.isAdminToAddUser=!1,s.isAdminToSetPcodesToUser=!1,localStorage.setItem("ownerId",a.body.users[0].owner.ownerId),localStorage.setItem("isAdmin",a.body.users[0].isAdmin),"true"!==localStorage.isCustomUserAuthorityService){t.next=29;break}return r=!1,o=!1,n=!1,t.next=20,e.getGroupAuth();case 20:return i=t.sent,!1!==i&&(i.forEach((function(e){r=e.isAdminOfGroupPassages||r,o=e.isAdminOfGatePassages||o,n=e.isAdminOfRemoteUnlock||n})),s.isAdminToViewGroup=!0,s.isAdminOfGroupPassages=e.checkPermisson(r),s.isAdminOfGatePassages=e.checkPermisson(o),s.isAdminOfRemoteUnlock=e.checkPermisson(n)),l=!1,c=!1,u=!1,t.next=27,e.getDepartmentAuth();case 27:d=t.sent,!1!==d&&(d.forEach((function(e){l=e.isAdminToEditUser||l,c=e.isAdminToAddUser||c,u=e.isAdminToSetPcodesToUser||u})),s.isAdminToViewUser=!0,s.isAdminToEditUser=e.checkPermisson(l),s.isAdminToAddUser=e.checkPermisson(c),s.isAdminToSetPcodesToUser=e.checkPermisson(u));case 29:er.commit("UPDATE_AUTH",IT),e.isAdmin=a.body.users[0].isAdmin,e.authority=er.state.auth,localStorage.setItem("shareKeyBeValid",a.body.users[0].shareKeyBeValid),console.log(localStorage.isAdmin),e.loading=!1;case 35:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(null,(function(t){console.log(t),e.loading=!1}))},getGroupAuth:function(){var e=this;return new Promise((function(t,a){e.$http.get(Se+"?limit=1000&userId="+localStorage.userProfileId).then((function(e){localStorage.setItem("remoteUnlock",e.body.groupAdministrators[0].isAdminOfRemoteUnlock),t(e.body.groupAdministrators)})).then(null,(function(e){t(!1)}))}))},getDepartmentAuth:function(){var e=this;return new Promise((function(t,a){e.$http.get(_e+"?limit=1000&userId="+localStorage.userProfileId).then((function(e){t(e.body.departmentAdministrators)})).then(null,(function(e){t(!1)}))}))},checkPermisson:function(e){if(void 0!==e&&null!==e&&""!==e)return e||!1}}}),V_=O_,U_=Object(I["a"])(V_,u_,d_,!1,null,null,null),$_=U_.exports,N_=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),s("div",{staticClass:"main-home"},[s("div",{staticClass:"container-home"},[s("v-row",[s("p",{staticClass:"ml-10 text-subtitle-2 font-weight-bold ml"},[e._v("メインメニュー")])]),e._v(" "),s("v-row",{staticClass:"page-content page-button ml-2 item-1"},[!0===e.authority.isAdmin||!0===e.authority.isAdminToViewUser?s("router-link",{attrs:{to:{name:"user"}}},[s("div",{staticClass:"item-button"},[s("div",{staticClass:"menu-item-button"},[s("v-row",{staticClass:"mt-2",attrs:{justify:"center"}},[s("v-icon",{attrs:{size:"60"}},[e._v("mdi-account")])],1),e._v(" "),s("v-row",{attrs:{justify:"center"}},[s("span",{staticClass:"menu-description margin-top-5"},[e._v("ユーザーの登録・編集を行います。")])])],1)])]):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToSetPcodesToUser?s("router-link",{attrs:{to:{name:"card"}}},[s("div",{staticClass:"item-button"},[s("div",{staticClass:"menu-item-button"},[s("v-row",{staticClass:"mt-2",attrs:{justify:"center"}},[s("v-icon",{attrs:{size:"60"}},[e._v("mdi-badge-account-horizontal-outline")])],1),e._v(" "),s("v-row",{attrs:{justify:"center"}},[s("span",{staticClass:"menu-description margin-top-5"},[e._v("カードの登録・編集を行います。")])])],1)])]):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToViewGroup?s("router-link",{attrs:{to:{path:"groups"}}},[s("div",{staticClass:"item-button"},[s("div",{staticClass:"menu-item-button"},[s("v-row",{staticClass:"mt-2",attrs:{justify:"center"}},[s("v-icon",{attrs:{size:"60"}},[e._v("mdi-door-closed")])],1),e._v(" "),s("v-row",{attrs:{justify:"center"}},[s("span",{staticClass:"menu-description margin-top-5"},[e._v("通行権限の登録・編集を行います。")])])],1)])]):e._e(),e._v(" "),s("router-link",{attrs:{to:{name:"log"}}},[s("div",{staticClass:"item-button"},[s("div",{staticClass:"menu-item-button"},[s("v-row",{staticClass:"mt-2",attrs:{justify:"center"}},[s("v-icon",{attrs:{size:"60"}},[e._v("mdi-format-list-bulleted")])],1),e._v(" "),s("v-row",{attrs:{justify:"center"}},[s("span",{staticClass:"menu-description margin-top-5"},[e._v("ログ情報の閲覧・CSV出力を行います。")])])],1)])])],1),e._v(" "),s("v-row",[s("p",{staticClass:"ml-10 text-subtitle-2 font-weight-bold"},[e._v("\n お知らせ\n ")])]),e._v(" "),s("v-row",{staticClass:"page-content page-button ml-2 item-2"},[s("div",{staticClass:"item-button"},[s("div",{staticClass:"menu-item-button",on:{click:function(t){return e.openPage("https://support.alligate.me/hc/ja/articles/42456477618073-%E3%83%A1%E3%83%B3%E3%83%86%E3%83%8A%E3%83%B3%E3%82%B9-%E6%A9%9F%E8%83%BD%E6%8B%A1%E5%BC%B5-%E3%81%AE%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B-2025%E5%B9%B42%E6%9C%8812%E6%97%A5")}}},[s("img",{attrs:{src:a("3d46")}}),e._v(" "),s("span",{staticClass:"i-date"},[e._v("2025.01.24")]),e._v(" "),s("span",{staticClass:"title-cate"},[e._v("お知らせ")]),e._v(" "),s("p",{staticClass:"sum"},[e._v("メンテナンス(機能拡張)のお知らせ\n ")])])]),e._v(" "),s("div",{staticClass:"item-button"},[s("div",{staticClass:"menu-item-button",on:{click:function(t){return e.openPage("https://alligate.me/2023/05/30/2244/")}}},[s("img",{attrs:{src:a("f86e")}}),e._v(" "),s("span",{staticClass:"i-date"},[e._v("2023.05.30")]),e._v(" "),s("span",{staticClass:"title-cate"},[e._v("サービス連携")]),e._v(" "),s("p",{staticClass:"sum"},[e._v("「TeamSpirit EX」と連携開始\n ")])])])])],1)])],1)},F_=[],j_=f["a"].extend({name:"DashBoard",components:{Breadcrumbs:cn,GroupListModalPage:hk},props:{isAdmin:{type:Boolean,default:!1},authority:{type:Object,default:{}}},mounted:function(){this.$emit("loading",!1),this.$emit("activeMenu","dashboard")},created:function(){this.getPlan()},data:function(){return{isShow:!1,shareKeyBeValid:!1,loading:!1,error:"",isMfa:!1,isFederatedLoginService:!1}},computed:{breadcrumbs:{get:function(){return[{text:"ホーム",disabled:!0}]}}},methods:{getPlan:function(){this.isMfa=localStorage.isMfa,this.isFederatedLoginService=localStorage.isFederatedLoginService},openPage:function(e){window.open(e,"_blank")}}}),B_=j_,z_=(a("8b21"),Object(I["a"])(B_,N_,F_,!1,null,"6e58c018",null)),H_=z_.exports;C()(z_,{VIcon:Gr["a"],VRow:Kr["a"]});var K_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UsersTemplate",{attrs:{users:e.users,loading:e.loading,loadingGroup:e.loadingGroup,maxRecord:e.maxRecord,page:e.currPage,pageGate:e.pageGate,groupId:e.groupId,loadingGate:e.loadingGate,isValid:e.isValid,perPage:e.perPage,isGetDataList:e.isGetDataList,showModalProcess:e.showModalProcess,progress:e.progress,isExport:e.isExport,showModalConfirmEmail:e.showModalConfirmEmail,typeConfirm:e.typeConfirm,success:e.success,message:e.message,totalDataRowCSV:e.totalDataRowCSV,tempGroupPassages:e.tempGroupPassages,cardItems:e.cardItems,phoneItems:e.phoneItems,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,listGroupPassages:e.listGroupPassages,listphones:e.listphones,listGatePassages:e.listGatePassages,successItemCSV:e.successItemCSV,errorMessage:e.errorMessage,showModalImport:e.showModalImport,exportType:e.exportType,showProcessImportExcel:e.showProcessImportExcel,successItem:e.successItem,totalDataRow:e.totalDataRow,errorMessageExcel:e.errorMessageExcel,isFinishImportExcel:e.isFinishImportExcel,sheetUserName:e.sheetUserName,ExpandedGroup:e.ExpandedGroup,gateList:e.gateList,pageGroup:e.pageGroup,groupDetail:e.groupDetail,typeAction:e.typeAction,isFinishProcess:e.isFinishProcess,errorMessageProcess:e.errorMessageProcess,showProgress:e.showProgress,totalDataRowProcess:e.totalDataRowProcess,successItemProcess:e.successItemProcess,showConfirm:e.showConfirm,action:e.action,userId:e.userId,isType:e.isType,sheet1Name:e.sheetUserName,successItemSheet1:e.successItem,progressSheet1:e.progress,totalDataRowSheet1:e.totalDataRow,successItemSheet2:e.successItemSheet2,progressSheet2:e.progressSheet2,totalDataRowSheet2:e.totalDataRowSheet2,sheet2Name:e.sheetGroupName,dataAllow:e.dataAllow,keyword:e.keyword,groupToSearch:e.groupToSearch,isHasLowerCaseCardNumberExcel:e.isHasLowerCaseCardNumberExcel,ExpandedData:e.ExpandedData,authority:e.authority,departments:e.departments},on:{searchUser:e.searchUser,clickAddUser:e.clickAddUser,clickEditUser:function(t){return e.clickEditUser(t)},changeUserIsvalid:function(t){return e.changeUserIsvalid(t)},changeMutiUserIsvalid:function(t){return e.changeMutiUserIsvalid(t)},confirmAction:function(t){return e.confirmAction(t)},changePerPage:function(t){return e.changePerPage(t)},"change-page":function(t){return e.changePage(t)},"click-leave-action":function(t){return e.clickLeaveAction(t)},"change-expanded":function(t){return e.changeExpanded(t)},clickExportCSV:function(t){return e.clickExportCSV(t)},clickExportCSVTimeUnlockGate:function(t){return e.clickExportCSVTimeUnlockGate()},clickConfirmEmail:function(t){return e.clickConfirmEmail(t)},closeModalProcessCSV:function(t){return e.closeModalProcessCSV()},CancelProcessCSV:function(t){return e.CancelProcessCSV()},closeImportCSV:function(t){return e.closeImportCSV()},clickImportCSV:function(t){return e.clickImportCSV(t)},clickImportCSVTimeUnlockGate:function(t){return e.clickImportCSVTimeUnlockGate(t)},clickExportExcel:function(t){return e.clickExportExcel(t)},clickImportExcel:function(t){return e.clickImportExcel(t)},closeModalProcessImportExcel:function(t){return e.closeModalProcessImportExcel()},CancelProcessImportExcel:function(t){return e.CancelProcessImportExcel()},showDialogImport:function(t){return e.showDialogImport(t)},closeModalProgress:function(t){return e.closeModalProgress(t)},closeDialogConfirm:function(t){return e.closeDialogConfirm()},"show-only-isVaild":function(t){return e.ShowOnlyIsVaild(t)},"search-user-group":function(t){return e.searchUserGroup(t)},"close-dialog-check-card-excel":function(t){return e.closeDialogCheckCardExcel()},"accept-dialog-check-card-excel":function(t){return e.acceptDialogCheckCardExcel()},clickCheckBoxExportUserInfoCSV:function(t){return e.clickCheckBoxExportUserInfoCSV()},"loading-from-child":function(t){return e.$emit("loading",t)},"load-total":function(t){return e.loadTotal(t)},"search-deparment-group":function(t){return e.searchDeparmentGroup(t)},"get-list-department":function(t){return e.getListDepartment(t)},"get-list-user":e.getList}})},Y_=[],q_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-users-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",{staticClass:"container-user container-common"},[a("div",[a("div",[a("v-row",{staticClass:"btn-div mr-3",attrs:{justify:"end"}},[!0===e.authority.isAdmin||!0===e.authority.isAdminToAddUser?a("div",{staticClass:"text-center mr-1"},[a("v-menu",{attrs:{"open-on-hover":"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"btn-primary"},"v-btn",r,!1),s),[e._v("\n ユーザー登録\n ")])]}}],null,!1,2227491411)},[e._v(" "),a("v-list",[a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("clickAddUser")}}},[a("v-list-item-title",[e._v("ユーザー登録")])],1),e._v(" "),!0===e.authority.isAdmin?a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",{exportType:0,type:"bulk-registration"})}}},[a("v-list-item-title",[e._v("一括登録")])],1):e._e(),e._v(" "),!0===e.authority.isAdmin?a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",{exportType:1,type:""})}}},[a("v-list-item-title",[e._v("期限付き解錠可能ゲート登録")])],1):e._e(),e._v(" "),!0===e.authority.isAdmin?a("v-list-item",{attrs:{link:""},on:{click:function(t){return e.$emit("showDialogImport",{exportType:0,type:"card-all"})}}},[a("v-list-item-title",[e._v("カードも併せて一斉登録")])],1):e._e()],1)],1)],1):e._e(),e._v(" "),a("div",{staticClass:"text-center"},[!0===e.authority.isAdmin||!0===e.authority.isAdminToEditUser?a("action-button",{attrs:{text:"アクション ▼","action-items":e.actionItems,disabled:0===e.selectedUserIds.length||!0===e.isGetDataList},on:{"click-enable":function(t){return e.$emit("confirmAction",{action:0})},"click-disable":function(t){return e.$emit("confirmAction",{action:1})}}}):e._e()],1)]),e._v(" "),a("v-row",{staticClass:"btn-div area-search-box ",attrs:{justify:"end"}},[a("v-col",{staticClass:"input-search-user",attrs:{sm:"12",xl:"8",lg:"7"}},[a("searchbox",{staticClass:"input-search btn-user-search",attrs:{title:"検索",searchTargetItems:e.searchTargetItems,disabled:e.isGetDataList||""!==e.groupIdSearch&&null!==e.groupIdSearch&&void 0!==e.groupIdSearch},on:{search:function(t){return e.$emit("searchUser",t)}},model:{value:e.searchItem,callback:function(t){e.searchItem=t},expression:"searchItem"}})],1),e._v(" "),a("v-col",{attrs:{sm:"9",xl:"3",lg:"3"}},[a("v-autocomplete",{staticClass:"input-search",attrs:{clearable:"",items:e.departments,label:"所属で絞り込み",solo:"","hide-details":"","no-data-text":"",disabled:e.isGetDataList||""!==e.keyword,"menu-props":{contentClass:"v-select-item"},attach:!0},on:{change:function(t){return e.$emit("search-deparment-group",t)}},model:{value:e.groupIdSearch,callback:function(t){e.groupIdSearch=t},expression:"groupIdSearch"}})],1),e._v(" "),a("v-col",{attrs:{sm:"3",xl:"1",lg:"2"}},[a("text-link",{staticClass:"item-user-name decoration-link inline-block",attrs:{text:"所属一覧を見る"},on:{click:function(t){e.isShow=!0,e.isReload=!1}}})],1)],1)],1),e._v(" "),a("v-row",{staticClass:"btn-div area-search-box pl-0",attrs:{justify:"end"}},[a("v-col",{attrs:{sm:"12"}},[a("user-table",{attrs:{users:e.users,listGroupPassages:e.listGroupPassages,gateList:e.gateList,isGetDataList:e.isGetDataList,ExpandedGroup:e.ExpandedGroup,listphones:e.listphones,listGatePassages:e.listGatePassages,tempGroupPassages:e.tempGroupPassages,cardItems:e.cardItems,phoneItems:e.phoneItems,successMessageLogs:e.showModalImport?"":e.successMessageLogs,errorMessageLogs:e.showModalImport?"":e.errorMessageLogs,page:e.page,perPage:e.perPage,pageGroup:e.pageGroup,groupDetail:e.groupDetail,"show-select":!0===e.authority.isAdmin||!0===e.authority.isAdminToEditUser,loadingGroup:e.loadingGroup,pageGate:e.pageGate,isExport:e.isExport,groupId:e.groupId,loadingGate:e.loadingGate,dataAllow:e.dataAllow,maxRecord:e.maxRecord,groupToSearch:e.groupToSearch,ExpandedData:e.ExpandedData,authority:e.authority},on:{clickEditUser:function(t){return e.$emit("clickEditUser",t)},"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("change-page",t)},"change-page-group-gate":function(t){return e.$emit("change-page",t)},"change-expanded-group":function(t){return e.$emit("change-expanded",t)},"change-expanded-user":function(t){return e.$emit("change-expanded",t)},"select-users":function(t){e.selectedUserIds=t},"click-leave-group":function(t){return e.$emit("click-leave-group",t)},"confirm-action":function(t){return e.$emit("confirmAction",t)},"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)},"load-total":function(t){return e.$emit("load-total",t)}}})],1)],1)],1),e._v(" "),e.showModalImport?a("user-import",{attrs:{showModalImport:e.showModalImport,showModalProcess:e.showModalProcess,progress:e.progress,success:e.success,totalDataRowCSV:e.totalDataRowCSV,successItemCSV:e.successItemCSV,errorMessage:e.errorMessage,errorMessageLogs:e.errorMessageLogs,successMessageLogs:e.successMessageLogs,showProcessImportExcel:e.showProcessImportExcel,successItem:e.successItem,totalDataRow:e.totalDataRow,isExport:e.isExport,errorMessageExcel:e.errorMessageExcel,isFinishImportExcel:e.isFinishImportExcel,sheetUserName:e.sheetUserName,exportType:e.exportType,isType:e.isType,showModalConfirmEmail:e.showModalConfirmEmail,sheet1Name:e.sheet1Name,sheet2Name:e.sheet2Name,progressSheet1:e.progressSheet1,successItemSheet1:e.successItemSheet1,totalDataRowSheet1:e.totalDataRowSheet1,progressSheet2:e.progressSheet2,successItemSheet2:e.successItemSheet2,totalDataRowSheet2:e.totalDataRowSheet2,typeConfirm:e.typeConfirm,isHasLowerCaseCardNumberExcel:e.isHasLowerCaseCardNumberExcel},on:{clickExportCSV:function(t){return e.$emit("clickExportCSV",t)},clickExportCSVTimeUnlockGate:function(t){return e.$emit("clickExportCSVTimeUnlockGate")},clickConfirmEmail:function(t){return e.$emit("clickConfirmEmail",t)},closeModalProcessCSV:function(t){return e.$emit("closeModalProcessCSV",t)},CancelProcessCSV:function(t){return e.$emit("CancelProcessCSV",t)},closeImportCSV:function(t){return e.$emit("closeImportCSV",t)},clickImportCSV:function(t){return e.$emit("clickImportCSV",t)},clickImportCSVTimeUnlockGate:function(t){return e.$emit("clickImportCSVTimeUnlockGate",t)},clickExportExcel:function(t){return e.$emit("clickExportExcel",t)},clickImportExcel:function(t){return e.$emit("clickImportExcel",t)},closeModalProcessImportExcel:function(t){return e.$emit("closeModalProcessImportExcel",t)},CancelProcessImportExcel:function(t){return e.$emit("CancelProcessImportExcel",t)},"close-dialog-check-card-excel":function(t){return e.$emit("close-dialog-check-card-excel",t)},"accept-dialog-check-card-excel":function(t){return e.$emit("accept-dialog-check-card-excel",t)},clickCheckBoxExportUserInfoCSV:function(t){return e.$emit("clickCheckBoxExportUserInfoCSV",t)}}}):e._e(),e._v(" "),a("Modal",{attrs:{title:e.isTitle(),text:e.isText(),smallScreen:"600",className:"common-modal"},on:{close:function(t){return e.$emit("closeModalConfirm")}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.clickAction()}}})]},proxy:!0}]),model:{value:e.isShowConfirm,callback:function(t){e.isShowConfirm=t},expression:"isShowConfirm"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[0===e.action||2===e.action?a("v-card-title",{staticClass:"background-color-green"},[e._v("ユーザーを有効化")]):e._e(),e._v(" "),1===e.action||3===e.action?a("v-card-title",{staticClass:"background-color-green"},[e._v("ユーザーを無効化")]):e._e(),e._v(" "),4===e.action?a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け削除")]):e._e(),e._v(" "),5===e.action?a("v-card-title",{staticClass:"background-color-green"},[e._v("関連付け削除")]):e._e(),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0&&(0===e.action||2===e.action)?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を有効化しました。")]):e._e(),e._v(" "),e.successItemProcess>0&&(1===e.action||3===e.action)?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を無効化しました。")]):e._e(),e._v(" "),e.successItemProcess>0&&(4===e.action||5===e.action)?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を削除化しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[0===e.action||2===e.action?a("span",{staticClass:"error-box-title"},[e._v("有効化失敗")]):e._e(),e._v(" "),1===e.action||3===e.action?a("span",{staticClass:"error-box-title"},[e._v("無効化失敗")]):e._e(),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgress",{action:e.action})}}})],1)],1):e._e()],1)],1)],1),e._v(" "),a("Modal",{attrs:{title:"所属一覧","no-footer":"",smallScreen:"800px",className:"common-padding"},on:{close:function(t){e.isShow=!1,e.closeModal(e.isReload)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShow?a("AffiliationListModalPage",{attrs:{isPage:"user",department:{}},on:{loading:function(t){return e.$emit("loading-from-child",t)},"get-list-user":function(t){return e.$emit("get-list-user")},getReload:function(t){return e.getReload(t)}}}):e._e()]},proxy:!0}]),model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}})],1)},W_=[],J_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-table"},[""!==e.successMessageLogs&&!1===e.isGetDataList?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs&&!1===e.isGetDataList?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",{staticClass:"border-bottom-bold",attrs:{"no-gutters":"",justify:"space-between","align-content":"center"}},[a("show-per-page",{staticClass:"ml-4",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.maxRecord}}),e._v(" "),a("v-spacer"),e._v(" "),a("CheckBoxValid",{attrs:{isVaildOnly:e.isVaildOnly,title:"有効なユーザーのみ表示"},on:{"show-only-isVaild":function(t){return e.$emit("show-only-isVaild",t)}}}),e._v(" "),a("div",{staticClass:"text-caption display-option included-option text-sm-caption text-md-caption text-lg-caption text-xl-caption",on:{click:function(){e.showOption=!e.showOption}}},[a("span",{staticClass:"display-option-title"},[e._v("\n 表示オプション\n ")]),e._v(" "),a("span",{staticClass:"mb-3"},[a("v-icon",{attrs:{dense:""}},[e._v("mdi-chevron-down")])],1)])],1),e._v(" "),a("v-row",{staticClass:"pt-0 pb-0 mt-0"},[a("v-container",{staticClass:"pt-0"},[a("display-option",{attrs:{isShowOption:e.showOption,"display-option-items":e.displayOptionItems,disabled:e.isGetDataList},on:{input:function(t){return e.CheckColumn(t)}},model:{value:e.selectedDisplayOption,callback:function(t){e.selectedDisplayOption=t},expression:"selectedDisplayOption"}})],1)],1),e._v(" "),a("v-divider"),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table user-list table-shadow table-no-bg customize-table-scroll",attrs:{"mobile-breakpoint":0,"must-sort":"",loading:e.isGetDataList,headers:e.headers,items:e.users,"items-per-page":e.perPage,"item-key":"userId","no-data-text":"該当するユーザーがいません","loading-text":"データを読み込中です","hide-default-footer":"","show-select":e.showSelect,"show-expand":"","single-expand":"","custom-sort":e.customSort,expanded:e.expanded,"calculate-widths":""},on:{"item-expanded":e.changeEx,"update:expanded":function(t){e.expanded=t}},scopedSlots:e._u([{key:"item.userId",fn:function(t){var s=t.item;return[a("span",{staticClass:"item-user-id"},[e._v(e._s(s.userId))])]}},{key:"item.name",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.name},on:{click:function(t){return e.clickDetail(s.userId)}}})]}},{key:"item.isAdmin",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isAdmin?"管理者":"一般ユーザー")+"\n ")]}},{key:"item.isPhoneAdmin",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isPhoneAdmin?"有効":"無効")+"\n ")]}},{key:"item.shareKeyBeValid",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.shareKeyBeValid?"有効":"無効")+"\n ")]}},{key:"item.isValid",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isValid?"有効":"無効")+"\n ")]}},{key:"item.isMfaSms",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isMfaSms?"有効":"無効")+"\n ")]}},{key:"item.registered",fn:function(t){var a=t.item;return[e._v("\n "+e._s(e.converDateShort(a.registered))+"\n ")]}},{key:"item.updated",fn:function(t){var a=t.item;return[e._v("\n "+e._s(e.converDateShort(a.updated))+"\n ")]}},{key:"item.company",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.company)+"\n ")]}},{key:"item.data-table-expand",fn:function(t){var s=t.expand,r=t.item,o=t.isExpanded;return[a("v-tooltip",{attrs:{bottom:"",disabled:o},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,i=t.attrs;return[a("v-btn",e._g(e._b({attrs:{color:"white",elevation:"0"},on:{click:function(t){e.selectedIds=[],s(!o)}}},"v-btn",i,!1),n),[a("span",{staticClass:"item-count"},[a("v-icon",[e._v("mdi-door-closed")]),e._v("\n "+e._s(r.gateCount)+"\n ")],1)])]}}],null,!0)},[e._v(" "),a("span",{staticClass:"text-caption"},[e._v("ゲート一覧を開く")])]),e._v(" "),a("transition",{attrs:{name:"expand-icon"}},[o?a("v-icon",[e._v("mdi-chevron-up")]):e._e()],1)]}},{key:"item.icons",fn:function(t){var s=t.item;return[!0===e.authority.isAdmin||!0===e.authority.isAdminToEditUser?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("confirm-action",{action:s.isValid?3:2,userId:s.userId,isValid:!s.isValid})}}},"v-btn",o,!1),r),[s.isValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-account-check")]):a("v-icon",[e._v("mdi-account-off")])],1)]}}],null,!0)},[e._v("\n "+e._s(s.isValid?"有効":"無効")+"\n ")]):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToViewUser?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.goLogPage(s.name)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-file-move-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" ゲートログ ")])]):e._e(),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToEditUser&&e.dataAllow.includes(s.departmentId)?a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.$emit("clickEditUser",s.userId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("ユーザー編集")])]):e._e()]}},{key:"expanded-item",fn:function(t){var s=t.headers,r=t.item;return[a("td",{attrs:{colspan:s.length}},[a("v-container",[!1===e.isChange?a("ModalPageGroupGateInUser",{attrs:{isPage:"detail-user-group-gate",isPageFrom:"user-list",userName:r.name,userId:r.userId},on:{"select-Ids":function(t){e.selectedIds=t},"change-page-group":function(t){return e.$emit("change-page-group",t)},"load-total":function(t){return e.$emit("load-total",t)},loading:function(t){return e.$emit("loading-from-child",t)}}}):e._e()],1)],1)]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.maxRecord,disabled:e.isGetDataList},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.maxRecord/e.perPage),disabled:e.isGetDataList},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},Z_=[],X_=f["a"].extend({name:"UserTable",components:{CancelButton:fr,DisplayOption:Mo,Pagination:xo,Searchbox:$r,SelectPerPage:To,ShowPerPage:mo,SuccessButton:kr,TextLink:No,GroupGateTable:qx,InfoItem:Wr,InputForm:io,GateDetailTemplate:Lh,ModalPageGroupGateInUser:kx,CheckBoxValid:qo},props:{pageGate:{type:Number,default:0},gateTotalCount:{type:Number,default:0},loadingGroup:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},loadingGate:{type:Boolean,default:!1},users:{type:Array,default:function(){return[]}},ExpandedGroup:{default:function(){return[]}},userTotalCount:{type:Number,default:0},page:{type:Number,default:1},pageGroup:{type:Number,default:1},perPage:{type:Number,default:25},groups:{type:Array,default:function(){return[]}},groupDetail:{default:function(){return[]}},gates:{type:Array,default:function(){return[]}},userGroupLoading:{type:Boolean,default:!1},listGatePassages:{default:function(){return[]}},gateList:{default:function(){return[]}},userGroups:{type:Array,default:function(){return[]}},userGroupTotalCount:{type:Number,default:0},userGroupPage:{type:Number,default:1},userGroupPerPage:{type:Number,default:25},userGroupRelationsGateGroupLoading:{type:Boolean,default:!1},userGroupRelationsGateGroup:{type:Array,default:function(){return[]}},showSearch:{type:Boolean,default:!1},showSelect:{type:Boolean,default:!1},listGroupPassages:{type:Array,default:function(){return[]}},listphones:{type:Array,default:function(){return[]}},tempGroupPassages:{default:function(){return[]}},maxRecord:{type:Number,default:0},cardItems:{default:function(){return[]}},phoneItems:{default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},groupId:{type:String,default:""},groupToSearch:{default:[]},ExpandedData:{default:function(){return[]}},dataAllow:{default:function(){return[]}},authority:{type:Object,default:{}}},data:function(){return{expanded:[],isChange:!1,searchTargetItems:[{label:"ユーザーID",value:"userId"},{label:"ユーザー名",value:"name"},{label:"ユーザー名ふりがな",value:"furigana"},{label:"メールアドレス",value:"email"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"}],selectedDisplayOption:["name","userId","company"],selectedItem:[],searchItem:[],selectedIds:[],sortBy:"email",displayOptionItems:[{label:"ユーザー名",value:"name",isDisabled:!0},{label:"ユーザーID",value:"userId"},{label:"所属名",value:"company"},{label:"メールアドレス",value:"email"},{label:"ユーザー名ふりがな",value:"furigana"},{label:"組織管理権限",value:"isAdmin"},{label:"ゲート設定権限",value:"isPhoneAdmin"},{label:"鍵共有権限",value:"shareKeyBeValid"},{label:"ステータス",value:"isValid"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"},{label:"登録日",value:"registered"},{label:"更新日",value:"updated"},{label:"SMS認証",value:"isMfaSms"},{label:"二段階認証パスワード",value:"passCode"}],showOption:!1,isVaildOnly:"true"===localStorage.isVaildDataUser}},computed:{headers:{get:function(){var e=[];return e.push({text:"ユーザー名",align:"start",sortable:!0,value:"name"}),this.selectedDisplayOption.includes("userId")&&e.push({text:"ユーザーID",align:"start",sortable:!0,value:"userId"}),this.selectedDisplayOption.includes("company")&&e.push({text:"所属名",align:"start",sortable:!0,value:"company"}),this.selectedDisplayOption.includes("email")&&e.push({text:"メールアドレス",align:"start",sortable:!0,value:"email"}),this.selectedDisplayOption.includes("furigana")&&e.push({text:"ユーザー名ふりがな",align:"start",sortable:!0,value:"furigana",class:"furigana"}),this.selectedDisplayOption.includes("isAdmin")&&e.push({text:"組織管理権限",align:"start",sortable:!0,value:"isAdmin",class:"isAdmin"}),this.selectedDisplayOption.includes("isPhoneAdmin")&&e.push({text:"ゲート設定権限",align:"start",sortable:!0,value:"isPhoneAdmin",class:"isPhoneAdmin"}),this.selectedDisplayOption.includes("shareKeyBeValid")&&e.push({text:"鍵共有権限",align:"start",sortable:!0,value:"shareKeyBeValid",class:"shareKeyBeValid"}),this.selectedDisplayOption.includes("isValid")&&e.push({text:"ステータス",align:"start",sortable:!0,value:"isValid",class:"isValid"}),this.selectedDisplayOption.includes("option1")&&e.push({text:"備考1",align:"start",sortable:!0,value:"option1"}),this.selectedDisplayOption.includes("option2")&&e.push({text:"備考2",align:"start",sortable:!0,value:"option2"}),this.selectedDisplayOption.includes("registered")&&e.push({text:"登録日",align:"start",sortable:!0,value:"registered"}),this.selectedDisplayOption.includes("updated")&&e.push({text:"更新日",align:"start",sortable:!0,value:"updated"}),this.selectedDisplayOption.includes("isMfaSms")&&e.push({text:"SMS認証",align:"start",sortable:!0,value:"isMfaSms",class:"isMfaSms"}),this.selectedDisplayOption.includes("passCode")&&e.push({text:"二段階認証パスワード",align:"start",sortable:!0,value:"passCode",class:"passCode"}),e.push({text:"通行可能なゲート数",align:"start",sortable:!1,width:"220px",value:"data-table-expand"}),e.push({text:"",align:"end",sortable:!1,width:"150px",value:"icons"}),e}},innerPage:{get:function(){return this.page},set:function(e){this.expanded=[],this.$emit("change-page",{page:e,change:"user"})}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.expanded=[],this.$emit("change-per-page",e)}}},watch:{selectedItem:function(e){this.$emit("select-users",e.map((function(e){return e.userId})))},isGetDataList:function(e){!1===e&&(this.selectedItem=[])}},methods:{changeEx:function(e){var t=this;console.log(this.expanded),this.isChange=!0,this.$emit("change-expanded-user",{event:e,expanded:"user"}),setTimeout((function(){t.isChange=!1}),50)},customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowCSV)+"件中"+e._s(e.successItemCSV)+"件をインポートしました。")]):e._e(),e._v(" "),e.errorMessage.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("インポート失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessage,(function(t){return[""!==t?a("p",{key:t,domProps:{innerHTML:e._s(t)}}):e._e()]}))],2)]):e._e()],1):e._e(),e._v(" "),e.success?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{staticClass:"mr-2",attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProcessCSV")}}})],1)],1):a("v-card-actions",[!1===e.isExport?a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){return e.$emit("CancelProcessCSV")}}})],1):e._e()],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProcessImportExcel,callback:function(t){e.showProcessImportExcel=t},expression:"showProcessImportExcel"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("登録データのアップロード")]),e._v(" "),a("v-divider"),e._v(" "),a("div",{staticClass:"row-message"},[""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-1 bg-error"},[a("div",{domProps:{innerHTML:e._s(e.errorMessageLogs)}})]):e._e()],1),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRow>0?a("v-card-text",{staticClass:"pa-4"},[a("div",{staticStyle:{"padding-top":"13px"}},[e.sheet1Name?a("span",[e._v(e._s(e.sheet1Name)+":")]):e._e()]),e._v(" "),a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressSheet1,callback:function(t){e.progressSheet1=t},expression:"progressSheet1"}},[a("strong",[e._v(e._s(Math.round(e.progressSheet1))+"%")])]),e._v(" "),e.successItemSheet1>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowSheet1)+"件中"+e._s(e.successItemSheet1)+"件をアップロードしました。")]):e._e(),e._v(" "),a("div",{staticStyle:{"padding-top":"13px"}},[e.sheet2Name?a("span",[e._v(e._s(e.sheet2Name)+":")]):e._e()]),e._v(" "),a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progressSheet2,callback:function(t){e.progressSheet2=t},expression:"progressSheet2"}},[a("strong",[e._v(e._s(Math.round(e.progressSheet2))+"%")])]),e._v(" "),e.successItemSheet2>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowSheet2)+"件中"+e._s(e.successItemSheet2)+"件をアップロードしました。")]):e._e(),e._v(" "),e.errorMessageExcel.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("アップロード失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageExcel,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishImportExcel?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{staticClass:"mr-2",attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProcessImportExcel")}}})],1)],1):e._e()],1)],1),e._v(" "),a("Modal",{attrs:{title:1!==e.exportType?"一括登録":"期限付き解錠可能ゲート登録","no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:function(t){return e.closeDialogImport()}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[1!==e.exportType?a("div",{staticClass:"round-tab round-group-tab"},[[a("v-tabs",{attrs:{transition:!1},on:{change:function(t){return e.changeTab(t)}},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab",{key:t.tabname,staticClass:"log-tab"},[e._v("\r\n "+e._s(t.title)+"\r\n ")])})),1)],e._v(" "),a("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.actionItems,(function(t){return a("v-tab-item",{key:t.tabname,attrs:{transition:!1,"reverse-transition":!1}},["tab1"===t.tabname?a("v-card",[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ユーザーの登録を一括で登録するテンプレートファイルをダウンロードできます。"),a("br"),e._v("\r\n <本ファイルで設定可能なデーター>"),a("br"),e._v("\r\n ユーザーの登録"),a("br"),e._v(" "),a("br"),e._v("\r\n <SMS認証サービス加入者のみ設定可能なデーター>"),a("br"),e._v("\r\n SMS認証の設定"),a("br"),e._v("\r\n 携帯電話番号の登録"),a("br")]),e._v(" "),a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickExportCSV",e.isCheckDataCSV)}}},[e._v("\r\n テンプレートのダウンロード\r\n ")]),e._v(" "),a("v-checkbox",{staticClass:"mt-5 isCheckData",attrs:{color:"grey",dense:"","hide-details":"",label:"ユーザー情報を入れてダウンロード"},model:{value:e.isCheckDataCSV,callback:function(t){e.isCheckDataCSV=t},expression:"isCheckDataCSV"}})],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5 pt-0"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ユーザーの登録をCSVファイルを使用して、一括で実施することができます。"),a("br"),e._v("\r\n 登録するために必要なテンプレートCSVファイルは、”テンプレートのダウンロード”から取得して下さい。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("CSVファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:""},on:{click:function(t){return e.openFile("custom-file-input-csv")}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_csv"}},[e._v("\r\n ...\r\n "),a("input",{ref:"files",refInFor:!0,staticClass:"custom-file-input custom-file-input-csv",staticStyle:{display:"none"},attrs:{type:"file",id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}})])])],1)],1)]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirmEmail",{type:0})}}},[e._v("\r\n ファイルをインポート\r\n ")])],1)],1)],1):e._e(),e._v(" "),"tab2"===t.tabname?a("v-card",[a("v-card",{staticClass:"bock-info"},["all-user"===e.isType?a("div",[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ユーザーの登録と個人コードと通行権限グループの紐づけを一括で登録するテンプレートファイルをダウンロードできます。"),a("br"),e._v("\r\n <本ファイルで設定可能なデーター>"),a("br"),e._v("\r\n ユーザーの登録"),a("br"),e._v("\r\n ユーザーとカード(個人コード)の紐づけ"),a("br"),e._v("\r\n ユーザーと通行権限グループの紐づけ"),a("br"),e._v("\r\n <SMS認証サービス加入者のみ設定可能なデーター>"),a("br"),e._v("\r\n SMS認証の設定"),a("br"),e._v("\r\n 携帯電話番号の登録"),a("br"),e._v("\r\n ダウンロード前に以下の設定を行って下さい。"),a("br"),e._v("\r\n  ・ゲートの設定"),a("br"),e._v("\r\n  ・通行権限グループの作成"),a("br"),e._v("\r\n  ・通行権限グループへの紐付け"),a("br")]),e._v(" "),a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:"",disabled:""},on:{click:function(t){return e.$emit("clickExportExcel")}}},[e._v("\r\n テンプレートのダウンロード\r\n ")])],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5 pt-0"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ユーザーの登録と個人コードと通行権限グループの紐づけをExcelファイルを使用して、一括で実施することができます。"),a("br"),e._v("\r\n 登録するために必要なテンプレートExcelファイルは、”テンプレートのダウンロード”から取得して下さい。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("Excelファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:""},on:{click:function(t){return e.openFile("custom-file-input-excel")}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_excel"}},[e._v("\r\n ...\r\n "),a("input",{ref:"files",refInFor:!0,staticClass:"custom-file-input custom-file-input-excel",staticStyle:{display:"none"},attrs:{type:"file",id:"file_excel",accept:".xlsx,xls"},on:{change:e.previewFiles}})])])],1)],1)])]):a("div",[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ユーザーの登録とカードの紐づけを一括で登録するテンプレートファイルをダウンロードできます。"),a("br"),e._v("\r\n <本ファイルで設定可能なデーター>"),a("br"),e._v("\r\n ユーザーの登録"),a("br"),e._v("\r\n ユーザーとカード(個人コード)の紐づけ"),a("br"),e._v(" "),a("br"),e._v("\r\n <SMS認証サービス加入者のみ設定可能なデーター>"),a("br"),e._v("\r\n SMS認証の設定"),a("br"),e._v("\r\n 携帯電話番号の登録"),a("br")]),e._v(" "),a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:""},on:{click:e.clickExportExcel}},[e._v("\r\n テンプレートのダウンロード\r\n ")]),e._v(" "),a("div",{staticClass:"mt-5 isCheckData"},[a("v-checkbox",{attrs:{color:"grey",dense:"","hide-details":"",label:"ユーザー情報を入れてダウンロード"},model:{value:e.isCheckData,callback:function(t){e.isCheckData=t},expression:"isCheckData"}}),e._v(" "),a("div",{staticClass:"noteExportExcel"},[e._v("\r\n ※個人コードは最大3件まで表示されます\r\n ")])],1)],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5 pt-0"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n ユーザーの登録とカードの紐づけをExcelファイルを使用して、一括で実施することができます。"),a("br"),e._v("\r\n 登録するために必要なテンプレートExcelファイルは、”テンプレートのダウンロード”から取得して下さい。\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("Excelファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:""},on:{click:function(t){return e.openFile("custom-file-input-excel")}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_excel"}},[e._v("\r\n ...\r\n "),a("input",{ref:"files",refInFor:!0,staticClass:"custom-file-input custom-file-input-excel",staticStyle:{display:"none"},attrs:{type:"file",id:"file_excel",multiple:"",accept:".xlsx,xls"},on:{change:e.previewFiles}})])])],1)],1)])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirmEmail",{type:2})}}},[e._v("\r\n ファイルをインポート\r\n ")])],1)],1)],1)],1):e._e()],1)})),1)],2):a("div",[a("v-card",{staticClass:"modal-export"},[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n 期限付き解錠可能ゲートを登録するテンプレートファイルをダウンロードできます。"),a("br"),e._v("\r\n <本ファイルで設定可能なデーター>"),a("br"),e._v("\r\n ユーザーに期限付き解錠可能ゲートを紐づける"),a("br")]),e._v(" "),a("v-row",{staticClass:"mb-4 mt-3",attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickExportCSVTimeUnlockGate")}}},[e._v("\r\n テンプレートのダウンロード\r\n ")])],1)],1)]),e._v(" "),a("div",{staticClass:"pa-5 pt-0"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n 期限付き解錠可能ゲートの登録をCSVファイルを使用して、一括で実施することができます。"),a("br"),e._v("\r\n 登録するために必要なテンプレートCSVファイルは、”テンプレートのダウンロード”から取得して下さい。 "),a("br"),e._v("\r\n ※開始時間、終了時間は半角数字のみで入力して下さい。例:2023/01/01 01:00 ⇒ 202301010100\r\n ")]),e._v(" "),a("v-row",{staticClass:"mt-5"},[a("v-col",{attrs:{cols:"3"}},[e._v("CSVファイルを選択")]),e._v(" "),a("v-col",[a("div",{staticClass:"info-item "},[a("div",{staticClass:"row"},[a("v-text-field",{staticClass:"input-add add-file-name",attrs:{"hide-details":"auto",outlined:"",dense:""},on:{click:function(t){return e.openFile("custom-file-input-csv")}},model:{value:e.fileName,callback:function(t){e.fileName=t},expression:"fileName"}})],1)])]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("label",{staticClass:"btn-upload-second",attrs:{for:"file_csv"}},[e._v("\r\n ...\r\n "),a("input",{ref:"files",staticClass:"custom-file-input custom-file-input-csv",staticStyle:{display:"none"},attrs:{type:"file",id:"file_csv",multiple:"",accept:".csv"},on:{change:e.previewFiles}})])])],1)],1)]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-primary mr-0",attrs:{outlined:""},on:{click:function(t){return e.clickImportCSVTimeUnlockGate()}}},[e._v("\r\n ファイルをインポート\r\n ")])],1)],1)],1)],1)]},proxy:!0}]),model:{value:e.showModalImport,callback:function(t){e.showModalImport=t},expression:"showModalImport"}}),e._v(" "),a("Modal",{attrs:{title:"作成したユーザーのメールアドレスへ通知メールを送信しますか?",smallScreen:"800px",className:"common-modal"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{staticClass:"mr-2",attrs:{text:"送信する"},on:{click:function(t){return e.yesChoice()}}}),e._v(" "),a("cancel-button",{attrs:{text:"送信しない"},on:{click:function(t){return e.noChoice()}}})]},proxy:!0}]),model:{value:e.showModalConfirmEmail,callback:function(t){e.showModalConfirmEmail=t},expression:"showModalConfirmEmail"}}),e._v(" "),a("Modal",{attrs:{title:"カード登録",smallScreen:"800px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("div",{staticClass:"pa-5"},[a("div",{staticClass:"bock-info"},[a("div",{staticClass:"alert alert-info col"},[e._v("\r\n カード番号に半角英字の小文字が含まれております。"),a("br"),e._v("\r\n 小文字が含まれているとカードが正常に読み込まれません。"),a("br"),e._v("\r\n 小文字が含まれているかを確認してください。\r\n ")])])])]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("success-button",{staticClass:"mr-2",attrs:{text:"見直す"},on:{click:function(t){return e.$emit("close-dialog-check-card-excel")}}}),e._v(" "),a("error-button",{staticClass:"mr-1",attrs:{text:"小文字が含まれていても登録する"},on:{click:function(t){return e.$emit("accept-dialog-check-card-excel")}}})]},proxy:!0}]),model:{value:e.isHasLowerCaseCardNumberExcel,callback:function(t){e.isHasLowerCaseCardNumberExcel=t},expression:"isHasLowerCaseCardNumberExcel"}})],1)},sP=[],rP=f["a"].extend({name:"UserImport",components:{Modal:bn,SuccessButton:kr,ErrorButton:kn,CancelButton:fr},props:{totalDataRowCSV:{type:Number,default:0},typeConfirm:{type:Number,default:0},successItemCSV:{type:Number,default:0},errorMessage:{default:[]},success:{type:Boolean,default:!1},showModalConfirmEmail:{type:Boolean,default:!1},showModalProcess:{type:Boolean,default:!1},showModalImport:{type:Boolean,default:!1},progress:{type:Number,default:0},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},exportType:{type:Number,default:0},showProcessImportExcel:{type:Boolean,default:!1},isExport:{type:Boolean,default:!1},successItem:{type:Number,default:0},totalDataRow:{type:Number,default:0},errorMessageExcel:{default:[]},isFinishImportExcel:{type:Boolean,default:!1},sheetUserName:{type:String,default:""},isType:{type:String,default:""},sheet1Name:{type:String,default:""},successItemSheet1:{type:Number,default:0},progressSheet1:{type:Number,default:0},totalDataRowSheet1:{type:Number,default:0},sheet2Name:{type:String,default:""},successItemSheet2:{type:Number,default:0},progressSheet2:{type:Number,default:0},totalDataRowSheet2:{type:Number,default:0},isHasLowerCaseCardNumberExcel:{type:Boolean,default:!1}},data:function(){return{tab:0,actionItems:[{title:"一括登録",tabname:"tab1"},{title:"カードも併せて一括登録",tabname:"tab2"}],files:[],fileName:"",isCheckData:!1,isCheckDataCSV:!1}},mounted:function(){this.tab="card-all"===this.isType?1:0},methods:{previewFiles:function(e){this.files=e.target.files[0],this.fileName=e.target.files[0]?e.target.files[0].name:""},openFile:function(e){var t=document.getElementsByClassName(e)[0];t.click()},closeDialogImport:function(){var e=document.getElementsByClassName("custom-file-input")[0];e.value="",this.files=null,this.fileName="",this.$emit("closeImportCSV")},clickExportExcel:function(){this.$emit("clickExportExcel",this.isCheckData)},yesChoice:function(){0===this.typeConfirm?this.$emit("clickImportCSV",{files:this.files,isSendEmail:!0}):2===this.typeConfirm&&this.$emit("clickImportExcel",{files:this.files,isSendEmail:!0})},noChoice:function(){0===this.typeConfirm?this.$emit("clickImportCSV",{files:this.files,isSendEmail:!1}):2===this.typeConfirm&&this.$emit("clickImportExcel",{files:this.files,isSendEmail:!1})},clickImportCSVTimeUnlockGate:function(){this.$emit("clickImportCSVTimeUnlockGate",{files:this.files})},changeTab:function(e){var t=document.getElementsByClassName("custom-file-input")[0];t.value="",this.files=null,this.fileName="",this.$emit("changeTab",e)}}}),oP=rP,nP=(a("cd0f"),Object(I["a"])(oP,aP,sP,!1,null,null,null)),iP=nP.exports;C()(nP,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCheckbox:Lr["a"],VCol:Dr["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTab:ng["a"],VTabItem:ig["a"],VTabs:lg["a"],VTabsItems:cg["a"],VTextField:Tr["a"]});var lP=f["a"].extend({name:"UsersTemplate",components:{Breadcrumbs:cn,SuccessButton:kr,UserTable:tP,ActionButton:Nn,UserImport:iP,Searchbox:$r,TextLink:No,AffiliationListModalPage:bw,UserDetailPage:nC,Modal:bn},props:{typeConfirm:{type:Number,default:0},totalDataRowCSV:{type:Number,default:0},pageGate:{type:Number,default:0},errorMessageProcess:{default:[]},totalDataRowProcess:{type:Number,default:0},successItemProcess:{type:Number,default:0},typeAction:{type:Number,default:0},successItemCSV:{type:Number,default:0},errorMessage:{default:[]},gateList:{default:[]},showModalProcess:{type:Boolean,default:!1},loadingGate:{type:Boolean,default:!1},showModalConfirmEmail:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},isGetDataList:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!1},success:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!1},loadingGroup:{type:Boolean,default:!1},users:{type:Array,default:function(){return[]}},listGroupPassages:{type:Array,default:function(){return[]}},listphones:{type:Array,default:function(){return[]}},listGatePassages:{type:Array,default:function(){return[]}},groupDetail:{default:function(){return[]}},tempGroupPassages:{default:function(){return[]}},ExpandedGroup:{default:function(){return[]}},cardItems:{default:function(){return[]}},phoneItems:{default:function(){return[]}},maxRecord:{type:Number,default:0},page:{type:Number,default:0},pageGroup:{type:Number,default:0},perPage:{type:Number,default:0},progress:{type:Number,default:0},successMessageLogs:{type:String,default:""},groupId:{type:String,default:""},action:{type:Number,default:0},errorMessageLogs:{type:String,default:""},showModalImport:{type:Boolean,default:!1},isExport:{type:Boolean,default:!1},showProcessImportExcel:{type:Boolean,default:!1},successItem:{type:Number,default:0},totalDataRow:{type:Number,default:0},errorMessageExcel:{default:[]},isFinishImportExcel:{type:Boolean,default:!1},sheetUserName:{type:String,default:""},userId:{type:String,default:""},isValid:{type:Boolean,default:""},isType:{type:String,default:""},exportType:{type:Number,default:0},groupToSearch:{default:[]},sheet1Name:{type:String,default:""},successItemSheet1:{type:Number,default:0},progressSheet1:{type:Number,default:0},totalDataRowSheet1:{type:Number,default:0},sheet2Name:{type:String,default:""},successItemSheet2:{type:Number,default:0},progressSheet2:{type:Number,default:0},totalDataRowSheet2:{type:Number,default:0},isHasLowerCaseCardNumberExcel:{type:Boolean,default:!1},ExpandedData:{default:function(){return[]}},authority:{type:Object,default:{}},departments:{type:Array,default:function(){return[]}},dataAllow:{type:Array,default:function(){return[]}},keyword:{type:String,default:""}},data:function(){return{isShow:!1,groupIdSearch:"",searchTargetItems:[{label:"ユーザーID",value:"userId"},{label:"ユーザー名",value:"name"},{label:"ユーザー名ふりがな",value:"furigana"},{label:"メールアドレス",value:"email"},{label:"備考1",value:"option1"},{label:"備考2",value:"option2"}],searchItem:[],actionItems:[{title:"有効化する",emitName:"click-enable"},{title:"無効化する",emitName:"click-disable"}],selectedUserIds:[],isReload:!1}},computed:{breadcrumbs:{get:function(){return[{text:"ユーザー",disabled:!0}]}},isShowConfirm:{get:function(){return this.showConfirm},set:function(e){!1===e&&this.$emit("closeDialogConfirm")}}},methods:{getReload:function(e){this.isReload=e},closeModal:function(e){e&&(this.$emit("get-list-user"),this.$emit("get-list-department"))},isTitle:function(){var e="";switch(this.action){case 0:case 2:e="ユーザーを有効化";break;case 1:case 3:e="ユーザーを無効化";break;case 4:e="関連付け削除";break;case 5:e="関連付け削除";break;default:break}return e},isText:function(){var e="";switch(this.action){case 0:case 2:e="チェックしたユーザーを有効化します。";break;case 1:case 3:e="チェックしたユーザーを無効化します。";break;case 4:e="この通行権限グループとの関連付けを解除しますか?";break;case 5:e="このゲートとの関連付けを解除しますか?";break;default:break}return e},clickAction:function(){0===this.action||1===this.action?this.$emit("changeMutiUserIsvalid",{UserIds:this.selectedUserIds,isValid:0===this.action,action:this.action}):2===this.action||3===this.action?this.$emit("changeUserIsvalid",{userId:this.userId,isValid:this.isValid,action:this.action}):4!==this.action&&5!==this.action||this.$emit("click-leave-action",{leave:4===this.action?"gate-passage":"gate",action:this.action})}}}),cP=lP,uP=(a("2e86"),Object(I["a"])(cP,q_,W_,!1,null,null,null)),dP=uP.exports;C()(uP,{VAutocomplete:to["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VList:En["a"],VListItem:On["a"],VListItemTitle:Vn["b"],VMenu:Un["a"],VProgressLinear:Mn["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var gP=2,pP=2,mP=f["a"].extend({name:"UserListPage",components:{Breadcrumbs:cn,SuccessButton:kr,ActionButton:Nn,UsersTemplate:dP},props:{authority:{type:Object,default:{}}},created:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return"undefined"===typeof localStorage.listUserAddSortKey&&localStorage.setItem("listUserAddSortKey","userId"),"undefined"===typeof localStorage.isVaildDataUser&&localStorage.setItem("isVaildDataUser","true"),"undefined"===typeof localStorage.listUserAddSortName&&localStorage.setItem("listUserAddSortName","desc"),"undefined"===typeof localStorage.pageSizeUserList?(localStorage.setItem("pageSizeUserList",Wt.toString()),e.perPage=Wt):e.perPage=parseInt(localStorage.pageSizeUserList),e.isGetDataList=!0,e.departments=[],e.dataAllow=[],e.getDepartment(1),t.next=10,e.getDepartmentAuthAll(localStorage.userProfileId,1);case 10:e.getList();case 11:case"end":return t.stop()}}),t)})))()},mounted:function(){this.$emit("activeMenu","user")},watch:{userDataLoad:function(e,t){console.log("newVal",e),console.log("pagesUser",this.pagesUser),e===this.pagesUser?(this.downloadCSV(),this.reset(),this.success=!0):e>0&&this.getDataForUser(e+1)},loading:function(e){this.$emit("loading",e)},exeCountCSV:function(e,t){if(e>0&&e0&&e===this.totalDataRowCSV&&(this.exeCountCSV=0,this.success=!0,this.importDataCSV=[])},countGetDetailGroup:function(e){e>0&&this.maxGroup<=e&&(this.ExpandedGroup[this.userId].groups.sort((function(e,t){return e.groupName.toLowerCase()0&&(this.isCountCSV=!0),this.reset(),this.showModalProcess=!1,this.showModalConfirmEmail=!1,this.errorMessage=[]},clickConfirmEmail:function(e){this.typeConfirm=e.type,this.showModalProcess=!1,this.showModalConfirmEmail=!0},clickExportCSV:function(e){this.isExport=!0,this.errorMessageLogs="",this.showModalProcess=!0,this.exportUser=[],this.progress=0,this.userDataLoad=0,this.success=!1,this.successItemCSV=0,e?this.getDataForUser(1):this.getDataForHeaderCSV()},clickExportCSVTimeUnlockGate:function(){this.isExport=!0,this.errorMessageLogs="",this.showModalProcess=!0,this.progress=0,this.success=!1,this.successItemCSV=0,this.progress=100,this.downloadCSVTimeUnlockGate(),this.reset(),this.success=!0},clickImportCSV:function(e){gP=2,this.isExport=!1,this.success=!1,this.showModalProcess=!0,this.errorMessageLogs="",this.errorMessage=[],this.isSendEmail=e.isSendEmail,this.isCountCSV=!1,this.isCountExcel=!1,this.importCSV(e)},clickImportCSVTimeUnlockGate:function(e){this.isExport=!1,this.showModalProcess=!0,this.successMessageLogs="",this.errorMessageLogs="",this.importCSVTimeUnlockGate(e)},closeDialogConfirm:function(){this.showProgress=!1,this.showConfirm=!1,this.groupIds=[],this.userId=""},closeModalProgress:function(e){if(console.log("data",e),this.showProgress=!1,this.showConfirm=!1,this.showModalConfirmEmail=!1,this.successItemProcess>0)if(4===e.action&&""!==this.userId){var t=this.userId;console.log("userId",t),this.$set(this.ExpandedData,t,[]),this.$set(this.ExpandedDataDefault,t,[]),this.ExpandedData[t]={maxRecords:0,data:[],loading:!0,page:1},this.getGatePassage(t,1)}else 5===e.action&&""!==this.groupId?(this.gateList={},this.pageGroup=1,this.countGetDetailGroup=0,this.$set(this.ExpandedGroup,this.userId,[]),this.$set(this.ExpandedGroupDefault,this.userId,[]),this.getExpandedGroup(this.userId),this.$set(this.gateList,this.groupId,[]),this.getGates(this.groupId),this.getList()):this.getList()},confirmAction:function(e){console.log(e),this.rowinErrDialog=0,this.successItemProcess=0,this.progress=0,this.showProgress=!1,2===e.action||3===e.action?(this.userId=e.userId,this.isValid=e.isValid):4===e.action?(this.gatePassageIds=e.dataIds,this.userId=e.userId):5===e.action&&(console.log(e.groudId),this.gateIds=e.gateIds,this.groupId=e.groudId),this.showConfirm=!0,this.action=e.action},changeMutiUserIsvalid:function(e){var t=this;this.showConfirm=!1,this.action=0,this.rowinErrDialog=0,this.successItemProcess=0,this.progress=0,this.showProgress=!0,this.userId="",this.isFinishProcess=!1,this.errorMessageProcess=[],this.action=e.action,this.totalDataRowProcess=e.UserIds.length,this.updateMutiUser(e).then((function(){t.isFinishProcess=!0}))},updateMutiUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=100/t.totalDataRowProcess,r=Object(rr["a"])(e.UserIds),a.prev=2,r.s();case 4:if((o=r.n()).done){a.next=15;break}return n=o.value,i={userId:n,isValid:e.isValid},l=void 0,a.next=10,t.updateUser(i);case 10:l=a.sent,l&&t.successItemProcess++,t.progress+=s;case 13:a.next=4;break;case 15:a.next=20;break;case 17:a.prev=17,a.t0=a["catch"](2),r.e(a.t0);case 20:return a.prev=20,r.f(),a.finish(20);case 23:case"end":return a.stop()}}),a,null,[[2,17,20,23]])})))()},changeUserIsvalid:function(e){var t=this;this.showProgress=!0,this.rowinErrDialog=0,this.successItemProcess=0,this.progress=0,this.userId="",this.isFinishProcess=!1,this.action=e.action,this.totalDataRowProcess=1,this.errorMessageProcess=[],this.changeUserOneIsvalid(e).then((function(){t.isFinishProcess=!0}))},changeUserOneIsvalid:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=100/t.totalDataRowProcess,r=t.updateUser(e),a.next=4,r;case 4:if(!a.sent){a.next=6;break}t.successItemProcess++;case 6:t.progress+=s;case 7:case"end":return a.stop()}}),a)})))()},updateUser:function(e){var t=this;return new Promise((function(a,s){t.$http.put(T+"/"+encodeURIComponent(encodeURIComponent(e.userId)),{isValid:e.isValid}).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e.userId+">>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))},importCSV:function(e){var t=this,a=this,s=e.files;if(void 0!==s&&null!==s&&0!==s.length){this.progress=0,this.exeCountCSV=0,this.successItemCSV=0,this.progress=0;var r=new FileReader;r.onload=function(){for(var e=r.result,t=e.split("\n"),s=[],o=0;o1){a.importDataCSV=[];for(var n=1;n0&&a.importDataCSV.push(s[n]);if(a.importDataCSV.length>0){a.totalDataRowCSV=a.importDataCSV.length,a.message="",a.percent=100/a.totalDataRowCSV;var i={userId:a.importDataCSV[0][0],password:a.importDataCSV[0][1],name:a.importDataCSV[0][2],furigana:a.importDataCSV[0][3],email:a.importDataCSV[0][4],isPasswordLoginValid:a.importDataCSV[0][5],isMfaSms:a.importDataCSV[0][6],phoneNumber:a.importDataCSV[0][7],isAdmin:a.importDataCSV[0][8],derpartmentId:a.importDataCSV[0][9],isPhoneAdmin:a.importDataCSV[0][9+gP],shareKeyBeValid:a.importDataCSV[0][10+gP],passCode:a.importDataCSV[0][11+gP],thumbnail:a.importDataCSV[0][12+gP],option1:a.importDataCSV[0][13+gP],option2:a.importDataCSV[0][14+gP],isValid:a.importDataCSV[0][15+gP]};a.editExe(i,2,a.percent)}else a.success=!0,a.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"}else a.success=!0,a.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"},r.onerror=function(){a.errorMessageLogs="選択されているファイルの読み込みに失敗しました。
ブラウザの更新、もしくは別ファイルを選択してから
再度アップロードしたいファイルを選択してください。",t.success=!0},r.readAsText(s,"Shift_JIS")}else a.errorMessageLogs="CSVのファイルを選択してください。",this.success=!0},editExe:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function r(){var o,n,i,l,c,u,d,g;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=s,n=!1,n=null!==e.email&&""!==e.email&&o.isSendEmail,e.phoneNumber=e.phoneNumber.trim().replace(/\u200B/g,""),i=e.phoneNumber.substring(1),l=o.convertStringToBoolean(e.isMfaSms,!1),c=o.convertStringToBoolean(e.isPasswordLoginValid,!0),u="",d={userId:e.userId,name:e.name,furigana:e.furigana,email:e.email,isMfaSms:l,isSendEmail:n,isAdmin:o.convertStringToBoolean(e.isAdmin,!1),isPhoneAdmin:o.convertStringToBoolean(e.isPhoneAdmin,!1),shareKeyBeValid:o.convertStringToBoolean(e.shareKeyBeValid,!1),passCode:e.passCode,option1:e.option1,option2:e.option2,isValid:o.convertStringToBoolean(e.isValid,!0)},!0===l&&(e.phoneNumber.match(/^[0][0-9]{10}$/)&&(u="+81"+i),d.phoneNumber=u),r.next=12,s.getUserInfo(e.userId);case 12:g=r.sent,null===g?(!0===c&&(d.password=e.password),d.isPasswordLoginValid=c,""!==e.derpartmentId&&gP>0&&(d.departmentIds=[e.derpartmentId]),console.log("Infor",d),o.addExe(e,d,t,a)):(c!==g.isPasswordLoginValid&&(!0===c&&(d.password=e.password),d.isPasswordLoginValid=c),s.$http.put(T+"/"+encodeURIComponent(encodeURIComponent(e.userId)),d).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.updateDepartmentId(e.derpartmentId,e.userId);case 2:s.importDataCSV.length>0&&(o.exeCountCSV++,o.successItemCSV++,o.progress+=a);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(null,(function(r){var n="",i="";if(s.importDataCSV.length>0)switch(r.status){case 401:i="The incoming token has expired"===r.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。",o.exeCountCSV++,o.progress+=a;break;case 400:o.exeCountCSV++,i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessage,t,n),o.progress+=a,console.log(r);break;case 403:o.exeCountCSV++,i="アクセス情報が不正です。ログインし直してからやり直してください。",n=t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessage,t,n),o.progress+=a,console.log(r);break;case 404:break;case 500:o.exeCountCSV++,i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessage,t,n),o.progress+=a;break;case 503:o.exeCountCSV++,i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessage,t,n),o.progress+=a,console.log(r);break;default:o.exeCountCSV++,i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessage,t,n),o.progress+=a,console.log(r);break}})));case 14:case"end":return r.stop()}}),r)})))()},addExe:function(e,t,a,s){var r=this,o=this;this.$http.post(T,t).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(n){var i,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:"Success"===n.body.message?r.importDataCSV.length>0&&(o.exeCountCSV++,o.successItemCSV++,o.progress+=s):(i="",l="",l="入力したパラメーターが誤っています。入力内容をご確認ください。",i=a+" 行目>>"+t.userId+">>"+l+"",r.$set(r.errorMessage,a,i),o.progress+=s);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){if(r.importDataCSV.length>0){o.exeCountCSV++;var n="",i="";switch(e.status){case 401:i="The incoming token has expired"===e.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=a+" 行目>>"+t.userId+">>"+i+"";break;case 403:i="アクセス情報が不正です。ログインし直してからやり直してください。",n=a+" 行目>>"+t.userId+">>"+i+"";break;case 409:i="入力されたユーザーIDは既に使用されています。他のユーザーIDを入力してください。",n=a+" 行目>>"+t.userId+">>"+i+"";break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=a+" 行目>>"+t.userId+">>"+i+"";break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=a+" 行目>>"+t.userId+">>"+i+"";break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=a+" 行目>>"+t.userId+">>"+i+"";break}r.$set(r.errorMessage,a,n),o.progress+=s,console.log(e)}}))},importCSVTimeUnlockGate:function(e){var t=this,a=this,s=e.files;if(void 0!==s&&null!==s&&0!==s.length){this.progress=0,this.exeCountCSV=0,this.successItemCSV=0,this.progress=0;var r=new FileReader;r.onload=function(){for(var e=r.result,s=e.split("\n"),o=[],n=0;n1){a.importDataCSV=[];for(var i=1;i0&&o[i][1].length>0&&12!==o[i][2].length&&12!==o[i][3].length||(o[i][2]=a.formatDateTime(o[i][2]),o[i][3]=a.formatDateTime(o[i][3]),a.importDataCSV.push(o[i])));if(console.log("importDataCSV",a.importDataCSV),a.importDataCSV.length>0){var l=0;a.totalDataRowCSV=a.importDataCSV.length,a.message="",a.percent=100/a.totalDataRowCSV;var c=window.setInterval((function(){var e={userId:t.importDataCSV[l][0],gateId:t.importDataCSV[l][1],notBefore:t.formatTimestamp(t.importDataCSV[l][2]),notAfter:t.formatTimestamp(t.importDataCSV[l][3])};t.startAddGatePassageItem(e,l+2,t.percent),l+=1,l>0&&l===t.totalDataRowCSV&&clearInterval(c)}),100)}else a.success=!0,a.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"}else a.success=!0,a.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"},r.onerror=function(){a.errorMessageLogs="選択されているファイルの読み込みに失敗しました。
ブラウザの更新、もしくは別ファイルを選択してから
再度アップロードしたいファイルを選択してください。",t.success=!0},r.readAsText(s,"Shift_JIS")}else a.errorMessageLogs="CSVのファイルを選択してください。",this.success=!0},startAddGatePassageItem:function(e,t,a){var s=this,r=this;this.$http.post(ee,e).then((function(e){s.importDataCSV.length>0&&(r.exeCountCSV++,r.successItemCSV++,r.progress+=a)})).then(null,(function(o){var n="",i="";if(s.importDataCSV.length>0)switch(o.status){case 400:r.exeCountCSV++,i=Qt,n=t+" 行目>>"+e.userId+", "+e.gateId+">>"+i+"",s.$set(s.errorMessage,t,n),r.progress+=a,console.log(o);break;case 401:i="The incoming token has expired"===o.body.message?"":ea,r.exeCountCSV++,r.progress+=a;break;case 403:r.exeCountCSV++,i=ta,n=t+" 行目>>"+e.userId+", "+e.gateId+">>"+i+"",s.$set(s.errorMessage,t,n),r.progress+=a,console.log(o);break;case 404:r.exeCountCSV++,i=sa,n=t+" 行目>>"+e.userId+", "+e.gateId+">>"+i+"",s.$set(s.errorMessage,t,n),r.progress+=a;break;case 409:r.exeCountCSV++,i=ga,n=t+" 行目>>"+e.userId+", "+e.gateId+">>"+i+"",s.$set(s.errorMessage,t,n),r.progress+=a;break;case 500:r.exeCountCSV++,i=fa,n=t+" 行目>>"+e.userId+", "+e.gateId+">>"+i+"",s.$set(s.errorMessage,t,n),r.progress+=a;break;case 503:r.exeCountCSV++,i=ha,n=t+" 行目>>"+e.userId+", "+e.gateId+">>"+i+"",s.$set(s.errorMessage,t,n),r.progress+=a,console.log(o);break;default:r.exeCountCSV++,i=ba,n=t+" 行目>>"+e.userId+", "+e.gateId+">>"+i+"",s.$set(s.errorMessage,t,n),r.progress+=a,console.log(o);break}}))},formatDateTime:function(e){var t=e.substring(0,4),a=e.substring(4,6),s=e.substring(6,8),r=e.substring(8,10),o=e.substring(10,12);return t+"-"+a+"-"+s+" "+r+":"+o},formatTimestamp:function(e){return""!==e?jo()(e).unix():""},convertStringToBoolean:function(e,t){var a=e.trim().toLowerCase();switch(a){case"1":return!0;case"0":return!1;default:return t}},getDataForUser:function(e){var t=this,a=this;this.$http.get(T+"?limit=1000&page="+e+"&isExceptOptionalUser=true&exclude=thumbnail&sortKey=desc:userId").then(function(){var s=Object(or["a"])(regeneratorRuntime.mark((function s(r){var o,n,i,l,c,u,d;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:1===e&&(t.pagesUser=Math.ceil(r.body.maxRecords/1e3),t.percentUser=100/r.body.maxRecords),o=0;case 2:if(!(o0&&void 0!==t[0].department?t[0].department.departmentId:"","所属名":t.length>0&&void 0!==t[0].department?t[0].department.name:"","ゲート設定権限ステータス(1:有効.0:無効)":a.converToBit(s.isPhoneAdmin),"鍵共有権限ステータス(1:有効.0:無効)":a.converToBit(s.shareKeyBeValid),"二段階認証パスワード":s.passCode,"サムネイル":"","備考1":s.option1,"備考2":s.option2,"ステータス(1:有効.0:無効)":a.converToBit(s.isValid),"登録日(読み取り専用)":a.converToDate(s.registered),"更新日(読み取り専用)":a.converToDate(s.updated)}),a.progress+=a.percentUser}));i.push(o)},l.s();!(c=l.n()).done;)u()}catch(g){l.e(g)}finally{l.f()}return s.next=9,Promise.all(i);case 9:o+=10,s.next=2;break;case 12:d="ユーザーID",a.exportUser.sort((function(e,t){return e[d].toLowerCase()>t[d].toLowerCase()?-1:1})),console.log("vm.userDataLoad",a.userDataLoad),a.userDataLoad++;case 16:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}()).then(null,(function(e){a.progress+=a.percentUser,a.userDataLoad++,console.log("vm.userDataLoad",a.userDataLoad),console.log(e)}))},getDataForHeaderCSV:function(){var e=this;e.progress=100,this.downloadCSV(),this.reset(),this.success=!0},downloadCSV:function(){var e,t=a("21a6");0===this.exportUser.length&&this.exportUser.push({"ユーザーID":"","ログインパスワード(読み取り、変更不可)":"","ユーザー名":"","ふりがな":"","メールアドレス":"","アプリへのログイン(1:有効.0:無効)":"","SMS認証(1:有効.0:無効)":"","電話番号":"","組織管理権限(1:有効.0:無効)":"","所属ID":"","所属名":"","ゲート設定権限ステータス(1:有効.0:無効)":"","鍵共有権限ステータス(1:有効.0:無効)":"","二段階認証パスワード":"","サムネイル":"","備考1":"","備考2":"","ステータス(1:有効.0:無効)":"","登録日(読み取り専用)":"","更新日(読み取り専用)":""});var s=this.convertArrayOfObjectsToCSV({data:this.exportUser});e="user-data.csv";var r=new Uint8Array([239,187,191]),o=new Blob([r,s],{type:"text/csv;charset=utf-8;"}),n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(n)t(o,e);else if(console.log("window.navigator.msSaveOrOpenBlob",window.navigator.msSaveOrOpenBlob),void 0!==window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(o,e);else{var i=document.createElement("a");i.setAttribute("href",window.URL.createObjectURL(o)),i.setAttribute("download",e),i.setAttribute("target","_blank"),i.click(),i.remove()}},downloadCSVTimeUnlockGate:function(){var e,t=a("21a6"),s=[];s.push({"ユーザーID":"","ゲートID":"","開始時間":"","終了時間":""});var r=this.convertArrayOfObjectsToCSV({data:s});e="time-gate-data.csv";var o=new Uint8Array([239,187,191]),n=new Blob([o,r],{type:"text/csv;charset=utf-8;"}),i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(i)t(n,e);else if(console.log("window.navigator.msSaveOrOpenBlob",window.navigator.msSaveOrOpenBlob),void 0!==window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(n,e);else{var l=document.createElement("a");l.setAttribute("href",window.URL.createObjectURL(n)),l.setAttribute("download",e),l.setAttribute("target","_blank"),l.click(),l.remove()}},convertArrayOfObjectsToCSV:function(e){var t,a,s,r,o,n;return n=e.data||null,null!=n&&n.length?(r=e.columnDelimiter||",",o=e.lineDelimiter||"\n",s=Object.keys(n[0]),t="",t+=s.join(r),t+=o,n.forEach((function(e){a=0,s.forEach((function(s){a>0&&(t+=r),t+=e[s],a++})),t+=o})),t):null},expandUser:function(e){var t=e.item.userId;this.cardItems=[],this.phoneItems=[],this.listGatePassages=[],void 0!==t&&!0===e.value&&(this.getInforGroup(1,t),this.getPcode(1,t),this.getPhone(1,t),this.getInforGatePassage(1,t))},searchUser:function(e){console.log(e);var t=e.text;t=t.replace(/\s/g,","),this.keyword=encodeURIComponent(t),this.scorp=e.targets,this.currPage=1,this.typeOfSearch=0,this.getList()},clickAddUser:function(){this.$router.push({path:Pt})},getList:function(){var e=this;if(this.users=[],0===this.typeOfSearch){this.isGetDataList=!0;var t="";this.errorMessageLogs="",console.log(this.keyword),t="true"===localStorage.isVaildDataUser?T+"?limit="+localStorage.pageSizeUserList+"&page="+this.currPage+"&keyword="+this.keyword+"&scorp="+this.scorp+"&sortKey="+localStorage.listUserAddSortName+":"+localStorage.listUserAddSortKey+"&isValid=true":T+"?limit="+localStorage.pageSizeUserList+"&page="+this.currPage+"&keyword="+this.keyword+"&scorp="+this.scorp+"&sortKey="+localStorage.listUserAddSortName+":"+localStorage.listUserAddSortKey,t+="&isExceptOptionalUser=true&exclude=thumbnail&embed=departments",this.$http.get(t).then((function(t){t.body.maxRecords>0?(e.maxRecord=t.body.maxRecords,e.users=t.body.users.map((function(e){return e.company="",e.departmentId="",void 0!==e.departments&&e.departments.length>0&&(e.company=e.departments[0].name,e.departmentId=e.departments[0].departmentId),e})),e.currPage=Math.ceil(t.body.startRecord/e.perPage),e.isGetDataList=!1):(e.users=[],e.maxRecord=0,e.currPage=1,e.isGetDataList=!1)})).then(null,(function(t){switch(e.isGetDataList=!1,e.users=[],e.message="該当するデーターがありません。",t.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===t.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}else this.getUserByDeparmentId(this.groupIdToSearch)},getGates:function(e){var t=this;this.loadingGate=!0;var a=Y+"?groupId="+encodeURIComponent(e)+"&limit=25&page="+this.pageGate+"&embed=gate&isExceptOptionalGate=true";this.$http.get(a).then((function(a){a.body.maxRecords>0?(t.gateList[e]={maxRecord:a.body.maxRecords,gates:[]},a.body.relationsGateGroup.forEach((function(a){t.gateList[e].gates.push({relationId:a.relationId,gateId:a.gate?a.gate.gateId:"",gateName:a.gate?a.gate.name:""})}))):t.gateList={},t.loadingGate=!1})).then(null,(function(e){t.loadingGate=!1,console.log("err: ",e)}))},getExpandedGroup:function(e){var t=this;this.loadingGroup=!0,this.$http.get(Z+"?userId="+encodeURIComponent(e)+"&limit=1000&page=1&embed=group").then(function(){var a=Object(or["a"])(regeneratorRuntime.mark((function a(s){var r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log(s),t.maxGroup=s.body.groupPassages.length,s.body.maxRecords>0?(r=s.body,t.ExpandedGroup[e]={maxRecords:r.maxRecords,groups:[{gateName:"ゲート1",groupName:"通行権限グループ1",passableTimeSettingName:"時間帯設定1"},{gateName:"ゲート2",groupName:"通行権限グループ2",passableTimeSettingName:"時間帯設定2"},{gateName:"ゲート3",groupName:"通行権限グループ3",passableTimeSettingName:"時間帯設定3"}]},t.ExpandedGroupDefault[e]={maxRecords:r.maxRecords,groups:[]},t.loadingGroup=!1):(t.ExpandedGroup={},t.ExpandedGroupDefault={});case 3:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()).then(null,(function(e){t.loadingGroup=!1,console.log(e)}))},getInforGroup:function(e,t){var a=this;this.loading=!0,this.$http.get(Z+"?userId="+encodeURIComponent(t)+"&embed = group").then((function(s){a.loading=!1,s.body.maxRecords>0?(a.tempGroupPassages.push(s.body.groupPassages),s.body.maxRecords>s.body.endRecord?a.getInforGroup(e+1,t):a.loading=!1):a.tempGroupPassages=[]})).then(null,(function(e){a.loading=!1,a.message="事業者IDが間違っています。"}))},getPcode:function(e,t){var a=this;this.$http.get(j+"?limit=1000&page="+e+"&sortKey=desc:registered&userId="+encodeURIComponent(t)).then((function(s){s.body.maxRecords>0&&void 0!==s.body.pCodes?(s.body.pCodes.forEach((function(e){a.cardItems.push({text:e.pCodeId,value:e.pCodeId})})),s.body.maxRecords>s.body.endRecord?a.getPcode(e+1,t):a.loading=!1):(a.cardItems=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getPhone:function(e,t){var a=this;this.$http.get(Q+"?limit=1000&page="+e+"&sortKey=desc:registered&userId="+encodeURIComponent(t)).then((function(s){s.body.maxRecords>0?(s.body.phones.forEach((function(e){a.phoneItems.push({text:e.model,value:e.phoneId})})),s.body.maxRecords>s.body.endRecord?a.getPhone(e+1,t):a.loading=!1):(a.phoneItems=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getInforGatePassage:function(e,t){var a=this;this.$http.get(ee+"?userId="+encodeURIComponent(t)+"&embed=gate?limit=1000&page="+e).then((function(s){s.body.maxRecords>0?(s.body.passages.forEach((function(e){a.listGatePassages.push({gateId:e.gateId,notAfter:e.notAfter,notBefore:e.notBefore})})),s.body.maxRecords>s.body.endRecord?a.getInforGatePassage(e+1,t):a.loading=!1):(a.listGatePassages=[],a.loading=!1)})).then(null,(function(e){console.log(e)}))},getInforGate:function(e,t){var a=this;this.$http.get(te+"?gateId="+encodeURIComponent(e)+"&isValid=true").then((function(e){a.listGatePassages[t].gateId=e.body.gates[0]})).then(null,(function(e){console.log(e)}))},getGateGroup:function(e){var t=this;this.$http.get(X+"?groupId="+encodeURIComponent(e)+"&isExceptOptionalGate=true").then((function(e){var a,s=Object(rr["a"])(e.body.relationsGateGroup);try{for(s.s();!(a=s.n()).done;){var r=a.value;t.listGroupPassages.push(r)}}catch(o){s.e(o)}finally{s.f()}t.exeGateGroup++})).then(null,(function(e){t.exeGateGroup++,console.log(e)}))},clickEditUser:function(e){this.$router.push({path:"/user/edit",query:{userId:e}})},clickLeaveAction:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.rowinErrDialog=0,t.successItemProcess=0,t.progress=0,t.showProgress=!0,t.showConfirm=!1,t.action=e.action,t.isFinishProcess=!1,t.errorMessageProcess=[],"group"!==e.leave){a.next=34;break}s=t.groupIds,t.totalDataRowProcess=s.length,r=100/t.totalDataRowProcess,o=Object(rr["a"])(s),a.prev=13,o.s();case 15:if((n=o.n()).done){a.next=25;break}return i=n.value,l=void 0,a.next=20,t.deleteGroup(i);case 20:l=a.sent,l&&t.successItemProcess++,t.progress+=r;case 23:a.next=15;break;case 25:a.next=30;break;case 27:a.prev=27,a.t0=a["catch"](13),o.e(a.t0);case 30:return a.prev=30,o.f(),a.finish(30);case 33:t.isFinishProcess=!0;case 34:if("gate"!==e.leave){a.next=60;break}c=t.gateIds,t.totalDataRowProcess=c.length,u=100/t.totalDataRowProcess,d=Object(rr["a"])(c),a.prev=39,d.s();case 41:if((g=d.n()).done){a.next=51;break}return p=g.value,m=void 0,a.next=46,t.deleteGate(p.relationId);case 46:m=a.sent,m&&t.successItemProcess++,t.progress+=u;case 49:a.next=41;break;case 51:a.next=56;break;case 53:a.prev=53,a.t1=a["catch"](39),d.e(a.t1);case 56:return a.prev=56,d.f(),a.finish(56);case 59:t.isFinishProcess=!0;case 60:if("gate-passage"!==e.leave){a.next=86;break}f=t.gatePassageIds,t.totalDataRowProcess=f.length,h=100/t.totalDataRowProcess,v=Object(rr["a"])(f),a.prev=65,v.s();case 67:if((b=v.n()).done){a.next=77;break}return y=b.value,I=void 0,a.next=72,t.deleteGatePass(y);case 72:I=a.sent,I&&t.successItemProcess++,t.progress+=h;case 75:a.next=67;break;case 77:a.next=82;break;case 79:a.prev=79,a.t2=a["catch"](65),v.e(a.t2);case 82:return a.prev=82,v.f(),a.finish(82);case 85:t.isFinishProcess=!0;case 86:case"end":return a.stop()}}),a,null,[[13,27,30,33],[39,53,56,59],[65,79,82,85]])})))()},deleteGate:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Y+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))},deleteGroup:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(q+"/"+encodeURIComponent(e)).then((function(e){a(!0)})).then(null,(function(s){var r="";switch(s.status){case 400:r=Qt;break;case 403:r="Unauthorized"===s.message?ta:ia;break;case 404:r=aa;break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=e+">>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))},converTimestamp:function(e){return jo()(e).unix()},changePerPage:function(e){this.perPage=e,localStorage.setItem("pageSizeUserList",e),this.getList()},changePageGate:function(e){console.log(e),this.pageGate=e.page,this.gateList={},this.$set(this.gateList,e.groupId,[]),this.getGates(e.groupId)},changePageGroup:function(e){console.log(e),this.pageGroup=e.page,this.loadingGroup=!0,this.countGetDetailGroup=0,this.getExpandedGroup(e.userId)},changePage:function(e){var t=this,a=e.change;if("user"===a)this.currPage=e.page,this.getList();else if("group"===a){this.pageGroup=e.page,this.loadingGroup=!0,this.countGetDetailGroup=0;var s=Array.of.apply(Array,Object(mI["a"])(this.ExpandedGroupDefault[e.userId].groups));this.ExpandedGroup[e.userId].groups=s.slice(25*(e.page-1),25*e.page),setTimeout((function(){t.loadingGroup=!1}),100)}else"gate"===a&&(this.pageGate=e.page,this.gateList={},this.$set(this.gateList,e.groupId,[]),this.getGates(e.groupId))},converToBit:function(e){var t=void 0!==e?e.toString():"";switch(t=null!==t&&""!==t?t.trim().toLowerCase():"false",t){case"true":return 1;case"false":return 0;default:return 1}},converToDate:function(e){return jo()(new Date(1e3*e)).format("YYYY/MM/DD")},clickExportExcel:function(e){var t=this;this.loading=!0,this.exportUserData=[],this.exportGroupData=[],this.exportGroupPassages=[],e?this.getDataForUserExcel().then((function(){return t.getDataForGroup(e)})).then((function(){return t.downloadExcel()})).then((function(){t.loading=!1})):this.getDataForGroup(e).then((function(){return t.downloadExcel()})).then((function(){t.loading=!1}))},downloadExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w,k,S,_,P,M,L,D;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s="!@#"+Math.random().toString(36).substring(7)+Date.now(),r=e.exportGroupData,o=e.exportUserData,n=e.exportGroupPassages,i=a("5586"),l=new i.Workbook,c=o.length>0?o.length+2:1002,u={sheetFormat:{defaultColWidth:13}},d={sheetFormat:{defaultColWidth:3}},g={sheetProtection:{password:s},hidden:!0},p=["ユーザーとカードの設定","通行権限グループとユーザーの紐づけ","参照"],m=l.addWorksheet(p[0],u),f=l.addWorksheet(p[1],d),h=l.addWorksheet(p[2],g),v=l.createStyle({fill:{type:"pattern",patternType:"solid",bgColor:"FFC008"},font:{color:"000000",name:"MS PGothic"}}),b=l.createStyle({alignment:{vertical:"center",horizontal:"left",wrapText:!0}}),y=l.createStyle({font:{size:11,name:"MS PGothic"},border:{left:{style:"thin",color:"000000"},right:{style:"thin",color:"000000"},top:{style:"thin",color:"000000"},bottom:{style:"thin",color:"000000"}}}),I=l.createStyle({alignment:{vertical:"center",horizontal:"center"},font:{size:11,name:"MS PGothic"},border:{left:{style:"thin",color:"000000"},right:{style:"thin",color:"000000"},top:{style:"thin",color:"000000"},bottom:{style:"thin",color:"000000"}}}),x=[{color:"000000",size:11,value:"ユーザーID \n",name:"MS PGothic"},{value:"(重複不可)\n",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"(半角英数字)",size:9,color:"ff0000",name:"MS PGothic",bold:!1}],C=["ログインパスワード",{value:"(新規ユーザー登録のみ有効)\n",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"(必須:半角英大文字+半角英小文字+半角数字の組み合わせ)",size:9,color:"ff0000",name:"MS PGothic",bold:!1}],w=["個人コード1 \n",{value:"(テンキー:半角数字)(NFC:半角英数字)",size:9,color:"ff0000",name:"MS PGothic"}],k=["個人コード2 \n",{value:"(テンキー:半角数字)(NFC:半角英数字)",size:9,color:"ff0000",name:"MS PGothic"}],S=["個人コード3 \n",{value:"(テンキー:半角数字)(NFC:半角英数字)",size:9,color:"ff0000",name:"MS PGothic"}],_=["通行権限グループ一覧 ",{value:"※紐づけ設定 1:設定、0:解除",color:"ff0000",name:"MS PGothic"}],P=["※赤セルの箇所は、",{value:"入力必須項目",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"です \n",bold:!1,size:11,color:"000000",name:"MS PGothic"},{value:"※青セルの箇所は、",bold:!1,size:11,color:"000000",name:"MS PGothic"},{value:"サービス加入者のみ入力可能",bold:!0,size:11,color:"000000",name:"MS PGothic"},{value:"です",bold:!1,size:11,color:"000000",name:"MS PGothic"}],h.cell(2,2).string("通行権限グループの値").style(I),h.cell(3,2).string(" ").style(I),h.cell(4,2).number(0).style(I),h.cell(5,2).number(1).style(I),h.column(2).setWidth(22),m.cell(1,2,1,5,!0).string(P).style({alignment:{vertical:"center",horizontal:"left",wrapText:!0},font:{size:11,name:"MS PGothic"}}),m.row(1).setHeight(31),m.cell(2,2).string(x).style(b),m.cell(2,3).string(C).style(b),m.cell(2,4).string("ユーザー名").style(b),m.cell(2,5).string("ふりがな").style(b),m.cell(2,6).string("メールアドレス").style(b),m.cell(2,7).string("組織管理権限(1:有効.0:無効)").style(b),m.cell(2,8).string("所属ID").style(b),m.cell(2,9).string("所属名").style(b),m.cell(2,8+pP).string("ゲート設定権限ステータス(1:有効.0:無効)").style(b),m.cell(2,9+pP).string("鍵共有権限ステータス(1:有効.0:無効)").style(b),m.cell(2,10+pP).string("アプリへのログイン(1:有効.0:無効)").style(b),m.cell(2,11+pP).string("SMS認証(1:有効.0:無効)").style(b),m.cell(2,12+pP).string(["電話番号 \n",{value:"(-(ハイフン)無しの携帯電話番号)",size:11,color:"ff0000",name:"MS PGothic"}]).style(b),m.cell(2,13+pP).string("備考1").style(b),m.cell(2,14+pP).string("備考2").style(b),m.cell(2,15+pP).string("個人コード1-種別(1:テンキー.0:NFCカード)").style(b),m.cell(2,16+pP).string(w).style(b),m.cell(2,17+pP).string("個人コード2-種別(1:テンキー.0:NFCカード)").style(b),m.cell(2,18+pP).string(k).style(b),m.cell(2,19+pP).string("個人コード3-種別(1:テンキー.0:NFCカード)").style(b),m.cell(2,20+pP).string(S).style(b),m.cell(2,2,c,4,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"fcd5b4",fgColor:"fcd5b4"}}),m.cell(3,2,c,20+pP,!1).style({alignment:{vertical:"center",horizontal:"left"}}),m.cell(2,7,c,7,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"fcd5b4",fgColor:"fcd5b4"}}),m.cell(2,10,c,9+pP,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"fcd5b4",fgColor:"fcd5b4"}}),m.cell(2,11+pP,c,12+pP,!1).style({fill:{type:"pattern",patternType:"solid",bgColor:"daeef3",fgColor:"daeef3"}}),m.cell(3,12+pP,c,12+pP,!1).style({numberFormat:"@"}),m.cell(2,2,c,20+pP,!1).style(y),m.column(13+pP).setWidth(34),m.column(15+pP).setWidth(34),m.column(17+pP).setWidth(34),m.column(1).setWidth(3),M=3,!(o.length>0)){t.next=68;break}return t.next=68,o.forEach((function(e,t){m.cell(M+t,2).string(e.userId),m.cell(M+t,4).string(e.name),m.cell(M+t,5).string(e.furigana),m.cell(M+t,6).string(e.email),m.cell(M+t,7).number(e.isAdmin),m.cell(M+t,8).string(e.departmentId),m.cell(M+t,9).string(e.departmentName),m.cell(M+t,8+pP).number(e.isPhoneAdmin),m.cell(M+t,9+pP).number(e.shareKeyBeValid),m.cell(M+t,10+pP).number(e.isPasswordLoginValid),m.cell(M+t,11+pP).number(e.isMfaSms),m.cell(M+t,12+pP).string(e.phoneNumber),m.cell(M+t,13+pP).string(e.option1),m.cell(M+t,14+pP).string(e.option2),e.pCodes[0]&&(m.cell(M+t,15+pP).number(e.pCodes[0].type),m.cell(M+t,16+pP).string(e.pCodes[0].pCodeId)),e.pCodes[1]&&(m.cell(M+t,17+pP).number(e.pCodes[1].type),m.cell(M+t,18+pP).string(e.pCodes[1].pCodeId)),e.pCodes[2]&&(m.cell(M+t,19+pP).number(e.pCodes[2].type),m.cell(M+t,20+pP).string(e.pCodes[2].pCodeId))}));case 68:return f.cell(2,2).string("ユーザーID"),f.cell(3,2).string("編集禁止").style({alignment:{vertical:"center",horizontal:"right"}}),t.next=72,r.forEach((function(t,a){var s=a+3;f.cell(2,s).string(t.name).style({alignment:{textRotation:90,vertical:"center",horizontal:"center"}}),f.cell(3,s).string(t.groupId).style({alignment:{textRotation:90,vertical:"center",horizontal:"center"},fill:{type:"pattern",patternType:"solid",bgColor:"808080",fgColor:"808080"}});for(var r=3;r<=c;r++){var o=p[0]+"!B"+r;f.cell(r+1,s).string(""),f.cell(r+1,2).formula("IF( "+o+'= "", "", '+o+")").style({alignment:{vertical:"center",horizontal:"left"}})}e.countColumn++}));case 72:return t.next=74,o.forEach((function(e,t){r.forEach((function(a,s){var r=n.filter((function(t){return t.userId===e.userId&&t.groupId===a.groupId}));r.length>0&&f.cell(t+4,s+3).number(1)}))}));case 74:L=i.getExcelCellRef(c+1,e.countColumn+1),f.cell(2,2,c+1,e.countColumn+1,!1).style(y),f.cell(1,3).string(_).style({alignment:{vertical:"center",horizontal:"left"},font:{name:"MS PGothic"}}),f.addDataValidation({type:"list",allowBlank:!0,showDropDown:!0,sqref:"C4:"+L,formulas:["="+p[2]+"!$B$3:$B$5"]}),f.cell(2,2).style({alignment:{vertical:"center",horizontal:"left"}}),f.cell(4,3,c+1,e.countColumn+1).style({fill:{type:"pattern",patternType:"solid",bgColor:"bfbfbf",fgColor:"bfbfbf"}}),f.column(2).setWidth(24),f.row(3).hide(),f.addConditionalFormattingRule("C4:"+L,{type:"expression",priority:1,formula:'NOT(ISERROR(SEARCH("1",C4:'+L+")))",style:v}),D=a("21a6"),l.writeToBuffer().then((function(e){var t=new Blob([e]);D(t,"alluser-data.xlsx")}));case 85:case"end":return t.stop()}}),t)})))()},clickImportExcel:function(e){var t=this;console.log(e),this.isCountCSV=!1,this.isCountExcel=!1,this.resetAllValue(),this.isLoading=!0,this.isSendEmail=e.isSendEmail,this.errorMessageExcel=[],setTimeout((function(){t.importExelAllUser(e.files)}),200)},getGateCount:function(e,t,a){var s=this;return new Promise((function(r,o){s.loading=!1;var n=Y+"?limit=25&groupId="+encodeURIComponent(t.groupId)+"&isExceptOptionalGate=true";s.$http.get(n).then((function(o){e.groups.push({groupPassageId:t.groupPassageId,groupId:t.groupId,groupName:t.group?t.group.groupName:"",gateCount:o.body.maxRecords}),a.groups.push({groupPassageId:t.groupPassageId,groupId:t.groupId,groupName:t.group?t.group.groupName:"",gateCount:o.body.maxRecords}),s.countGetDetailGroup++,r(!0)})).then(null,(function(o){e.groups.push({groupPassageId:t.groupPassageId,groupId:t.groupId,groupName:t.group?t.group.groupName:"",gateCount:0}),a.groups.push({groupPassageId:t.groupPassageId,groupId:t.groupId,groupName:t.group?t.group.groupName:"",gateCount:0}),console.log("err: ",o),s.countGetDetailGroup++,r(!1)}))}))},importExelAllUser:function(e){var t=this;if(null!==e&&void 0!==e&&0!==e.length){var s=new FileReader;s.onload=function(){var e=s.result,r=a("1146"),o=r.read(e,{type:"array"});t.sheetUserName=o.SheetNames[0],t.sheetGroupName=o.SheetNames[1];var n=o.Sheets[t.sheetUserName],i=o.Sheets[t.sheetGroupName];if(t.isLoading=!1,t.showProcessImportExcel=!0,void 0!==n&&void 0!==i){var l=r.utils.sheet_to_json(n,{header:1}),c=r.utils.sheet_to_json(i,{header:1}),u=l[1],d=c[1],g=void 0===u[0];l.forEach((function(e){g&&void 0===e[0]&&e.splice(0,1);for(var t=0;t0)for(var I=0;I0&&t.groupGateArray.length>0)for(var w=1;w0?t.isHasLowerCaseCardNumberExcel?t.showProcessImportExcel=!1:t.UserSheetImportData.length>0?(t.percentProcess=100/t.totalDataRow,t.excuteRegisterUser().then((function(){t.groupGateArray.length>1?(t.percentProcessSheet2=100/t.totalDataRowSheet2,t.gateGrpImportExe()):t.isFinishImportExcel=!0}))):t.groupGateArray.length>0?t.gateGrpImportExe():t.isFinishImportExcel=!0:(t.isFinishImportExcel=!0,t.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。")}else t.isFinishImportExcel=!0,t.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"}else t.isFinishImportExcel=!0,t.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"},s.onerror=function(){t.isLoading=!1,t.errorMessageLogs="選択されているファイルの読み込みに失敗しました。
ブラウザの更新、もしくは別ファイルを選択してから
再度アップロードしたいファイルを選択してください。",t.isFinishImportExcel=!0,t.showProcessImportExcel=!0},s.readAsArrayBuffer(e)}else this.isLoading=!1,this.showProcessImportExcel=!0,this.errorMessageLogs="XLSXのファイルを選択してください。",this.isFinishImportExcel=!0},importExel:function(e){var t=this;if(null!==e&&void 0!==e&&0!==e.length){var s=new FileReader;s.onload=function(){var e=s.result,r=a("1146"),o=r.read(e,{type:"array"});t.sheetUserName=o.SheetNames[0];var n=o.Sheets[t.sheetUserName];if(t.isLoading=!1,t.showProcessImportExcel=!0,void 0!==n){var i=r.utils.sheet_to_json(n,{header:1}),l=i[1],c=18,u=!1;if(l.length===c){for(var d=2;d0?(t.percentProcess=100/t.totalDataRow,t.isHasLowerCaseCardNumberExcel=u,t.isHasLowerCaseCardNumberExcel?t.showProcessImportExcel=!1:t.excuteRegisterUser()):t.isFinishImportExcel=!0}else t.isFinishImportExcel=!0,t.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"}else t.isFinishImportExcel=!0,t.errorMessageLogs="不正なファイルです。正しいファイルを選択しなおしてください。"},s.onerror=function(){t.isLoading=!1,t.showProcessImportExcel=!0,t.errorMessageLogs="選択されているファイルの読み込みに失敗しました。
ブラウザの更新、もしくは別ファイルを選択してから
再度アップロードしたいファイルを選択してください。",t.isFinishImportExcel=!0},s.readAsArrayBuffer(e)}else this.isLoading=!1,this.showProcessImportExcel=!0,this.errorMessageLogs="XLSXのファイルを選択してください。",this.isFinishImportExcel=!0},excuteRegisterUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.closeDialogCheckCardExcel(),e.showProcessImportExcel=!0,console.log(" this.UserSheetImportData",e.UserSheetImportData),a=Object(rr["a"])(e.UserSheetImportData),t.prev=4,a.s();case 6:if((s=a.n()).done){t.next=65;break}if(r=s.value,0!==e.UserSheetImportData.length){t.next=10;break}return t.abrupt("break",65);case 10:if(console.log("item",r),o="",!(void 0===r[0]||r[0][0].length<4||r[0][0].length>96)){t.next=17;break}o=e.sheetUserName+"シート>>"+r[1]+" 行目>>入力したパラメーターが誤っています。入力内容をご確認ください。",e.$set(e.errorMessageExcel,e.rowinErrDialog++,o),t.next=62;break;case 17:return n=r[0][10+gP].replace(/\u200B/g,""),i=n.substring(1),l=r[0][9+gP],c="",u=e.convertStringToBoolean(l,!1),d=e.convertStringToBoolean(r[0][5],!1),g=e.convertStringToBoolean(r[0][6+gP],!1),p=e.convertStringToBoolean(r[0][7+gP],!1),m=e.convertStringToBoolean(r[0][8+gP],!0),f=!1,f=null!==r[0][4]&&""!==r[0][4]&&e.isSendEmail,console.log("excuteRegisterUser",r[0][0]),h={userId:r[0][0],name:r[0][2],furigana:r[0][3],email:r[0][4],isAdmin:d,isPhoneAdmin:g,shareKeyBeValid:p,isMfaSms:u,option1:r[0][11+gP],option2:r[0][12+gP],isSendEmail:f,isPasswordLoginValid:m},u&&(n.match(/^[0][0-9]{10}$/)&&(c="+81"+i),h.phoneNumber=c),r[0][1]&&(h.password=r[0][1]),t.next=34,e.userEditExel(h,r[1],r[0][6]);case 34:if(v=t.sent,2!==v){t.next=40;break}return""!==r[0][6]&&gP>0&&(h.departmentIds=[r[0][6]]),t.next=39,e.userAddExel(h,r[1]);case 39:v=t.sent;case 40:return t.next=42,e.pCodeAddExel(r[0][0],r[0][13+gP],r[0][14+gP],r[1]);case 42:if(b=t.sent,2!==b){t.next=47;break}return t.next=46,e.pCodeEditExel(r[0][0],r[0][14+gP],r[1]);case 46:b=t.sent;case 47:return t.next=49,e.pCodeAddExel(r[0][0],r[0][15+gP],r[0][16+gP],r[1]);case 49:if(y=t.sent,2!==y){t.next=54;break}return t.next=53,e.pCodeEditExel(r[0][0],r[0][16+gP],r[1]);case 53:y=t.sent;case 54:return t.next=56,e.pCodeAddExel(r[0][0],r[0][17+gP],r[0][18+gP],r[1]);case 56:if(I=t.sent,2!==I){t.next=61;break}return t.next=60,e.pCodeEditExel(r[0][0],r[0][18+gP],r[1]);case 60:I=t.sent;case 61:1===v&&1===b&&1===y&&1===I&&e.UserSheetImportData.length>0&&e.successItem++;case 62:e.UserSheetImportData.length>0&&(e.progress+=e.percentProcess);case 63:t.next=6;break;case 65:t.next=70;break;case 67:t.prev=67,t.t0=t["catch"](4),a.e(t.t0);case 70:return t.prev=70,a.f(),t.finish(70);case 73:case"end":return t.stop()}}),t,null,[[4,67,70,73]])})))()},gateGrpImportExe:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,s=new Map,r=1;case 3:if(!(r96)){t.next=23;break}p=a.sheetGroupName+"シート>>>>"+d+" 行目>>入力したパラメーターが誤っています。入力内容をご確認ください。",e.$set(e.errorMessageExcel,a.rowinErrDialog++,p),t.next=71;break;case 23:if(!0===s.has(u)){t.next=30;break}return console.log("call api to check user",u),t.next=27,e.checkUserValid(u);case 27:m=t.sent,console.log(u,"is valid",m),s.set(u,m);case 30:if(f=s.get(u),!f){t.next=68;break}if(void 0!==g&&""!==g){t.next=36;break}a.successItemSheet2++,t.next=66;break;case 36:if(1!==parseInt(g)&&0!==parseInt(g)){t.next=63;break}return t.next=39,e.getGroupPassageId(o,u);case 39:if(h=t.sent,!1!==h){t.next=52;break}if(1!==parseInt(g)){t.next=49;break}return console.log("Add "+u+" to "+o),t.next=45,e.addGroupPassage(o,u);case 45:v=t.sent,!0===v?a.successItemSheet2++:(console.log(u,a.rowinErrDialog),b=a.sheetGroupName+"シート>>"+d+" 行目>>"+o+">>"+u+">>"+v+"",e.$set(e.errorMessageExcel,a.rowinErrDialog++,b)),t.next=50;break;case 49:0===parseInt(g)&&a.successItemSheet2++;case 50:t.next=61;break;case 52:if(0!==parseInt(g)){t.next=60;break}return console.log("Delelte "+u+" from "+o),t.next=56,a.deleteGroupPassage(h);case 56:y=t.sent,!0===y?a.successItemSheet2++:(I=a.sheetGroupName+"シート>>"+d+" 行目>>"+o+">>"+u+">>"+y+"",e.$set(e.errorMessageExcel,a.rowinErrDialog++,I)),t.next=61;break;case 60:1===parseInt(g)&&a.successItemSheet2++;case 61:t.next=66;break;case 63:console.log("status is invalid"),x=a.sheetGroupName+"シート>>"+d+" 行目>>"+o+">>"+u+">>ステータス値が無効です",e.$set(e.errorMessageExcel,a.rowinErrDialog++,x);case 66:t.next=71;break;case 68:console.log("user is invalid",u),C=a.sheetGroupName+"シート>>"+d+" 行目>>"+u+">>ユーザーは存在しません。入力内容をご確認ください。",e.$set(e.errorMessageExcel,a.rowinErrDialog++,C);case 71:e.groupGateArray.length>0&&(e.progressSheet2+=e.percentProcessSheet2);case 72:t.next=11;break;case 74:t.next=79;break;case 76:t.prev=76,t.t0=t["catch"](9),i.e(t.t0);case 79:return t.prev=79,i.f(),t.finish(79);case 82:r++,t.next=3;break;case 85:e.isFinishImportExcel=!0;case 86:case"end":return t.stop()}}),t,null,[[9,76,79,82]])})))()},addGroupPassage:function(e,t){var a=this;return new Promise((function(s){a.$http.post(Z,{groupId:e,userId:t}).then((function(e){s(!0)}),(function(a){console.log(a);var r="";switch(a.status){case 401:r="The incoming token has expired"===a.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:r="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:r="アクセス情報が不正です。ログインし直してからやり直してください。";break;case 404:r="該当するデーターがありません。";break;case 409:console.log(Z+":"+e+" "+t+" failed"),r="通行権限が重複しています。";break;case 420:r="ユーザー登録数が上限に達しています。";break;case 500:r="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:r="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:r="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}s(r)}))}))},deleteGroupPassage:function(e){var t=this;return new Promise((function(a){t.$http.delete(Z+"/"+encodeURIComponent(e)).then((function(e){a(!0)}),(function(e){console.log(e);var t="";switch(e.status){case 403:t="通行権限グループ通行権限の削除権限がありません。";break;case 404:t="該当するデーターがありません。";break;case 500:t="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:t="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:t="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}a(t)}))}))},checkUserValid:function(e){var t=this;return new Promise((function(a){t.$http.get(T+"?userId="+encodeURIComponent(e)).then((function(e){a(!0)}),(function(e){console.log(e),a(!1)}))}))},getUserInfo:function(e){var t=this;return new Promise((function(a){t.$http.get(T+"?userId="+encodeURIComponent(e)).then((function(e){void 0!==e.data.users&&null!==e.data.users&&e.data.users.length>0?a(e.data.users[0]):a(null)}),(function(e){console.log(e),a(null)}))}))},getGroupPassageId:function(e,t){var a=this;return new Promise((function(s){a.$http.get(Z+"?groupId="+encodeURIComponent(e)+"&userId="+encodeURIComponent(t)).then((function(e){e.data.groupPassages.length>0&&s(e.data.groupPassages[0].groupPassageId),s("")}),(function(e){console.log(e),s(!1)}))}))},userEditExel:function(e,t,a){var s=this,r=this;return console.log("useruseruseruser",e),new Promise((function(o){s.$http.put(T+"/"+encodeURIComponent(encodeURIComponent(e.userId)),e).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(r),t.next=3,s.updateDepartmentId(a,e.userId);case 3:o(1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then(null,(function(a){console.log("err: ",a);var n="",i="";switch(a.status){case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageExcel,r.rowinErrDialog++,n);break;case 403:i="アクセス情報が不正です。ログインし直してからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageExcel,r.rowinErrDialog++,n);break;case 404:case 401:o(2);break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageExcel,r.rowinErrDialog++,n);break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageExcel,r.rowinErrDialog++,n);break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=r.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",s.$set(s.errorMessageExcel,r.rowinErrDialog++,n);break}o(0)}))}))},userAddExel:function(e,t){var a=this,s=this;return new Promise((function(r){a.$http.post(T,e).then((function(o){if("Success"===o.body.message)console.log(o),r(1);else{var n="",i="";i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"",a.$set(a.errorMessageExcel,s.rowinErrDialog++,n),r(0)}})).then(null,(function(o){console.log("err: ",o);var n="",i="";switch(o.status){case 401:i="The incoming token has expired"===o.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 403:i="アクセス情報が不正です。ログインし直してからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 409:i="入力されたユーザーIDは既に使用されています。他のユーザーIDを入力してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",n=s.sheetUserName+"シート>>"+t+" 行目>>"+e.userId+">>"+i+"";break}a.$set(a.errorMessageExcel,s.rowinErrDialog++,n),r(0)}))}))},pCodeAddExel:function(e,t,a,s){var r=this,o=this;return new Promise((function(n){if(""!==t&&""!==a){var i={userId:e,pCodeId:a,type:parseInt(t),isValid:!0};r.$http.post(Ot,i).then((function(e){console.log(e),n(1)})).then(null,(function(e){console.log("err: ",e);var t="",i="";switch(e.status){case 401:i="The incoming token has expired"===e.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageExcel,o.rowinErrDialog++,t);break;case 403:i="個人コードの追加権限がありません。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageExcel,o.rowinErrDialog++,t);break;case 404:i=aa,t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageExcel,o.rowinErrDialog++,t);break;case 409:n(2);break;case 420:r.errorMessageLogs="個人コード登録数が上限に達しています。";break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageExcel,o.rowinErrDialog++,t);break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageExcel,o.rowinErrDialog++,t);break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。",t=o.sheetUserName+"シート>>"+s+" 行目>>"+a+">>"+i+"",r.$set(r.errorMessageExcel,o.rowinErrDialog++,t);break}n(0)}))}else n(1)}))},pCodeEditExel:function(e,t,a){var s=this,r=this;return new Promise((function(o){var n={userId:e};s.$http.put(Ot+"/"+encodeURIComponent(t),n).then((function(e){console.log(e),o(1)})).then(null,(function(e){console.log("err: ",e);var n="",i="";switch(e.status){case 401:i="The incoming token has expired"===e.body.message?"":"アクセス情報が不正です。ログインし直してからやり直してください。";break;case 400:i="入力したパラメーターが誤っています。入力内容をご確認ください。";break;case 403:i="個人コードの編集権限がありません。";break;case 404:i=aa;break;case 500:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;case 503:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break;default:i="サーバーから応答がありませんでした。しばらく経ってからやり直してください。";break}n=r.sheetUserName+"シート>>"+a+" 行目>> 個人コード: "+t+">>"+i+"",s.$set(s.errorMessageExcel,r.rowinErrDialog++,n),o(0)}))}))},CancelProcessImportExcel:function(){this.resetAllValue()},closeModalProcessImportExcel:function(){this.resetAllValue()},resetAllValue:function(){(this.successItem>0||this.successItemSheet2>0)&&(this.isCountExcel=!0),this.isLoading=!1,this.progress=0,this.successItem=0,this.isFinishImportExcel=!1,this.totalDataRow=0,this.errorMessageExcel=[],this.rowinErrDialog=0,this.showProcessImportExcel=!1,this.errorMessageLogs="",this.UserSheetImportData=[],this.showModalConfirmEmail=!1,this.userInGroupMx=[],this.userIdArray=[],this.groupGateArray=[],this.successItemSheet2=0,this.totalDataRowSheet2=0,this.progressSheet2=0,gP=2},showDialogImport:function(e){this.isType="",this.showModalImport=!0,this.exportType=e.exportType,this.isType=e.type},closeImportCSV:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.showModalImport=!1,e.totalDataRowCSV=0,e.successItemCSV=0,e.importDataCSV=[],!0!==e.isCountCSV&&!0!==e.isCountExcel||(e.getList(),e.isCountCSV=!1,e.isCountExcel=!1);case 5:case"end":return t.stop()}}),t)})))()},getAllGroups:function(e){var t=this;this.$http.get(H+"?limit=1000&page="+e+"&sortKey=asc:name&isValid=true").then((function(a){a.body.maxRecords>0?(a.body.groups.forEach((function(e){t.groupToSearch.push({text:e.name,value:e.groupId})})),a.body.maxRecords>a.body.endRecord&&t.getAllGroups(e+1)):t.groupToSearch=[]})).then(null,(function(e){console.log(e)}))},getDepartment:function(e){var t=this;this.$http.get(Le+"?limit=1000&page="+e).then((function(a){a.body.departments.forEach((function(e){t.departments.push({text:e.name,value:e.departmentId}),t.departments.sort((function(e,t){return e.text.toLowerCase()a.body.endRecord&&(e++,t.getDepartment(e))})).then(null,(function(e){}))},searchUserGroup:function(e){this.currPage=1,null!==e?(this.groupIdToSearch=e.toString(),this.typeOfSearch=1,this.getUserByGroupId(e)):(this.typeOfSearch=0,this.getList())},searchDeparmentGroup:function(e){this.currPage=1,null!==e?(this.groupIdToSearch=e.toString(),this.typeOfSearch=1,this.getUserByDeparmentId(e)):(this.typeOfSearch=0,this.getList())},getUserByGroupId:function(e){var t=this;this.isGetDataList=!0,this.$http.get(q+"?groupId="+encodeURIComponent(e)+"&limit="+localStorage.pageSizeUserList+"&page="+this.currPage+"&sortKey=desc:userId&embed=user").then((function(e){t.users=[],e.body.maxRecords>0?(t.getListUserFull(e),console.log(t.users),t.maxRecord=e.body.maxRecords,t.currPage=Math.ceil(e.body.startRecord/t.perPage)):(t.isGetDataList=!1,t.maxRecord=0,t.currPage=1)})).then(null,(function(e){switch(console.log("err: ",e),t.isGetDataList=!1,t.users=[],e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},getListUserFull:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log("data",e),s=Object(rr["a"])(e.body.groupPassages),a.prev=2,s.s();case 4:if((r=s.n()).done){a.next=14;break}if(o=r.value,console.log("element",o),void 0===o.user||null===o.user){a.next=12;break}return a.next=10,t.getUser(o.user);case 10:n=a.sent,t.users.push(n);case 12:a.next=4;break;case 14:a.next=19;break;case 16:a.prev=16,a.t0=a["catch"](2),s.e(a.t0);case 19:return a.prev=19,s.f(),a.finish(19);case 22:t.isGetDataList=!1;case 23:case"end":return a.stop()}}),a,null,[[2,16,19,22]])})))()},getUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(T+"?userId="+encodeURIComponent(e.userId)).then((function(t){e.groupCount=t.body.users[0].groupCount,e.gateCount=t.body.users[0].gateCount,a(e)})).then(null,(function(t){console.log("err: ",t),a(e)}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},closeDialogCheckCardExcel:function(){this.isHasLowerCaseCardNumberExcel=!1},getDataForGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t,s=1,r=!0;case 3:if(!r){a.next=10;break}return a.next=6,t.getGroupExport(s,e);case 6:s++,r=s<=t.maxPageGroup,a.next=3;break;case 10:case"end":return a.stop()}}),a)})))()},getGroupExport:function(e,t){var a=this;return new Promise((function(s,r){a.$http.get(H+"?limit=1000&page="+e).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(r){var o,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=Object(rr["a"])(r.body.groups);try{for(o.s();!(n=o.n()).done;)i=n.value,a.exportGroupData.push({groupId:i.groupId,name:i.name})}catch(l){o.e(l)}finally{o.f()}if(!t){e.next=5;break}return e.next=5,Promise.all(r.body.groups.map((function(e){return a.getUserGroup(e.groupId)})));case 5:console.log(a.exportGroupData),r.body.maxRecords>0&&(a.maxPageGroup=Math.ceil(r.body.maxRecords/1e3)),s(!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){console.log("err: ",e),s(!1)}))}))},getDataForUserExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e,a=1,s=!0;case 3:if(!s){t.next=10;break}return t.next=6,e.getUserExportExcel(a);case 6:a++,s=a<=e.maxPageUser,t.next=3;break;case 10:case"end":return t.stop()}}),t)})))()},actionWait:function(e){return new Promise((function(t,a){setTimeout((function(){t(!0)}),e)}))},getUserExportExcel:function(e){var t=this,a=1e3;return new Promise((function(s,r){t.$http.get(T+"?limit="+a+"&page="+e+"&isExceptOptionalUser=true&exclude=thumbnail").then(function(){var r=Object(or["a"])(regeneratorRuntime.mark((function r(o){var n,i,l,c,u,d;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=0;case 1:if(!(n=0&&(t.exportUserData[s].departmentId=a.length>0&&""!==a[0].departmentId?a[0].departmentId:"",t.exportUserData[s].departmentName=a.length>0&&""!==a[0].departmentId?a[0].department.name:"")})),l.push(g);case 10:case"end":return s.stop()}}),s)})),c.s();case 8:if((u=c.n()).done){r.next=12;break}return r.delegateYield(d(),"t0",10);case 10:r.next=8;break;case 12:r.next=17;break;case 14:r.prev=14,r.t1=r["catch"](5),c.e(r.t1);case 17:return r.prev=17,c.f(),r.finish(17);case 20:return r.next=22,Promise.all(l);case 22:n+=20,r.next=1;break;case 25:o.body.maxRecords>0&&(t.maxPageUser=Math.ceil(o.body.maxRecords/a)),s(!0);case 27:case"end":return r.stop()}}),r,null,[[5,14,17,20]])})));return function(e){return r.apply(this,arguments)}}()).then(null,(function(e){s(!1)}))}))},getPcodeOneUser:function(e,t){var a=this;return new Promise((function(t,s){a.$http.get(j+"?limit=1000&page=1&sortKey=desc:registered&userId="+encodeURIComponent(e)).then((function(s){if(s.body.maxRecords>0&&s.body.pCodes){var r=a.exportUserData.findIndex((function(t){return t.userId===e}));r>=0&&(a.exportUserData[r].pCodes=s.body.pCodes.slice(0,3)),t(!0)}else t(!1)})).then(null,(function(e){t(!1)}))}))},getUserGroup:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Z+"?groupId="+encodeURIComponent(e)+"&limit=1000&page=1").then((function(e){if(e.body.maxRecords>0&&e.body.groupPassages){var s,r=Object(rr["a"])(e.body.groupPassages);try{for(r.s();!(s=r.n()).done;){var o=s.value,n={groupId:o.groupId,userId:o.userId};t.exportGroupPassages.push(n)}}catch(i){r.e(i)}finally{r.f()}setTimeout((function(){a(!0)}),300)}else setTimeout((function(){a(!1)}),300)})).then(null,(function(e){setTimeout((function(){a(!1)}),300)}))}))},clickCheckBoxExportUserInfoCSV:function(){this.isExportUserInfoCSV=!this.isExportUserInfoCSV},acceptDialogCheckCardExcel:function(){var e=this;this.UserSheetImportData.length>0?(this.percentProcess=100/this.totalDataRow,this.excuteRegisterUser().then((function(){e.groupGateArray.length>1?(e.percentProcessSheet2=100/e.totalDataRowSheet2,e.gateGrpImportExe()):e.isFinishImportExcel=!0}))):this.groupGateArray.length>0?this.gateGrpImportExe():this.isFinishImportExcel=!0},getGatePassage:function(e,t){var a=this;return new Promise((function(s,r){a.userId=e;var o=te+"?limit=100&page="+t+"&isExceptOptionalGate=true";a.$http.get(o).then(function(){var t=Object(or["a"])(regeneratorRuntime.mark((function t(r){var o,n,i,l,c,u,d,g,p,m,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a.ExpandedData[e].maxRecords=r.body.maxRecords,o=r.body.passages,n=[],i=0;case 4:if(!(i>"+r+"";t.$set(t.errorMessageProcess,++t.rowinErrDialog,o),a(!1)}))}))},getDepartmentUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Pe+"?userId=".concat(encodeURIComponent(e),"&embed=department")).then((function(e){a(e.body)})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))},getUserByDeparmentId:function(e){var t=this;this.isGetDataList=!0,this.errorMessageLogs="";var a=Pe+"?departmentId="+encodeURIComponent(e)+"&limit="+localStorage.pageSizeUserList+"&page="+this.currPage+"&sortKey=desc:userId&embed=user,department";"true"===localStorage.isVaildDataUser&&(a+="&isValidUser=true"),this.$http.get(a).then(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.users=[],!(a.body.maxRecords>0)){e.next=12;break}return a.body.relationsDepartmentUser.forEach((function(e){var a=e.user;a.company=e.department.name,a.departmentId=e.department.departmentId,t.users.push(a)})),s=a.body.relationsDepartmentUser.map(function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=a.user,s.company=a.department.name,s.departmentId=a.department.departmentId,e.next=5,t.getInFoUser(a.userId);case 5:return r=e.sent,r&&(s.gateCount=r.users[0].gateCount),e.abrupt("return",s);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=6,Promise.all(s);case 6:t.users=e.sent,t.isGetDataList=!1,t.maxRecord=a.body.maxRecords,t.currPage=Math.ceil(a.body.startRecord/t.perPage),e.next=16;break;case 12:t.users=[],t.maxRecord=0,t.currPage=1,t.isGetDataList=!1;case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(null,(function(e){switch(console.log("err: ",e),t.isGetDataList=!1,t.users=[],e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}}))},getInFoUser:function(e){var t=this;return new Promise((function(a,s){t.$http.get(T+"?userId="+encodeURIComponent(e)).then((function(e){a(e.body)})).then(null,(function(e){switch(e.status){case 400:t.errorMessageLogs=Qt;break;case 403:"Unauthorized"===e.message?t.errorMessageLogs=ta:t.errorMessageLogs=ia;break;case 404:t.errorMessageLogs=aa;break;case 500:t.errorMessageLogs=fa;break;case 503:t.errorMessageLogs=ha;break;default:t.errorMessageLogs=ba;break}t.loading=!1,a(!1)}))}))},getDepartmentAuthAll:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(s,r){t.$http.get(_e+"?userId="+e+"&limit=1000&page="+a).then(function(){var r=Object(or["a"])(regeneratorRuntime.mark((function r(o){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:o.body.departmentAdministrators.forEach((function(e){e.isAdminToEditUser&&t.dataAllow.push(e.departmentId)})),o.body.maxRecords>o.body.endRecord?(a++,t.getDepartmentAuthAll(e,a)):s(!0);case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).then(null,(function(e){s(!1)}))}))},updateDepartmentId:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r,o,n,i,l;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!(gP>0)){s.next=20;break}return s.next=3,a.getDepartmentUser(t);case 3:if(r=s.sent,o="",!r){s.next=18;break}if(n=r.relationsDepartmentUser[0],o=n.department.departmentId,i=n.relationId,e===o){s.next=16;break}return s.next=12,a.deleteDepartmentId(i);case 12:if(l=s.sent,!l){s.next=16;break}return s.next=16,a.addDepartmentId({departmentId:e,userId:t});case 16:s.next=20;break;case 18:return s.next=20,a.addDepartmentId({departmentId:e,userId:t});case 20:case"end":return s.stop()}}),s)})))()},deleteDepartmentId:function(e){var t=this;return new Promise((function(a,s){t.$http.delete(Pe+"/"+e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},addDepartmentId:function(e){var t=this;return new Promise((function(a,s){t.$http.post(Pe,e).then((function(e){a(!0)})).then(null,(function(e){a(!1)}))}))},loadTotal:function(e){var t=this.users.findIndex((function(t){return t.userId===e.ID}));t>=0&&(this.users[t].gateCount=e.total)},getListDepartment:function(e){this.departments=[],this.getDepartment(1)}}}),fP=mP,hP=Object(I["a"])(fP,K_,Y_,!1,null,null,null),vP=hP.exports,bP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("user-add-group-template",{attrs:{dataGroups:e.dataGroups,groupTotalCount:e.groupTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,showConfirm:e.showConfirm,isFinishProcess:e.isFinishProcess,groupOfUser:e.groupOfUser,progress:e.progress},on:{clickConfirm:function(t){return e.clickConfirm(t)},closeDialogConfirm:function(t){return e.closeDialogConfirm(t)},changePerPage:function(t){return e.changePerPage(t)},clickAddGroup:function(t){return e.clickAddGroup(t)},clickEditGroup:function(t){return e.clickEditGroup(t)},clickDelete:function(t){return e.clickDelete(t)},changePage:function(t){return e.changePage(t)},"search-group":function(t){return e.searchGroup(t)},changeExpanded:function(t){return e.changeExpanded(t)},closeModalProgress:function(t){return e.closeModalProgress()}}})},yP=[],IP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-list-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-round",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.clickBackUser()}}},[e._v("\n 戻る\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirm")}}},[e._v("\n 関連付け追加\n ")])],1)],1),e._v(" "),a("user-group-list-table",{attrs:{groupTotalCount:e.groupTotalCount,dataGroups:e.dataGroups,page:e.page,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,groupOfUser:e.groupOfUser},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-groups":function(t){e.selectedGroupIds=t}}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),0===e.selectedGroupIds.length?a("v-card-text",{staticClass:"pa-4 bg-error font-weight-bold"},[a("p",[e._v("少なくても通行権限グループを一つ選んでください。")])]):a("v-card-text",{staticClass:"pa-4"},[a("p",[e._v("チェックした通行権限グループを追加しますか?")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeDialogConfirm")}}},[e.selectedGroupIds.length>0?a("span",[e._v("キャンセル")]):a("span",[e._v("OK")])]),e._v(" "),e.selectedGroupIds.length>0?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickAddGroup",e.selectedGroupIds)}}},[e._v("OK")]):e._e()],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e._v("OK")])],1)],1):e._e()],1)],1)],1)],1)},xP=[],CP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-table"},[a("v-container",[!1===e.loading?a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1):e._e()],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2 mr-2 mt-5",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.groupTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,loading:e.loading,items:e.getDataGroups,"items-per-page":e.perPage,"item-key":"groupId","no-data-text":"データーはありません","hide-default-footer":"","show-select":!0},on:{"update:options":function(t){return e.$emit("change-sort",t)},"item-expanded":function(t){return e.$emit("change-expanded",t)}},scopedSlots:e._u([{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[t.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:t.disable,disabled:t.disable,ripple:!1},on:{input:function(e){return r(e)}}}):a("v-simple-checkbox",{attrs:{value:s,readonly:t.disabled,disabled:t.disabled,ripple:!1},on:{input:function(e){return r(e)}}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.groupTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.groupTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},wP=[],kP=f["a"].extend({name:"UserGroupListTable",components:{Searchbox:$r,ShowPerPage:mo,SuccessButton:kr,Pagination:xo,DisplayOption:Mo,GroupDetailForm:ly,SelectPerPage:To},props:{groupTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataGroups:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},userList:{default:function(){return[]}},groupOfUser:{default:[]},dataTimes:{type:Array,default:function(){return[]}}},data:function(){return{searchTargetItems:[{label:"通行権限グループ名",value:"groupName"}],getDataGroups:[],selectedItem:[],selectedDisplayOption:["groupName","registered"],displayOptionItems:[{label:"通行権限グループ名",value:"groupName",isDisabled:!0}]}},computed:{headers:{get:function(){var e=[{text:"通行権限グループ名",align:"start",sortable:!0,value:"name"},{text:"通行権限グループID",align:"start",sortable:!0,value:"groupId"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},watch:{loading:function(){var e=this;this.getDataGroups=this.dataGroups,this.getDataGroups.map((function(e){return e.disable=!1})),this.dataGroups.forEach((function(t,a){var s=e.groupOfUser.some((function(e){var a=e.value;return a===t.groupId}));s&&(e.getDataGroups[a].disable=!0)})),this.selectedItem=[]},selectedItem:function(e){this.$emit("select-groups",e.map((function(e){return e.groupId})))},page:function(){this.selectedItem=[]}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeGroup",e),this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},searchGroup:function(e){this.keyword=e.text,this.scorp=e.targets,this.getListGroups()},getListGroups:function(){var e=this;return new Promise((function(t,a){var s=H+"?limit="+localStorage.pageSizeGroup+"&page="+e.currPage+"&keyword="+e.keyword+"&scorp="+e.scorp+"&sortKey="+localStorage.groupSortName+":"+localStorage.groupSortKey+"&isValid=true";e.$http.get(s).then((function(a){e.resetData(),e.isEmpty(a.body.groups)?(e.groupTotalCount=0,e.currPage=1):(e.dataGroups=a.body.groups,e.groupTotalCount=a.body.maxRecords,e.currPage=Math.ceil(a.body.startRecord/e.perPage)),t(!0)})).then(null,(function(a){switch(t(!0),a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}))},getGroupOfUser:function(e,t){var a=this;this.$http.get(Z+"?userId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&embed=group").then((function(s){s.body.maxRecords>0?(s.body.groupPassages.forEach((function(e){a.groupOfUser.push({text:e.group.groupName,value:e.groupId})})),s.body.maxRecords>s.body.endRecord?a.getGroupOfUser(e+1,t):a.loading=!1):(a.groupOfUser=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataGroups=[],this.errorMessageLogs=""}}}),RP=AP,TP=Object(I["a"])(RP,bP,yP,!1,null,null,null),EP=TP.exports,OP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("time-add-group-template",{attrs:{dataGroups:e.dataGroups,groupTotalCount:e.groupTotalCount,page:e.currPage,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,showConfirm:e.showConfirm,isFinishProcess:e.isFinishProcess,groupOfTime:e.groupOfTime,progress:e.progress},on:{clickConfirm:function(t){return e.clickConfirm(t)},closeDialogConfirm:function(t){return e.closeDialogConfirm(t)},changePerPage:function(t){return e.changePerPage(t)},clickAddGroup:function(t){return e.clickAddGroup(t)},changePage:function(t){return e.changePage(t)},closeModalProgress:function(t){return e.closeModalProgress()}}})},VP=[],UP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-group-list-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-round",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.clickBack()}}},[e._v("\n 戻る\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickConfirm")}}},[e._v("\n 関連付け追加\n ")])],1)],1),e._v(" "),a("user-group-list-table",{attrs:{groupTotalCount:e.groupTotalCount,dataGroups:e.dataGroups,page:e.page,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,groupOfUser:e.groupOfTime},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-groups":function(t){e.selectedGroupIds=t}}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showConfirm,callback:function(t){e.showConfirm=t},expression:"showConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),0===e.selectedGroupIds.length?a("v-card-text",{staticClass:"pa-4 bg-error font-weight-bold"},[a("p",[e._v("少なくても通行権限グループを一つ選んでください。")])]):a("v-card-text",{staticClass:"pa-4"},[a("p",[e._v("チェックした通行権限グループを追加しますか?")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeDialogConfirm")}}},[e.selectedGroupIds.length>0?a("span",[e._v("キャンセル")]):a("span",[e._v("OK")])]),e._v(" "),e.selectedGroupIds.length>0?a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("clickAddGroup",e.selectedGroupIds)}}},[e._v("OK")]):e._e()],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("通行権限グループの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{staticStyle:{"pointer-events":"none"},attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("closeModalProgress")}}},[e._v("OK")])],1)],1):e._e()],1)],1)],1)],1)},$P=[],NP=f["a"].extend({name:"GroupListTemplate",components:{Searchbox:$r,SuccessButton:kr,UserGroupListTable:PP,Breadcrumbs:cn},props:{groupTotalCount:{type:Number,default:0},page:{type:Number,default:1},showProgress:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!1},perPage:{type:Number,default:25},totalDataRowProcess:{type:Number,default:0},progress:{type:Number,default:0},errorMessageProcess:{default:[]},successItemProcess:{type:Number,default:0},disablePagination:{type:Boolean,default:!1},isFinishProcess:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},dataGroups:{type:Array,default:function(){return[]}},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},groupOfTime:{default:[]}},computed:{breadcrumbs:{get:function(){return[{text:"通行権限グループ",disabled:!0}]}}},methods:{clickBack:function(){this.$router.push({path:Qe})}},data:function(){return{selectedGroupIds:[]}},watch:{page:function(){this.selectedGroupIds=[]}}}),FP=NP,jP=Object(I["a"])(FP,UP,$P,!1,null,null,null),BP=jP.exports;C()(jP,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDialog:hn["a"],VDivider:Pn["a"],VProgressLinear:Mn["a"],VRow:Kr["a"]});var zP=nr["a"].extend({name:"TimeAddGroupPage",components:{TimeAddGroupTemplate:BP},data:function(){return{perPage:Wt,currPage:1,scorp:["groupId"],keyword:"",groupTotalCount:0,dataGroups:[],loading:!1,errorMessageLogs:"",successMessageLogs:"",isFinishGetUser:!1,isFinishGetGate:!1,rowinErrDialog:0,errorMessageProcess:[],successItemProcess:0,totalDataRowProcess:0,showProgress:!1,isFinishProcess:!1,progress:0,showConfirm:!1,groupOfTime:[]}},created:function(){var e=this;"undefined"===typeof localStorage.groupSortKey&&localStorage.setItem("groupSortKey","registered"),"undefined"===typeof localStorage.groupSortName&&localStorage.setItem("groupSortName","desc"),"undefined"===typeof localStorage.pageSizeGroup?(localStorage.setItem("pageSizeGroup",Wt.toString()),this.perPage=Wt):this.perPage=parseInt(localStorage.pageSizeGroup);var t=this.$route.query;this.loading=!0,this.groupOfTime=[],this.getListGroups().then((function(){e.getGroupOfTime(1,t.passableTimeSettingId)}))},watch:{isFinishGetUser:function(e){this.isFinishGetGate&&e&&(this.loading=!1)},isFinishGetGate:function(e){this.isFinishGetUser&&e&&(this.loading=!1)}},methods:{closeModalProgress:function(){this.showProgress=!1,this.rowinErrDialog=0,this.successItemProcess=0,this.progress=0,this.loading=!0;var e=this.$route.query;this.getGroupOfTime(1,e.passableTimeSettingId)},closeDialogConfirm:function(){this.showConfirm=!1,this.rowinErrDialog=0,this.successItemProcess=0,this.progress=0,this.showProgress=!1,this.totalDataRowProcess=0},clickConfirm:function(){this.showConfirm=!0,this.rowinErrDialog=0,this.successItemProcess=0,this.progress=0,this.showProgress=!1,this.totalDataRowProcess=0},clickAddGroup:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.showConfirm=!1,t.rowinErrDialog=0,t.successItemProcess=0,t.progress=0,t.showProgress=!0,t.totalDataRowProcess=e.length,s=100/t.totalDataRowProcess,r=t.$route.query,void 0===r.passableTimeSettingId||""===r.passableTimeSettingId||null===r.passableTimeSettingId){a.next=32;break}o=Object(rr["a"])(e),a.prev=10,o.s();case 12:if((n=o.n()).done){a.next=23;break}return i=n.value,l=void 0,c={passableTimeSettingId:r.passableTimeSettingId},a.next=18,t.postGroup(c,i);case 18:l=a.sent,l&&t.successItemProcess++,t.progress+=s;case 21:a.next=12;break;case 23:a.next=28;break;case 25:a.prev=25,a.t0=a["catch"](10),o.e(a.t0);case 28:return a.prev=28,o.f(),a.finish(28);case 31:t.isFinishProcess=!0;case 32:case"end":return a.stop()}}),a,null,[[10,25,28,31]])})))()},postGroup:function(e,t){var a=this;return new Promise((function(s,r){a.$http.put(H+"/"+encodeURIComponent(t),e).then((function(e){"Success"===e.body.message?s(!0):s(!1)})).then(null,(function(e){var r="";switch(e.status){case 400:r=Qt;break;case 403:r="Unauthorized"===e.message?ta:ia;break;case 404:r=aa;break;case 409:r="選択されたゲートは既に使用されています。他のゲートを選択してください。";break;case 500:r=fa;break;case 503:r=ha;break;default:r=ba;break}var o=t+">>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeGroup",e),this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.loading=!0,this.getListGroups().then((function(){t.loading=!1}))},getListGroups:function(){var e=this;return new Promise((function(t,a){var s=H+"?limit="+localStorage.pageSizeGroup+"&page="+e.currPage+"&keyword="+e.keyword+"&scorp="+e.scorp+"&sortKey="+localStorage.groupSortName+":"+localStorage.groupSortKey+"&isValid=true";e.$http.get(s).then((function(a){e.resetData(),e.isEmpty(a.body.groups)?(e.groupTotalCount=0,e.currPage=1):(e.dataGroups=a.body.groups,e.groupTotalCount=a.body.maxRecords,e.currPage=Math.ceil(a.body.startRecord/e.perPage)),t(!0)})).then(null,(function(a){switch(t(!0),a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}))},getGroupOfTime:function(e,t){var a=this;this.$http.get(H+"?passableTimeSettingId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&isValid=true").then((function(s){s.body.maxRecords>0?(s.body.groups.forEach((function(e){a.groupOfTime.push({text:e.name,value:e.groupId})})),s.body.maxRecords>s.body.endRecord?a.getGroupOfTime(e+1,t):a.loading=!1):(a.groupOfTime=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataGroups=[],this.errorMessageLogs=""}}}),HP=zP,KP=Object(I["a"])(HP,OP,VP,!1,null,null,null),YP=KP.exports,qP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("user-gate-add-group-template",{attrs:{dataGates:e.dataGates,gateTotalCount:e.gateTotalCount,page:e.currPage,perPage:e.perPage,goBack:e.goBack,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,errorMessageProcess:e.errorMessageProcess,successItemProcess:e.successItemProcess,totalDataRowProcess:e.totalDataRowProcess,showProgress:e.showProgress,isFinishProcess:e.isFinishProcess,showConfirm:e.showConfirm,gateOfGroup:e.gateOfGroup,progress:e.progress},on:{changePerPage:function(t){return e.changePerPage(t)},clickAddGate:function(t){return e.clickAddGate(t)},clickDelete:function(t){return e.clickDelete(t)},changePage:function(t){return e.changePage(t)},clickConfirm:function(t){return e.clickConfirm(t)},closeModalProgress:function(t){return e.closeModalProgress()},closeDialogConfirm:function(t){return e.closeModalProgress()},closeDialog:function(t){return e.closeDialog()}}})},WP=[],JP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-list-template"},[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[a("v-row",{staticClass:"btn-round",attrs:{justify:"end"}},[a("v-col",{staticClass:"btn-add pt-0"},[a("v-btn",{staticClass:"btn-secondary float-left",attrs:{outlined:""},on:{click:function(t){return e.clickBackGate(e.goBack)}}},[e._v("\n 戻る\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:0===e.selectedGateIds.length},on:{click:function(t){return e.$emit("clickConfirm",e.selectedGateIds)}}},[e._v("\n 関連付け追加\n ")])],1)],1),e._v(" "),a("gate-group-list-table",{attrs:{gateTotalCount:e.gateTotalCount,dataGates:e.dataGates,page:e.page,perPage:e.perPage,loading:e.loading,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,gateOfGroup:e.gateOfGroup},on:{"change-per-page":function(t){return e.$emit("changePerPage",t)},"change-page":function(t){return e.$emit("changePage",t)},"select-gates":function(t){e.selectedGateIds=t}}}),e._v(" "),a("Modal",{attrs:{title:"ゲートの関連付けを追加",text:0===e.selectedGateIds.length?"少なくてもゲートを一つ選んでください。":"チェックしたゲートを追加しますか?",smallScreen:"600",className:"common-modal"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),e.selectedGateIds.length>0?a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){return e.$emit("closeDialog")}}}):a("cancel-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeDialog")}}}),e._v(" "),e.selectedGateIds.length>0?a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("clickAddGate",e.selectedGateIds)}}}):e._e()]},proxy:!0}]),model:{value:e.showValid,callback:function(t){e.showValid=t},expression:"showValid"}}),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.showProgress,callback:function(t){e.showProgress=t},expression:"showProgress"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v("ゲートの関連付けを追加")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),e.totalDataRowProcess>0?a("v-card-text",{staticClass:"pa-4"},[a("v-progress-linear",{attrs:{height:"25",color:"green darken-1",striped:""},model:{value:e.progress,callback:function(t){e.progress=t},expression:"progress"}},[a("strong",[e._v(e._s(Math.round(e.progress))+"%")])]),e._v(" "),e.successItemProcess>0?a("span",{staticClass:"success-label"},[e._v(e._s(e.totalDataRowProcess)+"件中"+e._s(e.successItemProcess)+"件を追加しました。")]):e._e(),e._v(" "),e.errorMessageProcess.length>0?a("div",[a("span",{staticClass:"error-box-title"},[e._v("追加失敗")]),e._v(" "),a("div",{staticClass:"error-box"},[e._l(e.errorMessageProcess,(function(t){return[a("p",{key:t,domProps:{innerHTML:e._s(t)}})]}))],2)]):e._e()],1):e._e(),e._v(" "),e.isFinishProcess?a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("success-button",{attrs:{text:"OK"},on:{click:function(t){return e.$emit("closeModalProgress")}}})],1)],1):e._e()],1)],1)],1)],1)},ZP=[],XP=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-user-table"},[a("v-container",[!1===e.loading?a("v-row",[""!==e.successMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-success"},[e._v("\n "+e._s(e.successMessageLogs)+"\n ")]):e._e(),e._v(" "),""!==e.errorMessageLogs?a("v-col",{staticClass:"mt-5 mb-4 font-weight-bold mt-1 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e()],1):e._e()],1),e._v(" "),a("v-row",{attrs:{"align-content":"center","no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("show-per-page",{staticClass:"ml-4 mb-2 mr-2 mt-5",attrs:{"per-page":e.perPage,page:e.page,"items-length":e.gateTotalCount}})],1),e._v(" "),a("v-data-table",{staticClass:"border-table",attrs:{"must-sort":"","custom-sort":e.customSort,headers:e.headers,loading:e.loading,items:e.getDataGates,"items-per-page":e.perPage,"item-key":"gateId","no-data-text":"データーはありません","loading-text":"データを読み込中です","hide-default-footer":"","show-select":!0},scopedSlots:e._u([{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[t.disable?a("v-simple-checkbox",{attrs:{value:!0,readonly:t.disable,disabled:t.disable,ripple:!1},on:{input:function(e){return r(e)}}}):a("v-simple-checkbox",{attrs:{value:s,readonly:t.disabled,disabled:t.disabled,ripple:!1},on:{input:function(e){return r(e)}}})]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.gateTotalCount,disabled:e.loading},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.gateTotalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)},QP=[],eM=(new Date,f["a"].extend({name:"GateGateListTable",components:{Searchbox:$r,ShowPerPage:mo,SuccessButton:kr,Pagination:xo,DisplayOption:Mo,SelectPerPage:To},props:{userTotalCount:{type:Number,default:0},gateTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},disablePagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},successMessageLogs:{type:String,default:""},errorMessageLogs:{type:String,default:""},dataGates:{type:Array,default:function(){return[]}},gateList:{default:function(){return[]}},gateOfGroup:{default:function(){return[]}},dataTimes:{type:Array,default:function(){return[]}}},data:function(){return{searchTargetItems:[{label:"ゲート名",value:"name"}],selectedItem:[],getDataGates:[],selectedDisplayOption:["name","registered"],displayOptionItems:[{label:"ゲート名",value:"name",isDisabled:!0}]}},computed:{headers:{get:function(){var e=[{text:"ゲート名",align:"start",sortable:!0,value:"gateName"},{text:"ゲートID",align:"start",sortable:!0,value:"gateId"}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},watch:{selectedItem:function(e){this.$emit("select-gates",e.map((function(e){return e})))},loading:function(){var e=this;this.getDataGates=this.dataGates,this.getDataGates.map((function(e){return e.disable=!1})),this.dataGates.forEach((function(t,a){var s=e.gateOfGroup.some((function(e){var a=e.value;return a===t.gateId}));s&&(e.getDataGates[a].disable=!0)})),this.selectedItem=[]}},methods:{customSort:function(e,t,a){return t&&t.length&&a&&a.length?(e.sort((function(e,s){return a[0]?s[t]>"+r+"";a.$set(a.errorMessageProcess,++a.rowinErrDialog,o),s(!1)}))}))},changePerPage:function(e){var t=this;this.perPage=e,localStorage.setItem("pageSizeGate",e),this.loading=!0,this.gateTotalCount=0,this.getList().then((function(){t.loading=!1}))},changePage:function(e){var t=this;this.currPage=e,this.loading=!0,this.getList().then((function(){t.loading=!1}))},searchGate:function(e){this.keyword=e.text,this.scorp=e.targets,this.gateTotalCount=0,this.getList()},getGateOfGroup:function(e,t){var a=this;this.$http.get(Y+"?groupId="+encodeURIComponent(t)+"&limit=1000&page="+e+"&embed=gate&isExceptOptionalGate=true").then((function(s){s.body.maxRecords>0?(s.body.relationsGateGroup.forEach((function(e){a.gateOfGroup.push({text:e.gate.name,value:e.gateId})})),s.body.maxRecords>s.body.endRecord?a.getGateOfGroup(e+1,t):a.loading=!1):(a.gateOfGroup=[],a.loading=!1)})).then(null,(function(e){console.log("err: ",e),a.loading=!1}))},getList:function(){var e=this;return new Promise((function(t,a){var s=te+"?limit="+localStorage.pageSizeGate+"&page="+e.currPage+"&isValid=true&isExceptOptionalGate=true";e.$http.get(s).then((function(a){e.resetData(),e.isEmpty(a.body.gates)?(e.gateTotalCount=0,e.currPage=1):(e.dataGates=a.body.gates,e.gateTotalCount=a.body.maxRecords,e.currPage=Math.ceil(a.body.startRecord/e.perPage)),t(!0)})).then(null,(function(a){switch(t(!0),a.status){case 400:e.errorMessageLogs=Qt;break;case 403:"Unauthorized"===a.message?e.errorMessageLogs=ta:e.errorMessageLogs=ia;break;case 404:e.errorMessageLogs=aa;break;case 500:e.errorMessageLogs=fa;break;case 503:e.errorMessageLogs=ha;break;default:e.errorMessageLogs=ba;break}}))}))},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},resetData:function(){this.dataGates=[],this.errorMessageLogs=""},formatTimestamp:function(e){return""!==e?jo()(e).unix():""}}}),cM=lM,uM=Object(I["a"])(cM,qP,WP,!1,null,null,null),dM=uM.exports,gM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-management-page"},[a("in-room-template",{attrs:{loading:e.roomsLoading,"success-messages":e.successMessages,"error-messages":e.errorMessages,tab:e.currentTab,rooms:e.allRooms,"room-loading":e.roomLoading,room:e.room,"room-success-messages":e.roomSuccessMessages,"room-error-messages":e.roomErrorMessages,"in-room-user-loading":e.inRoomUserLoading,"in-room-users":e.inRoomUsers,"in-room-user-total-count":e.inRoomUserTotalCount,"in-room-user-page":e.inRoomUserPage,"in-room-user-per-page":e.inRoomUserPerPage,"in-room-user-search-value":e.inRoomUserSearchValue,"room-room-log-loading":e.roomRoomLogLoading,"room-room-logs":e.roomRoomLogs,"room-room-log-total-count":e.roomRoomLogTotalCount,"room-room-log-page":e.roomRoomLogPage,"room-room-log-per-page":e.roomRoomLogPerPage,"room-room-log-date":e.roomRoomLogDate,"room-room-log-search-value":e.roomRoomLogSearchValue,"room-room-log-progress-message":e.roomRoomLogProgressMessage,"room-room-log-progress-error-message":e.roomRoomLogProgressErrorMessage,"user-room-log-loading":e.userRoomLogLoading,user:e.user,"user-room-logs":e.userRoomLogs,"user-room-log-date":e.userRoomLogDate,"user-room-log-progress-message":e.userRoomLogProgressMessage,"user-room-log-progress-error-message":e.userRoomLogProgressErrorMessage,"user-room-log-success-messages":e.userRoomLogSuccessMessages,"user-room-log-error-messages":e.userRoomLogErrorMessages,"room-form-loading":e.roomFormLoading,"room-form-success-messages":e.roomFormSuccessMessages,"room-form-error-messages":e.roomFormErrorMessages,"all-gates":e.allControllerGates,tabItemsUI:e.tabItems,userFullList:e.userFullList,"in-all-room":e.inAllRoom,"room-info":e.roomInfo,"in-all-room-loading":e.inAllRoomLoading,"in-all-room-search-value":e.inAllRoomSearchValue,"room-total-count":e.roomTotalCount,authority:e.authority,page:e.currentPage,"room-info-loading":e.roomInfoLoading,isLookRoomModalShow:e.isLookRoomModalShow,isAllRoomModalShow:e.isAllRoomModalShow},on:{"input-tab":function(t){e.currentTab=t},"click-room":e.clickRoom,"start-create-room":e.startCreateRoom,"start-edit-room":e.startEditRoom,"click-tab":e.clickTab,"click-in-room-user":e.clickInRoomUser,"change-in-room-user-sort":e.changeInRoomUserSort,"change-in-room-user-page":e.changeInRoomUserPage,"search-in-room-user":e.searchInRoomUser,"input-in-room-user-search-value":function(t){e.inRoomUserSearchValue=t},"reload-in-room-user":e.reloadInRoomUser,"input-room-room-log-date":e.inputRoomRoomLogDate,"change-room-room-log-page":e.changeRoomRoomLogPage,"search-room-room-log":e.searchRoomRoomLog,"input-room-room-log-search-value":function(t){e.roomRoomLogSearchValue=t},"reload-room-room-log":e.reloadRoomRoomLog,"click-export-room-room-log-excel":e.exportRoomRoomLogExcel,"input-user-room-log-date":e.inputUserRoomLogDate,"reload-user-room-log":e.reloadUserRoomLog,"click-export-user-room-log-excel":e.exportUserRoomLogExcel,"delete-room":e.deleteRoom,"create-room":e.createRoom,"update-room":e.updateRoom,clicklookroom:e.clicklookroom,ChangeProperty:e.ChangeProperty,clicAllRoom:e.clicAllRoom,"close-look-room":e.closeLookRoom,"close-all-room":e.closeAllRoom,"load-in-all-room":e.loadInAllRoom,"input-in-all-room-search-value":function(t){e.inAllRoomSearchValue=t},"search-in-all-room":e.searchInAllRoom,"change-page":function(t){return e.changePage(t)},"load-room-by-id":e.loadRoomById,"loading-from-child":function(t){return e.$emit("loading",t)}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},pM=[],mM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-template"},[a("breadcrumbs",{staticClass:"mb-0",attrs:{items:e.breadcrumbs}}),e._v(" "),a("div",{staticClass:"white"},["in-room-user-timeline"===e.tabItemsUI[0].value?a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"end"}},[a("v-col",{attrs:{xl:"8",sm:"6"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",{attrs:{cols:"12"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",{attrs:{xl:"2",md:"3",sm:"4"}},[a("div",{staticClass:"v-subheader theme--light"},[e._v(" ユーザー ")])]),e._v(" "),a("v-col",{staticClass:"mt-0",attrs:{xl:"10",md:"9",sm:"8"}},[a("v-combobox",{attrs:{items:e.isMap()?e.userFullList:null!==e.innerUser?[e.innerUser]:[],"item-text":"name","item-value":"userId","single-line":"",color:"green","hide-details":"auto","no-data-text":"",outlined:"",dense:"",readonly:!e.isMap(),disabled:0===e.userFullList.length||null===e.innerUser,"search-input":e.inputSearch,"menu-props":{contentClass:"v-select-item "},attach:!0},on:{change:function(t){return e.changeInnerUser(t)},"update:searchInput":function(t){e.inputSearch=t},"update:search-input":function(t){e.inputSearch=t}},model:{value:e.innerUser,callback:function(t){e.innerUser=t},expression:"innerUser"}})],1)],1)],1)])],1)],1)]),e._v(" "),a("v-col",[void 0!==e.innerUser&&null!==e.innerUser&&void 0!==e.innerUser.userId&&""!==e.innerUser.userId&&null!==e.innerUser.userId?a("text-link",{staticClass:"item-user-name ml-5",attrs:{text:"ユーザー情報を見る"},on:{click:function(t){e.isShowUserDetail=!0,e.userId="",e.isReload=!1}}}):a("text-link",{staticClass:"item-user-name ml-5",attrs:{text:"ユーザー情報を見る"}})],1)],1)],1):a("div",{staticClass:"round-action"},[a("v-row",{staticClass:"btn-div",attrs:{justify:"start"}},[a("v-col",{attrs:{xl:"8",sm:"6"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",{attrs:{cols:"12"}},[a("div",{staticClass:"area-search-box"},[a("v-row",{attrs:{"no-gutters":""}},[a("v-col",{staticClass:"pr-0 title-small",attrs:{xl:"1",sm:"3"}},[a("div",{staticClass:"v-subheader theme--light pr-0"},[e._v(" 部屋 ")])]),e._v(" "),a("v-col",{staticClass:"mt-0",attrs:{xl:"11",sm:"9"}},[a("v-select",{attrs:{items:e.rooms,"item-text":"name","item-value":"roomId","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"",disabled:0===e.rooms.length,"menu-props":{contentClass:"v-select-item "},isAttach:!0},model:{value:e.innerRoomTab,callback:function(t){e.innerRoomTab=t},expression:"innerRoomTab"}})],1)],1)],1)]),e._v(" "),a("v-col",[a("div",{staticClass:"bottom-button pb-2 text-center"})])],1)],1)]),e._v(" "),a("v-col",{staticClass:"text-right",attrs:{xl:"4",sm:"6"}},[e.rooms.length>0?a("text-link",{staticClass:"item-user-name decoration-link",attrs:{text:"部屋情報を見る"},on:{click:function(t){return e.$emit("clicklookroom",e.room)}}}):a("span",{staticClass:"item-user-name grey",attrs:{color:"grey"}},[e._v("部屋情報を見る\n ")]),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToViewGroup?a("text-link",{staticClass:"item-user-name ml-10 decoration-link mr-2",attrs:{text:"全ての部屋を見る "},on:{click:function(t){return e.$emit("clicAllRoom")}}}):e._e()],1)],1)],1)]),e._v(" "),a("v-container",[a("div",{staticClass:"main-content white rounded-lg pa-4"},["room"!==e.isPage?a("loading",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}]}):e._e(),e._v(" "),a("div",{staticClass:" pl-4 "},[e.isLookRoomModalShow||e.isAllRoomModalShow||e.isShowUserDetail?e._e():a("div",[e._l(e.successMessages,(function(t,s){return a("alert",{key:s,attrs:{type:"success",text:t,dismissible:!1},model:{value:e.showSuccessMessages[s],callback:function(t){e.$set(e.showSuccessMessages,s,t)},expression:"showSuccessMessages[index]"}})})),e._v(" "),e._l(e.errorMessages,(function(e){return a("alert",{key:e,attrs:{value:""!==e,type:"error",text:e}})}))],2),e._v(" "),a("in-room-detail",{attrs:{loading:e.roomLoading,tab:e.innerTab,"success-messages":e.roomSuccessMessages,"error-messages":e.roomErrorMessages,room:e.room,"in-room-user-loading":e.inRoomUserLoading,"in-room-users":e.inRoomUsers,"in-room-user-total-count":e.inRoomUserTotalCount,"in-room-user-page":e.inRoomUserPage,"in-room-user-per-page":e.inRoomUserPerPage,"in-room-user-search-value":e.innerInRoomUserSearchValue,"room-room-log-loading":e.roomRoomLogLoading,"room-room-logs":e.roomRoomLogs,"room-room-log-total-count":e.roomRoomLogTotalCount,"room-room-log-page":e.roomRoomLogPage,"room-room-log-per-page":e.roomRoomLogPerPage,"room-room-log-date":e.innerRoomRoomLogDate,"room-room-log-search-value":e.innerRoomRoomLogSearchValue,"room-room-log-progress-message":e.roomRoomLogProgressMessage,"room-room-log-progress-error-message":e.roomRoomLogProgressErrorMessage,"user-room-log-loading":e.userRoomLogLoading,user:e.user,"user-room-logs":e.userRoomLogs,"user-room-log-date":e.innerUserRoomLogDate,"user-room-log-progress-message":e.userRoomLogProgressMessage,"user-room-log-progress-error-message":e.userRoomLogProgressErrorMessage,"user-room-log-success-messages":e.userRoomLogSuccessMessages,"user-room-log-error-messages":e.userRoomLogErrorMessages,tabItemsUI:e.tabItemsUI,userFullList:e.userFullList},on:{"click-edit-room":e.clickEditRoom,"click-delete-room":function(t){return e.$emit("delete-room",t)},"input-tab":function(t){e.innerTab=t},"click-tab":function(t){return e.$emit("click-tab",t)},"click-in-room-user":function(t){return e.clickInRoomUser(t)},"change-in-room-user-sort":function(t){return e.$emit("change-in-room-user-sort",t)},"change-in-room-user-page":function(t){return e.$emit("change-in-room-user-page",t)},"search-in-room-user":function(t){return e.$emit("search-in-room-user",t)},"input-in-room-user-search-value":function(t){e.innerInRoomUserSearchValue=t},"reload-in-room-user":function(t){return e.$emit("reload-in-room-user",t)},"input-room-room-log-date":function(t){return e.$emit("input-room-room-log-date",t)},"change-room-room-log-page":function(t){return e.$emit("change-room-room-log-page",t)},"search-room-room-log":function(t){return e.$emit("search-room-room-log",t)},"input-room-room-log-search-value":function(t){e.innerRoomRoomLogSearchValue=t},"reload-room-room-log":function(t){return e.$emit("reload-room-room-log",t)},"click-export-room-room-log-excel":function(t){return e.$emit("click-export-room-room-log-excel",t)},"input-user-room-log-date":function(t){return e.$emit("input-user-room-log-date",t)},"reload-user-room-log":function(t){return e.$emit("reload-user-room-log",t)},"click-export-user-room-log-excel":function(t){return e.$emit("click-export-user-room-log-excel",t)}}})],1)],1)]),e._v(" "),a("modal",{attrs:{title:e.isRoomEdit?"部屋情報を編集してください":"新しい部屋情報を入力してください","no-footer":"",smallScreen:"800px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.showRoomFormModal?a("room-form",{staticClass:"mt-4 mb-0",attrs:{loading:e.roomFormLoading,"success-messages":e.roomFormSuccessMessages,"error-messages":e.roomFormErrorMessages,"is-edit":e.isRoomEdit,"all-gates":e.allGates,room:e.roomEdit},on:{"update-room":function(t){e.$emit("update-room",e.innerValue),"room"!==e.isPage&&(e.showRoomFormModal=!1)},"create-room":function(t){e.$emit("create-room",e.innerValue),"room"!==e.isPage&&(e.showRoomFormModal=!1)},cancel:function(t){e.showRoomFormModal=!1}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):e._e()]},proxy:!0}]),model:{value:e.showRoomFormModal,callback:function(t){e.showRoomFormModal=t},expression:"showRoomFormModal"}}),e._v(" "),a("modal",{attrs:{title:"部屋情報","no-footer":"",smallScreen:"800px",className:"common-modal"},on:{close:function(t){return e.$emit("close-look-room")}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isLookRoomModalShow?a("InRoomModalPage",{attrs:{"room-info":e.roomInfo,"all-gates":e.allGates,authority:e.authority,"room-info-loading":e.roomInfoLoading,"success-messages":e.successMessages,"error-messages":e.errorMessages},on:{"delete-bridge-property":e.deleteBridgeProperty,"click-edit-room":e.clickEditRoom,"load-room-by-id":function(t){return e.$emit("load-room-by-id")}}}):e._e()]},proxy:!0}]),model:{value:e.isLookRoomModalShow,callback:function(t){e.isLookRoomModalShow=t},expression:"isLookRoomModalShow"}}),e._v(" "),a("modal",{attrs:{title:"部屋一覧","no-footer":"",smallScreen:"800px",className:"common-modal"},on:{close:function(t){return e.$emit("close-all-room")}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("InAllRoomModalPage",{attrs:{isDel:e.isDel,loading:e.loading,"in-all-room":e.inAllRoom,"in-all-room-loading":e.inAllRoomLoading,"success-messages":e.successMessages,"error-messages":e.errorMessages,"in-all-room-search-value":e.innerInAllRoomSearchValue,"room-total-count":e.roomTotalCount,page:e.page},on:{"input-in-all-room-search-value":function(t){e.innerInAllRoomSearchValue=t},clicklookroom:function(t){return e.$emit("clicklookroom",t)},"click-create-room":e.clickCreateRoom,"click-edit-room":e.clickEditRoom,"delete-room":function(t){e.$emit("delete-room",t),e.isDel=!0},"load-in-all-room":function(t){return e.$emit("load-in-all-room",t)},"search-in-all-room":function(t){return e.$emit("search-in-all-room",t)},"change-page":function(t){return e.$emit("change-page",t)}}})]},proxy:!0}]),model:{value:e.isAllRoomModalShow,callback:function(t){e.isAllRoomModalShow=t},expression:"isAllRoomModalShow"}}),e._v(" "),a("modal",{attrs:{title:"ユーザー詳細","no-footer":"",smallScreen:"1200px",className:"common-padding"},on:{close:function(t){e.isShowUserDetail=!1,e.closeModal(e.isReload)}},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isShowUserDetail?a("UserDetailPageInRoom",{attrs:{titlePage:"ユーザー詳細",authority:e.authority,isModal:!0,userIdModal:e.user.userId?e.user.userId:e.userId},on:{getReload:function(t){return e.getReload(t)},loading:function(t){return e.$emit("loading-from-child",t)}}}):e._e()]},proxy:!0}]),model:{value:e.isShowUserDetail,callback:function(t){e.isShowUserDetail=t},expression:"isShowUserDetail"}})],1)},fM=[],hM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-tabs",class:e.classValue},[a("v-tabs",{ref:"alligTabs",attrs:{color:"green",vertical:e.vertical},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},e._l(e.items,(function(t){return a("v-tab",{key:t.value,attrs:{disabled:e.disabled},on:{click:function(a){return e.$emit("click-tab",t.value)}}},[e._t("tab."+t.value,[a("span",{staticClass:"font-weight-bold"},[e._v(e._s(t.text))])],{item:t})],2)})),1),e._v(" "),a("v-tabs-items",{staticClass:"overflow-visible",model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},e._l(e.items,(function(t){return a("v-tab-item",{key:t.value,attrs:{transition:!1,"reverse-transition":!1}},[a("v-card",{attrs:{flat:""}},[e._t(t.value)],2)],1)})),1)],1)},vM=[],bM=f["a"].extend({name:"Tabs",props:{value:{type:String,default:""},classValue:{type:String,default:""},items:{type:Array,default:function(){return[]}},vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{innerValue:{get:function(){var e=this,t=this.items.findIndex((function(t){return t.value===e.value}));return t},set:function(e){this.$emit("input",this.items[e]?this.items[e].value:"")}}},methods:{callSlider:function(){this.$refs.alligTabs.callSlider()}}}),yM=bM,IM=(a("f616"),a("0d23"),Object(I["a"])(yM,hM,vM,!1,null,"3955dd16",null)),xM=IM.exports;C()(IM,{VCard:Pr["a"],VTab:ng["a"],VTabItem:ig["a"],VTabs:lg["a"],VTabsItems:cg["a"]});var CM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-detail"},[a("v-row",{staticClass:"mt-0 mb-2 ml-0 mr-0",attrs:{justify:"space-between",align:"start"}},[a("v-col",{attrs:{"align-self":"start"}})],1),e._v(" "),!0===e.isShow&&!1===e.inRoomUserLoading&&!1===e.loading&&""===e.room.roomId?a("alert",{attrs:{type:"error",text:"部屋設定が存在しません。部屋を作成してください。",dismissible:!1,value:""===e.room.roomId}}):e._e(),e._v(" "),e._l(e.successMessages,(function(t,s){return a("alert",{key:s,attrs:{type:"success",text:t,dismissible:!1},model:{value:e.showSuccessMessages[s],callback:function(t){e.$set(e.showSuccessMessages,s,t)},expression:"showSuccessMessages[index]"}})})),e._v(" "),e._l(e.errorMessages,(function(e){return a("alert",{key:e,attrs:{value:""!==e,type:"error",text:e}})})),e._v(" "),a("modal",{attrs:{smallScreen:"800px",title:"部屋を削除します",text:"「"+e.room.name+"」を削除します。よろしいですか?",className:"common-modal"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("error-button",{staticClass:"mr-1",attrs:{text:"部屋を削除する"},on:{click:function(t){e.$emit("click-delete-room",e.room.roomId),e.deleteRoomModal=!1}}}),e._v(" "),a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){e.deleteRoomModal=!1}}})]},proxy:!0}]),model:{value:e.deleteRoomModal,callback:function(t){e.deleteRoomModal=t},expression:"deleteRoomModal"}}),e._v(" "),a("tabs",{ref:"allig-in-room-detail-tabs",attrs:{items:e.tabItemsUI,disabled:""===e.room.roomId,classValue:"round-tab round-group-tab room-tab"},on:{"click-tab":function(t){return e.$emit("click-tab",t)}},scopedSlots:e._u([{key:"tab.in-room-user",fn:function(t){var s=t.item;return[e._v("\n "+e._s(s.text)+"\n "),a("v-chip",{staticClass:"ml-1"},[e._v("\n "+e._s(e.room.roomUserCount)+"\n ")])]}},{key:"in-room-user",fn:function(){return[a("in-room-user-table",{staticClass:"mt-4",attrs:{loading:e.inRoomUserLoading,users:e.inRoomUsers,"total-count":e.inRoomUserTotalCount,page:e.inRoomUserPage,"per-page":e.inRoomUserPerPage,"search-value":e.innerInRoomUserSearchValue},on:{"click-user-name":e.clickInRoomUser,"change-sort":function(t){return e.$emit("change-in-room-user-sort",t)},"change-page":function(t){return e.$emit("change-in-room-user-page",t)},search:function(t){return e.$emit("search-in-room-user",t)},"input-search-value":function(t){e.innerInRoomUserSearchValue=t},reload:function(t){return e.$emit("reload-in-room-user",t)}}}),e._v(" "),a("modal",{attrs:{title:""===e.user.userId?"ユーザー情報を取得しています...":e.user.name+"さんの通行履歴"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e._l(e.userRoomLogSuccessMessages,(function(t,s){return a("alert",{key:s,attrs:{type:"success",text:t,dismissible:!1},model:{value:e.showUserRoomLogSuccessMessages[s],callback:function(t){e.$set(e.showUserRoomLogSuccessMessages,s,t)},expression:"showUserRoomLogSuccessMessages[index]"}})})),e._v(" "),e._l(e.userRoomLogErrorMessages,(function(e){return a("alert",{key:e,attrs:{value:""!==e,type:"error",text:e}})})),e._v(" "),a("in-room-user-timeline-table",{staticClass:"mt-4",attrs:{loading:e.userRoomLogLoading,user:e.user,"user-room-logs":e.userRoomLogs,date:e.innerUserRoomLogDate,"progress-message":e.userRoomLogProgressMessage,"progress-error-message":e.userRoomLogProgressErrorMessage},on:{"input-date":function(t){e.innerUserRoomLogDate=t},reload:function(t){return e.$emit("reload-user-room-log",t)},"click-export-excel":function(t){return e.$emit("click-export-user-room-log-excel",t)}}})]},proxy:!0}]),model:{value:e.userRoomLogModal,callback:function(t){e.userRoomLogModal=t},expression:"userRoomLogModal"}})]},proxy:!0},{key:"in-room-timeline",fn:function(){return[a("in-room-timeline-table",{staticClass:"mt-4",attrs:{loading:e.roomRoomLogLoading,room:e.room,"room-room-logs":e.roomRoomLogs,"total-count":e.roomRoomLogTotalCount,page:e.roomRoomLogPage,"per-page":e.roomRoomLogPerPage,date:e.innerRoomRoomLogDate,"search-value":e.innerRoomRoomLogSearchValue,"progress-message":e.roomRoomLogProgressMessage,"progress-error-message":e.roomRoomLogProgressErrorMessage},on:{"click-user-name":e.clickInRoomUser,"input-date":function(t){e.innerRoomRoomLogDate=t},"change-page":function(t){return e.$emit("change-room-room-log-page",t)},search:function(t){return e.$emit("search-room-room-log",t)},"input-search-value":function(t){e.innerRoomRoomLogSearchValue=t},reload:function(t){return e.$emit("reload-room-room-log",t)},"click-export-excel":function(t){return e.$emit("click-export-room-room-log-excel",t)}}})]},proxy:!0},{key:"in-room-user-timeline",fn:function(){return[a("in-room-user-timeline-table",{staticClass:"mt-4",attrs:{loading:e.userRoomLogLoading,user:e.user,"user-room-logs":e.userRoomLogs,date:e.innerUserRoomLogDate,"progress-message":e.userRoomLogProgressMessage,"progress-error-message":e.userRoomLogProgressErrorMessage},on:{"input-date":function(t){e.innerUserRoomLogDate=t},reload:function(t){return e.$emit("reload-user-room-log",t)},"click-export-excel":function(t){return e.$emit("click-export-user-room-log-excel",t)}}})]},proxy:!0}],null,!0),model:{value:e.innerTab,callback:function(t){e.innerTab=t},expression:"innerTab"}})],2)},wM=[],kM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-user-table"},[a("v-container",{staticClass:"pa-0"},[a("loading",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}]}),e._v(" "),a("v-row",{attrs:{"no-gutters":""}},[a("v-col",[a("search",{attrs:{label:"ユーザーを検索",searchTargetItems:e.searchTargetItems,disabled:e.loading},on:{search:function(t){return e.$emit("search",t)}},model:{value:e.innerSearchValue,callback:function(t){e.innerSearchValue=t},expression:"innerSearchValue"}})],1),e._v(" "),a("v-col",{staticClass:"ml-1",attrs:{cols:"auto"}},[a("reload-button",{attrs:{disabled:e.loading},on:{click:function(t){return e.$emit("reload",t)}}})],1)],1),e._v(" "),a("v-data-table",{staticClass:"table-shadow table-no-bg mt-5",attrs:{loading:e.loading,headers:e.headers,items:e.users,"items-per-page":e.perPage,"fixed-header":"","no-data-text":"在室中のユーザーはいません","loading-text":"データを読み込み中です","hide-default-footer":"",dense:"","item-key":"userId"},on:{"update:options":function(t){return e.$emit("change-sort",t)}},scopedSlots:e._u([{key:"item.userId",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.userId)+"\n ")]}},{key:"item.name",fn:function(t){var s=t.item;return[e.authority.isAdmin||e.authority.isAdminToViewUser?a("text-link",{attrs:{text:s.name},on:{click:function(t){return e.$emit("click-user-name",s.userId)}}}):a("span",[e._v(e._s(s.name))])]}},e.authority.isAdmin||e.authority.isAdminToViewUser?{key:"item.icon",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.goRoomUserPage(s.userId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-text-box")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("ユーザの在室状況を見る")])])]}}:null],null,!0)}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"ml-5 mb-1",attrs:{"page-length":Math.ceil(e.totalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)],1)},SM=[],_M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-search"},[a("v-text-field",{attrs:{"prepend-inner-icon":"mdi-magnify",color:"green",label:e.label,"single-line":"","hide-details":"",outlined:"",dense:"",disabled:e.disabled},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},scopedSlots:e._u([e.isVisibleButton?{key:"append",fn:function(){return[a("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({staticClass:"allig-search-menu-down-button",class:"included-"+e.rand,attrs:{icon:"",top:""},on:{click:function(){e.showCustomSearch=!e.showCustomSearch}}},"v-btn",r,!1),s),[a("v-icon",[e._v("mdi-menu-down")])],1)]}}],null,!1,3745151753)},[e._v(" "),a("span",[e._v("検索対象を変更")])])]},proxy:!0}:null],null,!0),model:{value:e.innerValueText,callback:function(t){e.innerValueText=t},expression:"innerValueText"}}),e._v(" "),e.isVisibleButton?a("v-card",{directives:[{name:"click-outside",rawName:"v-click-outside",value:{handler:e.onClickOutsideCustomSearch,include:e.included},expression:"{ handler: onClickOutsideCustomSearch, include: included}"},{name:"show",rawName:"v-show",value:e.showCustomSearch,expression:"showCustomSearch"}],staticClass:"allig-custom-search",attrs:{color:"white"}},[a("v-card-text",{staticClass:"mt-3 mb-3 ml-3 mr-3"},[a("div",{staticClass:"font-weight-black"},[e._v("\n 検索対象: \n ")]),e._v(" "),a("div",{staticClass:"d-flex flex-wrap"},e._l(e.searchTargetItems,(function(t){return a("v-checkbox",{key:t.value,staticClass:"mt-1 mr-10 allig-custom-search-checkbox",attrs:{label:t.label,value:t.value,color:"grey",dense:"","hide-details":""},model:{value:e.innerValueTargets,callback:function(t){e.innerValueTargets=t},expression:"innerValueTargets"}})})),1),e._v(" "),a("div",{staticClass:"d-flex justify-end mt-3 mr-3"},[a("success-button",{attrs:{text:"検索"},on:{click:e.clickSearch}})],1)])],1):e._e()],1)},PM=[],MM=f["a"].extend({name:"Search",components:{SuccessButton:kr},props:{value:{type:Object,default:function(){return{text:"",targets:[]}}},searchTargetItems:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},label:{type:String,default:"検索"},isVisibleButton:{type:Boolean,default:!0}},data:function(){return{rand:Math.random().toString(36).slice(-8),showCustomSearch:!1}},computed:{innerValueText:{get:function(){return this.value.text},set:function(e){this.$emit("input",{text:e,targets:this.value.targets})}},innerValueTargets:{get:function(){return this.value.targets},set:function(e){this.$emit("input",{text:this.value.text,targets:e})}}},methods:{onClickOutsideCustomSearch:function(){this.showCustomSearch&&(this.showCustomSearch=!1)},included:function(){return[document.querySelector(".included-".concat(this.rand))]},search:function(e){this.disabled||13!==e.keyCode||this.$emit("search",this.value)},clickSearch:function(){this.$emit("search",this.value),this.showCustomSearch=!1}}}),LM=MM,DM=(a("4684"),a("be69"),Object(I["a"])(LM,_M,PM,!1,null,"8912a6ee",null)),GM=DM.exports;C()(DM,{VBtn:pr["a"],VCard:Pr["a"],VCardText:Mr["b"],VCheckbox:Lr["a"],VIcon:Gr["a"],VTextField:Tr["a"],VTooltip:oo["a"]}),Or()(DM,{ClickOutside:Vr["a"]});var AM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reload-button"},[a("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return[a("v-btn",e._g(e._b({attrs:{disabled:e.disabled,outlined:"",elevation:"0",color:"grey"},on:{click:function(t){return e.$emit("click",t)}}},"v-btn",r,!1),s),[a("v-icon",[e._v("\n mdi-sync\n ")])],1)]}}])},[e._v("\n 再読み込み\n ")])],1)},RM=[],TM=f["a"].extend({name:"ReloadButton",props:{disabled:{type:Boolean,default:!1}}}),EM=TM,OM=Object(I["a"])(EM,AM,RM,!1,null,"79d33e64",null),VM=OM.exports;C()(OM,{VBtn:pr["a"],VIcon:Gr["a"],VTooltip:oo["a"]});var UM=f["a"].extend({name:"InRoomUserTable",components:{Pagination:xo,Search:GM,SelectPerPage:To,ShowPerPage:mo,TextLink:No,ReloadButton:VM,Loading:Yu},props:{loading:{type:Boolean,default:!1},users:{type:Array,default:function(){return[]}},totalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},searchValue:{type:Object,default:function(){return{text:"",targets:["userId","name"]}}}},data:function(){return{searchTargetItems:[{label:"ユーザーID",value:"userId"},{label:"名前",value:"name"}],authority:er.state.auth}},computed:{headers:{get:function(){var e=[{text:"名前",value:"name",sortable:!0},{text:"ユーザーID",value:"userId",align:"start",sortable:!0},{text:"",value:"icon",align:"end",sortable:!1}];return e}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerSearchValue:{get:function(){return this.searchValue},set:function(e){this.$emit("input-search-value",e)}}},methods:{goRoomUserPage:function(e){this.$router.push({path:Et,query:{userId:e}})}}}),$M=UM,NM=Object(I["a"])($M,kM,SM,!1,null,null,null),FM=NM.exports;C()(NM,{VBtn:pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var jM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-timeline-table"},[a("loading",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}]}),e._v(" "),a("v-container",{staticClass:"pa-0"},[a("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[a("v-col",{attrs:{cols:"auto"}},[a("date-picker",{attrs:{max:e.today},on:{activate:e.updateToday},model:{value:e.innerDate,callback:function(t){e.innerDate=t},expression:"innerDate"}})],1),e._v(" "),a("v-col",{staticClass:"ml-1 mr-1"},[a("search",{attrs:{label:"ユーザーを検索",searchTargetItems:e.searchTargetItems,disabled:e.loading},on:{search:function(t){return e.$emit("search",t)}},model:{value:e.innerSearchValue,callback:function(t){e.innerSearchValue=t},expression:"innerSearchValue"}})],1),e._v(" "),a("v-col",{staticClass:"mr-1",attrs:{cols:"auto"}},[a("reload-button",{attrs:{disabled:e.loading},on:{click:function(t){return e.$emit("reload",t)}}})],1),e._v(" "),a("v-col",{attrs:{cols:"auto"}},[a("success-button",{attrs:{text:"集計結果を出力する",outlined:""},on:{click:function(t){e.showExportExcelModal=!0}}})],1)],1),e._v(" "),a("timeline-table",{staticClass:"mt-2",attrs:{value:e.innerTimeline,"no-data-message":"在室していたユーザーはいません","end-hour":e.endHour},on:{"click-user-name":function(t){return e.$emit("click-user-name",t)}},scopedSlots:e._u([e._l(e.roomRoomLogs,(function(t){return{key:""+t.userId,fn:function(){return[a("text-link",{key:t.userId,staticClass:"user-name col-12 pa-0 text-truncate",attrs:{text:t.userName},on:{click:function(a){return e.$emit("click-user-name",t.userId)}}})]},proxy:!0}}))],null,!0)}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"ml-5 mb-1",attrs:{"page-length":Math.ceil(e.totalCount/e.perPage),disabled:e.loading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1),e._v(" "),a("modal",{attrs:{title:"在室状況",smallScreen:"800px",className:"common-modal"},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("div",{staticClass:"mt-4"},[e._v("\n "+e._s(e.innerDate)+"の部屋の在室状況の集計結果を出力します。\n ")])]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){e.showExportExcelModal=!1}}}),e._v(" "),a("success-button",{attrs:{text:"集計結果をダウンロードする"},on:{click:e.clickExportExcel}})]},proxy:!0}]),model:{value:e.showExportExcelModal,callback:function(t){e.showExportExcelModal=t},expression:"showExportExcelModal"}}),e._v(" "),a("progress-modal",{attrs:{title:e.progressModalTitle,message:e.innerProgressMessage,"show-percentage":!1,indeterminate:""!==e.progressMessage,"total-count":100,"finished-count":""===e.progressMessage?100:50,"error-message":e.progressErrorMessage,isShort:!0,isClass:"customize-class"},model:{value:e.showProgreeModal,callback:function(t){e.showProgreeModal=t},expression:"showProgreeModal"}})],1)},BM=[],zM=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"timeline-table"},[a("table",[a("tbody",[a("tr",[a("th",{staticClass:"th-item-title"}),e._v(" "),e._l(e.tableHeader,(function(t,s){return a("td",{key:s,staticClass:"text-caption header"},[e._v("\n "+e._s(t)+"\n ")])}))],2),e._v(" "),0===e.tableLineItems.length?a("tr",[a("th"),e._v(" "),a("td",{staticClass:"border text-body-2 text-center font-weight-bold",style:{"background-color":e.NONE},attrs:{colspan:"24"}},[e._v("\n "+e._s(e.noDataMessage)+"\n ")]),e._v(" "),a("td")]):e._l(e.tableLineItems,(function(t){return a("tr",{key:t.id},[a("th",{staticClass:"th-item-title pl-4 text-body-2 text-left border"},[a("div",{staticClass:"item-title col-12 pa-0 text-truncate"},[e.authority.isAdmin||e.authority.isAdminToViewUser?a("text-link",{staticClass:"item-user-id",attrs:{text:t.title},on:{click:function(a){return e.goRoom(t.id)}}}):a("span",[e._v(e._s(t.title)+"\n ")])],1)]),e._v(" "),e._l(t.colors,(function(s,r){return a("v-tooltip",{key:r,attrs:{right:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("td",e._b({staticClass:"border",class:{hoverable:s!==e.NONE},style:{"background-color":s}},"td",o,!1),[s!==e.NONE?a("div",e._g({staticClass:"hoverable-item"},r)):e._e()])]}}],null,!0)},[e._v(" "),a("span",{staticClass:"text-pre"},[e._v(e._s(t.tooltipText[r]))])])})),e._v(" "),a("td")],2)}))],2)])])},HM=[],KM=(a("cb29"),"#FFF"),YM="#2E7D32",qM="#66BB6A",WM=f["a"].extend({name:"TimelineTable",components:{TextLink:No},props:{value:{type:Array,default:function(){return[]}},noDataMessage:{type:String,default:"データがありません"},endHour:{type:Number,default:24},startTooltipMessage:{type:String,default:"入室"},endTooltipMessage:{type:String,default:"退室"},betweenTooltipMessage:{type:String,default:"滞在中"}},data:function(){return{NONE:KM,tableHeader:["0時","","","","","","6時","","","","","","12時","","","","","","18時","","","","","","24時"],authority:er.state.auth}},computed:{tableLineItems:{get:function(){var e=this,t=this.value.map((function(t){var a={id:t.id,title:t.title,colors:new Array(24).fill(KM),tooltipText:new Array(24).fill("")},s=t.timelines.map((function(e){return{start:e.start?Number(e.start.split(":")[0]):null,startTime:e.start,end:e.end?Number(e.end.split(":")[0]):null,endTime:e.end}})).filter((function(e){return void 0!==e.start||void 0!==e.end}));return s.forEach((function(t,r){null!==t.start&&t.start>=0&&t.start<24&&(a.colors[t.start]=YM,a.tooltipText[t.start]+=""!==a.tooltipText[t.start]?"\n":"",a.tooltipText[t.start]+="".concat(t.startTime," ").concat(e.startTooltipMessage)),null!==t.end&&t.end>=0&&t.end<24&&(a.colors[t.end]=YM,a.tooltipText[t.end]+=""!==a.tooltipText[t.end]?"\n":"",a.tooltipText[t.end]+="".concat(t.endTime," ").concat(e.endTooltipMessage));var o=t.start;null===o&&0===r&&(o=-1);var n=t.end;if(null===n&&r===s.length-1&&(n=e.endHour),null!==o&&null!==n)for(var i=o+1;ia)||"開始時刻が終了時刻を上回っています。"}],relationOwnerFederatedLoginServiceMetadataUrlRules:[function(e){return void 0!==e&&null!==e&&""!==e||"SAMLログインを有効にする場合、メタデータURLを必ず指定してください。"}],roomNameRules:[function(e){return void 0!==e&&null!==e&&""!==e||"部屋名を入力してください。"}],roomRelationsRoomGateRules:[function(e){return void 0!==e&&null!==e&&0!==e.length||"1つ以上のゲートを設定してください。"}]},IL=f["a"].extend({name:"RoomForm",components:{Loading:Yu,Alert:Ou,InputForm:io,CancelButton:fr,SuccessButton:kr},props:{loading:{type:Boolean,default:!1},successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}},value:{type:Object,default:function(){return{roomId:"",name:"",relationsRoomGate:[]}}},isEdit:{type:Boolean,default:!1},allGates:{type:Array,default:function(){return[]}}},computed:{innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},innerRoomName:{get:function(){return this.value.name},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{name:e}))}},innerSelectedGateIds:{get:function(){if(this.value.relationsRoomGate){var e=this.value.relationsRoomGate;return e.map((function(e){return e.gateId}))}return[]},set:function(e){var t=this,a=e.map((function(e){return{relationId:"",roomId:t.value.roomId,gateId:e,entryExitType:0}}));this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{relationsRoomGate:a}))}},gateItems:{get:function(){return this.allGates.map((function(e){return"ALIG-030"===e.gateModelCode?{text:e.gateName,value:e.gateId}:null})).filter((function(e){return null!==e}))}}},watch:{successMessages:function(e){var t=[];e.forEach((function(e){t.push(""!==e)})),this.showSuccessMessages=t}},data:function(){return{showSuccessMessages:[],noValidationError:!0,nameRules:yL.roomNameRules,relationsRoomGateRules:yL.roomRelationsRoomGateRules}},methods:{clickSave:function(){this.validateField(),this.noValidationError&&(this.isEdit?this.$emit("update-room",this.value):this.$emit("create-room",this.value))},validateField:function(){this.$refs.form.validate()}}}),xL=IL,CL=(a("e740"),a("ed42"),Object(I["a"])(xL,hL,vL,!1,null,"3ee43aaa",null)),wL=CL.exports;C()(CL,{VForm:Nl["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var kL=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-modal-page"},[a("in-room-modal-template",{attrs:{"all-gates":e.allGates,"room-info":e.roomInfo,"success-messages":e.successMessages,"error-messages":e.errorMessages,"room-info-loading":e.roomInfoLoading,authority:e.authority},on:{"click-edit-room":function(t){return e.$emit("click-edit-room",t)},"close-look-room":function(t){return e.$emit("close-look-room")}}})],1)},SL=[],_L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[e.successMessages.length>0||e.errorMessages.length>0?a("v-container",[e._l(e.successMessages,(function(t,s){return a("alert",{key:s,attrs:{type:"success",text:t,dismissible:!1},model:{value:e.showSuccessMessages[s],callback:function(t){e.$set(e.showSuccessMessages,s,t)},expression:"showSuccessMessages[index]"}})})),e._v(" "),e._l(e.errorMessages,(function(e){return a("alert",{key:e,attrs:{value:""!==e,type:"error",text:e}})}))],2):e._e(),e._v(" "),a("v-container",{staticClass:"pt-0"},[a("InRoomModalForm",{attrs:{"room-info":e.roomInfo,"all-gates":e.allGates,"room-info-loading":e.roomInfoLoading,"success-messages":e.successMessages,"error-messages":e.errorMessages,authority:e.authority},on:{"click-edit-room":function(t){return e.$emit("click-edit-room",t)}}})],1)],1)},PL=[],ML=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"room-form"},[a("loading",{directives:[{name:"show",rawName:"v-show",value:e.roomInfoLoading,expression:"roomInfoLoading"}]}),e._v(" "),!0===e.authority.isAdmin||!0===e.authority.isAdminToViewGroup?a("v-row",{staticClass:"btn-div mt-3 mb-3",attrs:{justify:"start"}},[a("v-col",{staticClass:"btn-add text-subtitle-2 border-left-blue font-weight-bold text-left pt-0 pb-0 ma-0 mt-2",attrs:{cols:"6",justify:"start"}},[e._v("\n 部屋情報\n ")]),e._v(" "),a("v-col",{staticClass:"btn-add pt-0 pb-0 ma-0",attrs:{cols:"6"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.$emit("click-edit-room",e.roomInfo)}}},[e._v("\n 部屋情報を編集する\n ")])],1)],1):e._e(),e._v(" "),a("v-card",{staticClass:"pa-6 pt-4 pb-0 pr-10 mb-5"},[a("div",{staticClass:"page-detail mb-10"},[a("v-row",[a("v-col",{staticClass:"col-12 pl-0"},[a("div",{staticClass:"title-display-block"},[e._v("部屋名 ")]),e._v(" "),a("div",{staticClass:"weight-bold "},[e._v("\n "+e._s(e.roomInfo.name)+"\n ")])])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"col-12 pl-0"},[a("div",{staticClass:"title-display-block"},[e._v("ゲート ")]),e._v(" "),e.gateItems.length>0?a("v-row",e._l(e.gateItems,(function(t,s){return a("v-col",{key:s,attrs:{md:"3",sm:"6",cols:"12"}},[e._v("\n "+e._s(t.title)+"\n ")])})),1):e._e()],1)],1)],1)])],1)},LL=[],DL=f["a"].extend({name:"InRoomModalForm",components:{TextLink:No,SuccessButton:kr,Loading:Yu},props:{loading:{type:Boolean,default:!1},roomInfo:{type:Object,default:function(){return{roomId:"",name:"",relationsRoomGate:[]}}},allGates:{type:Array,default:function(){return[]}},roomInfoLoading:{type:Boolean,default:!1},authority:{type:Object,default:{}},successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}}},data:function(){return{showRoomFormModal:!1,room:{relationsRoomGate:[]}}},computed:{gateItems:function(){var e=this.roomInfo.relationsRoomGate?this.roomInfo.relationsRoomGate.map((function(e){return e.gateId})):[],t=this.allGates.filter((function(t){return e.includes(t.gateId)})).map((function(e){return{title:e.gateName}}));return t}},methods:{}}),GL=DL,AL=(a("f106"),a("9526"),Object(I["a"])(GL,ML,LL,!1,null,"0c4dad43",null)),RL=AL.exports;C()(AL,{VBtn:pr["a"],VCard:Pr["a"],VCol:Dr["a"],VRow:Kr["a"]});var TL=f["a"].extend({name:"InRoomModalTemplate",components:{Breadcrumbs:cn,InRoomModalForm:RL,Modal:bn,Alert:Ou},props:{successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}},allGates:{type:Array,default:function(){return[]}},roomInfo:{type:Object,default:function(){return{roomId:"",name:"",relationsRoomGate:[]}}},roomInfoLoading:{type:Boolean,default:!1},value:{type:Object,default:function(){return{roomId:"",name:""}}},authority:{type:Object,default:{}}},data:function(){return{breadcrumbs:[{text:"部屋情報",disabled:!0}],showSuccessMessages:[]}},computed:{innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},watch:{successMessages:function(e){var t=[];e.forEach((function(e){t.push(""!==e)})),this.showSuccessMessages=t}}}),EL=TL,OL=Object(I["a"])(EL,_L,PL,!1,null,null,null),VL=OL.exports;C()(OL,{VContainer:Zo["a"]});var UL=nr["a"].extend({name:"InRoomModalPage",components:{InRoomModalTemplate:VL},props:{roomInfo:{type:Object,default:function(){return{roomId:"",name:"",relationsRoomGate:[]}}},authority:{type:Object,default:{}},allGates:{type:Array,default:function(){return[]}},roomInfoLoading:{type:Boolean,default:!1},successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}}},watch:{loading:function(e){this.$emit("loading",e)}},mounted:function(){this.$emit("load-room-by-id")}}),$L=UL,NL=Object(I["a"])($L,kL,SL,!1,null,null,null),FL=NL.exports,jL=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-all-room-modal-page"},[a("in-all-room-modal-template",{attrs:{"success-messages":e.successMessages,"error-messages":e.errorMessages,"in-all-room":e.inAllRoom,"in-all-room-loading":e.inAllRoomLoading,"in-all-room-search-value":e.innerInAllRoomSearchValue,"room-total-count":e.roomTotalCount,page:e.page,isDel:e.isDel,loading:e.loading},on:{"input-in-all-room-search-value":function(t){e.innerInAllRoomSearchValue=t},clicklookroom:function(t){return e.$emit("clicklookroom",t)},"click-create-room":function(t){return e.$emit("click-create-room")},"click-edit-room":function(t){return e.$emit("click-edit-room",t)},"delete-room":function(t){return e.$emit("delete-room",t)},"load-in-all-room":function(t){return e.$emit("load-in-all-room",t)},"search-in-all-room":function(t){return e.$emit("search-in-all-room",t)},"change-page":function(t){return e.$emit("change-page",t)},"close-all-room":function(t){return e.$emit("close-all-room")}}})],1)},BL=[],zL=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-gate-passage-table"},[a("v-container",[a("in-all-room-modal-form",{attrs:{"success-messages":e.successMessages,"error-messages":e.errorMessages,"in-all-room":e.inAllRoom,"in-all-room-loading":e.inAllRoomLoading,"in-all-room-search-value":e.innerInAllRoomSearchValue,"room-total-count":e.roomTotalCount,page:e.page,isDel:e.isDel,loading:e.loading},on:{"input-in-all-room-search-value":function(t){e.innerInAllRoomSearchValue=t},clicklookroom:function(t){return e.$emit("clicklookroom",t)},"click-create-room":function(t){return e.$emit("click-create-room")},"click-edit-room":function(t){return e.$emit("click-edit-room",t)},"delete-room":function(t){return e.$emit("delete-room",t)},"load-in-all-room":function(t){return e.$emit("load-in-all-room",t)},"search-in-all-room":function(t){return e.$emit("search-in-all-room",t)},"change-page":function(t){return e.$emit("change-page",t)}}})],1)],1)},HL=[],KL=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allig-reflection-controller-table"},[!0===e.isDel&&!1===e.inAllRoomLoading?a("loading",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}]}):e._e(),e._v(" "),a("modal",{attrs:{smallScreen:"800px",title:"部屋を削除します",text:"「"+e.room.name+"」を削除します。よろしいですか?"},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[a("v-spacer"),e._v(" "),a("error-button",{staticClass:"mr-1",attrs:{text:"部屋を削除する"},on:{click:e.handleDeleteRoom}}),e._v(" "),a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){e.deleteRoomModal=!1}}})]},proxy:!0}]),model:{value:e.deleteRoomModal,callback:function(t){e.deleteRoomModal=t},expression:"deleteRoomModal"}}),e._v(" "),e._l(e.successMessages,(function(t,s){return a("alert",{key:s,attrs:{type:"success",text:t,dismissible:!1},model:{value:e.showSuccessMessages[s],callback:function(t){e.$set(e.showSuccessMessages,s,t)},expression:"showSuccessMessages[index]"}})})),e._v(" "),e._l(e.errorMessages,(function(e){return a("alert",{key:e,attrs:{value:""!==e,type:"error",text:e}})})),e._v(" "),a("v-row",{staticClass:"create-button",attrs:{justify:"end"}},[a("div",{staticClass:"text-center"},[a("v-col",{staticClass:"btn-add pt-0 mt-5",attrs:{cols:"12"}},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.handleClickCreateRoom}},[e._v("\n 新規部屋を作成する\n ")])],1)],1)]),e._v(" "),a("search",{attrs:{label:"",searchTargetItems:e.searchTargetItems,disabled:e.inAllRoomLoading},on:{search:e.handleSearch},model:{value:e.innerInAllRoomSearchValue,callback:function(t){e.innerInAllRoomSearchValue=t},expression:"innerInAllRoomSearchValue"}}),e._v(" "),a("v-data-table",{staticStyle:{"max-height":"514px","overflow-y":"auto"},attrs:{loading:e.inAllRoomLoading,headers:e.headers,items:e.inAllRoom,"items-per-page":25,"fixed-header":"","no-data-text":"データーはありません","loading-text":"データを読み込み中です","hide-default-footer":"",dense:"","item-key":"roomId"},scopedSlots:e._u([{key:"item.name",fn:function(t){var s=t.item;return[a("text-link",{staticClass:"item-user-name",attrs:{text:s.name},on:{click:function(t){return e.handleClickLookRoom(s)}}})]}},{key:"item.actions",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.handleClickEdit(s)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-pencil")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("編集")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:""},on:{click:function(t){return e.handleClickDelete(s)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-delete")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("削除")])])]}}],null,!0)}),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.roomTotalCount/25),disabled:e.inAllRoomLoading},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],2)},YL=[],qL=f["a"].extend({name:"InAllRoomModalForm",components:{TextLink:No,Loading:Yu,Search:GM,Modal:bn,ErrorButton:kn,CancelButton:fr,Alert:Ou,Pagination:xo},props:{inAllRoomLoading:{type:Boolean,default:!1},inAllRoom:{type:Array,default:function(){return[]}},inAllRoomSearchValue:{type:Object,default:function(){return{text:"",targets:["name"]}}},successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}},cardTotalCount:{type:Number,default:0},page:{type:Number,default:1},roomTotalCount:{type:Number,default:0},isDel:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data:function(){return{showSuccessMessages:[],searchTargetItems:[{label:"名前",value:"name"}],deleteRoomModal:!1,room:{roomId:"",name:""}}},computed:{headers:{get:function(){var e=[{text:"名前",align:"start",sortable:!0,width:"",value:"name"}];return e.push({text:"",align:"end",sortable:!1,width:"150px",value:"actions"}),e}},innerInAllRoomSearchValue:{get:function(){return this.inAllRoomSearchValue},set:function(e){this.$emit("input-in-all-room-search-value",e)}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}}},methods:{handleSearch:function(){this.$emit("search-in-all-room",this.innerInAllRoomSearchValue)},handleClickLookRoom:function(e){this.$emit("clicklookroom",e)},handleDeleteRoom:function(){this.$emit("delete-room",this.room.roomId),this.deleteRoomModal=!1},handleClickDelete:function(e){this.room=e,this.deleteRoomModal=!0},handleClickEdit:function(e){this.$emit("click-edit-room",e)},handleClickCreateRoom:function(){this.$emit("click-create-room")}},watch:{successMessages:function(e){var t=[];e.forEach((function(e){t.push(""!==e)})),this.showSuccessMessages=t}}}),WL=qL,JL=(a("04ae"),Object(I["a"])(WL,KL,YL,!1,null,"6f04cc39",null)),ZL=JL.exports;C()(JL,{VBtn:pr["a"],VCol:Dr["a"],VDataTable:Xo["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var XL=f["a"].extend({name:"InAllRoomModalTemplate",components:{Breadcrumbs:cn,InAllRoomModalForm:ZL},props:{inAllRoomLoading:{type:Boolean,default:!1},successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}},inAllRoom:{type:Array,default:function(){return[]}},inAllRoomSearchValue:{type:Object,default:function(){return{text:"",targets:["name"]}}},roomTotalCount:{type:Number,default:0},page:{type:Number,default:1},isDel:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},computed:{breadcrumbs:{get:function(){return[{text:"部屋一覧",disabled:!0}]}},innerInAllRoomSearchValue:{get:function(){return this.inAllRoomSearchValue},set:function(e){this.$emit("input-in-all-room-search-value",e)}}}}),QL=XL,eD=Object(I["a"])(QL,zL,HL,!1,null,null,null),tD=eD.exports;C()(eD,{VContainer:Zo["a"]});var aD=nr["a"].extend({name:"InAllRoomModalPage",components:{InAllRoomModalTemplate:tD},props:{successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}},inAllRoom:{type:Array,default:function(){return[]}},inAllRoomLoading:{type:Boolean,default:!1},inAllRoomSearchValue:{type:Object,default:function(){return{text:"",targets:["name"]}}},roomTotalCount:{type:Number,default:0},page:{type:Number,default:1},isDel:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},computed:{innerInAllRoomSearchValue:{get:function(){return this.inAllRoomSearchValue},set:function(e){this.$emit("input-in-all-room-search-value",e)}}}}),sD=aD,rD=Object(I["a"])(sD,jL,BL,!1,null,null,null),oD=rD.exports,nD=f["a"].extend({name:"inRoomTemplate",components:{Loading:Yu,Alert:Ou,Breadcrumbs:cn,Modal:bn,Tabs:xM,CancelButton:fr,SuccessButton:kr,InRoomDetail:fL,RoomForm:wL,Searchbox:$r,TextLink:No,InRoomModalPage:FL,InAllRoomModalPage:oD,UserDetailPageInRoom:nC},props:{isPage:{type:String,default:""},loading:{type:Boolean,default:!1},roomInfoLoading:{type:Boolean,default:!1},successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}},value:{type:Object,default:function(){return{roomId:"",name:""}}},tab:{type:String,default:cL},rooms:{type:Array,default:function(){return[]}},roomLoading:{type:Boolean,default:!1},room:{type:Object,default:function(){return{roomId:"",name:""}}},roomEdit:{type:Object,default:function(){return{roomId:"",name:""}}},roomSuccessMessages:{type:Array,default:function(){return[]}},roomErrorMessages:{type:Array,default:function(){return[]}},inRoomUserLoading:{type:Boolean,default:!1},inRoomUsers:{type:Array,default:function(){return[]}},inRoomUserTotalCount:{type:Number,default:0},inRoomUserPage:{type:Number,default:1},inRoomUserPerPage:{type:Number,default:25},inRoomUserSearchValue:{type:Object,default:function(){return{text:"",targets:["userId","name"]}}},roomRoomLogLoading:{type:Boolean,default:!1},roomRoomLogs:{type:Array,default:function(){return[]}},roomRoomLogTotalCount:{type:Number,default:0},roomRoomLogPage:{type:Number,default:1},roomRoomLogPerPage:{type:Number,default:25},roomRoomLogDate:{type:String,default:new Date(Date.now()+324e5).toISOString().slice(0,10)},roomRoomLogSearchValue:{type:Object,default:function(){return{text:"",targets:["name"]}}},roomRoomLogProgressMessage:{type:String,default:""},roomRoomLogProgressErrorMessage:{type:String,default:""},userRoomLogLoading:{type:Boolean,default:!1},user:{type:Object,default:function(){return{userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0}}},userRoomLogs:{type:Array,default:function(){return[]}},userRoomLogDate:{type:String,default:new Date(Date.now()+324e5).toISOString().slice(0,10)},userRoomLogProgressMessage:{type:String,default:""},userRoomLogProgressErrorMessage:{type:String,default:""},userRoomLogSuccessMessages:{type:Array,default:function(){return[]}},userRoomLogErrorMessages:{type:Array,default:function(){return[]}},roomFormLoading:{type:Boolean,default:!1},roomFormSuccessMessages:{type:Array,default:function(){return[]}},roomFormErrorMessages:{type:Array,default:function(){return[]}},allGates:{type:Array,default:function(){return[]}},allGate:{type:Array,default:function(){return[]}},isLookRoomModalShow:{type:Boolean,default:!1},isAllRoomModalShow:{type:Boolean,default:!1},tabItemsUI:{type:Array,default:function(){return[]}},userFullList:{type:Array,default:function(){return[]}},roomInfo:{type:Object,default:function(){return{roomId:"",name:"",relationsRoomGate:[]}}},inAllRoom:{type:Array,default:function(){return[]}},inAllRoomLoading:{type:Boolean,default:!1},roomTotalCount:{type:Number,default:0},inAllRoomSearchValue:{type:Object,default:function(){return{text:"",targets:["name"]}}},page:{type:Number,default:1},authority:{type:Object,default:{}},userTotalCount:{type:Number,default:0}},data:function(){return{searchTargetItems:[{label:"部屋",value:"name",isDisabled:!0}],showSuccessMessages:[],showRoomFormModal:!1,isRoomEdit:!1,isShowUserDetail:!1,inputSearch:"",isDel:!1,userId:"",isReload:!1}},computed:{breadcrumbs:{get:function(){return[{text:"在室状況",disabled:!0},{text:void 0!==this.tabItemsUI[0].value&&"in-room-user-timeline"===this.tabItemsUI[0].value?"ユーザー別状況":"部屋別状況",disabled:!0}]}},innerValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},innerTab:{get:function(){return this.tab},set:function(e){this.$emit("input-tab",e)}},innerRoomTab:{get:function(){return this.room.roomId},set:function(e){this.$emit("click-room",e)}},innerUser:{get:function(){return""!==this.user.userId?this.user:this.inputSearch},set:function(e){}},tabItems:{get:function(){return this.rooms.map((function(e){return{text:e.name,value:e.roomId}}))}},innerInRoomUserSearchValue:{get:function(){return this.inRoomUserSearchValue},set:function(e){this.$emit("input-in-room-user-search-value",e)}},innerInAllRoomSearchValue:{get:function(){return this.inAllRoomSearchValue},set:function(e){this.$emit("input-in-all-room-search-value",e)}},innerRoomRoomLogDate:{get:function(){return this.roomRoomLogDate},set:function(e){this.$emit("input-room-room-log-date",e)}},innerRoomRoomLogSearchValue:{get:function(){return this.roomRoomLogSearchValue},set:function(e){this.$emit("input-room-room-log-search-value",e)}},innerUserRoomLogDate:{get:function(){return this.userRoomLogDate},set:function(e){this.$emit("input-user-room-log-date",e)}}},watch:{successMessages:function(e){var t=[];e.forEach((function(e){t.push(""!==e)})),this.showSuccessMessages=t},loading:function(e){!1===e&&(this.successMessages.length>0||this.errorMessages.length>0)&&(this.showRoomFormModal=!1,this.isDel=!1)}},methods:{clickEditRoom:function(e){this.$emit("start-edit-room",e),this.isRoomEdit=!0,this.showRoomFormModal=!0},clickCreateRoom:function(){this.$emit("start-create-room"),this.isRoomEdit=!1,this.showRoomFormModal=!0},deleteBridgeProperty:function(){this.$emit("ChangeProperty")},changeInnerUser:function(e){console.log("data",e),this.$emit("click-in-room-user",void 0!==e.userId?e.userId:e)},clickInRoomUser:function(e){this.isShowUserDetail=!0,this.isReload=!1,this.userId=void 0!==e?e:""},getReload:function(e){this.isReload=e},closeModal:function(e){e&&this.$emit("click-room",this.innerRoomTab)},isMap:function(){var e=this;if(this.userFullList.length>0){var t=this.userFullList.findIndex((function(t){return t.userId===e.user.userId}));return t>=0}return!0}}}),iD=nD,lD=(a("8251"),Object(I["a"])(iD,mM,fM,!1,null,"3b13c92f",null)),cD=lD.exports;C()(lD,{VCol:Dr["a"],VCombobox:Sf["a"],VContainer:Zo["a"],VRow:Kr["a"],VSelect:_o["a"]});var uD=a("d4ec"),dD=a("bee2"),gD=a("262e"),pD=a("2caf"),mD=a("ccb5"),fD=a("21a6"),hD=function(){function e(){Object(uD["a"])(this,e),this.fileName="",this.url=""}return Object(dD["a"])(e,[{key:"downloadExcelFromCloud",value:function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.get(this.url,{headers:{Accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},responseType:"arraybuffer"});case 3:return a=e.sent,e.next=6,mD["fromDataAsync"](a.data);case 6:this.workbook=e.sent,e.next=12;break;case 9:throw e.prev=9,e.t0=e["catch"](0),new Error("Excelテンプレートをダウンロードするのに失敗しました。");case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"downloadExcel",value:function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.workbook.outputAsync();case 3:t=e.sent,a=new Blob([t],{type:"application/octet-stream"}),Object(fD["saveAs"])(a,this.fileName),e.next=11;break;case 8:throw e.prev=8,e.t0=e["catch"](0),new Error("Excelエクスポートに失敗しました。");case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),vD=function(e){Object(gD["a"])(a,e);var t=Object(pD["a"])(a);function a(){var e;Object(uD["a"])(this,a),e=t.call(this);var s=new Date(Date.now()+324e5).toISOString().slice(0,10).split("-").join(""),r=new Date(Date.now()+324e5).toISOString().slice(11,19).split(":").join("");return e.fileName="in-room-summary_by-user_".concat(s).concat(r,".xlsx"),e.url=Be,e}return Object(dD["a"])(a,[{key:"inputData",value:function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this.workbook.sheet(0),o=t.split("-"),n=Object(sr["a"])(o,3),i=n[0],l=n[1],c=n[2],u=new Date(Date.now()+324e5),d=u.toISOString().slice(0,10).split("-"),g=Object(sr["a"])(d,3),p=g[0],m=g[1],f=g[2],h=u.toISOString().slice(11,16).split(":"),v=Object(sr["a"])(h,2),b=v[0],y=v[1],r.cell("A2").value("".concat(i,"年").concat(l,"月").concat(c,"日 (").concat(p,"年").concat(m,"月").concat(f,"日").concat(b,"時").concat(y,"分出力)")),r.cell("C4").value(a.userId),r.cell("L4").value(a.name),I=r.cell("B11").style("fontFamily"),x=r.cell("B11").style("fontSize"),C={border:"thin",horizontalAlignment:"center",fontFamily:I,fontSize:x},w=[],s.forEach((function(e,t){var a=t+11;r.cell("Y".concat(a)).style(C),r.range("Z".concat(a,":AD").concat(a)).merged(!0).style(C),r.range("AE".concat(a,":AG").concat(a)).merged(!0).style(C),r.cell("Y".concat(a)).value(t+1),r.cell("Z".concat(a)).value(e.roomName),w=w.concat(e.roomLogs.map((function(t){return{roomName:e.roomName,roomLog:t}}))),r.cell("AE".concat(a)).formula("IF(Z".concat(a,'<>"",SUMIF(B').concat(a,":B65515, Z").concat(a,", M").concat(a,':M65515),"")')).style("numberFormat","h:mm")})),w.sort((function(e,t){var a=e.roomLog.entry?e.roomLog.entry.timestamp:e.roomLog.exit?e.roomLog.exit.timestamp:0,s=t.roomLog.entry?t.roomLog.entry.timestamp:t.roomLog.exit?t.roomLog.exit.timestamp:0;return a"", J').concat(s,' - "0:00", "-")'):a===w.length-1&&(c=u.toISOString().slice(0,10)===t?"IF(G".concat(s,'<>"", "').concat(b,":").concat(y,'" - G').concat(s,', "-")'):"IF(G".concat(s,'<>"","24:00" - G').concat(s,', "-")')),r.cell("M".concat(s)).formula("IF(AND(G".concat(s,'<>"",J').concat(s,'<>""), J').concat(s,"-G").concat(s,",IF(OR(G").concat(s,'<>"",J').concat(s,'<>""),').concat(c,',""))')).style("numberFormat","h:mm"),0!==a&&r.cell("P".concat(s)).formula("IF(AND(G".concat(s,'<>"",J').concat(s-1,'<>""),G').concat(s,"-J").concat(s-1,",IF(OR(J").concat(s-1,'<>"",G').concat(s,'<>""),"-",""))')).style("numberFormat","h:mm")}));case 15:case"end":return e.stop()}}),e,this)})));function t(t,a,s){return e.apply(this,arguments)}return t}()}]),a}(hD),bD=function(e){Object(gD["a"])(a,e);var t=Object(pD["a"])(a);function a(){var e;Object(uD["a"])(this,a),e=t.call(this);var s=new Date(Date.now()+324e5).toISOString().slice(0,10).split("-").join(""),r=new Date(Date.now()+324e5).toISOString().slice(11,19).split(":").join("");return e.fileName="in-room-summary_by-room_".concat(s).concat(r,".xlsx"),e.url=ze,e}return Object(dD["a"])(a,[{key:"inputData",value:function(){var e=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,o,n,i,l,c,u,d,g,p,m,f,h,v,b,y,I,x,C,w;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this.workbook.sheet(0),o=t.split("-"),n=Object(sr["a"])(o,3),i=n[0],l=n[1],c=n[2],u=new Date(Date.now()+324e5),d=u.toISOString().slice(0,10).split("-"),g=Object(sr["a"])(d,3),p=g[0],m=g[1],f=g[2],h=u.toISOString().slice(11,16).split(":"),v=Object(sr["a"])(h,2),b=v[0],y=v[1],r.cell("A2").value("".concat(i,"年").concat(l,"月").concat(c,"日 (").concat(p,"年").concat(m,"月").concat(f,"日").concat(b,"時").concat(y,"分出力)")),r.cell("C4").value(a.name),r.cell("A7").value(s.length),I=r.cell("B11").style("fontFamily"),x=r.cell("B11").style("fontSize"),C={border:"thin",horizontalAlignment:"center",fontFamily:I,fontSize:x},w=[],s.forEach((function(e,t){var a=t+11;r.cell("Y".concat(a)).style(C),r.range("Z".concat(a,":AD").concat(a)).merged(!0).style(C),r.range("AE".concat(a,":AH").concat(a)).merged(!0).style(C),r.range("AI".concat(a,":AK").concat(a)).merged(!0).style(C),r.cell("Y".concat(a)).value(t+1),r.cell("Z".concat(a)).value(e.userId),r.cell("AE".concat(a)).value(e.userName),w=w.concat(e.roomLogs.map((function(t){return{userId:e.userId,userName:e.userName,roomLog:t}}))),r.cell("AI".concat(a)).formula("SUMIF(B11:B65524,Z".concat(a,",Q11:Q65524)")).style("numberFormat","h:mm")})),w.sort((function(e,t){var a=e.roomLog.entry?e.roomLog.entry.timestamp:e.roomLog.exit?e.roomLog.exit.timestamp:0,s=t.roomLog.entry?t.roomLog.entry.timestamp:t.roomLog.exit?t.roomLog.exit.timestamp:0;return a"", N').concat(s,' - "0:00", "-")'):a===w.length-1&&(c=u.toISOString().slice(0,10)===t?"IF(K".concat(s,'<>"", "').concat(b,":").concat(y,'" - K').concat(s,', "-")'):"IF(K".concat(s,'<>"","24:00" - K').concat(s,', "-")')),r.cell("Q".concat(s)).formula("IF(AND(K".concat(s,'<>"",N').concat(s,'<>""),N').concat(s,"-K").concat(s,",IF(OR(K").concat(s,'<>"",N').concat(s,'<>""),').concat(c,',""))')).style("numberFormat","h:mm")}));case 15:case"end":return e.stop()}}),e,this)})));function t(t,a,s){return e.apply(this,arguments)}return t}()}]),a}(hD),yD=f["a"].extend({name:"InRoomManagementPage",components:{InRoomTemplate:cD},data:function(){return{value:{roomId:"",name:""},currentTab:cL,successMessages:[],errorMessages:[],roomsLoading:!1,allRooms:[],roomFormLoading:!1,roomFormSuccessMessages:[],roomFormErrorMessages:[],allControllerGates:[],roomLoading:!1,room:{roomId:"",name:""},roomSuccessMessages:[],roomErrorMessages:[],inRoomUserLoading:!1,inRoomUsers:[],inRoomUserTotalCount:0,inRoomUserPage:1,inRoomUserPerPage:100,inRoomUserSearchValue:{text:"",targets:["userId","name"]},inRoomUserSortBy:"name",inRoomUserSortOrder:js,roomRoomLogLoading:!1,roomRoomLogs:[],roomRoomLogTotalCount:0,roomRoomLogPage:1,roomRoomLogPerPage:100,roomRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),roomRoomLogSearchValue:{text:"",targets:["userName"]},roomRoomLogProgressMessage:"",roomRoomLogProgressErrorMessage:"",inAllRoomLoading:!1,inAllRoom:[],roomInfo:{roomId:"",name:"",relationsRoomGate:[]},inAllRoomSearchValue:{text:"",targets:["name"]},roomTotalCount:0,currentPage:1,roomEdit:{roomId:"",name:""},authority:er.state.auth,roomInfoLoading:!1,userRoomLogLoading:!1,user:{userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0},userRoomLogs:[],userRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),userRoomLogProgressMessage:"",userRoomLogProgressErrorMessage:"",userRoomLogSuccessMessages:[],userRoomLogErrorMessages:[],isLookRoomModalShow:!1,isAllRoomModalShow:!1,tabItems:[{text:"在室中ユーザー",value:cL},{text:"在室履歴",value:uL}],userFullList:[]}},mounted:function(){this.initializePage(),this.tabItems=[{text:"在室中ユーザー",value:cL},{text:"在室履歴",value:uL}]},watch:{roomsLoading:function(e){}},methods:{initializePage:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadAllRooms();case 2:e.allRooms.length>0&&e.setRoom(e.allRooms[0]);case 3:case"end":return t.stop()}}),t)})))()},loadAllRooms:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomsLoading=!0,e.initializeRoomsData(),t.prev=2,t.next=5,Sl.room.getAllRooms(e);case 5:e.allRooms=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 11:e.roomsLoading=!1;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initializeRoomsData:function(){this.allRooms=[]},setRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.room=e,t.initializeRoomData(),t.loadInRoomUsers(),t.currentTab===uL&&t.loadRoomRoomLogs();case 4:case"end":return a.stop()}}),a)})))()},initializeRoomData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.inRoomUsers=[],this.inRoomUserTotalCount=0,this.inRoomUserPage=1,this.inRoomUserPerPage=100,this.inRoomUserSearchValue.text="",this.roomRoomLogs=[],this.roomRoomLogTotalCount=0,this.roomRoomLogPage=1,this.roomRoomLogPerPage=100,this.roomRoomLogSearchValue.text="",this.user={userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0},this.userRoomLogs=[],this.userRoomLogProgressMessage="",this.userRoomLogProgressErrorMessage=""},loadInRoomUsers:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.inRoomUserLoading=!0,e.initializeInRoomUserData(),t.prev=2,a={page:String(e.inRoomUserPage),limit:String(e.inRoomUserPerPage),sortKey:"".concat(e.inRoomUserSortOrder,":").concat(e.inRoomUserSortBy)},""!==e.inRoomUserSearchValue.text&&(a.keyword=e.inRoomUserSearchValue.text,a.scorp=e.inRoomUserSearchValue.targets.join(",")),t.next=7,Sl.room.getInRoomUsers(e,e.room.roomId,a);case 7:s=t.sent,e.inRoomUserTotalCount=s.maxRecords,e.inRoomUsers=s.users,e.room.roomUserCount=s.maxRecords,r=e.allRooms.findIndex((function(t){return t.roomId===e.room.roomId})),e.$set(e.allRooms[r],"roomUserCount",s.maxRecords),t.next=18;break;case 15:t.prev=15,t.t0=t["catch"](2),e.roomErrorMessages=[t.t0.message];case 18:e.inRoomUserLoading=!1;case 19:case"end":return t.stop()}}),t,null,[[2,15]])})))()},initializeInRoomUserData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.inRoomUsers=[],this.inRoomUserTotalCount=0},loadRoomRoomLogs:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomRoomLogLoading=!0,e.initializeRoomRoomLogData(),t.prev=2,a={page:String(e.roomRoomLogPage),limit:String(e.roomRoomLogPerPage),date:e.roomRoomLogDate,sortKey:"".concat(js,":userName")},""!==e.roomRoomLogSearchValue.text&&(a.keyword=e.roomRoomLogSearchValue.text,a.scorp=e.roomRoomLogSearchValue.targets.join(",")),t.next=7,Sl.log.getRoomRoomLogs(e,e.room.roomId,a);case 7:s=t.sent,e.roomRoomLogTotalCount=s.maxRecords,e.roomRoomLogs=s.users,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](2),e.roomErrorMessages=[t.t0.message];case 15:e.roomRoomLogLoading=!1;case 16:case"end":return t.stop()}}),t,null,[[2,12]])})))()},initializeRoomRoomLogData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.roomRoomLogs=[],this.roomRoomLogTotalCount=0},loadAllControllerGates:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomFormLoading=!0,e.initializeControllerGatesData(),t.prev=2,t.next=5,Sl.controller.getAllControllerGates(e);case 5:e.allControllerGates=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.roomFormErrorMessages=[t.t0.message];case 11:e.roomFormLoading=!1;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initializeControllerGatesData:function(){this.roomFormSuccessMessages=[],this.roomFormErrorMessages=[],this.allControllerGates=[]},clickRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=t.allRooms.find((function(t){return t.roomId===e})),s&&t.room.roomId!==s.roomId&&t.setRoom(s);case 2:case"end":return a.stop()}}),a)})))()},startCreateRoom:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.value={roomId:"",name:""},e.loadAllControllerGates();case 2:case"end":return t.stop()}}),t)})))()},startEditRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.value=e,t.roomEdit=e,t.loadAllControllerGates();case 3:case"end":return a.stop()}}),a)})))()},clickTab:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e===cL?t.loadInRoomUsers():e===uL&&t.loadRoomRoomLogs();case 1:case"end":return a.stop()}}),a)})))()},clickInRoomUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.userRoomLogDate=t.currentTab===uL?t.roomRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),t.user.userId!==e&&(t.user={userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0}),a.next=4,t.loadUserRoomLogs(e);case 4:case"end":return a.stop()}}),a)})))()},loadUserRoomLogs:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.userRoomLogLoading=!0,t.initializeUserRoomLogData(),a.prev=2,t.user.userId===e){a.next=7;break}return a.next=6,Sl.user.getUser(t,e);case 6:t.user=a.sent;case 7:return s={page:"1",limit:"1000",date:t.userRoomLogDate,sortKey:"".concat(js,":roomName")},a.next=10,Sl.log.getUserRoomLogs(t,e,s);case 10:r=a.sent,t.userRoomLogs=r.rooms,a.next=17;break;case 14:a.prev=14,a.t0=a["catch"](2),t.userRoomLogErrorMessages=[a.t0.message];case 17:t.userRoomLogLoading=!1;case 18:case"end":return a.stop()}}),a,null,[[2,14]])})))()},initializeUserRoomLogData:function(){this.userRoomLogSuccessMessages=[],this.userRoomLogErrorMessages=[],this.userRoomLogs=[]},changeInRoomUserSort:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=t.inRoomUserSortBy,r=t.inRoomUserSortOrder,t.inRoomUserSortBy=0===e.sortBy.length?"name":e.sortBy[0],t.inRoomUserSortOrder=0===e.sortDesc.length?js:e.sortDesc[0]?Fs:js,s===t.inRoomUserSortBy&&r===t.inRoomUserSortOrder||t.loadInRoomUsers();case 5:case"end":return a.stop()}}),a)})))()},changeInRoomUserPage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inRoomUserPage!==e&&(t.inRoomUserPage=e,t.loadInRoomUsers());case 1:case"end":return a.stop()}}),a)})))()},searchInRoomUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inRoomUserSearchValue=e,t.loadInRoomUsers();case 2:case"end":return a.stop()}}),a)})))()},reloadInRoomUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadInRoomUsers();case 1:case"end":return t.stop()}}),t)})))()},inputRoomRoomLogDate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogDate!==e&&(t.roomRoomLogDate=e,t.loadRoomRoomLogs());case 1:case"end":return a.stop()}}),a)})))()},changeRoomRoomLogPage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogPage!==e&&(t.roomRoomLogPage=e,t.loadRoomRoomLogs());case 1:case"end":return a.stop()}}),a)})))()},searchRoomRoomLog:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogSearchValue=e,t.loadRoomRoomLogs();case 2:case"end":return a.stop()}}),a)})))()},reloadRoomRoomLog:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadRoomRoomLogs();case 1:case"end":return t.stop()}}),t)})))()},exportRoomRoomLogExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomRoomLogProgressErrorMessage="",e.roomRoomLogProgressMessage="出力準備中です。",a=new bD,t.prev=3,e.roomRoomLogProgressMessage="テンプレートをクラウドから取得しています。",t.next=7,a.downloadExcelFromCloud(e);case 7:return e.roomRoomLogProgressMessage="クラウドからログ情報を取得しています。",t.next=10,Sl.log.getAllRoomRoomLogs(e,e.room.roomId,e.roomRoomLogDate);case 10:return s=t.sent,e.roomRoomLogProgressMessage="出力するExcelデータを生成しています。",t.next=14,a.inputData(e.roomRoomLogDate,e.room,s);case 14:return e.roomRoomLogProgressMessage="出力しています。",t.next=17,a.downloadExcel();case 17:e.roomRoomLogProgressMessage="",t.next=24;break;case 20:t.prev=20,t.t0=t["catch"](3),e.roomRoomLogProgressErrorMessage=t.t0.message,e.roomRoomLogProgressMessage="";case 24:case"end":return t.stop()}}),t,null,[[3,20]])})))()},inputUserRoomLogDate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.userRoomLogDate!==e&&(t.userRoomLogDate=e,t.loadUserRoomLogs(t.user.userId));case 1:case"end":return a.stop()}}),a)})))()},reloadUserRoomLog:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadUserRoomLogs(e.user.userId);case 1:case"end":return t.stop()}}),t)})))()},exportUserRoomLogExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.userRoomLogProgressErrorMessage="",e.userRoomLogProgressMessage="出力準備中です。",a=new vD,t.prev=3,e.userRoomLogProgressMessage="テンプレートをクラウドから取得しています。",t.next=7,a.downloadExcelFromCloud(e);case 7:return e.userRoomLogProgressMessage="出力するExcelデータを生成しています。",t.next=10,a.inputData(e.userRoomLogDate,e.user,e.userRoomLogs);case 10:return e.userRoomLogProgressMessage="出力しています。",t.next=13,a.downloadExcel();case 13:e.userRoomLogProgressMessage="",t.next=20;break;case 16:t.prev=16,t.t0=t["catch"](3),e.userRoomLogProgressErrorMessage=t.t0.message,e.userRoomLogProgressMessage="";case 20:case"end":return t.stop()}}),t,null,[[3,16]])})))()},deleteRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.successMessages=[],t.errorMessages=[],a.prev=3,a.next=6,Sl.room.deleteRoom(t,e);case 6:t.successMessages=["部屋を削除しました。"],t.initializePage(),t.isAllRoomModalShow&&t.loadInAllRoom(),a.next=15;break;case 11:a.prev=11,a.t0=a["catch"](3),t.errorMessages=[a.t0.message],t.roomsLoading=!1;case 15:case"end":return a.stop()}}),a,null,[[3,11]])})))()},createRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.successMessages=[],t.errorMessages=[],s={name:e.name},e.relationsRoomGate&&(s.relationsRoomGate=e.relationsRoomGate.map((function(e){return{gateId:e.gateId,entryExitType:0}}))),a.prev=5,a.next=8,Sl.room.postRoom(t,s);case 8:t.successMessages=["新しい部屋を作成しました。"],t.initializePage(),t.inAllRoomSearchValue.text="",t.isAllRoomModalShow&&t.loadInAllRoom(),a.next=18;break;case 14:a.prev=14,a.t0=a["catch"](5),t.errorMessages=[a.t0.message],t.roomsLoading=!1;case 18:case"end":return a.stop()}}),a,null,[[5,14]])})))()},updateRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.successMessages=[],t.errorMessages=[],s={name:e.name},e.relationsRoomGate&&(s.relationsRoomGate=e.relationsRoomGate.map((function(e){return{gateId:e.gateId,entryExitType:0}}))),a.prev=5,a.next=8,Sl.room.putRoom(t,e.roomId,s);case 8:t.successMessages=["部屋情報を更新しました。"],r=t.allRooms.findIndex((function(t){return t.roomId===e.roomId})),t.$set(t.allRooms,r,e),t.setRoom(e),t.inAllRoomSearchValue.text="",t.isAllRoomModalShow&&t.loadInAllRoom(),t.isLookRoomModalShow&&t.loadRoomById(),a.next=20;break;case 17:a.prev=17,a.t0=a["catch"](5),t.errorMessages=[a.t0.message];case 20:t.roomsLoading=!1;case 21:case"end":return a.stop()}}),a,null,[[5,17]])})))()},clicklookroom:function(e){this.roomInfo=e,this.isLookRoomModalShow=!0,this.allControllerGates=[],this.successMessages=[],this.errorMessages=[]},closeLookRoom:function(){this.isLookRoomModalShow=!1},ChangeProperty:function(){this.isLookRoomModalShow=!1,this.isAllRoomModalShow=!1},clicAllRoom:function(){this.isAllRoomModalShow=!0,this.inAllRoom=[],this.successMessages=[],this.errorMessages=[],this.loadInAllRoom()},closeAllRoom:function(){this.isAllRoomModalShow=!1},searchInAllRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inAllRoomSearchValue=e,t.loadInAllRoom();case 2:case"end":return a.stop()}}),a)})))()},loadInAllRoom:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.inAllRoomLoading=!0,e.inAllRoom=[],t.prev=2,t.next=5,Sl.room.getRoomsByKeyword(e,e.currentPage,e.inAllRoomSearchValue.text);case 5:a=t.sent,e.roomTotalCount=a.maxRecords,e.inAllRoom=a.rooms,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 13:e.inAllRoomLoading=!1;case 14:case"end":return t.stop()}}),t,null,[[2,10]])})))()},changePage:function(e){this.currentPage=e,this.loadInAllRoom()},loadRoomById:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomInfoLoading=!0,e.allControllerGates=[],t.prev=2,t.next=5,Sl.room.getRoomById(e,e.roomInfo.roomId);case 5:return a=t.sent,t.next=8,e.loadAllControllerGates().then((function(){e.roomInfoLoading=!1}));case 8:e.roomInfo={roomId:a.roomId,name:a.name,relationsRoomGate:a.relationsRoomGate},t.next=15;break;case 11:t.prev=11,t.t0=t["catch"](2),e.roomInfoLoading=!1,e.errorMessages=[t.t0.message];case 15:case"end":return t.stop()}}),t,null,[[2,11]])})))()},initializePageUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomsLoading=!0,e.initializeRoomsData(),t.prev=2,t.next=5,Sl.room.getAllRooms(e);case 5:e.allRooms=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 11:e.allRooms.length>0&&(e.room=e.allRooms[0]);case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()}}}),ID=yD,xD=Object(I["a"])(ID,gM,pM,!1,null,null,null),CD=xD.exports,wD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-management-page"},[a("in-room-template",{attrs:{isPage:e.isPage,loading:e.roomsLoading,"success-messages":e.successMessages,"error-messages":e.errorMessages,tab:e.currentTab,rooms:e.allRooms,"room-loading":e.roomLoading,room:e.room,"room-success-messages":e.roomSuccessMessages,"room-error-messages":e.roomErrorMessages,"in-room-user-loading":e.inRoomUserLoading,"in-room-users":e.inRoomUsers,"in-room-user-total-count":e.inRoomUserTotalCount,"in-room-user-page":e.inRoomUserPage,"in-room-user-per-page":e.inRoomUserPerPage,"in-room-user-search-value":e.inRoomUserSearchValue,"room-room-log-loading":e.roomRoomLogLoading,"room-room-logs":e.roomRoomLogs,"room-room-log-total-count":e.roomRoomLogTotalCount,"room-room-log-page":e.roomRoomLogPage,"room-room-log-per-page":e.roomRoomLogPerPage,"room-room-log-date":e.roomRoomLogDate,"room-room-log-search-value":e.roomRoomLogSearchValue,"room-room-log-progress-message":e.roomRoomLogProgressMessage,"room-room-log-progress-error-message":e.roomRoomLogProgressErrorMessage,"user-room-log-loading":e.userRoomLogLoading,user:e.user,"user-room-logs":e.userRoomLogs,"user-room-log-date":e.userRoomLogDate,"user-room-log-progress-message":e.userRoomLogProgressMessage,"user-room-log-progress-error-message":e.userRoomLogProgressErrorMessage,"user-room-log-success-messages":e.userRoomLogSuccessMessages,"user-room-log-error-messages":e.userRoomLogErrorMessages,"room-form-loading":e.roomFormLoading,"room-form-success-messages":e.roomFormSuccessMessages,"room-form-error-messages":e.roomFormErrorMessages,"all-gates":e.allControllerGates,tabItemsUI:e.tabItems,userFullList:e.userFullList,"in-all-room":e.inAllRoom,"room-info":e.roomInfo,"in-all-room-loading":e.inAllRoomLoading,"in-all-room-search-value":e.inAllRoomSearchValue,"room-total-count":e.roomTotalCount,authority:e.authority,page:e.currentPage,"room-info-loading":e.roomInfoLoading,isLookRoomModalShow:e.isLookRoomModalShow,isAllRoomModalShow:e.isAllRoomModalShow},on:{"input-tab":function(t){e.currentTab=t},"click-room":e.clickRoom,"start-create-room":e.startCreateRoom,"start-edit-room":e.startEditRoom,"click-tab":e.clickTab,"click-in-room-user":e.clickInRoomUser,"change-in-room-user-sort":e.changeInRoomUserSort,"change-in-room-user-page":e.changeInRoomUserPage,"search-in-room-user":e.searchInRoomUser,"input-in-room-user-search-value":function(t){e.inRoomUserSearchValue=t},"reload-in-room-user":e.reloadInRoomUser,"input-room-room-log-date":e.inputRoomRoomLogDate,"change-room-room-log-page":e.changeRoomRoomLogPage,"search-room-room-log":e.searchRoomRoomLog,"input-room-room-log-search-value":function(t){e.roomRoomLogSearchValue=t},"reload-room-room-log":e.reloadRoomRoomLog,"click-export-room-room-log-excel":e.exportRoomRoomLogExcel,"input-user-room-log-date":e.inputUserRoomLogDate,"reload-user-room-log":e.reloadUserRoomLog,"click-export-user-room-log-excel":e.exportUserRoomLogExcel,"delete-room":e.deleteRoom,"create-room":e.createRoom,"update-room":e.updateRoom,clicklookroom:e.clicklookroom,ChangeProperty:e.ChangeProperty,clicAllRoom:e.clicAllRoom,"close-look-room":e.closeLookRoom,"close-all-room":e.closeAllRoom,"load-in-all-room":e.loadInAllRoom,"input-in-all-room-search-value":function(t){e.inAllRoomSearchValue=t},"search-in-all-room":e.searchInAllRoom,"change-page":function(t){return e.changePage(t)},"load-room-by-id":e.loadRoomById,"loading-from-child":function(t){return e.$emit("loading",t)}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},kD=[],SD=f["a"].extend({name:"InRoomManagementRoomPage",components:{InRoomTemplate:cD},data:function(){return{value:{roomId:"",name:""},currentTab:cL,successMessages:[],errorMessages:[],roomsLoading:!1,allRooms:[],roomFormLoading:!1,roomFormSuccessMessages:[],roomFormErrorMessages:[],allControllerGates:[],roomLoading:!1,room:{roomId:"",name:""},roomSuccessMessages:[],roomErrorMessages:[],inRoomUserLoading:!1,inRoomUsers:[],inRoomUserTotalCount:0,inRoomUserPage:1,inRoomUserPerPage:100,inRoomUserSearchValue:{text:"",targets:["userId","name"]},inRoomUserSortBy:"name",inRoomUserSortOrder:js,roomRoomLogLoading:!1,roomRoomLogs:[],roomRoomLogTotalCount:0,roomRoomLogPage:1,roomRoomLogPerPage:100,roomRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),roomRoomLogSearchValue:{text:"",targets:["userName"]},roomRoomLogProgressMessage:"",roomRoomLogProgressErrorMessage:"",inAllRoomLoading:!1,inAllRoom:[],roomInfo:{roomId:"",name:"",relationsRoomGate:[]},inAllRoomSearchValue:{text:"",targets:["name"]},roomTotalCount:0,currentPage:1,roomEdit:{roomId:"",name:""},authority:er.state.auth,roomInfoLoading:!1,userRoomLogLoading:!1,user:{userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0},userRoomLogs:[],userRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),userRoomLogProgressMessage:"",userRoomLogProgressErrorMessage:"",userRoomLogSuccessMessages:[],userRoomLogErrorMessages:[],isLookRoomModalShow:!1,isAllRoomModalShow:!1,tabItems:[{text:"在室中ユーザー",value:cL},{text:"在室履歴",value:uL}],userFullList:[],isPage:"room"}},mounted:function(){this.$emit("activeMenu","in-room-management/room"),this.roomsLoading=!0,this.inRoomUserLoading=!0,this.initializePage(),this.tabItems=[{text:"在室ユーザー一覧",value:cL},{text:"在室履歴",value:uL}]},watch:{roomsLoading:function(e){}},methods:{initializePage:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadAllRooms();case 2:e.allRooms.length>0?null!==e.$route.query.roomId&&void 0!==e.$route.query.roomId?(a=e.$route.query.roomId,e.clickRoom(a.toString())):e.setRoom(e.allRooms[0]):(e.roomsLoading=!1,e.inRoomUserLoading=!1,e.roomRoomLogLoading=!1,e.inRoomUsers=[],e.roomRoomLogs=[]);case 3:case"end":return t.stop()}}),t)})))()},loadAllRooms:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomsLoading=!0,e.initializeRoomsData(),t.prev=2,t.next=5,Sl.room.getAllRooms(e);case 5:e.allRooms=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 11:e.roomsLoading=!1;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initializeRoomsData:function(){this.allRooms=[]},setRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.room=e,t.initializeRoomData(),t.loadInRoomUsers(),t.currentTab===uL&&t.loadRoomRoomLogs();case 4:case"end":return a.stop()}}),a)})))()},initializeRoomData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.inRoomUsers=[],this.inRoomUserTotalCount=0,this.inRoomUserPage=1,this.inRoomUserPerPage=100,this.inRoomUserSearchValue.text="",this.roomRoomLogs=[],this.roomRoomLogTotalCount=0,this.roomRoomLogPage=1,this.roomRoomLogPerPage=100,this.roomRoomLogSearchValue.text="",this.user={userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0},this.userRoomLogs=[],this.userRoomLogProgressMessage="",this.userRoomLogProgressErrorMessage=""},loadInRoomUsers:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.inRoomUserLoading=!0,e.initializeInRoomUserData(),t.prev=2,a={page:String(e.inRoomUserPage),limit:String(e.inRoomUserPerPage),sortKey:"".concat(e.inRoomUserSortOrder,":").concat(e.inRoomUserSortBy)},""!==e.inRoomUserSearchValue.text&&(a.keyword=e.inRoomUserSearchValue.text,a.scorp=e.inRoomUserSearchValue.targets.join(",")),t.next=7,Sl.room.getInRoomUsers(e,e.room.roomId,a);case 7:s=t.sent,e.inRoomUserTotalCount=s.maxRecords,e.inRoomUsers=s.users,e.room.roomUserCount=s.maxRecords,r=e.allRooms.findIndex((function(t){return t.roomId===e.room.roomId})),e.$set(e.allRooms[r],"roomUserCount",s.maxRecords),t.next=18;break;case 15:t.prev=15,t.t0=t["catch"](2),e.roomErrorMessages=[t.t0.message];case 18:e.inRoomUserLoading=!1;case 19:case"end":return t.stop()}}),t,null,[[2,15]])})))()},initializeInRoomUserData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.inRoomUsers=[],this.inRoomUserTotalCount=0},loadRoomRoomLogs:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomRoomLogLoading=!0,e.initializeRoomRoomLogData(),t.prev=2,a={page:String(e.roomRoomLogPage),limit:String(e.roomRoomLogPerPage),date:e.roomRoomLogDate,sortKey:"".concat(js,":userName")},""!==e.roomRoomLogSearchValue.text&&(a.keyword=e.roomRoomLogSearchValue.text,a.scorp=e.roomRoomLogSearchValue.targets.join(",")),t.next=7,Sl.log.getRoomRoomLogs(e,e.room.roomId,a);case 7:s=t.sent,e.roomRoomLogTotalCount=s.maxRecords,e.roomRoomLogs=s.users,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](2),e.roomErrorMessages=[t.t0.message];case 15:e.roomRoomLogLoading=!1;case 16:case"end":return t.stop()}}),t,null,[[2,12]])})))()},initializeRoomRoomLogData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.roomRoomLogs=[],this.roomRoomLogTotalCount=0},loadAllControllerGates:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomFormLoading=!0,e.initializeControllerGatesData(),t.prev=2,t.next=5,Sl.controller.getAllGatesSimple(e);case 5:e.allControllerGates=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.roomFormErrorMessages=[t.t0.message];case 11:e.roomFormLoading=!1;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initializeControllerGatesData:function(){this.roomFormSuccessMessages=[],this.roomFormErrorMessages=[],this.allControllerGates=[]},clickRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=t.allRooms.find((function(t){return t.roomId===e})),void 0!==s&&void 0!==s.roomId&&""!==s.roomId&&null!==s.roomId?t.setRoom(s):(t.roomsLoading=!1,t.inRoomUserLoading=!1,t.roomRoomLogLoading=!1,t.inRoomUsers=[],t.roomRoomLogs=[]);case 2:case"end":return a.stop()}}),a)})))()},startCreateRoom:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.value={roomId:"",name:""},e.loadAllControllerGates();case 2:case"end":return t.stop()}}),t)})))()},startEditRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.value=e,t.roomEdit=e,t.loadAllControllerGates();case 3:case"end":return a.stop()}}),a)})))()},clickTab:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e===cL?t.loadInRoomUsers():e===uL&&t.loadRoomRoomLogs();case 1:case"end":return a.stop()}}),a)})))()},clickInRoomUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return console.log("userId",e),t.userRoomLogDate=t.currentTab===uL?t.roomRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),t.user.userId!==e&&(t.user={userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0}),a.next=5,t.loadUserRoomLogs(e);case 5:case"end":return a.stop()}}),a)})))()},loadUserRoomLogs:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.userRoomLogLoading=!0,t.initializeUserRoomLogData(),a.prev=2,t.user.userId===e){a.next=7;break}return a.next=6,Sl.user.getUser(t,e);case 6:t.user=a.sent;case 7:return s={page:"1",limit:"1000",date:t.userRoomLogDate,sortKey:"".concat(js,":roomName")},a.next=10,Sl.log.getUserRoomLogs(t,e,s);case 10:r=a.sent,t.userRoomLogs=r.rooms,a.next=17;break;case 14:a.prev=14,a.t0=a["catch"](2),t.userRoomLogErrorMessages=[a.t0.message];case 17:t.userRoomLogLoading=!1;case 18:case"end":return a.stop()}}),a,null,[[2,14]])})))()},initializeUserRoomLogData:function(){this.userRoomLogSuccessMessages=[],this.userRoomLogErrorMessages=[],this.userRoomLogs=[]},changeInRoomUserSort:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=t.inRoomUserSortBy,r=t.inRoomUserSortOrder,t.inRoomUserSortBy=0===e.sortBy.length?"name":e.sortBy[0],t.inRoomUserSortOrder=0===e.sortDesc.length?js:e.sortDesc[0]?Fs:js,s===t.inRoomUserSortBy&&r===t.inRoomUserSortOrder||t.loadInRoomUsers();case 5:case"end":return a.stop()}}),a)})))()},changeInRoomUserPage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inRoomUserPage!==e&&(t.inRoomUserPage=e,t.loadInRoomUsers());case 1:case"end":return a.stop()}}),a)})))()},searchInRoomUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inRoomUserSearchValue=e,t.loadInRoomUsers();case 2:case"end":return a.stop()}}),a)})))()},reloadInRoomUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadInRoomUsers();case 1:case"end":return t.stop()}}),t)})))()},inputRoomRoomLogDate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogDate!==e&&(t.roomRoomLogDate=e,t.loadRoomRoomLogs());case 1:case"end":return a.stop()}}),a)})))()},changeRoomRoomLogPage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogPage!==e&&(t.roomRoomLogPage=e,t.loadRoomRoomLogs());case 1:case"end":return a.stop()}}),a)})))()},searchRoomRoomLog:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogSearchValue=e,t.loadRoomRoomLogs();case 2:case"end":return a.stop()}}),a)})))()},reloadRoomRoomLog:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadRoomRoomLogs();case 1:case"end":return t.stop()}}),t)})))()},exportRoomRoomLogExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomRoomLogProgressErrorMessage="",e.roomRoomLogProgressMessage="出力準備中です。",a=new bD,t.prev=3,e.roomRoomLogProgressMessage="テンプレートをクラウドから取得しています。",t.next=7,a.downloadExcelFromCloud(e);case 7:return e.roomRoomLogProgressMessage="クラウドからログ情報を取得しています。",t.next=10,Sl.log.getAllRoomRoomLogs(e,e.room.roomId,e.roomRoomLogDate);case 10:return s=t.sent,e.roomRoomLogProgressMessage="出力するExcelデータを生成しています。",t.next=14,a.inputData(e.roomRoomLogDate,e.room,s);case 14:return e.roomRoomLogProgressMessage="出力しています。",t.next=17,a.downloadExcel();case 17:e.roomRoomLogProgressMessage="",t.next=24;break;case 20:t.prev=20,t.t0=t["catch"](3),e.roomRoomLogProgressErrorMessage=t.t0.message,e.roomRoomLogProgressMessage="";case 24:case"end":return t.stop()}}),t,null,[[3,20]])})))()},inputUserRoomLogDate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.userRoomLogDate!==e&&(t.userRoomLogDate=e,t.loadUserRoomLogs(t.user.userId));case 1:case"end":return a.stop()}}),a)})))()},reloadUserRoomLog:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadUserRoomLogs(e.user.userId);case 1:case"end":return t.stop()}}),t)})))()},exportUserRoomLogExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.userRoomLogProgressErrorMessage="",e.userRoomLogProgressMessage="出力準備中です。",a=new vD,t.prev=3,e.userRoomLogProgressMessage="テンプレートをクラウドから取得しています。",t.next=7,a.downloadExcelFromCloud(e);case 7:return e.userRoomLogProgressMessage="出力するExcelデータを生成しています。",t.next=10,a.inputData(e.userRoomLogDate,e.user,e.userRoomLogs);case 10:return e.userRoomLogProgressMessage="出力しています。",t.next=13,a.downloadExcel();case 13:e.userRoomLogProgressMessage="",t.next=20;break;case 16:t.prev=16,t.t0=t["catch"](3),e.userRoomLogProgressErrorMessage=t.t0.message,e.userRoomLogProgressMessage="";case 20:case"end":return t.stop()}}),t,null,[[3,16]])})))()},deleteRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.isPage="",t.roomsLoading=!0,t.successMessages=[],t.errorMessages=[],a.prev=4,a.next=7,Sl.room.deleteRoom(t,e);case 7:t.successMessages=["部屋を削除しました。"],t.roomFormLoading=!1,t.inRoomUserLoading=!0,t.roomRoomLogLoading=!0,t.isPage="room",t.room={roomId:"",name:""},t.initializePage(),t.isAllRoomModalShow&&t.loadInAllRoom(),a.next=24;break;case 17:a.prev=17,a.t0=a["catch"](4),t.isPage="room",t.errorMessages=[a.t0.message],t.inRoomUserLoading=!1,t.roomsLoading=!1,t.roomRoomLogLoading=!1;case 24:case"end":return a.stop()}}),a,null,[[4,17]])})))()},createRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.roomFormLoading=!0,t.successMessages=[],t.errorMessages=[],s={name:e.name},e.relationsRoomGate&&(s.relationsRoomGate=e.relationsRoomGate.map((function(e){return{gateId:e.gateId,entryExitType:0}}))),a.prev=6,a.next=9,Sl.room.postRoom(t,s);case 9:t.successMessages=["新しい部屋を作成しました。"],t.roomsLoading=!1,t.roomFormLoading=!0,setTimeout((function(){t.initializePage(),t.inAllRoomSearchValue.text="",t.isAllRoomModalShow&&t.loadInAllRoom()}),300),a.next=20;break;case 15:a.prev=15,a.t0=a["catch"](6),t.errorMessages=[a.t0.message],t.roomsLoading=!1,t.roomFormLoading=!0;case 20:case"end":return a.stop()}}),a,null,[[6,15]])})))()},updateRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.roomFormLoading=!0,t.successMessages=[],t.errorMessages=[],s={name:e.name},e.relationsRoomGate&&(s.relationsRoomGate=e.relationsRoomGate.map((function(e){return{gateId:e.gateId,entryExitType:0}}))),a.prev=6,a.next=9,Sl.room.putRoom(t,e.roomId,s);case 9:t.successMessages=["部屋情報を更新しました。"],r=t.allRooms.findIndex((function(t){return t.roomId===e.roomId})),t.$set(t.allRooms,r,e),t.setRoom(e),t.inAllRoomSearchValue.text="",t.isAllRoomModalShow&&t.loadInAllRoom(),t.isLookRoomModalShow&&t.loadRoomById(),a.next=21;break;case 18:a.prev=18,a.t0=a["catch"](6),t.errorMessages=[a.t0.message];case 21:t.roomsLoading=!1,t.roomFormLoading=!1;case 23:case"end":return a.stop()}}),a,null,[[6,18]])})))()},clicklookroom:function(e){this.roomInfo=e,this.isLookRoomModalShow=!0,this.allControllerGates=[],this.successMessages=[],this.errorMessages=[]},closeLookRoom:function(){this.isLookRoomModalShow=!1,this.successMessages=[],this.errorMessages=[]},ChangeProperty:function(){this.isLookRoomModalShow=!1,this.isAllRoomModalShow=!1},clicAllRoom:function(){this.isAllRoomModalShow=!0,this.inAllRoom=[],this.successMessages=[],this.errorMessages=[],this.loadInAllRoom()},closeAllRoom:function(){this.isAllRoomModalShow=!1,this.errorMessages=[],this.successMessages=[]},searchInAllRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inAllRoomSearchValue=e,t.loadInAllRoom();case 2:case"end":return a.stop()}}),a)})))()},loadInAllRoom:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.inAllRoomLoading=!0,e.inAllRoom=[],t.prev=2,t.next=5,Sl.room.getRoomsByKeyword(e,e.currentPage,e.inAllRoomSearchValue.text);case 5:a=t.sent,e.roomTotalCount=a.maxRecords,e.inAllRoom=a.rooms,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 13:e.inAllRoomLoading=!1;case 14:case"end":return t.stop()}}),t,null,[[2,10]])})))()},changePage:function(e){this.currentPage=e,this.loadInAllRoom()},loadRoomById:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomInfoLoading=!0,e.allControllerGates=[],t.prev=2,t.next=5,Sl.room.getRoomById(e,e.roomInfo.roomId);case 5:return a=t.sent,t.next=8,e.loadAllControllerGates().then((function(){e.roomInfoLoading=!1}));case 8:e.roomInfo={roomId:a.roomId,name:a.name,relationsRoomGate:a.relationsRoomGate},t.next=15;break;case 11:t.prev=11,t.t0=t["catch"](2),e.roomInfoLoading=!1,e.errorMessages=[t.t0.message];case 15:case"end":return t.stop()}}),t,null,[[2,11]])})))()},initializePageUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomsLoading=!0,e.initializeRoomsData(),t.prev=2,t.next=5,Sl.room.getAllRooms(e);case 5:e.allRooms=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 11:e.allRooms.length>0&&(e.room=e.allRooms[0]);case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()}}}),_D=SD,PD=Object(I["a"])(_D,wD,kD,!1,null,null,null),MD=PD.exports,LD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"in-room-management-page"},[a("in-room-template",{attrs:{loading:e.roomsLoading,"success-messages":e.successMessages,"error-messages":e.errorMessages,tab:e.currentTab,rooms:e.allRooms,"room-loading":e.roomLoading,room:e.room,"room-success-messages":e.roomSuccessMessages,"room-error-messages":e.roomErrorMessages,"in-room-user-loading":e.inRoomUserLoading,"in-room-users":e.inRoomUsers,"in-room-user-total-count":e.inRoomUserTotalCount,"in-room-user-page":e.inRoomUserPage,"in-room-user-per-page":e.inRoomUserPerPage,"in-room-user-search-value":e.inRoomUserSearchValue,"room-room-log-loading":e.roomRoomLogLoading,"room-room-logs":e.roomRoomLogs,"room-room-log-total-count":e.roomRoomLogTotalCount,"room-room-log-page":e.roomRoomLogPage,"room-room-log-per-page":e.roomRoomLogPerPage,"room-room-log-date":e.roomRoomLogDate,"room-room-log-search-value":e.roomRoomLogSearchValue,"room-room-log-progress-message":e.roomRoomLogProgressMessage,"room-room-log-progress-error-message":e.roomRoomLogProgressErrorMessage,"user-room-log-loading":e.userRoomLogLoading,user:e.user,"user-room-logs":e.userRoomLogs,"user-room-log-date":e.userRoomLogDate,"user-room-log-progress-message":e.userRoomLogProgressMessage,"user-room-log-progress-error-message":e.userRoomLogProgressErrorMessage,"user-room-log-success-messages":e.userRoomLogSuccessMessages,"user-room-log-error-messages":e.userRoomLogErrorMessages,"room-form-loading":e.roomFormLoading,"room-form-success-messages":e.roomFormSuccessMessages,"room-form-error-messages":e.roomFormErrorMessages,"all-gates":e.allControllerGates,tabItemsUI:e.tabItems,userFullList:e.userFullList,"in-all-room":e.inAllRoom,"room-info":e.roomInfo,"in-all-room-loading":e.inAllRoomLoading,"in-all-room-search-value":e.inAllRoomSearchValue,"room-total-count":e.roomTotalCount,authority:e.authority,page:e.currentPage,"room-info-loading":e.roomInfoLoading,isLookRoomModalShow:e.isLookRoomModalShow,isAllRoomModalShow:e.isAllRoomModalShow,userTotalCount:e.userTotalCount},on:{"input-tab":function(t){e.currentTab=t},"click-room":e.clickRoom,"start-create-room":e.startCreateRoom,"start-edit-room":e.startEditRoom,"click-tab":e.clickTab,"click-in-room-user":e.clickInRoomUser,"change-in-room-user-sort":e.changeInRoomUserSort,"change-in-room-user-page":e.changeInRoomUserPage,"search-in-room-user":e.searchInRoomUser,"input-in-room-user-search-value":function(t){e.inRoomUserSearchValue=t},"reload-in-room-user":e.reloadInRoomUser,"input-room-room-log-date":e.inputRoomRoomLogDate,"change-room-room-log-page":e.changeRoomRoomLogPage,"search-room-room-log":e.searchRoomRoomLog,"input-room-room-log-search-value":function(t){e.roomRoomLogSearchValue=t},"reload-room-room-log":e.reloadRoomRoomLog,"click-export-room-room-log-excel":e.exportRoomRoomLogExcel,"input-user-room-log-date":e.inputUserRoomLogDate,"reload-user-room-log":e.reloadUserRoomLog,"click-export-user-room-log-excel":e.exportUserRoomLogExcel,"delete-room":e.deleteRoom,"create-room":e.createRoom,"update-room":e.updateRoom,clicklookroom:e.clicklookroom,ChangeProperty:e.ChangeProperty,clicAllRoom:e.clicAllRoom,"close-look-room":e.closeLookRoom,"close-all-room":e.closeAllRoom,"load-in-all-room":e.loadInAllRoom,"input-in-all-room-search-value":function(t){e.inAllRoomSearchValue=t},"search-in-all-room":e.searchInAllRoom,"change-page":function(t){return e.changePage(t)},"load-room-by-id":e.loadRoomById,"loading-from-child":function(t){return e.$emit("loading",t)}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},DD=[],GD=f["a"].extend({name:"InRoomManagementUserPage",components:{InRoomTemplate:cD},data:function(){return{value:{roomId:"",name:""},currentTab:dL,successMessages:[],errorMessages:[],roomsLoading:!1,allRooms:[],roomFormLoading:!1,roomFormSuccessMessages:[],roomFormErrorMessages:[],allControllerGates:[],roomLoading:!1,room:{roomId:"",name:""},roomSuccessMessages:[],roomErrorMessages:[],inRoomUserLoading:!1,inRoomUsers:[],inRoomUserTotalCount:0,inRoomUserPage:1,inRoomUserPerPage:100,inRoomUserSearchValue:{text:"",targets:["userId","name"]},inRoomUserSortBy:"name",inRoomUserSortOrder:js,roomRoomLogLoading:!1,roomRoomLogs:[],roomRoomLogTotalCount:0,roomRoomLogPage:1,roomRoomLogPerPage:100,roomRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),roomRoomLogSearchValue:{text:"",targets:["userName"]},roomRoomLogProgressMessage:"",roomRoomLogProgressErrorMessage:"",inAllRoomLoading:!1,inAllRoom:[],roomInfo:{roomId:"",name:"",relationsRoomGate:[]},inAllRoomSearchValue:{text:"",targets:["name"]},roomTotalCount:0,currentPage:1,roomEdit:{roomId:"",name:""},authority:er.state.auth,roomInfoLoading:!1,userRoomLogLoading:!1,user:{userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0},userRoomLogs:[],userRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),userRoomLogProgressMessage:"",userRoomLogProgressErrorMessage:"",userRoomLogSuccessMessages:[],userRoomLogErrorMessages:[],isLookRoomModalShow:!1,isAllRoomModalShow:!1,tabItems:[{text:"在室中ユーザー",value:cL},{text:"在室履歴",value:uL}],userFullList:[],userTotalCount:0}},mounted:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$emit("activeMenu","in-room-management/user"),e.tabItems=[{text:"在室履歴",value:dL}],e.roomsLoading=!0,e.roomLoading=!0,e.inRoomUserLoading=!0,e.userTotalCount=0,e.userFullList=[],null===e.$route.query.userId||void 0===e.$route.query.userId){t.next=13;break}return e.clickInRoomUser(e.$route.query.userId.toString()),t.next=11,e.getAllUsers(1);case 11:t.next=16;break;case 13:return t.next=15,e.getAllUsers(1);case 15:e.clickInRoomUser(e.userFullList[0].userId);case 16:e.currentTab=dL,e.roomLoading=!1,e.roomsLoading=!1;case 19:case"end":return t.stop()}}),t)})))()},watch:{roomsLoading:function(e){}},methods:{initializePage:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.loadAllRooms();case 2:e.allRooms.length>0&&e.setRoom(e.allRooms[0]);case 3:case"end":return t.stop()}}),t)})))()},loadAllRooms:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomsLoading=!0,e.initializeRoomsData(),t.prev=2,t.next=5,Sl.room.getAllRooms(e);case 5:e.allRooms=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 11:e.roomsLoading=!1;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initializeRoomsData:function(){this.allRooms=[]},setRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.room=e,t.initializeRoomData(),t.loadInRoomUsers(),t.currentTab===uL&&t.loadRoomRoomLogs();case 4:case"end":return a.stop()}}),a)})))()},initializeRoomData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.inRoomUsers=[],this.inRoomUserTotalCount=0,this.inRoomUserPage=1,this.inRoomUserPerPage=100,this.inRoomUserSearchValue.text="",this.roomRoomLogs=[],this.roomRoomLogTotalCount=0,this.roomRoomLogPage=1,this.roomRoomLogPerPage=100,this.roomRoomLogSearchValue.text="",this.user={userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0},this.userRoomLogs=[],this.userRoomLogProgressMessage="",this.userRoomLogProgressErrorMessage=""},loadInRoomUsers:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.inRoomUserLoading=!0,e.initializeInRoomUserData(),t.prev=2,a={page:String(e.inRoomUserPage),limit:String(e.inRoomUserPerPage),sortKey:"".concat(e.inRoomUserSortOrder,":").concat(e.inRoomUserSortBy)},""!==e.inRoomUserSearchValue.text&&(a.keyword=e.inRoomUserSearchValue.text,a.scorp=e.inRoomUserSearchValue.targets.join(",")),t.next=7,Sl.room.getInRoomUsers(e,e.room.roomId,a);case 7:s=t.sent,e.inRoomUserTotalCount=s.maxRecords,e.inRoomUsers=s.users,e.room.roomUserCount=s.maxRecords,r=e.allRooms.findIndex((function(t){return t.roomId===e.room.roomId})),e.$set(e.allRooms[r],"roomUserCount",s.maxRecords),t.next=18;break;case 15:t.prev=15,t.t0=t["catch"](2),e.roomErrorMessages=[t.t0.message];case 18:e.inRoomUserLoading=!1;case 19:case"end":return t.stop()}}),t,null,[[2,15]])})))()},initializeInRoomUserData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.inRoomUsers=[],this.inRoomUserTotalCount=0},loadRoomRoomLogs:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomRoomLogLoading=!0,e.initializeRoomRoomLogData(),t.prev=2,a={page:String(e.roomRoomLogPage),limit:String(e.roomRoomLogPerPage),date:e.roomRoomLogDate,sortKey:"".concat(js,":userName")},""!==e.roomRoomLogSearchValue.text&&(a.keyword=e.roomRoomLogSearchValue.text,a.scorp=e.roomRoomLogSearchValue.targets.join(",")),t.next=7,Sl.log.getRoomRoomLogs(e,e.room.roomId,a);case 7:s=t.sent,e.roomRoomLogTotalCount=s.maxRecords,e.roomRoomLogs=s.users,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](2),e.roomErrorMessages=[t.t0.message];case 15:e.roomRoomLogLoading=!1;case 16:case"end":return t.stop()}}),t,null,[[2,12]])})))()},initializeRoomRoomLogData:function(){this.roomSuccessMessages=[],this.roomErrorMessages=[],this.roomRoomLogs=[],this.roomRoomLogTotalCount=0},loadAllControllerGates:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomFormLoading=!0,e.initializeControllerGatesData(),t.prev=2,t.next=5,Sl.controller.getAllControllerGates(e);case 5:e.allControllerGates=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.roomFormErrorMessages=[t.t0.message];case 11:e.roomFormLoading=!1;case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initializeControllerGatesData:function(){this.roomFormSuccessMessages=[],this.roomFormErrorMessages=[],this.allControllerGates=[]},clickRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=t.allRooms.find((function(t){return t.roomId===e})),s&&t.room.roomId!==s.roomId&&t.setRoom(s);case 2:case"end":return a.stop()}}),a)})))()},startCreateRoom:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.value={roomId:"",name:""},e.loadAllControllerGates();case 2:case"end":return t.stop()}}),t)})))()},startEditRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.value=e,t.roomEdit=e,t.loadAllControllerGates();case 3:case"end":return a.stop()}}),a)})))()},clickTab:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e===cL?t.loadInRoomUsers():e===uL&&t.loadRoomRoomLogs();case 1:case"end":return a.stop()}}),a)})))()},clickInRoomUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.userRoomLogDate=t.currentTab===uL?t.roomRoomLogDate:new Date(Date.now()+324e5).toISOString().slice(0,10),t.user.userId!==e&&(t.user={userId:"",name:"",furigana:"",email:"",phoneNumber:"",isAdmin:!1,isPhoneAdmin:!1,shareKeyBeValid:!1,isMfaSms:!1,passCode:"",isValid:!1,option1:"",option2:"",isPasswordLoginValid:!1,groupCount:0,gateCount:0,timelimitedGateCount:0}),a.next=4,t.loadUserRoomLogs(e);case 4:case"end":return a.stop()}}),a)})))()},loadUserRoomLogs:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.userRoomLogLoading=!0,t.initializeUserRoomLogData(),a.prev=2,t.user.userId===e){a.next=7;break}return a.next=6,Sl.user.getUser(t,e);case 6:t.user=a.sent;case 7:return s={page:"1",limit:"1000",date:t.userRoomLogDate,sortKey:"".concat(js,":roomName")},a.next=10,Sl.log.getUserRoomLogs(t,e,s);case 10:r=a.sent,t.userRoomLogs=r.rooms,a.next=17;break;case 14:a.prev=14,a.t0=a["catch"](2),t.userRoomLogErrorMessages=[a.t0.message];case 17:t.userRoomLogLoading=!1;case 18:case"end":return a.stop()}}),a,null,[[2,14]])})))()},initializeUserRoomLogData:function(){this.userRoomLogSuccessMessages=[],this.userRoomLogErrorMessages=[],this.userRoomLogs=[]},changeInRoomUserSort:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=t.inRoomUserSortBy,r=t.inRoomUserSortOrder,t.inRoomUserSortBy=0===e.sortBy.length?"name":e.sortBy[0],t.inRoomUserSortOrder=0===e.sortDesc.length?js:e.sortDesc[0]?Fs:js,s===t.inRoomUserSortBy&&r===t.inRoomUserSortOrder||t.loadInRoomUsers();case 5:case"end":return a.stop()}}),a)})))()},changeInRoomUserPage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inRoomUserPage!==e&&(t.inRoomUserPage=e,t.loadInRoomUsers());case 1:case"end":return a.stop()}}),a)})))()},searchInRoomUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inRoomUserSearchValue=e,t.loadInRoomUsers();case 2:case"end":return a.stop()}}),a)})))()},reloadInRoomUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadInRoomUsers();case 1:case"end":return t.stop()}}),t)})))()},inputRoomRoomLogDate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogDate!==e&&(t.roomRoomLogDate=e,t.loadRoomRoomLogs());case 1:case"end":return a.stop()}}),a)})))()},changeRoomRoomLogPage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogPage!==e&&(t.roomRoomLogPage=e,t.loadRoomRoomLogs());case 1:case"end":return a.stop()}}),a)})))()},searchRoomRoomLog:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.roomRoomLogSearchValue=e,t.loadRoomRoomLogs();case 2:case"end":return a.stop()}}),a)})))()},reloadRoomRoomLog:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadRoomRoomLogs();case 1:case"end":return t.stop()}}),t)})))()},exportRoomRoomLogExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomRoomLogProgressErrorMessage="",e.roomRoomLogProgressMessage="出力準備中です。",a=new bD,t.prev=3,e.roomRoomLogProgressMessage="テンプレートをクラウドから取得しています。",t.next=7,a.downloadExcelFromCloud(e);case 7:return e.roomRoomLogProgressMessage="クラウドからログ情報を取得しています。",t.next=10,Sl.log.getAllRoomRoomLogs(e,e.room.roomId,e.roomRoomLogDate);case 10:return s=t.sent,e.roomRoomLogProgressMessage="出力するExcelデータを生成しています。",t.next=14,a.inputData(e.roomRoomLogDate,e.room,s);case 14:return e.roomRoomLogProgressMessage="出力しています。",t.next=17,a.downloadExcel();case 17:e.roomRoomLogProgressMessage="",t.next=24;break;case 20:t.prev=20,t.t0=t["catch"](3),e.roomRoomLogProgressErrorMessage=t.t0.message,e.roomRoomLogProgressMessage="";case 24:case"end":return t.stop()}}),t,null,[[3,20]])})))()},inputUserRoomLogDate:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.userRoomLogDate!==e&&(t.userRoomLogDate=e,t.loadUserRoomLogs(t.user.userId));case 1:case"end":return a.stop()}}),a)})))()},reloadUserRoomLog:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loadUserRoomLogs(e.user.userId);case 1:case"end":return t.stop()}}),t)})))()},exportUserRoomLogExcel:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.userRoomLogProgressErrorMessage="",e.userRoomLogProgressMessage="出力準備中です。",a=new vD,t.prev=3,e.userRoomLogProgressMessage="テンプレートをクラウドから取得しています。",t.next=7,a.downloadExcelFromCloud(e);case 7:return e.userRoomLogProgressMessage="出力するExcelデータを生成しています。",t.next=10,a.inputData(e.userRoomLogDate,e.user,e.userRoomLogs);case 10:return e.userRoomLogProgressMessage="出力しています。",t.next=13,a.downloadExcel();case 13:e.userRoomLogProgressMessage="",t.next=20;break;case 16:t.prev=16,t.t0=t["catch"](3),e.userRoomLogProgressErrorMessage=t.t0.message,e.userRoomLogProgressMessage="";case 20:case"end":return t.stop()}}),t,null,[[3,16]])})))()},deleteRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.successMessages=[],t.errorMessages=[],a.prev=3,a.next=6,Sl.room.deleteRoom(t,e);case 6:t.successMessages=["部屋を削除しました。"],t.initializePage(),t.isAllRoomModalShow&&t.loadInAllRoom(),a.next=15;break;case 11:a.prev=11,a.t0=a["catch"](3),t.errorMessages=[a.t0.message],t.roomsLoading=!1;case 15:case"end":return a.stop()}}),a,null,[[3,11]])})))()},createRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.successMessages=[],t.errorMessages=[],s={name:e.name},e.relationsRoomGate&&(s.relationsRoomGate=e.relationsRoomGate.map((function(e){return{gateId:e.gateId,entryExitType:0}}))),a.prev=5,a.next=8,Sl.room.postRoom(t,s);case 8:t.successMessages=["新しい部屋を作成しました。"],t.initializePage(),t.inAllRoomSearchValue.text="",t.isAllRoomModalShow&&t.loadInAllRoom(),a.next=18;break;case 14:a.prev=14,a.t0=a["catch"](5),t.errorMessages=[a.t0.message],t.roomsLoading=!1;case 18:case"end":return a.stop()}}),a,null,[[5,14]])})))()},updateRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.roomsLoading=!0,t.successMessages=[],t.errorMessages=[],s={name:e.name},e.relationsRoomGate&&(s.relationsRoomGate=e.relationsRoomGate.map((function(e){return{gateId:e.gateId,entryExitType:0}}))),a.prev=5,a.next=8,Sl.room.putRoom(t,e.roomId,s);case 8:t.successMessages=["部屋情報を更新しました。"],r=t.allRooms.findIndex((function(t){return t.roomId===e.roomId})),t.$set(t.allRooms,r,e),t.setRoom(e),t.inAllRoomSearchValue.text="",t.isAllRoomModalShow&&t.loadInAllRoom(),t.isLookRoomModalShow&&t.loadRoomById(),a.next=20;break;case 17:a.prev=17,a.t0=a["catch"](5),t.errorMessages=[a.t0.message];case 20:t.roomsLoading=!1;case 21:case"end":return a.stop()}}),a,null,[[5,17]])})))()},clicklookroom:function(e){this.roomInfo=e,this.isLookRoomModalShow=!0,this.allControllerGates=[],this.successMessages=[],this.errorMessages=[]},closeLookRoom:function(){this.isLookRoomModalShow=!1,this.successMessages=[],this.errorMessages=[]},ChangeProperty:function(){this.isLookRoomModalShow=!1,this.isAllRoomModalShow=!1},clicAllRoom:function(){this.isAllRoomModalShow=!0,this.inAllRoom=[],this.successMessages=[],this.errorMessages=[],this.loadInAllRoom()},closeAllRoom:function(){this.isAllRoomModalShow=!1,this.successMessages=[],this.errorMessages=[]},searchInAllRoom:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.inAllRoomSearchValue=e,t.loadInAllRoom();case 2:case"end":return a.stop()}}),a)})))()},loadInAllRoom:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.inAllRoomLoading=!0,e.inAllRoom=[],t.prev=2,t.next=5,Sl.room.getRoomsByKeyword(e,e.currentPage,e.inAllRoomSearchValue.text);case 5:a=t.sent,e.roomTotalCount=a.maxRecords,e.inAllRoom=a.rooms,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 13:e.inAllRoomLoading=!1;case 14:case"end":return t.stop()}}),t,null,[[2,10]])})))()},changePage:function(e){this.currentPage=e,this.loadInAllRoom()},loadRoomById:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomInfoLoading=!0,e.allControllerGates=[],t.prev=2,t.next=5,Sl.room.getRoomById(e,e.roomInfo.roomId);case 5:return a=t.sent,t.next=8,e.loadAllControllerGates().then((function(){e.roomInfoLoading=!1}));case 8:e.roomInfo={roomId:a.roomId,name:a.name,relationsRoomGate:a.relationsRoomGate},t.next=15;break;case 11:t.prev=11,t.t0=t["catch"](2),e.roomInfoLoading=!1,e.errorMessages=[t.t0.message];case 15:case"end":return t.stop()}}),t,null,[[2,11]])})))()},initializePageUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.roomsLoading=!0,e.initializeRoomsData(),t.prev=2,t.next=5,Sl.room.getAllRooms(e);case 5:e.allRooms=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](2),e.errorMessages=[t.t0.message];case 11:e.allRooms.length>0&&(e.room=e.allRooms[0]);case 12:case"end":return t.stop()}}),t,null,[[2,8]])})))()},getAllUsers:function(e){var t=this;return new Promise((function(a,s){t.$http.get(Ne+"?limit=10000&page="+e+"&isExceptOptionalUser=true&isValid=true").then((function(s){t.userTotalCount=s.body.maxRecords,s.body.maxRecords>0?(s.body.users.forEach((function(e){t.userFullList.push(e)})),s.body.maxRecords>s.body.endRecord&&t.getAllUsers(e+1),a(!0)):(t.userFullList=[],a(!1))})).then(null,(function(e){console.log("err: ",e),a(!1)}))}))}}}),AD=GD,RD=Object(I["a"])(AD,LD,DD,!1,null,null,null),TD=RD.exports,ED=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("external-list-template",{attrs:{externalList:e.externalList},on:{"card-click":e.cardClick}})},OD=[],VD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("v-card",{staticClass:"pa-6 pr-10 mb-5",attrs:{elevation:"3"}},[a("v-row",[a("v-col",{staticClass:"ml-4 mb-4 text-subtitle-2 font-weight-bold"},[e._v("\n 外部連携設定一覧\n ")])],1),e._v(" "),a("v-row",e._l(e.externalList,(function(t){return a("card-link",{key:JSON.stringify(t),staticClass:"border col-2",class:{commingsoon:t.isComingSoon},attrs:{width:400},on:{click:function(a){return e.$emit("card-click",t)}},scopedSlots:e._u([{key:"cardbody",fn:function(){return[a("v-row",{staticClass:"full-height",attrs:{align:"center"}},[t.imgSrc?a("v-col",{staticClass:"mx-auto",attrs:{cols:"auto","align-self":"center"}},[a("v-img",{attrs:{src:t.imgSrc,"max-width":"380","max-height":"360"}})],1):e._e(),e._v(" "),t.imgSrc2?a("v-col",{staticClass:"mx-auto",attrs:{cols:"auto","align-self":"center"}},[a("v-img",{attrs:{src:t.imgSrc2,"max-width":"380","max-height":"360"}})],1):e._e(),e._v(" "),a("v-col",{attrs:{cols:"12","align-self":"center"}},[a("div",{staticClass:"text-center"},[e._v(e._s(t.name))])])],1)]},proxy:!0}],null,!0)})})),1)],1)],1)},UD=[],$D=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-card",{staticClass:"rounded-lg mt-4 ml-4 pa-2",attrs:{width:e.width},on:{click:function(t){return e.$emit("click",t)}}},[e._t("cardbody",[e._v("\n "+e._s(e.text)+"\n ")])],2)},ND=[],FD=f["a"].extend({name:"CardLink",props:{text:{type:String,default:function(){return""}},width:{type:Number,default:function(){return 400}}}}),jD=FD,BD=(a("fd8c"),Object(I["a"])(jD,$D,ND,!1,null,"a35b9254",null)),zD=BD.exports;C()(BD,{VCard:Pr["a"]});var HD=f["a"].extend({name:"ExternalListTemplate",components:{InputForm:io,TextLink:No,SuccessButton:kr,CancelButton:fr,CardLink:zD},props:{externalList:{type:Array,default:function(){return[]}}}}),KD=HD,YD=(a("af68"),Object(I["a"])(KD,VD,UD,!1,null,"e1d1027e",null)),qD=YD.exports;C()(YD,{VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VImg:cS["a"],VRow:Kr["a"]});var WD=nr["a"].extend({name:"ExternalListPage",components:{ExternalListTemplate:qD},data:function(){return{externalList:[{fullPath:Ae,isAbountLink:!0,name:"TeamSpirit連携",imgSrc:a("e039"),isComingSoon:!1},{fullPath:Re,isAbountLink:!0,name:"ジョブカン連携",imgSrc:a("300e"),isComingSoon:!1},{fullPath:Te,isAbountLink:!0,name:"KING OF TIME連携",imgSrc:a("a496"),isComingSoon:!1},{fullPath:"",isAbountLink:!0,name:"準備中",imgSrc:a("41d7"),isComingSoon:!1},{path:Vt,isAbountLink:!1,name:"Safie連携",imgSrc:a("f384"),isComingSoon:!1},{path:Ut,isAbountLink:!1,name:"TBEYE社製カメラレコーダーNVR連携",imgSrc:a("21cf"),isComingSoon:!1},{path:Bt,isAbountLink:!1,name:"顔認証連携",isComingSoon:!1}]}},methods:{cardClick:function(e){e.fullPath&&!0===e.isAbountLink?window.open(e.fullPath,"_blank"):e.fullPath&&!1===e.isAbountLink?window.open(e.fullPath):e.path&&!0===e.isAbountLink?window.open(e.path,"_blank"):this.$router.push({path:e.path})}}}),JD=WD,ZD=Object(I["a"])(JD,ED,OD,!1,null,null,null),XD=ZD.exports,QD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("safie-template",{attrs:{loading:e.loading,putDelLoading:e.putDelLoading,postLoading:e.postLoading,safieRelationGateDevices:e.safieRelationGateDevices,addNewRelationGateDevices:e.newSafieRelationGateDevices,gateFullList:e.gateFullList,results:e.results},on:{"add-new-record":function(t){return e.addNewRecord()},"del-new-record":e.delNewRecord,"form-update":e.formUpdate,"new-form-update":e.formUpdateNew,"put-record":e.putSafieRelationGateDevice,"post-record":e.postSafieRelationGateDevice,"delete-record":e.deleteSafieRelationGateDevice}})},eG=[],tG=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[a("v-card",{staticClass:"pa-6 pr-10 mb-5",attrs:{elevation:"3"}},[a("v-row",[a("v-col",{staticClass:"ml-4 mb-4 text-subtitle-2 font-weight-bold"},[e._v("\n Safie連携サービス\n "),a("a",{attrs:{target:"_blank",href:"https://support.alligate.me/hc/ja/articles/16263260403737"}},[a("v-icon",[e._v("mdi-information")])],1)])],1),e._v(" "),a("relations-safie-list",{attrs:{configurableGates:e.configurableGates,safieRelationGateDevices:e.safieRelationGateDevices,addNewRelationGateDevices:e.addNewRelationGateDevices,loading:e.loading,putDelLoading:e.putDelLoading,postLoading:e.postLoading,results:e.results},on:{"add-new-record":function(t){return e.$emit("add-new-record")},"del-new-record":function(t){return e.$emit("del-new-record",t)},"form-update":function(t){return e.$emit("form-update",t)},"new-form-update":function(t){return e.$emit("new-form-update",t)},"put-record":function(t){return e.$emit("put-record",t)},"post-record":function(t){return e.$emit("post-record",t)},"delete-record":function(t){return e.$emit("delete-record",t)}}})],1)],1)},aG=[],sG=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-container",[e._l(e.results,(function(t,s){return a("v-row",{key:s},[a("alert",{staticClass:"col-12",attrs:{text:t.message?t.message:"",type:t.type?t.type:"success",value:e.isDisplayMessage[s]},on:{input:function(t){e.isDisplayMessage[s]=t}}})],1)})),e._v(" "),a("v-row",[a("v-col",[e._v("カメラ名称")]),e._v(" "),a("v-col",[e._v("SafieデバイスID")]),e._v(" "),a("v-col",[e._v("紐づけるゲート")]),e._v(" "),a("v-col",{attrs:{cols:1}})],1),e._v(" "),a("transition-group",{attrs:{name:"fade"}},e._l(e.safieRelationGateDevices,(function(t,s){return a("relation-safie-target",{key:t.relationId,attrs:{configurableGates:e.configurableGates,loading:e.putDelLoading[s],index:s,value:t},on:{input:function(t){return e.$emit("form-update",{index:s,value:t})},"put-record":function(t){return e.$emit("put-record",s)},"delete-record":function(t){return e.$emit("delete-record",s)}}})})),1),e._v(" "),e._l(e.addNewRelationGateDevices,(function(t,s){return a("relation-safie-target",{key:e.newRecordKey[s],attrs:{configurableGates:e.configurableGates,loading:e.postLoading[s],index:s,value:t},on:{input:function(t){return e.$emit("new-form-update",{index:s,value:t})},"post-record":function(t){e.$emit("post-record",s),e.del(s)},"delete-record":function(t){e.$emit("del-new-record",s),e.del(s)}}})})),e._v(" "),a("v-row",[a("v-col",{attrs:{offset:1}},[a("icon-button",{attrs:{text:"追加",icon:"mdi-plus mdi-18px"},on:{click:function(t){e.$emit("add-new-record"),e.add()}}})],1)],1),e._v(" "),e.loading?a("loading"):e._e()],2)},rG=[],oG=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-row",{staticClass:"align-center"},[e.loading?a("v-progress-circular",{attrs:{color:"green",indeterminate:""}}):e._e(),e._v(" "),a("v-col",[a("input-form",{attrs:{inputType:"text",rules:[]},model:{value:e.notes,callback:function(t){e.notes=t},expression:"notes"}})],1),e._v(" "),a("v-col",[a("input-form",{attrs:{inputType:"text",rules:[e.isValidateLengthOneMore,e.isValidateHalfAlphaNumeric],appendIcon:e.isLengthOneMore(e.deviceId)?"mdi-video":""},on:{"click-append-icon":function(t){return e.linkTo(e.deviceId)}},model:{value:e.deviceId,callback:function(t){e.deviceId=t},expression:"deviceId"}})],1),e._v(" "),a("v-col",[a("input-form",{attrs:{inputType:"select",rules:[e.isValidateLengthOneMore],selectItems:e.configurableGates},model:{value:e.gateId,callback:function(t){e.gateId=t},expression:"gateId"}})],1),e._v(" "),e.isLengthOneMore(e.value.relationId)?a("success-button",{staticClass:"m-sm",attrs:{disabled:!1===e.isModified||!1===e.isValidate()||!0===e.loading,text:"保存"},on:{click:function(t){return e.putRecord(e.value)}}}):a("success-button",{staticClass:"m-sm",attrs:{disabled:!1===e.isModified||!1===e.isValidate()||!0===e.loading,text:"登録"},on:{click:function(t){return e.postRecord(e.value)}}}),e._v(" "),a("error-button",{staticClass:"m-sm",attrs:{disabled:!0===e.loading,text:"削除"},on:{click:function(t){return e.delRecord(e.value)}}})],1)},nG=[],iG=f["a"].extend({name:"RelationSafieTarget",components:{Modal:bn,Loading:Yu,InputForm:io,SuccessButton:kr,ErrorButton:kn,IconButton:td,Alert:Ou},data:function(){return{beforeDeviceId:"",beforeGateId:"",beforeNotes:""}},props:{index:{type:Number,default:function(){return 0}},value:{type:Object,default:function(){return{relationId:"",gateId:"",deviceId:"",notes:""}}},configurableGates:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},loading:{type:Boolean,default:function(){return!1}}},mounted:function(){this.beforeGateId=JSON.parse(JSON.stringify(this.value.gateId)),this.beforeDeviceId=JSON.parse(JSON.stringify(this.value.deviceId)),this.beforeNotes=JSON.parse(JSON.stringify(this.value.notes))},computed:{isRelationIdLengthZero:function(){return window.console.log(this.value.relationId.length),0===this.value.relationId.length},gateId:{get:function(){return this.value.gateId},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{gateId:e}))}},notes:{get:function(){return this.value.notes},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{notes:e}))}},deviceId:{get:function(){return this.value.deviceId},set:function(e){this.$emit("input",Object(Dc["a"])(Object(Dc["a"])({},this.value),{},{deviceId:e}))}},isModified:function(){return Boolean(this.beforeNotes!==this.value.notes||this.beforeGateId!==this.value.gateId||this.beforeDeviceId!==this.value.deviceId)}},methods:{isValidate:function(){return!0===this.isValidateHalfAlphaNumeric(this.value.deviceId)&&!0===this.isLengthOneMore(this.value.deviceId)&&!0===this.isGateIdChoice()},isLengthOneMore:function(e){return!!(e&&e.length>0)},isValidateLengthOneMore:function(e){return!!this.isLengthOneMore(e)||"必須項目のため、一つ以上の指定が必須です。"},isValidateHalfAlphaNumeric:function(e){return!(!e||!e.match(/^[a-zA-Z0-9]{1,40}$/))||"半角英数のみの指定が可能です。"},isGateIdChoice:function(){return!0===this.configurableGates.map((function(e){return e.value})).includes(this.value.gateId)},postRecord:function(){this.isGateIdChoice()&&this.isLengthOneMore(this.value.deviceId)&&this.$emit("post-record",this.value)},putRecord:function(){!0===this.isModified&&this.isGateIdChoice()&&this.isLengthOneMore(this.value.deviceId)&&(this.$emit("put-record",this.value),this.beforeDeviceId=this.value.deviceId,this.beforeGateId=this.value.gateId,this.beforeNotes=this.value.notes)},delRecord:function(e){var t=this,a=this.configurableGates.find((function(e){return e.value===t.beforeGateId}));(void 0===a&&window.confirm("追加せずに削除しますか?")||a&&window.confirm("SafieDevice(".concat(this.beforeDeviceId,")と").concat(a.text,"の紐づけを解除しますか?")))&&this.$emit("delete-record",this.value.relationId)},linkTo:function(e){window.open("https://safie.link/app/streaming/".concat(e),"_blank")}}}),lG=iG,cG=(a("f3f4"),Object(I["a"])(lG,oG,nG,!1,null,"29e5e089",null)),uG=cG.exports;C()(cG,{VCol:Dr["a"],VProgressCircular:Hu["a"],VRow:Kr["a"]});var dG=f["a"].extend({name:"RelationsSafieList",components:{Modal:bn,Loading:Yu,InputForm:io,SuccessButton:kr,CancelButton:fr,IconButton:td,Alert:Ou,RelationSafieTarget:uG},data:function(){return{newRecordKey:[],isDisplayMessage:[]}},props:{safieRelationGateDevices:{type:Array,default:function(){return[]}},addNewRelationGateDevices:{type:Array,default:function(){return[]}},configurableGates:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},loading:{type:Boolean,default:function(){return!1}},putDelLoading:{type:Array,default:function(){return[]}},postLoading:{type:Array,default:function(){return[]}},results:{type:Array,default:function(){return[]}}},methods:{add:function(){this.newRecordKey.push(gG(16))},del:function(e){this.newRecordKey.splice(e,1)}},watch:{results:function(e){console.log(e),this.isDisplayMessage.push(!0)}}});function gG(e){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a="",s=0;s0?this.gateFullList.filter((function(e,t,a){return!(e.gateName.match(/ $/)&&1===a.filter((function(t){return e.gateName.slice(0,-1)===t.gateName})).length)})).map((function(e){return{text:"".concat(e.gateName,"(").concat(e.gateId,")"),value:e.gateId}})):[{text:"ロード中",value:"select1"}]}},methods:{}}),vG=hG,bG=Object(I["a"])(vG,tG,aG,!1,null,"7533c986",null),yG=bG.exports;C()(bG,{VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VIcon:Gr["a"],VRow:Kr["a"]});var IG=nr["a"].extend({name:"SafiePage",components:{SafieTemplate:yG},data:function(){return{loading:!1,putDelLoading:[],postLoading:[],results:[],safieRelationGateDevices:[],newSafieRelationGateDevices:[],gateFullList:[],successMessageLogs:"",errorMessageLogs:""}},watch:{},created:function(){var e=this;this.loading=!0,Promise.all([this.getSafieRelationGateDevice(1),kg(this).then((function(t){return e.gateFullList=t}))]).then((function(){e.loading=!1})).catch((function(t){e.loading=!1}))},mounted:function(){this.$emit("activeMenu","safie")},methods:{formUpdate:function(e){this.$set(this.safieRelationGateDevices,e.index,e.value)},formUpdateNew:function(e){this.$set(this.newSafieRelationGateDevices,e.index,e.value)},addNewRecord:function(){this.newSafieRelationGateDevices.push({relationId:"",deviceId:"",gateId:"",notes:""})},delNewRecord:function(e){this.newSafieRelationGateDevices.splice(e,1)},deleteSafieRelationGateDevice:function(e){var t=this;this.$set(this.putDelLoading,e,!0);var a=this.safieRelationGateDevices[e];this.$http.delete("".concat(Ie,"/").concat(encodeURIComponent(a.relationId))).then((function(a){var s={type:"error",message:ba};"Success"===a.body.message?(t.safieRelationGateDevices.splice(e,1),s.type="success",s.message="削除しました。"):(s.type="error",s.message=ba),t.results.push(s),t.$set(t.putDelLoading,e,!1)})).then(null,(function(a){var s="";switch(console.log(a),a.status){case 400:s="形式が誤っている。";break;case 403:s="削除する権限がありません。";break;case 404:s="既に削除されているか存在しません。";break;case 409:s="同じタイミングで操作されたため削除できませんでした。";break;case 500:s="サーバー側で意図しないエラーが発生しました。時間を置いて再度お試し下さい。";break;case 503:s="システムメンテナンス中のため只今アクセスできません。システムメンテナンス終了後再度お試し下さい";break;default:s=ba;break}t.$set(t.putDelLoading,e,!1),t.results.push({type:"error",message:s})}))},putSafieRelationGateDevice:function(e){var t=this;this.$set(this.putDelLoading,e,!0);var a=this.safieRelationGateDevices[e];this.$http.put("".concat(Ie,"/").concat(encodeURIComponent(a.relationId)),a).then((function(a){var s={type:"error",message:ba};"Success"===a.body.message&&(s.type="success",s.message="保存しました。"),t.results.push(s),t.$set(t.putDelLoading,e,!1)})).then(null,(function(a){var s="";switch(a.status){case 400:s="形式が誤っている。";break;case 403:s="変更・保存する権限がありません。";break;case 404:s="既に削除されているか存在しません。";break;case 409:s="すでに同じデバイスIDとゲートの組み合わせがあります。";break;case 500:s="サーバー側で意図しないエラーが発生しました。時間を置いて再度お試し下さい。";break;case 503:s="システムメンテナンス中のため只今アクセスできません。システムメンテナンス終了後再度お試し下さい";break;default:s=ba;break}t.$set(t.putDelLoading,e,!1),t.results.push({type:"error",message:s})}))},postSafieRelationGateDevice:function(e){var t=this;this.$set(this.postLoading,e,!0);var a=this.newSafieRelationGateDevices[e];this.$http.post(Ie,a).then((function(s){var r={type:"error",message:ba};"Success"===s.body.message&&(r.type="success",r.message="保存しました。",a.relationId=s.body.relationId,t.newSafieRelationGateDevices.splice(e,1),t.safieRelationGateDevices.push(a)),t.results.push(r),t.$set(t.postLoading,e,!1)})).then(null,(function(a){var s="";switch(a.status){case 400:s="形式が誤っている。";break;case 403:s="登録する権限がありません。";break;case 404:s="既に削除されているか存在しません。";break;case 409:s="すでに同じデバイスIDとゲートの組み合わせがあります。";break;case 500:s="サーバー側で意図しないエラーが発生しました。時間を置いて再度お試し下さい。";break;case 503:s="システムメンテナンス中のため只今アクセスできません。システムメンテナンス終了後再度お試し下さい";break;default:s=ba;break}t.$set(t.postLoading,e,!1),t.results.push({type:"error",message:s})}))},getSafieRelationGateDevice:function(e){var t=this;return new Promise((function(a,s){var r=25,o="".concat(Ie,"?limit=").concat(r)+"&page=".concat(e,"&sortKey=ASC:gateId&isExceptOptionalGate=true");t.$http.get(o).then((function(s){if(t.isEmpty(s.body.relationsGateDevice))a();else{for(var r=s.body.relationsGateDevice,o=0;o0&&this.value.port>0&&!0===this.isLengthOneMore(this.value.hostName)&&!0===this.isGateIdChoice()},isLengthOneMore:function(e){return!!(e&&e.length>0)},isUUID:function(e){var t=new RegExp(/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/);return Boolean(t.exec(e))},isValidateLengthOneMore:function(e){return!!this.isLengthOneMore(e)||"必須項目のため、一つ以上の指定が必須です。"},isValidateOneMore:function(e){return Number(e)>0||"必須項目のため、一つ以上の指定が必須です。"},isGateIdChoice:function(){return!0===this.configurableGates.map((function(e){return e.value})).includes(this.value.gateId)},postRecord:function(){this.isGateIdChoice()&&this.isLengthOneMore(this.value.deviceType)&&this.$emit("post-record",this.value)},putRecord:function(){!0===this.isModified&&this.isValidate()&&(this.$emit("put-record",this.value),this.beforeDeviceType=this.value.deviceType,this.beforeGateId=this.value.gateId,this.beforeNotes=this.value.notes,this.beforePort=this.value.port,this.beforeChannelNo=this.value.channelNo,this.beforeHostName=this.value.hostName)},delRecord:function(e){var t=this,a=this.configurableGates.find((function(e){return e.value===t.beforeGateId}));(void 0===a&&window.confirm("追加せずに削除しますか?")||a&&window.confirm("TbeyeDevice(".concat(this.beforeDeviceType,")と").concat(a.text,"の紐づけを解除しますか?")))&&this.$emit("delete-record",this.value.relationId)},closeTbEye:function(){this.showPreviewTbEye=!1},rerender:function(){var e=this;this.isRerender=!1,setTimeout((function(){e.isRerender=!0}),100)},openToLink:function(e){window.open(e,"_blank")}}}),RG=AG,TG=(a("79fd"),Object(I["a"])(RG,DG,GG,!1,null,"7402b114",null)),EG=TG.exports;C()(TG,{VCol:Dr["a"],VProgressCircular:Hu["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var OG=f["a"].extend({name:"RelationsTbEyeList",components:{Modal:bn,Loading:Yu,InputForm:io,SuccessButton:kr,CancelButton:fr,IconButton:td,Alert:Ou,RelationTbEyeTarget:EG},data:function(){return{newRecordKey:[],isDisplayMessage:[]}},props:{tbeyeRelationGateDevices:{type:Array,default:function(){return[]}},addNewRelationGateDevices:{type:Array,default:function(){return[]}},configurableGates:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},loginInfos:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:function(){return!1}},putDelLoading:{type:Array,default:function(){return[]}},postLoading:{type:Array,default:function(){return[]}},results:{type:Array,default:function(){return[]}}},methods:{add:function(){var e=VG(16);return this.newRecordKey.push(e),e},del:function(e){this.newRecordKey.splice(e,1)}},watch:{results:function(e){console.log(e),this.isDisplayMessage.push(!0)}}});function VG(e){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a="",s=0;s0?this.gateFullList.filter((function(e,t,a){return!(e.gateName.match(/ $/)&&1===a.filter((function(t){return e.gateName.slice(0,-1)===t.gateName})).length)})).map((function(e){return{text:"".concat(e.gateName,"(").concat(e.gateId,")"),value:e.gateId}})):[{text:"ロード中",value:"select1"}]}},methods:{}}),jG=FG,BG=Object(I["a"])(jG,_G,PG,!1,null,"5e02ae7e",null),zG=BG.exports;C()(BG,{VCard:Pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VIcon:Gr["a"],VRow:Kr["a"]});var HG="tbeyeLoginInfos",KG=nr["a"].extend({name:"TbEyePage",components:{TbEyeTemplate:zG},data:function(){return{loading:!1,putDelLoading:[],postLoading:[],results:[],tbeyeRelationGateDevices:[],newTbeyeRelationGateDevices:[],gateFullList:[],tbeyeLoginInfos:[],successMessageLogs:"",errorMessageLogs:""}},watch:{},created:function(){var e=this;this.loading=!0,Promise.all([this.getTbeyeRelationGateDevice(1),kg(this).then((function(t){return e.gateFullList=t})),this.getCacheTbeyeLoginInfo()]).then((function(){e.loading=!1})).catch((function(t){e.loading=!1}))},mounted:function(){this.$emit("activeMenu","external")},methods:{formUpdate:function(e){this.$set(this.tbeyeRelationGateDevices,e.index,e.value)},formUpdateNew:function(e){this.$set(this.newTbeyeRelationGateDevices,e.index,e.value)},updateLoginInfo:function(e){var t=this.tbeyeLoginInfos.findIndex((function(t){return t.relationId===e.relationId}));-1===t?this.$set(this.tbeyeLoginInfos,this.tbeyeLoginInfos.length,e):this.$set(this.tbeyeLoginInfos,t,e),this.setCacheTbeyeLoginInfo()},addNewRecord:function(e){var t=e;this.newTbeyeRelationGateDevices.push({relationId:t,hostName:"",channelNo:1,port:443,deviceType:"nvr",gateId:"",notes:""}),this.tbeyeLoginInfos.push({relationId:t,username:"",password:""})},delNewRecord:function(e){this.newTbeyeRelationGateDevices.splice(e,1)},deleteTbeyeRelationGateDevice:function(e){var t=this;this.$set(this.putDelLoading,e,!0);var a=this.tbeyeRelationGateDevices[e];this.$http.delete("".concat(xe,"/").concat(encodeURIComponent(a.relationId))).then((function(a){var s={type:"error",message:ba};"Success"===a.body.message?(t.tbeyeRelationGateDevices.splice(e,1),s.type="success",s.message="削除しました。"):(s.type="error",s.message=ba),t.results.push(s),t.$set(t.putDelLoading,e,!1)})).then(null,(function(a){var s="";switch(console.log(a),a.status){case 400:s="形式が誤っている。";break;case 403:s="削除する権限がありません。";break;case 404:s="既に削除されているか存在しません。";break;case 409:s="同じタイミングで操作されたため削除できませんでした。";break;case 500:s="サーバー側で意図しないエラーが発生しました。時間を置いて再度お試し下さい。";break;case 503:s="システムメンテナンス中のため只今アクセスできません。システムメンテナンス終了後再度お試し下さい";break;default:s=ba;break}t.$set(t.putDelLoading,e,!1),t.results.push({type:"error",message:s})}))},putTbeyeRelationGateDevice:function(e){var t=this;this.$set(this.putDelLoading,e,!0);var a=this.tbeyeRelationGateDevices[e];this.$http.put("".concat(xe,"/").concat(encodeURIComponent(a.relationId)),a).then((function(a){var s={type:"error",message:ba};"Success"===a.body.message&&(s.type="success",s.message="保存しました。"),t.results.push(s),t.$set(t.putDelLoading,e,!1)})).then(null,(function(a){var s="";switch(a.status){case 400:s="形式が誤っている。";break;case 403:s="変更・保存する権限がありません。";break;case 404:s="既に削除されているか存在しません。";break;case 409:s="すでに同じデバイスIDとゲートの組み合わせがあります。";break;case 500:s="サーバー側で意図しないエラーが発生しました。時間を置いて再度お試し下さい。";break;case 503:s="システムメンテナンス中のため只今アクセスできません。システムメンテナンス終了後再度お試し下さい";break;default:s=ba;break}t.$set(t.putDelLoading,e,!1),t.results.push({type:"error",message:s})}))},postTbeyeRelationGateDevice:function(e){var t=this;this.$set(this.postLoading,e,!0);var a=JSON.parse(JSON.stringify(this.newTbeyeRelationGateDevices[e]));this.$http.post(xe,a).then((function(s){var r={type:"error",message:ba};if("Success"===s.body.message){r.type="success",r.message="保存しました。";var o=t.tbeyeLoginInfos.findIndex((function(e){return e.relationId===a.relationId}));t.$set(t.tbeyeLoginInfos,o,{relationId:s.body.relationId,username:t.tbeyeLoginInfos[o].username,password:t.tbeyeLoginInfos[o].password}),t.setCacheTbeyeLoginInfo(),a.relationId=s.body.relationId,t.newTbeyeRelationGateDevices.splice(e,1),t.tbeyeRelationGateDevices.push(a)}t.results.push(r),t.$set(t.postLoading,e,!1)})).then(null,(function(a){var s="";switch(a.status){case 400:s="形式が誤っている。";break;case 403:s="登録する権限がありません。";break;case 404:s="既に削除されているか存在しません。";break;case 409:s="すでに同じデバイスIDとゲートの組み合わせがあります。";break;case 500:s="サーバー側で意図しないエラーが発生しました。時間を置いて再度お試し下さい。";break;case 503:s="システムメンテナンス中のため只今アクセスできません。システムメンテナンス終了後再度お試し下さい";break;default:s=ba;break}t.$set(t.postLoading,e,!1),t.results.push({type:"error",message:s})}))},getTbeyeRelationGateDevice:function(e){var t=this;return new Promise((function(a,s){var r=25,o="".concat(xe,"?limit=").concat(r)+"&page=".concat(e,"&sortKey=ASC:gateId&isExceptOptionalGate=true");t.$http.get(o).then((function(s){if(t.isEmpty(s.body.relationsGateDevice))a();else{for(var r=s.body.relationsGateDevice,o=0;o0)||"必須項目のため、入力が必須です。"},clickSaveZenescanLogin:function(){var e=this.$refs.formZenescanLogin.validate();e&&this.$emit("click-save-zenescan-login",this.value)}}}),oA=rA,nA=(a("f856"),Object(I["a"])(oA,aA,sA,!1,null,"477d01f4",null)),iA=nA.exports;C()(nA,{VCol:Dr["a"],VForm:Nl["a"],VRow:Kr["a"]});var lA=f["a"].extend({name:"ZenescanFaceDbList",components:{InputForm:io,SuccessButton:kr,CancelButton:fr,Modal:bn,Alert:Ou,ZenescanLogin:iA},props:{isVisible:{type:Boolean,default:function(){return!0}},isLoadingZenescanFaceDb:{type:Boolean,default:function(){return!1}},successMessageLogsModal:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},zenescanFaceDb:{type:Object,default:function(){return{faceDbId:"",zenescanSerialId:"",zenescanIpAddress:"",zenescanLibId:"",zenescanLibType:"",zenescanLibName:"",notes:"",status:"-"}}},zenescanFaceDbs:{type:Array,default:function(){return[]}},faceDbs:{type:Array,default:function(){return[]}},showSelect:{type:Boolean,default:!1}},data:function(){return{deleteTargetZenescanFaceDbId:"",syncTargetZenescanFaceDbId:"",isDisplaySuccessMessage:!1,isDisplayErrorMessage:!1,isDisplayDeleteConfirm:!1,isDisplaySyncConfirm:!1,perPageItemLength:10,page:1,headers:[{text:"顔DB名",align:"start",sortable:!0,value:"zenescanLibName"},{text:"IPアドレス",align:"start",sortable:!1,value:"zenescanIpAddress"},{text:"備考",align:"start",sortable:!1,value:"notes"},{text:"",align:"end",sortable:!1,value:"icons"}],selectedFaceDbIds:[],selectedItem:[],isDisplayLoginForm:!1,isOtherError:!1,loginInfo:{faceDbId:"",ipAddress:"",userName:"",userPwd:""}}},watch:{successMessageLogsModal:function(e){e.length>0?this.isDisplaySuccessMessage=!0:this.isDisplaySuccessMessage=!1},errorMessageLogsModal:function(e){e.length>0?this.isDisplayErrorMessage=!0:this.isDisplayErrorMessage=!1},selectedItem:function(e){this.selectedFaceDbIds=e.map((function(e){return e.faceDbId})),this.$emit("select-face-db",this.selectedFaceDbIds)}},computed:{displayZenescanFaceDbs:{get:function(){var e=this,t=this.zenescanFaceDbs.map((function(t){var a=e.faceDbs.findIndex((function(e){return t.zenescanLibId===e.lib_id})),s={faceDbId:t.faceDbId,zenescanLibName:-1===a?t.zenescanLibName:e.faceDbs[a].lib_name,zenescanIpAddress:t.zenescanIpAddress,zenescanLibId:t.zenescanLibId,isConnected:Boolean(t.loginInfo&&t.loginInfo.sessionid),notes:t.notes,status:t.status?t.status:"-"};return s}));return t},set:function(){}}},methods:{clickConfirmDeleteZenescanFaceDb:function(e){this.$emit("reset-msg"),this.deleteTargetZenescanFaceDbId=e,this.isDisplayDeleteConfirm=!0},deleteComfirmZenescanFaceDb:function(e){!0===e&&(this.$emit("click-delete-zenescan-face-db",this.deleteTargetZenescanFaceDbId),this.$emit("reload-zenescan-face-dbs")),this.deleteTargetZenescanFaceDbId="",this.isDisplayDeleteConfirm=!1},clickConfirmSyncZenescanFaceDb:function(e){this.$emit("reset-msg"),this.syncTargetZenescanFaceDbId=e,this.isDisplaySyncConfirm=!0},syncComfirmZenescanFaceDb:function(e){!0===e&&this.$emit("click-sync-zenescan-face-db",this.syncTargetZenescanFaceDbId),this.syncTargetZenescanFaceDbId="",this.isDisplaySyncConfirm=!1},openLoginInfoEdit:function(e){var t=this.zenescanFaceDbs.find((function(t){return t.faceDbId===e}));t&&(this.loginInfo={faceDbId:e,ipAddress:t.zenescanIpAddress,userName:t.loginInfo?t.loginInfo.userName:"",userPwd:t.loginInfo?t.loginInfo.userPwd:""}),this.isDisplayLoginForm=!0},saveLoginInfo:function(e){this.$emit("click-zenescan-face-db-access-and-save",e),this.isDisplayLoginForm=!1}}}),cA=lA,uA=(a("e2c7"),Object(I["a"])(cA,eA,tA,!1,null,"4496543d",null)),dA=uA.exports;C()(uA,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var gA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"zenescan-face-image-list"},[[a("v-container",{staticClass:"face-image-list-container",attrs:{fluid:""}},[a("alert",{attrs:{text:e.errorMessageLogsModal,type:"error"},model:{value:e.isDisplayErrorMessage,callback:function(t){e.isDisplayErrorMessage=t},expression:"isDisplayErrorMessage"}}),e._v(" "),a("alert",{attrs:{text:e.successMessageLogsModal,type:"success"},model:{value:e.isDisplaySuccessMessage,callback:function(t){e.isDisplaySuccessMessage=t},expression:"isDisplaySuccessMessage"}}),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",[a("search",{attrs:{label:"検索",searchTargetItems:e.searchTargetItems,disabled:e.isLoadingZenescanFaceImage,isVisibleButton:!0},on:{search:function(t){return e.clickSearch(t)}},model:{value:e.innerSearchValue,callback:function(t){e.innerSearchValue=t},expression:"innerSearchValue"}})],1),e._v(" "),a("v-col",{staticClass:"col-md-2 text-align-end"},[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:e.clickAddFaceImage}},[e._v("\n 顔写真を登録する\n ")])],1),e._v(" "),a("v-col",{staticClass:"col-md-2 text-align-end"},[a("action-button",{attrs:{text:"アクション ▼","action-items":e.actionItems,disabled:0===e.selectedFaceImageIds.length},on:{"click-enable":function(t){return e.$emit("show-dialog-confirm",{faceImageIds:e.selectedFaceImageIds,pCodeIds:e.selectedPCodeIds,type:0})},"click-disable":function(t){return e.$emit("show-dialog-confirm",{faceImageIds:e.selectedFaceImageIds,pCodeIds:e.selectedPCodeIds,type:1})},"click-delete":e.clickShowDialogConfirmDeleteZenescanFaceImage}})],1)],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table face-image-list-data-table",attrs:{headers:e.headers,loading:e.isLoadingZenescanFaceImage,items:e.faceImages,"items-per-page":e.perPage,"show-select":e.showSelect,"fixed-header":!0,"no-data-text":"データはありません","loading-text":"データを読み込中です",dense:"","hide-default-footer":"","item-key":"faceImageId","item-class":"align-center"},on:{"update:items-per-page":e.updateItemsPerPage,"update:page":e.updatePage,"update:options":function(t){return e.$emit("change-sort",t)}},scopedSlots:e._u([{key:"item.faceImageBase64",fn:function(t){var s=t.item;return[s.faceImageBase64&&s.faceImageBase64.length>0?a("v-img",{attrs:{src:s.faceImageBase64,width:"200"}}):e._e(),e._v(" "),s.faceImageBase64&&s.faceImageBase64.length>0?e._e():a("div",[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:"",loading:s.isFaceImageLoading,disabled:s.isFaceImageLoading},on:{click:function(t){return e.clickFaceImageFile(s.faceImageId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-file-account-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v("\n "+e._s(s.isFaceImageLoading?"取得中":"未取得")+"\n ")])])],1)]}},{key:"item.icons",fn:function(t){var s=t.item;return[a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.isLoadingZenescanFaceImage},on:{click:function(t){return e.$emit("confirm-action",{action:s.pCodeIsValid?1:0,faceImageId:s.faceImageId,pCodeId:s.pCodeId,isValid:!s.pCodeIsValid})}}},"v-btn",o,!1),r),[s.pCodeIsValid?a("v-icon",{staticClass:"green--text"},[e._v("mdi-account-check")]):a("v-icon",[e._v("mdi-account-off")])],1)]}}],null,!0)},[e._v("\n "+e._s(s.pCodeIsValid?"有効":"無効")+"\n ")]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.isLoadingZenescanFaceImage},on:{click:function(t){return e.$emit("click-open-edit-face-image",s.faceImageId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-square-edit-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" 顔写真編集 ")])]),e._v(" "),a("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,o=t.attrs;return[a("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.isLoadingZenescanFaceImage},on:{click:function(t){return e.clickConfirmDeleteZenescanFaceImage(s.faceImageId)}}},"v-btn",o,!1),r),[a("v-icon",[e._v("mdi-trash-can-outline")])],1)]}}],null,!0)},[e._v(" "),a("span",[e._v(" 顔写真削除 ")])])]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.faceImageTotalCount,disabled:e.isDisabledPagination},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.faceImageTotalCount/e.perPage),disabled:e.isDisabledPagination},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isDisplayDeleteConfirm,callback:function(t){e.isDisplayDeleteConfirm=t},expression:"isDisplayDeleteConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(" 顔写真削除 ")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-text",{staticClass:"pa-4"},[a("p",{staticClass:"font-weight-bold"},[e._v("この顔写真を削除しますか?")]),e._v(" "),a("p",{staticClass:"font-weight-bold"},[e._v("※紐ついているカードの照合タイプが顔のみ認証の場合は、カードが無効化されます")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.deleteComfirmZenescanFaceImage(!1)}}},[e._v("\n キャンセル\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.deleteComfirmZenescanFaceImage(!0)}}},[e._v("OK")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isSelectDeleteConfirm,callback:function(t){e.isSelectDeleteConfirm=t},expression:"isSelectDeleteConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(" 顔写真削除 ")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-text",{staticClass:"pa-4"},[a("p",{staticClass:"font-weight-bold"},[e._v("選択した顔写真を削除しますか?")]),e._v(" "),a("p",{staticClass:"font-weight-bold"},[e._v("※紐ついているカードの照合タイプが顔のみ認証の場合は、カードが無効化されます")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.deleteShowDialogCComfirmZenescanFaceImage(!1)}}},[e._v("\n キャンセル\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.deleteShowDialogCComfirmZenescanFaceImage(!0)}}},[e._v("OK")])],1)],1)],1)],1),e._v(" "),a("v-dialog",{attrs:{width:"600",persistent:""},model:{value:e.isSelectGetConfirm,callback:function(t){e.isSelectGetConfirm=t},expression:"isSelectGetConfirm"}},[a("v-card",[a("v-card-title",{staticClass:"background-color-green"},[e._v(" 顔写真取得 ")]),e._v(" "),a("v-divider"),e._v(" "),a("v-row",{staticStyle:{height:"5px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-card-text",{staticClass:"pa-4"},[a("p",{staticClass:"font-weight-bold"},[e._v("顔写真を取得しますか?")])]),e._v(" "),a("v-card-actions",[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.getShowDialogComfirmFaceImageFile(!1)}}},[e._v("\n キャンセル\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.getShowDialogComfirmFaceImageFile(!0)}}},[e._v("OK")])],1)],1)],1)],1)],e._v(" "),a("progress-modal",{attrs:{title:e.progressModalInfo.title,message:e.progressModalInfo.message,"show-percentage":!0,indeterminate:e.progressModalInfo.indeterminate,"total-count":e.progressModalInfo.totalCount,"finished-count":e.progressModalInfo.finishedCount,"error-message":e.progressModalInfo.errorMessage,"error-count":e.progressModalInfo.errorCount,"error-contents":e.progressModalInfo.errorContents},on:{click:function(t){return e.$emit("progress-modal-close")}},model:{value:e.progressModalInfo.showModal,callback:function(t){e.$set(e.progressModalInfo,"showModal",t)},expression:"progressModalInfo.showModal"}})],2)},pA=[],mA=a("1c46"),fA=a.n(mA),hA=f["a"].extend({name:"ZenescanFaceImageList",components:{InputForm:io,Search:GM,SuccessButton:kr,CancelButton:fr,ActionButton:Nn,Modal:bn,Alert:Ou,ProgressModal:kb,Pagination:xo,SelectPerPage:To},props:{isVisible:{type:Boolean,default:function(){return!0}},isLoadLocalStorageFaceImage:{type:Boolean,default:function(){return!1}},isLoadingZenescanFaceImage:{type:Boolean,default:function(){return!1}},successMessageLogsModal:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},faceImage:{type:Object,default:function(){return{faceImageId:"",md5:"",pCodeId:"",pCode:null}}},faceImages:{type:Array,default:function(){return[]}},showSelect:{type:Boolean,default:!1},searchValue:{type:Object,default:function(){return{text:"",targets:["pCodeId","pCode.userId","pCode.user.name"]}}},dummyImage:{type:String,default:""},downLoadImages:{type:Array,default:function(){return[]}},addFiles:{type:Object,default:function(){return{imageFiles:[],importFile:null}}},typeItems:{type:Array,default:function(){return[]}},pCodeItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},userItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},pCodes:{type:Array,default:function(){return[]}},users:{type:Array,default:function(){return[]}},progressModalInfo:{type:Object,default:function(){return{showModal:!1,indeterminate:!1,title:"",message:"",errorMessage:"",totalCount:0,finishedCount:0,errorCount:0,errorContents:[]}}},isSelectedClear:{type:Boolean,default:!1},faceImageTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},isDisabledPagination:{type:Boolean,default:!0}},data:function(){return{deleteTargetZenescanFaceImageId:"",syncTargetZenescanFaceImageId:"",isDisplaySuccessMessage:!1,isDisplayErrorMessage:!1,isDisplayDeleteConfirm:!1,isDisplaySyncConfirm:!1,isSelectDeleteConfirm:!1,showAddFaceImageFormModal:!1,showEditFaceImageFormModal:!1,showProgreeModal:!1,perPageItemLength:25,headers:[{text:"カード番号",align:"start",sortable:!0,value:"pCodeId"},{text:"照合タイプ",align:"start",sortable:!1,value:"pCodeTypeName"},{text:"ユーザーID",align:"start",sortable:!1,value:"userId"},{text:"ユーザー名",align:"start",sortable:!1,value:"userName"},{text:"顔写真",align:"start",sortable:!1,value:"faceImageBase64"},{text:"",align:"end",sortable:!1,value:"icons"}],searchTargetItems:[{label:"カード番号",value:"pCodeId"},{label:"ユーザーID",value:"pCode.userId"},{label:"ユーザー名",value:"pCode.user.name"}],actionItems:[{title:"有効化する",emitName:"click-enable"},{title:"無効化する",emitName:"click-disable"},{title:"顔写真を削除する",emitName:"click-delete"}],selectedPCodeIds:[],selectedFaceImageIds:[],selectedItem:[],addFaceImageFiles:[],isSelectGetConfirm:!1,getFaceImageId:""}},watch:{successMessageLogsModal:function(e){e.length>0?this.isDisplaySuccessMessage=!0:this.isDisplaySuccessMessage=!1},errorMessageLogsModal:function(e){e.length>0?this.isDisplayErrorMessage=!0:this.isDisplayErrorMessage=!1},selectedItem:function(e){this.selectedPCodeIds=e.map((function(e){return e.pCodeId})),this.$emit("select-pcode",this.selectedPCodeIds),this.selectedFaceImageIds=e.map((function(e){return e.faceImageId})),this.$emit("select-face-image",this.selectedFaceImageIds)},isSelectedClear:function(e){this.$emit("is-selected-clear-start",e),!0===e&&(this.selectedItem=[],this.$emit("selected-clear"))}},mounted:function(){var e=this;if(this.isLoadLocalStorageFaceImage)if(localStorage.faceImages){var t=localStorage.getItem("faceImages"),a=[];t&&(a=JSON.parse(t));var s=[];this.faceImages.forEach((function(t){var r=a.find((function(e){return e.faceImageId===t.faceImageId})),o=e.downLoadImages.find((function(e){return e.faceImageId===t.faceImageId}));o?s.push(o):r&&s.push(r)})),s.length>0&&localStorage.setItem("faceImages",JSON.stringify(s))}else this.downLoadImages.length>0&&localStorage.setItem("faceImages",JSON.stringify(this.downLoadImages))},computed:{innerSearchValue:{get:function(){return this.searchValue},set:function(e){this.$emit("input-search-value",e)}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},methods:{clickConfirmDeleteZenescanFaceImage:function(e){this.$emit("reset-msg"),this.deleteTargetZenescanFaceImageId=e,this.isDisplayDeleteConfirm=!0},deleteComfirmZenescanFaceImage:function(e){!0===e&&(this.$emit("click-delete-face-image",this.deleteTargetZenescanFaceImageId),this.$emit("reload-face-images")),this.deleteTargetZenescanFaceImageId="",this.isDisplayDeleteConfirm=!1},clickShowDialogConfirmDeleteZenescanFaceImage:function(){this.$emit("reset-msg"),this.isSelectDeleteConfirm=!0},deleteShowDialogCComfirmZenescanFaceImage:function(e){!0===e&&this.$emit("show-dialog-confirm",{faceImageIds:this.selectedFaceImageIds,pCodeIds:this.selectedPCodeIds,type:2}),this.isSelectDeleteConfirm=!1},clickAddFaceImage:function(){this.$emit("start-add-face-image"),this.addFiles.imageFiles=[],this.addFiles.importFile=null,this.addFaceImageFiles=[],this.showAddFaceImageFormModal=!0},clickNext:function(){var e=this;if(this.addFiles.imageFiles&&this.addFiles.imageFiles.length>0){var t=[];this.importExcelData().then((function(e){return t=e})).then((function(){var a=[];0===t.length?a=e.addFiles.imageFiles.map((function(e){return{imageFile:e,faceImageId:"",pCodeId:fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),pCodeType:2,userId:"",userName:"",user:"",options:"",noDataFlag:!1}})):t.forEach((function(t){var s=e.addFiles.imageFiles.find((function(e){return e.name===t.fileName}));s&&a.push({imageFile:s,faceImageId:"",pCodeId:t.pCodeId,pCodeType:t.pCodeType?t.pCodeType:0,userId:t.userId,userName:t.userName,user:t.user,options:"",noDataFlag:t.noDataFlag})})),e.addFaceImageFiles=a,e.showEditFaceImageFormModal=!0,a.length>0?(e.$emit("start-edit-face-image"),e.showEditFaceImageFormModal=!0):(e.$emit("end-no-match-face-image"),e.showEditFaceImageFormModal=!1)}))}},clickAdd:function(){this.$emit("end-add-face-image")},importExcelData:function(){var e=this;return new Promise((function(t){var s=[];if(null!==e.addFiles.importFile){var r=new FileReader;r.onload=function(){var o,n=r.result,i=a("1146"),l=i.read(n,{type:"array"}),c=l.SheetNames[0],u=l.Sheets[c],d=i.utils.sheet_to_json(u,{header:1}),g=Object(rr["a"])(d);try{var p=function(){var t=o.value,a=void 0,r=void 0,n=void 0,i=void 0,l=void 0,c=void 0,u=!1;if(t.length>2&&void 0!==t[0]&&void 0!==t[1]){if(a=t[0],0!==t[1]&&2!==t[1]||(r=t[1]),0===t[1]&&void 0!==t[2]){var d=e.pCodes.find((function(e){return e.pCodeId===t[2]}));if(d){if(0===d.type)if(n=t[2],d.user)i=d.user.userId,l=d.user.name,c=""===d.user.name?d.user.userId:"".concat(d.user.name,"(").concat(d.user.userId,")");else if(d.userId&&d.userId.length>0){var g=e.users.find((function(e){return e.userId===d.userId}));g&&(i=g.userId,l=g.name,c=""===g.name?g.userId:"".concat(g.name,"(").concat(g.userId,")"))}}else u=!0,n=t[2],i="-",l="-",c="-"}else if(2===t[1]&&(n=fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),t[3])){var p=e.users.find((function(e){return e.userId===t[3]}));i="",l="",c="",p?(i=p.userId,l=p.name,c=""===p.name?p.userId:"".concat(p.name,"(").concat(p.userId,")")):(u=!0,i=t[3],l="-",c=i)}a&&(0===r||2===r)&&n&&i&&l&&c&&s.push({fileName:a,pCodeType:r,pCodeId:n,userId:i,userName:l,user:c,noDataFlag:u})}};for(g.s();!(o=g.n()).done;)p()}catch(m){g.e(m)}finally{g.f()}t(s)},r.readAsArrayBuffer(e.addFiles.importFile)}else t(s)}))},updateItemsPerPage:function(e){this.$emit("update-items-per-page",e)},updatePage:function(e){this.$emit("update-page",e)},clickSearch:function(e){this.$emit("search",e)},clickFaceImageFile:function(e){this.getFaceImageId=e,this.isSelectGetConfirm=!0},getShowDialogComfirmFaceImageFile:function(e){!0===e&&this.$emit("click-open-face-image",this.getFaceImageId),this.isSelectGetConfirm=!1}}}),vA=hA,bA=(a("e62d"),Object(I["a"])(vA,gA,pA,!1,null,"19e4bdd8",null)),yA=bA.exports;C()(bA,{VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardText:Mr["b"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VDialog:hn["a"],VDivider:Pn["a"],VIcon:Gr["a"],VImg:cS["a"],VRow:Kr["a"],VSpacer:Qo["a"],VTooltip:oo["a"]});var IA="zenescan-face-image",xA=f["a"].extend({name:"ZenescanTemplate",components:{Loading:Yu,Alert:Ou,Breadcrumbs:cn,Modal:bn,Tabs:xM,CancelButton:fr,SuccessButton:kr,ZenescanFaceDbList:dA,ZenescanFaceImageList:yA},props:{loading:{type:Boolean,default:!1},successMessages:{type:Array,default:function(){return[]}},errorMessages:{type:Array,default:function(){return[]}},tab:{type:String,default:IA},zenescanFaceDbLoading:{type:Boolean,default:!1},zenescanFaceDbs:{type:Array,default:function(){return[]}},faceDbs:{type:Array,default:function(){return[]}},showSelectZenescanFaceDb:{type:Boolean,default:!1},zenescanFaceImageLoading:{type:Boolean,default:!1},faceImages:{type:Array,default:function(){return[]}},showSelectZenescanFaceImage:{type:Boolean,default:!0},typeItems:{type:Array,default:function(){return[]}},pCodeItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},userItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},pCodes:{type:Array,default:function(){return[]}},users:{type:Array,default:function(){return[]}},faceImageProgressModalInfo:{type:Object,default:function(){return{showModal:!1,indeterminate:!1,title:"",message:"",errorMessage:"",totalCount:0,finishedCount:0,errorCount:0,errorContents:[]}}},faceImageSearchValue:{type:Object,default:function(){return{text:"",targets:["pCodeId","pCode.userId","pCode.user.name"]}}},isSelectedClearFaceImage:{type:Boolean,default:function(){return!1}},faceImageTotalCount:{type:Number,default:0},faceImagePage:{type:Number,default:1},faceImagePerPage:{type:Number,default:25},isDisabledPaginationFaceImage:{type:Boolean,default:function(){return!0}}},data:function(){return{showSuccessMessages:[],breadcrumbs:[{text:"顔認証連携設定",disabled:!0}],tabItems:[{text:"顔写真リスト",value:IA}]}},computed:{innerTab:{get:function(){return this.tab},set:function(e){this.$emit("input-tab",e)}},innerFaceImageSearchValue:{get:function(){return this.faceImageSearchValue},set:function(e){this.$emit("input-search-value",e)}}}}),CA=xA,wA=(a("9978"),Object(I["a"])(CA,XG,QG,!1,null,"5fb92b36",null)),kA=wA.exports;function SA(e,t){return _A.apply(this,arguments)}function _A(){return _A=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.delete(Ge+"/".concat(encodeURIComponent(a)));case 3:return s=e.sent,e.abrupt("return",s.data);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=400===e.t1?12:401===e.t1?13:403===e.t1?14:404===e.t1?15:503===e.t1?16:17;break;case 12:throw new Error("顔画像の削除に失敗しました。");case 13:throw new Error("顔画像の削除に失敗しました。顔画像を削除する権限がありません。");case 14:throw new Error("顔画像の削除に失敗しました。顔画像を削除する権限がありません。");case 15:return e.abrupt("return",{});case 16:throw new Error(Pa);case 17:throw new Error(_a);case 18:case"end":return e.stop()}}),e,null,[[0,7]])}))),_A.apply(this,arguments)}function PA(e,t,a){return MA.apply(this,arguments)}function MA(){return MA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.put(Ge+"/".concat(encodeURIComponent(a)),{pCodeId:s});case 3:return r=e.sent,e.abrupt("return",r.data);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=403===e.t1?12:404===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("顔画像情報の変更に失敗しました。顔画像情報を変更する権限がありません。");case 13:throw new Error("顔画像情報の変更に失敗しました。顔画像情報は既に削除されています。");case 14:throw new Error(Pa);case 15:throw new Error(Sa);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),MA.apply(this,arguments)}function LA(e,t){return DA.apply(this,arguments)}function DA(){return DA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.post(Ge,a);case 3:return s=e.sent,e.abrupt("return",s.data.faceImageId);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=400===e.t1?12:403===e.t1?13:503===e.t1?14:15;break;case 12:throw new Error("顔画像の追加に失敗しました。");case 13:throw new Error("顔画像の追加に失敗しました。顔画像を追加する権限がありません。");case 14:throw new Error(Pa);case 15:throw new Error(ka);case 16:case"end":return e.stop()}}),e,null,[[0,7]])}))),DA.apply(this,arguments)}function GA(e,t,a,s,r){return AA.apply(this,arguments)}function AA(){return AA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s,r,o){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="?limit=".concat(a,"&page=").concat(s,"&sortKey=").concat(Fs,":").concat(Ns,"&embed=pCode,pCode.user"),r&&r.length>0&&(n+="&keyword=".concat(encodeURIComponent(r))),o&&o.length>0&&(n+="&scorp=".concat(o)),e.prev=3,e.next=6,t.$axios.get(Ge+n);case 6:return i=e.sent,e.abrupt("return",[i.data.faceImages,i.data.maxRecords]);case 10:e.prev=10,e.t0=e["catch"](3),e.t1=e.t0.response.status,e.next=403===e.t1?15:404===e.t1?16:503===e.t1?17:18;break;case 15:throw new Error("顔画像情報一覧の取得に失敗しました。顔画像を取得する権限がありません。");case 16:return e.abrupt("return",[[],0]);case 17:throw new Error(Pa);case 18:throw new Error(wa);case 19:case"end":return e.stop()}}),e,null,[[3,10]])}))),AA.apply(this,arguments)}function RA(e,t){return TA.apply(this,arguments)}function TA(){return TA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s="?faceImageId=".concat(a,"&embed=pCode,pCode.user"),e.prev=1,e.next=4,t.$axios.get(Ge+s);case 4:return r=e.sent,e.abrupt("return",r.data.faceImages);case 8:e.prev=8,e.t0=e["catch"](1),e.t1=e.t0.response.status,e.next=403===e.t1?13:404===e.t1?14:503===e.t1?15:16;break;case 13:throw new Error("顔画像情報一覧の取得に失敗しました。顔画像を取得する権限がありません。");case 14:return e.abrupt("return",[]);case 15:throw new Error(Pa);case 16:throw new Error(wa);case 17:case"end":return e.stop()}}),e,null,[[1,8]])}))),TA.apply(this,arguments)}function EA(e,t,a,s,r,o){return OA.apply(this,arguments)}function OA(){return OA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s,r,o,n){var i,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i="?limit=".concat(a,"&page=").concat(s,"&sortKey=").concat(Fs,":").concat(Ns,"&embed=user"),r&&r.length>0&&(i+="&keyword=".concat(encodeURIComponent(r))),o&&o.length>0&&(i+="&scorp=".concat(o)),n&&n.length>0&&(i+="&pCodeType=".concat(n)),e.prev=4,e.next=7,t.$axios.get(j+i);case 7:return l=e.sent,e.abrupt("return",[l.data.pCodes,l.data.maxRecords]);case 11:e.prev=11,e.t0=e["catch"](4),e.t1=e.t0.response.status,e.next=403===e.t1?16:404===e.t1?17:503===e.t1?18:19;break;case 16:throw new Error("カード情報一覧の取得に失敗しました。カードを取得する権限がありません。");case 17:return e.abrupt("return",[[],0]);case 18:throw new Error(Pa);case 19:throw new Error(wa);case 20:case"end":return e.stop()}}),e,null,[[4,11]])}))),OA.apply(this,arguments)}function VA(e,t,a,s,r){return UA.apply(this,arguments)}function UA(){return UA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a,s,r,o){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="?limit=".concat(a,"&page=").concat(s,"&sortKey=").concat(Fs,":userId&isValid=true&isExceptOptionalUser=true"),r&&r.length>0&&(n+="&keyword=".concat(encodeURIComponent(r))),o&&o.length>0&&(n+="&scorp=".concat(o)),e.prev=3,e.next=6,t.$axios.get(Ne+n);case 6:return i=e.sent,e.abrupt("return",[i.data.users,i.data.maxRecords]);case 10:e.prev=10,e.t0=e["catch"](3),e.t1=e.t0.response.status,e.next=403===e.t1?15:404===e.t1?16:503===e.t1?17:18;break;case 15:throw new Error("ユーザー情報一覧の取得に失敗しました。ユーザーを取得する権限がありません。");case 16:return e.abrupt("return",[[],0]);case 17:throw new Error(Pa);case 18:throw new Error(wa);case 19:case"end":return e.stop()}}),e,null,[[3,10]])}))),UA.apply(this,arguments)}function $A(e,t){return NA.apply(this,arguments)}function NA(){return NA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$axios.get("".concat(Ge,"/").concat(a,"/image"));case 3:return s=e.sent,e.abrupt("return",s.data.image);case 7:e.prev=7,e.t0=e["catch"](0),e.t1=e.t0.response.status,e.next=400===e.t1?12:403===e.t1?13:404===e.t1?14:503===e.t1?15:16;break;case 12:throw new Error("顔画像の取得に失敗しました。");case 13:throw new Error("顔画像の取得に失敗しました。権限がありません。");case 14:throw new Error("顔画像の取得に失敗しました。存在しないか既に削除されています。");case 15:throw new Error(Pa);case 16:throw new Error(wa);case 17:case"end":return e.stop()}}),e,null,[[0,7]])}))),NA.apply(this,arguments)}function FA(e,t){return jA.apply(this,arguments)}function jA(){return jA=Object(or["a"])(regeneratorRuntime.mark((function e(t,a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,s={headers:{"Content-Type":a.type}},e.next=4,t.$axios.post("".concat(Ge,"/image/temp"),a,s);case 4:return r=e.sent,e.abrupt("return",r.data.imageFileId);case 8:throw e.prev=8,e.t0=e["catch"](0),new Error("顔画像の一時アップロードに失敗しました。実際のファイル種別が異なる可能性があります。または、ファイルサイズが10MBを超えている可能性があります");case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),jA.apply(this,arguments)}var BA=function(e){Object(gD["a"])(a,e);var t=Object(pD["a"])(a);function a(){var e;return Object(uD["a"])(this,a),e=t.call(this),e.fileName="face-image_template.xlsx",e.url=He,e}return a}(hD),zA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{value:e.isVisible,title:e.verificationTitle},on:{close:e.close},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isLoadBlockingVerification?a("loading",{attrs:{text:e.loadBlockingTextVerification}}):e._e(),e._v(" "),a("v-form",{ref:"formElmoDevice",staticClass:"modal-body-top",attrs:{"lazy-validation":""}},[a("v-row",[a("v-col",{staticClass:"font-weight-bold"},[a("div",[e._v("\n "+e._s(e.verificationMessage)+"\n ")])])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"font-weight-bold"},[a("div",[e._v("\n "+e._s(e.verificationMessage2)+"\n ")])])],1),e._v(" "),a("v-row",[a("v-col",{staticClass:"font-weight-bold"},[a("div",[e._v("\n "+e._s(e.verificationMessage3)+"\n ")])])],1)],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[a("success-button",{attrs:{text:"登録する"},on:{click:function(t){return e.clickVerificationSave()}}}),e._v(" "),a("cancel-button",{attrs:{text:"キャンセル"},on:{click:function(t){return e.close()}}})]},proxy:!0}])})},HA=[],KA=f["a"].extend({name:"FaceImageInputVerification",components:{Modal:bn,Loading:Yu,InputForm:io,SuccessButton:kr,ErrorButton:kn,CancelButton:fr,IconButton:td},data:function(){return{isClickExpandArea:!1,isDisplayDeleteConfirm:!1}},props:{isVisible:{type:Boolean,default:function(){return!1}},isLoadBlockingVerification:{type:Boolean,default:function(){return!0}},loadBlockingTextVerification:{type:String,default:function(){return""}},verificationTitle:{type:String,default:function(){return""}},verificationMessage:{type:String,default:function(){return""}},verificationMessage2:{type:String,default:function(){return""}},verificationMessage3:{type:String,default:function(){return""}},value:{type:Array,default:function(){return[]}}},methods:{close:function(){this.$emit("reset-msg"),this.$emit("close")},clickVerificationSave:function(){this.$emit("click-verification-save",this.value)}}}),YA=KA,qA=(a("b4cb"),Object(I["a"])(YA,zA,HA,!1,null,"970b4a1c",null)),WA=qA.exports;C()(qA,{VCol:Dr["a"],VForm:Nl["a"],VRow:Kr["a"]});var JA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{value:e.isVisible,title:"edit"===e.mode?"顔写真編集":"顔写真新規追加"},on:{close:e.close},scopedSlots:e._u([{key:"modal-body",fn:function(){return[e.isLoadBlockingZenescanFaceImage?a("loading",{attrs:{text:e.loadBlockingTextZenescanFaceImage}}):e._e(),e._v(" "),a("alert",{attrs:{text:e.errorMessageLogsModal,type:"error"},model:{value:e.isDisplayErrorMessage,callback:function(t){e.isDisplayErrorMessage=t},expression:"isDisplayErrorMessage"}}),e._v(" "),a("alert",{attrs:{text:e.successMessageLogsModal,type:"success"},model:{value:e.isDisplaySuccessMessage,callback:function(t){e.isDisplaySuccessMessage=t},expression:"isDisplaySuccessMessage"}}),e._v(" "),a("v-form",{ref:"formZenescanFaceImage",staticClass:"modal-body-top",attrs:{"lazy-validation":""}},[a("v-row",[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"照合タイプ",inputType:"select","select-items":e.typeItems},on:{"change-select":function(t){return e.switchPcode()}},model:{value:e.value.pCodeType,callback:function(t){e.$set(e.value,"pCodeType",t)},expression:"value.pCodeType"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:"new"===e.mode,expression:"mode === 'new'"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"顔写真",inputType:"account-image-file"},model:{value:e.value.image,callback:function(t){e.$set(e.value,"image",t)},expression:"value.image"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.mode,expression:"mode === 'edit'"}]},[a("v-col",{attrs:{md:11}},[!1===e.isChangeFaceImageFile?a("info-image",{attrs:{title:"顔写真",text:"未取得",image:e.getBase64Src(e.value.imageBase64)}}):e._e(),e._v(" "),!0===e.isChangeFaceImageFile?a("info-image",{attrs:{title:"変更後の顔写真",text:"未取得",image:e.newFaceImageFileSrc,imageFileSize:e.newFaceImageFileSize,line2:e.line2}}):e._e()],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.mode,expression:"mode === 'edit'"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"顔写真ファイルの変更",inputType:"account-image-file"},on:{"change-image-file":function(t){return e.changeImageFile(t)}},model:{value:e.newFaceImageFile,callback:function(t){e.newFaceImageFile=t},expression:"newFaceImageFile"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:!1===e.isPcode&&"new"===e.mode,expression:"isPcode === false && mode === 'new'"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"カード番号",inputType:"text",disabled:!0,helpText:"19桁の文字列が自動で生成されます"},model:{value:e.value.pCodeId,callback:function(t){e.$set(e.value,"pCodeId",t)},expression:"value.pCodeId"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:!1===e.isPcode&&"edit"===e.mode,expression:"isPcode === false && mode === 'edit'"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"カード番号",inputType:"text",disabled:!0,helpText:e.autoCreatePcodeText},model:{value:e.value.pCodeId,callback:function(t){e.$set(e.value,"pCodeId",t)},expression:"value.pCodeId"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.isPcode,expression:"isPcode === true"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"カード番号",inputType:"text-plus",rules:[e.isRequired(e.value.pCodeId)],plusBtnTooltip:e.pCodePlusBtnTooltip},on:{"click-add-btn":function(t){return e.$emit("click-change-pcode")},input:function(t){return e.changeTargetPCode(e.value.pCodeId)}},model:{value:e.value.pCodeId,callback:function(t){e.$set(e.value,"pCodeId",t)},expression:"value.pCodeId"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:!1===e.isPcode,expression:"isPcode === false"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"ユーザーID",inputType:"text-plus",rules:[e.isRequired(e.value.userId)],plusBtnTooltip:e.userPlusBtnTooltip},on:{"click-add-btn":function(t){return e.$emit("click-change-user")},input:function(t){return e.changeTargetUser(e.value.userId)}},model:{value:e.value.userId,callback:function(t){e.$set(e.value,"userId",t)},expression:"value.userId"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:!0===e.isPcode,expression:"isPcode === true"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"ユーザー",inputType:"text",disabled:!0},model:{value:e.value.userId,callback:function(t){e.$set(e.value,"userId",t)},expression:"value.userId"}})],1)],1),e._v(" "),a("v-row",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.mode,expression:"mode === 'edit'"}]},[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"ステータス",inputType:"switch-is-valid",disabled:!1},on:{change:function(t){return e.changeStatus(t)}},model:{value:e.value.pCodeIsValid,callback:function(t){e.$set(e.value,"pCodeIsValid",t)},expression:"value.pCodeIsValid"}})],1)],1)],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.close()}}},[e._v("\n 閉じる\n ")]),e._v(" "),"edit"===e.mode?a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:e.isEditSave},on:{click:function(t){return e.clickEditPutZenescanFaceImage()}}},[e._v("\n 保存\n ")]):a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:e.isEditSave},on:{click:function(t){return e.clickAddPostZenescanFaceImage()}}},[e._v("\n 登録\n ")])],1)]},proxy:!0}])})},ZA=[],XA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"info-image"},[a("v-row",[e.$vuetify.breakpoint.mdAndUp?a("v-col",{attrs:{cols:"3"}},[a("v-subheader",[e._v(e._s(e.title))])],1):e._e(),e._v(" "),a("v-col",{staticClass:"text-body-2",attrs:{"align-self":"center"}},[e.image&&e.image.length>0?a("v-img",{attrs:{contain:!0,src:e.image,"max-height":200,"max-width":200}},[e.imageFileSize>e.maxFileSize?a("multiple-line-help-icon",{staticClass:"ml-2",attrs:{iconType:"alert",line1:e.line1,line2:e.line2}}):e._e()],1):e._t("text",[e._v("\n "+e._s(e.text)+"\n ")])],2)],1)],1)},QA=[],eR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[a("v-tooltip",{attrs:{top:"","max-width":"300px","content-class":"text-caption"},scopedSlots:e._u([{key:"activator",fn:function(t){var s=t.on,r=t.attrs;return["help"===e.iconType?a("v-icon",e._g(e._b({on:{click:function(t){return e.$emit("click",t)}}},"v-icon",r,!1),s),[e._v("\n mdi-help-circle\n ")]):"alert"===e.iconType?a("v-icon",e._g(e._b({on:{click:function(t){return e.$emit("click",t)}}},"v-icon",r,!1),s),[e._v("\n mdi-alert-circle\n ")]):"info"===e.iconType?a("v-icon",e._g(e._b({on:{click:function(t){return e.$emit("click",t)}}},"v-icon",r,!1),s),[e._v("\n mdi-information\n ")]):e._e()]}}])},[e._v(" "),e.line1?a("div",[e._v(e._s(e.line1))]):e._e(),e._v(" "),e.line2?a("div",[e._v(e._s(e.line2))]):e._e(),e._v(" "),e.line3?a("div",[e._v(e._s(e.line3))]):e._e(),e._v(" "),e.line4?a("div",[e._v(e._s(e.line4))]):e._e(),e._v(" "),e.line5?a("div",[e._v(e._s(e.line5))]):e._e(),e._v(" "),e.line6?a("div",[e._v(e._s(e.line6))]):e._e(),e._v(" "),e.line7?a("div",[e._v(e._s(e.line7))]):e._e()])],1)},tR=[],aR=f["a"].extend({name:"MultipleLineHelpIcon",props:{line1:{type:String,default:""},line2:{type:String,default:""},line3:{type:String,default:""},line4:{type:String,default:""},line5:{type:String,default:""},line6:{type:String,default:""},line7:{type:String,default:""},iconType:{type:String,default:""}}}),sR=aR,rR=Object(I["a"])(sR,eR,tR,!1,null,null,null),oR=rR.exports;C()(rR,{VIcon:Gr["a"],VTooltip:oo["a"]});var nR=f["a"].extend({components:{Vue:f["a"],MultipleLineHelpIcon:oR},name:"InfoImage",props:{title:{type:String,default:""},image:{type:String||Object,default:""},text:{type:String,default:""},maxFileSize:{type:Number,default:4194304},imageFileSize:{type:Number,default:0},line1:{type:String,default:"ファイルサイズが4MB以上です"},line2:{type:String,default:"ファイルサイズが4MB以上の顔写真は登録時に圧縮されます"}}}),iR=nR,lR=Object(I["a"])(iR,XA,QA,!1,null,null,null),cR=lR.exports;C()(lR,{VCol:Dr["a"],VImg:cS["a"],VRow:Kr["a"],VSubheader:Yr["a"]});var uR=f["a"].extend({name:"ZenescanFaceImageTarget",components:{Modal:bn,Loading:Yu,InputForm:io,SuccessButton:kr,CancelButton:fr,IconButton:td,Alert:Ou,InfoImage:cR},data:function(){return{isDisplaySuccessMessage:!1,isDisplayErrorMessage:!1,isPcode:!1,initInputValue:{faceImageId:"",pCodeType:2,pCodeId:"",userId:"",pCodeIsValid:!1},isEditSave:!0,isChangePcode:!1,isChangeUser:!1,newFaceImageFile:null,newFaceImageFileSrc:"",newFaceImageFileSize:0,isChangeFaceImageFile:!1,maxFileSize:4194304,line2:"ファイルサイズが4MB以上の顔写真は変更時に圧縮されます",isChangeStatus:!1,autoCreatePcodeText:""}},props:{isVisible:{type:Boolean,default:function(){return!1}},mode:{type:String,default:function(){return"new"}},isLoadBlockingZenescanFaceImage:{type:Boolean,default:function(){return!0}},loadBlockingTextZenescanFaceImage:{type:String,default:function(){return""}},successMessageLogsModal:{type:String,default:function(){return""}},errorMessageLogsModal:{type:String,default:function(){return""}},value:{type:Object,default:function(){return{faceImageId:"",pCodeId:fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),pCodeName:"",pCodeType:2,pCodeTypeName:"顔",userId:"",userName:"",image:null,imageBase64:"",pCodeIsValid:!1}}},typeItems:{type:Array,default:function(){return[]}},zenescanFaceImage:{type:Object,default:function(){return{zenescanFaceImageId:"miss",description:"未設定",name:"未設定",targets:[]}}},userItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},pCodeItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},pCodes:{type:Array,default:function(){return[]}},users:{type:Array,default:function(){return[]}},isInputPcode:{type:Boolean,default:function(){return!1}},isInputUser:{type:Boolean,default:function(){return!1}},pCodePlusBtnTooltip:{type:String,default:function(){return""}},userPlusBtnTooltip:{type:String,default:function(){return""}}},mounted:function(){this.initInputValue.faceImageId=this.value.faceImageId,this.initInputValue.pCodeType=this.value.pCodeType,this.initInputValue.pCodeId=this.value.pCodeId,this.initInputValue.userId=this.value.userId,this.initInputValue.pCodeIsValid=this.value.pCodeIsValid,this.isPcode=2!==this.value.pCodeType},watch:{successMessageLogsModal:function(e){e.length>0?(this.isDisplaySuccessMessage=!0,"new"===this.mode&&(this.value.faceImageId="",this.value.pCodeId="",this.value.pCodeName="",this.value.pCodeType=2,this.value.pCodeTypeName="顔",this.value.userId="",this.value.userName="")):this.isDisplaySuccessMessage=!1},errorMessageLogsModal:function(e){e.length>0?this.isDisplayErrorMessage=!0:this.isDisplayErrorMessage=!1},isInputPcode:function(e){!0===e&&(this.isEditSave=!1)},isInputUser:function(e){!0===e&&(this.isEditSave=!1)}},computed:{},methods:{close:function(){this.$emit("reset-msg"),this.$emit("close")},isValidateLengthOneMore:function(e){return!!(e&&e.length>0)||"必須項目のため、一つ以上の指定が必須です。"},clickAddPostZenescanFaceImage:function(){var e=this.$refs.formZenescanFaceImage.validate();e&&this.$emit("click-add-zenescan-face-image",this.value)},clickEditPutZenescanFaceImage:function(){var e=this.$refs.formZenescanFaceImage.validate();if(e){var t={faceImageId:this.value.faceImageId,pCodeId:this.value.pCodeId,pCodeType:this.value.pCodeType,userId:this.value.userId,faceImageFile:this.newFaceImageFile,pCodeIsValid:this.value.pCodeIsValid};this.$emit("click-edit-zenescan-face-image",t)}},switchPcode:function(){this.autoCreatePcodeText="",this.isPcode?(this.isPcode=!1,"new"===this.mode?this.value.pCodeId=fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase():"edit"===this.mode&&(2===this.initInputValue.pCodeType?(this.value.pCodeId=this.initInputValue.pCodeId,this.value.userId=this.initInputValue.userId,this.value.pCodeIsValid=this.initInputValue.pCodeIsValid,this.newFaceImageFile=null,this.newFaceImageFileSrc="",this.newFaceImageFileSize=0,this.isChangePcode=!1,this.isChangeUser=!1,this.isChangeFaceImageFile=!1,this.isChangeStatus=!1,this.isEditSave=!0):0===this.initInputValue.pCodeType&&(this.autoCreatePcodeText="19桁の文字列が自動で生成されます",this.value.pCodeId=fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),this.value.userId="",this.value.pCodeIsValid=this.initInputValue.pCodeIsValid,this.newFaceImageFile=null,this.newFaceImageFileSrc="",this.newFaceImageFileSize=0,this.isChangePcode=!1,this.isChangeUser=!1,this.isChangeFaceImageFile=!1,this.isChangeStatus=!1,this.isEditSave=!0))):(this.isPcode=!0,"new"===this.mode?this.value.pCodeId="":"edit"===this.mode&&(0===this.initInputValue.pCodeType?(this.value.pCodeId=this.initInputValue.pCodeId,this.value.userId=this.initInputValue.userId,this.isEditSave=!0):2===this.initInputValue.pCodeType&&(this.value.pCodeId="",this.value.userId="",this.isEditSave=!0))),this.$emit("switch-pcode")},getBase64Src:function(e){var t=e;return e&&-1===e.search(/^data:image\/[a-z,*]+;base64,/)&&(t="data:image/*;base64,"+e),t},changeTargetPCode:function(e){"edit"===this.mode&&(0===this.initInputValue.pCodeType&&e!==this.initInputValue.pCodeId?(this.value.userId="",this.isChangePcode=!0,this.isEditSave=!1):0===this.initInputValue.pCodeType&&e===this.initInputValue.pCodeId&&(this.value.userId=this.initInputValue.userId,this.isChangePcode=!1,!1===this.isChangeUser&&!1===this.isChangeFaceImageFile&&!1===this.isChangeStatus&&(this.isEditSave=!0)))},changeTargetUser:function(e){"edit"===this.mode&&(2===this.initInputValue.pCodeType&&e!==this.initInputValue.userId?(this.isChangeUser=!0,this.isEditSave=!1):2===this.initInputValue.pCodeType&&e===this.initInputValue.userId&&(this.isChangeUser=!1,!1===this.isChangePcode&&!1===this.isChangeFaceImageFile&&!1===this.isChangeStatus&&(this.isEditSave=!0)))},isRequired:function(e){return!(!e||!e.length)||"必須項目のため、入力が必須です。"},changeImageFile:function(e){null===e?(this.isChangeFaceImageFile=!1,this.newFaceImageFileSrc="",this.newFaceImageFileSize=0,!1===this.isChangePcode&&!1===this.isChangeUser&&!1===this.isChangeStatus&&(this.isEditSave=!0)):this.newFaceImageFile&&(this.newFaceImageFileSrc=URL.createObjectURL(this.newFaceImageFile),this.newFaceImageFileSize=this.newFaceImageFile.size,this.isChangeFaceImageFile=!0,this.isEditSave=!1),this.$emit("change-image-file",e)},changeStatus:function(e){this.isInputPcode||this.isInputUser||(e===this.initInputValue.pCodeIsValid?(this.isChangeStatus=!1,!1===this.isChangePcode&&!1===this.isChangeUser&&!1===this.isChangeFaceImageFile&&(this.isEditSave=!0)):(this.isChangeStatus=!0,this.isEditSave=!1)),this.$emit("change-status",e)}}}),dR=uR,gR=(a("0bbc"),Object(I["a"])(dR,JA,ZA,!1,null,"00a88911",null)),pR=gR.exports;C()(gR,{VBtn:pr["a"],VCol:Dr["a"],VForm:Nl["a"],VRow:Kr["a"]});var mR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{value:e.isVisible,title:"カードを1つ選択してください"},on:{close:e.close},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("v-container",{staticClass:"one-select-from-pcode-list-container",attrs:{fluid:""}},[a("alert",{attrs:{text:e.errorMessageLogsModal,type:"error"},model:{value:e.isDisplayErrorMessage,callback:function(t){e.isDisplayErrorMessage=t},expression:"isDisplayErrorMessage"}}),e._v(" "),a("alert",{attrs:{text:e.successMessageLogsModal,type:"success"},model:{value:e.isDisplaySuccessMessage,callback:function(t){e.isDisplaySuccessMessage=t},expression:"isDisplaySuccessMessage"}}),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",[a("search",{attrs:{label:"検索",searchTargetItems:e.searchTargetItems,disabled:e.isLoadingPcodes},on:{search:function(t){return e.clickSearch(t)}},model:{value:e.innerSearchValue,callback:function(t){e.innerSearchValue=t},expression:"innerSearchValue"}})],1),e._v(" "),a("v-col",{staticClass:"col-md-3 text-align-end"},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:e.isVisibleInputButton,outlined:""},on:{click:function(t){return e.clickSelectPcode()}}},[e._v("\n 選択したカードを入力\n ")])],1)],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table pcode-list-data-table",attrs:{headers:e.headers,loading:e.isLoadingPcodes,items:e.pCodes,"items-per-page":e.perPage,"show-select":e.showSelect,"single-select":!0,"fixed-header":!0,"no-data-text":"データはありません","loading-text":"データを読み込中です",dense:"","hide-default-footer":"","item-class":"align-center","item-key":"pCodeId"},on:{"update:items-per-page":e.updateItemsPerPage,"update:page":e.updatePage,"update:options":function(t){return e.$emit("change-sort",t)}},scopedSlots:e._u([{key:"item.data-table-select",fn:function(e){var t=e.item,s=e.isSelected,r=e.select;return[0===t.userId.length?a("v-simple-checkbox",{attrs:{readonly:!0,disabled:!0,ripple:!1}}):a("v-simple-checkbox",{attrs:{color:"success",value:s,readonly:!0,disabled:!1,ripple:!1},on:{input:function(e){return r(e)}}})]}},{key:"item.typeName",fn:function(t){var a=t.item;return[e._v("\n "+e._s(0===a.type?"NFCカード":1===a.type?"テンキー":2===a.type?"顔認証用画像":"")+"\n ")]}},{key:"item.status",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isValid?"有効":"無効")+"\n ")]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.pcodeTotalCount,disabled:e.isDisabledPagination},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.pcodeTotalCount/e.perPage),disabled:e.isDisabledPagination},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)]},proxy:!0}])})},fR=[],hR=f["a"].extend({name:"OneSelectFromPcodeList",components:{InputForm:io,Search:GM,SuccessButton:kr,CancelButton:fr,Modal:bn,Alert:Ou,Pagination:xo,SelectPerPage:To},props:{isVisible:{type:Boolean,default:function(){return!0}},isLoadingPcodes:{type:Boolean,default:function(){return!1}},successMessageLogsModal:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},pCode:{type:Object,default:function(){return{pCodeId:"",name:"",type:"",isValid:!0,userId:""}}},pCodes:{type:Array,default:function(){return[]}},showSelect:{type:Boolean,default:!1},searchValue:{type:Object,default:function(){return{text:"",targets:["pCodeId","name","userId"]}}},isSelectedClear:{type:Boolean,default:!1},pcodeTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},isDisabledPagination:{type:Boolean,default:!0}},data:function(){return{isDisplaySuccessMessage:!1,isDisplayErrorMessage:!1,showProgreeModal:!1,perPageItemLength:25,headers:[{text:"カード番号",align:"start",sortable:!1,value:"pCodeId"},{text:"カード名",align:"start",sortable:!1,value:"name"},{text:"ユーザーID",align:"start",sortable:!1,value:"userId"},{text:"ユーザー名",align:"start",sortable:!1,value:"user.name"},{text:"カード種別",align:"start",sortable:!1,value:"typeName"},{text:"ステータス",align:"start",sortable:!1,value:"status"}],searchTargetItems:[{label:"カード番号",value:"pCodeId"},{label:"カード名",value:"name"},{label:"ユーザーID",value:"userId"}],selectedItem:[],isSelectGetConfirm:!1,isVisibleInputButton:!0}},watch:{successMessageLogsModal:function(e){e.length>0?this.isDisplaySuccessMessage=!0:this.isDisplaySuccessMessage=!1},errorMessageLogsModal:function(e){e.length>0?this.isDisplayErrorMessage=!0:this.isDisplayErrorMessage=!1},selectedItem:function(e){0===e.length?(this.isVisibleInputButton=!0,this.$emit("select-pcode","")):(this.isVisibleInputButton=!1,this.$emit("select-pcode",e[0]))},isSelectedClear:function(e){this.$emit("is-selected-clear-start",e),!0===e&&(this.selectedItem=[],this.$emit("selected-clear"))}},computed:{innerSearchValue:{get:function(){return this.searchValue},set:function(e){this.$emit("input-search-value",e)}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},methods:{close:function(){this.$emit("reset-msg"),this.$emit("close")},updateItemsPerPage:function(e){this.$emit("update-items-per-page",e)},updatePage:function(e){this.$emit("update-page",e)},clickSearch:function(e){this.$emit("search",e)},clickSelectPcode:function(){this.selectedItem.length>0&&this.$emit("enter-select-pcode",this.selectedItem[0])}}}),vR=hR,bR=(a("eae0"),Object(I["a"])(vR,mR,fR,!1,null,"02a3fc0f",null)),yR=bR.exports;C()(bR,{VBtn:pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VRow:Kr["a"],VSimpleCheckbox:Kh["a"],VSpacer:Qo["a"]});var IR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{value:e.isVisible,title:"ユーザーを1つ選択してください"},on:{close:e.close},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("v-container",{staticClass:"one-select-from-user-list-container",attrs:{fluid:""}},[a("alert",{attrs:{text:e.errorMessageLogsModal,type:"error"},model:{value:e.isDisplayErrorMessage,callback:function(t){e.isDisplayErrorMessage=t},expression:"isDisplayErrorMessage"}}),e._v(" "),a("alert",{attrs:{text:e.successMessageLogsModal,type:"success"},model:{value:e.isDisplaySuccessMessage,callback:function(t){e.isDisplaySuccessMessage=t},expression:"isDisplaySuccessMessage"}}),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",[a("search",{attrs:{label:"検索",searchTargetItems:e.searchTargetItems,disabled:e.isLoadingUsers},on:{search:function(t){return e.clickSearch(t)}},model:{value:e.innerSearchValue,callback:function(t){e.innerSearchValue=t},expression:"innerSearchValue"}})],1),e._v(" "),a("v-col",{staticClass:"col-md-3 text-align-end"},[a("v-btn",{staticClass:"btn-primary",attrs:{disabled:e.isVisibleInputButton,outlined:""},on:{click:function(t){return e.clickSelectUser()}}},[e._v("\n 選択したユーザーを入力\n ")])],1)],1),e._v(" "),a("v-data-table",{staticClass:"border-table scroll-table user-list-data-table",attrs:{headers:e.headers,loading:e.isLoadingUsers,items:e.users,"items-per-page":e.perPage,"show-select":e.showSelect,"single-select":!0,"fixed-header":!0,"no-data-text":"データはありません","loading-text":"データを読み込中です",dense:"","hide-default-footer":"","item-class":"align-center","item-key":"userId"},on:{"update:items-per-page":e.updateItemsPerPage,"update:page":e.updatePage,"update:options":function(t){return e.$emit("change-sort",t)}},scopedSlots:e._u([{key:"item.status",fn:function(t){var a=t.item;return[e._v("\n "+e._s(a.isValid?"有効":"無効")+"\n ")]}}],null,!0),model:{value:e.selectedItem,callback:function(t){e.selectedItem=t},expression:"selectedItem"}}),e._v(" "),a("v-row",{staticStyle:{height:"20px"},attrs:{"no-gutters":""}}),e._v(" "),a("v-spacer"),e._v(" "),a("v-row",{staticClass:"mt-3",attrs:{"no-gutters":"",justify:"space-between"}},[a("v-spacer"),e._v(" "),a("v-col",{staticClass:"mr-5 mb-2"},[a("select-per-page",{attrs:{page:e.page,"per-page-items":[25,50,100,1e3],"items-length":e.userTotalCount,disabled:e.isDisabledPagination},model:{value:e.innerPerPage,callback:function(t){e.innerPerPage=t},expression:"innerPerPage"}})],1),e._v(" "),a("pagination",{staticClass:"mb-1",attrs:{"page-length":Math.ceil(e.userTotalCount/e.perPage),disabled:e.isDisabledPagination},model:{value:e.innerPage,callback:function(t){e.innerPage=t},expression:"innerPage"}})],1)],1)]},proxy:!0}])})},xR=[],CR=f["a"].extend({name:"OneSelectFromUserList",components:{InputForm:io,Search:GM,SuccessButton:kr,CancelButton:fr,Modal:bn,Alert:Ou,Pagination:xo,SelectPerPage:To},props:{isVisible:{type:Boolean,default:function(){return!0}},isLoadingUsers:{type:Boolean,default:function(){return!1}},successMessageLogsModal:{type:String,default:""},errorMessageLogsModal:{type:String,default:""},user:{type:Object,default:function(){return{userId:"",userName:"",isValid:!0}}},users:{type:Array,default:function(){return[]}},showSelect:{type:Boolean,default:!1},searchValue:{type:Object,default:function(){return{text:"",targets:["userId","name"]}}},isSelectedClear:{type:Boolean,default:!1},userTotalCount:{type:Number,default:0},page:{type:Number,default:1},perPage:{type:Number,default:25},isDisabledPagination:{type:Boolean,default:!0}},data:function(){return{isDisplaySuccessMessage:!1,isDisplayErrorMessage:!1,showProgreeModal:!1,perPageItemLength:25,headers:[{text:"ユーザーID",align:"start",sortable:!1,value:"userId"},{text:"ユーザー名",align:"start",sortable:!1,value:"name"}],selectedItem:[],isSelectGetConfirm:!1,isVisibleInputButton:!0,searchTargetItems:[{label:"ユーザーID",value:"userId"},{label:"ユーザー名",value:"name"}]}},watch:{successMessageLogsModal:function(e){e.length>0?this.isDisplaySuccessMessage=!0:this.isDisplaySuccessMessage=!1},errorMessageLogsModal:function(e){e.length>0?this.isDisplayErrorMessage=!0:this.isDisplayErrorMessage=!1},selectedItem:function(e){0===e.length?(this.isVisibleInputButton=!0,this.$emit("select-user","")):(this.isVisibleInputButton=!1,this.$emit("select-user",e[0]))},isSelectedClear:function(e){this.$emit("is-selected-clear-start",e),!0===e&&(this.selectedItem=[],this.$emit("selected-clear"))}},computed:{innerSearchValue:{get:function(){return this.searchValue},set:function(e){this.$emit("input-search-value",e)}},innerPage:{get:function(){return this.page},set:function(e){this.$emit("change-page",e)}},innerPerPage:{get:function(){return this.perPage},set:function(e){this.$emit("change-per-page",e)}}},methods:{close:function(){this.$emit("reset-msg"),this.$emit("close")},updateItemsPerPage:function(e){this.$emit("update-items-per-page",e)},updatePage:function(e){this.$emit("update-page",e)},clickSearch:function(e){this.$emit("search",e)},clickSelectUser:function(){this.selectedItem.length>0&&this.$emit("enter-select-user",this.selectedItem[0])}}}),wR=CR,kR=(a("d86b"),Object(I["a"])(wR,IR,xR,!1,null,"0a16a986",null)),SR=kR.exports;C()(kR,{VBtn:pr["a"],VCol:Dr["a"],VContainer:Zo["a"],VDataTable:Xo["a"],VRow:Kr["a"],VSpacer:Qo["a"]});var _R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{value:e.isVisible,title:"顔写真一括登録"},on:{close:e.close},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("v-form",{ref:"formZenescanFaceImage",staticClass:"modal-body-top",attrs:{"lazy-validation":""}},[a("v-row",[a("v-col",{attrs:{md:11}},[a("drag-and-drop-file-input-form",{attrs:{title:"顔写真",inputType:"account-image-file",rules:[e.isValidInputFile(e.value)],alertText:"ファイルサイズが4MB以上の顔写真は登録時に圧縮されます"},model:{value:e.value.imageFiles,callback:function(t){e.$set(e.value,"imageFiles",t)},expression:"value.imageFiles"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{md:11}},[a("input-form",{attrs:{title:"テンプレート",inputType:"file",accept:".xlsx"},model:{value:e.value.importFile,callback:function(t){e.$set(e.value,"importFile",t)},expression:"value.importFile"}})],1)],1),e._v(" "),a("v-row",{attrs:{justify:"center"}},[a("v-btn",{staticClass:"btn-secondary mt-5",attrs:{outlined:""},on:{click:function(t){return e.$emit("click-download-template-excel")}}},[e._v("\n テンプレートのダウンロード\n ")])],1)],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.close()}}},[e._v("\n 閉じる\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.clickAddZenescanFaceImage()}}},[e._v("\n 次へ進む\n ")])],1)]},proxy:!0}])})},PR=[],MR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drag-and-drop-file-input-form"},[a("v-row",{on:{dragover:function(e){e.preventDefault()},dragenter:e.onDragEnter,dragleave:e.onDragLeave,drop:e.onDrop,change:e.onChange}},[e.$vuetify.breakpoint.mdAndUp&&(e.title||""!==e.helpText||""!==e.alertText)?a("v-col",{attrs:{cols:"2"}},[a("v-subheader",[a("span",{domProps:{innerHTML:e._s(e.title)}}),e._v(" "),""!==e.helpText?a("help-icon",{staticClass:"ml-2",attrs:{text:e.helpText},on:{click:function(t){return e.$emit("click-help",t)}}}):e._e(),e._v(" "),""!==e.alertText?a("alert-icon",{staticClass:"ml-2",attrs:{text:e.alertText},on:{click:function(t){return e.$emit("click-alert",t)}}}):e._e()],1)],1):e._e(),e._v(" "),a("v-col",["file"===e.inputType?a("v-file-input",{attrs:{accept:e.accept,label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",counter:"",dense:"",outlined:"",multiple:"","truncate-length":"50",placeholder:"ドラッグ&ドロップでも複数のファイルを入力できます",disabled:e.disabled,rules:e.rules,"prepend-icon":"","append-icon":"mdi-paperclip"},scopedSlots:e._u([{key:"selection",fn:function(t){var s=t.text;return[a("v-chip",{attrs:{color:"primary",label:"",small:""}},[e._v(e._s(s))])]}}],null,!1,3697154816),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):"account-image-file"===e.inputType?a("v-file-input",{attrs:{accept:e.imageAccept,label:""!==e.label?e.label:e.$vuetify.breakpoint.mdAndUp?"":e.title.replace(/(<([^>]+)>)/gi,""),color:"green","hide-details":"auto",counter:"",dense:"",outlined:"",multiple:"","truncate-length":"50",placeholder:"ドラッグ&ドロップでも複数のファイルを入力できます",disabled:e.disabled,rules:e.rules,height:"200","prepend-icon":"","append-icon":"mdi-file-account-outline"},scopedSlots:e._u([{key:"selection",fn:function(t){var s=t.index,r=t.text;return[s0)},isValidImportFile:function(e){return!!e},clickAddZenescanFaceImage:function(){var e=this.$refs.formZenescanFaceImage.validate();e&&this.$emit("add-face-image",this.value)}}}),ER=TR,OR=(a("d1b6"),Object(I["a"])(ER,_R,PR,!1,null,"b6a97d72",null)),VR=OR.exports;C()(OR,{VBtn:pr["a"],VCol:Dr["a"],VForm:Nl["a"],VRow:Kr["a"]});var UR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{value:e.isVisible,title:"顔写真一覧"},on:{close:e.close},scopedSlots:e._u([{key:"modal-body",fn:function(){return[a("v-form",{ref:"formFaceImage",staticClass:"modal-body",attrs:{"lazy-validation":""}},[a("v-container",{attrs:{fluid:""}},[e.imageFiles&&0!==e.imageFiles.length?e._e():a("v-row",[a("v-col",[a("v-card",{staticClass:"mx-auto",attrs:{width:"100%"}},[a("v-card-title",[e._v("\n データはありません\n ")])],1)],1)],1),e._v(" "),e._l(e.imageFiles,(function(t,s){return a("v-row",{key:t.fileName},[a("v-col",[a("v-card",{staticClass:"mx-auto",attrs:{width:"100%"}},[a("div",{staticClass:"d-flex flex-no-wrap"},[a("v-row",[a("v-col",{attrs:{cols:"2"}},[a("v-avatar",{staticClass:"ma-3",attrs:{size:"150",rounded:"0"}},[a("v-img",{attrs:{src:t.fileSrc}},[t.imageFile.size>e.maxFileSize?a("multiple-line-help-icon",{staticClass:"ml-2",attrs:{iconType:"alert",line1:"ファイルサイズが4MB以上です",line2:"ファイルサイズが4MB以上の顔写真は登録時に圧縮されます"}}):e._e()],1)],1)],1),e._v(" "),a("v-col",[a("v-card-actions",[a("v-col",[a("input-form",{attrs:{title:"照合種別",inputType:"select","select-items":e.typeItems,disabled:t.noDataFlag},on:{"change-select":function(t){return e.switchPcodeType(s)}},model:{value:t.pCodeType,callback:function(a){e.$set(t,"pCodeType",a)},expression:"item.pCodeType"}}),e._v(" "),a("input-form",{directives:[{name:"show",rawName:"v-show",value:2===t.pCodeType,expression:"item.pCodeType === 2"}],attrs:{title:"カード番号",inputType:"text",disabled:!0,helpText:"19桁の文字列が自動で生成されます"},model:{value:t.pCodeId,callback:function(a){e.$set(t,"pCodeId",a)},expression:"item.pCodeId"}}),e._v(" "),a("input-form",{directives:[{name:"show",rawName:"v-show",value:0===t.pCodeType,expression:"item.pCodeType === 0"}],attrs:{title:"カード番号",inputType:"text-plus",rules:[e.isRequired(t.pCodeId)]},on:{"click-add-btn":function(t){return e.$emit("click-add-pcode",s)}},model:{value:t.pCodeId,callback:function(a){e.$set(t,"pCodeId",a)},expression:"item.pCodeId"}}),e._v(" "),a("input-form",{directives:[{name:"show",rawName:"v-show",value:0===t.pCodeType,expression:"item.pCodeType === 0"}],attrs:{title:"ユーザー",inputType:"text",disabled:!0},model:{value:t.user,callback:function(a){e.$set(t,"user",a)},expression:"item.user"}}),e._v(" "),a("input-form",{directives:[{name:"show",rawName:"v-show",value:2===t.pCodeType,expression:"item.pCodeType === 2"}],attrs:{title:"ユーザーID",inputType:"text-plus",rules:[e.isRequired(t.userId)]},on:{"click-add-btn":function(t){return e.$emit("click-add-user",s)}},model:{value:t.userId,callback:function(a){e.$set(t,"userId",a)},expression:"item.userId"}}),e._v(" "),a("input-form",{directives:[{name:"show",rawName:"v-show",value:2===t.pCodeType,expression:"item.pCodeType === 2"}],attrs:{title:"ユーザー名",inputType:"text",disabled:!0},model:{value:t.userName,callback:function(a){e.$set(t,"userName",a)},expression:"item.userName"}})],1)],1)],1)],1)],1)])],1)],1)}))],2)],1),e._v(" "),a("v-container",{directives:[{name:"show",rawName:"v-show",value:!0===e.isVisibleInput,expression:"isVisibleInput === true"}]},[a("v-row",[a("v-divider",{staticClass:"my-3"})],1),e._v(" "),a("v-row",{attrs:{justify:"end"}},[a("v-col",[a("drag-and-drop-file-input-form",{attrs:{title:"顔写真",inputType:"account-image-file"},model:{value:e.imageData,callback:function(t){e.imageData=t},expression:"imageData"}})],1)],1),e._v(" "),a("v-row",[a("v-col",[a("input-form",{attrs:{title:"テンプレート",inputType:"file",accept:".csv,.xlsx"},model:{value:e.importFile,callback:function(t){e.importFile=t},expression:"importFile"}})],1)],1),e._v(" "),a("v-row",[a("v-col",[a("success-button",{attrs:{text:"画像一覧に反映する"},on:{click:function(t){return e.clickAddImage()}}})],1)],1),e._v(" "),a("v-row",[a("v-divider",{staticClass:"my-3"})],1)],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[a("v-row",{staticClass:"ma-2",attrs:{justify:"end"}},[a("v-btn",{staticClass:"btn-secondary",attrs:{outlined:""},on:{click:function(t){return e.close()}}},[e._v("\n 閉じる\n ")]),e._v(" "),a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.clickAddPostFaceImage()}}},[e._v("\n 登録\n ")])],1)]},proxy:!0}])})},$R=[],NR=f["a"].extend({name:"ImageListForm",components:{Modal:bn,InputForm:io,DragAndDropFileInputForm:RR,SuccessButton:kr,CancelButton:fr,MultipleLineHelpIcon:oR},props:{isVisible:{type:Boolean,default:function(){return!0}},isVisibleInput:{type:Boolean,default:function(){return!1}},value:{type:Array,default:function(){return[]}},typeItems:{type:Array,default:function(){return[]}},pCodeItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},userItems:{type:Array,default:function(){return[{text:"ロード中",value:"select1"}]}},pCodes:{type:Array,default:function(){return[]}},users:{type:Array,default:function(){return[]}}},data:function(){return{imageData:[],importFile:null,maxFileSize:4194304}},computed:{imageFiles:{get:function(){var e=this.value.map((function(e){return{fileName:e.imageFile.name,fileSrc:URL.createObjectURL(e.imageFile),imageFile:e.imageFile,pCodeId:e.pCodeId,pCodeType:e.pCodeType,userId:e.userId,userName:e.userName,user:e.user,options:e.options,noDataFlag:e.noDataFlag}}));return e},set:function(){}}},methods:{close:function(){this.$emit("reset-msg"),this.$emit("close")},switchPcodeType:function(e){0===this.value[e].pCodeType?(this.value[e].pCodeType=2,this.value[e].pCodeId=fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),this.value[e].userId="",this.value[e].userName="",this.value[e].user=""):(this.value[e].pCodeType=0,this.value[e].pCodeId="",this.value[e].userId="",this.value[e].userName="",this.value[e].user="")},changeTargetPCode:function(e,t){this.value[e].pCodeId=t;var a=this.pCodes.find((function(e){return e.pCodeId===t}));if(a&&a.user)this.value[e].userId=a.user.userId,this.value[e].userName=a.user.name,this.value[e].user=""===a.user.name?a.user.userId:"".concat(a.user.name,"(").concat(a.user.userId,")");else if(a){var s=this.users.find((function(e){return e.userId===a.userId}));s&&(this.value[e].userId=s.userId,this.value[e].userName=s.name,this.value[e].user=""===s.name?s.userId:"".concat(s.name,"(").concat(s.userId,")"))}},changeTargetUser:function(e,t){this.value[e].userId=t;var a=this.users.find((function(e){return e.userId===t}));a&&(this.value[e].userName=a.name,this.value[e].user=""===a.name?a.userId:"".concat(a.name,"(").concat(a.userId,")"))},isRequired:function(e){return!(!e||!e.length)||"必須項目のため、入力が必須です。"},clickAddPostFaceImage:function(){if(this.value.length>0){var e=this.$refs.formFaceImage.validate();e&&this.$emit("edit-face-image",this.value)}},clickAddImage:function(){var e=this;if(this.imageData&&this.imageData.length>0){var t=[];this.importExcelData().then((function(e){return t=e})).then((function(){var a=[];0===t.length?a=e.imageData.map((function(e){return{imageFile:e,faceImageId:"",pCodeId:fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),pCodeType:2,userId:"",userName:"",user:"",options:"",noDataFlag:!1}})):t.forEach((function(t){var s=e.imageData.find((function(e){return e.name===t.fileName}));s&&a.push({imageFile:s,faceImageId:"",pCodeId:t.pCodeId,pCodeType:t.pCodeType?t.pCodeType:0,userId:t.userId,userName:t.userName,user:t.user,options:"",noDataFlag:t.noDataFlag})})),e.$emit("input",a)}))}},importExcelData:function(){var e=this;return new Promise((function(t){var s=[];if(null!==e.importFile){var r=new FileReader;r.onload=function(){var o,n=r.result,i=a("1146"),l=i.read(n,{type:"array"}),c=l.SheetNames[0],u=l.Sheets[c],d=i.utils.sheet_to_json(u,{header:1}),g=Object(rr["a"])(d.entries());try{var p=function(){var t=Object(sr["a"])(o.value,2),a=(t[0],t[1]),r=void 0,n=void 0,i=void 0,l=void 0,c=void 0,u=void 0,d=!1;if(a.length>2&&void 0!==a[0]&&void 0!==a[1]){if(r=a[0],0!==a[1]&&2!==a[1]||(n=a[1]),0===a[1]&&void 0!==a[2]){var g=e.pCodes.find((function(e){return e.pCodeId===a[2]}));g&&g.user?0===g.type&&(i=a[2],l=g.user.userId,c=g.user.name,u=""===g.user.name?g.user.userId:"".concat(g.user.name,"(").concat(g.user.userId,")")):(d=!0,i=a[2],l="-",c="-",u="-")}else if(2===a[1]&&(i=fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),a[3])){var p=e.users.find((function(e){return e.userId===a[3]}));l="",c="",u="",p?(l=p.userId,c=p.name,u=""===p.name?p.userId:"".concat(p.name,"(").concat(p.userId,")")):(d=!0,l=a[3],c="-",u=l)}r&&(0===n||2===n)&&i&&l&&c&&u&&s.push({fileName:r,pCodeType:n,pCodeId:i,userId:l,userName:c,user:u,noDataFlag:d})}};for(g.s();!(o=g.n()).done;)p()}catch(m){g.e(m)}finally{g.f()}t(s)},r.readAsArrayBuffer(e.importFile)}else t(s)}))},clickAddUser:function(e){console.log("clickAddUser:".concat(e)),this.$emit("clickAddUser",e)}}}),FR=NR,jR=Object(I["a"])(FR,UR,$R,!1,null,null,null),BR=jR.exports;C()(jR,{VAvatar:I_["a"],VBtn:pr["a"],VCard:Pr["a"],VCardActions:Mr["a"],VCardTitle:Mr["c"],VCol:Dr["a"],VContainer:Zo["a"],VDivider:Pn["a"],VForm:Nl["a"],VImg:cS["a"],VRow:Kr["a"]});var zR=nr["a"].extend({name:"FaceAuthenticationPage",components:{ZenescanTemplate:kA,ProgressModal:kb,Alert:Ou,FaceImageInputVerification:WA,ZenescanFaceImageTarget:pR,ZenescanFaceImageBulkAdd:VR,ZenescanFaceImageBulkEdit:BR,OneSelectFromPcodeList:yR,OneSelectFromUserList:SR},data:function(){return{successMessages:[],errorMessages:[],loading:!1,zenescanFaceImageLoading:!1,pCodes:[],users:[],faceImages:[],tab:"zenescan-face-image",showSelectZenescanFaceImage:!0,typeItems:[{value:2,text:"顔のみ認証"},{value:0,text:"顔+カード認証"}],faceImageProgressModalInfo:{showModal:!1,indeterminate:!1,title:"",message:"",errorMessage:"",totalCount:0,finishedCount:0,errorCount:0,errorContents:[]},imageTablePerPage:100,imageTablePage:1,faceImageSearchValue:{text:"",targets:["pCodeId","pCode.userId","pCode.user.name"]},isSelectedClearFaceImage:!1,showInputVerificationModal:!1,inputFaceImage:[],verificationTitle:"確認",verificationMessage1:"ファイルサイズが4MB以上の顔写真が、含まれています。",verificationMessage2:"ファイルサイズが4MB以上の顔写真は、登録時に圧縮されます。",verificationMessage3:"継続する場合は、「登録する」ボタンをクリックしてください。",showEditFaceImage:!1,editFaceImage:{faceImageId:"",pCodeId:"",pCodeIdOld:"",pCodeType:0,pCodeTypeOld:0,pCodeIsValid:!0,pCodeIsValidOld:!0,userId:"",userIdOld:"",userName:"",imageBase64:""},faceImageTotalCount:0,faceImagePage:1,faceImagePerPage:25,isDisabledPaginationFaceImage:!0,userItems:[],pCodeItems:[],showOneSelectFromPcodeList:!1,showOneSelectFromUserList:!1,isLoadingOneSelectFromPcodeList:!1,searchValueOneSelectFromPcodeList:{text:"",targets:["pCodeId","name","userId"]},perPageOneSelectFromPcodeList:25,pageOneSelectFromPcodeList:1,oneSelectFromPcodes:[],totalCountOneSelectFromPcodeList:0,addPcodeTargetIndex:0,addFaceImageFileData:{imageFiles:[],importFile:null},showAddFaceImageFormModal:!1,addFaceImageFiles:[],showEditFaceImageFormModal:!1,searchValueOneSelectFromUserList:{text:"",targets:["userId","name"]},oneSelectFromUsers:[],totalCountOneSelectFromUserList:0,addUserTargetIndex:0,perPageOneSelectFromUserList:25,pageOneSelectFromUserList:1,isLoadingOneSelectFromUserList:!1,isDisabledPaginationOneSelectFromPcodeList:!0,isDisabledPaginationOneSelectFromUserList:!0,editIsInputPcode:!1,editIsInputUser:!1,pCodePlusBtnTooltip:"リストからカードを選択",userPlusBtnTooltip:"リストからユーザーを選択"}},created:function(){var e=this;this.loading=!0,Promise.all([this.load()]).catch((function(e){window.console.log("created-load-error:".concat(e.message))})).finally((function(){e.loading=!1}))},mounted:function(){this.$emit("activeMenu","zenescan")},computed:{},methods:{load:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{e.faceImageLoad()}catch(a){e.errorMessages=a.message}case 1:case"end":return t.stop()}}),t)})))()},faceImageLoad:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.zenescanFaceImageLoading=!0,e.isDisabledPaginationFaceImage=!0,t.next=5,e.getFaceImages(!1);case 5:e.zenescanFaceImageLoading=!1,e.isDisabledPaginationFaceImage=!1,t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](0),e.zenescanFaceImageLoading=!1,e.isDisabledPaginationFaceImage=!1;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},formUpdateFaceImage:function(e){this.$set(this.faceImages,e.index,e.value)},delFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,s=t.faceImages.findIndex((function(t){return t.faceImageId===e})),t.faceImages.splice(s,1),a.next=5,SA(t,e);case 5:a.next=11;break;case 7:throw a.prev=7,a.t0=a["catch"](0),t.errorMessages.push(a.t0.message),a.t0;case 11:case"end":return a.stop()}}),a,null,[[0,7]])})))()},updateImageOfPcode:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,PA(a,t.faceImageId,t.pCodeId);case 3:a.$set(a.faceImages,e,t),s.next=10;break;case 6:throw s.prev=6,s.t0=s["catch"](0),a.errorMessages.push(s.t0.message),s.t0;case 10:case"end":return s.stop()}}),s,null,[[0,6]])})))()},getFaceImages:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:a.prev=0,e&&(t.zenescanFaceImageLoading=!0,t.isDisabledPaginationFaceImage=!0),s=t.faceImageSearchValue.text,r="",o=Object(rr["a"])(t.faceImageSearchValue.targets.entries());try{for(o.s();!(n=o.n()).done;)i=Object(sr["a"])(n.value,2),l=i[0],c=i[1],0===l?r=c:r+=","+c}catch(u){o.e(u)}finally{o.f()}return a.next=8,t.getFaceImageOnePage(s,r);case 8:if(1e3===t.faceImagePerPage){a.next=11;break}return a.next=11,t.getFaceImageFile();case 11:return e&&(t.zenescanFaceImageLoading=!1,t.isDisabledPaginationFaceImage=!1),a.abrupt("return");case 15:throw a.prev=15,a.t0=a["catch"](0),e&&(t.zenescanFaceImageLoading=!1,t.isDisabledPaginationFaceImage=!1),t.errorMessages.push(a.t0.message),a.t0;case 20:case"end":return a.stop()}}),a,null,[[0,15]])})))()},getFaceImageOnePage:function(e,t){var a=this;return Object(or["a"])(regeneratorRuntime.mark((function s(){var r,o,n,i,l,c,u,d,g;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,a.faceImages=[],s.next=4,GA(a,a.faceImagePerPage,a.faceImagePage,e,t);case 4:r=s.sent,o=Object(sr["a"])(r,2),n=o[0],i=o[1],a.faceImageTotalCount=i,l=["顔+カード認証","テンキー認証","顔のみ認証"],c=Object(rr["a"])(n.entries());try{for(c.s();!(u=c.n()).done;)d=Object(sr["a"])(u.value,2),d[0],g=d[1],a.faceImages.push({faceImageId:g.faceImageId,md5:g.md5,pCodeId:g.pCodeId,pCode:g.pCode,pCodeType:g.pCode?g.pCode.type:void 0,pCodeTypeName:g.pCode?l[g.pCode.type]:void 0,pCodeIsValid:g.pCode?g.pCode.isValid:void 0,userId:g.pCode?g.pCode.userId:void 0,userName:g.pCode&&g.pCode.user?g.pCode.user.name:void 0,isFaceImageLoading:!1})}catch(p){c.e(p)}finally{c.f()}return s.abrupt("return");case 15:throw s.prev=15,s.t0=s["catch"](0),s.t0;case 18:case"end":return s.stop()}}),s,null,[[0,15]])})))()},getFaceImageFile:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.delegateYield(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(a=25,s=[],r=0;rs})).length,!(r>0)){a.next=7;break}t.showInputVerificationModal=!0,t.inputFaceImage=e,a.next=9;break;case 7:return a.next=9,t.addFaceImages(e);case 9:case"end":return a.stop()}}),a)})))()},verificationSaveFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.showInputVerificationModal=!1,a.next=3,t.addFaceImages(e);case 3:case"end":return a.stop()}}),a)})))()},addFaceImages:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!(e.length>0)){a.next=57;break}t.faceImageProgressModalInfo.finishedCount=0,t.faceImageProgressModalInfo.errorCount=0,t.faceImageProgressModalInfo.errorContents=[],t.faceImageProgressModalInfo.errorMessage="",t.faceImageProgressModalInfo.showModal=!0,t.faceImageProgressModalInfo.indeterminate=!0,t.faceImageProgressModalInfo.title="顔写真を一括登録中です...",t.faceImageProgressModalInfo.totalCount=e.length,s=Object(rr["a"])(e.entries()),a.prev=10,s.s();case 12:if((r=s.n()).done){a.next=35;break}return o=Object(sr["a"])(r.value,2),n=o[0],i=o[1],a.prev=14,t.faceImageProgressModalInfo.message="".concat(n+1,"件目の顔写真を一時保存中です(").concat(n+1,"/").concat(e.length,")..."),a.next=18,t.addFaceImageFile(i.imageFile);case 18:if(l=a.sent,2!==i.pCodeType){a.next=23;break}return t.faceImageProgressModalInfo.message="".concat(n+1,"件目のカードを登録中です(").concat(n+1,"/").concat(e.length,")..."),a.next=23,t.addPcode({pCodeId:i.pCodeId,name:i.pCodeId,type:i.pCodeType,isValid:!0,userId:i.userId});case 23:return t.faceImageProgressModalInfo.message="".concat(n+1,"件目の顔写真情報を登録中です(").concat(n+1,"/").concat(e.length,")..."),a.next=26,t.postFaceImage({imageFileId:l,pCodeId:i.pCodeId});case 26:a.next=32;break;case 28:a.prev=28,a.t0=a["catch"](14),t.faceImageProgressModalInfo.errorCount+=1,t.faceImageProgressModalInfo.errorContents.push("".concat(n+1,"件目: ").concat(a.t0.message));case 32:t.faceImageProgressModalInfo.finishedCount=n+1;case 33:a.next=12;break;case 35:a.next=40;break;case 37:a.prev=37,a.t1=a["catch"](10),s.e(a.t1);case 40:return a.prev=40,s.f(),a.finish(40);case 43:if(t.faceImageProgressModalInfo.indeterminate=!1,t.faceImageProgressModalInfo.title="顔写真の登録が完了しました",t.faceImageProgressModalInfo.message="顔写真の登録が完了しました",t.showEditFaceImageFormModal=!1,t.showAddFaceImageFormModal=!1,t.faceImageProgressModalInfo.errorCount===e.length){a.next=57;break}return t.faceImagePage=1,a.next=52,t.getTargetPcodes();case 52:return t.pCodes=a.sent,a.next=55,t.getFaceImages(!0);case 55:return a.next=57,t.updatePcodesToFaceImages();case 57:case"end":return a.stop()}}),a,null,[[10,37,40,43],[14,28]])})))()},progressModalClose:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.faceImageProgressModalInfo.showModal=!1;case 1:case"end":return t.stop()}}),t)})))()},showDialogConfirm:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r,o,n,i,l,c,u,d,g,p,m,f,h,v;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(a.prev=0,!e.faceImageIds||!e.pCodeIds||void 0===e.type||"number"!==typeof e.type){a.next=101;break}if(0!==e.type){a.next=36;break}t.faceImageProgressModalInfo.errorCount=0,t.faceImageProgressModalInfo.errorContents=[],t.faceImageProgressModalInfo.errorMessage="",t.faceImageProgressModalInfo.showModal=!0,t.faceImageProgressModalInfo.indeterminate=!0,t.faceImageProgressModalInfo.title="顔写真を有効化中です...",t.faceImageProgressModalInfo.totalCount=e.faceImageIds.length,t.faceImageProgressModalInfo.finishedCount=0,s=Object(rr["a"])(e.faceImageIds.entries()),a.prev=12,s.s();case 14:if((r=s.n()).done){a.next=22;break}return o=Object(sr["a"])(r.value,2),n=o[0],i=o[1],t.faceImageProgressModalInfo.message="".concat(n+1,"件目の顔写真を有効化中です...(").concat(n+1,"/").concat(e.faceImageIds.length,")..."),a.next=19,t.updateFaceImage(i,e.pCodeIds[n],!0);case 19:t.faceImageProgressModalInfo.finishedCount+=1;case 20:a.next=14;break;case 22:a.next=27;break;case 24:a.prev=24,a.t0=a["catch"](12),s.e(a.t0);case 27:return a.prev=27,s.f(),a.finish(27);case 30:t.faceImageProgressModalInfo.indeterminate=!1,t.faceImageProgressModalInfo.title="顔写真の有効化が完了しました",t.faceImageProgressModalInfo.message="顔写真の有効化が完了しました",t.isSelectedClearFaceImage=!0,a.next=101;break;case 36:if(1!==e.type){a.next=70;break}t.faceImageProgressModalInfo.errorCount=0,t.faceImageProgressModalInfo.errorContents=[],t.faceImageProgressModalInfo.errorMessage="",t.faceImageProgressModalInfo.showModal=!0,t.faceImageProgressModalInfo.indeterminate=!0,t.faceImageProgressModalInfo.title="顔写真を無効化中です...",t.faceImageProgressModalInfo.totalCount=e.faceImageIds.length,t.faceImageProgressModalInfo.finishedCount=0,l=Object(rr["a"])(e.faceImageIds.entries()),a.prev=46,l.s();case 48:if((c=l.n()).done){a.next=56;break}return u=Object(sr["a"])(c.value,2),d=u[0],g=u[1],t.faceImageProgressModalInfo.message="".concat(d+1,"件目の顔写真を無効化中です...(").concat(d+1,"/").concat(e.faceImageIds.length,")..."),a.next=53,t.updateFaceImage(g,e.pCodeIds[d],!1);case 53:t.faceImageProgressModalInfo.finishedCount+=1;case 54:a.next=48;break;case 56:a.next=61;break;case 58:a.prev=58,a.t1=a["catch"](46),l.e(a.t1);case 61:return a.prev=61,l.f(),a.finish(61);case 64:t.faceImageProgressModalInfo.indeterminate=!1,t.faceImageProgressModalInfo.title="顔写真の無効化が完了しました",t.faceImageProgressModalInfo.message="顔写真の無効化が完了しました",t.isSelectedClearFaceImage=!0,a.next=101;break;case 70:if(2!==e.type){a.next=101;break}t.faceImageProgressModalInfo.errorCount=0,t.faceImageProgressModalInfo.errorContents=[],t.faceImageProgressModalInfo.errorMessage="",t.faceImageProgressModalInfo.showModal=!0,t.faceImageProgressModalInfo.indeterminate=!0,t.faceImageProgressModalInfo.title="顔写真を削除中です...",t.faceImageProgressModalInfo.totalCount=e.faceImageIds.length,t.faceImageProgressModalInfo.finishedCount=0,p=Object(rr["a"])(e.faceImageIds.entries()),a.prev=80,p.s();case 82:if((m=p.n()).done){a.next=90;break}return f=Object(sr["a"])(m.value,2),h=f[0],v=f[1],t.faceImageProgressModalInfo.message="".concat(h+1,"件目の顔写真を削除中です...(").concat(h+1,"/").concat(e.faceImageIds.length,")..."),a.next=87,t.deleteFaceImageById(v);case 87:t.faceImageProgressModalInfo.finishedCount+=1;case 88:a.next=82;break;case 90:a.next=95;break;case 92:a.prev=92,a.t2=a["catch"](80),p.e(a.t2);case 95:return a.prev=95,p.f(),a.finish(95);case 98:t.faceImageProgressModalInfo.indeterminate=!1,t.faceImageProgressModalInfo.title="顔写真の削除が完了しました",t.faceImageProgressModalInfo.message="顔写真の削除が完了しました";case 101:a.next=108;break;case 103:throw a.prev=103,a.t3=a["catch"](0),t.faceImageProgressModalInfo.showModal=!1,t.errorMessages.push(a.t3.message),a.t3;case 108:case"end":return a.stop()}}),a,null,[[0,103],[12,24,27,30],[46,58,61,64],[80,92,95,98]])})))()},singleDeleteFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.faceImageProgressModalInfo.errorCount=0,t.faceImageProgressModalInfo.errorContents=[],t.faceImageProgressModalInfo.errorMessage="",t.faceImageProgressModalInfo.showModal=!0,t.faceImageProgressModalInfo.indeterminate=!0,t.faceImageProgressModalInfo.title="顔写真を削除中です...",t.faceImageProgressModalInfo.totalCount=1,t.faceImageProgressModalInfo.finishedCount=0,t.faceImageProgressModalInfo.message="顔写真を削除中です...",a.next=12,t.deleteFaceImageById(e);case 12:t.faceImageProgressModalInfo.finishedCount=1,t.faceImageProgressModalInfo.indeterminate=!1,t.faceImageProgressModalInfo.title="顔写真の削除が完了しました",t.faceImageProgressModalInfo.message="顔写真の削除が完了しました",a.next=23;break;case 18:throw a.prev=18,a.t0=a["catch"](0),t.faceImageProgressModalInfo.showModal=!1,t.errorMessages.push(a.t0.message),a.t0;case 23:case"end":return a.stop()}}),a,null,[[0,18]])})))()},imageTableUpdateItemsPerPage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.imageTablePerPage=e;case 1:case"end":return a.stop()}}),a)})))()},imageTableUpdatePage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.imageTablePage=e;case 1:case"end":return a.stop()}}),a)})))()},searchFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.faceImageSearchValue=e,t.faceImagePage=1,a.next=5,t.getFaceImages(!0);case 5:return a.next=7,t.updatePcodesToFaceImages();case 7:a.next=12;break;case 9:throw a.prev=9,a.t0=a["catch"](0),a.t0;case 12:case"end":return a.stop()}}),a,null,[[0,9]])})))()},selectedClearFaceImage:function(){this.isSelectedClearFaceImage=!1},noMatchFaceImage:function(){this.errorMessages.push("追加処理にて、テンプレートの値と実際のファイル名やカード(種別を含む)が不一致のため、処理できるデータがありませんでした")},openEditFaceImage:function(e){var t=this.faceImages.find((function(t){return t.faceImageId===e}));t&&(this.editFaceImage.faceImageId=t.faceImageId,this.editFaceImage.imageBase64=t.faceImageBase64?t.faceImageBase64:"",this.editFaceImage.pCodeId=t.pCodeId,this.editFaceImage.pCodeIdOld=t.pCodeId,void 0!==t.pCodeType&&(this.editFaceImage.pCodeType=t.pCodeType,this.editFaceImage.pCodeTypeOld=t.pCodeType),void 0!==t.pCodeIsValid&&(this.editFaceImage.pCodeIsValid=t.pCodeIsValid,this.editFaceImage.pCodeIsValidOld=t.pCodeIsValid),this.editFaceImage.userId=t.userId,this.editFaceImage.userIdOld=t.userId,this.editIsInputPcode=!1,this.editIsInputUser=!1,this.showEditFaceImage=!0)},editSaveFaceImage:function(e){this.showEditFaceImage=!1,e.faceImageId===this.editFaceImage.faceImageId&&(e.pCodeType===this.editFaceImage.pCodeTypeOld?2===e.pCodeType&&e.userId!==this.editFaceImage.userIdOld?this.updatePcodeTypeFaceImage(e.faceImageId,e.pCodeId,e.pCodeIsValid,e.userId,e.faceImageFile):0===e.pCodeType&&e.pCodeId!==this.editFaceImage.pCodeIdOld?this.updateFaceImagePcodeId(e.faceImageId,e.pCodeId,e.pCodeIsValid,e.faceImageFile):e.faceImageFile?this.updateFaceImageFile(e.faceImageId,e.pCodeId,e.pCodeIsValid,e.faceImageFile):e.pCodeIsValid!==this.editFaceImage.pCodeIsValidOld&&this.updatePcodeIsValid(e.faceImageId,e.pCodeId,e.pCodeIsValid):2===e.pCodeType?this.addPocdeAndUpdateFaceImage(e.faceImageId,e.pCodeId,e.userId,e.pCodeIsValid,e.faceImageFile):0===e.pCodeType&&this.invalidPocdeAndUpdateFaceImage(e.faceImageId,e.pCodeId,this.editFaceImage.pCodeIdOld,e.pCodeIsValid,e.faceImageFile))},changePageFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.faceImagePage=e,a.next=4,t.getFaceImages(!0);case 4:return a.next=6,t.updatePcodesToFaceImages();case 6:a.next=11;break;case 8:throw a.prev=8,a.t0=a["catch"](0),a.t0;case 11:case"end":return a.stop()}}),a,null,[[0,8]])})))()},changePerPageFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.faceImagePerPage=e,t.faceImagePage=1,a.next=5,t.getFaceImages(!0);case 5:return a.next=7,t.updatePcodesToFaceImages();case 7:a.next=12;break;case 9:throw a.prev=9,a.t0=a["catch"](0),a.t0;case 12:case"end":return a.stop()}}),a,null,[[0,9]])})))()},updatePcodeTypeFaceImage:function(e,t,a,s,r){var o=this;return Object(or["a"])(regeneratorRuntime.mark((function n(){var i,l,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,o.faceImageProgressModalInfo.errorCount=0,o.faceImageProgressModalInfo.errorContents=[],o.faceImageProgressModalInfo.errorMessage="",o.faceImageProgressModalInfo.showModal=!0,o.faceImageProgressModalInfo.indeterminate=!0,o.faceImageProgressModalInfo.title="顔写真情報を更新中です...",o.faceImageProgressModalInfo.totalCount=1,o.faceImageProgressModalInfo.finishedCount=0,i={userId:s,isValid:a},o.faceImageProgressModalInfo.message="顔写真に紐ついているカードを更新中です...",n.next=13,hg(o,t,i);case 13:if(l=null,!r){n.next=19;break}return o.faceImageProgressModalInfo.message="顔写真を更新中です...",n.next=18,o.changeFaceImage(t,e,r);case 18:l=n.sent;case 19:if(c=o.faceImages.findIndex((function(t){return t.faceImageId===e})),-1===c){n.next=23;break}return n.next=23,o.getFaceImageAndUpdateList(c,l||e,!!l);case 23:o.faceImageProgressModalInfo.finishedCount=1,o.faceImageProgressModalInfo.indeterminate=!1,o.faceImageProgressModalInfo.title="顔写真情報の更新が完了しました",o.faceImageProgressModalInfo.message="顔写真情報の更新が完了しました",n.next=34;break;case 29:throw n.prev=29,n.t0=n["catch"](0),o.faceImageProgressModalInfo.showModal=!1,o.errorMessages.push(n.t0.message),n.t0;case 34:case"end":return n.stop()}}),n,null,[[0,29]])})))()},updateFaceImagePcodeId:function(e,t,a,s){var r=this;return Object(or["a"])(regeneratorRuntime.mark((function o(){var n,i,l;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(o.prev=0,r.faceImageProgressModalInfo.errorCount=0,r.faceImageProgressModalInfo.errorContents=[],r.faceImageProgressModalInfo.errorMessage="",r.faceImageProgressModalInfo.showModal=!0,r.faceImageProgressModalInfo.indeterminate=!0,r.faceImageProgressModalInfo.title="顔写真情報を更新中です...",r.faceImageProgressModalInfo.totalCount=1,r.faceImageProgressModalInfo.finishedCount=0,n=null,!s){o.next=17;break}return r.faceImageProgressModalInfo.message="顔写真を更新中です...",o.next=14,r.changeFaceImage(t,e,s);case 14:n=o.sent,o.next=20;break;case 17:return r.faceImageProgressModalInfo.message="顔写真に紐ついているカードを更新中です...",o.next=20,PA(r,e,t);case 20:return i={isValid:a},r.faceImageProgressModalInfo.message="顔写真に紐ついているカードを更新中です...",o.next=24,hg(r,t,i);case 24:if(l=r.faceImages.findIndex((function(t){return t.faceImageId===e})),-1===l){o.next=28;break}return o.next=28,r.getFaceImageAndUpdateList(l,n||e,!!n);case 28:r.faceImageProgressModalInfo.finishedCount=1,r.faceImageProgressModalInfo.indeterminate=!1,r.faceImageProgressModalInfo.title="顔写真情報の更新が完了しました",r.faceImageProgressModalInfo.message="顔写真情報の更新が完了しました",o.next=39;break;case 34:throw o.prev=34,o.t0=o["catch"](0),r.faceImageProgressModalInfo.showModal=!1,r.errorMessages.push(o.t0.message),o.t0;case 39:case"end":return o.stop()}}),o,null,[[0,34]])})))()},addPocdeAndUpdateFaceImage:function(e,t,a,s,r){var o=this;return Object(or["a"])(regeneratorRuntime.mark((function n(){var i,l,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,o.faceImageProgressModalInfo.errorCount=0,o.faceImageProgressModalInfo.errorContents=[],o.faceImageProgressModalInfo.errorMessage="",o.faceImageProgressModalInfo.showModal=!0,o.faceImageProgressModalInfo.indeterminate=!0,o.faceImageProgressModalInfo.title="顔写真情報を更新中です...",o.faceImageProgressModalInfo.totalCount=1,o.faceImageProgressModalInfo.finishedCount=0,o.faceImageProgressModalInfo.message="顔のみ認証の個人コードを追加中です...",i={pCodeId:t,name:t,type:2,isValid:s,userId:a},n.next=13,bg(o,i);case 13:if(l=null,!r){n.next=21;break}return o.faceImageProgressModalInfo.message="顔写真を更新中です...",n.next=18,o.changeFaceImage(t,e,r);case 18:l=n.sent,n.next=24;break;case 21:return o.faceImageProgressModalInfo.message="顔写真情報の更新中です...",n.next=24,PA(o,e,t);case 24:if(c=o.faceImages.findIndex((function(t){return t.faceImageId===e})),-1===c){n.next=28;break}return n.next=28,o.getFaceImageAndUpdateList(c,l||e,!!l);case 28:o.faceImageProgressModalInfo.finishedCount=1,o.faceImageProgressModalInfo.indeterminate=!1,o.faceImageProgressModalInfo.title="顔写真情報の更新が完了しました",o.faceImageProgressModalInfo.message="顔写真情報の更新が完了しました",n.next=39;break;case 34:throw n.prev=34,n.t0=n["catch"](0),o.faceImageProgressModalInfo.showModal=!1,o.errorMessages.push(n.t0.message),n.t0;case 39:case"end":return n.stop()}}),n,null,[[0,34]])})))()},invalidPocdeAndUpdateFaceImage:function(e,t,a,s,r){var o=this;return Object(or["a"])(regeneratorRuntime.mark((function n(){var i,l,c,u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,o.faceImageProgressModalInfo.errorCount=0,o.faceImageProgressModalInfo.errorContents=[],o.faceImageProgressModalInfo.errorMessage="",o.faceImageProgressModalInfo.showModal=!0,o.faceImageProgressModalInfo.indeterminate=!0,o.faceImageProgressModalInfo.title="顔写真情報を更新中です...",o.faceImageProgressModalInfo.totalCount=1,o.faceImageProgressModalInfo.finishedCount=0,i={isValid:!1},o.faceImageProgressModalInfo.message="顔のみ認証の個人コードを無効化中です...",n.next=13,hg(o,a,i);case 13:if(l=null,!r){n.next=21;break}return o.faceImageProgressModalInfo.message="顔写真を更新中です...",n.next=18,o.changeFaceImage(t,e,r);case 18:l=n.sent,n.next=24;break;case 21:return o.faceImageProgressModalInfo.message="顔写真情報の更新中です...",n.next=24,PA(o,e,t);case 24:return c={isValid:s},o.faceImageProgressModalInfo.message="顔+カード認証の個人コードを更新中です...",n.next=28,hg(o,t,c);case 28:if(u=o.faceImages.findIndex((function(t){return t.faceImageId===e})),-1===u){n.next=32;break}return n.next=32,o.getFaceImageAndUpdateList(u,l||e,!!l);case 32:o.faceImageProgressModalInfo.finishedCount=1,o.faceImageProgressModalInfo.indeterminate=!1,o.faceImageProgressModalInfo.title="顔写真情報の更新が完了しました",o.faceImageProgressModalInfo.message="顔写真情報の更新が完了しました",n.next=43;break;case 38:throw n.prev=38,n.t0=n["catch"](0),o.faceImageProgressModalInfo.showModal=!1,o.errorMessages.push(n.t0.message),n.t0;case 43:case"end":return n.stop()}}),n,null,[[0,38]])})))()},updateFaceImageFile:function(e,t,a,s){var r=this;return Object(or["a"])(regeneratorRuntime.mark((function o(){var n,i,l;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(o.prev=0,r.faceImageProgressModalInfo.errorCount=0,r.faceImageProgressModalInfo.errorContents=[],r.faceImageProgressModalInfo.errorMessage="",r.faceImageProgressModalInfo.showModal=!0,r.faceImageProgressModalInfo.indeterminate=!0,r.faceImageProgressModalInfo.title="顔写真情報を更新中です...",r.faceImageProgressModalInfo.totalCount=1,r.faceImageProgressModalInfo.finishedCount=0,n=null,!s){o.next=15;break}return r.faceImageProgressModalInfo.message="顔写真を更新中です...",o.next=14,r.changeFaceImage(t,e,s);case 14:n=o.sent;case 15:if(r.editFaceImage.pCodeIsValidOld===a){o.next=20;break}return i={isValid:a},r.faceImageProgressModalInfo.message="顔写真に紐ついているカードを更新中です...",o.next=20,hg(r,t,i);case 20:if(l=r.faceImages.findIndex((function(t){return t.faceImageId===e})),-1===l){o.next=24;break}return o.next=24,r.getFaceImageAndUpdateList(l,n||e,!!n);case 24:r.faceImageProgressModalInfo.finishedCount=1,r.faceImageProgressModalInfo.indeterminate=!1,r.faceImageProgressModalInfo.title="顔写真情報の更新が完了しました",r.faceImageProgressModalInfo.message="顔写真情報の更新が完了しました",o.next=35;break;case 30:throw o.prev=30,o.t0=o["catch"](0),r.faceImageProgressModalInfo.showModal=!1,r.errorMessages.push(o.t0.message),o.t0;case 35:case"end":return o.stop()}}),o,null,[[0,30]])})))()},updatePcodeIsValid:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function r(){var o,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(r.prev=0,s.editFaceImage.pCodeIsValidOld===a){r.next=20;break}return s.faceImageProgressModalInfo.errorCount=0,s.faceImageProgressModalInfo.errorContents=[],s.faceImageProgressModalInfo.errorMessage="",s.faceImageProgressModalInfo.showModal=!0,s.faceImageProgressModalInfo.indeterminate=!0,s.faceImageProgressModalInfo.title="顔写真情報を更新中です...",s.faceImageProgressModalInfo.totalCount=1,s.faceImageProgressModalInfo.finishedCount=0,o={isValid:a},s.faceImageProgressModalInfo.message="顔写真に紐ついているカードを更新中です...",r.next=14,hg(s,t,o);case 14:n=s.faceImages.findIndex((function(t){return t.faceImageId===e})),-1!==n&&(s.faceImages[n].pCode.isValid=a,s.faceImages[n].pCodeIsValid=a,s.$set(s.faceImages,n,s.faceImages[n])),s.faceImageProgressModalInfo.finishedCount=1,s.faceImageProgressModalInfo.indeterminate=!1,s.faceImageProgressModalInfo.title="顔写真情報の更新が完了しました",s.faceImageProgressModalInfo.message="顔写真情報の更新が完了しました";case 20:r.next=27;break;case 22:throw r.prev=22,r.t0=r["catch"](0),s.faceImageProgressModalInfo.showModal=!1,s.errorMessages.push(r.t0.message),r.t0;case 27:case"end":return r.stop()}}),r,null,[[0,22]])})))()},updatePcodesToFaceImages:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,a=["顔+カード認証","テンキー認証","顔のみ認証"],s=Object(rr["a"])(e.faceImages.entries());try{for(o=function(){var t=Object(sr["a"])(r.value,2),s=t[0],o=t[1],n=e.pCodes.find((function(e){return e.pCodeId===o.pCodeId}));n&&(e.faceImages[s].pCodeType=n.type,e.faceImages[s].pCodeTypeName=a[n.type],e.faceImages[s].pCodeIsValid=n.isValid,e.faceImages[s].userId=n.userId,n.user&&(e.faceImages[s].userName=n.user.name),e.$set(e.faceImages,s,e.faceImages[s]))},s.s();!(r=s.n()).done;)o()}catch(n){s.e(n)}finally{s.f()}t.next=9;break;case 6:throw t.prev=6,t.t0=t["catch"](0),t.t0;case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()},addUserItems:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,e.userItems=e.users.filter((function(e){return!0===e.isValid})).map((function(e){return{text:""===e.name?e.userId:"".concat(e.name,"(").concat(e.userId,")"),value:e.userId}})),t.next=7;break;case 4:throw t.prev=4,t.t0=t["catch"](0),t.t0;case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))()},addPcodeItems:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,e.pCodeItems=e.pCodes.filter((function(e){return 0===e.type&&""!==e.userId})).map((function(e){var t="";return e.user&&(t=e.user.name&&e.user.name.length>0?" - ユーザー:".concat(e.user.name,"(").concat(e.userId,")"):" - ユーザー:".concat(e.userId)),{text:""===e.name?"カード:".concat(e.pCodeId).concat(t):"カード:".concat(e.name,"(").concat(e.pCodeId,")").concat(t),value:e.pCodeId}})),t.next=7;break;case 4:throw t.prev=4,t.t0=t["catch"](0),t.t0;case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))()},clickFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,t.getSingleFaceImage(e);case 3:a.next=8;break;case 5:throw a.prev=5,a.t0=a["catch"](0),a.t0;case 8:case"end":return a.stop()}}),a,null,[[0,5]])})))()},getSingleFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(a.prev=0,s=t.faceImages.findIndex((function(t){return t.faceImageId===e})),-1===s){a.next=11;break}return t.faceImages[s].isFaceImageLoading=!0,t.$set(t.faceImages,s,t.faceImages[s]),a.next=7,$A(t,e);case 7:r=a.sent,r&&-1===r.search(/^data:image\/[a-z,*]+;base64,/)?t.faceImages[s].faceImageBase64="data:image/*;base64,"+r:t.faceImages[s].faceImageBase64=r,t.faceImages[s].isFaceImageLoading=!1,t.$set(t.faceImages,s,t.faceImages[s]);case 11:a.next=16;break;case 13:throw a.prev=13,a.t0=a["catch"](0),a.t0;case 16:case"end":return a.stop()}}),a,null,[[0,13]])})))()},clickAddPcode:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.addPcodeTargetIndex=e,t.searchValueOneSelectFromPcodeList.text="",t.searchValueOneSelectFromPcodeList.targets=["pCodeId","name","userId"],t.pageOneSelectFromPcodeList=1,t.perPageOneSelectFromPcodeList=25,a.next=8,t.getPcodesAndShowModalList();case 8:a.next=13;break;case 10:throw a.prev=10,a.t0=a["catch"](0),a.t0;case 13:case"end":return a.stop()}}),a,null,[[0,10]])})))()},searchOneSelectFromPcodeList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.searchValueOneSelectFromPcodeList=e,t.pageOneSelectFromPcodeList=1,a.next=5,t.getPcodesAndShowModalList();case 5:a.next=10;break;case 7:throw a.prev=7,a.t0=a["catch"](0),a.t0;case 10:case"end":return a.stop()}}),a,null,[[0,7]])})))()},editModalClickAddPcode:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.searchValueOneSelectFromPcodeList.text="",e.searchValueOneSelectFromPcodeList.targets=["pCodeId","name","userId"],e.pageOneSelectFromPcodeList=1,e.perPageOneSelectFromPcodeList=25,t.next=7,e.getPcodesAndShowModalList();case 7:t.next=12;break;case 9:throw t.prev=9,t.t0=t["catch"](0),t.t0;case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},enterSelectPcode:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:a.prev=0,t.showEditFaceImageFormModal?(t.addFaceImageFiles[t.addPcodeTargetIndex].pCodeId=e.pCodeId,t.addFaceImageFiles[t.addPcodeTargetIndex].pCodeType=e.type,t.addFaceImageFiles[t.addPcodeTargetIndex].userId=e.userId,t.addFaceImageFiles[t.addPcodeTargetIndex].userName=e.user?e.user.name:"",t.addFaceImageFiles[t.addPcodeTargetIndex].user=e.user?"".concat(e.user.name,"(").concat(e.userId,")"):e.userId):t.showEditFaceImage&&(t.editFaceImage.pCodeId=e.pCodeId,t.editFaceImage.pCodeType=e.type,t.editFaceImage.pCodeIsValid=e.isValid,t.editFaceImage.userId=e.userId,t.editFaceImage.userName=e.user?e.user.name:"",t.editIsInputPcode=!0),t.showOneSelectFromPcodeList=!1,a.next=8;break;case 5:throw a.prev=5,a.t0=a["catch"](0),a.t0;case 8:case"end":return a.stop()}}),a,null,[[0,5]])})))()},updatePageOneSelectFromPcodeList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.pageOneSelectFromPcodeList=e;case 1:case"end":return a.stop()}}),a)})))()},changePageOneSelectFromPcodeList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.pageOneSelectFromPcodeList=e,a.next=4,t.getPcodesAndShowModalList();case 4:a.next=9;break;case 6:throw a.prev=6,a.t0=a["catch"](0),a.t0;case 9:case"end":return a.stop()}}),a,null,[[0,6]])})))()},updatePerPageOneSelectFromPcodeList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.perPageOneSelectFromPcodeList=e;case 1:case"end":return a.stop()}}),a)})))()},changePerPageOneSelectFromPcodeList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.perPageOneSelectFromPcodeList=e,t.pageOneSelectFromPcodeList=1,a.next=5,t.getPcodesAndShowModalList();case 5:a.next=10;break;case 7:throw a.prev=7,a.t0=a["catch"](0),a.t0;case 10:case"end":return a.stop()}}),a,null,[[0,7]])})))()},clickAddFaceImage:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,e.addFaceImageFileData.imageFiles=[],e.addFaceImageFileData.importFile=null,e.addFaceImageFiles=[],e.showAddFaceImageFormModal=!0,t.next=10;break;case 7:throw t.prev=7,t.t0=t["catch"](0),t.t0;case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},importExcelData:function(e){var t=this;return new Promise((function(s){var r=[];if(null!==e.importFile){var o=new FileReader;o.onload=function(){var e,n=o.result,i=a("1146"),l=i.read(n,{type:"array"}),c=l.SheetNames[0],u=l.Sheets[c],d=i.utils.sheet_to_json(u,{header:1}),g=Object(rr["a"])(d);try{var p=function(){var a=e.value,s=void 0,o=void 0,n=void 0,i=void 0,l=void 0,c=void 0,u=!1;if(a.length>2&&void 0!==a[0]&&void 0!==a[1]){if(s=a[0],0!==a[1]&&2!==a[1]||(o=a[1]),0===a[1]&&void 0!==a[2]){var d=t.pCodes.find((function(e){return e.pCodeId===a[2]}));if(d){if(0===d.type)if(n=a[2],d.user)i=d.user.userId,l=d.user.name,c=""===d.user.name?d.user.userId:"".concat(d.user.name,"(").concat(d.user.userId,")");else if(d.userId&&d.userId.length>0){var g=t.users.find((function(e){return e.userId===d.userId}));g&&(i=g.userId,l=g.name,c=""===g.name?g.userId:"".concat(g.name,"(").concat(g.userId,")"))}}else u=!0,n=a[2],i="-",l="-",c="-"}else if(2===a[1]&&(n=fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),a[3])){var p=t.users.find((function(e){return e.userId===a[3]}));i="",l="",c="",p?(i=p.userId,l=p.name,c=""===p.name?p.userId:"".concat(p.name,"(").concat(p.userId,")")):(u=!0,i=a[3],l="-",c=i)}s&&(0===o||2===o)&&n&&i&&l&&c&&r.push({fileName:s,pCodeType:o,pCodeId:n,userId:i,userName:l,user:c,noDataFlag:u})}};for(g.s();!(e=g.n()).done;)p()}catch(m){g.e(m)}finally{g.f()}s(r)},o.readAsArrayBuffer(e.importFile)}else s(r)}))},bulkAddFaceImage:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:a.prev=0,e.imageFiles&&e.imageFiles.length>0&&(s=[],t.importExcelData(e).then((function(e){return s=e})).then((function(){var a=[];0===s.length?a=e.imageFiles.map((function(e){return{imageFile:e,faceImageId:"",pCodeId:fA.a.randomBytes(10).toString("hex").slice(0,19).toUpperCase(),pCodeType:2,userId:"",userName:"",user:"",options:"",noDataFlag:!1}})):s.forEach((function(t){var s=e.imageFiles.find((function(e){return e.name===t.fileName}));s&&a.push({imageFile:s,faceImageId:"",pCodeId:t.pCodeId,pCodeType:t.pCodeType?t.pCodeType:0,userId:t.userId,userName:t.userName,user:t.user,options:"",noDataFlag:t.noDataFlag})})),t.addFaceImageFiles=a,t.showEditFaceImageFormModal=!0,a.length>0?t.showEditFaceImageFormModal=!0:t.showEditFaceImageFormModal=!1}))),a.next=7;break;case 4:throw a.prev=4,a.t0=a["catch"](0),a.t0;case 7:case"end":return a.stop()}}),a,null,[[0,4]])})))()},searchOneSelectFromUserList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.searchValueOneSelectFromUserList=e,t.pageOneSelectFromUserList=1,a.next=5,t.getUsersAndShowModalList();case 5:a.next=10;break;case 7:throw a.prev=7,a.t0=a["catch"](0),a.t0;case 10:case"end":return a.stop()}}),a,null,[[0,7]])})))()},enterSelectUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:a.prev=0,t.showEditFaceImageFormModal?(t.addFaceImageFiles[t.addUserTargetIndex].userId=e.userId,t.addFaceImageFiles[t.addUserTargetIndex].userName=e.name,t.addFaceImageFiles[t.addUserTargetIndex].user=e.userId):t.showEditFaceImage&&(t.editFaceImage.userId=e.userId,t.editFaceImage.userName=e.name,t.editIsInputUser=!0),t.showOneSelectFromUserList=!1,a.next=8;break;case 5:throw a.prev=5,a.t0=a["catch"](0),a.t0;case 8:case"end":return a.stop()}}),a,null,[[0,5]])})))()},updatePageOneSelectFromUserList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.pageOneSelectFromUserList=e;case 1:case"end":return a.stop()}}),a)})))()},changePageOneSelectFromUserList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.pageOneSelectFromUserList=e,a.next=4,t.getUsersAndShowModalList();case 4:a.next=9;break;case 6:throw a.prev=6,a.t0=a["catch"](0),a.t0;case 9:case"end":return a.stop()}}),a,null,[[0,6]])})))()},updatePerPageOneSelectFromUserList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.perPageOneSelectFromUserList=e;case 1:case"end":return a.stop()}}),a)})))()},changePerPageOneSelectFromUserList:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.perPageOneSelectFromUserList=e,t.pageOneSelectFromUserList=1,a.next=5,t.getUsersAndShowModalList();case 5:a.next=10;break;case 7:throw a.prev=7,a.t0=a["catch"](0),a.t0;case 10:case"end":return a.stop()}}),a,null,[[0,7]])})))()},clickAddUser:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,t.addUserTargetIndex=e,t.searchValueOneSelectFromUserList.text="",t.searchValueOneSelectFromUserList.targets=["userId","name"],t.pageOneSelectFromUserList=1,t.perPageOneSelectFromUserList=25,a.next=8,t.getUsersAndShowModalList();case 8:a.next=13;break;case 10:throw a.prev=10,a.t0=a["catch"](0),a.t0;case 13:case"end":return a.stop()}}),a,null,[[0,10]])})))()},editModalClickAddUser:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.searchValueOneSelectFromUserList.text="",e.searchValueOneSelectFromUserList.targets=["userId","name"],e.pageOneSelectFromUserList=1,e.perPageOneSelectFromUserList=25,t.next=7,e.getUsersAndShowModalList();case 7:t.next=12;break;case 9:throw t.prev=9,t.t0=t["catch"](0),t.t0;case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},editModalSwitchPcode:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,e.editIsInputPcode=!1,e.editIsInputUser=!1,t.next=8;break;case 5:throw t.prev=5,t.t0=t["catch"](0),t.t0;case 8:case"end":return t.stop()}}),t,null,[[0,5]])})))()},getPcodesAndShowModalList:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,e.oneSelectFromPcodes=[],e.isDisabledPaginationOneSelectFromPcodeList=!0,e.isLoadingOneSelectFromPcodeList=!0,e.showOneSelectFromPcodeList=!0,a="",s=Object(rr["a"])(e.searchValueOneSelectFromPcodeList.targets.entries());try{for(s.s();!(r=s.n()).done;)o=Object(sr["a"])(r.value,2),n=o[0],i=o[1],0===n?a=i:a+=","+i}catch(g){s.e(g)}finally{s.f()}return t.next=10,EA(e,e.perPageOneSelectFromPcodeList,e.pageOneSelectFromPcodeList,e.searchValueOneSelectFromPcodeList.text,a,"0,1");case 10:l=t.sent,c=Object(sr["a"])(l,2),u=c[0],d=c[1],e.totalCountOneSelectFromPcodeList=d,e.oneSelectFromPcodes=u,e.isLoadingOneSelectFromPcodeList=!1,e.isDisabledPaginationOneSelectFromPcodeList=!1,t.next=24;break;case 20:throw t.prev=20,t.t0=t["catch"](0),e.errorMessages.push(t.t0.message),t.t0;case 24:case"end":return t.stop()}}),t,null,[[0,20]])})))()},getUsersAndShowModalList:function(){var e=this;return Object(or["a"])(regeneratorRuntime.mark((function t(){var a,s,r,o,n,i,l,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.prev=0,e.oneSelectFromUsers=[],e.isDisabledPaginationOneSelectFromUserList=!0,e.isLoadingOneSelectFromUserList=!0,e.showOneSelectFromUserList=!0,a="",s=Object(rr["a"])(e.searchValueOneSelectFromUserList.targets.entries());try{for(s.s();!(r=s.n()).done;)o=Object(sr["a"])(r.value,2),n=o[0],i=o[1],0===n?a=i:a+=","+i}catch(g){s.e(g)}finally{s.f()}return t.next=10,VA(e,e.perPageOneSelectFromUserList,e.pageOneSelectFromUserList,e.searchValueOneSelectFromUserList.text,a);case 10:l=t.sent,c=Object(sr["a"])(l,2),u=c[0],d=c[1],e.totalCountOneSelectFromUserList=d,e.oneSelectFromUsers=u,e.isLoadingOneSelectFromUserList=!1,e.isDisabledPaginationOneSelectFromUserList=!1,t.next=24;break;case 20:throw t.prev=20,t.t0=t["catch"](0),e.errorMessages.push(t.t0.message),t.t0;case 24:case"end":return t.stop()}}),t,null,[[0,20]])})))()},changeFaceImage:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function r(){var o,n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,s.addFaceImageFile(a);case 3:return o=r.sent,r.next=6,s.postFaceImage({imageFileId:o,pCodeId:e});case 6:return n=r.sent,r.next=9,s.deleteFaceImage(t);case 9:return r.abrupt("return",n);case 12:throw r.prev=12,r.t0=r["catch"](0),r.t0;case 15:case"end":return r.stop()}}),r,null,[[0,12]])})))()},getFaceImageAndUpdateList:function(e,t,a){var s=this;return Object(or["a"])(regeneratorRuntime.mark((function r(){var o,n,i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(r.prev=0,-1===e){r.next=18;break}return r.next=4,RA(s,t);case 4:if(o=r.sent,!(o.length>0)){r.next=18;break}if(n=s.faceImages[e].faceImageBase64,s.faceImages[e]=o[0],!a){r.next=15;break}return r.next=11,$A(s,t);case 11:i=r.sent,i&&-1===i.search(/^data:image\/[a-z,*]+;base64,/)?s.faceImages[e].faceImageBase64="data:image/*;base64,"+i:s.faceImages[e].faceImageBase64=i,r.next=16;break;case 15:s.faceImages[e].faceImageBase64=n;case 16:return r.next=18,s.updateFaceImageInfo(e);case 18:r.next=23;break;case 20:throw r.prev=20,r.t0=r["catch"](0),r.t0;case 23:case"end":return r.stop()}}),r,null,[[0,20]])})))()},updateFaceImageInfo:function(e){var t=this;return Object(or["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:a.prev=0,s=["顔+カード認証","テンキー認証","顔のみ認証"],-1!==e&&(t.faceImages[e].pCodeType=t.faceImages[e].pCode.type,t.faceImages[e].pCodeTypeName=s[t.faceImages[e].pCode.type],t.faceImages[e].pCodeIsValid=t.faceImages[e].pCode.isValid,t.faceImages[e].pCode.userId&&t.faceImages[e].pCode.userId.length>0&&(t.faceImages[e].userId=t.faceImages[e].pCode.userId,t.faceImages[e].pCode.user&&(r=t.faceImages[e].pCode.user,t.faceImages[e].userName=r?r.name:"")),t.$set(t.faceImages,e,t.faceImages[e])),a.next=8;break;case 5:throw a.prev=5,a.t0=a["catch"](0),a.t0;case 8:case"end":return a.stop()}}),a,null,[[0,5]])})))()}}}),HR=zR,KR=Object(I["a"])(HR,JG,ZG,!1,null,null,null),YR=KR.exports,qR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("key-add-template",{attrs:{loading:e.loading,existGateId:e.existGateId,successMessageLogs:e.successMessageLogs,errorMessageLogs:e.errorMessageLogs,listTimes:e.listTimes,passagesData:e.passagesData},on:{"generate-key":function(t){return e.generateKey(t)}}})},WR=[],JR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("breadcrumbs",{attrs:{items:e.breadcrumbs}}),e._v(" "),a("v-container",[""!==e.errorMessageLogs?a("v-col",{staticClass:"mb-4 font-weight-bold mt-4 bg-error"},[e._v("\n "+e._s(e.errorMessageLogs)+"\n ")]):e._e(),e._v(" "),a("v-row",[a("v-col",{staticClass:"text-subtitle-2 border-left-blue font-weight-bold"},[e._v("\n 鍵共有キー発行\n ")])],1),e._v(" "),a("key-add-form",{attrs:{loading:e.loading,existGateId:e.existGateId,listTimes:e.listTimes,passagesData:e.passagesData},on:{"generate-key":function(t){return e.$emit("generate-key",t)}}})],1)],1)},ZR=[],XR=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-key-add-form"},[a("v-container",{staticClass:"pa-0"},[a("v-form",{ref:"CardAddForm",attrs:{"lazy-validation":""}},[a("v-card",{staticClass:"pa-6 pr-10 mb-5"},[a("v-row",[a("v-col",{attrs:{cols:"2"}},[e._v("利用開始日時")]),e._v(" "),a("v-col",{attrs:{cols:"1"}},[e._v("いまから")]),e._v(" "),a("v-col",{attrs:{cols:"2"}},[a("v-select",{attrs:{items:e.listTimes,"item-text":"text","item-value":"value","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"",clearable:"","no-data-text":"","menu-props":{contentClass:"v-select-item "},isAttach:!0},model:{value:e.passagesData.terms,callback:function(t){e.$set(e.passagesData,"terms",t)},expression:"passagesData.terms"}})],1),e._v(" "),a("v-col",{attrs:{cols:"4"}},[e._v("後まで通門可能")])],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}},[e._v("許可ゲート")]),e._v(" "),a("v-col",{attrs:{cols:"4"}},[a("v-select",{attrs:{items:e.existGateId,"item-text":"gateName","item-value":"gateId","single-line":"",color:"green","hide-details":"auto",outlined:"",dense:"",clearable:"","no-data-text":"",disabled:"0"===e.passagesData.terms,"menu-props":{contentClass:"v-select-item "},isAttach:!0},model:{value:e.passagesData.gateId,callback:function(t){e.$set(e.passagesData,"gateId",t)},expression:"passagesData.gateId"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",[a("v-checkbox",{attrs:{color:"grey",dense:"","hide-details":"",label:"1回限り有効"},model:{value:e.passagesData.isOnce,callback:function(t){e.$set(e.passagesData,"isOnce",t)},expression:"passagesData.isOnce"}})],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:"",disabled:"0"===e.passagesData.gateId||"0"===e.passagesData.terms},on:{click:function(t){return e.geneKey()}}},[e._v("鍵共有キー発行")])],1)],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",[a("div",{staticStyle:{padding:"10px 0px"}},[e._v("下記の発行されたURLをコピーして利用者に共有してください。")])])],1),e._v(" "),a("v-row",[a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",[a("v-textarea",{attrs:{color:"green","hide-details":"auto",type:"text",outlined:"",dense:"",rows:"2",autocomplete:"off",readonly:"",disabled:"",id:"geneLink"},model:{value:e.passagesData.result,callback:function(t){e.$set(e.passagesData,"result",t)},expression:"passagesData.result"}})],1)],1),e._v(" "),a("v-row",{staticClass:"mb-2 mt-2",attrs:{justify:"end"}},[a("v-col",{attrs:{cols:"2"}}),e._v(" "),a("v-col",[a("v-btn",{staticClass:"btn-primary",attrs:{outlined:""},on:{click:function(t){return e.coppyClipboard()}}},[e._v("\n クリップボードへコピー\n ")])],1)],1)],1)],1)],1)],1)},QR=[],eT=f["a"].extend({name:"KeyAddForm",components:{InputForm:io},props:{existGateId:{default:[]},listTimes:{default:[]},passagesData:{default:{gateId:"0",terms:"0",isOnce:!1,result:""}},loading:{default:!1},errorMessageLogs:{default:""},successMessageLogs:{default:""}},watch:{},data:function(){return{rulesValidate:{}}},methods:{geneKey:function(){this.$emit("generate-key",{gateId:this.passagesData.gateId,terms:this.passagesData.terms,isOnce:this.passagesData.isOnce})},coppyClipboard:function(){navigator.clipboard.writeText(this.passagesData.result)}}}),tT=eT,aT=(a("153f"),Object(I["a"])(tT,XR,QR,!1,null,null,null)),sT=aT.exports;C()(aT,{VBtn:pr["a"],VCard:Pr["a"],VCheckbox:Lr["a"],VCol:Dr["a"],VContainer:Zo["a"],VForm:Nl["a"],VRow:Kr["a"],VSelect:_o["a"],VTextarea:Cv["a"]});var rT=f["a"].extend({name:"KeyAddTemplate",components:{KeyAddForm:sT,Breadcrumbs:cn},props:{listTimes:{default:[]},passagesData:{default:{gateId:"0",terms:"0",isOnce:!1,result:""}},existGateId:{default:[]},loading:{default:!1},errorMessageLogs:{default:""},successMessageLogs:{default:""}},computed:{breadcrumbs:{get:function(){return[{text:"鍵共有",disabled:!0},{text:"鍵共有キー発行",disabled:!0}]}}}}),oT=rT,nT=Object(I["a"])(oT,JR,ZR,!1,null,null,null),iT=nT.exports;C()(nT,{VCol:Dr["a"],VContainer:Zo["a"],VRow:Kr["a"]});var lT=nr["a"].extend({name:"KeyAddPage",components:{KeyAddTemplate:iT},data:function(){return{loading:!1,passagesData:{gateId:"0",terms:"0",isOnce:!1,result:""},listTimes:[{text:"1時間",value:1},{text:"2時間",value:2},{text:"3時間",value:3},{text:"4時間",value:4},{text:"5時間",value:5},{text:"6時間",value:6},{text:"7時間",value:7},{text:"8時間",value:8},{text:"9時間",value:9},{text:"10時間",value:10},{text:"11時間",value:11},{text:"12時間",value:12},{text:"13時間",value:13},{text:"14時間",value:14},{text:"15時間",value:15},{text:"16時間",value:16},{text:"17時間",value:17},{text:"18時間",value:18},{text:"19時間",value:19},{text:"20時間",value:20},{text:"21時間",value:21},{text:"22時間",value:22},{text:"23時間",value:23},{text:"24時間",value:24}],existGateId:[],listGatePassages:null,listGroupPassages:[],listrelationsGateGroup:null,tempGroupPassages:null,currentTime:"",successMessageLogs:"",errorMessageLogs:""}},watch:{loading:function(e){this.$emit("loading",e)}},created:function(){this.currentTime=Math.round(+new Date/1e3),this.getInforGatePassage(localStorage.userProfileId),this.getInforGroupPassage(localStorage.userProfileId)},methods:{generateKey:function(e){var t=this;this.loading=!0;var a={gateId:e.gateId,terms:e.terms,isOnce:e.isOnce};this.$http.post(ke,JSON.stringify(a)).then((function(e){t.loading=!1,t.passagesData.result=e.body.url,t.successMessageLogs="一時キー発行されました。"})).then(null,(function(e){console.log(e),t.loading=!1,t.errorMessageLogs=ha}))},getInforGate:function(e,t,a,s){console.log("gateId",a),console.log(e);var r=this.existGateId.find((function(e){return e.gateId===a}));void 0===r&&!0===e[s].gate.isValid&&0===e[s].gate.isVisitor&&91!==e[s].gate.makerCode&&"ALIG-030"!==e[s].gate.gateModelCode&&this.existGateId.push({gateId:e[s].gate.gateId,gateName:void 0!==e[s].gate.name?e[s].gate.name:e[s].gate.gateName})},getInforGatePassage:function(e){var t=this;this.$http.get(ee+"?userId="+encodeURIComponent(e)+"¬Before="+this.currentTime+"¬After="+this.currentTime+"&embed=gate").then((function(e){if(e.body.maxRecords>0)for(var a=e.body.passages,s=0;s0)for(var a=e.body.groupPassages,s=0;s