diff --git a/public/assets/28-e84984431a143be0907e.js b/public/assets/28-84397989593b11928a6a.js similarity index 99% rename from public/assets/28-e84984431a143be0907e.js rename to public/assets/28-84397989593b11928a6a.js index 121de1658..84adbf3bd 100644 --- a/public/assets/28-e84984431a143be0907e.js +++ b/public/assets/28-84397989593b11928a6a.js @@ -1,2 +1,2 @@ webpackJsonp([28],{775:function(a,n){IntlPolyfill.__addLocaleData({locale:"fr",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!1,formats:{"short":"{1} {0}",medium:"{1} 'à' {0}",full:"{1} 'à' {0}","long":"{1} 'à' {0}",availableFormats:{d:"d",E:"E",Ed:"E d",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"d MMM y G",GyMMMEd:"E d MMM y G",h:"h a",H:"HH 'h'",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"dd/MM",MEd:"E dd/MM",MMM:"LLL",MMMd:"d MMM",MMMEd:"E d MMM",MMMMd:"d MMMM",ms:"mm:ss",y:"y",yM:"MM/y",yMd:"dd/MM/y",yMEd:"E dd/MM/y",yMMM:"MMM y",yMMMd:"d MMM y",yMMMEd:"E d MMM y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE d MMMM y",yMMMMd:"d MMMM y",yMMMd:"d MMM y",yMd:"dd/MM/y"},timeFormats:{hmmsszzzz:"HH:mm:ss zzzz",hmsz:"HH:mm:ss z",hms:"HH:mm:ss",hm:"HH:mm"}},calendars:{buddhist:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["E.B."],"short":["ère b."],"long":["ère bouddhiste"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["1yuè","2yuè","3yuè","4yuè","5yuè","6yuè","7yuè","8yuè","9yuè","10yuè","11yuè","12yuè"],"long":["zhēngyuè","èryuè","sānyuè","sìyuè","wǔyuè","liùyuè","qīyuè","bāyuè","jiǔyuè","shíyuè","shíyīyuè","shí’èryuè"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],"long":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["1yuè","2yuè","3yuè","4yuè","5yuè","6yuè","7yuè","8yuè","9yuè","10yuè","11yuè","12yuè"],"long":["zhēngyuè","èryuè","sānyuè","sìyuè","wǔyuè","liùyuè","qīyuè","bāyuè","jiǔyuè","shíyuè","shíyīyuè","shí’èryuè"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0"],"short":["ERA0"],"long":["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"long":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["av. J.-C.","ap. J.-C.","AEC","EC"],"short":["av. J.-C.","ap. J.-C.","AEC","EC"],"long":["avant Jésus-Christ","après Jésus-Christ","avant l’ère commune","de l’ère commune"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],"short":["Tisseri","Hesvan","Kislev","Tébeth","Schébat","Adar I","Adar","Nissan","Iyar","Sivan","Tamouz","Ab","Elloul","Adar II"],"long":["Tisseri","Hesvan","Kislev","Tébeth","Schébat","Adar I","Adar","Nissan","Iyar","Sivan","Tamouz","Ab","Elloul","Adar II"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AM"],"short":["AM"],"long":["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],"long":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["Saka"],"short":["Saka"],"long":["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["mouh.","saf.","rab. aw.","rab. th.","joum. oul.","joum. tha.","raj.","chaa.","ram.","chaw.","dhou. q.","dhou. h."],"long":["mouharram","safar","rabia al awal","rabia ath-thani","joumada al oula","joumada ath-thania","rajab","chaabane","ramadan","chawwal","dhou al qi`da","dhou al-hijja"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["mouh.","saf.","rab. aw.","rab. th.","joum. oul.","joum. tha.","raj.","chaa.","ram.","chaw.","dhou. q.","dhou. h."],"long":["mouharram","safar","rabia al awal","rabia ath-thani","joumada al oula","joumada ath-thania","rajab","chaabane","ramadan","chawwal","dhou al qi`da","dhou al-hijja"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],"short":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],"long":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],"long":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AP"],"short":["AP"],"long":["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["avant RdC","RdC"],"short":["avant RdC","RdC"],"long":["avant RdC","RdC"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"-{number}"},currency:{positivePattern:"{number} {currency}",negativePattern:"-{number} {currency}"},percent:{positivePattern:"{number} %",negativePattern:"-{number} %"}},symbols:{latn:{decimal:",",group:" ",nan:"NaN",percent:"%",infinity:"∞"}},currencies:{ARS:"$AR",AUD:"$AU",BEF:"FB",BMD:"$BM",BND:"$BN",BRL:"R$",BSD:"$BS",BZD:"$BZ",CAD:"$CA",CLP:"$CL",COP:"$CO",CYP:"£CY",EUR:"€",FJD:"$FJ",FKP:"£FK",FRF:"F",GBP:"£GB",GIP:"£GI",IEP:"£IE",ILP:"£IL",ILS:"₪",INR:"₹",ITL:"₤IT",KRW:"₩",LBP:"£LB",MTP:"£MT",MXN:"$MX",NAD:"$NA",NZD:"$NZ",RHD:"$RH",SBD:"$SB",SGD:"$SG",SRD:"$SR",TTD:"$TT",USD:"$US",UYU:"$UY",VND:"₫",WST:"WS$",XAF:"FCFA",XOF:"CFA",XPF:"FCFP"}}})}}); -//# sourceMappingURL=28-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=28-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/29-e84984431a143be0907e.js b/public/assets/29-84397989593b11928a6a.js similarity index 99% rename from public/assets/29-e84984431a143be0907e.js rename to public/assets/29-84397989593b11928a6a.js index 86bf9fb2a..95f93efb8 100644 --- a/public/assets/29-e84984431a143be0907e.js +++ b/public/assets/29-84397989593b11928a6a.js @@ -1,2 +1,2 @@ webpackJsonp([29],{774:function(a,n){IntlPolyfill.__addLocaleData({locale:"en",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!0,formats:{"short":"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' {0}","long":"{1} 'at' {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE, MMMM d, y",yMMMMd:"MMMM d, y",yMMMd:"MMM d, y",yMd:"M/d/yy"},timeFormats:{hmmsszzzz:"h:mm:ss a zzzz",hmsz:"h:mm:ss a z",hms:"h:mm:ss a",hm:"h:mm a"}},calendars:{buddhist:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["BE"],"short":["BE"],"long":["BE"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],"long":["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],"long":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],"long":["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0"],"short":["ERA0"],"long":["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"long":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["B","A","BCE","CE"],"short":["BC","AD","BCE","CE"],"long":["Before Christ","Anno Domini","Before Common Era","Common Era"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],"short":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"],"long":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AM"],"short":["AM"],"long":["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],"long":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Saka"],"short":["Saka"],"long":["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],"long":["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],"long":["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],"short":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],"long":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],"long":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AP"],"short":["AP"],"long":["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Before R.O.C.","Minguo"],"short":["Before R.O.C.","Minguo"],"long":["Before R.O.C.","Minguo"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"-{number}"},currency:{positivePattern:"{currency}{number}",negativePattern:"-{currency}{number}"},percent:{positivePattern:"{number}%",negativePattern:"-{number}%"}},symbols:{latn:{decimal:".",group:",",nan:"NaN",percent:"%",infinity:"∞"}},currencies:{AUD:"A$",BRL:"R$",CAD:"CA$",CNY:"CN¥",EUR:"€",GBP:"£",HKD:"HK$",ILS:"₪",INR:"₹",JPY:"¥",KRW:"₩",MXN:"MX$",NZD:"NZ$",TWD:"NT$",USD:"$",VND:"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF"}}})}}); -//# sourceMappingURL=29-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=29-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/activity-e84984431a143be0907e.js b/public/assets/activity-84397989593b11928a6a.js similarity index 99% rename from public/assets/activity-e84984431a143be0907e.js rename to public/assets/activity-84397989593b11928a6a.js index 39f2cec28..c3c424665 100644 --- a/public/assets/activity-e84984431a143be0907e.js +++ b/public/assets/activity-84397989593b11928a6a.js @@ -17,4 +17,4 @@ return s.stop()}},null,this)}},{key:"componentWillReceiveProps",value:function(e constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n'+(e.operator&&e.operator.id===r.id?"我":e.operator.name)+" "+("modify"==e.operation?"修改":"新建")+" - "+(0,h.getAgoAt)(e.operated_at,a)}}));return u.default.createElement(c.Panel,{header:n,key:t,style:{margin:"5px"}},"modify"==e.operation?u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("thead",null,u.default.createElement("tr",null,u.default.createElement("th",null,"字段"),u.default.createElement("th",null,"原值"),u.default.createElement("th",null,"新值"))),u.default.createElement("tbody",null,m.default.map(e.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",width:"120px"}},e.field||"")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",width:"190px"},dangerouslySetInnerHTML:{__html:m.default.isString(e.before_value)?m.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
"):e.before_value}})),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",width:"190px"},dangerouslySetInnerHTML:{__html:m.default.isString(e.after_value)?m.default.escape(e.after_value).replace(/(\r\n)|(\n)/g,"
"):e.after_value}})))}))):u.default.createElement("span",{style:{marginLeft:"5px"}},"创建问题"))}))))}}],[{key:"propTypes",value:{issue_id:l.PropTypes.string,currentTime:l.PropTypes.number.isRequired,currentUser:l.PropTypes.object.isRequired,indexLoading:l.PropTypes.bool.isRequired,indexHistory:l.PropTypes.func.isRequired,sortHistory:l.PropTypes.func.isRequired,collection:l.PropTypes.array.isRequired},enumerable:!0}]),t}(l.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},387:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=0){var d=m.default.floor(u/i);d>0&&l.push(d+"w")}if(u%=i,u>=0){var c=m.default.floor(u/s);c>0&&l.push(c+"d")}if(u%=s,u>=0){var p=m.default.floor(u/o);p>0&&l.push(p+"h")}return u%=o,u>0&&l.push(u+"m"),l.length<=0&&l.push("0"),l.join(" ")}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,a=t.permissions,r=t.currentTime,i=t.currentUser,s=t.issue,o=t.indexWorklog,l=t.sort,d=t.sortWorklog,p=t.collection,v=t.indexLoading,b=t.loading,M=t.addWorklog,k=t.editWorklog,L=t.delWorklog,w=t.original_estimate,E=void 0===w?"":w,T=void 0;E&&(T=this.t2m(E)),"desc"===l&&p.reverse();var Y=0;m.default.map(p,function(t){if(Y=m.default.add(Y,e.t2m(t.spend)),1==t.adjust_type&&t.spend&&void 0!==T){var n=e.t2m(t.spend);T=T-n>0?T-n:0}else if(3==t.adjust_type&&t.leave_estimate)T=e.t2m(t.leave_estimate);else if(4==t.adjust_type&&t.cut&&void 0!==T){var a=e.t2m(t.cut);T=T-a>0?T-a:0}return m.default.extend(t,{leave_estimate_m:T}),t});var S=m.default.last(p);return"desc"===l&&p.reverse(),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:12,className:v&&"hide",style:{marginTop:"15px",marginBottom:"10px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:b,onClick:function(){o(s.id,e.state.sort)}},u.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),u.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){d()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),a.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:b,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"))),u.default.createElement(c.Col,{sm:12,className:v&&"hide"},u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{width:"96%",marginLeft:"10px",marginTop:"5px"}},u.default.createElement("thead",null,u.default.createElement("tr",null,u.default.createElement("th",null,"原估时间"),u.default.createElement("th",null,"总耗费时间"),u.default.createElement("th",null,"剩余时间"))),u.default.createElement("tbody",null,u.default.createElement("tr",null,u.default.createElement("td",{style:{fontWeight:"bold"}},E||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},Y>0?this.m2t(Y):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?E||"-":void 0===S.leave_estimate_m?"-":this.m2t(S.leave_estimate_m)))))),u.default.createElement(c.Col,{sm:12},v&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:f,className:"loading"})),p.length<=0&&!v?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):m.default.map(p,function(t,n){var s=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===i.id?"我":t.recorder.name)+" - "+(0,h.getAgoAt)(t.recorded_at,r)+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&i.id===t.recorder.id||a.indexOf("manage_project")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&i.id===t.recorder.id||a.indexOf("manage_project")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginRight:"10px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-pencil",title:"编辑"}))),o=t.comments?m.default.escape(t.comments):"-";return o=o.replace(/(\r\n)|(\n)/g,"
"),u.default.createElement(c.Panel,{header:s,key:n,style:{margin:"5px"}},u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("thead",null,u.default.createElement("tr",null,u.default.createElement("th",null,"开始日期"),u.default.createElement("th",null,"耗费时间"),u.default.createElement("th",null,"剩余时间"))),u.default.createElement("tbody",null,u.default.createElement("tr",null,u.default.createElement("td",null,_.unix(t.started_at).format("YY/MM/DD HH:mm:ss")),u.default.createElement("td",null,t.spend||"-"),u.default.createElement("td",null,void 0===t.leave_estimate_m?"-":e.m2t(t.leave_estimate_m))))),u.default.createElement("div",{style:{marginLeft:"5px",lineHeight:"24px"}},u.default.createElement("span",{style:{width:"10%","float":"left",fontWeight:"bold"}},"备注:"),u.default.createElement("span",{style:{width:"90%","float":"left",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:o}})))}))),this.state.addWorklogShow&&u.default.createElement(y,{show:!0,issue:s,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:b,add:M,edit:k,i18n:n}),this.state.delWorklogShow&&u.default.createElement(g,{show:!0,issue:s,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:b,del:L,i18n:n}))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,currentTime:l.PropTypes.number.isRequired,currentUser:l.PropTypes.object.isRequired,permissions:l.PropTypes.array.isRequired,issue:l.PropTypes.object.isRequired,options:l.PropTypes.object.isRequired,original_estimate:l.PropTypes.string,indexLoading:l.PropTypes.bool.isRequired,loading:l.PropTypes.bool.isRequired,indexWorklog:l.PropTypes.func.isRequired,sort:l.PropTypes.string.isRequired,sortWorklog:l.PropTypes.func.isRequired,addWorklog:l.PropTypes.func.isRequired,editWorklog:l.PropTypes.func.isRequired,delWorklog:l.PropTypes.func.isRequired,collection:l.PropTypes.array.isRequired},enumerable:!0}]),t}(l.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},391:function(e,t,n){try{(function(){"use strict";function e(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_INDEX",promise:function(n){return n.request({url:"/project/"+e+"/issue"+(t?"?"+t:"")})}})}function a(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/issue",method:"post",data:t})}})}function r(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_EDIT",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t,method:"put",data:n})}})}function i(e){return(0,G.asyncFuncCreator)({constant:"ISSUE_OPTIONS",promise:function(t){return t.request({url:"/project/"+e+"/issue/options"})}})}function s(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_FILTER_SAVE",promise:function(n){return n.request({url:"/project/"+e+"/issue/filter",method:"post",data:t})}})}function o(e){return(0,G.asyncFuncCreator)({constant:"ISSUE_FILTERS_RESET",promise:function(t){return t.request({url:"/project/"+e+"/issue/filters/reset"})}})}function l(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_FILTERS_CONFIG",promise:function(n){return n.request({url:"/project/"+e+"/issue/filters",method:"post",data:t})}})}function u(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_LIST_COLUMNS_SET",promise:function(n){return n.request({url:"/project/"+e+"/issue/columns",method:"post",data:t})}})}function d(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_LIST_COLUMNS_RESET",promise:function(n){return n.request({url:"/project/"+e+"/issue/columns/reset",method:"post",data:t})}})}function c(e,t,n,a){return(0,G.asyncFuncCreator)({constant:"ISSUE_FILE_DELETE",id:a,field_key:n,promise:function(r){return r.request({url:"/project/"+e+"/file/"+a+"?issue_id="+t+"&field_key="+n,method:"delete"})}})}function p(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_SHOW",id:t,floatStyle:n,promise:function(n){return n.request({url:"/project/"+e+"/issue/"+t})}})}function m(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/issue/"+t,method:"delete"})}})}function h(e,t){return{type:"ISSUE_FILE_ADD",field_key:e,file:t}}function f(e,t,n,a){return(0,G.asyncFuncCreator)({constant:"ISSUE_SET_ASSIGNEE",modalFlag:a&&!0,promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/assign",method:"post",data:n})}})}function _(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_SET_LABELS",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/labels",method:"post",data:n})}})}function y(e){return{type:"ISSUE_ADD_LABELS",newLabels:e||[]}}function g(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_COMMENTS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/comments?sort="+(n||"desc")})}})}function v(){return{type:"ISSUE_COMMENTS_SORT"}}function b(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_COMMENTS_ADD",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/comments",method:"post",data:n})}})}function M(e,t,n,a){return(0,G.asyncFuncCreator)({constant:"ISSUE_COMMENTS_EDIT",promise:function(r){return r.request({url:"/project/"+e+"/issue/"+t+"/comments/"+n,method:"put",data:a})}})}function k(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_COMMENTS_DELETE",id:n,promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/comments/"+n,method:"delete"})}})}function L(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_HISTORY_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/history?sort="+(n||"desc")})}})}function w(){return{type:"ISSUE_HISTORY_SORT"}}function E(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_GITCOMMITS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/gitcommits?sort="+(n||"desc")})}})}function T(){return{type:"ISSUE_GITCOMMITS_SORT"}}function Y(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_WORKLOG_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/worklog?sort="+(n||"asc")})}})}function S(){return{type:"ISSUE_WORKLOG_SORT"}}function D(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_WORKLOG_ADD",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/worklog",method:"post",data:n})}})}function x(e,t,n,a){return(0,G.asyncFuncCreator)({constant:"ISSUE_WORKLOG_EDIT",promise:function(r){return r.request({url:"/project/"+e+"/issue/"+t+"/worklog/"+n,method:"put",data:a})}})}function C(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_WORKLOG_DELETE",id:n,promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/worklog/"+n,method:"delete"})}})}function P(){return{type:"ISSUE_RECORD"}}function j(e){return{type:"ISSUE_FORWARD",offset:e}}function O(){return{type:"ISSUE_CLEAN_RECORD"}}function F(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_LINK_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/link",method:"post",data:t})}})}function R(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_LINK_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/link/"+t,method:"delete"})}})}function H(e,t,n,a,r,i){return(0,G.asyncFuncCreator)({constant:"ISSUE_WORKFLOW_ACTION",screen:i&&!0,promise:function(i){return i.request({url:"/project/"+e+"/issue/"+t+"/workflow/"+n+"/action/"+a,method:"post",data:r||{}})}})}function A(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_WATCHING",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/watching",method:"post",data:{flag:n}})}})}function I(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_STATE_RESET",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/reset",method:"post",data:n})}})}function N(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_MOVE",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/move",method:"post",data:n||{}})}})}function W(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_CONVERT",promise:function(a){return a.request({url:"/project/"+e+"/issue/"+t+"/convert",method:"post",data:n||{}})}})}function q(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_COPY",promise:function(n){return n.request({url:"/project/"+e+"/issue/copy",method:"post",data:t||{}})}})}function z(e){return{type:"ISSUE_SPRINT_REMOVE_ISSUE",issue:e}}function B(e,t,n){return(0,G.asyncFuncCreator)({constant:"ISSUE_KANBAN_RANK_SET",promise:function(a){return a.request({url:"/project/"+e+"/kanban/"+t+"/rank",method:"post",data:n||{}})}})}function U(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_KANBAN_RELEASE",promise:function(n){return n.request({url:"/project/"+e+"/issue/release",method:"post",data:t||{}})}})}function V(e,t){return(0,G.asyncFuncCreator)({constant:"ISSUE_IMPORTS",promise:function(n){return n.request({url:"/project/"+e+"/issue/imports",method:"post",data:t||{}})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=a,t.edit=r,t.getOptions=i,t.saveFilter=s,t.resetFilters=o,t.configFilters=l,t.setColumns=u,t.resetColumns=d,t.delFile=c,t.show=p,t.del=m,t.addFile=h,t.setAssignee=f,t.setLabels=_,t.addLabels=y,t.indexComments=g,t.sortComments=v,t.addComments=b,t.editComments=M,t.delComments=k,t.indexHistory=L,t.sortHistory=w,t.indexGitCommits=E,t.sortGitCommits=T,t.indexWorklog=Y,t.sortWorklog=S,t.addWorklog=D,t.editWorklog=x,t.delWorklog=C,t.record=P,t.forward=j,t.cleanRecord=O,t.createLink=F,t.delLink=R,t.doAction=H,t.watch=A,t.resetState=I,t.move=N,t.convert=W,t.copy=q,t.removeFromSprint=z,t.setRank=B,t.release=U,t.imports=V;var G=n(44)}).call(this)}finally{}},398:function(e,t,n){function a(e){return e()}var r=n(1),i=n(11),s=n(263),o=n(9),l=n(361),u=r.createFactory(n(399)),d=n(400),c=n(402),p=n(442),m=n(11).unstable_renderSubtreeIntoContainer,h=n(259),f=n(8),_=l.canUseDOM?window.HTMLElement:{},y=l.canUseDOM?document.body:{appendChild:function(){}},g=f({displayName:"Modal",statics:{setAppElement:function(e){y=d.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:o.bool.isRequired,style:o.shape({content:o.object,overlay:o.object}),portalClassName:o.string,bodyOpenClassName:o.string,appElement:o.instanceOf(_),onAfterOpen:o.func,onRequestClose:o.func,closeTimeoutMS:o.number,ariaHideApp:o.bool,shouldCloseOnOverlayClick:o.bool,parentSelector:o.func,role:o.string,contentLabel:o.string.isRequired},getDefaultProps:function(){return{isOpen:!1,portalClassName:"ReactModalPortal",bodyOpenClassName:"ReactModal__Body--open",ariaHideApp:!0,closeTimeoutMS:0,shouldCloseOnOverlayClick:!0,parentSelector:function(){return document.body}}},componentDidMount:function(){this.node=document.createElement("div"),this.node.className=this.props.portalClassName,this.props.isOpen&&c.add(this);var e=a(this.props.parentSelector);e.appendChild(this.node),this.renderPortal(this.props)},componentWillUpdate:function(e){e.portalClassName!==this.props.portalClassName&&(this.node.className=e.portalClassName)},componentWillReceiveProps:function(e){e.isOpen&&c.add(this),e.isOpen||c.remove(this);var t=a(this.props.parentSelector),n=a(e.parentSelector);n!==t&&(t.removeChild(this.node),n.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){c.remove(this),this.props.ariaHideApp&&d.show(this.props.appElement);var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);if(n){e.beforeClose||this.portal.closeWithTimeout();var a=this;setTimeout(function(){a.removePortal()},n-t)}else this.removePortal()}},removePortal:function(){i.unmountComponentAtNode(this.node);var e=a(this.props.parentSelector);e.removeChild(this.node),0===c.count()&&p(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||c.count()>0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&d.toggle(e.isOpen,e.appElement),this.portal=m(this,u(h({},e,{defaultStyles:g.defaultStyles})),this.node)},render:function(){return s.noscript()}});g.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},e.exports=g},399:function(e,t,n){var a=(n(1),n(263)),r=n(401),i=n(403),s=n(259),o=n(8),l=a.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=o({displayName:"ModalPortal",shouldClose:null,getDefaultProps:function(){return{style:{overlay:{},content:{}}}},getInitialState:function(){return{afterOpen:!1,beforeClose:!1}},componentDidMount:function(){this.props.isOpen&&(this.setFocusAfterRender(!0),this.open())},componentWillUnmount:function(){clearTimeout(this.closeTimer)},componentWillReceiveProps:function(e){!this.props.isOpen&&e.isOpen?(this.setFocusAfterRender(!0),this.open()):this.props.isOpen&&!e.isOpen&&this.close()},componentDidUpdate:function(){this.focusAfterRender&&(this.focusContent(),this.setFocusAfterRender(!1))},setFocusAfterRender:function(e){this.focusAfterRender=e},afterClose:function(){r.returnFocus(),r.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(r.setupScopedFocus(this.node),r.markForFocusLater(),this.setState({isOpen:!0},function(){this.setState({afterOpen:!0}),this.props.isOpen&&this.props.onAfterOpen&&this.props.onAfterOpen()}.bind(this)))},close:function(){this.props.closeTimeoutMS>0?this.closeWithTimeout():this.closeWithoutTimeout()},focusContent:function(){this.contentHasFocus()||this.refs.content.focus()},closeWithTimeout:function(){var e=Date.now()+this.props.closeTimeoutMS;this.setState({beforeClose:!0,closesAt:e},function(){this.closeTimer=setTimeout(this.closeWithoutTimeout,this.state.closesAt-Date.now())}.bind(this))},closeWithoutTimeout:function(){this.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},this.afterClose)},handleKeyDown:function(e){9==e.keyCode&&i(this.refs.content,e),27==e.keyCode&&(e.preventDefault(),this.requestClose(e))},handleOverlayOnClick:function(e){null===this.shouldClose&&(this.shouldClose=!0),this.shouldClose&&this.props.shouldCloseOnOverlayClick&&(this.ownerHandlesClose()?this.requestClose(e):this.focusContent()),this.shouldClose=null},handleContentOnClick:function(){this.shouldClose=!1},requestClose:function(e){this.ownerHandlesClose()&&this.props.onRequestClose(e)},ownerHandlesClose:function(){return this.props.onRequestClose},shouldBeClosed:function(){return!this.state.isOpen&&!this.state.beforeClose},contentHasFocus:function(){return document.activeElement===this.refs.content||this.refs.content.contains(document.activeElement)},buildClassName:function(e,t){var n="object"==typeof t?t:{base:u[e],afterOpen:u[e]+"--after-open",beforeClose:u[e]+"--before-close"},a=n.base;return this.state.afterOpen&&(a+=" "+n.afterOpen),this.state.beforeClose&&(a+=" "+n.beforeClose),"string"==typeof t&&t?[a,t].join(" "):a},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?l():l({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:s({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},l({ref:"content",style:s({},e,this.props.style.content||{}),className:this.buildClassName("content",this.props.className),tabIndex:"-1",onKeyDown:this.handleKeyDown,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.props.children))}})},400:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return l=e||l}function a(e){s(e),(e||l).setAttribute("aria-hidden","true")}function r(e){s(e),(e||l).removeAttribute("aria-hidden")}function i(e,t){e?a(t):r(t)}function s(e){if(!e&&!l)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function o(){l=document.body}var l="undefined"!=typeof document?document.body:null;t.toggle=i,t.setElement=n,t.show=r,t.hide=a,t.resetForTesting=o},401:function(e,t,n){function a(e){l=!0}function r(e){if(l){if(l=!1,!o)return;setTimeout(function(){if(!o.contains(document.activeElement)){var e=i(o)[0]||o;e.focus()}},0)}}var i=n(267),s=[],o=null,l=!1;t.markForFocusLater=function(){s.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=s.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){o=e,window.addEventListener?(window.addEventListener("blur",a,!1),document.addEventListener("focus",r,!0)):(window.attachEvent("onBlur",a),document.attachEvent("onFocus",r))},t.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",a),document.removeEventListener("focus",r)):(window.detachEvent("onBlur",a),document.detachEvent("onFocus",r))}},402:function(e,t){var n=[];e.exports={add:function(e){n.indexOf(e)===-1&&n.push(e)},remove:function(e){var t=n.indexOf(e);t!==-1&&n.splice(t,1)},count:function(){return n.length}}},403:function(e,t,n){var a=n(267);e.exports=function(e,t){var n=a(e);if(!n.length)return void t.preventDefault();var r=n[t.shiftKey?0:n.length-1],i=r===document.activeElement||e===document.activeElement;if(i){t.preventDefault();var s=n[t.shiftKey?n.length-1:0];s.focus()}}},404:function(e,t,n){e.exports=n(398)},1731:function(e,t,n){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e){return{actions:(0,h.bindActionCreators)(_,e),issueActions:(0,h.bindActionCreators)(b,e),wfActions:(0,h.bindActionCreators)(k,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){ for(var t=1;t@'+v.name+"")}),comments=comments.replace(/(\r\n)|(\n)/g,"
")),activities.push({id:collection[i].id,avatar:_react2.default.createElement("img",{src:collection[i].user.avatar?"/api/getavatar?fid="+collection[i].user.avatar:no_avatar,className:"no-avatar"}),summary:_react2.default.createElement("div",null,_react2.default.createElement("span",{style:{marginRight:"5px"}},_react2.default.createElement("b",null,user.id===collection[i].user.id?"我":collection[i].user.name)),"create_link"==collection[i].event_key&&_react2.default.createElement("span",null,"创建了问题链接"),"del_link"==collection[i].event_key&&_react2.default.createElement("span",null,"删除了问题链接"),collection[i].issue_link&&_react2.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginTop:"10px",marginBottom:"5px",fontSize:"12px"}},_react2.default.createElement("li",null,collection[i].issue_link&&collection[i].issue_link.src&&(1===collection[i].issue_link.src.del_flg?_react2.default.createElement("span",{style:ltStyles},collection[i].issue_link.src.no+" - "+collection[i].issue_link.src.title):_react2.default.createElement("a",{style:"Closed"==collection[i].issue_link.src.state?{textDecoration:"line-through"}:{},href:"#",onClick:function(e){e.preventDefault(),_this.issueView(collection[i].issue_link.src.id)}},_react2.default.createElement("span",{style:{marginRight:"5px"}},collection[i].issue_link.src.no+" - "+collection[i].issue_link.src.title)))),_react2.default.createElement("li",null,collection[i].issue_link&&collection[i].issue_link.relation||""),_react2.default.createElement("li",null,collection[i].issue_link&&collection[i].issue_link.dest&&(1===collection[i].issue_link.dest.del_flg?_react2.default.createElement("span",{style:ltStyles},collection[i].issue_link.dest.no+" - "+collection[i].issue_link.dest.title):_react2.default.createElement("a",{style:"Closed"==collection[i].issue_link.dest.state?{textDecoration:"line-through"}:{},href:"#",onClick:function(e){e.preventDefault(),_this.issueView(collection[i].issue_link.dest.id)}},_react2.default.createElement("span",{style:{marginRight:"5px"}},collection[i].issue_link.dest.no+" - "+collection[i].issue_link.dest.title))))),"create_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"创建了"),"edit_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"更新了"),"del_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"删除了"),"assign_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"分配了"),"reset_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"重置了"),"move_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"移动了"),"start_progress_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"开始解决"),"stop_progress_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"停止解决"),"resolve_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"解决了"),"close_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"关闭了"),"reopen_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"重新打开"),"watched_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"关注了"),"unwatched_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"取消关注了"),collection[i].event_key.indexOf("_")===-1&&_react2.default.createElement("span",null,"将"),collection[i].issue&&_react2.default.createElement("span",{style:{marginRight:"5px"}},"问题"),collection[i].issue&&(1===collection[i].issue.del_flg?_react2.default.createElement("span",{style:ltStyles},collection[i].issue.no+" - "+collection[i].issue.title):_react2.default.createElement("a",{href:"#",style:"Closed"==collection[i].issue.state?{textDecoration:"line-through"}:{},onClick:function(e){e.preventDefault(),_this.issueView(collection[i].issue.id)}},_react2.default.createElement("span",{style:{marginRight:"5px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},collection[i].issue.no+" - "+collection[i].issue.title))),wfEventFlag&&collection[i].event_key.indexOf("_")!==-1&&_react2.default.createElement("span",null,", "),wfEventFlag&&collection[i].event_key.indexOf("_")===-1&&_react2.default.createElement("span",null,"的"),wfEventFlag&&_react2.default.createElement("span",null,_lodash2.default.map(collection[i].data,function(e,t){return 0===t?_react2.default.createElement("span",null,e.field+" 更新为: "+e.after_value):_react2.default.createElement("span",null,", "+e.field+" 更新为: "+e.after_value)})),"edit_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"的 ",collection[i].data.length," 个字段"),"edit_issue"==collection[i].event_key&&_react2.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginTop:"10px",marginBottom:"5px",fontSize:"12px"}},_lodash2.default.map(collection[i].data,function(e,t){return _react2.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t,dangerouslySetInnerHTML:{__html:e.field+": "+(_lodash2.default.isString(e.after_value)?_lodash2.default.escape(e.after_value).replace(/(\r\n)|(\n)/g,"
"):e.after_value)}})})),"assign_issue"==collection[i].event_key&&_react2.default.createElement("span",null,"给 ",collection[i].data.new_user&&user.id===collection[i].data.new_user.id?"我":collection[i].data.new_user.name||""),"add_file"==collection[i].event_key&&_react2.default.createElement("span",null,"上传了文档 ",collection[i].data),"del_file"==collection[i].event_key&&_react2.default.createElement("span",null,"删除了文档 ",_react2.default.createElement("span",{style:ltStyles},collection[i].data)),"add_comments"==collection[i].event_key&&_react2.default.createElement("span",null,"添加了备注"),"edit_comments"==collection[i].event_key&&_react2.default.createElement("span",null,"编辑了备注"),"del_comments"==collection[i].event_key&&_react2.default.createElement("span",null,"删除了备注"),comments&&_react2.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginTop:"10px",marginBottom:"5px",fontSize:"12px"}},_react2.default.createElement("li",{style:"del_comments"==collection[i].event_key?ltStyles:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:comments}})),"add_worklog"==collection[i].event_key&&_react2.default.createElement("span",null," 添加了工作日志"),"edit_worklog"==collection[i].event_key&&_react2.default.createElement("span",null," 编辑了工作日志"),"del_worklog"==collection[i].event_key&&_react2.default.createElement("span",null," 删除了工作日志"),collection[i].event_key.indexOf("worklog")!==-1&&_react2.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginTop:"10px",marginBottom:"5px",fontSize:"12px"}},collection[i].data&&collection[i].data.started_at&&_react2.default.createElement("li",{style:"del_worklog"==collection[i].event_key?ltStyles:{}},"开始时间: ",moment.unix(collection[i].data.started_at).format("YY/MM/DD")),collection[i].data&&collection[i].data.spend&&_react2.default.createElement("li",{style:"del_worklog"==collection[i].event_key?ltStyles:{}},"耗时: ",collection[i].data.spend),collection[i].data&&collection[i].data.leave_estimate&&_react2.default.createElement("li",{style:"del_worklog"==collection[i].event_key?ltStyles:{}},"剩余时间设置为: ",collection[i].data.leave_estimate),collection[i].data&&collection[i].data.cut&&_react2.default.createElement("li",{style:"del_worklog"==collection[i].event_key?ltStyles:{}},"剩余时间缩减: ",collection[i].data.cut),collection[i].data&&collection[i].data.comments&&_react2.default.createElement("li",{style:"del_worklog"==collection[i].event_key?ltStyles:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:"备注 : "+_lodash2.default.escape(collection[i].data.comments).replace(/(\r\n)|(\n)/g,"
")}}))),time:agoAt})},i=0;i0&&increaseCollection.length%this.state.limit===0&&_react2.default.createElement(_reactBootstrap.ButtonGroup,{vertical:!0,block:!0},_react2.default.createElement(_reactBootstrap.Button,{onClick:this.more.bind(this)},_react2.default.createElement("div",null,_react2.default.createElement("img",{src:img,className:moreLoading?"loading":"hide"}),_react2.default.createElement("span",null,moreLoading?"":"更多...")))),this.state.barShow&&_react2.default.createElement(DetailBar,{i18n:i18n,layout:layout,edit:edit,create:create,del:del,setAssignee:setAssignee,setLabels:setLabels,addLabels:addLabels,close:this.closeDetail.bind(this),options:options,data:itemData,record:record,forward:forward,visitedIndex:visitedIndex,visitedCollection:visitedCollection,issueCollection:[],show:show,itemLoading:itemLoading,loading:loading,fileLoading:fileLoading,project:project,delFile:delFile,addFile:addFile,wfCollection:wfCollection,wfLoading:wfLoading,viewWorkflow:viewWorkflow,indexComments:indexComments,sortComments:sortComments,commentsCollection:commentsCollection,commentsIndexLoading:commentsIndexLoading,commentsLoading:commentsLoading,commentsItemLoading:commentsItemLoading,commentsLoaded:commentsLoaded,addComments:addComments,editComments:editComments,delComments:delComments,indexWorklog:indexWorklog,worklogSort:worklogSort,sortWorklog:sortWorklog,worklogCollection:worklogCollection,worklogIndexLoading:worklogIndexLoading,worklogLoading:worklogLoading,worklogLoaded:worklogLoaded,addWorklog:addWorklog,editWorklog:editWorklog,delWorklog:delWorklog,indexHistory:indexHistory,sortHistory:sortHistory,historyCollection:historyCollection,historyIndexLoading:historyIndexLoading,historyLoaded:historyLoaded,indexGitCommits:indexGitCommits,sortGitCommits:sortGitCommits,gitCommitsCollection:gitCommitsCollection,gitCommitsIndexLoading:gitCommitsIndexLoading,gitCommitsLoaded:gitCommitsLoaded,linkLoading:linkLoading,createLink:createLink,delLink:delLink,watch:watch,copy:copy,move:move,convert:convert,resetState:resetState,doAction:doAction,user:user}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,layout:_react.PropTypes.object.isRequired, current_time:_react.PropTypes.number.isRequired,collection:_react.PropTypes.array.isRequired,increaseCollection:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,index:_react.PropTypes.func.isRequired,moreLoading:_react.PropTypes.bool.isRequired,more:_react.PropTypes.func.isRequired,wfCollection:_react.PropTypes.array.isRequired,wfLoading:_react.PropTypes.bool.isRequired,viewWorkflow:_react.PropTypes.func.isRequired,indexComments:_react.PropTypes.func.isRequired,sortComments:_react.PropTypes.func.isRequired,addComments:_react.PropTypes.func.isRequired,editComments:_react.PropTypes.func.isRequired,delComments:_react.PropTypes.func.isRequired,commentsCollection:_react.PropTypes.array.isRequired,commentsIndexLoading:_react.PropTypes.bool.isRequired,commentsLoading:_react.PropTypes.bool.isRequired,commentsItemLoading:_react.PropTypes.bool.isRequired,commentsLoaded:_react.PropTypes.bool.isRequired,indexWorklog:_react.PropTypes.func.isRequired,worklogSort:_react.PropTypes.string.isRequired,sortWorklog:_react.PropTypes.func.isRequired,addWorklog:_react.PropTypes.func.isRequired,editWorklog:_react.PropTypes.func.isRequired,delWorklog:_react.PropTypes.func.isRequired,worklogCollection:_react.PropTypes.array.isRequired,worklogIndexLoading:_react.PropTypes.bool.isRequired,worklogLoading:_react.PropTypes.bool.isRequired,worklogLoaded:_react.PropTypes.bool.isRequired,indexHistory:_react.PropTypes.func.isRequired,sortHistory:_react.PropTypes.func.isRequired,historyCollection:_react.PropTypes.array.isRequired,historyIndexLoading:_react.PropTypes.bool.isRequired,historyLoaded:_react.PropTypes.bool.isRequired,indexGitCommits:_react.PropTypes.func.isRequired,sortGitCommits:_react.PropTypes.func.isRequired,gitCommitsCollection:_react.PropTypes.array.isRequired,gitCommitsIndexLoading:_react.PropTypes.bool.isRequired,gitCommitsLoaded:_react.PropTypes.bool.isRequired,itemData:_react.PropTypes.object.isRequired,project:_react.PropTypes.object,options:_react.PropTypes.object,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.isRequired,show:_react.PropTypes.func.isRequired,del:_react.PropTypes.func.isRequired,edit:_react.PropTypes.func.isRequired,create:_react.PropTypes.func.isRequired,copy:_react.PropTypes.func.isRequired,move:_react.PropTypes.func.isRequired,convert:_react.PropTypes.func.isRequired,resetState:_react.PropTypes.func.isRequired,setAssignee:_react.PropTypes.func.isRequired,setLabels:_react.PropTypes.func.isRequired,addLabels:_react.PropTypes.func.isRequired,fileLoading:_react.PropTypes.bool.isRequired,delFile:_react.PropTypes.func.isRequired,addFile:_react.PropTypes.func.isRequired,record:_react.PropTypes.func.isRequired,forward:_react.PropTypes.func.isRequired,cleanRecord:_react.PropTypes.func.isRequired,visitedIndex:_react.PropTypes.number.isRequired,visitedCollection:_react.PropTypes.array.isRequired,createLink:_react.PropTypes.func.isRequired,delLink:_react.PropTypes.func.isRequired,linkLoading:_react.PropTypes.bool.isRequired,doAction:_react.PropTypes.func.isRequired,watch:_react.PropTypes.func.isRequired,user:_react.PropTypes.object.isRequired},enumerable:!0}]),List}(_react.Component);exports.default=List,module.exports=exports.default}).call(this)}finally{}},1953:function(e,t,n){try{(function(){"use strict";function e(e,t){return(0,r.asyncFuncCreator)({constant:"ACTIVITY_INDEX",promise:function(n){return n.request({url:"/project/"+e+"/activity"+(t?"?"+t:"")})}})}function a(e,t){return(0,r.asyncFuncCreator)({constant:"ACTIVITY_MORE",promise:function(n){return n.request({url:"/project/"+e+"/activity"+(t?"?"+t:"")})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.more=a;var r=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=activity-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=activity-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/config-e84984431a143be0907e.js b/public/assets/config-84397989593b11928a6a.js similarity index 99% rename from public/assets/config-e84984431a143be0907e.js rename to public/assets/config-84397989593b11928a6a.js index 7355d7389..e89ae6dcd 100644 --- a/public/assets/config-e84984431a143be0907e.js +++ b/public/assets/config-84397989593b11928a6a.js @@ -1,2 +1,2 @@ webpackJsonp([26],{38:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"Select",label:"选择列表(单行)"},{value:"MultiSelect",label:"选择列表(多行)"},{value:"CheckboxGroup",label:"复选按钮"},{value:"RadioGroup",label:"单选按钮"},{value:"DatePicker",label:"日期选择控件"},{value:"DateTimePicker",label:"日期时间选择控件"},{value:"TimeTracking",label:"时间跟踪"},{value:"File",label:"文件"},{value:"SingleVersion",label:"单一版本选择"},{value:"MultiVersion",label:"多版本选择"},{value:"SingleUser",label:"单一用户选择"},{value:"MultiUser",label:"多用户选择"},{value:"Url",label:"URL字段"}];t.FieldTypes=e;var n=[{id:"new",name:"新建"},{id:"inprogress",name:"进行中"},{id:"completed",name:"完成"}];t.StateCategories=n;var l=[{id:"all",name:"所有权限项"},{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"},{id:"assigned_issue",name:"被分配问题"},{id:"assign_issue",name:"分配问题"},{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"delete_issue",name:"删除问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"resolve_issue",name:"解决问题"},{id:"reset_issue",name:"重置问题"},{id:"close_issue",name:"关闭问题"},{id:"exec_workflow",name:"执行流程"},{id:"upload_file",name:"上传附件(文件)"},{id:"download_file",name:"下载附件(文件)"},{id:"remove_file",name:"删除附件(文件)"},{id:"add_worklog",name:"添加工作日志"}];t.Permissions=l;var a={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=a}).call(this)}finally{}},209:function(e,t,n){try{(function(){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",r=function(e){var n=d.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(a+=t[e].id+'["'+n+'"];',"continue"):void d.default.map(t[e].actions,function(l){d.default.map(l.results,function(r){a+=t[e].id+'["'+n+'"]',a+='--"'+d.default.escape(l.name)+"("+l.id+')"-->';var o=d.default.find(t,{id:r.step});a+=o.id+'["'+d.default.escape(o.name)+'"];'})})},o=0;o0?c.default.createElement(s.Table,{responsive:!0,hover:!0},c.default.createElement("thead",null,c.default.createElement("tr",null,c.default.createElement("th",null,"名称"),c.default.createElement("th",null,"类型"),c.default.createElement("th",null,"界面"),c.default.createElement("th",null,"工作流"))),c.default.createElement("tbody",null,d.default.map(n.types,function(t){return c.default.createElement("tr",null,c.default.createElement("td",null,c.default.createElement("span",{className:"table-td-title-nobold"},t.name||"","(",t.abb||"",")",t.default&&c.default.createElement("span",{style:{fontWeight:"normal"}}," (默认)"),"subtask"==t.type&&c.default.createElement("span",{style:{fontWeight:"normal"}}," (子任务)")),c.default.createElement("span",{className:"table-td-desc"},t.description||"")),c.default.createElement("td",null,"subtask"===t.type?"子任务":"标准"),c.default.createElement("td",null,c.default.createElement("a",{href:"#",onClick:function(n){n.preventDefault(),e.setState({screenPreviewModalShow:!0,screenSchema:t.screen&&t.screen.schema||[],screenName:t.screen&&t.screen.name||""})}},t.screen&&t.screen.name||"")),c.default.createElement("td",null,c.default.createElement("a",{href:"#",onClick:function(n){n.preventDefault(),e.setState({wfPreviewModalShow:!0,wfSteps:t.workflow&&t.workflow.contents&&t.workflow.contents.steps||[],wfName:t.workflow&&t.workflow.name||""})}},t.workflow&&t.workflow.name||"")))}))):c.default.createElement("div",null,"暂无信息")),c.default.createElement(s.Panel,{header:"问题优先级"},n.priorities&&n.priorities.length>0?c.default.createElement(s.Table,{responsive:!0,hover:!0},c.default.createElement("thead",null,c.default.createElement("tr",null,c.default.createElement("th",null,"名称"),c.default.createElement("th",null,"图案"),c.default.createElement("th",null,"描述"))),c.default.createElement("tbody",null,d.default.map(n.priorities||[],function(e){return c.default.createElement("tr",null,c.default.createElement("td",null,c.default.createElement("span",{className:"table-td-title-nobold"},e.name||"",e.default&&c.default.createElement("span",{style:{fontWeight:"normal"}}," (默认)"))),c.default.createElement("td",null,c.default.createElement("div",{className:"circle",style:{backgroundColor:e.color||"#ccc"}})),c.default.createElement("td",null,e.description||"-"))}))):c.default.createElement("div",null,"暂无信息")),c.default.createElement(s.Panel,{header:"项目角色"},n.roles&&n.roles.length>0?c.default.createElement(s.Table,{responsive:!0,hover:!0},c.default.createElement("thead",null,c.default.createElement("tr",null,c.default.createElement("th",{style:{width:"300px"}},"名称"),c.default.createElement("th",null,"权限"))),c.default.createElement("tbody",null,d.default.map(n.roles,function(e){return c.default.createElement("tr",null,c.default.createElement("td",null,c.default.createElement("span",{className:"table-td-title-nobold"},e.name||""),c.default.createElement("span",{className:"table-td-desc"},e.description||"")),c.default.createElement("td",null,c.default.createElement("div",{style:{display:"table",width:"100%"}},e.permissions&&e.permissions.length>0?c.default.createElement("span",null,d.default.map(d.default.filter(p.Permissions,function(t){return d.default.indexOf(e.permissions,t.id)!==-1}),function(e,t){return c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},c.default.createElement(s.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:t},e.name||""))})):c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")))))}))):c.default.createElement("div",null,"暂无信息")),this.state.wfPreviewModalShow&&c.default.createElement(y,{show:!0,close:function(){e.setState({wfPreviewModalShow:!1})},name:this.state.wfName,collection:this.state.wfSteps}),this.state.screenPreviewModalShow&&c.default.createElement(v,{show:!0,close:function(){e.setState({screenPreviewModalShow:!1})},name:this.state.screenName,data:this.state.screenSchema}))}}],[{key:"propTypes",value:{project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},1954:function(e,t,n){try{(function(){"use strict";function e(e){return(0,l.asyncFuncCreator)({constant:"PROJECT_CONFIG",promise:function(t){return t.request({url:"/project/"+e+"/config"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e;var l=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=config-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=config-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/directory-e84984431a143be0907e.js b/public/assets/directory-84397989593b11928a6a.js similarity index 99% rename from public/assets/directory-e84984431a143be0907e.js rename to public/assets/directory-84397989593b11928a6a.js index a8e017069..7dae8f529 100644 --- a/public/assets/directory-e84984431a143be0907e.js +++ b/public/assets/directory-84397989593b11928a6a.js @@ -2,4 +2,4 @@ webpackJsonp([12],{7:function(e,t,n){"use strict";function r(e){return e&&e.__es newOptionCreator:s,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,r=e.onNewOptionClick,o=e.options,a=void 0===o?[]:o;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var i=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),u=this.isOptionUnique({option:i});u&&(r?r(i):(a.unshift(i),this.select.selectValue(i)))}},filterOptions:function P(){var e=this.props,P=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),r=arguments[2]||[],o=P.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var a=this.props.newOptionCreator,i=a({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),u=this.isOptionUnique({option:i,options:r.concat(o)});if(u){var s=n(this.inputValue);this._createPlaceholderOption=a({label:s,labelKey:this.labelKey,valueKey:this.valueKey}),o.unshift(this._createPlaceholderOption)}}return o},isOptionUnique:function x(e){var t=e.option,n=e.options,x=this.props.isOptionUnique;return n=n||this.select.filterOptions(),x({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function _(e){var _=this.props.menuRenderer;return _(d({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function A(e){var A=this.props.onInputChange;A&&A(e),this.inputValue=e},onInputKeyDown:function F(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,F=t.onInputKeyDown,r=this.select.getFocusedOption();r&&r===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):F&&F(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,o(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),r=this.props.children;r||(r=a);var i=d({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return r(i)}});e.exports=T},27:function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;O.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function a(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,a=r.__reactAutoBindPairs;n.hasOwnProperty(l)&&E.mixins(e,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==l){var u=n[i],c=r.hasOwnProperty(i);if(o(c,i),E.hasOwnProperty(i))E[i](e,u);else{var d=b.hasOwnProperty(i),h="function"==typeof u,m=h&&!d&&!c&&n.autobind!==!1;if(m)a.push(i,u),r[i]=u;else if(c){var v=b[i];s(d&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,i),"DEFINE_MANY_MERGED"===v?r[i]=p(r[i],u):"DEFINE_MANY"===v&&(r[i]=f(r[i],u))}else r[i]=u}}}else;}function c(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in E;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;s(!a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function d(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return d(o,n),d(o,r),o}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;ne.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(d.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t},t)}var a=Object.assign||function(e){for(var t=1;t0&&"none"!==t&&(a=r));return document.body.removeChild(e),a}Object.defineProperty(t,"__esModule",{value:!0}),t.getScroll=n,t.offset=r,t.getTransformPropertyName=o;var a=void 0},342:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(252),a=r(o);t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},343:function(e,t,n){n(350);var r=n(193).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},350:function(e,t,n){var r=n(200);r(r.S+r.F*!n(236),"Object",{defineProperty:n(216).f})},351:function(e,t,n){function r(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var o=n(255)}catch(a){var o=n(255)}var i=/\s+/,u=Object.prototype.toString;e.exports=function(e){return new r(e)},r.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=o(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==u.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=o(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},r.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n children");return E.default.createElement(T.default,{key:n.key,ref:function(t){return e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var o=t.component;if(o){var a=t;return"string"==typeof o&&(a=(0,u.default)({className:t.className,style:t.style},t.componentProps)),E.default.createElement(o,a,r)}return r[0]||null}}]),t}(E.default.Component);A.propTypes={component:C.default.any,componentProps:C.default.object,animation:C.default.object,transitionName:C.default.oneOfType([C.default.string,C.default.object]),transitionEnter:C.default.bool,transitionAppear:C.default.bool,exclusive:C.default.bool,transitionLeave:C.default.bool,onEnd:C.default.func,onEnter:C.default.func,onLeave:C.default.func,onAppear:C.default.func,showProp:C.default.string},A.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:a,onEnter:a,onLeave:a,onAppear:a};var F=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var a=(0,O.toArrayChildren)(o(r));e.isValidChildByKey(a,t)?"appear"===n?x.default.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):x.default.allowEnterCallback(r)&&(r.onEnter(t), r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r=(0,O.toArrayChildren)(o(n));if(e.isValidChildByKey(r,t))e.performEnter(t);else{var a=function(){x.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,O.isSameChildren)(e.state.children,r,n.showProp)?a():e.setState({children:r},a)}}}};t.default=A,e.exports=t.default},364:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(235),a=r(o),i=n(12),u=r(i),s=n(253),l=r(s),c=n(14),d=r(c),p=n(13),f=r(p),h=n(1),m=r(h),v=n(11),y=r(v),b=n(9),E=r(b),g=n(358),C=r(g),O=n(260),w=r(O),T={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},P=function(e){function t(){return(0,u.default)(this,t),(0,d.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){w.default.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){w.default.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){w.default.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=y.default.findDOMNode(this),o=this.props,i=o.transitionName,u="object"===("undefined"==typeof i?"undefined":(0,a.default)(i));this.stop();var s=function(){n.stopper=null,t()};if((g.isCssAnimationSupported||!o.animation[e])&&i&&o[T[e]]){var l=u?i[e]:i+"-"+e,c=l+"-active";u&&i[e+"Active"]&&(c=i[e+"Active"]),this.stopper=(0,C.default)(r,{name:l,active:c},s)}else this.stopper=o.animation[e](r,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(m.default.Component);P.propTypes={children:E.default.any},t.default=P,e.exports=t.default},365:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=[];return d.default.Children.forEach(e,function(e){t.push(e)}),t}function a(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function i(e,t,n){var r=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for children");r=e}}),r}function u(e,t,n){var r=0;return e&&e.forEach(function(e){r||(r=e&&e.key===t&&!e.props[n])}),r}function s(e,t,n){var r=e.length===t.length;return r&&e.forEach(function(e,o){var a=t[o];e&&a&&(e&&!a||!e&&a?r=!1:e.key!==a.key?r=!1:n&&e.props[n]!==a.props[n]&&(r=!1))}),r}function l(e,t){var n=[],r={},o=[];return e.forEach(function(e){e&&a(t,e.key)?o.length&&(r[e.key]=o,o=[]):o.push(e)}),t.forEach(function(e){e&&r.hasOwnProperty(e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=o,t.findChildInChildrenByKey=a,t.findShownChildInChildrenByKey=i,t.findHiddenChildInChildrenByKey=u,t.isSameChildren=s,t.mergeChildren=l;var c=n(1),d=r(c)},366:function(e,t,n){"use strict";function r(e){var t=e.refs,n=t.nav,r=(0,o.offset)(n),a=t.inkBar,i=t.activeTab,u=e.props.tabPosition;if(i){var s=i,l=(0,o.offset)(s),c=(0,o.getTransformPropertyName)();if("top"===u||"bottom"===u){var d=l.left-r.left;c?(a.style[c]="translate3d("+d+"px,0,0)",a.style.width=s.offsetWidth+"px",a.style.height=""):(a.style.left=d+"px",a.style.top="",a.style.bottom="",a.style.right=n.offsetWidth-d-s.offsetWidth+"px")}else{var p=l.top-r.top;c?(a.style[c]="translate3d(0,"+p+"px,0)",a.style.height=s.offsetHeight+"px",a.style.width=""):(a.style.left="",a.style.right="",a.style.top=p+"px",a.style.bottom=n.offsetHeight-p-s.offsetHeight+"px")}}a.style.display=i?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var o=n(262);t.default={componentDidUpdate:function(){r(this)},componentDidMount:function(){r(this)}},e.exports=t.default},367:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={LEFT:37,UP:38,RIGHT:39,DOWN:40},e.exports=t.default},368:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0?(c=!1,this.setOffset(0),u=0):su?(a+=i-u,this.setState({offset:a})):i+oi?"backward":"forward";this.setState({activeKey:e,tabMovingDirection:s})}else this.setState({activeKey:e})},render:function(){var e,t=this.props,n=t.destroyInactiveTabPane,r=t.prefixCls,a=t.tabPosition,i=t.className,u=t.animation,l=(0,b.default)((e={},o(e,r,1),o(e,r+"-"+a,1),o(e,i,!!i),e)),c=this.state.tabMovingDirection,d=this.getTabPanes(),p=void 0;p=t.transitionName&&t.transitionName[c||"backward"],!p&&u&&(p=r+"-"+u+"-"+(c||"backward")),n&&(d=d.filter(function(e){return e.props.active})),p&&(d=n?s.default.createElement(v.default,{exclusive:!0,component:"div",transitionName:p},d):s.default.createElement(v.default,{showProp:"active",exclusive:!0,component:"div",transitionName:p},d));var f=[s.default.createElement(h.default,{prefixCls:r,key:"nav",onKeyDown:this.onNavKeyDown,tabBarExtraContent:this.props.tabBarExtraContent,tabPosition:a,style:t.navStyle,onTabClick:this.onTabClick,tabMovingDirection:c,panels:this.props.children,activeKey:this.state.activeKey}),s.default.createElement("div",{className:r+"-content",style:t.contentStyle,key:"content"},d)];return"bottom"===a&&f.reverse(),s.default.createElement("div",{className:l,style:t.style},f)}});E.TabPane=p.default,t.default=E,e.exports=t.default},370:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TabPane=t.default=void 0;var o=n(369),a=r(o),i=n(261),u=r(i);t.default=a.default,t.TabPane=u.default},1736:function(e,t,n){try{(function(){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0&&l.default.createElement("tr",null,l.default.createElement("td",{style:{height:"35px",textAlign:"right"}},"获取用户组成员:"),l.default.createElement("td",null,r.group_membership?l.default.createElement(c.Label,{bsStyle:"success"},"成功"):l.default.createElement(c.Label,{bsStyle:"danger"},"失败"))))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{disabled:t,bsStyle:"link",onClick:this.retest.bind(this)},"重新测试"),l.default.createElement(c.Button,{disabled:t,onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool.isRequired,test:s.PropTypes.func.isRequired,testInfo:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=p,e.exports=t.default}).call(this)}finally{}},1955:function(e,t,n){try{(function(){"use strict";function e(){return(0,c.asyncFuncCreator)({constant:"DIRECTORY_INDEX",promise:function(e){return e.request({url:"/directory"})}})}function r(e){return(0,c.asyncFuncCreator)({constant:"DIRECTORY_CREATE",promise:function(t){return t.request({url:"/directory",method:"post",data:e})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"DIRECTORY_UPDATE",promise:function(n){return n.request({url:"/directory/"+e,method:"put",data:t})}})}function a(e,t){return(0,c.asyncFuncCreator)({constant:"DIRECTORY_INVALIDATE",promise:function(n){return n.request({url:"/directory/"+e,method:"put",data:{invalid_flag:t}})}})}function i(e){return(0,c.asyncFuncCreator)({constant:"DIRECTORY_DELETE",id:e,promise:function(t){return t.request({url:"/directory/"+e,method:"delete"})}})}function u(e){return{type:"DIRECTORY_SELECT",id:e}}function s(e){return(0,c.asyncFuncCreator)({constant:"DIRECTORY_TEST",promise:function(t){return t.request({url:"/directory/"+e+"/test"})}})}function l(e){return(0,c.asyncFuncCreator)({constant:"DIRECTORY_SYNC",promise:function(t){return t.request({url:"/directory/"+e+"/sync"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=o,t.invalidate=a,t.del=i,t.select=u,t.test=s,t.sync=l;var c=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=directory-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=directory-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/document-e84984431a143be0907e.js b/public/assets/document-84397989593b11928a6a.js similarity index 99% rename from public/assets/document-e84984431a143be0907e.js rename to public/assets/document-84397989593b11928a6a.js index ebb092b96..b0e4fdd1f 100644 --- a/public/assets/document-e84984431a143be0907e.js +++ b/public/assets/document-84397989593b11928a6a.js @@ -9,4 +9,4 @@ weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._ return this.getFilesWithStatus(t.QUEUED)},t.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(t.UPLOADING)},t.prototype.getAddedFiles=function(){return this.getFilesWithStatus(t.ADDED)},t.prototype.getActiveFiles=function(){var e,n,a,s,r;for(s=this.files,r=[],n=0,a=s.length;n'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(a=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,s,r;if(n=e.hiddenFileInput.files,n.length)for(s=0,r=n.length;s',this.options.dictFallbackText&&(a+="

"+this.options.dictFallbackText+"

"),a+='',n=t.createElement(a),"FORM"!==this.element.tagName?(s=t.createElement('
'),s.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=s?s:n)},t.prototype.getExistingFallback=function(){var e,t,n,a,s,r;for(t=function(e){var t,n,a;for(n=0,a=e.length;n0){for(i=["TB","GB","MB","KB","b"],n=o=0,u=i.length;o=t){a=e/Math.pow(this.options.filesizeBase,4-n),s=r;break}a=Math.round(10*a)/10}return""+a+" "+s},t.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},t.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},t.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},t.prototype.handleFiles=function(e){var t,n,a,s;for(s=[],n=0,a=e.length;n0){for(r=0,i=n.length;r1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)},t.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},t.prototype.enqueueFiles=function(e){var t,n,a;for(n=0,a=e.length;n=t)&&(a=this.getQueuedFiles(),a.length>0)){if(this.options.uploadMultiple)return this.processFiles(a.slice(0,t-n));for(;e=C;l=0<=C?++x:--x)r.append(this._getParamName(l),e[l],this._renameFilename(e[l].name));return this.submitRequest(Y,r,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,a){var s,r,i;for(r=0,i=e.length;rl;)t=s[4*(u-1)+3],0===t?r=u:l=u,u=r+l>>1;return d=u/i,0===d?1:d},i=function(e,t,n,a,s,i,o,u,d,l){var c;return c=r(t),e.drawImage(t,n,a,s,i,o,u,d,l/c)},s=function(e,t){var n,a,s,r,i,o,u,d,l;if(s=!1,l=!0,a=e.document,d=a.documentElement,n=a.addEventListener?"addEventListener":"attachEvent",u=a.addEventListener?"removeEventListener":"detachEvent",o=a.addEventListener?"":"on",r=function(n){if("readystatechange"!==n.type||"complete"===a.readyState)return("load"===n.type?e:a)[u](o+n.type,r,!1),!s&&(s=!0)?t.call(e,n.type||n):void 0},i=function(){var e;try{d.doScroll("left")}catch(t){return e=t,void setTimeout(i,50)}return r("poll")},"complete"!==a.readyState){if(a.createEventObject&&d.doScroll){try{l=!e.frameElement}catch(c){}l&&i()}return a[n](o+"DOMContentLoaded",r,!1),a[n](o+"readystatechange",r,!1),e[n](o+"load",r,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},s(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var a=Object.prototype.hasOwnProperty,s=Object.prototype.toString,r=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===s.call(e)},i=function(e){if(!e||"[object Object]"!==s.call(e))return!1;var t=a.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&a.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var r;for(r in e);return"undefined"==typeof r||a.call(e,r)};e.exports=function o(){var e,t,n,a,s,u,d=arguments[0],l=1,c=arguments.length,_=!1;for("boolean"==typeof d?(_=d,d=arguments[1]||{},l=2):("object"!=typeof d&&"function"!=typeof d||null==d)&&(d={});l0){this.queueDestroy=!0;var n=window.setInterval(function(){return e.queueDestroy===!1?window.clearInterval(n):0===e.dropzone.getActiveFiles().length?(e.dropzone=e.destroy(e.dropzone),window.clearInterval(n)):void 0},500)}else this.dropzone=this.destroy(this.dropzone)}}},{key:"componentDidUpdate",value:function(){if(this.queueDestroy=!1,!this.dropzone){var e=this.props.config.dropzoneSelector||c.default.findDOMNode(this);this.dropzone=new f(e,this.getDjsConfig())}}},{key:"componentWillUpdate",value:function(){var e=void 0,t=void 0;e=this.props.djsConfig?this.props.djsConfig:{};try{t=this.props.config.postUrl?{url:this.props.config.postUrl}:{}}catch(n){t={}}this.dropzone.options=(0,m.default)(!0,{},this.dropzone.options,e,t)}},{key:"render",value:function(){var e=[],t=this.state.files,n=this.props.config,a=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var s=0;s0&&f.default.map(s.data,function(e){r.push({id:e.id,name:e.name})}),i.abrupt("return",{options:r});case 12:case"end":return i.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,a=n.name,s=n.dest_path,r=e.handleSubmit,o=e.invalid,u=e.submitting,d=e.data;return l.default.createElement(_.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},l.default.createElement(_.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},l.default.createElement(_.Modal.Title,{id:"contained-modal-title-la"},"复制",1===d.d?"目录":"文档"," - ",d.name)),l.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},l.default.createElement(_.Modal.Body,null,l.default.createElement(_.FormGroup,{controlId:"formControlsText",validationState:a.touched&&a.error?"error":null},l.default.createElement(_.ControlLabel,null,l.default.createElement("span",{className:"txt-impt"},"*"),"名称"),l.default.createElement(_.FormControl,i({disabled:u,type:"text"},a,{placeholder:"名称"})),a.touched&&a.error&&l.default.createElement(_.HelpBlock,{style:{"float":"right"}},a.error)),l.default.createElement(_.FormGroup,{controlId:"formControlsText"},l.default.createElement(_.ControlLabel,null,"复制到"),l.default.createElement(h.default.Async,{clearable:!1,disabled:u,options:[],value:s.value,onChange:function(e){s.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称(默认当前路径)"}))),l.default.createElement(_.Modal.Footer,null,l.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!u&&t[this.state.ecode]),l.default.createElement("img",{src:v,className:u?"loading":"hide"}),l.default.createElement(_.Button,{disabled:u||o,type:"submit"},"确定"),l.default.createElement(_.Button,{bsStyle:"link",disabled:u,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:d.PropTypes.object.isRequired,project_key:d.PropTypes.string.isRequired,submitting:d.PropTypes.bool,invalid:d.PropTypes.bool,values:d.PropTypes.object,fields:d.PropTypes.object,handleSubmit:d.PropTypes.func.isRequired,close:d.PropTypes.func.isRequired,data:d.PropTypes.object.isRequired,initializeForm:d.PropTypes.func.isRequired,copy:d.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"copy_file",fields:["name","dest_path"],validate:Y})(t)||t}(d.Component);t.default=D,e.exports=t.default}).call(this)}finally{}},1746:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1&&M.default.isEmpty(S)){var z=E.path[E.path.length-2];R.push({id:z.id,name:d.default.createElement("div",null,d.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},d.default.createElement("i",{className:"fa fa-arrow-up"})),d.default.createElement(l.Link,{to:"/project/"+a+"/document"+("0"!==z.id?"/"+z.id:"")},"返回上级")),operation:d.default.createElement("div",null)})}x&&R.push({id:"createFolder",name:d.default.createElement(b,{i18n:n,loading:u,data:{},createFolder:m,collection:r,cancel:this.cancelEditRow,mode:"createFolder"}),operation:d.default.createElement("div",null)});var N=M.default.filter(r,{d:1});M.default.map(N,function(t,s){return F==t.id?void R.push({id:t.id,name:d.default.createElement(b,{i18n:n,loading:u,data:i,collection:r,edit:y,cancel:e.cancelEditRow,mode:"editFolder"}),operation:d.default.createElement("div",null)}):void R.push({id:t.id,name:d.default.createElement("div",null,d.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},d.default.createElement("i",{className:"fa fa-folder"})),d.default.createElement(l.Link,{to:"/project/"+a+"/document/"+t.id},t.name)),operation:d.default.createElement("div",null,P&&H===t.id&&!u&&E.permissions&&(E.permissions.indexOf("download_file")!==-1||E.permissions.indexOf("manage_project")!==-1)&&d.default.createElement(_.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:s,title:W,id:"dropdown-basic-"+s,onClick:e.cancelEditRow,onSelect:e.operateSelect.bind(e)},E.permissions&&E.permissions.indexOf("download_file")!==-1&&d.default.createElement(_.MenuItem,{eventKey:"download"},"下载"),E.permissions&&E.permissions.indexOf("manage_project")!==-1&&d.default.createElement(_.MenuItem,{eventKey:"rename"},"重命名"),E.permissions&&E.permissions.indexOf("manage_project")!==-1&&d.default.createElement(_.MenuItem,{eventKey:"move"},"移动"),E.permissions&&E.permissions.indexOf("manage_project")!==-1&&d.default.createElement(_.MenuItem,{eventKey:"del"},"删除")),d.default.createElement("img",{src:w,className:u&&i.id===t.id?"loading":"hide"}))})});for(var I=M.default.reject(r,{d:1}),V=I.length,U=0;U0&&d.default.createElement("span",null,"共计 文件夹 ",M.default.filter(r,{d:1}).length," 个,文件 ",M.default.reject(r,{d:1}).length," 个。"),r.length>1&&E.permissions&&E.permissions.indexOf("download_file")!==-1&&M.default.isEmpty(S)&&E.path.length>1&&d.default.createElement("span",{style:{marginLeft:"10px"}},d.default.createElement("i",{className:"fa fa-download"}),d.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.downloadAll()}},"下载全部"))),this.state.copyModalShow&&d.default.createElement(D,{show:!0,project_key:a,close:function(){e.setState({copyModalShow:!1})},copy:g,data:i,i18n:n}),this.state.moveModalShow&&d.default.createElement(k,{show:!0,project_key:a,close:function(){e.setState({moveModalShow:!1})},move:T,data:i,i18n:n}),this.state.delNotifyShow&&d.default.createElement(Y,{show:!0,close:this.delNotifyClose,data:i,del:p})))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project_key:u.PropTypes.string.isRequired,directory:u.PropTypes.string.isRequired,options:u.PropTypes.object,collection:u.PropTypes.array.isRequired,selectedItem:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,refresh:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,createFolder:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},1749:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0&&p.default.map(i.data,function(e){e.id!==a.parent&&o.push({id:e.id,name:e.name})}),u.abrupt("return",{options:o});case 14:case"end":return u.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,a=(n.id,n.dest_path),s=e.handleSubmit,r=e.invalid,i=e.submitting,o=e.data;return d.default.createElement(c.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},d.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},d.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"移动",1===o.d?"目录":"文档"," - ",o.name)),d.default.createElement("form",{onSubmit:s(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},d.default.createElement(c.Modal.Body,null,d.default.createElement(c.FormGroup,{validationState:a.touched&&a.error?"error":null},d.default.createElement(c.ControlLabel,null,d.default.createElement("span",{ className:"txt-impt"},"*"),"移动到"),d.default.createElement(m.default.Async,{clearable:!1,disabled:i,options:[],value:a.value,onChange:function(e){a.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称"}),a.touched&&a.error&&d.default.createElement(c.HelpBlock,{style:{"float":"right"}},a.error))),d.default.createElement(c.Modal.Footer,null,d.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&t[this.state.ecode]),d.default.createElement("img",{src:g,className:i?"loading":"hide"}),d.default.createElement(c.Button,{disabled:i||r,type:"submit"},"确定"),d.default.createElement(c.Button,{bsStyle:"link",disabled:i,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project_key:u.PropTypes.string.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,data:u.PropTypes.object.isRequired,move:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,l.reduxForm)({form:"move_file",fields:["id","dest_path"],validate:v})(t)||t}(u.Component);t.default=Y,e.exports=t.default}).call(this)}finally{}},1956:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"DOCUMENT_OPTIONS",promise:function(t){return t.request({url:"/project/"+e+"/document/options"})}})}function a(e,t,n){return(0,c.asyncFuncCreator)({constant:"DOCUMENT_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/document/directory/"+t+(n?"?"+n:"")})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"DOCUMENT_CREATE_FOLDER",promise:function(n){return n.request({url:"/project/"+e+"/document/directory",method:"post",data:t})}})}function r(e,t,n){return(0,c.asyncFuncCreator)({constant:"DOCUMENT_UPDATE",promise:function(a){return a.request({url:"/project/"+e+"/document/"+t,method:"put",data:n})}})}function i(e,t){return(0,c.asyncFuncCreator)({constant:"DOCUMENT_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/document/"+t,method:"delete"})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"DOCUMENT_COPY",isSamePath:t.src_path===t.dest_path,promise:function(n){return n.request({url:"/project/"+e+"/document/copy",method:"post",data:t})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"DOCUMENT_MOVE",promise:function(n){return n.request({url:"/project/"+e+"/document/move",method:"post",data:t})}})}function d(e){return{type:"DOCUMENT_SELECT",id:e}}function l(e){return{type:"DOCUMENT_ADD",file:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getOptions=e,t.index=a,t.createFolder=s,t.update=r,t.del=i,t.copy=o,t.move=u,t.select=d,t.addFile=l;var c=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=document-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=document-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/events-e84984431a143be0907e.js b/public/assets/events-84397989593b11928a6a.js similarity index 99% rename from public/assets/events-e84984431a143be0907e.js rename to public/assets/events-84397989593b11928a6a.js index 943568925..e1afd4929 100644 --- a/public/assets/events-e84984431a143be0907e.js +++ b/public/assets/events-84397989593b11928a6a.js @@ -1,4 +1,4 @@ webpackJsonp([23],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;ts.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var i=0;io&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(i=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,a=(0,E.default)("Select-input",this.props.inputProps.className),r=!!this.state.isOpen,c=(0,E.default)((n={},i(n,this._instancePrefix+"-list",r),i(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=s({},this.props.inputProps,{role:"combobox","aria-expanded":""+r,"aria-owns":c,"aria-haspopup":""+r,"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,E.default)(i({},this._instancePrefix+"-list",r));return l.default.createElement("div",s({},f,{role:"combobox","aria-expanded":r,"aria-owns":h,"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(y.default,s({},p,{minWidth:"5"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function q(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var q="function"==typeof this.props.filterOptions?this.props.filterOptions:F.default;return q(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var i=e[n]===o[n];return i&&(u=t),i}),u!==-1)return u}for(var i=0;i-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var i=String(e[o.valueKey]),s=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(i=(0,a.default)(i)),"value"!==o.matchProp&&(s=(0,a.default)(s))),o.ignoreCase&&("label"!==o.matchProp&&(i=i.toLowerCase()),"value"!==o.matchProp&&(s=s.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&i.substr(0,t.length)===t||"value"!==o.matchProp&&s.substr(0,t.length)===t:"label"!==o.matchProp&&i.indexOf(t)>=0||"value"!==o.matchProp&&s.indexOf(t)>=0})}var i=n(22),a=o(i);e.exports=u},21:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,i=e.optionClassName,s=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=s;return c.map(function(e,s){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,a.default)(i,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return r.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+s+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:s,ref:function(e){f(e,m)}},l(e,s))})}var i=n(10),a=o(i),s=n(1),r=o(s);e.exports=u},22:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e){return f.default.createElement(E.default,e)}function a(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function s(e){var t=e.label;return!!t}function r(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(r({},this.props,l,{isLoading:a,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var i=Object.assign||function(e){for(var t=1;t=0),"function"==typeof o&&(u.onChange=o.bind(null,this.props.value)),s.default.createElement("input",i({},this.props,{type:"checkbox",name:t},u))}}),t.CheckboxGroup=s.default.createClass({displayName:"CheckboxGroup",propTypes:{name:a.PropTypes.string,defaultValue:a.PropTypes.array,value:a.PropTypes.array,onChange:a.PropTypes.func,children:a.PropTypes.node.isRequired,Component:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.func,a.PropTypes.object])},getDefaultProps:function(){return{Component:"div"}},childContextTypes:{checkboxGroup:s.default.PropTypes.object},getChildContext:function(){return{checkboxGroup:{name:this.props.name,checkedValues:this.state.value,onChange:this._onCheckboxChange}}},getInitialState:function(){return{value:this.props.value||this.props.defaultValue||[]}},componentWillReceiveProps:function(e){e.value&&this.setState({value:e.value})},render:function(){var e=this.props,t=e.Component,n=(e.name,e.value,e.onChange,e.children),o=u(e,["Component","name","value","onChange","children"]);return s.default.createElement(t,o,n)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var n;n=t.target.checked?this.state.value.concat(e):this.state.value.filter(function(t){return t!==e}),this._isControlledComponent()?this.setState({value:this.props.value}):this.setState({value:n}),"function"==typeof this.props.onChange&&this.props.onChange(n)}})},1750:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n0&&(s+=r[t]+"vatlh"),n>0&&(s+=(""!==s?" ":"")+r[n]+"maH"),a>0&&(s+=(""!==s?" ":"")+r[a]),""===s?"pagh":s}var r="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),i=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:t,past:n,s:"puS lup",m:"wa’ tup",mm:a,h:"wa’ rep",hh:a,d:"wa’ jaj",dd:a,M:"wa’ jar",MM:a,y:"wa’ DIS",yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},152:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,a=e%100-n,s=e>=100?100:null;return e+(t[n]||t[a]||t[s])},week:{dow:1,doy:7}});return n})},153:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,a){var s={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",""+e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",""+e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",""+e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",""+e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",""+e+" ars"]};return a?s[n][0]:t?s[n][0]:s[n][1]}var n=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},154:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t})},155:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t})},156:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){var s={mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t(s[a],+e)}function a(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},a=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[a][e.day()]}function s(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var r=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:a,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return r})},157:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t})},158:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t})},159:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},160:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.diff(t,"days")>=7?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1分鐘",mm:"%d分鐘",h:"1小時",hh:"%d小時",d:"1天",dd:"%d天",M:"1個月",MM:"%d個月",y:"1年",yy:"%d年"}});return t})},176:function(e,t,n){"use strict";var a=n(177),s=n(1),r=n(203),i=n(204),o=n(206),u=n(205),d=n(2),l=s.PropTypes,_=s.createClass({mixins:[n(207)],viewComponents:{days:r,months:i,years:o,time:u},propTypes:{onFocus:l.func,onBlur:l.func,onChange:l.func,locale:l.string,input:l.bool,inputProps:l.object,timeConstraints:l.object,viewMode:l.oneOf(["years","months","days","time"]),isValidDate:l.func,open:l.bool,strictParsing:l.bool,closeOnSelect:l.bool,closeOnTab:l.bool},getDefaultProps:function(){var e=function(){};return{className:"",defaultValue:"",inputProps:{},input:!0,onFocus:e,onBlur:e,onChange:e,timeFormat:!0,timeConstraints:{},dateFormat:!0,strictParsing:!0,closeOnSelect:!1,closeOnTab:!0}},getInitialState:function(){var e=this.getStateFromProps(this.props);return void 0===e.open&&(e.open=!this.props.input),e.currentView=this.props.dateFormat?this.props.viewMode||e.updateOn||"days":"time",e},getStateFromProps:function(e){var t,n,a,s=this.getFormats(e),r=e.value||e.defaultValue;return r&&"string"==typeof r?t=this.localMoment(r,s.datetime):r&&(t=this.localMoment(r)),t&&!t.isValid()&&(t=null),n=t?t.clone().startOf("month"):this.localMoment().startOf("month"),a=this.getUpdateOn(s),{updateOn:a,inputFormat:s.datetime,viewDate:n,selectedDate:t,inputValue:t?t.format(s.datetime):r||"",open:e.open}},getUpdateOn:function(e){return e.date.match(/[lLD]/)?"days":e.date.indexOf("M")!==-1?"months":e.date.indexOf("Y")!==-1?"years":"days"},getFormats:function(e){var t={date:e.dateFormat||"",time:e.timeFormat||""},n=this.localMoment(e.date).localeData();return t.date===!0?t.date=n.longDateFormat("L"):"days"!==this.getUpdateOn(t)&&(t.time=""),t.time===!0&&(t.time=n.longDateFormat("LT")),t.datetime=t.date&&t.time?t.date+" "+t.time:t.date||t.time,t},componentWillReceiveProps:function(e){var t=this.getFormats(e),n={};e.value!==this.props.value&&(n=this.getStateFromProps(e)),t.datetime!==this.getFormats(this.props).datetime&&(n.inputFormat=t.datetime),void 0===n.open&&(this.props.closeOnSelect&&"time"!==this.state.currentView?n.open=!1:n.open=this.state.open),this.setState(n)},onInputChange:function(e){var t=null===e.target?e:e.target.value,n=this.localMoment(t,this.state.inputFormat),a={inputValue:t};return n.isValid()&&!this.props.value?(a.selectedDate=n,a.viewDate=n.clone().startOf("month")):a.selectedDate=null,this.setState(a,function(){return this.props.onChange(n.isValid()?n:this.state.inputValue)})},onInputKey:function(e){9===e.which&&this.props.closeOnTab&&this.closeCalendar()},showView:function(e){var t=this;return function(){t.setState({currentView:e})}},setDate:function(e){var t=this,n={month:"days",year:"months"};return function(a){t.setState({viewDate:t.state.viewDate.clone()[e](parseInt(a.target.getAttribute("data-value"),10)).startOf(e),currentView:n[e]})}},addTime:function(e,t,n){return this.updateTime("add",e,t,n)},subtractTime:function(e,t,n){return this.updateTime("subtract",e,t,n)},updateTime:function(e,t,n,a){var s=this;return function(){var r={},i=a?"selectedDate":"viewDate";r[i]=s.state[i].clone()[e](t,n),s.setState(r)}},allowedSetTime:["hours","minutes","seconds","milliseconds"],setTime:function(e,t){var n,a=this.allowedSetTime.indexOf(e)+1,s=this.state,r=(s.selectedDate||s.viewDate).clone();for(r[e](t);al||u.year()>d)&&(e+=" rdtNew"),o&&u.isSame(o,"day")&&(e+=" rdtActive"),u.isSame(s(),"day")&&(e+=" rdtToday"),t=!h(a,o),t&&(e+=" rdtDisabled"),n={key:u.format("M_D"),"data-value":u.date(),className:e},t||(n.onClick=this.updateSelectedDate),c.push(m(n,a,o)),7===c.length&&(_.push(r.tr({key:u.format("M_D")},c)),c=[]),u.add(1,"d");return _},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t){return r.td(e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return r.tfoot({key:"tf"},r.tr({},r.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},isValidDate:function(){return 1}});e.exports=i},204:function(e,t,n){"use strict";function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}var s=n(1),r=s.DOM,i=s.createClass({render:function(){return r.div({className:"rdtMonths"},[r.table({key:"a"},r.thead({},r.tr({},[r.th({key:"prev",className:"rdtPrev"},r.span({onClick:this.props.subtractTime(1,"years")},"‹")),r.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),r.th({key:"next",className:"rdtNext"},r.span({onClick:this.props.addTime(1,"years")},"›"))]))),r.table({key:"months"},r.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n=this.props.selectedDate,a=this.props.viewDate.month(),s=this.props.viewDate.year(),i=[],o=0,u=[],d=this.props.renderMonth||this.renderMonth;o<12;)e="rdtMonth",n&&o===a&&s===n.year()&&(e+=" rdtActive"),t={key:o,"data-value":o,className:e,onClick:"months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")},u.push(d(t,o,s,n&&n.clone())),4===u.length&&(i.push(r.tr({key:a+"_"+i.length},u)),u=[]),o++;return i},updateSelectedMonth:function(e){this.props.updateSelectedDate(e,!0)},renderMonth:function(e,t){var n=this.props.viewDate.localeData()._monthsShort;return r.td(e,n.standalone?a(n.standalone[t]):n[t])}});e.exports=i},205:function(e,t,n){"use strict";var a=n(1),s=n(177),r=a.DOM,i=a.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,a=[];n.indexOf("H")===-1&&n.indexOf("h")===-1||(a.push("hours"),n.indexOf("m")!==-1&&(a.push("minutes"),n.indexOf("s")!==-1&&a.push("seconds")));var s=!1;return this.props.timeFormat.indexOf(" A")!==-1&&null!==this.state&&(s=this.state.hours>=12?"PM":"AM"),{hours:t.format("H"),minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:s,counters:a}},renderCounter:function(e){if("daypart"!==e){var t=this.state[e];return"hours"===e&&this.props.timeFormat.indexOf(" A")!==-1&&(t=(t-1)%12+1,0===t&&(t=12)),r.div({key:e,className:"rdtCounter"},[r.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e)},"▲"),r.div({key:"c",className:"rdtCount"},t),r.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e)},"▼")])}return""},renderDayPart:function(){return r.div({className:"rdtCounter",key:"dayPart"},[r.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▲"),r.div({key:this.state.daypart,className:"rdtCount"},this.state.daypart),r.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▼")])},render:function(){var e=this,t=[];return this.state.counters.forEach(function(n){t.length&&t.push(r.div({key:"sep"+t.length,className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(n))}),this.state.daypart!==!1&&t.push(e.renderDayPart()),3===this.state.counters.length&&this.props.timeFormat.indexOf("S")!==-1&&(t.push(r.div({className:"rdtCounterSeparator",key:"sep5"},":")),t.push(r.div({className:"rdtCounter rdtMilli",key:"m"},r.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),r.div({className:"rdtTime"},r.table({},[this.renderHeader(),r.tbody({key:"b"},r.tr({},r.td({},r.div({className:"rdtCounters"},t))))]))},componentWillMount:function(){var e=this;e.timeConstraints={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},["hours","minutes","seconds","milliseconds"].forEach(function(t){s(e.timeConstraints[t],e.props.timeConstraints[t])}),this.setState(this.calculateState(this.props))},componentWillReceiveProps:function(e){this.setState(this.calculateState(e))},updateMilli:function(e){var t=parseInt(e.target.value,10);t===e.target.value&&t>=0&&t<1e3&&(this.props.setTime("milliseconds",t),this.setState({milliseconds:t}))},renderHeader:function(){if(!this.props.dateFormat)return null;var e=this.props.selectedDate||this.props.viewDate;return r.thead({key:"h"},r.tr({},r.th({className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},e.format(this.props.dateFormat)))); },onStartClicking:function(e,t){var n=this;return function(){var a={};a[t]=n[e](t),n.setState(a),n.timer=setTimeout(function(){n.increaseTimer=setInterval(function(){a[t]=n[e](t),n.setState(a)},70)},500),n.mouseUpListener=function(){clearTimeout(n.timer),clearInterval(n.increaseTimer),n.props.setTime(t,n.state[t]),document.body.removeEventListener("mouseup",n.mouseUpListener)},document.body.addEventListener("mouseup",n.mouseUpListener)}},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},toggleDayPart:function(e){var t=parseInt(this.state[e],10)+12;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},increase:function(e){var t=parseInt(this.state[e],10)+this.timeConstraints[e].step;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},decrease:function(e){var t=parseInt(this.state[e],10)-this.timeConstraints[e].step;return t0||s[1]>13)&&(a=n(11));var r=[],i=[],o="ignore-react-onclickoutside",u=function(e,t){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(o):e.classList.contains(o))};e.exports={componentDidMount:function(){if("function"!=typeof this.handleClickOutside)throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");var e=this.__outsideClickHandler=function(e,t){return function(n){n.stopPropagation();for(var a=n.target,s=!1;a.parentNode;){if(s=u(a,e))return;a=a.parentNode}t(n)}}(a.findDOMNode(this),this.handleClickOutside),t=r.length;r.push(this),i[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=r.indexOf(this);e>-1&&i[e]&&(i.splice(e,1),r.splice(e,1))},enableOnClickOutside:function(){var e=this.__outsideClickHandler;document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},disableOnClickOutside:function(){var e=this.__outsideClickHandler;document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}},1757:function(e,t,n){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function s(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e){return{actions:(0,h.bindActionCreators)(f,e)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;ts&&u>i||(e.move(a,s),t.getItem().index=s)}}},y=function(e){function t(e){s(this,n),o(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={editing:!1,touched:!1,hasErr:!1,text:""},this.save=this.save.bind(this)}r(t,e),i(t,[{key:"save",value:function(){var e=this.props,t=e.edit,n=e.index,a=e.id,s=t(n,a,this.state.text);s?this.setState({editing:!1,hasErr:!1}):this.setState({hasErr:!0})}},{key:"edit",value:function(){var e,t,n,a;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return e=this.props,t=e.index,n=e.id,a=e.text,this.props.addEditingCards(n),s.next=7,regeneratorRuntime.awrap(this.setState({text:a,touched:!0,hasErr:!1,editing:!0}));case 7:h("#input-optionvalue-"+t).select();case 8:case"end":return s.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.text,a=t.isDragging,s=t.connectDragSource,r=t.connectDropTarget,i=t.index,o=t.isEdited,u=void 0!==o&&o,_=t.edit,c=t.undo,m=t.del,h=a?0:1,p={"float":"right",cursor:"pointer",marginLeft:"5px"};return s(r(d.default.createElement("div",{style:{opacity:h},className:"dragcard"},this.state.editing?d.default.createElement("div",{style:{width:"100%"}},d.default.createElement(l.FormGroup,{style:{marginBottom:"0px"},validationState:this.state.touched&&this.state.hasErr?"error":null},d.default.createElement(l.FormControl,{id:"input-optionvalue-"+i,style:{height:"21px",fontSize:"10px"},type:"text",value:this.state.text,onKeyPress:function(t){"13"==t.charCode&&(e.setState({touched:!0}),e.save())},onChange:function(t){e.setState({text:t.target.value,touched:!1})},onBlur:function(){e.setState({touched:!0}),e.save()},placeholder:"输入可选值"}))):d.default.createElement("span",null,n,u?d.default.createElement("span",{style:{color:"red"}}," - 已编辑"):""),!!m&&!this.state.editing&&d.default.createElement("span",{style:p,onClick:m,title:"删除",className:"rm-icon"},d.default.createElement("i",{className:"fa fa-remove"})),u&&!this.state.editing&&d.default.createElement("span",{style:p,onClick:function(){c(i)},title:"重置",className:"rm-icon"},d.default.createElement("i",{className:"fa fa-undo"})),!!_&&!this.state.editing&&d.default.createElement("span",{style:p,onClick:this.edit.bind(this),title:"编辑",className:"rm-icon"},d.default.createElement("i",{className:"fa fa-pencil"})))))}}],[{key:"propTypes",value:{connectDragSource:u.PropTypes.func.isRequired,connectDropTarget:u.PropTypes.func.isRequired,index:u.PropTypes.number.isRequired,isDragging:u.PropTypes.bool.isRequired,id:u.PropTypes.any.isRequired,text:u.PropTypes.string.isRequired,del:u.PropTypes.func.isRequired,isEdited:u.PropTypes.bool,addEditingCards:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,undo:u.PropTypes.func,move:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.DragSource)(m.CardTypes.CARD,p,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,c.DropTarget)(m.CardTypes.CARD,f,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(u.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},1762:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0&&d.default.createElement("div",null,"通过上下拖拽改变显示顺序。",d.default.createElement(_.Button,{bsStyle:"link",onClick:this.sort.bind(this)},"按字母排序")),n.length>0?n.map(function(t,n){return d.default.createElement(v.default,{key:t.id,all:e.state.cards,index:n,id:t.id,text:t.text,isEdited:t.old_text&&t.text!==t.old_text,addEditingCards:e.addEditingCards.bind(e),move:e.moveCard.bind(e),undo:e.undoCard.bind(e),edit:e.editCard.bind(e),del:e.deleteCard.bind(e,n)})}):d.default.createElement("p",null,"可选值列表为空")),d.default.createElement(_.Modal.Footer,null,d.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&i[this.state.ecode]),d.default.createElement("img",{src:g,className:o?"loading":"hide"}),d.default.createElement(_.Button,{disabled:!M.default.isEmpty(a)||o||s==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),d.default.createElement(_.Button,{bsStyle:"link",disabled:o,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,loading:u.PropTypes.bool,config:u.PropTypes.func.isRequired,data:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.DragDropContext)(h.default)(t)||t}(u.Component);t.default=D,e.exports=t.default}).call(this)}finally{}},1766:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0?d.default.createElement("span",null,"共有应用项目 ",d.default.createElement("strong",null,t.length)," 个"):d.default.createElement("span",null,"暂无项目应用")),!a&&t.length>0&&d.default.createElement(l.Table,{condensed:!0,hover:!0,responsive:!0},d.default.createElement("thead",null,d.default.createElement("tr",null,d.default.createElement("th",null,"项目名称"),d.default.createElement("th",null,"界面"))),d.default.createElement("tbody",null,m.default.map(t,function(e,t){return d.default.createElement("tr",{key:t},d.default.createElement("td",null,"active"===e.status?d.default.createElement("span",null,d.default.createElement(_.Link,{to:"/project/"+e.key},e.name)):d.default.createElement("span",null,e.name,"(已关闭)")),d.default.createElement("td",null,"active"===e.status?d.default.createElement("span",null,d.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},m.default.isEmpty(e.screens)?"-":m.default.map(e.screens,function(t,n){return d.default.createElement("li",{key:n},d.default.createElement(_.Link,{to:"/project/"+e.key+"/screen"},t.name))}))):d.default.createElement("span",null,d.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},m.default.isEmpty(e.screens)?"-":m.default.map(e.screens,function(e,t){return d.default.createElement("li",{key:t},e.name)})))))})))),d.default.createElement(l.Modal.Footer,null,d.default.createElement(l.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:u.PropTypes.func.isRequired,view:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.object.isRequired,projects:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=p,e.exports=t.default}).call(this)}finally{}},1958:function(e,t,n){try{(function(){"use strict";function e(e){return(0,u.asyncFuncCreator)({constant:"FIELD_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/field"})}})}function a(e,t){return(0,u.asyncFuncCreator)({constant:"FIELD_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/field",method:"post",data:t})}})}function s(e,t){return(0,u.asyncFuncCreator)({constant:"FIELD_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/field/"+t.id,method:"put",data:t})}})}function r(e){return{type:"FIELD_SELECT",id:e}}function i(e,t){return(0,u.asyncFuncCreator)({constant:"FIELD_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/field/"+t,method:"delete"})}})}function o(e,t){return(0,u.asyncFuncCreator)({constant:"FIELD_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/field/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=a,t.update=s,t.select=r,t.del=i,t.viewUsed=o;var u=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=field-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=field-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/group-e84984431a143be0907e.js b/public/assets/group-84397989593b11928a6a.js similarity index 99% rename from public/assets/group-e84984431a143be0907e.js rename to public/assets/group-84397989593b11928a6a.js index cc97f5225..ea0aafef6 100644 --- a/public/assets/group-e84984431a143be0907e.js +++ b/public/assets/group-84397989593b11928a6a.js @@ -1,4 +1,4 @@ webpackJsonp([15],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;ti.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var r=0;ro&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var r=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:r,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(r=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:r,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,a=(0,g.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,g.default)((n={},r(n,this._instancePrefix+"-list",s),r(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=i({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,g.default)(r({},this._instancePrefix+"-list",s));return l.default.createElement("div",i({},f,{role:"combobox","aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(v.default,i({},p,{minWidth:"5"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:F.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var r=e[n]===o[n];return r&&(u=t),r}),u!==-1)return u}for(var r=0;r-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var r=String(e[o.valueKey]),i=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(r=(0,a.default)(r)),"value"!==o.matchProp&&(i=(0,a.default)(i))),o.ignoreCase&&("label"!==o.matchProp&&(r=r.toLowerCase()),"value"!==o.matchProp&&(i=i.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&r.substr(0,t.length)===t||"value"!==o.matchProp&&i.substr(0,t.length)===t:"label"!==o.matchProp&&r.indexOf(t)>=0||"value"!==o.matchProp&&i.indexOf(t)>=0})}var r=n(22),a=o(r);e.exports=u},21:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,r=e.optionClassName,i=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=i;return c.map(function(e,i){var c=p&&p.indexOf(e)>-1,m=e===t,y=(0,a.default)(r,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return s.default.createElement(h,{className:y,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+i+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:i,ref:function(e){f(e,m)}},l(e,i))})}var r=n(10),a=o(r),i=n(1),s=o(i);e.exports=u},22:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e){return f.default.createElement(g.default,e)}function a(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function i(e){var t=e.label;return!!t}function s(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:a,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=C,C.propTypes=g,C.defaultProps=O,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var r=Object.assign||function(e){for(var t=1;tu&&s>a||(e.moveCard(o,u),t.getItem().index=u)}}},m=function(e){function t(){u(this,n),i(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}r(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,o=e.connectDragSource,u=e.connectDropTarget,r=e.deleteCard,a=n?0:1,i={"float":"right",cursor:"pointer"};return o(u(l.default.createElement("div",{style:{opacity:a},className:"dragcard"},t,!!r&&l.default.createElement("span",{style:i,onClick:r,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,id:s.PropTypes.any.isRequired,text:s.PropTypes.string.isRequired,deleteCard:s.PropTypes.func,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(d.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(d.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},284:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;ts||u<=0)&&(u=1);for(var l=[],p=0;ps)break;l.push(f)}return c.default.createElement("div",{style:{marginTop:"15px",height:"50px"}},c.default.createElement("div",null,c.default.createElement("div",{className:"col-md-6"},c.default.createElement("span",null,d.default.add((u-1)*r,1),"-",u*r>=n?n:u*r," 共",n,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6"},s>1&&c.default.createElement("ul",{className:"pagination",style:{"float":"right",marginTop:"0px"}},u-i>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),u-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,u-1),title:"前页"},"<")),d.default.map(l,function(t,n){return c.default.createElement("li",{key:n,className:t===u?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),u1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,d.default.add(u,1)),title:"后页"},">")),s-i>u&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>"))))))}}],[{key:"propTypes",value:{query:l.PropTypes.object,refresh:l.PropTypes.func,total:l.PropTypes.number.isRequired,curPage:l.PropTypes.number,sizePerPage:l.PropTypes.number,paginationSize:l.PropTypes.number},enumerable:!0}]),t}(l.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},1767:function(e,t,n){try{(function(){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e){return{actions:(0,h.bindActionCreators)(g,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&(j={mode:"checkbox",selected:this.state.selectedIds,onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)});var I=!1;return v.default.map(o,function(t){v.default.indexOf(e.state.selectedIds,t.id)!==-1&&(t.directory&&"self"!=t.directory||(I=!0))}),l.default.createElement("div",null,l.default.createElement("div",{style:{marginTop:"5px",height:"40px"}},l.default.createElement(d.FormGroup,null,l.default.createElement("span",{style:{"float":"right",width:"18%"}},l.default.createElement(h.default,{simpleValue:!0,placeholder:"用户目录",value:this.state.directory,onChange:this.directoryChange.bind(this),options:v.default.map(D.directories||[],function(e){return{label:e.name,value:e.id}})})),l.default.createElement("span",{style:{"float":"right",width:"20%",marginRight:"10px"}},l.default.createElement(d.FormControl,{type:"text",id:"gname",style:{height:"37px"},value:this.state.name,onChange:function(t){e.setState({name:t.target.value})},placeholder:"组名查询..."})),this.state.selectedIds.length>0&&l.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},l.default.createElement(d.DropdownButton,{title:"操作",onSelect:this.multiOperateSelect.bind(this)},!I&&l.default.createElement(d.MenuItem,{disabled:!0,eventKey:"null"},"无"),I&&l.default.createElement(d.MenuItem,{eventKey:"del"},"删除"))),l.default.createElement("span",{style:{"float":"left",marginRight:"20px"}},l.default.createElement(d.Button,{onClick:function(){e.setState({createModalShow:!0})},disabled:a},l.default.createElement("i",{className:"fa fa-plus"})," 新建组")))),l.default.createElement("div",null,l.default.createElement("div",{className:"info-col"},l.default.createElement("div",{className:"info-icon"},l.default.createElement("i",{className:"fa fa-info-circle"})),l.default.createElement("div",{className:"info-content"},l.default.createElement("span",null,"从外部用户目录同步过来的用户组,不能对其做任何操作。"))),l.default.createElement(p.BootstrapTable,{data:M,bordered:!1,hover:!0,options:N,trClassName:"tr-middle",selectRow:j},l.default.createElement(p.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(p.TableHeaderColumn,{dataField:"name"},"用户组名"),l.default.createElement(p.TableHeaderColumn,{dataField:"count"},"用户个数"),l.default.createElement(p.TableHeaderColumn,{dataField:"directory"},"目录"),l.default.createElement(p.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.editModalShow&&l.default.createElement(O,{show:!0,close:this.editModalClose,update:b,data:u,i18n:n}),this.state.createModalShow&&l.default.createElement(E,{show:!0,close:this.createModalClose,create:f,i18n:n}),this.state.usersConfigModalShow&&l.default.createElement(C,{show:!0,close:this.usersConfigModalClose,config:b,data:u,i18n:n}),this.state.operateNotifyShow&&l.default.createElement(F,{show:!0,close:this.operateNotifyClose,data:u,operate:this.state.operate,del:m,i18n:n}),this.state.multiOperateNotifyShow&&l.default.createElement(w,{show:!0,close:this.multiOperateNotifyClose,collection:o,multiDel:y,ids:this.state.selectedIds,cancelSelected:this.cancelSelected.bind(this),operate:this.state.multiOperate,loading:r,i18n:n})),!a&&D.total&&D.total>0?l.default.createElement(g,{total:D.total||0,curPage:A.page||1,sizePerPage:D.sizePerPage||30,paginationSize:4,query:A,refresh:s}):"")}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object,collection:s.PropTypes.array.isRequired,selectedItem:s.PropTypes.object.isRequired,query:s.PropTypes.object.isRequired,loading:s.PropTypes.bool.isRequired,itemLoading:s.PropTypes.bool.isRequired,indexLoading:s.PropTypes.bool.isRequired,index:s.PropTypes.func.isRequired,refresh:s.PropTypes.func.isRequired,select:s.PropTypes.func.isRequired,create:s.PropTypes.func.isRequired,update:s.PropTypes.func.isRequired,entry:s.PropTypes.func.isRequired,del:s.PropTypes.func.isRequired,multiDel:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=D,e.exports=t.default}).call(this)}finally{}},1771:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n-1||e.state.users.unshift({id:t.id,name:t.nameAndEmail})}),this.setState({users:this.state.users,addUsers:[],enableAdd:!1})}},{key:"handleChange",value:function(e){e.length>0?this.setState({addUsers:e,enableAdd:!0}):this.setState({addUsrs:[],enableAdd:!1})}},{key:"searchUsers",value:function(e){var t,n;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(e=e.toLowerCase()){o.next=3;break}return o.abrupt("return",{options:[]});case 3:return t=new g.default,o.next=6,regeneratorRuntime.awrap(t.request({url:"/user/search?s="+e}));case 6:return n=o.sent,o.abrupt("return",{options:y.default.map(n.data,function(e){return e.nameAndEmail=e.name+"("+e.email+")",e})});case 8:case"end":return o.stop()}},null,this)}},{key:"handleUserSelectChange",value:function(e){this.setState({addUsers:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.users,o=t.addUsers,u=this.props,r=u.i18n.errMsg,a=u.loading;return y.default.map(n,function(e,t){e.name||(n[t].name=e.first_name+"("+e.email+")")}),l.default.createElement(c.Modal,{show:!0,onHide:this.cancel.bind(this),bsSize:"large",backdrop:"static","aria-labelledby":"contained-modal-title-sm"},l.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},l.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"用户配置 - "+this.props.data.name)),l.default.createElement(c.Modal.Body,{style:{height:"420px",overflow:"auto"}},l.default.createElement(c.Form,{horizontal:!0},l.default.createElement(c.FormGroup,{controlId:"formControlsText"},l.default.createElement(c.Col,{sm:6},l.default.createElement(h.default.Async,{multi:!0,clearable:!1,options:[],value:o,onChange:this.handleUserSelectChange.bind(this),valueKey:"id",labelKey:"nameAndEmail",loadOptions:this.searchUsers,placeholder:"请输入用户"}),l.default.createElement(c.Button,{style:{"float":"right",marginTop:"15px"},onClick:this.add.bind(this)},"添加至用户列表 >> ")),l.default.createElement(c.Col,{sm:6},n.length>0&&l.default.createElement("div",{style:{marginBottom:"8px"}},"用户列表 - ",n.length),n.length>0?n.map(function(t,n){return l.default.createElement("div",{className:"user-item",key:n},t.name,l.default.createElement("span",{style:{"float":"right",cursor:"pointer"},onClick:e.deleteUser.bind(e,n)},l.default.createElement("i",{className:"fa fa-remove"})))}):l.default.createElement("p",null,"用户列表为空。"))))),l.default.createElement(c.Modal.Footer,null,l.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&r[this.state.ecode]),l.default.createElement("img",{src:E,className:a?"loading":"hide"}),l.default.createElement(c.Button,{disabled:a,onClick:this.save.bind(this)},"确定"),l.default.createElement(c.Button,{bsStyle:"link",disabled:a,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool,config:s.PropTypes.func.isRequired,data:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=O,e.exports=t.default}).call(this)}finally{}},1959:function(e,t,n){try{(function(){"use strict";function e(e){return(0,s.asyncFuncCreator)({constant:"GROUP_INDEX",promise:function(t){return t.request({url:"/group"+(e?"?"+e:"")})}})}function o(e){return(0,s.asyncFuncCreator)({constant:"GROUP_CREATE",promise:function(t){return t.request({url:"/group",method:"post",data:e})}})}function u(e,t){return(0,s.asyncFuncCreator)({constant:"GROUP_UPDATE",promise:function(n){return n.request({url:"/group/"+e,method:"put",data:t})}})}function r(e){return(0,s.asyncFuncCreator)({constant:"GROUP_DELETE",id:e,promise:function(t){return t.request({url:"/group/"+e,method:"delete"})}})}function a(e){return{type:"GROUP_SELECT",id:e}}function i(e){return(0,s.asyncFuncCreator)({constant:"GROUP_MULTI_DELETE",ids:e,promise:function(t){return t.request({url:"/group/batch/delete",method:"post",data:{ids:e}})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=u,t.del=r,t.select=a,t.multiDel=i;var s=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=group-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=group-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/issue-e84984431a143be0907e.js b/public/assets/issue-84397989593b11928a6a.js similarity index 99% rename from public/assets/issue-e84984431a143be0907e.js rename to public/assets/issue-84397989593b11928a6a.js index a8935d64c..b773e7e28 100644 --- a/public/assets/issue-e84984431a143be0907e.js +++ b/public/assets/issue-84397989593b11928a6a.js @@ -19,4 +19,4 @@ var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writa id:"contained-modal-title-la"},o?o:"过滤器管理")),u.default.createElement(d.Modal.Body,{style:{maxHeight:"420px",overflow:"auto"}},u.default.createElement(d.Form,{horizontal:!0},n.length>0&&u.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变过滤器显示顺序。"),n.length>0?n.map(function(t,n){return u.default.createElement(y.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:e.deleteCard.bind(e,n)})}):u.default.createElement("p",null,"暂无自定义过滤器。"))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!s&&i[this.state.ecode]),u.default.createElement("img",{src:M,className:s?"loading":"hide"}),u.default.createElement(d.Button,{disabled:s||a==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:s,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,title:l.PropTypes.string,loading:l.PropTypes.bool,config:l.PropTypes.func.isRequired,filters:l.PropTypes.array.isRequired,close:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.DragDropContext)(m.default)(t)||t}(l.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},1774:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;nr&&l>s||(e.moveCard(a,r),t.getItem().index=r)}}},_=function(e){function t(){r(this,n),o(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}i(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.index,n=e.text,a=e.width,r=e.editWidth,i=e.isDragging,s=e.connectDragSource,o=e.connectDropTarget,l=e.deleteCard,c=i?0:1;return s(o(u.default.createElement("div",{style:{opacity:c},className:"dragcard"},u.default.createElement("span",null,n),!!l&&u.default.createElement("span",{className:"comments-button",style:{"float":"right"},onClick:l,title:"删除"},u.default.createElement("i",{className:"fa fa-remove"})),u.default.createElement("span",{style:{width:"75px",marginRight:"25px","float":"right"}},u.default.createElement(d.FormGroup,{style:{marginBottom:"0px"}},u.default.createElement(d.FormControl,{style:{height:"21px",fontSize:"10px"},type:"text",value:a,onChange:function(e){var n=e.target.value.replace(/[^0-9]/gi,"");r(t,n)},placeholder:"宽度(px)"}))))))}}],[{key:"propTypes",value:{connectDragSource:l.PropTypes.func.isRequired,connectDropTarget:l.PropTypes.func.isRequired,index:l.PropTypes.number.isRequired,isDragging:l.PropTypes.bool.isRequired,id:l.PropTypes.any.isRequired,text:l.PropTypes.string.isRequired,width:l.PropTypes.string.isRequired,editWidth:l.PropTypes.func.isRequired,deleteCard:l.PropTypes.func.isRequired,moveCard:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(m.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(m.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(l.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1775:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n>"),u.default.createElement("div",{style:{"float":"right",marginTop:"15px"}},"注意:",u.default.createElement("br",null),"1. 问题列表除前三列(编号、类型和主题)外,其它列支持动态配置。",u.default.createElement("br",null),"2. 通过上下拖拽改变列的显示顺序,修改文本框数值(单位:px)调整列的显示宽度。")),u.default.createElement(d.Col,{sm:6},n.length>0?n.map(function(t,n){return u.default.createElement(y.default,{key:t.id,index:n,id:t.id,text:t.text,width:t.width,moveCard:e.moveCard,editWidth:e.editWidth.bind(e),deleteCard:e.deleteCard.bind(e,n)})}):u.default.createElement("p",null,"显示列表为空。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&s[this.state.ecode]),u.default.createElement("img",{src:w,className:o?"loading":"hide"}),l.permissions&&l.permissions.indexOf("manage_project")!==-1&&u.default.createElement(d.Checkbox,{disabled:o,checked:this.state.saveForProject,onClick:function(){e.setState({saveForProject:!e.state.saveForProject})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"保存作为该项目默认显示列"),u.default.createElement(d.Button,{disabled:o||a==JSON.stringify(n)&&!this.state.saveForProject,onClick:this.save.bind(this)},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:o,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,loading:l.PropTypes.bool,set:l.PropTypes.func.isRequired,data:l.PropTypes.array.isRequired,options:l.PropTypes.object.isRequired,close:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.DragDropContext)(m.default)(t)||t}(l.Component);t.default=L,e.exports=t.default}).call(this)}finally{}},1776:function(e,t,n){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e){return{actions:(0,f.bindActionCreators)(v,e),wfActions:(0,f.bindActionCreators)(b,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t1?n(m.default.extend(r,{page:void 0})):a(r):"set_columns"===e?this.setState({setColumnsShow:!0}):"reset_columns"===e?this.setState({resetColumnsShow:!0}):"import"===e?this.setState({importModalShow:!0}):"export"===e&&this.setState({exportConfigShow:!0})}},{key:"selectFilter",value:function(e){var t=this.props,n=t.refresh,a=t.options,r=void 0===a?{}:a;if("filterConfig"==e)this.setState({filterConfigShow:!0});else if("saveFilter"==e)this.setState({saveFilterShow:!0});else if("resetFilters"==e)this.setState({resetFiltersShow:!0});else if("all"==e)n({});else if("todos"==e)n({assignee:"me",resolution:"Unresolved"});else if("myreports"==e)n({reporter:"me"});else if("mywatches"==e)n({watcher:"me"});else{var i=r.filters||[],s=m.default.find(i,{id:e})||{};n(s.query||{})}}},{key:"exportExcel",value:function n(e){var t=this.props,n=t.exportExcel,a=t.query;n(a,e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,a=t.index,r=t.create,i=t.addLabels,s=t.saveFilter,o=t.resetFilters,l=t.configFilters,c=t.setColumns,p=t.resetColumns,w=t.imports,L=t.indexLoading,E=t.optionsLoading,T=t.filterLoading,S=t.columnsLoading,Y=t.options,D=void 0===Y?{}:Y,x=t.closeDetailBar,C=t.refresh,P=t.query,O=t.loading,j=t.project,F=m.default.reject(m.default.reject(D.types||[],{type:"subtask"})||[],{disabled:!0})||[],R=E?"":(0,f.parseQuery)(P,D);return u.default.createElement("div",null,u.default.createElement("div",{style:{marginTop:"5px"}},u.default.createElement(d.DropdownButton,{className:"create-btn",id:"filters",title:"过滤器",onSelect:this.selectFilter.bind(this)},D.filters&&D.filters.length>0?m.default.map(D.filters||[],function(e){return u.default.createElement(d.MenuItem,{eventKey:e.id,key:e.id},e.name)}):u.default.createElement(d.MenuItem,{disabled:!0},"无"),u.default.createElement(d.MenuItem,{divider:!0}),u.default.createElement(d.MenuItem,{eventKey:"saveFilter"},"保存当前检索"),u.default.createElement(d.MenuItem,{eventKey:"filterConfig"},"过滤器管理"),u.default.createElement(d.MenuItem,{eventKey:"resetFilters"},"过滤器重置")),u.default.createElement(d.Button,{className:"create-btn",disabled:E,onClick:function(){e.state.searchShow||x(),e.setState({searchShow:!e.state.searchShow})}},"检索 ",u.default.createElement("i",{className:this.state.searchShow?"fa fa-angle-double-up":"fa fa-angle-double-down"})),D.permissions&&D.permissions.indexOf("create_issue")!==-1&&u.default.createElement(d.Button,{className:"create-btn",bsStyle:"primary",disabled:F.length<=0||E,onClick:function(){e.setState({createModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 创建"),u.default.createElement("div",{style:{marginTop:"8px","float":"right"}},u.default.createElement(d.DropdownButton,{id:"more",pullRight:!0,style:{"float":"right"},title:"更多",onSelect:this.operateSelect.bind(this)},u.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),u.default.createElement(d.MenuItem,{divider:!0}),u.default.createElement(d.MenuItem,{eventKey:"set_columns"},"显示列配置"),u.default.createElement(d.MenuItem,{eventKey:"reset_columns"},"显示列重置"),D.permissions&&D.permissions.indexOf("create_issue")!==-1&&u.default.createElement(d.MenuItem,{divider:!0}),D.permissions&&D.permissions.indexOf("create_issue")!==-1&&u.default.createElement(d.MenuItem,{eventKey:"import"},"导入"),u.default.createElement(d.MenuItem,{divider:!0}),u.default.createElement(d.MenuItem,{eventKey:"export"},"导出"))),R&&u.default.createElement("div",{className:"cond-bar"},u.default.createElement("div",{className:"cond-contents",title:R},u.default.createElement("b",null,"检索条件"),":",R),u.default.createElement("div",{className:"remove-icon",onClick:function(){C({})},title:"清空当前检索"},u.default.createElement("i",{className:"fa fa-remove"})),u.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},u.default.createElement("i",{className:"fa fa-save"})))),this.state.filterConfigShow&&u.default.createElement(v,{show:!0,close:this.filterConfigModalClose,loading:T,config:l,filters:D.filters||[],i18n:n}),u.default.createElement(f.IssueFilterList,{values:P,searchShow:this.state.searchShow,indexLoading:L,options:D,onChange:function(e){C(m.default.assign({},e,{page:void 0}))}}),this.state.createModalShow&&u.default.createElement(h,{show:!0,close:this.createModalClose,options:D,create:r,addLabels:i,loading:O,project:j,i18n:n}),this.state.saveFilterShow&&u.default.createElement(_,{show:!0,close:this.saveFilterModalClose,filters:D.filters||[],create:s,query:P,loading:T,sqlTxt:R,i18n:n}),this.state.resetFiltersShow&&u.default.createElement(y,{show:!0,close:this.resetFiltersNotifyClose,reset:o,loading:T,i18n:n}),this.state.setColumnsShow&&u.default.createElement(b,{show:!0,close:this.setColumnsNotifyClose,options:D,data:D.display_columns||[],set:c,loading:S,i18n:n}),this.state.resetColumnsShow&&u.default.createElement(g,{show:!0,close:this.resetColumnsNotifyClose,options:D,reset:p,loading:S,i18n:n}),this.state.exportConfigShow&&u.default.createElement(M,{show:!0,close:this.exportConfigModalClose,options:D,exportExcel:this.exportExcel.bind(this),i18n:n}),this.state.importModalShow&&u.default.createElement(k,{show:!0,close:this.importModalClose,imports:w,loading:O,index:a,i18n:n}))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,create:l.PropTypes.func.isRequired,addLabels:l.PropTypes.func.isRequired,saveFilter:l.PropTypes.func.isRequired,resetFilters:l.PropTypes.func.isRequired,setColumns:l.PropTypes.func.isRequired,resetColumns:l.PropTypes.func.isRequired,configFilters:l.PropTypes.func.isRequired,closeDetailBar:l.PropTypes.func,index:l.PropTypes.func,refresh:l.PropTypes.func,exportExcel:l.PropTypes.func,imports:l.PropTypes.func,getOptions:l.PropTypes.func,query:l.PropTypes.object,project:l.PropTypes.object,options:l.PropTypes.object,loading:l.PropTypes.bool.isRequired,optionsLoading:l.PropTypes.bool.isRequired,filterLoading:l.PropTypes.bool.isRequired,columnsLoading:l.PropTypes.bool.isRequired,indexLoading:l.PropTypes.bool.isRequired},enumerable:!0}]),t}(l.Component));t.default=w,e.exports=t.default}).call(this)}finally{}},1779:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0)){u.next=18;break}return this.state.barShow=!0,u.next=16,regeneratorRuntime.awrap(o(s[0].id));case 16:r=u.sent,0===r&&l();case 18:case"end":return u.stop()}},null,this)}},{key:"componentWillReceiveProps",value:function(e){var t=e.query||{},n=this.props,a=n.index,r=n.query;f.default.isEqual(t,r)||a(t)}},{key:"delNotifyClose",value:function(){this.setState({delNotifyShow:!1})}},{key:"operateSelect",value:function(e){var t,n,a,r,i,s;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:t=this.props,n=t.watch,a=t.collection,r=this.state.hoverRowId,i=f.default.find(a,{id:r})||{},this.setState({selectedItem:i}),s=0,"view"===e?this.show(r):"del"===e?this.setState({delNotifyShow:!0}):"assign"===e?this.setState({assignModalShow:!0}):"setLabels"===e?this.setState({setLabelsModalShow:!0}):"worklog"===e?this.setState({addWorklogShow:!0}):"edit"===e?this.setState({editModalShow:!0}):"createSubtask"===e?this.setState({createSubtaskModalShow:!0}):"convert2Subtask"===e?this.setState({convertType2ModalShow:!0}):"convert2Standard"===e?this.setState({convertTypeModalShow:!0}):"move"===e?this.setState({moveModalShow:!0}):"share"===e?this.setState({shareModalShow:!0}):"reset"===e?this.setState({resetModalShow:!0}):"copy"===e?this.setState({copyModalShow:!0}):"watch"===e&&this.watch(i.id,!i.watching);case 8:case"end":return o.stop()}},null,this)}},{key:"watch",value:function n(e,t){var n,a;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return n=this.props.watch,r.next=3,regeneratorRuntime.awrap(n(e,t));case 3:a=r.sent,0===a?t?h.notify.show("关注成功。","success",2e3):h.notify.show("已取消关注。","success",2e3):t?h.notify.show("关注失败。","error",2e3):h.notify.show("取消失败。","error",2e3);case 5:case"end":return r.stop()}},null,this)}},{key:"onRowMouseOver",value:function(e){e.id!==this.state.hoverRowId&&this.setState({operateShow:!0,hoverRowId:e.id})}},{key:"onMouseLeave",value:function(){this.setState({operateShow:!1,hoverRowId:""})}},{key:"orderBy",value:function(e){var t=this.props,n=t.query,a=void 0===n?{}:n,r=t.refresh;if(f.default.isEmpty(a)||!a.orderBy)return void r(f.default.assign(a,{orderBy:e+" asc",page:void 0}));var i=[],s=a.orderBy.toLowerCase().split(","),o=f.default.findIndex(s,function(t){return f.default.startsWith(f.default.trim(t),e)});o===-1?i.push(e+" asc"):i.push(e+(f.default.endsWith(s[o],"desc")?" asc":" desc")),f.default.map(s,function(e,t){o!==t&&i.push(e)}),r(f.default.assign(a,{orderBy:i.join(","),page:void 0}))}},{key:"show",value:function a(e){var t,a,n,r;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return this.setState({barShow:!0}),t=this.props,a=t.show,n=t.record,i.next=6,regeneratorRuntime.awrap(a(e));case 6:r=i.sent,0==r&&n();case 8:case"end":return i.stop()}},null,this)}},{key:"componentDidUpdate",value:function(){var e=this.props.itemData,t=void 0===e?{}:e;this.state.barShow&&_(".react-bs-container-body table tr").each(function(e){t.id===_(this).find("td:first").text()?_(this).css("background-color","#eee"):_(this).css("background-color","")})}},{key:"closeDetail",value:function(){this.setState({barShow:!1}),_(".react-bs-container-body table tr").each(function(e){_(this).css("background-color","")});var e=this.props.cleanRecord;e()}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,a=t.layout,r=t.collection,i=t.itemData,s=void 0===i?{}:i,o=t.loading,l=t.indexLoading,m=t.itemLoading,h=t.options,_=void 0===h?{}:h,P=t.show,O=t.record,j=t.forward,F=t.visitedIndex,R=t.visitedCollection,H=t.del,A=t.edit,N=t.create,I=t.setAssignee,W=t.setLabels,q=t.addLabels,B=t.query,z=t.refresh,V=t.project,U=t.delFile,G=t.addFile,K=t.fileLoading,J=t.wfCollection,Z=t.wfLoading,X=t.viewWorkflow,$=t.indexComments,Q=t.sortComments,ee=t.commentsCollection,te=t.commentsIndexLoading,ne=t.commentsLoading,ae=t.commentsLoaded,re=t.addComments,ie=t.editComments,se=t.delComments,oe=t.commentsItemLoading,le=t.indexWorklog,ue=t.worklogSort,de=t.sortWorklog,ce=t.worklogCollection,pe=t.worklogIndexLoading,me=t.worklogLoading,fe=t.worklogLoaded,he=t.addWorklog,_e=t.editWorklog,ye=t.delWorklog,ve=t.indexHistory,ge=t.sortHistory,be=t.historyCollection,Me=t.historyIndexLoading,ke=t.historyLoaded,we=t.indexGitCommits,Le=t.sortGitCommits,Ee=t.gitCommitsCollection,Te=t.gitCommitsIndexLoading,Se=t.gitCommitsLoaded,Ye=t.createLink,De=t.delLink,xe=t.linkLoading,Ce=t.watch,Pe=t.copy,Oe=t.move,je=t.convert,Fe=t.resetState,Re=t.doAction,He=t.user,Ae=this.state,Ne=Ae.operateShow,Ie=Ae.hoverRowId,We=Ae.selectedItem,qe=u.default.createElement("span",null,u.default.createElement("i",{className:"fa fa-cog"})),Be={whiteSpace:"pre-wrap",overflowWrap:"break-word"},ze=[];f.default.forEach(_.display_columns||[],function(e){var t=f.default.find(_.fields||[],{key:e.key});if(t&&"File"!=t.type){var n=f.default.clone(t);n.width=e.width||"100",n.sortKey=t.key,["MultiVersion","MultiSelect","MultiUser","CheckboxGroup"].indexOf(t.type)!==-1?n.sortKey="":"TimeTracking"===t.type&&(n.sortKey=t.key+"_m"),ze.push(n)}});var Ve={};if(!f.default.isEmpty(B)&&B.orderBy){var Ue=f.default.trim(B.orderBy.toLowerCase()).split(",").shift(),Ge=Ue.split(" ");Ve.field=Ge[0],Ve.order=f.default.trim(Ge[1]||"asc")}var Ke=[];f.default.map(_.types,function(e){"subtask"!=e.type||e.disabled||Ke.push(e)});var Je=[];f.default.forEach(r,function(t){var n={};n.id=t.id,n.type=u.default.createElement("span",{className:"type-abb",title:f.default.findIndex(_.types,{id:t.type})!==-1?f.default.find(_.types,{id:t.type}).name:""},f.default.findIndex(_.types,{id:t.type})!==-1?f.default.find(_.types,{id:t.type}).abb:"-"),n.no=u.default.createElement("a",{href:"#",onClick:function(n){n.preventDefault(),e.show(t.id)}},t.no),n.name=u.default.createElement("div",null,t.parent&&u.default.createElement("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.parent.title?t.parent.title+" / ":"- / "),u.default.createElement("a",{href:"#",onClick:function(n){n.preventDefault(),e.show(t.id)},style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.title?t.title:"-"),t.watching&&u.default.createElement("span",{title:"点击取消关注",style:{marginLeft:"8px",color:"#FF9900",cursor:"pointer"},onClick:function(){e.watch(t.id,!1)}},u.default.createElement("i",{className:"fa fa-eye"})),u.default.createElement("span",{className:"table-td-issue-desc"},t.reporter&&u.default.createElement("span",{style:{marginRight:"7px",marginTop:"2px","float":"left"}},t.reporter.name+" "+y.unix(t.created_at).format("YY/MM/DD HH:mm")),f.default.map(t.labels||[],function(e,t){return u.default.createElement(p.Link,{to:"/project/"+V.key+"/issue?labels="+e,key:t},u.default.createElement("span",{title:e,className:"issue-label"},e))}))),n.operation=u.default.createElement("div",null,Ne&&Ie===t.id&&!m&&u.default.createElement(c.DropdownButton,{id:t.id,pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},title:qe,onSelect:e.operateSelect.bind(e)},u.default.createElement(c.MenuItem,{eventKey:"view"},"查看"),_.permissions&&_.permissions.indexOf("edit_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"edit"},"编辑"),_.permissions&&_.permissions.indexOf("assign_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"assign"},"分配"),_.permissions&&_.permissions.indexOf("edit_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"setLabels"},"设置标签"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"watch"},t.watching?"取消关注":"关注"),u.default.createElement(c.MenuItem,{eventKey:"share"},"分享链接"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"worklog"},"添加工作日志"),!t.parent_id&&Ke.length>0&&_.permissions&&(_.permissions.indexOf("create_issue")!==-1||_.permissions.indexOf("edit_issue")!==-1&&!t.hasSubtasks)&&u.default.createElement(c.MenuItem,{divider:!0}),!t.parent_id&&Ke.length>0&&_.permissions&&_.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!t.hasSubtasks&&!t.parent_id&&Ke.length>0&&_.permissions&&_.permissions.indexOf("edit_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),t.parent_id&&_.permissions&&_.permissions.indexOf("edit_issue")!==-1&&u.default.createElement(c.MenuItem,{divider:!0}),t.parent_id&&_.permissions&&_.permissions.indexOf("edit_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),_.permissions&&(_.permissions.indexOf("create_issue")!==-1||_.permissions.indexOf("move_issue")!==-1&&t.parent_id)&&u.default.createElement(c.MenuItem,{divider:!0}),_.permissions&&_.permissions.indexOf("move_issue")!==-1&&t.parent_id&&u.default.createElement(c.MenuItem,{eventKey:"move"},"移动"),_.permissions&&_.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"copy"},"复制"),_.permissions&&f.default.intersection(_.permissions,["reset_issue","delete_issue"]).length>0&&u.default.createElement(c.MenuItem,{divider:!0}),_.permissions&&_.permissions.indexOf("reset_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"reset"},"重置状态"),_.permissions&&_.permissions.indexOf("delete_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"del"},"删除"))),f.default.forEach(ze,function(e){if(!t[e.key])return void(n[e.key]="-");if("priority"===e.key){var a=f.default.findIndex(_.priorities,{id:t.priority}),r={marginLeft:"14px"};a!==-1&&(r.backgroundColor=_.priorities[a].color),n.priority=a!==-1?u.default.createElement("div",{className:"circle",style:r,title:_.priorities[a].name}):u.default.createElement("div",{style:r},"-")}else if("state"===e.key){var i=f.default.findIndex(_.states,{id:t.state}),s="";i!==-1&&(s="state-"+(_.states[i].category||"")+"-label"),n.state=i!==-1?u.default.createElement("span",{className:s},_.states[i].name||"-"):"-"}else if("TextArea"===e.type){var o=t[e.key]?f.default.escape(t[e.key]).replace(/(\r\n)|(\n)/g,"
"):"-";n[e.key]=u.default.createElement("span",{style:Be,dangerouslySetInnerHTML:{__html:o}})}else{var o="";"sprints"===e.key?o=t.sprints&&t.sprints.length>0?t.sprints.join(","):"-":"SingleUser"===e.type?o=t[e.key].name:"MultiUser"===e.type?o=f.default.map(t[e.key],function(e){return e.name}).join(","):["Select","RadioGroup","SingleVersion"].indexOf(e.type)!==-1?o=f.default.findIndex(e.optionValues||[],{id:t[e.key]})===-1?"-":f.default.find(e.optionValues,{id:t[e.key]}).name:["MultiSelect","CheckboxGroup","MultiVersion"].indexOf(e.type)!==-1?!function(){var n=f.default.isArray(t[e.key])?t[e.key]:t[e.key].split(","),a=[];f.default.forEach(n,function(t){var n=f.default.findIndex(e.optionValues||[],{id:t})!==-1?f.default.find(e.optionValues,{id:t}).name:"";n&&a.push(n)}),o=a.length>0?f.default.uniq(a).join(","):"-"}():o="DatePicker"===e.type?y.unix(t[e.key]).format("YYYY/MM/DD"):"DateTimePicker"===e.type?y.unix(t[e.key]).format("YYYY/MM/DD HH:mm"):t[e.key],n[e.key]=u.default.createElement("span",{style:Be},o)}}),Je.push(n)});var Ze={};return l?Ze.noDataText=u.default.createElement("div",null,u.default.createElement("img",{src:b,className:"loading"})):Ze.noDataText="暂无数据显示。",Ze.onRowMouseOver=this.onRowMouseOver.bind(this),u.default.createElement("div",null,u.default.createElement(d.BootstrapTable,{data:Je,bordered:!1,hover:!0,options:Ze,trClassName:"tr-top",headerStyle:{overflow:"unset"}},u.default.createElement(d.TableHeaderColumn,{dataField:"id",hidden:!0,isKey:!0},"ID"),u.default.createElement(d.TableHeaderColumn,{width:"50",dataField:"type"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"type")},"类型","type"===Ve.field&&("desc"===Ve.order?u.default.createElement("i",{className:"fa fa-arrow-down"}):u.default.createElement("i",{className:"fa fa-arrow-up"})))),u.default.createElement(d.TableHeaderColumn,{dataField:"no",width:"50"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"no")},"NO","no"===Ve.field&&("desc"===Ve.order?u.default.createElement("i",{className:"fa fa-arrow-down"}):u.default.createElement("i",{className:"fa fa-arrow-up"})))),u.default.createElement(d.TableHeaderColumn,{dataField:"name"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"title")},"主题","title"===Ve.field&&("desc"===Ve.order?u.default.createElement("i",{className:"fa fa-arrow-down"}):u.default.createElement("i",{className:"fa fa-arrow-up"})))),f.default.map(ze,function(t,n){return u.default.createElement(d.TableHeaderColumn,{width:t.width||"100",dataField:t.key,key:n},u.default.createElement("span",{className:"table-header",onClick:t.sortKey?e.orderBy.bind(e,t.sortKey):null},t.name,Ve.field===t.sortKey&&("desc"===Ve.order?u.default.createElement("i",{className:"fa fa-arrow-down"}):u.default.createElement("i",{className:"fa fa-arrow-up"}))))}),u.default.createElement(d.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.barShow&&u.default.createElement(g,{i18n:n,layout:a,create:N,edit:A,del:H,setAssignee:I,setLabels:W,addLabels:q,close:this.closeDetail,options:_,data:s,record:O,forward:j,visitedIndex:F,visitedCollection:R,issueCollection:r,show:P,itemLoading:m,loading:o,fileLoading:K,project:V,delFile:U,addFile:G,wfCollection:J,wfLoading:Z,viewWorkflow:X,indexComments:$,sortComments:Q,commentsCollection:ee,commentsIndexLoading:te,commentsLoading:ne,commentsItemLoading:oe,commentsLoaded:ae,addComments:re,editComments:ie,delComments:se,indexWorklog:le,worklogSort:ue,sortWorklog:de,worklogCollection:ce,worklogIndexLoading:pe,worklogLoading:me,worklogLoaded:fe,addWorklog:he,editWorklog:_e,delWorklog:ye,indexHistory:ve,sortHistory:ge,historyCollection:be,historyIndexLoading:Me,historyLoaded:ke,indexGitCommits:we,sortGitCommits:Le,gitCommitsCollection:Ee,gitCommitsIndexLoading:Te,gitCommitsLoaded:Se,linkLoading:xe,createLink:Ye,delLink:De,watch:Ce,copy:Pe,move:Oe,convert:je,resetState:Fe,doAction:Re,user:He}),!l&&_.total&&_.total>0?u.default.createElement(M,{total:_.total||0,curPage:B.page?B.page-0:1,sizePerPage:_.sizePerPage||50,paginationSize:4,query:B,refresh:z}):"",this.state.delNotifyShow&&u.default.createElement(v,{show:!0,close:this.delNotifyClose,data:We,loading:m,del:H,i18n:n}),this.state.addWorklogShow&&u.default.createElement(k,{show:!0,issue:We,close:function(){e.setState({addWorklogShow:!1})},loading:me,add:he,i18n:n}),this.state.editModalShow&&u.default.createElement(w,{show:!0,close:function(){e.setState({editModalShow:!1})},options:_,addLabels:q,loading:o,project:V,edit:A,isSubtask:We.parent_id&&!0,data:We,i18n:n}),this.state.createSubtaskModalShow&&u.default.createElement(w,{show:!0,close:function(){e.setState({createSubtaskModalShow:!1})},options:_,create:N,loading:o,project:V,parent_id:We.id,isSubtask:!0,i18n:n}),this.state.convertTypeModalShow&&u.default.createElement(L,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:_,convert:je,loading:o,issue:We,i18n:n}),this.state.convertType2ModalShow&&u.default.createElement(E,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:_,project:V,convert:je,loading:o,issue:We,i18n:n}),this.state.moveModalShow&&u.default.createElement(T,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:_,project:V,move:Oe,loading:o,issue:We,i18n:n}),this.state.assignModalShow&&u.default.createElement(S,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:_,setAssignee:I,issue:We,i18n:n}),this.state.setLabelsModalShow&&u.default.createElement(Y,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:_,setLabels:W,addLabels:q,issue:We,i18n:n}),this.state.shareModalShow&&u.default.createElement(D,{show:!0,close:function(){e.setState({shareModalShow:!1})},project:V,issue:We}),this.state.resetModalShow&&u.default.createElement(x,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:_,resetState:Fe,issue:We,i18n:n}),this.state.copyModalShow&&u.default.createElement(C,{show:!0, close:function(){e.setState({copyModalShow:!1})},loading:o,copy:Pe,data:We,i18n:n}))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,layout:l.PropTypes.object.isRequired,collection:l.PropTypes.array.isRequired,wfCollection:l.PropTypes.array.isRequired,wfLoading:l.PropTypes.bool.isRequired,viewWorkflow:l.PropTypes.func.isRequired,indexComments:l.PropTypes.func.isRequired,sortComments:l.PropTypes.func.isRequired,addComments:l.PropTypes.func.isRequired,editComments:l.PropTypes.func.isRequired,delComments:l.PropTypes.func.isRequired,commentsCollection:l.PropTypes.array.isRequired,commentsIndexLoading:l.PropTypes.bool.isRequired,commentsLoading:l.PropTypes.bool.isRequired,commentsItemLoading:l.PropTypes.bool.isRequired,commentsLoaded:l.PropTypes.bool.isRequired,indexWorklog:l.PropTypes.func.isRequired,worklogSort:l.PropTypes.string.isRequired,sortWorklog:l.PropTypes.func.isRequired,addWorklog:l.PropTypes.func.isRequired,editWorklog:l.PropTypes.func.isRequired,delWorklog:l.PropTypes.func.isRequired,worklogCollection:l.PropTypes.array.isRequired,worklogIndexLoading:l.PropTypes.bool.isRequired,worklogLoading:l.PropTypes.bool.isRequired,worklogLoaded:l.PropTypes.bool.isRequired,indexHistory:l.PropTypes.func.isRequired,sortHistory:l.PropTypes.func.isRequired,historyCollection:l.PropTypes.array.isRequired,historyIndexLoading:l.PropTypes.bool.isRequired,historyLoaded:l.PropTypes.bool.isRequired,indexGitCommits:l.PropTypes.func.isRequired,sortGitCommits:l.PropTypes.func.isRequired,gitCommitsCollection:l.PropTypes.array.isRequired,gitCommitsIndexLoading:l.PropTypes.bool.isRequired,gitCommitsLoaded:l.PropTypes.bool.isRequired,itemData:l.PropTypes.object.isRequired,project:l.PropTypes.object,options:l.PropTypes.object,loading:l.PropTypes.bool.isRequired,itemLoading:l.PropTypes.bool.isRequired,indexLoading:l.PropTypes.bool.isRequired,index:l.PropTypes.func.isRequired,refresh:l.PropTypes.func.isRequired,query:l.PropTypes.object,show:l.PropTypes.func.isRequired,edit:l.PropTypes.func.isRequired,create:l.PropTypes.func.isRequired,setAssignee:l.PropTypes.func.isRequired,setLabels:l.PropTypes.func.isRequired,addLabels:l.PropTypes.func.isRequired,fileLoading:l.PropTypes.bool.isRequired,delFile:l.PropTypes.func.isRequired,addFile:l.PropTypes.func.isRequired,record:l.PropTypes.func.isRequired,forward:l.PropTypes.func.isRequired,cleanRecord:l.PropTypes.func.isRequired,visitedIndex:l.PropTypes.number.isRequired,visitedCollection:l.PropTypes.array.isRequired,createLink:l.PropTypes.func.isRequired,delLink:l.PropTypes.func.isRequired,linkLoading:l.PropTypes.bool.isRequired,doAction:l.PropTypes.func.isRequired,watch:l.PropTypes.func.isRequired,copy:l.PropTypes.func.isRequired,move:l.PropTypes.func.isRequired,convert:l.PropTypes.func.isRequired,resetState:l.PropTypes.func.isRequired,del:l.PropTypes.func.isRequired,user:l.PropTypes.object.isRequired},enumerable:!0}]),t}(l.Component);t.default=P,e.exports=t.default}).call(this)}finally{}},1781:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0&&d.default.createElement("div",{className:"table-td-desc",style:{marginTop:"10px"}},"以下未分配状态:"),m.default.map(E,function(e,t){return d.default.createElement("div",{className:"config-column-card",key:t}," ",d.default.createElement("span",{className:"state-"+e.category+"-label"},e.name))})),contents:d.default.createElement("div",{style:o({},t,{marginLeft:"10px"}),className:"config-columns"},!u.columns||u.columns.length<=0?d.default.createElement("ul",{className:"list-unstyled clearfix",style:{lineHeight:2}},d.default.createElement("li",null,"未定义")):d.default.createElement(b,{isAllowedEdit:f,kid:u.id,editColumn:this.editColumn.bind(this),delColumn:this.delColumn.bind(this),options:r,update:s,columns:u.columns||[]}),f&&d.default.createElement(p.Button,{style:{marginLeft:"10px"},onClick:function(){e.setState({columnModalShow:!0,columnNo:-1})}},"添加"))}),d.default.createElement("div",{style:{overflowY:"auto",height:"100%",paddingBottom:"80px"}},d.default.createElement(c.BootstrapTable,{data:L,headerStyle:{display:"none"},bordered:!1,hover:!0,trClassName:"tr-top"},d.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),d.default.createElement(c.TableHeaderColumn,{width:"200",dataField:"title"}),d.default.createElement(c.TableHeaderColumn,{dataField:"contents"})),this.state.editModalShow&&d.default.createElement(y,{show:!0,close:this.editModalClose,update:s,data:u,i18n:a}),this.state.delNotifyShow&&d.default.createElement(_,{show:!0,close:this.delNotifyClose,del:l,loading:i,data:u,i18n:a}),this.state.globalFilterModalShow&&d.default.createElement(v,{show:!0,model:"global",close:this.globalFilterModalClose,update:s,loading:i,data:u,options:r,i18n:a}),this.state.quickFilterModalShow&&d.default.createElement(v,{show:!0,model:"filter",no:this.state.filterNo,close:this.quickFilterModalClose,update:s,loading:i,data:u,options:r,i18n:a}),this.state.displayFieldsModalShow&&d.default.createElement(M,{show:!0,close:this.displayFieldsModalClose,options:r,data:u,update:s,loading:i,i18n:a}),this.state.delFilterNotifyShow&&d.default.createElement(w,{show:!0,model:"filter",no:this.state.filterNo,close:this.delFilterNotifyClose,update:s,loading:i,config:u,i18n:a}),this.state.columnModalShow&&d.default.createElement(k,{show:!0,no:this.state.columnNo,close:this.columnModalClose,update:s,config:u,options:r,i18n:a}),this.state.delColumnNotifyShow&&d.default.createElement(w,{show:!0,model:"column",no:this.state.columnNo,close:this.delColumnNotifyClose,update:s,loading:i,config:u,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,config:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,edit:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},1803:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t>")),u.default.createElement(d.Col,{sm:6},n.length>0&&u.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变显示顺序。"),n.length>0?n.map(function(t,n){return u.default.createElement(m.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:e.deleteCard.bind(e,n)})}):u.default.createElement("p",null,"显示字段为空。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement(d.Button,{bsStyle:"link",style:{"float":"left"},disabled:s,onClick:function(){e.setState({cards:[]})}},"清空字段"),u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!s&&o[this.state.ecode]),u.default.createElement("img",{src:b,className:s?"loading":"hide"}),u.default.createElement(d.Button,{disabled:s||a==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:s,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,loading:l.PropTypes.bool,update:l.PropTypes.func.isRequired,data:l.PropTypes.object.isRequired,options:l.PropTypes.object.isRequired,close:l.PropTypes.func.isRequired},enumerable:!0}]),t}(l.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},1807:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0){var d=m.default.find(o,{no:u});if(!d)return;this.state.name=d.name;d.query;m.default.forEach(d.query,function(t,n){e.state.query[n]=t&&m.default.isArray(t)?t.join(","):t||""})}}},{key:"handleSubmit",value:function(){var e,t,n,a,r,i,o,s,l,u,d,c,f,h;return regeneratorRuntime.async(function(y){for(;;)switch(y.prev=y.next){case 0:if(e=this.props,t=e.update,n=e.close,a=e.data,r=a.id,i=a.filters,o=void 0===i?[]:i,s=e.model,l=e.no,u=m.default.clone(o),d=this.state.query,c=0,"global"!=s){y.next=18;break}return y.next=15,regeneratorRuntime.awrap(t(m.default.extend({ query:d},{id:r})));case 15:c=y.sent,y.next=23;break;case 18:if("filter"!=s){y.next=23;break}return l>=0?(f=m.default.findIndex(o,{no:l}),u[f].query=d,u[f].name=this.state.name):(h=0,o.length>0&&(h=m.default.max(m.default.map(o,function(e){return e.no}))+1),u.push({query:d,name:this.state.name,no:h})),y.next=22,regeneratorRuntime.awrap(t(m.default.extend({filters:u},{id:r})));case 22:c=y.sent;case 23:0===c?(this.setState({ecode:0}),n(),p.notify.show("设置完成。","success",2e3)):this.setState({ecode:c});case 24:case"end":return y.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.loading;n||(this.setState({ecode:0}),t())}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,a=t.model,r=t.no,i=t.loading,o=t.options;return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static",bsSize:"large","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(d.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(d.Modal.Title,{id:"contained-modal-title-la"},"global"==a?"全局过滤器":r===-1?"添加快速过滤器":"编辑快速过滤器")),u.default.createElement(d.Form,{horizontal:!0,onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,{style:{maxHeight:"580px",overflow:"auto"}},"filter"===a&&u.default.createElement(d.FormGroup,{style:{height:"50px",borderBottom:"1px solid #ddd"},validationState:this.state.touched.name&&this.state.errors.name&&"error"||null},u.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"过滤器名称"),u.default.createElement(d.Col,{sm:8},u.default.createElement(d.FormControl,{type:"text",value:this.state.name,onChange:function(t){e.setState({name:t.target.value}),t.target.value?e.setState({errors:{}}):(e.state.errors.name="必填",e.setState({errors:e.state.errors}))},onBlur:function(t){e.state.touched.name=!0,e.setState({touched:e.state.touched})},placeholder:"输入名称"})),u.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel,style:{textAlign:"left"}},this.state.touched.name&&(this.state.errors.name||""))),u.default.createElement(h.IssueFilterList,{values:this.state.query,textInputChange:!0,onChange:function(t){e.setState({query:t})},columns:2,notShowFields:["title","resolved_at","closed_at","resolver","closer","watcher"],notShowBlocks:["agile"],searchShow:!0,options:o})),u.default.createElement(d.Modal.Footer,null,u.default.createElement(d.Button,{bsStyle:"link",style:{"float":"left"},disabled:i,onClick:function(){e.setState({query:{}})}},"清空条件"),u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&n[this.state.ecode]),u.default.createElement("img",{src:y,className:i?"loading":"hide"}),u.default.createElement(d.Button,{disabled:"filter"===a&&!this.state.name||i||m.default.isEmpty(this.state.query),onClick:this.handleSubmit},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:i,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,model:l.PropTypes.string.isRequired,no:l.PropTypes.number,loading:l.PropTypes.bool.isRequired,update:l.PropTypes.func.isRequired,close:l.PropTypes.func.isRequired,options:l.PropTypes.object,data:l.PropTypes.object},enumerable:!0}]),t}(l.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1808:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;nr&&l>o||(e.moveCard(a,r),t.getItem().index=r)}}},h=function(e){function t(){r(this,n),s(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.name,a=e.condsTxt,r=e.isAllowedEdit,i=e.isDragging,o=e.connectDragSource,s=e.connectDropTarget,l=e.editFilter,d=e.delFilter,c=i?0:1,p={"float":"right",cursor:"pointer",marginLeft:"5px"};return o(s(u.default.createElement("div",{style:{opacity:c},className:"filter-dragcard dragcard"},u.default.createElement("span",{style:{fontWeight:600}},n)," -- ",u.default.createElement("span",null,a),r&&!!d&&u.default.createElement("span",{style:p,onClick:function(){d(t)},title:"删除",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-remove"})),r&&!!l&&u.default.createElement("span",{style:p,onClick:function(){l(t)},title:"编辑",className:"edit-icon"},u.default.createElement("i",{className:"fa fa-pencil"})))))}}],[{key:"propTypes",value:{connectDragSource:l.PropTypes.func.isRequired,connectDropTarget:l.PropTypes.func.isRequired,index:l.PropTypes.number.isRequired,isDragging:l.PropTypes.bool.isRequired,id:l.PropTypes.any.isRequired,name:l.PropTypes.string.isRequired,condsTxt:l.PropTypes.string.isRequired,isAllowedEdit:l.PropTypes.bool.isRequired,editFilter:l.PropTypes.func,delFilter:l.PropTypes.func,setRank:l.PropTypes.func.isRequired,moveCard:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.DragSource)(function(e){return e.isAllowedEdit?p.CardTypes.KANBAN_FILTER:""},f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,c.DropTarget)(p.CardTypes.KANBAN_FILTER,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(l.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1809:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;ts.bottom||u.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,i="object"==typeof t?t:this.props;if(i.multi){if("string"==typeof e&&(e=e.split(i.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,i)}).filter(function(e){return e})}var o=this.expandValue(e,i);return o?[o]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var i=t.options,o=t.valueKey;if(i)for(var a=0;ai&&this.focusOption(n[i+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,i=0;i0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var o=n-this.props.pageSize;n=o<0?0:o}else if("page_down"===e){var o=n+this.props.pageSize;n=o>t.length-1?t.length-1:o}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,i=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var a=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(o,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:a,onRemove:n.removeValue,value:e},i(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(a=null),l.default.createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:a,value:e[0]},i(e[0])))},renderInput:function(e,t){var n,i=this,u=(0,g.default)("Select-input",this.props.inputProps.className),r=!!this.state.isOpen,c=(0,g.default)((n={},a(n,this._instancePrefix+"-list",r),a(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=s({},this.props.inputProps,{role:"combobox","aria-expanded":""+r,"aria-owns":c,"aria-haspopup":""+r,"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:u,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return i.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,o(d,["inputClassName"])),h=(0,g.default)(a({},this._instancePrefix+"-list",r));return l.default.createElement("div",s({},f,{role:"combobox","aria-expanded":r,"aria-owns":h,"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:u,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return i.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(y.default,s({},p,{minWidth:"5"})):l.default.createElement("div",{className:u},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return u(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:u(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,i=this.state.focusedOption||e;if(i&&!i.disabled){var o=-1;if(t.some(function(e,t){var a=e[n]===i[n];return a&&(o=t),a}),o!==-1)return o}for(var a=0;a-1)return!1;if(i.filterOption)return i.filterOption.call(o,e,t);if(!t)return!0;var a=String(e[i.valueKey]),s=String(e[i.labelKey]);return i.ignoreAccents&&("label"!==i.matchProp&&(a=(0,u.default)(a)),"value"!==i.matchProp&&(s=(0,u.default)(s))),i.ignoreCase&&("label"!==i.matchProp&&(a=a.toLowerCase()),"value"!==i.matchProp&&(s=s.toLowerCase())),"start"===i.matchPos?"label"!==i.matchProp&&a.substr(0,t.length)===t||"value"!==i.matchProp&&s.substr(0,t.length)===t:"label"!==i.matchProp&&a.indexOf(t)>=0||"value"!==i.matchProp&&s.indexOf(t)>=0})}var a=n(22),u=i(a);e.exports=o},21:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.focusedOption,n=e.instancePrefix,i=(e.labelKey,e.onFocus),o=e.onSelect,a=e.optionClassName,s=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=s;return c.map(function(e,s){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,u.default)(a,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return r.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+s+"-"+e[d],onFocus:i,onSelect:o,option:e,optionIndex:s,ref:function(e){f(e,m)}},l(e,s))})}var a=n(10),u=i(a),s=n(1),r=i(s);e.exports=o},22:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function a(e){return f.default.createElement(g.default,e)}function u(e){var t=e.option,n=e.options,i=e.labelKey,o=e.valueKey;return 0===n.filter(function(e){return e[i]===t[i]||e[o]===t[o]}).length}function s(e){var t=e.label;return!!t}function r(e){var t=e.label,n=e.labelKey,i=e.valueKey,o={};return o[i]=t,o[n]=t,o.className="Select-create-option-placeholder",o}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(r({},this.props,l,{isLoading:u,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=g,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t},t)}var a=Object.assign||function(e){for(var t=1;to&&r>u||(e.moveCard(i,o),t.getItem().index=o)}}},m=function(e){function t(){o(this,n),s(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,i=e.connectDragSource,o=e.connectDropTarget,a=e.deleteCard,u=n?0:1,s={"float":"right",cursor:"pointer"};return i(o(l.default.createElement("div",{style:{opacity:u},className:"dragcard"},t,!!a&&l.default.createElement("span",{style:s,onClick:a,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:r.PropTypes.func.isRequired,connectDropTarget:r.PropTypes.func.isRequired,index:r.PropTypes.number.isRequired,isDragging:r.PropTypes.bool.isRequired,id:r.PropTypes.any.isRequired,text:r.PropTypes.string.isRequired,deleteCard:r.PropTypes.func,moveCard:r.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(d.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(d.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(r.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},208:function(e,t,n){try{(function(){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n1?t-1:0),o=1;o0){if(Object.assign)return Object.assign.apply(Object,[e].concat(n));n.forEach(function(t){a(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})})}return e}function c(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),o=2;o-1}function h(e,n){if(n){if(t(e.length))return void u(e,function(e){h(e,n)});if(e.classList)return void e.classList.add(n);var a=s(e.className);a?a.indexOf(n)<0&&(e.className=a+" "+n):e.className=n}}function f(e,n){if(n)return t(e.length)?void u(e,function(e){f(e,n)}):e.classList?void e.classList.remove(n):void(e.className.indexOf(n)>=0&&(e.className=e.className.replace(n,"")))}function m(e,n,a){if(n)return t(e.length)?void u(e,function(e){m(e,n,a)}):void(a?h(e,n):f(e,n))}function v(e){return e.replace(Q,"$1-$2").toLowerCase()}function g(e,t){return a(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-"+v(t))}function b(e,t,n){a(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-"+v(t),n)}function y(e,t){if(a(e[t]))delete e[t];else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=null}else e.removeAttribute("data-"+v(t))}function E(e,t,n){var a=s(t).split(J);return a.length>1?void u(a,function(t){E(e,t,n)}):void(e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n))}function w(e,t,n,a){var o=s(t).split(J),i=n;return o.length>1?void u(o,function(t){w(e,t,n)}):(a&&(n=function(){for(var a=arguments.length,o=Array(a),r=0;r90?180-n:n)*Math.PI/180,o=Math.sin(a),i=Math.cos(a),r=e.width,s=e.height,u=e.aspectRatio,l=void 0,c=void 0;return t?(l=r/(i+o/u),c=l/u):(l=r*i+s*o,c=r*o+s*i),{width:l,height:c}}function B(e,n,a){var o=M("canvas"),i=o.getContext("2d"),r=0,s=0,u=n.naturalWidth,l=n.naturalHeight,c=n.rotate,p=n.scaleX,d=n.scaleY,h=t(p)&&t(d)&&(1!==p||1!==d),f=t(c)&&0!==c,m=f||h,v=u*Math.abs(p||1),g=l*Math.abs(d||1),b=void 0,y=void 0,E=void 0;return h&&(b=v/2,y=g/2),f&&(E=R({width:v,height:g,degree:c}),v=E.width,g=E.height,b=v/2,y=g/2),o.width=v,o.height=g,a.fillColor&&(i.fillStyle=a.fillColor,i.fillRect(0,0,v,g)),m&&(r=-u/2,s=-l/2,i.save(),i.translate(b,y)),f&&i.rotate(c*Math.PI/180),h&&i.scale(p,d),i.imageSmoothingEnabled=!!a.imageSmoothingEnabled,a.imageSmoothingQuality&&(i.imageSmoothingQuality=a.imageSmoothingQuality),i.drawImage(e,Math.floor(r),Math.floor(s),Math.floor(u),Math.floor(l)),m&&i.restore(),o}function j(e,t,n){var a="",o=t;for(n+=t;o=8&&(c=i+r)))),c)for(n=t.getUint16(c,s),d=0;d
',q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},X=function(){function e(e,t){for(var n=0;nn.width?3===t?u=n.height*s:c=n.width/s:3===t?c=n.width/s:u=n.height*s;var p={naturalWidth:i,naturalHeight:r,aspectRatio:s,width:u,height:c};p.oldLeft=p.left=(n.width-u)/2,p.oldTop=p.top=(n.height-c)/2,e.canvasData=p,e.limited=1===t||2===t,e.limitCanvas(!0,!0),e.initialImageData=l({},a),e.initialCanvasData=l({},p)},limitCanvas:function(e,t){var n=this,a=n.options,o=a.viewMode,i=n.containerData,r=n.canvasData,s=r.aspectRatio,u=n.cropBoxData,l=n.cropped&&u;if(e){var c=Number(a.minCanvasWidth)||0,p=Number(a.minCanvasHeight)||0;o>1?(c=Math.max(c,i.width),p=Math.max(p,i.height),3===o&&(p*s>c?c=p*s:p=c/s)):o>0&&(c?c=Math.max(c,l?u.width:0):p?p=Math.max(p,l?u.height:0):l&&(c=u.width,p=u.height,p*s>c?c=p*s:p=c/s)),c&&p?p*s>c?p=c/s:c=p*s:c?p=c/s:p&&(c=p*s),r.minWidth=c,r.minHeight=p,r.maxWidth=1/0,r.maxHeight=1/0}if(t)if(o){var d=i.width-r.width,h=i.height-r.height;r.minLeft=Math.min(0,d),r.minTop=Math.min(0,h),r.maxLeft=Math.max(0,d),r.maxTop=Math.max(0,h),l&&n.limited&&(r.minLeft=Math.min(u.left,u.left+(u.width-r.width)),r.minTop=Math.min(u.top,u.top+(u.height-r.height)),r.maxLeft=u.left,r.maxTop=u.top,2===o&&(r.width>=i.width&&(r.minLeft=Math.min(0,d),r.maxLeft=Math.max(0,d)),r.height>=i.height&&(r.minTop=Math.min(0,h),r.maxTop=Math.max(0,h))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=i.width,r.maxTop=i.height},renderCanvas:function(e){var t=this,n=t.canvasData,a=t.imageData,o=a.rotate;if(t.rotated){t.rotated=!1;var i=R({width:a.width,height:a.height,degree:o}),r=i.width/i.height,s=1===a.aspectRatio;if(s||r!==n.aspectRatio){if(n.left-=(i.width-n.width)/2,n.top-=(i.height-n.height)/2,n.width=i.width,n.height=i.height,n.aspectRatio=r,n.naturalWidth=a.naturalWidth,n.naturalHeight=a.naturalHeight,s&&o%90||o%180){var u=R({width:a.naturalWidth,height:a.naturalHeight,degree:o});n.naturalWidth=u.width,n.naturalHeight=u.height}t.limitCanvas(!0,!1)}}(n.width>n.maxWidth||n.widthn.maxHeight||n.heighto.width?i.height=i.width/n:i.width=i.height*n),e.cropBoxData=i,e.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*a),i.height=Math.max(i.minHeight,i.height*a),i.oldLeft=i.left=o.left+(o.width-i.width)/2,i.oldTop=i.top=o.top+(o.height-i.height)/2,e.initialCropBoxData=l({},i)},limitCropBox:function(e,t){var n=this,a=n.options,o=a.aspectRatio,i=n.containerData,r=n.canvasData,s=n.cropBoxData,u=n.limited;if(e){var l=Number(a.minCropBoxWidth)||0,c=Number(a.minCropBoxHeight)||0,p=Math.min(i.width,u?r.width:i.width),d=Math.min(i.height,u?r.height:i.height);l=Math.min(l,i.width),c=Math.min(c,i.height),o&&(l&&c?c*o>l?c=l/o:l=c*o:l?c=l/o:c&&(l=c*o),d*o>p?d=p/o:p=d*o),s.minWidth=Math.min(l,p),s.minHeight=Math.min(c,d),s.maxWidth=p,s.maxHeight=d}t&&(u?(s.minLeft=Math.max(0,r.left),s.minTop=Math.max(0,r.top),s.maxLeft=Math.min(i.width,r.left+r.width)-s.width,s.maxTop=Math.min(i.height,r.top+r.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=i.width-s.width,s.maxTop=i.height-s.height))},renderCropBox:function(){var e=this,t=e.options,n=e.containerData,a=e.cropBoxData;(a.width>a.maxWidth||a.widtha.maxHeight||a.heightu&&(m=u/i,h=o*m,f=u),p(e,{width:h,height:f}),p(D(e,"img")[0],l({width:r*m,height:s*m},N(l({translateX:-c*m,translateY:-d*m},t))))}))}},de="undefined"!=typeof window?window.PointerEvent:null,he=de?"pointerdown":"touchstart mousedown",fe=de?"pointermove":"touchmove mousemove",me=de?" pointerup pointercancel":"touchend touchcancel mouseup",ve="wheel mousewheel DOMMouseScroll",ge="dblclick",be="resize",ye="cropstart",Ee="cropmove",we="cropend",Ce="crop",xe="zoom",Oe={bind:function(){var e=this,t=e.options,n=e.element,a=e.cropper;i(t.cropstart)&&w(n,ye,t.cropstart),i(t.cropmove)&&w(n,Ee,t.cropmove),i(t.cropend)&&w(n,we,t.cropend),i(t.crop)&&w(n,Ce,t.crop),i(t.zoom)&&w(n,xe,t.zoom),w(a,he,e.onCropStart=c(e.cropStart,e)),t.zoomable&&t.zoomOnWheel&&w(a,ve,e.onWheel=c(e.wheel,e)),t.toggleDragModeOnDblclick&&w(a,ge,e.onDblclick=c(e.dblclick,e)),w(document,fe,e.onCropMove=c(e.cropMove,e)),w(document,me,e.onCropEnd=c(e.cropEnd,e)),t.responsive&&w(window,be,e.onResize=c(e.resize,e))},unbind:function(){var e=this,t=e.options,n=e.element,a=e.cropper;i(t.cropstart)&&E(n,ye,t.cropstart),i(t.cropmove)&&E(n,Ee,t.cropmove),i(t.cropend)&&E(n,we,t.cropend),i(t.crop)&&E(n,Ce,t.crop),i(t.zoom)&&E(n,xe,t.zoom),E(a,he,e.onCropStart),t.zoomable&&t.zoomOnWheel&&E(a,ve,e.onWheel),t.toggleDragModeOnDblclick&&E(a,ge,e.onDblclick),E(document,fe,e.onCropMove),E(document,me,e.onCropEnd),t.responsive&&E(window,be,e.onResize)}},De=/^(e|w|s|n|se|sw|ne|nw|all|crop|move|zoom)$/,Te={resize:function(){var e=this,t=e.options,n=e.container,a=e.containerData,o=Number(t.minContainerWidth)||200,i=Number(t.minContainerHeight)||100;if(!e.disabled&&a.width!==o&&a.height!==i){var r=n.offsetWidth/a.width;1===r&&n.offsetHeight===a.height||!function(){var n=void 0,a=void 0;t.restore&&(n=e.getCanvasData(),a=e.getCropBoxData()),e.render(),t.restore&&(e.setCanvasData(u(n,function(e,t){n[t]=e*r})),e.setCropBoxData(u(a,function(e,t){a[t]=e*r})))}()}},dblclick:function(){var e=this;e.disabled||"none"===e.options.dragMode||e.setDragMode(d(e.dragBox,"cropper-crop")?"move":"crop")},wheel:function(e){var t=this,n=x(e),a=Number(t.options.wheelZoomRatio)||.1,o=1;t.disabled||(n.preventDefault(),t.wheeling||(t.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),n.deltaY?o=n.deltaY>0?1:-1:n.wheelDelta?o=-n.wheelDelta/120:n.detail&&(o=n.detail>0?1:-1),t.zoom(-o*a,n)))},cropStart:function(e){var t=this;if(!t.disabled){var n=t.options,a=t.pointers,o=x(e),i=void 0;o.changedTouches?u(o.changedTouches,function(e){a[e.identifier]=W(e)}):a[o.pointerId||0]=W(o),i=Object.keys(a).length>1&&n.zoomable&&n.zoomOnTouch?"zoom":g(o.target,"action"),De.test(i)&&C(t.element,"cropstart",{originalEvent:o,action:i})!==!1&&(o.preventDefault(),t.action=i,t.cropping=!1,"crop"===i&&(t.cropping=!0,h(t.dragBox,"cropper-modal")))}},cropMove:function(e){var t=this,n=t.action;if(!t.disabled&&n){var a=t.pointers,o=x(e);o.preventDefault(),C(t.element,"cropmove",{originalEvent:o,action:n})!==!1&&(o.changedTouches?u(o.changedTouches,function(e){l(a[e.identifier],W(e,!0))}):l(a[o.pointerId||0],W(o,!0)),t.change(o))}},cropEnd:function(e){var t=this;if(!t.disabled){var n=t.action,a=t.pointers,o=x(e);o.changedTouches?u(o.changedTouches,function(e){delete a[e.identifier]}):delete a[o.pointerId||0],n&&(o.preventDefault(),Object.keys(a).length||(t.action=""),t.cropping&&(t.cropping=!1,m(t.dragBox,"cropper-modal",t.cropped&&this.options.modal)),C(t.element,"cropend",{originalEvent:o,action:n}))}}},Me="e",Ae="w",Fe="s",Pe="n",ke="se",Se="sw",_e="ne",Ne="nw",Re={change:function(e){var t=this,n=t.options,a=t.containerData,o=t.canvasData,i=t.cropBoxData,r=n.aspectRatio,s=t.action,l=i.width,c=i.height,p=i.left,d=i.top,h=p+l,m=d+c,v=0,g=0,b=a.width,y=a.height,E=!0,w=void 0;!r&&e.shiftKey&&(r=l&&c?l/c:1),t.limited&&(v=i.minLeft,g=i.minTop,b=v+Math.min(a.width,o.width,o.left+o.width),y=g+Math.min(a.height,o.height,o.top+o.height));var C=t.pointers,x=C[Object.keys(C)[0]],D={x:x.endX-x.startX,y:x.endY-x.startY};switch(r&&(D.X=D.y*r,D.Y=D.x/r),s){case"all":p+=D.x,d+=D.y;break;case Me:if(D.x>=0&&(h>=b||r&&(d<=g||m>=y))){E=!1;break}l+=D.x,r&&(c=l/r,d-=D.Y/2),l<0&&(s=Ae,l=0);break;case Pe:if(D.y<=0&&(d<=g||r&&(p<=v||h>=b))){E=!1;break}c-=D.y,d+=D.y,r&&(l=c*r,p+=D.X/2),c<0&&(s=Fe,c=0);break;case Ae:if(D.x<=0&&(p<=v||r&&(d<=g||m>=y))){E=!1;break}l-=D.x,p+=D.x,r&&(c=l/r,d+=D.Y/2),l<0&&(s=Me,l=0);break;case Fe:if(D.y>=0&&(m>=y||r&&(p<=v||h>=b))){E=!1;break}c+=D.y,r&&(l=c*r,p-=D.X/2),c<0&&(s=Pe,c=0);break;case _e:if(r){if(D.y<=0&&(d<=g||h>=b)){E=!1;break}c-=D.y,d+=D.y,l=c*r}else D.x>=0?hg&&(c-=D.y,d+=D.y):(c-=D.y,d+=D.y);l<0&&c<0?(s=Se,c=0,l=0):l<0?(s=Ne,l=0):c<0&&(s=ke,c=0);break;case Ne:if(r){if(D.y<=0&&(d<=g||p<=v)){E=!1;break}c-=D.y,d+=D.y,l=c*r,p+=D.X}else D.x<=0?p>v?(l-=D.x,p+=D.x):D.y<=0&&d<=g&&(E=!1):(l-=D.x,p+=D.x),D.y<=0?d>g&&(c-=D.y,d+=D.y):(c-=D.y,d+=D.y);l<0&&c<0?(s=ke,c=0,l=0):l<0?(s=_e,l=0):c<0&&(s=Se,c=0);break;case Se:if(r){if(D.x<=0&&(p<=v||m>=y)){E=!1;break}l-=D.x,p+=D.x,c=l/r}else D.x<=0?p>v?(l-=D.x,p+=D.x):D.y>=0&&m>=y&&(E=!1):(l-=D.x,p+=D.x),D.y>=0?m=0&&(h>=b||m>=y)){E=!1;break}l+=D.x,c=l/r}else D.x>=0?h=0&&m>=y&&(E=!1):l+=D.x,D.y>=0?m0?s=D.y>0?ke:_e:D.x<0&&(p-=l,s=D.y>0?Se:Ne),D.y<0&&(d-=c),t.cropped||(f(t.cropBox,"cropper-hidden"),t.cropped=!0,t.limited&&t.limitCropBox(!0,!0))}E&&(i.width=l,i.height=c,i.left=p,i.top=d,t.action=s,t.renderCropBox()),u(C,function(e){e.startX=e.endX,e.startY=e.endY})}},Be={crop:function(){var e=this;return e.ready&&!e.disabled&&(e.cropped||(e.cropped=!0,e.limitCropBox(!0,!0),e.options.modal&&h(e.dragBox,"cropper-modal"),f(e.cropBox,"cropper-hidden")),e.setCropBoxData(e.initialCropBoxData)),e},reset:function(){var e=this;return e.ready&&!e.disabled&&(e.imageData=l({},e.initialImageData),e.canvasData=l({},e.initialCanvasData),e.cropBoxData=l({},e.initialCropBoxData),e.renderCanvas(),e.cropped&&e.renderCropBox()),e},clear:function(){var e=this;return e.cropped&&!e.disabled&&(l(e.cropBoxData,{left:0,top:0,width:0,height:0}),e.cropped=!1,e.renderCropBox(),e.limitCanvas(),e.renderCanvas(),f(e.dragBox,"cropper-modal"),h(e.cropBox,"cropper-hidden")),e},replace:function(e,t){var n=this;return!n.disabled&&e&&(n.isImg&&(n.element.src=e),t?(n.url=e,n.image.src=e,n.ready&&(n.image2.src=e,u(n.previews,function(t){D(t,"img")[0].src=e}))):(n.isImg&&(n.replaced=!0),n.options.data=null,n.load(e))),n},enable:function(){var e=this;return e.ready&&(e.disabled=!1,f(e.cropper,"cropper-disabled")),e},disable:function(){var e=this;return e.ready&&(e.disabled=!0,h(e.cropper,"cropper-disabled")),e},destroy:function(){var e=this,t=e.element,n=e.image;return e.loaded?(e.isImg&&e.replaced&&(t.src=e.originalUrl),e.unbuild(),f(t,"cropper-hidden")):e.isImg?E(t,"load",e.onStart):n&&F(n),y(t,"cropper"),e},move:function(e,t){var a=this,o=a.canvasData;return a.moveTo(n(e)?e:o.left+Number(e),n(t)?t:o.top+Number(t))},moveTo:function(e,a){var o=this,i=o.canvasData,r=!1;return n(a)&&(a=e),e=Number(e),a=Number(a),o.ready&&!o.disabled&&o.options.movable&&(t(e)&&(i.left=e,r=!0),t(a)&&(i.top=a,r=!0),r&&o.renderCanvas(!0)),o},zoom:function(e,t){var n=this,a=n.canvasData;return e=Number(e),e=e<0?1/(1-e):1+e,n.zoomTo(a.width*e/a.naturalWidth,t)},zoomTo:function(e,t){var n=this,a=n.options,o=n.canvasData,i=o.width,r=o.height,s=o.naturalWidth,u=o.naturalHeight;if(e=Number(e),e>=0&&n.ready&&!n.disabled&&a.zoomable){var l=s*e,c=u*e;if(C(n.element,"zoom",{originalEvent:t,oldRatio:i/s,ratio:l/s})===!1)return n;if(t){var p=n.pointers,d=O(n.cropper),h=p&&Object.keys(p).length?K(p):{pageX:t.pageX,pageY:t.pageY};o.left-=(l-i)*((h.pageX-d.left-o.left)/i),o.top-=(c-r)*((h.pageY-d.top-o.top)/r)}else o.left-=(l-i)/2,o.top-=(c-r)/2;o.width=l,o.height=c,n.renderCanvas(!0)}return n},rotate:function(e){var t=this;return t.rotateTo((t.imageData.rotate||0)+Number(e))},rotateTo:function(e){var n=this;return e=Number(e),t(e)&&n.ready&&!n.disabled&&n.options.rotatable&&(n.imageData.rotate=e%360,n.rotated=!0,n.renderCanvas(!0)),n},scale:function(e,a){var o=this,i=o.imageData,r=!1;return n(a)&&(a=e),e=Number(e),a=Number(a),o.ready&&!o.disabled&&o.options.scalable&&(t(e)&&(i.scaleX=e,r=!0),t(a)&&(i.scaleY=a,r=!0),r&&o.renderImage(!0)),o},scaleX:function(e){var n=this,a=n.imageData.scaleY;return n.scale(e,t(a)?a:1)},scaleY:function(e){var n=this,a=n.imageData.scaleX;return n.scale(t(a)?a:1,e)},getData:function(e){var t=this,n=t.options,a=t.imageData,o=t.canvasData,i=t.cropBoxData,r=void 0,s=void 0;return t.ready&&t.cropped?(s={x:i.left-o.left,y:i.top-o.top,width:i.width,height:i.height},r=a.width/a.naturalWidth,u(s,function(t,n){t/=r,s[n]=e?Math.round(t):t})):s={x:0,y:0,width:0,height:0},n.rotatable&&(s.rotate=a.rotate||0),n.scalable&&(s.scaleX=a.scaleX||1,s.scaleY=a.scaleY||1),s},setData:function(e){var n=this,a=n.options,r=n.imageData,s=n.canvasData,u={},l=void 0,c=void 0,p=void 0;return i(e)&&(e=e.call(n.element)),n.ready&&!n.disabled&&o(e)&&(a.rotatable&&t(e.rotate)&&e.rotate!==r.rotate&&(r.rotate=e.rotate,n.rotated=l=!0),a.scalable&&(t(e.scaleX)&&e.scaleX!==r.scaleX&&(r.scaleX=e.scaleX,c=!0),t(e.scaleY)&&e.scaleY!==r.scaleY&&(r.scaleY=e.scaleY,c=!0)),l?n.renderCanvas():c&&n.renderImage(),p=r.width/r.naturalWidth,t(e.x)&&(u.left=e.x*p+s.left),t(e.y)&&(u.top=e.y*p+s.top),t(e.width)&&(u.width=e.width*p),t(e.height)&&(u.height=e.height*p),n.setCropBoxData(u)),n},getContainerData:function(){var e=this;return e.ready?e.containerData:{}},getImageData:function(){var e=this;return e.loaded?e.imageData:{}},getCanvasData:function(){var e=this,t=e.canvasData,n={};return e.ready&&u(["left","top","width","height","naturalWidth","naturalHeight"],function(e){n[e]=t[e]}),n},setCanvasData:function(e){var n=this,a=n.canvasData,r=a.aspectRatio;return i(e)&&(e=e.call(n.element)),n.ready&&!n.disabled&&o(e)&&(t(e.left)&&(a.left=e.left),t(e.top)&&(a.top=e.top),t(e.width)?(a.width=e.width,a.height=e.width/r):t(e.height)&&(a.height=e.height,a.width=e.height*r),n.renderCanvas(!0)),n},getCropBoxData:function(){var e=this,t=e.cropBoxData,n=void 0;return e.ready&&e.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(e){var n=this,a=n.cropBoxData,r=n.options.aspectRatio,s=void 0,u=void 0;return i(e)&&(e=e.call(n.element)),n.ready&&n.cropped&&!n.disabled&&o(e)&&(t(e.left)&&(a.left=e.left),t(e.top)&&(a.top=e.top),t(e.width)&&e.width!==a.width&&(s=!0,a.width=e.width),t(e.height)&&e.height!==a.height&&(u=!0,a.height=e.height),r&&(s?a.height=a.width/r:u&&(a.width=a.height*r)),n.renderCropBox()),n},getCroppedCanvas:function(e){var t=this;if(!t.ready||!window.HTMLCanvasElement)return null;if(o(e)||(e={}),!t.cropped)return B(t.image,t.imageData,e);var n=t.getData(),a=n.width,i=n.height,r=a/i,s=void 0,u=void 0,l=void 0;o(e)&&(s=e.width,u=e.height,s?(u=s/r,l=s/a):u&&(s=u*r,l=u/i));var c=Math.floor(s||a),p=Math.floor(u||i),d=M("canvas"),h=d.getContext("2d");d.width=c,d.height=p,e.fillColor&&(h.fillStyle=e.fillColor,h.fillRect(0,0,c,p));var f=function(){var o=B(t.image,t.imageData,e),r=o.width,s=o.height,u=t.canvasData,c=[o],p=n.x+u.naturalWidth*(Math.abs(n.scaleX||1)-1)/2,d=n.y+u.naturalHeight*(Math.abs(n.scaleY||1)-1)/2,h=void 0,f=void 0,m=void 0,v=void 0,g=void 0,b=void 0;return p<=-a||p>r?p=h=m=g=0:p<=0?(m=-p,p=0,h=g=Math.min(r,a+p)):p<=r&&(m=0,h=g=Math.min(a,r-p)),h<=0||d<=-i||d>s?d=f=v=b=0:d<=0?(v=-d,d=0,f=b=Math.min(s,i+d)):d<=s&&(v=0,f=b=Math.min(i,s-d)),c.push(Math.floor(p),Math.floor(d),Math.floor(h),Math.floor(f)),l&&(m*=l,v*=l,g*=l,b*=l),g>0&&b>0&&c.push(Math.floor(m),Math.floor(v),Math.floor(g),Math.floor(b)),c}();return h.imageSmoothingEnabled=!!e.imageSmoothingEnabled,e.imageSmoothingQuality&&(h.imageSmoothingQuality=e.imageSmoothingQuality),h.drawImage.apply(h,G(f)),d},setAspectRatio:function(e){var t=this,a=t.options;return t.disabled||n(e)||(a.aspectRatio=Math.max(0,e)||NaN,t.ready&&(t.initCropBox(),t.cropped&&t.renderCropBox())),t},setDragMode:function(e){var t=this,n=t.options,a=t.dragBox,o=t.face,i=void 0,r=void 0;return t.loaded&&!t.disabled&&(i="crop"===e,r=n.movable&&"move"===e,e=i||r?e:"none",b(a,"action",e),m(a,"cropper-crop",i),m(a,"cropper-move",r),n.cropBoxMovable||(b(o,"action",e),m(o,"cropper-crop",i),m(o,"cropper-move",r))),t}},je="cropper",Ie=je+"-hidden",Ve="error",Le="load",We="ready",ze="crop",Ke=/^data:/,Ye=/^data:image\/jpeg;base64,/,He=void 0,qe=function(){function e(t,n){U(this,e);var a=this;a.element=t,a.options=l({},Y,o(n)&&n),a.loaded=!1,a.ready=!1,a.complete=!1,a.rotated=!1,a.cropped=!1,a.disabled=!1,a.replaced=!1,a.limited=!1,a.wheeling=!1,a.isImg=!1,a.originalUrl="",a.canvasData=null,a.cropBoxData=null,a.previews=null,a.pointers={},a.init()}return X(e,[{key:"init",value:function(){var e=this,t=e.element,n=t.tagName.toLowerCase(),a=void 0;if(!g(t,je)){if(b(t,je,e),"img"===n){if(e.isImg=!0,e.originalUrl=a=t.getAttribute("src"),!a)return;a=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(a=t.toDataURL());e.load(a)}}},{key:"load",value:function(e){var t=this,n=t.options,a=t.element;if(e){if(t.url=e,t.imageData={},!n.checkOrientation||!window.ArrayBuffer)return void t.clone();if(Ke.test(e))return void(Ye.test(e)?t.read(V(e)):t.clone());var o=new XMLHttpRequest;o.onerror=o.onabort=function(){t.clone()},o.onload=function(){t.read(o.response)},n.checkCrossOrigin&&k(e)&&a.crossOrigin&&(e=S(e)),o.open("get",e),o.responseType="arraybuffer",o.withCredentials="use-credentials"===a.crossOrigin,o.send()}}},{key:"read",value:function(e){var t=this,n=t.options,a=I(e),o=t.imageData,i=0,r=1,s=1;if(a>1)switch(t.url=L(e),a){case 2:r=-1;break;case 3:i=-180;break;case 4:s=-1;break;case 5:i=90,s=-1;break;case 6:i=90;break;case 7:i=90,r=-1;break;case 8:i=-90}n.rotatable&&(o.rotate=i),n.scalable&&(o.scaleX=r,o.scaleY=s),t.clone()}},{key:"clone",value:function(){var e=this,t=e.element,n=e.url,a=void 0,o=void 0,i=void 0,r=void 0;e.options.checkCrossOrigin&&k(n)&&(a=t.crossOrigin,a?o=n:(a="anonymous",o=S(n))),e.crossOrigin=a,e.crossOriginUrl=o;var s=M("img");a&&(s.crossOrigin=a),s.src=o||n,e.image=s,e.onStart=i=c(e.start,e),e.onStop=r=c(e.stop,e),e.isImg?t.complete?e.start():w(t,Le,i):(w(s,Le,i),w(s,Ve,r),h(s,"cropper-hide"),t.parentNode.insertBefore(s,t.nextSibling))}},{key:"start",value:function(e){var t=this,n=t.isImg?t.element:t.image;e&&(E(n,Le,t.onStart),E(n,Ve,t.onStop)),_(n,function(e,n){l(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.loaded=!0,t.build()})}},{key:"stop",value:function(){var e=this,t=e.image;E(t,Le,e.onStart),E(t,Ve,e.onStop),F(t),e.image=null}},{key:"build",value:function(){var e=this,t=e.options,n=e.element,a=e.image,o=void 0,r=void 0,s=void 0,u=void 0,l=void 0,c=void 0;if(e.loaded){e.ready&&e.unbuild();var p=M("div");p.innerHTML=H,e.container=o=n.parentNode,e.cropper=r=T(p,"cropper-container")[0],e.canvas=s=T(r,"cropper-canvas")[0],e.dragBox=u=T(r,"cropper-drag-box")[0],e.cropBox=l=T(r,"cropper-crop-box")[0],e.viewBox=T(r,"cropper-view-box")[0],e.face=c=T(l,"cropper-face")[0],A(s,a),h(n,Ie),o.insertBefore(r,n.nextSibling),e.isImg||f(a,"cropper-hide"),e.initPreview(),e.bind(),t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,e.cropped=t.autoCrop,t.autoCrop?t.modal&&h(u,"cropper-modal"):h(l,Ie),t.guides||h(T(l,"cropper-dashed"),Ie),t.center||h(T(l,"cropper-center"),Ie),t.background&&h(r,"cropper-bg"),t.highlight||h(c,"cropper-invisible"),t.cropBoxMovable&&(h(c,"cropper-move"),b(c,"action","all")),t.cropBoxResizable||(h(T(l,"cropper-line"),Ie),h(T(l,"cropper-point"),Ie)),e.setDragMode(t.dragMode),e.render(),e.ready=!0,e.setData(t.data),e.completing=setTimeout(function(){i(t.ready)&&w(n,We,t.ready,!0),C(n,We),C(n,ze,e.getData()),e.complete=!0},0)}}},{key:"unbuild", value:function(){var e=this;e.ready&&(e.complete||clearTimeout(e.completing),e.ready=!1,e.complete=!1,e.initialImageData=null,e.initialCanvasData=null,e.initialCropBoxData=null,e.containerData=null,e.canvasData=null,e.cropBoxData=null,e.unbind(),e.resetPreview(),e.previews=null,e.viewBox=null,e.cropBox=null,e.dragBox=null,e.canvas=null,e.container=null,F(e.cropper),e.cropper=null)}}],[{key:"noConflict",value:function(){return window.Cropper=He,e}},{key:"setDefaults",value:function(e){l(Y,o(e)&&e)}}]),e}();return l(qe.prototype,le),l(qe.prototype,pe),l(qe.prototype,Oe),l(qe.prototype,Te),l(qe.prototype,Re),l(qe.prototype,Be),"undefined"!=typeof window&&(He=window.Cropper,window.Cropper=qe),qe})},1631:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?this.moveTo(e.moveTo[0],e.moveTo[1]):this.moveTo(e.moveTo[0])),e.zoomTo!==this.props.zoomTo&&this.zoomTo(e.zoomTo),e.rotateTo!==this.props.rotateTo&&this.rotateTo(e.rotateTo),e.scaleX!==this.props.scaleX&&this.scaleX(e.scaleX),e.scaleY!==this.props.scaleY&&this.scaleY(e.scaleY),e.enable!==this.props.enable&&(e.enable?this.enable():this.disable()),Object.keys(e).forEach(function(n){if(e[n]!==t.props[n]&&g.indexOf(n)!==-1)throw new Error("prop: "+n+" can't be change after componentDidMount")})}},{key:"componentWillUnmount",value:function(){this.img&&(this.cropper.destroy(),delete this.img,delete this.cropper)}},{key:"setDragMode",value:function(e){return this.cropper.setDragMode(e)}},{key:"setAspectRatio",value:function(e){return this.cropper.setAspectRatio(e)}},{key:"getCroppedCanvas",value:function(e){return this.cropper.getCroppedCanvas(e)}},{key:"setCropBoxData",value:function(e){return this.cropper.setCropBoxData(e)}},{key:"getCropBoxData",value:function(){return this.cropper.getCropBoxData()}},{key:"setCanvasData",value:function(e){return this.cropper.setCanvasData(e)}},{key:"getCanvasData",value:function(){return this.cropper.getCanvasData()}},{key:"getImageData",value:function(){return this.cropper.getImageData()}},{key:"getContainerData",value:function(){return this.cropper.getContainerData()}},{key:"setData",value:function(e){return this.cropper.setData(e)}},{key:"getData",value:function(e){return this.cropper.getData(e)}},{key:"crop",value:function(){return this.cropper.crop()}},{key:"move",value:function(e,t){return this.cropper.move(e,t)}},{key:"moveTo",value:function(e,t){return this.cropper.moveTo(e,t)}},{key:"zoom",value:function(e){return this.cropper.zoom(e)}},{key:"zoomTo",value:function(e){return this.cropper.zoomTo(e)}},{key:"rotate",value:function(e){return this.cropper.rotate(e)}},{key:"rotateTo",value:function(e){return this.cropper.rotateTo(e)}},{key:"enable",value:function(){return this.cropper.enable()}},{key:"disable",value:function(){return this.cropper.disable()}},{key:"reset",value:function(){return this.cropper.reset()}},{key:"clear",value:function(){return this.cropper.clear()}},{key:"replace",value:function(e,t){return this.cropper.replace(e,t)}},{key:"scale",value:function(e,t){return this.cropper.scale(e,t)}},{key:"scaleX",value:function(e){return this.cropper.scaleX(e)}},{key:"scaleY",value:function(e){return this.cropper.scaleY(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,a=t.alt,o=t.crossOrigin;return p.default.createElement("div",{src:null,crossOrigin:null,alt:null,style:this.props.style,className:this.props.className},p.default.createElement("img",{crossOrigin:o,ref:function(t){e.img=t},src:n,alt:void 0===a?"picture":a,style:{opacity:0}}))}}]),t}(c.Component);b.propTypes={style:h.default.object,className:h.default.string,crossOrigin:h.default.string,src:h.default.string,alt:h.default.string,aspectRatio:h.default.number,dragMode:h.default.oneOf(["crop","move","none"]),data:h.default.shape({x:h.default.number,y:h.default.number,width:h.default.number,height:h.default.number,rotate:h.default.number,scaleX:h.default.number,scaleY:h.default.number}),scaleX:h.default.number,scaleY:h.default.number,enable:h.default.bool,cropBoxData:h.default.shape({left:h.default.number,top:h.default.number,width:h.default.number,height:h.default.number}),canvasData:h.default.shape({left:h.default.number,top:h.default.number,width:h.default.number,height:h.default.number}),zoomTo:h.default.number,moveTo:h.default.arrayOf(h.default.number),rotateTo:h.default.number,viewMode:h.default.oneOf([0,1,2,3]),preview:h.default.string,responsive:h.default.bool,restore:h.default.bool,checkCrossOrigin:h.default.bool,checkOrientation:h.default.bool,modal:h.default.bool,guides:h.default.bool,center:h.default.bool,highlight:h.default.bool,background:h.default.bool,autoCrop:h.default.bool,autoCropArea:h.default.number,movable:h.default.bool,rotatable:h.default.bool,scalable:h.default.bool,zoomable:h.default.bool,zoomOnTouch:h.default.bool,zoomOnWheel:h.default.bool,wheelZoomRation:h.default.number,cropBoxMovable:h.default.bool,cropBoxResizable:h.default.bool,toggleDragModeOnDblclick:h.default.bool,minContainerWidth:h.default.number,minContainerHeight:h.default.number,minCanvasWidth:h.default.number,minCanvasHeight:h.default.number,minCropBoxWidth:h.default.number,minCropBoxHeight:h.default.number,ready:h.default.func,cropstart:h.default.func,cropmove:h.default.func,cropend:h.default.func,crop:h.default.func,zoom:h.default.func},b.defaultProps={src:null,dragMode:"crop",data:null,scaleX:1,scaleY:1,enable:!0,zoomTo:1,rotateTo:0},t.default=b},1880:function(e,t,n){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{actions:(0,f.bindActionCreators)(v,e),sessionActions:(0,f.bindActionCreators)(b,e)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({mail_notify:e.length>0})}},{key:"mobileNotifyChange",value:function(e){this.state.notifications.mobile_notify=e.length>0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({mobile_notify:e.length>0})}},{key:"dailyNotifyChange",value:function(e){this.state.notifications.daily_notify=e.length>0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({daily_notify:e.length>0})}},{key:"weeklyNotifyChange",value:function(e){this.state.notifications.weekly_notify=e.length>0&&!0,this.setState({notifications:this.state.notifications}),this.notifyChange({weekly_notify:e.length>0})}},{key:"languageChange",value:function(e){var t;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return m.default.extend(this.state.favorites,{language:e}),this.setState({favorites:this.state.favorites}),n.next=4,regeneratorRuntime.awrap(this.favoriteChange({language:e}));case 4:t=n.sent;case 6:case"end":return n.stop()}},null,this)}},{key:"favoriteChange",value:function(e){var t,n,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=this.props.updFavorite,o.next=3,regeneratorRuntime.awrap(t(e));case 3:return n=o.sent,0===n?alert("aa"):(a=this.props.favorites,alert("bb")),o.abrupt("return",n);case 6:case"end":return o.stop()}},null,this)}},{key:"componentWillMount",value:function(){var e,t,n,a,o,i,r,s;return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=this.props.getUser,u.next=3,regeneratorRuntime.awrap(e());case 3:t=this.props,n=t.accounts,a=void 0===n?{}:n,o=t.notifications,i=void 0===o?{}:o,r=t.favorites,s=void 0===r?{}:r,this.setState({accounts:a,notifications:i,favorites:s});case 11:case"end":return u.stop()}},null,this)}},{key:"render",value:function(){var e=this,t={marginLeft:"20px",marginTop:"10px",marginBottom:"10px"},n={color:"#54d09f",fontSize:"12px"},a={color:"#da4f4a",fontSize:"12px"},o=this.props,i=o.i18n,r=o.accounts,s=o.setAvatar,u=o.updAvatar,f=o.avatarLoading,m=(o.accountLoading,o.notifyLoading),E=(o.favoriteLoading,o.updAccount),w=o.resetPwd,C=this.state,x=C.notifications,O=(C.favorites,[]);O.push({id:"avatar",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"头像"),l.default.createElement("span",{className:"table-td-issue-desc"},"选择一张个人正面照片作为头像,让其他成员更容易认识你。")),contents:l.default.createElement("div",{style:t},l.default.createElement("img",{src:r.avatar?"/api/getavatar?fid="+r.avatar:v,className:"big-no-avatar"}),l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({avatarEditModalShow:!0})}},"设置头像"))}),O.push({id:"basic",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"个人资料")),contents:l.default.createElement("div",{style:t},l.default.createElement("ul",{className:"list-unstyled clearfix",style:{lineHeight:2}},l.default.createElement("li",null,"姓名:",r.first_name||"-"),l.default.createElement("li",null,"部门:",r.department||"-"),l.default.createElement("li",null,"职位:",r.position||"-")),l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({editModalShow:!0})}},"编辑资料"))}),O.push({id:"email",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"邮箱地址"),l.default.createElement("span",{className:"table-td-issue-desc"},"该账号绑定的邮箱地址不能改变。")),contents:l.default.createElement("div",{style:t},"当前邮箱地址为:",r.email||"-")}),O.push({id:"password",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"登录密码"),l.default.createElement("span",{className:"table-td-issue-desc"},"修改密码时需要输入当前密码;建议您定期更换密码,确保帐号安全。")),contents:l.default.createElement("div",{style:t},l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({resetPwdModalShow:!0})}},"修改密码"))}),O.push({id:"phone",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"绑定手机号"),l.default.createElement("span",{className:"table-td-issue-desc"},"修改手机时 ActionView 会发送短信到新的手机号,请按照短信中的验证码修改你的手机号码。")),contents:l.default.createElement("div",{style:t},l.default.createElement("div",null,"当前手机号为:",r.phone||"未设置"),l.default.createElement("div",{style:{marginTop:"10px"}},l.default.createElement(p.Button,{style:{marginLeft:"15px"},onClick:function(){h.notify.show("暂不支持此功能。","warning",2e3)}},r.phone&&"修改","绑定手机号")))});var D=[];D.push({id:"language",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"语言设置"),l.default.createElement("span",{className:"table-td-issue-desc"},"请选择您喜欢的语言(暂不支持此功能)")),contents:l.default.createElement("div",{style:t},l.default.createElement("div",{style:{margin:"3px"}},"中文"))});var T=[];T.push({id:"mail_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"邮件通知"),l.default.createElement("span",{className:"table-td-issue-desc"},"当问题有重要操作时,会根据相应的通知方案配置,发送提醒邮件给你。")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"mail_notify",value:x.mail_notify?["mail_notify"]:[],onChange:this.mailNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"mail_notify"}),l.default.createElement("span",null," 开启邮件通知"),l.default.createElement("br",null),x.mail_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))}),T.push({id:"mobile_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"移动端通知"),l.default.createElement("span",{className:"table-td-issue-desc"},"当问题有重要操作时,会根据相应的通知方案配置,自动将消息推送到 ActionView 移动客户端")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"mobile_notify",value:x.mobile_notify?["mobile_notify"]:[],onChange:this.mobileNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"mobile_notify"}),l.default.createElement("span",null," 开启移动端通知"),l.default.createElement("br",null),x.mobile_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))}),T.push({id:"daily_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"每日提醒"),l.default.createElement("span",{className:"table-td-issue-desc"},"每天向你发送一封包含当日工作内容的邮件。")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"daily_notify",value:x.daily_notify?["daily_notify"]:[],onChange:this.dailyNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"daily_notify"}),l.default.createElement("span",null," 接收每日邮件提醒"),l.default.createElement("br",null),x.daily_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))}),T.push({id:"weekly_notify",title:l.default.createElement("div",null,l.default.createElement("span",{className:"table-td-title"},"每周提醒"),l.default.createElement("span",{className:"table-td-issue-desc"},"每周向你发送一封本周工作内容的邮件。")),contents:l.default.createElement("div",{style:t},l.default.createElement(d.CheckboxGroup,{name:"weekly_notify",value:x.weekly_notify?["weekly_notify"]:[],onChange:this.weeklyNotifyChange.bind(this)},l.default.createElement(d.Checkbox,{disabled:m,value:"weekly_notify"}),l.default.createElement("span",null," 接收每周邮件提醒"),l.default.createElement("br",null),x.weekly_notify?l.default.createElement("span",{style:n},"已开启"):l.default.createElement("span",{style:a},"已关闭")))});var M=[],A=[];return"account"==this.state.tabKey?A=O:"favorite"==this.state.tabKey?A=D:"notification"==this.state.tabKey?A=T:"record"==this.state.tabKey&&(A=M),l.default.createElement("div",null,l.default.createElement(p.Nav,{bsStyle:"pills",style:{marginTop:"10px","float":"left",lineHeight:"1.0"},activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this)},l.default.createElement(p.NavItem,{eventKey:"account",href:"#"},"账号资料"),l.default.createElement(p.NavItem,{eventKey:"favorite",href:"#"},"个人偏好"),l.default.createElement(p.NavItem,{eventKey:"notification",href:"#"},"消息提醒")),l.default.createElement(c.BootstrapTable,{data:A,bordered:!1,hover:!0,trClassName:"tr-top"},l.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(c.TableHeaderColumn,{width:"260",dataField:"title"}),l.default.createElement(c.TableHeaderColumn,{width:"200",dataField:"contents"}),l.default.createElement(c.TableHeaderColumn,{dataField:"blank"})),this.state.avatarEditModalShow&&l.default.createElement(g,{show:!0,close:this.avatarEditModalClose,loading:f,setAvatar:s,updAvatar:u,data:r,i18n:i}),this.state.editModalShow&&l.default.createElement(b,{show:!0,close:this.editModalClose,update:E,data:r,i18n:i}),this.state.resetPwdModalShow&&l.default.createElement(y,{show:!0,close:this.resetPwdModalClose,resetPwd:w,i18n:i}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,getUser:u.PropTypes.func.isRequired,setAvatar:u.PropTypes.func.isRequired,updAvatar:u.PropTypes.func.isRequired,avatarLoading:u.PropTypes.bool.isRequired,resetPwd:u.PropTypes.func.isRequired,updAccount:u.PropTypes.func.isRequired,updNotify:u.PropTypes.func.isRequired,updFavorite:u.PropTypes.func.isRequired,accountLoading:u.PropTypes.bool.isRequired,accounts:u.PropTypes.object.isRequired,notifyLoading:u.PropTypes.bool.isRequired,notifications:u.PropTypes.object.isRequired,favoriteLoading:u.PropTypes.bool.isRequired,favorites:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},1883:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},a))};return o.default.createElement("div",{style:u.fields,className:"flexbox-fix"},o.default.createElement("div",{style:u.double},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"hex",value:a.replace("#",""),onChange:d})),o.default.createElement("div",{style:u.single},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),o.default.createElement("div",{style:u.single},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),o.default.createElement("div",{style:u.single},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),o.default.createElement("div",{style:u.alpha},o.default.createElement(c.EditableInput,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:d,dragLabel:"true",dragMax:"100"})))};t.default=d},1527:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var a=Object.assign||function(e){for(var t=1;to?1:Math.round(100*s/o)/100,n.hsl.a!==c)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:c,source:"rgb"}}else{var d=void 0;if(d=u<0?0:u>a?1:Math.round(100*u/a)/100,n.a!==d)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:d,source:"rgb"}}return null}},1537:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},r=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var a=r?new r:document.createElement("canvas");a.width=2*n,a.height=2*n;var o=a.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,a.width,a.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),a.toDataURL()):null};t.get=function(e,t,a,o){var i=e+"-"+t+"-"+a+(o?"-server":""),l=r(e,t,a,o);return n[i]?n[i]:(n[i]=l,l)}},1538:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){e.preventDefault();var a=r.clientWidth,o=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=i-(r.getBoundingClientRect().left+window.pageXOffset),s=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n.direction){var c=void 0;if(s<0)c=359;else if(s>o)c=0;else{var d=-(100*s/o)+100;c=360*d/100}if(n.hsl.h!==c)return{h:c,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}else{var p=void 0;if(u<0)p=0;else if(u>a)p=359;else{var f=100*u/a;p=360*f/100}if(n.hsl.h!==p)return{h:p,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}return null}},1539:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var l=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,u,c;a(this,r);for(var d=arguments.length,p=Array(d),f=0;fo?s=o:c<0?c=0:c>i&&(c=i);var d=100*s/o,p=-(100*c/i)+100;return{h:n.hsl.h,s:d,v:p,a:n.hsl.a,source:"rgb"}}},1541:[2870,310,224],1542:[2802,1586,1587,1588,1589,1590],1543:[2871,310,224],1544:[2806,310,224],1545:[2807,576,1610,1611],1546:[2873,224],1547:[2874,310,224],1548:function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n0?s.default.createElement("span",null,"共有应用项目 ",s.default.createElement("strong",null,t.length)," 个"):s.default.createElement("span",null,"暂无项目应用")),!r&&t.length>0&&s.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"项目名称"),s.default.createElement("th",null,"问题个数"))),s.default.createElement("tbody",null,f.default.map(t,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",null,"active"===e.status?s.default.createElement("span",null,s.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):s.default.createElement("span",null,e.name,"(已关闭)")),s.default.createElement("td",null,"active"===e.status?s.default.createElement("span",null,s.default.createElement(d.Link,{to:"/project/"+e.key+"/issue?priority="+(n.key||n.id)},e.issue_count||0)):s.default.createElement("span",null,e.issue_count||0)))})))),s.default.createElement(c.Modal.Footer,null,s.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:u.PropTypes.func.isRequired,view:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.object.isRequired,projects:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},1965:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"PRIORITY_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/priority"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/priority",method:"post",data:t})}})}function a(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/priority/"+t.id,method:"put",data:t})}})}function o(e){return{type:"PRIORITY_SELECT",id:e}}function i(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/priority/"+t,method:"delete"})}})}function l(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_SET_SORT",promise:function(n){return n.request({url:"/project/"+e+"/priority/batch",method:"post",data:t})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_SET_DEFAULT",promise:function(n){return n.request({url:"/project/"+e+"/priority/batch",method:"post",data:t})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/priority/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=a,t.select=o,t.del=i,t.setSort=l,t.setDefault=u,t.viewUsed=s;var c=n(44)}).call(this)}finally{}},2351:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var a=n(668),o=r(a),i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,u,c;a(this,r);for(var d=arguments.length,p=Array(d),f=0;f1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,u,c;a(this,r);for(var d=arguments.length,p=Array(d),f=0;f0&&void 0!==arguments[0]?arguments[0]:[],t=[]; return(0,d.default)(e,function(e){Array.isArray(e)?f(e).map(function(e){return t.push(e)}):(0,s.default)(e)?(0,l.default)(e,function(e,n){e===!0&&t.push(n),t.push(n+"-"+e)}):(0,o.default)(e)&&t.push(e)}),t};t.default=p},2355:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2===0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n};t.default=n},2356:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var a=n(668),o=r(a),i=n(2447),l=r(i),u=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,l.default)(e.default)||{};return t.map(function(t){var r=e[t];return r&&(0,o.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=u({},n[t],r[t])}),t}),n};t.default=s},2357:[2870,296,231],2358:[2802,2414,2415,2416,2417,2418],2359:[2871,296,231],2360:[2806,296,231],2361:[2807,660,2439,2440],2362:[2874,296,231],2363:function(e,t){function n(e,t){return e.set(t[0],t[1]),e}e.exports=n},2364:function(e,t){function n(e,t){return e.add(t),e}e.exports=n},2365:1548,2366:916,2367:2185,2368:function(e,t,n){function r(e,t){return e&&a(t,o(t),e)}var a=n(495),o=n(414);e.exports=r},2369:function(e,t,n){function r(e,t){return e&&a(t,o(t),e)}var a=n(495),o=n(994);e.exports=r},2370:function(e,t,n){function r(e,t,n,k,P,F){var A,R=t&C,T=t&_,B=t&O;if(n&&(A=P?n(e,k,P,F):n(e)),void 0!==A)return A;if(!E(e))return e;var N=y(e);if(N){if(A=v(e),!R)return c(e,A)}else{var I=b(e),H=I==M||I==j;if(x(e))return s(e,R);if(I==D||I==S||H&&!P){if(A=T||H?{}:m(e),!R)return T?p(e,u(A,e)):d(e,l(A,e))}else{if(!Z[I])return P?e:{};A=g(e,I,r,R)}}F||(F=new a);var L=F.get(e);if(L)return L;F.set(e,A);var V=B?T?h:f:T?keysIn:w,z=N?void 0:V(e);return o(z||e,function(a,o){z&&(o=a,a=e[o]),i(A,o,r(a,t,n,o,e,F))}),A}var a=n(661),o=n(2365),i=n(971),l=n(2368),u=n(2369),s=n(2393),c=n(2400),d=n(2401),p=n(2402),f=n(980),h=n(2409),b=n(982),v=n(2419),g=n(2420),m=n(2421),y=n(213),x=n(669),E=n(333),w=n(414),C=1,_=2,O=4,S="[object Arguments]",k="[object Array]",P="[object Boolean]",F="[object Date]",A="[object Error]",M="[object Function]",j="[object GeneratorFunction]",R="[object Map]",T="[object Number]",D="[object Object]",B="[object RegExp]",N="[object Set]",I="[object String]",H="[object Symbol]",L="[object WeakMap]",V="[object ArrayBuffer]",z="[object DataView]",q="[object Float32Array]",W="[object Float64Array]",U="[object Int8Array]",K="[object Int16Array]",G="[object Int32Array]",Y="[object Uint8Array]",X="[object Uint8ClampedArray]",$="[object Uint16Array]",J="[object Uint32Array]",Z={};Z[S]=Z[k]=Z[V]=Z[z]=Z[P]=Z[F]=Z[q]=Z[W]=Z[U]=Z[K]=Z[G]=Z[R]=Z[T]=Z[D]=Z[B]=Z[N]=Z[I]=Z[H]=Z[Y]=Z[X]=Z[$]=Z[J]=!0,Z[A]=Z[M]=Z[L]=!1,e.exports=r},2371:function(e,t,n){var r=n(333),a=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},2372:[2875,973,2404],2373:[2876,2405],2374:2192,2375:[2816,295,297],2376:[2881,661,978,2407,2408,982,213,669,993],2377:[2882,661,976],2378:[2817,992,2423,333,989],2379:[2858,295,670,297],2380:[2883,2384,2385,990,213,2454],2381:[2884,666,2435],2382:[2859,333,666,2436],2383:[2918,2372,499],2384:[2885,2377,2410,986],2385:[2886,976,2448,2449,665,984,986,498],2386:2205,2387:[2887,974],2388:1657,2389:[2888,413,968,213,671],2390:760,2391:557,2392:[2854,990],2393:function(e,t,n){(function(e){function r(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}var a=n(231),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o,u=l?a.Buffer:void 0,s=u?u.allocUnsafe:void 0;e.exports=r}).call(t,n(164)(e))},2394:function(e,t,n){function r(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var a=n(662);e.exports=r},2395:function(e,t,n){function r(e,t,n){var r=t?n(i(e),l):i(e);return o(r,a,new e.constructor)}var a=n(2363),o=n(970),i=n(985),l=1;e.exports=r},2396:function(e,t){function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=n},2397:function(e,t,n){function r(e,t,n){var r=t?n(i(e),l):i(e);return o(r,a,new e.constructor)}var a=n(2364),o=n(970),i=n(988),l=1;e.exports=r},2398:function(e,t,n){function r(e){return i?Object(i.call(e)):{}}var a=n(413),o=a?a.prototype:void 0,i=o?o.valueOf:void 0;e.exports=r},2399:function(e,t,n){function r(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var a=n(662);e.exports=r},2400:function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n.5?u/(2-o-i):u/(o+i),o){case e:r=(t-n)/u+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var a,o,i;if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)a=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;a=r(u,l,e+1/3),o=r(u,l,e),i=r(u,l,e-1/3)}return{r:255*a,g:255*o,b:255*i}}function c(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,a,o=G(e,t,n),i=K(e,t,n),l=o,u=o-i;if(a=0===o?0:u/o,o==i)r=0;else{switch(o){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(o(r));return i}function k(e,t){t=t||6;for(var n=o(e).toHsv(),r=n.h,a=n.s,i=n.v,l=[],u=1/t;t--;)l.push(o({h:r,s:a,v:i})),i=(i+u)%1;return l}function P(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function F(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){R(e)&&(e="100%");var n=T(e);return e=K(t,G(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return K(1,G(0,e))}function j(e){return parseInt(e,16)}function R(e){return"string"==typeof e&&e.indexOf(".")!=-1&&1===parseFloat(e)}function T(e){return"string"==typeof e&&e.indexOf("%")!=-1}function D(e){return 1==e.length?"0"+e:""+e}function B(e){return e<=1&&(e=100*e+"%"),e}function N(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return j(e)/255}function H(e){return!!J.CSS_UNIT.exec(e)}function L(e){e=e.replace(z,"").replace(q,"").toLowerCase();var t=!1;if(X[e])e=X[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=J.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=J.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=J.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=J.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=J.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=J.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=J.hex8.exec(e))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),a:I(n[4]),format:t?"name":"hex8"}:(n=J.hex6.exec(e))?{r:j(n[1]),g:j(n[2]),b:j(n[3]),format:t?"name":"hex"}:(n=J.hex4.exec(e))?{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),a:I(n[4]+""+n[4]),format:t?"name":"hex8"}:!!(n=J.hex3.exec(e))&&{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),format:t?"name":"hex"}}function V(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}var z=/^\s+/,q=/\s+$/,W=0,U=a.round,K=a.min,G=a.max,Y=a.random;o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,i,l=this.toRgb();return e=l.r/255,t=l.g/255,n=l.b/255,r=e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4),i=n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*i},setAlpha:function(e){return this._a=F(e),this._roundA=U(100*this._a)/100,this},toHsv:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=c(this._r,this._g,this._b),t=U(360*e.h),n=U(100*e.s),r=U(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=U(360*e.h),n=U(100*e.s),r=U(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return f(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:U(this._r),g:U(this._g),b:U(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+U(this._r)+", "+U(this._g)+", "+U(this._b)+")":"rgba("+U(this._r)+", "+U(this._g)+", "+U(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:U(100*A(this._r,255))+"%",g:U(100*A(this._g,255))+"%",b:U(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+U(100*A(this._r,255))+"%, "+U(100*A(this._g,255))+"%, "+U(100*A(this._b,255))+"%)":"rgba("+U(100*A(this._r,255))+"%, "+U(100*A(this._g,255))+"%, "+U(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&($[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=o(e);n="#"+h(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,a=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return a?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},o.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&("a"===r?n[r]=e[r]:n[r]=B(e[r]));e=n}return o(e,t)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:Y(),g:Y(),b:Y()})},o.mix=function(e,t,n){n=0===n?0:n||50;var r=o(e).toRgb(),a=o(t).toRgb(),i=n/100,l={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return o(l)},o.readability=function(e,t){var n=o(e),r=o(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},o.isReadable=function(e,t,n){var r,a,i=o.readability(e,t);switch(a=!1,r=V(n),r.level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},o.mostReadable=function(e,t,n){var r,a,i,l,u=null,s=0;n=n||{},a=n.includeFallbackColors,i=n.level,l=n.size;for(var c=0;cs&&(s=r,u=o(t[c]));return o.isReadable(e,u,{level:i,size:l})||!a?u:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var X=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=o.hexNames=P(X),J=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();"undefined"!=typeof e&&e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}(Math)},2854:function(e,t,n,r){function a(e){return"function"==typeof e?e:o}var o=n(r);e.exports=a}}); -//# sourceMappingURL=priority-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=priority-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/project-e84984431a143be0907e.js b/public/assets/project-84397989593b11928a6a.js similarity index 99% rename from public/assets/project-e84984431a143be0907e.js rename to public/assets/project-84397989593b11928a6a.js index f0745e32d..dc2609109 100644 --- a/public/assets/project-e84984431a143be0907e.js +++ b/public/assets/project-84397989593b11928a6a.js @@ -2,4 +2,4 @@ webpackJsonp([18],{7:function(e,t,n){"use strict";function a(e){return e&&e.__es newOptionCreator:u,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,a=e.onNewOptionClick,r=e.options,i=void 0===r?[]:r;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var o=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),s=this.isOptionUnique({option:o});s&&(a?a(o):(i.unshift(o),this.select.selectValue(o)))}},filterOptions:function x(){var e=this.props,x=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),a=arguments[2]||[],r=x.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var i=this.props.newOptionCreator,o=i({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),s=this.isOptionUnique({option:o,options:a.concat(r)});if(s){var u=n(this.inputValue);this._createPlaceholderOption=i({label:u,labelKey:this.labelKey,valueKey:this.valueKey}),r.unshift(this._createPlaceholderOption)}}return r},isOptionUnique:function S(e){var t=e.option,n=e.options,S=this.props.isOptionUnique;return n=n||this.select.filterOptions(),S({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function F(e){var F=this.props.menuRenderer;return F(p({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function k(e){var k=this.props.onInputChange;k&&k(e),this.inputValue=e},onInputKeyDown:function T(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,T=t.onInputKeyDown,a=this.select.getFocusedOption();a&&a===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):T&&T(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,r(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),a=this.props.children;a||(a=i);var o=p({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return a(o)}});e.exports=P},27:function(e,t,n){"use strict";function a(e){return e}function r(e,t,n){function r(e,t){var n=b.hasOwnProperty(t)?b[t]:null;w.hasOwnProperty(t)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function i(e,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var a=e.prototype,i=a.__reactAutoBindPairs;n.hasOwnProperty(l)&&E.mixins(e,n.mixins);for(var o in n)if(n.hasOwnProperty(o)&&o!==l){var s=n[o],c=a.hasOwnProperty(o);if(r(c,o),E.hasOwnProperty(o))E[o](e,s);else{var p=b.hasOwnProperty(o),h="function"==typeof s,m=h&&!p&&!c&&n.autobind!==!1;if(m)i.push(o,s),a[o]=s;else if(c){var y=b[o];u(p&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,o),"DEFINE_MANY_MERGED"===y?a[o]=d(a[o],s):"DEFINE_MANY"===y&&(a[o]=f(a[o],s))}else a[o]=s}}}else;}function c(e,t){if(t)for(var n in t){var a=t[n];if(t.hasOwnProperty(n)){var r=n in E;u(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;u(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=a}}}function p(e,t){u(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(u(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function d(e,t){return function(){var n=e.apply(this,arguments),a=t.apply(this,arguments);if(null==n)return a;if(null==a)return n;var r={};return p(r,n),p(r,a),r}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;ne.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(u({},this.props,l,{isLoading:o,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=w,w.propTypes=E,w.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var a=e[n];return void 0!==a&&(t[n]=a),t},t)}var i=Object.assign||function(e){for(var t=1;tu||r<=0)&&(r=1);for(var l=[],p=0;pu)break;l.push(f)}return c.default.createElement("div",{style:{marginTop:"15px",height:"50px"}},c.default.createElement("div",null,c.default.createElement("div",{className:"col-md-6"},c.default.createElement("span",null,d.default.add((r-1)*i,1),"-",r*i>=n?n:r*i," 共",n,"条 ",u,"页")),c.default.createElement("div",{className:"col-md-6"},u>1&&c.default.createElement("ul",{className:"pagination",style:{"float":"right",marginTop:"0px"}},r-s>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),r-1>0&&u>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,r-1),title:"前页"},"<")),d.default.map(l,function(t,n){return c.default.createElement("li",{key:n,className:t===r?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),r1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,d.default.add(r,1)),title:"后页"},">")),u-s>r&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,u),title:"尾页"},">>"))))))}}],[{key:"propTypes",value:{query:l.PropTypes.object,refresh:l.PropTypes.func,total:l.PropTypes.number.isRequired,curPage:l.PropTypes.number,sizePerPage:l.PropTypes.number,paginationSize:l.PropTypes.number},enumerable:!0}]),t}(l.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},851:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&(L={mode:"checkbox",selected:this.state.selectedIds,onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)}),l.default.createElement("div",null,l.default.createElement("div",{style:{marginTop:"5px",height:"40px"}},l.default.createElement(p.FormGroup,null,l.default.createElement("span",{style:{"float":"right",width:"90px"}},l.default.createElement(f.default,{simpleValue:!0,clearable:!1,placeholder:"项目状态",value:this.state.status,onChange:this.statusChange.bind(this),options:[{value:"all",label:"全部"},{value:"active",label:"活动中"},{value:"closed",label:"已关闭"}]})),l.default.createElement("span",{style:{"float":"right",width:"22%",marginRight:"10px"}},l.default.createElement(f.default,{simpleValue:!0,placeholder:"责任人",value:this.state.principal_id,onChange:this.principalChange.bind(this),options:v.default.map(k.principals,function(e){return{value:e.id,label:e.name+"("+e.email+")"}})})),l.default.createElement("span",{style:{"float":"right",width:"22%",marginRight:"10px"}},l.default.createElement(p.FormControl,{type:"text",id:"pname",style:{height:"36px"},value:this.state.name,onChange:function(t){e.setState({name:t.target.value})},placeholder:"项目名、键值查询..."})),this.state.selectedIds.length>0&&l.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},l.default.createElement(p.DropdownButton,{title:"操作",onSelect:this.multiOperateSelect.bind(this)},l.default.createElement(p.MenuItem,{eventKey:"close"},"关闭"),l.default.createElement(p.MenuItem,{eventKey:"reopen"},"重新打开"),l.default.createElement(p.MenuItem,{eventKey:"create_index"},"重建索引"))),l.default.createElement("span",{style:{"float":"left",width:"20%"}},l.default.createElement(p.Button,{onClick:function(){e.setState({createModalShow:!0})},disabled:o},l.default.createElement("i",{className:"fa fa-plus"})," 新建项目")))),l.default.createElement("div",null,l.default.createElement(c.BootstrapTable,{data:I,bordered:!1,hover:!0,options:K,trClassName:"tr-middle",selectRow:L},l.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(c.TableHeaderColumn,{dataField:"name"},"名称"),l.default.createElement(c.TableHeaderColumn,{dataField:"key",width:"170"},"键值"),l.default.createElement(c.TableHeaderColumn,{dataField:"principal",width:"320"},"责任人"),l.default.createElement(c.TableHeaderColumn,{dataField:"status",width:"80"},"状态"),l.default.createElement(c.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.editModalShow&&l.default.createElement(w,{show:!0,close:this.editModalClose,update:F,data:r,i18n:n}),this.state.createModalShow&&l.default.createElement(C,{show:!0,close:this.createModalClose,create:d,i18n:n}),this.state.closeNotifyShow&&l.default.createElement(O,{show:!0,close:this.closeNotifyClose,data:r,stop:m}),this.state.delNotifyShow&&l.default.createElement(P,{show:!0,close:this.delNotifyClose,data:r,del:h}),this.state.multiOperateNotifyShow&&l.default.createElement(x,{show:!0,close:this.multiOperateNotifyClose,multiReopen:b,multiStop:y,multiCreateIndex:E,ids:this.state.selectedIds,cancelSelected:this.cancelSelected.bind(this),operate:this.state.multiOperate,loading:i,i18n:n})),!o&&k.total&&k.total>0?l.default.createElement(g,{total:k.total||0,curPage:T.page||1,sizePerPage:k.sizePerPage||30,paginationSize:4,query:T,refresh:u}):"")}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object,getOptions:u.PropTypes.func.isRequired,collection:u.PropTypes.array.isRequired,selectedItem:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,refresh:u.PropTypes.func.isRequired,entry:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,reopen:u.PropTypes.func.isRequired,createIndex:u.PropTypes.func.isRequired,multiReopen:u.PropTypes.func.isRequired,multiStop:u.PropTypes.func.isRequired,multiCreateIndex:u.PropTypes.func.isRequired,stop:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=F,e.exports=t.default}).call(this)}finally{}},1840:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&r.map(function(t,n){return l.default.createElement("div",{className:"col-lg-3 col-md-4 col-sm-6 col-xs-12 cardContainer",key:n},l.default.createElement("div",{className:"card"},"active"!==t.status&&l.default.createElement("div",{className:"status"},l.default.createElement(p.Label,null,"已关闭")),l.default.createElement("div",{className:"content"},l.default.createElement("span",{className:"title"},"active"==t.status?l.default.createElement("p",{className:"name"},l.default.createElement("a",{href:"#",title:t.name,onClick:function(n){n.preventDefault(),e.entry(t.key)}},t.name)):l.default.createElement("p",{className:"name"},t.name),l.default.createElement("p",{className:"key"},t.key))),l.default.createElement("div",{className:"leader"},l.default.createElement("span",null,"负责人: ",t.principal.name)),t.principal.id===a.id&&l.default.createElement("div",{className:"btns"},"active"==t.status&&l.default.createElement("span",{style:{marginLeft:"3px"},title:"编辑",onClick:e.edit.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-pencil","aria-hidden":"true"})),"active"==t.status&&l.default.createElement("span",{style:{marginLeft:"3px"},title:"重建索引",onClick:e.createIndex.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-repeat","aria-hidden":"true"})),"active"===t.status?l.default.createElement("span",{style:{marginLeft:"3px"},title:"关闭",onClick:e.closeNotify.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-close","aria-hidden":"true"})):l.default.createElement("span",{style:{marginLeft:"3px"},title:"重新打开",onClick:e.reopen.bind(e,t.id),className:"comments-button"},l.default.createElement("i",{className:"fa fa-check","aria-hidden":"true"})))))}),this.state.editModalShow&&l.default.createElement(C,{show:!0,close:this.editModalClose,update:y,data:o,i18n:n}),this.state.createModalShow&&l.default.createElement(g,{show:!0,close:this.createModalClose,create:h,i18n:n}),this.state.closeNotifyShow&&l.default.createElement(w,{show:!0,close:this.closeNotifyClose,data:o,stop:m})),i.length>0&&i.length%(E.limit||4)===0&&l.default.createElement(p.ButtonGroup,{vertical:!0,block:!0,style:{marginTop:"15px"}},l.default.createElement(p.Button,{onClick:this.more.bind(this)},l.default.createElement("div",null,l.default.createElement("img",{src:O,className:d?"loading":"hide"}),l.default.createElement("span",null,d?"":"更多...")))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,user:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,collection:u.PropTypes.array.isRequired,increaseCollection:u.PropTypes.array.isRequired,selectedItem:u.PropTypes.object.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,moreLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,more:u.PropTypes.func.isRequired,entry:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,reopen:u.PropTypes.func.isRequired,createIndex:u.PropTypes.func.isRequired,stop:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=P,e.exports=t.default}).call(this)}finally{}}}); -//# sourceMappingURL=project-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=project-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/report-e84984431a143be0907e.js b/public/assets/report-84397989593b11928a6a.js similarity index 99% rename from public/assets/report-e84984431a143be0907e.js rename to public/assets/report-84397989593b11928a6a.js index 1b26afbd3..97f09f99a 100644 --- a/public/assets/report-e84984431a143be0907e.js +++ b/public/assets/report-84397989593b11928a6a.js @@ -11,4 +11,4 @@ calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd simpleValue:!0,placeholder:"请选择",clearable:!1,value:Y||null,onChange:function(t){e.state.stat_x=t,e.search()},options:h.default.map(x,function(e){return{value:e.key,label:e.name}})})),l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"Y轴"),l.default.createElement(c.Col,{sm:3},l.default.createElement(_.default,{simpleValue:!0,placeholder:"请选择",value:this.state.stat_y||null,onChange:function(t){e.state.stat_y=t,e.search()},options:h.default.map(x,function(e){return{value:e.key,label:e.name}})})),l.default.createElement(c.Col,{sm:4},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement(y.IssueFilterList,{values:M,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:i,onChange:function(e){f(e)}}),l.default.createElement("div",{className:"report-conds-style"},j&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:j},l.default.createElement("b",null,"检索条件"),":",j),l.default.createElement("div",{className:"remove-icon",onClick:function(){f({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"}))),l.default.createElement(c.ButtonGroup,{className:"report-shape-buttongroup"},(Y===b||!b)&&l.default.createElement(c.Button,{title:"饼状图",style:{height:"36px",backgroundColor:"pie"==H&&"#eee"},onClick:function(){e.setState({shape:"pie"})}},"饼状图"),l.default.createElement(c.Button,{title:"柱状图",style:{height:"36px",backgroundColor:"bar"==H&&"#eee"},onClick:function(){e.setState({shape:"bar"})}},"柱状图"),l.default.createElement(c.Button,{title:"折线图",style:{height:"36px",backgroundColor:"line"==H&&"#eee"},onClick:function(){e.setState({shape:"line"})}},"折线图")),l.default.createElement("div",{className:"report-select-sort"},l.default.createElement(_.default,{simpleValue:!0,clearable:!1,placeholder:"选择顺序",value:this.state.sort||"default",onChange:function(t){e.setState({sort:t})},options:E}))),m?l.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("img",{src:g,className:"loading"}))):l.default.createElement("div",{style:{height:"565px"}},A.length<=0&&l.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},l.default.createElement("i",{className:"fa fa-warning"})),l.default.createElement("br",null),l.default.createElement("span",null,"抱歉,暂无满足该检索条件的数据。"))),"bar"===H&&A.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.BarChart,{width:.95*n.containerWidth,height:380,barSize:40,data:A,style:{margin:"25px auto"}},l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.Tooltip,null),Y!==b&&b&&l.default.createElement(p.Legend,null),Y!==b&&b?h.default.map(A[0].y||[],function(e,t){return l.default.createElement(p.Bar,{key:t,dataKey:"y_"+t+"_cnt",stackId:"a",name:e.name,fill:T[t%T.length]})}):l.default.createElement(p.Bar,{dataKey:"cnt",name:"个数",fill:"#3b7fc4"}))),"line"===H&&A.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.LineChart,{width:.95*n.containerWidth,height:380,data:A,style:{margin:"25px auto"}},l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.Tooltip,null),Y!==b&&b&&l.default.createElement(p.Legend,null),Y!==b&&b?h.default.map(A[0].y||[],function(e,t){return l.default.createElement(p.Line,{key:t,dataKey:"y_"+t+"_cnt",name:e.name,stroke:T[t%T.length]})}):l.default.createElement(p.Line,{dataKey:"cnt",name:"个数",stroke:"#d04437"}))),"pie"===H&&A.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.PieChart,{width:800,height:380,style:{margin:"25px auto"}},l.default.createElement(p.Pie,{dataKey:"cnt",data:A,cx:400,cy:200,outerRadius:130,label:!0},h.default.map(A,function(e,t){return l.default.createElement(p.Cell,{key:t,fill:T[t%T.length]})})),l.default.createElement(p.Tooltip,null))),A.length>0&&l.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},l.default.createElement("span",null,"注:该图表最多统计满足当前检索条件下的10000条结果。"),Y!=b&&b?l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"维度"),h.default.map(A[0].y,function(e,t){return l.default.createElement("th",{key:t},e.name)}))),l.default.createElement("tbody",null,h.default.map(A,function(t,a){return l.default.createElement("tr",{key:a},l.default.createElement("td",null,t.name),h.default.map(t.y,function(a,n){return l.default.createElement("td",{key:n},l.default.createElement("a",{href:"#",onClick:function(n){n.preventDefault();var r={};r[Y]=t.id,r[b]=a.id,e.gotoIssue(r)}},a.cnt))}))}))):l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,Y?h.default.find(x,{key:Y}).name:""),l.default.createElement("th",null,"个数"))),l.default.createElement("tbody",null,h.default.map(A,function(t,a){return l.default.createElement("tr",{key:a},l.default.createElement("td",null,t.name),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault();var n={};n[Y]=t.id,e.gotoIssue(n)}},t.cnt)))}))))),this.state.saveFilterShow&&l.default.createElement(v.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:s.data||[],options:i,save:L,mode:"issues",query:M,sqlTxt:j,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,issues:u.PropTypes.array.isRequired,issuesLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,gotoIssue:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=L,e.exports=t.default}).call(this)}finally{}},1847:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&(D=(D?D+" | ":"")+"历史解决者~"+t.join(","))}();var S=(0,y.parseQuery)(M,i);S&&(D+=(D?" | ":"")+S)}var x="",j=[];return this.state.stat_dimension?(x="bar",h.default.forEach(u,function(e){var t={};t.category=e.category,t.ones=e.ones||[],t.gt_ones=e.gt_ones||[],t.ones_cnt=e.ones.length,t.gt_ones_cnt=e.gt_ones.length,t.total_cnt=t.ones_cnt+t.gt_ones_cnt,j.push(t)})):(x="pie",u.length>0&&(j.push({name:"一次通过",nos:u[0].ones,cnt:u[0].ones.length}),j.push({name:"大于一次",nos:u[0].gt_ones,cnt:u[0].gt_ones.length}))),l.default.createElement("div",{className:"project-report-container"},l.default.createElement("div",{className:"report-title"},"问题解决回归分布",l.default.createElement(d.Link,{to:"/project/"+r.key+"/report"},l.default.createElement(c.Button,{bsStyle:"link"},"返回"))),l.default.createElement(c.Form,{horizontal:!0,className:"report-filter-form"},l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计维度"),l.default.createElement(c.Col,{sm:3},l.default.createElement(_.default,{simpleValue:!0,placeholder:"请选择",value:this.state.stat_dimension||null,onChange:function(t){e.state.stat_dimension=t,e.search()},options:h.default.map(b,function(e){return{value:e.key,label:e.name}})})),l.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"历史解决者"),l.default.createElement(c.Col,{sm:3},l.default.createElement(_.default,{simpleValue:!0,multi:!0,placeholder:"选择解决者",value:this.state.his_resolvers,onChange:function(t){e.state.his_resolvers=t,e.search()},options:h.default.map(k,function(e){return{value:e.id,label:e.name}})})),l.default.createElement(c.Col,{sm:3},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement(y.IssueFilterList,{values:M,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:i,onChange:function(e){f(e)}}),l.default.createElement("div",{className:"report-conds-style"},D&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:D},l.default.createElement("b",null,"检索条件"),":",D),l.default.createElement("div",{className:"remove-icon",onClick:function(){f({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"})))),m?l.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("img",{src:g,className:"loading"}))):l.default.createElement("div",{style:{height:"565px"}},j.length<=0&&l.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},l.default.createElement("i",{className:"fa fa-warning"})),l.default.createElement("br",null),l.default.createElement("span",null,"抱歉,暂无满足该检索条件的数据。"))),"bar"===x&&j.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.BarChart,{width:.95*n.containerWidth,height:380,barSize:40,data:j,style:{margin:"25px auto"}},l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.XAxis,{dataKey:"category"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.Tooltip,null),l.default.createElement(p.Legend,null),l.default.createElement(p.Bar,{dataKey:"ones_cnt",name:"一次回归",stackId:"a",fill:"#4572A7"}),l.default.createElement(p.Bar,{dataKey:"gt_ones_cnt",name:"大于一次",stackId:"a",fill:"#AA4643"}))),"pie"===x&&j.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.PieChart,{width:800,height:380,style:{margin:"25px auto"}},l.default.createElement(p.Pie,{dataKey:"cnt",data:j,cx:400,cy:200,outerRadius:130,label:!0},l.default.createElement(p.Cell,{fill:"#3b7fc4"}),l.default.createElement(p.Cell,{fill:"#f79232"})),l.default.createElement(p.Tooltip,null))),j.length>0&&l.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},l.default.createElement("span",null,"注:该图表最多统计满足当前检索条件下的10000条结果。"),this.state.stat_dimension&&l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,h.default.find(b,{key:this.state.stat_dimension}).name),l.default.createElement("th",null,"一次回归"),l.default.createElement("th",null,"大于一次"),l.default.createElement("th",null,"一次通过率"))),l.default.createElement("tbody",null,h.default.map(j,function(t,a){return l.default.createElement("tr",{key:a},e.state.stat_dimension&&l.default.createElement("td",null,t.category),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue(t.ones)}},t.ones_cnt)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue(t.gt_ones)}},t.gt_ones_cnt)),l.default.createElement("td",null,h.default.round(t.ones_cnt/t.total_cnt*100,2)+"%"))}))),!this.state.stat_dimension&&l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"一次回归"),l.default.createElement("th",null,"大于一次"),l.default.createElement("th",null,"一次通过率"))),l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue(j[0].nos)}},j[0].cnt)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue(j[1].nos)}},j[1].cnt)),l.default.createElement("td",null,h.default.round(j[0].cnt/(j[0].cnt+j[1].cnt)*100,2)+"%")))))),this.state.saveFilterShow&&l.default.createElement(v.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:s.data||[],options:i,save:L,mode:"regressions",query:M,sqlTxt:D,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,regressions:u.PropTypes.array.isRequired,regressionsLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,gotoIssue:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=L,e.exports=t.default}).call(this)}finally{}},1848:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a")||"-"}}))})))),l.default.createElement(d.Modal.Footer,null,l.default.createElement(d.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1849:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&(s=_.default.max([s,.01])),s=_.default.min([s,1]);var i=a.diff_m<0?_.default.round(a.origin_m/(a.spend_m+a.left_m),2):_.default.round((a.spend_m+a.left_m)/a.origin_m,2);return i=_.default.max([i,0]),i=_.default.min([i,1]),l.default.createElement("div",null,l.default.createElement(d.Table,{style:{marginBottom:"10px"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{width:"10%"},l.default.createElement("span",{style:{fontWeight:600}},"完成度")),l.default.createElement("td",{width:"60%"},l.default.createElement("table",{style:{width:"100%",marginTop:"3px"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{style:{width:_.default.round(100*s)+"%"}},l.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#51a825"}})),l.default.createElement("td",{style:{width:_.default.round(100*(1-s))+"%"}},l.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#ec8e00"}})))))),l.default.createElement("td",{width:"30%"},l.default.createElement("span",null,_.default.round(100*s)+"%"),l.default.createElement("span",{style:{marginLeft:"10px",fontWeight:600}},a.spend," 比 ",(0,c.ttFormat)(a.spend_m+a.left_m,n,r)))),l.default.createElement("tr",null,l.default.createElement("td",{width:"10%"},l.default.createElement("span",{style:{fontWeight:600}},"精准度")),l.default.createElement("td",{width:"60%"},l.default.createElement("table",{style:{width:"100%",marginTop:"3px"}},l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",{style:{width:_.default.round(100*i)+"%"}},l.default.createElement("div",{className:"color-bar"})),l.default.createElement("td",{style:{width:_.default.round(100*(1-i))+"%"}},l.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#ccc"}})))))),l.default.createElement("td",{width:"30%"},l.default.createElement("span",null,_.default.round(100*i)+"%"),l.default.createElement("span",{style:{marginLeft:"10px",fontWeight:600}},a.diff_m<0?(0,c.ttFormat)(a.origin_m,n,r):(0,c.ttFormat)(a.spend_m+a.left_m,n,r)," 比 ",a.diff_m<0?(0,c.ttFormat)(a.spend_m+a.left_m,n,r):(0,c.ttFormat)(a.origin_m,n,r)))))))}}],[{key:"propTypes",value:{options:u.PropTypes.object.isRequired,values:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=p,e.exports=t.default}).call(this)}finally{}},1850:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&O.indexOf(e.id)!==-1||O.length<=0)&&(A.origin_m+=e.origin_m||0,A.spend_m+=e.spend_m||0,A.left_m+=e.left_m||0)}),A.origin=(0,M.ttFormat)(A.origin_m,F,H),A.spend=(0,M.ttFormat)(A.spend_m,F,H),A.left=(0,M.ttFormat)(A.left_m,F,H),A.diff_m=A.origin_m-A.spend_m-A.left_m,A.diff=(0,M.ttFormat)(A.diff_m,F,H);for(var R=[],W=L.length,N=function(t){var a=L[t].state?h.default.findIndex(u,{id:L[t].state}):-1,n="";a!==-1&&(n="state-"+(u[a].category||"")+"-label"),R.push({id:L[t].id,type:l.default.createElement("span",{className:"type-abb",title:h.default.findIndex(f,{id:L[t].type})!==-1?h.default.find(f,{id:L[t].type}).name:""},h.default.findIndex(f,{id:L[t].type})!==-1?h.default.find(f,{id:L[t].type}).abb:"-"),name:l.default.createElement("div",null,L[t].spend_m>0?l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.showDetail(L[t])},style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},l.default.createElement("span",null,L[t].no+" - "+L[t].title)):l.default.createElement("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},L[t].no+" - "+L[t].title)),state:a!==-1?l.default.createElement("span",{className:n},u[a].name||"-"):"-",origin:L[t].origin||"-",spend:L[t].spend||"-",left:L[t].left||"-",diff:L[t].origin?(0,M.ttFormat)(L[t].origin_m-L[t].spend_m-L[t].left_m,F,H):"-"})},I=0;I0&&(V={mode:"checkbox",selected:h.default.filter(this.state.selectedIds,function(e){return"xxx"!==e}),unselectable:["xxx"],onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)},R.push({id:"xxx",type:"",name:"合计",state:"",origin:A.origin,spend:A.spend,left:A.left,diff:A.diff}));var q={};return Y?q.noDataText=l.default.createElement("div",null,l.default.createElement("img",{src:D,className:"loading"})):q.noDataText="暂无数据显示。",l.default.createElement("div",{className:"project-report-container"},l.default.createElement("div",{className:"report-title"},"问题时间跟踪报告",l.default.createElement(d.Link,{to:"/project/"+n.key+"/report"},l.default.createElement(c.Button,{bsStyle:"link"},"返回"))),l.default.createElement(c.Form,{horizontal:!0,className:"report-filter-form"},l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计范围"),l.default.createElement(c.Col,{sm:4},l.default.createElement(_.default,{simpleValue:!0,clearable:!1,placeholder:"请选择",value:this.state.scale,onChange:function(t){e.state.scale=t,e.search()},options:[{value:"all",label:"所有问题"},{value:"only",label:"仅包含有初始预估时间的"}]})),l.default.createElement(c.Col,{sm:7},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement("div",null,l.default.createElement(y.IssueFilterList,{values:x,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:s,onChange:function(e){S(e)}})),l.default.createElement("div",{className:"report-conds-style"},P&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:P},l.default.createElement("b",null,"检索条件"),":",P),l.default.createElement("div",{className:"remove-icon",onClick:function(){S({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"})))),!Y&&L.length>0&&l.default.createElement(k.default,{options:s,values:A}),l.default.createElement("div",{style:{marginBottom:"30px"}},l.default.createElement(p.BootstrapTable,{selectRow:V,data:R,bordered:!1,headerStyle:{backgroundColor:"#fff"},hover:!0,options:q},l.default.createElement(p.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0 },"ID"),l.default.createElement(p.TableHeaderColumn,{dataField:"type",width:"50"},"类型"),l.default.createElement(p.TableHeaderColumn,{dataField:"state",width:"100"},"状态"),l.default.createElement(p.TableHeaderColumn,{dataField:"name"},"名称"),l.default.createElement(p.TableHeaderColumn,{dataField:"origin",width:"120"},"初始预估时间"),l.default.createElement(p.TableHeaderColumn,{dataField:"spend",width:"120"},"耗费时间"),l.default.createElement(p.TableHeaderColumn,{dataField:"left",width:"120"},"剩余时间"),l.default.createElement(p.TableHeaderColumn,{dataField:"diff",width:"120"},"误差")),L.length>0&&l.default.createElement("div",null,l.default.createElement("span",null,"共计 ",R.length," 条"))),this.state.saveFilterShow&&l.default.createElement(g.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:r.data||[],options:s,save:j,mode:"timetrack",query:x,sqlTxt:P,i18n:a}),this.state.detailShow&&l.default.createElement(b.default,{show:!0,options:this.props.options,close:function(){e.setState({detailShow:!1})},issue:this.state.selectedIssue,index:w,data:T,loading:E,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,item:u.PropTypes.array.isRequired,itemLoading:u.PropTypes.bool.isRequired,collection:u.PropTypes.array.isRequired,indexLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1851:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;as?l.trend_start_stat_date:s)+"~"+i:r[e]=s+"~"+i):r[e]=u.stat_time,a(y.default.assign({},y.default.omit(u,["stat_time","interval","is_accu"]),r))}},{key:"search",value:function(){var e=this.props,t=e.query,a=void 0===t?{}:t,n=e.refresh,r=y.default.assign({},a);this.state.stat_time?r.stat_time=this.state.stat_time:delete r.stat_time,r.interval=this.state.interval||"day",r.is_accu="1"===this.state.is_accu?"1":"0",n(r)}},{key:"render",value:function(){var e=this,t=this.props,a=t.i18n,n=t.layout,r=t.project,s=t.filters,i=t.options,o=t.optionsLoading,u=t.trend,_=t.trendLoading,h=t.refresh,v=t.query,L=t.saveFilter,Y={w:"周",m:"月",y:"年"},D="";if(!o){var w=v.stat_time;if(w)if(y.default.endsWith(w,"w")||y.default.endsWith(w,"m")||y.default.endsWith(w,"y")){var T=new RegExp("^(-?)(\\d+)(w|m|y)$");T.exec(w)&&(D="统计时间~"+RegExp.$2+Y[RegExp.$3]+("-"===RegExp.$1?"外":"内"))}else D="统计时间~"+w;D+=" | 是否累计~"+("1"===v.is_accu?"是":"否");var E={day:"天",week:"周",month:"月"},S=v.interval||"day";D+=" | 时间间隔~"+E[S];var x=(0,M.parseQuery)(v,i);D&&x?D+=" | "+x:x&&(D=x)}var j=u;this.state.notWorkingShow||(j=y.default.reject(u,{notWorking:1}));var P=u.length>100||!v.stat_time;return l.default.createElement("div",{className:"project-report-container"},l.default.createElement("div",{className:"report-title"},"问题趋势图",l.default.createElement(d.Link,{to:"/project/"+r.key+"/report"},l.default.createElement(c.Button,{bsStyle:"link"},"返回"))),l.default.createElement(c.Form,{horizontal:!0,className:"report-filter-form"},l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计时间"),l.default.createElement(c.Col,{sm:6},l.default.createElement(g.default,{value:this.state.stat_time,onChange:function(t){e.state.stat_time=t,e.search()}})),l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"统计项"),l.default.createElement(c.Col,{sm:4},l.default.createElement(m.CheckboxGroup,{name:"statItems",value:this.state.statItems,onChange:function(t){e.setState({statItems:t})},style:{marginTop:"8px"}},l.default.createElement("div",{style:{"float":"left"}},l.default.createElement(m.Checkbox,{value:"new",style:{"float":"left"}}),l.default.createElement("span",{style:{marginLeft:"2px"}},"新建的")),l.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},l.default.createElement(m.Checkbox,{value:"resolve"}),l.default.createElement("span",{style:{marginLeft:"2px"}},"已解决的")),l.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},l.default.createElement(m.Checkbox,{value:"close"}),l.default.createElement("span",{style:{marginLeft:"2px"}},"已关闭的"))))),l.default.createElement(c.FormGroup,null,l.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel},"时间间隔"),l.default.createElement(c.Col,{sm:2},l.default.createElement(p.default,{simpleValue:!0,clearable:!1,placeholder:"选择时间间隔",value:this.state.interval,onChange:function(t){e.state.interval=t,e.search()},options:[{value:"day",label:"天"},{value:"week",label:"周"},{value:"month",label:"月"}]})),l.default.createElement(c.Col,{sm:5,componentClass:c.ControlLabel},"是否累计"),l.default.createElement(c.Col,{sm:2},l.default.createElement(c.Radio,{inline:!0,name:"is_accu",onClick:function(){e.state.is_accu="1",e.search()},checked:"1"===this.state.is_accu},"是"),l.default.createElement(c.Radio,{inline:!0,name:"is_accu",onClick:function(){e.state.is_accu="0",e.search()},checked:"1"!==this.state.is_accu},"否")),l.default.createElement(c.Col,{sm:2},l.default.createElement(c.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?l.default.createElement("i",{className:"fa fa-angle-up"}):l.default.createElement("i",{className:"fa fa-angle-down"}))))),l.default.createElement(M.IssueFilterList,{values:v,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],notShowBlocks:["time"],options:i,onChange:function(e){h(e)}}),l.default.createElement("div",{className:"report-conds-style"},v.stat_time&&D&&l.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},l.default.createElement("div",{className:"cond-contents",title:D},l.default.createElement("b",null,"检索条件"),":",D),l.default.createElement("div",{className:"remove-icon",onClick:function(){h({})},title:"清空当前检索"},l.default.createElement("i",{className:"fa fa-remove"})),l.default.createElement("div",{className:"remove-icon",onClick:function(){e.setState({saveFilterShow:!0})},title:"保存当前检索"},l.default.createElement("i",{className:"fa fa-save"}))),l.default.createElement(c.ButtonGroup,{className:"report-shape-buttongroup"},l.default.createElement(c.Button,{title:"柱状图",style:{height:"36px",backgroundColor:"bar"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"bar"})}},"柱状图"),l.default.createElement(c.Button,{title:"面积图",style:{height:"36px",backgroundColor:"area"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"area"})}},"面积图"),l.default.createElement(c.Button,{title:"折线图",style:{height:"36px",backgroundColor:"line"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"line"})}},"折线图")),"day"===this.state.interval&&l.default.createElement("div",{style:{"float":"right"}},l.default.createElement(c.Checkbox,{disabled:_,checked:this.state.notWorkingShow,onClick:function(){e.setState({notWorkingShow:!e.state.notWorkingShow})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"显示非工作日"))),_?l.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("img",{src:b,className:"loading"}))):l.default.createElement("div",{style:{height:"565px"}},P&&l.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},l.default.createElement("div",{style:{textAlign:"center"}},l.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},l.default.createElement("i",{className:"fa fa-warning"})),l.default.createElement("br",null),u.length>100&&l.default.createElement("span",null,"统计结果数据量太大,无法生成统计图,建议您重新选择过滤条件。"),!v.stat_time&&l.default.createElement("span",null,"抱歉,统计时间段不能为空。"))),"bar"===this.state.shape&&!P&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(f.BarChart,{width:.95*n.containerWidth,height:380,barSize:40,data:j,style:{margin:"25px auto"}},l.default.createElement(f.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(f.XAxis,{dataKey:"category"}),l.default.createElement(f.YAxis,null),l.default.createElement(f.Tooltip,null),l.default.createElement(f.Legend,null),this.state.statItems.indexOf("new")!==-1&&l.default.createElement(f.Bar,{dataKey:"new",name:"新建的",stackId:"a",fill:"#4572A7"}),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement(f.Bar,{dataKey:"resolved",name:"已解决的",stackId:"a",fill:"#89A54E"}),this.state.statItems.indexOf("close")!==-1&&l.default.createElement(f.Bar,{dataKey:"closed",name:"已关闭的",stackId:"a",fill:"#AA4643"}))),"line"===this.state.shape&&!P&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(f.LineChart,{width:.95*n.containerWidth,height:380,data:j,style:{margin:"25px auto"}},l.default.createElement(f.XAxis,{dataKey:"category"}),l.default.createElement(f.YAxis,null),l.default.createElement(f.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(f.Tooltip,null),l.default.createElement(f.Legend,null),this.state.statItems.indexOf("new")!==-1&&l.default.createElement(f.Line,{dataKey:"new",name:"新建的",stroke:"#4572A7"}),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement(f.Line,{dataKey:"resolved",name:"已解决的",stroke:"#89A54E"}),this.state.statItems.indexOf("close")!==-1&&l.default.createElement(f.Line,{dataKey:"closed",name:"已关闭的",stroke:"#AA4643"}))),"area"===this.state.shape&&!P&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(f.AreaChart,{width:.95*n.containerWidth,height:380,data:j,style:{margin:"25px auto"}},l.default.createElement("defs",null,this.state.statItems.indexOf("new")!==-1&&l.default.createElement("linearGradient",{id:"colorNew",x1:"0",y1:"0",x2:"0",y2:"1"},l.default.createElement("stop",{offset:"5%",stopColor:"#4572A7",stopOpacity:.8}),l.default.createElement("stop",{offset:"95%",stopColor:"#4572A7",stopOpacity:0})),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement("linearGradient",{id:"colorResolved",x1:"0",y1:"0",x2:"0",y2:"1"},l.default.createElement("stop",{offset:"5%",stopColor:"#89A54E",stopOpacity:.8}),l.default.createElement("stop",{offset:"95%",stopColor:"#89A54E",stopOpacity:0})),this.state.statItems.indexOf("close")!==-1&&l.default.createElement("linearGradient",{id:"colorClosed",x1:"0",y1:"0",x2:"0",y2:"1"},l.default.createElement("stop",{offset:"5%",stopColor:"#AA4643",stopOpacity:.8}),l.default.createElement("stop",{offset:"95%",stopColor:"#AA4643",stopOpacity:0}))),l.default.createElement(f.XAxis,{dataKey:"category"}),l.default.createElement(f.YAxis,null),l.default.createElement(f.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(f.Tooltip,null),l.default.createElement(f.Legend,null),this.state.statItems.indexOf("new")!==-1&&l.default.createElement(f.Area,{dataKey:"new",name:"新建的",fillOpacity:1,stroke:"#4572A7",fill:"url(#colorNew)",type:"monotone"}),this.state.statItems.indexOf("resolve")!==-1&&l.default.createElement(f.Area,{dataKey:"resolved",name:"已解决的",fillOpacity:1,stroke:"#89A54E",fill:"url(#colorResolved)",type:"monotone"}),this.state.statItems.indexOf("close")!==-1&&l.default.createElement(f.Area,{dataKey:"closed",name:"已关闭的",fillOpacity:1,stroke:"#AA4643",fill:"url(#colorClosed)",type:"monotone"}))),!P&&l.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},l.default.createElement("span",null,"注:该图表最多展示100条目。"),l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"时间"),l.default.createElement("th",null,"新建的"),l.default.createElement("th",null,"已解决的"),l.default.createElement("th",null,"已关闭的"))),l.default.createElement("tbody",null,y.default.map(u,function(t,a){return l.default.createElement("tr",{key:a},l.default.createElement("td",null,t.category),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("created_at","sub",t.category)}},t.new)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("resolved_at","sub",t.category)}},t.resolved)),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("closed_at","sub",t.category)}},t.closed)))}),"0"===this.state.is_accu&&l.default.createElement("tr",null,l.default.createElement("td",null,"合计"),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("created_at","total")}},y.default.reduce(u,function(e,t){return e+t.new},0))),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("resolved_at","total")}},y.default.reduce(u,function(e,t){return e+t.resolved},0))),l.default.createElement("td",null,l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("closed_at","total")}},y.default.reduce(u,function(e,t){return e+t.closed},0)))))))),this.state.saveFilterShow&&l.default.createElement(k.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:s.data||[],options:i,save:L,mode:"trend",query:v,sqlTxt:D,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,trend:u.PropTypes.array.isRequired,trendLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,gotoIssue:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=D,e.exports=t.default}).call(this)}finally{}},1852:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a")||"-"}}))})))),l.default.createElement(d.Modal.Footer,null,l.default.createElement(d.Checkbox,{checked:this.state.showAll,onClick:function(){e.setState({showAll:!e.state.showAll})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"显示该问题全部工作日志"),l.default.createElement(d.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,showedUser:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired,issue:u.PropTypes.object.isRequired,index:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1853:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&l.default.createElement("div",{style:{"float":"left"}},l.default.createElement("span",null,"共计 ",T.length," 条")),this.state.detailShow&&l.default.createElement(p.default,{show:!0,options:this.props.options,close:function(){e.setState({detailShow:!1})},showedUser:L,query:n,issue:this.state.selectedIssue,index:k,data:Y,loading:b,i18n:a}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,showedUser:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,collection:u.PropTypes.array.isRequired,item:u.PropTypes.object.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},1854:function(e,t,a){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a0&&l.default.createElement("div",{style:{marginLeft:"10px","float":"right"}},"注:图表耗费时间值是以分钟(m)为单位"),"pie"===this.state.shape&&H.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.PieChart,{width:800,height:380,style:{margin:"25px auto"}},l.default.createElement(p.Pie,{dataKey:"value",data:H,cx:400,cy:200,outerRadius:130,label:!0},H.map(function(e,a){return l.default.createElement(p.Cell,{key:a,fill:t[a%t.length]})})),l.default.createElement(p.Tooltip,{formatter:function(e){return(0,b.ttFormat)(e,C,O)}}))),"bar"===this.state.shape&&H.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.BarChart,{width:.95*s.containerWidth,height:380,data:H,barSize:40,style:{margin:"25px auto"}},l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.Tooltip,{formatter:function(e){return(0,b.ttFormat)(e,C,O)}}),l.default.createElement(p.Bar,{name:"工时",stackId:"a",dataKey:"value",fill:"#3b7fc4"}))),"line"===this.state.shape&&H.length>0&&l.default.createElement("div",{className:"report-shape-container"},l.default.createElement(p.LineChart,{width:.95*s.containerWidth,height:380,data:H,style:{margin:"25px auto"}},l.default.createElement(p.XAxis,{dataKey:"name"}),l.default.createElement(p.YAxis,null),l.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),l.default.createElement(p.Tooltip,{formatter:function(e){return(0,b.ttFormat)(e,C,O)}}),l.default.createElement(p.Line,{name:"工时",dataKey:"value",stroke:"#d04437"}))),H.length>0&&l.default.createElement("div",{style:{"float":"left",width:"100%"}},l.default.createElement(c.Table,{responsive:!0,bordered:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"总计"),h.default.map(H,function(e,t){return l.default.createElement("th",{key:t},e.name)}))),l.default.createElement("tbody",null,l.default.createElement("tr",null,l.default.createElement("td",null,(0,b.ttFormat)(h.default.reduce(H,function(e,t){return e+t.value},0),C,O)),h.default.map(H,function(t,a){return"others"===t.id||t.id==e.state.showedUser.id?l.default.createElement("td",{key:a},(0,b.ttFormat)(t.value,C,O)):l.default.createElement("td",{key:a},l.default.createElement("a",{href:"#workloglist",onClick:function(a){e.showList({id:t.id,name:t.name})}},(0,b.ttFormat)(t.value,C,O)))})))))),this.state.worklogListShow&&l.default.createElement("div",{id:"workloglist",style:{"float":"left",width:"100%",textAlign:"center",margin:"15px 0px 30px 0px"}},l.default.createElement("span",{style:{fontWeight:"600"}},this.state.showedUser.name||""," - 工作日志"),l.default.createElement("span",{title:"刷新",onClick:this.refreshList},l.default.createElement(c.Button,{bsStyle:"link",disabled:w},l.default.createElement("i",{className:"fa fa-refresh"}))),l.default.createElement(Y.default,{show:!0,showedUser:this.state.showedUser,query:j,options:u,index:g,collection:k,indexLoading:w,select:T,item:E,itemLoading:S,i18n:r})),this.state.saveFilterShow&&l.default.createElement(L.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:o.worklog||[],options:u,save:P,mode:"worklog",query:j,sqlTxt:R,i18n:r}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,filters:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,optionsLoading:u.PropTypes.bool.isRequired,query:u.PropTypes.object,worklog:u.PropTypes.array.isRequired,worklogLoading:u.PropTypes.bool.isRequired,getWorklogList:u.PropTypes.func.isRequired,worklogList:u.PropTypes.array.isRequired,worklogListLoading:u.PropTypes.bool.isRequired,getWorklogDetail:u.PropTypes.func.isRequired,worklogDetail:u.PropTypes.object.isRequired,worklogDetailLoading:u.PropTypes.bool.isRequired,refresh:u.PropTypes.func.isRequired,saveFilter:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1966:function(e,t,a){try{(function(){"use strict";function e(e){return(0,f.asyncFuncCreator)({constant:"REPORT_LIST_GET",promise:function(t){return t.request({url:"/project/"+e+"/report/index"})}})}function n(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_FILTER_RESET",mode:t,promise:function(a){return a.request({url:"/project/"+e+"/report/"+t+"/filters/reset"})}})}function r(e,t,a){return(0,f.asyncFuncCreator)({constant:"REPORT_FILTER_EDIT",mode:t,promise:function(n){return n.request({url:"/project/"+e+"/report/"+t+"/filters",method:"post",data:a})}})}function s(e,t,a){return(0,f.asyncFuncCreator)({constant:"REPORT_FILTER_SAVE",mode:t,promise:function(n){return n.request({url:"/project/"+e+"/report/"+t+"/filter",method:"post",data:a})}})}function i(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_WORKLOG_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/worklog"+(t?"?"+t:"")})}})}function o(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_WORKLOG_LIST_GET",promise:function(a){return a.request({url:"/project/"+e+"/report/worklog/list"+(t?"?"+t:"")})}})}function u(e,t,a){return(0,f.asyncFuncCreator)({constant:"REPORT_WORKLOG_DETAIL_GET",promise:function(n){return n.request({url:"/project/"+e+"/report/worklog/issue/"+t+(a?"?"+a:"")})}})}function l(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_TREND_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/trend"+(t?"?"+t:"")})}})}function d(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_TIMETRACKS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/timetracks"+(t?"?"+t:"")})}})}function c(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_TIMETRACKS_DETAIL_GET",promise:function(a){return a.request({url:"/project/"+e+"/report/timetracks/issue/"+t})}})}function m(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_REGRESSIONS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/regressions"+(t?"?"+t:"")})}})}function _(e,t){return(0,f.asyncFuncCreator)({constant:"REPORT_ISSUES_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/issues"+(t?"?"+t:"")})}})}function p(e){return(0,f.asyncFuncCreator)({constant:"REPORT_OPTIONS",promise:function(t){return t.request({url:"/project/"+e+"/issue/options"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.resetFilter=n,t.editFilter=r,t.saveFilter=s,t.worklog=i,t.getWorklogList=o,t.getWorklogDetail=u,t.trend=l,t.timetracks=d,t.getTimetrackDetail=c,t.regressions=m,t.issues=_,t.getOptions=p;var f=a(44)}).call(this)}finally{}}}); -//# sourceMappingURL=report-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=report-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/resolution-e84984431a143be0907e.js b/public/assets/resolution-84397989593b11928a6a.js similarity index 99% rename from public/assets/resolution-e84984431a143be0907e.js rename to public/assets/resolution-84397989593b11928a6a.js index b8436c7db..28a8e488c 100644 --- a/public/assets/resolution-e84984431a143be0907e.js +++ b/public/assets/resolution-84397989593b11928a6a.js @@ -1,4 +1,4 @@ webpackJsonp([14],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;ti.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var r=0;ro&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var r=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:r,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(r=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:r,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,a=(0,E.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,E.default)((n={},r(n,this._instancePrefix+"-list",s),r(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=i({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,E.default)(r({},this._instancePrefix+"-list",s));return l.default.createElement("div",i({},f,{role:"combobox","aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(y.default,i({},p,{minWidth:"5"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var r=e[n]===o[n];return r&&(u=t),r}),u!==-1)return u}for(var r=0;r-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var r=String(e[o.valueKey]),i=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(r=(0,a.default)(r)),"value"!==o.matchProp&&(i=(0,a.default)(i))),o.ignoreCase&&("label"!==o.matchProp&&(r=r.toLowerCase()),"value"!==o.matchProp&&(i=i.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&r.substr(0,t.length)===t||"value"!==o.matchProp&&i.substr(0,t.length)===t:"label"!==o.matchProp&&r.indexOf(t)>=0||"value"!==o.matchProp&&i.indexOf(t)>=0})}var r=n(22),a=o(r);e.exports=u},21:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,r=e.optionClassName,i=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=i;return c.map(function(e,i){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,a.default)(r,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return s.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+i+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:i,ref:function(e){f(e,m)}},l(e,i))})}var r=n(10),a=o(r),i=n(1),s=o(i);e.exports=u},22:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e){return f.default.createElement(E.default,e)}function a(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function i(e){var t=e.label;return!!t}function s(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:a,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var r=Object.assign||function(e){for(var t=1;tu&&s>a||(e.moveCard(o,u),t.getItem().index=u)}}},m=function(e){function t(){u(this,n),i(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}r(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,o=e.connectDragSource,u=e.connectDropTarget,r=e.deleteCard,a=n?0:1,i={"float":"right",cursor:"pointer"};return o(u(l.default.createElement("div",{style:{opacity:a},className:"dragcard"},t,!!r&&l.default.createElement("span",{style:i,onClick:r,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,id:s.PropTypes.any.isRequired,text:s.PropTypes.string.isRequired,deleteCard:s.PropTypes.func,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(d.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(d.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},208:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"),l.default.createElement("th",null,"问题个数"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key+"/issue?resolution="+(n.key||n.id)},e.issue_count||0)):l.default.createElement("span",null,e.issue_count||0)))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,view:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired,projects:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},1967:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/resolution"})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/resolution",method:"post",data:t})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/resolution/"+t.id,method:"put",data:t})}})}function r(e){return{type:"RESOLUTION_SELECT",id:e}}function a(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/resolution/"+t,method:"delete"})}})}function i(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_SET_SORT",promise:function(n){return n.request({url:"/project/"+e+"/resolution/batch",method:"post",data:t})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_SET_DEFAULT",promise:function(n){return n.request({url:"/project/"+e+"/resolution/batch",method:"post",data:t})}})}function l(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/resolution/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=u,t.select=r,t.del=a,t.setSort=i,t.setDefault=s,t.viewUsed=l;var c=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=resolution-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=resolution-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/role-e84984431a143be0907e.js b/public/assets/role-84397989593b11928a6a.js similarity index 99% rename from public/assets/role-e84984431a143be0907e.js rename to public/assets/role-84397989593b11928a6a.js index f3db33840..192f2a314 100644 --- a/public/assets/role-e84984431a143be0907e.js +++ b/public/assets/role-84397989593b11928a6a.js @@ -1,4 +1,4 @@ webpackJsonp([22],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tr.bottom||s.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var i=0;io&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(i=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,s=(0,E.default)("Select-input",this.props.inputProps.className),a=!!this.state.isOpen,c=(0,E.default)((n={},i(n,this._instancePrefix+"-list",a),i(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=r({},this.props.inputProps,{role:"combobox","aria-expanded":""+a,"aria-owns":c,"aria-haspopup":""+a,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:s,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,E.default)(i({},this._instancePrefix+"-list",a));return l.default.createElement("div",r({},f,{role:"combobox","aria-expanded":a,"aria-owns":h,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:s,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(y.default,r({},p,{minWidth:"5"})):l.default.createElement("div",{className:s},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return s(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:s(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var i=e[n]===o[n];return i&&(u=t),i}),u!==-1)return u}for(var i=0;i-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var i=String(e[o.valueKey]),r=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(i=(0,s.default)(i)),"value"!==o.matchProp&&(r=(0,s.default)(r))),o.ignoreCase&&("label"!==o.matchProp&&(i=i.toLowerCase()),"value"!==o.matchProp&&(r=r.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&i.substr(0,t.length)===t||"value"!==o.matchProp&&r.substr(0,t.length)===t:"label"!==o.matchProp&&i.indexOf(t)>=0||"value"!==o.matchProp&&r.indexOf(t)>=0})}var i=n(22),s=o(i);e.exports=u},21:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,i=e.optionClassName,r=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=r;return c.map(function(e,r){var c=p&&p.indexOf(e)>-1,m=e===t,v=(0,s.default)(i,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return a.default.createElement(h,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+r+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:r,ref:function(e){f(e,m)}},l(e,r))})}var i=n(10),s=o(i),r=n(1),a=o(r);e.exports=u},22:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e){return f.default.createElement(E.default,e)}function s(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function r(e){var t=e.label;return!!t}function a(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(a({},this.props,l,{isLoading:s,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var i=Object.assign||function(e){for(var t=1;t0?l.default.createElement("span",null,m.default.map(s,function(e){return l.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},l.default.createElement(p.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))})):l.default.createElement("span",null,l.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")),l.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:e.willSetPermissions.bind(e,u[t].id)},l.default.createElement("i",{className:"fa fa-pencil"})))):l.default.createElement("div",null,l.default.createElement(f.default,{multi:!0,clearable:!1,searchable:!1,disabled:m.default.indexOf(A,u[t].id)!==-1&&!0,options:m.default.map(T,function(e){return{value:e.id,label:e.name}}),value:e.state.permissions[u[t].id]||u[t].permissions,onChange:e.handlePermissionSelectChange.bind(e,u[t].id),placeholder:"请选择相应权限"}),l.default.createElement("div",{className:m.default.indexOf(A,u[t].id)!==-1?"hide":"",style:{"float":"right"}},l.default.createElement(p.Button,{className:"edit-ok-button",onClick:e.setPermissions.bind(e,u[t].id)},l.default.createElement("i",{className:"fa fa-check"})),l.default.createElement(p.Button,{className:"edit-cancel-button",onClick:e.cancelSetPermissions.bind(e,u[t].id)},l.default.createElement("i",{className:"fa fa-close"})))),l.default.createElement("img",{src:C,style:{"float":"right"},className:m.default.indexOf(A,u[t].id)!==-1?"loading":"hide"})),operation:l.default.createElement("div",null,_&&D===u[t].id&&!a&&l.default.createElement(p.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:t,title:R,id:"dropdown-basic-"+t,onSelect:e.operateSelect.bind(e)},!n&&l.default.createElement(p.MenuItem,{eventKey:"1"},"编辑"),"$_sys_$"===u[t].project_key&&l.default.createElement(p.MenuItem,{eventKey:"4"},"查看项目应用"),!n&&!u[t].is_used&&l.default.createElement(p.MenuItem,{eventKey:"2"},"删除"),n&&l.default.createElement(p.MenuItem,{eventKey:"3"},"重置权限")),l.default.createElement("img",{src:C,className:a&&i.id===u[t].id?"loading":"hide"}))})},k=0;k0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key+"/team"},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:a.PropTypes.func.isRequired,view:a.PropTypes.func.isRequired,loading:a.PropTypes.bool.isRequired,data:a.PropTypes.object.isRequired,projects:a.PropTypes.array.isRequired},enumerable:!0}]),t}(a.Component);t.default=m,e.exports=t.default}).call(this)}finally{}}}); -//# sourceMappingURL=role-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=role-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/screen-e84984431a143be0907e.js b/public/assets/screen-84397989593b11928a6a.js similarity index 99% rename from public/assets/screen-e84984431a143be0907e.js rename to public/assets/screen-84397989593b11928a6a.js index c5915ae32..27151b419 100644 --- a/public/assets/screen-e84984431a143be0907e.js +++ b/public/assets/screen-84397989593b11928a6a.js @@ -3,4 +3,4 @@ newOptionCreator:s,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},cre function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return _.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:(0,O.toArrayChildren)(r(n.props))},n.childrenRefs={},n}return(0,y.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=(0,O.toArrayChildren)(r(e)),o=this.props;o.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var a=o.showProp,i=this.currentlyAnimatingKeys,u=o.exclusive?(0,O.toArrayChildren)(r(o)):this.state.children,s=[];a?(u.forEach(function(e){var t=e&&(0,O.findChildInChildrenByKey)(n,e.key),o=void 0;o=t&&t.props[a]||!e.props[a]?t:E.default.cloneElement(t||e,(0,l.default)({},a,!0)),o&&s.push(o)}),n.forEach(function(e){e&&(0,O.findChildInChildrenByKey)(u,e.key)||s.push(e)})):s=(0,O.mergeChildren)(u,n),this.setState({children:s}),n.forEach(function(e){var n=e&&e.key;if(!e||!i[n]){var o=e&&(0,O.findChildInChildrenByKey)(u,n);if(a){var r=e.props[a];if(o){var s=(0,O.findShownChildInChildrenByKey)(u,n,a);!s&&r&&t.keysToEnter.push(n)}else r&&t.keysToEnter.push(n)}else o||t.keysToEnter.push(n)}}),u.forEach(function(e){var o=e&&e.key;if(!e||!i[o]){var r=e&&(0,O.findChildInChildrenByKey)(n,o);if(a){var u=e.props[a];if(r){var s=(0,O.findShownChildInChildrenByKey)(n,o,a);!s&&u&&t.keysToLeave.push(o)}else u&&t.keysToLeave.push(o)}else r||t.keysToLeave.push(o)}})}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?(0,O.findShownChildInChildrenByKey)(e,t,n):(0,O.findChildInChildrenByKey)(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,o=null;n&&(o=n.map(function(n){if(null===n||void 0===n)return n;if(!n.key)throw new Error("must set key for children");return E.default.createElement(T.default,{key:n.key,ref:function(t){return e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var r=t.component;if(r){var a=t;return"string"==typeof r&&(a=(0,u.default)({className:t.className,style:t.style},t.componentProps)),E.default.createElement(r,a,o)}return o[0]||null}}]),t}(E.default.Component);A.propTypes={component:C.default.any,componentProps:C.default.object,animation:C.default.object,transitionName:C.default.oneOfType([C.default.string,C.default.object]),transitionEnter:C.default.bool,transitionAppear:C.default.bool,exclusive:C.default.bool,transitionLeave:C.default.bool,onEnd:C.default.func,onEnter:C.default.func,onLeave:C.default.func,onAppear:C.default.func,showProp:C.default.string},A.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:a,onEnter:a,onLeave:a,onAppear:a};var _=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var o=e.props;if(delete e.currentlyAnimatingKeys[t],!o.exclusive||o===e.nextProps){var a=(0,O.toArrayChildren)(r(o));e.isValidChildByKey(a,t)?"appear"===n?F.default.allowAppearCallback(o)&&(o.onAppear(t),o.onEnd(t,!0)):F.default.allowEnterCallback(o)&&(o.onEnter(t),o.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var o=(0,O.toArrayChildren)(r(n));if(e.isValidChildByKey(o,t))e.performEnter(t);else{var a=function(){F.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,O.isSameChildren)(e.state.children,o,n.showProp)?a():e.setState({children:o},a)}}}};t.default=A,e.exports=t.default},364:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(235),a=o(r),i=n(12),u=o(i),s=n(253),l=o(s),c=n(14),d=o(c),p=n(13),f=o(p),h=n(1),m=o(h),v=n(11),y=o(v),b=n(9),E=o(b),g=n(358),C=o(g),O=n(260),w=o(O),T={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},P=function(e){function t(){return(0,u.default)(this,t),(0,d.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){w.default.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){w.default.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){w.default.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,o=y.default.findDOMNode(this),r=this.props,i=r.transitionName,u="object"===("undefined"==typeof i?"undefined":(0,a.default)(i));this.stop();var s=function(){n.stopper=null,t()};if((g.isCssAnimationSupported||!r.animation[e])&&i&&r[T[e]]){var l=u?i[e]:i+"-"+e,c=l+"-active";u&&i[e+"Active"]&&(c=i[e+"Active"]),this.stopper=(0,C.default)(o,{name:l,active:c},s)}else this.stopper=r.animation[e](o,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(m.default.Component);P.propTypes={children:E.default.any},t.default=P,e.exports=t.default},365:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=[];return d.default.Children.forEach(e,function(e){t.push(e)}),t}function a(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function i(e,t,n){var o=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(o)throw new Error("two child with same key for children");o=e}}),o}function u(e,t,n){var o=0;return e&&e.forEach(function(e){o||(o=e&&e.key===t&&!e.props[n])}),o}function s(e,t,n){var o=e.length===t.length;return o&&e.forEach(function(e,r){var a=t[r];e&&a&&(e&&!a||!e&&a?o=!1:e.key!==a.key?o=!1:n&&e.props[n]!==a.props[n]&&(o=!1))}),o}function l(e,t){var n=[],o={},r=[];return e.forEach(function(e){e&&a(t,e.key)?r.length&&(o[e.key]=r,r=[]):r.push(e)}),t.forEach(function(e){e&&o.hasOwnProperty(e.key)&&(n=n.concat(o[e.key])),n.push(e)}),n=n.concat(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=r,t.findChildInChildrenByKey=a,t.findShownChildInChildrenByKey=i,t.findHiddenChildInChildrenByKey=u,t.isSameChildren=s,t.mergeChildren=l;var c=n(1),d=o(c)},366:function(e,t,n){"use strict";function o(e){var t=e.refs,n=t.nav,o=(0,r.offset)(n),a=t.inkBar,i=t.activeTab,u=e.props.tabPosition;if(i){var s=i,l=(0,r.offset)(s),c=(0,r.getTransformPropertyName)();if("top"===u||"bottom"===u){var d=l.left-o.left;c?(a.style[c]="translate3d("+d+"px,0,0)",a.style.width=s.offsetWidth+"px",a.style.height=""):(a.style.left=d+"px",a.style.top="",a.style.bottom="",a.style.right=n.offsetWidth-d-s.offsetWidth+"px")}else{var p=l.top-o.top;c?(a.style[c]="translate3d(0,"+p+"px,0)",a.style.height=s.offsetHeight+"px",a.style.width=""):(a.style.left="",a.style.right="",a.style.top=p+"px",a.style.bottom=n.offsetHeight-p-s.offsetHeight+"px")}}a.style.display=i?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var r=n(262);t.default={componentDidUpdate:function(){o(this)},componentDidMount:function(){o(this)}},e.exports=t.default},367:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={LEFT:37,UP:38,RIGHT:39,DOWN:40},e.exports=t.default},368:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0?(c=!1,this.setOffset(0),u=0):su?(a+=i-u,this.setState({offset:a})):i+ri?"backward":"forward";this.setState({activeKey:e,tabMovingDirection:s})}else this.setState({activeKey:e})},render:function(){var e,t=this.props,n=t.destroyInactiveTabPane,o=t.prefixCls,a=t.tabPosition,i=t.className,u=t.animation,l=(0,b.default)((e={},r(e,o,1),r(e,o+"-"+a,1),r(e,i,!!i),e)),c=this.state.tabMovingDirection,d=this.getTabPanes(),p=void 0;p=t.transitionName&&t.transitionName[c||"backward"],!p&&u&&(p=o+"-"+u+"-"+(c||"backward")),n&&(d=d.filter(function(e){return e.props.active})),p&&(d=n?s.default.createElement(v.default,{exclusive:!0,component:"div",transitionName:p},d):s.default.createElement(v.default,{showProp:"active",exclusive:!0,component:"div",transitionName:p},d));var f=[s.default.createElement(h.default,{prefixCls:o,key:"nav",onKeyDown:this.onNavKeyDown,tabBarExtraContent:this.props.tabBarExtraContent,tabPosition:a,style:t.navStyle,onTabClick:this.onTabClick,tabMovingDirection:c,panels:this.props.children,activeKey:this.state.activeKey}),s.default.createElement("div",{className:o+"-content",style:t.contentStyle,key:"content"},d)];return"bottom"===a&&f.reverse(),s.default.createElement("div",{className:l,style:t.style},f)}});E.TabPane=p.default,t.default=E,e.exports=t.default},370:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TabPane=t.default=void 0;var r=n(369),a=o(r),i=n(261),u=o(i);t.default=a.default,t.TabPane=u.default},586:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n>"),c.default.createElement("div",{style:{"float":"right",marginTop:"15px"}},'注意:如果此页面将作为问题的创建或编辑页面,首先应将 "主题" 字段添加到列表,且将其设置为必填字段。')),c.default.createElement(p.Col,{sm:6},y.length>0&&c.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变显示顺序。"),y.length>0?y.map(function(t,n){return c.default.createElement(F.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:e.deleteCard.bind(e,n)})}):c.default.createElement("p",null,"界面列表为空。")))))),c.default.createElement(b.TabPane,{tab:"必填字段",key:"3"},c.default.createElement("div",{style:{paddingTop:"15px"}},c.default.createElement(p.FormGroup,{controlId:"formControlsSelect"},c.default.createElement(p.ControlLabel,null,"必填字段"),c.default.createElement(h.default,{simpleValue:!0,options:O,clearable:!1,value:u.value,onChange:function(e){u.onChange(e)},placeholder:"选择必填字段(可多选)",multi:!0})))))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!d&&n[this.state.ecode]),c.default.createElement("img",{src:x,className:d?"loading":"hide"}),c.default.createElement(p.Button,{disabled:d||l,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:d,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,submitting:l.PropTypes.bool,invalid:l.PropTypes.bool,values:l.PropTypes.object,fields:l.PropTypes.object,options:l.PropTypes.object,handleSubmit:l.PropTypes.func.isRequired,close:l.PropTypes.func.isRequired,create:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,g.DragDropContext)(O.default)(t)||t,t=(0,d.reduxForm)({form:"screen",fields:["name","description","required_fields"],validate:A})(t)||t}(l.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1873:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n>"),l.default.createElement("div",{style:{"float":"right",marginTop:"15px"}},'注意:如果此页面将作为问题的创建或编辑页面,首先应将 "主题" 字段添加到列表,且将其设置为必填字段。')),l.default.createElement(c.Col,{sm:6},n.length>0&&l.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变显示顺序。"),n.length>0?n.map(function(t,n){return l.default.createElement(y.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:e.deleteCard.bind(e,n)})}):l.default.createElement("p",null,"界面列表为空。"))))),l.default.createElement(c.Modal.Footer,null,l.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!u&&i[this.state.ecode]),l.default.createElement("img",{src:w,className:u?"loading":"hide"}),l.default.createElement(c.Button,{disabled:u||o==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),l.default.createElement(c.Button,{bsStyle:"link",disabled:u,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool,config:s.PropTypes.func.isRequired,data:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragDropContext)(f.default)(t)||t}(s.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},1877:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"),l.default.createElement("th",null,"问题类型"),l.default.createElement("th",null,"工作流"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.types)?"-":f.default.map(e.types,function(t,n){return l.default.createElement("li",{key:n},l.default.createElement(d.Link,{to:"/project/"+e.key+"/type"},t.name))}))):l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.types)?"-":f.default.map(e.types,function(e,t){return l.default.createElement("li",{key:t},e.name)})))),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(t,n){return l.default.createElement("li",{key:n},l.default.createElement(d.Link,{to:"/project/"+e.key+"/workflow/"+t.id},t.name))}))):l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(e,t){return l.default.createElement("li",{key:t},e.name)})))))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,view:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired,projects:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},1969:function(e,t,n){try{(function(){"use strict";function e(e){return(0,s.asyncFuncCreator)({constant:"SCREEN_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/screen"})}})}function o(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/screen",method:"post",data:t})}})}function r(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/screen/"+t.id,method:"put",data:t})}})}function a(e){return{type:"SCREEN_SELECT",id:e}}function i(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/screen/"+t,method:"delete"})}})}function u(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/screen/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=r,t.select=a,t.del=i,t.viewUsed=u;var s=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=screen-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=screen-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/state-e84984431a143be0907e.js b/public/assets/state-84397989593b11928a6a.js similarity index 99% rename from public/assets/state-e84984431a143be0907e.js rename to public/assets/state-84397989593b11928a6a.js index ac80e73e3..dbadacacf 100644 --- a/public/assets/state-e84984431a143be0907e.js +++ b/public/assets/state-84397989593b11928a6a.js @@ -1,4 +1,4 @@ webpackJsonp([13],{7:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;ti.bottom||a.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,o="object"==typeof t?t:this.props;if(o.multi){if("string"==typeof e&&(e=e.split(o.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,o)}).filter(function(e){return e})}var u=this.expandValue(e,o);return u?[u]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var o=t.options,u=t.valueKey;if(o)for(var r=0;ro&&this.focusOption(n[o+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,o=0;o0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var u=n-this.props.pageSize;n=u<0?0:u}else if("page_down"===e){var u=n+this.props.pageSize;n=u>t.length-1?t.length-1:u}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,o=this.props.valueRenderer||this.getOptionLabel,u=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var r=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(u,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:r,onRemove:n.removeValue,value:e},o(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(r=null),l.default.createElement(u,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:r,value:e[0]},o(e[0])))},renderInput:function(e,t){var n,o=this,a=(0,E.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,E.default)((n={},r(n,this._instancePrefix+"-list",s),r(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=i({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,u(d,["inputClassName"])),h=(0,E.default)(r({},this._instancePrefix+"-list",s));return l.default.createElement("div",i({},f,{role:"combobox","aria-expanded":s,"aria-owns":h,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(v.default,i({},p,{minWidth:"5"})):l.default.createElement("div",{className:a},l.default.createElement("input",p))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function K(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var K="function"==typeof this.props.filterOptions?this.props.filterOptions:w.default;return K(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return a(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:a(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,o=this.state.focusedOption||e;if(o&&!o.disabled){var u=-1;if(t.some(function(e,t){var r=e[n]===o[n];return r&&(u=t),r}),u!==-1)return u}for(var r=0;r-1)return!1;if(o.filterOption)return o.filterOption.call(u,e,t);if(!t)return!0;var r=String(e[o.valueKey]),i=String(e[o.labelKey]);return o.ignoreAccents&&("label"!==o.matchProp&&(r=(0,a.default)(r)),"value"!==o.matchProp&&(i=(0,a.default)(i))),o.ignoreCase&&("label"!==o.matchProp&&(r=r.toLowerCase()),"value"!==o.matchProp&&(i=i.toLowerCase())),"start"===o.matchPos?"label"!==o.matchProp&&r.substr(0,t.length)===t||"value"!==o.matchProp&&i.substr(0,t.length)===t:"label"!==o.matchProp&&r.indexOf(t)>=0||"value"!==o.matchProp&&i.indexOf(t)>=0})}var r=n(22),a=o(r);e.exports=u},21:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=e.focusedOption,n=e.instancePrefix,o=(e.labelKey,e.onFocus),u=e.onSelect,r=e.optionClassName,i=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=i;return c.map(function(e,i){var c=p&&p.indexOf(e)>-1,m=e===t,y=(0,a.default)(r,{"Select-option":!0,"is-selected":c,"is-focused":m,"is-disabled":e.disabled});return s.default.createElement(h,{className:y,instancePrefix:n,isDisabled:e.disabled,isFocused:m,isSelected:c,key:"option-"+i+"-"+e[d],onFocus:o,onSelect:u,option:e,optionIndex:i,ref:function(e){f(e,m)}},l(e,i))})}var r=n(10),a=o(r),i=n(1),s=o(i);e.exports=u},22:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e){return f.default.createElement(E.default,e)}function a(e){var t=e.option,n=e.options,o=e.labelKey,u=e.valueKey;return 0===n.filter(function(e){return e[o]===t[o]||e[u]===t[u]}).length}function i(e){var t=e.label;return!!t}function s(e){var t=e.label,n=e.labelKey,o=e.valueKey,u={};return u[o]=t,u[n]=t,u.className="Select-create-option-placeholder",u}function l(e){return'Create option "'+e+'"'}function c(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:a,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=O,O.propTypes=E,O.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var r=Object.assign||function(e){for(var t=1;tu&&s>a||(e.moveCard(o,u),t.getItem().index=u)}}},m=function(e){function t(){u(this,n),i(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}r(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,o=e.connectDragSource,u=e.connectDropTarget,r=e.deleteCard,a=n?0:1,i={"float":"right",cursor:"pointer"};return o(u(l.default.createElement("div",{style:{opacity:a},className:"dragcard"},t,!!r&&l.default.createElement("span",{style:i,onClick:r,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,id:s.PropTypes.any.isRequired,text:s.PropTypes.string.isRequired,deleteCard:s.PropTypes.func,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(d.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(d.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},208:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n0?l.default.createElement("span",null,"共有应用项目 ",l.default.createElement("strong",null,t.length)," 个"):l.default.createElement("span",null,"暂无项目应用")),!o&&t.length>0&&l.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},l.default.createElement("thead",null,l.default.createElement("tr",null,l.default.createElement("th",null,"项目名称"),l.default.createElement("th",null,"问题个数"),l.default.createElement("th",null,"工作流"))),l.default.createElement("tbody",null,f.default.map(t,function(e,t){return l.default.createElement("tr",{key:t},l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key},e.name)):l.default.createElement("span",null,e.name,"(已关闭)")),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement(p.Link,{to:"/project/"+e.key+"/issue?state="+(n.key||n.id)},e.issue_count||0)):l.default.createElement("span",null,e.issue_count||0)),l.default.createElement("td",null,"active"===e.status?l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(t,n){return l.default.createElement("li",{key:n},l.default.createElement(p.Link,{to:"/project/"+e.key+"/workflow/"+t.id},t.name))}))):l.default.createElement("span",null,l.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.workflows)?"-":f.default.map(e.workflows,function(e,t){return l.default.createElement("li",{key:t},e.name)})))))})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,view:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired,projects:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},1970:function(e,t,n){try{(function(){"use strict";function e(e){return(0,l.asyncFuncCreator)({constant:"STATE_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/state"})}})}function o(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/state",method:"post",data:t})}})}function u(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/state/"+t.id,method:"put",data:t})}})}function r(e){return{type:"STATE_SELECT",id:e}}function a(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/state/"+t,method:"delete"})}})}function i(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_SET_SORT",promise:function(n){return n.request({url:"/project/"+e+"/state/batch",method:"post",data:t})}})}function s(e,t){return(0,l.asyncFuncCreator)({constant:"STATE_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/state/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=u,t.select=r,t.del=a,t.setSort=i,t.viewUsed=s;var l=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=state-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=state-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/summary-e84984431a143be0907e.js b/public/assets/summary-84397989593b11928a6a.js similarity index 99% rename from public/assets/summary-e84984431a143be0907e.js rename to public/assets/summary-84397989593b11928a6a.js index d6097aabf..32909cd1f 100644 --- a/public/assets/summary-e84984431a143be0907e.js +++ b/public/assets/summary-84397989593b11928a6a.js @@ -1,2 +1,2 @@ webpackJsonp([27],{170:function(e,t,l){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var l={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(l[a]=e[a]);return l}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var r=Object.assign||function(e){for(var t=1;t=0),"function"==typeof a&&(n.onChange=a.bind(null,this.props.value)),u.default.createElement("input",r({},this.props,{type:"checkbox",name:t},n))}}),t.CheckboxGroup=u.default.createClass({displayName:"CheckboxGroup",propTypes:{name:o.PropTypes.string,defaultValue:o.PropTypes.array,value:o.PropTypes.array,onChange:o.PropTypes.func,children:o.PropTypes.node.isRequired,Component:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.func,o.PropTypes.object])},getDefaultProps:function(){return{Component:"div"}},childContextTypes:{checkboxGroup:u.default.PropTypes.object},getChildContext:function(){return{checkboxGroup:{name:this.props.name,checkedValues:this.state.value,onChange:this._onCheckboxChange}}},getInitialState:function(){return{value:this.props.value||this.props.defaultValue||[]}},componentWillReceiveProps:function(e){e.value&&this.setState({value:e.value})},render:function(){var e=this.props,t=e.Component,l=(e.name,e.value,e.onChange,e.children),a=n(e,["Component","name","value","onChange","children"]);return u.default.createElement(t,a,l)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var l;l=t.target.checked?this.state.value.concat(e):this.state.value.filter(function(t){return t!==e}),this._isControlledComponent()?this.setState({value:this.props.value}):this.setState({value:l}),"function"==typeof this.props.onChange&&this.props.onChange(l)}})},1901:function(e,t,l){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=e[l]);return t.default=e,t}function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return{actions:(0,m.bindActionCreators)(h,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0?i.default.createElement("div",{style:{height:"120px",margin:"0px -10px 25px -10px"}},i.default.createElement(c.FormGroup,null,y.default.map(n.filters||[],function(e,t){return i.default.createElement(c.Col,{sm:3,key:t},i.default.createElement("div",{style:{padding:"30px 0px",textAlign:"center",backgroundColor:s[t],borderRadius:"4px"}},i.default.createElement("div",{style:{fontWeight:600,fontSize:"30px"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue"+(y.default.isEmpty(e.query)?"":"?"+h.stringify(e.query||{})),style:{color:"#fff"}},e.count)),i.default.createElement("div",{style:{fontSize:"14px",color:"#fff",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},title:e.name},e.name)))}))):i.default.createElement("div",{style:{paddingLeft:"5px",marginBottom:"20px"}},i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue"},"全部问题")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved"},"未解决的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?assignee=me&resolution=Unresolved"},"分配给我的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?reporter=me"},"我报告的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?watcher=me"},"我关注的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at=2w"},"最近增加的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?updated_at=2w"},"最近更新的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at=2w"},"最近解决的")),i.default.createElement("span",{style:u},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at=2w"},"最近关闭的"))),i.default.createElement(c.Panel,{style:{height:"320px"},header:i.default.createElement("div",null,i.default.createElement("span",null,"问题动态:"+(r.twoWeeksAgo||"")+" ~ 现在"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({pulseShowModel:"detail"==e.state.pulseShowModel?"charts":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},"detail"==this.state.pulseShowModel&&i.default.createElement(c.Table,{responsive:!0,hover:!0},i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"日期"),y.default.map(n.trend||[],function(e,t){return i.default.createElement("th",{key:t},e.day.substr(5))}),i.default.createElement("th",null,"合计"))),i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at=2w"},"新建问题")),y.default.map(n.trend||[],function(e,t){return i.default.createElement("td",{key:t},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at="+e.day+"~"+e.day},e.new))}),i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?created_at=2w"},y.default.reduce(n.trend||[],function(e,t){return e+t.new},0)))),i.default.createElement("tr",null,i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at=2w"},"解决问题")),y.default.map(n.trend||[],function(e,t){return i.default.createElement("td",{key:t},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at="+e.day+"~"+e.day},e.resolved))}),i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolved_at=2w"},y.default.reduce(n.trend||[],function(e,t){return e+t.resolved},0)))),i.default.createElement("tr",null,i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at=2w"},"关闭问题")),y.default.map(n.trend||[],function(e,t){return i.default.createElement("td",{key:t},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at="+e.day+"~"+e.day},e.closed))}),i.default.createElement("td",null,i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?closed_at=2w"},y.default.reduce(n.trend||[],function(e,t){return e+t.closed},0)))))),"charts"==this.state.pulseShowModel&&i.default.createElement("div",null,i.default.createElement(f.CheckboxGroup,{name:"statItems",value:this.state.pulseStatItems,onChange:function(t){e.setState({pulseStatItems:t})},style:{"float":"right",margin:"5px 10px 0px 0px",height:"30px"}},i.default.createElement("div",{style:{"float":"left"}},i.default.createElement(f.Checkbox,{value:"new",style:{"float":"left"}}),i.default.createElement("span",{style:{marginLeft:"2px"}},"新建的")),i.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},i.default.createElement(f.Checkbox,{value:"resolve"}),i.default.createElement("span",{style:{marginLeft:"2px"}},"已解决的")),i.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},i.default.createElement(f.Checkbox,{value:"close"}),i.default.createElement("span",{style:{marginLeft:"2px"}},"已关闭的")))),"charts"==this.state.pulseShowModel&&i.default.createElement("div",{className:"report-shape-container"},i.default.createElement(p.LineChart,{width:.95*l.containerWidth,height:200,data:n.trend||[],style:{margin:"35px auto"}},i.default.createElement(p.XAxis,{dataKey:"day"}),i.default.createElement(p.YAxis,null),i.default.createElement(p.CartesianGrid,{strokeDasharray:"3 3"}),i.default.createElement(p.Tooltip,null),i.default.createElement(p.Legend,null),this.state.pulseStatItems.indexOf("new")!==-1&&i.default.createElement(p.Line,{type:"monotone",dataKey:"new",name:"新建的",stroke:"#4572A7",fill:"#4572A7"}),this.state.pulseStatItems.indexOf("resolve")!==-1&&i.default.createElement(p.Line,{type:"monotone",dataKey:"resolved",name:"已解决的",stroke:"#89A54E",fill:"#89A54E"}),this.state.pulseStatItems.indexOf("close")!==-1&&i.default.createElement(p.Line,{type:"monotone",dataKey:"closed",name:"已关闭的",stroke:"#AA4643",fill:"#AA4643"})))),i.default.createElement(c.Panel,{header:i.default.createElement("div",null,i.default.createElement("span",null,"未解决问题:按经办人"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({assigneeShowModel:"detail"==e.state.assigneeShowModel?"percentage":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},n.assignee_unresolved_issues&&!y.default.isEmpty(n.assignee_unresolved_issues)?i.default.createElement(c.Table,{responsive:!0,hover:!0},"detail"==this.state.assigneeShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"经办人"),i.default.createElement("th",null,"问题"),y.default.map(r.types||[],function(e){return i.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.assigneeShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"经办人"),i.default.createElement("th",null,"问题"),i.default.createElement("th",null,"百分比"))),"detail"==this.state.assigneeShowModel&&i.default.createElement("tbody",null,y.default.map(n.assignee_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},r.users&&r.users[t]||"")),i.default.createElement("td",{style:{width:"10%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},e.total||0)),y.default.map(r.types||[],function(l){return i.default.createElement("td",{key:l.id},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&type="+l.id+"&assignee="+t},e[l.id]||0))}))})),"percentage"==this.state.assigneeShowModel&&i.default.createElement("tbody",null,y.default.map(n.assignee_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},r.users&&r.users[t]||"")),i.default.createElement("td",{style:{width:"10%"}},i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&assignee="+t},e.total||0)),i.default.createElement("td",null,i.default.createElement("table",{style:{width:"100%"}},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{style:{width:e.percent+"%"}},i.default.createElement("div",{className:"color-bar"})),i.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):i.default.createElement("div",null,"暂无信息")),i.default.createElement(c.Panel,{header:i.default.createElement("div",null,i.default.createElement("span",null,"未解决问题:按优先级"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({priorityShowModel:"detail"==e.state.priorityShowModel?"percentage":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},n.priority_unresolved_issues&&!y.default.isEmpty(n.priority_unresolved_issues)?i.default.createElement(c.Table,{responsive:!0,hover:!0},"detail"==this.state.priorityShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"优先级"),i.default.createElement("th",null,"问题"),y.default.map(r.types||[],function(e){return i.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.priorityShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"优先级"),i.default.createElement("th",null,"问题"),i.default.createElement("th",null,"百分比"))),"detail"==this.state.priorityShowModel&&i.default.createElement("tbody",null,y.default.map(n.priority_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},r.priorities[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},e.total||0):e.total||0),y.default.map(r.types||[],function(l){return i.default.createElement("td",{key:l.id},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&type="+l.id+"&priority="+t},e[l.id]||0):e[l.id]||0)}))})),"percentage"==this.state.priorityShowModel&&i.default.createElement("tbody",null,y.default.map(n.priority_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},r.priorities[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.priorities&&r.priorities[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&priority="+t},e.total||0):e.total||0),i.default.createElement("td",null,i.default.createElement("table",{style:{width:"100%"}},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{style:{width:e.percent+"%"}},i.default.createElement("div",{className:"color-bar"})),i.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):i.default.createElement("div",null,"暂无信息")),i.default.createElement(c.Panel,{header:i.default.createElement("div",null,i.default.createElement("span",null,"未解决问题:按模块"),i.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({moduleShowModel:"detail"==e.state.moduleShowModel?"percentage":"detail"})},title:"切换"},i.default.createElement("i",{className:"fa fa-retweet"})))},n.module_unresolved_issues&&!y.default.isEmpty(n.module_unresolved_issues)?i.default.createElement(c.Table,{responsive:!0,hover:!0},"detail"==this.state.moduleShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"模块"),i.default.createElement("th",null,"问题"),y.default.map(r.types||[],function(e){return i.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.moduleShowModel&&i.default.createElement("thead",null,i.default.createElement("tr",null,i.default.createElement("th",null,"模块"),i.default.createElement("th",null,"问题"),i.default.createElement("th",null,"百分比"))),"detail"==this.state.moduleShowModel&&i.default.createElement("tbody",null,y.default.map(n.module_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},r.modules[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},e.total||0):e.total||0),y.default.map(r.types||[],function(l){return i.default.createElement("td",{key:l.id},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&type="+l.id+"&module="+t},e[l.id]||0):e[l.id]||0)}))})),"percentage"==this.state.moduleShowModel&&i.default.createElement("tbody",null,y.default.map(n.module_unresolved_issues,function(e,t){return i.default.createElement("tr",{key:t},i.default.createElement("td",{style:{width:"20%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},r.modules[t]):"其他"),i.default.createElement("td",{style:{width:"10%"}},r.modules&&r.modules[t]?i.default.createElement(d.Link,{to:"/project/"+a.key+"/issue?resolution=Unresolved&module="+t},e.total||0):e.total||0),i.default.createElement("td",null,i.default.createElement("table",{style:{width:"100%"}},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{style:{width:e.percent+"%"}},i.default.createElement("div",{className:"color-bar"})),i.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):i.default.createElement("div",null,"暂无信息")))}}],[{key:"propTypes",value:{layout:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,data:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,loading:s.PropTypes.bool.isRequired,index:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},1971:function(e,t,l){try{(function(){"use strict";function e(e){return(0,a.asyncFuncCreator)({constant:"PROJECT_SUMMARY",promise:function(t){return t.request({url:"/project/"+e+"/summary"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e;var a=l(44)}).call(this)}finally{}}}); -//# sourceMappingURL=summary-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=summary-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/syssetting-e84984431a143be0907e.js b/public/assets/syssetting-84397989593b11928a6a.js similarity index 99% rename from public/assets/syssetting-e84984431a143be0907e.js rename to public/assets/syssetting-84397989593b11928a6a.js index 20653c952..60fd586c9 100644 --- a/public/assets/syssetting-e84984431a143be0907e.js +++ b/public/assets/syssetting-84397989593b11928a6a.js @@ -2,4 +2,4 @@ webpackJsonp([16],{7:function(e,t,n){"use strict";function o(e){return e&&e.__es newOptionCreator:s,promptTextCreator:i,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,o=e.onNewOptionClick,a=e.options,u=void 0===a?[]:a;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var r=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),l=this.isOptionUnique({option:r});l&&(o?o(r):(u.unshift(r),this.select.selectValue(r)))}},filterOptions:function S(){var e=this.props,S=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),o=arguments[2]||[],a=S.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var u=this.props.newOptionCreator,r=u({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),l=this.isOptionUnique({option:r,options:o.concat(a)});if(l){var s=n(this.inputValue);this._createPlaceholderOption=u({label:s,labelKey:this.labelKey,valueKey:this.valueKey}),a.unshift(this._createPlaceholderOption)}}return a},isOptionUnique:function T(e){var t=e.option,n=e.options,T=this.props.isOptionUnique;return n=n||this.select.filterOptions(),T({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function P(e){var P=this.props.menuRenderer;return P(p({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function _(e){var _=this.props.onInputChange;_&&_(e),this.inputValue=e},onInputKeyDown:function A(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,A=t.onInputKeyDown,o=this.select.getFocusedOption();o&&o===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):A&&A(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,a(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),o=this.props.children;o||(o=u);var r=p({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return o(r)}});e.exports=F},27:function(e,t,n){"use strict";function o(e){return e}function a(e,t,n){function a(e,t){var n=v.hasOwnProperty(t)?v[t]:null;w.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,u=o.__reactAutoBindPairs;n.hasOwnProperty(i)&&E.mixins(e,n.mixins);for(var r in n)if(n.hasOwnProperty(r)&&r!==i){var l=n[r],c=o.hasOwnProperty(r);if(a(c,r),E.hasOwnProperty(r))E[r](e,l);else{var p=v.hasOwnProperty(r),h="function"==typeof l,m=h&&!p&&!c&&n.autobind!==!1;if(m)u.push(r,l),o[r]=l;else if(c){var b=v[r];s(p&&("DEFINE_MANY_MERGED"===b||"DEFINE_MANY"===b),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",b,r),"DEFINE_MANY_MERGED"===b?o[r]=d(o[r],l):"DEFINE_MANY"===b&&(o[r]=f(o[r],l))}else o[r]=l}}}else;}function c(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){var a=n in E;s(!a,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var u=n in e;s(!u,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=o}}}function p(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function d(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var a={};return p(a,n),p(a,o),a}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;ne.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,i,{isLoading:r,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=w,w.propTypes=E,w.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var u=Object.assign||function(e){for(var t=1;t=0),"function"==typeof o&&(a.onChange=o.bind(null,this.props.value)),l.default.createElement("input",u({},this.props,{type:"checkbox",name:t},a))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:r.PropTypes.string,defaultValue:r.PropTypes.array,value:r.PropTypes.array,onChange:r.PropTypes.func,children:r.PropTypes.node.isRequired,Component:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.func,r.PropTypes.object])},getDefaultProps:function(){return{Component:"div"}},childContextTypes:{checkboxGroup:l.default.PropTypes.object},getChildContext:function(){return{checkboxGroup:{name:this.props.name,checkedValues:this.state.value,onChange:this._onCheckboxChange}}},getInitialState:function(){return{value:this.props.value||this.props.defaultValue||[]}},componentWillReceiveProps:function(e){e.value&&this.setState({value:e.value})},render:function(){var e=this.props,t=e.Component,n=(e.name,e.value,e.onChange,e.children),o=a(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,o,n)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var n;n=t.target.checked?this.state.value.concat(e):this.state.value.filter(function(t){return t!==e}),this._isControlledComponent()?this.setState({value:this.props.value}):this.setState({value:n}),"function"==typeof this.props.onChange&&this.props.onChange(n)}})},1884:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0?f.default.map(F.sys_admin||[],function(e,t){return 0===t?e.name:", "+e.name}):"-"))});var M=[];return"properties"==this.state.tabKey?M=T:"timetrack"==this.state.tabKey?M=P:"mailserver"==this.state.tabKey?M=_:"sysroles"==this.state.tabKey&&(M=A),i.default.createElement("div",null,i.default.createElement(p.Nav,{bsStyle:"pills",style:{marginTop:"10px","float":"left",lineHeight:"1.0"},activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this)},i.default.createElement(p.NavItem,{eventKey:"properties",href:"#"},"通用设置"),i.default.createElement(p.NavItem,{eventKey:"mailserver",href:"#"},"邮件服务器"),i.default.createElement(p.NavItem,{eventKey:"sysroles",href:"#"},"系统角色")),i.default.createElement(c.BootstrapTable,{data:M,bordered:!1,hover:!0,trClassName:"tr-middle"},i.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),i.default.createElement(c.TableHeaderColumn,{width:"260",dataField:"title"}),i.default.createElement(c.TableHeaderColumn,{width:"200",dataField:"contents"}),i.default.createElement(c.TableHeaderColumn,{dataField:"blank"})),"properties"==this.state.tabKey&&i.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},i.default.createElement(p.Button,{disabled:u,onClick:function(){e.setState({propertiesModalShow:!0})}},"修改设置")),"mailserver"==this.state.tabKey&&i.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},i.default.createElement(p.Button,{disabled:u,onClick:function(){e.setState({sendTestMailModalShow:!0})}},"发送测试邮件")),"sysroles"==this.state.tabKey&&i.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},i.default.createElement(p.Button,{disabled:u,onClick:function(){e.setState({configActorModalShow:!0})}},"角色配置")),this.state.propertiesModalShow&&i.default.createElement(h,{show:!0,close:this.propertiesModalClose,update:o,data:s,i18n:n}),this.state.timeTrackModalShow&&i.default.createElement(m,{show:!0,close:this.timeTrackModalClose,update:o,data:g,i18n:n}),this.state.smtpServerModalShow&&i.default.createElement(b,{show:!0,close:this.smtpServerModalClose,update:o,data:w.smtp||{},i18n:n}),this.state.setSendMailShow&&i.default.createElement(y,{show:!0,close:this.setSendMailModalClose,update:o,data:w.send||{},i18n:n}),this.state.sendTestMailModalShow&&i.default.createElement(v,{show:!0,close:this.sendTestMailModalClose,sendMail:a,i18n:n}),this.state.configActorModalShow&&i.default.createElement(E,{show:!0,close:this.configActorModalClose,update:o,data:F,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool.isRequired,settings:s.PropTypes.object.isRequired,show:s.PropTypes.func.isRequired,update:s.PropTypes.func.isRequired,resetPwd:s.PropTypes.func.isRequired,sendTestMail:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1887:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tr.bottom||i.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,u="object"==typeof t?t:this.props;if(u.multi){if("string"==typeof e&&(e=e.split(u.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,u)}).filter(function(e){return e})}var s=this.expandValue(e,u);return s?[s]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var u=t.options,s=t.valueKey;if(u)for(var o=0;ou&&this.focusOption(n[u+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&e[e.length-1].clearableValue!==!1&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,u=0;u0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var s=n-this.props.pageSize;n=s<0?0:s}else if("page_down"===e){var s=n+this.props.pageSize;n=s>t.length-1?t.length-1:s}n===-1&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,u=this.props.valueRenderer||this.getOptionLabel,s=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var o=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(s,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||e.clearableValue===!1,key:"value-"+t+"-"+e[n.props.valueKey],onClick:o,onRemove:n.removeValue,value:e},u(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(o=null),l.default.createElement(s,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:o,value:e[0]},u(e[0])))},renderInput:function(e,t){var n,u=this,i=(0,b.default)("Select-input",this.props.inputProps.className),a=!!this.state.isOpen,p=(0,b.default)((n={},o(n,this._instancePrefix+"-list",a),o(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),c=r({},this.props.inputProps,{role:"combobox","aria-expanded":""+a,"aria-owns":p,"aria-haspopup":""+a,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:i,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return u.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(c);if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,f=(d.inputClassName,s(d,["inputClassName"])),h=(0,b.default)(o({},this._instancePrefix+"-list",a));return l.default.createElement("div",r({},f,{role:"combobox","aria-expanded":a,"aria-owns":h,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:i,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return u.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(v.default,r({},c,{minWidth:"5"})):l.default.createElement("div",{className:i},l.default.createElement("input",c))},renderClear:function(){if(!(!this.props.clearable||void 0===this.props.value||null===this.props.value||this.props.multi&&!this.props.value.length||this.props.disabled||this.props.isLoading)){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function U(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){var U="function"==typeof this.props.filterOptions?this.props.filterOptions:F.default;return U(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return i(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:i(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,u=this.state.focusedOption||e;if(u&&!u.disabled){var s=-1;if(t.some(function(e,t){var o=e[n]===u[n];return o&&(s=t),o}),s!==-1)return s}for(var o=0;o-1)return!1;if(u.filterOption)return u.filterOption.call(s,e,t);if(!t)return!0;var o=String(e[u.valueKey]),r=String(e[u.labelKey]);return u.ignoreAccents&&("label"!==u.matchProp&&(o=(0,i.default)(o)),"value"!==u.matchProp&&(r=(0,i.default)(r))),u.ignoreCase&&("label"!==u.matchProp&&(o=o.toLowerCase()),"value"!==u.matchProp&&(r=r.toLowerCase())),"start"===u.matchPos?"label"!==u.matchProp&&o.substr(0,t.length)===t||"value"!==u.matchProp&&r.substr(0,t.length)===t:"label"!==u.matchProp&&o.indexOf(t)>=0||"value"!==u.matchProp&&r.indexOf(t)>=0})}var o=n(22),i=u(o);e.exports=s},21:function(e,t,n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function s(e){var t=e.focusedOption,n=e.instancePrefix,u=(e.labelKey,e.onFocus),s=e.onSelect,o=e.optionClassName,r=e.optionComponent,l=e.optionRenderer,p=e.options,c=e.valueArray,d=e.valueKey,f=e.onOptionRef,h=r;return p.map(function(e,r){var p=c&&c.indexOf(e)>-1,E=e===t,m=(0,i.default)(o,{"Select-option":!0,"is-selected":p,"is-focused":E,"is-disabled":e.disabled});return a.default.createElement(h,{className:m,instancePrefix:n,isDisabled:e.disabled,isFocused:E,isSelected:p,key:"option-"+r+"-"+e[d],onFocus:u,onSelect:s,option:e,optionIndex:r,ref:function(e){f(e,E)}},l(e,r))})}var o=n(10),i=u(o),r=n(1),a=u(r);e.exports=s},22:function(e,t){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t=0||Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u]);return n}function o(e){return f.default.createElement(b.default,e)}function i(e){var t=e.option,n=e.options,u=e.labelKey,s=e.valueKey;return 0===n.filter(function(e){return e[u]===t[u]||e[s]===t[s]}).length}function r(e){var t=e.label;return!!t}function a(e){var t=e.label,n=e.labelKey,u=e.valueKey,s={};return s[u]=t,s[n]=t,s.className="Select-create-option-placeholder",s}function l(e){return'Create option "'+e+'"'}function p(e){var t=e.keyCode;switch(t){case 9:case 13:case 188:return!0}return!1}var c=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(a({},this.props,l,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(c.Component);t.default=C,C.propTypes=b,C.defaultProps=O,e.exports=t.default},30:function(e,t,n){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function s(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var u=e[n];return void 0!==u&&(t[n]=u),t},t)}var o=Object.assign||function(e){for(var t=1;t0?l.default.createElement("span",null,E.default.map(n[m].users,function(e){return l.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},l.default.createElement(c.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))})):l.default.createElement("span",null,l.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")),l.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.willSetUsers.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-pencil"})))):l.default.createElement("div",null,l.default.createElement(f.default.Async,{multi:!0,clearable:!1,disabled:E.default.indexOf(i,n[m].id)!==-1&&!0,options:[],value:this.state.users[n[m].id]||n[m].users,onChange:this.handleUserSelectChange.bind(this,n[m].id),valueKey:"id",labelKey:"nameAndEmail",loadOptions:this.searchUsers,placeholder:"请输入用户"}),l.default.createElement("div",{className:E.default.indexOf(i,n[m].id)!==-1?"hide":"",style:{"float":"right"}},l.default.createElement(c.Button,{className:"edit-ok-button",onClick:this.setUsers.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-check"})),l.default.createElement(c.Button,{className:"edit-cancel-button",onClick:this.cancelSetUsers.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-close"})))),l.default.createElement("img",{src:y,style:{"float":"right"},className:E.default.indexOf(i,n[m].id)!==-1?"loading":"hide"})),groups:t.permissions&&t.permissions.indexOf("manage_project")===-1?l.default.createElement("div",null,l.default.createElement("span",null,E.default.map(n[m].groups,function(e){return l.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px"}},l.default.createElement(c.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))}))):l.default.createElement("div",null,E.default.indexOf(r,n[m].id)===-1&&E.default.indexOf(a,n[m].id)===-1?l.default.createElement("div",{className:"editable-list-field"},l.default.createElement("div",{style:{display:"table",width:"100%"}},n[m].groups&&n[m].groups.length>0?l.default.createElement("span",null,E.default.map(n[m].groups,function(e){return l.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},l.default.createElement(c.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))})):l.default.createElement("span",null,l.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")),l.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.willSetGroups.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-pencil"})))):l.default.createElement("div",null,l.default.createElement(f.default.Async,{multi:!0,clearable:!1,disabled:E.default.indexOf(a,n[m].id)!==-1&&!0,options:[],value:this.state.groups[n[m].id]||n[m].groups,onChange:this.handleGroupSelectChange.bind(this,n[m].id),valueKey:"id",labelKey:"name",loadOptions:this.searchGroups,placeholder:"请输入用户组"}),l.default.createElement("div",{className:E.default.indexOf(a,n[m].id)!==-1?"hide":"",style:{"float":"right"}},l.default.createElement(c.Button,{className:"edit-ok-button",onClick:this.setGroups.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-check"})),l.default.createElement(c.Button,{className:"edit-cancel-button",onClick:this.cancelSetGroups.bind(this,n[m].id)},l.default.createElement("i",{className:"fa fa-close"})))),l.default.createElement("img",{src:y,style:{"float":"right"},className:E.default.indexOf(a,n[m].id)!==-1?"loading":"hide"}))});var v={};return u?v.noDataText=l.default.createElement("div",null,l.default.createElement("img",{src:y,className:"loading"})):v.noDataText="暂无数据显示。",v.onRowMouseOver=this.onRowMouseOver.bind(this),l.default.createElement("div",{style:{marginBottom:"30px",marginTop:"15px"}},l.default.createElement("div",{className:"info-col"},l.default.createElement("div",{className:"info-icon"},l.default.createElement("i",{className:"fa fa-info-circle"})),l.default.createElement("div",{className:"info-content"},"若成员配置修改后,用户权限没有生效,请刷新页面。")),l.default.createElement(p.BootstrapTable,{data:d,bordered:!1,hover:!0,options:v,trClassName:"tr-top"},l.default.createElement(p.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(p.TableHeaderColumn,{dataField:"name",width:"300"},"角色"),l.default.createElement(p.TableHeaderColumn,{dataField:"users"},"用户"),l.default.createElement(p.TableHeaderColumn,{dataField:"groups"},"用户组")))}}],[{key:"propTypes",value:{collection:a.PropTypes.array.isRequired,options:a.PropTypes.object.isRequired,selectedItem:a.PropTypes.object.isRequired,indexLoading:a.PropTypes.bool.isRequired,index:a.PropTypes.func.isRequired,setActor:a.PropTypes.func.isRequired,setGroupActor:a.PropTypes.func.isRequired},enumerable:!0}]),t}(a.Component);t.default=O,e.exports=t.default}).call(this)}finally{}}}); -//# sourceMappingURL=team-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=team-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/type-e84984431a143be0907e.js b/public/assets/type-84397989593b11928a6a.js similarity index 99% rename from public/assets/type-e84984431a143be0907e.js rename to public/assets/type-84397989593b11928a6a.js index 4f5776668..447ec7ea0 100644 --- a/public/assets/type-e84984431a143be0907e.js +++ b/public/assets/type-84397989593b11928a6a.js @@ -2,4 +2,4 @@ webpackJsonp([17],{7:function(e,t,n){"use strict";function o(e){return e&&e.__es newOptionCreator:s,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},createNewOption:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,o=e.onNewOptionClick,a=e.options,u=void 0===a?[]:a;e.shouldKeyDownEventCreateNewOption;if(t({label:this.inputValue})){var r=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),i=this.isOptionUnique({option:r});i&&(o?o(r):(u.unshift(r),this.select.selectValue(r)))}},filterOptions:function F(){var e=this.props,F=e.filterOptions,t=e.isValidNewOption,n=(e.options,e.promptTextCreator),o=arguments[2]||[],a=F.apply(void 0,arguments)||[];if(t({label:this.inputValue})){var u=this.props.newOptionCreator,r=u({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),i=this.isOptionUnique({option:r,options:o.concat(a)});if(i){var s=n(this.inputValue);this._createPlaceholderOption=u({label:s,labelKey:this.labelKey,valueKey:this.valueKey}),a.unshift(this._createPlaceholderOption)}}return a},isOptionUnique:function T(e){var t=e.option,n=e.options,T=this.props.isOptionUnique;return n=n||this.select.filterOptions(),T({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})},menuRenderer:function D(e){var D=this.props.menuRenderer;return D(d({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))},onInputChange:function P(e){var P=this.props.onInputChange;P&&P(e),this.inputValue=e},onInputKeyDown:function x(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,x=t.onInputKeyDown,o=this.select.getFocusedOption();o&&o===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):x&&x(e)},onOptionSelect:function(e,t){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)},focus:function(){this.select.focus()},render:function(){var e=this,t=this.props,n=(t.newOptionCreator,t.shouldKeyDownEventCreateNewOption,a(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"])),o=this.props.children;o||(o=u);var r=d({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return o(r)}});e.exports=S},27:function(e,t,n){"use strict";function o(e){return e}function a(e,t,n){function a(e,t){var n=v.hasOwnProperty(t)?v[t]:null;w.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,u=o.__reactAutoBindPairs;n.hasOwnProperty(l)&&E.mixins(e,n.mixins);for(var r in n)if(n.hasOwnProperty(r)&&r!==l){var i=n[r],c=o.hasOwnProperty(r);if(a(c,r),E.hasOwnProperty(r))E[r](e,i);else{var d=v.hasOwnProperty(r),h="function"==typeof i,m=h&&!d&&!c&&n.autobind!==!1;if(m)u.push(r,i),o[r]=i;else if(c){var y=v[r];s(d&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,r),"DEFINE_MANY_MERGED"===y?o[r]=p(o[r],i):"DEFINE_MANY"===y&&(o[r]=f(o[r],i))}else o[r]=i}}}else;}function c(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){var a=n in E;s(!a,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var u=n in e;s(!u,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=o}}}function d(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var a={};return d(a,n),d(a,o),a}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;ne.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:r,onInputChange:this._onInputChange}))}}]),t}(d.Component);t.default=w,w.propTypes=E,w.defaultProps=C,e.exports=t.default},30:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var o=e[n];return void 0!==o&&(t[n]=o),t},t)}var u=Object.assign||function(e){for(var t=1;ta&&s>r||(e.moveCard(o,a),t.getItem().index=a)}}},m=function(e){function t(){a(this,n),i(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}u(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,o=e.connectDragSource,a=e.connectDropTarget,u=e.deleteCard,r=n?0:1,i={"float":"right",cursor:"pointer"};return o(a(l.default.createElement("div",{style:{opacity:r},className:"dragcard"},t,!!u&&l.default.createElement("span",{style:i,onClick:u,title:"删除",className:"rm-icon"},l.default.createElement("i",{className:"fa fa-remove"})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,id:s.PropTypes.any.isRequired,text:s.PropTypes.string.isRequired,deleteCard:s.PropTypes.func,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragSource)(p.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(p.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},208:function(e,t,n){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(i=function(e){return function(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,r,o;if(n=e.hiddenFileInput.files,n.length)for(r=0,o=n.length;r',this.options.dictFallbackText&&(i+="

"+this.options.dictFallbackText+"

"),i+='',n=t.createElement(i),"FORM"!==this.element.tagName?(r=t.createElement('
'),r.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=r?r:n)},t.prototype.getExistingFallback=function(){var e,t,n,i,r,o;for(t=function(e){var t,n,i;for(n=0,i=e.length;n0){for(s=["TB","GB","MB","KB","b"],n=a=0,u=s.length;a=t){i=e/Math.pow(this.options.filesizeBase,4-n),r=o;break}i=Math.round(10*i)/10}return""+i+" "+r},t.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},t.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},t.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},t.prototype.handleFiles=function(e){var t,n,i,r;for(r=[],n=0,i=e.length;n0){for(o=0,s=n.length;o1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)},t.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},t.prototype.enqueueFiles=function(e){var t,n,i;for(n=0,i=e.length;n=t)&&(i=this.getQueuedFiles(),i.length>0)){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-n));for(;e=j;c=0<=j?++k:--k)o.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(C,o,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,i){var r,o,s;for(o=0,s=e.length;oc;)t=r[4*(u-1)+3],0===t?o=u:c=u,u=o+c>>1;return l=u/s,0===l?1:l},s=function(e,t,n,i,r,s,a,u,l,c){var p;return p=o(t),e.drawImage(t,n,i,r,s,a,u,l,c/p)},r=function(e,t){var n,i,r,o,s,a,u,l,c;if(r=!1,c=!0,i=e.document,l=i.documentElement,n=i.addEventListener?"addEventListener":"attachEvent",u=i.addEventListener?"removeEventListener":"detachEvent",a=i.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===i.readyState)return("load"===n.type?e:i)[u](a+n.type,o,!1),!r&&(r=!0)?t.call(e,n.type||n):void 0},s=function(){var e;try{l.doScroll("left")}catch(t){return e=t,void setTimeout(s,50)}return o("poll")},"complete"!==i.readyState){if(i.createEventObject&&l.doScroll){try{c=!e.frameElement}catch(p){}c&&s()}return i[n](a+"DOMContentLoaded",o,!1),i[n](a+"readystatechange",o,!1),e[n](a+"load",o,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},r(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t=i.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var o;for(o in e);return"undefined"==typeof o||i.call(e,o)};e.exports=function a(){var e,t,n,i,r,u,l=arguments[0],c=1,p=arguments.length,d=!1;for("boolean"==typeof l?(d=l,l=arguments[1]||{},c=2):("object"!=typeof l&&"function"!=typeof l||null==l)&&(l={});c0){this.queueDestroy=!0;var n=window.setInterval(function(){return e.queueDestroy===!1?window.clearInterval(n):0===e.dropzone.getActiveFiles().length?(e.dropzone=e.destroy(e.dropzone),window.clearInterval(n)):void 0},500)}else this.dropzone=this.destroy(this.dropzone)}}},{key:"componentDidUpdate",value:function(){if(this.queueDestroy=!1,!this.dropzone){var e=this.props.config.dropzoneSelector||p.default.findDOMNode(this);this.dropzone=new v(e,this.getDjsConfig())}}},{key:"componentWillUpdate",value:function(){var e=void 0,t=void 0;e=this.props.djsConfig?this.props.djsConfig:{};try{t=this.props.config.postUrl?{url:this.props.config.postUrl}:{}}catch(n){t={}}this.dropzone.options=(0,f.default)(!0,{},this.dropzone.options,e,t)}},{key:"render",value:function(){var e=[],t=this.state.files,n=this.props.config,i=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;tu||r<=0)&&(r=1);for(var l=[],p=0;pu)break;l.push(f)}return c.default.createElement("div",{style:{marginTop:"15px",height:"50px"}},c.default.createElement("div",null,c.default.createElement("div",{className:"col-md-6"},c.default.createElement("span",null,d.default.add((r-1)*o,1),"-",r*o>=n?n:r*o," 共",n,"条 ",u,"页")),c.default.createElement("div",{className:"col-md-6"},u>1&&c.default.createElement("ul",{className:"pagination",style:{"float":"right",marginTop:"0px"}},r-a>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),r-1>0&&u>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,r-1),title:"前页"},"<")),d.default.map(l,function(t,n){return c.default.createElement("li",{key:n,className:t===r?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),r1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,d.default.add(r,1)),title:"后页"},">")),u-a>r&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,u),title:"尾页"},">>"))))))}}],[{key:"propTypes",value:{query:l.PropTypes.object,refresh:l.PropTypes.func,total:l.PropTypes.number.isRequired,curPage:l.PropTypes.number,sizePerPage:l.PropTypes.number,paginationSize:l.PropTypes.number},enumerable:!0}]),t}(l.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},1911:function(e,t,n){try{(function(){"use strict";function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e, enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return{actions:(0,h.bindActionCreators)(b,e)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&(V={mode:"checkbox",selected:this.state.selectedIds,onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)});var U=!1,K=!1,W=!1;return v.default.map(i,function(t){v.default.indexOf(e.state.selectedIds,t.id)!==-1&&(t.directory&&"self"!=t.directory||(U=!0,"invalid"==t.status?K=!0:(t.status="active")&&(W=!0)))}),l.default.createElement("div",null,l.default.createElement("div",{style:{marginTop:"5px",height:"40px"}},l.default.createElement(p.FormGroup,null,l.default.createElement("span",{style:{"float":"right",width:"18%"}},l.default.createElement(f.default,{simpleValue:!0,placeholder:"用户目录",value:this.state.directory,onChange:this.directoryChange.bind(this),options:v.default.map(k.directories||[],function(e){return{label:e.name,value:e.id}})})),l.default.createElement("span",{style:{"float":"right",width:"18%",marginRight:"10px"}},l.default.createElement(f.default,{simpleValue:!0,placeholder:"所属组",value:this.state.group,onChange:this.groupChange.bind(this),options:v.default.map(k.groups||[],function(e){return{label:e.name,value:e.id}})})),l.default.createElement("span",{style:{"float":"right",width:"20%",marginRight:"10px"}},l.default.createElement(p.FormControl,{type:"text",id:"uname",style:{height:"36px"},value:this.state.name,onChange:function(t){e.setState({name:t.target.value})},placeholder:"用户姓名、邮箱查询..."})),this.state.selectedIds.length>0&&l.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},l.default.createElement(p.DropdownButton,{title:"操作",onSelect:this.multiOperateSelect.bind(this)},!U&&l.default.createElement(p.MenuItem,{disabled:!0,eventKey:"null"},"无"),U&&l.default.createElement(p.MenuItem,{eventKey:"del"},"删除"),K&&l.default.createElement(p.MenuItem,{eventKey:"validate"},"启用"),W&&l.default.createElement(p.MenuItem,{eventKey:"invalidate"},"禁用"))),l.default.createElement("span",{style:{"float":"left",marginRight:"20px"}},l.default.createElement(p.Button,{onClick:function(){e.setState({createModalShow:!0})},disabled:s},l.default.createElement("i",{className:"fa fa-plus"})," 新建用户")),l.default.createElement("span",{style:{"float":"left",width:"20%"}},l.default.createElement(p.Button,{onClick:function(){e.setState({importModalShow:!0})},disabled:s},l.default.createElement("i",{className:"fa fa-users"})," 批量导入")))),l.default.createElement("div",null,l.default.createElement("div",{className:"info-col"},l.default.createElement("div",{className:"info-icon"},l.default.createElement("i",{className:"fa fa-info-circle"})),l.default.createElement("div",{className:"info-content"},l.default.createElement("span",null,"请使用邮箱登录,若在系统配置里配置了“默认登录邮箱域名”可使用邮箱前缀登录。",l.default.createElement("br",null),"新建或批量导入的用户,默认密码是:actionview。从外部用户目录同步过来的用户,密码和用户目录的保持一致。",l.default.createElement("br",null),"从外部用户目录同步过来的用户,不能对其做任何操作。"))),l.default.createElement(c.BootstrapTable,{hover:!0,data:B,bordered:!1,options:q,trClassName:"tr-middle",selectRow:V},l.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),l.default.createElement(c.TableHeaderColumn,{dataField:"name"},"姓名"),l.default.createElement(c.TableHeaderColumn,{dataField:"email"},"邮箱"),l.default.createElement(c.TableHeaderColumn,{dataField:"groups"},"所属组"),l.default.createElement(c.TableHeaderColumn,{dataField:"directory"},"目录"),l.default.createElement(c.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.editModalShow&&l.default.createElement(w,{show:!0,close:this.editModalClose,update:S,data:r,i18n:n}),this.state.createModalShow&&l.default.createElement(E,{show:!0,close:this.createModalClose,create:h,i18n:n}),this.state.importModalShow&&l.default.createElement(b,{show:!0,close:this.importModalClose,imports:m,loading:o,index:u,i18n:n}),this.state.operateNotifyShow&&l.default.createElement(C,{show:!0,close:this.operateNotifyClose,data:r,operate:this.state.operate,del:y,renew:P,invalidate:x,i18n:n}),this.state.multiOperateNotifyShow&&l.default.createElement(F,{show:!0,close:this.multiOperateNotifyClose,collection:i,multiDel:T,multiRenew:D,multiInvalidate:A,ids:this.state.selectedIds,cancelSelected:this.cancelSelected.bind(this),operate:this.state.multiOperate,loading:o,i18n:n})),!s&&k.total&&k.total>0?l.default.createElement(g,{total:k.total||0,curPage:_.page||1,sizePerPage:k.sizePerPage||30,paginationSize:4,query:_,refresh:d}):"")}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object,collection:u.PropTypes.array.isRequired,selectedItem:u.PropTypes.object.isRequired,query:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,refresh:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired, imports:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,renew:u.PropTypes.func.isRequired,invalidate:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,multiRenew:u.PropTypes.func.isRequired,multiInvalidate:u.PropTypes.func.isRequired,multiDel:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=P,e.exports=t.default}).call(this)}finally{}},1916:function(e,t,n){try{(function(){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0&&(s+=r[t]+"vatlh"),n>0&&(s+=(""!==s?" ":"")+r[n]+"maH"),a>0&&(s+=(""!==s?" ":"")+r[a]),""===s?"pagh":s}var r="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),i=e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:t,past:n,s:"puS lup",m:"wa’ tup",mm:a,h:"wa’ rep",hh:a,d:"wa’ jaj",dd:a,M:"wa’ jar",MM:a,y:"wa’ DIS",yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})},152:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,a=e%100-n,s=e>=100?100:null;return e+(t[n]||t[a]||t[s])},week:{dow:1,doy:7}});return n})},153:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t,n,a){var s={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",""+e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",""+e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",""+e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",""+e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",""+e+" ars"]};return a?s[n][0]:t?s[n][0]:s[n][1]}var n=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n})},154:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t})},155:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t})},156:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){var s={mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t(s[a],+e)}function a(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},a=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[a][e.day()]}function s(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var r=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:a,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return r})},157:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t})},158:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t})},159:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t})},160:function(e,t,n){!function(e,t){t(n(2))}(this,function(e){"use strict";var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.diff(t,"days")>=7?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1分鐘",mm:"%d分鐘",h:"1小時",hh:"%d小時",d:"1天",dd:"%d天",M:"1個月",MM:"%d個月",y:"1年",yy:"%d年"}});return t})},176:function(e,t,n){"use strict";var a=n(177),s=n(1),r=n(203),i=n(204),o=n(206),u=n(205),d=n(2),l=s.PropTypes,_=s.createClass({mixins:[n(207)],viewComponents:{days:r,months:i,years:o,time:u},propTypes:{onFocus:l.func,onBlur:l.func,onChange:l.func,locale:l.string,input:l.bool,inputProps:l.object,timeConstraints:l.object,viewMode:l.oneOf(["years","months","days","time"]),isValidDate:l.func,open:l.bool,strictParsing:l.bool,closeOnSelect:l.bool,closeOnTab:l.bool},getDefaultProps:function(){var e=function(){};return{className:"",defaultValue:"",inputProps:{},input:!0,onFocus:e,onBlur:e,onChange:e,timeFormat:!0,timeConstraints:{},dateFormat:!0,strictParsing:!0,closeOnSelect:!1,closeOnTab:!0}},getInitialState:function(){var e=this.getStateFromProps(this.props);return void 0===e.open&&(e.open=!this.props.input),e.currentView=this.props.dateFormat?this.props.viewMode||e.updateOn||"days":"time",e},getStateFromProps:function(e){var t,n,a,s=this.getFormats(e),r=e.value||e.defaultValue;return r&&"string"==typeof r?t=this.localMoment(r,s.datetime):r&&(t=this.localMoment(r)),t&&!t.isValid()&&(t=null),n=t?t.clone().startOf("month"):this.localMoment().startOf("month"),a=this.getUpdateOn(s),{updateOn:a,inputFormat:s.datetime,viewDate:n,selectedDate:t,inputValue:t?t.format(s.datetime):r||"",open:e.open}},getUpdateOn:function(e){return e.date.match(/[lLD]/)?"days":e.date.indexOf("M")!==-1?"months":e.date.indexOf("Y")!==-1?"years":"days"},getFormats:function(e){var t={date:e.dateFormat||"",time:e.timeFormat||""},n=this.localMoment(e.date).localeData();return t.date===!0?t.date=n.longDateFormat("L"):"days"!==this.getUpdateOn(t)&&(t.time=""),t.time===!0&&(t.time=n.longDateFormat("LT")),t.datetime=t.date&&t.time?t.date+" "+t.time:t.date||t.time,t},componentWillReceiveProps:function(e){var t=this.getFormats(e),n={};e.value!==this.props.value&&(n=this.getStateFromProps(e)),t.datetime!==this.getFormats(this.props).datetime&&(n.inputFormat=t.datetime),void 0===n.open&&(this.props.closeOnSelect&&"time"!==this.state.currentView?n.open=!1:n.open=this.state.open),this.setState(n)},onInputChange:function(e){var t=null===e.target?e:e.target.value,n=this.localMoment(t,this.state.inputFormat),a={inputValue:t};return n.isValid()&&!this.props.value?(a.selectedDate=n,a.viewDate=n.clone().startOf("month")):a.selectedDate=null,this.setState(a,function(){return this.props.onChange(n.isValid()?n:this.state.inputValue)})},onInputKey:function(e){9===e.which&&this.props.closeOnTab&&this.closeCalendar()},showView:function(e){var t=this;return function(){t.setState({currentView:e})}},setDate:function(e){var t=this,n={month:"days",year:"months"};return function(a){t.setState({viewDate:t.state.viewDate.clone()[e](parseInt(a.target.getAttribute("data-value"),10)).startOf(e),currentView:n[e]})}},addTime:function(e,t,n){return this.updateTime("add",e,t,n)},subtractTime:function(e,t,n){return this.updateTime("subtract",e,t,n)},updateTime:function(e,t,n,a){var s=this;return function(){var r={},i=a?"selectedDate":"viewDate";r[i]=s.state[i].clone()[e](t,n),s.setState(r)}},allowedSetTime:["hours","minutes","seconds","milliseconds"],setTime:function(e,t){var n,a=this.allowedSetTime.indexOf(e)+1,s=this.state,r=(s.selectedDate||s.viewDate).clone();for(r[e](t);al||u.year()>d)&&(e+=" rdtNew"),o&&u.isSame(o,"day")&&(e+=" rdtActive"),u.isSame(s(),"day")&&(e+=" rdtToday"),t=!h(a,o),t&&(e+=" rdtDisabled"),n={key:u.format("M_D"),"data-value":u.date(),className:e},t||(n.onClick=this.updateSelectedDate),c.push(m(n,a,o)),7===c.length&&(_.push(r.tr({key:u.format("M_D")},c)),c=[]),u.add(1,"d");return _},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t){return r.td(e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return r.tfoot({key:"tf"},r.tr({},r.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},isValidDate:function(){return 1}});e.exports=i},204:function(e,t,n){"use strict";function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}var s=n(1),r=s.DOM,i=s.createClass({render:function(){return r.div({className:"rdtMonths"},[r.table({key:"a"},r.thead({},r.tr({},[r.th({key:"prev",className:"rdtPrev"},r.span({onClick:this.props.subtractTime(1,"years")},"‹")),r.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),r.th({key:"next",className:"rdtNext"},r.span({onClick:this.props.addTime(1,"years")},"›"))]))),r.table({key:"months"},r.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n=this.props.selectedDate,a=this.props.viewDate.month(),s=this.props.viewDate.year(),i=[],o=0,u=[],d=this.props.renderMonth||this.renderMonth;o<12;)e="rdtMonth",n&&o===a&&s===n.year()&&(e+=" rdtActive"),t={key:o,"data-value":o,className:e,onClick:"months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")},u.push(d(t,o,s,n&&n.clone())),4===u.length&&(i.push(r.tr({key:a+"_"+i.length},u)),u=[]),o++;return i},updateSelectedMonth:function(e){this.props.updateSelectedDate(e,!0)},renderMonth:function(e,t){var n=this.props.viewDate.localeData()._monthsShort;return r.td(e,n.standalone?a(n.standalone[t]):n[t])}});e.exports=i},205:function(e,t,n){"use strict";var a=n(1),s=n(177),r=a.DOM,i=a.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,a=[];n.indexOf("H")===-1&&n.indexOf("h")===-1||(a.push("hours"),n.indexOf("m")!==-1&&(a.push("minutes"),n.indexOf("s")!==-1&&a.push("seconds")));var s=!1;return this.props.timeFormat.indexOf(" A")!==-1&&null!==this.state&&(s=this.state.hours>=12?"PM":"AM"),{hours:t.format("H"),minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:s,counters:a}},renderCounter:function(e){if("daypart"!==e){var t=this.state[e];return"hours"===e&&this.props.timeFormat.indexOf(" A")!==-1&&(t=(t-1)%12+1,0===t&&(t=12)),r.div({key:e,className:"rdtCounter"},[r.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e)},"▲"),r.div({key:"c",className:"rdtCount"},t),r.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e)},"▼")])}return""},renderDayPart:function(){return r.div({className:"rdtCounter",key:"dayPart"},[r.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▲"),r.div({key:this.state.daypart,className:"rdtCount"},this.state.daypart),r.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▼")])},render:function(){var e=this,t=[];return this.state.counters.forEach(function(n){t.length&&t.push(r.div({key:"sep"+t.length,className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(n))}),this.state.daypart!==!1&&t.push(e.renderDayPart()),3===this.state.counters.length&&this.props.timeFormat.indexOf("S")!==-1&&(t.push(r.div({className:"rdtCounterSeparator",key:"sep5"},":")),t.push(r.div({className:"rdtCounter rdtMilli",key:"m"},r.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),r.div({className:"rdtTime"},r.table({},[this.renderHeader(),r.tbody({key:"b"},r.tr({},r.td({},r.div({className:"rdtCounters"},t))))]))},componentWillMount:function(){var e=this;e.timeConstraints={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},["hours","minutes","seconds","milliseconds"].forEach(function(t){s(e.timeConstraints[t],e.props.timeConstraints[t])}),this.setState(this.calculateState(this.props))},componentWillReceiveProps:function(e){this.setState(this.calculateState(e))},updateMilli:function(e){var t=parseInt(e.target.value,10);t===e.target.value&&t>=0&&t<1e3&&(this.props.setTime("milliseconds",t),this.setState({milliseconds:t}))},renderHeader:function(){if(!this.props.dateFormat)return null;var e=this.props.selectedDate||this.props.viewDate;return r.thead({key:"h"},r.tr({},r.th({className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},e.format(this.props.dateFormat))))},onStartClicking:function(e,t){var n=this;return function(){var a={};a[t]=n[e](t),n.setState(a),n.timer=setTimeout(function(){n.increaseTimer=setInterval(function(){a[t]=n[e](t),n.setState(a)},70)},500),n.mouseUpListener=function(){clearTimeout(n.timer),clearInterval(n.increaseTimer),n.props.setTime(t,n.state[t]),document.body.removeEventListener("mouseup",n.mouseUpListener)},document.body.addEventListener("mouseup",n.mouseUpListener)}},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},toggleDayPart:function(e){var t=parseInt(this.state[e],10)+12;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},increase:function(e){var t=parseInt(this.state[e],10)+this.timeConstraints[e].step;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},decrease:function(e){var t=parseInt(this.state[e],10)-this.timeConstraints[e].step;return t0||s[1]>13)&&(a=n(11));var r=[],i=[],o="ignore-react-onclickoutside",u=function(e,t){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(o):e.classList.contains(o))};e.exports={componentDidMount:function(){if("function"!=typeof this.handleClickOutside)throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");var e=this.__outsideClickHandler=function(e,t){return function(n){n.stopPropagation();for(var a=n.target,s=!1;a.parentNode;){if(s=u(a,e))return;a=a.parentNode}t(n)}}(a.findDOMNode(this),this.handleClickOutside),t=r.length;r.push(this),i[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=r.indexOf(this);e>-1&&i[e]&&(i.splice(e,1),r.splice(e,1))},enableOnClickOutside:function(){var e=this.__outsideClickHandler;document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},disableOnClickOutside:function(){var e=this.__outsideClickHandler;document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}},1918:function(e,t,n){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function s(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e){return{actions:(0,h.bindActionCreators)(f,e)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;te.end_time&&(n.start_time="开始时间要早于结束时间"),n},g=function(e){function t(e){s(this,n),u(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={ecode:0},this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}r(t,e),o(t,[{key:"handleSubmit",value:function(){var e,t,n,a,s;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e=this.props,t=e.values,n=e.create,a=e.close,t.start_time&&(t.start_time=parseInt(L(t.start_time).startOf("day").format("X"))),t.end_time&&(t.end_time=parseInt(L(t.end_time).endOf("day").format("X"))),r.next=8,regeneratorRuntime.awrap(n(t));case 8:s=r.sent,0===s?(this.setState({ecode:0}),y.notify.show("新建完成。","success",2e3),a()):this.setState({ecode:s});case 10:case"end":return r.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.submitting;n||(this.setState({ecode:0}),t())}},{key:"componentWillMount",value:function(){var e=this.props.initializeForm;e({start_time:L(),end_time:L()})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,a=n.name,s=n.start_time,r=n.end_time,o=n.description,u=e.handleSubmit,d=e.invalid,_=e.submitting;return l.default.createElement(c.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},l.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},l.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"创建版本")),l.default.createElement("form",{onSubmit:u(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},l.default.createElement(c.Modal.Body,null,l.default.createElement(c.FormGroup,{controlId:"formControlsText",validationState:a.touched&&a.error?"error":null},l.default.createElement(c.ControlLabel,null,l.default.createElement("span",{className:"txt-impt"},"*"),"名称"),l.default.createElement(c.FormControl,i({disabled:_,type:"text"},a,{placeholder:"版本名"})),a.touched&&a.error&&l.default.createElement(c.HelpBlock,{style:{"float":"right"}},a.error)),l.default.createElement(c.FormGroup,{controlId:"formControlsText",validationState:s.value&&s.error?"error":null},l.default.createElement(c.ControlLabel,null,"开始时间"),l.default.createElement(M.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:s.value,onChange:function(e){s.onChange(e)}}),s.value&&s.error&&l.default.createElement(c.HelpBlock,{style:{"float":"right"}},s.error)),l.default.createElement(c.FormGroup,{controlId:"formControlsText",validationState:r.value&&r.error?"error":null},l.default.createElement(c.ControlLabel,null,"发布时间"),l.default.createElement(M.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,defaultValue:L(),value:r.value,onChange:function(e){r.onChange(e)}}),r.value&&r.error&&l.default.createElement(c.HelpBlock,{style:{"float":"right"}},r.error)),l.default.createElement(c.FormGroup,{controlId:"formControlsText"},l.default.createElement(c.ControlLabel,null,"描述"),l.default.createElement(c.FormControl,i({disabled:_,type:"text"},o,{placeholder:"描述"})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!_&&t[this.state.ecode]),l.default.createElement("img",{src:Y,className:_?"loading":"hide"}),l.default.createElement(c.Button,{disabled:_||d,type:"submit"},"确定"),l.default.createElement(c.Button,{bsStyle:"link",disabled:_,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:d.PropTypes.object.isRequired,submitting:d.PropTypes.bool,invalid:d.PropTypes.bool,values:d.PropTypes.object,fields:d.PropTypes.object,handleSubmit:d.PropTypes.func.isRequired,close:d.PropTypes.func.isRequired,initializeForm:d.PropTypes.func.isRequired,create:d.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,_.reduxForm)({form:"version",fields:["name","start_time","end_time","description"],validate:v})(t)||t}(d.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1920:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ne.end_time&&(n.start_time="开始时间要早于结束时间"),n},v=function(e){function t(e){s(this,n),u(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={ecode:0},this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}r(t,e),o(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.initializeForm,n=e.data;t(i({},n,{start_time:n.start_time?y.unix(n.start_time):n.start_time,end_time:n.end_time?y.unix(n.end_time):n.end_time}))}},{key:"handleSubmit",value:function(){var e,t,n,a,s;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e=this.props,t=e.values,n=e.edit,a=e.close,t.start_time&&(t.start_time=parseInt(y(t.start_time).startOf("day").format("X"))),t.end_time&&(t.end_time=parseInt(y(t.end_time).endOf("day").format("X"))),r.next=8,regeneratorRuntime.awrap(n(t));case 8:s=r.sent,0===s?(this.setState({ecode:0}),a(),M.notify.show("更新完成。","success",2e3)):this.setState({ecode:s});case 10:case"end":return r.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.submitting;n||(this.setState({ecode:0}),t())}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,a=n.id,s=n.name,r=n.start_time,o=n.end_time,u=n.description,d=e.handleSubmit,_=e.invalid,m=e.dirty,h=e.submitting,p=e.data;return l.default.createElement(c.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},l.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},l.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"编辑版本 - "+p.name)),l.default.createElement("form",{onSubmit:d(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},l.default.createElement(c.Modal.Body,null,l.default.createElement(c.FormGroup,{controlId:"formControlsText",validationState:s.touched&&s.error?"error":null},l.default.createElement(c.ControlLabel,null,l.default.createElement("span",{className:"txt-impt"},"*"),"名称"),l.default.createElement(c.FormControl,i({type:"hidden"},a)),l.default.createElement(c.FormControl,i({disabled:h,type:"text"},s,{placeholder:"版本名"})),s.touched&&s.error&&l.default.createElement(c.HelpBlock,{style:{"float":"right"}},s.error)),l.default.createElement(c.FormGroup,{controlId:"formControlsText",validationState:r.value&&r.error?"error":null},l.default.createElement(c.ControlLabel,null,"开始时间"),l.default.createElement(f.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:r.value,onChange:function(e){r.onChange(e)}}),r.value&&r.error&&l.default.createElement(c.HelpBlock,{style:{"float":"right"}},r.error)),l.default.createElement(c.FormGroup,{controlId:"formControlsText",validationState:o.value&&o.error?"error":null},l.default.createElement(c.ControlLabel,null,"发布时间"),l.default.createElement(f.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:o.value,onChange:function(e){o.onChange(e)}}),o.value&&o.error&&l.default.createElement(c.HelpBlock,{style:{"float":"right"}},o.error)),l.default.createElement(c.FormGroup,{controlId:"formControlsText"},l.default.createElement(c.ControlLabel,null,"描述"),l.default.createElement(c.FormControl,i({disabled:h,type:"text"},u,{placeholder:"描述"})))),l.default.createElement(c.Modal.Footer,null,l.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!h&&t[this.state.ecode]),l.default.createElement("img",{src:L,className:h?"loading":"hide"}),l.default.createElement(c.Button,{disabled:!m||h||_,type:"submit"},"确定"),l.default.createElement(c.Button,{bsStyle:"link",disabled:h,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:d.PropTypes.object.isRequired,submitting:d.PropTypes.bool,invalid:d.PropTypes.bool,dirty:d.PropTypes.bool,values:d.PropTypes.object,fields:d.PropTypes.object,handleSubmit:d.PropTypes.func.isRequired,close:d.PropTypes.func.isRequired,data:d.PropTypes.object.isRequired,initializeForm:d.PropTypes.func.isRequired,edit:d.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,_.reduxForm)({form:"version",fields:["id","name","start_time","end_time","description"],validate:Y})(t)||t}(d.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},1922:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ns[w].end_time&&"released"!==s[w].status?"red":"#000"}},s[w].end_time?M.unix(s[w].end_time).format("YYYY/MM/DD"):"-"))),issues:d.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},d.default.createElement("li",null,"所有问题 - ",d.default.createElement(l.Link,{to:"/project/"+s[w].project_key+"/issue?resolve_version="+s[w].id},s[w].all_cnt||0)),d.default.createElement("li",null,"未解决的 - ",d.default.createElement(l.Link,{to:"/project/"+s[w].project_key+"/issue?resolution=Unresolved&resolve_version="+s[w].id},d.default.createElement("span",{style:{color:"red"}},s[w].unresolved_cnt||0)))),status:d.default.createElement("span",null,"released"===s[w].status?d.default.createElement("span",{style:{color:"#009900"},title:"已发布"},d.default.createElement("i",{className:"fa fa-check"})):"未发布"),operation:a.permissions&&a.permissions.indexOf("manage_project")!==-1&&d.default.createElement("div",null,D&&g===s[w].id&&!o&&d.default.createElement(c.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:w,title:k,id:"dropdown-basic-"+w,onSelect:this.operateSelect.bind(this)},d.default.createElement(c.MenuItem,{eventKey:"edit"},"编辑"),"released"==s[w].status?d.default.createElement(c.MenuItem,{eventKey:"unrelease"},"取消发布"):d.default.createElement(c.MenuItem,{eventKey:"release"},"发布"),d.default.createElement(c.MenuItem,{eventKey:"del"},"删除")),d.default.createElement("img",{src:y,className:o&&r.id===s[w].id?"loading":"hide"}))});var S={};return i?S.noDataText=d.default.createElement("div",null,d.default.createElement("img",{src:y,className:"loading"})):S.noDataText="暂无数据显示。",S.onRowMouseOver=this.onRowMouseOver.bind(this),d.default.createElement("div",{style:{marginBottom:"30px"}},d.default.createElement(_.BootstrapTable,{data:b,bordered:!1,hover:!0,options:S,trClassName:"tr-middle"},d.default.createElement(_.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),d.default.createElement(_.TableHeaderColumn,{dataField:"name"},"名称"),d.default.createElement(_.TableHeaderColumn,{dataField:"start_time"},"开始时间"),d.default.createElement(_.TableHeaderColumn,{dataField:"end_time"},"发布时间"),d.default.createElement(_.TableHeaderColumn,{dataField:"issues"},"问题完成情况"),d.default.createElement(_.TableHeaderColumn,{dataField:"status",width:"100"},"状态"),d.default.createElement(_.TableHeaderColumn,{width:"60", dataField:"operation"})),this.state.editModalShow&&d.default.createElement(h,{show:!0,close:this.editModalClose,edit:Y,data:r,collection:s,i18n:t}),this.state.delNotifyShow&&d.default.createElement(f,{show:!0,close:this.delNotifyClose,data:r,versions:s,del:m,i18n:t}),this.state.releaseModalShow&&d.default.createElement(p,{show:!0,loading:u,close:this.releaseModalClose,data:r,versions:s,release:L,i18n:t}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,collection:u.PropTypes.array.isRequired,selectedItem:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,index:u.PropTypes.func.isRequired,select:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,release:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=L,e.exports=t.default}).call(this)}finally{}},1924:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0?d.default.createElement("div",{className:"info-col",style:{marginTop:"5px"}},d.default.createElement("div",{className:"info-icon"},d.default.createElement("i",{className:"fa fa-info-circle"})),d.default.createElement("div",{className:"info-content"},"该版本还有 ",d.default.createElement("span",{style:{color:"red",fontWeight:600}},a.unresolved_cnt)," 个问题未解决。")):d.default.createElement("div",{className:"info-col",style:{marginTop:"5px"}},d.default.createElement("div",{className:"info-icon"},d.default.createElement("i",{className:"fa fa-info-circle"})),d.default.createElement("div",{className:"info-content"},"该版本没有未解决的问题。")),a.unresolved_cnt>0&&d.default.createElement("div",{style:{margin:"20px 10px 10px 10px"}},d.default.createElement("div",{style:{display:"inline-block",verticalAlign:"top",fontWeight:600}},"未解决的问题"),d.default.createElement("div",{style:{display:"inline-block",marginLeft:"20px"}},d.default.createElement(l.FormGroup,null,d.default.createElement(l.Radio,{inline:!0,name:"swap",onClick:function(){e.setState({operate_flg:"1"})},checked:"1"===this.state.operate_flg},"移动至版本"),d.default.createElement("div",{style:{width:"300px",margin:"5px 5px 10px 18px"}},d.default.createElement(c.default,{simpleValue:!0,clearable:!1,disabled:"1"!==this.state.operate_flg,options:p.default.map(p.default.reject(s,{id:a.id}),function(e){return{value:e.id,label:e.name}}),value:this.state.swapVersion,onChange:function(t){e.setState({swapVersion:t})},placeholder:"选择版本"})),d.default.createElement(l.Radio,{inline:!0,name:"ignore",onClick:function(){e.setState({operate_flg:"2"})},checked:"2"===this.state.operate_flg},"忽略继续发布"))))),"released"===a.status&&d.default.createElement(l.Modal.Body,null,"该版本确认要取消发布吗?"),d.default.createElement(l.Modal.Footer,null,d.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),d.default.createElement("img",{src:f,className:r?"loading":"hide"}),"released"!==a.status&&d.default.createElement(l.Checkbox,{disabled:r,checked:this.state.isSendMsg,onClick:function(){e.setState({isSendMsg:!e.state.isSendMsg})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"通知项目成员"),d.default.createElement(l.Button,{onClick:this.confirm,disabled:r||"released"!==a.status&&a.unresolved_cnt>0&&"0"===this.state.operate_flg||"released"!==a.status&&"1"===this.state.operate_flg&&!this.state.swapVersion},"确定"),d.default.createElement(l.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired,release:u.PropTypes.func.isRequired,versions:u.PropTypes.array.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=M,e.exports=t.default}).call(this)}finally{}},1974:function(e,t,n){try{(function(){"use strict";function e(e){return(0,d.asyncFuncCreator)({constant:"VERSION_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/version"})}})}function a(e,t){return(0,d.asyncFuncCreator)({constant:"VERSION_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/version",method:"post",data:t})}})}function s(e,t){return(0,d.asyncFuncCreator)({constant:"VERSION_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/version/"+t.id,method:"put",data:t})}})}function r(e,t){return(0,d.asyncFuncCreator)({constant:"VERSION_RELEASE",promise:function(n){return n.request({url:"/project/"+e+"/version/"+t.id+"/release",method:"post",data:t})}})}function i(e,t){return(0,d.asyncFuncCreator)({constant:"VERSION_MERGE",source:t.source||"",dest:t.dest||"",promise:function(n){return n.request({url:"/project/"+e+"/version/merge",data:t,method:"post"})}})}function o(e){return{type:"VERSION_SELECT",id:e}}function u(e,t){return(0,d.asyncFuncCreator)({constant:"VERSION_DELETE",id:t.id,promise:function(n){return n.request({url:"/project/"+e+"/version/"+t.id+"/delete",data:t,method:"post"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=a,t.update=s,t.release=r,t.merge=i,t.select=o,t.del=u;var d=n(44)}).call(this)}finally{}}}); -//# sourceMappingURL=version-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=version-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/assets/wfconfig-e84984431a143be0907e.js b/public/assets/wfconfig-84397989593b11928a6a.js similarity index 99% rename from public/assets/wfconfig-e84984431a143be0907e.js rename to public/assets/wfconfig-84397989593b11928a6a.js index 575873e6e..bcd31b622 100644 --- a/public/assets/wfconfig-e84984431a143be0907e.js +++ b/public/assets/wfconfig-84397989593b11928a6a.js @@ -3,4 +3,4 @@ newOptionCreator:u,promptTextCreator:l,shouldKeyDownEventCreateNewOption:c}},cre a(e,n,t)})},endEvents:r,removeEndEventListener:function(e,t){0!==r.length&&r.forEach(function(n){o(e,n,t)})}};t.default=s,e.exports=t.default},358:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n=window.getComputedStyle(e,null),a="",o=0;o children");return E.default.createElement(T.default,{key:n.key,ref:function(t){return e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var o=t.component;if(o){var i=t;return"string"==typeof o&&(i=(0,s.default)({className:t.className,style:t.style},t.componentProps)),E.default.createElement(o,i,a)}return a[0]||null}}]),t}(E.default.Component);k.propTypes={component:C.default.any,componentProps:C.default.object,animation:C.default.object,transitionName:C.default.oneOfType([C.default.string,C.default.object]),transitionEnter:C.default.bool,transitionAppear:C.default.bool,exclusive:C.default.bool,transitionLeave:C.default.bool,onEnd:C.default.func,onEnter:C.default.func,onLeave:C.default.func,onAppear:C.default.func,showProp:C.default.string},k.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:i,onEnter:i,onLeave:i,onAppear:i};var S=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var a=e.props;if(delete e.currentlyAnimatingKeys[t],!a.exclusive||a===e.nextProps){var i=(0,O.toArrayChildren)(o(a));e.isValidChildByKey(i,t)?"appear"===n?A.default.allowAppearCallback(a)&&(a.onAppear(t),a.onEnd(t,!0)):A.default.allowEnterCallback(a)&&(a.onEnter(t),a.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var a=(0,O.toArrayChildren)(o(n));if(e.isValidChildByKey(a,t))e.performEnter(t);else{var i=function(){A.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,O.isSameChildren)(e.state.children,a,n.showProp)?i():e.setState({children:a},i)}}}};t.default=k,e.exports=t.default},364:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(235),i=a(o),r=n(12),s=a(r),u=n(253),l=a(u),c=n(14),d=a(c),p=n(13),f=a(p),h=n(1),m=a(h),v=n(11),y=a(v),b=n(9),E=a(b),g=n(358),C=a(g),O=n(260),P=a(O),T={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){P.default.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){P.default.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){P.default.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,a=y.default.findDOMNode(this),o=this.props,r=o.transitionName,s="object"===("undefined"==typeof r?"undefined":(0,i.default)(r));this.stop();var u=function(){n.stopper=null,t()};if((g.isCssAnimationSupported||!o.animation[e])&&r&&o[T[e]]){var l=s?r[e]:r+"-"+e,c=l+"-active";s&&r[e+"Active"]&&(c=r[e+"Active"]),this.stopper=(0,C.default)(a,{name:l,active:c},u)}else this.stopper=o.animation[e](a,u)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(m.default.Component);w.propTypes={children:E.default.any},t.default=w,e.exports=t.default},365:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=[];return d.default.Children.forEach(e,function(e){t.push(e)}),t}function i(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function r(e,t,n){var a=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(a)throw new Error("two child with same key for children");a=e}}),a}function s(e,t,n){var a=0;return e&&e.forEach(function(e){a||(a=e&&e.key===t&&!e.props[n])}),a}function u(e,t,n){var a=e.length===t.length;return a&&e.forEach(function(e,o){var i=t[o];e&&i&&(e&&!i||!e&&i?a=!1:e.key!==i.key?a=!1:n&&e.props[n]!==i.props[n]&&(a=!1))}),a}function l(e,t){var n=[],a={},o=[];return e.forEach(function(e){e&&i(t,e.key)?o.length&&(a[e.key]=o,o=[]):o.push(e)}),t.forEach(function(e){e&&a.hasOwnProperty(e.key)&&(n=n.concat(a[e.key])),n.push(e)}),n=n.concat(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=o,t.findChildInChildrenByKey=i,t.findShownChildInChildrenByKey=r,t.findHiddenChildInChildrenByKey=s,t.isSameChildren=u,t.mergeChildren=l;var c=n(1),d=a(c)},366:function(e,t,n){"use strict";function a(e){var t=e.refs,n=t.nav,a=(0,o.offset)(n),i=t.inkBar,r=t.activeTab,s=e.props.tabPosition;if(r){var u=r,l=(0,o.offset)(u),c=(0,o.getTransformPropertyName)();if("top"===s||"bottom"===s){var d=l.left-a.left;c?(i.style[c]="translate3d("+d+"px,0,0)",i.style.width=u.offsetWidth+"px",i.style.height=""):(i.style.left=d+"px",i.style.top="",i.style.bottom="",i.style.right=n.offsetWidth-d-u.offsetWidth+"px")}else{var p=l.top-a.top;c?(i.style[c]="translate3d(0,"+p+"px,0)",i.style.height=u.offsetHeight+"px",i.style.width=""):(i.style.left="",i.style.right="",i.style.top=p+"px",i.style.bottom=n.offsetHeight-p-u.offsetHeight+"px")}}i.style.display=r?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var o=n(262);t.default={componentDidUpdate:function(){a(this)},componentDidMount:function(){a(this)}},e.exports=t.default},367:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={LEFT:37,UP:38,RIGHT:39,DOWN:40},e.exports=t.default},368:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0?(c=!1,this.setOffset(0),s=0):us?(i+=r-s,this.setState({offset:i})):r+or?"backward":"forward";this.setState({activeKey:e,tabMovingDirection:u})}else this.setState({activeKey:e})},render:function(){var e,t=this.props,n=t.destroyInactiveTabPane,a=t.prefixCls,i=t.tabPosition,r=t.className,s=t.animation,l=(0,b.default)((e={},o(e,a,1),o(e,a+"-"+i,1),o(e,r,!!r),e)),c=this.state.tabMovingDirection,d=this.getTabPanes(),p=void 0;p=t.transitionName&&t.transitionName[c||"backward"],!p&&s&&(p=a+"-"+s+"-"+(c||"backward")),n&&(d=d.filter(function(e){return e.props.active})),p&&(d=n?u.default.createElement(v.default,{exclusive:!0,component:"div",transitionName:p},d):u.default.createElement(v.default,{showProp:"active",exclusive:!0,component:"div",transitionName:p},d));var f=[u.default.createElement(h.default,{prefixCls:a,key:"nav",onKeyDown:this.onNavKeyDown,tabBarExtraContent:this.props.tabBarExtraContent,tabPosition:i,style:t.navStyle,onTabClick:this.onTabClick,tabMovingDirection:c,panels:this.props.children,activeKey:this.state.activeKey}),u.default.createElement("div",{className:a+"-content",style:t.contentStyle,key:"content"},d)];return"bottom"===i&&f.reverse(),u.default.createElement("div",{className:l,style:t.style},f)}});E.TabPane=p.default,t.default=E,e.exports=t.default},370:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TabPane=t.default=void 0;var o=n(369),i=a(o),r=n(261),s=a(r);t.default=i.default,t.TabPane=s.default},1935:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&(this.state.conditions=E.default.map(a.restrict_to.conditions.list,function(e){return e.args&&E.default.assign(t,e.args),E.default.findKey(C,{name:e.name})}),this.state.relation=a.restrict_to.conditions.type||"and"),a.post_functions&&a.post_functions.length>0&&(this.state.postFunctions=E.default.map(a.post_functions,function(e){return e.args&&E.default.assign(t,e.args),E.default.findKey(O,{name:e.name})}))),E.default.indexOf(this.state.postFunctions,"triggerEvent")===-1&&(this.state.eventParam=""),this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}i(t,e),s(t,[{key:"handleSubmit",value:function(){var e=this.props,t=e.values,n=e.create,a=e.edit,o=e.close,i=e.stepData,r=e.steps,s=e.options.states,u=void 0===s?[]:s,l={};l.id=t.id,l.name=t.name,l.screen=t.screen;var c=E.default.find(u,{id:i.state}),d=c?c.category:"new",p=E.default.find(r,{id:t.destStep}),f=E.default.find(u,{id:p.state}),h=f?f.category:d,m={"new":"Queued",inprogress:"Underway",completed:"Finished"};l.results=[{step:t.destStep,old_status:m[d],status:m[h]}];for(var v=[],y=this.state.postFunctions.length,b=0;b0?v.push({name:O[g].name,args:P,sn:O[g].sn}):v.push({name:O[g].name,sn:O[g].sn}))}}v.length>0&&(l.post_functions=E.default.map(E.default.sortBy(v,"sn"),function(e){return E.default.pick(e,["name","args"])}));for(var k=[],S=this.state.conditions.length,b=0;b0?k.push({name:C[F].name,args:_,sn:C[F].sn}):k.push({name:C[F].name,sn:C[F].sn}))}}if(k.length>0){var D=E.default.map(E.default.sortBy(k,"sn"),function(e){return E.default.pick(e,["name","args"])});l.restrict_to={conditions:{type:this.state.relation?this.state.relation:"and",list:D}}}t.id?a(i.id,l):n(i.id,l),o()}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.submitting;n||t()}},{key:"componentWillMount",value:function(){var e=this.props,t=e.initializeForm,n=e.data,a={};E.default.isEmpty(n)?(a.id="",a.name="",a.destStep="",a.screen=""):(a.id=n.id,a.name=n.name,a.destStep=n.results[0].step,a.screen=n.screen),t(a)}},{key:"onTabChange",value:function(e){this.setState({activeKey:e})}},{key:"conditionsChanged",value:function(e){this.setState({conditions:e})}},{key:"postFunctionsChanged",value:function(e){this.setState({postFunctions:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.fields,a=n.id,o=n.name,i=n.destStep,s=n.screen,u=t.options,l=t.steps,d=t.stepData,f=t.handleSubmit,b=t.invalid,C=t.submitting,O=t.data,P=E.default.map(E.default.filter(l,function(e){return d.id!==e.id}),function(e){return{label:e.name,value:e.id}}),T=E.default.map(u.screens,function(e){return{label:e.name,value:e.id}}),w=[{label:"全部满足",value:"and"},{label:"满足任何一个即可",value:"or"}],A=[{id:"assignee",name:"经办人"},{id:"reporter",name:"报告人"},{id:"principal",name:"项目负责人"}],x=[{id:"me",name:"当前用户"},{id:"reporter",name:"报告人"},{id:"principal",name:"项目负责人"}],k=(u.users||[]).sort(function(e,t){return e.email.localeCompare(t.email)}),S=u.events||[],F=u.states||[],_=E.default.reject(g.Permissions,{id:"all"}),D=u.roles||[],M=u.resolutions||[],N={width:"125px",height:"25px",verticalAlign:"middle",marginLeft:"10px",backgroundColor:"#ffffff",borderRadius:"4px"},j={width:"125px",height:"25px",verticalAlign:"middle",marginLeft:"10px",backgroundColor:"#f5f5f5",borderRadius:"4px"};return c.default.createElement(p.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},c.default.createElement(p.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},c.default.createElement(p.Modal.Title,{id:"contained-modal-title-la"},O.id?"编辑查看动作 - "+O.name:"添加动作"," ")),c.default.createElement("form",{onSubmit:f(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,{style:{height:"420px"}},c.default.createElement(p.FormControl,r({type:"hidden"},a)),c.default.createElement(v.default,{activeKey:this.state.activeKey,onChange:this.onTabChange.bind(this)},c.default.createElement(m.TabPane,{tab:"基本",key:"1"},c.default.createElement("div",{style:{paddingTop:"15px"}},c.default.createElement(p.FormGroup,{controlId:"formControlsText"},c.default.createElement(p.ControlLabel,null,"起始步骤"),c.default.createElement(p.FormControl,{type:"text",value:d.name,disabled:!0})),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:o.touched&&o.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"动作名"),c.default.createElement(p.FormControl,r({disabled:C,type:"text"},o,{placeholder:"动作名"})),o.touched&&o.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},o.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText"},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"目标步骤"),c.default.createElement(h.default,{disabled:C,options:P,simpleValue:!0,value:i.value,onChange:function(e){i.onChange(e)},placeholder:"请选择目标步骤",clearable:!1,searchable:!1})),c.default.createElement(p.FormGroup,{controlId:"formControlsText"},c.default.createElement(p.ControlLabel,null,"动作界面"),c.default.createElement(h.default,{disabled:C,options:T,simpleValue:!0,value:s.value||null,onChange:function(e){s.onChange(e)},placeholder:"无界面",searchable:!1})))),c.default.createElement(m.TabPane,{tab:"触发条件",key:"2"},c.default.createElement("div",{style:{paddingTop:"15px",paddingBottom:"25px",paddingLeft:"5px"}},c.default.createElement(h.default,{options:w,simpleValue:!0,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"条件关系",clearable:!1,searchable:!1})),c.default.createElement(y.CheckboxGroup,{name:"conditions",value:this.state.conditions,onChange:this.conditionsChanged.bind(this)},c.default.createElement("ui",{className:"list-unstyled clearfix cond-list"},c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"isSome"}),c.default.createElement("span",null,"只有"),c.default.createElement("select",{value:this.state.someParam,onChange:function(t){return e.setState({someParam:t.target.value})},disabled:!(E.default.indexOf(this.state.conditions,"isSome")!==-1&&!C),style:E.default.indexOf(this.state.conditions,"isSome")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择用户"),A.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)})),c.default.createElement("span",null,"才能执行此动作")),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"isTheUser"}),c.default.createElement("span",null,"只有用户"),c.default.createElement("select",{value:this.state.userParam,onChange:function(t){return e.setState({userParam:t.target.value})},disabled:!(E.default.indexOf(this.state.conditions,"isTheUser")!==-1&&!C),style:E.default.indexOf(this.state.conditions,"isTheUser")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择用户"),k.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name+"("+e.email+")")})),c.default.createElement("span",null,"才能执行此动作")),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"checkSubTasksState"}),c.default.createElement("span",null,"根据子任务状态"),c.default.createElement("select",{value:this.state.stateParam,onChange:function(t){return e.setState({stateParam:t.target.value})},disabled:!(E.default.indexOf(this.state.conditions,"checkSubTasksState")!==-1&&!C),style:E.default.indexOf(this.state.conditions,"checkSubTasksState")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择状态"),F.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)})),c.default.createElement("span",null,"限制父任务动作")),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"hasPermission"}),c.default.createElement("span",null,"只有具有权限"),c.default.createElement("select",{value:this.state.permissionParam,onChange:function(t){return e.setState({permissionParam:t.target.value})},disabled:!(E.default.indexOf(this.state.conditions,"hasPermission")!==-1&&!C),style:E.default.indexOf(this.state.conditions,"hasPermission")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择权限"),_.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)})),c.default.createElement("span",null,"的用户才能执行此动作")),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"belongsToRole"}),c.default.createElement("span",null,"只有属于项目角色"),c.default.createElement("select",{value:this.state.roleParam, onChange:function(t){return e.setState({roleParam:t.target.value})},disabled:!(E.default.indexOf(this.state.conditions,"belongsToRole")!==-1&&!C),style:E.default.indexOf(this.state.conditions,"belongsToRole")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择角色"),D.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)})),c.default.createElement("span",null,"的成员才能执行此动作"))))),c.default.createElement(m.TabPane,{tab:"结果处理",key:"3"},c.default.createElement("div",{style:{paddingTop:"15px",paddingBottom:"25px",paddingLeft:"10px"}},c.default.createElement("span",null,c.default.createElement("b",null,"状态发生转变后以下被选择的动作将被执行"))),c.default.createElement(y.CheckboxGroup,{name:"postFunctions",value:this.state.postFunctions,onChange:this.postFunctionsChanged.bind(this)},c.default.createElement("ui",{className:"list-unstyled clearfix cond-list"},c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"setResolution"}),c.default.createElement("span",null,"问题的"),c.default.createElement("b",null,"解决结果"),c.default.createElement("span",null,"将被设置为"),c.default.createElement("select",{value:this.state.resolutionParam,onChange:function(t){return e.setState({resolutionParam:t.target.value})},disabled:!(E.default.indexOf(this.state.postFunctions,"setResolution")!==-1&&!C),style:E.default.indexOf(this.state.postFunctions,"setResolution")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择结果值"),M.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)}))),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"assignIssue"}),c.default.createElement("span",null,"将问题分配给"),c.default.createElement("select",{value:this.state.assigneeParam,onChange:function(t){return e.setState({assigneeParam:t.target.value})},disabled:!(E.default.indexOf(this.state.postFunctions,"assignIssue")!==-1&&!C),style:E.default.indexOf(this.state.postFunctions,"assignIssue")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择经办人"),x.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)}))),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"assignIssueToUser"}),c.default.createElement("span",null,"将问题分配给指定用户"),c.default.createElement("select",{value:this.state.assignedUserParam,onChange:function(t){return e.setState({assignedUserParam:t.target.value})},disabled:!(E.default.indexOf(this.state.postFunctions,"assignIssueToUser")!==-1&&!C),style:E.default.indexOf(this.state.postFunctions,"assignIssueToUser")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择用户"),k.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name+"("+e.email+")")}))),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{value:"setState"}),c.default.createElement("span",null,"将状态设置为目标步骤链接的状态")),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{disabled:C,value:"addComments"}),c.default.createElement("span",null,"如果用户输入了备注,将备注添加到问题中")),c.default.createElement("li",{style:{display:"none"}},c.default.createElement(y.Checkbox,{disabled:C,value:"updIssue"}),c.default.createElement("span",null,"更新问题属性")),c.default.createElement("li",null,c.default.createElement(y.Checkbox,{value:"triggerEvent"}),c.default.createElement("span",null,"过程结束后触发"),c.default.createElement("select",{value:this.state.eventParam,onChange:function(t){return e.setState({eventParam:t.target.value})},disabled:E.default.indexOf(this.state.postFunctions,"triggerEvent")===-1,style:E.default.indexOf(this.state.postFunctions,"triggerEvent")!==-1?N:j},c.default.createElement("option",{value:"",key:""},"请选择事件"),S.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)})),c.default.createElement("span",null,"通知事件"))))))),c.default.createElement(p.Modal.Footer,null,c.default.createElement(p.Button,{disabled:C||b,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:C,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{options:l.PropTypes.object,data:l.PropTypes.object,stepData:l.PropTypes.object,steps:l.PropTypes.array,submitting:l.PropTypes.bool,invalid:l.PropTypes.bool,values:l.PropTypes.object,fields:l.PropTypes.object,initializeForm:l.PropTypes.func.isRequired,handleSubmit:l.PropTypes.func.isRequired,close:l.PropTypes.func.isRequired,create:l.PropTypes.func.isRequired,edit:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"wfconfig",fields:["id","name","destStep","screen"],validate:P})(t)||t}(l.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},1936:function(e,t,n){try{(function(){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{actions:(0,h.bindActionCreators)(v,e)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0?void this.setState({saveNotifyShow:!0}):void this.save()}},{key:"save",value:function n(){var e,n,t,a,o;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e=this.props,n=e.save,t=e.collection,a={id:0,name:"initial_action",results:[{step:t[0].id,status:"Underway"}]},i.next=6,regeneratorRuntime.awrap(n({contents:{initial_action:a,steps:t}}));case 6:o=i.sent,0===o?h.notify.show("保存成功。","success",2e3):h.notify.show("保存失败,请重试。","error",2e3);case 8:case"end":return i.stop()}},null,this)}},{key:"cancelConfig",value:function(){this.setState({cancelNotifyShow:!0})}},{key:"cancel",value:function a(){var a=this.props.cancel;a()}},{key:"componentWillReceiveProps",value:function(e){var t=JSON.stringify(e.collection),n=this.props,a=(n.collection2JSON,n.setConfigChanged),o=t!=e.collection2JSON;this.setState({isChanged:o}),a(o)}},{key:"render",value:function(){var e=this,t=this.props,n=t.createStep,a=t.options,o=t.pathname,i=t.collection,r=(t.collection2JSON,t.workflowName),s=t.saveLoading;return l.default.createElement("div",null,this.state.isChanged&&i.length>0&&l.default.createElement("div",{className:"workflow-config-notice"},l.default.createElement("span",null,l.default.createElement("i",{className:"fa fa-exclamation-triangle"}),"  配置已修改,需保存后才能生效。"),l.default.createElement(c.Button,{onClick:this.saveConfig.bind(this),disabled:s},l.default.createElement("i",{className:"fa fa-save"})," 保存"),l.default.createElement(c.Button,{bsStyle:"link",onClick:this.cancelConfig.bind(this)},"取消修改"),l.default.createElement("img",{src:b,className:s?"loading":"hide"})),l.default.createElement("div",{style:{marginTop:"5px"}},l.default.createElement(d.Link,{to:o.substr(0,o.lastIndexOf("/"))},l.default.createElement(c.Button,{className:"create-btn"},l.default.createElement("i",{className:"fa fa-reply"})," 返回")),l.default.createElement(c.Button,{className:"create-btn",onClick:function(){e.setState({previewModalShow:!0})},disabled:i.length<=0},l.default.createElement("i",{className:"fa fa-search"})," 预览"),l.default.createElement(c.Button,{className:"create-btn",onClick:function(){e.setState({createStepModalShow:!0})}},l.default.createElement("i",{className:"fa fa-plus"})," 新建步骤"),l.default.createElement("span",{style:{"float":"right",marginTop:"20px",marginRight:"10px",fontWeight:"bold"}},r),l.default.createElement("span",{style:{"float":"right",marginTop:"20px"}},"工作流名称:")),l.default.createElement("div",{className:"info-col"},l.default.createElement("div",{className:"info-icon"},l.default.createElement("i",{className:"fa fa-info-circle"})),l.default.createElement("div",{className:"info-content"},"配置工作流时应先新建工作流步骤,然后再添加相关的动作。",l.default.createElement("br",null),"每一步骤相关联的状态在状态模块中定义。")),this.state.createStepModalShow&&l.default.createElement(m,{show:!0,close:this.createStepModalClose,create:n,options:a,collection:i}),this.state.saveNotifyShow&&l.default.createElement(v,{show:!0,close:this.saveNotifyClose,save:this.save}),this.state.cancelNotifyShow&&l.default.createElement(v,{show:!0,close:this.cancelNotifyClose,cancel:this.cancel}),this.state.previewModalShow&&l.default.createElement(y,{show:!0,close:this.previewModalClose,collection:i,name:r}))}}],[{key:"propTypes",value:{pathname:u.PropTypes.string.isRequired,workflowName:u.PropTypes.string,ecode:u.PropTypes.number.isRequired,collection:u.PropTypes.array.isRequired,collection2JSON:u.PropTypes.string.isRequired,saveLoading:u.PropTypes.bool.isRequired,options:u.PropTypes.object.isRequired,setConfigChanged:u.PropTypes.func.isRequired,save:u.PropTypes.func.isRequired,cancel:u.PropTypes.func.isRequired,createStep:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},1938:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n>"," "+f.default.find(n,{id:e.step}).name)}))})),operation:l.default.createElement("div",null,l.default.createElement(d.Button,{bsStyle:"link",onClick:e.addAction.bind(e,n[t].id)},"添加动作"),l.default.createElement(d.Button,{bsStyle:"link",onClick:e.delAction.bind(e,n[t].id)},"删除动作"),l.default.createElement(d.Button,{bsStyle:"link",onClick:e.showStep.bind(e,n[t].id)},"编辑"),0===n[t].actions.length&&1!==n[t].id&&f.default.indexOf(P,n[t].id)===-1&&l.default.createElement(d.Button,{bsStyle:"link",onClick:e.delStepNotify.bind(e,n[t].id)},"删除"))})},w=0;w0&&f.default.map(s.data,function(e){r.push({id:e.id,name:e.name})}),i.abrupt("return",{options:r});case 12:case"end":return i.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,a=n.name,s=n.dest_path,r=e.handleSubmit,o=e.invalid,u=e.submitting,l=e.data;return d.default.createElement(m.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},d.default.createElement(m.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},d.default.createElement(m.Modal.Title,{id:"contained-modal-title-la"},"复制",1===l.d?"目录":"文档"," - ",l.name)),d.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},d.default.createElement(m.Modal.Body,null,d.default.createElement(m.FormGroup,{controlId:"formControlsText",validationState:a.touched&&a.error?"error":null},d.default.createElement(m.ControlLabel,null,d.default.createElement("span",{className:"txt-impt"},"*"),"名称"),d.default.createElement(m.FormControl,i({disabled:u,type:"text"},a,{placeholder:"名称"})),a.touched&&a.error&&d.default.createElement(m.HelpBlock,{style:{"float":"right"}},a.error)),d.default.createElement(m.FormGroup,{controlId:"formControlsText"},d.default.createElement(m.ControlLabel,null,"复制到"),d.default.createElement(h.default.Async,{clearable:!1,disabled:u,options:[],value:s.value,onChange:function(e){s.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称(默认当前路径)"}))),d.default.createElement(m.Modal.Footer,null,d.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!u&&t[this.state.ecode]),d.default.createElement("img",{src:v,className:u?"loading":"hide"}),d.default.createElement(m.Button,{disabled:u||o,type:"submit"},"确定"),d.default.createElement(m.Button,{bsStyle:"link",disabled:u,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,project_key:l.PropTypes.string.isRequired,submitting:l.PropTypes.bool,invalid:l.PropTypes.bool,values:l.PropTypes.object,fields:l.PropTypes.object,handleSubmit:l.PropTypes.func.isRequired,close:l.PropTypes.func.isRequired,data:l.PropTypes.object.isRequired,initializeForm:l.PropTypes.func.isRequired,curPath:l.PropTypes.string.isRequired,copy:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"copy_wiki",fields:["name","dest_path"],validate:Y})(t)||t}(l.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},1928:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1&&f.default.isEmpty(A)){var G=O.path[O.path.length-2];J.push({id:G.id,name:l.default.createElement("div",null,l.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},l.default.createElement("i",{className:"fa fa-arrow-up"})),l.default.createElement(d.Link,{to:"/project/"+a+"/wiki"+("0"!==G.id?"/"+G.id:"")},"返回上级")),operation:l.default.createElement("div",null)})}W&&J.push({id:"createFolder",name:l.default.createElement(D,{i18n:n,loading:u,data:{},create:j,collection:r,cancel:this.cancelEditRow}),operation:l.default.createElement("div",null)});var K=f.default.filter(r,{d:1});f.default.map(K,function(t,s){return z==t.id?void J.push({id:t.id,name:l.default.createElement(D,{i18n:n,loading:u,data:i,collection:r,edit:H,cancel:e.cancelEditRow}),operation:l.default.createElement("div",null)}):void J.push({id:t.id,name:l.default.createElement("div",null,l.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},l.default.createElement("i",{className:"fa fa-folder"})),l.default.createElement(d.Link,{to:"/project/"+a+"/wiki/"+t.id},t.name)),operation:l.default.createElement("div",null,I&&N===t.id&&!h&&O.permissions&&O.permissions.indexOf("manage_project")!==-1&&l.default.createElement(m.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:s,title:U,id:"dropdown-basic-"+s,onClick:e.cancelEditRow,onSelect:e.operateSelect.bind(e)},O.permissions&&O.permissions.indexOf("manage_project")!==-1&&l.default.createElement(m.MenuItem,{eventKey:"rename"},"重命名"),O.permissions&&O.permissions.indexOf("manage_project")!==-1&&l.default.createElement(m.MenuItem,{eventKey:"move"},"移动"),O.permissions&&O.permissions.indexOf("manage_project")!==-1&&l.default.createElement(m.MenuItem,{eventKey:"del"},"删除")),l.default.createElement("img",{src:T,className:h&&i.id===t.id?"loading":"hide"}))})});for(var Q=f.default.reject(r,{d:1}),Z=Q.length,$=0;$0&&p.default.map(i.data,function(e){e.id!==a.parent&&o.push({id:e.id,name:e.name})}),u.abrupt("return",{options:o});case 14:case"end":return u.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,a=(n.id,n.dest_path),s=e.handleSubmit,r=e.invalid,i=e.submitting,o=e.data;return l.default.createElement(c.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},l.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},l.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"移动",1===o.d?"目录":"文档"," - ",o.name)),l.default.createElement("form",{onSubmit:s(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},l.default.createElement(c.Modal.Body,null,l.default.createElement(c.FormGroup,{validationState:a.touched&&a.error?"error":null},l.default.createElement(c.ControlLabel,null,l.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),l.default.createElement(_.default.Async,{clearable:!1,disabled:i,options:[],value:a.value,onChange:function(e){a.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称"}),a.touched&&a.error&&l.default.createElement(c.HelpBlock,{style:{"float":"right"}},a.error))),l.default.createElement(c.Modal.Footer,null,l.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&t[this.state.ecode]),l.default.createElement("img",{src:g,className:i?"loading":"hide"}),l.default.createElement(c.Button,{disabled:i||r,type:"submit"},"确定"),l.default.createElement(c.Button,{bsStyle:"link",disabled:i,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project_key:u.PropTypes.string.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,data:u.PropTypes.object.isRequired,initializeForm:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move_wiki",fields:["id","dest_path"],validate:v})(t)||t}(u.Component);t.default=Y,e.exports=t.default}).call(this)}finally{}},1933:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1&&l.default.createElement("span",{style:{color:"#707070"}},"共 ",l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({versionViewShow:!0})}},u.versions.length)," 个版本。"),u.checkin&&!p.default.isEmpty(u.checkin)&&l.default.createElement("span",{style:{marginLeft:"8px",color:"#f0ad4e"}},l.default.createElement("i",{className:"fa fa-lock"})," 该文档被",u.checkin.user?u.checkin.user.id==s.id?"我":u.checkin.user.name||"":"","于 ",u.checkin.at?M.unix(u.checkin.at).format("YYYY/MM/DD HH:mm"):""," 锁定。"),!o||"refresh"!==this.state.operate&&"checkin"!=this.state.operate&&"checkout"!=this.state.operate?l.default.createElement("span",null,!p.default.isEmpty(u.checkin)&&(u.checkin.user&&u.checkin.user.id===s.id||a.permissions&&a.permissions.indexOf("manage_project")!==-1)&&l.default.createElement("span",{style:{marginLeft:"8px"}},l.default.createElement("a",{href:"#",title:"解锁",onClick:function(t){t.preventDefault(),e.checkout()}},l.default.createElement("i",{className:"fa fa-unlock"}))),p.default.isEmpty(u.checkin)&&l.default.createElement("span",{style:{marginLeft:"8px"}},l.default.createElement("a",{href:"#",title:"锁定",onClick:function(t){t.preventDefault(),e.checkin()}},l.default.createElement("i",{className:"fa fa-lock"}))),l.default.createElement("span",{style:{marginLeft:"8px"}},l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.refresh()},title:A?"刷新":"最新版"},l.default.createElement("i",{className:"fa fa-refresh"})))):l.default.createElement("span",null,l.default.createElement("img",{src:L,className:"loading",style:{width:"13px",height:"13px"}}))),l.default.createElement("div",{style:{marginTop:"15px",marginBottom:"20px",paddingLeft:"5px"}},l.default.createElement("div",{style:{display:"none"}},l.default.createElement("textarea",{name:"field",id:"filepreview"})),u.id&&O&&l.default.createElement("div",{id:"wiki-contents",dangerouslySetInnerHTML:{__html:O}}),u.id&&!O&&l.default.createElement("div",{style:{height:"200px",textAlign:"center"}},l.default.createElement("div",{style:{paddingTop:"80px",color:"#999"}},"暂无内容"))),u.id&&u.attachments&&u.attachments.length>0&&l.default.createElement("div",{style:{marginBottom:"0px"}},l.default.createElement(c.Table,{id:"attachmentlist",condensed:!0,hover:!0,responsive:!0},l.default.createElement("tbody",null,p.default.map(u.attachments,function(t,n){return l.default.createElement("tr",{key:n},l.default.createElement("td",null,l.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},l.default.createElement("i",{className:(0,y.getFileIconCss)(t.name)})),a.permissions&&a.permissions.indexOf("download_file")!==-1?l.default.createElement("a",{href:"/api/project/"+r+"/wiki/"+m+"/file/"+t.id+"/download",download:t.name},t.name):t.name),l.default.createElement("td",{width:"10%"},l.default.createElement("div",{style:{whiteSpace:"nowrap"}},t.uploader.name+" "+M.unix(t.uploaded_at).format("YY/MM/DD HH:mm"))),l.default.createElement("td",{width:"2%"},l.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.id,t.name)},l.default.createElement("i",{className:"fa fa-trash"}))))})))),u.id&&a.permissions&&a.permissions.indexOf("upload_file")!==-1&&l.default.createElement("div",{style:{marginTop:"0px"}},l.default.createElement(_.default,{style:{height:"200px"},config:H,eventHandlers:P,djsConfig:F})),u.attachments&&u.attachments.length>1&&l.default.createElement("div",{style:{marginLeft:"5px",marginTop:"10px"}},l.default.createElement("i",{className:"fa fa-download"}),l.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.downloadAll()}},"下载全部")),l.default.createElement("div",{style:{marginBottom:"40px"}}),this.state.delNotifyShow&&l.default.createElement(v,{show:!0,close:this.delNotifyClose.bind(this),data:u,reload:x,del:f}),this.state.checkoutNotifyShow&&l.default.createElement(Y,{ show:!0,close:this.checkoutNotifyClose.bind(this),data:u,checkout:S}),this.state.versionViewShow&&l.default.createElement(b,{show:!0,close:this.versionViewClose.bind(this),select:this.selectVersion.bind(this),versions:u.versions||[]}),this.state.editModalShow&&l.default.createElement(w,{i18n:n,show:!0,user:s,checkin:E,get:j,close:this.editModalClose.bind(this),path:a.path||[],itemLoading:o,loading:i,wid:m,data:u,update:h}),this.state.delFileShow&&l.default.createElement(k,{show:!0,close:this.delFileModalClose,del:T,data:this.state.selectedFile,loading:i,wid:m,i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,user:u.PropTypes.object.isRequired,project_key:u.PropTypes.string.isRequired,wid:u.PropTypes.string.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,item:u.PropTypes.object.isRequired,show:u.PropTypes.func.isRequired,checkin:u.PropTypes.func.isRequired,checkout:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,delFile:u.PropTypes.func.isRequired,addAttachment:u.PropTypes.func.isRequired,reload:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},1934:function(e,t,n){try{(function(){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",a=function(e){var n=p.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(o+=t[e].id+'["'+n+'"];',"continue"):void p.default.map(t[e].actions,function(r){p.default.map(r.results,function(a){o+=t[e].id+'["'+n+'"]',o+='--"'+p.default.escape(r.name)+"("+r.id+')"-->';var l=p.default.find(t,{id:a.step});o+=l.id+'["'+p.default.escape(l.name)+'"];'})})},l=0;l0?p.default.last(l):{},i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,collection:u.PropTypes.array.isRequired,isSysConfig:u.PropTypes.bool.isRequired,goConfig:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component));t.default=y,e.exports=t.default}).call(this)}finally{}},1950:function(e,t,n){try{(function(){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n0?s.default.createElement("span",null,"共有应用项目 ",s.default.createElement("strong",null,t.length)," 个"):s.default.createElement("span",null,"暂无项目应用")),!r&&t.length>0&&s.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"项目名称"),s.default.createElement("th",null,"问题类型"))),s.default.createElement("tbody",null,f.default.map(t,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",null,"active"===e.status?s.default.createElement("span",null,s.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):s.default.createElement("span",null,e.name,"(已关闭)")),s.default.createElement("td",null,"active"===e.status?s.default.createElement("span",null,s.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.types)?"-":f.default.map(e.types,function(t,n){return s.default.createElement("li",{key:n},s.default.createElement(d.Link,{to:"/project/"+e.key+"/type"},t.name))}))):s.default.createElement("span",null,s.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},f.default.isEmpty(e.types)?"-":f.default.map(e.types,function(e,t){return s.default.createElement("li",{key:t},e.name)})))))})))),s.default.createElement(c.Modal.Footer,null,s.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:u.PropTypes.func.isRequired,view:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,data:u.PropTypes.object.isRequired,projects:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=m,e.exports=t.default}).call(this)}finally{}}}); -//# sourceMappingURL=workflow-e84984431a143be0907e.js.map \ No newline at end of file +//# sourceMappingURL=workflow-84397989593b11928a6a.js.map \ No newline at end of file diff --git a/public/scripts/app.js b/public/scripts/app.js index ec8d273fd..fcb22d8d8 100644 --- a/public/scripts/app.js +++ b/public/scripts/app.js @@ -8,7 +8,7 @@ h(e);for(var r,o=n.getKeys(t),a=o.length,i=0;a>i;)n.setDesc(e,r=o[i++],t[r]);ret },function(e,t,r){t=e.exports=r(185)(),t.push([e.id,'.mermaid .label{color:#333}.node circle,.node ellipse,.node polygon,.node rect{fill:#ececff;stroke:#ccf;stroke-width:1px}.arrowheadPath{fill:#333}.edgePath .path{stroke:#333}.edgeLabel{background-color:#e8e8e8}.cluster rect{fill:#ffffde!important;rx:4!important;stroke:#aa3!important;stroke-width:1px!important}.cluster text{fill:#333}.actor{stroke:#ccf;fill:#ececff}text.actor{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{marker-end:"url(#arrowhead)"}.messageLine0,.messageLine1{stroke-width:1.5;stroke-dasharray:"2 2";stroke:#333}#arrowhead{fill:#333}#crosshead path{fill:#333!important;stroke:#333!important}.messageText{fill:#333;stroke:none}.labelBox{stroke:#ccf;fill:#ececff}.labelText,.loopText{fill:#000;stroke:none}.loopLine{stroke-width:2;stroke-dasharray:"2 2";marker-end:"url(#arrowhead)";stroke:#ccf}.note{stroke:#aa3;fill:#fff5ad}.noteText{fill:#000;stroke:none;font-family:trebuchet ms,verdana,arial;font-size:14px}.section{stroke:none;opacity:.2}.section0{fill:rgba(102,102,255,.49)}.section2{fill:#fff400}.section1,.section3{fill:#fff;opacity:.2}.sectionTitle0,.sectionTitle1,.sectionTitle2,.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px}.grid .tick{stroke:#d3d3d3;opacity:.3;shape-rendering:crispEdges}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#8a90dd;stroke:#534fbc}.taskTextOutside0,.taskTextOutside1,.taskTextOutside2,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#bfc7ff;stroke:#534fbc}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000!important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000!important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3,.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000!important}.titleText{text-anchor:middle;font-size:18px;fill:#000}g.classGroup text{fill:#9370db;stroke:none;font-family:trebuchet ms,verdana,arial;font-size:10px}g.classGroup rect{fill:#ececff;stroke:#9370db}g.classGroup line{stroke:#9370db;stroke-width:1}svg .classLabel .box{stroke:none;stroke-width:0;fill:#ececff;opacity:.5}svg .classLabel .label{fill:#9370db;font-size:10px}.relation{stroke:#9370db;stroke-width:1;fill:none}#compositionEnd,#compositionStart,.composition{fill:#9370db;stroke:#9370db;stroke-width:1}#aggregationEnd,#aggregationStart,.aggregation{fill:#ececff;stroke:#9370db;stroke-width:1}#dependencyEnd,#dependencyStart,#extensionEnd,#extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}.node text{font-size:14px}.node text,div.mermaidTooltip{font-family:trebuchet ms,verdana,arial}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}',""])},function(e,t,r){t=e.exports=r(185)(),t.push([e.id,'.rc-tabs{box-sizing:border-box;position:relative}.rc-tabs-bar{outline:none}.rc-tabs-ink-bar{z-index:1;position:absolute;box-sizing:border-box;margin-top:-3px;background-color:#3fc7fa;transform-origin:0 0}.rc-tabs-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) .09s,bottom .3s cubic-bezier(.35,0,.25,1),transform .3s cubic-bezier(.35,0,.25,1) .09s,top .3s cubic-bezier(.35,0,.25,1) .09s}.rc-tabs-ink-bar-transition-backward{transition:bottom .3s cubic-bezier(.35,0,.25,1) .09s,right .3s cubic-bezier(.35,0,.25,1) .09s,left .3s cubic-bezier(.35,0,.25,1),transform .3s cubic-bezier(.35,0,.25,1) .09s,top .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-nav-container{font-size:14px;line-height:1.5;box-sizing:border-box;overflow:hidden;position:relative;white-space:nowrap}.rc-tabs-tab-next,.rc-tabs-tab-prev{-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none;z-index:1;line-height:36px;cursor:pointer;border:none;background-color:transparent;position:absolute}.rc-tabs-tab-next-icon,.rc-tabs-tab-prev-icon{position:relative;display:inline-block;font-style:normal;font-weight:400;font-variant:normal;line-height:inherit;vertical-align:baseline;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0;-moz-osx-font-smoothing:grayscale;font-family:sans-serif}.rc-tabs-tab-next-icon:before,.rc-tabs-tab-prev-icon:before{display:block}.rc-tabs-tab-btn-disabled{cursor:default;color:#ccc}.rc-tabs-nav-wrap{overflow:hidden}.rc-tabs-nav{box-sizing:border-box;padding-left:0;position:relative;margin:0;float:left;list-style:none;display:inline-block;transform-origin:0 0;transition:transform .5s cubic-bezier(.35,0,.25,1),left .5s cubic-bezier(.35,0,.25,1),top .5s cubic-bezier(.35,0,.25,1)}.rc-tabs-nav:after,.rc-tabs-nav:before{display:table;content:" "}.rc-tabs-nav:after{clear:both}.rc-tabs-nav div.rc-tabs-tab-active>.rc-tabs-tab-inner,.rc-tabs-nav div.rc-tabs-tab-active>.rc-tabs-tab-inner:hover{color:#3fc7fa;cursor:default;transform:translateZ(0)}.rc-tabs-nav div.rc-tabs-tab-disabled{cursor:default;color:#ccc}.rc-tabs-nav div.rc-tabs-tab-disabled>.rc-tabs-tab-inner{cursor:default}.rc-tabs-nav div.rc-tabs-tab-disabled>.rc-tabs-tab-inner:hover{color:#ccc}.rc-tabs-nav .rc-tabs-tab{box-sizing:border-box;position:relative;display:block}.rc-tabs-nav .rc-tabs-tab>.rc-tabs-tab-inner{transition:color .3s cubic-bezier(.35,0,.25,1);padding:8px 20px;font-weight:500;display:inline-block;cursor:pointer}.rc-tabs-nav .rc-tabs-tab>.rc-tabs-tab-inner:hover{color:#23c0fa}.rc-tabs-tabpane-hidden{display:none}.rc-tabs-content{position:relative;overflow:hidden}.rc-tabs-slide-horizontal-backward-enter{transform:translateX(-100%)}.rc-tabs-slide-horizontal-backward-enter.rc-tabs-slide-horizontal-backward-enter-active{transform:translateX(0) translateZ(0);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-slide-horizontal-backward-leave{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0;transform:translateX(0)}.rc-tabs-slide-horizontal-backward-leave.rc-tabs-slide-horizontal-backward-leave-active{transform:translateX(100%) translateZ(0);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-slide-horizontal-forward-enter{transform:translateX(100%)}.rc-tabs-slide-horizontal-forward-enter.rc-tabs-slide-horizontal-forward-enter-active{transform:translateX(0) translateZ(0);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-slide-horizontal-forward-leave{overflow:hidden;position:absolute;transform:translateX(0);top:0;right:0;left:0;bottom:0}.rc-tabs-slide-horizontal-forward-leave.rc-tabs-slide-horizontal-forward-leave-active{transform:translateX(-100%) translateZ(0);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-slide-vertical-backward-enter{transform:translateY(-100%)}.rc-tabs-slide-vertical-backward-enter.rc-tabs-slide-vertical-backward-enter-active{transform:translateY(0) translateZ(0);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-slide-vertical-backward-leave{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0;transform:translateY(0)}.rc-tabs-slide-vertical-backward-leave.rc-tabs-slide-vertical-backward-leave-active{transform:translateY(100%) translateZ(0);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-slide-vertical-forward-enter{transform:translateY(100%)}.rc-tabs-slide-vertical-forward-enter.rc-tabs-slide-vertical-forward-enter-active{transform:translateY(0) translateZ(0);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-slide-vertical-forward-leave{overflow:hidden;position:absolute;transform:translateY(0);top:0;right:0;left:0;bottom:0}.rc-tabs-slide-vertical-forward-leave.rc-tabs-slide-vertical-forward-leave-active{transform:translateY(-100%);transition:transform .3s cubic-bezier(.35,0,.25,1)}.rc-tabs-left{border-right:2px solid #f3f3f3}.rc-tabs-left .rc-tabs-bar{float:left;margin-right:10px;border-right:1px solid #f3f3f3}.rc-tabs-left .rc-tabs-nav-container-scrolling{padding-top:32px;padding-bottom:32px}.rc-tabs-left .rc-tabs-content,.rc-tabs-left .rc-tabs-nav-wrap{height:100%}.rc-tabs-left .rc-tabs-nav-scroll{height:99999px}.rc-tabs-left .rc-tabs-tab-next,.rc-tabs-left .rc-tabs-tab-prev{margin-top:-2px;height:32px;line-height:32px;width:100%;display:block;text-align:center}.rc-tabs-left .rc-tabs-tab-next{bottom:0}.rc-tabs-left .rc-tabs-tab-next-icon{transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.rc-tabs-left .rc-tabs-tab-next-icon:before{content:">"}.rc-tabs-left .rc-tabs-tab-prev{top:2px}.rc-tabs-left .rc-tabs-tab-prev-icon{transform:rotate(270deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.rc-tabs-left .rc-tabs-tab-prev-icon:before{content:">"}.rc-tabs-left .rc-tabs-ink-bar{width:2px;right:0}.rc-tabs-left .rc-tabs-nav .rc-tabs-tab{padding:16px 24px}.rc-tabs-right{border-left:2px solid #f3f3f3}.rc-tabs-right .rc-tabs-bar{float:right;margin-left:10px;border-left:1px solid #f3f3f3}.rc-tabs-right .rc-tabs-nav-container-scrolling{padding-top:32px;padding-bottom:32px}.rc-tabs-right .rc-tabs-nav-wrap{height:100%}.rc-tabs-right .rc-tabs-nav-scroll{height:99999px}.rc-tabs-right .rc-tabs-tab-next,.rc-tabs-right .rc-tabs-tab-prev{margin-top:-2px;height:32px;width:100%;display:block;text-align:center;line-height:32px}.rc-tabs-right .rc-tabs-tab-next{bottom:0}.rc-tabs-right .rc-tabs-tab-next-icon{transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.rc-tabs-right .rc-tabs-tab-next-icon:before{content:">"}.rc-tabs-right .rc-tabs-tab-prev{top:2px}.rc-tabs-right .rc-tabs-tab-prev-icon{transform:rotate(270deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.rc-tabs-right .rc-tabs-tab-prev-icon:before{content:">"}.rc-tabs-right .rc-tabs-content{height:100%}.rc-tabs-right .rc-tabs-ink-bar{width:2px;left:0}.rc-tabs-right .rc-tabs-nav .rc-tabs-tab{padding:16px 24px}.rc-tabs-bottom{border-top:2px solid #f3f3f3}.rc-tabs-bottom .rc-tabs-bar{border-top:1px solid #f3f3f3}.rc-tabs-bottom .rc-tabs-nav-container-scrolling{padding-left:32px;padding-right:32px}.rc-tabs-bottom .rc-tabs-nav-scroll{width:99999px}.rc-tabs-bottom .rc-tabs-content,.rc-tabs-bottom .rc-tabs-nav-wrap{width:100%}.rc-tabs-bottom .rc-tabs-tab-next{right:2px}.rc-tabs-bottom .rc-tabs-tab-next-icon:before{content:">"}.rc-tabs-bottom .rc-tabs-tab-prev{left:0}.rc-tabs-bottom .rc-tabs-tab-prev-icon:before{content:"<"}.rc-tabs-bottom .rc-tabs-tab-next,.rc-tabs-bottom .rc-tabs-tab-prev{margin-right:-2px;width:32px;height:100%;top:0;text-align:center}.rc-tabs-bottom .rc-tabs-ink-bar{height:2px;top:3px;left:0}.rc-tabs-bottom .rc-tabs-nav .rc-tabs-tab{float:left;height:100%;margin-right:30px}.rc-tabs-top{border-bottom:2px solid #f3f3f3}.rc-tabs-top .rc-tabs-bar{border-bottom:1px solid #f3f3f3}.rc-tabs-top .rc-tabs-nav-container-scrolling{padding-left:32px;padding-right:32px}.rc-tabs-top .rc-tabs-nav-scroll{width:99999px}.rc-tabs-top .rc-tabs-content,.rc-tabs-top .rc-tabs-nav-wrap{width:100%}.rc-tabs-top .rc-tabs-tab-next{right:2px}.rc-tabs-top .rc-tabs-tab-next-icon:before{content:">"}.rc-tabs-top .rc-tabs-tab-prev{left:0}.rc-tabs-top .rc-tabs-tab-prev-icon:before{content:"<"}.rc-tabs-top .rc-tabs-tab-next,.rc-tabs-top .rc-tabs-tab-prev{margin-right:-2px;width:32px;height:100%;top:0;text-align:center}.rc-tabs-top .rc-tabs-ink-bar{height:2px;bottom:0;left:0}.rc-tabs-top .rc-tabs-nav .rc-tabs-tab{float:left;height:100%;margin-right:30px}',""])},function(e,t,r){t=e.exports=r(185)(),t.push([e.id,'.react-bs-table-container .react-bs-table-search-form{margin-bottom:0}.react-bs-table{border:1px solid #ddd;border-radius:5px}.react-bs-table table{margin-bottom:0;table-layout:fixed}.react-bs-table table td,.react-bs-table table th{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.react-bs-table{margin:5px 10px}.react-bs-table-pagination{margin:10px}.react-bs-table-tool-bar{margin:10px 10px 0}.react-bs-container-header{overflow:hidden;width:100%}.react-bs-container-body{overflow:auto;width:100%}.react-bs-table .table-bordered{border:0}.react-bs-table .table-bordered>thead>tr>td,.react-bs-table .table-bordered>thead>tr>th{border-bottom-width:2px}.react-bs-table .table-bordered>tfoot>tr>td,.react-bs-table .table-bordered>tfoot>tr>th{border-top-width:2px;border-bottom-width:0}.react-bs-table .table-bordered>tbody>tr>td:first-child,.react-bs-table .table-bordered>tbody>tr>th:first-child,.react-bs-table .table-bordered>tfoot>tr>td:first-child,.react-bs-table .table-bordered>tfoot>tr>th:first-child,.react-bs-table .table-bordered>thead>tr>td:first-child,.react-bs-table .table-bordered>thead>tr>th:first-child{border-left-width:0}.react-bs-table .table-bordered>tbody>tr>td:last-child,.react-bs-table .table-bordered>tbody>tr>th:last-child,.react-bs-table .table-bordered>tfoot>tr>td:last-child,.react-bs-table .table-bordered>tfoot>tr>th:last-child,.react-bs-table .table-bordered>thead>tr>td:last-child,.react-bs-table .table-bordered>thead>tr>th:last-child{border-right-width:0}.react-bs-table .table-bordered>thead>tr:first-child>td,.react-bs-table .table-bordered>thead>tr:first-child>th{border-top-width:0}.react-bs-table .table-bordered>tfoot>tr:last-child>td,.react-bs-table .table-bordered>tfoot>tr:last-child>th{border-bottom-width:0}.react-bs-table .react-bs-container-header>table>thead>tr>th{vertical-align:middle}.react-bs-table .react-bs-container-header>table>thead>tr>th .filter{font-weight:400}.react-bs-table .react-bs-container-header>table>thead>tr>th .filter::-webkit-input-placeholder,.react-bs-table .react-bs-container-header>table>thead>tr>th .number-filter-input::-webkit-input-placeholder,.react-bs-table .react-bs-container-header>table>thead>tr>th .select-filter.placeholder-selected,.react-bs-table .react-bs-container-header>table>thead>tr>th .select-filter option[value=""]{color:#d3d3d3;font-style:italic}.react-bs-table .react-bs-container-header>table>thead>tr>th .select-filter.placeholder-selected option:not([value=""]){color:initial;font-style:normal}.react-bs-table .react-bs-container-header>table>thead>tr>th .date-filter,.react-bs-table .react-bs-container-header>table>thead>tr>th .number-filter{display:-ms-flexbox;display:flex}.react-bs-table .react-bs-container-header>table>thead>tr>th .date-filter-input,.react-bs-table .react-bs-container-header>table>thead>tr>th .number-filter-input{margin-left:5px;float:left;width:calc(100% - 67px - 5px)}.react-bs-table .react-bs-container-header>table>thead>tr>th .date-filter-comparator,.react-bs-table .react-bs-container-header>table>thead>tr>th .number-filter-comparator{width:67px;float:left}.react-bs-table .react-bs-container-header .sort-column{cursor:pointer}.react-bs-container .textarea-save-btn{position:absolute;z-index:100;right:0;top:-21px}.react-bs-table-no-data{text-align:center}.animated{animation-fill-mode:both}.animated.bounceIn,.animated.bounceOut{animation-duration:.75s}.animated.shake{animation-duration:.3s}@keyframes shake{0%,to{transform:translateZ(0)}10%,50%,90%{transform:translate3d(-10px,0,0)}30%,70%{transform:translate3d(10px,0,0)}}.shake{animation-name:shake}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleX(1)}}.bounceIn{animation-name:bounceIn}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}.bounceOut{animation-name:bounceOut}',""])},function(e,t,r){t=e.exports=r(185)(),t.push([e.id,'/*!\n * https://github.com/arqex/react-datetime\n */.rdt{position:relative}.rdtPicker{display:none;position:absolute;width:250px;padding:4px;margin-top:1px;z-index:99999!important;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1);border:1px solid #f9f9f9}.rdtOpen .rdtPicker{display:block}.rdtStatic .rdtPicker{box-shadow:none;position:static}.rdtPicker .rdtTimeToggle{text-align:center}.rdtPicker table{width:100%;margin:0}.rdtPicker td,.rdtPicker th{text-align:center;height:28px}.rdtPicker td{cursor:pointer}.rdtPicker .rdtTimeToggle:hover,.rdtPicker td.rdtDay:hover,.rdtPicker td.rdtHour:hover,.rdtPicker td.rdtMinute:hover,.rdtPicker td.rdtSecond:hover{background:#eee;cursor:pointer}.rdtPicker td.rdtNew,.rdtPicker td.rdtOld{color:#999}.rdtPicker td.rdtToday{position:relative}.rdtPicker td.rdtToday:before{content:"";display:inline-block;border-left:7px solid transparent;border-bottom:7px solid #428bca;border-top-color:rgba(0,0,0,.2);position:absolute;bottom:4px;right:4px}.rdtPicker td.rdtActive,.rdtPicker td.rdtActive:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.rdtPicker td.rdtActive.rdtToday:before{border-bottom-color:#fff}.rdtPicker td.rdtDisabled,.rdtPicker td.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker td span.rdtOld{color:#999}.rdtPicker td span.rdtDisabled,.rdtPicker td span.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker th{border-bottom:1px solid #f9f9f9}.rdtPicker .dow{width:14.2857%;border-bottom:none}.rdtPicker th.rdtSwitch{width:100px}.rdtPicker th.rdtNext,.rdtPicker th.rdtPrev{font-size:21px;vertical-align:top}.rdtNext span,.rdtPrev span{display:block;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtPicker th.rdtDisabled,.rdtPicker th.rdtDisabled:hover{background:none;color:#999;cursor:not-allowed}.rdtPicker thead tr:first-child th{cursor:pointer}.rdtPicker thead tr:first-child th:hover{background:#eee}.rdtPicker tfoot{border-top:1px solid #f9f9f9}.rdtPicker button{border:none;background:none;cursor:pointer}.rdtPicker button:hover{background-color:#eee}.rdtPicker thead button{width:100%;height:100%}td.rdtMonth,td.rdtYear{height:50px;width:25%;cursor:pointer}td.rdtMonth:hover,td.rdtYear:hover{background:#eee}.rdtCounters{display:inline-block}.rdtCounters>div{float:left}.rdtCounter{height:100px;width:40px}.rdtCounterSeparator{line-height:100px}.rdtCounter .rdtBtn{height:40%;line-height:40px;cursor:pointer;display:block;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtCounter .rdtBtn:hover{background:#eee}.rdtCounter .rdtCount{height:20%;font-size:1.2em}.rdtMilli{vertical-align:middle;padding-left:8px;width:48px}.rdtMilli input{width:100%;font-size:1.2em;margin-top:37px}',""])},function(e,t,r){t=e.exports=r(185)(),t.push([e.id,'.filepicker{font-family:sans-serif}div.filepicker{text-align:center;padding:5px;background-color:#e1e1e1;border-radius:5px;min-height:60px;border:2px dashed #c7c7c7}.filepicker-file-icon{position:relative;display:inline-block;margin:1.5em 0 2.5em;padding-left:45px;color:#000}.filepicker-file-icon:before{position:absolute;top:-7px;left:0;width:29px;height:34px;content:"";border:2px solid #7f7f7f;border-radius:2px}.filepicker-file-icon:after{font-size:11px;line-height:1.3;position:absolute;top:9px;left:-4px;padding:0 2px;content:"file";content:attr(data-filetype);text-align:right;letter-spacing:1px;text-transform:uppercase;color:#fff;background-color:#000}.filepicker-file-icon .fileCorner{position:absolute;top:-7px;left:22px;width:0;height:0;border-width:11px 0 0 11px;border-style:solid;border-color:#fff transparent transparent #920035}',""])},function(e,t,r){t=e.exports=r(185)(),t.push([e.id,".Select{position:relative}.Select,.Select div,.Select input,.Select span{box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none}.is-searchable.is-open>.Select-control{cursor:text}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:none;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.is-open .Select-arrow,.Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}",""])},function(e,t,r){t=e.exports=r(185)(),t.push([e.id,'.CodeMirror{color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:none}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected,.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.CodeMirror-focused .CodeMirror-selected,.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:0 0}.CodeMirror{height:auto;border:1px solid #ddd;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:1}.CodeMirror,.CodeMirror-scroll{min-height:300px}.CodeMirror-fullscreen{background:#fff;position:fixed!important;top:50px;left:0;right:0;bottom:0;height:auto;z-index:9}.CodeMirror-sided{width:50%!important}.editor-toolbar{position:relative;opacity:.6;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:0 10px;border-top:1px solid #bbb;border-left:1px solid #bbb;border-right:1px solid #bbb;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar:after,.editor-toolbar:before{display:block;content:" ";height:1px}.editor-toolbar:before{margin-bottom:8px}.editor-toolbar:after{margin-top:8px}.editor-toolbar:hover,.editor-wrapper input.title:focus,.editor-wrapper input.title:hover{opacity:.8}.editor-toolbar.fullscreen{width:100%;height:50px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen:before{width:20px;height:50px;background:linear-gradient(90deg,#fff 0,hsla(0,0%,100%,0));position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen:after{width:20px;height:50px;background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff);position:fixed;top:0;right:0;margin:0;padding:0}.editor-toolbar a{display:inline-block;text-align:center;text-decoration:none!important;color:#2c3e50!important;width:30px;height:30px;margin:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar a.active,.editor-toolbar a:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar a:before{line-height:30px}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar a.fa-header-x:after{font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar a.fa-header-1:after{content:"1"}.editor-toolbar a.fa-header-2:after{content:"2"}.editor-toolbar a.fa-header-3:after{content:"3"}.editor-toolbar a.fa-header-bigger:after{content:"\\25B2"}.editor-toolbar a.fa-header-smaller:after{content:"\\25BC"}.editor-toolbar.disabled-for-preview a:not(.no-disable){pointer-events:none;background:#fff;border-color:transparent;text-shadow:inherit}@media only screen and (max-width:700px){.editor-toolbar a.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-preview,.editor-preview-side{padding:10px;background:#fafafa;overflow:auto;display:none;box-sizing:border-box}.editor-statusbar .lines:before{content:"lines: "}.editor-statusbar .words:before{content:"words: "}.editor-statusbar .characters:before{content:"characters: "}.editor-preview{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;border:1px solid #ddd}.editor-preview-active,.editor-preview-active-side{display:block}.editor-preview-side>p,.editor-preview>p{margin-top:0}.editor-preview-side pre,.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview-side table td,.editor-preview-side table th,.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.CodeMirror .CodeMirror-code .cm-tag{color:#63a35c}.CodeMirror .CodeMirror-code .cm-attribute{color:#795da3}.CodeMirror .CodeMirror-code .cm-string{color:#183691}.CodeMirror .CodeMirror-selected{background:#d9d9d9}.CodeMirror .CodeMirror-code .cm-header-1{font-size:200%;line-height:200%}.CodeMirror .CodeMirror-code .cm-header-2{font-size:160%;line-height:160%}.CodeMirror .CodeMirror-code .cm-header-3{font-size:125%;line-height:125%}.CodeMirror .CodeMirror-code .cm-header-4{font-size:110%;line-height:110%}.CodeMirror .CodeMirror-code .cm-comment{background:rgba(0,0,0,.05);border-radius:2px}.CodeMirror .CodeMirror-code .cm-link{color:#7f8c8d}.CodeMirror .CodeMirror-code .cm-url{color:#aab2b3}.CodeMirror .CodeMirror-code .cm-strikethrough{text-decoration:line-through}.CodeMirror .CodeMirror-placeholder{opacity:.5}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:rgba(255,0,0,.15)}',""]); },,,,,,,function(e,t,r){function o(){return t.colors[u++%t.colors.length]}function n(e){function r(){}function n(){var e=n,r=+new Date,a=r-(s||r);e.diff=a,e.prev=s,e.curr=r,s=r,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=o());var i=Array.prototype.slice.call(arguments);i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&(i=["%o"].concat(i));var l=0;i[0]=i[0].replace(/%([a-z%])/g,function(r,o){if("%%"===r)return r;l++;var n=t.formatters[o];if("function"==typeof n){var a=i[l];r=n.call(e,a),i.splice(l,1),l--}return r}),"function"==typeof t.formatArgs&&(i=t.formatArgs.apply(e,i));var c=n.log||t.log||void 0;c.apply(e,i)}r.enabled=!1,n.enabled=!0;var a=t.enabled(e)?n:r;return a.namespace=e,a}function a(e){t.save(e);for(var r=(e||"").split(/[\s,]+/),o=r.length,n=0;nt&&(Ge=0,qe={line:1,column:1,seenCR:!1}),r(qe,Ge,t),Ge=t),qe}function o(e){VeHe&&(He=Ve,Xe=[]),Xe.push(e))}function n(o,n,a){function i(e){var t=1;for(e.sort(function(e,t){return e.descriptiont.description?1:0});t1?i.slice(0,-1).join(", ")+" or "+i[e.length-1]:i[0],n=t?'"'+r(t)+'"':"end of input","Expected "+o+" but "+n+" found."}var c=r(a),s=a1?arguments[1]:{},A={},N={start:a},R=a,L=function(e){return{type:"messageFormatPattern",elements:e}},D=A,F=function(e){var t,r,o,n,a,i="";for(t=0,o=e.length;t=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&i.arrIndexOf.call(l,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+l.join('", "')+'"')},o.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(o.defaultLocale);var t,r,n,a,i=o.__localeData__;for(t=0,r=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+c.join('", "')+'"')},o.prototype._selectUnits=function(e){var t,r,n;for(t=0,r=l.length;t1&&(t.sort(),e=e.replace(RegExp("(?:"+K.expExtSequences.source+")+","i"),oe.call(t,""))),J.call(fe.tags,e)&&(e=fe.tags[e]),r=e.split("-");for(var o=1,n=r.length;o-1)return r;var o=r.lastIndexOf("-");if(o<0)return;o>=2&&"-"===r.charAt(o-2)&&(o-=2),r=r.substring(0,o)}}function s(e,t){for(var r,o=0,n=t.length;o2){var T=f[C+1],I=w.call(x,T);if(I!==-1)var S=T,_="-"+y+"-"+S}else{var I=w(x,"true");if(I!==-1)var S="true"}}if(J.call(r,"[["+y+"]]")){var O=r["[["+y+"]]"];w.call(x,O)!==-1&&O!==S&&(S=O,_="")}b["[["+y+"]]"]=S,g+=_,m++}if(g.length>2)var k=l.substring(0,d),A=l.substring(d),l=k+g+A;return b["[[locale]]"]=l,b}function p(e,t){for(var r=t.length,o=new j,n=0;no)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(a)}return n}function m(){var e=arguments[0],t=arguments[1]; return this&&this!==q?v(B(this),e,t):new q.NumberFormat(e,t)}function v(e,t,r){var o=W(e),n=z();if(o["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");Z(e,"__getInternalProperties",{value:function(){if(arguments[0]===le)return o}}),o["[[initializedIntlObject]]"]=!0;var a=l(t);r=void 0===r?{}:B(r);var c=new U,s=b(r,"localeMatcher","string",new j("lookup","best fit"),"best fit");c["[[localeMatcher]]"]=s;var u=ie.NumberFormat["[[localeData]]"],p=d(ie.NumberFormat["[[availableLocales]]"],a,c,ie.NumberFormat["[[relevantExtensionKeys]]"],u);o["[[locale]]"]=p["[[locale]]"],o["[[numberingSystem]]"]=p["[[nu]]"],o["[[dataLocale]]"]=p["[[dataLocale]]"];var f=p["[[dataLocale]]"],h=b(r,"style","string",new j("decimal","percent","currency"),"decimal");o["[[style]]"]=h;var m=b(r,"currency","string");if(void 0!==m&&!i(m))throw new RangeError("'"+m+"' is not a valid currency code");if("currency"===h&&void 0===m)throw new TypeError("Currency code is required when style is currency");if("currency"===h){m=m.toUpperCase(),o["[[currency]]"]=m;var v=y(m)}var x=b(r,"currencyDisplay","string",new j("code","symbol","name"),"symbol");"currency"===h&&(o["[[currencyDisplay]]"]=x);var S=g(r,"minimumIntegerDigits",1,21,1);o["[[minimumIntegerDigits]]"]=S;var _="currency"===h?v:0,w=g(r,"minimumFractionDigits",0,20,_);o["[[minimumFractionDigits]]"]=w;var C="currency"===h?Math.max(w,v):"percent"===h?Math.max(w,0):Math.max(w,3),T=g(r,"maximumFractionDigits",w,20,C);o["[[maximumFractionDigits]]"]=T;var I=r.minimumSignificantDigits,O=r.maximumSignificantDigits;void 0===I&&void 0===O||(I=g(r,"minimumSignificantDigits",1,21,1),O=g(r,"maximumSignificantDigits",I,21,21),o["[[minimumSignificantDigits]]"]=I,o["[[maximumSignificantDigits]]"]=O);var k=b(r,"useGrouping","boolean",void 0,!0);o["[[useGrouping]]"]=k;var A=u[f],N=A.patterns,R=N[h];return o["[[positivePattern]]"]=R.positivePattern,o["[[negativePattern]]"]=R.negativePattern,o["[[boundFormat]]"]=void 0,o["[[initializedNumberFormat]]"]=!0,X&&(e.format=E.call(e)),n.exp.test(n.input),e}function y(e){return void 0!==he[e]?he[e]:2}function E(){var e=null!=this&&"object"==typeof this&&W(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(e){return x(this,Number(e))},r=ae.call(t,this);e["[[boundFormat]]"]=r}return e["[[boundFormat]]"]}function x(e,t){var r,o=z(),n=W(e),a=n["[[dataLocale]]"],i=n["[[numberingSystem]]"],l=ie.NumberFormat["[[localeData]]"][a],c=l.symbols[i]||l.symbols.latn,s=!1;if(isFinite(t)===!1)isNaN(t)?r=c.nan:(r=c.infinity,t<0&&(s=!0));else{if(t<0&&(s=!0,t=-t),"percent"===n["[[style]]"]&&(t*=100),r=J.call(n,"[[minimumSignificantDigits]]")&&J.call(n,"[[maximumSignificantDigits]]")?S(t,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):_(t,n["[[minimumIntegerDigits]]"],n["[[minimumFractionDigits]]"],n["[[maximumFractionDigits]]"]),be[i]){var u=be[n["[[numberingSystem]]"]];r=String(r).replace(/\d/g,function(e){return u[e]})}else r=String(r);if(r=r.replace(/\./g,c.decimal),n["[[useGrouping]]"]===!0){var d=r.split(c.decimal),p=d[0],f=l.patterns.primaryGroupSize||3,h=l.patterns.secondaryGroupSize||f;if(p.length>f){var b=new j,g=p.length-f,m=g%h,v=p.slice(0,m);for(v.length&&re.call(b,v);m=o)return n+oe.call(Array(a-o+1+1),"0");if(a===o-1)return n;if(a>=0?n=n.slice(0,a+1)+"."+n.slice(a+1):a<0&&(n="0."+oe.call(Array(-(a+1)+1),"0")+n),n.indexOf(".")>=0&&r>t){for(var l=r-t;l>0&&"0"===n.charAt(n.length-1);)n=n.slice(0,-1),l--;"."===n.charAt(n.length-1)&&(n=n.slice(0,-1))}return n}function _(e,t,r,o){var n,a=Number.prototype.toFixed.call(e,o),i=a.split(".")[0].length,l=o-r,c=(n=a.indexOf("e"))>-1?a.slice(n+1):0;for(c&&(a=a.slice(0,n).replace(".",""),a+=oe.call(Array(c-(a.length-1)+1),"0")+"."+oe.call(Array(o+1),"0"),i=a.length);l>0&&"0"===a.slice(-1);)a=a.slice(0,-1),l--;if("."===a.slice(-1)&&(a=a.slice(0,-1)),id&&(d=b,o=h),p++}return o}function A(e,t){return k(e,t,!0)}function N(){var e=null!=this&&"object"==typeof this&&W(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(){var e=Number(0===arguments.length?Date.now():arguments[0]);return R(this,e)},r=ae.call(t,this);e["[[boundFormat]]"]=r}return e["[[boundFormat]]"]}function R(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var r=e.__getInternalProperties(le),o=z(),n=r["[[locale]]"],a=new q.NumberFormat([n],{useGrouping:!1}),i=new q.NumberFormat([n],{minimumIntegerDigits:2,useGrouping:!1}),l=L(t,r["[[calendar]]"],r["[[timeZone]]"]),c=r["[[pattern]]"],s=r["[[dataLocale]]"],u=ie.DateTimeFormat["[[localeData]]"][s].calendars,d=r["[[calendar]]"];for(var p in ge)if(J.call(r,"[["+p+"]]")){var f,h,b=r["[["+p+"]]"],g=l["[["+p+"]]"];if("year"===p&&g<=0?g=1-g:"month"===p?g++:"hour"===p&&r["[[hour12]]"]===!0&&(g%=12,f=g!==l["[["+p+"]]"],0===g&&r["[[hourNo0]]"]===!0&&(g=12)),"numeric"===b)h=x(a,g);else if("2-digit"===b)h=x(i,g),h.length>2&&(h=h.slice(-2));else if(b in ce)switch(p){case"month":h=M(u,d,"months",b,l["[["+p+"]]"]);break;case"weekday":try{h=M(u,d,"days",b,l["[["+p+"]]"])}catch(m){throw new Error("Could not find weekday data for locale "+n)}break;case"timeZoneName":h="";break;default:h=l["[["+p+"]]"]}c=c.replace("{"+p+"}",h)}return r["[[hour12]]"]===!0&&(h=M(u,d,"dayPeriods",f?"pm":"am"),c=c.replace("{ampm}",h)),o.exp.test(o.input),c}function L(e,t,r){var o=new Date(e),n="get"+(r||"");return new U({"[[weekday]]":o[n+"Day"](),"[[era]]":+(o[n+"FullYear"]()>=0),"[[year]]":o[n+"FullYear"](),"[[month]]":o[n+"Month"](),"[[day]]":o[n+"Date"](),"[[hour]]":o[n+"Hours"](),"[[minute]]":o[n+"Minutes"](),"[[second]]":o[n+"Seconds"](),"[[inDST]]":!1})}function D(e,t){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var r,o=[t],n=t.split("-");for(n.length>2&&4===n[1].length&&re.call(o,n[0]+"-"+n[2]);r=ne.call(o);)re.call(ie.NumberFormat["[[availableLocales]]"],r),ie.NumberFormat["[[localeData]]"][r]=e.number,e.date&&(e.date.nu=e.number.nu,re.call(ie.DateTimeFormat["[[availableLocales]]"],r),ie.DateTimeFormat["[[localeData]]"][r]=e.date);void 0===V&&(V=t),se||(v(q.NumberFormat.prototype),se=!0),e.date&&!ue&&(C(q.DateTimeFormat.prototype),ue=!0)}function F(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}function P(e){if(!J.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=z(),r=arguments[1],o=this["[[availableLocales]]"],n=l(e);return t.exp.test(t.input),h(o,n,r)}function M(e,t,r,o,n){var a=e[t]&&e[t][r]?e[t][r]:e.gregory[r],i={narrow:["short","long"],"short":["long","narrow"],"long":["short","narrow"]},l=J.call(a,o)?a[o]:J.call(a,i[o][0])?a[i[o][0]]:a[i[o][1]];return null!=n?l[n]:l}function U(e){for(var t in e)(e instanceof U||J.call(e,t))&&Z(this,t,{value:e[t],enumerable:!0,writable:!0,configurable:!0})}function j(){Z(this,"length",{writable:!0,value:0}),arguments.length&&re.apply(this,ee.call(arguments))}function z(){for(var e=/[.?*+^$[\]\\(){}|-]/g,t=RegExp.lastMatch||"",r=RegExp.multiline?"m":"",o={input:RegExp.input},n=new j,a=!1,i={},l=1;l<=9;l++)a=(i["$"+l]=RegExp["$"+l])||a;if(t=t.replace(e,"\\$&"),a)for(var l=1;l<=9;l++){var c=i["$"+l];c?(c=c.replace(e,"\\$&"),t=t.replace(c,"("+c+")")):t="()"+t,re.call(n,t.slice(0,t.indexOf("(")+1)),t=t.slice(t.indexOf("(")+1)}return o.exp=new RegExp(oe.call(n,"")+t,r),o}function Y(e){for(var t=e.length;t--;){var r=e.charAt(t);r>="a"&&r<="z"&&(e=e.slice(0,t)+r.toUpperCase()+e.slice(t+1))}return e}function B(e){if(null==e)throw new TypeError("Cannot convert null or undefined to object");return Object(e)}function W(e){return J.call(e,"__getInternalProperties")?e.__getInternalProperties(le):Q(null)}var V,K=r(1397),G=r(1395),q={},H=function(){var e={};try{return Object.defineProperty(e,"a",{}),"a"in e}catch(t){return!1}}(),X=!H&&!Object.prototype.__defineGetter__,J=Object.prototype.hasOwnProperty,Z=H?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):(!J.call(e,t)||"value"in r)&&(e[t]=r.value)},$=Array.prototype.indexOf||function(e){var t=this;if(!t.length)return-1;for(var r=arguments[1]||0,o=t.length;r1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*u;case"days":case"day":case"d":return r*s;case"hours":case"hour":case"hrs":case"hr":case"h":return r*c;case"minutes":case"minute":case"mins":case"min":case"m":return r*l;case"seconds":case"second":case"secs":case"sec":case"s":return r*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r}}}}function o(e){return e>=s?Math.round(e/s)+"d":e>=c?Math.round(e/c)+"h":e>=l?Math.round(e/l)+"m":e>=i?Math.round(e/i)+"s":e+"ms"}function n(e){return a(e,s,"day")||a(e,c,"hour")||a(e,l,"minute")||a(e,i,"second")||e+" ms"}function a(e,t,r){if(!(e=0&&r.parseArrays&&i<=r.arrayLimit?(o=[],o[i]=s(e,t,r)):o[a]=s(e,t,r)}return o},c=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,a=/^([^\[\]]*)/,i=/(\[[^\[\]]*\])/g,c=a.exec(o),s=[];if(c[1]){if(!r.plainObjects&&n.call(Object.prototype,c[1])&&!r.allowPrototypes)return;s.push(c[1])}for(var u=0;null!==(c=i.exec(o))&&u0&&s.default.createElement(u.MenuItem,{divider:!0}),s.default.createElement(u.MenuItem,{eventKey:"myproject"},!p.default.isEmpty(a)&&s.default.createElement("div",{style:{display:"inline-block",width:"20px"}}),s.default.createElement("span",null,"项目中心")))),this.state.aboutShow&&s.default.createElement(f,{show:!0,close:function(){e.setState({aboutShow:!1})}}))}}],[{key:"propTypes",value:{project:c.PropTypes.object.isRequired,session:c.PropTypes.object.isRequired,getSess:c.PropTypes.func.isRequired,recents:c.PropTypes.func.isRequired,entry:c.PropTypes.func.isRequired,cleanSelectedProject:c.PropTypes.func.isRequired,logout:c.PropTypes.func.isRequired,pathname:c.PropTypes.string},enumerable:!0}]),t}(c.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},function(e,t,r){try{(function(){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function n(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{actions:(0,f.bindActionCreators)(_,e),layoutActions:(0,f.bindActionCreators)(I,e),sessionActions:(0,f.bindActionCreators)(C,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var r=0;r0&&p(".animate-dialog").offset().left-p(".doc-container").offset().left<1&&(e=!0),p(".toc-container").animate({left:"-20%"}),p(".toc-container").css({position:"fixed"}),p(".head").css({paddingLeft:"15px"}),p(".toc-logo").css({left:"45%"}),p("#show-bar").show(),e&&p(".animate-dialog").css("left",p(".doc-container").offset().left),this.props.resize({containerWidth:p(".doc-main").get(0).clientWidth,sidebarHide:!0});var t=window.localStorage;t&&t.setItem("sideBarHide","1")}},{key:"tackBar",value:function(){var e=!1;p(".animate-dialog").length>0&&p(".animate-dialog").offset().left-p(".doc-container").offset().left<1&&(e=!0),p(".head").css({paddingLeft:"19%"}),p(".toc-logo").css({left:"54%"}),p(".toc-container").css({position:"relative",boxShadow:"none",borderRight:"solid 1px #e5e5e5"}),p("#show-bar").hide(),p("#tack-bar").hide(),p("#hide-bar").show(),e&&p(".animate-dialog").css("left",p(".doc-container").offset().left),this.props.resize({containerWidth:.8*p(".doc-main").get(0).clientWidth,sidebarHide:!1});var t=window.localStorage;t&&t.setItem("sideBarHide","0")}},{key:"componentDidUpdate",value:function(){var e=this.props.pathname;/^\/project\/(\w+)(\/summary)?$/.test(e)?p("#summary").addClass("menu-active"):p("#summary").removeClass("menu-active"),/^\/project\/(\w+)\/kanban(\/\w+)?$/.test(e)?p("#kanban").addClass("menu-active"):p("#kanban").removeClass("menu-active"),/^\/project\/(\w+)\/workflow(\/\w+)?$/.test(e)?p("#workflow").addClass("menu-active"):p("#workflow").removeClass("menu-active"),/^\/admin\/scheme\/workflow(\/\w+)?$/.test(e)?p("#admin-workflow").addClass("menu-active"):p("#admin-workflow").removeClass("menu-active"),/^\/project\/(\w+)\/report(\/\w+)?$/.test(e)?p("#report").addClass("menu-active"):p("#report").removeClass("menu-active"),/^\/project\/(\w+)\/document(\/\w+)?$/.test(e)?p("#document").addClass("menu-active"):p("#document").removeClass("menu-active"),/^\/project\/(\w+)\/wiki(\/\w+)*$/.test(e)?p("#wiki").addClass("menu-active"):p("#wiki").removeClass("menu-active")}},{key:"componentWillReceiveProps",value:function(e){/^\/project\/(\w+)(\/(summary|issue|kanban|activity|version|module|team|document|wiki|report)(\/\w+)*)?$/.test(e.pathname)?(this.state.adminPanelShow=!1,this.state.projectPanelShow=!0,this.state.projectSummaryShow=!0):/^\/project\/(\w+)\/(config|type|workflow|field|screen|priority|state|resolution|role|events)(\/\w+)?$/.test(e.pathname)?(this.state.adminPanelShow=!1,this.state.projectPanelShow=!0,this.state.projectConfigShow=!0):/^\/admin\/scheme/.test(e.pathname)?(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminSchemeShow=!0):/^\/admin\/(user|group|directory)$/.test(e.pathname)?(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminUserManageShow=!0):/^\/admin\/project$/.test(e.pathname)?(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminProjectManageShow=!0):/^\/admin\/syssetting$/.test(e.pathname)&&(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminSysSettingShow=!0)}},{key:"render",value:function(){var e=this,t=this.props,r=t.project,o=t.session;return this.state.adminPanelShow?s.default.createElement("div",{className:"toc-container"},s.default.createElement("div",{className:"react-menu-container"},s.default.createElement("div",{style:{height:"50px",lineHeight:"35px",paddingTop:"8px"}},s.default.createElement("span",{className:"span-bar-icon",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-bars"})),s.default.createElement("span",{className:"span-angle-double",id:"hide-bar",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack fa-rotate-90"})),s.default.createElement("span",{className:"span-tack-bar",style:{display:"none"},id:"tack-bar",onClick:this.tackBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack"}))),o.user.permissions&&o.user.permissions.sys_admin&&s.default.createElement("div",null,s.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis"}},"管理员管理面板"),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminSchemeShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminSchemeShow:!e.state.adminSchemeShow}),t.nativeEvent.stopImmediatePropagation()}}),"方案配置"),s.default.createElement("ul",{className:!this.state.adminSchemeShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/type",activeClassName:"menu-active"},"问题类型")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/state",activeClassName:"menu-active"},"状态")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/workflow",activeClassName:"menu-active",id:"admin-workflow"},"工作流")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/field",activeClassName:"menu-active"},"字段")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/screen",activeClassName:"menu-active"},"界面")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/priority",activeClassName:"menu-active"},"优先级")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/resolution",activeClassName:"menu-active"},"解决结果")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/role",activeClassName:"menu-active"},"角色权限")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/events",activeClassName:"menu-active"},"通知事件"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminUserManageShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminUserManageShow:!e.state.adminUserManageShow}),t.nativeEvent.stopImmediatePropagation()}}),"用户管理"),s.default.createElement("ul",{className:!this.state.adminUserManageShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/user",activeClassName:"menu-active"},"用户")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/group",activeClassName:"menu-active"},"用户组")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/directory",activeClassName:"menu-active"},"用户目录"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminProjectManageShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminProjectManageShow:!e.state.adminProjectManageShow}),t.nativeEvent.stopImmediatePropagation()}}),"项目管理"),s.default.createElement("ul",{className:!this.state.adminProjectManageShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/project",activeClassName:"menu-active"},"项目"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminSysSettingShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminSysSettingShow:!e.state.adminSysSettingShow}),t.nativeEvent.stopImmediatePropagation()}}),"系统配置"),s.default.createElement("ul",{className:!this.state.adminSysSettingShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/syssetting",activeClassName:"menu-active"},"配置")))))):s.default.createElement("div",{className:"toc-container"},s.default.createElement("div",{className:"react-menu-container"},s.default.createElement("div",{style:{height:"50px",lineHeight:"35px",paddingTop:"8px"}},s.default.createElement("span",{className:"span-bar-icon",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-bars"})),s.default.createElement("span",{className:"span-angle-double",id:"hide-bar",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack fa-rotate-90"})),s.default.createElement("span",{className:"span-tack-bar",style:{display:"none"},id:"tack-bar",onClick:this.tackBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack"}))),r.item.key?s.default.createElement("div",null,s.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis"},title:r.item.name},r.item.name||""),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.projectSummaryShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({projectSummaryShow:!e.state.projectSummaryShow}),t.nativeEvent.stopImmediatePropagation()}}),"项目概述"),r.options.permissions&&r.options.permissions.length>0&&s.default.createElement("ul",{className:!this.state.projectSummaryShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/summary",activeClassName:"menu-active",id:"summary"},"概要")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/issue",activeClassName:"menu-active"},"问题")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/kanban",activeClassName:"menu-active",id:"kanban"},"看板")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/activity",activeClassName:"menu-active"},"活动")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/module",activeClassName:"menu-active"},"模块")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/version",activeClassName:"menu-active"},"版本")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/report",activeClassName:"menu-active",id:"report"},"报告")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/document",activeClassName:"menu-active",id:"document"},"文档")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/wiki",activeClassName:"menu-active",id:"wiki"},"Wiki")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/team",activeClassName:"menu-active"},"成员"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.projectConfigShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({projectConfigShow:!e.state.projectConfigShow}),t.nativeEvent.stopImmediatePropagation()}}),"配置管理"),r.options.permissions&&r.options.permissions.indexOf("manage_project")!==-1&&s.default.createElement("ul",{className:!this.state.projectConfigShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/config",activeClassName:"menu-active"},"概要")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/type",activeClassName:"menu-active"},"问题类型")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/state",activeClassName:"menu-active"},"状态")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/workflow",activeClassName:"menu-active",id:"workflow"},"工作流")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/field",activeClassName:"menu-active"},"字段")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/screen",activeClassName:"menu-active"},"界面")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/priority",activeClassName:"menu-active"},"优先级")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/resolution",activeClassName:"menu-active"},"解决结果")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/role",activeClassName:"menu-active"},"角色权限")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/events",activeClassName:"menu-active"},"通知事件"))),r.options.permissions&&r.options.permissions.length>0&&r.options.permissions.indexOf("manage_project")===-1&&s.default.createElement("ul",{className:!this.state.projectConfigShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/config",activeClassName:"menu-active"},"概要"))),s.default.createElement("h4",null," "),s.default.createElement("h4",null," ")):s.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis"}},"请选择要查看的项目")))}}],[{key:"propTypes",value:{project:c.PropTypes.object.isRequired,session:c.PropTypes.object.isRequired,resize:c.PropTypes.func.isRequired,isHide:c.PropTypes.bool.isRequired,pathname:c.PropTypes.string},enumerable:!0}]),t}(c.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},function(e,t,r){try{(function(){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]); +"aria-labelledby":"contained-modal-title-sm"},s.default.createElement(u.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},s.default.createElement(u.Modal.Title,{id:"contained-modal-title-la"},"关于")),s.default.createElement(u.Modal.Body,{style:{overflow:"auto"}},s.default.createElement("div",{style:{margin:"20px 0px",textAlign:"center"}},s.default.createElement("img",{src:d,width:150})),s.default.createElement("div",{style:{textAlign:"center"}},s.default.createElement("span",null,"当前版本: 1.8.5"),s.default.createElement("a",{href:"https://github.com/lxerxa/actionview/releases",target:"_blank"},s.default.createElement("span",{style:{marginLeft:"10px"}},"新版变化"))),s.default.createElement("div",{style:{marginTop:"30px"}},s.default.createElement("table",{style:{width:"100%"}},s.default.createElement("tr",null,s.default.createElement("td",{style:{textAlign:"right",paddingRight:"15px"}},s.default.createElement("iframe",{src:"https://ghbtns.com/github-btn.html?user=lxerxa&repo=actionview&type=star&count=true",frameBorder:"0",scrolling:"0",width:"100px",height:"20px"})),s.default.createElement("td",{style:{textAlign:"left",paddingLeft:"15px"}},s.default.createElement("iframe",{src:"https://ghbtns.com/github-btn.html?user=lxerxa&repo=actionview&type=fork&count=true",frameBorder:"0",scrolling:"0",width:"100px",height:"20px"}))))),s.default.createElement("div",{style:{margin:"40px"}},s.default.createElement("span",null,"一个面向中小企业的、开源免费的、简单易用的、类Jira的问题需求跟踪工具。目标是成为企业开源研发工具链中的重要一环。")),s.default.createElement("div",{style:{margin:"40px",textAlign:"center"}},s.default.createElement("span",null,"想帮忙吗?",s.default.createElement("a",{href:"https://github.com/lxerxa/actionview",target:"_blank"},"欢迎参与!")),s.default.createElement("span",null,"有什么问题或建议,",s.default.createElement("a",{href:"https://github.com/lxerxa/actionview/issues",target:"_blank"},"欢迎提出!")))),s.default.createElement(u.Modal.Footer,null,s.default.createElement("a",{href:"https://github.com/lxerxa/actionview/blob/master/LICENSE.txt",target:"_blank"},s.default.createElement("span",{style:{"float":"left",marginTop:"5px",marginLeft:"5px"}},"授权信息")),s.default.createElement(u.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:c.PropTypes.func.isRequired},enumerable:!0}]),t}(c.Component);t.default=p,e.exports=t.default}).call(this)}finally{}},function(e,t,r){try{(function(){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r0&&s.default.createElement(u.MenuItem,{divider:!0}),s.default.createElement(u.MenuItem,{eventKey:"myproject"},!p.default.isEmpty(a)&&s.default.createElement("div",{style:{display:"inline-block",width:"20px"}}),s.default.createElement("span",null,"项目中心")))),this.state.aboutShow&&s.default.createElement(f,{show:!0,close:function(){e.setState({aboutShow:!1})}}))}}],[{key:"propTypes",value:{project:c.PropTypes.object.isRequired,session:c.PropTypes.object.isRequired,getSess:c.PropTypes.func.isRequired,recents:c.PropTypes.func.isRequired,entry:c.PropTypes.func.isRequired,cleanSelectedProject:c.PropTypes.func.isRequired,logout:c.PropTypes.func.isRequired,pathname:c.PropTypes.string},enumerable:!0}]),t}(c.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},function(e,t,r){try{(function(){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function n(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{actions:(0,f.bindActionCreators)(_,e),layoutActions:(0,f.bindActionCreators)(I,e),sessionActions:(0,f.bindActionCreators)(C,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var r=0;r0&&p(".animate-dialog").offset().left-p(".doc-container").offset().left<1&&(e=!0),p(".toc-container").animate({left:"-20%"}),p(".toc-container").css({position:"fixed"}),p(".head").css({paddingLeft:"15px"}),p(".toc-logo").css({left:"45%"}),p("#show-bar").show(),e&&p(".animate-dialog").css("left",p(".doc-container").offset().left),this.props.resize({containerWidth:p(".doc-main").get(0).clientWidth,sidebarHide:!0});var t=window.localStorage;t&&t.setItem("sideBarHide","1")}},{key:"tackBar",value:function(){var e=!1;p(".animate-dialog").length>0&&p(".animate-dialog").offset().left-p(".doc-container").offset().left<1&&(e=!0),p(".head").css({paddingLeft:"19%"}),p(".toc-logo").css({left:"54%"}),p(".toc-container").css({position:"relative",boxShadow:"none",borderRight:"solid 1px #e5e5e5"}),p("#show-bar").hide(),p("#tack-bar").hide(),p("#hide-bar").show(),e&&p(".animate-dialog").css("left",p(".doc-container").offset().left),this.props.resize({containerWidth:.8*p(".doc-main").get(0).clientWidth,sidebarHide:!1});var t=window.localStorage;t&&t.setItem("sideBarHide","0")}},{key:"componentDidUpdate",value:function(){var e=this.props.pathname;/^\/project\/(\w+)(\/summary)?$/.test(e)?p("#summary").addClass("menu-active"):p("#summary").removeClass("menu-active"),/^\/project\/(\w+)\/kanban(\/\w+)?$/.test(e)?p("#kanban").addClass("menu-active"):p("#kanban").removeClass("menu-active"),/^\/project\/(\w+)\/workflow(\/\w+)?$/.test(e)?p("#workflow").addClass("menu-active"):p("#workflow").removeClass("menu-active"),/^\/admin\/scheme\/workflow(\/\w+)?$/.test(e)?p("#admin-workflow").addClass("menu-active"):p("#admin-workflow").removeClass("menu-active"),/^\/project\/(\w+)\/report(\/\w+)?$/.test(e)?p("#report").addClass("menu-active"):p("#report").removeClass("menu-active"),/^\/project\/(\w+)\/document(\/\w+)?$/.test(e)?p("#document").addClass("menu-active"):p("#document").removeClass("menu-active"),/^\/project\/(\w+)\/wiki(\/\w+)*$/.test(e)?p("#wiki").addClass("menu-active"):p("#wiki").removeClass("menu-active")}},{key:"componentWillReceiveProps",value:function(e){/^\/project\/(\w+)(\/(summary|issue|kanban|activity|version|module|team|document|wiki|report)(\/\w+)*)?$/.test(e.pathname)?(this.state.adminPanelShow=!1,this.state.projectPanelShow=!0,this.state.projectSummaryShow=!0):/^\/project\/(\w+)\/(config|type|workflow|field|screen|priority|state|resolution|role|events)(\/\w+)?$/.test(e.pathname)?(this.state.adminPanelShow=!1,this.state.projectPanelShow=!0,this.state.projectConfigShow=!0):/^\/admin\/scheme/.test(e.pathname)?(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminSchemeShow=!0):/^\/admin\/(user|group|directory)$/.test(e.pathname)?(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminUserManageShow=!0):/^\/admin\/project$/.test(e.pathname)?(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminProjectManageShow=!0):/^\/admin\/syssetting$/.test(e.pathname)&&(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminSysSettingShow=!0)}},{key:"render",value:function(){var e=this,t=this.props,r=t.project,o=t.session;return this.state.adminPanelShow?s.default.createElement("div",{className:"toc-container"},s.default.createElement("div",{className:"react-menu-container"},s.default.createElement("div",{style:{height:"50px",lineHeight:"35px",paddingTop:"8px"}},s.default.createElement("span",{className:"span-bar-icon",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-bars"})),s.default.createElement("span",{className:"span-angle-double",id:"hide-bar",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack fa-rotate-90"})),s.default.createElement("span",{className:"span-tack-bar",style:{display:"none"},id:"tack-bar",onClick:this.tackBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack"}))),o.user.permissions&&o.user.permissions.sys_admin&&s.default.createElement("div",null,s.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis"}},"管理员管理面板"),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminSchemeShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminSchemeShow:!e.state.adminSchemeShow}),t.nativeEvent.stopImmediatePropagation()}}),"方案配置"),s.default.createElement("ul",{className:!this.state.adminSchemeShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/type",activeClassName:"menu-active"},"问题类型")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/state",activeClassName:"menu-active"},"状态")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/workflow",activeClassName:"menu-active",id:"admin-workflow"},"工作流")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/field",activeClassName:"menu-active"},"字段")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/screen",activeClassName:"menu-active"},"界面")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/priority",activeClassName:"menu-active"},"优先级")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/resolution",activeClassName:"menu-active"},"解决结果")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/role",activeClassName:"menu-active"},"角色权限")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/scheme/events",activeClassName:"menu-active"},"通知事件"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminUserManageShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminUserManageShow:!e.state.adminUserManageShow}),t.nativeEvent.stopImmediatePropagation()}}),"用户管理"),s.default.createElement("ul",{className:!this.state.adminUserManageShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/user",activeClassName:"menu-active"},"用户")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/group",activeClassName:"menu-active"},"用户组")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/directory",activeClassName:"menu-active"},"用户目录"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminProjectManageShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminProjectManageShow:!e.state.adminProjectManageShow}),t.nativeEvent.stopImmediatePropagation()}}),"项目管理"),s.default.createElement("ul",{className:!this.state.adminProjectManageShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/project",activeClassName:"menu-active"},"项目"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.adminSysSettingShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({adminSysSettingShow:!e.state.adminSysSettingShow}),t.nativeEvent.stopImmediatePropagation()}}),"系统配置"),s.default.createElement("ul",{className:!this.state.adminSysSettingShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/admin/syssetting",activeClassName:"menu-active"},"配置")))))):s.default.createElement("div",{className:"toc-container"},s.default.createElement("div",{className:"react-menu-container"},s.default.createElement("div",{style:{height:"50px",lineHeight:"35px",paddingTop:"8px"}},s.default.createElement("span",{className:"span-bar-icon",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-bars"})),s.default.createElement("span",{className:"span-angle-double",id:"hide-bar",onClick:this.hideBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack fa-rotate-90"})),s.default.createElement("span",{className:"span-tack-bar",style:{display:"none"},id:"tack-bar",onClick:this.tackBar.bind(this)},s.default.createElement("i",{className:"fa fa-thumb-tack"}))),r.item.key?s.default.createElement("div",null,s.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis"},title:r.item.name},r.item.name||""),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.projectSummaryShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({projectSummaryShow:!e.state.projectSummaryShow}),t.nativeEvent.stopImmediatePropagation()}}),"项目概述"),r.options.permissions&&r.options.permissions.length>0&&s.default.createElement("ul",{className:!this.state.projectSummaryShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/summary",activeClassName:"menu-active",id:"summary"},"概要")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/issue",activeClassName:"menu-active"},"问题")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/kanban",activeClassName:"menu-active",id:"kanban"},"看板")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/activity",activeClassName:"menu-active"},"活动")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/module",activeClassName:"menu-active"},"模块")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/version",activeClassName:"menu-active"},"版本")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/report",activeClassName:"menu-active",id:"report"},"报告")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/document",activeClassName:"menu-active",id:"document"},"文档")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/wiki",activeClassName:"menu-active",id:"wiki"},"Wiki")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/team",activeClassName:"menu-active"},"成员"))),s.default.createElement("h4",null,s.default.createElement("i",{className:this.state.projectConfigShow?"fa fa-minus-square-o":"fa fa-plus-square-o",onClick:function(t){e.setState({projectConfigShow:!e.state.projectConfigShow}),t.nativeEvent.stopImmediatePropagation()}}),"配置管理"),r.options.permissions&&r.options.permissions.indexOf("manage_project")!==-1&&s.default.createElement("ul",{className:!this.state.projectConfigShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/config",activeClassName:"menu-active"},"概要")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/type",activeClassName:"menu-active"},"问题类型")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/state",activeClassName:"menu-active"},"状态")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/workflow",activeClassName:"menu-active",id:"workflow"},"工作流")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/field",activeClassName:"menu-active"},"字段")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/screen",activeClassName:"menu-active"},"界面")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/priority",activeClassName:"menu-active"},"优先级")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/resolution",activeClassName:"menu-active"},"解决结果")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/role",activeClassName:"menu-active"},"角色权限")),s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/events",activeClassName:"menu-active"},"通知事件"))),r.options.permissions&&r.options.permissions.length>0&&r.options.permissions.indexOf("manage_project")===-1&&s.default.createElement("ul",{className:!this.state.projectConfigShow&&"hide"},s.default.createElement("li",null,s.default.createElement(u.Link,{to:"/project/"+r.item.key+"/config",activeClassName:"menu-active"},"概要"))),s.default.createElement("h4",null," "),s.default.createElement("h4",null," ")):s.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis"}},"请选择要查看的项目")))}}],[{key:"propTypes",value:{project:c.PropTypes.object.isRequired,session:c.PropTypes.object.isRequired,resize:c.PropTypes.func.isRequired,isHide:c.PropTypes.bool.isRequired,pathname:c.PropTypes.string},enumerable:!0}]),t}(c.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},function(e,t,r){try{(function(){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]); return t.default=e,t}function n(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{actions:(0,b.bindActionCreators)(E,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t0&&(s=w.parse(l.shift())),this.context.router.push({pathname:c,query:s})):"admin@action.view"===i.user.email?this.context.router.push({pathname:"/admin/scheme/type"}):(a.cleanSelectedProject(),i.user&&i.user.latest_access_project?this.context.router.push({pathname:"/project/"+i.user.latest_access_project+"/summary"}):this.context.router.push({pathname:"/myproject"})):this.setState({alertShow:!0});case 11:case"end":return u.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.fields,r=t.email,o=t.password,n=e.handleSubmit,a=(e.invalid,e.submitting),i=e.session;return f.default.createElement("div",{className:"login-panel"},f.default.createElement("div",{className:"login-form"},f.default.createElement("div",{className:"brand"},f.default.createElement("img",{src:S,width:200})),f.default.createElement("form",{onSubmit:n(this.handleSubmit)},f.default.createElement(m.FormGroup,{controlId:"formControlsName",validationState:r.touched&&r.error?"error":null},f.default.createElement(m.FormControl,s({disabled:a,type:"text"},r,{placeholder:"用户名/邮箱"})),r.touched&&r.error&&f.default.createElement(m.HelpBlock,{style:{marginLeft:"5px"}},r.error)),f.default.createElement(m.FormGroup,{controlId:"formControlsPwd",validationState:o.touched&&o.error?"error":null},f.default.createElement(m.FormControl,s({disabled:a,type:"password"},o,{placeholder:"密码"})),o.touched&&o.error&&f.default.createElement(m.HelpBlock,{style:{marginLeft:"5px"}},o.error)),f.default.createElement(m.Button,{bsStyle:"success",disabled:a,type:"submit"},a?"登 录 中 ...":"登 录"),f.default.createElement("div",{style:{textAlign:"center",height:"40px"}},this.state.alertShow&&!a&&f.default.createElement("div",{style:{marginTop:"10px",color:"#a94442"}},i.ecode===-1e4&&"登录失败,用户名或密码错误。",i.ecode===-10004&&i.emsg,i.ecode===-10005&&"用户未激活。",i.ecode===-10006&&"用户已被禁用。",i.ecode===-99999&&"系统错误。")),f.default.createElement("div",{className:"login-footer"},"若非该系统用户,请联系系统管理员创建。"))))}}],[{key:"contextTypes",value:{router:p.PropTypes.object.isRequired},enumerable:!0},{key:"propTypes",value:{location:p.PropTypes.object.isRequired,session:p.PropTypes.object.isRequired,projectActions:p.PropTypes.object.isRequired,actions:p.PropTypes.object.isRequired,dispatch:p.PropTypes.func.isRequired,submitting:p.PropTypes.bool,handleSubmit:p.PropTypes.func.isRequired,invalid:p.PropTypes.bool,fields:p.PropTypes.object,values:p.PropTypes.object},enumerable:!0}]);var r=t;return t=(0,h.reduxForm)({form:"login",fields:["email","password"],validate:C})(t)||t,t=(0,g.connect)(l,c)(t)||t}(p.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},function(e,t,r){try{(function(){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function n(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{actions:(0,b.bindActionCreators)(E,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}function n(e){return function(){return function(t){return function(r){var n=r.promise,c=r.types,s=o(r,["promise","types"]);if(!n)return t(r);var u=a(c,3),d=u[0],p=u[1],f=u[2];return t(i({},s,{type:d})),n(e).then(function(e){return e.ecode!==-10001?t(i({},s,{result:e,type:p})):void t({type:l.SESSION_INVALIDATE})},function(e){return t(i({},s,{error:e,type:f}))})}}}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var r=[],o=!0,n=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(o=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(c){n=!0,a=c}finally{try{!o&&l.return&&l.return()}finally{if(n)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t0&&u.default.map(t.result.data.links,function(r){e.itemData.id===r.dest.id&&(e.itemData.links||(e.itemData.links=[])),e.itemData.links.push(t.result.data.links[0])})),i({},e,{loading:!1,ecode:t.result.ecode});case c.ISSUE_COPY_FAIL:return i({},e,{loading:!1,error:t.error});case c.ISSUE_EDIT:case c.ISSUE_COPY:case c.ISSUE_MOVE:case c.ISSUE_CONVERT:return i({},e,{loading:!0,historyLoaded:!1});case c.ISSUE_EDIT_SUCCESS:case c.ISSUE_COPY_SUCCESS:case c.ISSUE_MOVE_SUCCESS:case c.ISSUE_CONVERT_SUCCESS:if(0===t.result.ecode){var r=u.default.findIndex(e.collection,{id:t.result.data.id});r!==-1&&(e.collection[r]=t.result.data),u.default.map(e.collection,function(e){e.parent_id===t.result.data.id&&e.parent&&e.parent.id&&(e.parent.title=t.result.data.title)}),u.default.isEmpty(e.itemData)||t.result.data.id!==e.itemData.id||(e.itemData=t.result.data)}return i({},e,{loading:!1,ecode:t.result.ecode});case c.ISSUE_EDIT_FAIL:case c.ISSUE_COPY_FAIL:case c.ISSUE_MOVE_FAIL:case c.ISSUE_CONVERT_FAIL:return i({},e,{loading:!1,error:t.error});case c.ISSUE_SHOW:return i({},e,{itemLoading:!0,detailFloatStyle:t.floatStyle||e.detailFloatStyle,itemData:{id:t.id},commentsLoaded:!1,historyLoaded:!1,worklogLoaded:!1,gitCommitsLoaded:!1});case c.ISSUE_SHOW_SUCCESS:return 0===t.result.ecode&&(e.itemData=t.result.data),i({},e,{itemLoading:!1,ecode:t.result.ecode});case c.ISSUE_SHOW_FAIL:return i({},e,{itemLoading:!1,error:t.error});case c.ISSUE_DELETE:return i({},e,{itemLoading:!0});case c.ISSUE_DELETE_SUCCESS:return 0===t.result.ecode&&u.default.map(t.result.data.ids||[],function(t){e.collection=u.default.reject(e.collection,{id:t})}),i({},e,{itemLoading:!1,ecode:t.result.ecode});case c.ISSUE_DELETE_FAIL:return i({},e,{itemLoading:!1,error:t.error});case c.ISSUE_FILTER_SAVE:case c.ISSUE_FILTERS_CONFIG:case c.ISSUE_FILTERS_RESET:return i({},e,{filterLoading:!0});case c.ISSUE_FILTER_SAVE_SUCCESS:case c.ISSUE_FILTERS_CONFIG_SUCCESS:case c.ISSUE_FILTERS_RESET_SUCCESS:return 0===t.result.ecode&&(e.options.filters=t.result.data),i({},e,{filterLoading:!1,ecode:t.result.ecode});case c.ISSUE_FILTER_SAVE_FAIL:case c.ISSUE_FILTERS_CONFIG_FAIL:case c.ISSUE_FILTERS_RESET_FAIL:return i({},e,{filterLoading:!1,error:t.error});case c.ISSUE_LIST_COLUMNS_SET:case c.ISSUE_LIST_COLUMNS_RESET:return i({},e,{columnsLoading:!0});case c.ISSUE_LIST_COLUMNS_SET_SUCCESS:case c.ISSUE_LIST_COLUMNS_RESET_SUCCESS:return 0===t.result.ecode&&(e.options.display_columns=t.result.data),i({},e,{columnsLoading:!1,ecode:t.result.ecode});case c.ISSUE_LIST_COLUMNS_SET_FAIL:case c.ISSUE_LIST_COLUMNS_RESET_FAIL:return i({},e,{columnsLoading:!1,error:t.error});case c.ISSUE_FILE_DELETE:return i({},e,{fileLoading:!0,historyLoaded:!1});case c.ISSUE_FILE_DELETE_SUCCESS:return 0===t.result.ecode&&(e.itemData[t.field_key]=u.default.reject(e.itemData[t.field_key]||[],{id:t.id})),i({},e,{fileLoading:!1,ecode:t.result.ecode});case c.ISSUE_FILE_DELETE_FAIL:return i({},e,{fileLoading:!1,error:t.error});case c.ISSUE_FILE_ADD:return e.itemData[t.field_key]||(e.itemData[t.field_key]=[]),e.itemData[t.field_key].push(t.file),i({},e,{itemData:e.itemData,historyLoaded:!1});case c.ISSUE_WORKFLOW_ACTION:return i({},e,{itemLoading:!t.screen,loading:t.screen,historyLoaded:!1,commentsLoaded:!1});case c.ISSUE_ADD_LABELS:return e.options.labels=t.newLabels.concat(e.options.labels),i({},e,{options:e.options});case c.ISSUE_SET_ASSIGNEE:return i({},e,{historyLoaded:!1,itemLoading:!t.modelFlag});case c.ISSUE_SET_LABELS:return i({},e,{historyLoaded:!1});case c.ISSUE_STATE_RESET:return i({},e,{itemLoading:!0,historyLoaded:!1});case c.ISSUE_WORKFLOW_ACTION_SUCCESS:case c.ISSUE_STATE_RESET_SUCCESS:case c.ISSUE_SET_ASSIGNEE_SUCCESS:case c.ISSUE_SET_LABELS_SUCCESS:if(0===t.result.ecode){var r=u.default.findIndex(e.collection,{id:t.result.data.id});r!==-1&&u.default.extend(e.collection[r],t.result.data),u.default.isEmpty(e.itemData)||t.result.data.id!==e.itemData.id||u.default.extend(e.itemData,t.result.data)}return i({},e,{itemLoading:!1,ecode:t.result.ecode});case c.ISSUE_WORKFLOW_ACTION_FAIL:case c.ISSUE_STATE_RESET_FAIL:case c.ISSUE_SET_ASSIGNEE_FAIL:case c.ISSUE_SET_LABELS_FAIL:return i({},e,{itemLoading:!1,loading:!1,error:t.error});case c.ISSUE_COMMENTS_INDEX:return i({},e,{commentsIndexLoading:!0,commentsCollection:[]});case c.ISSUE_COMMENTS_INDEX_SUCCESS:return 0===t.result.ecode&&(e.commentsCollection=t.result.data,u.default.assign(e.options,t.result.options||{}),e.itemData.comments_num=0,u.default.forEach(e.commentsCollection,function(t){e.itemData.comments_num+=1,t.reply&&(e.itemData.comments_num+=t.reply.length)})),i({},e,{commentsIndexLoading:!1,commentsLoaded:!0,ecode:t.result.ecode});case c.ISSUE_COMMENTS_INDEX_FAIL:return i({},e,{commentsIndexLoading:!1,error:t.error});case c.ISSUE_COMMENTS_SORT:return e.commentsCollection.reverse(),i({},e,{commentsSort:"desc"===e.commentsSort?"asc":"desc",commentsCollection:u.default.clone(e.commentsCollection)});case c.ISSUE_COMMENTS_ADD:return i({},e,{commentsLoading:!0});case c.ISSUE_COMMENTS_ADD_SUCCESS:return 0===t.result.ecode&&("asc"===e.commentsSort?e.commentsCollection.push(t.result.data):e.commentsCollection.unshift(t.result.data),e.itemData.comments_num?e.itemData.comments_num+=1:e.itemData.comments_num=1),i({},e,{commentsLoading:!1,ecode:t.result.ecode});case c.ISSUE_COMMENTS_ADD_FAIL:return i({},e,{commentsLoading:!1,error:t.error});case c.ISSUE_COMMENTS_EDIT:return i({},e,{commentsItemLoading:!0});case c.ISSUE_COMMENTS_EDIT_SUCCESS:if(0===t.result.ecode){var r=u.default.findIndex(e.commentsCollection,{id:t.result.data.id});e.commentsCollection[r]=t.result.data,e.itemData.comments_num=0,u.default.forEach(e.commentsCollection,function(t){e.itemData.comments_num+=1,t.reply&&(e.itemData.comments_num+=t.reply.length)})}return i({},e,{commentsItemLoading:!1,ecode:t.result.ecode});case c.ISSUE_COMMENTS_EDIT_FAIL:return i({},e,{commentsItemLoading:!1,error:t.error});case c.ISSUE_COMMENTS_DELETE:return i({},e,{commentsItemLoading:!0});case c.ISSUE_COMMENTS_DELETE_SUCCESS:return 0===t.result.ecode&&(e.commentsCollection=u.default.reject(e.commentsCollection,{id:t.id}),e.itemData.comments_num=0,u.default.forEach(e.commentsCollection,function(t){e.itemData.comments_num+=1,t.reply&&(e.itemData.comments_num+=t.reply.length)})),i({},e,{commentsItemLoading:!1,ecode:t.result.ecode});case c.ISSUE_COMMENTS_DELETE_FAIL:return i({},e,{commentsItemLoading:!1,error:t.error});case c.ISSUE_HISTORY_INDEX:return i({},e,{historyIndexLoading:!0,historyCollection:[]});case c.ISSUE_HISTORY_INDEX_SUCCESS:return 0===t.result.ecode&&(e.historyCollection=t.result.data,u.default.assign(e.options,t.result.options||{})),i({},e,{historyIndexLoading:!1,historyLoaded:!0,ecode:t.result.ecode});case c.ISSUE_HISTORY_INDEX_FAIL:return i({},e,{historyIndexLoading:!1,error:t.error});case c.ISSUE_HISTORY_SORT:return e.historyCollection.reverse(),i({},e,{historySort:"desc"===e.historySort?"asc":"desc",historyCollection:u.default.clone(e.historyCollection)});case c.ISSUE_GITCOMMITS_INDEX:return i({},e,{gitCommitsIndexLoading:!0,gitCommitsCollection:[]});case c.ISSUE_GITCOMMITS_INDEX_SUCCESS:return 0===t.result.ecode&&(e.gitCommitsCollection=t.result.data,u.default.assign(e.options,t.result.options||{}),e.itemData.gitcommits_num=e.gitCommitsCollection.length),i({},e,{gitCommitsIndexLoading:!1,gitCommitsLoaded:!0,ecode:t.result.ecode});case c.ISSUE_GITCOMMITS_INDEX_FAIL:return i({},e,{gitCommitsIndexLoading:!1,error:t.error});case c.ISSUE_GITCOMMITS_SORT:return e.gitCommitsCollection.reverse(),i({},e,{gitCommitsSort:"desc"===e.gitCommitsSort?"asc":"desc",gitCommitsCollection:u.default.clone(e.gitCommitsCollection)});case c.ISSUE_WORKLOG_INDEX:return i({},e,{worklogIndexLoading:!0,worklogCollection:[]});case c.ISSUE_WORKLOG_INDEX_SUCCESS:return 0===t.result.ecode&&(e.worklogCollection=t.result.data,u.default.assign(e.options,t.result.options||{}),e.itemData.worklogs_num=e.worklogCollection.length),i({},e,{worklogIndexLoading:!1,worklogLoaded:!0,ecode:t.result.ecode});case c.ISSUE_WORKLOG_INDEX_FAIL:return i({},e,{worklogIndexLoading:!1,error:t.error});case c.ISSUE_WORKLOG_SORT:return e.worklogCollection.reverse(),i({},e,{worklogSort:"asc"===e.worklogSort?"desc":"asc",worklogCollection:u.default.clone(e.worklogCollection)});case c.ISSUE_WORKLOG_ADD:return i({},e,{worklogLoading:!0});case c.ISSUE_WORKLOG_ADD_SUCCESS:return 0===t.result.ecode&&("desc"===e.worklogSort?e.worklogCollection.unshift(t.result.data):e.worklogCollection.push(t.result.data),e.itemData.worklogs_num?e.itemData.worklogs_num+=1:e.itemData.worklogs_num=1),i({},e,{worklogLoading:!1,ecode:t.result.ecode});case c.ISSUE_WORKLOG_ADD_FAIL:return i({},e,{worklogLoading:!1,error:t.error});case c.ISSUE_WORKLOG_EDIT:return i({},e,{worklogLoading:!0});case c.ISSUE_WORKLOG_EDIT_SUCCESS:if(0===t.result.ecode){var r=u.default.findIndex(e.worklogCollection,{id:t.result.data.id});e.worklogCollection[r]=t.result.data}return i({},e,{worklogLoading:!1,ecode:t.result.ecode});case c.ISSUE_WORKLOG_EDIT_FAIL:return i({},e,{worklogLoading:!1,error:t.error});case c.ISSUE_WORKLOG_DELETE:return i({},e,{worklogLoading:!0});case c.ISSUE_WORKLOG_DELETE_SUCCESS:return 0===t.result.ecode&&(e.worklogCollection=u.default.reject(e.worklogCollection,{id:t.id}),e.itemData.worklogs_num>0?e.itemData.worklogs_num-=1:e.itemData.worklogs_num=0),i({},e,{worklogCollection:e.worklogCollection,worklogLoading:!1,ecode:t.result.ecode});case c.ISSUE_WORKLOG_DELETE_FAIL:return i({},e,{worklogLoading:!1,error:t.error});case c.ISSUE_RECORD:var o=u.default.add(e.visitedIndex,1);return e.visitedCollection[o]&&e.visitedCollection.splice(o),e.visitedCollection[e.visitedIndex]!==e.itemData.id&&e.visitedCollection.push(e.itemData.id),i({},e,{visitedCollection:e.visitedCollection,visitedIndex:e.visitedCollection.length-1});case c.ISSUE_FORWARD:return i({},e,{visitedIndex:u.default.add(e.visitedIndex,t.offset||0)});case c.ISSUE_CLEAN_RECORD:return i({},e,{visitedIndex:-1,visitedCollection:[],itemData:{}});case c.ISSUE_LINK_CREATE:return i({},e,{linkLoading:!0});case c.ISSUE_LINK_CREATE_SUCCESS:return 0===t.result.ecode&&(u.default.isEmpty(e.itemData)||t.result.data.src.id!==e.itemData.id||(e.itemData.links||(e.itemData.links=[]),e.itemData.links.push(t.result.data))),i({},e,{linkLoading:!1,ecode:t.result.ecode});case c.ISSUE_LINK_CREATE_FAIL:return i({},e,{linkLoading:!1,error:t.error});case c.ISSUE_LINK_DELETE:return i({},e,{linkLoading:!0});case c.ISSUE_LINK_DELETE_SUCCESS:if(0===t.result.ecode&&!u.default.isEmpty(e.itemData)&&e.itemData.links&&e.itemData.links.length>0){var n=u.default.findIndex(e.itemData.links,{id:t.id});n>-1&&e.itemData.links.splice(n,1)}return i({},e,{linkLoading:!1,ecode:t.result.ecode});case c.ISSUE_LINK_DELETE_FAIL:return i({},e,{linkLoading:!1,error:t.error});case c.ISSUE_WATCHING_SUCCESS:if(0===t.result.ecode){var r=u.default.findIndex(e.collection,{id:t.result.data.id});if(r!==-1&&(e.collection[r].watching=t.result.data.watching),!u.default.isEmpty(e.itemData)&&t.result.data.id===e.itemData.id&&(e.itemData.watching=t.result.data.watching,t.result.data.user))if(e.itemData.watchers||(e.itemData.watchers=[]),e.itemData.watching)e.itemData.watchers.unshift(t.result.data.user);else{var a=u.default.findIndex(e.itemData.watchers,{id:t.result.data.user.id});a!==-1&&e.itemData.watchers.splice(a,1)}}return i({},e,{ecode:t.result.ecode});case c.ISSUE_SPRINT_REMOVE_ISSUE:var l=u.default.reject(e.collection,function(e){return t.issue===e.no});return i({},e,{collection:l});case c.ISSUE_KANBAN_RANK_SET:return i({},e,{rankLoading:!0});case c.ISSUE_KANBAN_RANK_SET_SUCCESS:if(0===t.result.ecode&&t.result.data.rank&&t.result.data.rank.length>0){var s=function(){var r=[];return u.default.map(t.result.data.rank,function(t){var o=u.default.find(e.collection,{no:t});o&&r.push(o)}),{v:i({},e,{collection:r,rankLoading:!1})}}();if("object"==typeof s)return s.v}return i({},e,{rankLoading:!1});case c.ISSUE_KANBAN_RANK_SET_FAIL:return i({},e,{rankLoading:!1,error:t.error});case c.ISSUE_KANBAN_RELEASE:return i({},e,{itemLoading:!0});case c.ISSUE_KANBAN_RELEASE_SUCCESS:return 0===t.result.ecode&&u.default.map(t.result.data.ids||[],function(t){e.collection=u.default.reject(e.collection,{id:t})}),i({},e,{itemLoading:!1,ecode:t.result.ecode});case c.ISSUE_KANBAN_RELEASE_FAIL:return i({},e,{itemLoading:!1,error:t.error});case c.ISSUE_IMPORTS:return i({},e,{loading:!0,emsg:""});case c.ISSUE_IMPORTS_SUCCESS:return 0!==t.result.ecode&&(e.emsg=t.result.emsg),i({},e,{loading:!1,ecode:t.result.ecode});case c.ISSUE_IMPORTS_FAIL:return i({},e,{loading:!1,error:t.error});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t":">","<":"<",'"':""","'":"'"},o=/[&><"']/g;t.default=function(e){return(""+e).replace(o,function(e){return r[e]})}},function(e,t,r){"use strict";function o(e){n.default.__addLocaleData(e),a.default.__addLocaleData(e)}t.__addLocaleData=o;var n=r(564),a=r(773),i=r(2021),l=r(286),c=r(2015),s=r(2020),u=r(2019),d=r(2018),p=r(2017),f=r(2016);o(i.default),t.IntlMixin=l.default,t.FormattedDate=c.default,t.FormattedTime=s.default,t.FormattedRelative=u.default,t.FormattedNumber=d.default,t.FormattedMessage=p.default,t.FormattedHTMLMessage=f.default},function(e,t,r){"use strict";function o(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function n(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case O.topCompositionStart:return k.compositionStart;case O.topCompositionEnd:return k.compositionEnd;case O.topCompositionUpdate:return k.compositionUpdate}}function i(e,t){return e===O.topKeyDown&&t.keyCode===x}function l(e,t){switch(e){case O.topKeyUp:return E.indexOf(t.keyCode)!==-1;case O.topKeyDown:return t.keyCode!==x;case O.topKeyPress:case O.topMouseDown:case O.topBlur:return!0;default:return!1}}function c(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function s(e,t,r,o){var n,s;if(S?n=a(e):N?l(e,o)&&(n=k.compositionEnd):i(e,o)&&(n=k.compositionStart),!n)return null;C&&(N||n!==k.compositionStart?n===k.compositionEnd&&N&&(s=N.getData()):N=g.getPooled(t));var u=m.getPooled(n,r,o);if(s)u.data=s;else{var d=c(o);null!==d&&(u.data=d)}return h.accumulateTwoPhaseDispatches(u),u}function u(e,t){switch(e){case O.topCompositionEnd:return c(t);case O.topKeyPress:var r=t.which;return r!==T?null:(A=!0,I);case O.topTextInput:var o=t.data;return o===I&&A?null:o;default:return null}}function d(e,t){if(N){if(e===O.topCompositionEnd||l(e,t)){var r=N.getData();return g.release(N),N=null,r}return null}switch(e){case O.topPaste:return null;case O.topKeyPress:return t.which&&!n(t)?String.fromCharCode(t.which):null;case O.topCompositionEnd:return C?null:t.data;default:return null}}function p(e,t,r,o){var n;if(n=w?u(e,o):d(e,o),!n)return null;var a=v.getPooled(k.beforeInput,r,o);return a.data=n,h.accumulateTwoPhaseDispatches(a),a}var f=r(198),h=r(394),b=r(191),g=r(2032),m=r(2066),v=r(2069),y=r(266),E=[9,13,27,32],x=229,S=b.canUseDOM&&"CompositionEvent"in window,_=null;b.canUseDOM&&"documentMode"in document&&(_=document.documentMode);var w=b.canUseDOM&&"TextEvent"in window&&!_&&!o(),C=b.canUseDOM&&(!S||_&&_>8&&_<=11),T=32,I=String.fromCharCode(T),O=f.topLevelTypes,k={beforeInput:{phasedRegistrationNames:{bubbled:y({onBeforeInput:null}),captured:y({onBeforeInputCapture:null})},dependencies:[O.topCompositionEnd,O.topKeyPress,O.topTextInput,O.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:y({onCompositionEnd:null}),captured:y({onCompositionEndCapture:null})},dependencies:[O.topBlur,O.topCompositionEnd,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:y({onCompositionStart:null}),captured:y({onCompositionStartCapture:null})},dependencies:[O.topBlur,O.topCompositionStart,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:y({onCompositionUpdate:null}),captured:y({onCompositionUpdateCapture:null})},dependencies:[O.topBlur,O.topCompositionUpdate,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]}},A=!1,N=null,R={eventTypes:k,extractEvents:function(e,t,r,o){return[s(e,t,r,o),p(e,t,r,o)]}};e.exports=R},function(e,t,r){"use strict";function o(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function n(e){var t=_.getPooled(O.change,A,e);E.accumulateTwoPhaseDispatches(t),S.batchedUpdates(a,t)}function a(e){y.enqueueEvents(e),y.processEventQueue()}function i(e,t){k=e,A=t,k.attachEvent("onchange",n)}function l(){k&&(k.detachEvent("onchange",n),k=null,A=null)}function c(e,t,r){if(e===I.topChange)return r}function s(e,t,r){e===I.topFocus?(l(),i(t,r)):e===I.topBlur&&l()}function u(e,t){k=e,A=t,N=e.value,R=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(k,"value",F),k.attachEvent("onpropertychange",p)}function d(){k&&(delete k.value,k.detachEvent("onpropertychange",p),k=null,A=null,N=null,R=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==N&&(N=t,n(e))}}function f(e,t,r){if(e===I.topInput)return r}function h(e,t,r){e===I.topFocus?(d(),u(t,r)):e===I.topBlur&&d()}function b(e,t,r){if((e===I.topSelectionChange||e===I.topKeyUp||e===I.topKeyDown)&&k&&k.value!==N)return N=k.value,A}function g(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function m(e,t,r){if(e===I.topClick)return r}var v=r(198),y=r(393),E=r(394),x=r(191),S=r(227),_=r(289),w=r(608),C=r(881),T=r(266),I=v.topLevelTypes,O={change:{phasedRegistrationNames:{bubbled:T({onChange:null}),captured:T({onChangeCapture:null})},dependencies:[I.topBlur,I.topChange,I.topClick,I.topFocus,I.topInput,I.topKeyDown,I.topKeyUp,I.topSelectionChange]}},k=null,A=null,N=null,R=null,L=!1;x.canUseDOM&&(L=w("change")&&(!("documentMode"in document)||document.documentMode>8));var D=!1;x.canUseDOM&&(D=w("input")&&(!("documentMode"in document)||document.documentMode>9));var F={get:function(){return R.get.call(this)},set:function(e){N=""+e,R.set.call(this,e)}},P={eventTypes:O,extractEvents:function(e,t,r,n){var a,i;if(o(t)?L?a=c:i=s:C(t)?D?a=f:(a=b,i=h):g(t)&&(a=m),a){var l=a(e,t,r);if(l){var u=_.getPooled(O.change,l,n);return E.accumulateTwoPhaseDispatches(u),u}}i&&i(e,t,r)}};e.exports=P},function(e,t){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};e.exports=o},function(e,t,r){"use strict";function o(e,t,r){e.insertBefore(t,e.childNodes[r]||null)}var n=r(2028),a=r(868),i=r(2092),l=r(40),c={dangerouslyReplaceNodeWithMarkup:n.dangerouslyReplaceNodeWithMarkup,updateTextContent:i,processUpdates:function(e,t){for(var r,c=null,s=null,u=0;u]+)/,u="data-danger-index",d={dangerouslyRenderMarkup:function(e){c(n.canUseDOM);for(var t,r={},d=0;d1?1-t:void 0;return this._fallbackText=n.slice(e,l),this._fallbackText}}),n.addPoolingTo(o),e.exports=o},function(e,t,r){"use strict";var o,n=r(323),a=r(191),i=n.injection.MUST_USE_ATTRIBUTE,l=n.injection.MUST_USE_PROPERTY,c=n.injection.HAS_BOOLEAN_VALUE,s=n.injection.HAS_SIDE_EFFECTS,u=n.injection.HAS_NUMERIC_VALUE,d=n.injection.HAS_POSITIVE_NUMERIC_VALUE,p=n.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var f=document.implementation;o=f&&f.hasFeature&&f.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|c,allowTransparency:i,alt:null,async:c,autoComplete:null,autoPlay:c,cellPadding:null,cellSpacing:null,charSet:i,checked:l|c,classID:i,className:o?i:l,cols:i|d,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:l|c,coords:null,crossOrigin:null,data:null,dateTime:i,defer:c,dir:null,disabled:i|c,download:p,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:c,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|c,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:l,label:null,lang:null,list:i,loop:l|c,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,multiple:l|c,muted:l|c,name:null,noValidate:c,open:c,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:l|c,rel:null,required:c,role:i,rows:i|d,rowSpan:null,sandbox:null,scope:null,scoped:c,scrolling:null,seamless:i|c,selected:l|c,shape:null,size:i|d,sizes:i,span:d,spellCheck:null,src:null,srcDoc:l,srcSet:i,start:u,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:l|s,width:i,wmode:i,autoCapitalize:null,autoCorrect:null,itemProp:i,itemScope:i|c,itemType:i,itemID:i,itemRef:i,property:null,unselectable:i},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=h},function(e,t,r){"use strict";var o=r(198),n=r(265),a=o.topLevelTypes,i={eventTypes:null,extractEvents:function(e,t,r,o){if(e===a.topTouchStart){var i=o.target;i&&!i.onclick&&(i.onclick=n)}}};e.exports=i},function(e,t,r){"use strict";var o=r(591),n=r(2037),a=r(863),i=r(199),l=r(596),c=r(245),s=r(163),u=(r(395),r(2039)),d=r(865),p=r(2050),f=r(325),h=r(246),b=r(288),g=r(869),m=r(327),v=r(2059),y=r(162),E=r(874),x=r(2090);p.inject();var S=s.createElement,_=s.createFactory,w=s.cloneElement,C=b.measure("React","render",h.render),T={Children:{map:n.map,forEach:n.forEach,count:n.count,only:x},Component:a,DOM:u,PropTypes:g,initializeTouchEvents:function(e){o.useTouchEvents=e},createClass:i.createClass,createElement:S,cloneElement:w,createFactory:_,createMixin:function(e){return e},constructAndRenderComponent:h.constructAndRenderComponent,constructAndRenderComponentByID:h.constructAndRenderComponentByID,findDOMNode:E,render:C,renderToString:v.renderToString,renderToStaticMarkup:v.renderToStaticMarkup,unmountComponentAtNode:h.unmountComponentAtNode,isValidElement:s.isValidElement,withContext:l.withContext,__spread:y};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:c,InstanceHandles:f,Mount:h,Reconciler:m,TextComponent:d});T.version="0.13.3",e.exports=T},function(e,t,r){"use strict";var o=r(327),n=r(2080),a=r(607),i=r(610),l={instantiateChildren:function(e,t,r){var o=n(e);for(var i in o)if(o.hasOwnProperty(i)){var l=o[i],c=a(l,null);o[i]=c}return o},updateChildren:function(e,t,r,l){var c=n(t);if(!c&&!e)return null;var s;for(s in c)if(c.hasOwnProperty(s)){var u=e&&e[s],d=u&&u._currentElement,p=c[s];if(i(d,p))o.receiveComponent(u,p,r,l),c[s]=u;else{u&&o.unmountComponent(u,s);var f=a(p,null);c[s]=f}}for(s in e)!e.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||o.unmountComponent(e[s]);return c},unmountChildren:function(e){for(var t in e){var r=e[t];o.unmountComponent(r)}}};e.exports=l},function(e,t,r){"use strict";function o(e,t){this.forEachFunction=e,this.forEachContext=t}function n(e,t,r,o){var n=e;n.forEachFunction.call(n.forEachContext,t,o)}function a(e,t,r){if(null==e)return e;var a=o.getPooled(t,r);f(e,n,a),o.release(a)}function i(e,t,r){this.mapResult=e,this.mapFunction=t,this.mapContext=r}function l(e,t,r,o){var n=e,a=n.mapResult,i=!a.hasOwnProperty(r);if(i){var l=n.mapFunction.call(n.mapContext,t,o);a[r]=l}}function c(e,t,r){if(null==e)return e;var o={},n=i.getPooled(o,t,r);return f(e,l,n),i.release(n),p.create(o)}function s(e,t,r,o){return null}function u(e,t){return f(e,s,null)}var d=r(243),p=r(466),f=r(882),h=(r(165),d.twoArgumentPooler),b=d.threeArgumentPooler;d.addPoolingTo(o,h),d.addPoolingTo(i,b);var g={forEach:a,map:c,count:u};e.exports=g},function(e,t,r){"use strict";function o(e){var t=e._currentElement._owner||null;if(t){var r=t.getName();if(r)return" Check the render method of `"+r+"`."}return""}var n=r(595),a=r(596),i=r(245),l=r(163),c=(r(395),r(326)),s=r(599),u=r(467),d=r(288),p=r(600),f=(r(468),r(327)),h=r(227),b=r(162),g=r(471),m=r(40),v=r(610),y=(r(165),1),E={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,t,r){this._context=r,this._mountOrder=y++,this._rootNodeID=e;var o=this._processProps(this._currentElement.props),n=this._processContext(this._currentElement._context),a=u.getComponentClassForElement(this._currentElement),i=new a(o,n);i.props=o,i.context=n,i.refs=g,this._instance=i,c.set(i,this);var l=i.state;void 0===l&&(i.state=l=null),m("object"==typeof l&&!Array.isArray(l)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var d,p,h=s.currentlyMountingInstance;s.currentlyMountingInstance=this;try{i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),d=this._getValidatedChildContext(r),p=this._renderValidatedComponent(d)}finally{s.currentlyMountingInstance=h}this._renderedComponent=this._instantiateReactComponent(p,this._currentElement.type);var b=f.mountComponent(this._renderedComponent,e,t,this._mergeChildContext(r,d));return i.componentDidMount&&t.getReactMountReady().enqueue(i.componentDidMount,i),b},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=s.currentlyUnmountingInstance;s.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{s.currentlyUnmountingInstance=t}}f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,c.remove(e)},_setPropsInternal:function(e,t){var r=this._pendingElement||this._currentElement;this._pendingElement=l.cloneAndReplaceProps(r,b({},r.props,e)),h.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return g;var r=this._currentElement.type.contextTypes;if(!r)return g;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_getValidatedChildContext:function(e){var t=this._instance,r=t.getChildContext&&t.getChildContext();if(r){m("object"==typeof t.constructor.childContextTypes);for(var o in r)m(o in t.constructor.childContextTypes);return r}return null},_mergeChildContext:function(e,t){return t?b({},e,t):e},_processProps:function(e){return e},_checkPropTypes:function(e,t,r){var n=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var i;try{m("function"==typeof e[a]),i=e[a](t,a,n,r)}catch(l){i=l}if(i instanceof Error){o(this);r===p.prop}}},receiveComponent:function(e,t,r){var o=this._currentElement,n=this._context;this._pendingElement=null,this.updateComponent(t,o,e,n,r)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(e,t){e=this._maskContext(e),t=this._maskContext(t);for(var r=Object.keys(t).sort(),o=(this.getName()||"ReactCompositeComponent",0);o must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to