diff --git a/public/assets/34-2fafc167f8a6ebfe8dae.js b/public/assets/34-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/34-2fafc167f8a6ebfe8dae.js rename to public/assets/34-d133ff15592d3c829f3c.js index 964185e5..20bb552b 100644 --- a/public/assets/34-2fafc167f8a6ebfe8dae.js +++ b/public/assets/34-d133ff15592d3c829f3c.js @@ -1,2 +1,2 @@ webpackJsonp([34],{901: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=34-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=34-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/35-2fafc167f8a6ebfe8dae.js b/public/assets/35-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/35-2fafc167f8a6ebfe8dae.js rename to public/assets/35-d133ff15592d3c829f3c.js index 96a4abef..37b9c03f 100644 --- a/public/assets/35-2fafc167f8a6ebfe8dae.js +++ b/public/assets/35-d133ff15592d3c829f3c.js @@ -1,2 +1,2 @@ webpackJsonp([35],{900: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=35-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=35-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/activity-2fafc167f8a6ebfe8dae.js b/public/assets/activity-2fafc167f8a6ebfe8dae.js deleted file mode 100644 index 576d30f5..00000000 --- a/public/assets/activity-2fafc167f8a6ebfe8dae.js +++ /dev/null @@ -1,12 +0,0 @@ -webpackJsonp([6],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 o={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=o;var r=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=r;var i={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=i;var a=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=a;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},32:function(e,t,n){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)return"";if(!t)return s.unix(e).format("YYYY/MM/DD HH:mm:ss");var n=[{value:31536e3,suffix:"年前",max:2},{value:2592e3,suffix:"个月前",max:11},{value:604800,suffix:"周前",max:4},{value:86400,suffix:"天前",max:6},{value:3600,suffix:"小时前",max:23},{value:600,suffix:"0分钟前",max:5}],o="刚刚",r=t-e;if(r<=0)return o;for(var i=0;i<6;i++){var a=l.default.floor(r/n[i].value);if(a>=1){o=l.default.min([a,n[i].max])+n[i].suffix;break}}return o}function r(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var o={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},r=t.substr(n+1);return o[r]?"fa fa-file-"+o[r]+"-o":"fa fa-file-o"}function i(e,t,n){var o=e<0?-1:1;e=Math.abs(e);var r=[],i=l.default.ceil(e);if(i>=0){var a=l.default.floor(e/t);a>0&&r.push(a+"w")}if(i=e%t,i>=0){var s=l.default.floor(i/n);s>0&&r.push(s+"d")}if(i%=n,i>=0){var u=l.default.floor(i/60);u>0&&r.push(u+"h")}return i%=60,i>0&&r.push(i+"m"),r.length<=0&&r.push("0m"),(o<0?"-":"")+r.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=o,t.getFileIconCss=r,t.ttFormat=i;var a=n(3),l=e(a),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(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}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&&(r.onChange=o.bind(null,this.props.value)),l.default.createElement("input",i({},this.props,{type:"checkbox",name:t},r))}}),t.CheckboxGroup=l.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: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=r(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)}})},44:function(e,t,n){!function(t,o){e.exports=o(n(1),n(121))}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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;no&&(g=Math.max(b.minX,Math.min(b.maxX,g)),v=Math.max(b.minY,Math.min(b.maxY,v))),this.setState({zoomLevel:o,offsetX:g,offsetY:v})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,m.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var o=this.getLightboxRect(),r=o.height-2*this.props.imagePadding,i=o.width-2*this.props.imagePadding;n||(r=Math.min(r,t),i=Math.min(i,e));var a=i/r,l=e/t;return a>l?{width:e*r/t,height:r}:{width:i,height:t*i/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),o=this.getZoomMultiplier(e),r=0;r=o*t.width-n.width<0?(n.width-o*t.width)/2:(o*t.width-n.width)/2;var i=0;return i=o*t.height-n.height<0?(n.height-o*t.height)/2:(o*t.height-n.height)/2,{maxX:r,maxY:i,minX:-1*r,minY:-1*i}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(h.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,m.getWindowWidth)(),height:(0,m.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=i?(this.requestMoveNext(e),o=r,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*i)&&(this.requestMovePrev(e),o=r,this.scrollX=0)}0!==o&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},o))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=h.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)h.MIN_ZOOM_LEVEL?this.changeZoom(h.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),o=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&o===this.state.offsetY||(this.setState({offsetX:n,offsetY:o,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=h.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,o=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===o||this.setState({offsetX:n,offsetY:o})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=h.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,o=this.caption.scrollTop;(e.deltaY>0&&t+o>=n||e.deltaY<0&&o<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var o=this,r=new Image;r.onerror=function(){t("image load error")},r.onload=function(){o.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},r.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(o){return o?void(window.console&&window.console.warn(o)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(o){var r=o.name;t[r]&&!e.isImageLoaded(t[r])&&e.loadImage(t[r],n(r,t[r]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,o={zoomLevel:h.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(o.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(o),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(o),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,o=n.animationDisabled,r=n.animationDuration,i=n.clickOutsideToClose,a=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,_=this.state,w=_.zoomLevel,k=_.offsetX,E=_.offsetY,x=_.isClosing,C=this.getLightboxRect(),T={};!o&&this.isAnimating()&&(T=u({},T,{transition:"transform "+r+"ms"}));var S={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;S[t]=n});var P=[],O=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var r=u({},o,T);w>h.MIN_ZOOM_LEVEL&&(r.cursor="move");var i=e.getBestImageForType(t);if(null===i){var l=void 0;return l=b<10?d.default.createElement("div",{className:v.loadingContainer__icon},(0,m.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+v.loadingCircle+" "+v.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint})),void P.push(d.default.createElement("div",{className:n+" "+v.image+" not-loaded ril-not-loaded",style:r,key:e.props[t]+S[t]},d.default.createElement("div",{className:v.loadingContainer},l)))}r.width=i.width,r.height=i.height;var c=i.src;a?(r.backgroundImage="url('"+c+"')",P.push(d.default.createElement("div",{className:n+" "+v.image+" "+v.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:r,key:c+S[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+v.downloadBlocker})))):P.push(d.default.createElement("img",{className:n+" "+v.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:r,src:c,key:c+S[t],alt:s||(0,m.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+v.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*k,y:-1*E,zoom:R})),O("prevSrc","image-prev ril-image-prev "+v.imagePrev,t.getTransform({x:-1*C.width}));var M=function(){},L=[v.toolbarItemChild,v.builtinButton,v.zoomInButton],j=[v.toolbarItemChild,v.builtinButton,v.zoomOutButton],F=this.handleZoomInButtonClick,I=this.handleZoomOutButtonClick;w===h.MAX_ZOOM_LEVEL&&(L.push(v.builtinButtonDisabled),F=M),w===h.MIN_ZOOM_LEVEL&&(j.push(v.builtinButtonDisabled),I=M),this.isAnimating()&&(F=M,I=M);var q={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:i?this.requestClose:M,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:q},d.default.createElement("div",{className:"outer ril-outer "+v.outer+" "+v.outerAnimating+(x?" closing ril-closing "+v.outerClosing:""),style:{transition:"opacity "+r+"ms",animationDuration:r+"ms",animationDirection:x?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+v.inner,onClick:i?this.closeIfClickInner:M},P),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+v.navButtons+" "+v.navButtonPrev,key:"prev",onClick:this.isAnimating()?M:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+v.navButtons+" "+v.navButtonNext,key:"next",onClick:this.isAnimating()?M:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+v.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+v.toolbarSide+" "+v.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+v.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",v.toolbarSide,v.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+v.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+L.join(" "),onClick:F})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+j.join(" "),onClick:I})),d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+v.toolbarItemChild+" "+v.builtinButton+" "+v.closeButton),onClick:this.isAnimating()?M:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+v.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+v.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,o=e.y,i=void 0===o?null:o,a=e.zoom,l=void 0===a?null:a,s=b<10,u=[];return null===n&&null===i||u.push(s?"translate("+(n||0)+"px,"+(i||0)+"px)":"translate3d("+(n||0)+"px,"+(i||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),r({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);_.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},_.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=_},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function r(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function i(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function a(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=o,t.getWindowWidth=r,t.getWindowHeight=i,t.isInIframe=a},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), -t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var n,o,r;if(t.singleton){var i=v++;n=g||(g=l(t)),o=c.bind(null,n,i,!1),r=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),o=p.bind(null,n),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),o=d.bind(null,n),r=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function c(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=_(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var f={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=m(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a'),this.element.appendChild(n)),o=n.getElementsByTagName("span")[0],o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,o;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),o=t.optWidth/t.optHeight,e.heighto?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*o):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/o),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,o,r,i,a,l,s,u,c,d,p,f,m;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),i=0,s=d.length;i'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),o=function(n){return function(o){return o.preventDefault(),o.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),m=[],l=0,c=f.length;l\n
\n
\n
\n
\n
\n
\n
\n
\n \n Check\n \n \n \n \n \n
\n
\n \n Error\n \n \n \n \n \n \n \n
\n'},o=function(){var e,t,n,o,r,i,a;for(o=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],i=0,a=n.length;i'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(o=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,i;if(n=e.hiddenFileInput.files,n.length)for(r=0,i=n.length;r',this.options.dictFallbackText&&(o+="

"+this.options.dictFallbackText+"

"),o+='',n=t.createElement(o),"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,o,r,i;for(t=function(e){var t,n,o;for(n=0,o=e.length;n0){for(a=["TB","GB","MB","KB","b"],n=l=0,s=a.length;l=t){o=e/Math.pow(this.options.filesizeBase,4-n),r=i;break}o=Math.round(10*o)/10}return""+o+" "+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,o,r;for(r=[],n=0,o=e.length;n0){for(i=0,a=n.length;i1024*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,o;for(n=0,o=e.length;n=t)&&(o=this.getQueuedFiles(),o.length>0)){if(this.options.uploadMultiple)return this.processFiles(o.slice(0,t-n));for(;e=A;c=0<=A?++M:--M)i.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(k,i,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,o){var r,i,a;for(i=0,a=e.length;ic;)t=r[4*(s-1)+3],0===t?i=s:c=s,s=i+c>>1;return u=s/a,0===u?1:u},a=function(e,t,n,o,r,a,l,s,u,c){var d;return d=i(t),e.drawImage(t,n,o,r,a,l,s,u,c/d)},r=function(e,t){var n,o,r,i,a,l,s,u,c;if(r=!1,c=!0,o=e.document,u=o.documentElement,n=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",l=o.addEventListener?"":"on",i=function(n){if("readystatechange"!==n.type||"complete"===o.readyState)return("load"===n.type?e:o)[s](l+n.type,i,!1),!r&&(r=!0)?t.call(e,n.type||n):void 0},a=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(a,50)}return i("poll")},"complete"!==o.readyState){if(o.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&a()}return o[n](l+"DOMContentLoaded",i,!1),o[n](l+"readystatechange",i,!1),e[n](l+"load",i,!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 o=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t=o.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var i;for(i in e);return"undefined"==typeof i||o.call(e,i)};e.exports=function l(){var e,t,n,o,r,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,o=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var r=0;r1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&p(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1&&e%1==0&&e-1&&e%1==0&&e<=E}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}function k(e){return y(e)?i(e):l(e)}var E=9007199254740991,x="[object Arguments]",C="[object Function]",T="[object GeneratorFunction]",S=/^(?:0|[1-9]\d*)$/,P=Object.prototype,O=P.hasOwnProperty,R=P.toString,M=P.propertyIsEnumerable,L=r(Object.keys,Object),j=Math.max,F=!M.call({valueOf:1},"valueOf"),I=Array.isArray,q=c(function(e,t){if(F||f(t)||y(t))return void u(t,k(t),e);for(var n in t)O.call(t,n)&&a(e,n,t[n])});e.exports=q},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&r(e)}function o(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function r(e){for(;e&&e!==document.body;){if(o(e))return!1;e=e.parentNode}return!0}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var o=isNaN(t);return(o||t>=0)&&n(e,!o)}function a(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return i(e)})}e.exports=a},87:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(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}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(o,r){return o?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(o,r),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,o=1;oAn error occured:

"+i(p.message+"",!0)+"
";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var o=new t(n);return o.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var o,r,i,a,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(t&&(i=this.rules.nptable.exec(e))){for(e=e.substring(i[0].length),s={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(i,t,!0),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],this.tokens.push({type:"list_start",ordered:a.length>1}),i=i[0].match(this.rules.item),o=!1,p=i.length,c=0;c1&&l.length>1||(e=i.slice(c+1).join("\n")+e,c=p-1)),r=o||/\n\n(?!\s*$)/.test(s),c!==p-1&&(o="\n"===s.charAt(s.length-1),r||(r=o)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]});else if(!n&&t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),this.tokens.links[i[1].toLowerCase()]={href:i[2],title:i[3]};else if(t&&(i=this.rules.table.exec(e))){for(e=e.substring(i[0].length),s={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,o){var r=new n(t,o);return r.output(e)},n.prototype.output=function(e){for(var t,n,o,r,a="";e;)if(r=this.rules.escape.exec(e))e=e.substring(r[0].length),a+=r[1];else if(r=this.rules.autolink.exec(e))e=e.substring(r[0].length),"@"===r[2]?(n=":"===r[1].charAt(6)?this.mangle(r[1].substring(7)):this.mangle(r[1]),o=this.mangle("mailto:")+n):(n=i(r[1]),o=n),a+=this.renderer.link(o,null,n);else if(this.inLink||!(r=this.rules.url.exec(e))){if(r=this.rules.tag.exec(e))!this.inLink&&/^/i.test(r[0])&&(this.inLink=!1),e=e.substring(r[0].length),a+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):i(r[0]):r[0];else if(r=this.rules.link.exec(e))e=e.substring(r[0].length),this.inLink=!0,a+=this.outputLink(r,{href:r[2],title:r[3]}),this.inLink=!1;else if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){a+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,a+=this.outputLink(r,t),this.inLink=!1}else if(r=this.rules.strong.exec(e))e=e.substring(r[0].length),a+=this.renderer.strong(this.output(r[2]||r[1]));else if(r=this.rules.em.exec(e))e=e.substring(r[0].length),a+=this.renderer.em(this.output(r[2]||r[1]));else if(r=this.rules.code.exec(e))e=e.substring(r[0].length),a+=this.renderer.codespan(i(r[2],!0));else if(r=this.rules.br.exec(e))e=e.substring(r[0].length),a+=this.renderer.br();else if(r=this.rules.del.exec(e))e=e.substring(r[0].length),a+=this.renderer.del(this.output(r[1]));else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),a+=this.renderer.text(i(this.smartypants(r[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(r[0].length),n=i(r[1]),o=n,a+=this.renderer.link(o,null,n);return a},n.prototype.outputLink=function(e,t){var n=i(t.href),o=t.title?i(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,o,this.output(e[1])):this.renderer.image(n,o,i(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",o=e.length,r=0;r.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},o.prototype.code=function(e,t,n){if(this.options.highlight){var o=this.options.highlight(e,t); -null!=o&&o!==e&&(n=!0,e=o)}return t?'
'+(n?e:i(e,!0))+"\n
\n":"
"+(n?e:i(e,!0))+"\n
"},o.prototype.blockquote=function(e){return"
\n"+e+"
\n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,n){return"'+e+"\n"},o.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},o.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},o.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},o.prototype.paragraph=function(e){return"

    "+e+"

    \n"},o.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},o.prototype.tablerow=function(e){return"\n"+e+"\n"},o.prototype.tablecell=function(e,t){var n=t.header?"th":"td",o=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return o+e+"\n"},o.prototype.strong=function(e){return""+e+""},o.prototype.em=function(e){return""+e+""},o.prototype.codespan=function(e){return""+e+""},o.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},o.prototype.del=function(e){return""+e+""},o.prototype.link=function(e,t,n){if(this.options.sanitize){try{var o=decodeURIComponent(a(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(r){return""}if(0===o.indexOf("javascript:")||0===o.indexOf("vbscript:"))return""}var i='
    "},o.prototype.image=function(e,t,n){var o=''+n+'":">"},o.prototype.text=function(e){return e},r.parse=function(e,t,n){var o=new r(t,n);return o.parse(e)},r.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},r.prototype.next=function(){return this.token=this.tokens.pop()},r.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},r.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},r.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,o,r,i="",a="";for(n="",e=0;e"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",i=function(e){var n=p.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(r+=t[e].id+'["'+n+'"];',"continue"):void p.default.map(t[e].actions,function(o){p.default.map(o.results,function(i){r+=t[e].id+'["'+n+'"]',r+='--"'+p.default.escape(o.name)+"("+o.id+')"-->';var a=p.default.find(t,{id:i.step});r+=a.id+'["'+p.default.escape(a.name)+'"];'})})},a=0;a0?k.default.pick(this.state.values,v):{}):k.default.extend(g,this.state.values),b=[],k.default.mapValues(g,function(e,t){var n=k.default.findIndex(h,{key:t}),o=n===-1?{}:h[n];e?"labels"===o.key?k.default.isArray(e)?(b=k.default.uniq(k.default.map(k.default.filter(e,function(e){return!!e.className}),function(e){return k.default.trim(e.value)})),g[t]=k.default.uniq(k.default.map(e,function(e){return k.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(o.type)!==-1?g[t]=e.split(","):"DatePicker"===o.type?g[t]=parseInt(S(e).startOf("day").format("X")):"DateTimePicker"===o.type?g[t]=parseInt(S(e).format("X")):"Number"===o.type?g[t]=parseFloat(e):"Integer"===o.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),_=0,k.default.isEmpty(l)||!l.id){w.next=37;break}if(!d||!f){w.next=31;break}return w.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(_=w.sent,0===_){w.next=31;break}return this.setState({ecode:_}),w.abrupt("return");case 31:return w.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:_=w.sent,0===_&&(r(),d&&f?E.notify.show("提交完成。","success",2e3):E.notify.show("问题已更新。","success",2e3)),w.next=42;break;case 37:return u.id&&k.default.extend(g,{parent_id:u.id}),w.next=40,regeneratorRuntime.awrap(t(g));case 40:_=w.sent,0===_&&(y?this.setState({preCreated:!0}):(r(),E.notify.show("问题已创建。","success",2e3)));case 42:0===_&&b.length>0&&o(b),this.setState({ecode:_});case 44:case"end":return w.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props.close;this.setState({ecode:0}),e()}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,o=k.default.find(n.types,{id:e}).schema;if(o){var r={},i={};k.default.map(o,function(e){t.state.errors[e.key]?i[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&k.default.isArray(e.defaultValue)?i[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&k.default.isString(e.defaultValue)?i[e.key]=e.defaultValue.split(","):i[e.key]=e.defaultValue:t.state.values[e.key]&&(i[e.key]=t.state.values[e.key]),e.required&&!i[e.key]&&(r[e.key]="必填")}),i.type=e,this.setState({errors:r,touched:{},schema:o,values:i})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void E.notify.show("文档上传失败。","error",2e3);var n=t.data,o=n.field,r=void 0===o?"":o,i=n.file,a=void 0===i?{}:i;this.state.values[r]=this.state.values[r]||[],this.state.values[r].push(a.id),e.field=r,e.fid=a.id,r&&this.state.errors[r]?(delete this.state.errors[r],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=k.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var o=k.default.find(this.state.schema,{key:t});o&&o.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=k.default.trim(e),n=t.split(" "),o=!0;return k.default.map(n,function(e){if(e){k.default.endsWith(e.toLowerCase(),"w")||k.default.endsWith(e.toLowerCase(),"d")||k.default.endsWith(e.toLowerCase(),"h")||k.default.endsWith(e.toLowerCase(),"m")||(o=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(o=!1)}}),o}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||k.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&k.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!S(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,o=t.options,r=t.close,i=t.loading,a=t.project,l=t.data,s=void 0===l?{}:l,d=t.parent,f=void 0===d?{}:d,g=t.isSubtask,b=void 0!==g&&g,w=t.isFromWorkflow,E=void 0!==w&&w,x=this.state,S=x.schema,R=x.createOther,M=x.preCreated,L=k.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),j={height:"580px",overflow:"auto"};return E&&(j={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:r,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},s.id?E?"流程页面":"编辑问题 - "+s.no:b?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:j,ref:"createModal"},!E&&!b&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,a.name||"-")))),!E&&b&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,f.title?f.no+"-"+f.title:s.parent&&s.parent.title?s.parent.no+"-"+s.parent.title:"-")))),!E&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:L,disabled:i,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),k.default.map(S,function(t,n){var r=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:r+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:i,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+a.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(T.MultiRowsTextEditor,{id:r+"-field-textarea-"+t.key,disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+a.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&o.permissions&&o.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:r+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(m.default,{multi:!0,disabled:i,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:k.default.map(o.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:i,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:k.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(h.CheckboxGroup,{style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(h.Checkbox,{disabled:i,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:r+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:i,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(v.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&o.permissions&&o.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+a.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:r+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(_.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:r+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!i&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),M&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:P,className:i?"loading":"hide"}),!s.id&&u.default.createElement(c.Checkbox,{disabled:i,checked:R,onClick:function(){e.setState({createOther:!R})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:s.id&&this.getChangedKeys().length<=0&&E===!1||k.default.isEmpty(S)||!k.default.isEmpty(this.state.errors)||i||M,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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 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)}var i=function(){function e(e,t){for(var n=0;n'+l+''),o.push(a)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var r=t.match(/\[.*?\]\(.*?\)/gi);return r&&p.default.forEach(r,function(e,n){var o=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");o.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:o}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var o=-1;0===n.indexOf("inlineimg-")&&(o=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:o}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,o=t.onEdit,r=t.fieldKey,i=t.value,a=void 0===i?"":i,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(r,a),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){o&&o()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(m.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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 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)}var i=function(){function e(e,t){for(var n=0;n/gi),r=[];return o&&c.default.forEach(o,function(t,o){var i=new RegExp('^$');if(i.exec(t)){var a=RegExp.$1;if(!a)return;n=n.replace(t,''),r.push(a)}}),{html:n,imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var o=-1;0===n.indexOf("inlineimg-")&&(o=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:o}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,o=t.onEdit,r=t.fieldKey,i=t.value,a=this.state,l=a.inlinePreviewShow,u=a.photoIndex,c=this.extractImg(r,i||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){o&&o()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:v}}).call(this)}finally{}},112:function(e,t,n){var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};o=function(){return i}.call(t,n,t,e),!(void 0!==o&&(e.exports=o))}()},115:function(e,t,n){function o(e){return e()}var r=n(1),i=n(13),a=n(71),l=n(25),s=n(112),u=r.createFactory(n(116)),c=n(117),d=n(119),p=n(207),f=n(13).unstable_renderSubtreeIntoContainer,m=n(70),h=n(69),y=s.canUseDOM?window.HTMLElement:{},g=s.canUseDOM?document.body:{appendChild:function(){}},v=h({displayName:"Modal",statics:{setAppElement:function(e){g=c.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:l.bool.isRequired,style:l.shape({content:l.object,overlay:l.object}),portalClassName:l.string,bodyOpenClassName:l.string,appElement:l.instanceOf(y),onAfterOpen:l.func,onRequestClose:l.func,closeTimeoutMS:l.number,ariaHideApp:l.bool,shouldCloseOnOverlayClick:l.bool,parentSelector:l.func,role:l.string,contentLabel:l.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&&d.add(this);var e=o(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&&d.add(this),e.isOpen||d.remove(this);var t=o(this.props.parentSelector),n=o(e.parentSelector);n!==t&&(t.removeChild(this.node),n.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){d.remove(this),this.props.ariaHideApp&&c.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 o=this;setTimeout(function(){o.removePortal()},n-t)}else this.removePortal()}},removePortal:function(){i.unmountComponentAtNode(this.node);var e=o(this.props.parentSelector);e.removeChild(this.node),0===d.count()&&p(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||d.count()>0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(m({},e,{defaultStyles:v.defaultStyles})),this.node)},render:function(){return a.noscript()}});v.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=v},116:function(e,t,n){var o=(n(1),n(71)),r=n(118),i=n(120),a=n(70),l=n(69),s=o.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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"},o=n.base;return this.state.afterOpen&&(o+=" "+n.afterOpen),this.state.beforeClose&&(o+=" "+n.beforeClose),"string"==typeof t&&t?[o,t].join(" "):o},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:a({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:a({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function o(e){a(e),(e||s).setAttribute("aria-hidden","true")}function r(e){a(e),(e||s).removeAttribute("aria-hidden")}function i(e,t){e?o(t):r(t)}function a(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=i,t.setElement=n,t.show=r,t.hide=o,t.resetForTesting=l},118:function(e,t,n){function o(e){s=!0}function r(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=i(l)[0]||l;e.focus()}},0)}}var i=n(72),a=[],l=null,s=!1;t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=a.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",o,!1),document.addEventListener("focus",r,!0)):(window.attachEvent("onBlur",o),document.attachEvent("onFocus",r))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",o),document.removeEventListener("focus",r)):(window.detachEvent("onBlur",o),document.detachEvent("onFocus",r))}},119: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}}},120:function(e,t,n){var o=n(72);e.exports=function(e,t){var n=o(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 a=n[t.shiftKey?n.length-1:0];a.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function i(e){return{type:"WORKFLOW_SELECT",id:e}}function a(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=r,t.select=i,t.delNotify=a,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178: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 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&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,o=n.parent_id,r=n.type,i=e.handleSubmit,a=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:i(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(m.default.Async,{clearable:!1,disabled:l,options:[],value:o.value,onChange:function(e){o.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),o.touched&&o.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},o.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(m.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:r.value,onChange:function(e){r.onChange(e)},placeholder:"选择问题类型"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:_,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||a,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:w})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},180: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 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&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,o=e.handleSubmit,r=e.invalid,i=e.submitting,a=e.issue;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"},"移动子任务 - "+a.no)),c.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(m.default.Async,{clearable:!1,disabled:i,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&t[this.state.ecode]),c.default.createElement("img",{src:_,className:i?"loading":"hide"}),c.default.createElement(p.Button,{disabled:i||r,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:i,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:w})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},184: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 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&&n(a),r(),v.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,o=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(o.labels||[],function(e){return{value:e,label:e}})}:{labels:(o.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,o=e.handleSubmit,r=e.invalid,i=e.submitting,a=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+a.no)),u.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(h.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:i,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&t[this.state.ecode]),u.default.createElement("img",{src:b,className:i?"loading":"hide"}),u.default.createElement(d.Button,{disabled:i||r,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:i,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},186: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 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.next=11;break}return a=i[e-1].id,s.next=9,regeneratorRuntime.awrap(n(a));case 9:l=s.sent,0===l&&o();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function h(e){var t,n,h,o,r,i,a,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,h=t.forward,o=t.visitedIndex,r=t.visitedCollection,i=void 0===r?[]:r,a=_.default.add(o,e),!i[a]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(i[a]));case 10:l=s.sent,0===l&&h(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,o,r,i,a;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,o=t.show,r=t.watch,i=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(o(n.id));case 8:i=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(a=n.watching,this.watch(n.id,!a)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return g=this.props.watch,o.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=o.sent,0===n?t?w.notify.show("关注成功。","success",2e3):w.notify.show("已取消关注。","success",2e3):t?w.notify.show("关注失败。","error",2e3):w.notify.show("取消失败。","error",2e3);case 5:case"end":return o.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,o,r;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=this.props,n=t.show,o=t.record,i.next=5,regeneratorRuntime.awrap(n(e));case 5:r=i.sent,0===r&&o();case 7:case"end":return i.stop()}},null,this)}},{key:"doAction",value:function b(e){var t,b,n,o,r;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=this.props,b=t.doAction,n=t.data,o=_.default.find(n.wfactions||{},{id:e}),!o||!o.screen){i.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),i.next=12;break;case 8:return i.next=10,regeneratorRuntime.awrap(b(n.id,n.entry_id,{action_id:e}));case 10:r=i.sent,0===r?w.notify.show("提交完成。","success",2e3):w.notify.show("提交失败。","error",2e3);case 12:case"end":return i.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,o,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=this.props,n=t.data,o=t.doAction,r=_.default.find(n.wfactions||{},{id:e}),!r||!r.schema){a.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),a.next=12;break;case 8:return a.next=10,regeneratorRuntime.awrap(o(n.id,n.entry_id,{action_id:e}));case 10:i=a.sent,0===i?w.notify.show("提交完成。","success",2e3):w.notify.show("提交失败。","error",2e3);case 12:case"end":return a.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void w.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",o=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),o=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:o}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,o=_.default.find(n,{name:e}),r={};return o&&o.bgColor&&(r={backgroundColor:o.bgColor,borderColor:o.bgColor,border:"1px solid "+o.bgColor,color:"#fff"}),r}},{key:"createLightbox",value:function(e,t,n){var o=this,r=this.props.project;return c.default.createElement(y.default,{mainSrc:K+"/project/"+r.key+"/file/"+t[n].id,nextSrc:K+"/project/"+r.key+"/file/"+t[(n+1)%t.length].id,prevSrc:K+"/project/"+r.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){o.state.previewShow[e]=!1,o.setState({previewShow:o.state.previewShow})},onMovePrevRequest:function(){return o.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return o.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,o,r){var i=this,a=this.state,l=a.editingItems,s=a.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(r&&r>0?"(字数"+r+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,i.setState({newItemValues:i.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:_.default.isEqual(e||"",s[t]||"")||o&&!s[t]||r&&r>0&&_.default.trim(s[t]||"").length>r},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,i.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,i.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,o,r){var i=this,a=this.state,l=a.editingItems,s=a.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(E.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(r&&r>0?"(字数"+r+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,i.setState({newItemValues:i.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:_.default.isEqual(e||"",s[t]||"")||o&&!s[t]||r&&r>0&&_.default.trim(s[t]||"").length>r},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,i.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(E.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,i.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,o=e.layout,r=_.default.min([_.default.max([o.containerWidth/2,660]),1e3]),i={width:r+"px"},a={};void 0!==n.left?(i.left=n.left-r,a.left=n.left):(i.right=-r,a.right=0),C(".animate-dialog").css(i),C(".animate-dialog").animate(a)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,o=t.layout,r=t.close,i=(t.detailFloatStyle,t.data),a=void 0===i?{}:i,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,h=t.loading,y=t.itemLoading,g=t.options,b=t.project,E=t.fileLoading,x=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue,t.setLabels),ne=t.addLabels,oe=t.resetState,re=t.wfCollection,ie=t.wfLoading,ae=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,me=t.delComments,he=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,ve=t.historyIndexLoading,be=t.indexGitCommits,_e=t.sortGitCommits,we=t.gitCommitsCollection,ke=t.gitCommitsIndexLoading,Ee=t.indexWorklog,xe=t.worklogSort,Ce=t.sortWorklog,Te=t.worklogCollection,Se=t.worklogIndexLoading,Pe=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,Me=t.delWorklog,Le=t.createLink,je=t.delLink,Fe=t.linkLoading,Ie=t.doAction,qe=t.user,Ae=this.state,Ne=(Ae.inlinePreviewShow,Ae.previewShow),De=Ae.photoIndex,Be=Ae.newAssignee,We=Ae.editAssignee,ze=Ae.editingItems,He=Ae.newItemValues,Ue=Ae.delFileShow,Ve=Ae.selectedFile,Ge=Ae.action_id,Ye=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ke={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=_.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];_.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=_.default.find(g.types,{id:a.type}),Qe=$e&&$e.schema?$e.schema:[],Je=_.default.findIndex(f,{id:a.id}),et=a.priority?_.default.findIndex(g.priorities,{id:a.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&_.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=a.state?_.default.findIndex(g.states,{id:a.state}):-1,ot="";nt!==-1&&(ot="state-"+g.states[nt].category+"-label");var rt=!1,it=_.default.findIndex(Qe,{key:"descriptions"});it!==-1&&(rt=Qe[it].required&&!0);var at={};a.epic&&(at=_.default.find(g.epics,{id:a.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(a.comments_num>99?"99+":a.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(a.worklogs_num>99?"99+":a.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(a.gitcommits_num>99?"99+":a.gitcommits_num||0)+")")),ct=_.default.min([_.default.max([o.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:r,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:a.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(a.id,!a.watching)}},a.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ke},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:L,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(a.wfactions&&a.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},_.default.map(a.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},_.default.map(a.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},a.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},a.watchers&&a.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!a.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&!a.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{ -divider:!0}),!a.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!a.hasSubtasks&&!a.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),a.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),a.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(_.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&a.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&a.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},a.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(a.parent.id)}},a.parent.no+"-"+(a.parent.title||"")),a.parent&&" / ",a.no+"-"+(a.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:ot},g.states[nt].name):"-",ie?c.default.createElement("img",{src:L,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.find(g.resolutions||[],{id:a.resolution})?_.default.find(g.resolutions,{id:a.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:We?7:3},We?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(v.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||a.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},a.assignee&&a.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,a.assignee&&a.assignee.name||"-")),(!a.assignee||a.assignee.id!==qe.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!We&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!We&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,a.reporter&&a.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(a.descriptions,"descriptions","描述",rt)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},a.created_at?T.unix(a.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},a.updated_at?T.unix(a.updated_at).format("YYYY/MM/DD HH:mm"):a.created_at?T.unix(a.created_at).format("YYYY/MM/DD HH:mm"):"-"))),a.labels&&a.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.map(a.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),a.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.find(g.versions,{id:a.resolve_version})?_.default.find(g.versions,{id:a.resolve_version}).name:"-"))),a.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?epic="+a.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:at.bgColor,backgroundColor:at.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:at.name||"-"},at.name||"-"))))),a.sprints&&a.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.map(a.sprints,function(e){return _.default.find(g.sprints,{no:e}).name}).join(", ")))),(a.expect_start_time||a.expect_complete_time)&&c.default.createElement(d.FormGroup,null,a.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),a.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(a.expect_start_time).format("YYYY/MM/DD"))),a.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),a.expect_complete_time&&c.default.createElement(d.Col,{sm:a.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(a.expect_complete_time).format("YYYY/MM/DD")))),_.default.isNumber(a.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},ze.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:He.progress||0,onChange:function(t){He.progress=t.target.value,e.setState({newItemValues:He})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",He.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(a.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){ze.progress=!0,He.progress=a.progress||0,e.setState({editingItems:ze,newItemValues:He})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(a.progress||"0")+"%"))))),a.subtasks&&a.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},a.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",a.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&a.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,_.default.map(a.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},_.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+_.default.find(g.states,{id:t.state}).category+"-label"},_.default.find(g.states,{id:t.state}).name):"-"))}))))),a.links&&a.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},a.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",a.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&a.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,_.default.map(a.links,function(t,n){var o={},r="",i="";if(t.src.id==a.id)o=t.dest,r=t.relation,i=t.dest.id;else if(t.dest.id==a.id){o=t.src,r=t.relation;var l=_.default.findIndex(g.relations||[],{out:r});if(l!==-1)r=g.relations[l].in||"";else{var s=_.default.findIndex(g.relations||[],{"in":r});s!==-1&&(r=g.relations[s].out||"")}i=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,r,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==o.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(i)}},o.no," - ",o.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},_.default.find(g.states||[],{id:o.state})?c.default.createElement("span",{className:"state-"+_.default.find(g.states,{id:o.state}).category+"-label"},_.default.find(g.states,{id:o.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:o.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),_.default.map(Qe,function(t,n){if(Ye.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&_.default.isEmpty(a[t.key]))return}else if(_.default.isEmpty(a[t.key])&&!_.default.isNumber(a[t.key]))return;var o="";if("SingleUser"===t.type)o=a[t.key]&&a[t.key].name||"-";else if("MultiUser"===t.type)o=_.default.map(a[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var r=t.optionValues||[];o=_.default.find(r,{id:a[t.key]})?_.default.find(r,{id:a[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=_.default.isArray(a[t.key])?a[t.key]:a[t.key].split(","),r=[];_.default.map(n,function(t,n){_.default.find(e,{id:t})&&r.push(_.default.find(e,{id:t}).name)}),o=r.join(", ")||"-"}();else if("DatePicker"===t.type)o=T.unix(a[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)o=T.unix(a[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var i={showFiletypeIcon:!0,postUrl:K+"/project/"+b.key+"/file?issue_id="+a.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){w.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=_.default.filter(a[t.key],function(e){return _.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=_.default.filter(a[t.key],function(e){return _.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});o=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,_.default.map(p,function(n,o){return c.default.createElement("tr",{key:o},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,k.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:K+"/project/"+b.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,_.default.map(u,function(n,o){return c.default.createElement(d.Col,{sm:6,key:o},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,o,t.key)},c.default.createElement("img",{src:K+"/project/"+b.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(m.default,{config:i,eventHandlers:s,djsConfig:l})),Ne[t.key]&&e.createLightbox(t.key,u,De))}else o="TextArea"===t.type?e.getTextAreaItemContents(a[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(a[t.key],t.key,t.name,t.required,t.maxLength):a[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},o)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:a.id,currentTime:g.current_time||0,currentUser:qe,collection:ge,indexHistory:he,sortHistory:ye,indexLoading:ve})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(P,{i18n:n,currentTime:g.current_time||0,currentUser:qe,project:b,permissions:g.permissions||[],issue_id:a.id,collection:se,indexComments:ae,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:me,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(M,{i18n:n,currentTime:g.current_time||0,currentUser:qe,permissions:g.permissions||[],issue:a,original_estimate:a.original_estimate,options:g.timetrack||{},collection:Te,indexWorklog:Ee,sort:xe,sortWorklog:Ce,indexLoading:Se,loading:Pe,addWorklog:Oe,editWorklog:Re,delWorklog:Me})),a.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:a.id,currentTime:g.current_time||0,currentUser:qe,collection:we,indexGitCommits:be,sortGitCommits:_e,indexLoading:ke})))),Ue&&c.default.createElement(F,{show:!0,close:this.delFileModalClose,del:x,data:Ve,loading:E,i18n:n}),this.state.editModalShow&&c.default.createElement(S,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:a,isSubtask:a.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(S,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:a,action_id:Ge,doAction:Ie,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(U,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:a,action_id:Ge,doAction:Ie}),this.state.createSubtaskModalShow&&c.default.createElement(S,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:h,project:b,parent:a,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(j,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:a.state,collection:re}),this.state.linkIssueModalShow&&c.default.createElement(I,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:Fe,createLink:Le,issue:a,types:g.types,project:b,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(q,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Fe,delLink:je,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:h,issue:a,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:b,convert:J,loading:h,issue:a,i18n:n}),this.state.moveModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:b,move:Q,loading:h,issue:a,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:a,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(W,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:a,i18n:n}),this.state.shareModalShow&&c.default.createElement(z,{show:!0,project:b,close:function(){e.setState({shareModalShow:!1})},issue:a}),this.state.resetModalShow&&c.default.createElement(H,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:oe,issue:a,i18n:n}),this.state.delNotifyShow&&c.default.createElement(V,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:a,del:X,detailClose:r,i18n:n}),this.state.copyModalShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:h,copy:$,data:a,i18n:n}),this.state.watchersModalShow&&c.default.createElement(Y,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:a.no,watchers:a.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220: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 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&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(a.request({url:"/project/"+r.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(i,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(o,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,o=t.loading,r=t.options.relations,i=void 0===r?[]:r,a=[];return y.default.forEach(i,function(e){e.out==e.in?a.push({value:e.out,label:e.out}):(a.push({value:e.out,label:e.out}),a.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:o,options:a,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:o,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&n[this.state.ecode]),u.default.createElement("img",{src:v,className:o?"loading":"hide"}),u.default.createElement(c.Button,{disabled:o||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:o,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},221: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 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?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0, -style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222: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 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;n'+r+'
    '),imgFileUrls.push(o)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var o=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){o.state.inlinePreviewShow[e]=!1,o.setState({inlinePreviewShow:o.state.inlinePreviewShow})},onMovePrevRequest:function(){return o.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return o.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",o=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),o=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:o})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,o){var r=_lodash2.default.find(e,{nameAndEmail:n});return r&&t.state.atWho.push(r.id),"@"+r.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,o){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,o=t.currentTime,r=t.permissions,i=t.currentUser,a=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,m=t.users,h=t.project,y=t.issue_id,g=this.state,v=g.inlinePreviewShow,b=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){a(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var a=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===i.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,o))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&i.id===t.creator.id&&r.indexOf("delete_self_comments")!==-1||r.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&i.id===t.creator.id&&r.indexOf("edit_self_comments")!==-1||r.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),r.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:a,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[t.id]&&e.createLightbox(t.id,c,b),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,a){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===i.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,o))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&i.id===n.creator.id&&r.indexOf("delete_self_comments")!==-1||r.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&i.id===n.creator.id&&r.indexOf("edit_self_comments")!==-1||r.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),r.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[n.id]&&e.createLightbox(n.id,c,b))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:m,project:h,permissions:r,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224: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 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;n${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,o){var r=p.default.find(e,{nameAndEmail:n});return r&&t.state.atWho.push(r.id),"@"+r.name}},data:e}),m(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,o){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=m(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,o=t.data,r=t.loading,i="";return i=o.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},i)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:r,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:h,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||r,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227: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 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;n'+(t.author&&t.author.id===r.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.committed_at,o))}}));return u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228: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 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;n'+(t.operator&&t.operator.id===r.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.operated_at,o))}}));return u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229: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 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;n=0){var c=f.default.floor(u/i);c>0&&s.push(c+"w")}if(u%=i,u>=0){var d=f.default.floor(u/a);d>0&&s.push(d+"d")}if(u%=a,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,o=t.permissions,r=t.currentTime,i=t.currentUser,a=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,b=t.indexLoading,_=t.loading,w=t.addWorklog,k=t.editWorklog,E=t.delWorklog,x=t.original_estimate,C=void 0===x?"":x,T=void 0;C&&(T=this.t2m(C)),"desc"===s&&p.reverse();var S=0;f.default.map(p,function(t){if(S=f.default.add(S,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 o=e.t2m(t.cut);T=T-o>0?T-o:0}return f.default.extend(t,{leave_estimate_m:T}),t});var P=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:b&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:_,onClick:function(){l(a.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),o.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:_,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:b&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},S>0?this.m2t(S):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===P.leave_estimate_m?"-":this.m2t(P.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},b&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:h,className:"loading"})),p.length<=0&&!b?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var a=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===i.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.recorded_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&i.id===t.recorder.id&&o.indexOf("delete_self_worklog")!==-1||o.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&i.id===t.recorder.id&&o.indexOf("edit_self_worklog")!==-1||o.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:a,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:_,add:w,edit:k,i18n:n}),this.state.delWorklogShow&&u.default.createElement(v,{show:!0,issue:a,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:_,del:E,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},1796: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 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 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 l(e){return{actions:(0,m.bindActionCreators)(y,e),issueActions:(0,m.bindActionCreators)(_,e),wfActions:(0,m.bindActionCreators)(k,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=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_BASENAME+"/getavatar?fid="+collection[i].user.avatar:no_avatar,className:"default-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(),e.stopPropagation(),_this2.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(),e.stopPropagation(),_this2.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(),e.stopPropagation(),_this2.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("YYYY/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.detailBarShow&&_react2.default.createElement(DetailBar,{i18n:i18n,layout:layout,edit:edit,create:create,del:del,setAssignee:setAssignee,setItemValue:setItemValue,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,setItemValue:_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{}},2064: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 o(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=o;var r=n(26)}).call(this)}finally{}}}); -//# sourceMappingURL=activity-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file diff --git a/public/assets/activity-d133ff15592d3c829f3c.js b/public/assets/activity-d133ff15592d3c829f3c.js new file mode 100644 index 00000000..8cd4eab9 --- /dev/null +++ b/public/assets/activity-d133ff15592d3c829f3c.js @@ -0,0 +1,12 @@ +webpackJsonp([6],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 o={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=o;var r=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=r;var i={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=i;var a=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=a;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},32:function(e,t,n){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)return"";if(!t)return s.unix(e).format("YYYY/MM/DD HH:mm:ss");var n=[{value:31536e3,suffix:"年前",max:2},{value:2592e3,suffix:"个月前",max:11},{value:604800,suffix:"周前",max:4},{value:86400,suffix:"天前",max:6},{value:3600,suffix:"小时前",max:23},{value:600,suffix:"0分钟前",max:5}],o="刚刚",r=t-e;if(r<=0)return o;for(var i=0;i<6;i++){var a=l.default.floor(r/n[i].value);if(a>=1){o=l.default.min([a,n[i].max])+n[i].suffix;break}}return o}function r(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var o={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},r=t.substr(n+1);return o[r]?"fa fa-file-"+o[r]+"-o":"fa fa-file-o"}function i(e,t,n){var o=e<0?-1:1;e=Math.abs(e);var r=[],i=l.default.ceil(e);if(i>=0){var a=l.default.floor(e/t);a>0&&r.push(a+"w")}if(i=e%t,i>=0){var s=l.default.floor(i/n);s>0&&r.push(s+"d")}if(i%=n,i>=0){var u=l.default.floor(i/60);u>0&&r.push(u+"h")}return i%=60,i>0&&r.push(i+"m"),r.length<=0&&r.push("0m"),(o<0?"-":"")+r.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=o,t.getFileIconCss=r,t.ttFormat=i;var a=n(3),l=e(a),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(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}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&&(r.onChange=o.bind(null,this.props.value)),l.default.createElement("input",i({},this.props,{type:"checkbox",name:t},r))}}),t.CheckboxGroup=l.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: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=r(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)}})},44:function(e,t,n){!function(t,o){e.exports=o(n(1),n(121))}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(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;no&&(g=Math.max(b.minX,Math.min(b.maxX,g)),v=Math.max(b.minY,Math.min(b.maxY,v))),this.setState({zoomLevel:o,offsetX:g,offsetY:v})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,m.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var o=this.getLightboxRect(),r=o.height-2*this.props.imagePadding,i=o.width-2*this.props.imagePadding;n||(r=Math.min(r,t),i=Math.min(i,e));var a=i/r,l=e/t;return a>l?{width:e*r/t,height:r}:{width:i,height:t*i/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),o=this.getZoomMultiplier(e),r=0;r=o*t.width-n.width<0?(n.width-o*t.width)/2:(o*t.width-n.width)/2;var i=0;return i=o*t.height-n.height<0?(n.height-o*t.height)/2:(o*t.height-n.height)/2,{maxX:r,maxY:i,minX:-1*r,minY:-1*i}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(h.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,m.getWindowWidth)(),height:(0,m.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=i?(this.requestMoveNext(e),o=r,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*i)&&(this.requestMovePrev(e),o=r,this.scrollX=0)}0!==o&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},o))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=h.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)h.MIN_ZOOM_LEVEL?this.changeZoom(h.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),o=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&o===this.state.offsetY||(this.setState({offsetX:n,offsetY:o,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=h.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,o=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===o||this.setState({offsetX:n,offsetY:o})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=h.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,o=this.caption.scrollTop;(e.deltaY>0&&t+o>=n||e.deltaY<0&&o<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var o=this,r=new Image;r.onerror=function(){t("image load error")},r.onload=function(){o.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},r.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(o){return o?void(window.console&&window.console.warn(o)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(o){var r=o.name;t[r]&&!e.isImageLoaded(t[r])&&e.loadImage(t[r],n(r,t[r]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,o={zoomLevel:h.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(o.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(o),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(o),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,o=n.animationDisabled,r=n.animationDuration,i=n.clickOutsideToClose,a=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,_=this.state,w=_.zoomLevel,k=_.offsetX,E=_.offsetY,x=_.isClosing,C=this.getLightboxRect(),T={};!o&&this.isAnimating()&&(T=u({},T,{transition:"transform "+r+"ms"}));var S={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;S[t]=n});var P=[],O=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var r=u({},o,T);w>h.MIN_ZOOM_LEVEL&&(r.cursor="move");var i=e.getBestImageForType(t);if(null===i){var l=void 0;return l=b<10?d.default.createElement("div",{className:v.loadingContainer__icon},(0,m.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+v.loadingCircle+" "+v.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint})),void P.push(d.default.createElement("div",{className:n+" "+v.image+" not-loaded ril-not-loaded",style:r,key:e.props[t]+S[t]},d.default.createElement("div",{className:v.loadingContainer},l)))}r.width=i.width,r.height=i.height;var c=i.src;a?(r.backgroundImage="url('"+c+"')",P.push(d.default.createElement("div",{className:n+" "+v.image+" "+v.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:r,key:c+S[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+v.downloadBlocker})))):P.push(d.default.createElement("img",{className:n+" "+v.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:r,src:c,key:c+S[t],alt:s||(0,m.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+v.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*k,y:-1*E,zoom:R})),O("prevSrc","image-prev ril-image-prev "+v.imagePrev,t.getTransform({x:-1*C.width}));var M=function(){},L=[v.toolbarItemChild,v.builtinButton,v.zoomInButton],j=[v.toolbarItemChild,v.builtinButton,v.zoomOutButton],F=this.handleZoomInButtonClick,I=this.handleZoomOutButtonClick;w===h.MAX_ZOOM_LEVEL&&(L.push(v.builtinButtonDisabled),F=M),w===h.MIN_ZOOM_LEVEL&&(j.push(v.builtinButtonDisabled),I=M),this.isAnimating()&&(F=M,I=M);var q={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:i?this.requestClose:M,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:q},d.default.createElement("div",{className:"outer ril-outer "+v.outer+" "+v.outerAnimating+(x?" closing ril-closing "+v.outerClosing:""),style:{transition:"opacity "+r+"ms",animationDuration:r+"ms",animationDirection:x?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+v.inner,onClick:i?this.closeIfClickInner:M},P),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+v.navButtons+" "+v.navButtonPrev,key:"prev",onClick:this.isAnimating()?M:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+v.navButtons+" "+v.navButtonNext,key:"next",onClick:this.isAnimating()?M:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+v.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+v.toolbarSide+" "+v.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+v.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",v.toolbarSide,v.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+v.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+L.join(" "),onClick:F})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+j.join(" "),onClick:I})),d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+v.toolbarItemChild+" "+v.builtinButton+" "+v.closeButton),onClick:this.isAnimating()?M:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+v.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+v.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,o=e.y,i=void 0===o?null:o,a=e.zoom,l=void 0===a?null:a,s=b<10,u=[];return null===n&&null===i||u.push(s?"translate("+(n||0)+"px,"+(i||0)+"px)":"translate3d("+(n||0)+"px,"+(i||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),r({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);_.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},_.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=_},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function r(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function i(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function a(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=o,t.getWindowWidth=r,t.getWindowHeight=i,t.isInIframe=a},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), +t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var n,o,r;if(t.singleton){var i=v++;n=g||(g=l(t)),o=c.bind(null,n,i,!1),r=c.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),o=p.bind(null,n),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),o=d.bind(null,n),r=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function c(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=_(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var f={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=m(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a
    '),this.element.appendChild(n)),o=n.getElementsByTagName("span")[0],o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,o;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),o=t.optWidth/t.optHeight,e.heighto?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*o):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/o),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,o,r,i,a,l,s,u,c,d,p,f,m;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),i=0,s=d.length;i'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),o=function(n){return function(o){return o.preventDefault(),o.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),m=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},o=function(){var e,t,n,o,r,i,a;for(o=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],i=0,a=n.length;i'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(o=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,i;if(n=e.hiddenFileInput.files,n.length)for(r=0,i=n.length;r',this.options.dictFallbackText&&(o+="

    "+this.options.dictFallbackText+"

    "),o+='',n=t.createElement(o),"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,o,r,i;for(t=function(e){var t,n,o;for(n=0,o=e.length;n0){for(a=["TB","GB","MB","KB","b"],n=l=0,s=a.length;l=t){o=e/Math.pow(this.options.filesizeBase,4-n),r=i;break}o=Math.round(10*o)/10}return""+o+" "+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,o,r;for(r=[],n=0,o=e.length;n0){for(i=0,a=n.length;i1024*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,o;for(n=0,o=e.length;n=t)&&(o=this.getQueuedFiles(),o.length>0)){if(this.options.uploadMultiple)return this.processFiles(o.slice(0,t-n));for(;e=A;c=0<=A?++M:--M)i.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(k,i,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,o){var r,i,a;for(i=0,a=e.length;ic;)t=r[4*(s-1)+3],0===t?i=s:c=s,s=i+c>>1;return u=s/a,0===u?1:u},a=function(e,t,n,o,r,a,l,s,u,c){var d;return d=i(t),e.drawImage(t,n,o,r,a,l,s,u,c/d)},r=function(e,t){var n,o,r,i,a,l,s,u,c;if(r=!1,c=!0,o=e.document,u=o.documentElement,n=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",l=o.addEventListener?"":"on",i=function(n){if("readystatechange"!==n.type||"complete"===o.readyState)return("load"===n.type?e:o)[s](l+n.type,i,!1),!r&&(r=!0)?t.call(e,n.type||n):void 0},a=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(a,50)}return i("poll")},"complete"!==o.readyState){if(o.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&a()}return o[n](l+"DOMContentLoaded",i,!1),o[n](l+"readystatechange",i,!1),e[n](l+"load",i,!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 o=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t=o.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var i;for(i in e);return"undefined"==typeof i||o.call(e,i)};e.exports=function l(){var e,t,n,o,r,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,o=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var r=0;r1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&p(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1&&e%1==0&&e-1&&e%1==0&&e<=E}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return!!e&&"object"==typeof e}function k(e){return y(e)?i(e):l(e)}var E=9007199254740991,x="[object Arguments]",C="[object Function]",T="[object GeneratorFunction]",S=/^(?:0|[1-9]\d*)$/,P=Object.prototype,O=P.hasOwnProperty,R=P.toString,M=P.propertyIsEnumerable,L=r(Object.keys,Object),j=Math.max,F=!M.call({valueOf:1},"valueOf"),I=Array.isArray,q=c(function(e,t){if(F||f(t)||y(t))return void u(t,k(t),e);for(var n in t)O.call(t,n)&&a(e,n,t[n])});e.exports=q},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&r(e)}function o(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function r(e){for(;e&&e!==document.body;){if(o(e))return!1;e=e.parentNode}return!0}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var o=isNaN(t);return(o||t>=0)&&n(e,!o)}function a(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return i(e)})}e.exports=a},87:function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(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}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(o,r){return o?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(o,r),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,o=1;oAn error occured:

    "+i(p.message+"",!0)+"
    ";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var o=new t(n);return o.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var o,r,i,a,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(t&&(i=this.rules.nptable.exec(e))){for(e=e.substring(i[0].length),s={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(i,t,!0),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],this.tokens.push({type:"list_start",ordered:a.length>1}),i=i[0].match(this.rules.item),o=!1,p=i.length,c=0;c1&&l.length>1||(e=i.slice(c+1).join("\n")+e,c=p-1)),r=o||/\n\n(?!\s*$)/.test(s),c!==p-1&&(o="\n"===s.charAt(s.length-1),r||(r=o)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]});else if(!n&&t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),this.tokens.links[i[1].toLowerCase()]={href:i[2],title:i[3]};else if(t&&(i=this.rules.table.exec(e))){for(e=e.substring(i[0].length),s={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,o){var r=new n(t,o);return r.output(e)},n.prototype.output=function(e){for(var t,n,o,r,a="";e;)if(r=this.rules.escape.exec(e))e=e.substring(r[0].length),a+=r[1];else if(r=this.rules.autolink.exec(e))e=e.substring(r[0].length),"@"===r[2]?(n=":"===r[1].charAt(6)?this.mangle(r[1].substring(7)):this.mangle(r[1]),o=this.mangle("mailto:")+n):(n=i(r[1]),o=n),a+=this.renderer.link(o,null,n);else if(this.inLink||!(r=this.rules.url.exec(e))){if(r=this.rules.tag.exec(e))!this.inLink&&/^/i.test(r[0])&&(this.inLink=!1),e=e.substring(r[0].length),a+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):i(r[0]):r[0];else if(r=this.rules.link.exec(e))e=e.substring(r[0].length),this.inLink=!0,a+=this.outputLink(r,{href:r[2],title:r[3]}),this.inLink=!1;else if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){a+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,a+=this.outputLink(r,t),this.inLink=!1}else if(r=this.rules.strong.exec(e))e=e.substring(r[0].length),a+=this.renderer.strong(this.output(r[2]||r[1]));else if(r=this.rules.em.exec(e))e=e.substring(r[0].length),a+=this.renderer.em(this.output(r[2]||r[1]));else if(r=this.rules.code.exec(e))e=e.substring(r[0].length),a+=this.renderer.codespan(i(r[2],!0));else if(r=this.rules.br.exec(e))e=e.substring(r[0].length),a+=this.renderer.br();else if(r=this.rules.del.exec(e))e=e.substring(r[0].length),a+=this.renderer.del(this.output(r[1]));else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),a+=this.renderer.text(i(this.smartypants(r[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(r[0].length),n=i(r[1]),o=n,a+=this.renderer.link(o,null,n);return a},n.prototype.outputLink=function(e,t){var n=i(t.href),o=t.title?i(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,o,this.output(e[1])):this.renderer.image(n,o,i(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",o=e.length,r=0;r.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},o.prototype.code=function(e,t,n){if(this.options.highlight){var o=this.options.highlight(e,t); +null!=o&&o!==e&&(n=!0,e=o)}return t?'
    '+(n?e:i(e,!0))+"\n
    \n":"
    "+(n?e:i(e,!0))+"\n
    "},o.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,n){return"'+e+"\n"},o.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},o.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},o.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},o.prototype.paragraph=function(e){return"

    "+e+"

    \n"},o.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},o.prototype.tablerow=function(e){return"\n"+e+"\n"},o.prototype.tablecell=function(e,t){var n=t.header?"th":"td",o=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return o+e+"\n"},o.prototype.strong=function(e){return""+e+""},o.prototype.em=function(e){return""+e+""},o.prototype.codespan=function(e){return""+e+""},o.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},o.prototype.del=function(e){return""+e+""},o.prototype.link=function(e,t,n){if(this.options.sanitize){try{var o=decodeURIComponent(a(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(r){return""}if(0===o.indexOf("javascript:")||0===o.indexOf("vbscript:"))return""}var i='
    "},o.prototype.image=function(e,t,n){var o=''+n+'":">"},o.prototype.text=function(e){return e},r.parse=function(e,t,n){var o=new r(t,n);return o.parse(e)},r.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},r.prototype.next=function(){return this.token=this.tokens.pop()},r.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},r.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},r.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,o,r,i="",a="";for(n="",e=0;e"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",i=function(e){var n=p.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(r+=t[e].id+'["'+n+'"];',"continue"):void p.default.map(t[e].actions,function(o){p.default.map(o.results,function(i){r+=t[e].id+'["'+n+'"]',r+='--"'+p.default.escape(o.name)+"("+o.id+')"-->';var a=p.default.find(t,{id:i.step});r+=a.id+'["'+p.default.escape(a.name)+'"];'})})},a=0;a0?k.default.pick(this.state.values,v):{}):k.default.extend(g,this.state.values),b=[],k.default.mapValues(g,function(e,t){var n=k.default.findIndex(h,{key:t}),o=n===-1?{}:h[n];e?"labels"===o.key?k.default.isArray(e)?(b=k.default.uniq(k.default.map(k.default.filter(e,function(e){return!!e.className}),function(e){return k.default.trim(e.value)})),g[t]=k.default.uniq(k.default.map(e,function(e){return k.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(o.type)!==-1?g[t]=e.split(","):"DatePicker"===o.type?g[t]=parseInt(S(e).startOf("day").format("X")):"DateTimePicker"===o.type?g[t]=parseInt(S(e).format("X")):"Number"===o.type?g[t]=parseFloat(e):"Integer"===o.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),_=0,k.default.isEmpty(l)||!l.id){w.next=37;break}if(!d||!f){w.next=31;break}return w.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(_=w.sent,0===_){w.next=31;break}return this.setState({ecode:_}),w.abrupt("return");case 31:return w.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:_=w.sent,0===_&&(r(),d&&f?E.notify.show("提交完成。","success",2e3):E.notify.show("问题已更新。","success",2e3)),w.next=42;break;case 37:return u.id&&k.default.extend(g,{parent_id:u.id}),w.next=40,regeneratorRuntime.awrap(t(g));case 40:_=w.sent,0===_&&(y?this.setState({preCreated:!0}):(r(),E.notify.show("问题已创建。","success",2e3)));case 42:0===_&&b.length>0&&o(b),this.setState({ecode:_});case 44:case"end":return w.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.loading,o=e.data,r=void 0===o?{}:o,i=e.isFromWorkflow,a=void 0!==i&&i;if(!n){var l=!a&&(r.id&&this.getChangedKeys().length>0||!r.id&&this.getChangedKeysForOriginal().length>0);l&&!confirm("确认要关闭该页面?")||(this.setState({ecode:0}),t())}}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,o=k.default.find(n.types,{id:e}).schema;if(o){var r={},i={};k.default.map(o,function(e){t.state.errors[e.key]?i[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&k.default.isArray(e.defaultValue)?i[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&k.default.isString(e.defaultValue)?i[e.key]=e.defaultValue.split(","):i[e.key]=e.defaultValue:t.state.values[e.key]&&(i[e.key]=t.state.values[e.key]),e.required&&!i[e.key]&&(r[e.key]="必填")}),i.type=e,this.setState({errors:r,touched:{},schema:o,values:i})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void E.notify.show("文档上传失败。","error",2e3);var n=t.data,o=n.field,r=void 0===o?"":o,i=n.file,a=void 0===i?{}:i;this.state.values[r]=this.state.values[r]||[],this.state.values[r].push(a.id),e.field=r,e.fid=a.id,r&&this.state.errors[r]?(delete this.state.errors[r],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=k.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var o=k.default.find(this.state.schema,{key:t});o&&o.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=k.default.trim(e),n=t.split(" "),o=!0;return k.default.map(n,function(e){if(e){k.default.endsWith(e.toLowerCase(),"w")||k.default.endsWith(e.toLowerCase(),"d")||k.default.endsWith(e.toLowerCase(),"h")||k.default.endsWith(e.toLowerCase(),"m")||(o=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(o=!1)}}),o}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||k.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&k.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!S(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,o=t.options,r=t.loading,i=t.project,a=t.data,l=void 0===a?{}:a,s=t.parent,d=void 0===s?{}:s,f=t.isSubtask,g=void 0!==f&&f,b=t.isFromWorkflow,w=void 0!==b&&b,E=this.state,x=E.schema,S=E.createOther,R=E.preCreated,M=k.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),L={height:"580px",overflow:"auto"};return w&&(L={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:this.handleCancel,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},l.id?w?"流程页面":"编辑问题 - "+l.no:g?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:L,ref:"createModal"},!w&&!g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,i.name||"-")))),!w&&g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,d.title?d.no+"-"+d.title:l.parent&&l.parent.title?l.parent.no+"-"+l.parent.title:"-")))),!w&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:M,disabled:r,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),k.default.map(x,function(t,n){var a=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:r,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:r,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:a+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:r,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+i.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(T.MultiRowsTextEditor,{id:a+"-field-textarea-"+t.key,disabled:r,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+i.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&o.permissions&&o.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:a+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(m.default,{multi:!0,disabled:r,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:k.default.map(o.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:r,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:k.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(h.CheckboxGroup,{style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(h.Checkbox,{disabled:r,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:a+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:r,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(v.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&o.permissions&&o.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+i.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:a+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(_.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:r,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:r,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!r&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),R&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:P,className:r?"loading":"hide"}),!l.id&&u.default.createElement(c.Checkbox,{disabled:r,checked:S,onClick:function(){e.setState({createOther:!S})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:l.id&&this.getChangedKeys().length<=0&&w===!1||k.default.isEmpty(x)||!k.default.isEmpty(this.state.errors)||r||R,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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 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)}var i=function(){function e(e,t){for(var n=0;n'+l+''),o.push(a)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var r=t.match(/\[.*?\]\(.*?\)/gi);return r&&p.default.forEach(r,function(e,n){var o=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");o.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:o}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var o=-1;0===n.indexOf("inlineimg-")&&(o=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:o}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,o=t.onEdit,r=t.fieldKey,i=t.value,a=void 0===i?"":i,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(r,a),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){o&&o()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(m.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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 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)}var i=function(){function e(e,t){for(var n=0;n/gi),r=[];return o&&c.default.forEach(o,function(t,o){var i=new RegExp('^$');if(i.exec(t)){var a=RegExp.$1;if(!a)return;n=n.replace(t,''),r.push(a)}}),{html:n,imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var o=-1;0===n.indexOf("inlineimg-")&&(o=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:o}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,o=t.onEdit,r=t.fieldKey,i=t.value,a=this.state,l=a.inlinePreviewShow,u=a.photoIndex,c=this.extractImg(r,i||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){o&&o()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:v}}).call(this)}finally{}},112:function(e,t,n){var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};o=function(){return i}.call(t,n,t,e),!(void 0!==o&&(e.exports=o))}()},115:function(e,t,n){function o(e){return e()}var r=n(1),i=n(13),a=n(71),l=n(25),s=n(112),u=r.createFactory(n(116)),c=n(117),d=n(119),p=n(207),f=n(13).unstable_renderSubtreeIntoContainer,m=n(70),h=n(69),y=s.canUseDOM?window.HTMLElement:{},g=s.canUseDOM?document.body:{appendChild:function(){}},v=h({displayName:"Modal",statics:{setAppElement:function(e){g=c.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:l.bool.isRequired,style:l.shape({content:l.object,overlay:l.object}),portalClassName:l.string,bodyOpenClassName:l.string,appElement:l.instanceOf(y),onAfterOpen:l.func,onRequestClose:l.func,closeTimeoutMS:l.number,ariaHideApp:l.bool,shouldCloseOnOverlayClick:l.bool,parentSelector:l.func,role:l.string,contentLabel:l.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&&d.add(this);var e=o(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&&d.add(this),e.isOpen||d.remove(this);var t=o(this.props.parentSelector),n=o(e.parentSelector);n!==t&&(t.removeChild(this.node),n.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){d.remove(this),this.props.ariaHideApp&&c.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 o=this;setTimeout(function(){o.removePortal()},n-t)}else this.removePortal()}},removePortal:function(){i.unmountComponentAtNode(this.node);var e=o(this.props.parentSelector);e.removeChild(this.node),0===d.count()&&p(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||d.count()>0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(m({},e,{defaultStyles:v.defaultStyles})),this.node)},render:function(){return a.noscript()}});v.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=v},116:function(e,t,n){var o=(n(1),n(71)),r=n(118),i=n(120),a=n(70),l=n(69),s=o.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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"},o=n.base;return this.state.afterOpen&&(o+=" "+n.afterOpen),this.state.beforeClose&&(o+=" "+n.beforeClose),"string"==typeof t&&t?[o,t].join(" "):o},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:a({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:a({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function o(e){a(e),(e||s).setAttribute("aria-hidden","true")}function r(e){a(e),(e||s).removeAttribute("aria-hidden")}function i(e,t){e?o(t):r(t)}function a(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=i,t.setElement=n,t.show=r,t.hide=o,t.resetForTesting=l},118:function(e,t,n){function o(e){s=!0}function r(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=i(l)[0]||l;e.focus()}},0)}}var i=n(72),a=[],l=null,s=!1;t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=a.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",o,!1),document.addEventListener("focus",r,!0)):(window.attachEvent("onBlur",o),document.attachEvent("onFocus",r))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",o),document.removeEventListener("focus",r)):(window.detachEvent("onBlur",o),document.detachEvent("onFocus",r))}},119: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}}},120:function(e,t,n){var o=n(72);e.exports=function(e,t){var n=o(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 a=n[t.shiftKey?n.length-1:0];a.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function i(e){return{type:"WORKFLOW_SELECT",id:e}}function a(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=o,t.update=r,t.select=i,t.delNotify=a,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178: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 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&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,o=n.parent_id,r=n.type,i=e.handleSubmit,a=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:i(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(m.default.Async,{clearable:!1,disabled:l,options:[],value:o.value,onChange:function(e){o.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),o.touched&&o.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},o.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(m.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:r.value,onChange:function(e){r.onChange(e)},placeholder:"选择问题类型"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:_,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||a,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:w})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},180: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 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&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,o=e.handleSubmit,r=e.invalid,i=e.submitting,a=e.issue;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"},"移动子任务 - "+a.no)),c.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(m.default.Async,{clearable:!1,disabled:i,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&t[this.state.ecode]),c.default.createElement("img",{src:_,className:i?"loading":"hide"}),c.default.createElement(p.Button,{disabled:i||r,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:i,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:w})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},184: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 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&&n(a),r(),v.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,o=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(o.labels||[],function(e){return{value:e,label:e}})}:{labels:(o.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,o=e.handleSubmit,r=e.invalid,i=e.submitting,a=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+a.no)),u.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(h.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:i,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&t[this.state.ecode]),u.default.createElement("img",{src:b,className:i?"loading":"hide"}),u.default.createElement(d.Button,{disabled:i||r,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:i,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},186: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 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.next=11;break}return a=i[e-1].id,s.next=9,regeneratorRuntime.awrap(n(a));case 9:l=s.sent,0===l&&o();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function h(e){var t,n,h,o,r,i,a,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,h=t.forward,o=t.visitedIndex,r=t.visitedCollection,i=void 0===r?[]:r,a=_.default.add(o,e),!i[a]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(i[a]));case 10:l=s.sent,0===l&&h(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,o,r,i,a;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,o=t.show,r=t.watch,i=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(o(n.id));case 8:i=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(a=n.watching,this.watch(n.id,!a)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return g=this.props.watch,o.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=o.sent,0===n?t?w.notify.show("关注成功。","success",2e3):w.notify.show("已取消关注。","success",2e3):t?w.notify.show("关注失败。","error",2e3):w.notify.show("取消失败。","error",2e3);case 5:case"end":return o.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,o,r;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=this.props,n=t.show,o=t.record,i.next=5,regeneratorRuntime.awrap(n(e));case 5:r=i.sent,0===r&&o();case 7:case"end":return i.stop()}},null,this)}},{key:"doAction",value:function b(e){var t,b,n,o,r;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=this.props,b=t.doAction,n=t.data,o=_.default.find(n.wfactions||{},{id:e}),!o||!o.screen){i.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),i.next=12;break;case 8:return i.next=10,regeneratorRuntime.awrap(b(n.id,n.entry_id,{action_id:e}));case 10:r=i.sent,0===r?w.notify.show("提交完成。","success",2e3):w.notify.show("提交失败。","error",2e3);case 12:case"end":return i.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,o,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=this.props,n=t.data,o=t.doAction,r=_.default.find(n.wfactions||{},{id:e}),!r||!r.schema){a.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),a.next=12;break;case 8:return a.next=10,regeneratorRuntime.awrap(o(n.id,n.entry_id,{action_id:e}));case 10:i=a.sent,0===i?w.notify.show("提交完成。","success",2e3):w.notify.show("提交失败。","error",2e3);case 12:case"end":return a.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void w.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",o=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),o=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:o}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,o=_.default.find(n,{name:e}),r={};return o&&o.bgColor&&(r={backgroundColor:o.bgColor,borderColor:o.bgColor,border:"1px solid "+o.bgColor,color:"#fff"}),r}},{key:"createLightbox",value:function(e,t,n){var o=this,r=this.props.project;return c.default.createElement(y.default,{mainSrc:K+"/project/"+r.key+"/file/"+t[n].id,nextSrc:K+"/project/"+r.key+"/file/"+t[(n+1)%t.length].id,prevSrc:K+"/project/"+r.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){o.state.previewShow[e]=!1,o.setState({previewShow:o.state.previewShow})},onMovePrevRequest:function(){return o.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return o.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,o,r){var i=this,a=this.state,l=a.editingItems,s=a.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(r&&r>0?"(字数"+r+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,i.setState({newItemValues:i.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:_.default.isEqual(e||"",s[t]||"")||o&&!s[t]||r&&r>0&&_.default.trim(s[t]||"").length>r},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,i.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,i.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,o,r){var i=this,a=this.state,l=a.editingItems,s=a.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(E.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(r&&r>0?"(字数"+r+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,i.setState({newItemValues:i.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:_.default.isEqual(e||"",s[t]||"")||o&&!s[t]||r&&r>0&&_.default.trim(s[t]||"").length>r},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,i.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(E.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,i.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,o=e.layout,r=_.default.min([_.default.max([o.containerWidth/2,660]),1e3]),i={width:r+"px"},a={};void 0!==n.left?(i.left=n.left-r,a.left=n.left):(i.right=-r,a.right=0),C(".animate-dialog").css(i),C(".animate-dialog").animate(a)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,o=t.layout,r=t.close,i=(t.detailFloatStyle,t.data),a=void 0===i?{}:i,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,h=t.loading,y=t.itemLoading,g=t.options,b=t.project,E=t.fileLoading,x=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue,t.setLabels),ne=t.addLabels,oe=t.resetState,re=t.wfCollection,ie=t.wfLoading,ae=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,me=t.delComments,he=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,ve=t.historyIndexLoading,be=t.indexGitCommits,_e=t.sortGitCommits,we=t.gitCommitsCollection,ke=t.gitCommitsIndexLoading,Ee=t.indexWorklog,xe=t.worklogSort,Ce=t.sortWorklog,Te=t.worklogCollection,Se=t.worklogIndexLoading,Pe=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,Me=t.delWorklog,Le=t.createLink,je=t.delLink,Fe=t.linkLoading,Ie=t.doAction,qe=t.user,Ae=this.state,Ne=(Ae.inlinePreviewShow,Ae.previewShow),De=Ae.photoIndex,Be=Ae.newAssignee,We=Ae.editAssignee,ze=Ae.editingItems,He=Ae.newItemValues,Ve=Ae.delFileShow,Ue=Ae.selectedFile,Ge=Ae.action_id,Ye=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ke={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=_.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];_.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=_.default.find(g.types,{id:a.type}),Qe=$e&&$e.schema?$e.schema:[],Je=_.default.findIndex(f,{id:a.id}),et=a.priority?_.default.findIndex(g.priorities,{id:a.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&_.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=a.state?_.default.findIndex(g.states,{id:a.state}):-1,ot="";nt!==-1&&(ot="state-"+g.states[nt].category+"-label");var rt=!1,it=_.default.findIndex(Qe,{key:"descriptions"});it!==-1&&(rt=Qe[it].required&&!0);var at={};a.epic&&(at=_.default.find(g.epics,{id:a.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(a.comments_num>99?"99+":a.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(a.worklogs_num>99?"99+":a.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(a.gitcommits_num>99?"99+":a.gitcommits_num||0)+")")),ct=_.default.min([_.default.max([o.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:r,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:a.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(a.id,!a.watching)}},a.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ke},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:L,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(a.wfactions&&a.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},_.default.map(a.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},_.default.map(a.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},a.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{ +eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},a.watchers&&a.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!a.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&!a.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{divider:!0}),!a.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!a.hasSubtasks&&!a.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),a.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),a.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(_.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&a.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&a.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",a.reporter&&a.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},a.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(a.parent.id)}},a.parent.no+"-"+(a.parent.title||"")),a.parent&&" / ",a.no+"-"+(a.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:ot},g.states[nt].name):"-",ie?c.default.createElement("img",{src:L,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.find(g.resolutions||[],{id:a.resolution})?_.default.find(g.resolutions,{id:a.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:We?7:3},We?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(v.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||a.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},a.assignee&&a.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,a.assignee&&a.assignee.name||"-")),(!a.assignee||a.assignee.id!==qe.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!We&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!We&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,a.reporter&&a.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(a.descriptions,"descriptions","描述",rt)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},a.created_at?T.unix(a.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},a.updated_at?T.unix(a.updated_at).format("YYYY/MM/DD HH:mm"):a.created_at?T.unix(a.created_at).format("YYYY/MM/DD HH:mm"):"-"))),a.labels&&a.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.map(a.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),a.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.find(g.versions,{id:a.resolve_version})?_.default.find(g.versions,{id:a.resolve_version}).name:"-"))),a.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?epic="+a.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:at.bgColor,backgroundColor:at.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:at.name||"-"},at.name||"-"))))),a.sprints&&a.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},_.default.map(a.sprints,function(e){return _.default.find(g.sprints,{no:e}).name}).join(", ")))),(a.expect_start_time||a.expect_complete_time)&&c.default.createElement(d.FormGroup,null,a.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),a.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(a.expect_start_time).format("YYYY/MM/DD"))),a.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),a.expect_complete_time&&c.default.createElement(d.Col,{sm:a.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(a.expect_complete_time).format("YYYY/MM/DD")))),_.default.isNumber(a.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},ze.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:He.progress||0,onChange:function(t){He.progress=t.target.value,e.setState({newItemValues:He})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",He.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",a.reporter&&a.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(a.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){ze.progress=!0,He.progress=a.progress||0,e.setState({editingItems:ze,newItemValues:He})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(a.progress||"0")+"%"))))),a.subtasks&&a.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},a.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",a.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&a.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,_.default.map(a.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},_.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+_.default.find(g.states,{id:t.state}).category+"-label"},_.default.find(g.states,{id:t.state}).name):"-"))}))))),a.links&&a.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},a.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",a.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&a.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,_.default.map(a.links,function(t,n){var o={},r="",i="";if(t.src.id==a.id)o=t.dest,r=t.relation,i=t.dest.id;else if(t.dest.id==a.id){o=t.src,r=t.relation;var l=_.default.findIndex(g.relations||[],{out:r});if(l!==-1)r=g.relations[l].in||"";else{var s=_.default.findIndex(g.relations||[],{"in":r});s!==-1&&(r=g.relations[s].out||"")}i=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,r,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==o.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(i)}},o.no," - ",o.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},_.default.find(g.states||[],{id:o.state})?c.default.createElement("span",{className:"state-"+_.default.find(g.states,{id:o.state}).category+"-label"},_.default.find(g.states,{id:o.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:o.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),_.default.map(Qe,function(t,n){if(Ye.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&_.default.isEmpty(a[t.key]))return}else if(_.default.isEmpty(a[t.key])&&!_.default.isNumber(a[t.key]))return;var o="";if("SingleUser"===t.type)o=a[t.key]&&a[t.key].name||"-";else if("MultiUser"===t.type)o=_.default.map(a[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var r=t.optionValues||[];o=_.default.find(r,{id:a[t.key]})?_.default.find(r,{id:a[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=_.default.isArray(a[t.key])?a[t.key]:a[t.key].split(","),r=[];_.default.map(n,function(t,n){_.default.find(e,{id:t})&&r.push(_.default.find(e,{id:t}).name)}),o=r.join(", ")||"-"}();else if("DatePicker"===t.type)o=T.unix(a[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)o=T.unix(a[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var i={showFiletypeIcon:!0,postUrl:K+"/project/"+b.key+"/file?issue_id="+a.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){w.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=_.default.filter(a[t.key],function(e){return _.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=_.default.filter(a[t.key],function(e){return _.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});o=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,_.default.map(p,function(n,o){return c.default.createElement("tr",{key:o},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,k.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:K+"/project/"+b.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,_.default.map(u,function(n,o){return c.default.createElement(d.Col,{sm:6,key:o},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,o,t.key)},c.default.createElement("img",{src:K+"/project/"+b.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(m.default,{config:i,eventHandlers:s,djsConfig:l})),Ne[t.key]&&e.createLightbox(t.key,u,De))}else o="TextArea"===t.type?e.getTextAreaItemContents(a[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(a[t.key],t.key,t.name,t.required,t.maxLength):a[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},o)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:a.id,currentTime:g.current_time||0,currentUser:qe,collection:ge,indexHistory:he,sortHistory:ye,indexLoading:ve})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(P,{i18n:n,currentTime:g.current_time||0,currentUser:qe,project:b,permissions:g.permissions||[],issue_id:a.id,collection:se,indexComments:ae,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:me,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(M,{i18n:n,currentTime:g.current_time||0,currentUser:qe,permissions:g.permissions||[],issue:a,original_estimate:a.original_estimate,options:g.timetrack||{},collection:Te,indexWorklog:Ee,sort:xe,sortWorklog:Ce,indexLoading:Se,loading:Pe,addWorklog:Oe,editWorklog:Re,delWorklog:Me})),a.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:a.id,currentTime:g.current_time||0,currentUser:qe,collection:we,indexGitCommits:be,sortGitCommits:_e,indexLoading:ke})))),Ve&&c.default.createElement(F,{show:!0,close:this.delFileModalClose,del:x,data:Ue,loading:E,i18n:n}),this.state.editModalShow&&c.default.createElement(S,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:a,isSubtask:a.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(S,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:a,action_id:Ge,doAction:Ie,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(V,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:a,action_id:Ge,doAction:Ie}),this.state.createSubtaskModalShow&&c.default.createElement(S,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:h,project:b,parent:a,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(j,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:a.state,collection:re}),this.state.linkIssueModalShow&&c.default.createElement(I,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:Fe,createLink:Le,issue:a,types:g.types,project:b,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(q,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Fe,delLink:je,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:h,issue:a,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:b,convert:J,loading:h,issue:a,i18n:n}),this.state.moveModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:b,move:Q,loading:h,issue:a,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:a,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(W,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:a,i18n:n}),this.state.shareModalShow&&c.default.createElement(z,{show:!0,project:b,close:function(){e.setState({shareModalShow:!1})},issue:a}),this.state.resetModalShow&&c.default.createElement(H,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:oe,issue:a,i18n:n}),this.state.delNotifyShow&&c.default.createElement(U,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:a,del:X,detailClose:r,i18n:n}),this.state.copyModalShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:h,copy:$,data:a,i18n:n}),this.state.watchersModalShow&&c.default.createElement(Y,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:a.no,watchers:a.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220: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 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&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(a.request({url:"/project/"+r.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(i,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(o,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,o=t.loading,r=t.options.relations,i=void 0===r?[]:r,a=[];return y.default.forEach(i,function(e){e.out==e.in?a.push({value:e.out,label:e.out}):(a.push({value:e.out,label:e.out}),a.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:o,options:a,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:o,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&n[this.state.ecode]),u.default.createElement("img",{src:v,className:o?"loading":"hide"}),u.default.createElement(c.Button,{disabled:o||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:o,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},221: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 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?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222: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 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;n'+r+'
    '),imgFileUrls.push(o)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var o=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){o.state.inlinePreviewShow[e]=!1,o.setState({inlinePreviewShow:o.state.inlinePreviewShow})},onMovePrevRequest:function(){return o.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return o.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",o=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),o=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:o})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,o){var r=_lodash2.default.find(e,{nameAndEmail:n});return r&&t.state.atWho.push(r.id),"@"+r.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,o){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,o=t.currentTime,r=t.permissions,i=t.currentUser,a=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,m=t.users,h=t.project,y=t.issue_id,g=this.state,v=g.inlinePreviewShow,b=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){a(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var a=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===i.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,o))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&i.id===t.creator.id&&r.indexOf("delete_self_comments")!==-1||r.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&i.id===t.creator.id&&r.indexOf("edit_self_comments")!==-1||r.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),r.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:a,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[t.id]&&e.createLightbox(t.id,c,b),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,a){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===i.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,o))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&i.id===n.creator.id&&r.indexOf("delete_self_comments")!==-1||r.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&i.id===n.creator.id&&r.indexOf("edit_self_comments")!==-1||r.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),r.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[n.id]&&e.createLightbox(n.id,c,b))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:m,project:h,permissions:r,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224: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 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;n${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,o){var r=p.default.find(e,{nameAndEmail:n});return r&&t.state.atWho.push(r.id),"@"+r.name}},data:e}),m(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,o){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=m(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,o=t.data,r=t.loading,i="";return i=o.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},i)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:r,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:h,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||r,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0 +}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227: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 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;n'+(t.author&&t.author.id===r.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.committed_at,o))}}));return u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228: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 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;n'+(t.operator&&t.operator.id===r.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.operated_at,o))}}));return u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229: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 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;n=0){var c=f.default.floor(u/i);c>0&&s.push(c+"w")}if(u%=i,u>=0){var d=f.default.floor(u/a);d>0&&s.push(d+"d")}if(u%=a,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,o=t.permissions,r=t.currentTime,i=t.currentUser,a=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,b=t.indexLoading,_=t.loading,w=t.addWorklog,k=t.editWorklog,E=t.delWorklog,x=t.original_estimate,C=void 0===x?"":x,T=void 0;C&&(T=this.t2m(C)),"desc"===s&&p.reverse();var S=0;f.default.map(p,function(t){if(S=f.default.add(S,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 o=e.t2m(t.cut);T=T-o>0?T-o:0}return f.default.extend(t,{leave_estimate_m:T}),t});var P=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:b&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:_,onClick:function(){l(a.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),o.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:_,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:b&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},S>0?this.m2t(S):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===P.leave_estimate_m?"-":this.m2t(P.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},b&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:h,className:"loading"})),p.length<=0&&!b?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var a=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===i.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.recorded_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&i.id===t.recorder.id&&o.indexOf("delete_self_worklog")!==-1||o.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&i.id===t.recorder.id&&o.indexOf("edit_self_worklog")!==-1||o.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:a,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:_,add:w,edit:k,i18n:n}),this.state.delWorklogShow&&u.default.createElement(v,{show:!0,issue:a,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:_,del:E,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},1796: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 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 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 l(e){return{actions:(0,m.bindActionCreators)(y,e),issueActions:(0,m.bindActionCreators)(_,e),wfActions:(0,m.bindActionCreators)(k,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=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_BASENAME+"/getavatar?fid="+collection[i].user.avatar:no_avatar,className:"default-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(),e.stopPropagation(),_this2.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(),e.stopPropagation(),_this2.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(),e.stopPropagation(),_this2.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("YYYY/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.detailBarShow&&_react2.default.createElement(DetailBar,{i18n:i18n,layout:layout,edit:edit,create:create,del:del,setAssignee:setAssignee,setItemValue:setItemValue,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,setItemValue:_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{}},2064: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 o(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=o;var r=n(26)}).call(this)}finally{}}}); +//# sourceMappingURL=activity-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/calendar-2fafc167f8a6ebfe8dae.js b/public/assets/calendar-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/calendar-2fafc167f8a6ebfe8dae.js rename to public/assets/calendar-d133ff15592d3c829f3c.js index 7e310c6a..eb57907b 100644 --- a/public/assets/calendar-2fafc167f8a6ebfe8dae.js +++ b/public/assets/calendar-d133ff15592d3c829f3c.js @@ -1,2 +1,2 @@ webpackJsonp([31],{1799:function(e,t,n){try{(function(){"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("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;nb(this.state.end_time)},"确定"),s.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,day:u.PropTypes.string.isRequired},enumerable:!0}]),t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1800:function(e,t,n){try{(function(){"use strict";function r(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 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 l(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,y.bindActionCreators)(m,e)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t0&&n.push(a),r%3===0&&(t.push(n),n=[])}return t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.options,a=t.sync,o=t.indexLoading,l=t.collection,i=t.update,u=t.loading,d=[];return l.length>0&&(d=this.arrange()),s.default.createElement("div",{style:{marginTop:"25px",height:"40px"}},this.state.year&&s.default.createElement("div",{style:{textAlign:"center",marginBottom:"15px"}},s.default.createElement(c.Button,{title:"上一年",onClick:function(){e.switch(e.state.year-1)}},s.default.createElement("span",{style:{padding:"0px 5px"}},s.default.createElement("i",{className:"fa fa-angle-left fa-lg"}))),s.default.createElement("span",{style:{margin:"0px 15px",fontWeight:600}},this.state.year),s.default.createElement(c.Button,{title:"下一年",onClick:function(){e.switch(f.default.add(e.state.year,1))}},s.default.createElement("span",{style:{padding:"0px 5px"}},s.default.createElement("i",{className:"fa fa-angle-right fa-lg"}))),r.year&&this.state.year>=r.year&&s.default.createElement(c.Button,{bsStyle:"link",style:{position:"absolute",right:"20px",top:"75px"},onClick:function(){e.setState({syncNotifyShow:!0})}},"同步日历")),o&&s.default.createElement("div",{style:{textAlign:"center",paddingTop:"50px"}},s.default.createElement("img",{src:p,className:"loading"})),!o&&d.length>0&&s.default.createElement(c.Form,{horizontal:!0,style:{margin:"0px 5px"}},f.default.map(d,function(t,n){return s.default.createElement(c.FormGroup,{key:n},f.default.map(t,function(t,a){return s.default.createElement(c.Col,{sm:4,className:"canlendarcontent",key:a},s.default.createElement(m,{select:e.selectDay.bind(e),month:f.default.add(3*n,f.default.add(a,1)),today:r.date||"",dates:t}))}))})),this.state.setModalShow&&s.default.createElement(h,{show:!0,close:function(){e.setState({setModalShow:!1})},day:this.state.selectedDay,loading:u,update:i,i18n:n}),this.state.syncNotifyShow&&s.default.createElement(y,{show:!0,close:function(){e.setState({syncNotifyShow:!1})},year:this.state.year,loading:u,sync:a,i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,collection:u.PropTypes.array.isRequired,options:u.PropTypes.object.isRequired,loading:u.PropTypes.bool.isRequired,indexLoading:u.PropTypes.bool.isRequired,sync:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,index:u.PropTypes.func.isRequired},enumerable:!0}]),t}(u.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},1802:function(e,t,n){try{(function(){"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("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;n"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",r=function(e){var n=f.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(l+=t[e].id+'["'+n+'"];',"continue"):void f.default.map(t[e].actions,function(a){f.default.map(a.results,function(r){l+=t[e].id+'["'+n+'"]',l+='--"'+f.default.escape(a.name)+"("+a.id+')"-->';var o=f.default.find(t,{id:r.step});l+=o.id+'["'+f.default.escape(o.name)+'"];'})})},o=0;o0?s.default.createElement(c.Table,{responsive:!0,hover:!0},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"名称"),s.default.createElement("th",null,"类型"),s.default.createElement("th",null,"界面"),s.default.createElement("th",null,"工作流"))),s.default.createElement("tbody",null,f.default.map(n.types,function(t){return s.default.createElement("tr",null,s.default.createElement("td",null,s.default.createElement("span",{className:"table-td-title-nobold"},t.name||"","(",t.abb||"",")",t.default&&s.default.createElement("span",{style:{fontWeight:"normal"}}," (默认)"),"subtask"==t.type&&s.default.createElement("span",{style:{fontWeight:"normal"}}," (子任务)")),s.default.createElement("span",{className:"table-td-desc"},t.description||"")),s.default.createElement("td",null,"subtask"===t.type?"子任务":"标准"),s.default.createElement("td",null,s.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||"")),s.default.createElement("td",null,s.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||"")))}))):s.default.createElement("div",null,"暂无信息")),s.default.createElement(c.Panel,{header:"问题优先级"},n.priorities&&n.priorities.length>0?s.default.createElement(c.Table,{responsive:!0,hover:!0},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"名称"),s.default.createElement("th",null,"图案"),s.default.createElement("th",null,"描述"))),s.default.createElement("tbody",null,f.default.map(n.priorities||[],function(e){return s.default.createElement("tr",null,s.default.createElement("td",null,s.default.createElement("span",{className:"table-td-title-nobold"},e.name||"",e.default&&s.default.createElement("span",{style:{fontWeight:"normal"}}," (默认)"))),s.default.createElement("td",null,s.default.createElement("div",{className:"circle",style:{backgroundColor:e.color||"#ccc"}})),s.default.createElement("td",null,e.description||"-"))}))):s.default.createElement("div",null,"暂无信息")),s.default.createElement(c.Panel,{header:"项目角色"},n.roles&&n.roles.length>0?s.default.createElement(c.Table,{responsive:!0,hover:!0},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",{style:{width:"300px"}},"名称"),s.default.createElement("th",null,"权限"))),s.default.createElement("tbody",null,f.default.map(n.roles,function(t){return s.default.createElement("tr",null,s.default.createElement("td",null,s.default.createElement("span",{className:"table-td-title-nobold"},t.name||""),s.default.createElement("span",{className:"table-td-desc"},t.description||"")),s.default.createElement("td",null,s.default.createElement("div",{style:{display:"table",width:"100%"}},t.permissions&&t.permissions.length>0?e.classifyPermissions(t.permissions):s.default.createElement("span",null,s.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")))))}))):s.default.createElement("div",null,"暂无信息")),this.state.wfPreviewModalShow&&s.default.createElement(y,{show:!0,close:function(){e.setState({wfPreviewModalShow:!1})},name:this.state.wfName,collection:this.state.wfSteps}),this.state.screenPreviewModalShow&&s.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{}},2066:function(e,t,n){try{(function(){"use strict";function e(e){return(0,a.asyncFuncCreator)({constant:"PROJECT_CONFIG",promise:function(t){return t.request({url:"/project/"+e+"/config"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e;var a=n(26)}).call(this)}finally{}}}); -//# sourceMappingURL=config-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=config-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/directory-2fafc167f8a6ebfe8dae.js b/public/assets/directory-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/directory-2fafc167f8a6ebfe8dae.js rename to public/assets/directory-d133ff15592d3c829f3c.js index 777ed45a..fe67de14 100644 --- a/public/assets/directory-2fafc167f8a6ebfe8dae.js +++ b/public/assets/directory-d133ff15592d3c829f3c.js @@ -1,4 +1,4 @@ webpackJsonp([9],{68:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(101),o=r(a);t.default=function(){function e(e,t){for(var n=0;n0&&"none"!==t&&(o=r));return document.body.removeChild(e),o}Object.defineProperty(t,"__esModule",{value:!0}),t.getScroll=n,t.offset=r,t.getTransformPropertyName=a;var o=void 0},297:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(101),o=r(a);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},303: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 a=n(171)}catch(o){var a=n(171)}var i=/\s+/,l=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=a(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==l.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=a(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(P.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 a=t.component;if(a){var o=t;return"string"==typeof a&&(o=(0,l.default)({className:t.className,style:t.style},t.componentProps)),E.default.createElement(a,o,r)}return r[0]||null}}]),t}(E.default.Component);O.propTypes={component:T.default.any,componentProps:T.default.object,animation:T.default.object,transitionName:T.default.oneOfType([T.default.string,T.default.object]),transitionEnter:T.default.bool,transitionAppear:T.default.bool,exclusive:T.default.bool,transitionLeave:T.default.bool,onEnd:T.default.func,onEnter:T.default.func,onLeave:T.default.func,onAppear:T.default.func,showProp:T.default.string},O.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:o,onEnter:o,onLeave:o,onAppear:o};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 r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=(0,C.toArrayChildren)(a(r));e.isValidChildByKey(o,t)?"appear"===n?_.default.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):_.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,C.toArrayChildren)(a(n));if(e.isValidChildByKey(r,t))e.performEnter(t);else{var o=function(){_.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,C.isSameChildren)(e.state.children,r,n.showProp)?o():e.setState({children:r},o)}}}};t.default=O,e.exports=t.default},327:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(144),o=r(a),i=n(9),l=r(i),s=n(68),u=r(s),c=n(11),d=r(c),f=n(10),p=r(f),h=n(1),m=r(h),y=n(13),v=r(y),b=n(25),E=r(b),g=n(310),T=r(g),C=n(175),x=r(C),P={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){x.default.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){x.default.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){x.default.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=v.default.findDOMNode(this),a=this.props,i=a.transitionName,l="object"===("undefined"==typeof i?"undefined":(0,o.default)(i));this.stop();var s=function(){n.stopper=null,t()};if((g.isCssAnimationSupported||!a.animation[e])&&i&&a[P[e]]){var u=l?i[e]:i+"-"+e,c=u+"-active";l&&i[e+"Active"]&&(c=i[e+"Active"]),this.stopper=(0,T.default)(r,{name:u,active:c},s)}else this.stopper=a.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);w.propTypes={children:E.default.any},t.default=w,e.exports=t.default},328:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){var t=[];return d.default.Children.forEach(e,function(e){t.push(e)}),t}function o(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 l(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,a){var o=t[a];e&&o&&(e&&!o||!e&&o?r=!1:e.key!==o.key?r=!1:n&&e.props[n]!==o.props[n]&&(r=!1))}),r}function u(e,t){var n=[],r={},a=[];return e.forEach(function(e){e&&o(t,e.key)?a.length&&(r[e.key]=a,a=[]):a.push(e)}),t.forEach(function(e){e&&r.hasOwnProperty(e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=a,t.findChildInChildrenByKey=o,t.findShownChildInChildrenByKey=i,t.findHiddenChildInChildrenByKey=l,t.isSameChildren=s,t.mergeChildren=u;var c=n(1),d=r(c)},329:function(e,t,n){"use strict";function r(e){var t=e.refs,n=t.nav,r=(0,a.offset)(n),o=t.inkBar,i=t.activeTab,l=e.props.tabPosition;if(i){var s=i,u=(0,a.offset)(s),c=(0,a.getTransformPropertyName)();if("top"===l||"bottom"===l){var d=u.left-r.left;c?(o.style[c]="translate3d("+d+"px,0,0)",o.style.width=s.offsetWidth+"px",o.style.height=""):(o.style.left=d+"px",o.style.top="",o.style.bottom="",o.style.right=n.offsetWidth-d-s.offsetWidth+"px")}else{var f=u.top-r.top;c?(o.style[c]="translate3d(0,"+f+"px,0)",o.style.height=s.offsetHeight+"px",o.style.width=""):(o.style.left="",o.style.right="",o.style.top=f+"px",o.style.bottom=n.offsetHeight-f-s.offsetHeight+"px")}}o.style.display=i?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var a=n(177);t.default={componentDidUpdate:function(){r(this)},componentDidMount:function(){r(this)}},e.exports=t.default},330: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},331:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}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 o(){}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0?(c=!1,this.setOffset(0),l=0):sl?(o+=i-l,this.setState({offset:o})):i+ai?"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,o=t.tabPosition,i=t.className,l=t.animation,u=(0,b.default)((e={},a(e,r,1),a(e,r+"-"+o,1),a(e,i,!!i),e)),c=this.state.tabMovingDirection,d=this.getTabPanes(),f=void 0;f=t.transitionName&&t.transitionName[c||"backward"],!f&&l&&(f=r+"-"+l+"-"+(c||"backward")),n&&(d=d.filter(function(e){return e.props.active})),f&&(d=n?s.default.createElement(y.default,{exclusive:!0,component:"div",transitionName:f},d):s.default.createElement(y.default,{showProp:"active",exclusive:!0,component:"div",transitionName:f},d));var p=[s.default.createElement(h.default,{prefixCls:r,key:"nav",onKeyDown:this.onNavKeyDown,tabBarExtraContent:this.props.tabBarExtraContent,tabPosition:o,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"===o&&p.reverse(),s.default.createElement("div",{className:u,style:t.style},p)}});E.TabPane=f.default,t.default=E,e.exports=t.default},333: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 a=n(332),o=r(a),i=n(176),l=r(i);t.default=o.default,t.TabPane=l.default},1806:function(e,t,n){try{(function(){"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("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;t=0&&n._timers.splice(e,1),t()},0);this._timers.push(r)}}},{key:"childWillEnter",value:function(e,t){this._shortCircuitAnimation(this.props.enter,t)||(this._finishAnimation(e,this.props.leave,{begin:void 0,complete:void 0}),l.forEach(this.props.enterHideStyle,function(t,n){m.CSS.setPropertyValue(e,n,t)}),this._entering.push({node:e,doneFn:t}),this._schedule())}},{key:"childWillLeave",value:function(e,t){this._shortCircuitAnimation(this.props.leave,t)||(this._leaving.push({node:e,doneFn:t}),this._schedule())}},{key:"_shortCircuitAnimation",value:function(e,t){return!(!document.hidden&&null!=this._parseAnimationProp(e).animation)&&(t(),!0)}},{key:"_schedule",value:function(){this._scheduledAnimationFrame||(this._scheduledAnimationFrame=h(this._runAnimations))}},{key:"_runAnimations",value:function(){this._scheduledAnimationFrame=null,this._runAnimation(!0,this._entering,this.props.enter),this._runAnimation(!1,this._leaving,this.props.leave),this._entering=[],this._leaving=[]}},{key:"_parseAnimationProp",value:function(e){var t,n,r;return"string"==typeof e?(t=e,r=null,n={}):(t=null!=e?e.animation:null,r=null!=e?e.style:null,n=l.omit(e,"animation","style")),{animation:t,style:r,opts:n}}},{key:"_runAnimation",value:function(e,t,n){var r=this;if(0!==t.length){var o=l.map(t,"node"),i=l.map(t,"doneFn"),a=this._parseAnimationProp(n),s=a.animation,u=a.style,c=a.opts;e&&(l.isEqual(this.props.enterShowStyle,{display:""})&&(/^(fade|slide)/.test(s)||/In$/.test(s))||(u=l.extend({},this.props.enterShowStyle,u))),null!=u&&l.each(u,function(e,t){m.hook(o,t,e)});var d=function(){r._unmounted||i.map(function(e){e()})};e?(d(),d=null):m(o,"stop");var f;if(d&&c.complete){var p=c.complete;f=function(){d(),p.apply(this,arguments)}}else f=d||c.complete;var y=h(function(){var e=r._scheduledAnimationRunFrames.indexOf(y);e>=0&&r._scheduledAnimationRunFrames.splice(e,1),m(o,s,l.extend({},c,{complete:f}))});this._scheduledAnimationRunFrames.push(y)}}},{key:"_finishAnimation",value:function(e,t,n){var r=this._parseAnimationProp(t),o=r.animation,i=r.style,a=l.extend({},r.opts,n);null!=i&&l.each(i,function(t,n){m.hook(e,n,t)}),null!=o&&(m(e,o,a),m(e,"finishAll",!0))}},{key:"_wrapChild",value:function(e){return e?u.createElement(v,{key:e.key,willAppearFunc:this.childWillAppear,willEnterFunc:this.childWillEnter,willLeaveFunc:this.childWillLeave},e):null}}]),t}(u.Component);g.disabledForTest=!1,g.propTypes={runOnMount:d.bool,enter:d.any,leave:d.any,children:d.any,enterHideStyle:d.object,enterShowStyle:d.object},g.defaultProps={runOnMount:!1,enter:null,leave:null,enterHideStyle:{display:"none"},enterShowStyle:{display:""}},e.exports=g},1052: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 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=Object.assign||function(e){for(var t=1;t0&&y.default.map(o.data,function(e){i.push({id:e.id,name:e.name})}),a.abrupt("return",{options:i});case 12:case"end":return a.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.name,o=n.dest_path,i=e.handleSubmit,s=e.invalid,l=e.submitting,u=e.data;return c.default.createElement(f.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},c.default.createElement(f.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},c.default.createElement(f.Modal.Title,{id:"contained-modal-title-la"},"复制",1===u.d?"目录":"文档"," - ",u.name)),c.default.createElement("form",{onSubmit:i(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(f.Modal.Body,null,c.default.createElement(f.FormGroup,{controlId:"formControlsText",validationState:r.touched&&r.error?"error":null},c.default.createElement(f.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(f.FormControl,a({disabled:l,type:"text"},r,{placeholder:"名称"})),r.touched&&r.error&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(f.FormGroup,{controlId:"formControlsText"},c.default.createElement(f.ControlLabel,null,"复制到"),c.default.createElement(m.default.Async,{clearable:!1,disabled:l,options:[],value:o.value,onChange:function(e){o.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称(默认当前路径)"}))),c.default.createElement(f.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:x,className:l?"loading":"hide"}),c.default.createElement(f.Button,{disabled:l||s,type:"submit"},"确定"),c.default.createElement(f.Button,{bsStyle:"link",disabled:l,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,copy:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"copy_file",fields:["name","dest_path"],validate:_})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},1053: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 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&&h.default.map(a.data,function(e){e.id!==r.parent&&s.push({id:e.id,name:e.name})}),l.abrupt("return",{options:s});case 14:case"end":return l.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=(n.id,n.dest_path),o=e.handleSubmit,i=e.invalid,a=e.submitting,s=e.data;return u.default.createElement(d.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,backdrop:"static","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"},"移动",1===s.d?"目录":"文档"," - ",s.name)),u.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{validationState:r.touched&&r.error?"error":null},u.default.createElement(d.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),u.default.createElement(p.default.Async,{clearable:!1,disabled:a,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称"}),r.touched&&r.error&&u.default.createElement(d.HelpBlock,{style:{"float":"right"}},r.error))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),u.default.createElement("img",{src:w,className:a?"loading":"hide"}),u.default.createElement(d.Button,{disabled:a||i,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:a,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,move:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"move_file",fields:["id","dest_path"],validate:x})(t)||t}(l.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1814:function(e,t,n){try{(function(){"use strict";function r(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 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 s(e){return{actions:(0,m.bindActionCreators)(g,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t0)for(var n=e.children.length,r=0;r1&&v.default.isEmpty(F)&&u.default.createElement("div",{className:"grid-view-item"},u.default.createElement("div",{className:"file-content"},u.default.createElement(c.Link,{to:"/project/"+o.key+"/document"+("0"!==M.path[M.path.length-2].id?"/"+M.path[M.path.length-2].id:""),style:{textDecoration:"none"}},u.default.createElement("div",{className:"file-thumb"},u.default.createElement("div",{style:{fontSize:"85px",color:"#FFD300",marginBottom:"30px"}},"..")),u.default.createElement("div",{className:"file-title-container"},u.default.createElement("div",{className:"file-title"},"返回上级"))))),m&&u.default.createElement(S,{i18n:n,loading:f,data:{},createFolder:y,collection:a,cancel:this.cancelEditCard,mode:"createFolder"}),v.default.map(B,function(t){return e.state.editRowId==t.id?u.default.createElement(S,{i18n:n,loading:f,data:s,collection:a,edit:P,cancel:e.cancelEditCard,mode:"editFolder"}):u.default.createElement("div",{className:"grid-view-item",title:t.name,onMouseOver:function(){e.setState({currentId:t.id})},onMouseLeave:function(){e.setState({currentId:""})}},u.default.createElement("div",{className:"file-content"},e.state.currentId==t.id&&"active"==o.status&&u.default.createElement("div",{className:"operate-icon"},u.default.createElement(d.DropdownButton,{bsStyle:"link",style:{textDecoration:"blink",color:"#999"},key:t.id,title:u.default.createElement("i",{className:"fa fa-cog"}),onClick:e.cancelEditCard,onSelect:e.operateSelect.bind(e)},u.default.createElement(d.MenuItem,{eventKey:"download"},"下载"),u.default.createElement(d.MenuItem,{eventKey:"favorite"},t.favorited?"取消收藏":"收藏"),M.permissions&&M.permissions.indexOf("manage_project")!==-1&&u.default.createElement(d.MenuItem,{eventKey:"rename"},"重命名"),M.permissions&&M.permissions.indexOf("manage_project")!==-1&&u.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),M.permissions&&M.permissions.indexOf("manage_project")!==-1&&u.default.createElement(d.MenuItem,{eventKey:"del"},"删除"))),t.favorited&&u.default.createElement("div",{className:"favorite-icon"},u.default.createElement("span",{onClick:e.clickFavorite.bind(e)},u.default.createElement("i",{className:"fa fa-star"}))),u.default.createElement(c.Link,{to:"/project/"+o.key+"/document/"+t.id},u.default.createElement("div",{className:"file-thumb"},u.default.createElement("span",{style:{fontSize:"85px",color:"#FFD300"}},u.default.createElement("i",{className:"fa fa-folder"}))),u.default.createElement("div",{className:"file-title-container"},u.default.createElement("div",{className:"file-title"},t.name)))))}),v.default.map(q,function(t){return e.state.editRowId==t.id?u.default.createElement(S,{i18n:n,loading:f,data:s,collection:a,edit:P,cancel:e.cancelEditCard,mode:"editFile",imgsrc:t.thumbnails_index?C+"/project/"+o.key+"/document/"+t.id+"/downloadthumbnails":"",fileIconCss:(0,b.getFileIconCss)(t.name)}):u.default.createElement("div",{className:"grid-view-item",title:t.name,onMouseOver:function(){e.setState({currentId:t.id})},onMouseLeave:function(){e.setState({currentId:""})}},u.default.createElement("div",{className:"file-content",onClick:e.clickFile.bind(e,z,t.id)},e.state.currentId==t.id&&"active"==o.status&&u.default.createElement("div",{className:"operate-icon"},u.default.createElement(d.DropdownButton,{bsStyle:"link",style:{textDecoration:"blink",color:"#999"},key:t.id,title:u.default.createElement("i",{className:"fa fa-cog"}),onClick:function(t){t.stopPropagation(),e.cancelEditCard()},onSelect:e.operateSelect.bind(e)},u.default.createElement(d.MenuItem,{eventKey:"download"},"下载"),u.default.createElement(d.MenuItem,{eventKey:"favorite"},t.favorited?"取消收藏":"收藏"),M.permissions&&(M.permissions.indexOf("manage_project")!==-1||t.uploader.id==r.id)&&u.default.createElement(d.MenuItem,{eventKey:"rename"},"重命名"),M.permissions&&(M.permissions.indexOf("manage_project")!==-1||t.uploader.id==r.id)&&u.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),M.permissions&&(M.permissions.indexOf("manage_project")!==-1||t.uploader.id==r.id)&&u.default.createElement(d.MenuItem,{eventKey:"del"},"删除"))),t.favorited&&u.default.createElement("div",{className:"favorite-icon"},u.default.createElement("span",{onClick:e.clickFavorite.bind(e)},u.default.createElement("i",{className:"fa fa-star"}))),u.default.createElement("div",{className:"file-thumb"},t.thumbnails_index?u.default.createElement("img",{src:C+"/project/"+o.key+"/document/"+t.id+"/downloadthumbnails"}):u.default.createElement("span",{style:{fontSize:"85px",color:"#aaa"}},u.default.createElement("i",{className:(0,b.getFileIconCss)(t.name)}))),u.default.createElement("div",{className:"file-title-container"},u.default.createElement("div",{className:"file-title"},t.name))))}))),I&&u.default.createElement(h.default,{mainSrc:C+"/project/"+o.key+"/document/"+z[A].id+"/download",nextSrc:C+"/project/"+o.key+"/document/"+z[(A+1)%z.length].id+"/download",prevSrc:C+"/project/"+o.key+"/document/"+z[(A+z.length-1)%z.length].id+"/download",imageTitle:z[A].name,imageCaption:z[A].uploader.name+" 上传于 "+w.unix(z[A].uploaded_at).format("YYYY/MM/DD HH:mm"),onCloseRequest:function(){e.setState({imgPreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(A+z.length-1)%z.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(A+1)%z.length})}}),"active"==o.status&&u.default.createElement("div",{style:{marginTop:"15px"}},u.default.createElement(p.default,{style:{height:"200px"},config:N,eventHandlers:L,djsConfig:D})),u.default.createElement("div",{style:{marginLeft:"5px",marginTop:"15px",marginBottom:"20px"}},!l&&a.length>0&&u.default.createElement("span",null,"共计 文件夹 ",v.default.filter(a,{d:1}).length," 个,文件 ",v.default.reject(a,{d:1}).length," 个。"),a.length>1&&v.default.isEmpty(F)&&M.path.length>1&&u.default.createElement("span",{style:{marginLeft:"10px"}},u.default.createElement("i",{className:"fa fa-download"}),u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.downloadAll()}},"下载全部"))),this.state.copyModalShow&&u.default.createElement(_,{show:!0,project_key:o.key,close:function(){e.setState({copyModalShow:!1})},copy:j,data:s,i18n:n}),this.state.moveModalShow&&u.default.createElement(k,{show:!0,project_key:o.key,close:function(){e.setState({moveModalShow:!1})},move:T,data:s,i18n:n}),this.state.delNotifyShow&&u.default.createElement(x,{show:!0,close:this.delNotifyClose,data:s,del:O,i18n:n}))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,user:l.PropTypes.object.isRequired,project:l.PropTypes.string.isRequired,directory:l.PropTypes.string.isRequired,options:l.PropTypes.object,collection:l.PropTypes.array.isRequired,selectedItem:l.PropTypes.object.isRequired,query:l.PropTypes.object.isRequired,loading:l.PropTypes.bool.isRequired,itemLoading:l.PropTypes.bool.isRequired,indexLoading:l.PropTypes.bool.isRequired,index:l.PropTypes.func.isRequired,select:l.PropTypes.func.isRequired,addFile:l.PropTypes.func.isRequired,createFolderShow:l.PropTypes.bool.isRequired,cancelCreateFolder:l.PropTypes.func.isRequired,createFolder:l.PropTypes.func.isRequired,favorite:l.PropTypes.func.isRequired,update:l.PropTypes.func.isRequired,copy:l.PropTypes.func.isRequired,move:l.PropTypes.func.isRequired,del:l.PropTypes.func.isRequired},enumerable:!0}]),t}(l.Component);t.default=O,e.exports=t.default}).call(this)}finally{}},1820: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 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;n1&&g.default.isEmpty(R)){var U=F.path[F.path.length-2];H.push({id:U.id,name:u.default.createElement("div",null,u.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},u.default.createElement("i",{className:"fa fa-arrow-up"})),u.default.createElement(c.Link,{to:"/project/"+o.key+"/document"+("0"!==U.id?"/"+U.id:"")},"返回上级")),operation:u.default.createElement("div",null)})}h&&H.push({id:"createFolder",name:u.default.createElement(E,{i18n:n,loading:p,data:{},createFolder:v,collection:a,cancel:this.cancelEditRow,mode:"createFolder"}),operation:u.default.createElement("div",null)});var Y=g.default.filter(a,{d:1});g.default.map(Y,function(t,r){return I==t.id?void H.push({id:t.id,name:u.default.createElement(E,{i18n:n,loading:p,data:s,collection:a,edit:j,cancel:e.cancelEditRow,mode:"editFolder"}),operation:u.default.createElement("div",null)}):void H.push({id:t.id,name:u.default.createElement("div",null,u.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},u.default.createElement("i",{className:"fa fa-folder"})),u.default.createElement(c.Link,{to:"/project/"+o.key+"/document/"+t.id},t.name),t.favorited&&u.default.createElement("span",{title:"点击取消收藏",style:{"float":"right",color:"#FFD300",cursor:"pointer"},onClick:function(n){e.favorite(t.id)}},u.default.createElement("i",{className:"fa fa-star"}))),operation:u.default.createElement("div",null,D&&"active"==o.status&&N===t.id&&!p&&u.default.createElement(f.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:r,title:V,id:"dropdown-basic-"+r,onClick:e.cancelEditRow,onSelect:e.operateSelect.bind(e)},u.default.createElement(f.MenuItem,{eventKey:"download"},"下载"),u.default.createElement(f.MenuItem,{eventKey:"favorite"},t.favorited?"取消收藏":"收藏"),F.permissions&&F.permissions.indexOf("manage_project")!==-1&&u.default.createElement(f.MenuItem,{eventKey:"rename"},"重命名"),F.permissions&&F.permissions.indexOf("manage_project")!==-1&&u.default.createElement(f.MenuItem,{eventKey:"move"},"移动"),F.permissions&&F.permissions.indexOf("manage_project")!==-1&&u.default.createElement(f.MenuItem,{eventKey:"del"},"删除")),u.default.createElement("img",{src:C,className:p&&s.id===t.id?"loading":"hide"}))})});for(var G=g.default.reject(a,{d:1}),Z=g.default.filter(G,function(e){return g.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),K=G.length,X=function(t){var l=(0,w.getFileIconCss)(G[t].name);return I==G[t].id?(H.push({id:G[t].id,name:u.default.createElement(E,{i18n:n,loading:p,data:s,collection:a,edit:j,cancel:e.cancelEditRow,mode:"editFile",fileIconCss:l}),operation:u.default.createElement("div",null)}),"continue"):void H.push({id:G[t].id,name:u.default.createElement("div",null,u.default.createElement("span",{style:{marginRight:"5px",color:"#777","float":"left"}},u.default.createElement("i",{className:l})),g.default.findIndex(Z,{id:G[t].id})===-1?u.default.createElement("a",{target:"_blank",href:O+"/project/"+o.key+"/document/"+G[t].id+"/download"+("application/pdf"==G[t].type?"/"+G[t].name:""),download:"application/pdf"!=G[t].type&&G[t].name,style:{cursor:"pointer"}},G[t].name):u.default.createElement("a",{href:"#",style:{cursor:"pointer"},onClick:function(n){n.preventDefault(),e.previewImg(Z,G[t].id)}},G[t].name),u.default.createElement("span",{style:{"float":"right"}},G[t].parent!=i&&u.default.createElement(c.Link,{to:"/project/"+o.key+"/document"+("0"==G[t].parent?"":"/"+G[t].parent)},u.default.createElement("span",{style:{marginRight:"10px","float":"left"}},"打开目录")),G[t].favorited&&u.default.createElement("span",{title:"点击取消收藏",style:{"float":"left",color:"#FFD300",cursor:"pointer",marginRight:"10px"},onClick:function(n){e.favorite(G[t].id)}},u.default.createElement("i",{className:"fa fa-star"})),G[t].uploader&&u.default.createElement("span",{style:{marginRight:"10px","float":"left"}},G[t].uploader.name+" "+x.unix(G[t].uploaded_at).format("YYYY/MM/DD HH:mm")),u.default.createElement("span",{style:{"float":"left"}},e.getFileSize(G[t].size)))),operation:u.default.createElement("div",null,D&&"active"==o.status&&N===G[t].id&&!p&&u.default.createElement(f.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:t,title:V,id:"dropdown-basic-"+t,onClick:e.cancelEditRow,onSelect:e.operateSelect.bind(e)},u.default.createElement(f.MenuItem,{eventKey:"download"},"下载"),u.default.createElement(f.MenuItem,{eventKey:"favorite"},G[t].favorited?"取消收藏":"收藏"),F.permissions&&(F.permissions.indexOf("manage_project")!==-1||G[t].uploader.id==r.id)&&u.default.createElement(f.MenuItem,{eventKey:"rename"},"重命名"),F.permissions&&(F.permissions.indexOf("manage_project")!==-1||G[t].uploader.id==r.id)&&u.default.createElement(f.MenuItem,{eventKey:"move"},"移动"),F.permissions&&(F.permissions.indexOf("manage_project")!==-1||G[t].uploader.id==r.id)&&u.default.createElement(f.MenuItem,{eventKey:"del"},"删除")),u.default.createElement("img",{src:C,className:p&&s.id===G[t].id?"loading":"hide"}))})},Q=0;Q0&&u.default.createElement("span",null,"共计 文件夹 ",g.default.filter(a,{d:1}).length," 个,文件 ",g.default.reject(a,{d:1}).length," 个。"),a.length>1&&g.default.isEmpty(R)&&F.path.length>1&&u.default.createElement("span",{style:{marginLeft:"10px"}},u.default.createElement("i",{className:"fa fa-download"}),u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.downloadAll()}},"下载全部"))),this.state.copyModalShow&&u.default.createElement(k,{show:!0,project_key:o.key,close:function(){e.setState({copyModalShow:!1})},copy:T,data:s,i18n:n}),this.state.moveModalShow&&u.default.createElement(S,{show:!0,project_key:o.key,close:function(){e.setState({moveModalShow:!1})},move:M,data:s,i18n:n}),this.state.delNotifyShow&&u.default.createElement(_,{show:!0,close:this.delNotifyClose,data:s,del:P,i18n:n}))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,user:l.PropTypes.object.isRequired,project:l.PropTypes.object.isRequired,directory:l.PropTypes.string.isRequired,options:l.PropTypes.object,collection:l.PropTypes.array.isRequired,selectedItem:l.PropTypes.object.isRequired,query:l.PropTypes.object.isRequired,loading:l.PropTypes.bool.isRequired,itemLoading:l.PropTypes.bool.isRequired,indexLoading:l.PropTypes.bool.isRequired,index:l.PropTypes.func.isRequired,select:l.PropTypes.func.isRequired,addFile:l.PropTypes.func.isRequired,createFolderShow:l.PropTypes.bool.isRequired,cancelCreateFolder:l.PropTypes.func.isRequired,createFolder:l.PropTypes.func.isRequired,favorite:l.PropTypes.func.isRequired,update:l.PropTypes.func.isRequired,copy:l.PropTypes.func.isRequired,move:l.PropTypes.func.isRequired,del:l.PropTypes.func.isRequired},enumerable:!0}]),t}(l.Component);t.default=P,e.exports=t.default}).call(this)}finally{}},2068:function(e,t,n){try{(function(){"use strict";function e(e){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_OPTIONS",promise:function(t){return t.request({url:"/project/"+e+"/document/options"})}})}function r(e,t,n){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_INDEX",promise:function(r){return r.request({url:"/project/"+e+"/document/directory/"+t+(n?"?"+n:"")})}})}function o(e,t){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_CREATE_FOLDER",promise:function(n){return n.request({url:"/project/"+e+"/document/directory",method:"post",data:t})}})}function i(e,t,n){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_UPDATE",promise:function(r){return r.request({url:"/project/"+e+"/document/"+t,method:"put",data:n})}})}function a(e,t){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/document/"+t,method:"delete"})}})}function s(e,t){return(0,h.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 l(e,t){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_MOVE",promise:function(n){return n.request({url:"/project/"+e+"/document/move",method:"post",data:t})}})}function u(e){return{type:"DOCUMENT_SELECT",id:e}}function c(e){return{type:"DOCUMENT_ADD",file:e}}function d(e){return{type:"DOCUMENT_SORT",key:e}}function f(e,t){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_DIRTREE_GET",promise:function(n){return n.request({url:"/project/"+e+"/document/dirtree?currentdir="+t})}})}function p(e,t){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_DIRCHILDREN_GET",parentid:t,promise:function(n){return n.request({url:"/project/"+e+"/document/"+t+"/dirs"})}})}function m(e,t,n){return(0,h.asyncFuncCreator)({constant:"DOCUMENT_FAVORITE",promise:function(r){return r.request({url:"/project/"+e+"/document/"+t+"/favorite",method:"post",data:{flag:n}})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.getOptions=e,t.index=r,t.createFolder=o,t.update=i,t.del=a,t.copy=s,t.move=l,t.select=u,t.addFile=c,t.sort=d,t.getDirTree=f,t.getDirChildren=p,t.favorite=m;var h=n(26)}).call(this)}finally{}}}); -//# sourceMappingURL=document-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=document-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/events-2fafc167f8a6ebfe8dae.js b/public/assets/events-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/events-2fafc167f8a6ebfe8dae.js rename to public/assets/events-d133ff15592d3c829f3c.js index 19cd895c..373c2224 100644 --- a/public/assets/events-2fafc167f8a6ebfe8dae.js +++ b/public/assets/events-d133ff15592d3c829f3c.js @@ -1,3 +1,3 @@ webpackJsonp([25],{40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var o=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(a.onChange=r.bind(null,this.props.value)),l.default.createElement("input",o({},this.props,{type:"checkbox",name:t},a))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.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),r=a(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},1822:function(e,t,n){try{(function(){"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("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;nparseFloat(e.maxValue)&&(a.minValue="最小值不能大于最大值"),!e.maxLength&&0!==e.maxLength||/^\d+$/.test(e.maxLength)&&!(parseInt(e.maxLength)<1)||(a.maxLength="请输入大于1的整数"),a},_=function(e){function t(e){r(this,n),s(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)}o(t,e),i(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.initializeForm,n=e.data;"MultiSelect"!==n.type&&"CheckboxGroup"!==n.type||!b.default.isArray(n.defaultValue)?"DatePicker"===n.type&&n.defaultValue&&(n.defaultValue=E.unix(n.defaultValue)):n.defaultValue=n.defaultValue&&n.defaultValue.join(","),t(n)}},{key:"handleSubmit",value:function(){var e,t,n,a,r,o,l;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e=this.props,t=e.values,n=e.config,a=e.close,r=e.data,o={},t.defaultValue&&"DatePicker"===r.type?o.defaultValue=parseInt(E(t.defaultValue).startOf("day").format("X")):o.defaultValue=t.defaultValue,i.next=9,regeneratorRuntime.awrap(n(t));case 9:l=i.sent,0===l?(this.setState({ecode:0}),a(),g.notify.show("设置完成。","success",2e3)):this.setState({ecode:l});case 11:case"end":return i.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,r=n.defaultValue,o=n.maxValue,i=n.minValue,s=n.maxLength,u=e.dirty,c=e.handleSubmit,p=e.invalid,y=e.submitting,v=e.data,g=[],E={};return["Select","MultiSelect","CheckboxGroup","RadioGroup"].indexOf(v.type)!==-1?(v.optionValues&&(g=b.default.map(v.optionValues||[],function(e){return{label:e.name,value:e.id}})),E=d.default.createElement(m.default,{options:g,simpleValue:!0,multi:"CheckboxGroup"===v.type||"MultiSelect"===v.type,value:r.value||null,onChange:function(e){r.onChange(e)},placeholder:"设置默认值"})):E="TextArea"===v.type||"RichTextEditor"===v.type?d.default.createElement(f.FormControl,l({componentClass:"textarea"},r,{placeholder:"输入默认值"})):"DatePicker"===v.type?d.default.createElement(h.default,{style:{width:"80%"},locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:r.value,onChange:function(e){r.onChange(e)}}):d.default.createElement(f.FormControl,l({type:"Number"===v.type?"number":"text"},r,{placeholder:"输入默认值"})),d.default.createElement(f.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},d.default.createElement(f.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},d.default.createElement(f.Modal.Title,{id:"contained-modal-title-la"},"字段属性配置 - "+v.name)),d.default.createElement("form",{onSubmit:c(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},d.default.createElement(f.Modal.Body,null,d.default.createElement(f.FormGroup,{validationState:r.value&&r.error?"error":null},d.default.createElement(f.FormControl,l({type:"hidden"},a)),d.default.createElement(f.ControlLabel,null,"默认值"),E,r.error&&d.default.createElement(f.HelpBlock,null,r.error)),("Number"===v.type||"Integer"===v.type)&&d.default.createElement("div",null,d.default.createElement(f.FormGroup,{style:{width:"45%",display:"inline-block"},validationState:i.value&&i.error?"error":null},d.default.createElement(f.ControlLabel,null,"最小值"),d.default.createElement(f.FormControl,l({type:"Number"},i,{placeholder:"输入最小值"})),i.error&&d.default.createElement(f.HelpBlock,null,i.error)),d.default.createElement(f.FormGroup,{style:{width:"45%",display:"inline-block","float":"right"},validationState:o.value&&o.error?"error":null},d.default.createElement(f.ControlLabel,null,"最大值"),d.default.createElement(f.FormControl,l({type:"Number"},o,{placeholder:"输入最大值"})),o.error&&d.default.createElement(f.HelpBlock,null,o.error))),("TextArea"==v.type||"Text"==v.type||"RichTextEditor"==v.type)&&d.default.createElement(f.FormGroup,{style:{width:"45%"},validationState:s.value&&s.error?"error":null},d.default.createElement(f.ControlLabel,null,"最大长度"),d.default.createElement(f.FormControl,l({type:"Number"},s,{placeholder:"输入最大长度,默认不限制"})),s.error&&d.default.createElement(f.HelpBlock,null,s.error))),d.default.createElement(f.Modal.Footer,null,d.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!y&&t[this.state.ecode]),d.default.createElement("img",{src:C,className:y?"loading":"hide"}),d.default.createElement(f.Button,{disabled:y||!u||p,type:"submit"},"确定"),d.default.createElement(f.Button,{bsStyle:"link",disabled:y,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,optionValues:u.PropTypes.array,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,dirty:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,config:u.PropTypes.func.isRequired,data:u.PropTypes.object.isRequired,initializeForm:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"field",fields:["id","defaultValue","maxValue","minValue","maxLength"],validate:w})(t)||t}(u.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1832: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 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 l=function(){function e(e,t){for(var n=0;nr&&s>l||(e.move(a,r),t.getItem().index=r)}}},v=function(e){function t(e){r(this,n),i(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={editing:!1,touched:!1,hasErr:!1,text:""},this.save=this.save.bind(this)}o(t,e),l(t,[{key:"save",value:function(){var e=this.props,t=e.edit,n=e.index,a=e.id,r=t(n,a,this.state.text);r?this.setState({editing:!1,hasErr:!1}):this.setState({hasErr:!0})}},{key:"edit",value:function(){var e,t,n,a;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return e=this.props,t=e.index,n=e.id,a=e.text,this.props.addEditingCards(n),r.next=7,regeneratorRuntime.awrap(this.setState({text:a,touched:!0,hasErr:!1,editing:!0}));case 7:m("#input-optionvalue-"+t).select();case 8:case"end":return r.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.text,a=t.isDragging,r=t.connectDragSource,o=t.connectDropTarget,l=t.index,i=t.isEdited,s=void 0!==i&&i,c=t.edit,f=t.undo,p=t.del,m=a?0:1,y={"float":"right",cursor:"pointer",marginLeft:"5px"};return r(o(u.default.createElement("div",{style:{opacity:m},className:"dragcard"},this.state.editing?u.default.createElement("div",{style:{width:"100%"}},u.default.createElement(d.FormGroup,{style:{marginBottom:"0px"},validationState:this.state.touched&&this.state.hasErr?"error":null},u.default.createElement(d.FormControl,{id:"input-optionvalue-"+l,style:{height:"21px",fontSize:"10px"},type:"text",value:this.state.text,onKeyDown:function(t){"13"==t.keyCode&&(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:"输入可选值"}))):u.default.createElement("span",null,n,s?u.default.createElement("span",{style:{color:"red"}}," - 已编辑"):""),!!p&&!this.state.editing&&u.default.createElement("span",{style:y,onClick:p,title:"删除",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-remove"})),s&&!this.state.editing&&u.default.createElement("span",{style:y,onClick:function(){f(l)},title:"重置",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-undo"})),!!c&&!this.state.editing&&u.default.createElement("span",{style:y,onClick:this.edit.bind(this),title:"编辑",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-edit"})))))}}],[{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,del:s.PropTypes.func.isRequired,isEdited:s.PropTypes.bool,addEditingCards:s.PropTypes.func.isRequired,edit:s.PropTypes.func.isRequired,undo:s.PropTypes.func,move:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,f.DragSource)(p.CardTypes.CARD,y,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,f.DropTarget)(p.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},1834: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 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 l=Object.assign||function(e){for(var t=1;t0&&u.default.createElement("div",{style:{marginTop:"-6px"}},"通过上下拖拽改变显示顺序。",u.default.createElement(c.Button,{bsStyle:"link",onClick:this.sort.bind(this)},"按字母排序")),n.length>0?n.map(function(t,n){return u.default.createElement(C.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)})}):u.default.createElement("div",{style:{paddingBottom:"6px"}},"可选值列表为空"),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.FormGroup,{controlId:"formControlsText",validationState:this.state.addErr?"error":null},u.default.createElement(c.Col,{sm:12},u.default.createElement(c.FormControl,{style:{marginTop:"5px"},type:"text",ref:"addOpt",placeholder:"输入可选值,回车即可添加",onChange:this.handleChange.bind(this),onKeyDown:function(t){"13"==t.keyCode&&(t.preventDefault(),e.add())}}))))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&l[this.state.ecode]),u.default.createElement("img",{src:w,className:i?"loading":"hide"}),u.default.createElement(c.Button,{disabled:!b.default.isEmpty(a)||i||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:i,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}]);var n=t;return t=(0,f.DragDropContext)(m.default)(t)||t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1838: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 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 l=function(){function e(e,t){for(var n=0;n0?u.default.createElement("span",null,"共有应用项目 ",u.default.createElement("strong",null,t.length)," 个"):u.default.createElement("span",null,"暂无项目应用")),!a&&t.length>0&&u.default.createElement(d.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("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(c.Link,{to:"/project/"+e.key},e.name)):u.default.createElement("span",null,e.name,"(已关闭)")),u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.screens)?"-":p.default.map(e.screens,function(t,n){return u.default.createElement("li",{key:n},u.default.createElement(c.Link,{to:"/project/"+e.key+"/screen"},t.name))}))):u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.screens)?"-":p.default.map(e.screens,function(e,t){return u.default.createElement("li",{key:t},e.name)})))))})))),u.default.createElement(d.Modal.Footer,null,u.default.createElement(d.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=y,e.exports=t.default}).call(this)}finally{}},2070:function(e,t,n){try{(function(){"use strict";function e(e){return(0,s.asyncFuncCreator)({constant:"FIELD_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/field"})}})}function a(e,t){return(0,s.asyncFuncCreator)({constant:"FIELD_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/field",method:"post",data:t})}})}function r(e,t){return(0,s.asyncFuncCreator)({constant:"FIELD_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/field/"+t.id,method:"put",data:t})}})}function o(e){return{type:"FIELD_SELECT",id:e}}function l(e,t){return(0,s.asyncFuncCreator)({constant:"FIELD_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/field/"+t,method:"delete"})}})}function i(e,t){return(0,s.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=r,t.select=o,t.del=l,t.viewUsed=i;var s=n(26)}).call(this)}finally{}}}); -//# sourceMappingURL=field-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=field-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/gantt-2fafc167f8a6ebfe8dae.js b/public/assets/gantt-2fafc167f8a6ebfe8dae.js deleted file mode 100644 index bbbaf1d0..00000000 --- a/public/assets/gantt-2fafc167f8a6ebfe8dae.js +++ /dev/null @@ -1,14 +0,0 @@ -webpackJsonp([4],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=r;var i=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=i;var a={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=a;var o=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=o;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},32:function(e,t,n){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!e)return"";if(!t)return s.unix(e).format("YYYY/MM/DD HH:mm:ss");var n=[{value:31536e3,suffix:"年前",max:2},{value:2592e3,suffix:"个月前",max:11},{value:604800,suffix:"周前",max:4},{value:86400,suffix:"天前",max:6},{value:3600,suffix:"小时前",max:23},{value:600,suffix:"0分钟前",max:5}],r="刚刚",i=t-e;if(i<=0)return r;for(var a=0;a<6;a++){var o=l.default.floor(i/n[a].value);if(o>=1){r=l.default.min([o,n[a].max])+n[a].suffix;break}}return r}function i(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var r={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},i=t.substr(n+1);return r[i]?"fa fa-file-"+r[i]+"-o":"fa fa-file-o"}function a(e,t,n){var r=e<0?-1:1;e=Math.abs(e);var i=[],a=l.default.ceil(e);if(a>=0){var o=l.default.floor(e/t);o>0&&i.push(o+"w")}if(a=e%t,a>=0){var s=l.default.floor(a/n);s>0&&i.push(s+"d")}if(a%=n,a>=0){var u=l.default.floor(a/60);u>0&&i.push(u+"h")}return a%=60,a>0&&i.push(a+"m"),i.length<=0&&i.push("0m"),(r<0?"-":"")+i.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=r,t.getFileIconCss=i,t.ttFormat=a;var o=n(3),l=e(o),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var a=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(i.onChange=r.bind(null,this.props.value)),l.default.createElement("input",a({},this.props,{type:"checkbox",name:t},i))}}),t.CheckboxGroup=l.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: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),r=i(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},44:function(e,t,n){!function(t,r){e.exports=r(n(1),n(121))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}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,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 l(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&&(g=Math.max(b.minX,Math.min(b.maxX,g)),v=Math.max(b.minY,Math.min(b.maxY,v))),this.setState({zoomLevel:r,offsetX:g,offsetY:v})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,m.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),i=r.height-2*this.props.imagePadding,a=r.width-2*this.props.imagePadding;n||(i=Math.min(i,t),a=Math.min(a,e));var o=a/i,l=e/t;return o>l?{width:e*i/t,height:i}:{width:a,height:t*a/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),i=0;i=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2;var a=0;return a=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,{maxX:i,maxY:a,minX:-1*i,minY:-1*a}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(h.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,m.getWindowWidth)(),height:(0,m.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=a?(this.requestMoveNext(e),r=i,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*a)&&(this.requestMovePrev(e),r=i,this.scrollX=0)}0!==r&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},r))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=h.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)h.MIN_ZOOM_LEVEL?this.changeZoom(h.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=h.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,r=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===r||this.setState({offsetX:n,offsetY:r})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=h.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,r=this.caption.scrollTop;(e.deltaY>0&&t+r>=n||e.deltaY<0&&r<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var r=this,i=new Image;i.onerror=function(){t("image load error")},i.onload=function(){r.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},i.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(r){return r?void(window.console&&window.console.warn(r)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(r){var i=r.name;t[i]&&!e.isImageLoaded(t[i])&&e.loadImage(t[i],n(i,t[i]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:h.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,r=n.animationDisabled,i=n.animationDuration,a=n.clickOutsideToClose,o=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,w=this.state,k=w.zoomLevel,_=w.offsetX,E=w.offsetY,x=w.isClosing,C=this.getLightboxRect(),T={};!r&&this.isAnimating()&&(T=u({},T,{transition:"transform "+i+"ms"}));var P={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;P[t]=n});var S=[],O=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var i=u({},r,T);k>h.MIN_ZOOM_LEVEL&&(i.cursor="move");var a=e.getBestImageForType(t);if(null===a){var l=void 0;return l=b<10?d.default.createElement("div",{className:v.loadingContainer__icon},(0,m.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+v.loadingCircle+" "+v.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint})),void S.push(d.default.createElement("div",{className:n+" "+v.image+" not-loaded ril-not-loaded",style:i,key:e.props[t]+P[t]},d.default.createElement("div",{className:v.loadingContainer},l)))}i.width=a.width,i.height=a.height;var c=a.src;o?(i.backgroundImage="url('"+c+"')",S.push(d.default.createElement("div",{className:n+" "+v.image+" "+v.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:i,key:c+P[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+v.downloadBlocker})))):S.push(d.default.createElement("img",{className:n+" "+v.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:i,src:c,key:c+P[t],alt:s||(0,m.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+v.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*_,y:-1*E,zoom:R})),O("prevSrc","image-prev ril-image-prev "+v.imagePrev,t.getTransform({x:-1*C.width}));var j=function(){},M=[v.toolbarItemChild,v.builtinButton,v.zoomInButton],F=[v.toolbarItemChild,v.builtinButton,v.zoomOutButton],L=this.handleZoomInButtonClick,I=this.handleZoomOutButtonClick;k===h.MAX_ZOOM_LEVEL&&(M.push(v.builtinButtonDisabled),L=j),k===h.MIN_ZOOM_LEVEL&&(F.push(v.builtinButtonDisabled),I=j),this.isAnimating()&&(L=j,I=j);var q={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:a?this.requestClose:j,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:q},d.default.createElement("div",{className:"outer ril-outer "+v.outer+" "+v.outerAnimating+(x?" closing ril-closing "+v.outerClosing:""),style:{transition:"opacity "+i+"ms",animationDuration:i+"ms",animationDirection:x?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+v.inner,onClick:a?this.closeIfClickInner:j},S),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+v.navButtons+" "+v.navButtonPrev,key:"prev",onClick:this.isAnimating()?j:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+v.navButtons+" "+v.navButtonNext,key:"next",onClick:this.isAnimating()?j:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+v.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+v.toolbarSide+" "+v.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+v.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",v.toolbarSide,v.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+v.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+M.join(" "),onClick:L})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+F.join(" "),onClick:I})),d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+v.toolbarItemChild+" "+v.builtinButton+" "+v.closeButton),onClick:this.isAnimating()?j:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+v.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+v.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,r=e.y,a=void 0===r?null:r,o=e.zoom,l=void 0===o?null:o,s=b<10,u=[];return null===n&&null===a||u.push(s?"translate("+(n||0)+"px,"+(a||0)+"px)":"translate3d("+(n||0)+"px,"+(a||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),i({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);w.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},w.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=w},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function i(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function a(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function o(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=r,t.getWindowWidth=i,t.getWindowHeight=a,t.isInIframe=o},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), -t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var a=v++;n=g||(g=l(t)),r=c.bind(null,n,a,!1),i=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=p.bind(null,n),i=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=d.bind(null,n),i=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(i),a&&URL.revokeObjectURL(a)}var f={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=m(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var a=[],o=0;oi&&s>o||(e.moveCard(r,i),t.getItem().index=i)}}},h=function(e){function t(){i(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,i=e.connectDropTarget,a=e.deleteCard,o=n?0:1,l={"float":"right",cursor:"pointer"};return r(i(u.default.createElement("div",{style:{opacity:o},className:"dragcard"},t,!!a&&u.default.createElement("span",{style:l,onClick:a,title:"删除",className:"rm-icon"},u.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,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},58:function(e,t,n){!function(t,r){e.exports=r(n(1),n(13))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,n){t.exports=e},function(e,t,n){"use strict";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 a(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 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 l=function(){function e(e,t){for(var n=0;n
    '),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,i,a,o,l,s,u,c,d,p,f,m;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),a=0,s=d.length;a'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),m=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},r=function(){var e,t,n,r,i,a,o;for(r=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],a=0,o=n.length;a'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=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,i,a;if(n=e.hiddenFileInput.files,n.length)for(i=0,a=n.length;i',this.options.dictFallbackText&&(r+="

    "+this.options.dictFallbackText+"

    "),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(i=t.createElement('
    '),i.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=i?i:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,i,a;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(o=["TB","GB","MB","KB","b"],n=l=0,s=o.length;l=t){r=e/Math.pow(this.options.filesizeBase,4-n),i=a;break}r=Math.round(10*r)/10}return""+r+" "+i},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,r,i;for(i=[],n=0,r=e.length;n0){for(a=0,o=n.length;a1024*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,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=N;c=0<=N?++j:--j)a.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(_,a,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var i,a,o;for(a=0,o=e.length;ac;)t=i[4*(s-1)+3],0===t?a=s:c=s,s=a+c>>1;return u=s/o,0===u?1:u},o=function(e,t,n,r,i,o,l,s,u,c){var d;return d=a(t),e.drawImage(t,n,r,i,o,l,s,u,c/d)},i=function(e,t){var n,r,i,a,o,l,s,u,c;if(i=!1,c=!0,r=e.document,u=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",a=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[s](l+n.type,a,!1),!i&&(i=!0)?t.call(e,n.type||n):void 0},o=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(o,50)}return a("poll")},"complete"!==r.readyState){if(r.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&o()}return r[n](l+"DOMContentLoaded",a,!1),r[n](l+"readystatechange",a,!1),e[n](l+"load",a,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},i(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},o=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var a;for(a in e);return"undefined"==typeof a||r.call(e,a)};e.exports=function l(){var e,t,n,r,i,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,r=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var i=0;i1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,o&&p(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=E}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function k(e){return!!e&&"object"==typeof e}function _(e){return y(e)?a(e):l(e)}var E=9007199254740991,x="[object Arguments]",C="[object Function]",T="[object GeneratorFunction]",P=/^(?:0|[1-9]\d*)$/,S=Object.prototype,O=S.hasOwnProperty,R=S.toString,j=S.propertyIsEnumerable,M=i(Object.keys,Object),F=Math.max,L=!j.call({valueOf:1},"valueOf"),I=Array.isArray,q=c(function(e,t){if(L||f(t)||y(t))return void u(t,_(t),e);for(var n in t)O.call(t,n)&&o(e,n,t[n])});e.exports=q},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&i(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function i(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&n(e,!r)}function o(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return a(e)})}e.exports=o},86:function(e,t,n){try{(function(){"use strict";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 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 o=Object.assign||function(e){for(var t=1;ts||i<=0)&&(i=1);for(var u=[],d=0;ds)break;u.push(f)}return c.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},c.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},c.default.createElement("span",null,p.default.add((i-1)*a,1),"-",i*a>=n?n:i*a," 共",n,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},s>1&&c.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},i-l>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),i-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,i-1),title:"前页"},"<")),p.default.map(u,function(t,n){return c.default.createElement("li",{key:n,className:t===i?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),i1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,p.default.add(i,1)),title:"后页"},">")),s-l>i&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:u.PropTypes.object,refresh:u.PropTypes.func,total:u.PropTypes.number.isRequired,curPage:u.PropTypes.number,sizePerPage:u.PropTypes.number,paginationSize:u.PropTypes.number},enumerable:!0}]),t}(u.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,r=1;rAn error occured:

    "+a(p.message+"",!0)+"
    ";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,i,a,o,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((a=this.rules.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]||""});else if(a=this.rules.heading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(t&&(a=this.rules.nptable.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(a,t,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(e)){for(e=e.substring(a[0].length),o=a[2],this.tokens.push({type:"list_start",ordered:o.length>1}),a=a[0].match(this.rules.item),r=!1,p=a.length,c=0;c1&&l.length>1||(e=a.slice(c+1).join("\n")+e,c=p-1)),i=r||/\n\n(?!\s*$)/.test(s),c!==p-1&&(r="\n"===s.charAt(s.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(e))e=e.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===a[1]||"script"===a[1]||"style"===a[1]),text:a[0]});else if(!n&&t&&(a=this.rules.def.exec(e)))e=e.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(t&&(a=this.rules.table.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,r){var i=new n(t,r);return i.output(e)},n.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):(n=a(i[1]),r=n),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):a(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(a(i[2],!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(a(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(i[0].length),n=a(i[1]),r=n,o+=this.renderer.link(r,null,n);return o},n.prototype.outputLink=function(e,t){var n=a(t.href),r=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,a(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:a(e,!0))+"\n
    \n":"
    "+(n?e:a(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(o(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var a='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},i.parse=function(e,t,n){var r=new i(t,n);return r.parse(e)},i.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,a="",o="";for(n="",e=0;e"+(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?(i+=t[e].id+'["'+n+'"];',"continue"):void p.default.map(t[e].actions,function(r){p.default.map(r.results,function(a){i+=t[e].id+'["'+n+'"]',i+='--"'+p.default.escape(r.name)+"("+r.id+')"-->';var o=p.default.find(t,{id:a.step});i+=o.id+'["'+p.default.escape(o.name)+'"];'})})},o=0;o0?_.default.pick(this.state.values,v):{}):_.default.extend(g,this.state.values),b=[],_.default.mapValues(g,function(e,t){var n=_.default.findIndex(h,{key:t}),r=n===-1?{}:h[n];e?"labels"===r.key?_.default.isArray(e)?(b=_.default.uniq(_.default.map(_.default.filter(e,function(e){return!!e.className}),function(e){return _.default.trim(e.value)})),g[t]=_.default.uniq(_.default.map(e,function(e){return _.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(r.type)!==-1?g[t]=e.split(","):"DatePicker"===r.type?g[t]=parseInt(P(e).startOf("day").format("X")):"DateTimePicker"===r.type?g[t]=parseInt(P(e).format("X")):"Number"===r.type?g[t]=parseFloat(e):"Integer"===r.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),w=0,_.default.isEmpty(l)||!l.id){k.next=37;break}if(!d||!f){k.next=31;break}return k.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(w=k.sent,0===w){k.next=31;break}return this.setState({ecode:w}),k.abrupt("return");case 31:return k.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:w=k.sent,0===w&&(i(),d&&f?E.notify.show("提交完成。","success",2e3):E.notify.show("问题已更新。","success",2e3)),k.next=42;break;case 37:return u.id&&_.default.extend(g,{parent_id:u.id}),k.next=40,regeneratorRuntime.awrap(t(g));case 40:w=k.sent,0===w&&(y?this.setState({preCreated:!0}):(i(),E.notify.show("问题已创建。","success",2e3)));case 42:0===w&&b.length>0&&r(b),this.setState({ecode:w});case 44:case"end":return k.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props.close;this.setState({ecode:0}),e()}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,r=_.default.find(n.types,{id:e}).schema;if(r){var i={},a={};_.default.map(r,function(e){t.state.errors[e.key]?a[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&_.default.isArray(e.defaultValue)?a[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&_.default.isString(e.defaultValue)?a[e.key]=e.defaultValue.split(","):a[e.key]=e.defaultValue:t.state.values[e.key]&&(a[e.key]=t.state.values[e.key]),e.required&&!a[e.key]&&(i[e.key]="必填")}),a.type=e,this.setState({errors:i,touched:{},schema:r,values:a})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void E.notify.show("文档上传失败。","error",2e3);var n=t.data,r=n.field,i=void 0===r?"":r,a=n.file,o=void 0===a?{}:a;this.state.values[i]=this.state.values[i]||[],this.state.values[i].push(o.id),e.field=i,e.fid=o.id,i&&this.state.errors[i]?(delete this.state.errors[i],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=_.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var r=_.default.find(this.state.schema,{key:t});r&&r.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=_.default.trim(e),n=t.split(" "),r=!0;return _.default.map(n,function(e){if(e){_.default.endsWith(e.toLowerCase(),"w")||_.default.endsWith(e.toLowerCase(),"d")||_.default.endsWith(e.toLowerCase(),"h")||_.default.endsWith(e.toLowerCase(),"m")||(r=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(r=!1)}}),r}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||_.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&_.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!P(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.options,i=t.close,a=t.loading,o=t.project,l=t.data,s=void 0===l?{}:l,d=t.parent,f=void 0===d?{}:d,g=t.isSubtask,b=void 0!==g&&g,k=t.isFromWorkflow,E=void 0!==k&&k,x=this.state,P=x.schema,R=x.createOther,j=x.preCreated,M=_.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),F={height:"580px",overflow:"auto"};return E&&(F={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:i,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},s.id?E?"流程页面":"编辑问题 - "+s.no:b?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:F,ref:"createModal"},!E&&!b&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,o.name||"-")))),!E&&b&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,f.title?f.no+"-"+f.title:s.parent&&s.parent.title?s.parent.no+"-"+s.parent.title:"-")))),!E&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:M,disabled:a,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),_.default.map(P,function(t,n){var i=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:i+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:a,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+o.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(T.MultiRowsTextEditor,{id:i+"-field-textarea-"+t.key,disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+o.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&r.permissions&&r.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(m.default,{multi:!0,disabled:a,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:_.default.map(r.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:a,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:_.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(h.CheckboxGroup,{ -style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},_.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(h.Checkbox,{disabled:a,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},_.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:a,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(v.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&r.permissions&&r.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+o.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(w.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!a&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),j&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:S,className:a?"loading":"hide"}),!s.id&&u.default.createElement(c.Checkbox,{disabled:a,checked:R,onClick:function(){e.setState({createOther:!R})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:s.id&&this.getChangedKeys().length<=0&&E===!1||_.default.isEmpty(P)||!_.default.isEmpty(this.state.errors)||a||j,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n'+l+''),r.push(o)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var i=t.match(/\[.*?\]\(.*?\)/gi);return i&&p.default.forEach(i,function(e,n){var r=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");r.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,i=t.fieldKey,a=t.value,o=void 0===a?"":a,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(i,o),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(m.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n/gi),i=[];return r&&c.default.forEach(r,function(t,r){var a=new RegExp('^$');if(a.exec(t)){var o=RegExp.$1;if(!o)return;n=n.replace(t,''),i.push(o)}}),{html:n,imgFiles:i}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,i=t.fieldKey,a=t.value,o=this.state,l=o.inlinePreviewShow,u=o.photoIndex,c=this.extractImg(i,a||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:v}}).call(this)}finally{}},112:function(e,t,n){var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};r=function(){return a}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},115:function(e,t,n){function r(e){return e()}var i=n(1),a=n(13),o=n(71),l=n(25),s=n(112),u=i.createFactory(n(116)),c=n(117),d=n(119),p=n(207),f=n(13).unstable_renderSubtreeIntoContainer,m=n(70),h=n(69),y=s.canUseDOM?window.HTMLElement:{},g=s.canUseDOM?document.body:{appendChild:function(){}},v=h({displayName:"Modal",statics:{setAppElement:function(e){g=c.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:l.bool.isRequired,style:l.shape({content:l.object,overlay:l.object}),portalClassName:l.string,bodyOpenClassName:l.string,appElement:l.instanceOf(y),onAfterOpen:l.func,onRequestClose:l.func,closeTimeoutMS:l.number,ariaHideApp:l.bool,shouldCloseOnOverlayClick:l.bool,parentSelector:l.func,role:l.string,contentLabel:l.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&&d.add(this);var e=r(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&&d.add(this),e.isOpen||d.remove(this);var t=r(this.props.parentSelector),n=r(e.parentSelector);n!==t&&(t.removeChild(this.node),n.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){d.remove(this),this.props.ariaHideApp&&c.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 r=this;setTimeout(function(){r.removePortal()},n-t)}else this.removePortal()}},removePortal:function(){a.unmountComponentAtNode(this.node);var e=r(this.props.parentSelector);e.removeChild(this.node),0===d.count()&&p(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||d.count()>0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(m({},e,{defaultStyles:v.defaultStyles})),this.node)},render:function(){return o.noscript()}});v.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=v},116:function(e,t,n){var r=(n(1),n(71)),i=n(118),a=n(120),o=n(70),l=n(69),s=r.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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(){i.returnFocus(),i.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(i.setupScopedFocus(this.node),i.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&&a(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"},r=n.base;return this.state.afterOpen&&(r+=" "+n.afterOpen),this.state.beforeClose&&(r+=" "+n.beforeClose),"string"==typeof t&&t?[r,t].join(" "):r},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:o({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:o({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function r(e){o(e),(e||s).setAttribute("aria-hidden","true")}function i(e){o(e),(e||s).removeAttribute("aria-hidden")}function a(e,t){e?r(t):i(t)}function o(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=a,t.setElement=n,t.show=i,t.hide=r,t.resetForTesting=l},118:function(e,t,n){function r(e){s=!0}function i(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=a(l)[0]||l;e.focus()}},0)}}var a=n(72),o=[],l=null,s=!1;t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=o.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",i,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",i))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",i)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",i))}},119: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}}},120:function(e,t,n){var r=n(72);e.exports=function(e,t){var n=r(e);if(!n.length)return void t.preventDefault();var i=n[t.shiftKey?0:n.length-1],a=i===document.activeElement||e===document.activeElement;if(a){t.preventDefault();var o=n[t.shiftKey?n.length-1:0];o.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function i(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function a(e){return{type:"WORKFLOW_SELECT",id:e}}function o(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=i,t.select=a,t.delNotify=o,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(i,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.parent_id,i=n.type,a=e.handleSubmit,o=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:a(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null -},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(m.default.Async,{clearable:!1,disabled:l,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(m.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:i.value,onChange:function(e){i.onChange(e)},placeholder:"选择问题类型"}),i.touched&&i.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},i.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||o,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:k})(t)||t}(u.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},180:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(i,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,r=e.handleSubmit,i=e.invalid,a=e.submitting,o=e.issue;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.no)),c.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(m.default.Async,{clearable:!1,disabled:a,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:a?"loading":"hide"}),c.default.createElement(p.Button,{disabled:a||i,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:k})(t)||t}(u.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},184:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&n(o),i(),v.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,r=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(r.labels||[],function(e){return{value:e,label:e}})}:{labels:(r.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,r=e.handleSubmit,i=e.invalid,a=e.submitting,o=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+o.no)),u.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(h.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:a,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),u.default.createElement("img",{src:b,className:a?"loading":"hide"}),u.default.createElement(d.Button,{disabled:a||i,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},186:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0)){s.next=11;break}return o=a[e-1].id,s.next=9,regeneratorRuntime.awrap(n(o));case 9:l=s.sent,0===l&&r();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function h(e){var t,n,h,r,i,a,o,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,h=t.forward,r=t.visitedIndex,i=t.visitedCollection,a=void 0===i?[]:i,o=w.default.add(r,e),!a[o]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(a[o]));case 10:l=s.sent,0===l&&h(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,r,i,a,o;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,r=t.show,i=t.watch,a=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(r(n.id));case 8:a=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(o=n.watching,this.watch(n.id,!o)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g=this.props.watch,r.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=r.sent,0===n?t?k.notify.show("关注成功。","success",2e3):k.notify.show("已取消关注。","success",2e3):t?k.notify.show("关注失败。","error",2e3):k.notify.show("取消失败。","error",2e3);case 5:case"end":return r.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t=this.props,n=t.show,r=t.record,a.next=5,regeneratorRuntime.awrap(n(e));case 5:i=a.sent,0===i&&r();case 7:case"end":return a.stop()}},null,this)}},{key:"doAction",value:function b(e){var t,b,n,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=this.props,b=t.doAction,n=t.data,r=w.default.find(n.wfactions||{},{id:e}),!r||!r.screen){a.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),a.next=12;break;case 8:return a.next=10,regeneratorRuntime.awrap(b(n.id,n.entry_id,{action_id:e}));case 10:i=a.sent,0===i?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return a.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,r,i,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(t=this.props,n=t.data,r=t.doAction,i=w.default.find(n.wfactions||{},{id:e}),!i||!i.schema){o.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),o.next=12;break;case 8:return o.next=10,regeneratorRuntime.awrap(r(n.id,n.entry_id,{action_id:e}));case 10:a=o.sent,0===a?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return o.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void k.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=w.default.find(n,{name:e}),i={};return r&&r.bgColor&&(i={backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"}),i}},{key:"createLightbox",value:function(e,t,n){var r=this,i=this.props.project;return c.default.createElement(y.default,{mainSrc:K+"/project/"+i.key+"/file/"+t[n].id,nextSrc:K+"/project/"+i.key+"/file/"+t[(n+1)%t.length].id,prevSrc:K+"/project/"+i.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){r.state.previewShow[e]=!1,r.setState({previewShow:r.state.previewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,r,i){var a=this,o=this.state,l=o.editingItems,s=o.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(i&&i>0?"(字数"+i+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||i&&i>0&&w.default.trim(s[t]||"").length>i},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,r,i){var a=this,o=this.state,l=o.editingItems,s=o.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(E.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(i&&i>0?"(字数"+i+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||i&&i>0&&w.default.trim(s[t]||"").length>i},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(E.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,r=e.layout,i=w.default.min([w.default.max([r.containerWidth/2,660]),1e3]),a={width:i+"px"},o={};void 0!==n.left?(a.left=n.left-i,o.left=n.left):(a.right=-i,o.right=0),C(".animate-dialog").css(a),C(".animate-dialog").animate(o)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,i=t.close,a=(t.detailFloatStyle,t.data),o=void 0===a?{}:a,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,h=t.loading,y=t.itemLoading,g=t.options,b=t.project,E=t.fileLoading,x=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue,t.setLabels),ne=t.addLabels,re=t.resetState,ie=t.wfCollection,ae=t.wfLoading,oe=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,me=t.delComments,he=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,ve=t.historyIndexLoading,be=t.indexGitCommits,we=t.sortGitCommits,ke=t.gitCommitsCollection,_e=t.gitCommitsIndexLoading,Ee=t.indexWorklog,xe=t.worklogSort,Ce=t.sortWorklog,Te=t.worklogCollection,Pe=t.worklogIndexLoading,Se=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,je=t.delWorklog,Me=t.createLink,Fe=t.delLink,Le=t.linkLoading,Ie=t.doAction,qe=t.user,Ne=this.state,De=(Ne.inlinePreviewShow, -Ne.previewShow),Ae=Ne.photoIndex,Be=Ne.newAssignee,We=Ne.editAssignee,He=Ne.editingItems,ze=Ne.newItemValues,Ue=Ne.delFileShow,Ye=Ne.selectedFile,Ve=Ne.action_id,Ge=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ke={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=w.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];w.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=w.default.find(g.types,{id:o.type}),Qe=$e&&$e.schema?$e.schema:[],Je=w.default.findIndex(f,{id:o.id}),et=o.priority?w.default.findIndex(g.priorities,{id:o.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&w.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=o.state?w.default.findIndex(g.states,{id:o.state}):-1,rt="";nt!==-1&&(rt="state-"+g.states[nt].category+"-label");var it=!1,at=w.default.findIndex(Qe,{key:"descriptions"});at!==-1&&(it=Qe[at].required&&!0);var ot={};o.epic&&(ot=w.default.find(g.epics,{id:o.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(o.comments_num>99?"99+":o.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(o.worklogs_num>99?"99+":o.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(o.gitcommits_num>99?"99+":o.gitcommits_num||0)+")")),ct=w.default.min([w.default.max([r.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:i,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:o.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(o.id,!o.watching)}},o.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ke},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:M,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(o.wfactions&&o.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},w.default.map(o.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},w.default.map(o.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},o.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},o.watchers&&o.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!o.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&!o.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{divider:!0}),!o.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!o.hasSubtasks&&!o.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),o.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),o.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(w.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&o.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&o.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},o.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(o.parent.id)}},o.parent.no+"-"+(o.parent.title||"")),o.parent&&" / ",o.no+"-"+(o.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:rt},g.states[nt].name):"-",ae?c.default.createElement("img",{src:M,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.resolutions||[],{id:o.resolution})?w.default.find(g.resolutions,{id:o.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:We?7:3},We?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(v.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||o.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},o.assignee&&o.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,o.assignee&&o.assignee.name||"-")),(!o.assignee||o.assignee.id!==qe.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!We&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!We&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,o.reporter&&o.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(o.descriptions,"descriptions","描述",it)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},o.created_at?T.unix(o.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},o.updated_at?T.unix(o.updated_at).format("YYYY/MM/DD HH:mm"):o.created_at?T.unix(o.created_at).format("YYYY/MM/DD HH:mm"):"-"))),o.labels&&o.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(o.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),o.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.versions,{id:o.resolve_version})?w.default.find(g.versions,{id:o.resolve_version}).name:"-"))),o.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?epic="+o.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:ot.bgColor,backgroundColor:ot.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:ot.name||"-"},ot.name||"-"))))),o.sprints&&o.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(o.sprints,function(e){return w.default.find(g.sprints,{no:e}).name}).join(", ")))),(o.expect_start_time||o.expect_complete_time)&&c.default.createElement(d.FormGroup,null,o.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),o.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(o.expect_start_time).format("YYYY/MM/DD"))),o.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),o.expect_complete_time&&c.default.createElement(d.Col,{sm:o.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(o.expect_complete_time).format("YYYY/MM/DD")))),w.default.isNumber(o.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},He.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:ze.progress||0,onChange:function(t){ze.progress=t.target.value,e.setState({newItemValues:ze})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",ze.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(o.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){He.progress=!0,ze.progress=o.progress||0,e.setState({editingItems:He,newItemValues:ze})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(o.progress||"0")+"%"))))),o.subtasks&&o.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},o.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",o.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&o.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(o.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},w.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:t.state}).category+"-label"},w.default.find(g.states,{id:t.state}).name):"-"))}))))),o.links&&o.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},o.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",o.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&o.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(o.links,function(t,n){var r={},i="",a="";if(t.src.id==o.id)r=t.dest,i=t.relation,a=t.dest.id;else if(t.dest.id==o.id){r=t.src,i=t.relation;var l=w.default.findIndex(g.relations||[],{out:i});if(l!==-1)i=g.relations[l].in||"";else{var s=w.default.findIndex(g.relations||[],{"in":i});s!==-1&&(i=g.relations[s].out||"")}a=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,i,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==r.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(a)}},r.no," - ",r.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},w.default.find(g.states||[],{id:r.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:r.state}).category+"-label"},w.default.find(g.states,{id:r.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:r.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),w.default.map(Qe,function(t,n){if(Ge.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&w.default.isEmpty(o[t.key]))return}else if(w.default.isEmpty(o[t.key])&&!w.default.isNumber(o[t.key]))return;var r="";if("SingleUser"===t.type)r=o[t.key]&&o[t.key].name||"-";else if("MultiUser"===t.type)r=w.default.map(o[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var i=t.optionValues||[];r=w.default.find(i,{id:o[t.key]})?w.default.find(i,{id:o[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=w.default.isArray(o[t.key])?o[t.key]:o[t.key].split(","),i=[];w.default.map(n,function(t,n){w.default.find(e,{id:t})&&i.push(w.default.find(e,{id:t}).name)}),r=i.join(", ")||"-"}();else if("DatePicker"===t.type)r=T.unix(o[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)r=T.unix(o[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var a={showFiletypeIcon:!0,postUrl:K+"/project/"+b.key+"/file?issue_id="+o.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){k.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=w.default.filter(o[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=w.default.filter(o[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});r=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(p,function(n,r){return c.default.createElement("tr",{key:r},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,_.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:K+"/project/"+b.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,w.default.map(u,function(n,r){return c.default.createElement(d.Col,{sm:6,key:r},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,r,t.key)},c.default.createElement("img",{src:K+"/project/"+b.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(m.default,{config:a,eventHandlers:s,djsConfig:l})),De[t.key]&&e.createLightbox(t.key,u,Ae))}else r="TextArea"===t.type?e.getTextAreaItemContents(o[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(o[t.key],t.key,t.name,t.required,t.maxLength):o[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},r)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:o.id,currentTime:g.current_time||0,currentUser:qe,collection:ge,indexHistory:he,sortHistory:ye,indexLoading:ve})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(S,{i18n:n,currentTime:g.current_time||0,currentUser:qe,project:b,permissions:g.permissions||[],issue_id:o.id,collection:se,indexComments:oe,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:me,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(j,{i18n:n,currentTime:g.current_time||0,currentUser:qe,permissions:g.permissions||[],issue:o,original_estimate:o.original_estimate,options:g.timetrack||{},collection:Te,indexWorklog:Ee,sort:xe,sortWorklog:Ce,indexLoading:Pe,loading:Se,addWorklog:Oe,editWorklog:Re,delWorklog:je})),o.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:o.id,currentTime:g.current_time||0,currentUser:qe,collection:ke,indexGitCommits:be,sortGitCommits:we,indexLoading:_e})))),Ue&&c.default.createElement(L,{show:!0,close:this.delFileModalClose,del:x,data:Ye,loading:E,i18n:n}),this.state.editModalShow&&c.default.createElement(P,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:o,isSubtask:o.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(P,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:o,action_id:Ve,doAction:Ie,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(U,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:o,action_id:Ve,doAction:Ie}),this.state.createSubtaskModalShow&&c.default.createElement(P,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:h,project:b,parent:o,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(F,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:o.state,collection:ie}),this.state.linkIssueModalShow&&c.default.createElement(I,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:Le,createLink:Me,issue:o,types:g.types,project:b,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(q,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Le,delLink:Fe,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:h,issue:o,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:b,convert:J,loading:h,issue:o,i18n:n}),this.state.moveModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:b,move:Q,loading:h,issue:o,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:o,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(W,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:o,i18n:n}),this.state.shareModalShow&&c.default.createElement(H,{show:!0,project:b,close:function(){e.setState({shareModalShow:!1})},issue:o}),this.state.resetModalShow&&c.default.createElement(z,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:re,issue:o,i18n:n}),this.state.delNotifyShow&&c.default.createElement(Y,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:o,del:X,detailClose:i,i18n:n}),this.state.copyModalShow&&c.default.createElement(V,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:h,copy:$,data:o,i18n:n}),this.state.watchersModalShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:o.no,watchers:o.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(o.request({url:"/project/"+i.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(a,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.loading,i=t.options.relations,a=void 0===i?[]:i,o=[];return y.default.forEach(a,function(e){e.out==e.in?o.push({value:e.out,label:e.out}):(o.push({value:e.out,label:e.out}),o.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:r,options:o,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:r,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:v,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:r||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},221:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n'+i+'
    '),imgFileUrls.push(r)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var r=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){r.state.inlinePreviewShow[e]=!1,r.setState({inlinePreviewShow:r.state.inlinePreviewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var i=_lodash2.default.find(e,{nameAndEmail:n});return i&&t.state.atWho.push(i.id),"@"+i.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.currentTime,i=t.permissions,a=t.currentUser,o=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,m=t.users,h=t.project,y=t.issue_id,g=this.state,v=g.inlinePreviewShow,b=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){o(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),i.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var o=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===a.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&a.id===t.creator.id&&i.indexOf("delete_self_comments")!==-1||i.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&a.id===t.creator.id&&i.indexOf("edit_self_comments")!==-1||i.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),i.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:o,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[t.id]&&e.createLightbox(t.id,c,b),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,o){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===a.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,r))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&a.id===n.creator.id&&i.indexOf("delete_self_comments")!==-1||i.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&a.id===n.creator.id&&i.indexOf("edit_self_comments")!==-1||i.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),i.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[n.id]&&e.createLightbox(n.id,c,b))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:m,project:h,permissions:i,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var i=p.default.find(e,{nameAndEmail:n});return i&&t.state.atWho.push(i.id),"@"+i.name}},data:e}),m(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=m(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.data,i=t.loading,a="";return a=r.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},a)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:i,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&n[this.state.ecode]),u.default.createElement("img",{src:h,className:i?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||i,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:i,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n'+(t.author&&t.author.id===i.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.committed_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n'+(t.operator&&t.operator.id===i.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.operated_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n=0){var c=f.default.floor(u/a);c>0&&s.push(c+"w")}if(u%=a,u>=0){var d=f.default.floor(u/o);d>0&&s.push(d+"d")}if(u%=o,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.permissions,i=t.currentTime,a=t.currentUser,o=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,b=t.indexLoading,w=t.loading,k=t.addWorklog,_=t.editWorklog,E=t.delWorklog,x=t.original_estimate,C=void 0===x?"":x,T=void 0;C&&(T=this.t2m(C)),"desc"===s&&p.reverse();var P=0;f.default.map(p,function(t){if(P=f.default.add(P,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 r=e.t2m(t.cut);T=T-r>0?T-r:0}return f.default.extend(t,{leave_estimate_m:T}),t});var S=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:b&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:w,onClick:function(){l(o.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:w,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:b&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},P>0?this.m2t(P):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===S.leave_estimate_m?"-":this.m2t(S.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},b&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:h,className:"loading"})),p.length<=0&&!b?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var o=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===a.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.recorded_at,i))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&a.id===t.recorder.id&&r.indexOf("delete_self_worklog")!==-1||r.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&a.id===t.recorder.id&&r.indexOf("edit_self_worklog")!==-1||r.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:o,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:o,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,add:k,edit:_,i18n:n}),this.state.delWorklogShow&&u.default.createElement(v,{show:!0,issue:o,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,del:E,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},337:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&u.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变过滤器显示顺序。"),n.length>0?n.map(function(t,n){return u.default.createElement(g.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:d?e.deleteCard.bind(e,n):null})}):u.default.createElement("p",null,"暂无自定义过滤器。"))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&a[this.state.ecode]),u.default.createElement("img",{src:k,className:o?"loading":"hide"}),u.default.createElement(c.Button,{disabled:o||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:o,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,title:s.PropTypes.string,loading:s.PropTypes.bool,isRemovable:s.PropTypes.bool,config:s.PropTypes.func.isRequired,filters:s.PropTypes.array.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragDropContext)(f.default)(t)||t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},588:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;ne.expect_complete_time&&(n.expect_start_time="开始时间要早于结束时间"),e.progress&&(isNaN(e.progress)?n.progress="格式错误":(e.progress<0||e.progress>100)&&(n.progress="数值必须在0~100之间")),n},w=function(e){function t(e){i(this,n),s(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)}a(t,e),l(t,[{key:"handleSubmit",value:function(){var e,t,n,r,i,a,o;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:return e=this.props,t=e.values,n=e.edit,r=e.close,i=e.data,a={},t.expect_start_time?a.expect_start_time=parseInt(g(t.expect_start_time).startOf("day").format("X")):a.expect_start_time="",t.expect_complete_time?a.expect_complete_time=parseInt(g(t.expect_complete_time).startOf("day").format("X")):a.expect_complete_time="",t.progress||0===t.progress?a.progress=t.progress-0:a.progress="",l.next=11,regeneratorRuntime.awrap(n(i.id,a));case 11:o=l.sent,0===o?(this.setState({ecode:0}),y.notify.show("编辑完成。","success",2e3),r()):this.setState({ecode:o});case 13:case"end":return l.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,t=e.initializeForm,n=e.data;t({expect_start_time:g.unix(n.expect_start_time||n.expect_complete_time||n.created_at).startOf("day"),expect_complete_time:g.unix(n.expect_complete_time||n.expect_start_time||n.created_at),progress:n.progress||0})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.expect_start_time,i=n.expect_complete_time,a=n.progress,l=e.handleSubmit,s=e.invalid,u=e.submitting,d=e.data;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"},"问题编辑 - "+d.no)),c.default.createElement("form",{onSubmit:l(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,null,c.default.createElement(p.ControlLabel,null,"主题"),c.default.createElement("span",{style:{marginLeft:"10px"}},d.title)),c.default.createElement("div",null,c.default.createElement(p.FormGroup,{style:{width:"47%",display:"inline-block"},validationState:r.value&&r.error?"error":null},c.default.createElement(p.ControlLabel,null,"期望开始时间"),c.default.createElement(h.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&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{style:{width:"47%",display:"inline-block","float":"right"},validationState:i.value&&i.error?"error":null},c.default.createElement(p.ControlLabel,null,"期望完成时间"),c.default.createElement(h.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:i.value,onChange:function(e){i.onChange(e)}}),i.value&&i.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},i.error))),c.default.createElement(p.FormGroup,{style:{marginBottom:"0px"},validationState:a.touched&&a.error?"error":null},c.default.createElement(p.ControlLabel,null,"进度"),c.default.createElement(p.FormControl,o({disabled:u,type:"number",min:"0",max:"100",style:{width:"80px",display:"inline-block",marginLeft:"10px"}},a,{placeholder:"进度"}))," %",a.value&&a.touched&&a.error?c.default.createElement(p.HelpBlock,null,a.error):"")),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!u&&t[this.state.ecode]),c.default.createElement("img",{src:v,className:u?"loading":"hide"}),c.default.createElement(p.Button,{disabled:u||s,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:u,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,data:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,initializeForm:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"ganttedit",fields:["expect_start_time","expect_complete_time","progress"],validate:b})(t)||t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1844:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n1?n(p.default.extend(i,{page:void 0})):r(i):"gotolist"===e&&n(p.default.extend(i,{page:void 0}),"issuelist")}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.user,i=(t.index,t.create),a=t.addLabels,o=t.saveFilter,l=t.resetFilters,s=t.configFilters,d=t.delFilters,b=t.indexLoading,w=t.optionsLoading,k=t.filterLoading,_=t.options,E=void 0===_?{}:_,x=t.refresh,C=t.query,T=t.loading,P=t.project,S=p.default.reject(p.default.reject(E.types||[],{type:"subtask"})||[],{disabled:!0})||[],O=w?"":(0,f.parseQuery)(C,E);return u.default.createElement("div",null,u.default.createElement("div",{style:{paddingTop:"5px"}},u.default.createElement(c.DropdownButton,{className:"create-btn",id:"filters",title:"过滤器",onSelect:this.selectFilter.bind(this)},E.filters&&E.filters.length>0?p.default.map(E.filters||[],function(e){return u.default.createElement(c.MenuItem,{eventKey:e.id,key:e.id},e.name)}):u.default.createElement(c.MenuItem,{disabled:!0},"无"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"saveFilter"},"保存当前检索"),u.default.createElement(c.MenuItem,{eventKey:"filterConfig"},"过滤器排序"),u.default.createElement(c.MenuItem,{eventKey:"filterDel"},"过滤器删除")),u.default.createElement(c.Button,{className:"create-btn",disabled:w,onClick:function(){e.setState({searchShow:!e.state.searchShow})}},"检索 ",u.default.createElement("i",{className:this.state.searchShow?"fa fa-angle-double-up":"fa fa-angle-double-down"})),E.permissions&&E.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.Button,{className:"create-btn",bsStyle:"primary",disabled:S.length<=0||w,onClick:function(){e.setState({createModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 创建"),u.default.createElement("div",{style:{marginTop:"10px","float":"right"}},u.default.createElement(c.DropdownButton,{id:"more",pullRight:!0,style:{"float":"right"},title:"更多",onSelect:this.operateSelect.bind(this)},u.default.createElement(c.MenuItem,{eventKey:"refresh"},"刷新"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"gotolist"},"跳至问题列表"))),O&&u.default.createElement("div",{className:"cond-bar"},u.default.createElement("div",{className:"cond-contents",title:O},u.default.createElement("b",null,"检索条件"),":",O),u.default.createElement("div",{className:"remove-icon",onClick:function(){x({})},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(g,{show:!0,isRemovable:!1,close:this.filterConfigModalClose,loading:k,config:s,filters:E.filters||[],i18n:n}),this.state.filterDelShow&&u.default.createElement(v,{show:!0,close:this.filterDelModalClose,loading:k,del:d,data:p.default.filter(E.filters||[],function(e){return e.creator==r.id}),i18n:n}),u.default.createElement(f.IssueFilterList,{values:C,searchShow:this.state.searchShow,indexLoading:b,options:E,onChange:function(e){x(p.default.assign({},e,{page:void 0}))}}),this.state.createModalShow&&u.default.createElement(m,{show:!0,close:this.createModalClose,options:E,create:i,addLabels:a,loading:T,project:P,i18n:n}),this.state.saveFilterShow&&u.default.createElement(h,{show:!0,close:this.saveFilterModalClose,filters:E.filters||[],create:o,query:C,loading:k,sqlTxt:O,options:E,i18n:n}),this.state.resetFiltersShow&&u.default.createElement(y,{show:!0,close:this.resetFiltersNotifyClose,reset:l,loading:k,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,user:s.PropTypes.object.isRequired,create:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,resetFilters:s.PropTypes.func.isRequired,configFilters:s.PropTypes.func.isRequired,delFilters:s.PropTypes.func.isRequired,index:s.PropTypes.func,refresh:s.PropTypes.func,getOptions:s.PropTypes.func,query:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool.isRequired,optionsLoading:s.PropTypes.bool.isRequired,filterLoading:s.PropTypes.bool.isRequired,indexLoading:s.PropTypes.bool.isRequired},enumerable:!0}]),t}(s.Component));t.default=b,e.exports=t.default}).call(this)}finally{}},1847:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n=1)return;t+=.2}t>1&&(t=1),t<.6&&(t=.6),t=p.default.round(t,1),this.configs.cellWidth=25*t,this.setState({scaling:t})}},{key:"show",value:function n(e){var t,n,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return this.setState({detailBarShow:!0}),t=this.props,n=t.show,r=t.record,a.next=6,regeneratorRuntime.awrap(n(e));case 6:i=a.sent,0==i&&r();case 8:case"end":return a.stop()}},null,this)}},{key:"componentWillMount",value:function(){var e,t,n,r;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e=this.props,t=e.index,n=e.query,r=void 0===n?{}:n,i.next=6,regeneratorRuntime.awrap(t(r));case 6:case"end":return i.stop()}},null,this)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.index,r=t.query,i=e.query||{};p.default.isEqual(i,r)||n(i);var a=e.options.singulars,o=void 0===a?[]:a;e.collection.length>0?(this.state.collection.length<=0?this.arrangeData(e.collection,this.state.sortkey):this.arrangeData(this.arrangeCollection(e.collection,this.state.collection)),this.setBoundaryDatesFromData(this.state.collection),this.setDates(o)):(this.state.collection=[],this.state.markedIssue={})}},{key:"arrangeCollection",value:function(e,t){for(var n=[],r=e.length,i=0;ir&&(t=r);var i=e.expect_complete_time||e.expect_start_time||e.created_at;n0){var d=!1;navigator.userAgent.indexOf("compatible")===-1&&navigator.userAgent.indexOf("MSIE")===-1&&navigator.userAgent.indexOf("Trident")===-1||(d=!0),h("div.ganttview").css("height",p.default.min([document.body.clientHeight-(i?150:200),31*l.length+(d?59:53)])),h("div.ganttview-slide-container").unbind("scroll").scroll(function(){setTimeout(function(){return h("div.ganttview-hzheader").css("top",h("div.ganttview-slide-container").scrollTop()),h("div.ganttview-slide-container").scrollLeft(p.default.ceil(h("div.ganttview-slide-container").scrollLeft()/c)*c),h("div.ganttview-vtheader-item").scrollTop()!==h("div.ganttview-slide-container").scrollTop()&&void h("div.ganttview-vtheader-item").scrollTop(h("div.ganttview-slide-container").scrollTop())},200)}),h("div.ganttview-vtheader-item").unbind("scroll").scroll(function(){setTimeout(function(){return h("div.ganttview-vtheader-series-header-item").css("left",-h("div.ganttview-vtheader-item").scrollLeft()),h("div.ganttview-vtheader-item").scrollTop()!==h("div.ganttview-slide-container").scrollTop()&&(h("div.ganttview-slide-container").scrollTop(h("div.ganttview-vtheader-item").scrollTop()),void h("div.ganttview-hzheader").css("top",h("div.ganttview-slide-container").scrollTop()))},200)})}!r.permissions||r.permissions.indexOf("edit_issue")===-1&&r.permissions.indexOf("edit_self_issue")===-1||p.default.forEach(l,function(e){e.hasSubtasks||r.permissions.indexOf("edit_issue")===-1&&(e.reporter&&e.reporter.id)!=a.id||(h("#"+e.id+"-block").unbind("dblclick").bind("dblclick",function(){var e=h(this);u.clickBar(e)}),h("#"+e.id+"-block").unbind("resizable").resizable({grid:c,handles:"e,w",start:function(){h(this).children("div.ganttview-block-progress").length>0&&h(this).children("div.ganttview-block-progress").css("display","none")},resize:function(){h(this).css("top","0px").css("height",u.configs.blockHeight+"px")},stop:function(){var e=h(this),t=m.unix(t).subtract(1,"days").startOf("day").format("X");u.updateData(e),h(this).children("div.ganttview-block-progress").length>0&&h(this).children("div.ganttview-block-progress").css("display","")}}),h("#"+e.id+"-block").unbind("draggable").draggable({axis:"x",grid:[c,c],stop:function(){var e=h(this);u.updateData(e)}}))})}},{key:"clickBar",value:function(e){var t=this.props.collection,n=e.attr("data-id"),r=p.default.find(t,{id:n});this.setState({editModalShow:!0,selectedIssue:r})}},{key:"closeDetail",value:function(){var e=this,t=this.state.markedIssue,n=this.props.layout,r=p.default.min([p.default.max([n.containerWidth/2,f.DetailMinWidth]),f.DetailMaxWidth]),i={right:-r};h(".animate-dialog").animate(i),setTimeout(function(){e.setState({detailBarShow:!1})},300),h(".ganttview-vtheader-series-item").each(function(e){t.id===h(this).attr("id")?h(this).css("background-color","#FFFACD"):h(this).css("background-color","")});var a=this.props.cleanRecord;a()}},{key:"fold",value:function(e){var t=this.state.foldIssues.indexOf(e);t!==-1?this.state.foldIssues.splice(t,1):this.state.foldIssues.push(e),this.setState({foldIssues:this.state.foldIssues})}},{key:"setSort",value:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:this.arrangeData(this.props.collection,e),window.localStorage&&window.localStorage.setItem("gantt-sortkey",e),this.setState({sortkey:e}),this.closeDetail();case 4:case"end":return t.stop()}},null,this)}},{key:"selectMode",value:function(e){window.localStorage&&window.localStorage.setItem("gantt-mode",e),this.setState({mode:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.isHeaderHidden,i=t.toggleHeader,a=t.layout,o=t.itemData,l=void 0===o?{}:o,s=t.loading,c=t.indexLoading,d=t.itemLoading,p=t.options,f=void 0===p?{}:p,m=t.show,h=t.record,x=t.forward,C=t.visitedIndex,T=t.visitedCollection,P=t.del,S=t.edit,O=t.create,R=t.setAssignee,j=t.setItemValue,M=t.setLabels,F=t.addLabels,L=t.query,I=t.refresh,q=t.project,N=t.delFile,D=t.addFile,A=t.fileLoading,B=t.wfCollection,W=t.wfLoading,H=t.viewWorkflow,z=t.indexComments,U=t.sortComments,Y=t.commentsCollection,V=t.commentsIndexLoading,G=t.commentsLoading,K=t.commentsLoaded,Z=t.addComments,X=t.editComments,$=t.delComments,Q=t.commentsItemLoading,J=t.indexWorklog,ee=t.worklogSort,te=t.sortWorklog,ne=t.worklogCollection,re=t.worklogIndexLoading,ie=t.worklogLoading,ae=t.worklogLoaded,oe=t.addWorklog,le=t.editWorklog,se=t.delWorklog,ue=t.indexHistory,ce=t.sortHistory,de=t.historyCollection,pe=t.historyIndexLoading,fe=t.historyLoaded,me=t.indexGitCommits,he=t.sortGitCommits,ye=t.gitCommitsCollection,ge=t.gitCommitsIndexLoading,ve=t.gitCommitsLoaded,be=t.createLink,we=t.delLink,ke=t.linkLoading,_e=t.watch,Ee=t.copy,xe=t.move,Ce=t.convert,Te=t.resetState,Pe=t.doAction,Se=t.user,Oe=this.state,Re=Oe.scaling,je=Oe.mode,Me=Oe.collection,Fe=Oe.selectedIssue,Le=Oe.sortkey,Ie=Oe.foldIssues,qe=Oe.dates,Ne=Oe.range,De=Oe.markedIssue;return u.default.createElement("div",null,u.default.createElement("div",{style:{marginTop:"10px",height:"25px"}},u.default.createElement("span",null,u.default.createElement("span",{style:{marginRight:"5px",fontWeight:600}},"排序:"),"start_time_asc"==Le?u.default.createElement("span",null,"开始时间"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setSort("start_time_asc")}},"开始时间"),u.default.createElement("span",{className:"ganttview-divider"}," | "),"create_time_asc"==Le?u.default.createElement("span",null,"创建时间"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setSort("create_time_asc")}},"创建时间"),u.default.createElement("span",{className:"ganttview-divider"}," | "),"title_asc"==Le?u.default.createElement("span",null,"主题"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setSort("title_asc")}},"主题")),u.default.createElement("span",{style:{marginLeft:"15px"}},u.default.createElement("span",{style:{marginRight:"5px",fontWeight:600}}," 显示:"),"progress"==je?u.default.createElement("span",null,"按进度"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.selectMode("progress")}},"按进度"),u.default.createElement("span",{className:"ganttview-divider"}," | "),"status"==je?u.default.createElement("span",null,"按状态"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.selectMode("status")}},"按状态")),u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.locateToday()}},u.default.createElement("span",{style:{marginLeft:"15px"}},u.default.createElement("i",{className:"fa fa-dot-circle-o"})," 今天")),u.default.createElement("span",{style:{"float":"right",marginRight:"5px"}},u.default.createElement("span",{title:"缩小",className:Re<=.6||Me.length<=0?"ganttview-fa-button-disable":"ganttview-fa-button",onClick:function(t){e.changeScaling("-")}},u.default.createElement("i",{className:"fa fa-search-minus"})),u.default.createElement("span",{title:"放大",className:Re>=1||Me.length<=0?"ganttview-fa-button-disable":"ganttview-fa-button",onClick:function(t){e.changeScaling("+")}},u.default.createElement("i",{className:"fa fa-search-plus"})),u.default.createElement("span",{className:"ganttview-fa-button",title:r?"展示头部":"隐藏头部",onClick:i},u.default.createElement("i",{className:r?"fa fa-angle-double-down":"fa fa-angle-double-up"}))),f.permissions&&(f.permissions.indexOf("edit_issue")!==-1||f.permissions.indexOf("edit_self_issue")!==-1)&&u.default.createElement("span",{className:"ganttview-msg-notice"},"注:移动或调整任务条将改变任务的开始时间和完成时间,也可通过双击任务条修改。")),c&&u.default.createElement("div",{style:{textAlign:"center",paddingTop:"50px"}},u.default.createElement("img",{src:y,className:"loading"})),!c&&Me.length<=0&&u.default.createElement("div",{style:{textAlign:"center",marginTop:"50px"}},u.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},u.default.createElement("i",{className:"fa fa-warning"})),u.default.createElement("br",null),u.default.createElement("span",null,"抱歉,暂无满足该检索条件的数据。")),!c&&Me.length>0&&u.default.createElement("div",{className:"ganttview"},u.default.createElement(k,{collection:Me,foldIssues:Ie,selectedIssue:l,options:f,mode:je,show:this.show,locate:this.locate,mark:this.mark,fold:this.fold}),u.default.createElement("div",{className:"ganttview-slide-container"},u.default.createElement(_,{cellWidth:this.configs.cellWidth,dates:qe,today:f.today||""}),u.default.createElement(w,{cellWidth:this.configs.cellWidth,collection:Me,dates:qe,foldIssues:Ie,markedIssue:De,today:f.today||""}),u.default.createElement(E,{cellWidth:this.configs.cellWidth,blockHeight:this.configs.blockHeight,collection:Me,origin:Ne[0],mode:je,foldIssues:Ie,selectedIssue:l,options:f}))),this.state.editModalShow&&u.default.createElement(v,{show:!0,i18n:n,mode:"progress",close:function(){e.setState({editModalShow:!1})},edit:S,data:Fe}),this.state.detailBarShow&&u.default.createElement(b,{i18n:n,layout:a,create:O,edit:S,del:P,setAssignee:R,setItemValue:j,setLabels:M,addLabels:F,close:this.closeDetail,options:f,data:l,record:h,forward:x,visitedIndex:C,visitedCollection:T,issueCollection:Me,show:m,itemLoading:d,loading:s,fileLoading:A,project:q,delFile:N,addFile:D,wfCollection:B,wfLoading:W,viewWorkflow:H,indexComments:z,sortComments:U,commentsCollection:Y,commentsIndexLoading:V,commentsLoading:G,commentsItemLoading:Q,commentsLoaded:K,addComments:Z,editComments:X,delComments:$,indexWorklog:J,worklogSort:ee,sortWorklog:te,worklogCollection:ne,worklogIndexLoading:re,worklogLoading:ie,worklogLoaded:ae,addWorklog:oe,editWorklog:le,delWorklog:se,indexHistory:ue,sortHistory:ce,historyCollection:de,historyIndexLoading:pe,historyLoaded:fe,indexGitCommits:me,sortGitCommits:he,gitCommitsCollection:ye,gitCommitsIndexLoading:ge,gitCommitsLoaded:ve,linkLoading:ke,createLink:be,delLink:we,watch:_e,copy:Ee,move:xe,convert:Ce,resetState:Te,doAction:Pe,user:Se}),!c&&f.total&&f.total>0?u.default.createElement(g,{total:f.total||0,curPage:L.page?L.page-0:1,sizePerPage:f.sizePerPage||100,paginationSize:4,query:L,refresh:I}):"")}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,isHeaderHidden:s.PropTypes.bool.isRequired,toggleHeader:s.PropTypes.func.isRequired,layout:s.PropTypes.object.isRequired,collection:s.PropTypes.array.isRequired,wfCollection:s.PropTypes.array.isRequired,wfLoading:s.PropTypes.bool.isRequired,viewWorkflow:s.PropTypes.func.isRequired,indexComments:s.PropTypes.func.isRequired,sortComments:s.PropTypes.func.isRequired,addComments:s.PropTypes.func.isRequired,editComments:s.PropTypes.func.isRequired,delComments:s.PropTypes.func.isRequired,commentsCollection:s.PropTypes.array.isRequired,commentsIndexLoading:s.PropTypes.bool.isRequired,commentsLoading:s.PropTypes.bool.isRequired,commentsItemLoading:s.PropTypes.bool.isRequired,commentsLoaded:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,worklogSort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,worklogCollection:s.PropTypes.array.isRequired,worklogIndexLoading:s.PropTypes.bool.isRequired,worklogLoading:s.PropTypes.bool.isRequired,worklogLoaded:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,historyCollection:s.PropTypes.array.isRequired,historyIndexLoading:s.PropTypes.bool.isRequired,historyLoaded:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,gitCommitsCollection:s.PropTypes.array.isRequired,gitCommitsIndexLoading:s.PropTypes.bool.isRequired,gitCommitsLoaded:s.PropTypes.bool.isRequired,itemData:s.PropTypes.object.isRequired,project:s.PropTypes.object,options:s.PropTypes.object,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,query:s.PropTypes.object,show:s.PropTypes.func.isRequired,edit:s.PropTypes.func.isRequired,create:s.PropTypes.func.isRequired,setAssignee:s.PropTypes.func.isRequired,setItemValue:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,fileLoading:s.PropTypes.bool.isRequired,delFile:s.PropTypes.func.isRequired,addFile:s.PropTypes.func.isRequired,record:s.PropTypes.func.isRequired,forward:s.PropTypes.func.isRequired,cleanRecord:s.PropTypes.func.isRequired,visitedIndex:s.PropTypes.number.isRequired,visitedCollection:s.PropTypes.array.isRequired,createLink:s.PropTypes.func.isRequired,delLink:s.PropTypes.func.isRequired,linkLoading:s.PropTypes.bool.isRequired,doAction:s.PropTypes.func.isRequired,watch:s.PropTypes.func.isRequired,copy:s.PropTypes.func.isRequired,move:s.PropTypes.func.isRequired,convert:s.PropTypes.func.isRequired,resetState:s.PropTypes.func.isRequired,del:s.PropTypes.func.isRequired,user:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=x,e.exports=t.default}).call(this)}finally{}},1849:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n=1){r=l.default.min([o,n[a].max])+n[a].suffix;break}}return r}function i(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var r={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},i=t.substr(n+1);return r[i]?"fa fa-file-"+r[i]+"-o":"fa fa-file-o"}function a(e,t,n){var r=e<0?-1:1;e=Math.abs(e);var i=[],a=l.default.ceil(e);if(a>=0){var o=l.default.floor(e/t);o>0&&i.push(o+"w")}if(a=e%t,a>=0){var s=l.default.floor(a/n);s>0&&i.push(s+"d")}if(a%=n,a>=0){var u=l.default.floor(a/60);u>0&&i.push(u+"h")}return a%=60,a>0&&i.push(a+"m"),i.length<=0&&i.push("0m"),(r<0?"-":"")+i.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=r,t.getFileIconCss=i,t.ttFormat=a;var o=n(3),l=e(o),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var a=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(i.onChange=r.bind(null,this.props.value)),l.default.createElement("input",a({},this.props,{type:"checkbox",name:t},i))}}),t.CheckboxGroup=l.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: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),r=i(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},44:function(e,t,n){!function(t,r){e.exports=r(n(1),n(121))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}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,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 l(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&&(g=Math.max(b.minX,Math.min(b.maxX,g)),v=Math.max(b.minY,Math.min(b.maxY,v))),this.setState({zoomLevel:r,offsetX:g,offsetY:v})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,m.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),i=r.height-2*this.props.imagePadding,a=r.width-2*this.props.imagePadding;n||(i=Math.min(i,t),a=Math.min(a,e));var o=a/i,l=e/t;return o>l?{width:e*i/t,height:i}:{width:a,height:t*a/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),i=0;i=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2;var a=0;return a=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,{maxX:i,maxY:a,minX:-1*i,minY:-1*a}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(h.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,m.getWindowWidth)(),height:(0,m.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=a?(this.requestMoveNext(e),r=i,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*a)&&(this.requestMovePrev(e),r=i,this.scrollX=0)}0!==r&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},r))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=h.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)h.MIN_ZOOM_LEVEL?this.changeZoom(h.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=h.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,r=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===r||this.setState({offsetX:n,offsetY:r})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=h.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,r=this.caption.scrollTop;(e.deltaY>0&&t+r>=n||e.deltaY<0&&r<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var r=this,i=new Image;i.onerror=function(){t("image load error")},i.onload=function(){r.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},i.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(r){return r?void(window.console&&window.console.warn(r)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(r){var i=r.name;t[i]&&!e.isImageLoaded(t[i])&&e.loadImage(t[i],n(i,t[i]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:h.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,r=n.animationDisabled,i=n.animationDuration,a=n.clickOutsideToClose,o=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,w=this.state,k=w.zoomLevel,_=w.offsetX,E=w.offsetY,x=w.isClosing,C=this.getLightboxRect(),T={};!r&&this.isAnimating()&&(T=u({},T,{transition:"transform "+i+"ms"}));var P={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;P[t]=n});var S=[],O=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var i=u({},r,T);k>h.MIN_ZOOM_LEVEL&&(i.cursor="move");var a=e.getBestImageForType(t);if(null===a){var l=void 0;return l=b<10?d.default.createElement("div",{className:v.loadingContainer__icon},(0,m.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+v.loadingCircle+" "+v.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint})),void S.push(d.default.createElement("div",{className:n+" "+v.image+" not-loaded ril-not-loaded",style:i,key:e.props[t]+P[t]},d.default.createElement("div",{className:v.loadingContainer},l)))}i.width=a.width,i.height=a.height;var c=a.src;o?(i.backgroundImage="url('"+c+"')",S.push(d.default.createElement("div",{className:n+" "+v.image+" "+v.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:i,key:c+P[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+v.downloadBlocker})))):S.push(d.default.createElement("img",{className:n+" "+v.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:i,src:c,key:c+P[t],alt:s||(0,m.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+v.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*_,y:-1*E,zoom:R})),O("prevSrc","image-prev ril-image-prev "+v.imagePrev,t.getTransform({x:-1*C.width}));var j=function(){},M=[v.toolbarItemChild,v.builtinButton,v.zoomInButton],F=[v.toolbarItemChild,v.builtinButton,v.zoomOutButton],L=this.handleZoomInButtonClick,I=this.handleZoomOutButtonClick;k===h.MAX_ZOOM_LEVEL&&(M.push(v.builtinButtonDisabled),L=j),k===h.MIN_ZOOM_LEVEL&&(F.push(v.builtinButtonDisabled),I=j),this.isAnimating()&&(L=j,I=j);var q={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:a?this.requestClose:j,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:q},d.default.createElement("div",{className:"outer ril-outer "+v.outer+" "+v.outerAnimating+(x?" closing ril-closing "+v.outerClosing:""),style:{transition:"opacity "+i+"ms",animationDuration:i+"ms",animationDirection:x?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+v.inner,onClick:a?this.closeIfClickInner:j},S),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+v.navButtons+" "+v.navButtonPrev,key:"prev",onClick:this.isAnimating()?j:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+v.navButtons+" "+v.navButtonNext,key:"next",onClick:this.isAnimating()?j:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+v.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+v.toolbarSide+" "+v.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+v.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",v.toolbarSide,v.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+v.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+M.join(" "),onClick:L})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+F.join(" "),onClick:I})),d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+v.toolbarItemChild+" "+v.builtinButton+" "+v.closeButton),onClick:this.isAnimating()?j:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+v.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+v.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,r=e.y,a=void 0===r?null:r,o=e.zoom,l=void 0===o?null:o,s=b<10,u=[];return null===n&&null===a||u.push(s?"translate("+(n||0)+"px,"+(a||0)+"px)":"translate3d("+(n||0)+"px,"+(a||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),i({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);w.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},w.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=w},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function i(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function a(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function o(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=r,t.getWindowWidth=i,t.getWindowHeight=a,t.isInIframe=o},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), +t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var a=v++;n=g||(g=l(t)),r=c.bind(null,n,a,!1),i=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=p.bind(null,n),i=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=d.bind(null,n),i=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(i),a&&URL.revokeObjectURL(a)}var f={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=m(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var a=[],o=0;oi&&s>o||(e.moveCard(r,i),t.getItem().index=i)}}},h=function(e){function t(){i(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,i=e.connectDropTarget,a=e.deleteCard,o=n?0:1,l={"float":"right",cursor:"pointer"};return r(i(u.default.createElement("div",{style:{opacity:o},className:"dragcard"},t,!!a&&u.default.createElement("span",{style:l,onClick:a,title:"删除",className:"rm-icon"},u.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,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},58:function(e,t,n){!function(t,r){e.exports=r(n(1),n(13))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,n){t.exports=e},function(e,t,n){"use strict";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 a(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 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 l=function(){function e(e,t){for(var n=0;n
    '),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,i,a,o,l,s,u,c,d,p,f,m;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),a=0,s=d.length;a'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),m=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},r=function(){var e,t,n,r,i,a,o;for(r=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],a=0,o=n.length;a'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=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,i,a;if(n=e.hiddenFileInput.files,n.length)for(i=0,a=n.length;i',this.options.dictFallbackText&&(r+="

    "+this.options.dictFallbackText+"

    "),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(i=t.createElement('
    '),i.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=i?i:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,i,a;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(o=["TB","GB","MB","KB","b"],n=l=0,s=o.length;l=t){r=e/Math.pow(this.options.filesizeBase,4-n),i=a;break}r=Math.round(10*r)/10}return""+r+" "+i},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,r,i;for(i=[],n=0,r=e.length;n0){for(a=0,o=n.length;a1024*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,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=N;c=0<=N?++j:--j)a.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(_,a,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var i,a,o;for(a=0,o=e.length;ac;)t=i[4*(s-1)+3],0===t?a=s:c=s,s=a+c>>1;return u=s/o,0===u?1:u},o=function(e,t,n,r,i,o,l,s,u,c){var d;return d=a(t),e.drawImage(t,n,r,i,o,l,s,u,c/d)},i=function(e,t){var n,r,i,a,o,l,s,u,c;if(i=!1,c=!0,r=e.document,u=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",a=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[s](l+n.type,a,!1),!i&&(i=!0)?t.call(e,n.type||n):void 0},o=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(o,50)}return a("poll")},"complete"!==r.readyState){if(r.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&o()}return r[n](l+"DOMContentLoaded",a,!1),r[n](l+"readystatechange",a,!1),e[n](l+"load",a,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},i(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},o=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var a;for(a in e);return"undefined"==typeof a||r.call(e,a)};e.exports=function l(){var e,t,n,r,i,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,r=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var i=0;i1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,o&&p(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=E}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function k(e){return!!e&&"object"==typeof e}function _(e){return y(e)?a(e):l(e)}var E=9007199254740991,x="[object Arguments]",C="[object Function]",T="[object GeneratorFunction]",P=/^(?:0|[1-9]\d*)$/,S=Object.prototype,O=S.hasOwnProperty,R=S.toString,j=S.propertyIsEnumerable,M=i(Object.keys,Object),F=Math.max,L=!j.call({valueOf:1},"valueOf"),I=Array.isArray,q=c(function(e,t){if(L||f(t)||y(t))return void u(t,_(t),e);for(var n in t)O.call(t,n)&&o(e,n,t[n])});e.exports=q},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&i(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function i(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&n(e,!r)}function o(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return a(e)})}e.exports=o},86:function(e,t,n){try{(function(){"use strict";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 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 o=Object.assign||function(e){for(var t=1;ts||i<=0)&&(i=1);for(var u=[],d=0;ds)break;u.push(f)}return c.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},c.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},c.default.createElement("span",null,p.default.add((i-1)*a,1),"-",i*a>=n?n:i*a," 共",n,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},s>1&&c.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},i-l>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),i-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,i-1),title:"前页"},"<")),p.default.map(u,function(t,n){return c.default.createElement("li",{key:n,className:t===i?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),i1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,p.default.add(i,1)),title:"后页"},">")),s-l>i&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:u.PropTypes.object,refresh:u.PropTypes.func,total:u.PropTypes.number.isRequired,curPage:u.PropTypes.number,sizePerPage:u.PropTypes.number,paginationSize:u.PropTypes.number},enumerable:!0}]),t}(u.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,r=1;rAn error occured:

    "+a(p.message+"",!0)+"
    ";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,i,a,o,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((a=this.rules.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]||""});else if(a=this.rules.heading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(t&&(a=this.rules.nptable.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(a,t,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(e)){for(e=e.substring(a[0].length),o=a[2],this.tokens.push({type:"list_start",ordered:o.length>1}),a=a[0].match(this.rules.item),r=!1,p=a.length,c=0;c1&&l.length>1||(e=a.slice(c+1).join("\n")+e,c=p-1)),i=r||/\n\n(?!\s*$)/.test(s),c!==p-1&&(r="\n"===s.charAt(s.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(e))e=e.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===a[1]||"script"===a[1]||"style"===a[1]),text:a[0]});else if(!n&&t&&(a=this.rules.def.exec(e)))e=e.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(t&&(a=this.rules.table.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,r){var i=new n(t,r);return i.output(e)},n.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):(n=a(i[1]),r=n),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):a(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(a(i[2],!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(a(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(i[0].length),n=a(i[1]),r=n,o+=this.renderer.link(r,null,n);return o},n.prototype.outputLink=function(e,t){var n=a(t.href),r=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,a(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:a(e,!0))+"\n
    \n":"
    "+(n?e:a(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(o(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var a='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},i.parse=function(e,t,n){var r=new i(t,n);return r.parse(e)},i.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,a="",o="";for(n="",e=0;e"+(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?(i+=t[e].id+'["'+n+'"];',"continue"):void p.default.map(t[e].actions,function(r){p.default.map(r.results,function(a){i+=t[e].id+'["'+n+'"]',i+='--"'+p.default.escape(r.name)+"("+r.id+')"-->';var o=p.default.find(t,{id:a.step});i+=o.id+'["'+p.default.escape(o.name)+'"];'})})},o=0;o0?_.default.pick(this.state.values,v):{}):_.default.extend(g,this.state.values),b=[],_.default.mapValues(g,function(e,t){var n=_.default.findIndex(h,{key:t}),r=n===-1?{}:h[n];e?"labels"===r.key?_.default.isArray(e)?(b=_.default.uniq(_.default.map(_.default.filter(e,function(e){return!!e.className}),function(e){return _.default.trim(e.value)})),g[t]=_.default.uniq(_.default.map(e,function(e){return _.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(r.type)!==-1?g[t]=e.split(","):"DatePicker"===r.type?g[t]=parseInt(P(e).startOf("day").format("X")):"DateTimePicker"===r.type?g[t]=parseInt(P(e).format("X")):"Number"===r.type?g[t]=parseFloat(e):"Integer"===r.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),w=0,_.default.isEmpty(l)||!l.id){k.next=37;break}if(!d||!f){k.next=31;break}return k.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(w=k.sent,0===w){k.next=31;break}return this.setState({ecode:w}),k.abrupt("return");case 31:return k.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:w=k.sent,0===w&&(i(),d&&f?E.notify.show("提交完成。","success",2e3):E.notify.show("问题已更新。","success",2e3)),k.next=42;break;case 37:return u.id&&_.default.extend(g,{parent_id:u.id}),k.next=40,regeneratorRuntime.awrap(t(g));case 40:w=k.sent,0===w&&(y?this.setState({preCreated:!0}):(i(),E.notify.show("问题已创建。","success",2e3)));case 42:0===w&&b.length>0&&r(b),this.setState({ecode:w});case 44:case"end":return k.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.loading,r=e.data,i=void 0===r?{}:r,a=e.isFromWorkflow,o=void 0!==a&&a;if(!n){var l=!o&&(i.id&&this.getChangedKeys().length>0||!i.id&&this.getChangedKeysForOriginal().length>0);l&&!confirm("确认要关闭该页面?")||(this.setState({ecode:0}),t())}}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,r=_.default.find(n.types,{id:e}).schema;if(r){var i={},a={};_.default.map(r,function(e){t.state.errors[e.key]?a[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&_.default.isArray(e.defaultValue)?a[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&_.default.isString(e.defaultValue)?a[e.key]=e.defaultValue.split(","):a[e.key]=e.defaultValue:t.state.values[e.key]&&(a[e.key]=t.state.values[e.key]),e.required&&!a[e.key]&&(i[e.key]="必填")}),a.type=e,this.setState({errors:i,touched:{},schema:r,values:a})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void E.notify.show("文档上传失败。","error",2e3);var n=t.data,r=n.field,i=void 0===r?"":r,a=n.file,o=void 0===a?{}:a;this.state.values[i]=this.state.values[i]||[],this.state.values[i].push(o.id),e.field=i,e.fid=o.id,i&&this.state.errors[i]?(delete this.state.errors[i],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=_.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var r=_.default.find(this.state.schema,{key:t});r&&r.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=_.default.trim(e),n=t.split(" "),r=!0;return _.default.map(n,function(e){if(e){_.default.endsWith(e.toLowerCase(),"w")||_.default.endsWith(e.toLowerCase(),"d")||_.default.endsWith(e.toLowerCase(),"h")||_.default.endsWith(e.toLowerCase(),"m")||(r=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(r=!1)}}),r}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||_.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&_.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!P(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.options,i=t.loading,a=t.project,o=t.data,l=void 0===o?{}:o,s=t.parent,d=void 0===s?{}:s,f=t.isSubtask,g=void 0!==f&&f,b=t.isFromWorkflow,k=void 0!==b&&b,E=this.state,x=E.schema,P=E.createOther,R=E.preCreated,j=_.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),M={height:"580px",overflow:"auto"};return k&&(M={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:this.handleCancel,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},l.id?k?"流程页面":"编辑问题 - "+l.no:g?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:M,ref:"createModal"},!k&&!g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,a.name||"-")))),!k&&g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,d.title?d.no+"-"+d.title:l.parent&&l.parent.title?l.parent.no+"-"+l.parent.title:"-")))),!k&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:j,disabled:i,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),_.default.map(x,function(t,n){var o=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:o+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:i,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+a.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(T.MultiRowsTextEditor,{id:o+"-field-textarea-"+t.key,disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+a.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&r.permissions&&r.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:o+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(m.default,{multi:!0,disabled:i,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:_.default.map(r.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:i,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:_.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px" +}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(h.CheckboxGroup,{style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},_.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(h.Checkbox,{disabled:i,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:o+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},_.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:i,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(v.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&r.permissions&&r.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+a.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:o+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(w.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:i,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!i&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),R&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:S,className:i?"loading":"hide"}),!l.id&&u.default.createElement(c.Checkbox,{disabled:i,checked:P,onClick:function(){e.setState({createOther:!P})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:l.id&&this.getChangedKeys().length<=0&&k===!1||_.default.isEmpty(x)||!_.default.isEmpty(this.state.errors)||i||R,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n'+l+''),r.push(o)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var i=t.match(/\[.*?\]\(.*?\)/gi);return i&&p.default.forEach(i,function(e,n){var r=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");r.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,i=t.fieldKey,a=t.value,o=void 0===a?"":a,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(i,o),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(m.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n/gi),i=[];return r&&c.default.forEach(r,function(t,r){var a=new RegExp('^$');if(a.exec(t)){var o=RegExp.$1;if(!o)return;n=n.replace(t,''),i.push(o)}}),{html:n,imgFiles:i}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,i=t.fieldKey,a=t.value,o=this.state,l=o.inlinePreviewShow,u=o.photoIndex,c=this.extractImg(i,a||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:v}}).call(this)}finally{}},112:function(e,t,n){var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};r=function(){return a}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},115:function(e,t,n){function r(e){return e()}var i=n(1),a=n(13),o=n(71),l=n(25),s=n(112),u=i.createFactory(n(116)),c=n(117),d=n(119),p=n(207),f=n(13).unstable_renderSubtreeIntoContainer,m=n(70),h=n(69),y=s.canUseDOM?window.HTMLElement:{},g=s.canUseDOM?document.body:{appendChild:function(){}},v=h({displayName:"Modal",statics:{setAppElement:function(e){g=c.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:l.bool.isRequired,style:l.shape({content:l.object,overlay:l.object}),portalClassName:l.string,bodyOpenClassName:l.string,appElement:l.instanceOf(y),onAfterOpen:l.func,onRequestClose:l.func,closeTimeoutMS:l.number,ariaHideApp:l.bool,shouldCloseOnOverlayClick:l.bool,parentSelector:l.func,role:l.string,contentLabel:l.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&&d.add(this);var e=r(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&&d.add(this),e.isOpen||d.remove(this);var t=r(this.props.parentSelector),n=r(e.parentSelector);n!==t&&(t.removeChild(this.node),n.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){d.remove(this),this.props.ariaHideApp&&c.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 r=this;setTimeout(function(){r.removePortal()},n-t)}else this.removePortal()}},removePortal:function(){a.unmountComponentAtNode(this.node);var e=r(this.props.parentSelector);e.removeChild(this.node),0===d.count()&&p(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||d.count()>0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(m({},e,{defaultStyles:v.defaultStyles})),this.node)},render:function(){return o.noscript()}});v.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=v},116:function(e,t,n){var r=(n(1),n(71)),i=n(118),a=n(120),o=n(70),l=n(69),s=r.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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(){i.returnFocus(),i.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(i.setupScopedFocus(this.node),i.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&&a(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"},r=n.base;return this.state.afterOpen&&(r+=" "+n.afterOpen),this.state.beforeClose&&(r+=" "+n.beforeClose),"string"==typeof t&&t?[r,t].join(" "):r},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:o({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:o({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function r(e){o(e),(e||s).setAttribute("aria-hidden","true")}function i(e){o(e),(e||s).removeAttribute("aria-hidden")}function a(e,t){e?r(t):i(t)}function o(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=a,t.setElement=n,t.show=i,t.hide=r,t.resetForTesting=l},118:function(e,t,n){function r(e){s=!0}function i(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=a(l)[0]||l;e.focus()}},0)}}var a=n(72),o=[],l=null,s=!1;t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=o.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",i,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",i))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",i)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",i))}},119: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}}},120:function(e,t,n){var r=n(72);e.exports=function(e,t){var n=r(e);if(!n.length)return void t.preventDefault();var i=n[t.shiftKey?0:n.length-1],a=i===document.activeElement||e===document.activeElement;if(a){t.preventDefault();var o=n[t.shiftKey?n.length-1:0];o.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function i(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function a(e){return{type:"WORKFLOW_SELECT",id:e}}function o(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=i,t.select=a,t.delNotify=o,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(i,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.parent_id,i=n.type,a=e.handleSubmit,o=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:a(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(m.default.Async,{clearable:!1,disabled:l,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(m.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:i.value,onChange:function(e){i.onChange(e)},placeholder:"选择问题类型"}),i.touched&&i.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},i.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||o,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:k})(t)||t}(u.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},180:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(i,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,r=e.handleSubmit,i=e.invalid,a=e.submitting,o=e.issue;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.no)),c.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(m.default.Async,{clearable:!1,disabled:a,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:a?"loading":"hide"}),c.default.createElement(p.Button,{disabled:a||i,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:k})(t)||t}(u.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},184:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&n(o),i(),v.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,r=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(r.labels||[],function(e){return{value:e,label:e}})}:{labels:(r.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,r=e.handleSubmit,i=e.invalid,a=e.submitting,o=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+o.no)),u.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(h.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:a,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),u.default.createElement("img",{src:b,className:a?"loading":"hide"}),u.default.createElement(d.Button,{disabled:a||i,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},186:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0)){s.next=11;break}return o=a[e-1].id,s.next=9,regeneratorRuntime.awrap(n(o));case 9:l=s.sent,0===l&&r();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function h(e){var t,n,h,r,i,a,o,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,h=t.forward,r=t.visitedIndex,i=t.visitedCollection,a=void 0===i?[]:i,o=w.default.add(r,e),!a[o]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(a[o]));case 10:l=s.sent,0===l&&h(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,r,i,a,o;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,r=t.show,i=t.watch,a=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(r(n.id));case 8:a=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(o=n.watching,this.watch(n.id,!o)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g=this.props.watch,r.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=r.sent,0===n?t?k.notify.show("关注成功。","success",2e3):k.notify.show("已取消关注。","success",2e3):t?k.notify.show("关注失败。","error",2e3):k.notify.show("取消失败。","error",2e3);case 5:case"end":return r.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t=this.props,n=t.show,r=t.record,a.next=5,regeneratorRuntime.awrap(n(e));case 5:i=a.sent,0===i&&r();case 7:case"end":return a.stop()}},null,this)}},{key:"doAction",value:function b(e){var t,b,n,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=this.props,b=t.doAction,n=t.data,r=w.default.find(n.wfactions||{},{id:e}),!r||!r.screen){a.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),a.next=12;break;case 8:return a.next=10,regeneratorRuntime.awrap(b(n.id,n.entry_id,{action_id:e}));case 10:i=a.sent,0===i?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return a.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,r,i,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(t=this.props,n=t.data,r=t.doAction,i=w.default.find(n.wfactions||{},{id:e}),!i||!i.schema){o.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),o.next=12;break;case 8:return o.next=10,regeneratorRuntime.awrap(r(n.id,n.entry_id,{action_id:e}));case 10:a=o.sent,0===a?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return o.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void k.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=w.default.find(n,{name:e}),i={};return r&&r.bgColor&&(i={backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"}),i}},{key:"createLightbox",value:function(e,t,n){var r=this,i=this.props.project;return c.default.createElement(y.default,{mainSrc:K+"/project/"+i.key+"/file/"+t[n].id,nextSrc:K+"/project/"+i.key+"/file/"+t[(n+1)%t.length].id,prevSrc:K+"/project/"+i.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){r.state.previewShow[e]=!1,r.setState({previewShow:r.state.previewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,r,i){var a=this,o=this.state,l=o.editingItems,s=o.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(i&&i>0?"(字数"+i+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||i&&i>0&&w.default.trim(s[t]||"").length>i},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,r,i){var a=this,o=this.state,l=o.editingItems,s=o.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(E.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(i&&i>0?"(字数"+i+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||i&&i>0&&w.default.trim(s[t]||"").length>i},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(E.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,r=e.layout,i=w.default.min([w.default.max([r.containerWidth/2,660]),1e3]),a={width:i+"px"},o={};void 0!==n.left?(a.left=n.left-i,o.left=n.left):(a.right=-i,o.right=0),C(".animate-dialog").css(a),C(".animate-dialog").animate(o)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,i=t.close,a=(t.detailFloatStyle,t.data),o=void 0===a?{}:a,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,h=t.loading,y=t.itemLoading,g=t.options,b=t.project,E=t.fileLoading,x=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue, +t.setLabels),ne=t.addLabels,re=t.resetState,ie=t.wfCollection,ae=t.wfLoading,oe=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,me=t.delComments,he=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,ve=t.historyIndexLoading,be=t.indexGitCommits,we=t.sortGitCommits,ke=t.gitCommitsCollection,_e=t.gitCommitsIndexLoading,Ee=t.indexWorklog,xe=t.worklogSort,Ce=t.sortWorklog,Te=t.worklogCollection,Pe=t.worklogIndexLoading,Se=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,je=t.delWorklog,Me=t.createLink,Fe=t.delLink,Le=t.linkLoading,Ie=t.doAction,qe=t.user,Ne=this.state,De=(Ne.inlinePreviewShow,Ne.previewShow),Ae=Ne.photoIndex,Be=Ne.newAssignee,We=Ne.editAssignee,He=Ne.editingItems,ze=Ne.newItemValues,Ue=Ne.delFileShow,Ve=Ne.selectedFile,Ye=Ne.action_id,Ge=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ke={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=w.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];w.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=w.default.find(g.types,{id:o.type}),Qe=$e&&$e.schema?$e.schema:[],Je=w.default.findIndex(f,{id:o.id}),et=o.priority?w.default.findIndex(g.priorities,{id:o.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&w.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=o.state?w.default.findIndex(g.states,{id:o.state}):-1,rt="";nt!==-1&&(rt="state-"+g.states[nt].category+"-label");var it=!1,at=w.default.findIndex(Qe,{key:"descriptions"});at!==-1&&(it=Qe[at].required&&!0);var ot={};o.epic&&(ot=w.default.find(g.epics,{id:o.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(o.comments_num>99?"99+":o.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(o.worklogs_num>99?"99+":o.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(o.gitcommits_num>99?"99+":o.gitcommits_num||0)+")")),ct=w.default.min([w.default.max([r.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:i,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:o.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(o.id,!o.watching)}},o.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ke},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:M,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(o.wfactions&&o.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},w.default.map(o.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},w.default.map(o.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},o.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},o.watchers&&o.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!o.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&!o.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{divider:!0}),!o.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!o.hasSubtasks&&!o.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),o.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),o.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(w.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&o.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&o.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",o.reporter&&o.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},o.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(o.parent.id)}},o.parent.no+"-"+(o.parent.title||"")),o.parent&&" / ",o.no+"-"+(o.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:rt},g.states[nt].name):"-",ae?c.default.createElement("img",{src:M,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.resolutions||[],{id:o.resolution})?w.default.find(g.resolutions,{id:o.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:We?7:3},We?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(v.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||o.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},o.assignee&&o.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,o.assignee&&o.assignee.name||"-")),(!o.assignee||o.assignee.id!==qe.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!We&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!We&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,o.reporter&&o.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(o.descriptions,"descriptions","描述",it)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},o.created_at?T.unix(o.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},o.updated_at?T.unix(o.updated_at).format("YYYY/MM/DD HH:mm"):o.created_at?T.unix(o.created_at).format("YYYY/MM/DD HH:mm"):"-"))),o.labels&&o.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(o.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),o.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.versions,{id:o.resolve_version})?w.default.find(g.versions,{id:o.resolve_version}).name:"-"))),o.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?epic="+o.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:ot.bgColor,backgroundColor:ot.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:ot.name||"-"},ot.name||"-"))))),o.sprints&&o.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(o.sprints,function(e){return w.default.find(g.sprints,{no:e}).name}).join(", ")))),(o.expect_start_time||o.expect_complete_time)&&c.default.createElement(d.FormGroup,null,o.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),o.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(o.expect_start_time).format("YYYY/MM/DD"))),o.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),o.expect_complete_time&&c.default.createElement(d.Col,{sm:o.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},T.unix(o.expect_complete_time).format("YYYY/MM/DD")))),w.default.isNumber(o.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},He.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:ze.progress||0,onChange:function(t){ze.progress=t.target.value,e.setState({newItemValues:ze})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",ze.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",o.reporter&&o.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(o.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){He.progress=!0,ze.progress=o.progress||0,e.setState({editingItems:He,newItemValues:ze})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(o.progress||"0")+"%"))))),o.subtasks&&o.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},o.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",o.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&o.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(o.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},w.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:t.state}).category+"-label"},w.default.find(g.states,{id:t.state}).name):"-"))}))))),o.links&&o.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},o.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",o.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&o.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(o.links,function(t,n){var r={},i="",a="";if(t.src.id==o.id)r=t.dest,i=t.relation,a=t.dest.id;else if(t.dest.id==o.id){r=t.src,i=t.relation;var l=w.default.findIndex(g.relations||[],{out:i});if(l!==-1)i=g.relations[l].in||"";else{var s=w.default.findIndex(g.relations||[],{"in":i});s!==-1&&(i=g.relations[s].out||"")}a=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,i,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==r.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(a)}},r.no," - ",r.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},w.default.find(g.states||[],{id:r.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:r.state}).category+"-label"},w.default.find(g.states,{id:r.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:r.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),w.default.map(Qe,function(t,n){if(Ge.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&w.default.isEmpty(o[t.key]))return}else if(w.default.isEmpty(o[t.key])&&!w.default.isNumber(o[t.key]))return;var r="";if("SingleUser"===t.type)r=o[t.key]&&o[t.key].name||"-";else if("MultiUser"===t.type)r=w.default.map(o[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var i=t.optionValues||[];r=w.default.find(i,{id:o[t.key]})?w.default.find(i,{id:o[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=w.default.isArray(o[t.key])?o[t.key]:o[t.key].split(","),i=[];w.default.map(n,function(t,n){w.default.find(e,{id:t})&&i.push(w.default.find(e,{id:t}).name)}),r=i.join(", ")||"-"}();else if("DatePicker"===t.type)r=T.unix(o[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)r=T.unix(o[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var a={showFiletypeIcon:!0,postUrl:K+"/project/"+b.key+"/file?issue_id="+o.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){k.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=w.default.filter(o[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=w.default.filter(o[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});r=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(p,function(n,r){return c.default.createElement("tr",{key:r},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,_.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:K+"/project/"+b.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,w.default.map(u,function(n,r){return c.default.createElement(d.Col,{sm:6,key:r},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,r,t.key)},c.default.createElement("img",{src:K+"/project/"+b.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(m.default,{config:a,eventHandlers:s,djsConfig:l})),De[t.key]&&e.createLightbox(t.key,u,Ae))}else r="TextArea"===t.type?e.getTextAreaItemContents(o[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(o[t.key],t.key,t.name,t.required,t.maxLength):o[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},r)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:o.id,currentTime:g.current_time||0,currentUser:qe,collection:ge,indexHistory:he,sortHistory:ye,indexLoading:ve})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(S,{i18n:n,currentTime:g.current_time||0,currentUser:qe,project:b,permissions:g.permissions||[],issue_id:o.id,collection:se,indexComments:oe,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:me,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(j,{i18n:n,currentTime:g.current_time||0,currentUser:qe,permissions:g.permissions||[],issue:o,original_estimate:o.original_estimate,options:g.timetrack||{},collection:Te,indexWorklog:Ee,sort:xe,sortWorklog:Ce,indexLoading:Pe,loading:Se,addWorklog:Oe,editWorklog:Re,delWorklog:je})),o.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:o.id,currentTime:g.current_time||0,currentUser:qe,collection:ke,indexGitCommits:be,sortGitCommits:we,indexLoading:_e})))),Ue&&c.default.createElement(L,{show:!0,close:this.delFileModalClose,del:x,data:Ve,loading:E,i18n:n}),this.state.editModalShow&&c.default.createElement(P,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:o,isSubtask:o.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(P,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:o,action_id:Ye,doAction:Ie,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(U,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:o,action_id:Ye,doAction:Ie}),this.state.createSubtaskModalShow&&c.default.createElement(P,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:h,project:b,parent:o,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(F,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:o.state,collection:ie}),this.state.linkIssueModalShow&&c.default.createElement(I,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:Le,createLink:Me,issue:o,types:g.types,project:b,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(q,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Le,delLink:Fe,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:h,issue:o,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:b,convert:J,loading:h,issue:o,i18n:n}),this.state.moveModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:b,move:Q,loading:h,issue:o,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:o,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(W,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:o,i18n:n}),this.state.shareModalShow&&c.default.createElement(H,{show:!0,project:b,close:function(){e.setState({shareModalShow:!1})},issue:o}),this.state.resetModalShow&&c.default.createElement(z,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:re,issue:o,i18n:n}),this.state.delNotifyShow&&c.default.createElement(V,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:o,del:X,detailClose:i,i18n:n}),this.state.copyModalShow&&c.default.createElement(Y,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:h,copy:$,data:o,i18n:n}),this.state.watchersModalShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:o.no,watchers:o.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(o.request({url:"/project/"+i.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(a,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.loading,i=t.options.relations,a=void 0===i?[]:i,o=[];return y.default.forEach(a,function(e){e.out==e.in?o.push({value:e.out,label:e.out}):(o.push({value:e.out,label:e.out}),o.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:r,options:o,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:r,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:v,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:r||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},221:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n'+i+'
    '),imgFileUrls.push(r)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var r=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){r.state.inlinePreviewShow[e]=!1,r.setState({inlinePreviewShow:r.state.inlinePreviewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var i=_lodash2.default.find(e,{nameAndEmail:n});return i&&t.state.atWho.push(i.id),"@"+i.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.currentTime,i=t.permissions,a=t.currentUser,o=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,m=t.users,h=t.project,y=t.issue_id,g=this.state,v=g.inlinePreviewShow,b=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){o(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),i.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var o=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===a.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&a.id===t.creator.id&&i.indexOf("delete_self_comments")!==-1||i.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&a.id===t.creator.id&&i.indexOf("edit_self_comments")!==-1||i.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),i.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:o,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[t.id]&&e.createLightbox(t.id,c,b),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,o){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===a.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,r))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&a.id===n.creator.id&&i.indexOf("delete_self_comments")!==-1||i.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&a.id===n.creator.id&&i.indexOf("edit_self_comments")!==-1||i.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),i.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[n.id]&&e.createLightbox(n.id,c,b))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:m,project:h,permissions:i,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var i=p.default.find(e,{nameAndEmail:n});return i&&t.state.atWho.push(i.id),"@"+i.name}},data:e}),m(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=m(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.data,i=t.loading,a="";return a=r.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},a)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:i,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&n[this.state.ecode]),u.default.createElement("img",{src:h,className:i?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||i,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:i,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n'+(t.author&&t.author.id===i.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.committed_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n'+(t.operator&&t.operator.id===i.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.operated_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n=0){var c=f.default.floor(u/a);c>0&&s.push(c+"w")}if(u%=a,u>=0){var d=f.default.floor(u/o);d>0&&s.push(d+"d")}if(u%=o,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.permissions,i=t.currentTime,a=t.currentUser,o=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,b=t.indexLoading,w=t.loading,k=t.addWorklog,_=t.editWorklog,E=t.delWorklog,x=t.original_estimate,C=void 0===x?"":x,T=void 0;C&&(T=this.t2m(C)),"desc"===s&&p.reverse();var P=0;f.default.map(p,function(t){if(P=f.default.add(P,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 r=e.t2m(t.cut);T=T-r>0?T-r:0}return f.default.extend(t,{leave_estimate_m:T}),t});var S=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:b&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:w,onClick:function(){l(o.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:w,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:b&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},P>0?this.m2t(P):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===S.leave_estimate_m?"-":this.m2t(S.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},b&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:h,className:"loading"})),p.length<=0&&!b?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var o=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===a.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.recorded_at,i))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&a.id===t.recorder.id&&r.indexOf("delete_self_worklog")!==-1||r.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&a.id===t.recorder.id&&r.indexOf("edit_self_worklog")!==-1||r.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:o,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:o,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,add:k,edit:_,i18n:n}),this.state.delWorklogShow&&u.default.createElement(v,{show:!0,issue:o,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,del:E,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},337:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n0&&u.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变过滤器显示顺序。"),n.length>0?n.map(function(t,n){return u.default.createElement(g.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:d?e.deleteCard.bind(e,n):null})}):u.default.createElement("p",null,"暂无自定义过滤器。"))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&a[this.state.ecode]),u.default.createElement("img",{src:k,className:o?"loading":"hide"}),u.default.createElement(c.Button,{disabled:o||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:o,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,title:s.PropTypes.string,loading:s.PropTypes.bool,isRemovable:s.PropTypes.bool,config:s.PropTypes.func.isRequired,filters:s.PropTypes.array.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragDropContext)(f.default)(t)||t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},588:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;ne.expect_complete_time&&(n.expect_start_time="开始时间要早于结束时间"),e.progress&&(isNaN(e.progress)?n.progress="格式错误":(e.progress<0||e.progress>100)&&(n.progress="数值必须在0~100之间")),n},w=function(e){function t(e){i(this,n),s(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)}a(t,e),l(t,[{key:"handleSubmit",value:function(){var e,t,n,r,i,a,o;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:return e=this.props,t=e.values,n=e.edit,r=e.close,i=e.data,a={},t.expect_start_time?a.expect_start_time=parseInt(g(t.expect_start_time).startOf("day").format("X")):a.expect_start_time="",t.expect_complete_time?a.expect_complete_time=parseInt(g(t.expect_complete_time).startOf("day").format("X")):a.expect_complete_time="",t.progress||0===t.progress?a.progress=t.progress-0:a.progress="",l.next=11,regeneratorRuntime.awrap(n(i.id,a));case 11:o=l.sent,0===o?(this.setState({ecode:0}),y.notify.show("编辑完成。","success",2e3),r()):this.setState({ecode:o});case 13:case"end":return l.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,t=e.initializeForm,n=e.data;t({expect_start_time:g.unix(n.expect_start_time||n.expect_complete_time||n.created_at).startOf("day"),expect_complete_time:g.unix(n.expect_complete_time||n.expect_start_time||n.created_at),progress:n.progress||0})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.expect_start_time,i=n.expect_complete_time,a=n.progress,l=e.handleSubmit,s=e.invalid,u=e.submitting,d=e.data;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"},"问题编辑 - "+d.no)),c.default.createElement("form",{onSubmit:l(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,null,c.default.createElement(p.ControlLabel,null,"主题"),c.default.createElement("span",{style:{marginLeft:"10px"}},d.title)),c.default.createElement("div",null,c.default.createElement(p.FormGroup,{style:{width:"47%",display:"inline-block"},validationState:r.value&&r.error?"error":null},c.default.createElement(p.ControlLabel,null,"期望开始时间"),c.default.createElement(h.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&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{style:{width:"47%",display:"inline-block","float":"right"},validationState:i.value&&i.error?"error":null},c.default.createElement(p.ControlLabel,null,"期望完成时间"),c.default.createElement(h.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:i.value,onChange:function(e){i.onChange(e)}}),i.value&&i.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},i.error))),c.default.createElement(p.FormGroup,{style:{marginBottom:"0px"},validationState:a.touched&&a.error?"error":null},c.default.createElement(p.ControlLabel,null,"进度"),c.default.createElement(p.FormControl,o({disabled:u,type:"number",min:"0",max:"100",style:{width:"80px",display:"inline-block",marginLeft:"10px"}},a,{placeholder:"进度"}))," %",a.value&&a.touched&&a.error?c.default.createElement(p.HelpBlock,null,a.error):"")),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!u&&t[this.state.ecode]),c.default.createElement("img",{src:v,className:u?"loading":"hide"}),c.default.createElement(p.Button,{disabled:u||s,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:u,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,data:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,initializeForm:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"ganttedit",fields:["expect_start_time","expect_complete_time","progress"],validate:b})(t)||t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1844:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n1?n(p.default.extend(i,{page:void 0})):r(i):"gotolist"===e&&n(p.default.extend(i,{page:void 0}),"issuelist")}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.user,i=(t.index,t.create),a=t.addLabels,o=t.saveFilter,l=t.resetFilters,s=t.configFilters,d=t.delFilters,b=t.indexLoading,w=t.optionsLoading,k=t.filterLoading,_=t.options,E=void 0===_?{}:_,x=t.refresh,C=t.query,T=t.loading,P=t.project,S=p.default.reject(p.default.reject(E.types||[],{type:"subtask"})||[],{disabled:!0})||[],O=w?"":(0,f.parseQuery)(C,E);return u.default.createElement("div",null,u.default.createElement("div",{style:{paddingTop:"5px"}},u.default.createElement(c.DropdownButton,{className:"create-btn",id:"filters",title:"过滤器",onSelect:this.selectFilter.bind(this)},E.filters&&E.filters.length>0?p.default.map(E.filters||[],function(e){return u.default.createElement(c.MenuItem,{eventKey:e.id,key:e.id},e.name)}):u.default.createElement(c.MenuItem,{disabled:!0},"无"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"saveFilter"},"保存当前检索"),u.default.createElement(c.MenuItem,{eventKey:"filterConfig"},"过滤器排序"),u.default.createElement(c.MenuItem,{eventKey:"filterDel"},"过滤器删除")),u.default.createElement(c.Button,{className:"create-btn",disabled:w,onClick:function(){e.setState({searchShow:!e.state.searchShow})}},"检索 ",u.default.createElement("i",{className:this.state.searchShow?"fa fa-angle-double-up":"fa fa-angle-double-down"})),E.permissions&&E.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.Button,{className:"create-btn",bsStyle:"primary",disabled:S.length<=0||w,onClick:function(){e.setState({createModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 创建"),u.default.createElement("div",{style:{marginTop:"10px","float":"right"}},u.default.createElement(c.DropdownButton,{id:"more",pullRight:!0,style:{"float":"right"},title:"更多",onSelect:this.operateSelect.bind(this)},u.default.createElement(c.MenuItem,{eventKey:"refresh"},"刷新"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"gotolist"},"跳至问题列表"))),O&&u.default.createElement("div",{className:"cond-bar"},u.default.createElement("div",{className:"cond-contents",title:O},u.default.createElement("b",null,"检索条件"),":",O),u.default.createElement("div",{className:"remove-icon",onClick:function(){x({})},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(g,{show:!0,isRemovable:!1,close:this.filterConfigModalClose,loading:k,config:s,filters:E.filters||[],i18n:n}),this.state.filterDelShow&&u.default.createElement(v,{show:!0,close:this.filterDelModalClose,loading:k,del:d,data:p.default.filter(E.filters||[],function(e){return e.creator==r.id}),i18n:n}),u.default.createElement(f.IssueFilterList,{values:C,searchShow:this.state.searchShow,indexLoading:b,options:E,onChange:function(e){x(p.default.assign({},e,{page:void 0}))}}),this.state.createModalShow&&u.default.createElement(m,{show:!0,close:this.createModalClose,options:E,create:i,addLabels:a,loading:T,project:P,i18n:n}),this.state.saveFilterShow&&u.default.createElement(h,{show:!0,close:this.saveFilterModalClose,filters:E.filters||[],create:o,query:C,loading:k,sqlTxt:O,options:E,i18n:n}),this.state.resetFiltersShow&&u.default.createElement(y,{show:!0,close:this.resetFiltersNotifyClose,reset:l,loading:k,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,user:s.PropTypes.object.isRequired,create:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,resetFilters:s.PropTypes.func.isRequired,configFilters:s.PropTypes.func.isRequired,delFilters:s.PropTypes.func.isRequired,index:s.PropTypes.func,refresh:s.PropTypes.func,getOptions:s.PropTypes.func,query:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool.isRequired,optionsLoading:s.PropTypes.bool.isRequired,filterLoading:s.PropTypes.bool.isRequired,indexLoading:s.PropTypes.bool.isRequired},enumerable:!0}]),t}(s.Component));t.default=b,e.exports=t.default}).call(this)}finally{}},1847:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;n=1)return;t+=.2}t>1&&(t=1),t<.6&&(t=.6),t=p.default.round(t,1),this.configs.cellWidth=25*t,this.setState({scaling:t})}},{key:"show",value:function n(e){var t,n,r,i;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return this.setState({detailBarShow:!0}),t=this.props,n=t.show,r=t.record,a.next=6,regeneratorRuntime.awrap(n(e));case 6:i=a.sent,0==i&&r();case 8:case"end":return a.stop()}},null,this)}},{key:"componentWillMount",value:function(){var e,t,n,r;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e=this.props,t=e.index,n=e.query,r=void 0===n?{}:n,i.next=6,regeneratorRuntime.awrap(t(r));case 6:case"end":return i.stop()}},null,this)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.index,r=t.query,i=e.query||{};p.default.isEqual(i,r)||n(i);var a=e.options.singulars,o=void 0===a?[]:a;e.collection.length>0?(this.state.collection.length<=0?this.arrangeData(e.collection,this.state.sortkey):this.arrangeData(this.arrangeCollection(e.collection,this.state.collection)),this.setBoundaryDatesFromData(this.state.collection),this.setDates(o)):(this.state.collection=[],this.state.markedIssue={})}},{key:"arrangeCollection",value:function(e,t){for(var n=[],r=e.length,i=0;ir&&(t=r);var i=e.expect_complete_time||e.expect_start_time||e.created_at;n0){var d=!1;navigator.userAgent.indexOf("compatible")===-1&&navigator.userAgent.indexOf("MSIE")===-1&&navigator.userAgent.indexOf("Trident")===-1||(d=!0),h("div.ganttview").css("height",p.default.min([document.body.clientHeight-(i?150:200),31*l.length+(d?59:53)])),h("div.ganttview-slide-container").unbind("scroll").scroll(function(){setTimeout(function(){return h("div.ganttview-hzheader").css("top",h("div.ganttview-slide-container").scrollTop()),h("div.ganttview-slide-container").scrollLeft(p.default.ceil(h("div.ganttview-slide-container").scrollLeft()/c)*c),h("div.ganttview-vtheader-item").scrollTop()!==h("div.ganttview-slide-container").scrollTop()&&void h("div.ganttview-vtheader-item").scrollTop(h("div.ganttview-slide-container").scrollTop())},200)}),h("div.ganttview-vtheader-item").unbind("scroll").scroll(function(){setTimeout(function(){return h("div.ganttview-vtheader-series-header-item").css("left",-h("div.ganttview-vtheader-item").scrollLeft()),h("div.ganttview-vtheader-item").scrollTop()!==h("div.ganttview-slide-container").scrollTop()&&(h("div.ganttview-slide-container").scrollTop(h("div.ganttview-vtheader-item").scrollTop()),void h("div.ganttview-hzheader").css("top",h("div.ganttview-slide-container").scrollTop()))},200)})}!r.permissions||r.permissions.indexOf("edit_issue")===-1&&r.permissions.indexOf("edit_self_issue")===-1||p.default.forEach(l,function(e){e.hasSubtasks||r.permissions.indexOf("edit_issue")===-1&&(e.reporter&&e.reporter.id)!=a.id||(h("#"+e.id+"-block").unbind("dblclick").bind("dblclick",function(){var e=h(this);u.clickBar(e)}),h("#"+e.id+"-block").unbind("resizable").resizable({grid:c,handles:"e,w",start:function(){h(this).children("div.ganttview-block-progress").length>0&&h(this).children("div.ganttview-block-progress").css("display","none")},resize:function(){h(this).css("top","0px").css("height",u.configs.blockHeight+"px")},stop:function(){var e=h(this),t=m.unix(t).subtract(1,"days").startOf("day").format("X");u.updateData(e),h(this).children("div.ganttview-block-progress").length>0&&h(this).children("div.ganttview-block-progress").css("display","")}}),h("#"+e.id+"-block").unbind("draggable").draggable({axis:"x",grid:[c,c],stop:function(){var e=h(this);u.updateData(e)}}))})}},{key:"clickBar",value:function(e){var t=this.props.collection,n=e.attr("data-id"),r=p.default.find(t,{id:n});this.setState({editModalShow:!0,selectedIssue:r})}},{key:"closeDetail",value:function(){var e=this,t=this.state.markedIssue,n=this.props.layout,r=p.default.min([p.default.max([n.containerWidth/2,f.DetailMinWidth]),f.DetailMaxWidth]),i={right:-r};h(".animate-dialog").animate(i),setTimeout(function(){e.setState({detailBarShow:!1})},300),h(".ganttview-vtheader-series-item").each(function(e){t.id===h(this).attr("id")?h(this).css("background-color","#FFFACD"):h(this).css("background-color","")});var a=this.props.cleanRecord;a()}},{key:"fold",value:function(e){var t=this.state.foldIssues.indexOf(e);t!==-1?this.state.foldIssues.splice(t,1):this.state.foldIssues.push(e),this.setState({foldIssues:this.state.foldIssues})}},{key:"setSort",value:function(e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:this.arrangeData(this.props.collection,e),window.localStorage&&window.localStorage.setItem("gantt-sortkey",e),this.setState({sortkey:e}),this.closeDetail();case 4:case"end":return t.stop()}},null,this)}},{key:"selectMode",value:function(e){window.localStorage&&window.localStorage.setItem("gantt-mode",e),this.setState({mode:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.isHeaderHidden,i=t.toggleHeader,a=t.layout,o=t.itemData,l=void 0===o?{}:o,s=t.loading,c=t.indexLoading,d=t.itemLoading,p=t.options,f=void 0===p?{}:p,m=t.show,h=t.record,x=t.forward,C=t.visitedIndex,T=t.visitedCollection,P=t.del,S=t.edit,O=t.create,R=t.setAssignee,j=t.setItemValue,M=t.setLabels,F=t.addLabels,L=t.query,I=t.refresh,q=t.project,N=t.delFile,D=t.addFile,A=t.fileLoading,B=t.wfCollection,W=t.wfLoading,H=t.viewWorkflow,z=t.indexComments,U=t.sortComments,V=t.commentsCollection,Y=t.commentsIndexLoading,G=t.commentsLoading,K=t.commentsLoaded,Z=t.addComments,X=t.editComments,$=t.delComments,Q=t.commentsItemLoading,J=t.indexWorklog,ee=t.worklogSort,te=t.sortWorklog,ne=t.worklogCollection,re=t.worklogIndexLoading,ie=t.worklogLoading,ae=t.worklogLoaded,oe=t.addWorklog,le=t.editWorklog,se=t.delWorklog,ue=t.indexHistory,ce=t.sortHistory,de=t.historyCollection,pe=t.historyIndexLoading,fe=t.historyLoaded,me=t.indexGitCommits,he=t.sortGitCommits,ye=t.gitCommitsCollection,ge=t.gitCommitsIndexLoading,ve=t.gitCommitsLoaded,be=t.createLink,we=t.delLink,ke=t.linkLoading,_e=t.watch,Ee=t.copy,xe=t.move,Ce=t.convert,Te=t.resetState,Pe=t.doAction,Se=t.user,Oe=this.state,Re=Oe.scaling,je=Oe.mode,Me=Oe.collection,Fe=Oe.selectedIssue,Le=Oe.sortkey,Ie=Oe.foldIssues,qe=Oe.dates,Ne=Oe.range,De=Oe.markedIssue;return u.default.createElement("div",null,u.default.createElement("div",{style:{marginTop:"10px",height:"25px"}},u.default.createElement("span",null,u.default.createElement("span",{style:{marginRight:"5px",fontWeight:600}},"排序:"),"start_time_asc"==Le?u.default.createElement("span",null,"开始时间"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setSort("start_time_asc")}},"开始时间"),u.default.createElement("span",{className:"ganttview-divider"}," | "),"create_time_asc"==Le?u.default.createElement("span",null,"创建时间"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setSort("create_time_asc")}},"创建时间"),u.default.createElement("span",{className:"ganttview-divider"}," | "),"title_asc"==Le?u.default.createElement("span",null,"主题"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setSort("title_asc")}},"主题")),u.default.createElement("span",{style:{marginLeft:"15px"}},u.default.createElement("span",{style:{marginRight:"5px",fontWeight:600}}," 显示:"),"progress"==je?u.default.createElement("span",null,"按进度"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.selectMode("progress")}},"按进度"),u.default.createElement("span",{className:"ganttview-divider"}," | "),"status"==je?u.default.createElement("span",null,"按状态"):u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.selectMode("status")}},"按状态")),u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.locateToday()}},u.default.createElement("span",{style:{marginLeft:"15px"}},u.default.createElement("i",{className:"fa fa-dot-circle-o"})," 今天")),u.default.createElement("span",{style:{"float":"right",marginRight:"5px"}},u.default.createElement("span",{title:"缩小",className:Re<=.6||Me.length<=0?"ganttview-fa-button-disable":"ganttview-fa-button",onClick:function(t){e.changeScaling("-")}},u.default.createElement("i",{className:"fa fa-search-minus"})),u.default.createElement("span",{title:"放大",className:Re>=1||Me.length<=0?"ganttview-fa-button-disable":"ganttview-fa-button",onClick:function(t){e.changeScaling("+")}},u.default.createElement("i",{className:"fa fa-search-plus"})),u.default.createElement("span",{className:"ganttview-fa-button",title:r?"展示头部":"隐藏头部",onClick:i},u.default.createElement("i",{className:r?"fa fa-angle-double-down":"fa fa-angle-double-up"}))),f.permissions&&(f.permissions.indexOf("edit_issue")!==-1||f.permissions.indexOf("edit_self_issue")!==-1)&&u.default.createElement("span",{className:"ganttview-msg-notice"},"注:移动或调整任务条将改变任务的开始时间和完成时间,也可通过双击任务条修改。")),c&&u.default.createElement("div",{style:{textAlign:"center",paddingTop:"50px"}},u.default.createElement("img",{src:y,className:"loading"})),!c&&Me.length<=0&&u.default.createElement("div",{style:{textAlign:"center",marginTop:"50px"}},u.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},u.default.createElement("i",{className:"fa fa-warning"})),u.default.createElement("br",null),u.default.createElement("span",null,"抱歉,暂无满足该检索条件的数据。")),!c&&Me.length>0&&u.default.createElement("div",{className:"ganttview"},u.default.createElement(k,{collection:Me,foldIssues:Ie,selectedIssue:l,options:f,mode:je,show:this.show,locate:this.locate,mark:this.mark,fold:this.fold}),u.default.createElement("div",{className:"ganttview-slide-container"},u.default.createElement(_,{cellWidth:this.configs.cellWidth,dates:qe,today:f.today||""}),u.default.createElement(w,{cellWidth:this.configs.cellWidth,collection:Me,dates:qe,foldIssues:Ie,markedIssue:De,today:f.today||""}),u.default.createElement(E,{cellWidth:this.configs.cellWidth,blockHeight:this.configs.blockHeight,collection:Me,origin:Ne[0],mode:je,foldIssues:Ie,selectedIssue:l,options:f}))),this.state.editModalShow&&u.default.createElement(v,{show:!0,i18n:n,mode:"progress",close:function(){e.setState({editModalShow:!1})},edit:S,data:Fe}),this.state.detailBarShow&&u.default.createElement(b,{i18n:n,layout:a,create:O,edit:S,del:P,setAssignee:R,setItemValue:j,setLabels:M,addLabels:F,close:this.closeDetail,options:f,data:l,record:h,forward:x,visitedIndex:C,visitedCollection:T,issueCollection:Me,show:m,itemLoading:d,loading:s,fileLoading:A,project:q,delFile:N,addFile:D,wfCollection:B,wfLoading:W,viewWorkflow:H,indexComments:z,sortComments:U,commentsCollection:V,commentsIndexLoading:Y,commentsLoading:G,commentsItemLoading:Q,commentsLoaded:K,addComments:Z,editComments:X,delComments:$,indexWorklog:J,worklogSort:ee,sortWorklog:te,worklogCollection:ne,worklogIndexLoading:re,worklogLoading:ie,worklogLoaded:ae,addWorklog:oe,editWorklog:le,delWorklog:se,indexHistory:ue,sortHistory:ce,historyCollection:de,historyIndexLoading:pe,historyLoaded:fe,indexGitCommits:me,sortGitCommits:he,gitCommitsCollection:ye,gitCommitsIndexLoading:ge,gitCommitsLoaded:ve,linkLoading:ke,createLink:be,delLink:we,watch:_e,copy:Ee,move:xe,convert:Ce,resetState:Te,doAction:Pe,user:Se}),!c&&f.total&&f.total>0?u.default.createElement(g,{total:f.total||0,curPage:L.page?L.page-0:1,sizePerPage:f.sizePerPage||100,paginationSize:4,query:L,refresh:I}):"")}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,isHeaderHidden:s.PropTypes.bool.isRequired,toggleHeader:s.PropTypes.func.isRequired,layout:s.PropTypes.object.isRequired,collection:s.PropTypes.array.isRequired,wfCollection:s.PropTypes.array.isRequired,wfLoading:s.PropTypes.bool.isRequired,viewWorkflow:s.PropTypes.func.isRequired,indexComments:s.PropTypes.func.isRequired,sortComments:s.PropTypes.func.isRequired,addComments:s.PropTypes.func.isRequired,editComments:s.PropTypes.func.isRequired,delComments:s.PropTypes.func.isRequired,commentsCollection:s.PropTypes.array.isRequired,commentsIndexLoading:s.PropTypes.bool.isRequired,commentsLoading:s.PropTypes.bool.isRequired,commentsItemLoading:s.PropTypes.bool.isRequired,commentsLoaded:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,worklogSort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,worklogCollection:s.PropTypes.array.isRequired,worklogIndexLoading:s.PropTypes.bool.isRequired,worklogLoading:s.PropTypes.bool.isRequired,worklogLoaded:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,historyCollection:s.PropTypes.array.isRequired,historyIndexLoading:s.PropTypes.bool.isRequired,historyLoaded:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,gitCommitsCollection:s.PropTypes.array.isRequired,gitCommitsIndexLoading:s.PropTypes.bool.isRequired,gitCommitsLoaded:s.PropTypes.bool.isRequired,itemData:s.PropTypes.object.isRequired,project:s.PropTypes.object,options:s.PropTypes.object,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,query:s.PropTypes.object,show:s.PropTypes.func.isRequired,edit:s.PropTypes.func.isRequired,create:s.PropTypes.func.isRequired,setAssignee:s.PropTypes.func.isRequired,setItemValue:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,fileLoading:s.PropTypes.bool.isRequired,delFile:s.PropTypes.func.isRequired,addFile:s.PropTypes.func.isRequired,record:s.PropTypes.func.isRequired,forward:s.PropTypes.func.isRequired,cleanRecord:s.PropTypes.func.isRequired,visitedIndex:s.PropTypes.number.isRequired,visitedCollection:s.PropTypes.array.isRequired,createLink:s.PropTypes.func.isRequired,delLink:s.PropTypes.func.isRequired,linkLoading:s.PropTypes.bool.isRequired,doAction:s.PropTypes.func.isRequired,watch:s.PropTypes.func.isRequired,copy:s.PropTypes.func.isRequired,move:s.PropTypes.func.isRequired,convert:s.PropTypes.func.isRequired,resetState:s.PropTypes.func.isRequired,del:s.PropTypes.func.isRequired,user:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=x,e.exports=t.default}).call(this)}finally{}},1849:function(e,t,n){try{(function(){"use strict";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 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 o=function(){function e(e,t){for(var n=0;nn&&s>i||(e.moveCard(a,n),t.getItem().index=n)}}},m=function(e){function t(){n(this,r),l(Object.getPrototypeOf(r.prototype),"constructor",this).apply(this,arguments)}o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.text,r=e.isDragging,a=e.connectDragSource,n=e.connectDropTarget,o=e.deleteCard,i=r?0:1,l={"float":"right",cursor:"pointer"};return a(n(u.default.createElement("div",{style:{opacity:i},className:"dragcard"},t,!!o&&u.default.createElement("span",{style:l,onClick:o,title:"删除",className:"rm-icon"},u.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 r=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{}},86:function(e,t,r){try{(function(){"use strict";function a(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 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 i=Object.assign||function(e){for(var t=1;ts||n<=0)&&(n=1);for(var u=[],d=0;ds)break;u.push(f)}return c.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},c.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},c.default.createElement("span",null,p.default.add((n-1)*o,1),"-",n*o>=r?r:n*o," 共",r,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},s>1&&c.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},n-l>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),n-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,n-1),title:"前页"},"<")),p.default.map(u,function(t,r){return c.default.createElement("li",{key:r,className:t===n?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),n1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,p.default.add(n,1)),title:"后页"},">")),s-l>n&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:u.PropTypes.object,refresh:u.PropTypes.func,total:u.PropTypes.number.isRequired,curPage:u.PropTypes.number,sizePerPage:u.PropTypes.number,paginationSize:u.PropTypes.number},enumerable:!0}]),t}(u.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},1055:function(e,t,r){try{(function(){"use strict";function a(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 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 i=Object.assign||function(e){for(var t=1;t-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,r;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(e=e.toLowerCase()){a.next=3;break}return a.abrupt("return",{options:[]});case 3:return t=new g.default,a.next=6,regeneratorRuntime.awrap(t.request({url:"/user/search?s="+e}));case 6:return r=a.sent,a.abrupt("return",{options:y.default.map(r.data,function(e){return e.nameAndEmail=e.name+"("+e.email+")",e})});case 8:case"end":return a.stop()}},null,this)}},{key:"handleUserSelectChange",value:function(e){this.setState({addUsers:e})}},{key:"render",value:function(){var e=this,t=this.state,r=t.users,a=t.addUsers,n=this.props,o=n.i18n.errMsg,i=n.loading;return y.default.map(r,function(e,t){e.name||(r[t].name=e.first_name+"("+e.email+")")}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel.bind(this),bsSize:"large",backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"用户配置 - "+this.props.data.name)),u.default.createElement(c.Modal.Body,{style:{height:"420px",overflow:"auto"}},u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.FormGroup,{controlId:"formControlsText"},u.default.createElement(c.Col,{sm:6},u.default.createElement(h.default.Async,{multi:!0,clearable:!1,options:[],value:a,onChange:this.handleUserSelectChange.bind(this),valueKey:"id",labelKey:"nameAndEmail",loadOptions:this.searchUsers,placeholder:"请输入用户"}),u.default.createElement(c.Button,{style:{"float":"right",marginTop:"15px"},onClick:this.add.bind(this)},"添加至成员列表 >> ")),u.default.createElement(c.Col,{sm:6},r.length>0&&u.default.createElement("div",{style:{marginBottom:"8px"}},"成员列表 - ",r.length),r.length>0?r.map(function(t,r){return u.default.createElement("div",{className:"user-item",key:r},t.name,u.default.createElement("span",{style:{"float":"right",cursor:"pointer"},onClick:e.deleteUser.bind(e,r)},u.default.createElement("i",{className:"fa fa-remove"})))}):u.default.createElement("p",null,"用户列表为空。"))))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&o[this.state.ecode]),u.default.createElement("img",{src:E,className:i?"loading":"hide"}),u.default.createElement(c.Button,{disabled:i,onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:i,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=w,e.exports=t.default}).call(this)}finally{}},1059:function(e,t,r){try{(function(){"use strict";function a(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 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 i=function(){function e(e,t){for(var r=0;r0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(e,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.first_name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,users:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},1851:function(e,t,r){try{(function(){"use strict";function a(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 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)}function l(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&&(B={mode:"checkbox",selected:this.state.selectedIds,onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)});var I=!1;return y.default.map(a,function(t){y.default.indexOf(e.state.selectedIds,t.id)!==-1&&(t.directory&&"self"!=t.directory||(I=!0))}),u.default.createElement("div",null,u.default.createElement("div",{style:{marginTop:"5px",height:"40px"}},u.default.createElement(d.FormGroup,null,u.default.createElement("span",{style:{"float":"right",width:"18%"}},u.default.createElement(f.default,{simpleValue:!0,placeholder:"用户目录",value:this.state.directory,onChange:this.directoryChange.bind(this),options:y.default.map(T.directories||[],function(e){return{label:e.name,value:e.id}})})),u.default.createElement("span",{style:{"float":"right",width:"130px",marginRight:"10px"}},u.default.createElement(f.default,{simpleValue:!0,placeholder:"公开范围",value:this.state.public_scope,onChange:this.scopeChange.bind(this),options:y.default.map(j,function(e,t){return{value:t,label:e}})})),u.default.createElement("span",{style:{"float":"right",width:"20%",marginRight:"10px"}},u.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&&u.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},u.default.createElement(d.DropdownButton,{title:"操作",onSelect:this.multiOperateSelect.bind(this)},!I&&u.default.createElement(d.MenuItem,{disabled:!0,eventKey:"null"},"无"),I&&u.default.createElement(d.MenuItem,{eventKey:"del"},"删除"))),u.default.createElement("span",{style:{"float":"left",marginRight:"20px"}},u.default.createElement(d.Button,{onClick:function(){e.setState({createModalShow:!0})},disabled:i},u.default.createElement("i",{className:"fa fa-plus"})," 新建组")))),u.default.createElement("div",null,u.default.createElement("div",{className:"info-col"},u.default.createElement("div",{className:"info-icon"},u.default.createElement("i",{className:"fa fa-info-circle"})),u.default.createElement("div",{className:"info-content"},u.default.createElement("span",null,"从外部用户目录同步过来的用户组,不能对其做任何操作。"))),u.default.createElement(c.BootstrapTable,{data:q,bordered:!1,hover:!0,options:N,trClassName:"tr-middle",selectRow:B},u.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),u.default.createElement(c.TableHeaderColumn,{dataField:"name"},"组名"),u.default.createElement(c.TableHeaderColumn,{dataField:"principal"},"负责人"),u.default.createElement(c.TableHeaderColumn,{dataField:"count"},"成员个数"),u.default.createElement(c.TableHeaderColumn,{dataField:"public_scope"},"公开范围"),u.default.createElement(c.TableHeaderColumn,{dataField:"directory"},"目录"),u.default.createElement(c.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.editModalShow&&u.default.createElement(E,{show:!0,close:this.editModalClose,update:v,data:n,i18n:r}),this.state.createModalShow&&u.default.createElement(g,{show:!0,mode:"admin",close:this.createModalClose,create:p,i18n:r}),this.state.usersConfigModalShow&&u.default.createElement(w,{show:!0,close:this.usersConfigModalClose,config:v,data:n,loading:o,i18n:r}),this.state.operateNotifyShow&&u.default.createElement(C,{show:!0,close:this.operateNotifyClose,data:n,operate:this.state.operate,del:h,i18n:r}),this.state.multiOperateNotifyShow&&u.default.createElement(P,{show:!0,close:this.multiOperateNotifyClose,collection:a,multiDel:m,ids:this.state.selectedIds,cancelSelected:this.cancelSelected.bind(this),operate:this.state.multiOperate,loading:o,i18n:r}),this.state.viewUsersModalShow&&u.default.createElement(O,{show:!0,close:this.viewUsersModalClose.bind(this),users:n.users||[]})),!i&&T.total&&T.total>0?u.default.createElement(b,{total:T.total||0,curPage:k.page||1,sizePerPage:T.sizePerPage||30,paginationSize:4,query:k,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=T,e.exports=t.default}).call(this)}finally{}},1853:function(e,t,r){try{(function(){"use strict";function a(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 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 i=function(){function e(e,t){for(var r=0;r0?u.default.createElement(b,{total:v.total||0,curPage:_.page||1,sizePerPage:v.sizePerPage||30,paginationSize:4,query:_,refresh:p}):"")}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object,user:s.PropTypes.object.isRequired,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},enumerable:!0}]),t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},2071:function(e,t,r){try{(function(){"use strict";function e(e){return(0,u.asyncFuncCreator)({constant:"GROUP_INDEX",promise:function(t){return t.request({url:"/group"+(e?"?"+e:"")})}})}function a(e){return(0,u.asyncFuncCreator)({constant:"GROUP_INDEX",promise:function(t){return t.request({url:"/mygroup"+(e?"?"+e:"")})}})}function n(e){return(0,u.asyncFuncCreator)({constant:"GROUP_CREATE",promise:function(t){return t.request({url:"/group",method:"post",data:e})}})}function o(e,t){return(0,u.asyncFuncCreator)({constant:"GROUP_UPDATE",promise:function(r){return r.request({url:"/group/"+e,method:"put",data:t})}})}function i(e){return(0,u.asyncFuncCreator)({constant:"GROUP_DELETE",id:e,promise:function(t){return t.request({url:"/group/"+e,method:"delete"})}})}function l(e){return{type:"GROUP_SELECT",id:e}}function s(e){return(0,u.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.myGroup=a,t.create=n,t.update=o,t.del=i,t.select=l,t.multiDel=s;var u=r(26)}).call(this)}finally{}}}); -//# sourceMappingURL=group-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=group-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/issue-2fafc167f8a6ebfe8dae.js b/public/assets/issue-2fafc167f8a6ebfe8dae.js deleted file mode 100644 index 703e8322..00000000 --- a/public/assets/issue-2fafc167f8a6ebfe8dae.js +++ /dev/null @@ -1,15 +0,0 @@ -webpackJsonp([5],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=r;var a=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=a;var o={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=o;var i=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=i;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},32:function(e,t,n){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!e)return"";if(!t)return s.unix(e).format("YYYY/MM/DD HH:mm:ss");var n=[{value:31536e3,suffix:"年前",max:2},{value:2592e3,suffix:"个月前",max:11},{value:604800,suffix:"周前",max:4},{value:86400,suffix:"天前",max:6},{value:3600,suffix:"小时前",max:23},{value:600,suffix:"0分钟前",max:5}],r="刚刚",a=t-e;if(a<=0)return r;for(var o=0;o<6;o++){var i=l.default.floor(a/n[o].value);if(i>=1){r=l.default.min([i,n[o].max])+n[o].suffix;break}}return r}function a(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var r={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},a=t.substr(n+1);return r[a]?"fa fa-file-"+r[a]+"-o":"fa fa-file-o"}function o(e,t,n){var r=e<0?-1:1;e=Math.abs(e);var a=[],o=l.default.ceil(e);if(o>=0){var i=l.default.floor(e/t);i>0&&a.push(i+"w")}if(o=e%t,o>=0){var s=l.default.floor(o/n);s>0&&a.push(s+"d")}if(o%=n,o>=0){var u=l.default.floor(o/60);u>0&&a.push(u+"h")}return o%=60,o>0&&a.push(o+"m"),a.length<=0&&a.push("0m"),(r<0?"-":"")+a.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=r,t.getFileIconCss=a,t.ttFormat=o;var i=n(3),l=e(i),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var o=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(a.onChange=r.bind(null,this.props.value)),l.default.createElement("input",o({},this.props,{type:"checkbox",name:t},a))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.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),r=a(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},44:function(e,t,n){!function(t,r){e.exports=r(n(1),n(121))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 l(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&&(g=Math.max(b.minX,Math.min(b.maxX,g)),v=Math.max(b.minY,Math.min(b.maxY,v))),this.setState({zoomLevel:r,offsetX:g,offsetY:v})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,h.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),a=r.height-2*this.props.imagePadding,o=r.width-2*this.props.imagePadding;n||(a=Math.min(a,t),o=Math.min(o,e));var i=o/a,l=e/t;return i>l?{width:e*a/t,height:a}:{width:o,height:t*o/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),a=0;a=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2;var o=0;return o=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,{maxX:a,maxY:o,minX:-1*a,minY:-1*o}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(m.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,h.getWindowWidth)(),height:(0,h.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=o?(this.requestMoveNext(e),r=a,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*o)&&(this.requestMovePrev(e),r=a,this.scrollX=0)}0!==r&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},r))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=m.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)m.MIN_ZOOM_LEVEL?this.changeZoom(m.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+m.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=m.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,r=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===r||this.setState({offsetX:n,offsetY:r})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=m.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+m.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-m.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,r=this.caption.scrollTop;(e.deltaY>0&&t+r>=n||e.deltaY<0&&r<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var r=this,a=new Image;a.onerror=function(){t("image load error")},a.onload=function(){r.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},a.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(r){return r?void(window.console&&window.console.warn(r)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(r){var a=r.name;t[a]&&!e.isImageLoaded(t[a])&&e.loadImage(t[a],n(a,t[a]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:m.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,r=n.animationDisabled,a=n.animationDuration,o=n.clickOutsideToClose,i=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,w=this.state,k=w.zoomLevel,E=w.offsetX,x=w.offsetY,_=w.isClosing,C=this.getLightboxRect(),S={};!r&&this.isAnimating()&&(S=u({},S,{transition:"transform "+a+"ms"}));var T={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;T[t]=n});var P=[],O=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var a=u({},r,S);k>m.MIN_ZOOM_LEVEL&&(a.cursor="move");var o=e.getBestImageForType(t);if(null===o){var l=void 0;return l=b<10?d.default.createElement("div",{className:v.loadingContainer__icon},(0,h.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+v.loadingCircle+" "+v.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint})),void P.push(d.default.createElement("div",{className:n+" "+v.image+" not-loaded ril-not-loaded",style:a,key:e.props[t]+T[t]},d.default.createElement("div",{className:v.loadingContainer},l)))}a.width=o.width,a.height=o.height;var c=o.src;i?(a.backgroundImage="url('"+c+"')",P.push(d.default.createElement("div",{className:n+" "+v.image+" "+v.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:a,key:c+T[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+v.downloadBlocker})))):P.push(d.default.createElement("img",{className:n+" "+v.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:a,src:c,key:c+T[t],alt:s||(0,h.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+v.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*E,y:-1*x,zoom:R})),O("prevSrc","image-prev ril-image-prev "+v.imagePrev,t.getTransform({x:-1*C.width}));var M=function(){},j=[v.toolbarItemChild,v.builtinButton,v.zoomInButton],F=[v.toolbarItemChild,v.builtinButton,v.zoomOutButton],I=this.handleZoomInButtonClick,L=this.handleZoomOutButtonClick;k===m.MAX_ZOOM_LEVEL&&(j.push(v.builtinButtonDisabled),I=M),k===m.MIN_ZOOM_LEVEL&&(F.push(v.builtinButtonDisabled),L=M),this.isAnimating()&&(I=M,L=M);var q={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:o?this.requestClose:M,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:q},d.default.createElement("div",{className:"outer ril-outer "+v.outer+" "+v.outerAnimating+(_?" closing ril-closing "+v.outerClosing:""),style:{transition:"opacity "+a+"ms",animationDuration:a+"ms",animationDirection:_?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+v.inner,onClick:o?this.closeIfClickInner:M},P),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+v.navButtons+" "+v.navButtonPrev,key:"prev",onClick:this.isAnimating()?M:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+v.navButtons+" "+v.navButtonNext,key:"next",onClick:this.isAnimating()?M:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+v.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+v.toolbarSide+" "+v.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+v.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",v.toolbarSide,v.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+v.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+j.join(" "),onClick:I})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+F.join(" "),onClick:L})),d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+v.toolbarItemChild+" "+v.builtinButton+" "+v.closeButton),onClick:this.isAnimating()?M:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+v.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+v.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,r=e.y,o=void 0===r?null:r,i=e.zoom,l=void 0===i?null:i,s=b<10,u=[];return null===n&&null===o||u.push(s?"translate("+(n||0)+"px,"+(o||0)+"px)":"translate3d("+(n||0)+"px,"+(o||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),a({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);w.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},w.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=w},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function a(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function o(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=r,t.getWindowWidth=a,t.getWindowHeight=o,t.isInIframe=i},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), -t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function u(e,t){var n,r,a;if(t.singleton){var o=v++;n=g||(g=l(t)),r=c.bind(null,n,o,!1),a=c.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=p.bind(null,n),a=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=d.bind(null,n),a=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function c(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=a(e);return r(n,t),function(e){for(var o=[],i=0;ia&&s>i||(e.moveCard(r,a),t.getItem().index=a)}}},m=function(e){function t(){a(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,a=e.connectDropTarget,o=e.deleteCard,i=n?0:1,l={"float":"right",cursor:"pointer"};return r(a(u.default.createElement("div",{style:{opacity:i},className:"dragcard"},t,!!o&&u.default.createElement("span",{style:l,onClick:o,title:"删除",className:"rm-icon"},u.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{}},58:function(e,t,n){!function(t,r){e.exports=r(n(1),n(13))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,n){t.exports=e},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});var l=function(){function e(e,t){for(var n=0;n
    '),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,a,o,i,l,s,u,c,d,p,f,h;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),o=0,s=d.length;o'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),h=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},r=function(){var e,t,n,r,a,o,i;for(r=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],o=0,i=n.length;o'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=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,a,o;if(n=e.hiddenFileInput.files,n.length)for(a=0,o=n.length;a',this.options.dictFallbackText&&(r+="

    "+this.options.dictFallbackText+"

    "),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(a=t.createElement('
    '),a.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=a?a:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,a,o;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(i=["TB","GB","MB","KB","b"],n=l=0,s=i.length;l=t){r=e/Math.pow(this.options.filesizeBase,4-n),a=o;break}r=Math.round(10*r)/10}return""+r+" "+a},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,r,a;for(a=[],n=0,r=e.length;n0){for(o=0,i=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,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=N;c=0<=N?++M:--M)o.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(E,o,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var a,o,i;for(o=0,i=e.length;oc;)t=a[4*(s-1)+3],0===t?o=s:c=s,s=o+c>>1;return u=s/i,0===u?1:u},i=function(e,t,n,r,a,i,l,s,u,c){var d;return d=o(t),e.drawImage(t,n,r,a,i,l,s,u,c/d)},a=function(e,t){var n,r,a,o,i,l,s,u,c;if(a=!1,c=!0,r=e.document,u=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[s](l+n.type,o,!1),!a&&(a=!0)?t.call(e,n.type||n):void 0},i=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(i,50)}return o("poll")},"complete"!==r.readyState){if(r.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&i()}return r[n](l+"DOMContentLoaded",o,!1),r[n](l+"readystatechange",o,!1),e[n](l+"load",o,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},a(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},i=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var o;for(o in e);return"undefined"==typeof o||r.call(e,o)};e.exports=function l(){var e,t,n,r,a,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,r=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var a=0;a1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&p(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=x}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function k(e){return!!e&&"object"==typeof e}function E(e){return y(e)?o(e):l(e)}var x=9007199254740991,_="[object Arguments]",C="[object Function]",S="[object GeneratorFunction]",T=/^(?:0|[1-9]\d*)$/,P=Object.prototype,O=P.hasOwnProperty,R=P.toString,M=P.propertyIsEnumerable,j=a(Object.keys,Object),F=Math.max,I=!M.call({valueOf:1},"valueOf"),L=Array.isArray,q=c(function(e,t){if(I||f(t)||y(t))return void u(t,E(t),e);for(var n in t)O.call(t,n)&&i(e,n,t[n])});e.exports=q},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&a(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function a(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&n(e,!r)}function i(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return o(e)})}e.exports=i},86:function(e,t,n){try{(function(){"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("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;ts||a<=0)&&(a=1);for(var u=[],d=0;ds)break;u.push(f)}return c.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},c.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},c.default.createElement("span",null,p.default.add((a-1)*o,1),"-",a*o>=n?n:a*o," 共",n,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},s>1&&c.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},a-l>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),a-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,a-1),title:"前页"},"<")),p.default.map(u,function(t,n){return c.default.createElement("li",{key:n,className:t===a?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),a1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,p.default.add(a,1)),title:"后页"},">")),s-l>a&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:u.PropTypes.object,refresh:u.PropTypes.func,total:u.PropTypes.number.isRequired,curPage:u.PropTypes.number,sizePerPage:u.PropTypes.number,paginationSize:u.PropTypes.number},enumerable:!0}]),t}(u.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(r,a){return r?(a=a.source||a,a=a.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,a),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,r=1;rAn error occured:

    "+o(p.message+"",!0)+"
    ";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,a,o,i,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),s={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),i=o[2],this.tokens.push({type:"list_start",ordered:i.length>1}),o=o[0].match(this.rules.item),r=!1,p=o.length,c=0;c1&&l.length>1||(e=o.slice(c+1).join("\n")+e,c=p-1)),a=r||/\n\n(?!\s*$)/.test(s),c!==p-1&&(r="\n"===s.charAt(s.length-1),a||(a=r)),this.tokens.push({type:a?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),s={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,r){var a=new n(t,r);return a.output(e)},n.prototype.output=function(e){for(var t,n,r,a,i="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),i+=a[1];else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),"@"===a[2]?(n=":"===a[1].charAt(6)?this.mangle(a[1].substring(7)):this.mangle(a[1]),r=this.mangle("mailto:")+n):(n=o(a[1]),r=n),i+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.tag.exec(e))!this.inLink&&/^/i.test(a[0])&&(this.inLink=!1),e=e.substring(a[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):o(a[0]):a[0];else if(a=this.rules.link.exec(e))e=e.substring(a[0].length),this.inLink=!0,i+=this.outputLink(a,{href:a[2],title:a[3]}),this.inLink=!1;else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){i+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),i+=this.renderer.strong(this.output(a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),i+=this.renderer.em(this.output(a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),i+=this.renderer.codespan(o(a[2],!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),i+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),i+=this.renderer.del(this.output(a[1]));else if(a=this.rules.text.exec(e))e=e.substring(a[0].length),i+=this.renderer.text(o(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(a[0].length),n=o(a[1]),r=n,i+=this.renderer.link(r,null,n);return i},n.prototype.outputLink=function(e,t){var n=o(t.href),r=t.title?o(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,o(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,a=0;a.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:o(e,!0))+"\n
    \n":"
    "+(n?e:o(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(i(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(a){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var o='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},a.parse=function(e,t,n){var r=new a(t,n);return r.parse(e)},a.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,a,o="",i="";for(n="",e=0;e"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",o=function(e){var n=p.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(a+=t[e].id+'["'+n+'"];',"continue"):void p.default.map(t[e].actions,function(r){p.default.map(r.results,function(o){a+=t[e].id+'["'+n+'"]',a+='--"'+p.default.escape(r.name)+"("+r.id+')"-->';var i=p.default.find(t,{id:o.step});a+=i.id+'["'+p.default.escape(i.name)+'"];'})})},i=0;i0?E.default.pick(this.state.values,v):{}):E.default.extend(g,this.state.values),b=[],E.default.mapValues(g,function(e,t){var n=E.default.findIndex(m,{key:t}),r=n===-1?{}:m[n];e?"labels"===r.key?E.default.isArray(e)?(b=E.default.uniq(E.default.map(E.default.filter(e,function(e){return!!e.className}),function(e){return E.default.trim(e.value)})),g[t]=E.default.uniq(E.default.map(e,function(e){return E.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(r.type)!==-1?g[t]=e.split(","):"DatePicker"===r.type?g[t]=parseInt(T(e).startOf("day").format("X")):"DateTimePicker"===r.type?g[t]=parseInt(T(e).format("X")):"Number"===r.type?g[t]=parseFloat(e):"Integer"===r.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),w=0,E.default.isEmpty(l)||!l.id){k.next=37;break}if(!d||!f){k.next=31;break}return k.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(w=k.sent,0===w){k.next=31;break}return this.setState({ecode:w}),k.abrupt("return");case 31:return k.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:w=k.sent,0===w&&(a(),d&&f?x.notify.show("提交完成。","success",2e3):x.notify.show("问题已更新。","success",2e3)),k.next=42;break;case 37:return u.id&&E.default.extend(g,{parent_id:u.id}),k.next=40,regeneratorRuntime.awrap(t(g));case 40:w=k.sent,0===w&&(y?this.setState({preCreated:!0}):(a(),x.notify.show("问题已创建。","success",2e3)));case 42:0===w&&b.length>0&&r(b),this.setState({ecode:w});case 44:case"end":return k.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props.close;this.setState({ecode:0}),e()}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,r=E.default.find(n.types,{id:e}).schema;if(r){var a={},o={};E.default.map(r,function(e){t.state.errors[e.key]?o[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&E.default.isArray(e.defaultValue)?o[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&E.default.isString(e.defaultValue)?o[e.key]=e.defaultValue.split(","):o[e.key]=e.defaultValue:t.state.values[e.key]&&(o[e.key]=t.state.values[e.key]),e.required&&!o[e.key]&&(a[e.key]="必填")}),o.type=e,this.setState({errors:a,touched:{},schema:r,values:o})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void x.notify.show("文档上传失败。","error",2e3);var n=t.data,r=n.field,a=void 0===r?"":r,o=n.file,i=void 0===o?{}:o;this.state.values[a]=this.state.values[a]||[],this.state.values[a].push(i.id),e.field=a,e.fid=i.id,a&&this.state.errors[a]?(delete this.state.errors[a],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=E.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var r=E.default.find(this.state.schema,{key:t});r&&r.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=E.default.trim(e),n=t.split(" "),r=!0;return E.default.map(n,function(e){if(e){E.default.endsWith(e.toLowerCase(),"w")||E.default.endsWith(e.toLowerCase(),"d")||E.default.endsWith(e.toLowerCase(),"h")||E.default.endsWith(e.toLowerCase(),"m")||(r=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(r=!1)}}),r}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||E.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&E.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!T(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.options,a=t.close,o=t.loading,i=t.project,l=t.data,s=void 0===l?{}:l,d=t.parent,f=void 0===d?{}:d,g=t.isSubtask,b=void 0!==g&&g,k=t.isFromWorkflow,x=void 0!==k&&k,_=this.state,T=_.schema,R=_.createOther,M=_.preCreated,j=E.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),F={height:"580px",overflow:"auto"};return x&&(F={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:a,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},s.id?x?"流程页面":"编辑问题 - "+s.no:b?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:F,ref:"createModal"},!x&&!b&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,i.name||"-")))),!x&&b&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,f.title?f.no+"-"+f.title:s.parent&&s.parent.title?s.parent.no+"-"+s.parent.title:"-")))),!x&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:j,disabled:o,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),E.default.map(T,function(t,n){var a=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:a+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:o,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+i.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(S.MultiRowsTextEditor,{id:a+"-field-textarea-"+t.key,disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+i.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&r.permissions&&r.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:a+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(h.default,{multi:!0,disabled:o,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:E.default.map(r.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:o,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:E.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(m.CheckboxGroup,{ -style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},E.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(m.Checkbox,{disabled:o,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:a+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},E.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:o,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(v.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&r.permissions&&r.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+i.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:a+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(w.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:a+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!o&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),M&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:P,className:o?"loading":"hide"}),!s.id&&u.default.createElement(c.Checkbox,{disabled:o,checked:R,onClick:function(){e.setState({createOther:!R})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:s.id&&this.getChangedKeys().length<=0&&x===!1||E.default.isEmpty(T)||!E.default.isEmpty(this.state.errors)||o||M,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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)}var o=function(){function e(e,t){for(var n=0;n'+l+''),r.push(i)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var a=t.match(/\[.*?\]\(.*?\)/gi);return a&&p.default.forEach(a,function(e,n){var r=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");r.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,a=t.fieldKey,o=t.value,i=void 0===o?"":o,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(a,i),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(h.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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)}var o=function(){function e(e,t){for(var n=0;n/gi),a=[];return r&&c.default.forEach(r,function(t,r){var o=new RegExp('^$');if(o.exec(t)){var i=RegExp.$1;if(!i)return;n=n.replace(t,''),a.push(i)}}),{html:n,imgFiles:a}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,a=t.fieldKey,o=t.value,i=this.state,l=i.inlinePreviewShow,u=i.photoIndex,c=this.extractImg(a,o||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:v}}).call(this)}finally{}},112:function(e,t,n){var r;!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},115:function(e,t,n){function r(e){return e()}var a=n(1),o=n(13),i=n(71),l=n(25),s=n(112),u=a.createFactory(n(116)),c=n(117),d=n(119),p=n(207),f=n(13).unstable_renderSubtreeIntoContainer,h=n(70),m=n(69),y=s.canUseDOM?window.HTMLElement:{},g=s.canUseDOM?document.body:{appendChild:function(){}},v=m({displayName:"Modal",statics:{setAppElement:function(e){g=c.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:l.bool.isRequired,style:l.shape({content:l.object,overlay:l.object}),portalClassName:l.string,bodyOpenClassName:l.string,appElement:l.instanceOf(y),onAfterOpen:l.func,onRequestClose:l.func,closeTimeoutMS:l.number,ariaHideApp:l.bool,shouldCloseOnOverlayClick:l.bool,parentSelector:l.func,role:l.string,contentLabel:l.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&&d.add(this);var e=r(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&&d.add(this),e.isOpen||d.remove(this);var t=r(this.props.parentSelector),n=r(e.parentSelector);n!==t&&(t.removeChild(this.node),n.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){d.remove(this),this.props.ariaHideApp&&c.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 r=this;setTimeout(function(){r.removePortal()},n-t)}else this.removePortal()}},removePortal:function(){o.unmountComponentAtNode(this.node);var e=r(this.props.parentSelector);e.removeChild(this.node),0===d.count()&&p(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||d.count()>0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(h({},e,{defaultStyles:v.defaultStyles})),this.node)},render:function(){return i.noscript()}});v.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=v},116:function(e,t,n){var r=(n(1),n(71)),a=n(118),o=n(120),i=n(70),l=n(69),s=r.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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(){a.returnFocus(),a.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(a.setupScopedFocus(this.node),a.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&&o(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"},r=n.base;return this.state.afterOpen&&(r+=" "+n.afterOpen),this.state.beforeClose&&(r+=" "+n.beforeClose),"string"==typeof t&&t?[r,t].join(" "):r},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:i({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:i({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function r(e){i(e),(e||s).setAttribute("aria-hidden","true")}function a(e){i(e),(e||s).removeAttribute("aria-hidden")}function o(e,t){e?r(t):a(t)}function i(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=o,t.setElement=n,t.show=a,t.hide=r,t.resetForTesting=l},118:function(e,t,n){function r(e){s=!0}function a(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=o(l)[0]||l;e.focus()}},0)}}var o=n(72),i=[],l=null,s=!1;t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=i.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",a,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",a))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",a)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",a))}},119: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}}},120:function(e,t,n){var r=n(72);e.exports=function(e,t){var n=r(e);if(!n.length)return void t.preventDefault();var a=n[t.shiftKey?0:n.length-1],o=a===document.activeElement||e===document.activeElement;if(o){t.preventDefault();var i=n[t.shiftKey?n.length-1:0];i.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function a(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function o(e){return{type:"WORKFLOW_SELECT",id:e}}function i(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=a,t.select=o,t.delNotify=i,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178:function(e,t,n){try{(function(){"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("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&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(a,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.parent_id,a=n.type,o=e.handleSubmit,i=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null -},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(h.default.Async,{clearable:!1,disabled:l,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(h.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:a.value,onChange:function(e){a.onChange(e)},placeholder:"选择问题类型"}),a.touched&&a.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},a.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||i,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:k})(t)||t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},180:function(e,t,n){try{(function(){"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("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&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(a,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,r=e.handleSubmit,a=e.invalid,o=e.submitting,i=e.issue;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"},"移动子任务 - "+i.no)),c.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(h.default.Async,{clearable:!1,disabled:o,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:o?"loading":"hide"}),c.default.createElement(p.Button,{disabled:o||a,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:o,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:k})(t)||t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},184:function(e,t,n){try{(function(){"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("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&&n(i),a(),v.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,r=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(r.labels||[],function(e){return{value:e,label:e}})}:{labels:(r.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,r=e.handleSubmit,a=e.invalid,o=e.submitting,i=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+i.no)),u.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(m.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:o,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&t[this.state.ecode]),u.default.createElement("img",{src:b,className:o?"loading":"hide"}),u.default.createElement(d.Button,{disabled:o||a,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:o,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},186:function(e,t,n){try{(function(){"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("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)){s.next=11;break}return i=o[e-1].id,s.next=9,regeneratorRuntime.awrap(n(i));case 9:l=s.sent,0===l&&r();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function m(e){var t,n,m,r,a,o,i,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,m=t.forward,r=t.visitedIndex,a=t.visitedCollection,o=void 0===a?[]:a,i=w.default.add(r,e),!o[i]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(o[i]));case 10:l=s.sent,0===l&&m(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,r,a,o,i;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,r=t.show,a=t.watch,o=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(r(n.id));case 8:o=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(i=n.watching,this.watch(n.id,!i)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g=this.props.watch,r.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=r.sent,0===n?t?k.notify.show("关注成功。","success",2e3):k.notify.show("已取消关注。","success",2e3):t?k.notify.show("关注失败。","error",2e3):k.notify.show("取消失败。","error",2e3);case 5:case"end":return r.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,r,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=this.props,n=t.show,r=t.record,o.next=5,regeneratorRuntime.awrap(n(e));case 5:a=o.sent,0===a&&r();case 7:case"end":return o.stop()}},null,this)}},{key:"doAction",value:function b(e){var t,b,n,r,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(t=this.props,b=t.doAction,n=t.data,r=w.default.find(n.wfactions||{},{id:e}),!r||!r.screen){o.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),o.next=12;break;case 8:return o.next=10,regeneratorRuntime.awrap(b(n.id,n.entry_id,{action_id:e}));case 10:a=o.sent,0===a?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return o.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,r,a,o;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=this.props,n=t.data,r=t.doAction,a=w.default.find(n.wfactions||{},{id:e}),!a||!a.schema){i.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),i.next=12;break;case 8:return i.next=10,regeneratorRuntime.awrap(r(n.id,n.entry_id,{action_id:e}));case 10:o=i.sent,0===o?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return i.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void k.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=w.default.find(n,{name:e}),a={};return r&&r.bgColor&&(a={backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"}),a}},{key:"createLightbox",value:function(e,t,n){var r=this,a=this.props.project;return c.default.createElement(y.default,{mainSrc:K+"/project/"+a.key+"/file/"+t[n].id,nextSrc:K+"/project/"+a.key+"/file/"+t[(n+1)%t.length].id,prevSrc:K+"/project/"+a.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){r.state.previewShow[e]=!1,r.setState({previewShow:r.state.previewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,r,a){var o=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(_.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(a&&a>0?"(字数"+a+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,o.setState({newItemValues:o.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||a&&a>0&&w.default.trim(s[t]||"").length>a},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,o.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(_.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,o.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,r,a){var o=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(a&&a>0?"(字数"+a+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,o.setState({newItemValues:o.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||a&&a>0&&w.default.trim(s[t]||"").length>a},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,o.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,o.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,r=e.layout,a=w.default.min([w.default.max([r.containerWidth/2,660]),1e3]),o={width:a+"px"},i={};void 0!==n.left?(o.left=n.left-a,i.left=n.left):(o.right=-a,i.right=0),C(".animate-dialog").css(o),C(".animate-dialog").animate(i)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,a=t.close,o=(t.detailFloatStyle,t.data),i=void 0===o?{}:o,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,m=t.loading,y=t.itemLoading,g=t.options,b=t.project,x=t.fileLoading,_=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue,t.setLabels),ne=t.addLabels,re=t.resetState,ae=t.wfCollection,oe=t.wfLoading,ie=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,he=t.delComments,me=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,ve=t.historyIndexLoading,be=t.indexGitCommits,we=t.sortGitCommits,ke=t.gitCommitsCollection,Ee=t.gitCommitsIndexLoading,xe=t.indexWorklog,_e=t.worklogSort,Ce=t.sortWorklog,Se=t.worklogCollection,Te=t.worklogIndexLoading,Pe=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,Me=t.delWorklog,je=t.createLink,Fe=t.delLink,Ie=t.linkLoading,Le=t.doAction,qe=t.user,Ne=this.state,Ae=(Ne.inlinePreviewShow, -Ne.previewShow),De=Ne.photoIndex,Be=Ne.newAssignee,We=Ne.editAssignee,He=Ne.editingItems,ze=Ne.newItemValues,Ve=Ne.delFileShow,Ue=Ne.selectedFile,Ge=Ne.action_id,Ye=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ke={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=w.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];w.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=w.default.find(g.types,{id:i.type}),Qe=$e&&$e.schema?$e.schema:[],Je=w.default.findIndex(f,{id:i.id}),et=i.priority?w.default.findIndex(g.priorities,{id:i.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&w.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=i.state?w.default.findIndex(g.states,{id:i.state}):-1,rt="";nt!==-1&&(rt="state-"+g.states[nt].category+"-label");var at=!1,ot=w.default.findIndex(Qe,{key:"descriptions"});ot!==-1&&(at=Qe[ot].required&&!0);var it={};i.epic&&(it=w.default.find(g.epics,{id:i.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(i.comments_num>99?"99+":i.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(i.worklogs_num>99?"99+":i.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(i.gitcommits_num>99?"99+":i.gitcommits_num||0)+")")),ct=w.default.min([w.default.max([r.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:a,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:i.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(i.id,!i.watching)}},i.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ke},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:j,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(i.wfactions&&i.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},w.default.map(i.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},w.default.map(i.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},i.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},i.watchers&&i.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!i.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&!i.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{divider:!0}),!i.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!i.hasSubtasks&&!i.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(w.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&i.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&i.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},i.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(i.parent.id)}},i.parent.no+"-"+(i.parent.title||"")),i.parent&&" / ",i.no+"-"+(i.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:rt},g.states[nt].name):"-",oe?c.default.createElement("img",{src:j,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.resolutions||[],{id:i.resolution})?w.default.find(g.resolutions,{id:i.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:We?7:3},We?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(v.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||i.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},i.assignee&&i.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.assignee&&i.assignee.name||"-")),(!i.assignee||i.assignee.id!==qe.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!We&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!We&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.reporter&&i.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(i.descriptions,"descriptions","描述",at)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},i.updated_at?S.unix(i.updated_at).format("YYYY/MM/DD HH:mm"):i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-"))),i.labels&&i.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),i.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.versions,{id:i.resolve_version})?w.default.find(g.versions,{id:i.resolve_version}).name:"-"))),i.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?epic="+i.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:it.bgColor,backgroundColor:it.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:it.name||"-"},it.name||"-"))))),i.sprints&&i.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.sprints,function(e){return w.default.find(g.sprints,{no:e}).name}).join(", ")))),(i.expect_start_time||i.expect_complete_time)&&c.default.createElement(d.FormGroup,null,i.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),i.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_start_time).format("YYYY/MM/DD"))),i.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),i.expect_complete_time&&c.default.createElement(d.Col,{sm:i.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_complete_time).format("YYYY/MM/DD")))),w.default.isNumber(i.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},He.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:ze.progress||0,onChange:function(t){ze.progress=t.target.value,e.setState({newItemValues:ze})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",ze.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(i.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){He.progress=!0,ze.progress=i.progress||0,e.setState({editingItems:He,newItemValues:ze})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(i.progress||"0")+"%"))))),i.subtasks&&i.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},i.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&i.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},w.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:t.state}).category+"-label"},w.default.find(g.states,{id:t.state}).name):"-"))}))))),i.links&&i.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},i.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&i.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.links,function(t,n){var r={},a="",o="";if(t.src.id==i.id)r=t.dest,a=t.relation,o=t.dest.id;else if(t.dest.id==i.id){r=t.src,a=t.relation;var l=w.default.findIndex(g.relations||[],{out:a});if(l!==-1)a=g.relations[l].in||"";else{var s=w.default.findIndex(g.relations||[],{"in":a});s!==-1&&(a=g.relations[s].out||"")}o=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,a,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==r.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(o)}},r.no," - ",r.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},w.default.find(g.states||[],{id:r.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:r.state}).category+"-label"},w.default.find(g.states,{id:r.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:r.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),w.default.map(Qe,function(t,n){if(Ye.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&w.default.isEmpty(i[t.key]))return}else if(w.default.isEmpty(i[t.key])&&!w.default.isNumber(i[t.key]))return;var r="";if("SingleUser"===t.type)r=i[t.key]&&i[t.key].name||"-";else if("MultiUser"===t.type)r=w.default.map(i[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var a=t.optionValues||[];r=w.default.find(a,{id:i[t.key]})?w.default.find(a,{id:i[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=w.default.isArray(i[t.key])?i[t.key]:i[t.key].split(","),a=[];w.default.map(n,function(t,n){w.default.find(e,{id:t})&&a.push(w.default.find(e,{id:t}).name)}),r=a.join(", ")||"-"}();else if("DatePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var o={showFiletypeIcon:!0,postUrl:K+"/project/"+b.key+"/file?issue_id="+i.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){k.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});r=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(p,function(n,r){return c.default.createElement("tr",{key:r},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,E.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:K+"/project/"+b.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,w.default.map(u,function(n,r){return c.default.createElement(d.Col,{sm:6,key:r},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,r,t.key)},c.default.createElement("img",{src:K+"/project/"+b.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(h.default,{config:o,eventHandlers:s,djsConfig:l})),Ae[t.key]&&e.createLightbox(t.key,u,De))}else r="TextArea"===t.type?e.getTextAreaItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):i[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},r)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:i.id,currentTime:g.current_time||0,currentUser:qe,collection:ge,indexHistory:me,sortHistory:ye,indexLoading:ve})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(P,{i18n:n,currentTime:g.current_time||0,currentUser:qe,project:b,permissions:g.permissions||[],issue_id:i.id,collection:se,indexComments:ie,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:he,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(M,{i18n:n,currentTime:g.current_time||0,currentUser:qe,permissions:g.permissions||[],issue:i,original_estimate:i.original_estimate,options:g.timetrack||{},collection:Se,indexWorklog:xe,sort:_e,sortWorklog:Ce,indexLoading:Te,loading:Pe,addWorklog:Oe,editWorklog:Re,delWorklog:Me})),i.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:i.id,currentTime:g.current_time||0,currentUser:qe,collection:ke,indexGitCommits:be,sortGitCommits:we,indexLoading:Ee})))),Ve&&c.default.createElement(I,{show:!0,close:this.delFileModalClose,del:_,data:Ue,loading:x,i18n:n}),this.state.editModalShow&&c.default.createElement(T,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:m,project:b,data:i,isSubtask:i.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(T,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:m,project:b,data:i,action_id:Ge,doAction:Le,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(V,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:i,action_id:Ge,doAction:Le}),this.state.createSubtaskModalShow&&c.default.createElement(T,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:m,project:b,parent:i,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(F,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:i.state,collection:ae}),this.state.linkIssueModalShow&&c.default.createElement(L,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:Ie,createLink:je,issue:i,types:g.types,project:b,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(q,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Ie,delLink:Fe,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:m,issue:i,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:b,convert:J,loading:m,issue:i,i18n:n}),this.state.moveModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:b,move:Q,loading:m,issue:i,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:i,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(W,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:i,i18n:n}),this.state.shareModalShow&&c.default.createElement(H,{show:!0,project:b,close:function(){e.setState({shareModalShow:!1})},issue:i}),this.state.resetModalShow&&c.default.createElement(z,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:re,issue:i,i18n:n}),this.state.delNotifyShow&&c.default.createElement(U,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:i,del:X,detailClose:a,i18n:n}),this.state.copyModalShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:m,copy:$,data:i,i18n:n}),this.state.watchersModalShow&&c.default.createElement(Y,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:i.no,watchers:i.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220:function(e,t,n){try{(function(){"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("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&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(i.request({url:"/project/"+a.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(o,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.loading,a=t.options.relations,o=void 0===a?[]:a,i=[];return y.default.forEach(o,function(e){e.out==e.in?i.push({value:e.out,label:e.out}):(i.push({value:e.out,label:e.out}),i.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:r,options:i,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:r,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:v,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:r||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},221:function(e,t,n){try{(function(){"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("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?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222:function(e,t,n){try{(function(){"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("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'+a+'
    '),imgFileUrls.push(r)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var r=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){r.state.inlinePreviewShow[e]=!1,r.setState({inlinePreviewShow:r.state.inlinePreviewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var a=_lodash2.default.find(e,{nameAndEmail:n});return a&&t.state.atWho.push(a.id),"@"+a.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.currentTime,a=t.permissions,o=t.currentUser,i=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,h=t.users,m=t.project,y=t.issue_id,g=this.state,v=g.inlinePreviewShow,b=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){i(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),a.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var i=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===o.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&o.id===t.creator.id&&a.indexOf("delete_self_comments")!==-1||a.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&o.id===t.creator.id&&a.indexOf("edit_self_comments")!==-1||a.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),a.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:i,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[t.id]&&e.createLightbox(t.id,c,b),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,i){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===o.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,r))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&o.id===n.creator.id&&a.indexOf("delete_self_comments")!==-1||a.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&o.id===n.creator.id&&a.indexOf("edit_self_comments")!==-1||a.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),a.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[n.id]&&e.createLightbox(n.id,c,b))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:h,project:m,permissions:a,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224:function(e,t,n){try{(function(){"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("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${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var a=p.default.find(e,{nameAndEmail:n});return a&&t.state.atWho.push(a.id),"@"+a.name}},data:e}),h(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=h(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.data,a=t.loading,o="";return o=r.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},o)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:a,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&n[this.state.ecode]),u.default.createElement("img",{src:m,className:a?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||a,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:a,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227:function(e,t,n){try{(function(){"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("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.author&&t.author.id===a.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,h.getAgoAt)(t.committed_at,r))}}));return u.default.createElement(d.Panel,{header:o,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228:function(e,t,n){try{(function(){"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("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.operator&&t.operator.id===a.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,h.getAgoAt)(t.operated_at,r))}}));return u.default.createElement(d.Panel,{header:o,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229:function(e,t,n){try{(function(){"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("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=0){var c=f.default.floor(u/o);c>0&&s.push(c+"w")}if(u%=o,u>=0){var d=f.default.floor(u/i);d>0&&s.push(d+"d")}if(u%=i,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.permissions,a=t.currentTime,o=t.currentUser,i=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,b=t.indexLoading,w=t.loading,k=t.addWorklog,E=t.editWorklog,x=t.delWorklog,_=t.original_estimate,C=void 0===_?"":_,S=void 0;C&&(S=this.t2m(C)),"desc"===s&&p.reverse();var T=0;f.default.map(p,function(t){if(T=f.default.add(T,e.t2m(t.spend)),1==t.adjust_type&&t.spend&&void 0!==S){var n=e.t2m(t.spend);S=S-n>0?S-n:0}else if(3==t.adjust_type&&t.leave_estimate)S=e.t2m(t.leave_estimate);else if(4==t.adjust_type&&t.cut&&void 0!==S){var r=e.t2m(t.cut);S=S-r>0?S-r:0}return f.default.extend(t,{leave_estimate_m:S}),t});var P=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:b&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:w,onClick:function(){l(i.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:w,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:b&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},T>0?this.m2t(T):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===P.leave_estimate_m?"-":this.m2t(P.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},b&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:m,className:"loading"})),p.length<=0&&!b?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var i=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===o.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,h.getAgoAt)(t.recorded_at,a))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&o.id===t.recorder.id&&r.indexOf("delete_self_worklog")!==-1||r.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&o.id===t.recorder.id&&r.indexOf("edit_self_worklog")!==-1||r.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:i,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,add:k,edit:E,i18n:n}),this.state.delWorklogShow&&u.default.createElement(v,{show:!0,issue:i,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,del:x,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},337:function(e,t,n){try{(function(){"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("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&&u.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变过滤器显示顺序。"),n.length>0?n.map(function(t,n){return u.default.createElement(g.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:d?e.deleteCard.bind(e,n):null})}):u.default.createElement("p",null,"暂无自定义过滤器。"))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&o[this.state.ecode]),u.default.createElement("img",{src:k,className:i?"loading":"hide"}),u.default.createElement(c.Button,{disabled:i||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:i,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,title:s.PropTypes.string,loading:s.PropTypes.bool,isRemovable:s.PropTypes.bool,config:s.PropTypes.func.isRequired,filters:s.PropTypes.array.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragDropContext)(f.default)(t)||t}(s.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},588:function(e,t,n){try{(function(){"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("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;na&&s>i||(e.moveCard(r,a),t.getItem().index=a)}}},y=function(e){function t(){a(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.index,n=e.text,r=e.width,a=e.editWidth,o=e.isDragging,i=e.connectDragSource,l=e.connectDropTarget,s=e.deleteCard,d=o?0:1;return i(l(u.default.createElement("div",{style:{opacity:d},className:"dragcard"},u.default.createElement("span",null,n),!!s&&u.default.createElement("span",{className:"comments-button",style:{"float":"right"},onClick:s,title:"删除"},u.default.createElement("i",{className:"fa fa-remove"})),u.default.createElement("span",{style:{width:"75px",marginRight:"25px","float":"right"}},u.default.createElement(c.FormGroup,{style:{marginBottom:"0px"}},u.default.createElement(c.FormControl,{style:{height:"21px",fontSize:"10px"},type:"number",value:r,onChange:function(e){var n=e.target.value.replace(/[^0-9]/gi,"");a(t,n)},placeholder:"宽度(px)"}))))))}}],[{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,width:s.PropTypes.string.isRequired,editWidth:s.PropTypes.func.isRequired,deleteCard:s.PropTypes.func.isRequired,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(f.CardTypes.CARD,h,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(f.CardTypes.CARD,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},1860:function(e,t,n){try{(function(){"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("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>"),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(c.Col,{sm:6},n.length>0?n.map(function(t,n){return u.default.createElement(g.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(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&i[this.state.ecode]),u.default.createElement("img",{src:x,className:l?"loading":"hide"}),s.permissions&&s.permissions.indexOf("manage_project")!==-1&&u.default.createElement(c.Checkbox,{disabled:l,checked:this.state.saveForProject,onClick:function(){e.setState({saveForProject:!e.state.saveForProject})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"保存作为该项目默认显示列"),u.default.createElement(c.Button,{disabled:l||r==JSON.stringify(n)&&!this.state.saveForProject,onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:l,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool,set:s.PropTypes.func.isRequired,data:s.PropTypes.array.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=_,e.exports=t.default}).call(this)}finally{}},1861:function(e,t,n){try{(function(){"use strict";function r(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 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)}function l(e){return{actions:(0,h.bindActionCreators)(v,e),wfActions:(0,h.bindActionCreators)(w,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t1?n(p.default.extend(a,{page:void 0})):r(a):"gotogantt"===e?n(p.default.extend(a,{page:void 0}),"gantt"):"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}):"batch"==e&&o()}},{key:"selectFilter",value:function(e){var t=this.props,n=t.refresh,r=t.options,a=void 0===r?{}:r;if("filterConfig"==e)this.setState({filterConfigShow:!0});else if("saveFilter"==e)this.setState({saveFilterShow:!0});else if("filterDel"==e)this.setState({filterDelShow:!0});else{var o=a.filters||[],i=p.default.find(o,{id:e})||{};n(i.query||{})}}},{key:"exportExcel",value:function n(e){var t=this.props,n=t.exportExcel,r=t.query;n(r,e)}},{key:"multiOperateSelect",value:function(e){"multi_del"===e?this.setState({multiDelNotifyShow:!0}):"multi_edit"===e&&this.setState({multiEditModalShow:!0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.user,a=t.index,o=t.create,i=t.addLabels,l=t.saveFilter,s=t.resetFilters,d=t.configFilters,C=t.delFilters,S=t.setColumns,T=t.resetColumns,P=t.imports,O=t.indexLoading,R=t.optionsLoading,M=t.filterLoading,j=t.columnsLoading,F=t.options,I=void 0===F?{}:F,L=t.refresh,q=t.query,N=t.loading,A=t.project,D=t.multiDel,B=t.multiUpdate,W=t.selectedIds,H=t.isBatchHandle,z=p.default.reject(p.default.reject(I.types||[],{type:"subtask"})||[],{disabled:!0})||[],V=R?"":(0,f.parseQuery)(q,I);return u.default.createElement("div",null,u.default.createElement("div",{style:{paddingTop:"5px"}},W.length>0&&u.default.createElement(c.DropdownButton,{className:"create-btn",title:"批量操作",onSelect:this.multiOperateSelect.bind(this)},I.permissions&&I.permissions.indexOf("edit_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"multi_edit"},"编辑"),I.permissions&&I.permissions.indexOf("delete_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"multi_del"},"删除")),u.default.createElement(c.DropdownButton,{className:"create-btn",id:"filters",title:"过滤器",onSelect:this.selectFilter.bind(this)},I.filters&&I.filters.length>0?p.default.map(I.filters||[],function(e){return u.default.createElement(c.MenuItem,{eventKey:e.id,key:e.id},e.name)}):u.default.createElement(c.MenuItem,{disabled:!0},"无"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"saveFilter"},"保存当前检索"),u.default.createElement(c.MenuItem,{eventKey:"filterConfig"},"过滤器排序"),u.default.createElement(c.MenuItem,{eventKey:"filterDel"},"过滤器删除")),u.default.createElement(c.Button,{className:"create-btn",disabled:R,onClick:function(){e.setState({searchShow:!e.state.searchShow})}},"检索 ",u.default.createElement("i",{className:this.state.searchShow?"fa fa-angle-double-up":"fa fa-angle-double-down"})),I.permissions&&I.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.Button,{className:"create-btn",bsStyle:"primary",disabled:z.length<=0||R,onClick:function(){e.setState({createModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 创建"),u.default.createElement("div",{style:{marginTop:"10px","float":"right"}},u.default.createElement(c.DropdownButton,{id:"more",pullRight:!0,style:{"float":"right"},title:"更多",onSelect:this.operateSelect.bind(this)},u.default.createElement(c.MenuItem,{eventKey:"refresh"},"刷新"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"gotogantt"},"跳至甘特图"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"set_columns"},"显示列配置"),u.default.createElement(c.MenuItem,{eventKey:"reset_columns"},"显示列重置"),I.permissions&&(I.permissions.indexOf("edit_issue")!==-1||I.permissions.indexOf("delete_issue")!==-1)&&u.default.createElement(c.MenuItem,{divider:!0}),I.permissions&&(I.permissions.indexOf("edit_issue")!==-1||I.permissions.indexOf("delete_issue")!==-1)&&u.default.createElement(c.MenuItem,{eventKey:"batch"},H?"取消批量操作":"批量操作"),I.permissions&&I.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.MenuItem,{divider:!0}),I.permissions&&I.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"import"},"导入"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"export"},"导出"))),V&&u.default.createElement("div",{className:"cond-bar"},u.default.createElement("div",{className:"cond-contents",title:V},u.default.createElement("b",null,"检索条件"),":",V),u.default.createElement("div",{className:"remove-icon",onClick:function(){L({})},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(g,{show:!0,isRemovable:!1,close:this.filterConfigModalClose,loading:M,config:d,filters:I.filters||[],i18n:n}),this.state.filterDelShow&&u.default.createElement(v,{show:!0,close:this.filterDelModalClose,loading:M,del:C,data:p.default.filter(I.filters||[],function(e){return e.creator==r.id}),i18n:n}),u.default.createElement(f.IssueFilterList,{values:q,searchShow:this.state.searchShow,indexLoading:O,options:I,onChange:function(e){L(p.default.assign({},e,{page:void 0}))}}),this.state.createModalShow&&u.default.createElement(h,{show:!0,close:this.createModalClose,options:I,create:o,addLabels:i,loading:N,project:A,i18n:n}),this.state.saveFilterShow&&u.default.createElement(m,{show:!0,close:this.saveFilterModalClose,filters:I.filters||[],create:l,query:q,loading:M,sqlTxt:V,options:I,i18n:n}),this.state.resetFiltersShow&&u.default.createElement(y,{show:!0,close:this.resetFiltersNotifyClose,reset:s,loading:M,i18n:n}),this.state.setColumnsShow&&u.default.createElement(w,{show:!0,close:this.setColumnsNotifyClose,options:I,data:I.display_columns||[],set:S,loading:j,i18n:n}),this.state.resetColumnsShow&&u.default.createElement(b,{show:!0,close:this.resetColumnsNotifyClose,options:I,reset:T,loading:j,i18n:n}),this.state.exportConfigShow&&u.default.createElement(k,{show:!0,close:this.exportConfigModalClose,options:I,exportExcel:this.exportExcel.bind(this),i18n:n}),this.state.importModalShow&&u.default.createElement(E,{show:!0,close:this.importModalClose,imports:P,loading:N,index:a,i18n:n}),this.state.multiDelNotifyShow&&u.default.createElement(x,{show:!0,close:this.multiDelNotifyClose,index:a,query:q,issueIds:W,loading:N,multiDel:D,i18n:n}),this.state.multiEditModalShow&&u.default.createElement(_,{show:!0,close:this.multiEditModalClose,project:A,index:a,query:q,issueIds:W,loading:N,multiUpdate:B,options:I,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,user:s.PropTypes.object.isRequired,create:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,resetFilters:s.PropTypes.func.isRequired,setColumns:s.PropTypes.func.isRequired,resetColumns:s.PropTypes.func.isRequired,configFilters:s.PropTypes.func.isRequired,delFilters:s.PropTypes.func.isRequired,index:s.PropTypes.func,refresh:s.PropTypes.func,exportExcel:s.PropTypes.func,imports:s.PropTypes.func,getOptions:s.PropTypes.func,query:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool.isRequired,optionsLoading:s.PropTypes.bool.isRequired,filterLoading:s.PropTypes.bool.isRequired,columnsLoading:s.PropTypes.bool.isRequired,indexLoading:s.PropTypes.bool.isRequired,multiUpdate:s.PropTypes.func.isRequired,multiDel:s.PropTypes.func.isRequired,selectedIds:s.PropTypes.array.isRequired,isBatchHandle:s.PropTypes.bool.isRequired,switchBatch:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component));t.default=C,e.exports=t.default}).call(this)}finally{}},1864:function(e,t,n){try{(function(){"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("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)){u.next=18;break}return this.state.detailBarShow=!0,u.next=16,regeneratorRuntime.awrap(l(i[0].id));case 16:a=u.sent,0===a&&s();case 18:case"end":return u.stop()}},null,this)}},{key:"componentWillReceiveProps",value:function(e){var t=e.query||{},n=this.props,r=n.index,a=n.query;h.default.isEqual(t,a)||r(t)}},{key:"delNotifyClose",value:function(){this.setState({delNotifyShow:!1})}},{key:"isAllowable",value:function(e,t){var n=this.props,r=n.options,a=n.user;return!!r.permissions&&(e.indexOf("_self_")!==-1?t==a.id&&r.permissions.indexOf(e)!==-1:r.permissions.indexOf(e)!==-1)}},{key:"operateSelect",value:function(e){var t,n,r,a,o,i;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:t=this.props,n=t.watch,r=t.collection,a=this.state.hoverRowId,o=h.default.find(r,{id:a})||{},this.setState({selectedItem:o}),i=0,"view"===e?this.show(a):"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(o.id,!o.watching);case 8:case"end":return l.stop()}},null,this)}},{key:"watch",value:function n(e,t){var n,r;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return n=this.props.watch,a.next=3,regeneratorRuntime.awrap(n(e,t));case 3:r=a.sent,0===r?t?m.notify.show("关注成功。","success",2e3):m.notify.show("已取消关注。","success",2e3):t?m.notify.show("关注失败。","error",2e3):m.notify.show("取消失败。","error",2e3);case 5:case"end":return a.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:"onSelectAll",value:function(e,t){var n=this.props,r=n.selectedIds,a=n.setSelectedIds;if(e){for(var o=t.length,i=0;i0&&(e.isAllowable("create_issue")||(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&!t.hasSubtasks)&&u.default.createElement(d.MenuItem,{divider:!0}),!t.parent_id&&$e.length>0&&e.isAllowable("create_issue")&&u.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!t.hasSubtasks&&!t.parent_id&&$e.length>0&&(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),t.parent_id&&(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{divider:!0}),t.parent_id&&(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),(e.isAllowable("create_issue")||e.isAllowable("move_issue")&&t.parent_id)&&u.default.createElement(d.MenuItem,{divider:!0}),e.isAllowable("move_issue")&&t.parent_id&&u.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),e.isAllowable("create_issue")&&u.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(e.isAllowable("reset_issue")||e.isAllowable("delete_issue")||e.isAllowable("delete_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{divider:!0}),e.isAllowable("reset_issue")&&u.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(e.isAllowable("delete_issue")||e.isAllowable("delete_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{eventKey:"del"},"删除"))),h.default.forEach(Ye,function(e){if("priority"===e.key){var r=h.default.findIndex(y.priorities,{id:t.priority}),a={marginLeft:"14px"};r!==-1&&(a.backgroundColor=y.priorities[r].color),n.priority=r!==-1?u.default.createElement("div",{className:"circle",style:a,title:y.priorities[r].name}):u.default.createElement("div",{style:a},"-")}else if("state"===e.key){var o=h.default.findIndex(y.states,{id:t.state}),i="";o!==-1&&(i="state-"+(y.states[o].category||"")+"-label"),n.state=o!==-1?u.default.createElement("span",{className:i},y.states[o].name||"-"):"-"}else if("TextArea"===e.type){var l=t[e.key]?h.default.escape(t[e.key]).replace(/(\r\n)|(\n)/g,"
    "):"-";n[e.key]=u.default.createElement("span",{style:Ge,dangerouslySetInnerHTML:{__html:l}})}else{if(!t[e.key]&&!h.default.isNumber(t[e.key]))return void(n[e.key]="-");var l="";"sprints"===e.key?l=t.sprints&&t.sprints.length>0?t.sprints.join(","):"-":"SingleUser"===e.type?l=t[e.key].name:"MultiUser"===e.type?l=h.default.map(t[e.key],function(e){return e.name}).join(","):["Select","RadioGroup","SingleVersion"].indexOf(e.type)!==-1?l=h.default.findIndex(e.optionValues||[],{id:t[e.key]})===-1?"-":h.default.find(e.optionValues,{id:t[e.key]}).name:["MultiSelect","CheckboxGroup","MultiVersion"].indexOf(e.type)!==-1?!function(){var n=h.default.isArray(t[e.key])?t[e.key]:t[e.key].split(","),r=[];h.default.forEach(n,function(t){var n=h.default.findIndex(e.optionValues||[],{id:t})!==-1?h.default.find(e.optionValues,{id:t}).name:"";n&&r.push(n)}),l=r.length>0?h.default.uniq(r).join(","):"-"}():l="DatePicker"===e.type?v.unix(t[e.key]).format("YYYY/MM/DD"):"DateTimePicker"===e.type?v.unix(t[e.key]).format("YYYY/MM/DD HH:mm"):t[e.key]+("progress"==e.key?"%":""),n[e.key]=u.default.createElement("span",{style:Ge},l)}}),Je.push(n)});var et={};return s?et.noDataText=u.default.createElement("div",null,u.default.createElement("img",{src:k,className:"loading"})):et.noDataText="暂无数据显示。",et.onRowMouseOver=this.onRowMouseOver.bind(this),u.default.createElement("div",null,u.default.createElement(c.BootstrapTable,{hover:!0,data:Je,bordered:!1,options:et,selectRow:Qe,trClassName:"tr-top",headerStyle:{overflow:"unset"}},u.default.createElement(c.TableHeaderColumn,{dataField:"id",hidden:!0,isKey:!0},"ID"),u.default.createElement(c.TableHeaderColumn,{width:"50",dataField:"type"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"type"),title:"类型"},u.default.createElement("span",{style:{marginRight:"3px"}},"类型"),"type"===Ke.field&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"})))),u.default.createElement(c.TableHeaderColumn,{dataField:"no",width:"50",title:"NO"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"no")},u.default.createElement("span",{style:{marginRight:"3px"}},"NO"),"no"===Ke.field&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"})))),u.default.createElement(c.TableHeaderColumn,{dataField:"title"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"title"),title:"主题"},u.default.createElement("span",{style:{marginRight:"3px"}},"主题"),"title"===Ke.field&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"})))),h.default.map(Ye,function(t,n){return u.default.createElement(c.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,title:t.name},u.default.createElement("span",{style:{marginRight:"3px"}},t.name),Ke.field===t.sortKey&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"}))))}),u.default.createElement(c.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.detailBarShow&&u.default.createElement(w,{i18n:n,layout:r,create:D,edit:A,del:N,setAssignee:B,setItemValue:W,setLabels:H,addLabels:z,close:this.closeDetail,options:y,data:i,record:F,forward:I,visitedIndex:L,visitedCollection:q,issueCollection:a,show:g,itemLoading:f,loading:l,fileLoading:Z,project:G,delFile:Y,addFile:K,wfCollection:X,wfLoading:$,viewWorkflow:Q,indexComments:J,sortComments:ee,commentsCollection:te,commentsIndexLoading:ne,commentsLoading:re,commentsItemLoading:se,commentsLoaded:ae,addComments:oe,editComments:ie,delComments:le,indexWorklog:ue,worklogSort:ce,sortWorklog:de,worklogCollection:pe,worklogIndexLoading:fe,worklogLoading:he,worklogLoaded:me,addWorklog:ye,editWorklog:ge,delWorklog:ve,indexHistory:be,sortHistory:we,historyCollection:ke,historyIndexLoading:Ee,historyLoaded:xe,indexGitCommits:_e,sortGitCommits:Ce,gitCommitsCollection:Se,gitCommitsIndexLoading:Te,gitCommitsLoaded:Pe,linkLoading:Me,createLink:Oe,delLink:Re,watch:je,copy:Fe,move:Ie,convert:Le,resetState:qe,doAction:De,user:Be}),!s&&y.total&&y.total>0?u.default.createElement(E,{total:y.total||0,curPage:V.page?V.page-0:1,sizePerPage:y.sizePerPage||50,paginationSize:4,query:V,refresh:U}):"",this.state.delNotifyShow&&u.default.createElement(b,{show:!0,close:this.delNotifyClose,data:Ve,loading:f,del:N,i18n:n}),this.state.addWorklogShow&&u.default.createElement(x,{show:!0,issue:Ve,close:function(){e.setState({addWorklogShow:!1})},loading:he,add:ye,i18n:n}),this.state.editModalShow&&u.default.createElement(_,{show:!0,close:function(){e.setState({editModalShow:!1})},options:y,addLabels:z,loading:l,project:G,edit:A,isSubtask:Ve.parent_id&&!0,data:Ve,i18n:n}),this.state.createSubtaskModalShow&&u.default.createElement(_,{show:!0,close:function(){e.setState({createSubtaskModalShow:!1})},options:y,create:D,loading:l,project:G,parent:Ve,isSubtask:!0,i18n:n}),this.state.convertTypeModalShow&&u.default.createElement(C,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:y,convert:Le,loading:l,issue:Ve,i18n:n}),this.state.convertType2ModalShow&&u.default.createElement(S,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:y,project:G,convert:Le,loading:l,issue:Ve,i18n:n}),this.state.moveModalShow&&u.default.createElement(T,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:y,project:G,move:Ie,loading:l,issue:Ve,i18n:n}),this.state.assignModalShow&&u.default.createElement(P,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:y,setAssignee:B,issue:Ve,i18n:n}),this.state.setLabelsModalShow&&u.default.createElement(O,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:y,setLabels:H,addLabels:z,issue:Ve,i18n:n}),this.state.shareModalShow&&u.default.createElement(R,{show:!0,close:function(){e.setState({shareModalShow:!1})},project:G,issue:Ve}),this.state.resetModalShow&&u.default.createElement(M,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:y,resetState:qe,issue:Ve,i18n:n}),this.state.copyModalShow&&u.default.createElement(j,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:y,loading:l,copy:Fe,data:Ve,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,collection:s.PropTypes.array.isRequired,wfCollection:s.PropTypes.array.isRequired,wfLoading:s.PropTypes.bool.isRequired,viewWorkflow:s.PropTypes.func.isRequired,indexComments:s.PropTypes.func.isRequired,sortComments:s.PropTypes.func.isRequired,addComments:s.PropTypes.func.isRequired,editComments:s.PropTypes.func.isRequired,delComments:s.PropTypes.func.isRequired,commentsCollection:s.PropTypes.array.isRequired,commentsIndexLoading:s.PropTypes.bool.isRequired,commentsLoading:s.PropTypes.bool.isRequired,commentsItemLoading:s.PropTypes.bool.isRequired,commentsLoaded:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,worklogSort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,worklogCollection:s.PropTypes.array.isRequired,worklogIndexLoading:s.PropTypes.bool.isRequired,worklogLoading:s.PropTypes.bool.isRequired,worklogLoaded:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,historyCollection:s.PropTypes.array.isRequired,historyIndexLoading:s.PropTypes.bool.isRequired,historyLoaded:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,gitCommitsCollection:s.PropTypes.array.isRequired,gitCommitsIndexLoading:s.PropTypes.bool.isRequired,gitCommitsLoaded:s.PropTypes.bool.isRequired,itemData:s.PropTypes.object.isRequired,project:s.PropTypes.object,options:s.PropTypes.object,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,query:s.PropTypes.object,show:s.PropTypes.func.isRequired,edit:s.PropTypes.func.isRequired,create:s.PropTypes.func.isRequired,setAssignee:s.PropTypes.func.isRequired,setItemValue:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,fileLoading:s.PropTypes.bool.isRequired,delFile:s.PropTypes.func.isRequired,addFile:s.PropTypes.func.isRequired,record:s.PropTypes.func.isRequired,forward:s.PropTypes.func.isRequired,cleanRecord:s.PropTypes.func.isRequired,visitedIndex:s.PropTypes.number.isRequired,visitedCollection:s.PropTypes.array.isRequired,createLink:s.PropTypes.func.isRequired,delLink:s.PropTypes.func.isRequired,linkLoading:s.PropTypes.bool.isRequired,doAction:s.PropTypes.func.isRequired,watch:s.PropTypes.func.isRequired,copy:s.PropTypes.func.isRequired,move:s.PropTypes.func.isRequired,convert:s.PropTypes.func.isRequired,resetState:s.PropTypes.func.isRequired,del:s.PropTypes.func.isRequired,selectedIds:s.PropTypes.array.isRequired,setSelectedIds:s.PropTypes.func.isRequired,isBatchHandle:s.PropTypes.bool.isRequired,user:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=F,e.exports=t.default}).call(this)}finally{}},1866:function(e,t,n){try{(function(){"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("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;nt.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值不能小于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值不能大于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!S(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.project,o=t.options,i=t.issueIds,s=t.loading,u=["title","state","reporter","resolver","closer","created_at","updated_at","resolved_at","closed_at","sprints"],c=[];E.default.forEach(o.fields||[],function(e){"File"!==e.type&&u.indexOf(e.key)===-1&&c.push(e)});for(var h=[],y=0;y"),2==this.state.step&&d.default.createElement(p.Button,{onClick:this.confirm,style:{marginLeft:"10px"},disabled:s||!E.default.isEmpty(this.state.errors)},"确 定"),d.default.createElement(p.Button,{bsStyle:"link",onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:c.PropTypes.object.isRequired,project:c.PropTypes.object.isRequired,close:c.PropTypes.func.isRequired,index:c.PropTypes.func.isRequired,query:c.PropTypes.object.isRequired,loading:c.PropTypes.bool.isRequired,multiUpdate:c.PropTypes.func.isRequired,issueIds:c.PropTypes.array.isRequired,options:c.PropTypes.object.isRequired},enumerable:!0}]),t}(c.Component);t.default=P,e.exports=t.default}).call(this)}finally{}},1868:function(e,t,n){try{(function(){"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("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=1){r=l.default.min([i,n[o].max])+n[o].suffix;break}}return r}function a(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var r={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},a=t.substr(n+1);return r[a]?"fa fa-file-"+r[a]+"-o":"fa fa-file-o"}function o(e,t,n){var r=e<0?-1:1;e=Math.abs(e);var a=[],o=l.default.ceil(e);if(o>=0){var i=l.default.floor(e/t);i>0&&a.push(i+"w")}if(o=e%t,o>=0){var s=l.default.floor(o/n);s>0&&a.push(s+"d")}if(o%=n,o>=0){var u=l.default.floor(o/60);u>0&&a.push(u+"h")}return o%=60,o>0&&a.push(o+"m"),a.length<=0&&a.push("0m"),(r<0?"-":"")+a.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=r,t.getFileIconCss=a,t.ttFormat=o;var i=n(3),l=e(i),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var o=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(a.onChange=r.bind(null,this.props.value)),l.default.createElement("input",o({},this.props,{type:"checkbox",name:t},a))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.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),r=a(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},44:function(e,t,n){!function(t,r){e.exports=r(n(1),n(121))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 l(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&&(g=Math.max(b.minX,Math.min(b.maxX,g)),v=Math.max(b.minY,Math.min(b.maxY,v))),this.setState({zoomLevel:r,offsetX:g,offsetY:v})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,h.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),a=r.height-2*this.props.imagePadding,o=r.width-2*this.props.imagePadding;n||(a=Math.min(a,t),o=Math.min(o,e));var i=o/a,l=e/t;return i>l?{width:e*a/t,height:a}:{width:o,height:t*o/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),a=0;a=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2;var o=0;return o=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,{maxX:a,maxY:o,minX:-1*a,minY:-1*o}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(m.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,h.getWindowWidth)(),height:(0,h.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=o?(this.requestMoveNext(e),r=a,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*o)&&(this.requestMovePrev(e),r=a,this.scrollX=0)}0!==r&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},r))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=m.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)m.MIN_ZOOM_LEVEL?this.changeZoom(m.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+m.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=m.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,r=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===r||this.setState({offsetX:n,offsetY:r})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=m.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+m.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-m.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,r=this.caption.scrollTop;(e.deltaY>0&&t+r>=n||e.deltaY<0&&r<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var r=this,a=new Image;a.onerror=function(){t("image load error")},a.onload=function(){r.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},a.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(r){return r?void(window.console&&window.console.warn(r)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(r){var a=r.name;t[a]&&!e.isImageLoaded(t[a])&&e.loadImage(t[a],n(a,t[a]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:m.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,r=n.animationDisabled,a=n.animationDuration,o=n.clickOutsideToClose,i=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,w=this.state,k=w.zoomLevel,E=w.offsetX,x=w.offsetY,_=w.isClosing,C=this.getLightboxRect(),S={};!r&&this.isAnimating()&&(S=u({},S,{transition:"transform "+a+"ms"}));var T={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;T[t]=n});var P=[],O=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var a=u({},r,S);k>m.MIN_ZOOM_LEVEL&&(a.cursor="move");var o=e.getBestImageForType(t);if(null===o){var l=void 0;return l=b<10?d.default.createElement("div",{className:v.loadingContainer__icon},(0,h.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+v.loadingCircle+" "+v.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint})),void P.push(d.default.createElement("div",{className:n+" "+v.image+" not-loaded ril-not-loaded",style:a,key:e.props[t]+T[t]},d.default.createElement("div",{className:v.loadingContainer},l)))}a.width=o.width,a.height=o.height;var c=o.src;i?(a.backgroundImage="url('"+c+"')",P.push(d.default.createElement("div",{className:n+" "+v.image+" "+v.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:a,key:c+T[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+v.downloadBlocker})))):P.push(d.default.createElement("img",{className:n+" "+v.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:a,src:c,key:c+T[t],alt:s||(0,h.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+v.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*E,y:-1*x,zoom:R})),O("prevSrc","image-prev ril-image-prev "+v.imagePrev,t.getTransform({x:-1*C.width}));var M=function(){},j=[v.toolbarItemChild,v.builtinButton,v.zoomInButton],F=[v.toolbarItemChild,v.builtinButton,v.zoomOutButton],I=this.handleZoomInButtonClick,L=this.handleZoomOutButtonClick;k===m.MAX_ZOOM_LEVEL&&(j.push(v.builtinButtonDisabled),I=M),k===m.MIN_ZOOM_LEVEL&&(F.push(v.builtinButtonDisabled),L=M),this.isAnimating()&&(I=M,L=M);var q={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:o?this.requestClose:M,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:q},d.default.createElement("div",{className:"outer ril-outer "+v.outer+" "+v.outerAnimating+(_?" closing ril-closing "+v.outerClosing:""),style:{transition:"opacity "+a+"ms",animationDuration:a+"ms",animationDirection:_?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+v.inner,onClick:o?this.closeIfClickInner:M},P),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+v.navButtons+" "+v.navButtonPrev,key:"prev",onClick:this.isAnimating()?M:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+v.navButtons+" "+v.navButtonNext,key:"next",onClick:this.isAnimating()?M:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+v.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+v.toolbarSide+" "+v.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+v.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",v.toolbarSide,v.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+v.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+j.join(" "),onClick:I})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+F.join(" "),onClick:L})),d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+v.toolbarItemChild+" "+v.builtinButton+" "+v.closeButton),onClick:this.isAnimating()?M:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+v.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+v.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,r=e.y,o=void 0===r?null:r,i=e.zoom,l=void 0===i?null:i,s=b<10,u=[];return null===n&&null===o||u.push(s?"translate("+(n||0)+"px,"+(o||0)+"px)":"translate3d("+(n||0)+"px,"+(o||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),a({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);w.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},w.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=w},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function a(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function o(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=r,t.getWindowWidth=a,t.getWindowHeight=o,t.isInIframe=i},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), +t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function u(e,t){var n,r,a;if(t.singleton){var o=v++;n=g||(g=l(t)),r=c.bind(null,n,o,!1),a=c.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=p.bind(null,n),a=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=d.bind(null,n),a=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function c(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=a(e);return r(n,t),function(e){for(var o=[],i=0;ia&&s>i||(e.moveCard(r,a),t.getItem().index=a)}}},m=function(e){function t(){a(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,a=e.connectDropTarget,o=e.deleteCard,i=n?0:1,l={"float":"right",cursor:"pointer"};return r(a(u.default.createElement("div",{style:{opacity:i},className:"dragcard"},t,!!o&&u.default.createElement("span",{style:l,onClick:o,title:"删除",className:"rm-icon"},u.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{}},58:function(e,t,n){!function(t,r){e.exports=r(n(1),n(13))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,n){t.exports=e},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});var l=function(){function e(e,t){for(var n=0;n
    '),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,a,o,i,l,s,u,c,d,p,f,h;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),o=0,s=d.length;o'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),h=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},r=function(){var e,t,n,r,a,o,i;for(r=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],o=0,i=n.length;o'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=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,a,o;if(n=e.hiddenFileInput.files,n.length)for(a=0,o=n.length;a',this.options.dictFallbackText&&(r+="

    "+this.options.dictFallbackText+"

    "),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(a=t.createElement('
    '),a.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=a?a:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,a,o;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(i=["TB","GB","MB","KB","b"],n=l=0,s=i.length;l=t){r=e/Math.pow(this.options.filesizeBase,4-n),a=o;break}r=Math.round(10*r)/10}return""+r+" "+a},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,r,a;for(a=[],n=0,r=e.length;n0){for(o=0,i=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,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=N;c=0<=N?++M:--M)o.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(E,o,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var a,o,i;for(o=0,i=e.length;oc;)t=a[4*(s-1)+3],0===t?o=s:c=s,s=o+c>>1;return u=s/i,0===u?1:u},i=function(e,t,n,r,a,i,l,s,u,c){var d;return d=o(t),e.drawImage(t,n,r,a,i,l,s,u,c/d)},a=function(e,t){var n,r,a,o,i,l,s,u,c;if(a=!1,c=!0,r=e.document,u=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[s](l+n.type,o,!1),!a&&(a=!0)?t.call(e,n.type||n):void 0},i=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(i,50)}return o("poll")},"complete"!==r.readyState){if(r.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&i()}return r[n](l+"DOMContentLoaded",o,!1),r[n](l+"readystatechange",o,!1),e[n](l+"load",o,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},a(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},i=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var o;for(o in e);return"undefined"==typeof o||r.call(e,o)};e.exports=function l(){var e,t,n,r,a,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,r=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var a=0;a1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&p(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=x}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function k(e){return!!e&&"object"==typeof e}function E(e){return y(e)?o(e):l(e)}var x=9007199254740991,_="[object Arguments]",C="[object Function]",S="[object GeneratorFunction]",T=/^(?:0|[1-9]\d*)$/,P=Object.prototype,O=P.hasOwnProperty,R=P.toString,M=P.propertyIsEnumerable,j=a(Object.keys,Object),F=Math.max,I=!M.call({valueOf:1},"valueOf"),L=Array.isArray,q=c(function(e,t){if(I||f(t)||y(t))return void u(t,E(t),e);for(var n in t)O.call(t,n)&&i(e,n,t[n])});e.exports=q},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&a(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function a(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&n(e,!r)}function i(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return o(e)})}e.exports=i},86:function(e,t,n){try{(function(){"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("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;ts||a<=0)&&(a=1);for(var u=[],d=0;ds)break;u.push(f)}return c.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},c.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},c.default.createElement("span",null,p.default.add((a-1)*o,1),"-",a*o>=n?n:a*o," 共",n,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},s>1&&c.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},a-l>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),a-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,a-1),title:"前页"},"<")),p.default.map(u,function(t,n){return c.default.createElement("li",{key:n,className:t===a?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),a1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,p.default.add(a,1)),title:"后页"},">")),s-l>a&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:u.PropTypes.object,refresh:u.PropTypes.func,total:u.PropTypes.number.isRequired,curPage:u.PropTypes.number,sizePerPage:u.PropTypes.number,paginationSize:u.PropTypes.number},enumerable:!0}]),t}(u.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(r,a){return r?(a=a.source||a,a=a.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,a),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,r=1;rAn error occured:

    "+o(p.message+"",!0)+"
    ";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,a,o,i,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),s={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),i=o[2],this.tokens.push({type:"list_start",ordered:i.length>1}),o=o[0].match(this.rules.item),r=!1,p=o.length,c=0;c1&&l.length>1||(e=o.slice(c+1).join("\n")+e,c=p-1)),a=r||/\n\n(?!\s*$)/.test(s),c!==p-1&&(r="\n"===s.charAt(s.length-1),a||(a=r)),this.tokens.push({type:a?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),s={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,r){var a=new n(t,r);return a.output(e)},n.prototype.output=function(e){for(var t,n,r,a,i="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),i+=a[1];else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),"@"===a[2]?(n=":"===a[1].charAt(6)?this.mangle(a[1].substring(7)):this.mangle(a[1]),r=this.mangle("mailto:")+n):(n=o(a[1]),r=n),i+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.tag.exec(e))!this.inLink&&/^/i.test(a[0])&&(this.inLink=!1),e=e.substring(a[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):o(a[0]):a[0];else if(a=this.rules.link.exec(e))e=e.substring(a[0].length),this.inLink=!0,i+=this.outputLink(a,{href:a[2],title:a[3]}),this.inLink=!1;else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){i+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),i+=this.renderer.strong(this.output(a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),i+=this.renderer.em(this.output(a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),i+=this.renderer.codespan(o(a[2],!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),i+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),i+=this.renderer.del(this.output(a[1]));else if(a=this.rules.text.exec(e))e=e.substring(a[0].length),i+=this.renderer.text(o(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(a[0].length),n=o(a[1]),r=n,i+=this.renderer.link(r,null,n);return i},n.prototype.outputLink=function(e,t){var n=o(t.href),r=t.title?o(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,o(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,a=0;a.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:o(e,!0))+"\n
    \n":"
    "+(n?e:o(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(i(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(a){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var o='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},a.parse=function(e,t,n){var r=new a(t,n);return r.parse(e)},a.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,a,o="",i="";for(n="",e=0;e"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",o=function(e){var n=p.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(a+=t[e].id+'["'+n+'"];',"continue"):void p.default.map(t[e].actions,function(r){p.default.map(r.results,function(o){a+=t[e].id+'["'+n+'"]',a+='--"'+p.default.escape(r.name)+"("+r.id+')"-->';var i=p.default.find(t,{id:o.step});a+=i.id+'["'+p.default.escape(i.name)+'"];'})})},i=0;i0?E.default.pick(this.state.values,v):{}):E.default.extend(g,this.state.values),b=[],E.default.mapValues(g,function(e,t){var n=E.default.findIndex(m,{key:t}),r=n===-1?{}:m[n];e?"labels"===r.key?E.default.isArray(e)?(b=E.default.uniq(E.default.map(E.default.filter(e,function(e){return!!e.className}),function(e){return E.default.trim(e.value)})),g[t]=E.default.uniq(E.default.map(e,function(e){return E.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(r.type)!==-1?g[t]=e.split(","):"DatePicker"===r.type?g[t]=parseInt(T(e).startOf("day").format("X")):"DateTimePicker"===r.type?g[t]=parseInt(T(e).format("X")):"Number"===r.type?g[t]=parseFloat(e):"Integer"===r.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),w=0,E.default.isEmpty(l)||!l.id){k.next=37;break}if(!d||!f){k.next=31;break}return k.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(w=k.sent,0===w){k.next=31;break}return this.setState({ecode:w}),k.abrupt("return");case 31:return k.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:w=k.sent,0===w&&(a(),d&&f?x.notify.show("提交完成。","success",2e3):x.notify.show("问题已更新。","success",2e3)),k.next=42;break;case 37:return u.id&&E.default.extend(g,{parent_id:u.id}),k.next=40,regeneratorRuntime.awrap(t(g));case 40:w=k.sent,0===w&&(y?this.setState({preCreated:!0}):(a(),x.notify.show("问题已创建。","success",2e3)));case 42:0===w&&b.length>0&&r(b),this.setState({ecode:w});case 44:case"end":return k.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.loading,r=e.data,a=void 0===r?{}:r,o=e.isFromWorkflow,i=void 0!==o&&o;if(!n){var l=!i&&(a.id&&this.getChangedKeys().length>0||!a.id&&this.getChangedKeysForOriginal().length>0);l&&!confirm("确认要关闭该页面?")||(this.setState({ecode:0}),t())}}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,r=E.default.find(n.types,{id:e}).schema;if(r){var a={},o={};E.default.map(r,function(e){t.state.errors[e.key]?o[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&E.default.isArray(e.defaultValue)?o[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&E.default.isString(e.defaultValue)?o[e.key]=e.defaultValue.split(","):o[e.key]=e.defaultValue:t.state.values[e.key]&&(o[e.key]=t.state.values[e.key]),e.required&&!o[e.key]&&(a[e.key]="必填")}),o.type=e,this.setState({errors:a,touched:{},schema:r,values:o})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void x.notify.show("文档上传失败。","error",2e3);var n=t.data,r=n.field,a=void 0===r?"":r,o=n.file,i=void 0===o?{}:o;this.state.values[a]=this.state.values[a]||[],this.state.values[a].push(i.id),e.field=a,e.fid=i.id,a&&this.state.errors[a]?(delete this.state.errors[a],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=E.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var r=E.default.find(this.state.schema,{key:t});r&&r.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=E.default.trim(e),n=t.split(" "),r=!0;return E.default.map(n,function(e){if(e){E.default.endsWith(e.toLowerCase(),"w")||E.default.endsWith(e.toLowerCase(),"d")||E.default.endsWith(e.toLowerCase(),"h")||E.default.endsWith(e.toLowerCase(),"m")||(r=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(r=!1)}}),r}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||E.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&E.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!T(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.options,a=t.loading,o=t.project,i=t.data,l=void 0===i?{}:i,s=t.parent,d=void 0===s?{}:s,f=t.isSubtask,g=void 0!==f&&f,b=t.isFromWorkflow,k=void 0!==b&&b,x=this.state,_=x.schema,T=x.createOther,R=x.preCreated,M=E.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),j={height:"580px",overflow:"auto"};return k&&(j={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:this.handleCancel,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},l.id?k?"流程页面":"编辑问题 - "+l.no:g?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:j,ref:"createModal"},!k&&!g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,o.name||"-")))),!k&&g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,d.title?d.no+"-"+d.title:l.parent&&l.parent.title?l.parent.no+"-"+l.parent.title:"-")))),!k&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:M,disabled:a,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),E.default.map(_,function(t,n){var i=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:i+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:a,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+o.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(S.MultiRowsTextEditor,{id:i+"-field-textarea-"+t.key,disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+o.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&r.permissions&&r.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(h.default,{multi:!0,disabled:a,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:E.default.map(r.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:a,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:E.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px" +}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(m.CheckboxGroup,{style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},E.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(m.Checkbox,{disabled:a,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},E.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:a,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(v.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&r.permissions&&r.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+o.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(w.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!a&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),R&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:P,className:a?"loading":"hide"}),!l.id&&u.default.createElement(c.Checkbox,{disabled:a,checked:T,onClick:function(){e.setState({createOther:!T})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:l.id&&this.getChangedKeys().length<=0&&k===!1||E.default.isEmpty(_)||!E.default.isEmpty(this.state.errors)||a||R,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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)}var o=function(){function e(e,t){for(var n=0;n'+l+''),r.push(i)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var a=t.match(/\[.*?\]\(.*?\)/gi);return a&&p.default.forEach(a,function(e,n){var r=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");r.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,a=t.fieldKey,o=t.value,i=void 0===o?"":o,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(a,i),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(h.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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)}var o=function(){function e(e,t){for(var n=0;n/gi),a=[];return r&&c.default.forEach(r,function(t,r){var o=new RegExp('^$');if(o.exec(t)){var i=RegExp.$1;if(!i)return;n=n.replace(t,''),a.push(i)}}),{html:n,imgFiles:a}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,a=t.fieldKey,o=t.value,i=this.state,l=i.inlinePreviewShow,u=i.photoIndex,c=this.extractImg(a,o||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:v}}).call(this)}finally{}},112:function(e,t,n){var r;!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},115:function(e,t,n){function r(e){return e()}var a=n(1),o=n(13),i=n(71),l=n(25),s=n(112),u=a.createFactory(n(116)),c=n(117),d=n(119),p=n(207),f=n(13).unstable_renderSubtreeIntoContainer,h=n(70),m=n(69),y=s.canUseDOM?window.HTMLElement:{},g=s.canUseDOM?document.body:{appendChild:function(){}},v=m({displayName:"Modal",statics:{setAppElement:function(e){g=c.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:l.bool.isRequired,style:l.shape({content:l.object,overlay:l.object}),portalClassName:l.string,bodyOpenClassName:l.string,appElement:l.instanceOf(y),onAfterOpen:l.func,onRequestClose:l.func,closeTimeoutMS:l.number,ariaHideApp:l.bool,shouldCloseOnOverlayClick:l.bool,parentSelector:l.func,role:l.string,contentLabel:l.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&&d.add(this);var e=r(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&&d.add(this),e.isOpen||d.remove(this);var t=r(this.props.parentSelector),n=r(e.parentSelector);n!==t&&(t.removeChild(this.node),n.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){d.remove(this),this.props.ariaHideApp&&c.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 r=this;setTimeout(function(){r.removePortal()},n-t)}else this.removePortal()}},removePortal:function(){o.unmountComponentAtNode(this.node);var e=r(this.props.parentSelector);e.removeChild(this.node),0===d.count()&&p(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||d.count()>0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(h({},e,{defaultStyles:v.defaultStyles})),this.node)},render:function(){return i.noscript()}});v.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=v},116:function(e,t,n){var r=(n(1),n(71)),a=n(118),o=n(120),i=n(70),l=n(69),s=r.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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(){a.returnFocus(),a.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(a.setupScopedFocus(this.node),a.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&&o(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"},r=n.base;return this.state.afterOpen&&(r+=" "+n.afterOpen),this.state.beforeClose&&(r+=" "+n.beforeClose),"string"==typeof t&&t?[r,t].join(" "):r},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:i({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:i({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function r(e){i(e),(e||s).setAttribute("aria-hidden","true")}function a(e){i(e),(e||s).removeAttribute("aria-hidden")}function o(e,t){e?r(t):a(t)}function i(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=o,t.setElement=n,t.show=a,t.hide=r,t.resetForTesting=l},118:function(e,t,n){function r(e){s=!0}function a(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=o(l)[0]||l;e.focus()}},0)}}var o=n(72),i=[],l=null,s=!1;t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=i.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",a,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",a))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",a)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",a))}},119: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}}},120:function(e,t,n){var r=n(72);e.exports=function(e,t){var n=r(e);if(!n.length)return void t.preventDefault();var a=n[t.shiftKey?0:n.length-1],o=a===document.activeElement||e===document.activeElement;if(o){t.preventDefault();var i=n[t.shiftKey?n.length-1:0];i.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function a(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function o(e){return{type:"WORKFLOW_SELECT",id:e}}function i(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=a,t.select=o,t.delNotify=i,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178:function(e,t,n){try{(function(){"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("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&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(a,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.parent_id,a=n.type,o=e.handleSubmit,i=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(h.default.Async,{clearable:!1,disabled:l,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(h.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:a.value,onChange:function(e){a.onChange(e)},placeholder:"选择问题类型"}),a.touched&&a.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},a.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||i,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:k})(t)||t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},180:function(e,t,n){try{(function(){"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("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&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(a,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,r=e.handleSubmit,a=e.invalid,o=e.submitting,i=e.issue;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"},"移动子任务 - "+i.no)),c.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(h.default.Async,{clearable:!1,disabled:o,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:o?"loading":"hide"}),c.default.createElement(p.Button,{disabled:o||a,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:o,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:k})(t)||t}(u.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},184:function(e,t,n){try{(function(){"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("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&&n(i),a(),v.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,r=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(r.labels||[],function(e){return{value:e,label:e}})}:{labels:(r.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,r=e.handleSubmit,a=e.invalid,o=e.submitting,i=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+i.no)),u.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(m.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:o,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&t[this.state.ecode]),u.default.createElement("img",{src:b,className:o?"loading":"hide"}),u.default.createElement(d.Button,{disabled:o||a,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:o,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},186:function(e,t,n){try{(function(){"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("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)){s.next=11;break}return i=o[e-1].id,s.next=9,regeneratorRuntime.awrap(n(i));case 9:l=s.sent,0===l&&r();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function m(e){var t,n,m,r,a,o,i,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,m=t.forward,r=t.visitedIndex,a=t.visitedCollection,o=void 0===a?[]:a,i=w.default.add(r,e),!o[i]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(o[i]));case 10:l=s.sent,0===l&&m(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,r,a,o,i;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,r=t.show,a=t.watch,o=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(r(n.id));case 8:o=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(i=n.watching,this.watch(n.id,!i)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g=this.props.watch,r.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=r.sent,0===n?t?k.notify.show("关注成功。","success",2e3):k.notify.show("已取消关注。","success",2e3):t?k.notify.show("关注失败。","error",2e3):k.notify.show("取消失败。","error",2e3);case 5:case"end":return r.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,r,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=this.props,n=t.show,r=t.record,o.next=5,regeneratorRuntime.awrap(n(e));case 5:a=o.sent,0===a&&r();case 7:case"end":return o.stop()}},null,this)}},{key:"doAction",value:function b(e){var t,b,n,r,a;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(t=this.props,b=t.doAction,n=t.data,r=w.default.find(n.wfactions||{},{id:e}),!r||!r.screen){o.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),o.next=12;break;case 8:return o.next=10,regeneratorRuntime.awrap(b(n.id,n.entry_id,{action_id:e}));case 10:a=o.sent,0===a?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return o.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,r,a,o;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=this.props,n=t.data,r=t.doAction,a=w.default.find(n.wfactions||{},{id:e}),!a||!a.schema){i.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),i.next=12;break;case 8:return i.next=10,regeneratorRuntime.awrap(r(n.id,n.entry_id,{action_id:e}));case 10:o=i.sent,0===o?k.notify.show("提交完成。","success",2e3):k.notify.show("提交失败。","error",2e3);case 12:case"end":return i.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void k.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=w.default.find(n,{name:e}),a={};return r&&r.bgColor&&(a={backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"}),a}},{key:"createLightbox",value:function(e,t,n){var r=this,a=this.props.project;return c.default.createElement(y.default,{mainSrc:K+"/project/"+a.key+"/file/"+t[n].id,nextSrc:K+"/project/"+a.key+"/file/"+t[(n+1)%t.length].id,prevSrc:K+"/project/"+a.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){r.state.previewShow[e]=!1,r.setState({previewShow:r.state.previewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,r,a){var o=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(_.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(a&&a>0?"(字数"+a+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,o.setState({newItemValues:o.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||a&&a>0&&w.default.trim(s[t]||"").length>a},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,o.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(_.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,o.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,r,a){var o=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(a&&a>0?"(字数"+a+"字之内)":""),uploadUrl:K+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,o.setState({newItemValues:o.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||a&&a>0&&w.default.trim(s[t]||"").length>a},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,o.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,o.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,r=e.layout,a=w.default.min([w.default.max([r.containerWidth/2,660]),1e3]),o={width:a+"px"},i={};void 0!==n.left?(o.left=n.left-a,i.left=n.left):(o.right=-a,i.right=0),C(".animate-dialog").css(o),C(".animate-dialog").animate(i)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,a=t.close,o=(t.detailFloatStyle,t.data),i=void 0===o?{}:o,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,m=t.loading,y=t.itemLoading,g=t.options,b=t.project,x=t.fileLoading,_=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue, +t.setLabels),ne=t.addLabels,re=t.resetState,ae=t.wfCollection,oe=t.wfLoading,ie=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,he=t.delComments,me=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,ve=t.historyIndexLoading,be=t.indexGitCommits,we=t.sortGitCommits,ke=t.gitCommitsCollection,Ee=t.gitCommitsIndexLoading,xe=t.indexWorklog,_e=t.worklogSort,Ce=t.sortWorklog,Se=t.worklogCollection,Te=t.worklogIndexLoading,Pe=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,Me=t.delWorklog,je=t.createLink,Fe=t.delLink,Ie=t.linkLoading,Le=t.doAction,qe=t.user,Ne=this.state,Ae=(Ne.inlinePreviewShow,Ne.previewShow),De=Ne.photoIndex,Be=Ne.newAssignee,We=Ne.editAssignee,He=Ne.editingItems,ze=Ne.newItemValues,Ve=Ne.delFileShow,Ue=Ne.selectedFile,Ge=Ne.action_id,Ye=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ke={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=w.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];w.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=w.default.find(g.types,{id:i.type}),Qe=$e&&$e.schema?$e.schema:[],Je=w.default.findIndex(f,{id:i.id}),et=i.priority?w.default.findIndex(g.priorities,{id:i.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&w.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=i.state?w.default.findIndex(g.states,{id:i.state}):-1,rt="";nt!==-1&&(rt="state-"+g.states[nt].category+"-label");var at=!1,ot=w.default.findIndex(Qe,{key:"descriptions"});ot!==-1&&(at=Qe[ot].required&&!0);var it={};i.epic&&(it=w.default.find(g.epics,{id:i.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(i.comments_num>99?"99+":i.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(i.worklogs_num>99?"99+":i.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(i.gitcommits_num>99?"99+":i.gitcommits_num||0)+")")),ct=w.default.min([w.default.max([r.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:a,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:i.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(i.id,!i.watching)}},i.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ke},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:j,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(i.wfactions&&i.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},w.default.map(i.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},w.default.map(i.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},i.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},i.watchers&&i.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!i.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&!i.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{divider:!0}),!i.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!i.hasSubtasks&&!i.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(w.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&i.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&i.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},i.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(i.parent.id)}},i.parent.no+"-"+(i.parent.title||"")),i.parent&&" / ",i.no+"-"+(i.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:rt},g.states[nt].name):"-",oe?c.default.createElement("img",{src:j,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.resolutions||[],{id:i.resolution})?w.default.find(g.resolutions,{id:i.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:We?7:3},We?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(v.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||i.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},i.assignee&&i.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.assignee&&i.assignee.name||"-")),(!i.assignee||i.assignee.id!==qe.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!We&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!We&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.reporter&&i.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(i.descriptions,"descriptions","描述",at)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},i.updated_at?S.unix(i.updated_at).format("YYYY/MM/DD HH:mm"):i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-"))),i.labels&&i.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),i.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.versions,{id:i.resolve_version})?w.default.find(g.versions,{id:i.resolve_version}).name:"-"))),i.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?epic="+i.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:it.bgColor,backgroundColor:it.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:it.name||"-"},it.name||"-"))))),i.sprints&&i.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.sprints,function(e){return w.default.find(g.sprints,{no:e}).name}).join(", ")))),(i.expect_start_time||i.expect_complete_time)&&c.default.createElement(d.FormGroup,null,i.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),i.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_start_time).format("YYYY/MM/DD"))),i.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),i.expect_complete_time&&c.default.createElement(d.Col,{sm:i.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_complete_time).format("YYYY/MM/DD")))),w.default.isNumber(i.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},He.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:ze.progress||0,onChange:function(t){ze.progress=t.target.value,e.setState({newItemValues:ze})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",ze.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(i.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){He.progress=!0,ze.progress=i.progress||0,e.setState({editingItems:He,newItemValues:ze})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(i.progress||"0")+"%"))))),i.subtasks&&i.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},i.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&i.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},w.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:t.state}).category+"-label"},w.default.find(g.states,{id:t.state}).name):"-"))}))))),i.links&&i.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},i.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&i.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.links,function(t,n){var r={},a="",o="";if(t.src.id==i.id)r=t.dest,a=t.relation,o=t.dest.id;else if(t.dest.id==i.id){r=t.src,a=t.relation;var l=w.default.findIndex(g.relations||[],{out:a});if(l!==-1)a=g.relations[l].in||"";else{var s=w.default.findIndex(g.relations||[],{"in":a});s!==-1&&(a=g.relations[s].out||"")}o=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,a,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==r.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(o)}},r.no," - ",r.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},w.default.find(g.states||[],{id:r.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:r.state}).category+"-label"},w.default.find(g.states,{id:r.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:r.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),w.default.map(Qe,function(t,n){if(Ye.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&w.default.isEmpty(i[t.key]))return}else if(w.default.isEmpty(i[t.key])&&!w.default.isNumber(i[t.key]))return;var r="";if("SingleUser"===t.type)r=i[t.key]&&i[t.key].name||"-";else if("MultiUser"===t.type)r=w.default.map(i[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var a=t.optionValues||[];r=w.default.find(a,{id:i[t.key]})?w.default.find(a,{id:i[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=w.default.isArray(i[t.key])?i[t.key]:i[t.key].split(","),a=[];w.default.map(n,function(t,n){w.default.find(e,{id:t})&&a.push(w.default.find(e,{id:t}).name)}),r=a.join(", ")||"-"}();else if("DatePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var o={showFiletypeIcon:!0,postUrl:K+"/project/"+b.key+"/file?issue_id="+i.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){k.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});r=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(p,function(n,r){return c.default.createElement("tr",{key:r},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,E.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:K+"/project/"+b.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,w.default.map(u,function(n,r){return c.default.createElement(d.Col,{sm:6,key:r},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,r,t.key)},c.default.createElement("img",{src:K+"/project/"+b.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(h.default,{config:o,eventHandlers:s,djsConfig:l})),Ae[t.key]&&e.createLightbox(t.key,u,De))}else r="TextArea"===t.type?e.getTextAreaItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):i[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},r)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:i.id,currentTime:g.current_time||0,currentUser:qe,collection:ge,indexHistory:me,sortHistory:ye,indexLoading:ve})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(P,{i18n:n,currentTime:g.current_time||0,currentUser:qe,project:b,permissions:g.permissions||[],issue_id:i.id,collection:se,indexComments:ie,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:he,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(M,{i18n:n,currentTime:g.current_time||0,currentUser:qe,permissions:g.permissions||[],issue:i,original_estimate:i.original_estimate,options:g.timetrack||{},collection:Se,indexWorklog:xe,sort:_e,sortWorklog:Ce,indexLoading:Te,loading:Pe,addWorklog:Oe,editWorklog:Re,delWorklog:Me})),i.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:i.id,currentTime:g.current_time||0,currentUser:qe,collection:ke,indexGitCommits:be,sortGitCommits:we,indexLoading:Ee})))),Ve&&c.default.createElement(I,{show:!0,close:this.delFileModalClose,del:_,data:Ue,loading:x,i18n:n}),this.state.editModalShow&&c.default.createElement(T,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:m,project:b,data:i,isSubtask:i.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(T,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:m,project:b,data:i,action_id:Ge,doAction:Le,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(V,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:i,action_id:Ge,doAction:Le}),this.state.createSubtaskModalShow&&c.default.createElement(T,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:m,project:b,parent:i,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(F,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:i.state,collection:ae}),this.state.linkIssueModalShow&&c.default.createElement(L,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:Ie,createLink:je,issue:i,types:g.types,project:b,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(q,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Ie,delLink:Fe,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:m,issue:i,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:b,convert:J,loading:m,issue:i,i18n:n}),this.state.moveModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:b,move:Q,loading:m,issue:i,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:i,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(W,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:i,i18n:n}),this.state.shareModalShow&&c.default.createElement(H,{show:!0,project:b,close:function(){e.setState({shareModalShow:!1})},issue:i}),this.state.resetModalShow&&c.default.createElement(z,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:re,issue:i,i18n:n}),this.state.delNotifyShow&&c.default.createElement(U,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:i,del:X,detailClose:a,i18n:n}),this.state.copyModalShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:m,copy:$,data:i,i18n:n}),this.state.watchersModalShow&&c.default.createElement(Y,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:i.no,watchers:i.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220:function(e,t,n){try{(function(){"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("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&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(i.request({url:"/project/"+a.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(o,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.loading,a=t.options.relations,o=void 0===a?[]:a,i=[];return y.default.forEach(o,function(e){e.out==e.in?i.push({value:e.out,label:e.out}):(i.push({value:e.out,label:e.out}),i.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:r,options:i,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:r,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:v,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:r||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},221:function(e,t,n){try{(function(){"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("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?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222:function(e,t,n){try{(function(){"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("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'+a+'
    '),imgFileUrls.push(r)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var r=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){r.state.inlinePreviewShow[e]=!1,r.setState({inlinePreviewShow:r.state.inlinePreviewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var a=_lodash2.default.find(e,{nameAndEmail:n});return a&&t.state.atWho.push(a.id),"@"+a.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.currentTime,a=t.permissions,o=t.currentUser,i=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,h=t.users,m=t.project,y=t.issue_id,g=this.state,v=g.inlinePreviewShow,b=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){i(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),a.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var i=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===o.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&o.id===t.creator.id&&a.indexOf("delete_self_comments")!==-1||a.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&o.id===t.creator.id&&a.indexOf("edit_self_comments")!==-1||a.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),a.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:i,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[t.id]&&e.createLightbox(t.id,c,b),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,i){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===o.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,r))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&o.id===n.creator.id&&a.indexOf("delete_self_comments")!==-1||a.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&o.id===n.creator.id&&a.indexOf("edit_self_comments")!==-1||a.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),a.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[n.id]&&e.createLightbox(n.id,c,b))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:h,project:m,permissions:a,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224:function(e,t,n){try{(function(){"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("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${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var a=p.default.find(e,{nameAndEmail:n});return a&&t.state.atWho.push(a.id),"@"+a.name}},data:e}),h(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=h(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.data,a=t.loading,o="";return o=r.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},o)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:a,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&n[this.state.ecode]),u.default.createElement("img",{src:m,className:a?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||a,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:a,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227:function(e,t,n){try{(function(){"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("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.author&&t.author.id===a.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,h.getAgoAt)(t.committed_at,r))}}));return u.default.createElement(d.Panel,{header:o,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228:function(e,t,n){try{(function(){"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("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.operator&&t.operator.id===a.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,h.getAgoAt)(t.operated_at,r))}}));return u.default.createElement(d.Panel,{header:o,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229:function(e,t,n){try{(function(){"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("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=0){var c=f.default.floor(u/o);c>0&&s.push(c+"w")}if(u%=o,u>=0){var d=f.default.floor(u/i);d>0&&s.push(d+"d")}if(u%=i,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.permissions,a=t.currentTime,o=t.currentUser,i=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,b=t.indexLoading,w=t.loading,k=t.addWorklog,E=t.editWorklog,x=t.delWorklog,_=t.original_estimate,C=void 0===_?"":_,S=void 0;C&&(S=this.t2m(C)),"desc"===s&&p.reverse();var T=0;f.default.map(p,function(t){if(T=f.default.add(T,e.t2m(t.spend)),1==t.adjust_type&&t.spend&&void 0!==S){var n=e.t2m(t.spend);S=S-n>0?S-n:0}else if(3==t.adjust_type&&t.leave_estimate)S=e.t2m(t.leave_estimate);else if(4==t.adjust_type&&t.cut&&void 0!==S){var r=e.t2m(t.cut);S=S-r>0?S-r:0}return f.default.extend(t,{leave_estimate_m:S}),t});var P=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:b&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:w,onClick:function(){l(i.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:w,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:b&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},T>0?this.m2t(T):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===P.leave_estimate_m?"-":this.m2t(P.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},b&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:m,className:"loading"})),p.length<=0&&!b?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var i=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===o.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,h.getAgoAt)(t.recorded_at,a))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&o.id===t.recorder.id&&r.indexOf("delete_self_worklog")!==-1||r.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&o.id===t.recorder.id&&r.indexOf("edit_self_worklog")!==-1||r.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:i,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,add:k,edit:E,i18n:n}),this.state.delWorklogShow&&u.default.createElement(v,{show:!0,issue:i,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,del:x,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},337:function(e,t,n){try{(function(){"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("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&&u.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变过滤器显示顺序。"),n.length>0?n.map(function(t,n){return u.default.createElement(g.default,{key:t.id,index:n,id:t.id,text:t.text,moveCard:e.moveCard,deleteCard:d?e.deleteCard.bind(e,n):null})}):u.default.createElement("p",null,"暂无自定义过滤器。"))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!i&&o[this.state.ecode]),u.default.createElement("img",{src:k,className:i?"loading":"hide"}),u.default.createElement(c.Button,{disabled:i||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:i,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,title:s.PropTypes.string,loading:s.PropTypes.bool,isRemovable:s.PropTypes.bool,config:s.PropTypes.func.isRequired,filters:s.PropTypes.array.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragDropContext)(f.default)(t)||t}(s.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},588:function(e,t,n){try{(function(){"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("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;na&&s>i||(e.moveCard(r,a),t.getItem().index=a)}}},y=function(e){function t(){a(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.index,n=e.text,r=e.width,a=e.editWidth,o=e.isDragging,i=e.connectDragSource,l=e.connectDropTarget,s=e.deleteCard,d=o?0:1;return i(l(u.default.createElement("div",{style:{opacity:d},className:"dragcard"},u.default.createElement("span",null,n),!!s&&u.default.createElement("span",{className:"comments-button",style:{"float":"right"},onClick:s,title:"删除"},u.default.createElement("i",{className:"fa fa-remove"})),u.default.createElement("span",{style:{width:"75px",marginRight:"25px","float":"right"}},u.default.createElement(c.FormGroup,{style:{marginBottom:"0px"}},u.default.createElement(c.FormControl,{style:{height:"21px",fontSize:"10px"},type:"number",value:r,onChange:function(e){var n=e.target.value.replace(/[^0-9]/gi,"");a(t,n)},placeholder:"宽度(px)"}))))))}}],[{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,width:s.PropTypes.string.isRequired,editWidth:s.PropTypes.func.isRequired,deleteCard:s.PropTypes.func.isRequired,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(f.CardTypes.CARD,h,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(f.CardTypes.CARD,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},1860:function(e,t,n){try{(function(){"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("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>"),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(c.Col,{sm:6},n.length>0?n.map(function(t,n){return u.default.createElement(g.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(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&i[this.state.ecode]),u.default.createElement("img",{src:x,className:l?"loading":"hide"}),s.permissions&&s.permissions.indexOf("manage_project")!==-1&&u.default.createElement(c.Checkbox,{disabled:l,checked:this.state.saveForProject,onClick:function(){e.setState({saveForProject:!e.state.saveForProject})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"保存作为该项目默认显示列"),u.default.createElement(c.Button,{disabled:l||r==JSON.stringify(n)&&!this.state.saveForProject,onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:l,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool,set:s.PropTypes.func.isRequired,data:s.PropTypes.array.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=_,e.exports=t.default}).call(this)}finally{}},1861:function(e,t,n){try{(function(){"use strict";function r(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 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)}function l(e){return{actions:(0,h.bindActionCreators)(v,e),wfActions:(0,h.bindActionCreators)(w,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t1?n(p.default.extend(a,{page:void 0})):r(a):"gotogantt"===e?n(p.default.extend(a,{page:void 0}),"gantt"):"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}):"batch"==e&&o()}},{key:"selectFilter",value:function(e){var t=this.props,n=t.refresh,r=t.options,a=void 0===r?{}:r;if("filterConfig"==e)this.setState({filterConfigShow:!0});else if("saveFilter"==e)this.setState({saveFilterShow:!0});else if("filterDel"==e)this.setState({filterDelShow:!0});else{var o=a.filters||[],i=p.default.find(o,{id:e})||{};n(i.query||{})}}},{key:"exportExcel",value:function n(e){var t=this.props,n=t.exportExcel,r=t.query;n(r,e)}},{key:"multiOperateSelect",value:function(e){"multi_del"===e?this.setState({multiDelNotifyShow:!0}):"multi_edit"===e&&this.setState({multiEditModalShow:!0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.user,a=t.index,o=t.create,i=t.addLabels,l=t.saveFilter,s=t.resetFilters,d=t.configFilters,C=t.delFilters,S=t.setColumns,T=t.resetColumns,P=t.imports,O=t.indexLoading,R=t.optionsLoading,M=t.filterLoading,j=t.columnsLoading,F=t.options,I=void 0===F?{}:F,L=t.refresh,q=t.query,N=t.loading,A=t.project,D=t.multiDel,B=t.multiUpdate,W=t.selectedIds,H=t.isBatchHandle,z=p.default.reject(p.default.reject(I.types||[],{type:"subtask"})||[],{disabled:!0})||[],V=R?"":(0,f.parseQuery)(q,I);return u.default.createElement("div",null,u.default.createElement("div",{style:{paddingTop:"5px"}},W.length>0&&u.default.createElement(c.DropdownButton,{className:"create-btn",title:"批量操作",onSelect:this.multiOperateSelect.bind(this)},I.permissions&&I.permissions.indexOf("edit_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"multi_edit"},"编辑"),I.permissions&&I.permissions.indexOf("delete_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"multi_del"},"删除")),u.default.createElement(c.DropdownButton,{className:"create-btn",id:"filters",title:"过滤器",onSelect:this.selectFilter.bind(this)},I.filters&&I.filters.length>0?p.default.map(I.filters||[],function(e){return u.default.createElement(c.MenuItem,{eventKey:e.id,key:e.id},e.name)}):u.default.createElement(c.MenuItem,{disabled:!0},"无"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"saveFilter"},"保存当前检索"),u.default.createElement(c.MenuItem,{eventKey:"filterConfig"},"过滤器排序"),u.default.createElement(c.MenuItem,{eventKey:"filterDel"},"过滤器删除")),u.default.createElement(c.Button,{className:"create-btn",disabled:R,onClick:function(){e.setState({searchShow:!e.state.searchShow})}},"检索 ",u.default.createElement("i",{className:this.state.searchShow?"fa fa-angle-double-up":"fa fa-angle-double-down"})),I.permissions&&I.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.Button,{className:"create-btn",bsStyle:"primary",disabled:z.length<=0||R,onClick:function(){e.setState({createModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 创建"),u.default.createElement("div",{style:{marginTop:"10px","float":"right"}},u.default.createElement(c.DropdownButton,{id:"more",pullRight:!0,style:{"float":"right"},title:"更多",onSelect:this.operateSelect.bind(this)},u.default.createElement(c.MenuItem,{eventKey:"refresh"},"刷新"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"gotogantt"},"跳至甘特图"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"set_columns"},"显示列配置"),u.default.createElement(c.MenuItem,{eventKey:"reset_columns"},"显示列重置"),I.permissions&&(I.permissions.indexOf("edit_issue")!==-1||I.permissions.indexOf("delete_issue")!==-1)&&u.default.createElement(c.MenuItem,{divider:!0}),I.permissions&&(I.permissions.indexOf("edit_issue")!==-1||I.permissions.indexOf("delete_issue")!==-1)&&u.default.createElement(c.MenuItem,{eventKey:"batch"},H?"取消批量操作":"批量操作"),I.permissions&&I.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.MenuItem,{divider:!0}),I.permissions&&I.permissions.indexOf("create_issue")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"import"},"导入"),u.default.createElement(c.MenuItem,{divider:!0}),u.default.createElement(c.MenuItem,{eventKey:"export"},"导出"))),V&&u.default.createElement("div",{className:"cond-bar"},u.default.createElement("div",{className:"cond-contents",title:V},u.default.createElement("b",null,"检索条件"),":",V),u.default.createElement("div",{className:"remove-icon",onClick:function(){L({})},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(g,{show:!0,isRemovable:!1,close:this.filterConfigModalClose,loading:M,config:d,filters:I.filters||[],i18n:n}),this.state.filterDelShow&&u.default.createElement(v,{show:!0,close:this.filterDelModalClose,loading:M,del:C,data:p.default.filter(I.filters||[],function(e){return e.creator==r.id}),i18n:n}),u.default.createElement(f.IssueFilterList,{values:q,searchShow:this.state.searchShow,indexLoading:O,options:I,onChange:function(e){L(p.default.assign({},e,{page:void 0}))}}),this.state.createModalShow&&u.default.createElement(h,{show:!0,close:this.createModalClose,options:I,create:o,addLabels:i,loading:N,project:A,i18n:n}),this.state.saveFilterShow&&u.default.createElement(m,{show:!0,close:this.saveFilterModalClose,filters:I.filters||[],create:l,query:q,loading:M,sqlTxt:V,options:I,i18n:n}),this.state.resetFiltersShow&&u.default.createElement(y,{show:!0,close:this.resetFiltersNotifyClose,reset:s,loading:M,i18n:n}),this.state.setColumnsShow&&u.default.createElement(w,{show:!0,close:this.setColumnsNotifyClose,options:I,data:I.display_columns||[],set:S,loading:j,i18n:n}),this.state.resetColumnsShow&&u.default.createElement(b,{show:!0,close:this.resetColumnsNotifyClose,options:I,reset:T,loading:j,i18n:n}),this.state.exportConfigShow&&u.default.createElement(k,{show:!0,close:this.exportConfigModalClose,options:I,exportExcel:this.exportExcel.bind(this),i18n:n}),this.state.importModalShow&&u.default.createElement(E,{show:!0,close:this.importModalClose,imports:P,loading:N,index:a,i18n:n}),this.state.multiDelNotifyShow&&u.default.createElement(x,{show:!0,close:this.multiDelNotifyClose,index:a,query:q,issueIds:W,loading:N,multiDel:D,i18n:n}),this.state.multiEditModalShow&&u.default.createElement(_,{show:!0,close:this.multiEditModalClose,project:A,index:a,query:q,issueIds:W,loading:N,multiUpdate:B,options:I,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,user:s.PropTypes.object.isRequired,create:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,resetFilters:s.PropTypes.func.isRequired,setColumns:s.PropTypes.func.isRequired,resetColumns:s.PropTypes.func.isRequired,configFilters:s.PropTypes.func.isRequired,delFilters:s.PropTypes.func.isRequired,index:s.PropTypes.func,refresh:s.PropTypes.func,exportExcel:s.PropTypes.func,imports:s.PropTypes.func,getOptions:s.PropTypes.func,query:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool.isRequired,optionsLoading:s.PropTypes.bool.isRequired,filterLoading:s.PropTypes.bool.isRequired,columnsLoading:s.PropTypes.bool.isRequired,indexLoading:s.PropTypes.bool.isRequired,multiUpdate:s.PropTypes.func.isRequired,multiDel:s.PropTypes.func.isRequired,selectedIds:s.PropTypes.array.isRequired,isBatchHandle:s.PropTypes.bool.isRequired,switchBatch:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component));t.default=C,e.exports=t.default}).call(this)}finally{}},1864:function(e,t,n){try{(function(){"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("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)){u.next=18;break}return this.state.detailBarShow=!0,u.next=16,regeneratorRuntime.awrap(l(i[0].id));case 16:a=u.sent,0===a&&s();case 18:case"end":return u.stop()}},null,this)}},{key:"componentWillReceiveProps",value:function(e){var t=e.query||{},n=this.props,r=n.index,a=n.query;h.default.isEqual(t,a)||r(t)}},{key:"delNotifyClose",value:function(){this.setState({delNotifyShow:!1})}},{key:"isAllowable",value:function(e,t){var n=this.props,r=n.options,a=n.user;return!!r.permissions&&(e.indexOf("_self_")!==-1?t==a.id&&r.permissions.indexOf(e)!==-1:r.permissions.indexOf(e)!==-1)}},{key:"operateSelect",value:function(e){var t,n,r,a,o,i;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:t=this.props,n=t.watch,r=t.collection,a=this.state.hoverRowId,o=h.default.find(r,{id:a})||{},this.setState({selectedItem:o}),i=0,"view"===e?this.show(a):"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(o.id,!o.watching);case 8:case"end":return l.stop()}},null,this)}},{key:"watch",value:function n(e,t){var n,r;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return n=this.props.watch,a.next=3,regeneratorRuntime.awrap(n(e,t));case 3:r=a.sent,0===r?t?m.notify.show("关注成功。","success",2e3):m.notify.show("已取消关注。","success",2e3):t?m.notify.show("关注失败。","error",2e3):m.notify.show("取消失败。","error",2e3);case 5:case"end":return a.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:"onSelectAll",value:function(e,t){var n=this.props,r=n.selectedIds,a=n.setSelectedIds;if(e){for(var o=t.length,i=0;i0&&(e.isAllowable("create_issue")||(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&!t.hasSubtasks)&&u.default.createElement(d.MenuItem,{divider:!0}),!t.parent_id&&$e.length>0&&e.isAllowable("create_issue")&&u.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!t.hasSubtasks&&!t.parent_id&&$e.length>0&&(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),t.parent_id&&(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{divider:!0}),t.parent_id&&(e.isAllowable("edit_issue")||e.isAllowable("edit_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),(e.isAllowable("create_issue")||e.isAllowable("move_issue")&&t.parent_id)&&u.default.createElement(d.MenuItem,{divider:!0}),e.isAllowable("move_issue")&&t.parent_id&&u.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),e.isAllowable("create_issue")&&u.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(e.isAllowable("reset_issue")||e.isAllowable("delete_issue")||e.isAllowable("delete_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{divider:!0}),e.isAllowable("reset_issue")&&u.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(e.isAllowable("delete_issue")||e.isAllowable("delete_self_issue",t.reporter&&t.reporter.id||""))&&u.default.createElement(d.MenuItem,{eventKey:"del"},"删除"))),h.default.forEach(Ye,function(e){if("priority"===e.key){var r=h.default.findIndex(y.priorities,{id:t.priority}),a={marginLeft:"14px"};r!==-1&&(a.backgroundColor=y.priorities[r].color),n.priority=r!==-1?u.default.createElement("div",{className:"circle",style:a,title:y.priorities[r].name}):u.default.createElement("div",{style:a},"-")}else if("state"===e.key){var o=h.default.findIndex(y.states,{id:t.state}),i="";o!==-1&&(i="state-"+(y.states[o].category||"")+"-label"),n.state=o!==-1?u.default.createElement("span",{className:i},y.states[o].name||"-"):"-"}else if("TextArea"===e.type){var l=t[e.key]?h.default.escape(t[e.key]).replace(/(\r\n)|(\n)/g,"
    "):"-";n[e.key]=u.default.createElement("span",{style:Ge,dangerouslySetInnerHTML:{__html:l}})}else{if(!t[e.key]&&!h.default.isNumber(t[e.key]))return void(n[e.key]="-");var l="";"sprints"===e.key?l=t.sprints&&t.sprints.length>0?t.sprints.join(","):"-":"SingleUser"===e.type?l=t[e.key].name:"MultiUser"===e.type?l=h.default.map(t[e.key],function(e){return e.name}).join(","):["Select","RadioGroup","SingleVersion"].indexOf(e.type)!==-1?l=h.default.findIndex(e.optionValues||[],{id:t[e.key]})===-1?"-":h.default.find(e.optionValues,{id:t[e.key]}).name:["MultiSelect","CheckboxGroup","MultiVersion"].indexOf(e.type)!==-1?!function(){var n=h.default.isArray(t[e.key])?t[e.key]:t[e.key].split(","),r=[];h.default.forEach(n,function(t){var n=h.default.findIndex(e.optionValues||[],{id:t})!==-1?h.default.find(e.optionValues,{id:t}).name:"";n&&r.push(n)}),l=r.length>0?h.default.uniq(r).join(","):"-"}():l="DatePicker"===e.type?v.unix(t[e.key]).format("YYYY/MM/DD"):"DateTimePicker"===e.type?v.unix(t[e.key]).format("YYYY/MM/DD HH:mm"):t[e.key]+("progress"==e.key?"%":""),n[e.key]=u.default.createElement("span",{style:Ge},l)}}),Je.push(n)});var et={};return s?et.noDataText=u.default.createElement("div",null,u.default.createElement("img",{src:k,className:"loading"})):et.noDataText="暂无数据显示。",et.onRowMouseOver=this.onRowMouseOver.bind(this),u.default.createElement("div",null,u.default.createElement(c.BootstrapTable,{hover:!0,data:Je,bordered:!1,options:et,selectRow:Qe,trClassName:"tr-top",headerStyle:{overflow:"unset"}},u.default.createElement(c.TableHeaderColumn,{dataField:"id",hidden:!0,isKey:!0},"ID"),u.default.createElement(c.TableHeaderColumn,{width:"50",dataField:"type"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"type"),title:"类型"},u.default.createElement("span",{style:{marginRight:"3px"}},"类型"),"type"===Ke.field&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"})))),u.default.createElement(c.TableHeaderColumn,{dataField:"no",width:"50",title:"NO"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"no")},u.default.createElement("span",{style:{marginRight:"3px"}},"NO"),"no"===Ke.field&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"})))),u.default.createElement(c.TableHeaderColumn,{dataField:"title"},u.default.createElement("span",{className:"table-header",onClick:this.orderBy.bind(this,"title"),title:"主题"},u.default.createElement("span",{style:{marginRight:"3px"}},"主题"),"title"===Ke.field&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"})))),h.default.map(Ye,function(t,n){return u.default.createElement(c.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,title:t.name},u.default.createElement("span",{style:{marginRight:"3px"}},t.name),Ke.field===t.sortKey&&("desc"===Ke.order?u.default.createElement("i",{className:"fa fa-caret-down"}):u.default.createElement("i",{className:"fa fa-caret-up"}))))}),u.default.createElement(c.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.detailBarShow&&u.default.createElement(w,{i18n:n,layout:r,create:D,edit:A,del:N,setAssignee:B,setItemValue:W,setLabels:H,addLabels:z,close:this.closeDetail,options:y,data:i,record:F,forward:I,visitedIndex:L,visitedCollection:q,issueCollection:a,show:g,itemLoading:f,loading:l,fileLoading:Z,project:G,delFile:Y,addFile:K,wfCollection:X,wfLoading:$,viewWorkflow:Q,indexComments:J,sortComments:ee,commentsCollection:te,commentsIndexLoading:ne,commentsLoading:re,commentsItemLoading:se,commentsLoaded:ae,addComments:oe,editComments:ie,delComments:le,indexWorklog:ue,worklogSort:ce,sortWorklog:de,worklogCollection:pe,worklogIndexLoading:fe,worklogLoading:he,worklogLoaded:me,addWorklog:ye,editWorklog:ge,delWorklog:ve,indexHistory:be,sortHistory:we,historyCollection:ke,historyIndexLoading:Ee,historyLoaded:xe,indexGitCommits:_e,sortGitCommits:Ce,gitCommitsCollection:Se,gitCommitsIndexLoading:Te,gitCommitsLoaded:Pe,linkLoading:Me,createLink:Oe,delLink:Re,watch:je,copy:Fe,move:Ie,convert:Le,resetState:qe,doAction:De,user:Be}),!s&&y.total&&y.total>0?u.default.createElement(E,{total:y.total||0,curPage:V.page?V.page-0:1,sizePerPage:y.sizePerPage||50,paginationSize:4,query:V,refresh:U}):"",this.state.delNotifyShow&&u.default.createElement(b,{show:!0,close:this.delNotifyClose,data:Ve,loading:f,del:N,i18n:n}),this.state.addWorklogShow&&u.default.createElement(x,{show:!0,issue:Ve,close:function(){e.setState({addWorklogShow:!1})},loading:he,add:ye,i18n:n}),this.state.editModalShow&&u.default.createElement(_,{show:!0,close:function(){e.setState({editModalShow:!1})},options:y,addLabels:z,loading:l,project:G,edit:A,isSubtask:Ve.parent_id&&!0,data:Ve,i18n:n}),this.state.createSubtaskModalShow&&u.default.createElement(_,{show:!0,close:function(){e.setState({createSubtaskModalShow:!1})},options:y,create:D,loading:l,project:G,parent:Ve,isSubtask:!0,i18n:n}),this.state.convertTypeModalShow&&u.default.createElement(C,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:y,convert:Le,loading:l,issue:Ve,i18n:n}),this.state.convertType2ModalShow&&u.default.createElement(S,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:y,project:G,convert:Le,loading:l,issue:Ve,i18n:n}),this.state.moveModalShow&&u.default.createElement(T,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:y,project:G,move:Ie,loading:l,issue:Ve,i18n:n}),this.state.assignModalShow&&u.default.createElement(P,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:y,setAssignee:B,issue:Ve,i18n:n}),this.state.setLabelsModalShow&&u.default.createElement(O,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:y,setLabels:H,addLabels:z,issue:Ve,i18n:n}),this.state.shareModalShow&&u.default.createElement(R,{show:!0,close:function(){e.setState({shareModalShow:!1})},project:G,issue:Ve}),this.state.resetModalShow&&u.default.createElement(M,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:y,resetState:qe,issue:Ve,i18n:n}),this.state.copyModalShow&&u.default.createElement(j,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:y,loading:l,copy:Fe,data:Ve,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,collection:s.PropTypes.array.isRequired,wfCollection:s.PropTypes.array.isRequired,wfLoading:s.PropTypes.bool.isRequired,viewWorkflow:s.PropTypes.func.isRequired,indexComments:s.PropTypes.func.isRequired,sortComments:s.PropTypes.func.isRequired,addComments:s.PropTypes.func.isRequired,editComments:s.PropTypes.func.isRequired,delComments:s.PropTypes.func.isRequired,commentsCollection:s.PropTypes.array.isRequired,commentsIndexLoading:s.PropTypes.bool.isRequired,commentsLoading:s.PropTypes.bool.isRequired,commentsItemLoading:s.PropTypes.bool.isRequired,commentsLoaded:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,worklogSort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,worklogCollection:s.PropTypes.array.isRequired,worklogIndexLoading:s.PropTypes.bool.isRequired,worklogLoading:s.PropTypes.bool.isRequired,worklogLoaded:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,historyCollection:s.PropTypes.array.isRequired,historyIndexLoading:s.PropTypes.bool.isRequired,historyLoaded:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,gitCommitsCollection:s.PropTypes.array.isRequired,gitCommitsIndexLoading:s.PropTypes.bool.isRequired,gitCommitsLoaded:s.PropTypes.bool.isRequired,itemData:s.PropTypes.object.isRequired,project:s.PropTypes.object,options:s.PropTypes.object,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,query:s.PropTypes.object,show:s.PropTypes.func.isRequired,edit:s.PropTypes.func.isRequired,create:s.PropTypes.func.isRequired,setAssignee:s.PropTypes.func.isRequired,setItemValue:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,fileLoading:s.PropTypes.bool.isRequired,delFile:s.PropTypes.func.isRequired,addFile:s.PropTypes.func.isRequired,record:s.PropTypes.func.isRequired,forward:s.PropTypes.func.isRequired,cleanRecord:s.PropTypes.func.isRequired,visitedIndex:s.PropTypes.number.isRequired,visitedCollection:s.PropTypes.array.isRequired,createLink:s.PropTypes.func.isRequired,delLink:s.PropTypes.func.isRequired,linkLoading:s.PropTypes.bool.isRequired,doAction:s.PropTypes.func.isRequired,watch:s.PropTypes.func.isRequired,copy:s.PropTypes.func.isRequired,move:s.PropTypes.func.isRequired,convert:s.PropTypes.func.isRequired,resetState:s.PropTypes.func.isRequired,del:s.PropTypes.func.isRequired,selectedIds:s.PropTypes.array.isRequired,setSelectedIds:s.PropTypes.func.isRequired,isBatchHandle:s.PropTypes.bool.isRequired,user:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=F,e.exports=t.default}).call(this)}finally{}},1866:function(e,t,n){try{(function(){"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("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;nt.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值不能小于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值不能大于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!S(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")), +t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.project,o=t.options,i=t.issueIds,s=t.loading,u=["title","state","reporter","resolver","closer","created_at","updated_at","resolved_at","closed_at","sprints"],c=[];E.default.forEach(o.fields||[],function(e){"File"!==e.type&&u.indexOf(e.key)===-1&&c.push(e)});for(var h=[],y=0;y"),2==this.state.step&&d.default.createElement(p.Button,{onClick:this.confirm,style:{marginLeft:"10px"},disabled:s||!E.default.isEmpty(this.state.errors)},"确 定"),d.default.createElement(p.Button,{bsStyle:"link",onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:c.PropTypes.object.isRequired,project:c.PropTypes.object.isRequired,close:c.PropTypes.func.isRequired,index:c.PropTypes.func.isRequired,query:c.PropTypes.object.isRequired,loading:c.PropTypes.bool.isRequired,multiUpdate:c.PropTypes.func.isRequired,issueIds:c.PropTypes.array.isRequired,options:c.PropTypes.object.isRequired},enumerable:!0}]),t}(c.Component);t.default=P,e.exports=t.default}).call(this)}finally{}},1868:function(e,t,n){try{(function(){"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("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=1){r=l.default.min([i,n[a].max])+n[a].suffix;break}}return r}function o(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var r={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},o=t.substr(n+1);return r[o]?"fa fa-file-"+r[o]+"-o":"fa fa-file-o"}function a(e,t,n){var r=e<0?-1:1;e=Math.abs(e);var o=[],a=l.default.ceil(e);if(a>=0){var i=l.default.floor(e/t);i>0&&o.push(i+"w")}if(a=e%t,a>=0){var s=l.default.floor(a/n);s>0&&o.push(s+"d")}if(a%=n,a>=0){var u=l.default.floor(a/60);u>0&&o.push(u+"h")}return a%=60,a>0&&o.push(a+"m"),o.length<=0&&o.push("0m"),(r<0?"-":"")+o.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=r,t.getFileIconCss=o,t.ttFormat=a;var i=n(3),l=e(i),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var a=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(o.onChange=r.bind(null,this.props.value)),l.default.createElement("input",a({},this.props,{type:"checkbox",name:t},o))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.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),r=o(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},44:function(e,t,n){!function(t,r){e.exports=r(n(1),n(121))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 l(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&&(g=Math.max(v.minX,Math.min(v.maxX,g)),b=Math.max(v.minY,Math.min(v.maxY,b))),this.setState({zoomLevel:r,offsetX:g,offsetY:b})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,m.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),o=r.height-2*this.props.imagePadding,a=r.width-2*this.props.imagePadding;n||(o=Math.min(o,t),a=Math.min(a,e));var i=a/o,l=e/t;return i>l?{width:e*o/t,height:o}:{width:a,height:t*a/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),o=0;o=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2;var a=0;return a=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,{maxX:o,maxY:a,minX:-1*o,minY:-1*a}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(h.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,m.getWindowWidth)(),height:(0,m.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=a?(this.requestMoveNext(e),r=o,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*a)&&(this.requestMovePrev(e),r=o,this.scrollX=0)}0!==r&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},r))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=h.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)h.MIN_ZOOM_LEVEL?this.changeZoom(h.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=h.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,r=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===r||this.setState({offsetX:n,offsetY:r})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=h.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,r=this.caption.scrollTop;(e.deltaY>0&&t+r>=n||e.deltaY<0&&r<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var r=this,o=new Image;o.onerror=function(){t("image load error")},o.onload=function(){r.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},o.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(r){return r?void(window.console&&window.console.warn(r)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(r){var o=r.name;t[o]&&!e.isImageLoaded(t[o])&&e.loadImage(t[o],n(o,t[o]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:h.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,r=n.animationDisabled,o=n.animationDuration,a=n.clickOutsideToClose,i=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,w=this.state,E=w.zoomLevel,k=w.offsetX,x=w.offsetY,_=w.isClosing,C=this.getLightboxRect(),S={};!r&&this.isAnimating()&&(S=u({},S,{transition:"transform "+o+"ms"}));var T={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;T[t]=n});var P=[],O=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var o=u({},r,S);E>h.MIN_ZOOM_LEVEL&&(o.cursor="move");var a=e.getBestImageForType(t);if(null===a){var l=void 0;return l=v<10?d.default.createElement("div",{className:b.loadingContainer__icon},(0,m.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+b.loadingCircle+" "+b.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+b.loadingCirclePoint})),void P.push(d.default.createElement("div",{className:n+" "+b.image+" not-loaded ril-not-loaded",style:o,key:e.props[t]+T[t]},d.default.createElement("div",{className:b.loadingContainer},l)))}o.width=a.width,o.height=a.height;var c=a.src;i?(o.backgroundImage="url('"+c+"')",P.push(d.default.createElement("div",{className:n+" "+b.image+" "+b.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:o,key:c+T[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+b.downloadBlocker})))):P.push(d.default.createElement("img",{className:n+" "+b.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:o,src:c,key:c+T[t],alt:s||(0,m.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+b.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*k,y:-1*x,zoom:R})),O("prevSrc","image-prev ril-image-prev "+b.imagePrev,t.getTransform({x:-1*C.width}));var M=function(){},j=[b.toolbarItemChild,b.builtinButton,b.zoomInButton],q=[b.toolbarItemChild,b.builtinButton,b.zoomOutButton],F=this.handleZoomInButtonClick,N=this.handleZoomOutButtonClick;E===h.MAX_ZOOM_LEVEL&&(j.push(b.builtinButtonDisabled),F=M),E===h.MIN_ZOOM_LEVEL&&(q.push(b.builtinButtonDisabled),N=M),this.isAnimating()&&(F=M,N=M);var I={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:a?this.requestClose:M,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:I},d.default.createElement("div",{className:"outer ril-outer "+b.outer+" "+b.outerAnimating+(_?" closing ril-closing "+b.outerClosing:""),style:{transition:"opacity "+o+"ms",animationDuration:o+"ms",animationDirection:_?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+b.inner,onClick:a?this.closeIfClickInner:M},P),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+b.navButtons+" "+b.navButtonPrev,key:"prev",onClick:this.isAnimating()?M:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+b.navButtons+" "+b.navButtonNext,key:"next",onClick:this.isAnimating()?M:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+b.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+b.toolbarSide+" "+b.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+b.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+b.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",b.toolbarSide,b.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+b.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+b.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+j.join(" "),onClick:F})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+b.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+q.join(" "),onClick:N})),d.default.createElement("li",{className:"ril-toolbar__item "+b.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+b.toolbarItemChild+" "+b.builtinButton+" "+b.closeButton),onClick:this.isAnimating()?M:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+b.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+b.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,r=e.y,a=void 0===r?null:r,i=e.zoom,l=void 0===i?null:i,s=v<10,u=[];return null===n&&null===a||u.push(s?"translate("+(n||0)+"px,"+(a||0)+"px)":"translate3d("+(n||0)+"px,"+(a||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),o({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);w.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},w.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=w},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function o(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function a(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=r,t.getWindowWidth=o,t.getWindowHeight=a,t.isInIframe=i},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), -t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&v.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var a=b++;n=g||(g=l(t)),r=c.bind(null,n,a,!1),o=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=p.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=d.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var f={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=m(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,b=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var a=[],i=0;io&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},h=function(e){function t(){o(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,o=e.connectDropTarget,a=e.deleteCard,i=n?0:1,l={"float":"right",cursor:"pointer"};return r(o(u.default.createElement("div",{style:{opacity:i},className:"dragcard"},t,!!a&&u.default.createElement("span",{style:l,onClick:a,title:"删除",className:"rm-icon"},u.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,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},58:function(e,t,n){!function(t,r){e.exports=r(n(1),n(13))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,n){t.exports=e},function(e,t,n){"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(!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});var l=function(){function e(e,t){for(var n=0;n
    '),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,o,a,i,l,s,u,c,d,p,f,m;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),a=0,s=d.length;a'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),m=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},r=function(){var e,t,n,r,o,a,i;for(r=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],a=0,i=n.length;a'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=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,o,a;if(n=e.hiddenFileInput.files,n.length)for(o=0,a=n.length;o',this.options.dictFallbackText&&(r+="

    "+this.options.dictFallbackText+"

    "),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(o=t.createElement('
    '),o.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=o?o:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,o,a;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(i=["TB","GB","MB","KB","b"],n=l=0,s=i.length;l=t){r=e/Math.pow(this.options.filesizeBase,4-n),o=a;break}r=Math.round(10*r)/10}return""+r+" "+o},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,r,o;for(o=[],n=0,r=e.length;n0){for(a=0,i=n.length;a1024*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,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=L;c=0<=L?++M:--M)a.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(k,a,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var o,a,i;for(a=0,i=e.length;ac;)t=o[4*(s-1)+3],0===t?a=s:c=s,s=a+c>>1;return u=s/i,0===u?1:u},i=function(e,t,n,r,o,i,l,s,u,c){var d;return d=a(t),e.drawImage(t,n,r,o,i,l,s,u,c/d)},o=function(e,t){var n,r,o,a,i,l,s,u,c;if(o=!1,c=!0,r=e.document,u=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",a=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[s](l+n.type,a,!1),!o&&(o=!0)?t.call(e,n.type||n):void 0},i=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(i,50)}return a("poll")},"complete"!==r.readyState){if(r.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&i()}return r[n](l+"DOMContentLoaded",a,!1),r[n](l+"readystatechange",a,!1),e[n](l+"load",a,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},o(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},i=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var a;for(a in e);return"undefined"==typeof a||r.call(e,a)};e.exports=function l(){var e,t,n,r,o,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,r=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var o=0;o1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&p(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=x}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function k(e){return y(e)?a(e):l(e)}var x=9007199254740991,_="[object Arguments]",C="[object Function]",S="[object GeneratorFunction]",T=/^(?:0|[1-9]\d*)$/,P=Object.prototype,O=P.hasOwnProperty,R=P.toString,M=P.propertyIsEnumerable,j=o(Object.keys,Object),q=Math.max,F=!M.call({valueOf:1},"valueOf"),N=Array.isArray,I=c(function(e,t){if(F||f(t)||y(t))return void u(t,k(t),e);for(var n in t)O.call(t,n)&&i(e,n,t[n])});e.exports=I},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&o(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function o(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&n(e,!r)}function i(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return a(e)})}e.exports=i},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,o=o.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,r=1;rAn error occured:

    "+a(p.message+"",!0)+"
    ";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,o,a,i,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((a=this.rules.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]||""});else if(a=this.rules.heading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(t&&(a=this.rules.nptable.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(a,t,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(e)){for(e=e.substring(a[0].length),i=a[2],this.tokens.push({type:"list_start",ordered:i.length>1}),a=a[0].match(this.rules.item),r=!1,p=a.length,c=0;c1&&l.length>1||(e=a.slice(c+1).join("\n")+e,c=p-1)),o=r||/\n\n(?!\s*$)/.test(s),c!==p-1&&(r="\n"===s.charAt(s.length-1),o||(o=r)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(e))e=e.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===a[1]||"script"===a[1]||"style"===a[1]),text:a[0]});else if(!n&&t&&(a=this.rules.def.exec(e)))e=e.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(t&&(a=this.rules.table.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,r){ -var o=new n(t,r);return o.output(e)},n.prototype.output=function(e){for(var t,n,r,o,i="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),i+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),"@"===o[2]?(n=":"===o[1].charAt(6)?this.mangle(o[1].substring(7)):this.mangle(o[1]),r=this.mangle("mailto:")+n):(n=a(o[1]),r=n),i+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,i+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){i+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),i+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),i+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),i+=this.renderer.codespan(a(o[2],!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),i+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),i+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),i+=this.renderer.text(a(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(o[0].length),n=a(o[1]),r=n,i+=this.renderer.link(r,null,n);return i},n.prototype.outputLink=function(e,t){var n=a(t.href),r=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,a(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:a(e,!0))+"\n
    \n":"
    "+(n?e:a(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(i(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(o){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var a='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},o.parse=function(e,t,n){var r=new o(t,n);return r.parse(e)},o.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o,a="",i="";for(n="",e=0;e"+(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 i=p.default.find(t,{id:a.step});o+=i.id+'["'+p.default.escape(i.name)+'"];'})})},i=0;i0?k.default.pick(this.state.values,b):{}):k.default.extend(g,this.state.values),v=[],k.default.mapValues(g,function(e,t){var n=k.default.findIndex(h,{key:t}),r=n===-1?{}:h[n];e?"labels"===r.key?k.default.isArray(e)?(v=k.default.uniq(k.default.map(k.default.filter(e,function(e){return!!e.className}),function(e){return k.default.trim(e.value)})),g[t]=k.default.uniq(k.default.map(e,function(e){return k.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(r.type)!==-1?g[t]=e.split(","):"DatePicker"===r.type?g[t]=parseInt(T(e).startOf("day").format("X")):"DateTimePicker"===r.type?g[t]=parseInt(T(e).format("X")):"Number"===r.type?g[t]=parseFloat(e):"Integer"===r.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),w=0,k.default.isEmpty(l)||!l.id){E.next=37;break}if(!d||!f){E.next=31;break}return E.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(w=E.sent,0===w){E.next=31;break}return this.setState({ecode:w}),E.abrupt("return");case 31:return E.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:w=E.sent,0===w&&(o(),d&&f?x.notify.show("提交完成。","success",2e3):x.notify.show("问题已更新。","success",2e3)),E.next=42;break;case 37:return u.id&&k.default.extend(g,{parent_id:u.id}),E.next=40,regeneratorRuntime.awrap(t(g));case 40:w=E.sent,0===w&&(y?this.setState({preCreated:!0}):(o(),x.notify.show("问题已创建。","success",2e3)));case 42:0===w&&v.length>0&&r(v),this.setState({ecode:w});case 44:case"end":return E.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props.close;this.setState({ecode:0}),e()}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,r=k.default.find(n.types,{id:e}).schema;if(r){var o={},a={};k.default.map(r,function(e){t.state.errors[e.key]?a[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&k.default.isArray(e.defaultValue)?a[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&k.default.isString(e.defaultValue)?a[e.key]=e.defaultValue.split(","):a[e.key]=e.defaultValue:t.state.values[e.key]&&(a[e.key]=t.state.values[e.key]),e.required&&!a[e.key]&&(o[e.key]="必填")}),a.type=e,this.setState({errors:o,touched:{},schema:r,values:a})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void x.notify.show("文档上传失败。","error",2e3);var n=t.data,r=n.field,o=void 0===r?"":r,a=n.file,i=void 0===a?{}:a;this.state.values[o]=this.state.values[o]||[],this.state.values[o].push(i.id),e.field=o,e.fid=i.id,o&&this.state.errors[o]?(delete this.state.errors[o],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=k.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var r=k.default.find(this.state.schema,{key:t});r&&r.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=k.default.trim(e),n=t.split(" "),r=!0;return k.default.map(n,function(e){if(e){k.default.endsWith(e.toLowerCase(),"w")||k.default.endsWith(e.toLowerCase(),"d")||k.default.endsWith(e.toLowerCase(),"h")||k.default.endsWith(e.toLowerCase(),"m")||(r=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(r=!1)}}),r}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||k.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&k.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!T(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.options,o=t.close,a=t.loading,i=t.project,l=t.data,s=void 0===l?{}:l,d=t.parent,f=void 0===d?{}:d,g=t.isSubtask,v=void 0!==g&&g,E=t.isFromWorkflow,x=void 0!==E&&E,_=this.state,T=_.schema,R=_.createOther,M=_.preCreated,j=k.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),q={height:"580px",overflow:"auto"};return x&&(q={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:o,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},s.id?x?"流程页面":"编辑问题 - "+s.no:v?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:q,ref:"createModal"},!x&&!v&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,i.name||"-")))),!x&&v&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,f.title?f.no+"-"+f.title:s.parent&&s.parent.title?s.parent.no+"-"+s.parent.title:"-")))),!x&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:j,disabled:a,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),k.default.map(T,function(t,n){var o=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:o+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:a,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+i.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(S.MultiRowsTextEditor,{id:o+"-field-textarea-"+t.key,disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+i.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&r.permissions&&r.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:o+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(m.default,{multi:!0,disabled:a,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:k.default.map(r.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:a,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:k.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(h.CheckboxGroup,{style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(h.Checkbox,{disabled:a,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:o+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:a,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(b.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&r.permissions&&r.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+i.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:o+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(w.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:o+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:a,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0; -}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!a&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),M&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:P,className:a?"loading":"hide"}),!s.id&&u.default.createElement(c.Checkbox,{disabled:a,checked:R,onClick:function(){e.setState({createOther:!R})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:s.id&&this.getChangedKeys().length<=0&&x===!1||k.default.isEmpty(T)||!k.default.isEmpty(this.state.errors)||a||M,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n'+l+''),r.push(i)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var o=t.match(/\[.*?\]\(.*?\)/gi);return o&&p.default.forEach(o,function(e,n){var r=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");r.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,o=t.fieldKey,a=t.value,i=void 0===a?"":a,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(o,i),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(m.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n/gi),o=[];return r&&c.default.forEach(r,function(t,r){var a=new RegExp('^$');if(a.exec(t)){var i=RegExp.$1;if(!i)return;n=n.replace(t,''),o.push(i)}}),{html:n,imgFiles:o}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,o=t.fieldKey,a=t.value,i=this.state,l=i.inlinePreviewShow,u=i.photoIndex,c=this.extractImg(o,a||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:b}}).call(this)}finally{}},112:function(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};r=function(){return a}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},114: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=function(){function e(e,t){for(var n=0;n0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(m({},e,{defaultStyles:b.defaultStyles})),this.node)},render:function(){return i.noscript()}});b.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=b},116:function(e,t,n){var r=(n(1),n(71)),o=n(118),a=n(120),i=n(70),l=n(69),s=r.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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(){o.returnFocus(),o.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(o.setupScopedFocus(this.node),o.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&&a(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"},r=n.base;return this.state.afterOpen&&(r+=" "+n.afterOpen),this.state.beforeClose&&(r+=" "+n.beforeClose),"string"==typeof t&&t?[r,t].join(" "):r},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:i({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:i({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function r(e){i(e),(e||s).setAttribute("aria-hidden","true")}function o(e){i(e),(e||s).removeAttribute("aria-hidden")}function a(e,t){e?r(t):o(t)}function i(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=a,t.setElement=n,t.show=o,t.hide=r,t.resetForTesting=l},118:function(e,t,n){function r(e){s=!0}function o(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=a(l)[0]||l;e.focus()}},0)}}var a=n(72),i=[],l=null,s=!1;t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=i.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",o,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",o))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",o)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",o))}},119: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}}},120:function(e,t,n){var r=n(72);e.exports=function(e,t){var n=r(e);if(!n.length)return void t.preventDefault();var o=n[t.shiftKey?0:n.length-1],a=o===document.activeElement||e===document.activeElement;if(a){t.preventDefault();var i=n[t.shiftKey?n.length-1:0];i.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function a(e){return{type:"WORKFLOW_SELECT",id:e}}function i(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=o,t.select=a,t.delNotify=i,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178: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=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(o,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.parent_id,o=n.type,a=e.handleSubmit,i=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:a(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(m.default.Async,{clearable:!1,disabled:l,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(m.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:o.value,onChange:function(e){o.onChange(e)},placeholder:"选择问题类型"}),o.touched&&o.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},o.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||i,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:E})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},180: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=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(o,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,r=e.handleSubmit,o=e.invalid,a=e.submitting,i=e.issue;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"},"移动子任务 - "+i.no)),c.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(m.default.Async,{clearable:!1,disabled:a,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:a?"loading":"hide"}),c.default.createElement(p.Button,{disabled:a||o,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:E})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},184: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=function(){function e(e,t){for(var n=0;n0&&n(i),o(),b.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,r=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(r.labels||[],function(e){return{value:e,label:e}})}:{labels:(r.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,r=e.handleSubmit,o=e.invalid,a=e.submitting,i=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+i.no)),u.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(h.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:a,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),u.default.createElement("img",{src:v,className:a?"loading":"hide"}),u.default.createElement(d.Button,{disabled:a||o,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},186: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=function(){function e(e,t){for(var n=0;n0)){s.next=11;break}return i=a[e-1].id,s.next=9,regeneratorRuntime.awrap(n(i));case 9:l=s.sent,0===l&&r();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function h(e){var t,n,h,r,o,a,i,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,h=t.forward,r=t.visitedIndex,o=t.visitedCollection,a=void 0===o?[]:o,i=w.default.add(r,e),!a[i]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(a[i]));case 10:l=s.sent,0===l&&h(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,r,o,a,i;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,r=t.show,o=t.watch,a=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(r(n.id));case 8:a=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(i=n.watching,this.watch(n.id,!i)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g=this.props.watch,r.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=r.sent,0===n?t?E.notify.show("关注成功。","success",2e3):E.notify.show("已取消关注。","success",2e3):t?E.notify.show("关注失败。","error",2e3):E.notify.show("取消失败。","error",2e3);case 5:case"end":return r.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,r,o;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t=this.props,n=t.show,r=t.record,a.next=5,regeneratorRuntime.awrap(n(e));case 5:o=a.sent,0===o&&r();case 7:case"end":return a.stop()}},null,this)}},{key:"doAction",value:function v(e){var t,v,n,r,o;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=this.props,v=t.doAction,n=t.data,r=w.default.find(n.wfactions||{},{id:e}),!r||!r.screen){a.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),a.next=12;break;case 8:return a.next=10,regeneratorRuntime.awrap(v(n.id,n.entry_id,{action_id:e}));case 10:o=a.sent,0===o?E.notify.show("提交完成。","success",2e3):E.notify.show("提交失败。","error",2e3);case 12:case"end":return a.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,r,o,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=this.props,n=t.data,r=t.doAction,o=w.default.find(n.wfactions||{},{id:e}),!o||!o.schema){i.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),i.next=12;break;case 8:return i.next=10,regeneratorRuntime.awrap(r(n.id,n.entry_id,{action_id:e}));case 10:a=i.sent,0===a?E.notify.show("提交完成。","success",2e3):E.notify.show("提交失败。","error",2e3);case 12:case"end":return i.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void E.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=w.default.find(n,{name:e}),o={};return r&&r.bgColor&&(o={backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"}),o}},{key:"createLightbox",value:function(e,t,n){var r=this,o=this.props.project;return c.default.createElement(y.default,{mainSrc:Y+"/project/"+o.key+"/file/"+t[n].id,nextSrc:Y+"/project/"+o.key+"/file/"+t[(n+1)%t.length].id,prevSrc:Y+"/project/"+o.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){r.state.previewShow[e]=!1,r.setState({previewShow:r.state.previewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,r,o){var a=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(_.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(o&&o>0?"(字数"+o+"字之内)":""),uploadUrl:Y+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||o&&o>0&&w.default.trim(s[t]||"").length>o},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(_.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,r,o){var a=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(o&&o>0?"(字数"+o+"字之内)":""),uploadUrl:Y+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||o&&o>0&&w.default.trim(s[t]||"").length>o},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,r=e.layout,o=w.default.min([w.default.max([r.containerWidth/2,660]),1e3]),a={width:o+"px"},i={};void 0!==n.left?(a.left=n.left-o,i.left=n.left):(a.right=-o,i.right=0),C(".animate-dialog").css(a),C(".animate-dialog").animate(i)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,o=t.close,a=(t.detailFloatStyle,t.data),i=void 0===a?{}:a,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,h=t.loading,y=t.itemLoading,g=t.options,v=t.project,x=t.fileLoading,_=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue, -t.setLabels),ne=t.addLabels,re=t.resetState,oe=t.wfCollection,ae=t.wfLoading,ie=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,me=t.delComments,he=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,be=t.historyIndexLoading,ve=t.indexGitCommits,we=t.sortGitCommits,Ee=t.gitCommitsCollection,ke=t.gitCommitsIndexLoading,xe=t.indexWorklog,_e=t.worklogSort,Ce=t.sortWorklog,Se=t.worklogCollection,Te=t.worklogIndexLoading,Pe=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,Me=t.delWorklog,je=t.createLink,qe=t.delLink,Fe=t.linkLoading,Ne=t.doAction,Ie=t.user,Le=this.state,Ae=(Le.inlinePreviewShow,Le.previewShow),De=Le.photoIndex,Be=Le.newAssignee,He=Le.editAssignee,We=Le.editingItems,ze=Le.newItemValues,Ve=Le.delFileShow,Ge=Le.selectedFile,Ue=Le.action_id,Ke=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ye={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=w.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];w.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=w.default.find(g.types,{id:i.type}),Qe=$e&&$e.schema?$e.schema:[],Je=w.default.findIndex(f,{id:i.id}),et=i.priority?w.default.findIndex(g.priorities,{id:i.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&w.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=i.state?w.default.findIndex(g.states,{id:i.state}):-1,rt="";nt!==-1&&(rt="state-"+g.states[nt].category+"-label");var ot=!1,at=w.default.findIndex(Qe,{key:"descriptions"});at!==-1&&(ot=Qe[at].required&&!0);var it={};i.epic&&(it=w.default.find(g.epics,{id:i.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(i.comments_num>99?"99+":i.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(i.worklogs_num>99?"99+":i.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(i.gitcommits_num>99?"99+":i.gitcommits_num||0)+")")),ct=w.default.min([w.default.max([r.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:o,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:i.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(i.id,!i.watching)}},i.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ye},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:j,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(i.wfactions&&i.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},w.default.map(i.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},w.default.map(i.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},i.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},i.watchers&&i.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!i.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&!i.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{divider:!0}),!i.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!i.hasSubtasks&&!i.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(w.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&i.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&i.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},i.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(i.parent.id)}},i.parent.no+"-"+(i.parent.title||"")),i.parent&&" / ",i.no+"-"+(i.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:rt},g.states[nt].name):"-",ae?c.default.createElement("img",{src:j,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.resolutions||[],{id:i.resolution})?w.default.find(g.resolutions,{id:i.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:He?7:3},He?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(b.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||i.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},i.assignee&&i.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.assignee&&i.assignee.name||"-")),(!i.assignee||i.assignee.id!==Ie.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!He&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!He&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.reporter&&i.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(i.descriptions,"descriptions","描述",ot)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},i.updated_at?S.unix(i.updated_at).format("YYYY/MM/DD HH:mm"):i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-"))),i.labels&&i.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+v.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),i.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.versions,{id:i.resolve_version})?w.default.find(g.versions,{id:i.resolve_version}).name:"-"))),i.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+v.key+"/issue?epic="+i.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:it.bgColor,backgroundColor:it.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:it.name||"-"},it.name||"-"))))),i.sprints&&i.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.sprints,function(e){return w.default.find(g.sprints,{no:e}).name}).join(", ")))),(i.expect_start_time||i.expect_complete_time)&&c.default.createElement(d.FormGroup,null,i.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),i.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_start_time).format("YYYY/MM/DD"))),i.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),i.expect_complete_time&&c.default.createElement(d.Col,{sm:i.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_complete_time).format("YYYY/MM/DD")))),w.default.isNumber(i.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},We.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:ze.progress||0,onChange:function(t){ze.progress=t.target.value,e.setState({newItemValues:ze})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",ze.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(i.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){We.progress=!0,ze.progress=i.progress||0,e.setState({editingItems:We,newItemValues:ze})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(i.progress||"0")+"%"))))),i.subtasks&&i.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},i.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&i.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},w.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:t.state}).category+"-label"},w.default.find(g.states,{id:t.state}).name):"-"))}))))),i.links&&i.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},i.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&i.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.links,function(t,n){var r={},o="",a="";if(t.src.id==i.id)r=t.dest,o=t.relation,a=t.dest.id;else if(t.dest.id==i.id){r=t.src,o=t.relation;var l=w.default.findIndex(g.relations||[],{out:o});if(l!==-1)o=g.relations[l].in||"";else{var s=w.default.findIndex(g.relations||[],{"in":o});s!==-1&&(o=g.relations[s].out||"")}a=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,o,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==r.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(a)}},r.no," - ",r.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},w.default.find(g.states||[],{id:r.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:r.state}).category+"-label"},w.default.find(g.states,{id:r.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:r.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),w.default.map(Qe,function(t,n){if(Ke.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&w.default.isEmpty(i[t.key]))return}else if(w.default.isEmpty(i[t.key])&&!w.default.isNumber(i[t.key]))return;var r="";if("SingleUser"===t.type)r=i[t.key]&&i[t.key].name||"-";else if("MultiUser"===t.type)r=w.default.map(i[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var o=t.optionValues||[];r=w.default.find(o,{id:i[t.key]})?w.default.find(o,{id:i[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=w.default.isArray(i[t.key])?i[t.key]:i[t.key].split(","),o=[];w.default.map(n,function(t,n){w.default.find(e,{id:t})&&o.push(w.default.find(e,{id:t}).name)}),r=o.join(", ")||"-"}();else if("DatePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var a={showFiletypeIcon:!0,postUrl:Y+"/project/"+v.key+"/file?issue_id="+i.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){E.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});r=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(p,function(n,r){return c.default.createElement("tr",{key:r},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,k.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:Y+"/project/"+v.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,w.default.map(u,function(n,r){return c.default.createElement(d.Col,{sm:6,key:r},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,r,t.key)},c.default.createElement("img",{src:Y+"/project/"+v.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(m.default,{config:a,eventHandlers:s,djsConfig:l})),Ae[t.key]&&e.createLightbox(t.key,u,De))}else r="TextArea"===t.type?e.getTextAreaItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):i[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},r)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:i.id,currentTime:g.current_time||0,currentUser:Ie,collection:ge,indexHistory:he,sortHistory:ye,indexLoading:be})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(P,{i18n:n,currentTime:g.current_time||0,currentUser:Ie,project:v,permissions:g.permissions||[],issue_id:i.id,collection:se,indexComments:ie,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:me,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(M,{i18n:n,currentTime:g.current_time||0,currentUser:Ie,permissions:g.permissions||[],issue:i,original_estimate:i.original_estimate,options:g.timetrack||{},collection:Se,indexWorklog:xe,sort:_e,sortWorklog:Ce,indexLoading:Te,loading:Pe,addWorklog:Oe,editWorklog:Re,delWorklog:Me})),i.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:i.id,currentTime:g.current_time||0,currentUser:Ie,collection:Ee,indexGitCommits:ve,sortGitCommits:we,indexLoading:ke})))),Ve&&c.default.createElement(F,{show:!0,close:this.delFileModalClose,del:_,data:Ge,loading:x,i18n:n}),this.state.editModalShow&&c.default.createElement(T,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:h,project:v,data:i,isSubtask:i.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(T,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:h,project:v,data:i,action_id:Ue,doAction:Ne,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(V,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:i,action_id:Ue,doAction:Ne}),this.state.createSubtaskModalShow&&c.default.createElement(T,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:h,project:v,parent:i,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(q,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:i.state,collection:oe}),this.state.linkIssueModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:Fe,createLink:je,issue:i,types:g.types,project:v,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(I,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:Fe,delLink:qe,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(L,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:h,issue:i,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:v,convert:J,loading:h,issue:i,i18n:n}),this.state.moveModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:v,move:Q,loading:h,issue:i,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:i,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(H,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:i,i18n:n}),this.state.shareModalShow&&c.default.createElement(W,{show:!0,project:v,close:function(){e.setState({shareModalShow:!1})},issue:i}),this.state.resetModalShow&&c.default.createElement(z,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:re,issue:i,i18n:n}),this.state.delNotifyShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:i,del:X,detailClose:o,i18n:n}),this.state.copyModalShow&&c.default.createElement(U,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:h,copy:$,data:i,i18n:n}),this.state.watchersModalShow&&c.default.createElement(K,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:i.no,watchers:i.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220: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=function(){function e(e,t){for(var n=0;n0&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(i.request({url:"/project/"+o.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(a,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.loading,o=t.options.relations,a=void 0===o?[]:o,i=[];return y.default.forEach(a,function(e){e.out==e.in?i.push({value:e.out,label:e.out}):(i.push({value:e.out,label:e.out}),i.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:r,options:i,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:r,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:b,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:r||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},221: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=function(){function e(e,t){for(var n=0;n0?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222: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=function(){function e(e,t){for(var n=0;n'+o+'
    '),imgFileUrls.push(r)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var r=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){r.state.inlinePreviewShow[e]=!1,r.setState({inlinePreviewShow:r.state.inlinePreviewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var o=_lodash2.default.find(e,{nameAndEmail:n});return o&&t.state.atWho.push(o.id),"@"+o.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.currentTime,o=t.permissions,a=t.currentUser,i=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,m=t.users,h=t.project,y=t.issue_id,g=this.state,b=g.inlinePreviewShow,v=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){i(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),o.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var i=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===a.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&a.id===t.creator.id&&o.indexOf("delete_self_comments")!==-1||o.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&a.id===t.creator.id&&o.indexOf("edit_self_comments")!==-1||o.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),o.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:i,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),b[t.id]&&e.createLightbox(t.id,c,v),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,i){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===a.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,r))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&a.id===n.creator.id&&o.indexOf("delete_self_comments")!==-1||o.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&a.id===n.creator.id&&o.indexOf("edit_self_comments")!==-1||o.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),o.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),b[n.id]&&e.createLightbox(n.id,c,v))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:m,project:h,permissions:o,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224: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=function(){function e(e,t){for(var n=0;n${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var o=p.default.find(e,{nameAndEmail:n});return o&&t.state.atWho.push(o.id),"@"+o.name}},data:e}),m(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=m(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.data,o=t.loading,a="";return a=r.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},a)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:o,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&n[this.state.ecode]),u.default.createElement("img",{src:h,className:o?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||o,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:o,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227: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=function(){function e(e,t){for(var n=0;n'+(t.author&&t.author.id===o.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.committed_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228: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=function(){function e(e,t){for(var n=0;n'+(t.operator&&t.operator.id===o.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.operated_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229: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=function(){function e(e,t){for(var n=0;n=0){var c=f.default.floor(u/a);c>0&&s.push(c+"w")}if(u%=a,u>=0){var d=f.default.floor(u/i);d>0&&s.push(d+"d")}if(u%=i,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.permissions,o=t.currentTime,a=t.currentUser,i=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,v=t.indexLoading,w=t.loading,E=t.addWorklog,k=t.editWorklog,x=t.delWorklog,_=t.original_estimate,C=void 0===_?"":_,S=void 0;C&&(S=this.t2m(C)),"desc"===s&&p.reverse();var T=0;f.default.map(p,function(t){if(T=f.default.add(T,e.t2m(t.spend)),1==t.adjust_type&&t.spend&&void 0!==S){var n=e.t2m(t.spend);S=S-n>0?S-n:0}else if(3==t.adjust_type&&t.leave_estimate)S=e.t2m(t.leave_estimate);else if(4==t.adjust_type&&t.cut&&void 0!==S){var r=e.t2m(t.cut);S=S-r>0?S-r:0}return f.default.extend(t,{leave_estimate_m:S}),t});var P=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:v&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:w,onClick:function(){l(i.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:w,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:v&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},T>0?this.m2t(T):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===P.leave_estimate_m?"-":this.m2t(P.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},v&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:h,className:"loading"})),p.length<=0&&!v?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var i=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===a.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.recorded_at,o))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&a.id===t.recorder.id&&r.indexOf("delete_self_worklog")!==-1||r.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&a.id===t.recorder.id&&r.indexOf("edit_self_worklog")!==-1||r.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:i,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,add:E,edit:k,i18n:n}),this.state.delWorklogShow&&u.default.createElement(b,{show:!0,issue:i,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,del:x,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},1060: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=function(){function e(e,t){for(var n=0;n0?n[r-1].no:-1,a=ro&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},C=function(e){function t(e){o(this,n),s(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={menuShow:!1,menuPullRight:!1,menuDropup:!1},this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.getLabelStyle=this.getLabelStyle.bind(this)}a(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.issue,r=t.issueView;w((0,d.findDOMNode)(this)).on("contextmenu",function(t){e.handleContextMenu(t)}),w((0,d.findDOMNode)(this)).on("mouseleave",function(t){null!=t.toElement&&e.handleBlur(t)}),w((0,d.findDOMNode)(this)).on("mouseup",function(t){t.preventDefault(),t.stopPropagation(),2!=t.button&&(e.state.menuShow?e.handleClick(t):r(n.id))})}},{key:"componentWillUnmount",value:function(){w((0,d.findDOMNode)(this)).off("contextmenu"),w((0,d.findDOMNode)(this)).off("mouseleave"),w((0,d.findDOMNode)(this)).off("mouseup")}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.openedIssue,o=n.issue;return!e.openedIssue.id||[e.openedIssue.parent_id,e.openedIssue.id,r.parent_id,r.id].indexOf(o.id)!==-1}},{key:"handleBlur",value:function(e){var t=this;setTimeout(function(){t.setState({menuShow:!1})},200)}},{key:"handleClick",value:function(e){var t=this;setTimeout(function(){t.setState({menuShow:!1})},200)}},{key:"handleContextMenu",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.closeDetail(),this.setState({menuShow:!0,menuPullRight:document.body.scrollWidth-(""+e.pageX)<150,menuDropup:document.body.scrollHeight-(""+e.pageY)<160});var t=(0,d.findDOMNode)(this.refs.menu);t&&(t.style.left=e.pageX+"px",t.style.top=e.pageY+"px")}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=m.default.find(n,{name:e}),o={marginTop:"5px",maxWidth:"100%","float":"unset"};return r&&r.bgColor&&(o=i({backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"},o)),o}},{key:"render",value:function(){var e=this,n=this.props,r=n.index,o=n.issue,a=n.pkey,l=n.draggedIssue,s=n.issueView,u=n.openedIssue,d=n.isDragging,p=n.connectDragSource,f=n.connectDropTarget,h=n.getDraggableActions,g=n.cleanDraggableActions,w=n.issueRank,x=n.setRank,_=n.rankLoading,C=n.closeDetail,S=n.subtasks,T=void 0===S?[]:S,P=n.displayFields,O=void 0===P?[]:P,R=n.epicShow,M=n.inSprint,j=n.inHisSprint,q=n.colNo,F=n.toTop,N=n.toBottom,I=n.removeFromSprint,L=n.moveCard,A=n.options;if(T.length>0)return f(c.default.createElement("div",{style:{opacity:D}},o.mock?c.default.createElement("span",{style:{marginLeft:"5px"}},o.no," - ",o.title):c.default.createElement(t,{openedIssue:u,index:r,issue:o,pkey:a,displayFields:O,epicShow:R,inSprint:M,inHisSprint:j,colNo:q,options:A,closeDetail:C,draggedIssue:l,issueView:s,getDraggableActions:h,cleanDraggableActions:g,issueRank:w,setRank:x,rankLoading:_,toTop:F,toBottom:N,removeFromSprint:I,moveCard:L}),c.default.createElement(y.default,{isSubtaskCol:!0,displayFields:O,epicShow:R,inSprint:M,inHisSprint:j,colNo:q,openedIssue:u,draggedIssue:l,issueView:s,getDraggableActions:h,cleanDraggableActions:g,cards:T,setRank:x,rankLoading:_,pkey:a,closeDetail:C,removeFromSprint:I,options:A})));var D=d?0:1,B={borderLeft:"5px solid "+(m.default.findIndex(A.priorities,{id:o.priority})!==-1?m.default.find(A.priorities,{id:o.priority}).color:"")},H="";o.id==u.id&&(H="#e6f7ff");var W="";o.parent&&o.parent.id&&(W="10px");var z={};o.epic&&(z=m.default.find(A.epics,{id:o.epic}));var V={};return o.resolve_version&&(V=m.default.find(A.versions,{id:o.resolve_version})||{}),p(f(c.default.createElement("div",{className:"board-issue",style:i({},B,{opacity:D,backgroundColor:H,marginLeft:W})},c.default.createElement("div",{className:"board-issue-content"},c.default.createElement("div",{style:{"float":"right"}},c.default.createElement("img",{className:"board-avatar",src:o.assignee&&o.assignee.avatar?k+"/getavatar?fid="+o.assignee.avatar:E})),c.default.createElement("div",null,c.default.createElement("span",{className:"type-abb",title:m.default.findIndex(A.types,{id:o.type})!==-1?m.default.find(A.types,{id:o.type}).name:""},m.default.findIndex(A.types,{id:o.type})!==-1?m.default.find(A.types,{id:o.type}).abb:"-"),c.default.createElement("a",{href:"#",style:"Closed"==o.state?{textDecoration:"line-through"}:{},onClick:function(e){e.preventDefault()}},a," - ",o.no)),c.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},o.title||""),O.length>0&&c.default.createElement("div",{style:{marginTop:"5px"}},m.default.map(O,function(t){if(!m.default.isEmpty(o[t])||m.default.isNumber(o[t])){if("labels"==t)return c.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",fontSize:"12px"}},c.default.createElement("span",{style:{marginRight:"3px",marginTop:"7px","float":"left"}},c.default.createElement("b",null,"标签"),":"),m.default.map(o[t],function(t){return c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t)}));var n=function(){var e=m.default.find(A.fields||[],{key:t});if(!e)return{v:void 0};var n="";return"SingleUser"===e.type?n=o[t].name:"MultiUser"===e.type?n=m.default.map(o[t],function(e){return e.name}).join(","):["Select","RadioGroup","SingleVersion"].indexOf(e.type)!==-1?n=m.default.findIndex(e.optionValues||[],{id:o[t]})===-1?"-":m.default.find(e.optionValues,{ -id:o[t]}).name:["MultiSelect","CheckboxGroup","MultiVersion"].indexOf(e.type)!==-1?!function(){var r=m.default.isArray(o[t])?o[t]:o[t].split(","),a=[];m.default.forEach(r,function(t){var n=m.default.findIndex(e.optionValues||[],{id:t})!==-1?m.default.find(e.optionValues,{id:t}).name:"";n&&a.push(n)}),n=a.length>0?m.default.uniq(a).join(","):"-"}():n="DatePicker"===e.type?v.unix(o[t]).format("YYYY/MM/DD"):"DateTimePicker"===e.type?v.unix(o[t]).format("YYYY/MM/DD HH:mm"):o[t]+("progress"==e.key?"%":""),{v:c.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",fontSize:"12px"}},c.default.createElement("span",{style:{marginRight:"3px"}},c.default.createElement("b",null,e.name),":"),c.default.createElement("span",null,n))}}();return"object"==typeof n?n.v:void 0}})),R&&!m.default.isEmpty(z)&&c.default.createElement("div",{className:"epic-title",style:{borderColor:z.bgColor,backgroundColor:z.bgColor,maxWidth:"100%",marginRight:"5px"},title:z.name||"-"},z.name||"-"),R&&!m.default.isEmpty(V)&&c.default.createElement("div",{className:"epic-title",style:{borderColor:"#707070",color:"#707070",backgroundColor:"#fff",maxWidth:"100%"},title:V.name||"-"},V.name||"-")),this.state.menuShow&&c.default.createElement(b.default,{ref:"menu",pullRight:this.state.menuPullRight,dropup:this.state.menuDropup,issueId:o.id,issueNo:o.no,hasRemove:M&&A.permissions&&A.permissions.indexOf("manage_project")!==-1,hasMove:!j&&A.permissions&&A.permissions.indexOf("manage_project")!==-1,issueView:s,toTop:F,toBottom:N,removeFromSprint:I}))))}}],[{key:"propTypes",value:{connectDragSource:u.PropTypes.func.isRequired,connectDropTarget:u.PropTypes.func.isRequired,getDraggableActions:u.PropTypes.func.isRequired,cleanDraggableActions:u.PropTypes.func.isRequired,issueRank:u.PropTypes.func.isRequired,setRank:u.PropTypes.func.isRequired,rankLoading:u.PropTypes.bool.isRequired,closeDetail:u.PropTypes.func.isRequired,draggedIssue:u.PropTypes.object.isRequired,issueView:u.PropTypes.func.isRequired,issue:u.PropTypes.object.isRequired,openedIssue:u.PropTypes.object.isRequired,isDragging:u.PropTypes.bool.isRequired,index:u.PropTypes.number.isRequired,pkey:u.PropTypes.string.isRequired,displayFields:u.PropTypes.array,epicShow:u.PropTypes.bool,inSprint:u.PropTypes.bool,inHisSprint:u.PropTypes.bool,subtasks:u.PropTypes.array,colNo:u.PropTypes.number.isRequired,options:u.PropTypes.object.isRequired,toTop:u.PropTypes.func,toBottom:u.PropTypes.func,removeFromSprint:u.PropTypes.func,moveCard:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(function(e){return e.issue.parent&&e.issue.parent.id?e.issue.parent.id+"-"+e.colNo:e.colNo+""},x,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(function(e){return e.inHisSprint||!e.options.permissions||e.options.permissions.indexOf("manage_project")===-1?[]:e.issue.parent&&e.issue.parent.id?[e.issue.parent.id+"-"+e.colNo]:[e.colNo+""]},_,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(u.Component);t.default=C,e.exports=t.default}).call(this)}finally{}},1874: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=function(){function e(e,t){for(var n=0;n0&&"还有 "+(r-o.length)+" 个问题未完成,","确认要置完成此Sprint? ",u.default.createElement("br",null)),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&n[this.state.ecode]),u.default.createElement("img",{src:m,className:a?"loading":"hide"}),u.default.createElement(c.Checkbox,{disabled:a,checked:this.state.isSendMsg,onClick:function(){e.setState({isSendMsg:!e.state.isSendMsg})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"通知项目成员"),u.default.createElement(c.Button,{disabled:a,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:a,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,sprintNo:s.PropTypes.number.isRequired,total:s.PropTypes.number.isRequired,completedIssues:s.PropTypes.func.isRequired,complete:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1875:function(e,t,n){try{(function(){"use strict";function r(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 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,m.bindActionCreators)(E,e),issueActions:(0,m.bindActionCreators)(x,e),wfActions:(0,m.bindActionCreators)(C,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&this.goto(v.default.head(r).id,"issue")}}},{key:"closeDetailBar",value:function(){this.refs.list&&this.refs.list.closeDetail()}},{key:"render",value:function(){var e=this;if(this.props.project.options){v.default.assign(this.props.issue.options,this.props.project.options),v.default.assign(this.props.issue.options,{epics:this.props.kanban.epics});var t=v.default.find(this.props.kanban.sprints,{status:"active"});if(t){this.props.issue.options.sprints=this.props.issue.options.sprints||[];var n=v.default.findIndex(this.props.issue.options.sprints,{no:t.no});n===-1?this.props.issue.options.sprints.unshift({no:t.no,name:t.name}):this.props.issue.options.sprints[n]={no:t.no,name:t.name}}}var r={};return this.props.issue.options.types&&this.kanban_id&&this.props.kanban.list.length>0&&(r=v.default.find(this.props.kanban.list,{id:this.kanban_id})||{}),p.default.createElement("div",{onMouseUp:this.closeDetailBar.bind(this),style:{overflowY:"hidden",height:"100%",margin:"0px -8px"}},p.default.createElement(T,{ref:"header",changeModel:this.changeModel.bind(this),mode:this.state.mode,curKanban:r,kanbans:this.props.kanban.list,completedSprintNum:this.props.kanban.completedSprintNum,selectedSprint:this.props.kanban.selectedSprint,sprints:this.props.kanban.sprints,versions:this.props.kanban.versions,epics:this.props.kanban.epics,epicLoading:this.props.kanban.epicLoading,indexEpicLoading:this.props.kanban.indexEpicLoading,loading:this.props.kanban.loading||this.props.issue.optionsLoading,getSprintLog:this.getSprintLog.bind(this),sprintLog:this.props.kanban.sprintLog,sprintLogLoading:this.props.kanban.sprintLogLoading,"goto":this.goto,selectedFilter:this.state.filter,selectFilter:function(t){e.setState({filter:t})},index:this.index.bind(this),project:this.props.project.item,createKanban:this.createKanban.bind(this),getSprint:this.getSprint.bind(this),createSprint:this.createSprint.bind(this),createEpic:this.createEpic.bind(this),setEpicSort:this.setEpicSort.bind(this),create:this.create.bind(this),addLabels:this.props.issueActions.addLabels,options:this.props.issue.options,i18n:this.props.i18n}),("issue"==this.state.mode||"backlog"==this.state.mode||"history"==this.state.mode)&&p.default.createElement(P,s({ref:"list",curKanban:r,selectedSprint:this.props.kanban.selectedSprint,sprints:this.props.kanban.sprints,sprintLoading:this.props.kanban.sprintLoading,selectedFilter:this.state.filter,draggedIssue:this.props.kanban.draggedIssue,draggableActions:this.props.kanban.wfactions,getDraggableActions:this.getDraggableActions.bind(this),cleanDraggableActions:this.props.actions.cleanDraggableActions,index:this.index.bind(this),show:this.show.bind(this),edit:this.edit.bind(this),create:this.create.bind(this),setAssignee:this.setAssignee.bind(this),setItemValue:this.setItemValue.bind(this),setLabels:this.setLabels.bind(this),addLabels:this.props.issueActions.addLabels,delFile:this.delFile.bind(this),addFile:this.props.issueActions.addFile,record:this.record.bind(this),forward:this.forward.bind(this),cleanRecord:this.cleanRecord.bind(this),project:this.props.project.item,wfCollection:this.props.workflow.itemSteps||[],wfLoading:this.props.workflow.itemLoading,viewWorkflow:this.viewWorkflow.bind(this),indexComments:this.indexComments.bind(this),sortComments:this.props.issueActions.sortComments,addComments:this.addComments.bind(this),editComments:this.editComments.bind(this),delComments:this.delComments.bind(this),indexWorklog:this.indexWorklog.bind(this),sortWorklog:this.props.issueActions.sortWorklog,addWorklog:this.addWorklog.bind(this),editWorklog:this.editWorklog.bind(this),delWorklog:this.delWorklog.bind(this),indexHistory:this.indexHistory.bind(this),sortHistory:this.props.issueActions.sortHistory,indexGitCommits:this.indexGitCommits.bind(this),sortGitCommits:this.props.issueActions.sortGitCommits,createLink:this.createLink.bind(this),delLink:this.delLink.bind(this),doAction:this.doAction.bind(this),watch:this.watch.bind(this),copy:this.copy.bind(this),move:this.move.bind(this),convert:this.convert.bind(this),resetState:this.resetState.bind(this),del:this.del.bind(this),setRank:this.setRank.bind(this),release:this.release.bind(this),moveSprintIssue:this.moveSprintIssue.bind(this),updateSprint:this.updateSprint.bind(this),publishSprint:this.publishSprint.bind(this),completeSprint:this.completeSprint.bind(this),deleteSprint:this.deleteSprint.bind(this),user:this.props.session.user,i18n:this.props.i18n,layout:this.props.layout,mode:this.state.mode},this.props.issue)),"config"==this.state.mode&&p.default.createElement(R,{config:r,loading:this.props.kanban.configLoading,edit:this.editKanban.bind(this),del:this.delKanban.bind(this),options:this.props.issue.options,i18n:this.props.i18n}),"epic"==this.state.mode&&p.default.createElement(O,{indexLoading:this.props.kanban.indexEpicLoading,loading:this.props.kanban.epicLoading,collection:this.props.kanban.epics,stateOptions:this.props.kanban.epicStates,selectedItem:this.props.kanban.selectedEpicItem,gotoBacklog:this.gotoBacklog.bind(this),gotoIssueList:this.gotoIssueList.bind(this),select:this.props.actions.selectEpic,index:this.indexEpic.bind(this),create:this.createEpic.bind(this),update:this.editEpic.bind(this),del:this.delEpic.bind(this),options:this.props.issue.options,i18n:this.props.i18n}))}}],[{key:"contextTypes",value:{router:d.PropTypes.object.isRequired},enumerable:!0},{key:"propTypes",value:{i18n:d.PropTypes.object.isRequired,session:d.PropTypes.object.isRequired,layout:d.PropTypes.object.isRequired,actions:d.PropTypes.object.isRequired,issueActions:d.PropTypes.object.isRequired,wfActions:d.PropTypes.object.isRequired,params:d.PropTypes.object.isRequired, -kanban:d.PropTypes.object.isRequired,project:d.PropTypes.object.isRequired,issue:d.PropTypes.object.isRequired,workflow:d.PropTypes.object.isRequired},enumerable:!0}]);var n=t;return t=(0,f.connect)(function(e){var t=e.i18n,n=e.session,r=e.layout,o=e.kanban,a=e.project,i=e.issue,l=e.workflow;return{i18n:t,session:n,layout:r,kanban:o,project:a,issue:i,workflow:l}},l)(t)||t,t=(0,h.DragDropContext)(g.default)(t)||t}(d.Component);t.default=M,e.exports=t.default}).call(this)}finally{}},1876: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=function(){function e(e,t){for(var n=0;n")}})))))):"scrum"==i.type&&"history"==r&&(X=u.default.createElement(c.Popover,{id:"popover-trigger-click",style:{maxWidth:"500px",padding:"15px 0px",lineHeight:"25px"}},u.default.createElement(c.Grid,null,u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"Sprint No"),u.default.createElement(c.Col,{sm:9},C.no||"")),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"名称"),u.default.createElement(c.Col,{sm:9},C.name||"")),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"期间"),u.default.createElement(c.Col,{sm:9},C.start_time&&k.unix(C.start_time).format("YYYY/MM/DD"),u.default.createElement("span",{style:{margin:"0 4px"}},"~"),C.complete_time&&k.unix(C.complete_time).format("YYYY/MM/DD"))),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"实际完成时间"),u.default.createElement(c.Col,{sm:9},C.real_complete_time&&k.unix(C.real_complete_time).format("YYYY/MM/DD HH:mm"))),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"描述"),u.default.createElement(c.Col,{sm:9,style:{overflowY:"scroll",maxHeight:"450px"},dangerouslySetInnerHTML:{__html:m.default.escape(C.description||"-").replace(/(\r\n)|(\n)/g,"
    ")}}))))),u.default.createElement("div",{className:"kanban-header"},u.default.createElement("div",{style:{height:"0px",display:this.state.hideHeader?"block":"none",textAlign:"right"}},u.default.createElement("span",{title:"展示看板头"},u.default.createElement(c.Button,{onClick:this.showHeader.bind(this),style:{marginTop:"-37px"}},u.default.createElement("i",{className:"fa fa-angle-double-down","aria-hidden":"true"})))),u.default.createElement("div",{id:"main-header",style:{height:"49px",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{style:{display:"inline-block",fontSize:"19px",marginTop:"5px"}},F&&u.default.createElement("img",{src:x,className:"loading"}),!F&&!m.default.isEmpty(i)&&i.name||"",!F&&m.default.isEmpty(i)&&s.length>0&&u.default.createElement("span",{style:{fontSize:"14px"}},"该看板不存在,请重试或选择其它看板。"),!F&&m.default.isEmpty(i)&&s.length<=0&&u.default.createElement("span",{style:{fontSize:"14px"}},"该项目暂未定义看板,",G.permissions&&G.permissions.indexOf("manage_project")!==-1?u.default.createElement("span",null,"请点击 ",u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({createKanbanModalShow:!0})}},"创建看板"),"。"):"请联系项目管理员创建。")),u.default.createElement("div",{style:{"float":"right",display:"inline-block"}},G.permissions&&G.permissions.indexOf("create_issue")!==-1&&!m.default.isEmpty(i)&&("kanban"==i.type&&"issue"===r||"backlog"===r)&&u.default.createElement(c.Button,{style:{marginRight:"10px"},bsStyle:"primary",onClick:function(){e.setState({createIssueModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 创建问题"),!m.default.isEmpty(i)&&u.default.createElement(c.ButtonGroup,{style:{marginRight:"10px"}},"kanban"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"issue"==r&&"#eee"},onClick:function(){e.changeModel("issue")}},"看板"),"scrum"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"epic"==r&&"#eee"},onClick:function(){e.changeModel("epic")}},"Epic"),"scrum"==i.type&&E>0&&u.default.createElement(c.Button,{style:{backgroundColor:"history"==r&&"#eee"},onClick:function(){e.changeModel("history")}},"Sprint 历史"),"scrum"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"backlog"==r&&"#eee"},onClick:function(){e.changeModel("backlog")}},"Backlog"),"scrum"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"issue"==r&&"#eee"},onClick:function(){e.changeModel("issue")}},"活动Sprint"),u.default.createElement(c.Button,{style:{backgroundColor:"config"==r&&"#eee"},onClick:function(){e.changeModel("config")}},"配置")),s.length>0&&u.default.createElement(c.DropdownButton,{pullRight:!0,title:"列表",onSelect:this.changeKanban.bind(this)},m.default.map(s,function(e,t){return u.default.createElement(c.MenuItem,{key:t,eventKey:e.id},u.default.createElement("div",{style:{display:"inline-block",width:"20px",textAlign:"left"}},i.id===e.id&&u.default.createElement("i",{className:"fa fa-check"})),u.default.createElement("span",null,e.name))}),G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement(c.MenuItem,{divider:!0}),G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"create"},s.length>0&&u.default.createElement("div",{style:{display:"inline-block",width:"20px"}}),u.default.createElement("span",null,"创建看板"))))),"issue"===r&&!F&&!m.default.isEmpty(i)&&u.default.createElement("div",{style:{height:"45px",borderBottom:"2px solid #f5f5f5",display:this.state.hideHeader?"none":"block"}},"scrum"==i.type&&!m.default.isEmpty($)&&u.default.createElement(c.OverlayTrigger,{trigger:"click",rootClose:!0,placement:"bottom",overlay:Z},u.default.createElement("div",{className:"popover-active-sprint"},u.default.createElement("div",{className:"active-sprint-name",title:$.name||""},$.name||""," ",u.default.createElement("i",{className:"fa fa-caret-down","aria-hidden":"true"})))),u.default.createElement("span",{style:{"float":"left",marginTop:"7px",marginRight:"5px"}},"过滤器:"),u.default.createElement(c.Nav,{bsStyle:"pills",style:{"float":"left",lineHeight:"1.0"},activeKey:o,onSelect:this.handleSelect.bind(this)},u.default.createElement(c.NavItem,{eventKey:"all",href:"#"},"全部"),m.default.map(i.filters||[],function(e,t){return u.default.createElement(c.NavItem,{key:t,eventKey:t,href:"#"},e.name)})),u.default.createElement("span",{style:{"float":"right"},title:"隐藏看板头"},u.default.createElement(c.Button,{onClick:this.hideHeader.bind(this)},u.default.createElement("i",{className:"fa fa-angle-double-up","aria-hidden":"true"}))),"scrum"==i.type&&!m.default.isEmpty($)&&u.default.createElement("span",{style:{"float":"right",marginRight:"10px"},title:"燃尽图"},u.default.createElement(c.Button,{onClick:function(){e.setState({burndownModalShow:!0})}},u.default.createElement("i",{className:"fa fa-line-chart","aria-hidden":"true"})," 燃尽图")),u.default.createElement("span",{style:{"float":"right",marginRight:"10px"},title:"更多过滤"},u.default.createElement(c.Button,{onClick:function(){e.setState({moreFilterModalShow:!0})}},u.default.createElement("i",{className:"fa fa-filter","aria-hidden":"true"})," 更多过滤",m.default.isEmpty(this.state.query)?"":"..."))),"backlog"===r&&!m.default.isEmpty(i)&&u.default.createElement("div",{style:{height:"45px",borderBottom:"2px solid #f5f5f5",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{className:"exchange-icon",style:{"float":"left",marginTop:"7px"},onClick:this.changeFilterMode.bind(this),title:"切换至"+("epic"==this.state.backlogFilterMode?"版本":"Epic")},u.default.createElement("i",{className:"fa fa-retweet"})),u.default.createElement("span",{style:{"float":"left",marginTop:"7px",marginRight:"5px"}},"epic"===this.state.backlogFilterMode?"Epic":"版本","过滤:"),"epic"===this.state.backlogFilterMode?u.default.createElement("div",{style:{display:"inline-block","float":"left",width:"28%"}},u.default.createElement(p.default,{simpleValue:!0,options:U,value:"all"==o?null:o,onChange:function(t){e.handleSelectEV(t)},placeholder:"选择Epic"})):u.default.createElement("div",{style:{display:"inline-block","float":"left",width:"28%"}},u.default.createElement(p.default,{simpleValue:!0,options:K,value:"all"==o?null:o,onChange:function(t){e.handleSelectEV(t)},placeholder:"选择版本"})),u.default.createElement("span",{style:{"float":"right"},title:"隐藏看板头"},u.default.createElement(c.Button,{onClick:this.hideHeader.bind(this)},u.default.createElement("i",{className:"fa fa-angle-double-up","aria-hidden":"true"}))),G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement("div",{style:{display:"inline-block","float":"right",marginRight:"10px"}},u.default.createElement(c.Button,{bsStyle:"primary",onClick:d},u.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"})," 创建Sprint"))),"history"===r&&!m.default.isEmpty(i)&&u.default.createElement("div",{style:{height:"45px",borderBottom:"2px solid #f5f5f5",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{className:"exchange-icon",style:{"float":"left",marginTop:"7px"}},"Sprint"),u.default.createElement("div",{style:{display:"inline-block","float":"left",width:"28%"}},u.default.createElement(p.default,{simpleValue:!0,clearable:!1,options:Y,value:"all"==o?E:o,onChange:function(t){e.handleSelectSprint(t)},placeholder:"选择Sprint"})),!m.default.isEmpty(C)&&u.default.createElement(c.OverlayTrigger,{trigger:"click",rootClose:!0,placement:"bottom",overlay:X},u.default.createElement("div",{style:{"float":"left",margin:"7px 10px",cursor:"pointer"}},u.default.createElement("i",{className:"fa fa-info-circle","aria-hidden":"true"}))),u.default.createElement("span",{style:{"float":"right"},title:"隐藏看板头"},u.default.createElement(c.Button,{onClick:this.hideHeader.bind(this)},u.default.createElement("i",{className:"fa fa-angle-double-up","aria-hidden":"true"}))),u.default.createElement("span",{style:{"float":"right",marginRight:"10px"},title:"燃尽图"},u.default.createElement(c.Button,{onClick:function(){e.setState({hisBurndownModalShow:!0})}},u.default.createElement("i",{className:"fa fa-line-chart","aria-hidden":"true"})," 燃尽图"))),"epic"===r&&!m.default.isEmpty(i)&&G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement("div",{style:{height:"45px",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{style:{display:"inline-block","float":"left",marginRight:"10px"}},u.default.createElement(c.Button,{disabled:I,onClick:function(){e.setState({createEpicModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"})," 新建Epic")),!I&&u.default.createElement("div",{style:{display:"inline-block","float":"left",marginRight:"10px"}},u.default.createElement(c.Button,{onClick:function(){e.setState({sortCardsModalShow:!0})}},u.default.createElement("i",{className:"fa fa-edit","aria-hidden":"true"})," 编辑顺序"))),this.state.createKanbanModalShow&&u.default.createElement(y,{show:!0,close:this.createKanbanModalClose.bind(this),create:a,"goto":V,kanbans:s,i18n:n}),this.state.createIssueModalShow&&u.default.createElement(h,{show:!0,close:this.createIssueModalClose.bind(this),options:G,create:W,addLabels:z,loading:F,project:H,i18n:n}),this.state.createEpicModalShow&&u.default.createElement(g,{show:!0,close:this.createEpicModalClose.bind(this),create:P,collection:M,i18n:n}),this.state.sortCardsModalShow&&u.default.createElement(b,{show:!0,mode:"Epic",close:this.sortCardsModalClose.bind(this),cards:M,setSort:O,sortLoading:N,i18n:n}),this.state.burndownModalShow&&u.default.createElement(w,{show:!0,getSprintLog:L,loading:B,data:D,close:this.burndownModalClose.bind(this),no:$.no}),this.state.moreFilterModalShow&&u.default.createElement(v,{show:!0,search:this.moreSearch.bind(this),query:this.state.query,options:G,close:this.moreFilterModalClose.bind(this)}),this.state.hisBurndownModalShow&&u.default.createElement(w,{show:!0,getSprintLog:L,loading:B,data:D,close:this.hisBurndownModalClose.bind(this),no:o}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,changeModel:s.PropTypes.func.isRequired,mode:s.PropTypes.string.isRequired,selectedFilter:s.PropTypes.string.isRequired,create:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,createKanban:s.PropTypes.func.isRequired,getSprint:s.PropTypes.func.isRequired,createSprint:s.PropTypes.func.isRequired,createEpic:s.PropTypes.func.isRequired,setEpicSort:s.PropTypes.func.isRequired,project:s.PropTypes.object,curKanban:s.PropTypes.object,kanbans:s.PropTypes.array,completedSprintNum:s.PropTypes.number,selectedSprint:s.PropTypes.object,sprints:s.PropTypes.array,epics:s.PropTypes.array,versions:s.PropTypes.array,loading:s.PropTypes.bool,epicLoading:s.PropTypes.bool,indexEpicLoading:s.PropTypes.bool,getSprintLog:s.PropTypes.func,sprintLog:s.PropTypes.object,sprintLogLoading:s.PropTypes.bool,"goto":s.PropTypes.func,selectFilter:s.PropTypes.func,index:s.PropTypes.func,options:s.PropTypes.object},enumerable:!0}]),t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1879: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=function(){function e(e,t){for(var n=0;n=f.default.ceil(s/2)&&(u={left:h(".doc-container").offset().left}),d.next=14,regeneratorRuntime.awrap(o(e,u));case 14:c=d.sent,0===c&&a();case 16:case"end":return d.stop()}},null,this)}},{key:"componentDidMount",value:function(){var e=h(window).height();"none"==h("#main-header").css("display")?h(".board-container").css("height",e-28-50):h(".board-container").css("height",e-120-50),h(window).resize(function(){var e=h(window).height();"none"==h("#main-header").css("display")?h(".board-container").css("height",e-28-50):h(".board-container").css("height",e-120-50)}),h(".board-container").scroll(function(){h(".board-zone-overlay").css("top",f.default.max([h(".board-container").scrollTop(),46]))})}},{key:"operateBacklog",value:function(e){var t=e.split("-").pop();e.indexOf("view")!==-1?this.setState({viewSprintShow:!0,curSprintNo:t-0}):e.indexOf("edit")!==-1?this.setState({editSprintShow:!0,curSprintNo:t-0}):e.indexOf("publish")!==-1?this.setState({publishSprintShow:!0,curSprintNo:t-0}):e.indexOf("delete")!==-1&&this.setState({deleteSprintShow:!0,curSprintNo:t-0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,o=t.curKanban,a=t.selectedSprint,i=t.sprints,l=t.sprintLoading,s=t.mode,d=t.draggedIssue,p=t.draggableActions,m=t.getDraggableActions,h=t.cleanDraggableActions,O=t.collection,R=t.indexLoading,M=t.wfCollection,j=t.wfLoading,q=t.viewWorkflow,F=t.indexComments,N=t.sortComments,I=t.addComments,L=t.editComments,A=t.delComments,D=t.commentsCollection,B=t.commentsIndexLoading,H=t.commentsLoading,W=t.commentsItemLoading,z=t.commentsLoaded,V=t.indexWorklog,G=t.worklogSort,U=t.sortWorklog,K=t.addWorklog,Y=t.editWorklog,Z=t.delWorklog,X=t.worklogCollection,$=t.worklogIndexLoading,Q=t.worklogLoading,J=t.worklogLoaded,ee=t.indexHistory,te=t.sortHistory,ne=t.historyCollection,re=t.historyIndexLoading,oe=t.historyLoaded,ae=t.indexGitCommits,ie=t.sortGitCommits,le=t.gitCommitsCollection,se=t.gitCommitsIndexLoading,ue=t.gitCommitsLoaded,ce=t.itemData,de=t.project,pe=t.options,fe=t.loading,me=t.itemLoading,he=t.show,ye=t.detailFloatStyle,ge=t.edit,be=t.create,ve=t.setAssignee,we=t.setItemValue,Ee=t.setLabels,ke=t.addLabels,xe=t.fileLoading,_e=t.delFile,Ce=t.addFile,Se=t.record,Te=t.forward,Pe=(t.cleanRecord,t.visitedIndex),Oe=t.visitedCollection,Re=t.createLink,Me=t.delLink,je=t.linkLoading,qe=t.watch,Fe=t.copy,Ne=t.move,Ie=t.convert,Le=t.resetState,Ae=t.del,De=t.doAction,Be=t.selectedFilter,He=t.setRank,We=t.rankLoading,ze=t.release,Ve=t.updateSprint,Ge=t.publishSprint,Ue=t.completeSprint,Ke=t.deleteSprint,Ye=t.moveSprintIssue,Ze=t.user,Xe=u.default.createElement("span",null,u.default.createElement("i",{className:"fa fa-ellipsis-h"})),$e=[],Qe=[];return f.default.isEmpty(o)||("backlog"==s?!function(){$e=f.default.clone(i||[]),$e.unshift({no:0,name:"Backlog"}),Qe[0]=[],f.default.forEach(i,function(e,t){Qe[t+1]=[]});var e=[];f.default.forEach(i,function(t,n){f.default.forEach(O,function(r){(o.query&&o.query.subtask||!r.parent||!r.parent.id)&&f.default.indexOf(t.issues,r.no)!==-1&&(Qe[n+1].push(r),e.push(r.no))})}),f.default.forEach(O,function(t){(o.query&&o.query.subtask||!t.parent||!t.parent.id)&&f.default.indexOf(e,t.no)===-1&&Qe[0].push(t)})}():"history"==s?($e=[{no:0,name:"未完成"},{no:1,name:"已完成"}],Qe[0]=[],Qe[1]=[],f.default.isEmpty(a)||f.default.forEach(O,function(e){(o.query&&o.query.subtask||!e.parent||!e.parent.id)&&(f.default.indexOf(a.completed_issues||[],e.no)!==-1?Qe[1].push(e):f.default.indexOf(a.incompleted_issues||[],e.no)!==-1&&Qe[0].push(e))})):($e=o.columns||[],f.default.forEach(o.columns,function(e,t){Qe[t]=[]}),f.default.forEach(o.columns,function(e,t){f.default.forEach(O,function(n){if(o.query&&o.query.subtask||!n.parent||!n.parent.id)return f.default.indexOf(e.states,n.state)!==-1?void Qe[t].push(n):void 0})}))),u.default.createElement("div",{className:"board-container"},u.default.createElement("div",{className:"board-overlay-waiting",style:{display:!this.state.detailBarShow&&me?"block":"none"}},u.default.createElement("img",{src:y,className:"loading board-loading"})),!f.default.isEmpty(o)&&R&&u.default.createElement("div",{style:{marginTop:"20px",width:"100%",textAlign:"center"}},u.default.createElement("img",{src:y,className:"loading"})),!f.default.isEmpty(o)&&!R&&u.default.createElement("div",{className:"board-pool"},u.default.createElement("div",{className:"board-column-header-group"},u.default.createElement("ul",{className:"board-column-header"},f.default.map($e,function(t,n){return u.default.createElement("li",{key:n,className:"board-column",style:{background:"issue"==s&&"all"===Be?t.max&&Qe[n].length>t.max?"#d04437":t.min&&Qe[n].length0&&"all"==Be&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&u.default.createElement("a",{href:"#",style:{"float":"right"},onClick:function(t){t.preventDefault(),e.setState({selectVersionShow:!0})}},"发布..."),"issue"==s&&"scrum"==o.type&&n==$e.length-1&&"all"==Be&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&f.default.findIndex(i,{status:"active"})!==-1&&u.default.createElement("a",{href:"#",style:{"float":"right"},onClick:function(t){t.preventDefault(),e.setState({completeSprintShow:!0})}},"完成..."),"backlog"==s&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&0!=n&&u.default.createElement("div",{style:{"float":"right"}},u.default.createElement(c.DropdownButton,{bsStyle:"default",title:Xe,noCaret:!0,style:{padding:"2px 7px"},onSelect:e.operateBacklog.bind(e),pullRight:!0},u.default.createElement(c.MenuItem,{disabled:Qe[n].length<=0,eventKey:"view-"+t.no},"工作量查看"),u.default.createElement(c.MenuItem,{eventKey:"edit-"+t.no},"编辑"),"waiting"==t.status&&1==n&&u.default.createElement(c.MenuItem,{disabled:Qe[n].length<=0,eventKey:"publish-"+t.no},"启动"),"waiting"==t.status&&u.default.createElement(c.MenuItem,{eventKey:"delete-"+t.no},"删除"))),"backlog"==s&&"active"==t.status&&u.default.createElement("span",null," - ",u.default.createElement("b",null,"活动中")))}))),u.default.createElement("div",{className:"board-columns"},f.default.map($e,function(t,n){return u.default.createElement(v,{key:n,colNo:n,displayFields:o.display_fields||[],epicShow:"backlog"==s||"history"==s,inSprint:"issue"==s&&"scrum"==o.type,inHisSprint:"history"==s,subtaskShow:o.query&&o.query.subtask&&!0,openedIssue:e.state.detailBarShow?ce:{},draggedIssue:f.default.find(O,{id:d})||{},issueView:e.issueView.bind(e),getDraggableActions:m,cleanDraggableActions:h,setRank:He,rankLoading:We,cards:Qe[n],pkey:de.key,closeDetail:e.quickCloseDetail.bind(e),removeFromSprint:e.removeFromSprint.bind(e),options:pe})})),"issue"==s&&u.default.createElement("div",{className:"board-zone-overlay",style:{top:"46px"}},u.default.createElement("div",{className:"board-zone-overlay-table"},f.default.map($e,function(t,n){return u.default.createElement(w,{key:n,columns:$e,isEmpty:!(d&&f.default.findIndex(Qe[n],{id:d})===-1),draggedIssue:f.default.find(O,{id:d})||{},draggableActions:p,doAction:De,workflowScreenShow:e.workflowScreenShow.bind(e),options:pe,acceptStates:t.states||[]})}))),"backlog"==s&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&u.default.createElement("div",{className:"board-zone-overlay",style:{top:"46px"}},u.default.createElement("div",{className:"board-zone-overlay-table"},f.default.map($e,function(t,n){return u.default.createElement(E,{key:n,sprintNo:t.no,columns:$e,isEmpty:!(d&&f.default.findIndex(Qe[n],{id:d})===-1&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1),draggedIssue:f.default.find(O,{id:d})||{},moveSprintIssue:e.moveSprintIssue.bind(e),options:pe})})))),!f.default.isEmpty(o)&&!R&&"issue"==s&&"scrum"==o.type&&f.default.findIndex(i,{status:"active"})===-1&&O.length<=0&&u.default.createElement("div",{style:{marginTop:"20px",width:"100%",textAlign:"center"}},u.default.createElement("span",null,"暂无活动的Sprint")),this.state.detailBarShow&&u.default.createElement(g,{i18n:n,layout:r,edit:ge,create:be,del:Ae,setAssignee:ve,setItemValue:we,setLabels:Ee,addLabels:ke,close:this.closeDetail.bind(this),options:pe,data:ce,record:Se,forward:Te,visitedIndex:Pe,visitedCollection:Oe,issueCollection:"history"==s?[]:f.default.findIndex(Qe[this.state.curColNo]||[],{no:ce.no})===-1?[]:Qe[this.state.curColNo],show:he,detailFloatStyle:ye,itemLoading:me,loading:fe,fileLoading:xe,project:de,delFile:_e,addFile:Ce,wfCollection:M,wfLoading:j,viewWorkflow:q,indexComments:F,sortComments:N,commentsCollection:D,commentsIndexLoading:B,commentsLoading:H,commentsItemLoading:W,commentsLoaded:z,addComments:I,editComments:L,delComments:A,indexWorklog:V,worklogSort:G,sortWorklog:U,worklogCollection:X,worklogIndexLoading:$,worklogLoading:Q,worklogLoaded:J,addWorklog:K,editWorklog:Y,delWorklog:Z,indexHistory:ee,sortHistory:te,historyCollection:ne,historyIndexLoading:re,historyLoaded:oe,indexGitCommits:ae,sortGitCommits:ie,gitCommitsCollection:le,gitCommitsIndexLoading:se,gitCommitsLoaded:ue,linkLoading:je,createLink:Re,delLink:Me,watch:qe,copy:Fe,move:Ne,convert:Ie,resetState:Le,doAction:De,user:Ze}),this.state.workflowScreenShow&&u.default.createElement(b,{show:!0,close:this.workflowScreenModalClose.bind(this),options:pe,edit:ge,loading:fe,project:de,data:f.default.extend(f.default.find(O,{id:this.state.drop_issue_id}),{wfactions:p}),action_id:this.state.action_id,doAction:De,isFromWorkflow:!0,i18n:n}),this.state.selectVersionShow&&u.default.createElement(k,{show:!0,options:pe,close:this.selectVersionModalClose.bind(this),release:ze,releasedIssues:f.default.last(Qe)||[],i18n:n}),this.state.publishSprintShow&&u.default.createElement(x,{show:!0,close:this.publishSprintModalClose.bind(this),sprint:f.default.find(i,{no:this.state.curSprintNo}),publish:Ge,i18n:n}),this.state.deleteSprintShow&&u.default.createElement(_,{show:!0,close:this.deleteSprintModalClose.bind(this),data:f.default.find(i,{no:this.state.curSprintNo}),del:Ke,loading:l,i18n:n}),this.state.completeSprintShow&&u.default.createElement(C,{show:!0,close:this.completeSprintModalClose.bind(this),loading:l,sprintNo:f.default.find(i,{status:"active"})?f.default.find(i,{status:"active"}).no:0,total:f.default.flatten(Qe).length,complete:Ue,completedIssues:f.default.last(Qe)||[],i18n:n}),this.state.moveIssueShow&&u.default.createElement(S,{show:!0,close:this.moveIssueModalClose.bind(this),loading:l,move:Ye,values:this.state.movedData,i18n:n}),this.state.viewSprintShow&&u.default.createElement(T,{show:!0,close:this.viewSprintModalClose.bind(this),sprintNo:this.state.curSprintNo,sprints:i,collection:O}),this.state.editSprintShow&&u.default.createElement(P,{show:!0,update:Ve,close:this.editSprintModalClose.bind(this),data:f.default.find(i,{no:this.state.curSprintNo}),i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,curKanban:s.PropTypes.object.isRequired,selectedSprint:s.PropTypes.object.isRequired,sprints:s.PropTypes.array.isRequired,sprintLoading:s.PropTypes.bool.isRequired,mode:s.PropTypes.string.isRequired,draggedIssue:s.PropTypes.string.isRequired,draggableActions:s.PropTypes.array.isRequired,getDraggableActions:s.PropTypes.func.isRequired,cleanDraggableActions:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired,indexLoading:s.PropTypes.bool.isRequired,index:s.PropTypes.func.isRequired,wfCollection:s.PropTypes.array.isRequired,wfLoading:s.PropTypes.bool.isRequired,viewWorkflow:s.PropTypes.func.isRequired,indexComments:s.PropTypes.func.isRequired,sortComments:s.PropTypes.func.isRequired,addComments:s.PropTypes.func.isRequired,editComments:s.PropTypes.func.isRequired,delComments:s.PropTypes.func.isRequired,commentsCollection:s.PropTypes.array.isRequired,commentsIndexLoading:s.PropTypes.bool.isRequired,commentsLoading:s.PropTypes.bool.isRequired,commentsItemLoading:s.PropTypes.bool.isRequired,commentsLoaded:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,worklogSort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,worklogCollection:s.PropTypes.array.isRequired,worklogIndexLoading:s.PropTypes.bool.isRequired,worklogLoading:s.PropTypes.bool.isRequired,worklogLoaded:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,historyCollection:s.PropTypes.array.isRequired,historyIndexLoading:s.PropTypes.bool.isRequired,historyLoaded:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,gitCommitsCollection:s.PropTypes.array.isRequired,gitCommitsIndexLoading:s.PropTypes.bool.isRequired,gitCommitsLoaded:s.PropTypes.bool.isRequired,itemData:s.PropTypes.object.isRequired,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool.isRequired,itemLoading:s.PropTypes.bool.isRequired,show:s.PropTypes.func.isRequired,detailFloatStyle:s.PropTypes.object,del:s.PropTypes.func.isRequired,edit:s.PropTypes.func.isRequired,create:s.PropTypes.func.isRequired,copy:s.PropTypes.func.isRequired,move:s.PropTypes.func.isRequired,convert:s.PropTypes.func.isRequired,resetState:s.PropTypes.func.isRequired,setAssignee:s.PropTypes.func.isRequired,setItemValue:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,fileLoading:s.PropTypes.bool.isRequired,delFile:s.PropTypes.func.isRequired,addFile:s.PropTypes.func.isRequired,record:s.PropTypes.func.isRequired,forward:s.PropTypes.func.isRequired,cleanRecord:s.PropTypes.func.isRequired,visitedIndex:s.PropTypes.number.isRequired,visitedCollection:s.PropTypes.array.isRequired,createLink:s.PropTypes.func.isRequired,delLink:s.PropTypes.func.isRequired,linkLoading:s.PropTypes.bool.isRequired,doAction:s.PropTypes.func.isRequired,watch:s.PropTypes.func.isRequired,selectedFilter:s.PropTypes.string.isRequired,setRank:s.PropTypes.func.isRequired,rankLoading:s.PropTypes.bool.isRequired,release:s.PropTypes.func.isRequired,updateSprint:s.PropTypes.func.isRequired,publishSprint:s.PropTypes.func.isRequired,completeSprint:s.PropTypes.func.isRequired,deleteSprint:s.PropTypes.func.isRequired,moveSprintIssue:s.PropTypes.func.isRequired,user:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=O,e.exports=t.default}).call(this)}finally{}},1880: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=function(){function e(e,t){for(var n=0;n1&&(t.name=t.name+" - "+e.name),p.push(i({},e,{state:t}))}});var m=170;"none"==y("#main-header").css("display")&&(m=78);var g=y(window).height(),b=f.default.min([g-m-10-f.default.max([46-y(".board-container").scrollTop(),0]),y(".board-columns").height()])/f.default.max([p.length,1]);return c.default.createElement("div",{className:"board-zone-overlay-column",style:{pointerEvents:t?"none":"auto"}},c.default.createElement("div",{className:"board-zone-table"},c.default.createElement("div",{className:"board-zone-row"},!t&&f.default.map(p,function(e,t){return c.default.createElement(h.default,{key:t,columns:a,draggedIssue:r,doAction:s,workflowScreenShow:u,dragAction:e,height:b})}))))}}],[{key:"propTypes",value:{columns:u.PropTypes.array.isRequired,isEmpty:u.PropTypes.bool.isRequired,draggableActions:u.PropTypes.array.isRequired,doAction:u.PropTypes.func.isRequired,workflowScreenShow:u.PropTypes.func.isRequired,draggedIssue:u.PropTypes.object,options:u.PropTypes.object.isRequired,acceptStates:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1882: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;te.complete_time&&(n.start_time="开始时间要早于结束时间"),n},w=function(e){function t(e){o(this,n),s(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={ecode:0,isSendMsg:!0},this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}a(t,e),l(t,[{key:"handleSubmit",value:function(){var e,t,n,r,o,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e=this.props,t=e.values,n=e.publish,r=e.sprint,o=e.close,t.start_time&&(t.start_time=parseInt(g(t.start_time).startOf("day").format("X"))),t.complete_time&&(t.complete_time=parseInt(g(t.complete_time).endOf("day").format("X"))),t.isSendMsg=this.state.isSendMsg,i.next=10,regeneratorRuntime.awrap(n(t,r.no));case 10:a=i.sent,this.setState({ecode:a}),0===a&&(y.notify.show("启动完成。","success",2e3),o());case 13:case"end":return i.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,t=e.initializeForm,n=e.sprint;t({name:n.name||"",start_time:g(),complete_time:g().add(15,"days"),description:n.description||""})}},{key:"render",value:function(){var e=this,t=this.props,n=t.sprint,r=t.i18n.errMsg,o=t.fields,a=o.name,l=o.start_time,s=o.complete_time,u=o.description,d=t.handleSubmit,f=t.invalid,m=t.submitting;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"},"发布 - ",n.name)),c.default.createElement("form",{onSubmit:d(this.handleSubmit),onKeyUp:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,{style:{maxHeight:"580px"}},c.default.createElement(p.FormGroup,{validationState:a.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(p.FormControl,i({disabled:m,type:"text"},a,{placeholder:"名称"})),a.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},a.error)),c.default.createElement("div",null,c.default.createElement(p.FormGroup,{style:{width:"45%",display:"inline-block"},validationState:l.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"开始时间"),c.default.createElement(h.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:l.value,onChange:function(e){l.onChange(e)}}),l.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},l.error)),c.default.createElement(p.FormGroup,{style:{width:"45%",display:"inline-block","float":"right"},validationState:s.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"结束时间"),c.default.createElement(h.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:s.value,onChange:function(e){s.onChange(e)}}),s.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},s.error))),c.default.createElement(p.FormGroup,null,c.default.createElement(p.ControlLabel,null,"描述"),c.default.createElement(p.FormControl,i({disabled:m,componentClass:"textarea",style:{height:"200px"}},u,{placeholder:"描述"})))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!m&&r[this.state.ecode]),c.default.createElement("img",{src:b,className:m?"loading":"hide"}),c.default.createElement(p.Checkbox,{disabled:m,checked:this.state.isSendMsg,onClick:function(){e.setState({isSendMsg:!e.state.isSendMsg})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"通知项目成员"),c.default.createElement(p.Button,{disabled:m||f,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:m,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.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,initializeForm:u.PropTypes.func.isRequired,sprint:u.PropTypes.object.isRequired,publish:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"publish",fields:["name","start_time","complete_time","description"],validate:v})(t)||t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1883: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&&u.default.createElement("tr",null,u.default.createElement("td",null,"未分配的"),u.default.createElement("td",null,s.issue_count),u.default.createElement("td",null,s.story_points)),p.default.map(d,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("div",{style:{"float":"left"}},u.default.createElement("img",{className:"board-avatar",src:e.assignee&&e.assignee.avatar?m+"/getavatar?fid="+e.assignee.avatar:f}),u.default.createElement("span",{style:{marginLeft:"5px"}},e.assignee.name))),u.default.createElement("td",{style:{verticalAlign:"middle"}},u.default.createElement("span",null,e.issue_count)),u.default.createElement("td",{style:{verticalAlign:"middle"}},u.default.createElement("span",null,e.story_points)))}),u.default.createElement("tr",null,u.default.createElement("td",null,"合计"),u.default.createElement("td",null,i),u.default.createElement("td",null,l))))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,sprintNo:s.PropTypes.number.isRequired,sprints:s.PropTypes.array.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1886: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;t=0?(l=y.default.findIndex(i,{no:n}),i[l]={no:n,name:o.name,states:o.states?o.states.split(","):[],max:o.max||"",min:o.min||""}):(s=0,i.length>0&&(s=y.default.max(y.default.map(i,function(e){return e.no}))+1),i.push({name:o.name,no:s,states:o.states?o.states.split(","):[],max:o.max||"",min:o.min||""})),c.next=10,regeneratorRuntime.awrap(t({id:r.id,columns:i}));case 10:u=c.sent,0===u?(this.setState({ecode:0}),a(),g.notify.show("设置完成。","success",2e3)):this.setState({ecode:u});case 12:case"end":return c.stop()}},null,this)}},{key:"componentWillMount",value:function(){var e=this.props,t=e.initializeForm,n=e.config,r=e.no;if(r>=0){var o=y.default.find(n.columns,{no:r});t({name:o.name,states:(o.states||[]).join(","),max:o.max||"",min:o.min||""})}}},{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,r=n.name,o=n.states,a=n.max,l=n.min,s=e.handleSubmit,u=e.invalid,d=e.submitting,f=e.config,h=e.no,g=e.options,v=[];y.default.forEach(f.columns,function(e){e.no!==h&&(v=y.default.union(v,e.states))});var w=[];return y.default.forEach(g.states||[],function(e){y.default.indexOf(v,e.id)===-1&&w.push({label:c.default.createElement("span",{className:"state-"+e.category+"-label"},e.name),value:e.id})}),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"},h>=0?"编辑列":"添加列")),c.default.createElement("form",{onSubmit:s(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{validationState:r.touched&&r.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(p.FormControl,i({disabled:d,type:"text"},r,{placeholder:"列名"})),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,null,c.default.createElement(p.ControlLabel,null,"状态"),c.default.createElement(m.default,{multi:!0,simpleValue:!0,disabled:d,clearable:!1,options:w,value:o.value,onChange:function(e){o.onChange(e)},placeholder:"选择状态"}),0==w.length&&c.default.createElement("div",null,c.default.createElement("span",{style:{fontSize:"12px",color:"#8a6d3b"}},"所有问题状态都已被其他列使用,需从其他列移除某些问题状态或创建新的问题状态供选择。"))),c.default.createElement(p.FormGroup,{validationState:a.touched&&a.error?"error":null},c.default.createElement(p.ControlLabel,null,"最大问题数(Max)"),c.default.createElement(p.FormControl,i({disabled:d,type:"text"},a,{placeholder:"输入正整数"})),a.touched&&a.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},a.error)),c.default.createElement(p.FormGroup,{validationState:l.touched&&l.error?"error":null},c.default.createElement(p.ControlLabel,null,"最小问题数(Min)"),c.default.createElement(p.FormControl,i({disabled:d,type:"text"},l,{placeholder:"输入正整数"})),l.touched&&l.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},l.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!d&&t[this.state.ecode]),c.default.createElement("img",{src:b,className:d?"loading":"hide"}),c.default.createElement(p.Button,{disabled:d||u,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:d,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,initializeForm:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,no:u.PropTypes.number.isRequired,config:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"column",fields:["name","states","max","min"],validate:v})(t)||t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1887: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=function(){function e(e,t){for(var n=0;no&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},g=function(e){function t(){o(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.options,r=e.isAllowedEdit,o=e.isDragging,a=e.connectDragSource,i=e.connectDropTarget,l=e.editColumn,s=e.delColumn,c=o?0:1,d={"float":"right",cursor:"pointer"};return a(i(u.default.createElement("div",{style:{opacity:c},className:"config-column"},u.default.createElement("div",{style:{fontWeight:600,paddingBottom:"10px",borderBottom:"1px solid #ccc"}},t.name,t.max&&u.default.createElement("span",{className:"config-wip"},"Max-"+t.max),t.min&&u.default.createElement("span",{className:"config-wip"},"Min-"+t.min),r&&!!s&&u.default.createElement("span",{style:d,onClick:function(){s(t.no)},title:"删除",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-remove"})),r&&!!l&&u.default.createElement("span",{style:d,onClick:function(){l(t.no)},title:"编辑",className:"edit-icon"},u.default.createElement("i",{className:"fa fa-edit"}))),u.default.createElement("div",null,m.default.map(t.states,function(e,t){return u.default.createElement("div",{key:t,className:"config-column-card"},m.default.findIndex(n.states,{id:e})!==-1?u.default.createElement("span",{className:"state-"+m.default.find(n.states,{id:e}).category+"-label"},m.default.find(n.states,{id:e}).name):"")})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,column:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,editColumn:s.PropTypes.func,delColumn:s.PropTypes.func,setRank:s.PropTypes.func.isRequired,isAllowedEdit:s.PropTypes.bool.isRequired,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragSource)(function(e){return e.isAllowedEdit?p.CardTypes.KANBAN_COLUMN:""},h,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(p.CardTypes.KANBAN_COLUMN,y,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1888: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=function(){function e(e,t){for(var n=0;n0&&c.default.createElement("div",{className:"table-td-desc",style:{marginTop:"10px"}},"以下未分配状态:"),m.default.map(_,function(e,t){return c.default.createElement("div",{className:"config-column-card",key:t}," ",c.default.createElement("span",{className:"state-"+e.category+"-label"},e.name))})),contents:c.default.createElement("div",{style:i({},t,{marginLeft:"10px"}),className:"config-columns"},!u.columns||u.columns.length<=0?c.default.createElement("ul",{className:"list-unstyled clearfix",style:{lineHeight:2}},c.default.createElement("li",null,"未定义")):c.default.createElement(w,{isAllowedEdit:f,kid:u.id,editColumn:this.editColumn.bind(this),delColumn:this.delColumn.bind(this),options:o,update:l,columns:u.columns||[]}),f&&c.default.createElement(p.Button,{style:{marginLeft:"10px"},onClick:function(){e.setState({columnModalShow:!0,columnNo:-1})}},"添加"))}),c.default.createElement("div",{style:{overflowY:"auto",height:"100%",paddingBottom:"80px",margin:"0px 7px"}},c.default.createElement(d.BootstrapTable,{data:C,headerStyle:{display:"none"},bordered:!1,hover:!0,trClassName:"tr-top"},c.default.createElement(d.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),c.default.createElement(d.TableHeaderColumn,{width:"200",dataField:"title"}),c.default.createElement(d.TableHeaderColumn,{dataField:"contents"})),this.state.editModalShow&&c.default.createElement(y,{show:!0,close:this.editModalClose,update:l,data:u,i18n:r}),this.state.delNotifyShow&&c.default.createElement(g,{show:!0,close:this.delNotifyClose,del:s,loading:a,data:u,i18n:r}),this.state.globalFilterModalShow&&c.default.createElement(v,{show:!0,model:"global",close:this.globalFilterModalClose,update:l,loading:a,data:u,options:o,i18n:r}),this.state.quickFilterModalShow&&c.default.createElement(v,{show:!0,model:"filter",no:this.state.filterNo,close:this.quickFilterModalClose,update:l,loading:a,data:u,options:o,i18n:r}),this.state.displayFieldsModalShow&&c.default.createElement(k,{show:!0,close:this.displayFieldsModalClose,options:o,data:u,update:l,loading:a,i18n:r}),this.state.delFilterNotifyShow&&c.default.createElement(x,{show:!0,model:"filter",no:this.state.filterNo,close:this.delFilterNotifyClose,update:l,loading:a,config:u,i18n:r}),this.state.columnModalShow&&c.default.createElement(E,{show:!0,no:this.state.columnNo,close:this.columnModalClose,update:l,config:u,options:o,i18n:r}),this.state.delColumnNotifyShow&&c.default.createElement(x,{show:!0,model:"column",no:this.state.columnNo,close:this.delColumnNotifyClose,update:l,loading:a,config:u,i18n:r}))}}],[{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.exports=t.default}).call(this)}finally{}},1890: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;t>")),u.default.createElement(c.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(c.Modal.Footer,null,u.default.createElement(c.Button,{bsStyle:"link",style:{"float":"left"},disabled:l,onClick:function(){e.setState({cards:[]})}},"清空字段"),u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&i[this.state.ecode]),u.default.createElement("img",{src:w,className:l?"loading":"hide"}),u.default.createElement(c.Button,{disabled:l||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:l,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool,update:s.PropTypes.func.isRequired,data:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},1894: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=function(){function e(e,t){for(var n=0;n=0){var c=m.default.find(i,{no:u});if(!c)return;this.state.name=c.name;c.query;m.default.forEach(c.query,function(t,n){e.state.query[n]=t&&m.default.isArray(t)?t.join(","):t||""})}}},{key:"handleSubmit",value:function(){var e,t,n,r,o,a,i,l,s,u,c,d,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,r=e.data,o=r.id,a=r.filters,i=void 0===a?[]:a,l=e.model,s=e.no,u=m.default.clone(i),c=this.state.query,d=0,"global"!=l){y.next=18;break}return y.next=15,regeneratorRuntime.awrap(t(m.default.extend({query:c},{id:o})));case 15:d=y.sent,y.next=23;break;case 18:if("filter"!=l){y.next=23;break}return s>=0?(f=m.default.findIndex(i,{no:s}),u[f].query=c,u[f].name=this.state.name):(h=0,i.length>0&&(h=m.default.max(m.default.map(i,function(e){return e.no}))+1),u.push({query:c,name:this.state.name,no:h})),y.next=22,regeneratorRuntime.awrap(t(m.default.extend({filters:u},{id:o})));case 22:d=y.sent;case 23:0===d?(this.setState({ecode:0}),n(),p.notify.show("设置完成。","success",2e3)):this.setState({ecode:d});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,r=t.model,o=t.no,a=t.loading,i=t.options;return u.default.createElement(c.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static",bsSize:"large","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"global"==r?"全局过滤器":o===-1?"添加快速过滤器":"编辑快速过滤器")),u.default.createElement(c.Form,{horizontal:!0,onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(c.Modal.Body,{style:{maxHeight:"580px",overflow:"auto",paddingBottom:"0px"}},"filter"===r&&u.default.createElement(c.FormGroup,{style:{height:"50px",borderBottom:"1px solid #ddd"},validationState:this.state.touched.name&&this.state.errors.name&&"error"||null},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"过滤器名称"),u.default.createElement(c.Col,{sm:8},u.default.createElement(c.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(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},this.state.touched.name&&(this.state.errors.name||""))),u.default.createElement("div",{className:"cond-txt"},m.default.isEmpty(m.default.omit(this.state.query,["subtask"]))?"全部":(0,h.parseQuery)(this.state.query,i)),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:i})),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{bsStyle:"link",style:{"float":"left"},disabled:a,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:a?"loading":"hide"}),u.default.createElement(c.Button,{disabled:"filter"===r&&(!this.state.name||m.default.isEmpty(this.state.query))||a,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,model:s.PropTypes.string.isRequired,no:s.PropTypes.number,loading:s.PropTypes.bool.isRequired,update:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired,options:s.PropTypes.object,data:s.PropTypes.object},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1895: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=function(){function e(e,t){for(var n=0;no&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},h=function(e){function t(){o(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.name,r=e.condsTxt,o=e.isAllowedEdit,a=e.isDragging,i=e.connectDragSource,l=e.connectDropTarget,s=e.editFilter,c=e.delFilter,d=a?0:1,p={"float":"right",cursor:"pointer",marginLeft:"5px"};return i(l(u.default.createElement("div",{style:{opacity:d},className:"filter-dragcard dragcard"},u.default.createElement("span",{style:{fontWeight:600}},n)," -- ",u.default.createElement("span",null,r),o&&!!c&&u.default.createElement("span",{style:p,onClick:function(){c(t)},title:"删除",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-remove"})),o&&!!s&&u.default.createElement("span",{style:p,onClick:function(){s(t)},title:"编辑",className:"edit-icon"},u.default.createElement("i",{className:"fa fa-edit"})))))}}],[{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,name:s.PropTypes.string.isRequired,condsTxt:s.PropTypes.string.isRequired,isAllowedEdit:s.PropTypes.bool.isRequired,editFilter:s.PropTypes.func,delFilter:s.PropTypes.func,setRank:s.PropTypes.func.isRequired,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.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,d.DropTarget)(p.CardTypes.KANBAN_FILTER,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1896: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=function(){function e(e,t){for(var n=0;n=1){r=l.default.min([i,n[a].max])+n[a].suffix;break}}return r}function o(e){var t=e.toLowerCase(),n=t.lastIndexOf(".");if(n===-1)return"fa fa-file-o";var r={doc:"word",docx:"word",xls:"excel",xlsx:"excel",ppt:"powerpoint",pptx:"powerpoint",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",c:"code",cpp:"code",h:"code",hpp:"code",js:"code",jsx:"code",php:"code",tpl:"code",py:"code",java:"code",sh:"code",pl:"code",perl:"code",go:"code",cs:"code",rb:"code",html:"code",css:"code",asp:"code",aspx:"code",jsp:"code",xml:"code",pdf:"pdf",txt:"text",zip:"zip",rar:"zip","7z":"zip",gz:"zip",bz:"zip",avi:"movie",mpg:"movie",mov:"movie",swf:"movie",mp4:"movie",wav:"sound",aif:"sound",mp3:"sound",wma:"sound",aac:"sound"},o=t.substr(n+1);return r[o]?"fa fa-file-"+r[o]+"-o":"fa fa-file-o"}function a(e,t,n){var r=e<0?-1:1;e=Math.abs(e);var o=[],a=l.default.ceil(e);if(a>=0){var i=l.default.floor(e/t);i>0&&o.push(i+"w")}if(a=e%t,a>=0){var s=l.default.floor(a/n);s>0&&o.push(s+"d")}if(a%=n,a>=0){var u=l.default.floor(a/60);u>0&&o.push(u+"h")}return a%=60,a>0&&o.push(a+"m"),o.length<=0&&o.push("0m"),(r<0?"-":"")+o.join(" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.getAgoAt=r,t.getFileIconCss=o,t.ttFormat=a;var i=n(3),l=e(i),s=n(6)}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var a=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(o.onChange=r.bind(null,this.props.value)),l.default.createElement("input",a({},this.props,{type:"checkbox",name:t},o))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.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),r=o(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},44:function(e,t,n){!function(t,r){e.exports=r(n(1),n(121))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(2).default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_ZOOM_LEVEL=0,t.MAX_ZOOM_LEVEL=300,t.ZOOM_RATIO=1.007,t.ZOOM_BUTTON_INCREMENT_SIZE=100,t.WHEEL_MOVE_X_THRESHOLD=200,t.WHEEL_MOVE_Y_THRESHOLD=1,t.KEYS={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39}},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(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 l(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&&(g=Math.max(b.minX,Math.min(b.maxX,g)),v=Math.max(b.minY,Math.min(b.maxY,v))),this.setState({zoomLevel:r,offsetX:g,offsetY:v})}}}}},{key:"closeIfClickInner",value:function(e){e.target.className.search(/\binner\b/)>-1&&this.requestClose(e)}},{key:"detachListeners",value:function(){this.listenersAttached&&(window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),(0,m.isInIframe)()&&(window.top.removeEventListener("mouseup",this.handleMouseUp),window.top.removeEventListener("touchend",this.handleMouseUp)),this.listenersAttached=!1)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props[e+"Thumbnail"]))return null;t=this.props[e+"Thumbnail"],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:n.height,width:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),o=r.height-2*this.props.imagePadding,a=r.width-2*this.props.imagePadding;n||(o=Math.min(o,t),a=Math.min(a,e));var i=a/o,l=e/t;return i>l?{width:e*o/t,height:o}:{width:a,height:t*a/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),o=0;o=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2;var a=0;return a=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,{maxX:o,maxY:a,minX:-1*o,minY:-1*a}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i"+this.keyCounter},{name:"mainSrcThumbnail",keyEnding:"t"+this.keyCounter},{name:"nextSrc",keyEnding:"i"+(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t"+(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i"+(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t"+(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(h.ZOOM_RATIO,e)}},{key:"getLightboxRect",value:function(){return this.outerEl?this.outerEl.getBoundingClientRect():{width:(0,m.getWindowWidth)(),height:(0,m.getWindowHeight)(),top:0,right:0,bottom:0,left:0}}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if("keyup"===e.type)return void(this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus);var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=n||e.deltaX>=a?(this.requestMoveNext(e),r=o,this.scrollX=0):(this.scrollX<=-1*n||e.deltaX<=-1*a)&&(this.requestMovePrev(e),r=o,this.scrollX=0)}0!==r&&(this.wheelActionTimeout=setTimeout(function(){t.wheelActionTimeout=null},r))}}},{key:"handleImageMouseWheel",value:function(e){e.preventDefault();var t=h.WHEEL_MOVE_Y_THRESHOLD;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)h.MIN_ZOOM_LEVEL?this.changeZoom(h.MIN_ZOOM_LEVEL,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE,e.clientX,e.clientY)}},{key:"handleMouseUp",value:function(){var e=this;if(this.isDragging){this.isDragging=!1;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}}},{key:"handleMoveStart",value:function(e,t){this.state.zoomLevel<=h.MIN_ZOOM_LEVEL||(this.isDragging=!0,this.dragStartX=e,this.dragStartY=t,this.dragStartOffsetX=this.state.offsetX,this.dragStartOffsetY=this.state.offsetY)}},{key:"handleOuterMouseDown",value:function(e){e.preventDefault(),this.handleMoveStart(e.clientX,e.clientY)}},{key:"handleOuterTouchStart",value:function(e){var t=e.changedTouches[0];this.handleMoveStart(parseInt(t.clientX,10),parseInt(t.clientY,10))}},{key:"handleMove",value:function(e,t){if(this.isDragging){var n=this.dragStartX-e+this.dragStartOffsetX,r=this.dragStartY-t+this.dragStartOffsetY;this.state.offsetX===n&&this.state.offsetY===r||this.setState({offsetX:n,offsetY:r})}}},{key:"handleOuterMouseMove",value:function(e){this.handleMove(e.clientX,e.clientY)}},{key:"handleOuterTouchMove",value:function(e){if(e.preventDefault(),!(this.state.zoomLevel<=h.MIN_ZOOM_LEVEL)){var t=e.changedTouches[0];this.handleMove(parseInt(t.clientX,10),parseInt(t.clientY,10))}}},{key:"handleWindowResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){this.changeZoom(this.state.zoomLevel+h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleZoomOutButtonClick",value:function(){this.changeZoom(this.state.zoomLevel-h.ZOOM_BUTTON_INCREMENT_SIZE)}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption){var t=this.caption.getBoundingClientRect().height,n=this.caption.scrollHeight,r=this.caption.scrollTop;(e.deltaY>0&&t+r>=n||e.deltaY<0&&r<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t){var n=this;if(this.isImageLoaded(e))return void setTimeout(function(){t(null,n.imageCache[e].width,n.imageCache[e].height)},1);var r=this,o=new Image;o.onerror=function(){t("image load error")},o.onload=function(){r.imageCache[e]={loaded:!0,width:this.width,height:this.height},t(null,this.width,this.height)},o.src=e}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(r){return r?void(window.console&&window.console.warn(r)):void(e.props[t]===n&&e.mounted&&e.forceUpdate())}};this.getSrcTypes().forEach(function(r){var o=r.name;t[o]&&!e.isImageLoaded(t[o])&&e.loadImage(t[o],n(o,t[o]))})}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};return this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),void setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:h.MIN_ZOOM_LEVEL,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,setTimeout(function(){return n.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter--,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter++,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,n=this.props,r=n.animationDisabled,o=n.animationDuration,a=n.clickOutsideToClose,i=n.discourageDownloads,l=n.enableZoom,s=n.imageTitle,c=n.nextSrc,p=n.prevSrc,y=n.toolbarButtons,g=n.reactModalStyle,w=this.state,E=w.zoomLevel,k=w.offsetX,x=w.offsetY,_=w.isClosing,C=this.getLightboxRect(),S={};!r&&this.isAnimating()&&(S=u({},S,{transition:"transform "+o+"ms"}));var T={};this.getSrcTypes().forEach(function(e){var t=e.name,n=e.keyEnding;T[t]=n});var P=[],O=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.props[t]){var o=u({},r,S);E>h.MIN_ZOOM_LEVEL&&(o.cursor="move");var a=e.getBestImageForType(t);if(null===a){var l=void 0;return l=b<10?d.default.createElement("div",{className:v.loadingContainer__icon},(0,m.translate)("Loading...")):d.default.createElement("div",{className:"ril-loading-circle "+v.loadingCircle+" "+v.loadingContainer__icon},d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint}),d.default.createElement("div",{className:"ril-loading-circle-point "+v.loadingCirclePoint})),void P.push(d.default.createElement("div",{className:n+" "+v.image+" not-loaded ril-not-loaded",style:o,key:e.props[t]+T[t]},d.default.createElement("div",{className:v.loadingContainer},l)))}o.width=a.width,o.height=a.height;var c=a.src;i?(o.backgroundImage="url('"+c+"')",P.push(d.default.createElement("div",{className:n+" "+v.image+" "+v.imageDiscourager,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:o,key:c+T[t]},d.default.createElement("div",{className:"download-blocker ril-download-blocker "+v.downloadBlocker})))):P.push(d.default.createElement("img",{className:n+" "+v.image,onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:o,src:c,key:c+T[t],alt:s||(0,m.translate)("Image")}))}},R=this.getZoomMultiplier();O("nextSrc","image-next ril-image-next "+v.imageNext,t.getTransform({x:C.width})),O("mainSrc","image-current ril-image-current",t.getTransform({x:-1*k,y:-1*x,zoom:R})),O("prevSrc","image-prev ril-image-prev "+v.imagePrev,t.getTransform({x:-1*C.width}));var M=function(){},j=[v.toolbarItemChild,v.builtinButton,v.zoomInButton],F=[v.toolbarItemChild,v.builtinButton,v.zoomOutButton],q=this.handleZoomInButtonClick,N=this.handleZoomOutButtonClick;E===h.MAX_ZOOM_LEVEL&&(j.push(v.builtinButtonDisabled),q=M),E===h.MIN_ZOOM_LEVEL&&(F.push(v.builtinButtonDisabled),N=M),this.isAnimating()&&(q=M,N=M);var I={overlay:u({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:u({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return d.default.createElement(f.default,{isOpen:!0,onRequestClose:a?this.requestClose:M,onAfterOpen:function(){return e.outerEl&&e.outerEl.focus()},style:I},d.default.createElement("div",{className:"outer ril-outer "+v.outer+" "+v.outerAnimating+(_?" closing ril-closing "+v.outerClosing:""),style:{transition:"opacity "+o+"ms",animationDuration:o+"ms",animationDirection:_?"normal":"reverse"},ref:function(t){e.outerEl=t},onWheel:this.handleOuterMousewheel,onMouseMove:this.handleOuterMouseMove,onMouseDown:this.handleOuterMouseDown,onTouchStart:this.handleOuterTouchStart,onTouchMove:this.handleOuterTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},d.default.createElement("div",{className:"inner ril-inner "+v.inner,onClick:a?this.closeIfClickInner:M},P),p&&d.default.createElement("button",{type:"button",className:"prev-button ril-prev-button "+v.navButtons+" "+v.navButtonPrev,key:"prev",onClick:this.isAnimating()?M:this.requestMovePrev}),c&&d.default.createElement("button",{type:"button",className:"next-button ril-next-button "+v.navButtons+" "+v.navButtonNext,key:"next",onClick:this.isAnimating()?M:this.requestMoveNext}),d.default.createElement("div",{className:"toolbar ril-toolbar "+v.toolbar},d.default.createElement("ul",{className:"toolbar-left ril-toolbar-left "+v.toolbarSide+" "+v.toolbarLeftSide},d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("span",{className:"ril-toolbar__item__child "+v.toolbarItemChild},s))),d.default.createElement("ul",{className:["toolbar-right","ril-toolbar-right",v.toolbarSide,v.toolbarRightSide].join(" ")},y?y.map(function(e,t){return d.default.createElement("li",{key:t,className:"ril-toolbar__item "+v.toolbarItem},e)}):"",l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-in",className:"zoom-in ril-zoom-in "+j.join(" "),onClick:q})),l&&d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"zoom-out",className:"zoom-out ril-zoom-out "+F.join(" "),onClick:N})),d.default.createElement("li",{className:"ril-toolbar__item "+v.toolbarItem},d.default.createElement("button",{type:"button",key:"close",className:"ril-close ril-toolbar__item__child"+(" "+v.toolbarItemChild+" "+v.builtinButton+" "+v.closeButton),onClick:this.isAnimating()?M:this.requestClose})))),this.props.imageCaption&&d.default.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption "+v.caption,ref:function(t){e.caption=t}},d.default.createElement("div",{className:"ril-caption-content "+v.captionContent},this.props.imageCaption))))}}],[{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?null:t,r=e.y,a=void 0===r?null:r,i=e.zoom,l=void 0===i?null:i,s=b<10,u=[];return null===n&&null===a||u.push(s?"translate("+(n||0)+"px,"+(a||0)+"px)":"translate3d("+(n||0)+"px,"+(a||0)+"px,0)"),null!==l&&u.push(s?"scale("+l+")":"scale3d("+l+","+l+",1)"),o({},s?"msTransform":"transform",0===u.length?"none":u.join(" "))}}]),t}(c.Component);w.propTypes={mainSrc:c.PropTypes.string.isRequired,prevSrc:c.PropTypes.string,nextSrc:c.PropTypes.string,mainSrcThumbnail:c.PropTypes.string,prevSrcThumbnail:c.PropTypes.string,nextSrcThumbnail:c.PropTypes.string,onCloseRequest:c.PropTypes.func.isRequired,onMovePrevRequest:c.PropTypes.func,onMoveNextRequest:c.PropTypes.func,discourageDownloads:c.PropTypes.bool,animationDisabled:c.PropTypes.bool,animationOnKeyInput:c.PropTypes.bool,animationDuration:c.PropTypes.number,keyRepeatLimit:c.PropTypes.number,keyRepeatKeyupBonus:c.PropTypes.number,imageTitle:c.PropTypes.node,imageCaption:c.PropTypes.node,reactModalStyle:c.PropTypes.object,imagePadding:c.PropTypes.number,toolbarButtons:c.PropTypes.arrayOf(c.PropTypes.node),clickOutsideToClose:c.PropTypes.bool,enableZoom:c.PropTypes.bool},w.defaultProps={onMovePrevRequest:function(){},onMoveNextRequest:function(){},discourageDownloads:!1,animationDisabled:!1,animationOnKeyInput:!1,animationDuration:300,keyRepeatLimit:180,keyRepeatKeyupBonus:40,reactModalStyle:{},imagePadding:10,clickOutsideToClose:!0,enableZoom:!0},t.default=w},function(e,t){"use strict";function n(){var e=navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);return e?parseInt(e[1],10):void 0}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach(function(e){n=n.replace(e,t[e])}),n}function o(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function a(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){try{return window.self!==window.top}catch(e){return!0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIEVersion=n,t.translate=r,t.getWindowWidth=o,t.getWindowHeight=a,t.isInIframe=i},function(e,t,n){t=e.exports=n(5)(),t.push([e.id,'@-webkit-keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}@keyframes closeWindow___2Hlon{0%{opacity:1}to{opacity:0}}.outer___2lDXy{background-color:rgba(0,0,0,.85);top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%}.outerClosing___1EQGK{opacity:0}.image___2FLq2,.inner___1rfRQ{position:absolute;top:0;left:0;right:0;bottom:0}.image___2FLq2{margin:auto;max-width:100%;max-height:100%}.imageNext___1uRqJ,.imagePrev___F6xVQ{@extends .image}.imageDiscourager___3-CUB{background-repeat:no-repeat;background-position:50%;background-size:contain}.navButtons___3kNVF{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.navButtons___3kNVF:hover{opacity:1}.navButtons___3kNVF:active{opacity:.7}.navButtonPrev___2vBS8{left:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat 50%}.navButtonNext___30R2i{right:0;background:rgba(0,0,0,.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat 50%}.downloadBlocker___3rU9-{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.caption___3vDh_,.toolbar___1xYly{background-color:rgba(0,0,0,.5);position:absolute;left:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.caption___3vDh_{bottom:0;max-height:150px;overflow:auto}.captionContent___30kw2{padding:10px 20px;color:#fff}.toolbar___1xYly{top:0;height:50px}.toolbarSide___3FYWk{height:50px;margin:0}.toolbarSideNoFlex___KxqgW{height:auto;line-height:50px;max-width:48%;position:absolute;top:0;bottom:0}.toolbarLeftSide___8beAg{padding-left:20px;padding-right:0;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.toolbarLeftSideNoFlex___3O3cZ{left:0;overflow:visible}.toolbarRightSide___1Sdfc{padding-left:0;padding-right:20px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.toolbarRightSideNoFlex___oa0FT{right:0}.toolbarItem___3WbMb{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbarItemChild___2U_MP{vertical-align:middle}.builtinButton___1zqo6{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.builtinButton___1zqo6:hover{opacity:1}.builtinButton___1zqo6:active{outline:none}.builtinButtonDisabled___3uvqe{cursor:default;opacity:.5}.builtinButtonDisabled___3uvqe:hover{opacity:.5}.closeButton___3BdAF{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat 50%}.zoomInButton___3xtuX{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat 50%}.zoomOutButton___38PZx{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat 50%}.outerAnimating___2-fZi{-webkit-animation-name:closeWindow___2Hlon;animation-name:closeWindow___2Hlon}@-webkit-keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}@keyframes pointFade___2RA5J{0%,19.999%,to{opacity:0}20%{opacity:1}}.loadingCircle___3JNJg{width:60px;height:60px;position:relative}.loadingCirclePoint___3md-S{width:100%;height:100%;position:absolute;left:0;top:0}.loadingCirclePoint___3md-S:before{content:\'\';display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:30%;-webkit-animation:pointFade___2RA5J 1.2s infinite ease-in-out both;animation:pointFade___2RA5J 1.2s infinite ease-in-out both}.loadingCirclePoint___3md-S:nth-of-type(1){-webkit-transform:rotate(0deg);transform:rotate(0deg)}.loadingCirclePoint___3md-S:nth-of-type(1):before,.loadingCirclePoint___3md-S:nth-of-type(7):before{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.loadingCirclePoint___3md-S:nth-of-type(2){-webkit-transform:rotate(30deg);transform:rotate(30deg)}.loadingCirclePoint___3md-S:nth-of-type(8){-webkit-transform:rotate(210deg);transform:rotate(210deg)}.loadingCirclePoint___3md-S:nth-of-type(2):before,.loadingCirclePoint___3md-S:nth-of-type(8):before{-webkit-animation-delay:-1s;animation-delay:-1s}.loadingCirclePoint___3md-S:nth-of-type(3){-webkit-transform:rotate(60deg);transform:rotate(60deg)}.loadingCirclePoint___3md-S:nth-of-type(9){-webkit-transform:rotate(240deg);transform:rotate(240deg)}.loadingCirclePoint___3md-S:nth-of-type(3):before,.loadingCirclePoint___3md-S:nth-of-type(9):before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.loadingCirclePoint___3md-S:nth-of-type(4){-webkit-transform:rotate(90deg);transform:rotate(90deg)}.loadingCirclePoint___3md-S:nth-of-type(10){-webkit-transform:rotate(270deg);transform:rotate(270deg)}.loadingCirclePoint___3md-S:nth-of-type(4):before,.loadingCirclePoint___3md-S:nth-of-type(10):before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.loadingCirclePoint___3md-S:nth-of-type(5){-webkit-transform:rotate(120deg);transform:rotate(120deg)}.loadingCirclePoint___3md-S:nth-of-type(11){-webkit-transform:rotate(300deg);transform:rotate(300deg)}.loadingCirclePoint___3md-S:nth-of-type(5):before,.loadingCirclePoint___3md-S:nth-of-type(11):before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.loadingCirclePoint___3md-S:nth-of-type(6){-webkit-transform:rotate(150deg);transform:rotate(150deg)}.loadingCirclePoint___3md-S:nth-of-type(12){-webkit-transform:rotate(330deg);transform:rotate(330deg)}.loadingCirclePoint___3md-S:nth-of-type(6):before,.loadingCirclePoint___3md-S:nth-of-type(12):before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.loadingCirclePoint___3md-S:nth-of-type(7){-webkit-transform:rotate(180deg);transform:rotate(180deg)}.loadingCirclePoint___3md-S:nth-of-type(13){-webkit-transform:rotate(1turn);transform:rotate(1turn)}.loadingCirclePoint___3md-S:nth-of-type(7):before,.loadingCirclePoint___3md-S:nth-of-type(13):before{-webkit-animation-delay:0ms;animation-delay:0ms}.loadingContainer___2vaJ-{position:absolute;top:0;right:0;bottom:0;left:0}.loadingContainer__icon___1wQQz{color:#fff;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}',""]), +t.locals={outer:"outer___2lDXy",outerClosing:"outerClosing___1EQGK",inner:"inner___1rfRQ",image:"image___2FLq2",imagePrev:"imagePrev___F6xVQ",imageNext:"imageNext___1uRqJ",imageDiscourager:"imageDiscourager___3-CUB",navButtons:"navButtons___3kNVF",navButtonPrev:"navButtonPrev___2vBS8",navButtonNext:"navButtonNext___30R2i",downloadBlocker:"downloadBlocker___3rU9-",caption:"caption___3vDh_",toolbar:"toolbar___1xYly",captionContent:"captionContent___30kw2",toolbarSide:"toolbarSide___3FYWk",toolbarSideNoFlex:"toolbarSideNoFlex___KxqgW",toolbarLeftSide:"toolbarLeftSide___8beAg",toolbarLeftSideNoFlex:"toolbarLeftSideNoFlex___3O3cZ",toolbarRightSide:"toolbarRightSide___1Sdfc",toolbarRightSideNoFlex:"toolbarRightSideNoFlex___oa0FT",toolbarItem:"toolbarItem___3WbMb",toolbarItemChild:"toolbarItemChild___2U_MP",builtinButton:"builtinButton___1zqo6",builtinButtonDisabled:"builtinButtonDisabled___3uvqe",closeButton:"closeButton___3BdAF",zoomInButton:"zoomInButton___3xtuX",zoomOutButton:"zoomOutButton___38PZx",outerAnimating:"outerAnimating___2-fZi",closeWindow:"closeWindow___2Hlon",loadingCircle:"loadingCircle___3JNJg",loadingCirclePoint:"loadingCirclePoint___3md-S",pointFade:"pointFade___2RA5J",loadingContainer:"loadingContainer___2vaJ-",loadingContainer__icon:"loadingContainer__icon___1wQQz"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function s(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var a=v++;n=g||(g=l(t)),r=c.bind(null,n,a,!1),o=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(t),r=p.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=d.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var f={},m=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=m(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=m(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var a=[],i=0;io&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},h=function(e){function t(){o(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,o=e.connectDropTarget,a=e.deleteCard,i=n?0:1,l={"float":"right",cursor:"pointer"};return r(o(u.default.createElement("div",{style:{opacity:i},className:"dragcard"},t,!!a&&u.default.createElement("span",{style:l,onClick:a,title:"删除",className:"rm-icon"},u.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,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},58:function(e,t,n){!function(t,r){e.exports=r(n(1),n(13))}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(t,n){t.exports=e},function(e,t,n){"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(!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});var l=function(){function e(e,t){for(var n=0;n
    '),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,o,a,i,l,s,u,c,d,p,f,m;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),a=0,s=d.length;a'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),m=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},r=function(){var e,t,n,r,o,a,i;for(r=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],a=0,i=n.length;a'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=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,o,a;if(n=e.hiddenFileInput.files,n.length)for(o=0,a=n.length;o',this.options.dictFallbackText&&(r+="

    "+this.options.dictFallbackText+"

    "),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(o=t.createElement('
    '),o.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=o?o:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,o,a;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(i=["TB","GB","MB","KB","b"],n=l=0,s=i.length;l=t){r=e/Math.pow(this.options.filesizeBase,4-n),o=a;break}r=Math.round(10*r)/10}return""+r+" "+o},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,r,o;for(o=[],n=0,r=e.length;n0){for(a=0,i=n.length;a1024*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,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=L;c=0<=L?++M:--M)a.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(k,a,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var o,a,i;for(a=0,i=e.length;ac;)t=o[4*(s-1)+3],0===t?a=s:c=s,s=a+c>>1;return u=s/i,0===u?1:u},i=function(e,t,n,r,o,i,l,s,u,c){var d;return d=a(t),e.drawImage(t,n,r,o,i,l,s,u,c/d)},o=function(e,t){var n,r,o,a,i,l,s,u,c;if(o=!1,c=!0,r=e.document,u=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",a=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[s](l+n.type,a,!1),!o&&(o=!0)?t.call(e,n.type||n):void 0},i=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(i,50)}return a("poll")},"complete"!==r.readyState){if(r.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&i()}return r[n](l+"DOMContentLoaded",a,!1),r[n](l+"readystatechange",a,!1),e[n](l+"load",a,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},o(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},i=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var a;for(a in e);return"undefined"==typeof a||r.call(e,a)};e.exports=function l(){var e,t,n,r,o,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,r=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var o=0;o1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&p(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r-1&&e%1==0&&e-1&&e%1==0&&e<=x}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function E(e){return!!e&&"object"==typeof e}function k(e){return y(e)?a(e):l(e)}var x=9007199254740991,_="[object Arguments]",C="[object Function]",S="[object GeneratorFunction]",T=/^(?:0|[1-9]\d*)$/,P=Object.prototype,O=P.hasOwnProperty,R=P.toString,M=P.propertyIsEnumerable,j=o(Object.keys,Object),F=Math.max,q=!M.call({valueOf:1},"valueOf"),N=Array.isArray,I=c(function(e,t){if(q||f(t)||y(t))return void u(t,k(t),e);for(var n in t)O.call(t,n)&&i(e,n,t[n])});e.exports=I},71:function(e,t,n){"use strict";!function(t){e.exports=t(n(1))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}var n={a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),"var":t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")};return n})},72:function(e,t){function n(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&o(e)}function r(e){return e.offsetWidth<=0&&e.offsetHeight<=0||"none"===e.style.display}function o(e){for(;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var r=isNaN(t);return(r||t>=0)&&n(e,!r)}function i(e){return[].slice.call(e.querySelectorAll("*"),0).filter(function(e){return a(e)})}e.exports=i},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function l(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,o=o.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,o),n):new RegExp(e,t)}}function s(){}function u(e){for(var t,n,r=1;rAn error occured:

    "+a(p.message+"",!0)+"
    ";throw p}}var d={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};d.bullet=/(?:[*+-]|\d+\.)/,d.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,d.item=l(d.item,"gm")(/bull/g,d.bullet)(),d.list=l(d.list)(/bull/g,d.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+d.def.source+")")(),d.blockquote=l(d.blockquote)("def",d.def)(),d._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",d.html=l(d.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,d._tag)(),d.paragraph=l(d.paragraph)("hr",d.hr)("heading",d.heading)("lheading",d.lheading)("blockquote",d.blockquote)("tag","<"+d._tag)("def",d.def)(),d.normal=u({},d),d.gfm=u({},d.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),d.gfm.paragraph=l(d.paragraph)("(?!","(?!"+d.gfm.fences.source.replace("\\1","\\2")+"|"+d.list.source.replace("\\1","\\3")+"|")(),d.tables=u({},d.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=d,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,o,a,i,l,s,u,c,p,e=e.replace(/^ +$/gm,"");e;)if((a=this.rules.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]||""});else if(a=this.rules.heading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(t&&(a=this.rules.nptable.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(a,t,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(e)){for(e=e.substring(a[0].length),i=a[2],this.tokens.push({type:"list_start",ordered:i.length>1}),a=a[0].match(this.rules.item),r=!1,p=a.length,c=0;c1&&l.length>1||(e=a.slice(c+1).join("\n")+e,c=p-1)),o=r||/\n\n(?!\s*$)/.test(s),c!==p-1&&(r="\n"===s.charAt(s.length-1),o||(o=r)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(e))e=e.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===a[1]||"script"===a[1]||"style"===a[1]),text:a[0]});else if(!n&&t&&(a=this.rules.def.exec(e)))e=e.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(t&&(a=this.rules.table.exec(e))){for(e=e.substring(a[0].length),s={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=l(p.link)("inside",p._inside)("href",p._href)(),p.reflink=l(p.reflink)("inside",p._inside)(),p.normal=u({},p),p.pedantic=u({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=u({},p.normal,{escape:l(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=u({},p.gfm,{br:l(p.br)("{2,}","*")(),text:l(p.gfm.text)("{2,}","*")()}),n.rules=p,n.output=function(e,t,r){ +var o=new n(t,r);return o.output(e)},n.prototype.output=function(e){for(var t,n,r,o,i="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),i+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),"@"===o[2]?(n=":"===o[1].charAt(6)?this.mangle(o[1].substring(7)):this.mangle(o[1]),r=this.mangle("mailto:")+n):(n=a(o[1]),r=n),i+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):a(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,i+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){i+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),i+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),i+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),i+=this.renderer.codespan(a(o[2],!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),i+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),i+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),i+=this.renderer.text(a(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(o[0].length),n=a(o[1]),r=n,i+=this.renderer.link(r,null,n);return i},n.prototype.outputLink=function(e,t){var n=a(t.href),r=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,a(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
    '+(n?e:a(e,!0))+"\n
    \n":"
    "+(n?e:a(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(i(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(o){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var a='
    "},r.prototype.image=function(e,t,n){var r=''+n+'":">"},r.prototype.text=function(e){return e},o.parse=function(e,t,n){var r=new o(t,n);return r.parse(e)},o.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},o.prototype.next=function(){return this.token=this.tokens.pop()},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o,a="",i="";for(n="",e=0;e"+(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 i=p.default.find(t,{id:a.step});o+=i.id+'["'+p.default.escape(i.name)+'"];'})})},i=0;i0?k.default.pick(this.state.values,v):{}):k.default.extend(g,this.state.values),b=[],k.default.mapValues(g,function(e,t){var n=k.default.findIndex(h,{key:t}),r=n===-1?{}:h[n];e?"labels"===r.key?k.default.isArray(e)?(b=k.default.uniq(k.default.map(k.default.filter(e,function(e){return!!e.className}),function(e){return k.default.trim(e.value)})),g[t]=k.default.uniq(k.default.map(e,function(e){return k.default.trim(e.value)}))):g[t]=e.split(","):["MultiSelect","MultiVersion","MultiUser"].indexOf(r.type)!==-1?g[t]=e.split(","):"DatePicker"===r.type?g[t]=parseInt(T(e).startOf("day").format("X")):"DateTimePicker"===r.type?g[t]=parseInt(T(e).format("X")):"Number"===r.type?g[t]=parseFloat(e):"Integer"===r.type?g[t]=parseInt(e):g[t]=e:g[t]=""}),w=0,k.default.isEmpty(l)||!l.id){E.next=37;break}if(!d||!f){E.next=31;break}return E.next=27,regeneratorRuntime.awrap(d(l.id,l.entry_id,{action_id:f,comments:g.comments||""},!0));case 27:if(w=E.sent,0===w){E.next=31;break}return this.setState({ecode:w}),E.abrupt("return");case 31:return E.next=33,regeneratorRuntime.awrap(n(l.id,g));case 33:w=E.sent,0===w&&(o(),d&&f?x.notify.show("提交完成。","success",2e3):x.notify.show("问题已更新。","success",2e3)),E.next=42;break;case 37:return u.id&&k.default.extend(g,{parent_id:u.id}),E.next=40,regeneratorRuntime.awrap(t(g));case 40:w=E.sent,0===w&&(y?this.setState({preCreated:!0}):(o(),x.notify.show("问题已创建。","success",2e3)));case 42:0===w&&b.length>0&&r(b),this.setState({ecode:w});case 44:case"end":return E.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,n=e.loading,r=e.data,o=void 0===r?{}:r,a=e.isFromWorkflow,i=void 0!==a&&a;if(!n){var l=!i&&(o.id&&this.getChangedKeys().length>0||!o.id&&this.getChangedKeysForOriginal().length>0);l&&!confirm("确认要关闭该页面?")||(this.setState({ecode:0}),t())}}},{key:"typeChange",value:function(e){var t=this;this.setState({preCreated:!1});var n=this.props.options,r=k.default.find(n.types,{id:e}).schema;if(r){var o={},a={};k.default.map(r,function(e){t.state.errors[e.key]?a[e.key]="":!t.state.values[e.key]&&e.defaultValue?"MultiSelect"===e.type&&k.default.isArray(e.defaultValue)?a[e.key]=e.defaultValue.join(","):"CheckboxGroup"===e.type&&k.default.isString(e.defaultValue)?a[e.key]=e.defaultValue.split(","):a[e.key]=e.defaultValue:t.state.values[e.key]&&(a[e.key]=t.state.values[e.key]),e.required&&!a[e.key]&&(o[e.key]="必填")}),a.type=e,this.setState({errors:o,touched:{},schema:r,values:a})}}},{key:"success",value:function(e,t){if(0!==t.ecode)return void x.notify.show("文档上传失败。","error",2e3);var n=t.data,r=n.field,o=void 0===r?"":r,a=n.file,i=void 0===a?{}:a;this.state.values[o]=this.state.values[o]||[],this.state.values[o].push(i.id),e.field=o,e.fid=i.id,o&&this.state.errors[o]?(delete this.state.errors[o],this.setState({errors:this.state.errors})):this.setState({values:this.state.values})}},{key:"removedfile",value:function(e){var t=e.field||"",n=e.fid||"";t&&n&&(this.state.values[t]=k.default.reject(this.state.values[t],function(e){return e===n}),this.setState({values:this.state.values}));var r=k.default.find(this.state.schema,{key:t});r&&r.required&&t&&this.state.values[t].length<=0&&(this.state.errors[t]="必传",this.setState({errors:this.state.errors}))}},{key:"urlTest",value:function(e){var t="^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$",n=new RegExp(t);return n.test(e)}},{key:"ttTest",value:function(e){var t=k.default.trim(e),n=t.split(" "),r=!0;return k.default.map(n,function(e){if(e){k.default.endsWith(e.toLowerCase(),"w")||k.default.endsWith(e.toLowerCase(),"d")||k.default.endsWith(e.toLowerCase(),"h")||k.default.endsWith(e.toLowerCase(),"m")||(r=!1);var t=e.substr(0,e.length-1);t&&isNaN(t)&&(r=!1)}}),r}},{key:"onChange",value:function(e,t){if(this.setState({preCreated:!1}),this.state.values[t.key]=e,["Text","TextArea","RichTextEditor","Number","Integer","Url","TimeTracking"].indexOf(t.type)===-1&&(this.state.touched[t.key]=!0),t.required&&(!e||k.default.isArray(e)&&0==e.length))return this.state.errors[t.key]="必填",void this.setState({values:this.state.values});if(["Text","TextArea","RichTextEditor"].indexOf(t.type)!==-1){if(e&&t.maxLength&&k.default.trim(e).length>t.maxLength)return this.state.errors[t.key]="字数必须在"+t.maxLength+"字之内",void this.setState({values:this.state.values})}else if("Number"==t.type||"Integer"==t.type){if(e||0===e){if(isNaN(e)||"Integer"===t.type&&!/^-?\d+$/.test(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});if(!t.minValue&&0!==t.minValue||!t.maxValue&&0!==t.maxValue){if(t.minValue||0===t.minValue){if(parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须大于"+t.minValue,void this.setState({values:this.state.values})}else if((t.maxValue||0===t.maxValue)&&parseFloat(e)>parseFloat(t.maxValue))return this.state.errors[t.key]="输入值必须小于"+t.maxValue,void this.setState({values:this.state.values})}else if(parseFloat(e)>parseFloat(t.maxValue)||parseFloat(t.minValue)>parseFloat(e))return this.state.errors[t.key]="输入值必须在"+t.minValue+"~"+t.maxValue+"之间",void this.setState({values:this.state.values})}}else if("DatePicker"===t.type||"DateTimePicker"===t.type){if(e&&!T(e).isValid())return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("Url"===t.type){if(e&&!this.urlTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values})}else if("TimeTracking"===t.type&&e&&!this.ttTest(e))return this.state.errors[t.key]="格式有误",void this.setState({values:this.state.values});delete this.state.errors[t.key],this.setState({values:this.state.values})}},{key:"getPlaceholder",value:function(e){var t="输入"+e.name;return"Text"==e.type||"TextArea"==e.type||"RichTextEditor"==e.type?e.maxLength&&(t+="(字数"+e.maxLength+"字之内)"):"Number"!=e.type&&"Integer"!=e.type||(!e.minValue&&0!==e.minValue||!e.maxValue&&0!==e.maxValue?e.minValue||0===e.minValue?t="输入大于"+e.minValue+("Integer"==e.type?"整数":"数值"):(e.maxValue||0===e.maxValue)&&(t="输入小于"+e.minValue+("Integer"==e.type?"整数":"数值")):t="输入"+e.minValue+"~"+e.maxValue+"之间"+("Integer"==e.type?"整数":"数值")),t}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.options,o=t.loading,a=t.project,i=t.data,l=void 0===i?{}:i,s=t.parent,d=void 0===s?{}:s,f=t.isSubtask,g=void 0!==f&&f,b=t.isFromWorkflow,E=void 0!==b&&b,x=this.state,_=x.schema,T=x.createOther,R=x.preCreated,M=k.default.map(this.state.typeOptions,function(e){return{label:u.default.createElement("span",null,u.default.createElement("span",{className:"type-abb"},e.abb),e.name),value:e.id}}),j={height:"580px",overflow:"auto"};return E&&(j={maxHeight:"580px",overflow:"auto"}),u.default.createElement(c.Modal,{show:!0,id:"create-issue-dialog",backdrop:"static","aria-labelledby":"contained-modal-title-sm",onHide:this.handleCancel,bsSize:"large"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},l.id?E?"流程页面":"编辑问题 - "+l.no:g?"创建子任务问题":"创建问题")),u.default.createElement(c.Form,{horizontal:!0},u.default.createElement(c.Modal.Body,{style:j,ref:"createModal"},!E&&!g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"项目名称"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,a.name||"-")))),!E&&g&&u.default.createElement(c.FormGroup,null,u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},"父任务"),u.default.createElement(c.Col,{sm:9},u.default.createElement("div",{style:{marginTop:"7px",marginBottom:"6px"}},u.default.createElement("span",null,d.title?d.no+"-"+d.title:l.parent&&l.parent.title?l.parent.no+"-"+l.parent.title:"-")))),!E&&u.default.createElement(c.FormGroup,{style:{height:"68px",borderBottom:"1px solid #ddd"}},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"类型"),u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{options:M,disabled:o,simpleValue:!0,searchable:!1,clearable:!1,value:this.state.values.type,onChange:this.typeChange.bind(this),placeholder:"请选择问题类型"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"改变问题类型可能造成已填写部分信息的丢失,建议填写信息前先确定问题类型。")))),k.default.map(_,function(t,n){var i=e.state.values.type,l=u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},t.required&&u.default.createElement("span",{className:"txt-impt"},"*"),t.name);if("Text"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(c.FormControl,{type:"text",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("Number"===t.type||"Integer"==t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:3},u.default.createElement(c.FormControl,{type:"number",max:t.maxValue||0===t.maxValue?t.maxValue:"",min:t.minValue||0===t.minValue?t.minValue:"",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:7,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("RichTextEditor"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(C.RichTextEditor,{id:i+"-field-richeditor-"+t.key,value:e.state.values[t.key]||"",disabled:o,placeholder:e.getPlaceholder(t),uploadUrl:O+"/project/"+a.key+"/file",onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("TextArea"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(S.MultiRowsTextEditor,{id:i+"-field-textarea-"+t.key,disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)},onBlur:function(){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},uploadUrl:O+"/project/"+a.key+"/file",style:{height:"180px"},placeholder:e.getPlaceholder(t)})),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("labels"===t.key&&r.permissions&&r.permissions.indexOf("manage_project")!==-1)return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(m.default,{multi:!0,disabled:o,value:e.state.values[t.key]||[],clearable:!1,onChange:function(n){e.state.values[t.key]=n,e.setState({values:e.state.values,preCreated:!1})},options:k.default.map(r.labels||[],function(e){return{label:e.name,value:e.name}}),placeholder:"选择或输入标签"})));if(["Select","MultiSelect","SingleVersion","MultiVersion","SingleUser","MultiUser"].indexOf(t.type)!==-1)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(p.default,{simpleValue:!0,disabled:o,multi:"MultiSelect"===t.type||"MultiVersion"===t.type||"MultiUser"===t.type,clearable:!t.required&&"assignee"!==t.key&&"resolution"!==t.key,value:e.state.values[t.key]||null,options:k.default.map(t.optionValues,function(e){return{label:e.name,value:e.id}}),onChange:function(n){e.onChange(n,t)},className:e.state.touched[t.key]&&e.state.errors[t.key]&&"select-error",placeholder:"选择"+t.name}),"labels"===t.key&&u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))),u.default.createElement(c.Col,{sm:1,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("CheckboxGroup"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(h.CheckboxGroup,{style:{marginTop:"7px"},name:t.name,value:e.state.values[t.key]||[],onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(h.Checkbox,{disabled:o,value:e.id})," "+e.name+" "))}),e.state.touched[t.key]&&e.state.errors[t.key]&&u.default.createElement("div",null,u.default.createElement(c.ControlLabel,null,e.state.errors[t.key]||"")))));if("RadioGroup"===t.type)return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:9},u.default.createElement(y.RadioGroup,{style:{marginTop:"7px"},name:t.name,selectedValue:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}},k.default.map(t.optionValues||[],function(e,t){return u.default.createElement("span",{style:{marginLeft:"6px"},key:t},u.default.createElement(y.Radio,{disabled:o,value:e.id})," "+e.name+" ")}))));if("DatePicker"===t.type||"DateTimePicker"===t.type)return u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:4},u.default.createElement(v.default,{mode:"date",locale:"zh-cn",dateFormat:"YYYY/MM/DD",timeFormat:"DateTimePicker"===t.type&&"HH:mm",closeOnSelect:"DatePicker"===t.type,inputProps:{placeholder:"选择"+("DatePicker"===t.type?"日期":"时间")},value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n,t)}})),u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||"")));if("File"===t.type&&r.permissions&&r.permissions.indexOf("upload_file")!==-1){var s={showFiletypeIcon:!0,postUrl:O+"/project/"+a.key+"/file"},d={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0,paramName:t.key},f={init:function(t){return e.dropzone=t},success:e.success.bind(e),error:function(t){e.dropzone.removeFile(t)},removedfile:e.removedfile.bind(e)};return u.default.createElement(c.FormGroup,{key:i+n},l,u.default.createElement(c.Col,{sm:7},u.default.createElement("div",{style:{marginTop:"7px"}},u.default.createElement(w.default,{config:s,eventHandlers:f,djsConfig:d}))))}return"Url"===t.type?u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{sm:7},u.default.createElement(c.FormControl,{type:"text",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"输入"+t.name})),u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):"TimeTracking"===t.type?u.default.createElement(c.FormGroup,{key:i+n,validationState:e.state.touched[t.key]&&e.state.errors[t.key]?"error":null},l,u.default.createElement(c.Col,{ +sm:4},u.default.createElement(c.FormControl,{type:"text",disabled:o,value:e.state.values[t.key]||"",onChange:function(n){e.onChange(n.target.value,t)},onBlur:function(n){e.state.touched[t.key]=!0,e.setState({touched:e.state.touched})},placeholder:"例如:3w 4d 12h 30m"})),u.default.createElement(c.Col,{sm:6,componentClass:c.ControlLabel,style:{textAlign:"left"}},e.state.touched[t.key]&&(e.state.errors[t.key]||""))):void 0}))),u.default.createElement(c.Modal.Footer,null,0!==this.state.ecode&&!o&&u.default.createElement("span",{className:"ralign"},n[this.state.ecode]),R&&u.default.createElement("span",{className:"ok-ralign"},u.default.createElement("i",{className:"fa fa-check"})," 问题已创建"),u.default.createElement("img",{src:P,className:o?"loading":"hide"}),!l.id&&u.default.createElement(c.Checkbox,{disabled:o,checked:T,onClick:function(){e.setState({createOther:!T})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"创建另外一个"),u.default.createElement(c.Button,{type:"submit",disabled:l.id&&this.getChangedKeys().length<=0&&E===!1||k.default.isEmpty(_)||!k.default.isEmpty(this.state.errors)||o||R,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.handleCancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,data:s.PropTypes.object,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool,isSubtask:s.PropTypes.bool,parent:s.PropTypes.object,create:s.PropTypes.func,edit:s.PropTypes.func,doAction:s.PropTypes.func,action_id:s.PropTypes.string,isFromWorkflow:s.PropTypes.bool},enumerable:!0}]),t}(s.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},105:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n'+l+''),r.push(i)}}),t=t.replace(/<\/div>(\s*?)
    /gi,""));var o=t.match(/\[.*?\]\(.*?\)/gi);return o&&p.default.forEach(o,function(e,n){var r=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");r.exec(e),t=t.replace(e,''+RegExp.$1+"")}),{html:t.replace(/(\r\n)|(\n)/g,"
    "),imgFiles:r}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void c.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,o=t.fieldKey,a=t.value,i=void 0===a?"":a,l=this.state,u=l.inlinePreviewShow,c=l.photoIndex,d=this.extractImg(o,i),p=d.html,f=d.imgFiles;return s.default.createElement("div",{className:"issue-text-field"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:p||'未设置'}}),u&&s.default.createElement(m.default,{mainSrc:f[c],nextSrc:f[(c+1)%f.length],prevSrc:f[(c+f.length-1)%f.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(c+f.length-1)%f.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(c+1)%f.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={MultiRowsTextEditor:y,MultiRowsTextReader:g}}).call(this)}finally{}},106:function(e,t,n){try{(function(){"use strict";function t(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)}var a=function(){function e(e,t){for(var n=0;n/gi),o=[];return r&&c.default.forEach(r,function(t,r){var a=new RegExp('^$');if(a.exec(t)){var i=RegExp.$1;if(!i)return;n=n.replace(t,''),o.push(i)}}),{html:n,imgFiles:o}}},{key:"previewInlineImg",value:function(e){var t=this.props.isImgPreviewed;if(!t)return void d.notify.show("权限不足。","error",2e3);var n=e.target.id;if(n){var r=-1;0===n.indexOf("inlineimg-")&&(r=n.substr(n.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:r}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.onEdit,o=t.fieldKey,a=t.value,i=this.state,l=i.inlinePreviewShow,u=i.photoIndex,c=this.extractImg(o,a||""),d=c.html,p=c.imgFiles;return s.default.createElement("div",{className:"issue-text-field markdown-body"},n&&s.default.createElement("div",{className:"edit-button",onClick:function(){r&&r()}},s.default.createElement("i",{className:"fa fa-pencil"})),s.default.createElement("div",{onClick:this.previewInlineImg.bind(this),dangerouslySetInnerHTML:{__html:d||'未设置'}}),l&&s.default.createElement(f.default,{mainSrc:p[u],nextSrc:p[(u+1)%p.length],prevSrc:p[(u+p.length-1)%p.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){e.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(u+p.length-1)%p.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(u+1)%p.length})}}))}}],[{key:"propTypes",value:{isImgPreviewed:l.PropTypes.bool,isEditable:l.PropTypes.bool,onEdit:l.PropTypes.func,fieldKey:l.PropTypes.string.isRequired,value:l.PropTypes.string.isRequired},enumerable:!0}]),t}(s.default.Component);e.exports={RichTextEditor:g,RichTextReader:v}}).call(this)}finally{}},112:function(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};r=function(){return a}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},114: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=function(){function e(e,t){for(var n=0;n0?p(document.body).add(this.props.bodyOpenClassName):p(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&c.toggle(e.isOpen,e.appElement),this.portal=f(this,u(m({},e,{defaultStyles:v.defaultStyles})),this.node)},render:function(){return i.noscript()}});v.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=v},116:function(e,t,n){var r=(n(1),n(71)),o=n(118),a=n(120),i=n(70),l=n(69),s=r.div,u={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};e.exports=l({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(){o.returnFocus(),o.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(o.setupScopedFocus(this.node),o.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&&a(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"},r=n.base;return this.state.afterOpen&&(r+=" "+n.afterOpen),this.state.beforeClose&&(r+=" "+n.beforeClose),"string"==typeof t&&t?[r,t].join(" "):r},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?s():s({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:i({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},s({ref:"content",style:i({},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))}})},117:function(e,t){function n(e){if("string"==typeof e){var t=document.querySelectorAll(e);e="length"in t?t[0]:t}return s=e||s}function r(e){i(e),(e||s).setAttribute("aria-hidden","true")}function o(e){i(e),(e||s).removeAttribute("aria-hidden")}function a(e,t){e?r(t):o(t)}function i(e){if(!e&&!s)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function l(){s=document.body}var s="undefined"!=typeof document?document.body:null;t.toggle=a,t.setElement=n,t.show=o,t.hide=r,t.resetForTesting=l},118:function(e,t,n){function r(e){s=!0}function o(e){if(s){if(s=!1,!l)return;setTimeout(function(){if(!l.contains(document.activeElement)){var e=a(l)[0]||l;e.focus()}},0)}}var a=n(72),i=[],l=null,s=!1;t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return e=i.pop(),void e.focus()}catch(t){}},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",r,!1),document.addEventListener("focus",o,!0)):(window.attachEvent("onBlur",r),document.attachEvent("onFocus",o))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",r),document.removeEventListener("focus",o)):(window.detachEvent("onBlur",r),document.detachEvent("onFocus",o))}},119: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}}},120:function(e,t,n){var r=n(72);e.exports=function(e,t){var n=r(e);if(!n.length)return void t.preventDefault();var o=n[t.shiftKey?0:n.length-1],a=o===document.activeElement||e===document.activeElement;if(a){t.preventDefault();var i=n[t.shiftKey?n.length-1:0];i.focus()}}},121:function(e,t,n){e.exports=n(115)},127:function(e,t){e.exports=window.SimpleMDE},152:function(e,t,n){try{(function(){"use strict";function e(e){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/workflow"})}})}function r(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow",method:"post",data:t})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t.id,method:"put",data:t})}})}function a(e){return{type:"WORKFLOW_SELECT",id:e}}function i(e){return{type:"WORKFLOW_DELETE_NOTIFY",id:e}}function l(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t,method:"delete"})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_PREVIEW",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/preview"})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"WORKFLOW_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/workflow/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=r,t.update=o,t.select=a,t.delNotify=i,t.del=l,t.preview=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}},178: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=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.id&&u.push({id:e.id,name:y.default.find(o,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render", +value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.parent_id,o=n.type,a=e.handleSubmit,i=e.invalid,l=e.submitting,s=e.options,u=e.issue,d=[];return y.default.map(s.types||[],function(e){"subtask"!=e.type||e.disabled||d.push({label:e.name,value:e.id})}),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"},"转换类型 - "+u.no)),c.default.createElement("form",{onSubmit:a(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到父任务"),c.default.createElement(m.default.Async,{clearable:!1,disabled:l,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:name.touched&&name.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"子任务类型"),c.default.createElement(m.default,{disabled:l,options:d,simpleValue:!0,clearable:!1,value:o.value,onChange:function(e){o.onChange(e)},placeholder:"选择问题类型"}),o.touched&&o.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},o.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||i,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,options:u.PropTypes.object,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"convert2",fields:["parent_id","type"],validate:E})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},180: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=function(){function e(e,t){for(var n=0;n0&&y.default.map(s.data,function(e){e.id!=n.parent_id&&u.push({id:e.id,name:y.default.find(o,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 16:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.parent_id,r=e.handleSubmit,o=e.invalid,a=e.submitting,i=e.issue;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"},"移动子任务 - "+i.no)),c.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement("div",{className:"info-col",style:{marginBottom:"15px",marginTop:"5px"}},c.default.createElement("div",{className:"info-icon"},c.default.createElement("i",{className:"fa fa-info-circle"})),c.default.createElement("div",{className:"info-content"},"仅支持子项目在不同父项目间的移动。")),c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),c.default.createElement(m.default.Async,{clearable:!1,disabled:a,options:[],value:n.value,onChange:function(e){n.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}),n.touched&&n.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},n.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),c.default.createElement("img",{src:w,className:a?"loading":"hide"}),c.default.createElement(p.Button,{disabled:a||o,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,issue:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"move",fields:["parent_id"],validate:E})(t)||t}(u.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},184: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=function(){function e(e,t){for(var n=0;n0&&n(i),o(),v.notify.show("已设置。","success",2e3)),this.setState({ecode:s});case 14:case"end":return u.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,t=e.initializeForm,n=e.options,r=e.issue;t(n.permissions&&n.permissions.indexOf("manage_project")!==-1?{labels:g.default.map(r.labels||[],function(e){return{value:e,label:e}})}:{labels:(r.labels||[]).join(",")})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields.labels,r=e.handleSubmit,o=e.invalid,a=e.submitting,i=e.issue,l=e.options,s=g.default.map(l.labels||[],function(e){return{label:e.name,value:e.name}});return u.default.createElement(d.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","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"},"设置标签 - "+i.no)),u.default.createElement("form",{onSubmit:r(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{controlId:"formControlsText"},u.default.createElement(d.ControlLabel,null,"标签"),l.permissions&&l.permissions.indexOf("manage_project")!==-1?u.default.createElement(h.default,{multi:!0,value:n.value,clearable:!1,onChange:function(e){n.onChange(e)},options:s,placeholder:"选择或输入标签"}):u.default.createElement("div",null,u.default.createElement(f.default,{multi:!0,simpleValue:!0,clearable:!1,disabled:a,options:s,value:n.value,onChange:function(e){n.onChange(e)},placeholder:"选择标签"}),u.default.createElement("div",null,u.default.createElement("span",{style:{fontSize:"12px"}},"拥有项目管理权限的用户才可创建新的标签。"))))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),u.default.createElement("img",{src:b,className:a?"loading":"hide"}),u.default.createElement(d.Button,{disabled:a||o,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,submitting:s.PropTypes.bool,invalid:s.PropTypes.bool,values:s.PropTypes.object,fields:s.PropTypes.object,handleSubmit:s.PropTypes.func.isRequired,initializeForm:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"lables",fields:["labels"]})(t)||t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},186: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=function(){function e(e,t){for(var n=0;n0)){s.next=11;break}return i=a[e-1].id,s.next=9,regeneratorRuntime.awrap(n(i));case 9:l=s.sent,0===l&&r();case 11:case"end":return s.stop()}},null,this)}},{key:"forward",value:function h(e){var t,n,h,r,o,a,i,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(t=this.props,n=t.show,h=t.forward,r=t.visitedIndex,o=t.visitedCollection,a=void 0===o?[]:o,i=w.default.add(r,e),!a[i]){s.next=12;break}return s.next=10,regeneratorRuntime.awrap(n(a[i]));case 10:l=s.sent,0===l&&h(e);case 12:case"end":return s.stop()}},null,this)}},{key:"operateSelect",value:function(e){var t,n,r,o,a,i;return regeneratorRuntime.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=this.props,n=t.data,r=t.show,o=t.watch,a=0,"refresh"!=e){l.next=11;break}return l.next=8,regeneratorRuntime.awrap(r(n.id));case 8:a=l.sent,l.next=12;break;case 11:"assign"==e?this.setState({assignModalShow:!0}):"setLabels"==e?this.setState({setLabelsModalShow:!0}):"link"==e?this.setState({linkIssueModalShow:!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}):"copy"==e?this.setState({copyModalShow:!0}):"reset"==e?this.setState({resetModalShow:!0}):"watch"==e?(i=n.watching,this.watch(n.id,!i)):"watchers"==e?this.setState({watchersModalShow:!0}):"del"==e&&this.setState({delNotifyShow:!0});case 12:case"end":return l.stop()}},null,this)}},{key:"watch",value:function g(e,t){var g,n;return regeneratorRuntime.async(function(r){for(;;)switch(r.prev=r.next){case 0:return g=this.props.watch,r.next=3,regeneratorRuntime.awrap(g(e,t));case 3:n=r.sent,0===n?t?E.notify.show("关注成功。","success",2e3):E.notify.show("已取消关注。","success",2e3):t?E.notify.show("关注失败。","error",2e3):E.notify.show("取消失败。","error",2e3);case 5:case"end":return r.stop()}},null,this)}},{key:"delLink",value:function(e){this.setState({delLinkModalShow:!0,delLinkData:e})}},{key:"goTo",value:function(e){var t,n,r,o;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t=this.props,n=t.show,r=t.record,a.next=5,regeneratorRuntime.awrap(n(e));case 5:o=a.sent,0===o&&r();case 7:case"end":return a.stop()}},null,this)}},{key:"doAction",value:function b(e){var t,b,n,r,o;return regeneratorRuntime.async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=this.props,b=t.doAction,n=t.data,r=w.default.find(n.wfactions||{},{id:e}),!r||!r.screen){a.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),a.next=12;break;case 8:return a.next=10,regeneratorRuntime.awrap(b(n.id,n.entry_id,{action_id:e}));case 10:o=a.sent,0===o?E.notify.show("提交完成。","success",2e3):E.notify.show("提交失败。","error",2e3);case 12:case"end":return a.stop()}},null,this)}},{key:"actionSelect",value:function(e){var t,n,r,o,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=this.props,n=t.data,r=t.doAction,o=w.default.find(n.wfactions||{},{id:e}),!o||!o.schema){i.next=8;break}this.setState({workflowScreenShow:!0,action_id:e}),i.next=12;break;case 8:return i.next=10,regeneratorRuntime.awrap(r(n.id,n.entry_id,{action_id:e}));case 10:a=i.sent,0===a?E.notify.show("提交完成。","success",2e3):E.notify.show("提交失败。","error",2e3);case 12:case"end":return i.stop()}},null,this)}},{key:"previewInlineImg",value:function(e){this.props.options;if(!this.isAllowable("download_file"))return void E.notify.show("权限不足。","error",2e3);var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0,this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r}))}}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=w.default.find(n,{name:e}),o={};return r&&r.bgColor&&(o={backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"}),o}},{key:"createLightbox",value:function(e,t,n){var r=this,o=this.props.project;return c.default.createElement(y.default,{mainSrc:Y+"/project/"+o.key+"/file/"+t[n].id,nextSrc:Y+"/project/"+o.key+"/file/"+t[(n+1)%t.length].id,prevSrc:Y+"/project/"+o.key+"/file/"+t[(n+t.length-1)%t.length].id,imageTitle:t[n].name,imageCaption:t[n].uploader.name+" 上传于 "+t[n].created_at,onCloseRequest:function(){r.state.previewShow[e]=!1,r.setState({previewShow:r.state.previewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"getTextAreaItemContents",value:function(e,t,n,r,o){var a=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(_.MultiRowsTextEditor,{id:"field-textarea-"+t,value:e||"",placeholder:"输入"+n+(o&&o>0?"(字数"+o+"字之内)":""),uploadUrl:Y+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||o&&o>0&&w.default.trim(s[t]||"").length>o},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,s[t]=e,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(_.MultiRowsTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"getRichTextItemContents",value:function(e,t,n,r,o){var a=this,i=this.state,l=i.editingItems,s=i.newItemValues,u=this.props,p=u.project,f=u.data;u.options;return l[t]?c.default.createElement("div",null,c.default.createElement(x.RichTextEditor,{id:"field-richeditor-"+t,value:e||"",placeholder:"输入"+n+(o&&o>0?"(字数"+o+"字之内)":""),uploadUrl:Y+"/project/"+p.key+"/file",onChange:function(e){s[t]=e,a.setState({newItemValues:a.state.newItemValues})}}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,t,s[t]),disabled:w.default.isEqual(e||"",s[t]||"")||r&&!s[t]||o&&o>0&&w.default.trim(s[t]||"").length>o},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:function(){l[t]=!1,a.setState({editingItems:l})}},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement(x.RichTextReader,{isImgPreviewed:this.isAllowable("download_file"),isEditable:this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",f.reporter&&f.reporter.id||""),onEdit:function(){l[t]=!0,s[t]=e,a.setState({editingItems:l})},fieldKey:t,value:e})}},{key:"componentDidMount",value:function(){C(".animate-dialog .nav-tabs>li>a:first").css("border-left","0px");var e=this.props,t=e.detailFloatStyle,n=void 0===t?{}:t,r=e.layout,o=w.default.min([w.default.max([r.containerWidth/2,660]),1e3]),a={ +width:o+"px"},i={};void 0!==n.left?(a.left=n.left-o,i.left=n.left):(a.right=-o,i.right=0),C(".animate-dialog").css(a),C(".animate-dialog").animate(i)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,o=t.close,a=(t.detailFloatStyle,t.data),i=void 0===a?{}:a,l=(t.record,t.visitedIndex),s=t.visitedCollection,u=t.issueCollection,f=void 0===u?[]:u,h=t.loading,y=t.itemLoading,g=t.options,b=t.project,x=t.fileLoading,_=t.delFile,C=t.create,Z=t.edit,X=t.del,$=t.copy,Q=t.move,J=t.convert,ee=t.setAssignee,te=(t.setItemValue,t.setLabels),ne=t.addLabels,re=t.resetState,oe=t.wfCollection,ae=t.wfLoading,ie=t.indexComments,le=t.sortComments,se=t.commentsCollection,ue=t.commentsIndexLoading,ce=t.commentsLoading,de=t.commentsItemLoading,pe=t.addComments,fe=t.editComments,me=t.delComments,he=t.indexHistory,ye=t.sortHistory,ge=t.historyCollection,ve=t.historyIndexLoading,be=t.indexGitCommits,we=t.sortGitCommits,Ee=t.gitCommitsCollection,ke=t.gitCommitsIndexLoading,xe=t.indexWorklog,_e=t.worklogSort,Ce=t.sortWorklog,Se=t.worklogCollection,Te=t.worklogIndexLoading,Pe=t.worklogLoading,Oe=t.addWorklog,Re=t.editWorklog,Me=t.delWorklog,je=t.createLink,Fe=t.delLink,qe=t.linkLoading,Ne=t.doAction,Ie=t.user,Le=this.state,Ae=(Le.inlinePreviewShow,Le.previewShow),De=Le.photoIndex,Be=Le.newAssignee,He=Le.editAssignee,We=Le.editingItems,ze=Le.newItemValues,Ve=Le.delFileShow,Ge=Le.selectedFile,Ue=Le.action_id,Ke=["title","resolution","priority","assignee","descriptions","epic","labels","resolve_version","expect_start_time","expect_complete_time","progress"],Ye={marginBottom:"0px",borderTop:"0px",borderRadius:"0px"},Ze=w.default.map(g.assignees||[],function(e){return{label:e.name+"("+e.email+")",value:e.id}}),Xe=[];w.default.map(g.types,function(e){"subtask"!=e.type||e.disabled||Xe.push(e)});var $e=w.default.find(g.types,{id:i.type}),Qe=$e&&$e.schema?$e.schema:[],Je=w.default.findIndex(f,{id:i.id}),et=i.priority?w.default.findIndex(g.priorities,{id:i.priority}):-1,tt={marginLeft:"5px",marginRight:"5px"};et!==-1&&w.default.extend(tt,{backgroundColor:g.priorities[et].color});var nt=i.state?w.default.findIndex(g.states,{id:i.state}):-1,rt="";nt!==-1&&(rt="state-"+g.states[nt].category+"-label");var ot=!1,at=w.default.findIndex(Qe,{key:"descriptions"});at!==-1&&(ot=Qe[at].required&&!0);var it={};i.epic&&(it=w.default.find(g.epics,{id:i.epic}));var lt=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"评论",!y&&"("+(i.comments_num>99?"99+":i.comments_num||0)+")")),st=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"工作日志",!y&&"("+(i.worklogs_num>99?"99+":i.worklogs_num||0)+")")),ut=c.default.createElement("div",null,c.default.createElement("span",{style:{paddingRight:"6px"}},"Git提交",!y&&"("+(i.gitcommits_num>99?"99+":i.gitcommits_num||0)+")")),ct=w.default.min([w.default.max([r.containerWidth/2,660]),1e3])+"px";return c.default.createElement("div",{className:"animate-dialog",style:{width:ct},onClick:function(e){e.stopPropagation()},onMouseUp:function(e){e.stopPropagation()}},c.default.createElement(d.Button,{className:"close",onClick:o,title:"关闭"},c.default.createElement("i",{className:"fa fa-close"})),c.default.createElement(d.Button,{className:Je<0||Je>=f.length-1?"angle-disable":"angle",onClick:this.next.bind(this,Je),disabled:Je<0||Je>=f.length-1,title:"下一个"},c.default.createElement("i",{className:"fa fa-angle-down"})),c.default.createElement(d.Button,{className:Je<=0?"angle-disable":"angle",onClick:this.previous.bind(this,Je),disabled:Je<=0,title:"上一个"},c.default.createElement("i",{className:"fa fa-angle-up"})),c.default.createElement(d.Button,{className:l<0||l>=s.length-1?"angle-disable":"angle",onClick:this.forward.bind(this,1),disabled:l<0||l>=s.length-1,title:"前进"},c.default.createElement("i",{className:"fa fa-angle-right"})),c.default.createElement(d.Button,{className:l<=0?"angle-disable":"angle",onClick:this.forward.bind(this,-1),disabled:l<=0,title:"后退"},c.default.createElement("i",{className:"fa fa-angle-left"})),c.default.createElement(d.Button,{className:"angle",title:i.watching?"点击取消关注":"点击关注",onClick:function(){e.watch(i.id,!i.watching)}},i.watching?c.default.createElement("i",{className:"fa fa-eye-slash"}):c.default.createElement("i",{className:"fa fa-eye"})),c.default.createElement("div",{className:"panel panel-default",style:Ye},c.default.createElement(d.Tabs,{activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this),id:"issue-detail-tab"},c.default.createElement(d.Tab,{eventKey:1,title:"基本"},c.default.createElement("div",{className:"detail-view-blanket",style:{display:y?"block":"none"}},c.default.createElement("img",{src:j,className:"loading detail-loading"})),c.default.createElement(d.Form,{horizontal:!0,className:y&&"hide",style:{marginRight:"15px",marginBottom:"40px",marginLeft:"15px"}},c.default.createElement(d.ButtonToolbar,{style:{margin:"15px 0px 15px -5px"}},(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.Button,{onClick:function(){e.setState({editModalShow:!0})}},c.default.createElement("i",{className:"fa fa-edit"})," 编辑"),this.isAllowable("exec_workflow")&&(i.wfactions&&i.wfactions.length<=4?c.default.createElement(d.ButtonGroup,{style:{marginLeft:"10px"}},w.default.map(i.wfactions||[],function(t,n){return c.default.createElement(d.Button,{key:t.id,onClick:e.doAction.bind(e,t.id)},t.name)})):c.default.createElement("div",{style:{"float":"left",marginLeft:"10px"}},c.default.createElement(d.DropdownButton,{title:"动作",onSelect:this.actionSelect.bind(this)},w.default.map(i.wfactions||[],function(e,t){return c.default.createElement(d.MenuItem,{eventKey:e.id},e.name)})))),c.default.createElement("div",{style:{"float":"right"}},c.default.createElement(d.DropdownButton,{pullRight:!0,title:"更多",onSelect:this.operateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"refresh"},"刷新"),this.isAllowable("assign_issue")&&c.default.createElement(d.MenuItem,{eventKey:"assign"},"分配"),(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"setLabels"},"设置标签"),c.default.createElement(d.MenuItem,{divider:!0}),c.default.createElement(d.MenuItem,{eventKey:"watch"},i.watching?"取消关注":"关注"),c.default.createElement(d.MenuItem,{eventKey:"watchers"},c.default.createElement("span",null,"查看关注者 ",c.default.createElement("span",{className:"badge-number"},i.watchers&&i.watchers.length))),c.default.createElement(d.MenuItem,{eventKey:"share"},"分享链接"),!i.parent_id&&Xe.length>0&&((this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&!i.hasSubtasks||this.isAllowable("create_issue"))&&c.default.createElement(d.MenuItem,{divider:!0}),!i.parent_id&&Xe.length>0&&this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"createSubtask"},"创建子任务"),!i.hasSubtasks&&!i.parent_id&&Xe.length>0&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Subtask"},"转换为子任务"),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),i.parent_id&&(this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"convert2Standard"},"转换为标准问题"),g.permissions&&(w.default.intersection(g.permissions,["link_issue","create_issue"]).length>0||g.permissions.indexOf("move_issue")!==-1&&i.parent_id)&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("move_issue")&&i.parent_id&&c.default.createElement(d.MenuItem,{eventKey:"move"},"移动"),this.isAllowable("link_issue")&&c.default.createElement(d.MenuItem,{eventKey:"link"},"链接"),this.isAllowable("create_issue")&&c.default.createElement(d.MenuItem,{eventKey:"copy"},"复制"),(this.isAllowable("reset_issue")||this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{divider:!0}),this.isAllowable("reset_issue")&&c.default.createElement(d.MenuItem,{eventKey:"reset"},"重置状态"),(this.isAllowable("delete_issue")||this.isAllowable("delete_self_issue",i.reporter&&i.reporter.id||""))&&c.default.createElement(d.MenuItem,{eventKey:"del"},"删除")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"主题/NO"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px",whiteSpace:"pre-wrap",wordWrap:"break-word"}},i.parent&&c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.goTo(i.parent.id)}},i.parent.no+"-"+(i.parent.title||"")),i.parent&&" / ",i.no+"-"+(i.title||"")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"类型"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",{className:"type-abb"},$e?$e.abb:"-"),$e?$e.name:"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"状态"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},nt!==-1?c.default.createElement("span",{className:rt},g.states[nt].name):"-",ae?c.default.createElement("img",{src:j,className:"small-loading"}):c.default.createElement("a",{href:"#",onClick:this.viewWorkflow.bind(this)},c.default.createElement("span",{style:{marginLeft:"5px"}},"(查看)"))))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"优先级"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},et!==-1&&c.default.createElement("div",{className:"circle",style:tt}),et!==-1?g.priorities[et].name:c.default.createElement("span",{style:{color:"#909090"}},"未设置"))),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"解决结果"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.resolutions||[],{id:i.resolution})?w.default.find(g.resolutions,{id:i.resolution}).name:"-"))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"负责人"),c.default.createElement(d.Col,{sm:He?7:3},He?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(v.default,{simpleValue:!0,clearable:!1,options:Ze,value:Be||i.assignee.id,onChange:this.handleAssigneeSelectChange.bind(this),placeholder:"选择负责人"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("assign_issue")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},i.assignee&&i.assignee.name||"-")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.editAssignee.bind(this)},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.assignee&&i.assignee.name||"-")),(!i.assignee||i.assignee.id!==Ie.id)&&this.isAllowable("assigned_issue")&&c.default.createElement("span",{style:{"float":"left",marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:this.assignToMe.bind(this)},"分配给我")))),!He&&c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"报告人"),!He&&c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,i.reporter&&i.reporter.name||"-")))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"描述"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},this.getRichTextItemContents(i.descriptions,"descriptions","描述",ot)))),c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"创建时间"),c.default.createElement(d.Col,{sm:3},c.default.createElement("div",{style:{marginTop:"7px"}},i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-")),c.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"更新时间"),c.default.createElement(d.Col,{sm:4},c.default.createElement("div",{style:{marginTop:"7px",marginLeft:"5px"}},i.updated_at?S.unix(i.updated_at).format("YYYY/MM/DD HH:mm"):i.created_at?S.unix(i.created_at).format("YYYY/MM/DD HH:mm"):"-"))),i.labels&&i.labels.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"标签"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.labels,function(t,n){return c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?labels="+t,key:n},c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t))})))),i.resolve_version&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"解决版本"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.find(g.versions,{id:i.resolve_version})?w.default.find(g.versions,{id:i.resolve_version}).name:"-"))),i.epic&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Epic"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement(p.Link,{to:"/project/"+b.key+"/issue?epic="+i.epic},c.default.createElement("span",{className:"epic-title",style:{borderColor:it.bgColor,backgroundColor:it.bgColor,maxWidth:"100%",marginRight:"5px",marginTop:"0px","float":"left"},title:it.name||"-"},it.name||"-"))))),i.sprints&&i.sprints.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"Sprint"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},w.default.map(i.sprints,function(e){return w.default.find(g.sprints,{no:e}).name}).join(", ")))),(i.expect_start_time||i.expect_complete_time)&&c.default.createElement(d.FormGroup,null,i.expect_start_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望开始时间"),i.expect_start_time&&c.default.createElement(d.Col,{sm:2},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_start_time).format("YYYY/MM/DD"))),i.expect_complete_time&&c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"期望完成时间"),i.expect_complete_time&&c.default.createElement(d.Col,{sm:i.expect_start_time?2:4},c.default.createElement("div",{style:{marginTop:"7px"}},S.unix(i.expect_complete_time).format("YYYY/MM/DD")))),w.default.isNumber(i.progress)&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"进度"),c.default.createElement(d.Col,{sm:3},We.progress?c.default.createElement("div",{style:{marginTop:"0px"}},c.default.createElement(d.FormControl,{type:"number",min:"0",value:ze.progress||0,onChange:function(t){ze.progress=t.target.value,e.setState({newItemValues:ze})},placeholder:"进度值"}),c.default.createElement("div",{className:"edit-button-group"},c.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setItemValue.bind(this,"progress",ze.progress-0)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetItem.bind(this,"progress")},c.default.createElement("i",{className:"fa fa-close"})))):c.default.createElement("div",{style:{marginTop:"4px"}},this.isAllowable("edit_issue")||this.isAllowable("edit_self_issue",i.reporter&&i.reporter.id||"")?c.default.createElement("div",{className:"editable-list-field",style:{display:"table",width:"100%"}},c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"5px 0px 3px 5px"}},(i.progress||"0")+"%")),c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:function(){We.progress=!0,ze.progress=i.progress||0,e.setState({editingItems:We,newItemValues:ze})}},c.default.createElement("i",{className:"fa fa-pencil"}))):c.default.createElement("div",{style:{marginTop:"7px"}},c.default.createElement("span",null,(i.progress||"0")+"%"))))),i.subtasks&&i.subtasks.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"子任务"),c.default.createElement(d.Col,{sm:9},i.subtasks.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.subtasks.length,"个子任务",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({subtaskShow:!e.state.subtaskShow})}},this.state.subtaskShow?"收起":"展开",c.default.createElement("i",{className:this.state.subtaskShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.subtaskShow&&i.subtasks.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.subtasks,function(t,n){return c.default.createElement("tr",{key:"subtask"+n},c.default.createElement("td",null,c.default.createElement("a",{href:"#",style:"Closed"==t.state?{textDecoration:"line-through"}:{},onClick:function(n){n.preventDefault(),e.goTo(t.id)}},t.no," - ",t.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",width:"10px",textAlign:"center"}},w.default.find(g.states||[],{id:t.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:t.state}).category+"-label"},w.default.find(g.states,{id:t.state}).name):"-"))}))))),i.links&&i.links.length>0&&c.default.createElement(d.FormGroup,null,c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},"链接问题"),c.default.createElement(d.Col,{sm:9},i.links.length>5&&c.default.createElement("div",{style:{marginTop:"7px"}},"共",i.links.length,"个问题",c.default.createElement("span",{style:{marginLeft:"5px"}},c.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({linkShow:!e.state.linkShow})}},this.state.linkShow?"收起":"展开",c.default.createElement("i",{className:this.state.linkShow?"fa fa-angle-up":"fa fa-angle-down"})))),c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,className:!this.state.linkShow&&i.links.length>5?"hide":"",style:{marginTop:"10px",marginBottom:"0px",borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(i.links,function(t,n){var r={},o="",a="";if(t.src.id==i.id)r=t.dest,o=t.relation,a=t.dest.id;else if(t.dest.id==i.id){r=t.src,o=t.relation;var l=w.default.findIndex(g.relations||[],{out:o});if(l!==-1)o=g.relations[l].in||"";else{var s=w.default.findIndex(g.relations||[],{"in":o});s!==-1&&(o=g.relations[s].out||"")}a=t.src.id}return c.default.createElement("tr",{key:"link"+n},c.default.createElement("td",null,o,c.default.createElement("br",null),c.default.createElement("a",{href:"#",style:"Closed"==r.state?{textDecoration:"line-through"}:{},onClick:function(t){t.preventDefault(),e.goTo(a)}},r.no," - ",r.title)),c.default.createElement("td",{style:{whiteSpace:"nowrap",verticalAlign:"middle",textAlign:"center",width:"10px"}},w.default.find(g.states||[],{id:r.state})?c.default.createElement("span",{className:"state-"+w.default.find(g.states,{id:r.state}).category+"-label"},w.default.find(g.states,{id:r.state}).name):"-"),c.default.createElement("td",{style:{verticalAlign:"middle",width:"10px"}},e.isAllowable("link_issue")?c.default.createElement("span",{className:"remove-icon",onClick:e.delLink.bind(e,{title:r.title,id:t.id})},c.default.createElement("i",{className:"fa fa-trash"})):""))}))))),w.default.map(Qe,function(t,n){if(Ke.indexOf(t.key)===-1){if("File"===t.type){if(!e.isAllowable("upload_file")&&w.default.isEmpty(i[t.key]))return}else if(w.default.isEmpty(i[t.key])&&!w.default.isNumber(i[t.key]))return;var r="";if("SingleUser"===t.type)r=i[t.key]&&i[t.key].name||"-";else if("MultiUser"===t.type)r=w.default.map(i[t.key]||[],function(e){return e.name}).join(", ");else if("Select"===t.type||"RadioGroup"===t.type||"SingleVersion"===t.type){var o=t.optionValues||[];r=w.default.find(o,{id:i[t.key]})?w.default.find(o,{id:i[t.key]}).name:"-"}else if("MultiSelect"===t.type||"CheckboxGroup"===t.type||"MultiVersion"===t.type)!function(){var e=t.optionValues||[],n=w.default.isArray(i[t.key])?i[t.key]:i[t.key].split(","),o=[];w.default.map(n,function(t,n){w.default.find(e,{id:t})&&o.push(w.default.find(e,{id:t}).name)}),r=o.join(", ")||"-"}();else if("DatePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD");else if("DateTimePicker"===t.type)r=S.unix(i[t.key]).format("YYYY/MM/DD HH:mm");else if("File"===t.type){var a={showFiletypeIcon:!0,postUrl:Y+"/project/"+b.key+"/file?issue_id="+i.id},l={parallelUploads:1,addRemoveLinks:!1,dictDefaultMessage:"点击或拖拽文件至此",paramName:t.key},s={init:function(t){return e.dropzone=t},success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){E.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}},u=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)!==-1}),p=w.default.filter(i[t.key],function(e){return w.default.indexOf(["image/jpeg","image/jpg","image/png","image/gif"],e.type)===-1});r=c.default.createElement("div",null,p.length>0&&c.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},c.default.createElement("tbody",null,w.default.map(p,function(n,r){return c.default.createElement("tr",{key:r},c.default.createElement("td",null,c.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},c.default.createElement("i",{className:(0,k.getFileIconCss)(n.name)})),e.isAllowable("download_file")?c.default.createElement("a",{target:"_blank",href:Y+"/project/"+b.key+"/file/"+n.id+("application/pdf"==n.type?"/"+n.name:""),download:"application/pdf"!=n.type&&n.name},n.name):c.default.createElement("span",null,n.name)),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("td",{width:"2%"},c.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"}))))}))),u.length>0&&c.default.createElement(d.Grid,{style:{paddingLeft:"0px"}},c.default.createElement(d.Row,null,w.default.map(u,function(n,r){return c.default.createElement(d.Col,{sm:6,key:r},c.default.createElement("div",{className:"attachment-content"},c.default.createElement("div",{className:"attachment-thumb",onClick:e.openPreview.bind(e,r,t.key)},c.default.createElement("img",{src:Y+"/project/"+b.key+"/file/"+n.id+"/thumbnail"})),c.default.createElement("div",{className:"attachment-title-container"},c.default.createElement("div",{className:"attachment-title",title:n.name},n.name),(e.isAllowable("remove_file")||e.isAllowable("remove_self_file",n.uploader&&n.uploader.id||""))&&c.default.createElement("div",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.key,n.id,n.name)},c.default.createElement("i",{className:"fa fa-trash"})))))}))),e.isAllowable("upload_file")&&c.default.createElement("div",{style:{marginTop:"8px"}},c.default.createElement(m.default,{config:a,eventHandlers:s,djsConfig:l})),Ae[t.key]&&e.createLightbox(t.key,u,De))}else r="TextArea"===t.type?e.getTextAreaItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):"RichTextEditor"===t.type?e.getRichTextItemContents(i[t.key],t.key,t.name,t.required,t.maxLength):i[t.key];return c.default.createElement(d.FormGroup,{key:"form-"+n},c.default.createElement(d.Col,{sm:3,componentClass:d.ControlLabel},t.name||"-"),c.default.createElement(d.Col,{sm:9},c.default.createElement("div",{style:{marginTop:"7px"}},r)))}}))),c.default.createElement(d.Tab,{eventKey:3,title:"改动纪录"},c.default.createElement(O,{issue_id:i.id,currentTime:g.current_time||0,currentUser:Ie,collection:ge,indexHistory:he,sortHistory:ye,indexLoading:ve})),c.default.createElement(d.Tab,{eventKey:2,title:lt},c.default.createElement(P,{i18n:n,currentTime:g.current_time||0,currentUser:Ie,project:b,permissions:g.permissions||[],issue_id:i.id,collection:se,indexComments:ie,sortComments:le,indexLoading:ue,loading:ce,users:g.users||[],addComments:pe,editComments:fe,delComments:me,itemLoading:de})),c.default.createElement(d.Tab,{eventKey:4,title:st},c.default.createElement(M,{i18n:n,currentTime:g.current_time||0,currentUser:Ie,permissions:g.permissions||[],issue:i,original_estimate:i.original_estimate,options:g.timetrack||{},collection:Se,indexWorklog:xe,sort:_e,sortWorklog:Ce,indexLoading:Te,loading:Pe,addWorklog:Oe,editWorklog:Re,delWorklog:Me})),i.gitcommits_num>0&&c.default.createElement(d.Tab,{eventKey:5,title:ut},c.default.createElement(R,{issue_id:i.id,currentTime:g.current_time||0,currentUser:Ie,collection:Ee,indexGitCommits:be,sortGitCommits:we,indexLoading:ke})))),Ve&&c.default.createElement(q,{show:!0,close:this.delFileModalClose,del:_,data:Ge,loading:x,i18n:n}),this.state.editModalShow&&c.default.createElement(T,{show:!0,close:this.editModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:i,isSubtask:i.parent_id&&!0,addLabels:ne,i18n:n}),this.state.workflowScreenShow&&c.default.createElement(T,{show:!0,close:this.workflowScreenModalClose.bind(this),options:g,edit:Z,loading:h,project:b,data:i,action_id:Ue,doAction:Ne,isFromWorkflow:!0,i18n:n}),this.state.workflowCommentsShow&&c.default.createElement(V,{show:!0,close:this.workflowCommentsModalClose.bind(this),data:i,action_id:Ue,doAction:Ne}),this.state.createSubtaskModalShow&&c.default.createElement(T,{show:!0,close:this.createSubtaskModalClose.bind(this),options:g,create:C,loading:h,project:b,parent:i,isSubtask:!0,i18n:n}),this.state.previewModalShow&&c.default.createElement(F,{show:!0,close:function(){e.setState({previewModalShow:!1})},state:i.state,collection:oe}),this.state.linkIssueModalShow&&c.default.createElement(N,{show:!0,close:function(){e.setState({linkIssueModalShow:!1})},options:g,loading:qe,createLink:je,issue:i,types:g.types,project:b,i18n:n}),this.state.delLinkModalShow&&c.default.createElement(I,{show:!0,close:function(){e.setState({delLinkModalShow:!1})},loading:qe,delLink:Fe,data:this.state.delLinkData,i18n:n}),this.state.convertTypeModalShow&&c.default.createElement(L,{show:!0,close:function(){e.setState({convertTypeModalShow:!1})},options:g,convert:J,loading:h,issue:i,i18n:n}),this.state.convertType2ModalShow&&c.default.createElement(A,{show:!0,close:function(){e.setState({convertType2ModalShow:!1})},options:g,project:b,convert:J,loading:h,issue:i,i18n:n}),this.state.moveModalShow&&c.default.createElement(D,{show:!0,close:function(){e.setState({moveModalShow:!1})},options:g,project:b,move:Q,loading:h,issue:i,i18n:n}),this.state.assignModalShow&&c.default.createElement(B,{show:!0,close:function(){e.setState({assignModalShow:!1})},options:g,setAssignee:ee,issue:i,i18n:n}),this.state.setLabelsModalShow&&c.default.createElement(H,{show:!0,close:function(){e.setState({setLabelsModalShow:!1})},options:g,setLabels:te,addLabels:ne,issue:i,i18n:n}),this.state.shareModalShow&&c.default.createElement(W,{show:!0,project:b,close:function(){e.setState({shareModalShow:!1})},issue:i}),this.state.resetModalShow&&c.default.createElement(z,{show:!0,close:function(){e.setState({resetModalShow:!1})},options:g,resetState:re,issue:i,i18n:n}),this.state.delNotifyShow&&c.default.createElement(G,{show:!0,close:function(){e.setState({delNotifyShow:!1})},data:i,del:X,detailClose:o,i18n:n}),this.state.copyModalShow&&c.default.createElement(U,{show:!0,close:function(){e.setState({copyModalShow:!1})},options:g,loading:h,copy:$,data:i,i18n:n}),this.state.watchersModalShow&&c.default.createElement(K,{show:!0,close:function(){e.setState({watchersModalShow:!1})},issue_no:i.no,watchers:i.watchers||[],i18n:n}))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,layout:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,project:u.PropTypes.object.isRequired,data:u.PropTypes.object.isRequired,record:u.PropTypes.func.isRequired,forward:u.PropTypes.func.isRequired,visitedIndex:u.PropTypes.number.isRequired,visitedCollection:u.PropTypes.array.isRequired,issueCollection:u.PropTypes.array.isRequired,show:u.PropTypes.func.isRequired,detailFloatStyle:u.PropTypes.object,wfCollection:u.PropTypes.array.isRequired,wfLoading:u.PropTypes.bool.isRequired,viewWorkflow:u.PropTypes.func.isRequired,loading:u.PropTypes.bool.isRequired,itemLoading:u.PropTypes.bool.isRequired,fileLoading:u.PropTypes.bool.isRequired,delFile:u.PropTypes.func.isRequired,addFile:u.PropTypes.func.isRequired,setAssignee:u.PropTypes.func.isRequired,setItemValue:u.PropTypes.func.isRequired,setLabels:u.PropTypes.func.isRequired,addLabels:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired,indexComments:u.PropTypes.func.isRequired,sortComments:u.PropTypes.func.isRequired,addComments:u.PropTypes.func.isRequired,editComments:u.PropTypes.func.isRequired,delComments:u.PropTypes.func.isRequired,commentsCollection:u.PropTypes.array.isRequired,commentsIndexLoading:u.PropTypes.bool.isRequired,commentsLoading:u.PropTypes.bool.isRequired,commentsItemLoading:u.PropTypes.bool.isRequired,commentsLoaded:u.PropTypes.bool.isRequired,indexWorklog:u.PropTypes.func.isRequired,worklogSort:u.PropTypes.string.isRequired,sortWorklog:u.PropTypes.func.isRequired,addWorklog:u.PropTypes.func.isRequired,editWorklog:u.PropTypes.func.isRequired,delWorklog:u.PropTypes.func.isRequired,worklogCollection:u.PropTypes.array.isRequired,worklogIndexLoading:u.PropTypes.bool.isRequired,worklogLoading:u.PropTypes.bool.isRequired,worklogLoaded:u.PropTypes.bool.isRequired,indexHistory:u.PropTypes.func.isRequired,sortHistory:u.PropTypes.func.isRequired,historyCollection:u.PropTypes.array.isRequired,historyIndexLoading:u.PropTypes.bool.isRequired,historyLoaded:u.PropTypes.bool.isRequired,indexGitCommits:u.PropTypes.func.isRequired,sortGitCommits:u.PropTypes.func.isRequired,gitCommitsCollection:u.PropTypes.array.isRequired,gitCommitsIndexLoading:u.PropTypes.bool.isRequired,gitCommitsLoaded:u.PropTypes.bool.isRequired,createLink:u.PropTypes.func.isRequired,delLink:u.PropTypes.func.isRequired,linkLoading:u.PropTypes.bool.isRequired,doAction:u.PropTypes.func.isRequired,watch:u.PropTypes.func.isRequired,copy:u.PropTypes.func.isRequired,move:u.PropTypes.func.isRequired,convert:u.PropTypes.func.isRequired,resetState:u.PropTypes.func.isRequired,del:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,user:u.PropTypes.object.isRequired},enumerable:!0}]),t}(u.Component);t.default=Z,e.exports=t.default}).call(this)}finally{}},220: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=function(){function e(e,t){for(var n=0;n0&&(l=n.links.length+10),c.next=15,regeneratorRuntime.awrap(i.request({url:"/project/"+o.key+"/issue/search?s="+e+"&limit="+l}));case 15:return s=c.sent,u=[],s.data.length>0&&y.default.map(s.data,function(e){y.default.indexOf(a,e.id)===-1&&n.id!==e.id&&u.push({id:e.id,name:y.default.find(r,{id:e.type}).name+"/"+e.no+" - "+e.title})}),c.abrupt("return",{options:u});case 19:case"end":return c.stop()}},null,this)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.loading,o=t.options.relations,a=void 0===o?[]:o,i=[];return y.default.forEach(a,function(e){e.out==e.in?i.push({value:e.out,label:e.out}):(i.push({value:e.out,label:e.out}),i.push({value:e.in,label:e.in}))}),u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"链接问题")),u.default.createElement(c.Modal.Body,null,u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"此问题"),u.default.createElement(p.default,{simpleValue:!0,clearable:!1,searchable:!1,disabled:r,options:i,value:this.state.relation,onChange:function(t){e.setState({relation:t})},placeholder:"请选择关系"})),u.default.createElement(c.FormGroup,{controlId:"formControlsSelect"},u.default.createElement(c.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"问题"),u.default.createElement(p.default.Async,{clearable:!1,disabled:r,options:[],value:this.state.dest,onChange:function(t){e.setState({dest:t})},valueKey:"id",labelKey:"name",loadOptions:this.searchIssue.bind(this),placeholder:"输入问题号或名称"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!r&&n[this.state.ecode]),u.default.createElement("img",{src:v,className:r?"loading":"hide"}),u.default.createElement(c.Button,{disabled:r||!this.state.relation||!this.state.dest,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:r,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,types:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,createLink:s.PropTypes.func.isRequired,project:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},221: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=function(){function e(e,t){for(var n=0;n0?u.default.createElement("span",null,"共有关注者 ",u.default.createElement("strong",null,t.length)," 人"):u.default.createElement("span",null,"暂无关注者")),t.length>0&&u.default.createElement(c.Table,{condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("span",null,e.name),u.default.createElement("span",{style:{color:"#aaa"}}," - "+e.email)))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,issue_no:s.PropTypes.number.isRequired,watchers:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},222: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=function(){function e(e,t){for(var n=0;n'+o+'
    '),imgFileUrls.push(r)}}),txt=txt.replace(/<\/div>(\s*?)
    /gi,""));var links=txt.match(/\[.*?\]\(.*?\)/gi);return links&&_lodash2.default.forEach(links,function(e,t){var n=new RegExp("^\\[(.*?)\\]\\((.*?)\\)$");n.exec(e),txt=txt.replace(e,''+RegExp.$1+"")}),_lodash2.default.map(atWho||[],function(v){txt=txt.replace(eval("/@"+v.name+"/"),'@'+v.name+"")}),{html:txt.replace(/(\r\n)|(\n)/g,"
    "),imgFileUrls:imgFileUrls}}},{key:"createLightbox",value:function(e,t,n){var r=this;return _react2.default.createElement(_reactImageLightbox2.default,{mainSrc:t[n],nextSrc:t[(n+1)%t.length],prevSrc:t[(n+t.length-1)%t.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){r.state.inlinePreviewShow[e]=!1,r.setState({inlinePreviewShow:r.state.inlinePreviewShow})},onMovePrevRequest:function(){return r.setState({photoIndex:(n+t.length-1)%t.length})},onMoveNextRequest:function(){return r.setState({photoIndex:(n+1)%t.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n="",r=-1;0===t.indexOf("inlineimg-")&&(n=t.substring(10,t.lastIndexOf("-")),r=t.substr(t.lastIndexOf("-")+1)-0),this.state.inlinePreviewShow[n]=!0,this.setState({inlinePreviewShow:this.state.inlinePreviewShow,photoIndex:r})}}},{key:"componentDidUpdate",value:function(){var e=this.props.users;_lodash2.default.map(e||[],function(e){return e.nameAndEmail=e.name+"("+e.email+")",e});var t=this;$(".comments-inputor textarea").atwho({at:"@",searchKey:"nameAndEmail",displayTpl:"
  • ${nameAndEmail}
  • ",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var o=_lodash2.default.find(e,{nameAndEmail:n});return o&&t.state.atWho.push(o.id),"@"+o.name}},data:e}),$(".comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("comments-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.currentTime,o=t.permissions,a=t.currentUser,i=t.indexComments,l=t.sortComments,s=t.collection,u=t.indexLoading,c=t.loading,d=t.itemLoading,p=t.delComments,f=t.editComments,m=t.users,h=t.project,y=t.issue_id,g=this.state,v=g.inlinePreviewShow,b=g.photoIndex;return _react2.default.createElement(_reactBootstrap.Form,{horizontal:!0,style:{padding:"0px 15px"}},_react2.default.createElement(_reactBootstrap.FormGroup,null,_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:u&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},_react2.default.createElement("div",null,_react2.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},onClick:function(){i(y)}},_react2.default.createElement("i",{className:"fa fa-refresh"})," 刷新"),_react2.default.createElement("span",{className:"comments-button",title:"排序",style:{marginRight:"10px","float":"right"},onClick:function(){l()}},_react2.default.createElement("i",{className:"fa fa-sort"})," 排序"),o.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},onClick:this.showCommentsInputor.bind(this)},_react2.default.createElement("i",{className:"fa fa-comment-o"})," 添加"),_react2.default.createElement("span",{style:{marginRight:"20px","float":"right"}},_react2.default.createElement(_reactBootstrap.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),_react2.default.createElement(_reactBootstrap.Col,{sm:12,className:this.state.addCommentsShow||"hide"},_react2.default.createElement("div",{className:"comments-inputor"},_react2.default.createElement(_reactBootstrap.FormControl,{componentClass:"textarea",disabled:c,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},value:this.state.contents,onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&!_lodash2.default.isEmpty(_lodash2.default.trim(e.state.contents))&&e.addComments()},placeholder:"支持@项目成员,Ctrl+Enter发布评论。"})),_react2.default.createElement("div",{style:{textAlign:"right",marginBottom:"10px"}},_react2.default.createElement("img",{src:img,className:c?"loading":"hide"}),_react2.default.createElement(_reactBootstrap.Button,{style:{marginLeft:"10px"},onClick:this.addComments,disabled:c||_lodash2.default.isEmpty(_lodash2.default.trim(this.state.contents))},"添加"),_react2.default.createElement(_reactBootstrap.Button,{bsStyle:"link",style:{marginRight:"5px"},onClick:function(){e.setState({addCommentsShow:!1})},disabled:c},"取消"))),_react2.default.createElement(_reactBootstrap.Col,{sm:12},u&&_react2.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},_react2.default.createElement("img",{src:img,className:"loading"})),s.length<=0&&!u?_react2.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无评论。"):_lodash2.default.map(s,function(t,n){var i=_react2.default.createElement("div",{style:{fontSize:"12px"}},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.creator&&t.creator.id===a.id?"我":t.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(t.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(t.created_at,r))+(1==t.edited_flag?' - 已编辑':"")}}),(t.creator&&a.id===t.creator.id&&o.indexOf("delete_self_comments")!==-1||o.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{"float":"right",marginLeft:"7px"},onClick:e.showDelComments.bind(e,t),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(t.creator&&a.id===t.creator.id&&o.indexOf("edit_self_comments")!==-1||o.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditComments.bind(e,t),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),o.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,{}),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),l=t.contents?_lodash2.default.escape(t.contents):"-",s=e.extractImg(l,t.atWho,t.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement(_reactBootstrap.Panel,{header:i,key:n,style:{marginBottom:"15px"}},_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[t.id]&&e.createLightbox(t.id,c,b),t.reply&&t.reply.length>0&&_react2.default.createElement("div",{className:"reply-region"},_react2.default.createElement("ul",{className:"reply-contents"},_lodash2.default.map(t.reply,function(n,i){var l=n.contents?_lodash2.default.escape(n.contents):"-",s=e.extractImg(l,n.atWho,n.id),u=s.html,c=s.imgFileUrls;return _react2.default.createElement("li",{className:"reply-contents-item"},_react2.default.createElement("div",{className:"reply-item-header"},_react2.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(n.creator&&n.creator.id===a.id?"我":n.creator.name)+" - "+("absolute"==e.state.displayTimeFormat?moment.unix(n.created_at).format("YYYY/MM/DD HH:mm:ss"):(0,_shareFuncs.getAgoAt)(n.created_at,r))+(1==n.edited_flag?' - 已编辑':"")}}),(n.creator&&a.id===n.creator.id&&o.indexOf("delete_self_comments")!==-1||o.indexOf("delete_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelReply.bind(e,t.id,n),title:"删除"},_react2.default.createElement("i",{className:"fa fa-trash"})),(n.creator&&a.id===n.creator.id&&o.indexOf("edit_self_comments")!==-1||o.indexOf("edit_comments")!==-1)&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditReply.bind(e,t.id,n),title:"编辑"},_react2.default.createElement("i",{className:"fa fa-edit"})),o.indexOf("add_comments")!==-1&&_react2.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showAddReply.bind(e,t.id,n.creator),title:"回复"},_react2.default.createElement("i",{className:"fa fa-reply"}))),_react2.default.createElement("div",{onClick:e.previewInlineImg,style:{lineHeight:"24px",whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:u}}),v[n.id]&&e.createLightbox(n.id,c,b))}))))}))),this.state.editCommentsShow&&_react2.default.createElement(EditCommentsModal,{show:!0,close:function(){e.setState({editCommentsShow:!1})},data:this.state.selectedComments,loading:d,users:m,project:h,permissions:o,issue_id:y,edit:f,i18n:n}),this.state.delReplyShow&&_react2.default.createElement(DelReplyModal,{show:!0,close:function(){e.setState({delReplyShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,edit:f,i18n:n}),this.state.delCommentsShow&&_react2.default.createElement(DelCommentsModal,{show:!0,close:function(){e.setState({delCommentsShow:!1})},data:this.state.selectedComments,loading:d,issue_id:y,del:p,i18n:n}))}}],[{key:"propTypes",value:{i18n:_react.PropTypes.object.isRequired,currentTime:_react.PropTypes.number.isRequired,currentUser:_react.PropTypes.object.isRequired,project:_react.PropTypes.object.isRequired,permissions:_react.PropTypes.array.isRequired,indexLoading:_react.PropTypes.bool.isRequired,loading:_react.PropTypes.bool.isRequired,itemLoading:_react.PropTypes.bool.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,users:_react.PropTypes.array.isRequired,collection:_react.PropTypes.array.isRequired,issue_id:_react.PropTypes.string},enumerable:!0}]),Comments}(_react.Component);exports.default=Comments,module.exports=exports.default}).call(this)}finally{}},224: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=function(){function e(e,t){for(var n=0;n${nameAndEmail}",insertTpl:"${nameAndEmail}",callbacks:{beforeInsert:function(n,r){var o=p.default.find(e,{nameAndEmail:n});return o&&t.state.atWho.push(o.id),"@"+o.name}},data:e}),m(".edit-comments-inputor textarea").one("inserted.atwho",function(e,n,r){t.setState({contents:e.target.value})})}},{key:"moveEnd",value:function(){var e=m(".edit-comments-inputor textarea").get(0);e.focus();var t=e.value.length;if(!(t<=0))if(document.selection){var n=e.createTextRange();n.moveStart("character",t),n.collapse(),n.select()}else"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=e.selectionEnd=t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n.errMsg,r=t.data,o=t.loading,a="";return a=r.id?"编辑评论":"回复评论",u.default.createElement(c.Modal,{show:!0,onHide:this.cancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},a)),u.default.createElement(c.Modal.Body,null,u.default.createElement("div",{className:"edit-comments-inputor"},u.default.createElement(c.FormControl,{componentClass:"textarea",disabled:o,style:{height:"150px"},onChange:function(t){e.setState({contents:t.target.value})},onKeyDown:function(t){"13"==t.keyCode&&t.ctrlKey&&e.state.oldContents!=e.state.contents&&e.confirm()},value:this.state.contents,placeholder:"支持@项目成员,Ctrl+Enter发布评论。"}))),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&n[this.state.ecode]),u.default.createElement("img",{src:h,className:o?"loading":"hide"}),u.default.createElement(c.Button,{disabled:this.state.oldContents===this.state.contents||o,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:o,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,issue_id:s.PropTypes.string.isRequired,close:s.PropTypes.func.isRequired,permissions:s.PropTypes.array.isRequired,edit:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,isAutoAt:s.PropTypes.bool,users:s.PropTypes.array.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},227: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=function(){function e(e,t){for(var n=0;n'+(t.author&&t.author.id===o.id?"我":t.author.name)+" 提交代码 - "+("absolute"==e.state.displayTimeFormat?y.unix(t.committed_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.committed_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0},u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"10px"}},"Repository")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage,target:"_blank"},t.repo.name)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Branch")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/tree/"+t.branch,target:"_blank"},t.branch)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Sha")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("a",{href:t.repo.homepage+"/commit/"+t.sha,target:"_blank"},t.sha)))),u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Message")),u.default.createElement("td",null,u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},t.message))),t.added&&t.added.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Added")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.added,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.modified&&t.modified.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px",verticalAlign:"top"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Modified")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.modified,function(e,n){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:n},u.default.createElement("a",{href:t.repo.homepage+"/blob/"+t.sha+"/"+e,target:"_blank"},e))})))),t.removed&&t.removed.length>0&&u.default.createElement("tr",null,u.default.createElement("td",{style:{width:"125px"}},u.default.createElement("div",{style:{textAlign:"right",fontWeight:600,paddingRight:"15px"}},"Removed")),u.default.createElement("td",null,u.default.createElement("ul",{className:"list-unstyled clearfix",style:{marginBottom:"0px"}},f.default.map(t.removed,function(e,t){return u.default.createElement("li",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},key:t},u.default.createElement("span",{style:{textDecoration:"line-through"}},e))}))))))}))))}}],[{key:"propTypes",value:{issue_id:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},228: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=function(){function e(e,t){for(var n=0;n'+(t.operator&&t.operator.id===o.id?"我":t.operator.name)+" "+("modify"==t.operation?"修改":"新建")+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.operated_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.operated_at,r))}}));return u.default.createElement(d.Panel,{header:a,key:n,style:{marginBottom:"15px"}},"modify"==t.operation?u.default.createElement(d.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,f.default.map(t.data||[],function(e){return u.default.createElement("tr",null,u.default.createElement("td",{width:"24%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},e.field||"")),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.before_value)?f.default.escape(e.before_value).replace(/(\r\n)|(\n)/g,"
    "):e.before_value}})),u.default.createElement("td",{width:"38%"},u.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},dangerouslySetInnerHTML:{__html:f.default.isString(e.after_value)?f.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:s.PropTypes.string,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,indexLoading:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},229: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=function(){function e(e,t){for(var n=0;n=0){var c=f.default.floor(u/a);c>0&&s.push(c+"w")}if(u%=a,u>=0){var d=f.default.floor(u/i);d>0&&s.push(d+"d")}if(u%=i,u>=0){var p=f.default.floor(u/l);p>0&&s.push(p+"h")}return u%=l,u>0&&s.push(u+"m"),s.length<=0&&s.push("0"),s.join(" ")}},{key:"swapTime",value:function(){"relative"==this.state.displayTimeFormat?(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","absolute"),this.setState({displayTimeFormat:"absolute"})):(window.localStorage&&window.localStorage.setItem("worklogs-displayTimeFormat","relative"),this.setState({displayTimeFormat:"relative"}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.permissions,o=t.currentTime,a=t.currentUser,i=t.issue,l=t.indexWorklog,s=t.sort,c=t.sortWorklog,p=t.collection,b=t.indexLoading,w=t.loading,E=t.addWorklog,k=t.editWorklog,x=t.delWorklog,_=t.original_estimate,C=void 0===_?"":_,S=void 0;C&&(S=this.t2m(C)),"desc"===s&&p.reverse();var T=0;f.default.map(p,function(t){if(T=f.default.add(T,e.t2m(t.spend)),1==t.adjust_type&&t.spend&&void 0!==S){var n=e.t2m(t.spend);S=S-n>0?S-n:0}else if(3==t.adjust_type&&t.leave_estimate)S=e.t2m(t.leave_estimate);else if(4==t.adjust_type&&t.cut&&void 0!==S){var r=e.t2m(t.cut);S=S-r>0?S-r:0}return f.default.extend(t,{leave_estimate_m:S}),t});var P=f.default.last(p);return"desc"===s&&p.reverse(),u.default.createElement(d.Form,{horizontal:!0,style:{padding:"0px 15px"}},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:12,className:b&&"hide",style:{marginTop:"15px",marginBottom:"15px"}},u.default.createElement("div",null,u.default.createElement("span",{className:"comments-button",title:"刷新",style:{marginRight:"10px","float":"right"},disabled:w,onClick:function(){l(i.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(){c()}},u.default.createElement("i",{className:"fa fa-sort"})," 排序"),r.indexOf("add_worklog")!==-1&&u.default.createElement("span",{className:"comments-button",title:"添加",style:{marginRight:"10px","float":"right"},disabled:w,onClick:this.showAddWorklog.bind(this)},u.default.createElement("i",{className:"fa fa-plus"})," 添加"),u.default.createElement("span",{style:{marginRight:"20px","float":"right"}},u.default.createElement(d.Checkbox,{style:{paddingTop:"0px",minHeight:"18px"},checked:"absolute"==this.state.displayTimeFormat,onClick:this.swapTime.bind(this)},"显示绝对时间")))),u.default.createElement(d.Col,{sm:12,className:b&&"hide"},u.default.createElement(d.Table,{condensed:!0,hover:!0,responsive:!0,style:{marginBottom:"15px"}},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"}},C||"-"),u.default.createElement("td",{style:{color:"#ff4500",fontWeight:"bold"}},T>0?this.m2t(T):"0"),u.default.createElement("td",{style:{color:"#32cd32",fontWeight:"bold"}},p.length<=0?C||"-":void 0===P.leave_estimate_m?"-":this.m2t(P.leave_estimate_m)))))),u.default.createElement(d.Col,{sm:12},b&&u.default.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:"15px"}},u.default.createElement("img",{src:h,className:"loading"})),p.length<=0&&!b?u.default.createElement("div",{style:{width:"100%",textAlign:"left",marginTop:"10px",marginLeft:"10px"}},"暂无工作记录。"):f.default.map(p,function(t,n){var i=u.default.createElement("div",{style:{fontSize:"12px"}},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:''+(t.recorder.id===a.id?"我":t.recorder.name)+" - "+("absolute"==e.state.displayTimeFormat?y.unix(t.recorded_at).format("YYYY/MM/DD HH:mm:ss"):(0,m.getAgoAt)(t.recorded_at,o))+(1==t.edited_flag?' - 已编辑':"")}}),(t.recorder&&a.id===t.recorder.id&&r.indexOf("delete_self_worklog")!==-1||r.indexOf("delete_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showDelWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-trash",title:"删除"})),(t.recorder&&a.id===t.recorder.id&&r.indexOf("edit_self_worklog")!==-1||r.indexOf("edit_worklog")!==-1)&&u.default.createElement("span",{className:"comments-button comments-edit-button",style:{marginLeft:"7px","float":"right"},onClick:e.showEditWorklog.bind(e,t)},u.default.createElement("i",{className:"fa fa-edit",title:"编辑"}))),l=t.comments?f.default.escape(t.comments):"-";return l=l.replace(/(\r\n)|(\n)/g,"
    "),u.default.createElement(d.Panel,{header:i,key:n,style:{marginBottom:"15px"}},u.default.createElement(d.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,y.unix(t.started_at).format("YYYY/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:l}})))}))),this.state.addWorklogShow&&u.default.createElement(g,{show:!0,issue:i,close:function(){e.setState({addWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,add:E,edit:k,i18n:n}),this.state.delWorklogShow&&u.default.createElement(v,{show:!0,issue:i,close:function(){e.setState({delWorklogShow:!1})},data:this.state.selectedWorklog,loading:w,del:x,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,currentTime:s.PropTypes.number.isRequired,currentUser:s.PropTypes.object.isRequired,permissions:s.PropTypes.array.isRequired,issue:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,original_estimate:s.PropTypes.string,indexLoading:s.PropTypes.bool.isRequired,loading:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,sort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=b,e.exports=t.default}).call(this)}finally{}},1060: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=function(){function e(e,t){for(var n=0;n0?n[r-1].no:-1,a=ro&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},C=function(e){function t(e){o(this,n),s(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={menuShow:!1,menuPullRight:!1,menuDropup:!1},this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleContextMenu=this.handleContextMenu.bind(this),this.getLabelStyle=this.getLabelStyle.bind(this)}a(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.issue,r=t.issueView;w((0,d.findDOMNode)(this)).on("contextmenu",function(t){e.handleContextMenu(t)}),w((0,d.findDOMNode)(this)).on("mouseleave",function(t){null!=t.toElement&&e.handleBlur(t)}),w((0,d.findDOMNode)(this)).on("mouseup",function(t){t.preventDefault(),t.stopPropagation(),2!=t.button&&(e.state.menuShow?e.handleClick(t):r(n.id))})}},{key:"componentWillUnmount",value:function(){w((0,d.findDOMNode)(this)).off("contextmenu"),w((0,d.findDOMNode)(this)).off("mouseleave"),w((0,d.findDOMNode)(this)).off("mouseup")}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.openedIssue,o=n.issue;return!e.openedIssue.id||[e.openedIssue.parent_id,e.openedIssue.id,r.parent_id,r.id].indexOf(o.id)!==-1}},{key:"handleBlur",value:function(e){var t=this;setTimeout(function(){t.setState({menuShow:!1})},200)}},{key:"handleClick",value:function(e){var t=this;setTimeout(function(){t.setState({menuShow:!1})},200)}},{key:"handleContextMenu",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.closeDetail(),this.setState({menuShow:!0,menuPullRight:document.body.scrollWidth-(""+e.pageX)<150,menuDropup:document.body.scrollHeight-(""+e.pageY)<160});var t=(0,d.findDOMNode)(this.refs.menu);t&&(t.style.left=e.pageX+"px",t.style.top=e.pageY+"px")}},{key:"getLabelStyle",value:function(e){var t=this.props.options.labels,n=void 0===t?[]:t,r=m.default.find(n,{name:e}),o={marginTop:"5px",maxWidth:"100%","float":"unset"};return r&&r.bgColor&&(o=i({backgroundColor:r.bgColor,borderColor:r.bgColor,border:"1px solid "+r.bgColor,color:"#fff"},o)),o}},{key:"render",value:function(){var e=this,n=this.props,r=n.index,o=n.issue,a=n.pkey,l=n.draggedIssue,s=n.issueView,u=n.openedIssue,d=n.isDragging,p=n.connectDragSource,f=n.connectDropTarget,h=n.getDraggableActions,g=n.cleanDraggableActions,w=n.issueRank,x=n.setRank,_=n.rankLoading,C=n.closeDetail,S=n.subtasks,T=void 0===S?[]:S,P=n.displayFields,O=void 0===P?[]:P,R=n.epicShow,M=n.inSprint,j=n.inHisSprint,F=n.colNo,q=n.toTop,N=n.toBottom,I=n.removeFromSprint,L=n.moveCard,A=n.options;if(T.length>0)return f(c.default.createElement("div",{style:{opacity:D}},o.mock?c.default.createElement("span",{style:{marginLeft:"5px"}},o.no," - ",o.title):c.default.createElement(t,{openedIssue:u,index:r,issue:o,pkey:a,displayFields:O,epicShow:R,inSprint:M,inHisSprint:j,colNo:F,options:A,closeDetail:C,draggedIssue:l,issueView:s,getDraggableActions:h,cleanDraggableActions:g,issueRank:w,setRank:x,rankLoading:_,toTop:q,toBottom:N,removeFromSprint:I,moveCard:L}),c.default.createElement(y.default,{isSubtaskCol:!0,displayFields:O,epicShow:R,inSprint:M,inHisSprint:j,colNo:F,openedIssue:u,draggedIssue:l,issueView:s,getDraggableActions:h,cleanDraggableActions:g,cards:T,setRank:x,rankLoading:_,pkey:a,closeDetail:C,removeFromSprint:I,options:A})));var D=d?0:1,B={borderLeft:"5px solid "+(m.default.findIndex(A.priorities,{id:o.priority})!==-1?m.default.find(A.priorities,{id:o.priority}).color:"")},H="";o.id==u.id&&(H="#e6f7ff");var W="";o.parent&&o.parent.id&&(W="10px");var z={};o.epic&&(z=m.default.find(A.epics,{id:o.epic}));var V={};return o.resolve_version&&(V=m.default.find(A.versions,{id:o.resolve_version})||{}),p(f(c.default.createElement("div",{className:"board-issue",style:i({},B,{opacity:D,backgroundColor:H,marginLeft:W})},c.default.createElement("div",{className:"board-issue-content"},c.default.createElement("div",{style:{"float":"right"}},c.default.createElement("img",{className:"board-avatar",src:o.assignee&&o.assignee.avatar?k+"/getavatar?fid="+o.assignee.avatar:E})),c.default.createElement("div",null,c.default.createElement("span",{className:"type-abb",title:m.default.findIndex(A.types,{id:o.type})!==-1?m.default.find(A.types,{id:o.type}).name:""},m.default.findIndex(A.types,{id:o.type})!==-1?m.default.find(A.types,{id:o.type}).abb:"-"),c.default.createElement("a",{href:"#",style:"Closed"==o.state?{textDecoration:"line-through"}:{},onClick:function(e){e.preventDefault()}},a," - ",o.no)),c.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},o.title||""),O.length>0&&c.default.createElement("div",{style:{marginTop:"5px"}},m.default.map(O,function(t){if(!m.default.isEmpty(o[t])||m.default.isNumber(o[t])){if("labels"==t)return c.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",fontSize:"12px"}},c.default.createElement("span",{style:{marginRight:"3px",marginTop:"7px","float":"left"}},c.default.createElement("b",null,"标签"),":"),m.default.map(o[t],function(t){ +return c.default.createElement("span",{title:t,className:"issue-label",style:e.getLabelStyle(t)},t)}));var n=function(){var e=m.default.find(A.fields||[],{key:t});if(!e)return{v:void 0};var n="";return"SingleUser"===e.type?n=o[t].name:"MultiUser"===e.type?n=m.default.map(o[t],function(e){return e.name}).join(","):["Select","RadioGroup","SingleVersion"].indexOf(e.type)!==-1?n=m.default.findIndex(e.optionValues||[],{id:o[t]})===-1?"-":m.default.find(e.optionValues,{id:o[t]}).name:["MultiSelect","CheckboxGroup","MultiVersion"].indexOf(e.type)!==-1?!function(){var r=m.default.isArray(o[t])?o[t]:o[t].split(","),a=[];m.default.forEach(r,function(t){var n=m.default.findIndex(e.optionValues||[],{id:t})!==-1?m.default.find(e.optionValues,{id:t}).name:"";n&&a.push(n)}),n=a.length>0?m.default.uniq(a).join(","):"-"}():n="DatePicker"===e.type?b.unix(o[t]).format("YYYY/MM/DD"):"DateTimePicker"===e.type?b.unix(o[t]).format("YYYY/MM/DD HH:mm"):o[t]+("progress"==e.key?"%":""),{v:c.default.createElement("div",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",fontSize:"12px"}},c.default.createElement("span",{style:{marginRight:"3px"}},c.default.createElement("b",null,e.name),":"),c.default.createElement("span",null,n))}}();return"object"==typeof n?n.v:void 0}})),R&&!m.default.isEmpty(z)&&c.default.createElement("div",{className:"epic-title",style:{borderColor:z.bgColor,backgroundColor:z.bgColor,maxWidth:"100%",marginRight:"5px"},title:z.name||"-"},z.name||"-"),R&&!m.default.isEmpty(V)&&c.default.createElement("div",{className:"epic-title",style:{borderColor:"#707070",color:"#707070",backgroundColor:"#fff",maxWidth:"100%"},title:V.name||"-"},V.name||"-")),this.state.menuShow&&c.default.createElement(v.default,{ref:"menu",pullRight:this.state.menuPullRight,dropup:this.state.menuDropup,issueId:o.id,issueNo:o.no,hasRemove:M&&A.permissions&&A.permissions.indexOf("manage_project")!==-1,hasMove:!j&&A.permissions&&A.permissions.indexOf("manage_project")!==-1,issueView:s,toTop:q,toBottom:N,removeFromSprint:I}))))}}],[{key:"propTypes",value:{connectDragSource:u.PropTypes.func.isRequired,connectDropTarget:u.PropTypes.func.isRequired,getDraggableActions:u.PropTypes.func.isRequired,cleanDraggableActions:u.PropTypes.func.isRequired,issueRank:u.PropTypes.func.isRequired,setRank:u.PropTypes.func.isRequired,rankLoading:u.PropTypes.bool.isRequired,closeDetail:u.PropTypes.func.isRequired,draggedIssue:u.PropTypes.object.isRequired,issueView:u.PropTypes.func.isRequired,issue:u.PropTypes.object.isRequired,openedIssue:u.PropTypes.object.isRequired,isDragging:u.PropTypes.bool.isRequired,index:u.PropTypes.number.isRequired,pkey:u.PropTypes.string.isRequired,displayFields:u.PropTypes.array,epicShow:u.PropTypes.bool,inSprint:u.PropTypes.bool,inHisSprint:u.PropTypes.bool,subtasks:u.PropTypes.array,colNo:u.PropTypes.number.isRequired,options:u.PropTypes.object.isRequired,toTop:u.PropTypes.func,toBottom:u.PropTypes.func,removeFromSprint:u.PropTypes.func,moveCard:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,p.DragSource)(function(e){return e.issue.parent&&e.issue.parent.id?e.issue.parent.id+"-"+e.colNo:e.colNo+""},x,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,p.DropTarget)(function(e){return e.inHisSprint||!e.options.permissions||e.options.permissions.indexOf("manage_project")===-1?[]:e.issue.parent&&e.issue.parent.id?[e.issue.parent.id+"-"+e.colNo]:[e.colNo+""]},_,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(u.Component);t.default=C,e.exports=t.default}).call(this)}finally{}},1874: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=function(){function e(e,t){for(var n=0;n0&&"还有 "+(r-o.length)+" 个问题未完成,","确认要置完成此Sprint? ",u.default.createElement("br",null)),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&n[this.state.ecode]),u.default.createElement("img",{src:m,className:a?"loading":"hide"}),u.default.createElement(c.Checkbox,{disabled:a,checked:this.state.isSendMsg,onClick:function(){e.setState({isSendMsg:!e.state.isSendMsg})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"通知项目成员"),u.default.createElement(c.Button,{disabled:a,onClick:this.confirm},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:a,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,sprintNo:s.PropTypes.number.isRequired,total:s.PropTypes.number.isRequired,completedIssues:s.PropTypes.func.isRequired,complete:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1875:function(e,t,n){try{(function(){"use strict";function r(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 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,m.bindActionCreators)(E,e),issueActions:(0,m.bindActionCreators)(x,e),wfActions:(0,m.bindActionCreators)(C,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&this.goto(b.default.head(r).id,"issue")}}},{key:"closeDetailBar",value:function(){this.refs.list&&this.refs.list.closeDetail()}},{key:"render",value:function(){var e=this;if(this.props.project.options){b.default.assign(this.props.issue.options,this.props.project.options),b.default.assign(this.props.issue.options,{epics:this.props.kanban.epics});var t=b.default.find(this.props.kanban.sprints,{status:"active"});if(t){this.props.issue.options.sprints=this.props.issue.options.sprints||[];var n=b.default.findIndex(this.props.issue.options.sprints,{no:t.no});n===-1?this.props.issue.options.sprints.unshift({no:t.no,name:t.name}):this.props.issue.options.sprints[n]={no:t.no,name:t.name}}}var r={};return this.props.issue.options.types&&this.kanban_id&&this.props.kanban.list.length>0&&(r=b.default.find(this.props.kanban.list,{id:this.kanban_id})||{}),p.default.createElement("div",{onMouseUp:this.closeDetailBar.bind(this),style:{overflowY:"hidden",height:"100%",margin:"0px -8px"}},p.default.createElement(T,{ref:"header",changeModel:this.changeModel.bind(this),mode:this.state.mode,curKanban:r,kanbans:this.props.kanban.list,completedSprintNum:this.props.kanban.completedSprintNum,selectedSprint:this.props.kanban.selectedSprint,sprints:this.props.kanban.sprints,versions:this.props.kanban.versions,epics:this.props.kanban.epics,epicLoading:this.props.kanban.epicLoading,indexEpicLoading:this.props.kanban.indexEpicLoading,loading:this.props.kanban.loading||this.props.issue.optionsLoading,getSprintLog:this.getSprintLog.bind(this),sprintLog:this.props.kanban.sprintLog,sprintLogLoading:this.props.kanban.sprintLogLoading,"goto":this.goto,selectedFilter:this.state.filter,selectFilter:function(t){e.setState({filter:t})},index:this.index.bind(this),project:this.props.project.item,createKanban:this.createKanban.bind(this),getSprint:this.getSprint.bind(this),createSprint:this.createSprint.bind(this),createEpic:this.createEpic.bind(this),setEpicSort:this.setEpicSort.bind(this),create:this.create.bind(this),addLabels:this.props.issueActions.addLabels,options:this.props.issue.options,i18n:this.props.i18n}),("issue"==this.state.mode||"backlog"==this.state.mode||"history"==this.state.mode)&&p.default.createElement(P,s({ref:"list",curKanban:r,selectedSprint:this.props.kanban.selectedSprint,sprints:this.props.kanban.sprints,sprintLoading:this.props.kanban.sprintLoading,selectedFilter:this.state.filter,draggedIssue:this.props.kanban.draggedIssue,draggableActions:this.props.kanban.wfactions,getDraggableActions:this.getDraggableActions.bind(this),cleanDraggableActions:this.props.actions.cleanDraggableActions,index:this.index.bind(this),show:this.show.bind(this),edit:this.edit.bind(this),create:this.create.bind(this),setAssignee:this.setAssignee.bind(this),setItemValue:this.setItemValue.bind(this),setLabels:this.setLabels.bind(this),addLabels:this.props.issueActions.addLabels,delFile:this.delFile.bind(this),addFile:this.props.issueActions.addFile,record:this.record.bind(this),forward:this.forward.bind(this),cleanRecord:this.cleanRecord.bind(this),project:this.props.project.item,wfCollection:this.props.workflow.itemSteps||[],wfLoading:this.props.workflow.itemLoading,viewWorkflow:this.viewWorkflow.bind(this),indexComments:this.indexComments.bind(this),sortComments:this.props.issueActions.sortComments,addComments:this.addComments.bind(this),editComments:this.editComments.bind(this),delComments:this.delComments.bind(this),indexWorklog:this.indexWorklog.bind(this),sortWorklog:this.props.issueActions.sortWorklog,addWorklog:this.addWorklog.bind(this),editWorklog:this.editWorklog.bind(this),delWorklog:this.delWorklog.bind(this),indexHistory:this.indexHistory.bind(this),sortHistory:this.props.issueActions.sortHistory,indexGitCommits:this.indexGitCommits.bind(this),sortGitCommits:this.props.issueActions.sortGitCommits,createLink:this.createLink.bind(this),delLink:this.delLink.bind(this),doAction:this.doAction.bind(this),watch:this.watch.bind(this),copy:this.copy.bind(this),move:this.move.bind(this),convert:this.convert.bind(this),resetState:this.resetState.bind(this),del:this.del.bind(this),setRank:this.setRank.bind(this),release:this.release.bind(this),moveSprintIssue:this.moveSprintIssue.bind(this),updateSprint:this.updateSprint.bind(this),publishSprint:this.publishSprint.bind(this),completeSprint:this.completeSprint.bind(this),deleteSprint:this.deleteSprint.bind(this),user:this.props.session.user,i18n:this.props.i18n,layout:this.props.layout,mode:this.state.mode},this.props.issue)),"config"==this.state.mode&&p.default.createElement(R,{config:r,loading:this.props.kanban.configLoading,edit:this.editKanban.bind(this),del:this.delKanban.bind(this),options:this.props.issue.options,i18n:this.props.i18n}),"epic"==this.state.mode&&p.default.createElement(O,{indexLoading:this.props.kanban.indexEpicLoading,loading:this.props.kanban.epicLoading,collection:this.props.kanban.epics,stateOptions:this.props.kanban.epicStates,selectedItem:this.props.kanban.selectedEpicItem,gotoBacklog:this.gotoBacklog.bind(this),gotoIssueList:this.gotoIssueList.bind(this),select:this.props.actions.selectEpic,index:this.indexEpic.bind(this),create:this.createEpic.bind(this),update:this.editEpic.bind(this), +del:this.delEpic.bind(this),options:this.props.issue.options,i18n:this.props.i18n}))}}],[{key:"contextTypes",value:{router:d.PropTypes.object.isRequired},enumerable:!0},{key:"propTypes",value:{i18n:d.PropTypes.object.isRequired,session:d.PropTypes.object.isRequired,layout:d.PropTypes.object.isRequired,actions:d.PropTypes.object.isRequired,issueActions:d.PropTypes.object.isRequired,wfActions:d.PropTypes.object.isRequired,params:d.PropTypes.object.isRequired,kanban:d.PropTypes.object.isRequired,project:d.PropTypes.object.isRequired,issue:d.PropTypes.object.isRequired,workflow:d.PropTypes.object.isRequired},enumerable:!0}]);var n=t;return t=(0,f.connect)(function(e){var t=e.i18n,n=e.session,r=e.layout,o=e.kanban,a=e.project,i=e.issue,l=e.workflow;return{i18n:t,session:n,layout:r,kanban:o,project:a,issue:i,workflow:l}},l)(t)||t,t=(0,h.DragDropContext)(g.default)(t)||t}(d.Component);t.default=M,e.exports=t.default}).call(this)}finally{}},1876: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=function(){function e(e,t){for(var n=0;n")}})))))):"scrum"==i.type&&"history"==r&&(X=u.default.createElement(c.Popover,{id:"popover-trigger-click",style:{maxWidth:"500px",padding:"15px 0px",lineHeight:"25px"}},u.default.createElement(c.Grid,null,u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"Sprint No"),u.default.createElement(c.Col,{sm:9},C.no||"")),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"名称"),u.default.createElement(c.Col,{sm:9},C.name||"")),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"期间"),u.default.createElement(c.Col,{sm:9},C.start_time&&k.unix(C.start_time).format("YYYY/MM/DD"),u.default.createElement("span",{style:{margin:"0 4px"}},"~"),C.complete_time&&k.unix(C.complete_time).format("YYYY/MM/DD"))),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"实际完成时间"),u.default.createElement(c.Col,{sm:9},C.real_complete_time&&k.unix(C.real_complete_time).format("YYYY/MM/DD HH:mm"))),u.default.createElement(c.Row,null,u.default.createElement(c.Col,{sm:3,componentClass:c.ControlLabel,style:{textAlign:"right"}},"描述"),u.default.createElement(c.Col,{sm:9,style:{overflowY:"scroll",maxHeight:"450px"},dangerouslySetInnerHTML:{__html:m.default.escape(C.description||"-").replace(/(\r\n)|(\n)/g,"
    ")}}))))),u.default.createElement("div",{className:"kanban-header"},u.default.createElement("div",{style:{height:"0px",display:this.state.hideHeader?"block":"none",textAlign:"right"}},u.default.createElement("span",{title:"展示看板头"},u.default.createElement(c.Button,{onClick:this.showHeader.bind(this),style:{marginTop:"-37px"}},u.default.createElement("i",{className:"fa fa-angle-double-down","aria-hidden":"true"})))),u.default.createElement("div",{id:"main-header",style:{height:"49px",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{style:{display:"inline-block",fontSize:"19px",marginTop:"5px"}},q&&u.default.createElement("img",{src:x,className:"loading"}),!q&&!m.default.isEmpty(i)&&i.name||"",!q&&m.default.isEmpty(i)&&s.length>0&&u.default.createElement("span",{style:{fontSize:"14px"}},"该看板不存在,请重试或选择其它看板。"),!q&&m.default.isEmpty(i)&&s.length<=0&&u.default.createElement("span",{style:{fontSize:"14px"}},"该项目暂未定义看板,",G.permissions&&G.permissions.indexOf("manage_project")!==-1?u.default.createElement("span",null,"请点击 ",u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({createKanbanModalShow:!0})}},"创建看板"),"。"):"请联系项目管理员创建。")),u.default.createElement("div",{style:{"float":"right",display:"inline-block"}},G.permissions&&G.permissions.indexOf("create_issue")!==-1&&!m.default.isEmpty(i)&&("kanban"==i.type&&"issue"===r||"backlog"===r)&&u.default.createElement(c.Button,{style:{marginRight:"10px"},bsStyle:"primary",onClick:function(){e.setState({createIssueModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 创建问题"),!m.default.isEmpty(i)&&u.default.createElement(c.ButtonGroup,{style:{marginRight:"10px"}},"kanban"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"issue"==r&&"#eee"},onClick:function(){e.changeModel("issue")}},"看板"),"scrum"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"epic"==r&&"#eee"},onClick:function(){e.changeModel("epic")}},"Epic"),"scrum"==i.type&&E>0&&u.default.createElement(c.Button,{style:{backgroundColor:"history"==r&&"#eee"},onClick:function(){e.changeModel("history")}},"Sprint 历史"),"scrum"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"backlog"==r&&"#eee"},onClick:function(){e.changeModel("backlog")}},"Backlog"),"scrum"==i.type&&u.default.createElement(c.Button,{style:{backgroundColor:"issue"==r&&"#eee"},onClick:function(){e.changeModel("issue")}},"活动Sprint"),u.default.createElement(c.Button,{style:{backgroundColor:"config"==r&&"#eee"},onClick:function(){e.changeModel("config")}},"配置")),s.length>0&&u.default.createElement(c.DropdownButton,{pullRight:!0,title:"列表",onSelect:this.changeKanban.bind(this)},m.default.map(s,function(e,t){return u.default.createElement(c.MenuItem,{key:t,eventKey:e.id},u.default.createElement("div",{style:{display:"inline-block",width:"20px",textAlign:"left"}},i.id===e.id&&u.default.createElement("i",{className:"fa fa-check"})),u.default.createElement("span",null,e.name))}),G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement(c.MenuItem,{divider:!0}),G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement(c.MenuItem,{eventKey:"create"},s.length>0&&u.default.createElement("div",{style:{display:"inline-block",width:"20px"}}),u.default.createElement("span",null,"创建看板"))))),"issue"===r&&!q&&!m.default.isEmpty(i)&&u.default.createElement("div",{style:{height:"45px",borderBottom:"2px solid #f5f5f5",display:this.state.hideHeader?"none":"block"}},"scrum"==i.type&&!m.default.isEmpty($)&&u.default.createElement(c.OverlayTrigger,{trigger:"click",rootClose:!0,placement:"bottom",overlay:Z},u.default.createElement("div",{className:"popover-active-sprint"},u.default.createElement("div",{className:"active-sprint-name",title:$.name||""},$.name||""," ",u.default.createElement("i",{className:"fa fa-caret-down","aria-hidden":"true"})))),u.default.createElement("span",{style:{"float":"left",marginTop:"7px",marginRight:"5px"}},"过滤器:"),u.default.createElement(c.Nav,{bsStyle:"pills",style:{"float":"left",lineHeight:"1.0"},activeKey:o,onSelect:this.handleSelect.bind(this)},u.default.createElement(c.NavItem,{eventKey:"all",href:"#"},"全部"),m.default.map(i.filters||[],function(e,t){return u.default.createElement(c.NavItem,{key:t,eventKey:t,href:"#"},e.name)})),u.default.createElement("span",{style:{"float":"right"},title:"隐藏看板头"},u.default.createElement(c.Button,{onClick:this.hideHeader.bind(this)},u.default.createElement("i",{className:"fa fa-angle-double-up","aria-hidden":"true"}))),"scrum"==i.type&&!m.default.isEmpty($)&&u.default.createElement("span",{style:{"float":"right",marginRight:"10px"},title:"燃尽图"},u.default.createElement(c.Button,{onClick:function(){e.setState({burndownModalShow:!0})}},u.default.createElement("i",{className:"fa fa-line-chart","aria-hidden":"true"})," 燃尽图")),u.default.createElement("span",{style:{"float":"right",marginRight:"10px"},title:"更多过滤"},u.default.createElement(c.Button,{onClick:function(){e.setState({moreFilterModalShow:!0})}},u.default.createElement("i",{className:"fa fa-filter","aria-hidden":"true"})," 更多过滤",m.default.isEmpty(this.state.query)?"":"..."))),"backlog"===r&&!m.default.isEmpty(i)&&u.default.createElement("div",{style:{height:"45px",borderBottom:"2px solid #f5f5f5",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{className:"exchange-icon",style:{"float":"left",marginTop:"7px"},onClick:this.changeFilterMode.bind(this),title:"切换至"+("epic"==this.state.backlogFilterMode?"版本":"Epic")},u.default.createElement("i",{className:"fa fa-retweet"})),u.default.createElement("span",{style:{"float":"left",marginTop:"7px",marginRight:"5px"}},"epic"===this.state.backlogFilterMode?"Epic":"版本","过滤:"),"epic"===this.state.backlogFilterMode?u.default.createElement("div",{style:{display:"inline-block","float":"left",width:"28%"}},u.default.createElement(p.default,{simpleValue:!0,options:U,value:"all"==o?null:o,onChange:function(t){e.handleSelectEV(t)},placeholder:"选择Epic"})):u.default.createElement("div",{style:{display:"inline-block","float":"left",width:"28%"}},u.default.createElement(p.default,{simpleValue:!0,options:K,value:"all"==o?null:o,onChange:function(t){e.handleSelectEV(t)},placeholder:"选择版本"})),u.default.createElement("span",{style:{"float":"right"},title:"隐藏看板头"},u.default.createElement(c.Button,{onClick:this.hideHeader.bind(this)},u.default.createElement("i",{className:"fa fa-angle-double-up","aria-hidden":"true"}))),G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement("div",{style:{display:"inline-block","float":"right",marginRight:"10px"}},u.default.createElement(c.Button,{bsStyle:"primary",onClick:d},u.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"})," 创建Sprint"))),"history"===r&&!m.default.isEmpty(i)&&u.default.createElement("div",{style:{height:"45px",borderBottom:"2px solid #f5f5f5",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{className:"exchange-icon",style:{"float":"left",marginTop:"7px"}},"Sprint"),u.default.createElement("div",{style:{display:"inline-block","float":"left",width:"28%"}},u.default.createElement(p.default,{simpleValue:!0,clearable:!1,options:Y,value:"all"==o?E:o,onChange:function(t){e.handleSelectSprint(t)},placeholder:"选择Sprint"})),!m.default.isEmpty(C)&&u.default.createElement(c.OverlayTrigger,{trigger:"click",rootClose:!0,placement:"bottom",overlay:X},u.default.createElement("div",{style:{"float":"left",margin:"7px 10px",cursor:"pointer"}},u.default.createElement("i",{className:"fa fa-info-circle","aria-hidden":"true"}))),u.default.createElement("span",{style:{"float":"right"},title:"隐藏看板头"},u.default.createElement(c.Button,{onClick:this.hideHeader.bind(this)},u.default.createElement("i",{className:"fa fa-angle-double-up","aria-hidden":"true"}))),u.default.createElement("span",{style:{"float":"right",marginRight:"10px"},title:"燃尽图"},u.default.createElement(c.Button,{onClick:function(){e.setState({hisBurndownModalShow:!0})}},u.default.createElement("i",{className:"fa fa-line-chart","aria-hidden":"true"})," 燃尽图"))),"epic"===r&&!m.default.isEmpty(i)&&G.permissions&&G.permissions.indexOf("manage_project")!==-1&&u.default.createElement("div",{style:{height:"45px",display:this.state.hideHeader?"none":"block"}},u.default.createElement("div",{style:{display:"inline-block","float":"left",marginRight:"10px"}},u.default.createElement(c.Button,{disabled:I,onClick:function(){e.setState({createEpicModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"})," 新建Epic")),!I&&u.default.createElement("div",{style:{display:"inline-block","float":"left",marginRight:"10px"}},u.default.createElement(c.Button,{onClick:function(){e.setState({sortCardsModalShow:!0})}},u.default.createElement("i",{className:"fa fa-edit","aria-hidden":"true"})," 编辑顺序"))),this.state.createKanbanModalShow&&u.default.createElement(y,{show:!0,close:this.createKanbanModalClose.bind(this),create:a,"goto":V,kanbans:s,i18n:n}),this.state.createIssueModalShow&&u.default.createElement(h,{show:!0,close:this.createIssueModalClose.bind(this),options:G,create:W,addLabels:z,loading:q,project:H,i18n:n}),this.state.createEpicModalShow&&u.default.createElement(g,{show:!0,close:this.createEpicModalClose.bind(this),create:P,collection:M,i18n:n}),this.state.sortCardsModalShow&&u.default.createElement(v,{show:!0,mode:"Epic",close:this.sortCardsModalClose.bind(this),cards:M,setSort:O,sortLoading:N,i18n:n}),this.state.burndownModalShow&&u.default.createElement(w,{show:!0,getSprintLog:L,loading:B,data:D,close:this.burndownModalClose.bind(this),no:$.no}),this.state.moreFilterModalShow&&u.default.createElement(b,{show:!0,search:this.moreSearch.bind(this),query:this.state.query,options:G,close:this.moreFilterModalClose.bind(this)}),this.state.hisBurndownModalShow&&u.default.createElement(w,{show:!0,getSprintLog:L,loading:B,data:D,close:this.hisBurndownModalClose.bind(this),no:o}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,changeModel:s.PropTypes.func.isRequired,mode:s.PropTypes.string.isRequired,selectedFilter:s.PropTypes.string.isRequired,create:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,createKanban:s.PropTypes.func.isRequired,getSprint:s.PropTypes.func.isRequired,createSprint:s.PropTypes.func.isRequired,createEpic:s.PropTypes.func.isRequired,setEpicSort:s.PropTypes.func.isRequired,project:s.PropTypes.object,curKanban:s.PropTypes.object,kanbans:s.PropTypes.array,completedSprintNum:s.PropTypes.number,selectedSprint:s.PropTypes.object,sprints:s.PropTypes.array,epics:s.PropTypes.array,versions:s.PropTypes.array,loading:s.PropTypes.bool,epicLoading:s.PropTypes.bool,indexEpicLoading:s.PropTypes.bool,getSprintLog:s.PropTypes.func,sprintLog:s.PropTypes.object,sprintLogLoading:s.PropTypes.bool,"goto":s.PropTypes.func,selectFilter:s.PropTypes.func,index:s.PropTypes.func,options:s.PropTypes.object},enumerable:!0}]),t}(s.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},1879: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=function(){function e(e,t){for(var n=0;n=f.default.ceil(s/2)&&(u={left:h(".doc-container").offset().left}),d.next=14,regeneratorRuntime.awrap(o(e,u));case 14:c=d.sent,0===c&&a();case 16:case"end":return d.stop()}},null,this)}},{key:"componentDidMount",value:function(){var e=h(window).height();"none"==h("#main-header").css("display")?h(".board-container").css("height",e-28-50):h(".board-container").css("height",e-120-50),h(window).resize(function(){var e=h(window).height();"none"==h("#main-header").css("display")?h(".board-container").css("height",e-28-50):h(".board-container").css("height",e-120-50)}),h(".board-container").scroll(function(){h(".board-zone-overlay").css("top",f.default.max([h(".board-container").scrollTop(),46]))})}},{key:"operateBacklog",value:function(e){var t=e.split("-").pop();e.indexOf("view")!==-1?this.setState({viewSprintShow:!0,curSprintNo:t-0}):e.indexOf("edit")!==-1?this.setState({editSprintShow:!0,curSprintNo:t-0}):e.indexOf("publish")!==-1?this.setState({publishSprintShow:!0,curSprintNo:t-0}):e.indexOf("delete")!==-1&&this.setState({deleteSprintShow:!0,curSprintNo:t-0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.layout,o=t.curKanban,a=t.selectedSprint,i=t.sprints,l=t.sprintLoading,s=t.mode,d=t.draggedIssue,p=t.draggableActions,m=t.getDraggableActions,h=t.cleanDraggableActions,O=t.collection,R=t.indexLoading,M=t.wfCollection,j=t.wfLoading,F=t.viewWorkflow,q=t.indexComments,N=t.sortComments,I=t.addComments,L=t.editComments,A=t.delComments,D=t.commentsCollection,B=t.commentsIndexLoading,H=t.commentsLoading,W=t.commentsItemLoading,z=t.commentsLoaded,V=t.indexWorklog,G=t.worklogSort,U=t.sortWorklog,K=t.addWorklog,Y=t.editWorklog,Z=t.delWorklog,X=t.worklogCollection,$=t.worklogIndexLoading,Q=t.worklogLoading,J=t.worklogLoaded,ee=t.indexHistory,te=t.sortHistory,ne=t.historyCollection,re=t.historyIndexLoading,oe=t.historyLoaded,ae=t.indexGitCommits,ie=t.sortGitCommits,le=t.gitCommitsCollection,se=t.gitCommitsIndexLoading,ue=t.gitCommitsLoaded,ce=t.itemData,de=t.project,pe=t.options,fe=t.loading,me=t.itemLoading,he=t.show,ye=t.detailFloatStyle,ge=t.edit,ve=t.create,be=t.setAssignee,we=t.setItemValue,Ee=t.setLabels,ke=t.addLabels,xe=t.fileLoading,_e=t.delFile,Ce=t.addFile,Se=t.record,Te=t.forward,Pe=(t.cleanRecord,t.visitedIndex),Oe=t.visitedCollection,Re=t.createLink,Me=t.delLink,je=t.linkLoading,Fe=t.watch,qe=t.copy,Ne=t.move,Ie=t.convert,Le=t.resetState,Ae=t.del,De=t.doAction,Be=t.selectedFilter,He=t.setRank,We=t.rankLoading,ze=t.release,Ve=t.updateSprint,Ge=t.publishSprint,Ue=t.completeSprint,Ke=t.deleteSprint,Ye=t.moveSprintIssue,Ze=t.user,Xe=u.default.createElement("span",null,u.default.createElement("i",{className:"fa fa-ellipsis-h"})),$e=[],Qe=[];return f.default.isEmpty(o)||("backlog"==s?!function(){$e=f.default.clone(i||[]),$e.unshift({no:0,name:"Backlog"}),Qe[0]=[],f.default.forEach(i,function(e,t){Qe[t+1]=[]});var e=[];f.default.forEach(i,function(t,n){f.default.forEach(O,function(r){(o.query&&o.query.subtask||!r.parent||!r.parent.id)&&f.default.indexOf(t.issues,r.no)!==-1&&(Qe[n+1].push(r),e.push(r.no))})}),f.default.forEach(O,function(t){(o.query&&o.query.subtask||!t.parent||!t.parent.id)&&f.default.indexOf(e,t.no)===-1&&Qe[0].push(t)})}():"history"==s?($e=[{no:0,name:"未完成"},{no:1,name:"已完成"}],Qe[0]=[],Qe[1]=[],f.default.isEmpty(a)||f.default.forEach(O,function(e){(o.query&&o.query.subtask||!e.parent||!e.parent.id)&&(f.default.indexOf(a.completed_issues||[],e.no)!==-1?Qe[1].push(e):f.default.indexOf(a.incompleted_issues||[],e.no)!==-1&&Qe[0].push(e))})):($e=o.columns||[],f.default.forEach(o.columns,function(e,t){Qe[t]=[]}),f.default.forEach(o.columns,function(e,t){f.default.forEach(O,function(n){if(o.query&&o.query.subtask||!n.parent||!n.parent.id)return f.default.indexOf(e.states,n.state)!==-1?void Qe[t].push(n):void 0})}))),u.default.createElement("div",{className:"board-container"},u.default.createElement("div",{className:"board-overlay-waiting",style:{display:!this.state.detailBarShow&&me?"block":"none"}},u.default.createElement("img",{src:y,className:"loading board-loading"})),!f.default.isEmpty(o)&&R&&u.default.createElement("div",{style:{marginTop:"20px",width:"100%",textAlign:"center"}},u.default.createElement("img",{src:y,className:"loading"})),!f.default.isEmpty(o)&&!R&&u.default.createElement("div",{className:"board-pool"},u.default.createElement("div",{className:"board-column-header-group"},u.default.createElement("ul",{className:"board-column-header"},f.default.map($e,function(t,n){return u.default.createElement("li",{key:n,className:"board-column",style:{background:"issue"==s&&"all"===Be?t.max&&Qe[n].length>t.max?"#d04437":t.min&&Qe[n].length0&&"all"==Be&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&u.default.createElement("a",{href:"#",style:{"float":"right"},onClick:function(t){t.preventDefault(),e.setState({selectVersionShow:!0})}},"发布..."),"issue"==s&&"scrum"==o.type&&n==$e.length-1&&"all"==Be&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&f.default.findIndex(i,{status:"active"})!==-1&&u.default.createElement("a",{href:"#",style:{"float":"right"},onClick:function(t){t.preventDefault(),e.setState({completeSprintShow:!0})}},"完成..."),"backlog"==s&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&0!=n&&u.default.createElement("div",{style:{"float":"right"}},u.default.createElement(c.DropdownButton,{bsStyle:"default",title:Xe,noCaret:!0,style:{padding:"2px 7px"},onSelect:e.operateBacklog.bind(e),pullRight:!0},u.default.createElement(c.MenuItem,{disabled:Qe[n].length<=0,eventKey:"view-"+t.no},"工作量查看"),u.default.createElement(c.MenuItem,{eventKey:"edit-"+t.no},"编辑"),"waiting"==t.status&&1==n&&u.default.createElement(c.MenuItem,{disabled:Qe[n].length<=0,eventKey:"publish-"+t.no},"启动"),"waiting"==t.status&&u.default.createElement(c.MenuItem,{eventKey:"delete-"+t.no},"删除"))),"backlog"==s&&"active"==t.status&&u.default.createElement("span",null," - ",u.default.createElement("b",null,"活动中")))}))),u.default.createElement("div",{className:"board-columns"},f.default.map($e,function(t,n){return u.default.createElement(b,{key:n,colNo:n,displayFields:o.display_fields||[],epicShow:"backlog"==s||"history"==s,inSprint:"issue"==s&&"scrum"==o.type,inHisSprint:"history"==s,subtaskShow:o.query&&o.query.subtask&&!0,openedIssue:e.state.detailBarShow?ce:{},draggedIssue:f.default.find(O,{id:d})||{},issueView:e.issueView.bind(e),getDraggableActions:m,cleanDraggableActions:h,setRank:He,rankLoading:We,cards:Qe[n],pkey:de.key,closeDetail:e.quickCloseDetail.bind(e),removeFromSprint:e.removeFromSprint.bind(e),options:pe})})),"issue"==s&&u.default.createElement("div",{className:"board-zone-overlay",style:{top:"46px"}},u.default.createElement("div",{className:"board-zone-overlay-table"},f.default.map($e,function(t,n){return u.default.createElement(w,{key:n,columns:$e,isEmpty:!(d&&f.default.findIndex(Qe[n],{id:d})===-1),draggedIssue:f.default.find(O,{id:d})||{},draggableActions:p,doAction:De,workflowScreenShow:e.workflowScreenShow.bind(e),options:pe,acceptStates:t.states||[]})}))),"backlog"==s&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1&&u.default.createElement("div",{className:"board-zone-overlay",style:{top:"46px"}},u.default.createElement("div",{className:"board-zone-overlay-table"},f.default.map($e,function(t,n){return u.default.createElement(E,{key:n,sprintNo:t.no,columns:$e,isEmpty:!(d&&f.default.findIndex(Qe[n],{id:d})===-1&&pe.permissions&&pe.permissions.indexOf("manage_project")!==-1),draggedIssue:f.default.find(O,{id:d})||{},moveSprintIssue:e.moveSprintIssue.bind(e),options:pe})})))),!f.default.isEmpty(o)&&!R&&"issue"==s&&"scrum"==o.type&&f.default.findIndex(i,{status:"active"})===-1&&O.length<=0&&u.default.createElement("div",{style:{marginTop:"20px",width:"100%",textAlign:"center"}},u.default.createElement("span",null,"暂无活动的Sprint")),this.state.detailBarShow&&u.default.createElement(g,{i18n:n,layout:r,edit:ge,create:ve,del:Ae,setAssignee:be,setItemValue:we,setLabels:Ee,addLabels:ke,close:this.closeDetail.bind(this),options:pe,data:ce,record:Se,forward:Te,visitedIndex:Pe,visitedCollection:Oe,issueCollection:"history"==s?[]:f.default.findIndex(Qe[this.state.curColNo]||[],{no:ce.no})===-1?[]:Qe[this.state.curColNo],show:he,detailFloatStyle:ye,itemLoading:me,loading:fe,fileLoading:xe,project:de,delFile:_e,addFile:Ce,wfCollection:M,wfLoading:j,viewWorkflow:F,indexComments:q,sortComments:N,commentsCollection:D,commentsIndexLoading:B,commentsLoading:H,commentsItemLoading:W,commentsLoaded:z,addComments:I,editComments:L,delComments:A,indexWorklog:V,worklogSort:G,sortWorklog:U,worklogCollection:X,worklogIndexLoading:$,worklogLoading:Q,worklogLoaded:J,addWorklog:K,editWorklog:Y,delWorklog:Z,indexHistory:ee,sortHistory:te,historyCollection:ne,historyIndexLoading:re,historyLoaded:oe,indexGitCommits:ae,sortGitCommits:ie,gitCommitsCollection:le,gitCommitsIndexLoading:se,gitCommitsLoaded:ue,linkLoading:je,createLink:Re,delLink:Me,watch:Fe,copy:qe,move:Ne,convert:Ie,resetState:Le,doAction:De,user:Ze}),this.state.workflowScreenShow&&u.default.createElement(v,{show:!0,close:this.workflowScreenModalClose.bind(this),options:pe,edit:ge,loading:fe,project:de,data:f.default.extend(f.default.find(O,{id:this.state.drop_issue_id}),{wfactions:p}),action_id:this.state.action_id,doAction:De,isFromWorkflow:!0,i18n:n}),this.state.selectVersionShow&&u.default.createElement(k,{show:!0,options:pe,close:this.selectVersionModalClose.bind(this),release:ze,releasedIssues:f.default.last(Qe)||[],i18n:n}),this.state.publishSprintShow&&u.default.createElement(x,{show:!0,close:this.publishSprintModalClose.bind(this),sprint:f.default.find(i,{no:this.state.curSprintNo}),publish:Ge,i18n:n}),this.state.deleteSprintShow&&u.default.createElement(_,{show:!0,close:this.deleteSprintModalClose.bind(this),data:f.default.find(i,{no:this.state.curSprintNo}),del:Ke,loading:l,i18n:n}),this.state.completeSprintShow&&u.default.createElement(C,{show:!0,close:this.completeSprintModalClose.bind(this),loading:l,sprintNo:f.default.find(i,{status:"active"})?f.default.find(i,{status:"active"}).no:0,total:f.default.flatten(Qe).length,complete:Ue,completedIssues:f.default.last(Qe)||[],i18n:n}),this.state.moveIssueShow&&u.default.createElement(S,{show:!0,close:this.moveIssueModalClose.bind(this),loading:l,move:Ye,values:this.state.movedData,i18n:n}),this.state.viewSprintShow&&u.default.createElement(T,{show:!0,close:this.viewSprintModalClose.bind(this),sprintNo:this.state.curSprintNo,sprints:i,collection:O}),this.state.editSprintShow&&u.default.createElement(P,{show:!0,update:Ve,close:this.editSprintModalClose.bind(this),data:f.default.find(i,{no:this.state.curSprintNo}),i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,curKanban:s.PropTypes.object.isRequired,selectedSprint:s.PropTypes.object.isRequired,sprints:s.PropTypes.array.isRequired,sprintLoading:s.PropTypes.bool.isRequired,mode:s.PropTypes.string.isRequired,draggedIssue:s.PropTypes.string.isRequired,draggableActions:s.PropTypes.array.isRequired,getDraggableActions:s.PropTypes.func.isRequired,cleanDraggableActions:s.PropTypes.func.isRequired,collection:s.PropTypes.array.isRequired,indexLoading:s.PropTypes.bool.isRequired,index:s.PropTypes.func.isRequired,wfCollection:s.PropTypes.array.isRequired,wfLoading:s.PropTypes.bool.isRequired,viewWorkflow:s.PropTypes.func.isRequired,indexComments:s.PropTypes.func.isRequired,sortComments:s.PropTypes.func.isRequired,addComments:s.PropTypes.func.isRequired,editComments:s.PropTypes.func.isRequired,delComments:s.PropTypes.func.isRequired,commentsCollection:s.PropTypes.array.isRequired,commentsIndexLoading:s.PropTypes.bool.isRequired,commentsLoading:s.PropTypes.bool.isRequired,commentsItemLoading:s.PropTypes.bool.isRequired,commentsLoaded:s.PropTypes.bool.isRequired,indexWorklog:s.PropTypes.func.isRequired,worklogSort:s.PropTypes.string.isRequired,sortWorklog:s.PropTypes.func.isRequired,addWorklog:s.PropTypes.func.isRequired,editWorklog:s.PropTypes.func.isRequired,delWorklog:s.PropTypes.func.isRequired,worklogCollection:s.PropTypes.array.isRequired,worklogIndexLoading:s.PropTypes.bool.isRequired,worklogLoading:s.PropTypes.bool.isRequired,worklogLoaded:s.PropTypes.bool.isRequired,indexHistory:s.PropTypes.func.isRequired,sortHistory:s.PropTypes.func.isRequired,historyCollection:s.PropTypes.array.isRequired,historyIndexLoading:s.PropTypes.bool.isRequired,historyLoaded:s.PropTypes.bool.isRequired,indexGitCommits:s.PropTypes.func.isRequired,sortGitCommits:s.PropTypes.func.isRequired,gitCommitsCollection:s.PropTypes.array.isRequired,gitCommitsIndexLoading:s.PropTypes.bool.isRequired,gitCommitsLoaded:s.PropTypes.bool.isRequired,itemData:s.PropTypes.object.isRequired,project:s.PropTypes.object,options:s.PropTypes.object,loading:s.PropTypes.bool.isRequired,itemLoading:s.PropTypes.bool.isRequired,show:s.PropTypes.func.isRequired,detailFloatStyle:s.PropTypes.object,del:s.PropTypes.func.isRequired,edit:s.PropTypes.func.isRequired,create:s.PropTypes.func.isRequired,copy:s.PropTypes.func.isRequired,move:s.PropTypes.func.isRequired,convert:s.PropTypes.func.isRequired,resetState:s.PropTypes.func.isRequired,setAssignee:s.PropTypes.func.isRequired,setItemValue:s.PropTypes.func.isRequired,setLabels:s.PropTypes.func.isRequired,addLabels:s.PropTypes.func.isRequired,fileLoading:s.PropTypes.bool.isRequired,delFile:s.PropTypes.func.isRequired,addFile:s.PropTypes.func.isRequired,record:s.PropTypes.func.isRequired,forward:s.PropTypes.func.isRequired,cleanRecord:s.PropTypes.func.isRequired,visitedIndex:s.PropTypes.number.isRequired,visitedCollection:s.PropTypes.array.isRequired,createLink:s.PropTypes.func.isRequired,delLink:s.PropTypes.func.isRequired,linkLoading:s.PropTypes.bool.isRequired,doAction:s.PropTypes.func.isRequired,watch:s.PropTypes.func.isRequired,selectedFilter:s.PropTypes.string.isRequired,setRank:s.PropTypes.func.isRequired,rankLoading:s.PropTypes.bool.isRequired,release:s.PropTypes.func.isRequired,updateSprint:s.PropTypes.func.isRequired,publishSprint:s.PropTypes.func.isRequired,completeSprint:s.PropTypes.func.isRequired,deleteSprint:s.PropTypes.func.isRequired,moveSprintIssue:s.PropTypes.func.isRequired,user:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=O,e.exports=t.default}).call(this)}finally{}},1880: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=function(){function e(e,t){for(var n=0;n1&&(t.name=t.name+" - "+e.name),p.push(i({},e,{state:t}))}});var m=170;"none"==y("#main-header").css("display")&&(m=78);var g=y(window).height(),v=f.default.min([g-m-10-f.default.max([46-y(".board-container").scrollTop(),0]),y(".board-columns").height()])/f.default.max([p.length,1]);return c.default.createElement("div",{className:"board-zone-overlay-column",style:{pointerEvents:t?"none":"auto"}},c.default.createElement("div",{className:"board-zone-table"},c.default.createElement("div",{className:"board-zone-row"},!t&&f.default.map(p,function(e,t){return c.default.createElement(h.default,{key:t,columns:a,draggedIssue:r,doAction:s,workflowScreenShow:u,dragAction:e,height:v})}))))}}],[{key:"propTypes",value:{columns:u.PropTypes.array.isRequired,isEmpty:u.PropTypes.bool.isRequired,draggableActions:u.PropTypes.array.isRequired,doAction:u.PropTypes.func.isRequired,workflowScreenShow:u.PropTypes.func.isRequired,draggedIssue:u.PropTypes.object,options:u.PropTypes.object.isRequired,acceptStates:u.PropTypes.array.isRequired},enumerable:!0}]),t}(u.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1882: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;te.complete_time&&(n.start_time="开始时间要早于结束时间"),n},w=function(e){function t(e){o(this,n),s(Object.getPrototypeOf(n.prototype),"constructor",this).call(this,e),this.state={ecode:0,isSendMsg:!0},this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}a(t,e),l(t,[{key:"handleSubmit",value:function(){var e,t,n,r,o,a;return regeneratorRuntime.async(function(i){for(;;)switch(i.prev=i.next){case 0:return e=this.props,t=e.values,n=e.publish,r=e.sprint,o=e.close,t.start_time&&(t.start_time=parseInt(g(t.start_time).startOf("day").format("X"))),t.complete_time&&(t.complete_time=parseInt(g(t.complete_time).endOf("day").format("X"))),t.isSendMsg=this.state.isSendMsg,i.next=10,regeneratorRuntime.awrap(n(t,r.no));case 10:a=i.sent,this.setState({ecode:a}),0===a&&(y.notify.show("启动完成。","success",2e3),o());case 13:case"end":return i.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,t=e.initializeForm,n=e.sprint;t({name:n.name||"",start_time:g(),complete_time:g().add(15,"days"),description:n.description||""})}},{key:"render",value:function(){var e=this,t=this.props,n=t.sprint,r=t.i18n.errMsg,o=t.fields,a=o.name,l=o.start_time,s=o.complete_time,u=o.description,d=t.handleSubmit,f=t.invalid,m=t.submitting;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"},"发布 - ",n.name)),c.default.createElement("form",{onSubmit:d(this.handleSubmit),onKeyUp:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,{style:{maxHeight:"580px"}},c.default.createElement(p.FormGroup,{validationState:a.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(p.FormControl,i({disabled:m,type:"text"},a,{placeholder:"名称"})),a.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},a.error)),c.default.createElement("div",null,c.default.createElement(p.FormGroup,{style:{width:"45%",display:"inline-block"},validationState:l.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"开始时间"),c.default.createElement(h.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:l.value,onChange:function(e){l.onChange(e)}}),l.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},l.error)),c.default.createElement(p.FormGroup,{style:{width:"45%",display:"inline-block","float":"right"},validationState:s.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"结束时间"),c.default.createElement(h.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:s.value,onChange:function(e){s.onChange(e)}}),s.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},s.error))),c.default.createElement(p.FormGroup,null,c.default.createElement(p.ControlLabel,null,"描述"),c.default.createElement(p.FormControl,i({disabled:m,componentClass:"textarea",style:{height:"200px"}},u,{placeholder:"描述"})))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!m&&r[this.state.ecode]),c.default.createElement("img",{src:v,className:m?"loading":"hide"}),c.default.createElement(p.Checkbox,{disabled:m,checked:this.state.isSendMsg,onClick:function(){e.setState({isSendMsg:!e.state.isSendMsg})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"通知项目成员"),c.default.createElement(p.Button,{disabled:m||f,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:m,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.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,initializeForm:u.PropTypes.func.isRequired,sprint:u.PropTypes.object.isRequired,publish:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"publish",fields:["name","start_time","complete_time","description"],validate:b})(t)||t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1883: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&&u.default.createElement("tr",null,u.default.createElement("td",null,"未分配的"),u.default.createElement("td",null,s.issue_count),u.default.createElement("td",null,s.story_points)),p.default.map(d,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,u.default.createElement("div",{style:{"float":"left"}},u.default.createElement("img",{className:"board-avatar",src:e.assignee&&e.assignee.avatar?m+"/getavatar?fid="+e.assignee.avatar:f}),u.default.createElement("span",{style:{marginLeft:"5px"}},e.assignee.name))),u.default.createElement("td",{style:{verticalAlign:"middle"}},u.default.createElement("span",null,e.issue_count)),u.default.createElement("td",{style:{verticalAlign:"middle"}},u.default.createElement("span",null,e.story_points)))}),u.default.createElement("tr",null,u.default.createElement("td",null,"合计"),u.default.createElement("td",null,i),u.default.createElement("td",null,l))))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,sprintNo:s.PropTypes.number.isRequired,sprints:s.PropTypes.array.isRequired,collection:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1886: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;t=0?(l=y.default.findIndex(i,{no:n}),i[l]={no:n,name:o.name,states:o.states?o.states.split(","):[],max:o.max||"",min:o.min||""}):(s=0,i.length>0&&(s=y.default.max(y.default.map(i,function(e){return e.no}))+1),i.push({name:o.name,no:s,states:o.states?o.states.split(","):[],max:o.max||"",min:o.min||""})),c.next=10,regeneratorRuntime.awrap(t({id:r.id,columns:i}));case 10:u=c.sent,0===u?(this.setState({ecode:0}),a(),g.notify.show("设置完成。","success",2e3)):this.setState({ecode:u});case 12:case"end":return c.stop()}},null,this)}},{key:"componentWillMount",value:function(){var e=this.props,t=e.initializeForm,n=e.config,r=e.no;if(r>=0){var o=y.default.find(n.columns,{no:r});t({name:o.name,states:(o.states||[]).join(","),max:o.max||"",min:o.min||""})}}},{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,r=n.name,o=n.states,a=n.max,l=n.min,s=e.handleSubmit,u=e.invalid,d=e.submitting,f=e.config,h=e.no,g=e.options,b=[];y.default.forEach(f.columns,function(e){e.no!==h&&(b=y.default.union(b,e.states))});var w=[];return y.default.forEach(g.states||[],function(e){y.default.indexOf(b,e.id)===-1&&w.push({label:c.default.createElement("span",{className:"state-"+e.category+"-label"},e.name),value:e.id})}),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"},h>=0?"编辑列":"添加列")),c.default.createElement("form",{onSubmit:s(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{validationState:r.touched&&r.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(p.FormControl,i({disabled:d,type:"text"},r,{placeholder:"列名"})),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,null,c.default.createElement(p.ControlLabel,null,"状态"),c.default.createElement(m.default,{multi:!0,simpleValue:!0,disabled:d,clearable:!1,options:w,value:o.value,onChange:function(e){o.onChange(e)},placeholder:"选择状态"}),0==w.length&&c.default.createElement("div",null,c.default.createElement("span",{style:{fontSize:"12px",color:"#8a6d3b"}},"所有问题状态都已被其他列使用,需从其他列移除某些问题状态或创建新的问题状态供选择。"))),c.default.createElement(p.FormGroup,{validationState:a.touched&&a.error?"error":null},c.default.createElement(p.ControlLabel,null,"最大问题数(Max)"),c.default.createElement(p.FormControl,i({disabled:d,type:"text"},a,{placeholder:"输入正整数"})),a.touched&&a.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},a.error)),c.default.createElement(p.FormGroup,{validationState:l.touched&&l.error?"error":null},c.default.createElement(p.ControlLabel,null,"最小问题数(Min)"),c.default.createElement(p.FormControl,i({disabled:d,type:"text"},l,{placeholder:"输入正整数"})),l.touched&&l.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},l.error))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!d&&t[this.state.ecode]),c.default.createElement("img",{src:v,className:d?"loading":"hide"}),c.default.createElement(p.Button,{disabled:d||u,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:d,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,options:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,initializeForm:u.PropTypes.func.isRequired,update:u.PropTypes.func.isRequired,no:u.PropTypes.number.isRequired,config:u.PropTypes.object.isRequired,close:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"column",fields:["name","states","max","min"],validate:b})(t)||t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1887: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=function(){function e(e,t){for(var n=0;no&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},g=function(e){function t(){o(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.options,r=e.isAllowedEdit,o=e.isDragging,a=e.connectDragSource,i=e.connectDropTarget,l=e.editColumn,s=e.delColumn,c=o?0:1,d={"float":"right",cursor:"pointer"};return a(i(u.default.createElement("div",{style:{opacity:c},className:"config-column"},u.default.createElement("div",{style:{fontWeight:600,paddingBottom:"10px",borderBottom:"1px solid #ccc"}},t.name,t.max&&u.default.createElement("span",{className:"config-wip"},"Max-"+t.max),t.min&&u.default.createElement("span",{className:"config-wip"},"Min-"+t.min),r&&!!s&&u.default.createElement("span",{style:d,onClick:function(){s(t.no)},title:"删除",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-remove"})),r&&!!l&&u.default.createElement("span",{style:d,onClick:function(){l(t.no)},title:"编辑",className:"edit-icon"},u.default.createElement("i",{className:"fa fa-edit"}))),u.default.createElement("div",null,m.default.map(t.states,function(e,t){return u.default.createElement("div",{key:t,className:"config-column-card"},m.default.findIndex(n.states,{id:e})!==-1?u.default.createElement("span",{className:"state-"+m.default.find(n.states,{id:e}).category+"-label"},m.default.find(n.states,{id:e}).name):"")})))))}}],[{key:"propTypes",value:{connectDragSource:s.PropTypes.func.isRequired,connectDropTarget:s.PropTypes.func.isRequired,index:s.PropTypes.number.isRequired,isDragging:s.PropTypes.bool.isRequired,column:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,editColumn:s.PropTypes.func,delColumn:s.PropTypes.func,setRank:s.PropTypes.func.isRequired,isAllowedEdit:s.PropTypes.bool.isRequired,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.DragSource)(function(e){return e.isAllowedEdit?p.CardTypes.KANBAN_COLUMN:""},h,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(p.CardTypes.KANBAN_COLUMN,y,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1888: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=function(){function e(e,t){for(var n=0;n0&&c.default.createElement("div",{className:"table-td-desc",style:{marginTop:"10px"}},"以下未分配状态:"),m.default.map(_,function(e,t){return c.default.createElement("div",{className:"config-column-card",key:t}," ",c.default.createElement("span",{className:"state-"+e.category+"-label"},e.name))})),contents:c.default.createElement("div",{style:i({},t,{marginLeft:"10px"}),className:"config-columns"},!u.columns||u.columns.length<=0?c.default.createElement("ul",{className:"list-unstyled clearfix",style:{lineHeight:2}},c.default.createElement("li",null,"未定义")):c.default.createElement(w,{isAllowedEdit:f,kid:u.id,editColumn:this.editColumn.bind(this),delColumn:this.delColumn.bind(this),options:o,update:l,columns:u.columns||[]}),f&&c.default.createElement(p.Button,{style:{marginLeft:"10px"},onClick:function(){e.setState({columnModalShow:!0,columnNo:-1})}},"添加"))}),c.default.createElement("div",{style:{overflowY:"auto",height:"100%",paddingBottom:"80px",margin:"0px 7px"}},c.default.createElement(d.BootstrapTable,{data:C,headerStyle:{display:"none"},bordered:!1,hover:!0,trClassName:"tr-top"},c.default.createElement(d.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),c.default.createElement(d.TableHeaderColumn,{width:"200",dataField:"title"}),c.default.createElement(d.TableHeaderColumn,{dataField:"contents"})),this.state.editModalShow&&c.default.createElement(y,{show:!0,close:this.editModalClose,update:l,data:u,i18n:r}),this.state.delNotifyShow&&c.default.createElement(g,{show:!0,close:this.delNotifyClose,del:s,loading:a,data:u,i18n:r}),this.state.globalFilterModalShow&&c.default.createElement(b,{show:!0,model:"global",close:this.globalFilterModalClose,update:l,loading:a,data:u,options:o,i18n:r}),this.state.quickFilterModalShow&&c.default.createElement(b,{show:!0,model:"filter",no:this.state.filterNo,close:this.quickFilterModalClose,update:l,loading:a,data:u,options:o,i18n:r}),this.state.displayFieldsModalShow&&c.default.createElement(k,{show:!0,close:this.displayFieldsModalClose,options:o,data:u,update:l,loading:a,i18n:r}),this.state.delFilterNotifyShow&&c.default.createElement(x,{show:!0,model:"filter",no:this.state.filterNo,close:this.delFilterNotifyClose,update:l,loading:a,config:u,i18n:r}),this.state.columnModalShow&&c.default.createElement(E,{show:!0,no:this.state.columnNo,close:this.columnModalClose,update:l,config:u,options:o,i18n:r}),this.state.delColumnNotifyShow&&c.default.createElement(x,{show:!0,model:"column",no:this.state.columnNo,close:this.delColumnNotifyClose,update:l,loading:a,config:u,i18n:r}))}}],[{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.exports=t.default}).call(this)}finally{}},1890: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;t>")),u.default.createElement(c.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(c.Modal.Footer,null,u.default.createElement(c.Button,{bsStyle:"link",style:{"float":"left"},disabled:l,onClick:function(){e.setState({cards:[]})}},"清空字段"),u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&i[this.state.ecode]),u.default.createElement("img",{src:w,className:l?"loading":"hide"}),u.default.createElement(c.Button,{disabled:l||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:l,onClick:this.cancel.bind(this)},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,loading:s.PropTypes.bool,update:s.PropTypes.func.isRequired,data:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=E,e.exports=t.default}).call(this)}finally{}},1894: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=function(){function e(e,t){for(var n=0;n=0){var c=m.default.find(i,{no:u});if(!c)return;this.state.name=c.name;c.query;m.default.forEach(c.query,function(t,n){e.state.query[n]=t&&m.default.isArray(t)?t.join(","):t||""})}}},{key:"handleSubmit",value:function(){var e,t,n,r,o,a,i,l,s,u,c,d,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,r=e.data,o=r.id,a=r.filters,i=void 0===a?[]:a,l=e.model,s=e.no,u=m.default.clone(i),c=this.state.query,d=0,"global"!=l){y.next=18;break}return y.next=15,regeneratorRuntime.awrap(t(m.default.extend({query:c},{id:o})));case 15:d=y.sent,y.next=23;break;case 18:if("filter"!=l){y.next=23;break}return s>=0?(f=m.default.findIndex(i,{no:s}),u[f].query=c,u[f].name=this.state.name):(h=0,i.length>0&&(h=m.default.max(m.default.map(i,function(e){return e.no}))+1),u.push({query:c,name:this.state.name,no:h})),y.next=22,regeneratorRuntime.awrap(t(m.default.extend({filters:u},{id:o})));case 22:d=y.sent;case 23:0===d?(this.setState({ecode:0}),n(),p.notify.show("设置完成。","success",2e3)):this.setState({ecode:d});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,r=t.model,o=t.no,a=t.loading,i=t.options;return u.default.createElement(c.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static",bsSize:"large","aria-labelledby":"contained-modal-title-sm"},u.default.createElement(c.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},u.default.createElement(c.Modal.Title,{id:"contained-modal-title-la"},"global"==r?"全局过滤器":o===-1?"添加快速过滤器":"编辑快速过滤器")),u.default.createElement(c.Form,{horizontal:!0,onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(c.Modal.Body,{style:{maxHeight:"580px",overflow:"auto",paddingBottom:"0px"}},"filter"===r&&u.default.createElement(c.FormGroup,{style:{height:"50px",borderBottom:"1px solid #ddd"},validationState:this.state.touched.name&&this.state.errors.name&&"error"||null},u.default.createElement(c.Col,{sm:2,componentClass:c.ControlLabel},u.default.createElement("span",{className:"txt-impt"},"*"),"过滤器名称"),u.default.createElement(c.Col,{sm:8},u.default.createElement(c.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(c.Col,{sm:2,componentClass:c.ControlLabel,style:{textAlign:"left"}},this.state.touched.name&&(this.state.errors.name||""))),u.default.createElement("div",{className:"cond-txt"},m.default.isEmpty(m.default.omit(this.state.query,["subtask"]))?"全部":(0,h.parseQuery)(this.state.query,i)),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:i})),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{bsStyle:"link",style:{"float":"left"},disabled:a,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:a?"loading":"hide"}),u.default.createElement(c.Button,{disabled:"filter"===r&&(!this.state.name||m.default.isEmpty(this.state.query))||a,onClick:this.handleSubmit},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:a,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,model:s.PropTypes.string.isRequired,no:s.PropTypes.number,loading:s.PropTypes.bool.isRequired,update:s.PropTypes.func.isRequired,close:s.PropTypes.func.isRequired,options:s.PropTypes.object,data:s.PropTypes.object},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},1895: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=function(){function e(e,t){for(var n=0;no&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},h=function(e){function t(){o(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.name,r=e.condsTxt,o=e.isAllowedEdit,a=e.isDragging,i=e.connectDragSource,l=e.connectDropTarget,s=e.editFilter,c=e.delFilter,d=a?0:1,p={"float":"right",cursor:"pointer",marginLeft:"5px"};return i(l(u.default.createElement("div",{style:{opacity:d},className:"filter-dragcard dragcard"},u.default.createElement("span",{style:{fontWeight:600}},n)," -- ",u.default.createElement("span",null,r),o&&!!c&&u.default.createElement("span",{style:p,onClick:function(){c(t)},title:"删除",className:"rm-icon"},u.default.createElement("i",{className:"fa fa-remove"})),o&&!!s&&u.default.createElement("span",{style:p,onClick:function(){s(t)},title:"编辑",className:"edit-icon"},u.default.createElement("i",{className:"fa fa-edit"})))))}}],[{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,name:s.PropTypes.string.isRequired,condsTxt:s.PropTypes.string.isRequired,isAllowedEdit:s.PropTypes.bool.isRequired,editFilter:s.PropTypes.func,delFilter:s.PropTypes.func,setRank:s.PropTypes.func.isRequired,moveCard:s.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.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,d.DropTarget)(p.CardTypes.KANBAN_FILTER,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},1896: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=function(){function e(e,t){for(var n=0;n1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o2?n-2:0),a=2;a3?t-3:0),r=3;r1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.defaultBase16,l=void 0===i?O:i,u=a.base16Themes,c=void 0===u?null:u,d=F(o,c);d&&(o=(0,s.default)({},d,o));var b=w.reduce(function(e,t){return e[t]=o[t]||l[t],e},{}),h=(0,f.default)(o).reduce(function(e,t){return-1===w.indexOf(t)?(e[t]=o[t],e):e},{}),m=e(b),y=S(h,m);return(0,p.default)(M,2).apply(void 0,[y].concat(n))},3),t.getBase16Theme=function(e,t){if(e&&e.extend&&(e=e.extend),"string"==typeof e){var n=e.split(":"),r=(0,u.default)(n,2),a=r[0],o=r[1];e=(t||{})[a]||h[a],"inverted"===o&&(e=A(e))}return e&&e.hasOwnProperty("base00")?e:void 0})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(68),o=r(a),i=n(83),s=r(i),l="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===l(o.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t,n){e.exports={"default":n(69),__esModule:!0}},function(e,t,n){n(26),n(36),e.exports=n(37).f("iterator")},function(e,t,n){var r=n(27),a=n(28);e.exports=function(e){return function(t,n){var o,i,s=String(a(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(i=s.charCodeAt(l+1))<56320||i>57343?e?s.charAt(l):o:e?s.slice(l,l+2):i-56320+(o-55296<<10)+65536)}}},function(e,t,n){var r=n(72);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(47),a=n(22),o=n(34),i={};n(8)(i,n(3)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:a(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(9),a=n(16),o=n(19);e.exports=n(10)?Object.defineProperties:function(e,t){a(e);for(var n,i=o(t),s=i.length,l=0;s>l;)r.f(e,n=i[l++],t[n]);return e}},function(e,t,n){var r=n(12),a=n(76),o=n(77);e.exports=function(e){return function(t,n,i){var s,l=r(t),u=a(l.length),c=o(i,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(27),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t,n){var r=n(27),a=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?a(e+t,0):o(e,t)}},function(e,t,n){var r=n(5).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(7),a=n(35),o=n(31)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){"use strict";var r=n(81),a=n(82),o=n(18),i=n(12);e.exports=n(43)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):"keys"==t?a(0,n):"values"==t?a(0,e[n]):a(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={"default":n(84),__esModule:!0}},function(e,t,n){n(85),n(91),n(92),n(93),e.exports=n(2).Symbol},function(e,t,n){"use strict";var r=n(5),a=n(7),o=n(10),i=n(21),s=n(46),l=n(86).KEY,u=n(11),c=n(32),f=n(34),d=n(23),p=n(3),b=n(37),h=n(38),m=n(87),y=n(88),v=n(16),g=n(17),_=n(12),E=n(29),j=n(22),O=n(47),w=n(89),C=n(90),x=n(9),k=n(19),P=C.f,S=x.f,M=w.f,A=r.Symbol,F=r.JSON,T=F&&F.stringify,R=p("_hidden"),D=p("toPrimitive"),q={}.propertyIsEnumerable,I=c("symbol-registry"),B=c("symbols"),L=c("op-symbols"),N=Object.prototype,z="function"==typeof A,V=r.QObject,U=!V||!V.prototype||!V.prototype.findChild,H=o&&u(function(){return 7!=O(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(N,t);r&&delete N[t],S(e,t,n),r&&e!==N&&S(N,t,r)}:S,K=function(e){var t=B[e]=O(A.prototype);return t._k=e,t},W=z&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},J=function(e,t,n){return e===N&&J(L,t,n),v(e),t=E(t,!0),v(n),a(B,t)?(n.enumerable?(a(e,R)&&e[R][t]&&(e[R][t]=!1),n=O(n,{enumerable:j(0,!1)})):(a(e,R)||S(e,R,j(1,{})),e[R][t]=!0),H(e,t,n)):S(e,t,n)},Y=function(e,t){v(e);for(var n,r=m(t=_(t)),a=0,o=r.length;o>a;)J(e,n=r[a++],t[n]);return e},G=function(e,t){return void 0===t?O(e):Y(O(e),t)},$=function(e){var t=q.call(this,e=E(e,!0));return!(this===N&&a(B,e)&&!a(L,e))&&(!(t||!a(this,e)||!a(B,e)||a(this,R)&&this[R][e])||t)},Q=function(e,t){if(e=_(e),t=E(t,!0),e!==N||!a(B,t)||a(L,t)){var n=P(e,t);return!n||!a(B,t)||a(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=M(_(e)),r=[],o=0;n.length>o;)a(B,t=n[o++])||t==R||t==l||r.push(t);return r},X=function(e){for(var t,n=e===N,r=M(n?L:_(e)),o=[],i=0;r.length>i;)!a(B,t=r[i++])||n&&!a(N,t)||o.push(B[t]);return o};z||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===N&&t.call(L,n),a(this,R)&&a(this[R],e)&&(this[R][e]=!1),H(this,e,j(1,n))};return o&&U&&H(N,e,{configurable:!0,set:t}),K(e)},s(A.prototype,"toString",function(){return this._k}),C.f=Q,x.f=J,n(50).f=w.f=Z,n(24).f=$,n(39).f=X,o&&!n(20)&&s(N,"propertyIsEnumerable",$,!0),b.f=function(e){return K(p(e))}),i(i.G+i.W+i.F*!z,{Symbol:A});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)p(ee[te++]);for(var ne=k(p.store),re=0;ne.length>re;)h(ne[re++]);i(i.S+i.F*!z,"Symbol",{"for":function(e){return a(I,e+="")?I[e]:I[e]=A(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),i(i.S+i.F*!z,"Object",{create:G,defineProperty:J,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),F&&i(i.S+i.F*(!z||u(function(){var e=A();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],a=1;arguments.length>a;)r.push(arguments[a++]);if(n=t=r[1],(g(t)||void 0!==e)&&!W(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,T.apply(F,r)}}),A.prototype[D]||n(8)(A.prototype,D,A.prototype.valueOf),f(A,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(23)("meta"),a=n(17),o=n(7),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(11)(function(){return l(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},p=function(e){return u&&b.NEED&&l(e)&&!o(e,r)&&c(e),e},b=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,n){var r=n(19),a=n(39),o=n(24);e.exports=function(e){var t=r(e),n=a.f;if(n)for(var i,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,i=s[u++])&&t.push(i);return t}},function(e,t,n){var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(12),a=n(50).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return a(e)}catch(e){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?s(e):a(r(e))}},function(e,t,n){var r=n(24),a=n(22),o=n(12),i=n(29),s=n(7),l=n(44),u=Object.getOwnPropertyDescriptor;t.f=n(10)?u:function(e,t){if(e=o(e),t=i(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(38)("asyncIterator")},function(e,t,n){n(38)("observable")},function(e,t,n){"use strict";t.__esModule=!0;var r=n(95),a=function(e){return e&&e.__esModule?e:{"default":e}}(r);t.default=a.default||function(e){for(var t=1;tu;)for(var d,p=s(arguments[u++]),b=c?r(p).concat(c(p)):r(p),h=b.length,m=0;h>m;)f.call(p,d=b[m++])&&(n[d]=p[d]);return n}:l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(100),o=r(a),i=n(103),s=r(i);t.default=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=(0,s.default)(e);!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){e.exports={"default":n(101),__esModule:!0}},function(e,t,n){n(36),n(26),e.exports=n(102)},function(e,t,n){var r=n(51),a=n(3)("iterator"),o=n(18);e.exports=n(2).isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){e.exports={"default":n(104),__esModule:!0}},function(e,t,n){n(36),n(26),e.exports=n(105)},function(e,t,n){var r=n(16),a=n(106);e.exports=n(2).getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(51),a=n(3)("iterator"),o=n(18);e.exports=n(2).getIteratorMethod=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[r(e)]}},function(e,t,n){e.exports={"default":n(108),__esModule:!0}},function(e,t,n){n(109),e.exports=n(2).Object.keys},function(e,t,n){var r=n(35),a=n(19);n(110)("keys",function(){return function(e){return a(r(e))}})},function(e,t,n){var r=n(21),a=n(2),o=n(11);e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",i)}},function(e,t,n){(function(t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=e?e.length:0;++n-1}function o(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o1&&x.reverse(),p&&u1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}function P(e,t){return!!(t=null==t?te:t)&&("number"==typeof e||ye.test(e))&&e>-1&&e%1==0&&e2?e:void 0}(),Re=Te?function(e,t,n){var r=t+"";return Te(e,"toString",{configurable:!0,enumerable:!1,value:z(k(r,F(x(r),n)))})}:V;T.placeholder={},e.exports=T}).call(t,n(52))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var a=n(113);t.threezerotwofour=r(a);var o=n(114);t.apathy=r(o);var i=n(115);t.ashes=r(i);var s=n(116);t.atelierDune=r(s);var l=n(117);t.atelierForest=r(l);var u=n(118);t.atelierHeath=r(u);var c=n(119);t.atelierLakeside=r(c);var f=n(120);t.atelierSeaside=r(f);var d=n(121);t.bespin=r(d);var p=n(122);t.brewer=r(p);var b=n(123);t.bright=r(b);var h=n(124);t.chalk=r(h);var m=n(125);t.codeschool=r(m);var y=n(126);t.colors=r(y);var v=n(127);t.default=r(v);var g=n(128);t.eighties=r(g);var _=n(129);t.embers=r(_);var E=n(130);t.flat=r(E);var j=n(131);t.google=r(j);var O=n(132);t.grayscale=r(O);var w=n(133);t.greenscreen=r(w);var C=n(134);t.harmonic=r(C);var x=n(135);t.hopscotch=r(x);var k=n(136);t.isotope=r(k);var P=n(137);t.marrakesh=r(P);var S=n(138);t.mocha=r(S);var M=n(139);t.monokai=r(M);var A=n(140);t.ocean=r(A);var F=n(141);t.paraiso=r(F);var T=n(142);t.pop=r(T);var R=n(143);t.railscasts=r(R);var D=n(144);t.shapeshifter=r(D);var q=n(145);t.solarized=r(q);var I=n(146);t.summerfruit=r(I);var B=n(147);t.tomorrow=r(B);var L=n(148);t.tube=r(L);var N=n(149);t.twilight=r(N)},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830", base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},function(e,t,n){function r(e){var t=Math.round(o(e,0,255)),n=t.toString(16);return 1==n.length?"0"+n:n}function a(e){var t=4===e.length?r(255*e[3]):"";return"#"+r(e[0])+r(e[1])+r(e[2])+t}var o=n(40);e.exports=a},function(e,t,n){function r(e){var t=o(e),n=l(t);return 4===t.length&&n.push(t[3]),n}function a(e){for(var t in u)if(0===e.indexOf(t))return u[t](e)}var o=n(152),i=n(153),s=n(154),l=n(155),u={"#":i,hsl:r,rgb:s};a.rgb=s,a.hsl=o,a.hex=i,e.exports=a},function(e,t,n){function r(e,t){switch(e=parseFloat(e),t){case 0:return i(e,0,360);case 1:case 2:return i(e,0,100);case 3:return i(e,0,1)}}function a(e){return o(e).map(r)}var o=n(53),i=n(40);e.exports=a},function(e,t){function n(e){for(var t="#",n=1;n1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[u]=255*o;return a}e.exports=n},function(e,t,n){(function(t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=t.length,a=e.length;++n0&&n(c)?t>1?a(c,t-1,n,o,s):r(s,c):o||(s[s.length]=c)}return s}function o(e,t){return t=k(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=k(r.length-t,0),i=Array(o);++a-1&&e%1==0&&e<=b}function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){return!!e&&"object"==typeof e}var b=9007199254740991,h="[object Arguments]",m="[object Function]",y="[object GeneratorFunction]",v="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,_=v||g||Function("return this")(),E=Object.prototype,j=E.hasOwnProperty,O=E.toString,w=_.Symbol,C=E.propertyIsEnumerable,x=w?w.isConcatSpreadable:void 0,k=Math.max,P=Array.isArray,S=function(e){return o(function(e){e=a(e,1);var t=e.length,n=t;for(void 0;n--;)if("function"!=typeof e[n])throw new TypeError("Expected a function");return function(){for(var n=0,r=t?e[n].apply(this,arguments):arguments[0];++n0&&this._events[e].length>a&&(this._events[e].warned=!0,"function"==typeof console.trace&&void 0),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),a||(a=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var a=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,a,i,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=s;break}if(a<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){e.exports.Dispatcher=n(163)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=n(164),o=function(){function e(){r(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]||a(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching||a(!1);for(var t=0;tt&&(o.style.cursor="pointer",this.state.collapsed&&(r=c.default.createElement("span",null,r.substring(0,t),c.default.createElement("span",(0,h.default)(n,"ellipsis")," ...")))),c.default.createElement("div",(0,h.default)(n,"string"),c.default.createElement(d.default,s({type_name:"string"},e)),c.default.createElement("span",s({className:"string-value"},o,{onClick:this.toggleCollapsed}),'"',r,'"'))}}]),t}(c.default.PureComponent);t.default=v},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});var s=function(){function e(e,t){for(var n=0;n=0||(a[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function i(e,t,n,r,a){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===a&&(a=null),null===y.parentNode&&document.body.appendChild(y);var o=s(e,t,n);if(null===o)return null;var i=o.paddingSize,l=o.borderSize,u=o.boxSizing,c=o.sizingStyle;Object.keys(c).forEach(function(e){y.style[e]=c[e]}),v(y),y.value=e.value||e.placeholder||"x";var f=-1/0,d=1/0,p=y.scrollHeight;"border-box"===u?p+=l:"content-box"===u&&(p-=i),y.value="x";var b=y.scrollHeight-i;return null===r&&null===a||(null!==r&&(f=b*r,"border-box"===u&&(f=f+i+l),p=Math.max(f,p)),null!==a&&(d=b*a,"border-box"===u&&(d=d+i+l),p=Math.min(d,p))),{height:p,minHeight:f,maxHeight:d,rowCount:Math.floor(p/b)}}function s(e,t,n){if(void 0===n&&(n=!1),n&&m[t])return m[t];var r=window.getComputedStyle(e);if(null===r)return null;var a=h.reduce(function(e,t){return e[t]=r.getPropertyValue(t),e},{}),o=a["box-sizing"];if(""===o)return null;p&&"border-box"===o&&(a.width=parseFloat(a.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var i=parseFloat(a["padding-bottom"])+parseFloat(a["padding-top"]),s=parseFloat(a["border-bottom-width"])+parseFloat(a["border-top-width"]),l={sizingStyle:a,paddingSize:i,borderSize:s,boxSizing:o};return n&&(m[t]=l),l}Object.defineProperty(t,"__esModule",{value:!0});var l=n(0),u=n.n(l),c=n(173),f=n.n(c),d=(Object.setPrototypeOf,"object"==typeof Reflect&&Reflect.construct,"undefined"!=typeof window&&"undefined"!=typeof document),p=!!d&&!!document.documentElement.currentStyle,b={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},h=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],m={},y=d&&document.createElement("textarea"),v=function(e){Object.keys(b).forEach(function(t){e.style.setProperty(t,b[t],"important")})};d&&v(y);var g=function(e){return delete m[e]},_=function(e){return void 0===e&&(e=0),function(){return++e}}(),E=function(){},j=d&&window.requestAnimationFrame?[window.requestAnimationFrame,window.cancelAnimationFrame]:[setTimeout,clearTimeout],O=j[0],w=j[1],C=function(e){function t(t){var n;return n=e.call(this,t)||this,n._resizeLock=!1,n._onRootDOMNode=function(e){n._rootDOMNode=e,n.props.inputRef(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e)},n._resizeComponent=function(e){if(void 0===e&&(e=E),void 0===n._rootDOMNode)return void e();var t=i(n._rootDOMNode,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null===t)return void e();var r=t.height,a=t.minHeight,o=t.maxHeight,s=t.rowCount;return n.rowCount=s,n.state.height!==r||n.state.minHeight!==a||n.state.maxHeight!==o?void n.setState({height:r,minHeight:a,maxHeight:o},e):void e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=_(),n._controlled="string"==typeof t.value,n}a(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.inputRef,e.maxRows,e.minRows,e.onHeightChange,e.useCacheForDOMMeasurements,o(e,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return t.style=r({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)span>.object-meta-data>.click-to-add,.react-json-view .object-key-val:hover>span>.object-meta-data>.click-to-remove,.react-json-view .object-key-val:hover>span>.object-meta-data>.copy-to-clipboard-container,.react-json-view .variable-row:hover .copy-to-clipboard-container{display:inline-block}",""])},function(e,t){function n(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var o=r(a);return[n].concat(a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a=0&&g.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",u(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",u(t,e.attrs),o(e,t),t}function u(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,r,a,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=v++;n=y||(y=s(t)),r=f.bind(null,n,u,!1),a=f.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n,t),a=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=d.bind(null,n),a=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function f(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=E(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t,n){var r=n.css,a=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||o)&&(r=_(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(i),s&&URL.revokeObjectURL(s)}var b={},h=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),m=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),y=null,v=0,g=[],_=n(184);e.exports=function(e,t){t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=h()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=a(e,t);return r(n,t),function(e){for(var o=[],i=0;ii&&s>r||(e.moveCard(a,i),t.getItem().index=i)}}},h=function(e){function t(){i(this,n),o(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}l(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,a=e.connectDragSource,i=e.connectDropTarget,l=e.deleteCard,r=n?0:1,o={"float":"right",cursor:"pointer"};return a(i(u.default.createElement("div",{style:{opacity:r},className:"dragcard"},t,!!l&&u.default.createElement("span",{style:o,onClick:l,title:"删除",className:"rm-icon"},u.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,c.DragSource)(p.CardTypes.CARD,f,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,c.DropTarget)(p.CardTypes.CARD,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},114:function(e,t,n){try{(function(){"use strict";function a(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 l(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=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}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 n&&(o.onChange=n.bind(null,this.props.value)),l.default.createElement("input",r({},this.props,{type:"checkbox",name:t},o))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.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,a=(e.name,e.value,e.onChange,e.children),n=o(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,n,a)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var a;a=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:a}),"function"==typeof this.props.onChange&&this.props.onChange(a)}})},1065:function(e,t,a){try{(function(){"use strict";function n(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 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 a=0;a1?t-1:0),o=1;o0){if(Object.assign)return Object.assign.apply(Object,[e].concat(a));a.forEach(function(t){n(t)&&Object.keys(t).forEach(function(a){e[a]=t[a]})})}return e}function u(e,t){for(var a=arguments.length,n=Array(a>2?a-2:0),o=2;o-1}function h(e,a){if(a){if(t(e.length))return void s(e,function(e){h(e,a)});if(e.classList)return void e.classList.add(a);var n=l(e.className);n?n.indexOf(a)<0&&(e.className=n+" "+a):e.className=a}}function f(e,a){if(a)return t(e.length)?void s(e,function(e){f(e,a)}):e.classList?void e.classList.remove(a):void(e.className.indexOf(a)>=0&&(e.className=e.className.replace(a,"")))}function m(e,a,n){if(a)return t(e.length)?void s(e,function(e){m(e,a,n)}):void(n?h(e,a):f(e,a))}function v(e){return e.replace(Q,"$1-$2").toLowerCase()}function g(e,t){return n(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-"+v(t))}function y(e,t,a){n(a)?e[t]=a:e.dataset?e.dataset[t]=a:e.setAttribute("data-"+v(t),a)}function b(e,t){if(n(e[t]))delete e[t];else if(e.dataset)try{delete e.dataset[t]}catch(a){e.dataset[t]=null}else e.removeAttribute("data-"+v(t))}function w(e,t,a){var n=l(t).split(J);return n.length>1?void s(n,function(t){w(e,t,a)}):void(e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent&&e.detachEvent("on"+t,a))}function C(e,t,a,n){var o=l(t).split(J),r=a;return o.length>1?void s(o,function(t){C(e,t,a)}):(n&&(a=function(){for(var n=arguments.length,o=Array(n),i=0;i90?180-a:a)*Math.PI/180,o=Math.sin(n),r=Math.cos(n),i=e.width,l=e.height,s=e.aspectRatio,c=void 0,u=void 0;return t?(c=i/(r+o/s),u=c/s):(c=i*r+l*o,u=i*o+l*r),{width:c,height:u}}function A(e,a,n){var o=O("canvas"),r=o.getContext("2d"),i=0,l=0,s=a.naturalWidth,c=a.naturalHeight,u=a.rotate,d=a.scaleX,p=a.scaleY,h=t(d)&&t(p)&&(1!==d||1!==p),f=t(u)&&0!==u,m=f||h,v=s*Math.abs(d||1),g=c*Math.abs(p||1),y=void 0,b=void 0,w=void 0;return h&&(y=v/2,b=g/2),f&&(w=B({width:v,height:g,degree:u}),v=w.width,g=w.height,y=v/2,b=g/2),o.width=v,o.height=g,n.fillColor&&(r.fillStyle=n.fillColor,r.fillRect(0,0,v,g)),m&&(i=-s/2,l=-c/2,r.save(),r.translate(y,b)),f&&r.rotate(u*Math.PI/180),h&&r.scale(d,p),r.imageSmoothingEnabled=!!n.imageSmoothingEnabled,n.imageSmoothingQuality&&(r.imageSmoothingQuality=n.imageSmoothingQuality),r.drawImage(e,Math.floor(i),Math.floor(l),Math.floor(s),Math.floor(c)),m&&r.restore(),o}function L(e,t,a){var n="",o=t;for(a+=t;o=8&&(u=r+i)))),u)for(a=t.getUint16(u,l),p=0;p
    ',U="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},G=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},K=function(){function e(e,t){for(var a=0;aa.width?3===t?s=a.height*l:u=a.width/l:3===t?u=a.width/l:s=a.height*l;var d={naturalWidth:r,naturalHeight:i,aspectRatio:l,width:s,height:u};d.oldLeft=d.left=(a.width-s)/2,d.oldTop=d.top=(a.height-u)/2,e.canvasData=d,e.limited=1===t||2===t,e.limitCanvas(!0,!0),e.initialImageData=c({},n),e.initialCanvasData=c({},d)},limitCanvas:function(e,t){var a=this,n=a.options,o=n.viewMode,r=a.containerData,i=a.canvasData,l=i.aspectRatio,s=a.cropBoxData,c=a.cropped&&s;if(e){var u=Number(n.minCanvasWidth)||0,d=Number(n.minCanvasHeight)||0;o>1?(u=Math.max(u,r.width),d=Math.max(d,r.height),3===o&&(d*l>u?u=d*l:d=u/l)):o>0&&(u?u=Math.max(u,c?s.width:0):d?d=Math.max(d,c?s.height:0):c&&(u=s.width,d=s.height,d*l>u?u=d*l:d=u/l)),u&&d?d*l>u?d=u/l:u=d*l:u?d=u/l:d&&(u=d*l),i.minWidth=u,i.minHeight=d,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(o){var p=r.width-i.width,h=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,h),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,h),c&&a.limited&&(i.minLeft=Math.min(s.left,s.left+(s.width-i.width)),i.minTop=Math.min(s.top,s.top+(s.height-i.height)),i.maxLeft=s.left,i.maxTop=s.top,2===o&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,h),i.maxTop=Math.max(0,h))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e){var t=this,a=t.canvasData,n=t.imageData,o=n.rotate;if(t.rotated){t.rotated=!1;var r=B({width:n.width,height:n.height,degree:o}),i=r.width/r.height,l=1===n.aspectRatio;if(l||i!==a.aspectRatio){if(a.left-=(r.width-a.width)/2,a.top-=(r.height-a.height)/2,a.width=r.width,a.height=r.height,a.aspectRatio=i,a.naturalWidth=n.naturalWidth,a.naturalHeight=n.naturalHeight,l&&o%90||o%180){var s=B({width:n.naturalWidth,height:n.naturalHeight,degree:o});a.naturalWidth=s.width,a.naturalHeight=s.height}t.limitCanvas(!0,!1)}}(a.width>a.maxWidth||a.widtha.maxHeight||a.heighto.width?r.height=r.width/a:r.width=r.height*a),e.cropBoxData=r,e.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*n),r.height=Math.max(r.minHeight,r.height*n),r.oldLeft=r.left=o.left+(o.width-r.width)/2,r.oldTop=r.top=o.top+(o.height-r.height)/2,e.initialCropBoxData=c({},r)},limitCropBox:function(e,t){var a=this,n=a.options,o=n.aspectRatio,r=a.containerData,i=a.canvasData,l=a.cropBoxData,s=a.limited;if(e){var c=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,d=Math.min(r.width,s?i.width:r.width),p=Math.min(r.height,s?i.height:r.height);c=Math.min(c,r.width),u=Math.min(u,r.height),o&&(c&&u?u*o>c?u=c/o:c=u*o:c?u=c/o:u&&(c=u*o),p*o>d?p=d/o:d=p*o),l.minWidth=Math.min(c,d),l.minHeight=Math.min(u,p),l.maxWidth=d,l.maxHeight=p}t&&(s?(l.minLeft=Math.max(0,i.left),l.minTop=Math.max(0,i.top),l.maxLeft=Math.min(r.width,i.left+i.width)-l.width,l.maxTop=Math.min(r.height,i.top+i.height)-l.height):(l.minLeft=0,l.minTop=0,l.maxLeft=r.width-l.width,l.maxTop=r.height-l.height))},renderCropBox:function(){var e=this,t=e.options,a=e.containerData,n=e.cropBoxData;(n.width>n.maxWidth||n.widthn.maxHeight||n.heights&&(m=s/r,h=o*m,f=s),d(e,{width:h,height:f}),d(T(e,"img")[0],c({width:i*m,height:l*m},j(c({translateX:-u*m,translateY:-p*m},t))))}))}},pe="undefined"!=typeof window?window.PointerEvent:null,he=pe?"pointerdown":"touchstart mousedown",fe=pe?"pointermove":"touchmove mousemove",me=pe?" pointerup pointercancel":"touchend touchcancel mouseup",ve="wheel mousewheel DOMMouseScroll",ge="dblclick",ye="resize",be="cropstart",we="cropmove",Ce="cropend",xe="crop",Ee="zoom",Me={bind:function(){var e=this,t=e.options,a=e.element,n=e.cropper;r(t.cropstart)&&C(a,be,t.cropstart),r(t.cropmove)&&C(a,we,t.cropmove),r(t.cropend)&&C(a,Ce,t.cropend),r(t.crop)&&C(a,xe,t.crop),r(t.zoom)&&C(a,Ee,t.zoom),C(n,he,e.onCropStart=u(e.cropStart,e)),t.zoomable&&t.zoomOnWheel&&C(n,ve,e.onWheel=u(e.wheel,e)),t.toggleDragModeOnDblclick&&C(n,ge,e.onDblclick=u(e.dblclick,e)),C(document,fe,e.onCropMove=u(e.cropMove,e)),C(document,me,e.onCropEnd=u(e.cropEnd,e)),t.responsive&&C(window,ye,e.onResize=u(e.resize,e))},unbind:function(){var e=this,t=e.options,a=e.element,n=e.cropper;r(t.cropstart)&&w(a,be,t.cropstart),r(t.cropmove)&&w(a,we,t.cropmove),r(t.cropend)&&w(a,Ce,t.cropend),r(t.crop)&&w(a,xe,t.crop),r(t.zoom)&&w(a,Ee,t.zoom),w(n,he,e.onCropStart),t.zoomable&&t.zoomOnWheel&&w(n,ve,e.onWheel),t.toggleDragModeOnDblclick&&w(n,ge,e.onDblclick),w(document,fe,e.onCropMove),w(document,me,e.onCropEnd),t.responsive&&w(window,ye,e.onResize)}},Te=/^(e|w|s|n|se|sw|ne|nw|all|crop|move|zoom)$/,ke={resize:function(){var e=this,t=e.options,a=e.container,n=e.containerData,o=Number(t.minContainerWidth)||200,r=Number(t.minContainerHeight)||100;if(!e.disabled&&n.width!==o&&n.height!==r){var i=a.offsetWidth/n.width;1===i&&a.offsetHeight===n.height||!function(){var a=void 0,n=void 0;t.restore&&(a=e.getCanvasData(),n=e.getCropBoxData()),e.render(),t.restore&&(e.setCanvasData(s(a,function(e,t){a[t]=e*i})),e.setCropBoxData(s(n,function(e,t){n[t]=e*i})))}()}},dblclick:function(){var e=this;e.disabled||"none"===e.options.dragMode||e.setDragMode(p(e.dragBox,"cropper-crop")?"move":"crop")},wheel:function(e){var t=this,a=E(e),n=Number(t.options.wheelZoomRatio)||.1,o=1;t.disabled||(a.preventDefault(),t.wheeling||(t.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),a.deltaY?o=a.deltaY>0?1:-1:a.wheelDelta?o=-a.wheelDelta/120:a.detail&&(o=a.detail>0?1:-1),t.zoom(-o*n,a)))},cropStart:function(e){var t=this;if(!t.disabled){var a=t.options,n=t.pointers,o=E(e),r=void 0;o.changedTouches?s(o.changedTouches,function(e){n[e.identifier]=q(e)}):n[o.pointerId||0]=q(o),r=Object.keys(n).length>1&&a.zoomable&&a.zoomOnTouch?"zoom":g(o.target,"action"),Te.test(r)&&x(t.element,"cropstart",{originalEvent:o,action:r})!==!1&&(o.preventDefault(),t.action=r,t.cropping=!1,"crop"===r&&(t.cropping=!0,h(t.dragBox,"cropper-modal")))}},cropMove:function(e){var t=this,a=t.action;if(!t.disabled&&a){var n=t.pointers,o=E(e);o.preventDefault(),x(t.element,"cropmove",{originalEvent:o,action:a})!==!1&&(o.changedTouches?s(o.changedTouches,function(e){c(n[e.identifier],q(e,!0))}):c(n[o.pointerId||0],q(o,!0)),t.change(o))}},cropEnd:function(e){var t=this;if(!t.disabled){var a=t.action,n=t.pointers,o=E(e);o.changedTouches?s(o.changedTouches,function(e){delete n[e.identifier]}):delete n[o.pointerId||0],a&&(o.preventDefault(),Object.keys(n).length||(t.action=""),t.cropping&&(t.cropping=!1,m(t.dragBox,"cropper-modal",t.cropped&&this.options.modal)),x(t.element,"cropend",{ originalEvent:o,action:a}))}}},Oe="e",Pe="w",De="s",Se="n",_e="se",Re="sw",Ne="ne",je="nw",Be={change:function(e){var t=this,a=t.options,n=t.containerData,o=t.canvasData,r=t.cropBoxData,i=a.aspectRatio,l=t.action,c=r.width,u=r.height,d=r.left,p=r.top,h=d+c,m=p+u,v=0,g=0,y=n.width,b=n.height,w=!0,C=void 0;!i&&e.shiftKey&&(i=c&&u?c/u:1),t.limited&&(v=r.minLeft,g=r.minTop,y=v+Math.min(n.width,o.width,o.left+o.width),b=g+Math.min(n.height,o.height,o.top+o.height));var x=t.pointers,E=x[Object.keys(x)[0]],T={x:E.endX-E.startX,y:E.endY-E.startY};switch(i&&(T.X=T.y*i,T.Y=T.x/i),l){case"all":d+=T.x,p+=T.y;break;case Oe:if(T.x>=0&&(h>=y||i&&(p<=g||m>=b))){w=!1;break}c+=T.x,i&&(u=c/i,p-=T.Y/2),c<0&&(l=Pe,c=0);break;case Se:if(T.y<=0&&(p<=g||i&&(d<=v||h>=y))){w=!1;break}u-=T.y,p+=T.y,i&&(c=u*i,d+=T.X/2),u<0&&(l=De,u=0);break;case Pe:if(T.x<=0&&(d<=v||i&&(p<=g||m>=b))){w=!1;break}c-=T.x,d+=T.x,i&&(u=c/i,p+=T.Y/2),c<0&&(l=Oe,c=0);break;case De:if(T.y>=0&&(m>=b||i&&(d<=v||h>=y))){w=!1;break}u+=T.y,i&&(c=u*i,d-=T.X/2),u<0&&(l=Se,u=0);break;case Ne:if(i){if(T.y<=0&&(p<=g||h>=y)){w=!1;break}u-=T.y,p+=T.y,c=u*i}else T.x>=0?hg&&(u-=T.y,p+=T.y):(u-=T.y,p+=T.y);c<0&&u<0?(l=Re,u=0,c=0):c<0?(l=je,c=0):u<0&&(l=_e,u=0);break;case je:if(i){if(T.y<=0&&(p<=g||d<=v)){w=!1;break}u-=T.y,p+=T.y,c=u*i,d+=T.X}else T.x<=0?d>v?(c-=T.x,d+=T.x):T.y<=0&&p<=g&&(w=!1):(c-=T.x,d+=T.x),T.y<=0?p>g&&(u-=T.y,p+=T.y):(u-=T.y,p+=T.y);c<0&&u<0?(l=_e,u=0,c=0):c<0?(l=Ne,c=0):u<0&&(l=Re,u=0);break;case Re:if(i){if(T.x<=0&&(d<=v||m>=b)){w=!1;break}c-=T.x,d+=T.x,u=c/i}else T.x<=0?d>v?(c-=T.x,d+=T.x):T.y>=0&&m>=b&&(w=!1):(c-=T.x,d+=T.x),T.y>=0?m=0&&(h>=y||m>=b)){w=!1;break}c+=T.x,u=c/i}else T.x>=0?h=0&&m>=b&&(w=!1):c+=T.x,T.y>=0?m0?l=T.y>0?_e:Ne:T.x<0&&(d-=c,l=T.y>0?Re:je),T.y<0&&(p-=u),t.cropped||(f(t.cropBox,"cropper-hidden"),t.cropped=!0,t.limited&&t.limitCropBox(!0,!0))}w&&(r.width=c,r.height=u,r.left=d,r.top=p,t.action=l,t.renderCropBox()),s(x,function(e){e.startX=e.endX,e.startY=e.endY})}},Ae={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=c({},e.initialImageData),e.canvasData=c({},e.initialCanvasData),e.cropBoxData=c({},e.initialCropBoxData),e.renderCanvas(),e.cropped&&e.renderCropBox()),e},clear:function(){var e=this;return e.cropped&&!e.disabled&&(c(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 a=this;return!a.disabled&&e&&(a.isImg&&(a.element.src=e),t?(a.url=e,a.image.src=e,a.ready&&(a.image2.src=e,s(a.previews,function(t){T(t,"img")[0].src=e}))):(a.isImg&&(a.replaced=!0),a.options.data=null,a.load(e))),a},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,a=e.image;return e.loaded?(e.isImg&&e.replaced&&(t.src=e.originalUrl),e.unbuild(),f(t,"cropper-hidden")):e.isImg?w(t,"load",e.onStart):a&&D(a),b(t,"cropper"),e},move:function(e,t){var n=this,o=n.canvasData;return n.moveTo(a(e)?e:o.left+Number(e),a(t)?t:o.top+Number(t))},moveTo:function(e,n){var o=this,r=o.canvasData,i=!1;return a(n)&&(n=e),e=Number(e),n=Number(n),o.ready&&!o.disabled&&o.options.movable&&(t(e)&&(r.left=e,i=!0),t(n)&&(r.top=n,i=!0),i&&o.renderCanvas(!0)),o},zoom:function(e,t){var a=this,n=a.canvasData;return e=Number(e),e=e<0?1/(1-e):1+e,a.zoomTo(n.width*e/n.naturalWidth,t)},zoomTo:function(e,t){var a=this,n=a.options,o=a.canvasData,r=o.width,i=o.height,l=o.naturalWidth,s=o.naturalHeight;if(e=Number(e),e>=0&&a.ready&&!a.disabled&&n.zoomable){var c=l*e,u=s*e;if(x(a.element,"zoom",{originalEvent:t,oldRatio:r/l,ratio:c/l})===!1)return a;if(t){var d=a.pointers,p=M(a.cropper),h=d&&Object.keys(d).length?X(d):{pageX:t.pageX,pageY:t.pageY};o.left-=(c-r)*((h.pageX-p.left-o.left)/r),o.top-=(u-i)*((h.pageY-p.top-o.top)/i)}else o.left-=(c-r)/2,o.top-=(u-i)/2;o.width=c,o.height=u,a.renderCanvas(!0)}return a},rotate:function(e){var t=this;return t.rotateTo((t.imageData.rotate||0)+Number(e))},rotateTo:function(e){var a=this;return e=Number(e),t(e)&&a.ready&&!a.disabled&&a.options.rotatable&&(a.imageData.rotate=e%360,a.rotated=!0,a.renderCanvas(!0)),a},scale:function(e,n){var o=this,r=o.imageData,i=!1;return a(n)&&(n=e),e=Number(e),n=Number(n),o.ready&&!o.disabled&&o.options.scalable&&(t(e)&&(r.scaleX=e,i=!0),t(n)&&(r.scaleY=n,i=!0),i&&o.renderImage(!0)),o},scaleX:function(e){var a=this,n=a.imageData.scaleY;return a.scale(e,t(n)?n:1)},scaleY:function(e){var a=this,n=a.imageData.scaleX;return a.scale(t(n)?n:1,e)},getData:function(e){var t=this,a=t.options,n=t.imageData,o=t.canvasData,r=t.cropBoxData,i=void 0,l=void 0;return t.ready&&t.cropped?(l={x:r.left-o.left,y:r.top-o.top,width:r.width,height:r.height},i=n.width/n.naturalWidth,s(l,function(t,a){t/=i,l[a]=e?Math.round(t):t})):l={x:0,y:0,width:0,height:0},a.rotatable&&(l.rotate=n.rotate||0),a.scalable&&(l.scaleX=n.scaleX||1,l.scaleY=n.scaleY||1),l},setData:function(e){var a=this,n=a.options,i=a.imageData,l=a.canvasData,s={},c=void 0,u=void 0,d=void 0;return r(e)&&(e=e.call(a.element)),a.ready&&!a.disabled&&o(e)&&(n.rotatable&&t(e.rotate)&&e.rotate!==i.rotate&&(i.rotate=e.rotate,a.rotated=c=!0),n.scalable&&(t(e.scaleX)&&e.scaleX!==i.scaleX&&(i.scaleX=e.scaleX,u=!0),t(e.scaleY)&&e.scaleY!==i.scaleY&&(i.scaleY=e.scaleY,u=!0)),c?a.renderCanvas():u&&a.renderImage(),d=i.width/i.naturalWidth,t(e.x)&&(s.left=e.x*d+l.left),t(e.y)&&(s.top=e.y*d+l.top),t(e.width)&&(s.width=e.width*d),t(e.height)&&(s.height=e.height*d),a.setCropBoxData(s)),a},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,a={};return e.ready&&s(["left","top","width","height","naturalWidth","naturalHeight"],function(e){a[e]=t[e]}),a},setCanvasData:function(e){var a=this,n=a.canvasData,i=n.aspectRatio;return r(e)&&(e=e.call(a.element)),a.ready&&!a.disabled&&o(e)&&(t(e.left)&&(n.left=e.left),t(e.top)&&(n.top=e.top),t(e.width)?(n.width=e.width,n.height=e.width/i):t(e.height)&&(n.height=e.height,n.width=e.height*i),a.renderCanvas(!0)),a},getCropBoxData:function(){var e=this,t=e.cropBoxData,a=void 0;return e.ready&&e.cropped&&(a={left:t.left,top:t.top,width:t.width,height:t.height}),a||{}},setCropBoxData:function(e){var a=this,n=a.cropBoxData,i=a.options.aspectRatio,l=void 0,s=void 0;return r(e)&&(e=e.call(a.element)),a.ready&&a.cropped&&!a.disabled&&o(e)&&(t(e.left)&&(n.left=e.left),t(e.top)&&(n.top=e.top),t(e.width)&&e.width!==n.width&&(l=!0,n.width=e.width),t(e.height)&&e.height!==n.height&&(s=!0,n.height=e.height),i&&(l?n.height=n.width/i:s&&(n.width=n.height*i)),a.renderCropBox()),a},getCroppedCanvas:function(e){var t=this;if(!t.ready||!window.HTMLCanvasElement)return null;if(o(e)||(e={}),!t.cropped)return A(t.image,t.imageData,e);var a=t.getData(),n=a.width,r=a.height,i=n/r,l=void 0,s=void 0,c=void 0;o(e)&&(l=e.width,s=e.height,l?(s=l/i,c=l/n):s&&(l=s*i,c=s/r));var u=Math.floor(l||n),d=Math.floor(s||r),p=O("canvas"),h=p.getContext("2d");p.width=u,p.height=d,e.fillColor&&(h.fillStyle=e.fillColor,h.fillRect(0,0,u,d));var f=function(){var o=A(t.image,t.imageData,e),i=o.width,l=o.height,s=t.canvasData,u=[o],d=a.x+s.naturalWidth*(Math.abs(a.scaleX||1)-1)/2,p=a.y+s.naturalHeight*(Math.abs(a.scaleY||1)-1)/2,h=void 0,f=void 0,m=void 0,v=void 0,g=void 0,y=void 0;return d<=-n||d>i?d=h=m=g=0:d<=0?(m=-d,d=0,h=g=Math.min(i,n+d)):d<=i&&(m=0,h=g=Math.min(n,i-d)),h<=0||p<=-r||p>l?p=f=v=y=0:p<=0?(v=-p,p=0,f=y=Math.min(l,r+p)):p<=l&&(v=0,f=y=Math.min(r,l-p)),u.push(Math.floor(d),Math.floor(p),Math.floor(h),Math.floor(f)),c&&(m*=c,v*=c,g*=c,y*=c),g>0&&y>0&&u.push(Math.floor(m),Math.floor(v),Math.floor(g),Math.floor(y)),u}();return h.imageSmoothingEnabled=!!e.imageSmoothingEnabled,e.imageSmoothingQuality&&(h.imageSmoothingQuality=e.imageSmoothingQuality),h.drawImage.apply(h,V(f)),p},setAspectRatio:function(e){var t=this,n=t.options;return t.disabled||a(e)||(n.aspectRatio=Math.max(0,e)||NaN,t.ready&&(t.initCropBox(),t.cropped&&t.renderCropBox())),t},setDragMode:function(e){var t=this,a=t.options,n=t.dragBox,o=t.face,r=void 0,i=void 0;return t.loaded&&!t.disabled&&(r="crop"===e,i=a.movable&&"move"===e,e=r||i?e:"none",y(n,"action",e),m(n,"cropper-crop",r),m(n,"cropper-move",i),a.cropBoxMovable||(y(o,"action",e),m(o,"cropper-crop",r),m(o,"cropper-move",i))),t}},Le="cropper",He=Le+"-hidden",We="error",Ye="load",qe="ready",ze="crop",Xe=/^data:/,Fe=/^data:image\/jpeg;base64,/,Ie=void 0,Ue=function(){function e(t,a){G(this,e);var n=this;n.element=t,n.options=c({},F,o(a)&&a),n.loaded=!1,n.ready=!1,n.complete=!1,n.rotated=!1,n.cropped=!1,n.disabled=!1,n.replaced=!1,n.limited=!1,n.wheeling=!1,n.isImg=!1,n.originalUrl="",n.canvasData=null,n.cropBoxData=null,n.previews=null,n.pointers={},n.init()}return K(e,[{key:"init",value:function(){var e=this,t=e.element,a=t.tagName.toLowerCase(),n=void 0;if(!g(t,Le)){if(y(t,Le,e),"img"===a){if(e.isImg=!0,e.originalUrl=n=t.getAttribute("src"),!n)return;n=t.src}else"canvas"===a&&window.HTMLCanvasElement&&(n=t.toDataURL());e.load(n)}}},{key:"load",value:function(e){var t=this,a=t.options,n=t.element;if(e){if(t.url=e,t.imageData={},!a.checkOrientation||!window.ArrayBuffer)return void t.clone();if(Xe.test(e))return void(Fe.test(e)?t.read(W(e)):t.clone());var o=new XMLHttpRequest;o.onerror=o.onabort=function(){t.clone()},o.onload=function(){t.read(o.response)},a.checkCrossOrigin&&_(e)&&n.crossOrigin&&(e=R(e)),o.open("get",e),o.responseType="arraybuffer",o.withCredentials="use-credentials"===n.crossOrigin,o.send()}}},{key:"read",value:function(e){var t=this,a=t.options,n=H(e),o=t.imageData,r=0,i=1,l=1;if(n>1)switch(t.url=Y(e),n){case 2:i=-1;break;case 3:r=-180;break;case 4:l=-1;break;case 5:r=90,l=-1;break;case 6:r=90;break;case 7:r=90,i=-1;break;case 8:r=-90}a.rotatable&&(o.rotate=r),a.scalable&&(o.scaleX=i,o.scaleY=l),t.clone()}},{key:"clone",value:function(){var e=this,t=e.element,a=e.url,n=void 0,o=void 0,r=void 0,i=void 0;e.options.checkCrossOrigin&&_(a)&&(n=t.crossOrigin,n?o=a:(n="anonymous",o=R(a))),e.crossOrigin=n,e.crossOriginUrl=o;var l=O("img");n&&(l.crossOrigin=n),l.src=o||a,e.image=l,e.onStart=r=u(e.start,e),e.onStop=i=u(e.stop,e),e.isImg?t.complete?e.start():C(t,Ye,r):(C(l,Ye,r),C(l,We,i),h(l,"cropper-hide"),t.parentNode.insertBefore(l,t.nextSibling))}},{key:"start",value:function(e){var t=this,a=t.isImg?t.element:t.image;e&&(w(a,Ye,t.onStart),w(a,We,t.onStop)),N(a,function(e,a){c(t.imageData,{naturalWidth:e,naturalHeight:a,aspectRatio:e/a}),t.loaded=!0,t.build()})}},{key:"stop",value:function(){var e=this,t=e.image;w(t,Ye,e.onStart),w(t,We,e.onStop),D(t),e.image=null}},{key:"build",value:function(){var e=this,t=e.options,a=e.element,n=e.image,o=void 0,i=void 0,l=void 0,s=void 0,c=void 0,u=void 0;if(e.loaded){e.ready&&e.unbuild();var d=O("div");d.innerHTML=I,e.container=o=a.parentNode,e.cropper=i=k(d,"cropper-container")[0],e.canvas=l=k(i,"cropper-canvas")[0],e.dragBox=s=k(i,"cropper-drag-box")[0],e.cropBox=c=k(i,"cropper-crop-box")[0],e.viewBox=k(i,"cropper-view-box")[0],e.face=u=k(c,"cropper-face")[0],P(l,n),h(a,He),o.insertBefore(i,a.nextSibling),e.isImg||f(n,"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(s,"cropper-modal"):h(c,He),t.guides||h(k(c,"cropper-dashed"),He),t.center||h(k(c,"cropper-center"),He),t.background&&h(i,"cropper-bg"),t.highlight||h(u,"cropper-invisible"),t.cropBoxMovable&&(h(u,"cropper-move"),y(u,"action","all")),t.cropBoxResizable||(h(k(c,"cropper-line"),He),h(k(c,"cropper-point"),He)),e.setDragMode(t.dragMode),e.render(),e.ready=!0,e.setData(t.data),e.completing=setTimeout(function(){r(t.ready)&&C(a,qe,t.ready,!0),x(a,qe),x(a,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,D(e.cropper),e.cropper=null)}}],[{key:"noConflict",value:function(){return window.Cropper=Ie,e}},{key:"setDefaults",value:function(e){c(F,o(e)&&e)}}]),e}();return c(Ue.prototype,ce),c(Ue.prototype,de),c(Ue.prototype,Me),c(Ue.prototype,ke),c(Ue.prototype,Be),c(Ue.prototype,Ae),"undefined"!=typeof window&&(Ie=window.Cropper,window.Cropper=Ue),Ue})},1691:function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 l(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=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(a){if(e[a]!==t.props[a]&&g.indexOf(a)!==-1)throw new Error("prop: "+a+" 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,a=t.src,n=t.alt,o=t.crossOrigin;return d.default.createElement("div",{src:null,crossOrigin:null,alt:null,style:this.props.style,className:this.props.className},d.default.createElement("img",{crossOrigin:o,ref:function(t){e.img=t},src:a,alt:void 0===n?"picture":n,style:{opacity:0}}))}}]),t}(u.Component);y.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},y.defaultProps={src:null,dragMode:"crop",data:null,scaleX:1,scaleY:1,enable:!0,zoomTo:1,rotateTo:0},t.default=y},1981:function(e,t,a){try{(function(){"use strict";function n(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 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&&!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(a){for(;;)switch(a.prev=a.next){case 0:return m.default.extend(this.state.favorites,{language:e}),this.setState({favorites:this.state.favorites}),a.next=4,regeneratorRuntime.awrap(this.favoriteChange({language:e}));case 4:t=a.sent;case 6:case"end":return a.stop()}},null,this)}},{key:"favoriteChange",value:function(e){var t,a,n;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 a=o.sent,0===a?alert("aa"):(n=this.props.favorites,alert("bb")),o.abrupt("return",a);case 6:case"end":return o.stop()}},null,this)}},{key:"componentWillMount",value:function(){var e,t,a,n,o,r,i,l;return regeneratorRuntime.async(function(s){for(;;)switch(s.prev=s.next){case 0:return e=this.props.getUser,s.next=3,regeneratorRuntime.awrap(e());case 3:t=this.props,a=t.accounts,n=void 0===a?{}:a,o=t.notifications,r=void 0===o?{}:o,i=t.favorites,l=void 0===i?{}:i,this.setState({accounts:n,notifications:r,favorites:l});case 11:case"end":return s.stop()}},null,this)}},{key:"render",value:function(){var e=this,t={marginLeft:"20px",marginTop:"10px",marginBottom:"10px"},a={color:"#54d09f",fontSize:"12px"},n={color:"#da4f4a",fontSize:"12px"},o=this.props,r=o.i18n,i=o.accounts,l=o.setAvatar,s=o.updAvatar,f=o.avatarLoading,m=(o.accountLoading,o.notifyLoading),C=(o.favoriteLoading,o.updAccount),x=o.resetPwd,E=this.state,M=E.notifications,T=(E.favorites,[]);T.push({id:"avatar",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"头像"),c.default.createElement("span",{className:"table-td-issue-desc"},"选择一张个人正面照片作为头像,让其他成员更容易认识你。")),contents:c.default.createElement("div",{style:t},c.default.createElement("img",{src:i.avatar?w+"/getavatar?fid="+i.avatar:v,className:"big-avatar"}),c.default.createElement(d.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({avatarEditModalShow:!0})}},"设置头像"))}),T.push({id:"basic",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"个人资料")),contents:c.default.createElement("div",{style:t},c.default.createElement("ul",{className:"list-unstyled clearfix",style:{lineHeight:2}},c.default.createElement("li",null,"姓名:",i.first_name||"-"),c.default.createElement("li",null,"部门:",i.department||"-"),c.default.createElement("li",null,"职位:",i.position||"-")),c.default.createElement(d.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({editModalShow:!0})}},"编辑资料"))}),T.push({id:"email",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"邮箱地址"),c.default.createElement("span",{className:"table-td-issue-desc"},"该账号绑定的邮箱地址不能改变。")),contents:c.default.createElement("div",{style:t},"当前邮箱地址为:",i.email||"-")}),T.push({id:"password",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"登录密码"),c.default.createElement("span",{className:"table-td-issue-desc"},"修改密码时需要输入当前密码;建议您定期更换密码,确保帐号安全。")),contents:c.default.createElement("div",{style:t},c.default.createElement(d.Button,{style:{marginLeft:"15px"},onClick:function(){e.setState({resetPwdModalShow:!0})}},"修改密码"))}),T.push({id:"phone",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"绑定手机号"),c.default.createElement("span",{className:"table-td-issue-desc"},"修改手机时 ActionView 会发送短信到新的手机号,请按照短信中的验证码修改你的手机号码。")),contents:c.default.createElement("div",{style:t},c.default.createElement("div",null,"当前手机号为:",i.phone||"未设置"),c.default.createElement("div",{style:{marginTop:"10px"}},c.default.createElement(d.Button,{style:{marginLeft:"15px"},onClick:function(){h.notify.show("暂不支持此功能。","warning",2e3)}},i.phone&&"修改","绑定手机号")))});var k=[];k.push({id:"language",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"语言设置"),c.default.createElement("span",{className:"table-td-issue-desc"},"请选择您喜欢的语言(暂不支持此功能)")),contents:c.default.createElement("div",{style:t},c.default.createElement("div",{style:{margin:"3px"}},"中文"))});var O=[];O.push({id:"mail_notify",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"邮件通知"),c.default.createElement("span",{className:"table-td-issue-desc"},"当问题有重要操作时,会根据相应的通知方案配置,发送提醒邮件给你。")),contents:c.default.createElement("div",{style:t},c.default.createElement(p.CheckboxGroup,{name:"mail_notify",value:M.mail_notify?["mail_notify"]:[],onChange:this.mailNotifyChange.bind(this)},c.default.createElement(p.Checkbox,{disabled:m,value:"mail_notify"}),c.default.createElement("span",null," 开启邮件通知"),c.default.createElement("br",null),M.mail_notify?c.default.createElement("span",{style:a},"已开启"):c.default.createElement("span",{style:n},"已关闭")))}),O.push({id:"mobile_notify",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"移动端通知"),c.default.createElement("span",{className:"table-td-issue-desc"},"当问题有重要操作时,会根据相应的通知方案配置,自动将消息推送到 ActionView 移动客户端")),contents:c.default.createElement("div",{style:t},c.default.createElement(p.CheckboxGroup,{name:"mobile_notify",value:M.mobile_notify?["mobile_notify"]:[],onChange:this.mobileNotifyChange.bind(this)},c.default.createElement(p.Checkbox,{disabled:m,value:"mobile_notify"}),c.default.createElement("span",null," 开启移动端通知"),c.default.createElement("br",null),M.mobile_notify?c.default.createElement("span",{style:a},"已开启"):c.default.createElement("span",{style:n},"已关闭")))}),O.push({id:"daily_notify",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"每日提醒"),c.default.createElement("span",{className:"table-td-issue-desc"},"每天向你发送一封包含当日工作内容的邮件。")),contents:c.default.createElement("div",{style:t},c.default.createElement(p.CheckboxGroup,{name:"daily_notify",value:M.daily_notify?["daily_notify"]:[],onChange:this.dailyNotifyChange.bind(this)},c.default.createElement(p.Checkbox,{disabled:m,value:"daily_notify"}),c.default.createElement("span",null," 接收每日邮件提醒"),c.default.createElement("br",null),M.daily_notify?c.default.createElement("span",{style:a},"已开启"):c.default.createElement("span",{style:n},"已关闭")))}),O.push({id:"weekly_notify",title:c.default.createElement("div",null,c.default.createElement("span",{className:"table-td-title"},"每周提醒"),c.default.createElement("span",{className:"table-td-issue-desc"},"每周向你发送一封本周工作内容的邮件。")),contents:c.default.createElement("div",{style:t},c.default.createElement(p.CheckboxGroup,{name:"weekly_notify",value:M.weekly_notify?["weekly_notify"]:[],onChange:this.weeklyNotifyChange.bind(this)},c.default.createElement(p.Checkbox,{disabled:m,value:"weekly_notify"}),c.default.createElement("span",null," 接收每周邮件提醒"),c.default.createElement("br",null),M.weekly_notify?c.default.createElement("span",{style:a},"已开启"):c.default.createElement("span",{style:n},"已关闭")))});var P=[],D=[];return"account"==this.state.tabKey?D=T:"favorite"==this.state.tabKey?D=k:"notification"==this.state.tabKey?D=O:"record"==this.state.tabKey&&(D=P),c.default.createElement("div",null,c.default.createElement(d.Nav,{bsStyle:"pills",style:{marginTop:"10px","float":"left",lineHeight:"1.0"},activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this)},c.default.createElement(d.NavItem,{eventKey:"account",href:"#"},"账号资料"),c.default.createElement(d.NavItem,{eventKey:"favorite",href:"#"},"个人偏好"),c.default.createElement(d.NavItem,{eventKey:"notification",href:"#"},"消息提醒")),c.default.createElement(u.BootstrapTable,{data:D,bordered:!1,hover:!0,trClassName:"tr-top"},c.default.createElement(u.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),c.default.createElement(u.TableHeaderColumn,{width:"260",dataField:"title"}),c.default.createElement(u.TableHeaderColumn,{width:"200",dataField:"contents"}),c.default.createElement(u.TableHeaderColumn,{dataField:"blank"})),this.state.avatarEditModalShow&&c.default.createElement(g,{show:!0,close:this.avatarEditModalClose,loading:f,setAvatar:l,updAvatar:s,data:i,i18n:r}),this.state.editModalShow&&c.default.createElement(y,{show:!0,close:this.editModalClose,update:C,data:i,i18n:r}),this.state.resetPwdModalShow&&c.default.createElement(b,{show:!0,close:this.resetPwdModalClose,resetPwd:x,i18n:r}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,getUser:s.PropTypes.func.isRequired,setAvatar:s.PropTypes.func.isRequired,updAvatar:s.PropTypes.func.isRequired,avatarLoading:s.PropTypes.bool.isRequired,resetPwd:s.PropTypes.func.isRequired,updAccount:s.PropTypes.func.isRequired,updNotify:s.PropTypes.func.isRequired,updFavorite:s.PropTypes.func.isRequired,accountLoading:s.PropTypes.bool.isRequired,accounts:s.PropTypes.object.isRequired,notifyLoading:s.PropTypes.bool.isRequired,notifications:s.PropTypes.object.isRequired,favoriteLoading:s.PropTypes.bool.isRequired,favorites:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=C,e.exports=t.default}).call(this)}finally{}},1985:function(e,t,a){try{(function(){"use strict";function n(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 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 a=0;ao&&s>i||(e.moveCard(n,o),t.getItem().index=o)}}},h=function(e){function t(){o(this,r),l(Object.getPrototypeOf(r.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.text,r=e.isDragging,n=e.connectDragSource,o=e.connectDropTarget,a=e.deleteCard,i=r?0:1,l={"float":"right",cursor:"pointer"};return n(o(u.default.createElement("div",{style:{opacity:i},className:"dragcard"},t,!!a&&u.default.createElement("span",{style:l,onClick:a,title:"删除",className:"rm-icon"},u.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 r=t;return t=(0,d.DragSource)(f.CardTypes.CARD,p,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(f.CardTypes.CARD,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},114:function(e,t,r){try{(function(){"use strict";function n(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=function(){function e(e,t){for(var r=0;r0?u.default.createElement("span",null,"共有应用项目 ",u.default.createElement("strong",null,t.length)," 个"):u.default.createElement("span",null,"暂无项目应用")),!n&&t.length>0&&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("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):u.default.createElement("span",null,e.name,"(已关闭)")),u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key+"/issue?priority="+(r.key||r.id)},e.issue_count||0)):u.default.createElement("span",null,e.issue_count||0)))})))),u.default.createElement(c.Modal.Footer,null,u.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=h,e.exports=t.default}).call(this)}finally{}},2080:function(e,t,r){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 n(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_CREATE",promise:function(r){return r.request({url:"/project/"+e+"/priority",method:"post",data:t})}})}function o(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_UPDATE",promise:function(r){return r.request({url:"/project/"+e+"/priority/"+t.id,method:"put",data:t})}})}function a(e){return{type:"PRIORITY_SELECT",id:e}}function i(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_DELETE",id:t,promise:function(r){return r.request({url:"/project/"+e+"/priority/"+t,method:"delete"})}})}function l(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_SET_SORT",promise:function(r){return r.request({url:"/project/"+e+"/priority/batch",method:"post",data:t})}})}function s(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_SET_DEFAULT",promise:function(r){return r.request({url:"/project/"+e+"/priority/batch",method:"post",data:t})}})}function u(e,t){return(0,c.asyncFuncCreator)({constant:"PRIORITY_VIEW_USED",id:t,promise:function(r){return r.request({url:"/project/"+e+"/priority/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=n,t.update=o,t.select=a,t.del=i,t.setSort=l,t.setDefault=s,t.viewUsed=u;var c=r(26)}).call(this)}finally{}}}); -//# sourceMappingURL=priority-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=priority-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/project-2fafc167f8a6ebfe8dae.js b/public/assets/project-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/project-2fafc167f8a6ebfe8dae.js rename to public/assets/project-d133ff15592d3c829f3c.js index c793f601..cbb3c407 100644 --- a/public/assets/project-2fafc167f8a6ebfe8dae.js +++ b/public/assets/project-d133ff15592d3c829f3c.js @@ -1,4 +1,4 @@ webpackJsonp([24],{86: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 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 l=Object.assign||function(e){for(var t=1;to||r<=0)&&(r=1);for(var c=[],d=0;do)break;c.push(f)}return u.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},u.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},u.default.createElement("span",null,p.default.add((r-1)*i,1),"-",r*i>=a?a:r*i," 共",a,"条 ",o,"页")),u.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},o>1&&u.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},r-s>1&&u.default.createElement("li",{key:"first"},u.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),r-1>0&&o>1&&u.default.createElement("li",{key:"pre"},u.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,r-1),title:"前页"},"<")),p.default.map(c,function(t,a){return u.default.createElement("li",{key:a,className:t===r?"active":""},u.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),r1&&u.default.createElement("li",{key:"next"},u.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,p.default.add(r,1)),title:"后页"},">")),o-s>r&&u.default.createElement("li",{key:"last"},u.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,o),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:c.PropTypes.object,refresh:c.PropTypes.func,total:c.PropTypes.number.isRequired,curPage:c.PropTypes.number,sizePerPage:c.PropTypes.number,paginationSize:c.PropTypes.number},enumerable:!0}]),t}(c.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},422: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 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 l=function(){function e(e,t){for(var a=0;a0&&(K={mode:"checkbox",selected:this.state.selectedIds,onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)}),c.default.createElement("div",null,c.default.createElement("div",{style:{marginTop:"5px",height:"40px"}},c.default.createElement(d.FormGroup,null,c.default.createElement("span",{style:{"float":"right",width:"90px"}},c.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:"archived",label:"已归档"}]})),c.default.createElement("span",{style:{"float":"right",width:"22%",marginRight:"10px"}},c.default.createElement(f.default,{simpleValue:!0,placeholder:"责任人",value:this.state.principal_id,onChange:this.principalChange.bind(this),options:v.default.map(C.principals,function(e){return{value:e.id,label:e.name+"("+e.email+")"}})})),c.default.createElement("span",{style:{"float":"right",width:"22%",marginRight:"10px"}},c.default.createElement(d.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&&c.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},c.default.createElement(d.DropdownButton,{title:"操作",onSelect:this.multiOperateSelect.bind(this)},c.default.createElement(d.MenuItem,{eventKey:"archive"},"归档"),c.default.createElement(d.MenuItem,{eventKey:"reopen"},"取消归档"),c.default.createElement(d.MenuItem,{eventKey:"create_index"},"重建索引"))),c.default.createElement("span",{style:{"float":"left",width:"20%"}},c.default.createElement(d.Button,{onClick:function(){e.setState({createModalShow:!0})},disabled:l},c.default.createElement("i",{className:"fa fa-plus"})," 新建项目")))),c.default.createElement("div",null,c.default.createElement(u.BootstrapTable,{data:B,bordered:!1,hover:!0,options:H,trClassName:"tr-middle",selectRow:K},c.default.createElement(u.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),c.default.createElement(u.TableHeaderColumn,{dataField:"name"},"名称"),c.default.createElement(u.TableHeaderColumn,{dataField:"key",width:"170"},"键值"),c.default.createElement(u.TableHeaderColumn,{dataField:"principal",width:"320"},"责任人"),c.default.createElement(u.TableHeaderColumn,{dataField:"status",width:"80"},"状态"),c.default.createElement(u.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.editModalShow&&c.default.createElement(P,{show:!0,close:this.editModalClose,update:R,data:r,i18n:a}),this.state.createModalShow&&c.default.createElement(E,{show:!0,mode:"admin",close:this.createModalClose,create:p,i18n:a}),this.state.archiveNotifyShow&&c.default.createElement(k,{show:!0,close:this.archiveNotifyClose,data:r,archive:m}),this.state.delNotifyShow&&c.default.createElement(x,{show:!0,close:this.delNotifyClose,data:r,del:h}),this.state.multiOperateNotifyShow&&c.default.createElement(S,{show:!0,close:this.multiOperateNotifyClose,multiReopen:b,multiArchive:y,multiCreateIndex:g,ids:this.state.selectedIds,cancelSelected:this.cancelSelected.bind(this),operate:this.state.multiOperate,loading:i,i18n:a})),!l&&C.total&&C.total>0?c.default.createElement(w,{total:C.total||0,curPage:T.page||1,sizePerPage:C.sizePerPage||30,paginationSize:4,query:T,refresh:o}):"")}}],[{key:"propTypes",value:{i18n:o.PropTypes.object.isRequired,options:o.PropTypes.object,getOptions:o.PropTypes.func.isRequired,collection:o.PropTypes.array.isRequired,selectedItem:o.PropTypes.object.isRequired,query:o.PropTypes.object.isRequired,loading:o.PropTypes.bool.isRequired,itemLoading:o.PropTypes.bool.isRequired,indexLoading:o.PropTypes.bool.isRequired,index:o.PropTypes.func.isRequired,refresh:o.PropTypes.func.isRequired,entry:o.PropTypes.func.isRequired,select:o.PropTypes.func.isRequired,create:o.PropTypes.func.isRequired,update:o.PropTypes.func.isRequired,reopen:o.PropTypes.func.isRequired,createIndex:o.PropTypes.func.isRequired,multiReopen:o.PropTypes.func.isRequired,multiArchive:o.PropTypes.func.isRequired,multiCreateIndex:o.PropTypes.func.isRequired,archive:o.PropTypes.func.isRequired,del:o.PropTypes.func.isRequired},enumerable:!0}]),t}(o.Component);t.default=R,e.exports=t.default}).call(this)}finally{}},1935: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 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 l=function(){function e(e,t){for(var a=0;a0&&(q=E(".cardContainer .card").get(0).clientWidth-10);for(var I=[],F=r.length,B=function(t){I.push({id:r[t].id,no:t+1,name:c.default.createElement("div",null,c.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.entry(r[t].key)}},r[t].name),r[t].description&&c.default.createElement("span",{className:"table-td-desc"},r[t].description)),key:r[t].key,principal:r[t].principal.id!==n.id?c.default.createElement("div",null,c.default.createElement("span",null,r[t].principal.name)):c.default.createElement("div",null,g.default.indexOf(j,r[t].id)===-1&&g.default.indexOf(N,r[t].id)===-1?c.default.createElement("div",{className:"editable-list-field"},c.default.createElement("div",{style:{display:"table",width:"100%"}},r[t].principal?c.default.createElement("span",null,c.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"4px"}},r[t].principal.name||"-")):"-",c.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:e.willSetPrincipal.bind(e,r[t].id)},c.default.createElement("i",{className:"fa fa-pencil"})))):c.default.createElement("div",null,c.default.createElement(m.default.Async,{clearable:!1,disabled:g.default.indexOf(N,r[t].id)!==-1&&!0,options:[],value:e.state.principal[r[t].id]||r[t].principal,onChange:e.handlePrincipalSelectChange.bind(e,r[t].id),valueKey:"id",labelKey:"nameAndEmail",loadOptions:e.searchUsers,placeholder:"请输入用户"}),c.default.createElement("div",{className:g.default.indexOf(N,r[t].id)!==-1?"hide":"edit-button-group"},c.default.createElement(p.Button,{className:"edit-ok-button",onClick:e.setPrincipal.bind(e,r[t].id)},c.default.createElement("i",{className:"fa fa-check"})),c.default.createElement(p.Button,{className:"edit-cancel-button",onClick:e.cancelSetPrincipal.bind(e,r[t].id)},c.default.createElement("i",{className:"fa fa-close"})))),c.default.createElement("img",{src:S,style:{"float":"right"},className:g.default.indexOf(N,r[t].id)!==-1?"loading":"hide"})),status:"active"==r[t].status?c.default.createElement("span",{className:"project-inprogress-label"},"活动中"):c.default.createElement("span",{className:"project-close-label"},"已归档"),issues:c.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},c.default.createElement("li",null,"所有问题 - ",c.default.createElement(u.Link,{to:"/project/"+r[t].key+"/issue"},r[t].stats?r[t].stats.all:"")),c.default.createElement("li",null,"未解决的 - ",c.default.createElement(u.Link,{to:"/project/"+r[t].key+"/issue?resolution=Unresolved"},r[t].stats?r[t].stats.unresolved:"")),c.default.createElement("li",null,"分配给我的 - ",c.default.createElement(u.Link,{to:"/project/"+r[t].key+"/issue?resolution=Unresolved&assignee=me"},r[t].stats?r[t].stats.assigntome:""))),operation:r[t].principal.id===n.id&&c.default.createElement("div",null,T&&"active"==r[t].status&&C===r[t].id&&!o&&c.default.createElement(p.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:t,title:M,id:"dropdown-basic-"+t,onSelect:e.operateSelect.bind(e)},c.default.createElement(p.MenuItem,{eventKey:"1"},"编辑"),c.default.createElement(p.MenuItem,{eventKey:"2"},"归档")),c.default.createElement("img",{src:S,className:o&&l.id===r[t].id?"loading":"hide"}))})},L=0;"list"==this.state.mode&&L0&&r.map(function(t,a){return c.default.createElement("div",{className:"col-lg-3 col-md-4 col-sm-6 col-xs-12 cardContainer",key:a},c.default.createElement("div",{className:"card"},c.default.createElement("div",{className:"content"},c.default.createElement("div",{className:"title"},c.default.createElement("p",{className:"name"},c.default.createElement("a",{href:"#",title:t.name,onClick:function(a){a.preventDefault(),e.entry(t.key)}},t.key+" - "+t.name))),t.stats?c.default.createElement(f.AreaChart,{width:q,height:80,data:t.stats.trend||[],style:{margin:"35px auto" }},c.default.createElement(f.Area,{type:"monotone",dataKey:"new",stroke:"active"!==t.status?"#aaa":"#337ab7",fill:"active"!==t.status?"#aaa":"#337ab7",strokeWidth:1})):c.default.createElement("div",{style:{marginTop:"60px",textAlign:"center"}},c.default.createElement("img",{src:S,className:"loading"})),c.default.createElement("div",{className:"stats-cnt"},c.default.createElement("div",{className:"stats-cnt-cell"},"全部",c.default.createElement("br",null),t.stats?c.default.createElement(u.Link,{to:"/project/"+t.key+"/issue"},t.stats.all):c.default.createElement("img",{style:{height:"12px",width:"12px"},src:S,className:"loading"})),c.default.createElement("div",{className:"stats-cnt-cell"},"未解决",c.default.createElement("br",null),t.stats?c.default.createElement(u.Link,{to:"/project/"+t.key+"/issue?resolution=Unresolved"},t.stats.unresolved):c.default.createElement("img",{style:{height:"12px",width:"12px"},src:S,className:"loading"})),c.default.createElement("div",{className:"stats-cnt-cell"},"分配给我",c.default.createElement("br",null),t.stats?c.default.createElement(u.Link,{to:"/project/"+t.key+"/issue?assignee=me&resolution=Unresolved"},t.stats.assigntome):c.default.createElement("img",{style:{height:"12px",width:"12px"},src:S,className:"loading"})))),c.default.createElement("div",{className:"leader"},c.default.createElement("span",null,"负责人: ",t.principal.name)),"active"!==t.status&&c.default.createElement("div",{className:"statuss"},c.default.createElement("span",{className:"project-close-label"},"已归档")),t.principal.id===n.id&&c.default.createElement("div",{className:"btns"},"active"==t.status&&c.default.createElement("span",{style:{marginLeft:"5px"},title:"编辑",onClick:e.edit.bind(e,t.id),className:"comments-button"},c.default.createElement("i",{className:"fa fa-edit","aria-hidden":"true"})),"active"===t.status&&c.default.createElement("span",{style:{marginLeft:"5px"},title:"归档",onClick:e.archiveNotify.bind(e,t.id),className:"comments-button"},c.default.createElement("i",{className:"fa fa-archive","aria-hidden":"true"})))))}),this.state.editModalShow&&c.default.createElement(k,{show:!0,close:this.editModalClose,update:b,data:l,i18n:a}),this.state.createModalShow&&c.default.createElement(P,{show:!0,close:this.createModalClose,create:y,i18n:a}),this.state.archiveNotifyShow&&c.default.createElement(x,{show:!0,close:this.archiveNotifyClose,data:l,archive:v})),i.length>0&&i.length%(O.limit||4)===0&&c.default.createElement(p.ButtonGroup,{vertical:!0,block:!0,style:{marginTop:"15px"}},c.default.createElement(p.Button,{onClick:this.more.bind(this)},c.default.createElement("div",null,c.default.createElement("img",{src:S,className:h?"loading":"hide"}),c.default.createElement("span",null,h?"":"更多...")))))}}],[{key:"propTypes",value:{i18n:o.PropTypes.object.isRequired,user:o.PropTypes.object.isRequired,options:o.PropTypes.object.isRequired,collection:o.PropTypes.array.isRequired,increaseCollection:o.PropTypes.array.isRequired,selectedItem:o.PropTypes.object.isRequired,itemLoading:o.PropTypes.bool.isRequired,indexLoading:o.PropTypes.bool.isRequired,moreLoading:o.PropTypes.bool.isRequired,index:o.PropTypes.func.isRequired,more:o.PropTypes.func.isRequired,entry:o.PropTypes.func.isRequired,create:o.PropTypes.func.isRequired,select:o.PropTypes.func.isRequired,update:o.PropTypes.func.isRequired,reopen:o.PropTypes.func.isRequired,createIndex:o.PropTypes.func.isRequired,archive:o.PropTypes.func.isRequired},enumerable:!0}]),t}(o.Component);t.default=O,e.exports=t.default}).call(this)}finally{}}}); -//# sourceMappingURL=project-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=project-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/reminds-2fafc167f8a6ebfe8dae.js b/public/assets/reminds-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/reminds-2fafc167f8a6ebfe8dae.js rename to public/assets/reminds-d133ff15592d3c829f3c.js index 41649500..53701734 100644 --- a/public/assets/reminds-2fafc167f8a6ebfe8dae.js +++ b/public/assets/reminds-d133ff15592d3c829f3c.js @@ -1,2 +1,2 @@ webpackJsonp([27],{19:function(e,t,r){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r=[{id:"new",name:"新建"},{id:"inprogress",name:"进行中"},{id:"completed",name:"完成"}];t.StateCategories=r;var n={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=n;var a=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=a;var o={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=o;var i=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=i;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},1938:function(e,t,r){try{(function(){"use strict";function n(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 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)}function l(e){return{actions:(0,m.bindActionCreators)(y,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.BarChart,{width:.95*r.containerWidth,height:380,barSize:40,data:I,style:{margin:"25px auto"}},u.default.createElement(m.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(m.XAxis,{dataKey:"name"}),u.default.createElement(m.YAxis,null),u.default.createElement(m.Tooltip,null),_!==k&&k&&u.default.createElement(m.Legend,null),_!==k&&k?y.default.map(I[0].y||[],function(e,t){return u.default.createElement(m.Bar,{key:t,dataKey:"y_"+t+"_cnt",stackId:"a",name:e.name,fill:P[t%P.length]})}):u.default.createElement(m.Bar,{dataKey:"cnt",name:"个数",fill:"#3b7fc4"}))),"line"===L&&I.length>0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.LineChart,{width:.95*r.containerWidth,height:380,data:I,style:{margin:"25px auto"}},u.default.createElement(m.XAxis,{dataKey:"name"}),u.default.createElement(m.YAxis,null),u.default.createElement(m.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(m.Tooltip,null),_!==k&&k&&u.default.createElement(m.Legend,null),_!==k&&k?y.default.map(I[0].y||[],function(e,t){return u.default.createElement(m.Line,{key:t,dataKey:"y_"+t+"_cnt",name:e.name,stroke:P[t%P.length]})}):u.default.createElement(m.Line,{dataKey:"cnt",name:"个数",stroke:"#d04437"}))),"pie"===L&&I.length>0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.PieChart,{width:800,height:380,style:{margin:"25px auto"}},u.default.createElement(m.Pie,{dataKey:"cnt",data:I,cx:400,cy:200,outerRadius:130,label:!0},y.default.map(I,function(e,t){return u.default.createElement(m.Cell,{key:t,fill:P[t%P.length]})})),u.default.createElement(m.Tooltip,null))),I.length>0&&u.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},u.default.createElement("span",null,"注:该图表最多统计满足当前检索条件下的10000条结果。"),_!=k&&k?u.default.createElement(d.Table,{responsive:!0,bordered:!0},u.default.createElement("thead",null,u.default.createElement("tr",null,u.default.createElement("th",null,"维度"),y.default.map(I[0].y,function(e,t){return u.default.createElement("th",{key:t},e.name)}))),u.default.createElement("tbody",null,y.default.map(I,function(t,a){return u.default.createElement("tr",{key:a},u.default.createElement("td",null,t.name),y.default.map(t.y,function(a,r){return u.default.createElement("td",{key:r},u.default.createElement("a",{href:"#",onClick:function(r){r.preventDefault();var n={};n[_]=t.id,n[k]=a.id,e.gotoIssue(n)}},a.cnt))}))}))):u.default.createElement(d.Table,{responsive:!0,bordered:!0},u.default.createElement("thead",null,u.default.createElement("tr",null,u.default.createElement("th",null,_?y.default.find(R,{key:_}).name:""),u.default.createElement("th",null,"个数"))),u.default.createElement("tbody",null,y.default.map(I,function(t,a){return u.default.createElement("tr",{key:a},u.default.createElement("td",null,t.name),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault();var r={};r[_]=t.id,e.gotoIssue(r)}},t.cnt)))}))))),this.state.saveFilterShow&&u.default.createElement(E.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:l.data||[],options:o,save:w,mode:"issues",query:g,sqlTxt:S,i18n:a}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,filters:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,optionsLoading:s.PropTypes.bool.isRequired,query:s.PropTypes.object,issues:s.PropTypes.array.isRequired,issuesLoading:s.PropTypes.bool.isRequired,refresh:s.PropTypes.func.isRequired,gotoIssue:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,index:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1947:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;a0&&(C=(C?C+" | ":"")+"历史解决者: "+t.join(","))}();var j=(0,v.parseQuery)(g,o);j&&(C+=(C?" | ":"")+j)}var R="",S=[];return this.state.stat_dimension?(R="bar",y.default.forEach(s,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,S.push(t)})):(R="pie",s.length>0&&(S.push({name:"一次通过",nos:s[0].ones,cnt:s[0].ones.length}),S.push({name:"大于一次",nos:s[0].gt_ones,cnt:s[0].gt_ones.length}))),u.default.createElement("div",{className:"project-report-container"},u.default.createElement("div",{className:"report-title"},"问题解决回归分布",u.default.createElement(c.Link,{to:"/project/"+n.key+"/report"},u.default.createElement(d.Button,{bsStyle:"link"},"返回"))),u.default.createElement(d.Form,{horizontal:!0,className:"report-filter-form"},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:1,componentClass:d.ControlLabel},"统计维度"),u.default.createElement(d.Col,{sm:3},u.default.createElement(p.default,{simpleValue:!0,placeholder:"请选择",value:this.state.stat_dimension||null,onChange:function(t){e.state.stat_dimension=t,e.search()},options:y.default.map(k,function(e){return{value:e.key,label:e.name}})})),u.default.createElement(d.Col,{sm:2,componentClass:d.ControlLabel},"历史解决者"),u.default.createElement(d.Col,{sm:3},u.default.createElement(p.default,{simpleValue:!0,multi:!0,placeholder:"选择解决者",value:this.state.his_resolvers,onChange:function(t){e.state.his_resolvers=t,e.search()},options:y.default.map(x,function(e){return{value:e.id,label:e.name}})})),u.default.createElement(d.Col,{sm:3},u.default.createElement(d.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?u.default.createElement("i",{className:"fa fa-angle-up"}):u.default.createElement("i",{className:"fa fa-angle-down"}))))),u.default.createElement(v.IssueFilterList,{values:g,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:o,onChange:function(e){h(e)}}),u.default.createElement("div",{className:"report-conds-style"},C&&u.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},u.default.createElement("div",{className:"cond-contents",title:C},u.default.createElement("b",null,"检索条件"),":",C),u.default.createElement("div",{className:"remove-icon",onClick:function(){h({})},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"})))),f?u.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},u.default.createElement("div",{style:{textAlign:"center"}},u.default.createElement("img",{src:b,className:"loading"}))):u.default.createElement("div",{style:{height:"565px"}},S.length<=0&&u.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},u.default.createElement("div",{style:{textAlign:"center"}},u.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},u.default.createElement("i",{className:"fa fa-warning"})),u.default.createElement("br",null),u.default.createElement("span",null,"抱歉,暂无满足该检索条件的数据。"))),"bar"===R&&S.length>0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.BarChart,{width:.95*r.containerWidth,height:380,barSize:40,data:S,style:{margin:"25px auto"}},u.default.createElement(m.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(m.XAxis,{dataKey:"category"}),u.default.createElement(m.YAxis,null),u.default.createElement(m.Tooltip,null),u.default.createElement(m.Legend,null),u.default.createElement(m.Bar,{dataKey:"ones_cnt",name:"一次回归",stackId:"a",fill:"#4572A7"}),u.default.createElement(m.Bar,{dataKey:"gt_ones_cnt",name:"大于一次",stackId:"a",fill:"#AA4643"}))),"pie"===R&&S.length>0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.PieChart,{width:800,height:380,style:{margin:"25px auto"}},u.default.createElement(m.Pie,{dataKey:"cnt",data:S,cx:400,cy:200,outerRadius:130,label:!0},u.default.createElement(m.Cell,{fill:"#3b7fc4"}),u.default.createElement(m.Cell,{fill:"#f79232"})),u.default.createElement(m.Tooltip,null))),S.length>0&&u.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},u.default.createElement("span",null,"注:该图表最多统计满足当前检索条件下的10000条结果。"),this.state.stat_dimension&&u.default.createElement(d.Table,{responsive:!0,bordered:!0},u.default.createElement("thead",null,u.default.createElement("tr",null,u.default.createElement("th",null,y.default.find(k,{key:this.state.stat_dimension}).name),u.default.createElement("th",null,"一次回归"),u.default.createElement("th",null,"大于一次"),u.default.createElement("th",null,"一次通过率"))),u.default.createElement("tbody",null,y.default.map(S,function(t,a){return u.default.createElement("tr",{key:a},e.state.stat_dimension&&u.default.createElement("td",null,t.category),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue(t.ones)}},t.ones_cnt)),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue(t.gt_ones)}},t.gt_ones_cnt)),u.default.createElement("td",null,y.default.round(t.ones_cnt/t.total_cnt*100,2)+"%"))}))),!this.state.stat_dimension&&u.default.createElement(d.Table,{responsive:!0,bordered:!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,u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue(S[0].nos)}},S[0].cnt)),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue(S[1].nos)}},S[1].cnt)),u.default.createElement("td",null,y.default.round(S[0].cnt/(S[0].cnt+S[1].cnt)*100,2)+"%")))))),this.state.saveFilterShow&&u.default.createElement(E.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:l.data||[],options:o,save:w,mode:"regressions",query:g,sqlTxt:C,i18n:a}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,filters:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,optionsLoading:s.PropTypes.bool.isRequired,query:s.PropTypes.object,regressions:s.PropTypes.array.isRequired,regressionsLoading:s.PropTypes.bool.isRequired,refresh:s.PropTypes.func.isRequired,gotoIssue:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,index:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},1948:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;a")||"-"}}))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,issue:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,index:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.array.isRequired},enumerable:!0}]),t}(s.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},1949:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;a0&&(l=p.default.max([l,.01])),l=p.default.min([l,1]);var o=a.diff_m<0?p.default.round(a.origin_m/(a.spend_m+a.left_m),2):p.default.round((a.spend_m+a.left_m)/a.origin_m,2);return o=p.default.max([o,0]),o=p.default.min([o,1]),u.default.createElement("div",null,u.default.createElement(c.Table,{style:{marginBottom:"10px"}},u.default.createElement("tbody",null,u.default.createElement("tr",null,u.default.createElement("td",{width:"10%"},u.default.createElement("span",{style:{fontWeight:600}},"完成度")),u.default.createElement("td",{width:"60%"},u.default.createElement("table",{style:{width:"100%",marginTop:"3px"}},u.default.createElement("tbody",null,u.default.createElement("tr",null,u.default.createElement("td",{style:{width:p.default.round(100*l)+"%"}},u.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#51a825"}})),u.default.createElement("td",{style:{width:p.default.round(100*(1-l))+"%"}},u.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#ec8e00"}})))))),u.default.createElement("td",{width:"30%"},u.default.createElement("span",null,p.default.round(100*l)+"%"),u.default.createElement("span",{style:{marginLeft:"10px",fontWeight:600}},a.spend," 比 ",(0,d.ttFormat)(a.spend_m+a.left_m,r,n)))),u.default.createElement("tr",null,u.default.createElement("td",{width:"10%"},u.default.createElement("span",{style:{fontWeight:600}},"精准度")),u.default.createElement("td",{width:"60%"},u.default.createElement("table",{style:{width:"100%",marginTop:"3px"}},u.default.createElement("tbody",null,u.default.createElement("tr",null,u.default.createElement("td",{style:{width:p.default.round(100*o)+"%"}},u.default.createElement("div",{className:"color-bar"})),u.default.createElement("td",{style:{width:p.default.round(100*(1-o))+"%"} },u.default.createElement("div",{className:"color-bar",style:{borderTopColor:"#ccc"}})))))),u.default.createElement("td",{width:"30%"},u.default.createElement("span",null,p.default.round(100*o)+"%"),u.default.createElement("span",{style:{marginLeft:"10px",fontWeight:600}},a.diff_m<0?(0,d.ttFormat)(a.origin_m,r,n):(0,d.ttFormat)(a.spend_m+a.left_m,r,n)," 比 ",a.diff_m<0?(0,d.ttFormat)(a.spend_m+a.left_m,r,n):(0,d.ttFormat)(a.origin_m,r,n)))))))}}],[{key:"propTypes",value:{options:s.PropTypes.object.isRequired,values:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},1950:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;a0&&N.indexOf(e.id)!==-1||N.length<=0)&&(I.origin_m+=e.origin_m||0,I.spend_m+=e.spend_m||0,I.left_m+=e.left_m||0)}),I.origin=(0,g.ttFormat)(I.origin_m,D,L),I.spend=(0,g.ttFormat)(I.spend_m,D,L),I.left=(0,g.ttFormat)(I.left_m,D,L),I.diff_m=I.origin_m-I.spend_m-I.left_m,I.diff=(0,g.ttFormat)(I.diff_m,D,L);for(var M=[],B=w.length,A=function(t){var a=w[t].state?y.default.findIndex(s,{id:w[t].state}):-1,r="";a!==-1&&(r="state-"+(s[a].category||"")+"-label"),M.push({id:w[t].id,type:u.default.createElement("span",{className:"type-abb",title:y.default.findIndex(h,{id:w[t].type})!==-1?y.default.find(h,{id:w[t].type}).name:""},y.default.findIndex(h,{id:w[t].type})!==-1?y.default.find(h,{id:w[t].type}).abb:"-"),name:u.default.createElement("div",null,w[t].spend_m>0?u.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.showDetail(w[t])},style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},u.default.createElement("span",null,w[t].no+" - "+w[t].title)):u.default.createElement("span",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"}},w[t].no+" - "+w[t].title)),state:a!==-1?u.default.createElement("span",{className:r},s[a].name||"-"):"-",origin:w[t].origin||"-",spend:w[t].spend||"-",left:w[t].left||"-",diff:w[t].origin?(0,g.ttFormat)(w[t].origin_m-w[t].spend_m-w[t].left_m,D,L):"-"})},W=0;W0&&(G={mode:"checkbox",selected:y.default.filter(this.state.selectedIds,function(e){return"xxx"!==e}),unselectable:["xxx"],onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)},M.push({id:"xxx",type:"",name:"合计",state:"",origin:I.origin,spend:I.spend,left:I.left,diff:I.diff}));var K={};return _?K.noDataText=u.default.createElement("div",null,u.default.createElement("img",{src:C,className:"loading"})):K.noDataText="暂无数据显示。",u.default.createElement("div",{className:"project-report-container"},u.default.createElement("div",{className:"report-title"},"问题时间跟踪报告",u.default.createElement(c.Link,{to:"/project/"+r.key+"/report"},u.default.createElement(d.Button,{bsStyle:"link"},"返回"))),u.default.createElement(d.Form,{horizontal:!0,className:"report-filter-form"},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:1,componentClass:d.ControlLabel},"统计范围"),u.default.createElement(d.Col,{sm:4},u.default.createElement(p.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:"仅包含有初始预估时间的"}]})),u.default.createElement(d.Col,{sm:7},u.default.createElement(d.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?u.default.createElement("i",{className:"fa fa-angle-up"}):u.default.createElement("i",{className:"fa fa-angle-down"}))))),u.default.createElement("div",null,u.default.createElement(v.IssueFilterList,{values:R,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],options:l,onChange:function(e){j(e)}})),u.default.createElement("div",{className:"report-conds-style"},q&&u.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},u.default.createElement("div",{className:"cond-contents",title:q},u.default.createElement("b",null,"检索条件"),":",q),u.default.createElement("div",{className:"remove-icon",onClick:function(){j({})},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"})))),!_&&w.length>0&&u.default.createElement(x.default,{options:l,values:I}),u.default.createElement("div",{style:{marginBottom:"30px"}},u.default.createElement(m.BootstrapTable,{selectRow:G,data:M,bordered:!1,headerStyle:{backgroundColor:"#fff"},hover:!0,options:K},u.default.createElement(m.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),u.default.createElement(m.TableHeaderColumn,{dataField:"type",width:"50"},"类型"),u.default.createElement(m.TableHeaderColumn,{dataField:"state",width:"100"},"状态"),u.default.createElement(m.TableHeaderColumn,{dataField:"name"},"名称"),u.default.createElement(m.TableHeaderColumn,{dataField:"origin",width:"120"},"初始预估时间"),u.default.createElement(m.TableHeaderColumn,{dataField:"spend",width:"120"},"耗费时间"),u.default.createElement(m.TableHeaderColumn,{dataField:"left",width:"120"},"剩余时间"),u.default.createElement(m.TableHeaderColumn,{dataField:"diff",width:"120"},"误差")),w.length>0&&u.default.createElement("div",null,u.default.createElement("span",null,"共计 ",M.length," 条"))),this.state.saveFilterShow&&u.default.createElement(b.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:n.data||[],options:l,save:S,mode:"timetrack",query:R,sqlTxt:q,i18n:a}),this.state.detailShow&&u.default.createElement(k.default,{show:!0,options:this.props.options,close:function(){e.setState({detailShow:!1})},issue:this.state.selectedIssue,index:T,data:P,loading:O,i18n:a}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,filters:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,optionsLoading:s.PropTypes.bool.isRequired,query:s.PropTypes.object,item:s.PropTypes.array.isRequired,itemLoading:s.PropTypes.bool.isRequired,collection:s.PropTypes.array.isRequired,indexLoading:s.PropTypes.bool.isRequired,refresh:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,select:s.PropTypes.func.isRequired,index:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},1951:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;al?u.trend_start_stat_date:l)+"~"+o:n[e]=l+"~"+o):n[e]=s.stat_time,a(v.default.assign({},v.default.omit(s,["stat_time","interval","is_accu"]),n))}},{key:"search",value:function(){var e=this.props,t=e.query,a=void 0===t?{}:t,r=e.refresh,n=v.default.assign({},a);this.state.stat_time?n.stat_time=this.state.stat_time:delete n.stat_time,n.interval=this.state.interval||"day",n.is_accu="1"===this.state.is_accu?"1":"0",r(n)}},{key:"render",value:function(){var e=this,t=this.props,a=t.i18n,r=t.layout,n=t.project,l=t.filters,o=t.options,i=t.optionsLoading,s=t.trend,p=t.trendLoading,y=t.refresh,E=t.query,w=t.saveFilter,_={"0d":"当天","0w":"本周","0m":"当月","0y":"当前年"},C={d:"天",w:"周",m:"月",y:"年"},T="";if(!i){var P=E.stat_time;if(P){var O="",j="",R=P.split("~");if(["0d","0w","0m","0y"].indexOf(R[0])!==-1)O=_[R[0]];else if(["d","w","m","y"].indexOf(R[0].charAt(R[0].length-1))!==-1){var S=new RegExp("^(-?)(\\d+)(d|w|m|y)$");S.exec(R[0])&&(O="0"==RegExp.$2?"当天":RegExp.$2+C[RegExp.$3]+("-"===RegExp.$1?"前":"后"))}else O=R[0];if(R[1])if(["0d","0w","0m","0y"].indexOf(R[1])!==-1)j=_[R[1]];else if(["d","w","m","y"].indexOf(R[1].charAt(R[1].length-1))!==-1){var S=new RegExp("^(-?)(\\d+)(d|w|m|y)$");S.exec(R[1])&&(j="0"==RegExp.$2?"当天":RegExp.$2+C[RegExp.$3]+("-"===RegExp.$1?"前":"后"))}else j=R[1];T="统计时间: "+O+"~"+j}T+=" | 是否累计: "+("1"===E.is_accu?"是":"否");var q={day:"天",week:"周",month:"月"},F=E.interval||"day";T+=" | 时间间隔: "+q[F];var N=(0,g.parseQuery)(E,o);T&&N?T+=" | "+N:N&&(T=N)}var D=s;this.state.notWorkingShow||(D=v.default.reject(s,{notWorking:1}));var L=s.length>100||!E.stat_time;return u.default.createElement("div",{className:"project-report-container"},u.default.createElement("div",{className:"report-title"},"问题趋势图",u.default.createElement(c.Link,{to:"/project/"+n.key+"/report"},u.default.createElement(d.Button,{bsStyle:"link"},"返回"))),u.default.createElement(d.Form,{horizontal:!0,className:"report-filter-form"},u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:1,componentClass:d.ControlLabel},"统计时间"),u.default.createElement(d.Col,{sm:6},u.default.createElement(b.default,{options:["fixed","variable_duration"],value:this.state.stat_time,onChange:function(t){e.state.stat_time=t,e.search()}})),u.default.createElement(d.Col,{sm:1,componentClass:d.ControlLabel},"统计项"),u.default.createElement(d.Col,{sm:4},u.default.createElement(f.CheckboxGroup,{name:"statItems",value:this.state.statItems,onChange:function(t){e.setState({statItems:t})},style:{marginTop:"8px"}},u.default.createElement("div",{style:{"float":"left"}},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(f.Checkbox,{value:"new",style:{"float":"left"}}),u.default.createElement("span",{style:{marginLeft:"2px"}},"新建的"))),u.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(f.Checkbox,{value:"resolve"}),u.default.createElement("span",{style:{marginLeft:"2px"}},"已解决的"))),u.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},u.default.createElement("label",{style:{fontWeight:400}},u.default.createElement(f.Checkbox,{value:"close"}),u.default.createElement("span",{style:{marginLeft:"2px"}},"已关闭的")))))),u.default.createElement(d.FormGroup,null,u.default.createElement(d.Col,{sm:1,componentClass:d.ControlLabel},"时间间隔"),u.default.createElement(d.Col,{sm:2},u.default.createElement(m.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:"月"}]})),u.default.createElement(d.Col,{sm:5,componentClass:d.ControlLabel},"是否累计"),u.default.createElement(d.Col,{sm:2},u.default.createElement(d.Radio,{inline:!0,name:"is_accu",onClick:function(){e.state.is_accu="1",e.search()},checked:"1"===this.state.is_accu},"是"),u.default.createElement(d.Radio,{inline:!0,name:"is_accu",onClick:function(){e.state.is_accu="0",e.search()},checked:"1"!==this.state.is_accu},"否")),u.default.createElement(d.Col,{sm:2},u.default.createElement(d.Button,{bsStyle:"link",onClick:function(){e.setState({issueFilterShow:!e.state.issueFilterShow})},style:{"float":"right",marginTop:"0px"}},"更多问题过滤 ",this.state.issueFilterShow?u.default.createElement("i",{className:"fa fa-angle-up"}):u.default.createElement("i",{className:"fa fa-angle-down"}))))),u.default.createElement(g.IssueFilterList,{values:E,searchShow:this.state.issueFilterShow,notShowFields:["watcher"],notShowBlocks:["time"],options:o,onChange:function(e){y(e)}}),u.default.createElement("div",{className:"report-conds-style"},E.stat_time&&T&&u.default.createElement("div",{className:"cond-bar",style:{marginTop:"0px","float":"left"}},u.default.createElement("div",{className:"cond-contents",title:T},u.default.createElement("b",null,"检索条件"),":",T),u.default.createElement("div",{className:"remove-icon",onClick:function(){y({})},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"}))),u.default.createElement(d.ButtonGroup,{className:"report-shape-buttongroup"},u.default.createElement(d.Button,{title:"柱状图",style:{height:"36px",backgroundColor:"bar"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"bar"})}},"柱状图"),u.default.createElement(d.Button,{title:"面积图",style:{height:"36px",backgroundColor:"area"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"area"})}},"面积图"),u.default.createElement(d.Button,{title:"折线图",style:{height:"36px",backgroundColor:"line"==this.state.shape&&"#eee"},onClick:function(){e.setState({shape:"line"})}},"折线图")),"day"===this.state.interval&&u.default.createElement("div",{style:{"float":"right"}},u.default.createElement(d.Checkbox,{disabled:p,checked:this.state.notWorkingShow,onClick:function(){e.setState({notWorkingShow:!e.state.notWorkingShow})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"显示非工作日"))),p?u.default.createElement("div",{style:{height:"550px",paddingTop:"40px"}},u.default.createElement("div",{style:{textAlign:"center"}},u.default.createElement("img",{src:k,className:"loading"}))):u.default.createElement("div",{style:{height:"565px"}},L&&u.default.createElement("div",{className:"report-shape-container",style:{paddingTop:"40px"}},u.default.createElement("div",{style:{textAlign:"center"}},u.default.createElement("span",{style:{fontSize:"160px",color:"#FFC125"}},u.default.createElement("i",{className:"fa fa-warning"})),u.default.createElement("br",null),s.length>100&&u.default.createElement("span",null,"统计结果数据量太大,无法生成统计图,建议您重新选择过滤条件。"),!E.stat_time&&u.default.createElement("span",null,"抱歉,统计时间段不能为空。"))),"bar"===this.state.shape&&!L&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(h.BarChart,{width:.95*r.containerWidth,height:380,barSize:40,data:D,style:{margin:"25px auto"}},u.default.createElement(h.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(h.XAxis,{dataKey:"category"}),u.default.createElement(h.YAxis,null),u.default.createElement(h.Tooltip,null),u.default.createElement(h.Legend,null),this.state.statItems.indexOf("new")!==-1&&u.default.createElement(h.Bar,{dataKey:"new",name:"新建的",stackId:"a",fill:"#4572A7"}),this.state.statItems.indexOf("resolve")!==-1&&u.default.createElement(h.Bar,{dataKey:"resolved",name:"已解决的",stackId:"a",fill:"#89A54E"}),this.state.statItems.indexOf("close")!==-1&&u.default.createElement(h.Bar,{dataKey:"closed",name:"已关闭的",stackId:"a",fill:"#AA4643"}))),"line"===this.state.shape&&!L&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(h.LineChart,{width:.95*r.containerWidth,height:380,data:D,style:{margin:"25px auto"}},u.default.createElement(h.XAxis,{dataKey:"category"}),u.default.createElement(h.YAxis,null),u.default.createElement(h.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(h.Tooltip,null),u.default.createElement(h.Legend,null),this.state.statItems.indexOf("new")!==-1&&u.default.createElement(h.Line,{dataKey:"new",name:"新建的",stroke:"#4572A7"}),this.state.statItems.indexOf("resolve")!==-1&&u.default.createElement(h.Line,{dataKey:"resolved",name:"已解决的",stroke:"#89A54E"}),this.state.statItems.indexOf("close")!==-1&&u.default.createElement(h.Line,{dataKey:"closed",name:"已关闭的",stroke:"#AA4643"}))),"area"===this.state.shape&&!L&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(h.AreaChart,{width:.95*r.containerWidth,height:380,data:D,style:{margin:"25px auto"}},u.default.createElement("defs",null,this.state.statItems.indexOf("new")!==-1&&u.default.createElement("linearGradient",{id:"colorNew",x1:"0",y1:"0",x2:"0",y2:"1"},u.default.createElement("stop",{offset:"5%",stopColor:"#4572A7",stopOpacity:.8}),u.default.createElement("stop",{offset:"95%",stopColor:"#4572A7",stopOpacity:0})),this.state.statItems.indexOf("resolve")!==-1&&u.default.createElement("linearGradient",{id:"colorResolved",x1:"0",y1:"0",x2:"0",y2:"1"},u.default.createElement("stop",{offset:"5%",stopColor:"#89A54E",stopOpacity:.8}),u.default.createElement("stop",{offset:"95%",stopColor:"#89A54E",stopOpacity:0})),this.state.statItems.indexOf("close")!==-1&&u.default.createElement("linearGradient",{id:"colorClosed",x1:"0",y1:"0",x2:"0",y2:"1"},u.default.createElement("stop",{offset:"5%",stopColor:"#AA4643",stopOpacity:.8}),u.default.createElement("stop",{offset:"95%",stopColor:"#AA4643",stopOpacity:0}))),u.default.createElement(h.XAxis,{dataKey:"category"}),u.default.createElement(h.YAxis,null),u.default.createElement(h.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(h.Tooltip,null),u.default.createElement(h.Legend,null),this.state.statItems.indexOf("new")!==-1&&u.default.createElement(h.Area,{dataKey:"new",name:"新建的",fillOpacity:1,stroke:"#4572A7",fill:"url(#colorNew)",type:"monotone"}),this.state.statItems.indexOf("resolve")!==-1&&u.default.createElement(h.Area,{dataKey:"resolved",name:"已解决的",fillOpacity:1,stroke:"#89A54E",fill:"url(#colorResolved)",type:"monotone"}),this.state.statItems.indexOf("close")!==-1&&u.default.createElement(h.Area,{dataKey:"closed",name:"已关闭的",fillOpacity:1,stroke:"#AA4643",fill:"url(#colorClosed)",type:"monotone"}))),!L&&u.default.createElement("div",{style:{"float":"left",width:"100%",marginBottom:"30px"}},u.default.createElement("span",null,"注:该图表最多展示100条目。"),u.default.createElement(d.Table,{responsive:!0,bordered:!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("th",null,"已关闭的"))),u.default.createElement("tbody",null,v.default.map(s,function(t,a){return u.default.createElement("tr",{key:a},u.default.createElement("td",null,t.category),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("created_at","sub",t.category)}},t.new)),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("resolved_at","sub",t.category)}},t.resolved)),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(a){a.preventDefault(),e.gotoIssue("closed_at","sub",t.category)}},t.closed)))}),"0"===this.state.is_accu&&u.default.createElement("tr",null,u.default.createElement("td",null,"合计"),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("created_at","total")}},v.default.reduce(s,function(e,t){return e+t.new},0))),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("resolved_at","total")}},v.default.reduce(s,function(e,t){return e+t.resolved},0))),u.default.createElement("td",null,u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.gotoIssue("closed_at","total")}},v.default.reduce(s,function(e,t){return e+t.closed},0)))))))),this.state.saveFilterShow&&u.default.createElement(x.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:l.data||[],options:o,save:w,mode:"trend",query:E,sqlTxt:T,i18n:a}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,filters:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,optionsLoading:s.PropTypes.bool.isRequired,query:s.PropTypes.object,trend:s.PropTypes.array.isRequired,trendLoading:s.PropTypes.bool.isRequired,refresh:s.PropTypes.func.isRequired,gotoIssue:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,index:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=C,e.exports=t.default}).call(this)}finally{}},1952:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;a")||"-"}}))})))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Checkbox,{checked:this.state.showAll,onClick:function(){e.setState({showAll:!e.state.showAll})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"显示该问题全部工作日志"),u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,showedUser:s.PropTypes.object.isRequired,query:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,issue:s.PropTypes.object.isRequired,index:s.PropTypes.func.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},1953:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;a0&&u.default.createElement("div",{style:{"float":"left"}},u.default.createElement("span",null,"共计 ",P.length," 条")),this.state.detailShow&&u.default.createElement(m.default,{show:!0,options:this.props.options,close:function(){e.setState({detailShow:!1})},showedUser:w,query:r,issue:this.state.selectedIssue,index:x,data:_,loading:k,i18n:a}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,showedUser:s.PropTypes.object.isRequired,query:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,collection:s.PropTypes.array.isRequired,item:s.PropTypes.object.isRequired,itemLoading:s.PropTypes.bool.isRequired,indexLoading:s.PropTypes.bool.isRequired,index:s.PropTypes.func.isRequired,select:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},1954:function(e,t,a){try{(function(){"use strict";function r(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 l(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 a=0;a0&&u.default.createElement("div",{style:{marginLeft:"10px","float":"right"}},"注:图表耗费时间值是以分钟(m)为单位"),"pie"===this.state.shape&&L.length>0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.PieChart,{width:800,height:380,style:{margin:"25px auto"}},u.default.createElement(m.Pie,{dataKey:"value",data:L,cx:400,cy:200,outerRadius:130,label:!0},L.map(function(e,a){return u.default.createElement(m.Cell,{key:a,fill:t[a%t.length]})})),u.default.createElement(m.Tooltip,{formatter:function(e){return(0,k.ttFormat)(e,F,N)}}))),"bar"===this.state.shape&&L.length>0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.BarChart,{width:.95*l.containerWidth,height:380,data:L,barSize:40,style:{margin:"25px auto"}},u.default.createElement(m.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(m.XAxis,{dataKey:"name"}),u.default.createElement(m.YAxis,null),u.default.createElement(m.Tooltip,{formatter:function(e){return(0,k.ttFormat)(e,F,N)}}),u.default.createElement(m.Bar,{name:"工时",stackId:"a",dataKey:"value",fill:"#3b7fc4"}))),"line"===this.state.shape&&L.length>0&&u.default.createElement("div",{className:"report-shape-container"},u.default.createElement(m.LineChart,{width:.95*l.containerWidth,height:380,data:L,style:{margin:"25px auto"}},u.default.createElement(m.XAxis,{dataKey:"name"}),u.default.createElement(m.YAxis,null),u.default.createElement(m.CartesianGrid,{strokeDasharray:"3 3"}),u.default.createElement(m.Tooltip,{formatter:function(e){return(0,k.ttFormat)(e,F,N)}}),u.default.createElement(m.Line,{name:"工时",dataKey:"value",stroke:"#d04437"}))),L.length>0&&u.default.createElement("div",{style:{"float":"left",width:"100%"}},u.default.createElement(d.Table,{responsive:!0,bordered:!0},u.default.createElement("thead",null,u.default.createElement("tr",null,u.default.createElement("th",null,"总计"),y.default.map(L,function(e,t){return u.default.createElement("th",{key:t},e.name)}))),u.default.createElement("tbody",null,u.default.createElement("tr",null,u.default.createElement("td",null,(0,k.ttFormat)(y.default.reduce(L,function(e,t){return e+t.value},0),F,N)),y.default.map(L,function(t,a){return"others"===t.id||t.id==e.state.showedUser.id?u.default.createElement("td",{key:a},(0,k.ttFormat)(t.value,F,N)):u.default.createElement("td",{key:a},u.default.createElement("a",{href:"#workloglist",onClick:function(a){e.showList({id:t.id,name:t.name})}},(0,k.ttFormat)(t.value,F,N)))})))))),this.state.worklogListShow&&u.default.createElement("div",{id:"workloglist",style:{"float":"left",width:"100%",textAlign:"center",margin:"15px 0px 30px 0px"}},u.default.createElement("span",{style:{fontWeight:"600"}},this.state.showedUser.name||""," - 工作日志"),u.default.createElement("span",{title:"刷新",onClick:this.refreshList},u.default.createElement(d.Button,{bsStyle:"link",disabled:T},u.default.createElement("i",{className:"fa fa-refresh"}))),u.default.createElement(_.default,{show:!0,showedUser:this.state.showedUser,query:S,options:s,index:b,collection:x,indexLoading:T,select:P,item:O,itemLoading:j,i18n:n})),this.state.saveFilterShow&&u.default.createElement(w.default,{show:!0,close:function(){e.setState({saveFilterShow:!1})},filters:i.worklog||[],options:s,save:q,mode:"worklog",query:S,sqlTxt:B,i18n:n}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,layout:s.PropTypes.object.isRequired,project:s.PropTypes.object.isRequired,filters:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,optionsLoading:s.PropTypes.bool.isRequired,query:s.PropTypes.object,worklog:s.PropTypes.array.isRequired,worklogLoading:s.PropTypes.bool.isRequired,getWorklogList:s.PropTypes.func.isRequired,worklogList:s.PropTypes.array.isRequired,worklogListLoading:s.PropTypes.bool.isRequired,getWorklogDetail:s.PropTypes.func.isRequired,worklogDetail:s.PropTypes.object.isRequired,worklogDetailLoading:s.PropTypes.bool.isRequired,refresh:s.PropTypes.func.isRequired,saveFilter:s.PropTypes.func.isRequired,index:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},2082:function(e,t,a){try{(function(){"use strict";function e(e){return(0,h.asyncFuncCreator)({constant:"REPORT_LIST_GET",promise:function(t){return t.request({url:"/project/"+e+"/report/index"})}})}function r(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_FILTER_RESET",mode:t,promise:function(a){return a.request({url:"/project/"+e+"/report/"+t+"/filters/reset"})}})}function n(e,t,a){return(0,h.asyncFuncCreator)({constant:"REPORT_FILTER_EDIT",mode:t,promise:function(r){return r.request({url:"/project/"+e+"/report/"+t+"/filters",method:"post",data:a})}})}function l(e,t,a){return(0,h.asyncFuncCreator)({constant:"REPORT_FILTER_SAVE",mode:t,promise:function(r){return r.request({url:"/project/"+e+"/report/"+t+"/filter",method:"post",data:a})}})}function o(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_WORKLOG_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/worklog"+(t?"?"+t:"")})}})}function i(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_WORKLOG_LIST_GET",promise:function(a){return a.request({url:"/project/"+e+"/report/worklog/list"+(t?"?"+t:"")})}})}function s(e,t,a){return(0,h.asyncFuncCreator)({constant:"REPORT_WORKLOG_DETAIL_GET",promise:function(r){return r.request({url:"/project/"+e+"/report/worklog/issue/"+t+(a?"?"+a:"")})}})}function u(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_TREND_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/trend"+(t?"?"+t:"")})}})}function c(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_TIMETRACKS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/timetracks"+(t?"?"+t:"")})}})}function d(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_TIMETRACKS_DETAIL_GET",promise:function(a){return a.request({url:"/project/"+e+"/report/timetracks/issue/"+t})}})}function f(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_REGRESSIONS_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/regressions"+(t?"?"+t:"")})}})}function p(e,t){return(0,h.asyncFuncCreator)({constant:"REPORT_ISSUES_INDEX",promise:function(a){return a.request({url:"/project/"+e+"/report/issues"+(t?"?"+t:"")})}})}function m(e){return(0,h.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=r,t.editFilter=n,t.saveFilter=l,t.worklog=o,t.getWorklogList=i,t.getWorklogDetail=s,t.trend=u,t.timetracks=c,t.getTimetrackDetail=d,t.regressions=f,t.issues=p,t.getOptions=m;var h=a(26)}).call(this)}finally{}}}); -//# sourceMappingURL=report-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=report-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/resolution-2fafc167f8a6ebfe8dae.js b/public/assets/resolution-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/resolution-2fafc167f8a6ebfe8dae.js rename to public/assets/resolution-d133ff15592d3c829f3c.js index 096f6a9d..09183c77 100644 --- a/public/assets/resolution-2fafc167f8a6ebfe8dae.js +++ b/public/assets/resolution-d133ff15592d3c829f3c.js @@ -1,3 +1,3 @@ webpackJsonp([16],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=r;var o=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=o;var a={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=a;var i=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=i;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},48: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=function(){function e(e,t){for(var n=0;no&&s>i||(e.moveCard(r,o),t.getItem().index=o)}}},h=function(e){function t(){o(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,o=e.connectDropTarget,a=e.deleteCard,i=n?0:1,l={"float":"right",cursor:"pointer"};return r(o(u.default.createElement("div",{style:{opacity:i},className:"dragcard"},t,!!a&&u.default.createElement("span",{style:l,onClick:a,title:"删除",className:"rm-icon"},u.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)(f.CardTypes.CARD,p,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(f.CardTypes.CARD,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},114: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=function(){function e(e,t){for(var n=0;n0?u.default.createElement("span",null,"共有应用项目 ",u.default.createElement("strong",null,t.length)," 个"):u.default.createElement("span",null,"暂无项目应用")),!r&&t.length>0&&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("tbody",null,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):u.default.createElement("span",null,e.name,"(已关闭)")),u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key+"/issue?resolution="+(n.key||n.id)},e.issue_count||0)):u.default.createElement("span",null,e.issue_count||0)))})))),u.default.createElement(c.Modal.Footer,null,u.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=h,e.exports=t.default}).call(this)}finally{}},2083: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 r(e,t){return(0,c.asyncFuncCreator)({constant:"RESOLUTION_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/resolution",method:"post",data:t})}})}function o(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 a(e){return{type:"RESOLUTION_SELECT",id:e}}function i(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 l(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 u(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=r,t.update=o,t.select=a,t.del=i,t.setSort=l,t.setDefault=s,t.viewUsed=u;var c=n(26)}).call(this)}finally{}}}); -//# sourceMappingURL=resolution-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=resolution-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/role-2fafc167f8a6ebfe8dae.js b/public/assets/role-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/role-2fafc167f8a6ebfe8dae.js rename to public/assets/role-d133ff15592d3c829f3c.js index e4cf54d8..e568c22f 100644 --- a/public/assets/role-2fafc167f8a6ebfe8dae.js +++ b/public/assets/role-d133ff15592d3c829f3c.js @@ -1,3 +1,3 @@ webpackJsonp([19],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=r;var o=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=o;var a={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=a;var i=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=i;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var a=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(o.onChange=r.bind(null,this.props.value)),l.default.createElement("input",a({},this.props,{type:"checkbox",name:t},o))}}),t.CheckboxGroup=l.default.createClass({displayName:"CheckboxGroup",propTypes:{name:i.PropTypes.string,defaultValue:i.PropTypes.array,value:i.PropTypes.array,onChange:i.PropTypes.func,children:i.PropTypes.node.isRequired,Component:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.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),r=o(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,r,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)}})},593:function(e,t,n){try{(function(){"use strict";function e(e){return(0,f.asyncFuncCreator)({constant:"ROLE_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/role"})}})}function r(e){return(0,f.asyncFuncCreator)({constant:"ROLE_TEAM_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/team"})}})}function o(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/role",method:"post",data:t})}})}function a(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_UPDATE",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id,method:"put",data:t})}})}function i(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_SET_PERMISSIONS",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id+"/permissions",method:"post",data:t})}})}function l(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_SET_ACTOR",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id+"/actor",method:"post",data:t})}})}function s(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_SET_GROUP_ACTOR",promise:function(n){return n.request({url:"/project/"+e+"/role/"+t.id+"/groupactor",method:"post",data:t})}})}function u(e){return{type:"ROLE_SELECT",id:e}}function c(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_DELETE",id:t,promise:function(n){return n.request({url:"/project/"+e+"/role/"+t,method:"delete"})}})}function d(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_RESET",id:t,promise:function(n){return n.request({url:"/project/"+e+"/role/"+t+"/reset"})}})}function p(e,t){return(0,f.asyncFuncCreator)({constant:"ROLE_VIEW_USED",id:t,promise:function(n){return n.request({url:"/project/"+e+"/role/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.teamIndex=r,t.create=o,t.update=a,t.setPermission=i,t.setActor=l,t.setGroupActor=s,t.select=u,t.del=c,t.reset=d,t.viewUsed=p;var f=n(26)}).call(this)}finally{}},1962: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=function(){function e(e,t){for(var n=0;n0?e.classifyPermissions(i):u.default.createElement("span",null,u.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-"))),operation:u.default.createElement("div",null,O&&x===o[t].id&&!s&&u.default.createElement(d.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:t,title:T,id:"dropdown-basic-"+t,onSelect:e.operateSelect.bind(e)},!n&&u.default.createElement(d.MenuItem,{eventKey:"1"},"编辑"),u.default.createElement(d.MenuItem,{eventKey:"5"},"配置"),"$_sys_$"===r&&u.default.createElement(d.MenuItem,{eventKey:"4"},"查看项目应用"),!n&&!o[t].is_used&&u.default.createElement(d.MenuItem,{eventKey:"2"},"删除"),n&&u.default.createElement(d.MenuItem,{eventKey:"3"},"重置权限")),u.default.createElement("img",{src:E,className:s&&a.id===o[t].id?"loading":"hide"}))})},M=0;M0?u.default.createElement("span",null,"共有应用项目 ",u.default.createElement("strong",null,t.length)," 个"):u.default.createElement("span",null,"暂无项目应用")),!r&&t.length>0&&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("tbody",null,f.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key+"/team"},e.name)):u.default.createElement("span",null,e.name,"(已关闭)")))})))),u.default.createElement(c.Modal.Footer,null,u.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=h,e.exports=t.default}).call(this)}finally{}}}); -//# sourceMappingURL=role-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=role-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/screen-2fafc167f8a6ebfe8dae.js b/public/assets/screen-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/screen-2fafc167f8a6ebfe8dae.js rename to public/assets/screen-d133ff15592d3c829f3c.js index a54b2d80..b265bc4c 100644 --- a/public/assets/screen-2fafc167f8a6ebfe8dae.js +++ b/public/assets/screen-d133ff15592d3c829f3c.js @@ -1,4 +1,4 @@ webpackJsonp([7],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=r;var a=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=a;var i={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=i;var o=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=o;var l=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=l;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},48:function(e,t,n){try{(function(){"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 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;na&&s>o||(e.moveCard(r,a),t.getItem().index=a)}}},m=function(e){function t(){a(this,n),l(Object.getPrototypeOf(n.prototype),"constructor",this).apply(this,arguments)}i(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.isDragging,r=e.connectDragSource,a=e.connectDropTarget,i=e.deleteCard,o=n?0:1,l={"float":"right",cursor:"pointer"};return r(a(u.default.createElement("div",{style:{opacity:o},className:"dragcard"},t,!!i&&u.default.createElement("span",{style:l,onClick:i,title:"删除",className:"rm-icon"},u.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)(f.CardTypes.CARD,p,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(f.CardTypes.CARD,h,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},68:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(101),i=r(a);t.default=function(){function e(e,t){for(var n=0;n0&&"none"!==t&&(i=r));return document.body.removeChild(e),i}Object.defineProperty(t,"__esModule",{value:!0}),t.getScroll=n,t.offset=r,t.getTransformPropertyName=a;var i=void 0},297:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(101),i=r(a);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},303: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 a=n(171)}catch(i){var a=n(171)}var o=/\s+/,l=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=a(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==l.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=a(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 g.default.createElement(P.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 a=t.component;if(a){var i=t;return"string"==typeof a&&(i=(0,l.default)({className:t.className,style:t.style},t.componentProps)),g.default.createElement(a,i,r)}return r[0]||null}}]),t}(g.default.Component);x.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},x.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 r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var i=(0,w.toArrayChildren)(a(r));e.isValidChildByKey(i,t)?"appear"===n?_.default.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):_.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,w.toArrayChildren)(a(n));if(e.isValidChildByKey(r,t))e.performEnter(t);else{var i=function(){_.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,w.isSameChildren)(e.state.children,r,n.showProp)?i():e.setState({children:r},i)}}}};t.default=x,e.exports=t.default},327:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(144),i=r(a),o=n(9),l=r(o),s=n(68),u=r(s),c=n(11),d=r(c),f=n(10),p=r(f),h=n(1),m=r(h),y=n(13),v=r(y),b=n(25),g=r(b),E=n(310),C=r(E),w=n(175),T=r(w),P={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},k=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){T.default.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){T.default.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){T.default.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=v.default.findDOMNode(this),a=this.props,o=a.transitionName,l="object"===("undefined"==typeof o?"undefined":(0,i.default)(o));this.stop();var s=function(){n.stopper=null,t()};if((E.isCssAnimationSupported||!a.animation[e])&&o&&a[P[e]]){var u=l?o[e]:o+"-"+e,c=u+"-active";l&&o[e+"Active"]&&(c=o[e+"Active"]),this.stopper=(0,C.default)(r,{name:u,active:c},s)}else this.stopper=a.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);k.propTypes={children:g.default.any},t.default=k,e.exports=t.default},328:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(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 o(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 l(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,a){var i=t[a];e&&i&&(e&&!i||!e&&i?r=!1:e.key!==i.key?r=!1:n&&e.props[n]!==i.props[n]&&(r=!1))}),r}function u(e,t){var n=[],r={},a=[];return e.forEach(function(e){e&&i(t,e.key)?a.length&&(r[e.key]=a,a=[]):a.push(e)}),t.forEach(function(e){e&&r.hasOwnProperty(e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=a,t.findChildInChildrenByKey=i,t.findShownChildInChildrenByKey=o,t.findHiddenChildInChildrenByKey=l,t.isSameChildren=s,t.mergeChildren=u;var c=n(1),d=r(c)},329:function(e,t,n){"use strict";function r(e){var t=e.refs,n=t.nav,r=(0,a.offset)(n),i=t.inkBar,o=t.activeTab,l=e.props.tabPosition;if(o){var s=o,u=(0,a.offset)(s),c=(0,a.getTransformPropertyName)();if("top"===l||"bottom"===l){var d=u.left-r.left;c?(i.style[c]="translate3d("+d+"px,0,0)",i.style.width=s.offsetWidth+"px",i.style.height=""):(i.style.left=d+"px",i.style.top="",i.style.bottom="",i.style.right=n.offsetWidth-d-s.offsetWidth+"px")}else{var f=u.top-r.top;c?(i.style[c]="translate3d(0,"+f+"px,0)",i.style.height=s.offsetHeight+"px",i.style.width=""):(i.style.left="",i.style.right="",i.style.top=f+"px",i.style.bottom=n.offsetHeight-f-s.offsetHeight+"px")}}i.style.display=o?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var a=n(177);t.default={componentDidUpdate:function(){r(this)},componentDidMount:function(){r(this)}},e.exports=t.default},330: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},331:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}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 i(){}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0?(c=!1,this.setOffset(0),l=0):sl?(i+=o-l,this.setState({offset:i})):o+ao?"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,i=t.tabPosition,o=t.className,l=t.animation,u=(0,b.default)((e={},a(e,r,1),a(e,r+"-"+i,1),a(e,o,!!o),e)),c=this.state.tabMovingDirection,d=this.getTabPanes(),f=void 0;f=t.transitionName&&t.transitionName[c||"backward"],!f&&l&&(f=r+"-"+l+"-"+(c||"backward")),n&&(d=d.filter(function(e){return e.props.active})),f&&(d=n?s.default.createElement(y.default,{exclusive:!0,component:"div",transitionName:f},d):s.default.createElement(y.default,{showProp:"active",exclusive:!0,component:"div",transitionName:f},d));var p=[s.default.createElement(h.default,{prefixCls:r,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}),s.default.createElement("div",{className:r+"-content",style:t.contentStyle,key:"content"},d)];return"bottom"===i&&p.reverse(),s.default.createElement("div",{className:u,style:t.style},p)}});g.TabPane=f.default,t.default=g,e.exports=t.default},333: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 a=n(332),i=r(a),o=n(176),l=r(o);t.default=i.default,t.TabPane=l.default},591:function(e,t,n){try{(function(){"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 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>"),c.default.createElement("div",{style:{"float":"right",marginTop:"15px"}},'注意:如果此页面将作为问题的创建或编辑页面,首先应将 "主题" 字段添加到列表,且将其设置为必填字段。')),c.default.createElement(f.Col,{sm:6},v.length>0&&c.default.createElement("div",{style:{marginBottom:"8px"}},"通过上下拖拽改变显示顺序。"),v.length>0?v.map(function(t,n){return c.default.createElement(_.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(f.FormGroup,{controlId:"formControlsSelect"},c.default.createElement(f.ControlLabel,null,"必填字段"),c.default.createElement(h.default,{simpleValue:!0,options:w,clearable:!1,value:l.value,onChange:function(e){l.onChange(e)},placeholder:"选择必填字段(可多选)",multi:!0})))))),c.default.createElement(f.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!d&&n[this.state.ecode]),c.default.createElement("img",{src:O,className:d?"loading":"hide"}),c.default.createElement(f.Button,{disabled:d||u,type:"submit"},"确定"),c.default.createElement(f.Button,{bsStyle:"link",disabled:d,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,options:u.PropTypes.object,handleSubmit:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,E.DragDropContext)(w.default)(t)||t,t=(0,d.reduxForm)({form:"screen",fields:["name","description","required_fields"],validate:x})(t)||t}(u.Component);t.default=S,e.exports=t.default}).call(this)}finally{}},1974:function(e,t,n){try{(function(){"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 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>"),u.default.createElement("div",{style:{"float":"right",marginTop:"15px"}},'注意:如果此页面将作为问题的创建或编辑页面,首先应将 "主题" 字段添加到列表,且将其设置为必填字段。')),u.default.createElement(c.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(v.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(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&o[this.state.ecode]),u.default.createElement("img",{src:T,className:l?"loading":"hide"}),u.default.createElement(c.Button,{disabled:l||r==JSON.stringify(n),onClick:this.save.bind(this)},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:l,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)(p.default)(t)||t}(s.Component);t.default=P,e.exports=t.default}).call(this)}finally{}},1978:function(e,t,n){try{(function(){"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 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;t0?u.default.createElement("span",null,"共有应用项目 ",u.default.createElement("strong",null,t.length)," 个"):u.default.createElement("span",null,"暂无项目应用")),!r&&t.length>0&&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,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):u.default.createElement("span",null,e.name,"(已关闭)")),u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.types)?"-":p.default.map(e.types,function(t,n){return u.default.createElement("li",{key:n},u.default.createElement(d.Link,{to:"/project/"+e.key+"/type"},t.name))}))):u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.types)?"-":p.default.map(e.types,function(e,t){return u.default.createElement("li",{key:t},e.name)})))),u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.workflows)?"-":p.default.map(e.workflows,function(t,n){return u.default.createElement("li",{key:n},u.default.createElement(d.Link,{to:"/project/"+e.key+"/workflow/"+t.id},t.name))}))):u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.workflows)?"-":p.default.map(e.workflows,function(e,t){return u.default.createElement("li",{key:t},e.name)})))))})))),u.default.createElement(c.Modal.Footer,null,u.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{}},2085: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 r(e,t){return(0,s.asyncFuncCreator)({constant:"SCREEN_CREATE",promise:function(n){return n.request({url:"/project/"+e+"/screen",method:"post",data:t})}})}function a(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 i(e){return{type:"SCREEN_SELECT",id:e}}function o(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 l(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=r,t.update=a,t.select=i,t.del=o,t.viewUsed=l;var s=n(26)}).call(this)}finally{}}}); -//# sourceMappingURL=screen-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=screen-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/state-2fafc167f8a6ebfe8dae.js b/public/assets/state-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/state-2fafc167f8a6ebfe8dae.js rename to public/assets/state-d133ff15592d3c829f3c.js index 557612c9..a7c740da 100644 --- a/public/assets/state-2fafc167f8a6ebfe8dae.js +++ b/public/assets/state-d133ff15592d3c829f3c.js @@ -1,3 +1,3 @@ webpackJsonp([15],{19:function(e,t,r){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r=[{id:"new",name:"新建"},{id:"inprogress",name:"进行中"},{id:"completed",name:"完成"}];t.StateCategories=r;var n={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=n;var a=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=a;var o={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=o;var l=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=l;var i=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=i;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},48:function(e,t,r){try{(function(){"use strict";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 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 l=function(){function e(e,t){for(var r=0;ra&&s>l||(e.moveCard(n,a),t.getItem().index=a)}}},y=function(e){function t(){a(this,r),i(Object.getPrototypeOf(r.prototype),"constructor",this).apply(this,arguments)}o(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.text,r=e.isDragging,n=e.connectDragSource,a=e.connectDropTarget,o=e.deleteCard,l=r?0:1,i={"float":"right",cursor:"pointer"};return n(a(u.default.createElement("div",{style:{opacity:l},className:"dragcard"},t,!!o&&u.default.createElement("span",{style:i,onClick:o,title:"删除",className:"rm-icon"},u.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 r=t;return t=(0,d.DragSource)(f.CardTypes.CARD,p,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(f.CardTypes.CARD,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=y,e.exports=t.default}).call(this)}finally{}},114:function(e,t,r){try{(function(){"use strict";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 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 l=function(){function e(e,t){for(var r=0;r0?u.default.createElement("span",null,"共有应用项目 ",u.default.createElement("strong",null,t.length)," 个"):u.default.createElement("span",null,"暂无项目应用")),!n&&t.length>0&&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,p.default.map(t,function(e,t){return u.default.createElement("tr",{key:t},u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key},e.name)):u.default.createElement("span",null,e.name,"(已关闭)")),u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement(d.Link,{to:"/project/"+e.key+"/issue?state="+(r.key||r.id)},e.issue_count||0)):u.default.createElement("span",null,e.issue_count||0)),u.default.createElement("td",null,"active"===e.status?u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.workflows)?"-":p.default.map(e.workflows,function(t,r){return u.default.createElement("li",{key:r},u.default.createElement(d.Link,{to:"/project/"+e.key+"/workflow/"+t.id},t.name))}))):u.default.createElement("span",null,u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},p.default.isEmpty(e.workflows)?"-":p.default.map(e.workflows,function(e,t){return u.default.createElement("li",{key:t},e.name)})))))})))),u.default.createElement(c.Modal.Footer,null,u.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=y,e.exports=t.default}).call(this)}finally{}},2086:function(e,t,r){try{(function(){"use strict";function e(e){return(0,u.asyncFuncCreator)({constant:"STATE_INDEX",promise:function(t){return t.request({url:"/project/"+e+"/state"})}})}function n(e,t){return(0,u.asyncFuncCreator)({constant:"STATE_CREATE",promise:function(r){return r.request({url:"/project/"+e+"/state",method:"post",data:t})}})}function a(e,t){return(0,u.asyncFuncCreator)({constant:"STATE_UPDATE",promise:function(r){return r.request({url:"/project/"+e+"/state/"+t.id,method:"put",data:t})}})}function o(e){return{type:"STATE_SELECT",id:e}}function l(e,t){return(0,u.asyncFuncCreator)({constant:"STATE_DELETE",id:t,promise:function(r){return r.request({url:"/project/"+e+"/state/"+t,method:"delete"})}})}function i(e,t){return(0,u.asyncFuncCreator)({constant:"STATE_SET_SORT",promise:function(r){return r.request({url:"/project/"+e+"/state/batch",method:"post",data:t})}})}function s(e,t){return(0,u.asyncFuncCreator)({constant:"STATE_VIEW_USED",id:t,promise:function(r){return r.request({url:"/project/"+e+"/state/"+t+"/used"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e,t.create=n,t.update=a,t.select=o,t.del=l,t.setSort=i,t.viewUsed=s;var u=r(26)}).call(this)}finally{}}}); -//# sourceMappingURL=state-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=state-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/summary-2fafc167f8a6ebfe8dae.js b/public/assets/summary-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/summary-2fafc167f8a6ebfe8dae.js rename to public/assets/summary-d133ff15592d3c829f3c.js index 49e37231..18d2c3d5 100644 --- a/public/assets/summary-2fafc167f8a6ebfe8dae.js +++ b/public/assets/summary-d133ff15592d3c829f3c.js @@ -1,3 +1,3 @@ webpackJsonp([32],{40:function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var a={};for(var l in e)t.indexOf(l)>=0||Object.prototype.hasOwnProperty.call(e,l)&&(a[l]=e[l]);return a}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 l&&(n.onChange=l.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,a=(e.name,e.value,e.onChange,e.children),l=n(e,["Component","name","value","onChange","children"]);return u.default.createElement(t,l,a)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var a;a=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:a}),"function"==typeof this.props.onChange&&this.props.onChange(a)}})},422:function(e,t,a){try{(function(){"use strict";function l(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 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 a=0;a0?s.default.createElement("div",{style:{height:"160px",marginBottom:"20px",padding:"16px 0px",backgroundColor:"#f7f7f7",borderRadius:"4px",borderBottom:"1px solid #ddd"}},y.default.map(o.filters||[],function(e,t){return s.default.createElement(d.Col,{sm:3,key:t},s.default.createElement("div",{style:{padding:"30px 0px",textAlign:"center",backgroundColor:w[t],borderRadius:"4px"}},s.default.createElement("div",{style:{fontWeight:600,fontSize:"30px"}},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue"+(y.default.isEmpty(e.query)?"":"?"+h.stringify(e.query||{})),style:{color:"#fff"}},e.count)),s.default.createElement("div",{style:{fontSize:"14px",color:"#fff",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},title:e.name},e.name)))})):s.default.createElement("div",{style:{marginBottom:"20px",padding:"15px",backgroundColor:"#f7f7f7",borderRadius:"4px",borderBottom:"1px solid #ddd"}},s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue"},"全部问题")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved"},"未解决的")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?assignee=me&resolution=Unresolved"},"分配给我的")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?reporter=me"},"我报告的")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?watcher=me"},"我关注的")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?created_at=-14d~"},"最近增加的")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?updated_at=-14d~"},"最近更新的")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolved_at=-14d~"},"最近解决的")),s.default.createElement("span",{style:g},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?closed_at=-14d~"},"最近关闭的"))),s.default.createElement(d.Panel,{style:{height:"320px"},header:s.default.createElement("div",null,s.default.createElement("span",null,"问题动态:"+(m.twoWeeksAgo||"")+" ~ 现在"),s.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({pulseShowModel:"detail"==e.state.pulseShowModel?"charts":"detail"})},title:"切换"},s.default.createElement("i",{className:"fa fa-retweet"})))},"detail"==this.state.pulseShowModel&&s.default.createElement(d.Table,{responsive:!0,hover:!0},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"日期"),y.default.map(o.trend||[],function(e,t){return s.default.createElement("th",{key:t},e.day.substr(5))}),s.default.createElement("th",null,"合计"))),s.default.createElement("tbody",null,s.default.createElement("tr",null,s.default.createElement("td",null,s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?created_at=-14d~"},"新建问题")),y.default.map(o.trend||[],function(e,t){return s.default.createElement("td",{key:t},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?created_at="+e.day+"~"+e.day},e.new))}),s.default.createElement("td",null,s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?created_at=-14d~"},y.default.reduce(o.trend||[],function(e,t){return e+t.new},0)))),s.default.createElement("tr",null,s.default.createElement("td",null,s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolved_at=-14d~"},"解决问题")),y.default.map(o.trend||[],function(e,t){return s.default.createElement("td",{key:t},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolved_at="+e.day+"~"+e.day},e.resolved))}),s.default.createElement("td",null,s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolved_at=-14d~"},y.default.reduce(o.trend||[],function(e,t){return e+t.resolved},0)))),s.default.createElement("tr",null,s.default.createElement("td",null,s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?closed_at=-14d~"},"关闭问题")),y.default.map(o.trend||[],function(e,t){return s.default.createElement("td",{key:t},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?closed_at="+e.day+"~"+e.day},e.closed))}),s.default.createElement("td",null,s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?closed_at=-14d~"},y.default.reduce(o.trend||[],function(e,t){return e+t.closed},0)))))),"charts"==this.state.pulseShowModel&&s.default.createElement("div",null,s.default.createElement(p.CheckboxGroup,{name:"statItems",value:this.state.pulseStatItems,onChange:function(t){e.setState({pulseStatItems:t})},style:{"float":"right",margin:"5px 10px 0px 0px",height:"30px"}},s.default.createElement("div",{style:{"float":"left"}},s.default.createElement("label",{style:{fontWeight:400}},s.default.createElement(p.Checkbox,{value:"new",style:{"float":"left"}}),s.default.createElement("span",{style:{marginLeft:"2px"}},"新建的"))),s.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},s.default.createElement("label",{style:{fontWeight:400}},s.default.createElement(p.Checkbox,{value:"resolve"}),s.default.createElement("span",{style:{marginLeft:"2px"}},"已解决的"))),s.default.createElement("div",{style:{"float":"left",marginLeft:"8px"}},s.default.createElement("label",{style:{fontWeight:400}},s.default.createElement(p.Checkbox,{value:"close"}),s.default.createElement("span",{style:{marginLeft:"2px"}},"已关闭的"))))),"charts"==this.state.pulseShowModel&&s.default.createElement("div",{className:"report-shape-container"},s.default.createElement(f.LineChart,{width:.95*l.containerWidth,height:200,data:o.trend||[],style:{margin:"35px auto"}},s.default.createElement(f.XAxis,{dataKey:"day"}),s.default.createElement(f.YAxis,null),s.default.createElement(f.CartesianGrid,{strokeDasharray:"3 3"}),s.default.createElement(f.Tooltip,null),s.default.createElement(f.Legend,null),this.state.pulseStatItems.indexOf("new")!==-1&&s.default.createElement(f.Line,{type:"monotone",dataKey:"new",name:"新建的",stroke:"#4572A7",fill:"#4572A7"}),this.state.pulseStatItems.indexOf("resolve")!==-1&&s.default.createElement(f.Line,{type:"monotone",dataKey:"resolved",name:"已解决的",stroke:"#89A54E",fill:"#89A54E"}),this.state.pulseStatItems.indexOf("close")!==-1&&s.default.createElement(f.Line,{type:"monotone",dataKey:"closed",name:"已关闭的",stroke:"#AA4643",fill:"#AA4643"})))),s.default.createElement(d.Panel,{header:s.default.createElement("div",null,s.default.createElement("span",null,"未解决问题:按负责人"),s.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({assigneeShowModel:"detail"==e.state.assigneeShowModel?"percentage":"detail"})},title:"切换"},s.default.createElement("i",{className:"fa fa-retweet"})))},o.assignee_unresolved_issues&&!y.default.isEmpty(o.assignee_unresolved_issues)?s.default.createElement(d.Table,{responsive:!0,hover:!0},"detail"==this.state.assigneeShowModel&&s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"负责人"),s.default.createElement("th",null,"问题"),y.default.map(m.types||[],function(e){return s.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.assigneeShowModel&&s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"负责人"),s.default.createElement("th",null,"问题"),s.default.createElement("th",null,"百分比"))),"detail"==this.state.assigneeShowModel&&s.default.createElement("tbody",null,y.default.map(o.assignee_unresolved_issues,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",{style:{width:"20%"}},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&assignee="+t},m.users&&m.users[t]||"")),s.default.createElement("td",{style:{width:"10%"}},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&assignee="+t},e.total||0)),y.default.map(m.types||[],function(a){return s.default.createElement("td",{key:a.id},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&type="+a.id+"&assignee="+t},e[a.id]||0))}))})),"percentage"==this.state.assigneeShowModel&&s.default.createElement("tbody",null,y.default.map(o.assignee_unresolved_issues,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",{style:{width:"20%"}},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&assignee="+t},m.users&&m.users[t]||"")),s.default.createElement("td",{style:{width:"10%"}},s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&assignee="+t},e.total||0)),s.default.createElement("td",null,s.default.createElement("table",{style:{width:"100%"}},s.default.createElement("tbody",null,s.default.createElement("tr",null,s.default.createElement("td",{style:{width:e.percent+"%"}},s.default.createElement("div",{className:"color-bar"})),s.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):s.default.createElement("div",null,"暂无信息")),s.default.createElement(d.Panel,{header:s.default.createElement("div",null,s.default.createElement("span",null,"未解决问题:按优先级"),s.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({priorityShowModel:"detail"==e.state.priorityShowModel?"percentage":"detail"})},title:"切换"},s.default.createElement("i",{className:"fa fa-retweet"})))},o.priority_unresolved_issues&&!y.default.isEmpty(o.priority_unresolved_issues)?s.default.createElement(d.Table,{responsive:!0,hover:!0},"detail"==this.state.priorityShowModel&&s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"优先级"),s.default.createElement("th",null,"问题"),y.default.map(m.types||[],function(e){return s.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.priorityShowModel&&s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"优先级"),s.default.createElement("th",null,"问题"),s.default.createElement("th",null,"百分比"))),"detail"==this.state.priorityShowModel&&s.default.createElement("tbody",null,y.default.map(o.priority_unresolved_issues,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",{style:{width:"20%"}},m.priorities&&m.priorities[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&priority="+t},m.priorities[t]):"其他"),s.default.createElement("td",{style:{width:"10%"}},m.priorities&&m.priorities[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&priority="+t},e.total||0):e.total||0),y.default.map(m.types||[],function(a){return s.default.createElement("td",{key:a.id},m.priorities&&m.priorities[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&type="+a.id+"&priority="+t},e[a.id]||0):e[a.id]||0)}))})),"percentage"==this.state.priorityShowModel&&s.default.createElement("tbody",null,y.default.map(o.priority_unresolved_issues,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",{style:{width:"20%"}},m.priorities&&m.priorities[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&priority="+t},m.priorities[t]):"其他"),s.default.createElement("td",{style:{width:"10%"}},m.priorities&&m.priorities[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&priority="+t},e.total||0):e.total||0),s.default.createElement("td",null,s.default.createElement("table",{style:{width:"100%"}},s.default.createElement("tbody",null,s.default.createElement("tr",null,s.default.createElement("td",{style:{width:e.percent+"%"}},s.default.createElement("div",{className:"color-bar"})),s.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):s.default.createElement("div",null,"暂无信息")),s.default.createElement(d.Panel,{header:s.default.createElement("div",null,s.default.createElement("span",null,"未解决问题:按模块"),s.default.createElement("span",{className:"exchange-icon",onClick:function(){return e.setState({moduleShowModel:"detail"==e.state.moduleShowModel?"percentage":"detail"})},title:"切换"},s.default.createElement("i",{className:"fa fa-retweet"})))},o.module_unresolved_issues&&!y.default.isEmpty(o.module_unresolved_issues)?s.default.createElement(d.Table,{responsive:!0,hover:!0},"detail"==this.state.moduleShowModel&&s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"模块"),s.default.createElement("th",null,"问题"),y.default.map(m.types||[],function(e){return s.default.createElement("th",{key:e.id},e.name)}))),"percentage"==this.state.moduleShowModel&&s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,"模块"),s.default.createElement("th",null,"问题"),s.default.createElement("th",null,"百分比"))),"detail"==this.state.moduleShowModel&&s.default.createElement("tbody",null,y.default.map(o.module_unresolved_issues,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",{style:{width:"20%"}},m.modules&&m.modules[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&module="+t},m.modules[t]):"其他"),s.default.createElement("td",{style:{width:"10%"}},m.modules&&m.modules[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&module="+t},e.total||0):e.total||0),y.default.map(m.types||[],function(a){return s.default.createElement("td",{key:a.id},m.modules&&m.modules[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&type="+a.id+"&module="+t},e[a.id]||0):e[a.id]||0)}))})),"percentage"==this.state.moduleShowModel&&s.default.createElement("tbody",null,y.default.map(o.module_unresolved_issues,function(e,t){return s.default.createElement("tr",{key:t},s.default.createElement("td",{style:{width:"20%"}},m.modules&&m.modules[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&module="+t },m.modules[t]):"其他"),s.default.createElement("td",{style:{width:"10%"}},m.modules&&m.modules[t]?s.default.createElement(c.Link,{to:"/project/"+r.key+"/issue?resolution=Unresolved&module="+t},e.total||0):e.total||0),s.default.createElement("td",null,s.default.createElement("table",{style:{width:"100%"}},s.default.createElement("tbody",null,s.default.createElement("tr",null,s.default.createElement("td",{style:{width:e.percent+"%"}},s.default.createElement("div",{className:"color-bar"})),s.default.createElement("td",{style:{width:100-e.percent+"%",paddingLeft:"10px"}},e.percent+"%"))))))}))):s.default.createElement("div",null,"暂无信息")),this.state.editModalShow&&s.default.createElement(b,{show:!0,close:function(){e.setState({editModalShow:!1})},update:u,data:r,i18n:a}),this.state.archiveNotifyShow&&s.default.createElement(v,{show:!0,close:function(){e.setState({archiveNotifyShow:!1})},data:r,archive:i}))}}],[{key:"propTypes",value:{i18n:i.PropTypes.object.isRequired,layout:i.PropTypes.object.isRequired,user:i.PropTypes.object.isRequired,project:i.PropTypes.object.isRequired,data:i.PropTypes.object.isRequired,options:i.PropTypes.object.isRequired,loading:i.PropTypes.bool.isRequired,update:i.PropTypes.func.isRequired,archive:i.PropTypes.func.isRequired,index:i.PropTypes.func.isRequired},enumerable:!0}]),t}(i.Component);t.default=k,e.exports=t.default}).call(this)}finally{}},2087:function(e,t,a){try{(function(){"use strict";function e(e){return(0,l.asyncFuncCreator)({constant:"PROJECT_SUMMARY",promise:function(t){return t.request({url:"/project/"+e+"/summary"})}})}Object.defineProperty(t,"__esModule",{value:!0}),t.index=e;var l=a(26)}).call(this)}finally{}}}); -//# sourceMappingURL=summary-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=summary-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/syssetting-2fafc167f8a6ebfe8dae.js b/public/assets/syssetting-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/syssetting-2fafc167f8a6ebfe8dae.js rename to public/assets/syssetting-d133ff15592d3c829f3c.js index 8e0bd339..d4646210 100644 --- a/public/assets/syssetting-2fafc167f8a6ebfe8dae.js +++ b/public/assets/syssetting-d133ff15592d3c829f3c.js @@ -1,3 +1,3 @@ webpackJsonp([18],{40:function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var a={};for(var l in e)t.indexOf(l)>=0||Object.prototype.hasOwnProperty.call(e,l)&&(a[l]=e[l]);return a}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 l&&(n.onChange=l.bind(null,this.props.value)),i.default.createElement("input",r({},this.props,{type:"checkbox",name:t},n))}}),t.CheckboxGroup=i.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:i.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,a=(e.name,e.value,e.onChange,e.children),l=n(e,["Component","name","value","onChange","children"]);return i.default.createElement(t,l,a)},getValue:function(){return this.state.value},_isControlledComponent:function(){return!!this.props.value},_onCheckboxChange:function(e,t){var a;a=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:a}),"function"==typeof this.props.onChange&&this.props.onChange(a)}})},1986:function(e,t,a){try{(function(){"use strict";function l(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 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 a=0;a0?f.default.map(S.sys_admin||[],function(e,t){return 0===t?e.name:", "+e.name}):"-"))});var x=[];return"properties"==this.state.tabKey?x=k:"timetrack"==this.state.tabKey?x=O:"mailserver"==this.state.tabKey?x=M:"sysroles"==this.state.tabKey&&(x=j),u.default.createElement("div",null,u.default.createElement(d.Nav,{bsStyle:"pills",style:{marginTop:"10px","float":"left",lineHeight:"1.0"},activeKey:this.state.tabKey,onSelect:this.handleTabSelect.bind(this)},u.default.createElement(d.NavItem,{eventKey:"properties",href:"#"},"通用设置"),u.default.createElement(d.NavItem,{eventKey:"mailserver",href:"#"},"邮件服务器"),u.default.createElement(d.NavItem,{eventKey:"sysroles",href:"#"},"系统角色")),u.default.createElement(c.BootstrapTable,{data:x,bordered:!1,hover:!0,trClassName:"tr-middle"},u.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),u.default.createElement(c.TableHeaderColumn,{width:"260",dataField:"title"}),u.default.createElement(c.TableHeaderColumn,{width:"200",dataField:"contents"}),u.default.createElement(c.TableHeaderColumn,{dataField:"blank"})),"properties"==this.state.tabKey&&u.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},u.default.createElement(d.Button,{disabled:r,onClick:function(){e.setState({propertiesModalShow:!0})}},"修改设置")),"mailserver"==this.state.tabKey&&u.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},u.default.createElement(d.Button,{disabled:r,onClick:function(){e.setState({sendTestMailModalShow:!0})}},"发送测试邮件")),"sysroles"==this.state.tabKey&&u.default.createElement("div",{style:{width:"100%",marginTop:"20px"}},u.default.createElement(d.Button,{disabled:r,onClick:function(){e.setState({configActorModalShow:!0})}},"角色配置")),this.state.propertiesModalShow&&u.default.createElement(m,{show:!0,close:this.propertiesModalClose,update:l,data:s,i18n:a}),this.state.timeTrackModalShow&&u.default.createElement(h,{show:!0,close:this.timeTrackModalClose,update:l,data:E,i18n:a}),this.state.smtpServerModalShow&&u.default.createElement(y,{show:!0,close:this.smtpServerModalClose,update:l,data:C.smtp||{},i18n:a}),this.state.setSendMailShow&&u.default.createElement(b,{show:!0,close:this.setSendMailModalClose,update:l,data:C.send||{},i18n:a}),this.state.sendTestMailModalShow&&u.default.createElement(v,{show:!0,close:this.sendTestMailModalClose,sendMail:n,i18n:a}),this.state.configActorModalShow&&u.default.createElement(g,{show:!0,close:this.configActorModalClose,update:l,data:S,i18n:a}))}}],[{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=E,e.exports=t.default}).call(this)}finally{}},1989:function(e,t,a){try{(function(){"use strict";function l(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 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=Object.assign||function(e){for(var t=1;t0?u.default.createElement("span",null,m.default.map(r[y].users,function(e){return u.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},u.default.createElement(d.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))})):u.default.createElement("span",null,u.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")),u.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.willSetUsers.bind(this,r[y].id)},u.default.createElement("i",{className:"fa fa-pencil"})))):u.default.createElement("div",null,u.default.createElement(f.default.Async,{multi:!0,clearable:!1,disabled:m.default.indexOf(a,r[y].id)!==-1&&!0,options:[],value:this.state.users[r[y].id]||r[y].users,onChange:this.handleUserSelectChange.bind(this,r[y].id),valueKey:"id",labelKey:"nameAndEmail",loadOptions:this.searchUsers,placeholder:"请输入用户"}),u.default.createElement("div",{className:m.default.indexOf(a,r[y].id)!==-1?"hide":"edit-button-group"},u.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setUsers.bind(this,r[y].id)},u.default.createElement("i",{className:"fa fa-check"})),u.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetUsers.bind(this,r[y].id)},u.default.createElement("i",{className:"fa fa-close"})))),u.default.createElement("img",{src:R,style:{"float":"right"},className:m.default.indexOf(a,r[y].id)!==-1?"loading":"hide"})),groups:t.permissions&&t.permissions.indexOf("manage_project")===-1?u.default.createElement("div",null,u.default.createElement("span",null,m.default.map(r[y].groups,function(e){return u.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px"}},u.default.createElement(d.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))}))):u.default.createElement("div",null,m.default.indexOf(i,r[y].id)===-1&&m.default.indexOf(l,r[y].id)===-1?u.default.createElement("div",{className:"editable-list-field"},u.default.createElement("div",{style:{display:"table",width:"100%"}},r[y].groups&&r[y].groups.length>0?u.default.createElement("span",null,m.default.map(r[y].groups,function(e){return u.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px 3px 6px 3px"}},u.default.createElement(d.Label,{style:{color:"#007eff",border:"1px solid #c2e0ff",backgroundColor:"#ebf5ff",fontWeight:"normal"},key:e.id},e.name))})):u.default.createElement("span",null,u.default.createElement("div",{style:{display:"inline-block",margin:"3px 3px 6px 3px"}},"-")),u.default.createElement("span",{className:"edit-icon-zone edit-icon",onClick:this.willSetGroups.bind(this,r[y].id)},u.default.createElement("i",{className:"fa fa-pencil"})))):u.default.createElement("div",null,u.default.createElement(f.default.Async,{multi:!0,clearable:!1,disabled:m.default.indexOf(l,r[y].id)!==-1&&!0,options:[],value:this.state.groups[r[y].id]||r[y].groups,onChange:this.handleGroupSelectChange.bind(this,r[y].id),valueKey:"id",labelKey:"name",loadOptions:this.searchGroups,placeholder:"请输入用户组"}),u.default.createElement("div",{className:m.default.indexOf(l,r[y].id)!==-1?"hide":"",style:{"float":"right"}},u.default.createElement(d.Button,{className:"edit-ok-button",onClick:this.setGroups.bind(this,r[y].id)},u.default.createElement("i",{className:"fa fa-check"})),u.default.createElement(d.Button,{className:"edit-cancel-button",onClick:this.cancelSetGroups.bind(this,r[y].id)},u.default.createElement("i",{className:"fa fa-close"})))),u.default.createElement("img",{src:R,style:{"float":"right"},className:m.default.indexOf(l,r[y].id)!==-1?"loading":"hide"}))});var v={};return n?v.noDataText=u.default.createElement("div",null,u.default.createElement("img",{src:R,className:"loading"})):v.noDataText="暂无数据显示。",v.onRowMouseOver=this.onRowMouseOver.bind(this),u.default.createElement("div",{style:{marginBottom:"30px",marginTop:"15px"}},u.default.createElement("div",{className:"info-col"},u.default.createElement("div",{className:"info-icon"},u.default.createElement("i",{className:"fa fa-info-circle"})),u.default.createElement("div",{className:"info-content"},"若成员配置修改后,用户权限没有生效,请刷新页面。")),u.default.createElement(c.BootstrapTable,{data:p,bordered:!1,hover:!0,options:v,trClassName:"tr-top"},u.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),u.default.createElement(c.TableHeaderColumn,{dataField:"name",width:"300"},"角色"),u.default.createElement(c.TableHeaderColumn,{dataField:"users"},"用户"),u.default.createElement(c.TableHeaderColumn,{dataField:"groups"},"用户组")))}}],[{key:"propTypes",value:{collection:l.PropTypes.array.isRequired,options:l.PropTypes.object.isRequired,selectedItem:l.PropTypes.object.isRequired,indexLoading:l.PropTypes.bool.isRequired,index:l.PropTypes.func.isRequired,setActor:l.PropTypes.func.isRequired,setGroupActor:l.PropTypes.func.isRequired},enumerable:!0}]),t}(l.Component);t.default=E,e.exports=t.default}).call(this)}finally{}}}); -//# sourceMappingURL=team-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=team-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/type-2fafc167f8a6ebfe8dae.js b/public/assets/type-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/type-2fafc167f8a6ebfe8dae.js rename to public/assets/type-d133ff15592d3c829f3c.js index e83f20ed..5eefada5 100644 --- a/public/assets/type-2fafc167f8a6ebfe8dae.js +++ b/public/assets/type-d133ff15592d3c829f3c.js @@ -1,3 +1,3 @@ webpackJsonp([21],{19:function(e,t,a){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 a=[{id:"new",name:"新建"},{id:"inprogress",name:"进行中"},{id:"completed",name:"完成"}];t.StateCategories=a;var n={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=n;var r=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=r;var o={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=o;var l=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=l;var i=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=i;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},48: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 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 l=function(){function e(e,t){for(var a=0;ar&&s>l||(e.moveCard(n,r),t.getItem().index=r)}}},h=function(e){function t(){r(this,a),i(Object.getPrototypeOf(a.prototype),"constructor",this).apply(this,arguments)}o(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.text,a=e.isDragging,n=e.connectDragSource,r=e.connectDropTarget,o=e.deleteCard,l=a?0:1,i={"float":"right",cursor:"pointer"};return n(r(u.default.createElement("div",{style:{opacity:l},className:"dragcard"},t,!!o&&u.default.createElement("span",{style:i,onClick:o,title:"删除",className:"rm-icon"},u.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 a=t;return t=(0,d.DragSource)(f.CardTypes.CARD,p,function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}})(t)||t,t=(0,d.DropTarget)(f.CardTypes.CARD,m,function(e){return{connectDropTarget:e.dropTarget()}})(t)||t}(s.Component);t.default=h,e.exports=t.default}).call(this)}finally{}},114: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 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 l=function(){function e(e,t){for(var a=0;a'),this.element.appendChild(n)),r=n.getElementsByTagName("span")[0],r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,r;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),r=t.optWidth/t.optHeight,e.heightr?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*r):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/r),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:l,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:l,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,r,i,o,a,l,s,u,c,d,p,f,h;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),o=0,s=d.length;o'+this.options.dictRemoveFile+""),e.previewElement.appendChild(e._removeLink)),r=function(n){return function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),h=[],l=0,c=f.length;l\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n Check\n \n \n \n \n \n
    \n
    \n \n Error\n \n \n \n \n \n \n \n
    \n'},r=function(){var e,t,n,r,i,o,a;for(r=arguments[0],n=2<=arguments.length?u.call(arguments,1):[],o=0,a=n.length;o'+this.options.dictDefaultMessage+"")),this.clickableElements.length&&(r=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,i,o;if(n=e.hiddenFileInput.files,n.length)for(i=0,o=n.length;i',this.options.dictFallbackText&&(r+="

    "+this.options.dictFallbackText+"

    "),r+='',n=t.createElement(r),"FORM"!==this.element.tagName?(i=t.createElement('
    '),i.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=i?i:n)},t.prototype.getExistingFallback=function(){var e,t,n,r,i,o;for(t=function(e){var t,n,r;for(n=0,r=e.length;n0){for(a=["TB","GB","MB","KB","b"],n=l=0,s=a.length;l=t){r=e/Math.pow(this.options.filesizeBase,4-n),i=o;break}r=Math.round(10*r)/10}return""+r+" "+i},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,r,i;for(i=[],n=0,r=e.length;n0){for(o=0,a=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,r;for(n=0,r=e.length;n=t)&&(r=this.getQueuedFiles(),r.length>0)){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-n));for(;e=L;c=0<=L?++_:--_)o.append(this._getParamName(c),e[c],this._renameFilename(e[c].name));return this.submitRequest(k,o,e)},t.prototype.submitRequest=function(e,t,n){return e.send(t)},t.prototype._finished=function(e,n,r){var i,o,a;for(o=0,a=e.length;oc;)t=i[4*(s-1)+3],0===t?o=s:c=s,s=o+c>>1;return u=s/a,0===u?1:u},a=function(e,t,n,r,i,a,l,s,u,c){var d;return d=o(t),e.drawImage(t,n,r,i,a,l,s,u,c/d)},i=function(e,t){var n,r,i,o,a,l,s,u,c;if(i=!1,c=!0,r=e.document,u=r.documentElement,n=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",o=function(n){if("readystatechange"!==n.type||"complete"===r.readyState)return("load"===n.type?e:r)[s](l+n.type,o,!1),!i&&(i=!0)?t.call(e,n.type||n):void 0},a=function(){var e;try{u.doScroll("left")}catch(t){return e=t,void setTimeout(a,50)}return o("poll")},"complete"!==r.readyState){if(r.createEventObject&&u.doScroll){try{c=!e.frameElement}catch(d){}c&&a()}return r[n](l+"DOMContentLoaded",o,!1),r[n](l+"readystatechange",o,!1),e[n](l+"load",o,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},i(window,t._autoDiscoverFunction)}).call(this)}).call(t,n(6)(e))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var o;for(o in e);return"undefined"==typeof o||r.call(e,o)};e.exports=function l(){var e,t,n,r,i,s,u=arguments[0],c=1,d=arguments.length,p=!1;for("boolean"==typeof u?(p=u,u=arguments[1]||{},c=2):("object"!=typeof u&&"function"!=typeof u||null==u)&&(u={});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||d.default.findDOMNode(this);this.dropzone=new y(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,r=this.props.className?"filepicker dropzone "+this.props.className:"filepicker dropzone";if(n.showFiletypeIcon&&n.iconFiletypes&&(!t||t.length<1))for(var i=0;is||i<=0)&&(i=1);for(var u=[],d=0;ds)break;u.push(f)}return c.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},c.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},c.default.createElement("span",null,p.default.add((i-1)*o,1),"-",i*o>=n?n:i*o," 共",n,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},s>1&&c.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},i-l>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),i-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,i-1),title:"前页"},"<")),p.default.map(u,function(t,n){return c.default.createElement("li",{key:n,className:t===i?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),i1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,p.default.add(i,1)),title:"后页"},">")),s-l>i&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:u.PropTypes.object,refresh:u.PropTypes.func,total:u.PropTypes.number.isRequired,curPage:u.PropTypes.number,sizePerPage:u.PropTypes.number,paginationSize:u.PropTypes.number},enumerable:!0}]),t}(u.Component);t.default=f,e.exports=t.default}).call(this)}finally{}},87:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&(B={mode:"checkbox",selected:this.state.selectedIds,onSelect:this.onSelect.bind(this),onSelectAll:this.onSelectAll.bind(this)});var U=!1,W=!1,G=!1;return m.default.map(r,function(t){m.default.indexOf(e.state.selectedIds,t.id)!==-1&&(t.directory&&"self"!=t.directory||(U=!0,"invalid"==t.status?W=!0:(t.status="active")&&(G=!0)))}),u.default.createElement("div",null,u.default.createElement("div",{style:{marginTop:"5px",height:"40px"}},u.default.createElement(d.FormGroup,null,u.default.createElement("span",{style:{"float":"right",width:"18%"}},u.default.createElement(f.default,{simpleValue:!0,placeholder:"用户目录",value:this.state.directory,onChange:this.directoryChange.bind(this),options:m.default.map(_.directories||[],function(e){return{label:e.name,value:e.id}})})),u.default.createElement("span",{style:{"float":"right",width:"18%",marginRight:"10px"}},u.default.createElement(f.default,{simpleValue:!0,placeholder:"所属组",value:this.state.group,onChange:this.groupChange.bind(this),options:m.default.map(_.groups||[],function(e){return{label:e.name,value:e.id}})})),u.default.createElement("span",{style:{"float":"right",width:"20%",marginRight:"10px"}},u.default.createElement(d.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&&u.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},u.default.createElement(d.DropdownButton,{title:"操作",onSelect:this.multiOperateSelect.bind(this)},!U&&u.default.createElement(d.MenuItem,{disabled:!0,eventKey:"null"},"无"),U&&u.default.createElement(d.MenuItem,{eventKey:"del"},"删除"),W&&u.default.createElement(d.MenuItem,{eventKey:"validate"},"启用"),G&&u.default.createElement(d.MenuItem,{eventKey:"invalidate"},"禁用"))),u.default.createElement("span",{style:{"float":"left",marginRight:"10px"}},u.default.createElement(d.Button,{onClick:function(){e.setState({createModalShow:!0})},disabled:a},u.default.createElement("i",{className:"fa fa-plus"})," 新建用户")),u.default.createElement("span",{style:{"float":"left",width:"20%"}},u.default.createElement(d.Button,{onClick:function(){e.setState({importModalShow:!0})},disabled:a},u.default.createElement("i",{className:"fa fa-upload"})," 批量导入")))),u.default.createElement("div",null,u.default.createElement("div",{className:"info-col"},u.default.createElement("div",{className:"info-icon"},u.default.createElement("i",{className:"fa fa-info-circle"})),u.default.createElement("div",{className:"info-content"},u.default.createElement("span",null,"请使用邮箱登录,若在系统配置里配置了“默认登录邮箱域名”可使用邮箱前缀登录。",u.default.createElement("br",null),"新建或批量导入的用户,默认密码是:actionview。从外部用户目录同步过来的用户,密码和用户目录的保持一致。",u.default.createElement("br",null),"从外部用户目录同步过来的用户,不能对其做任何操作。"))),u.default.createElement(c.BootstrapTable,{hover:!0,data:D,bordered:!1,options:H,trClassName:"tr-middle",selectRow:B},u.default.createElement(c.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),u.default.createElement(c.TableHeaderColumn,{dataField:"name"},"姓名"),u.default.createElement(c.TableHeaderColumn,{dataField:"email"},"邮箱"),u.default.createElement(c.TableHeaderColumn,{dataField:"groups"},"所属组"),u.default.createElement(c.TableHeaderColumn,{dataField:"directory"},"目录"),u.default.createElement(c.TableHeaderColumn,{width:"60",dataField:"operation"})),this.state.editModalShow&&u.default.createElement(w,{show:!0,close:this.editModalClose,update:R,data:i,i18n:n}),this.state.createModalShow&&u.default.createElement(b,{show:!0,close:this.createModalClose,create:h,i18n:n}),this.state.importModalShow&&u.default.createElement(g,{show:!0,close:this.importModalClose,imports:y,loading:o,index:s,i18n:n}),this.state.operateNotifyShow&&u.default.createElement(E,{show:!0,close:this.operateNotifyClose,data:i,operate:this.state.operate,del:C,renew:P,invalidate:F,i18n:n}),this.state.multiOperateNotifyShow&&u.default.createElement(k,{show:!0,close:this.multiOperateNotifyClose,collection:r,multiDel:O,multiRenew:T,multiInvalidate:S,ids:this.state.selectedIds,cancelSelected:this.cancelSelected.bind(this),operate:this.state.multiOperate,loading:o,i18n:n})),!a&&_.total&&_.total>0?u.default.createElement(v,{total:_.total||0,curPage:M.page||1,sizePerPage:_.sizePerPage||30,paginationSize:4,query:M,refresh:p}):"")}}],[{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,imports:s.PropTypes.func.isRequired,update:s.PropTypes.func.isRequired,renew:s.PropTypes.func.isRequired,invalidate:s.PropTypes.func.isRequired,del:s.PropTypes.func.isRequired,multiRenew:s.PropTypes.func.isRequired,multiInvalidate:s.PropTypes.func.isRequired,multiDel:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=C,e.exports=t.default}).call(this)}finally{}},2019:function(e,t,n){try{(function(){"use strict";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 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 a=function(){function e(e,t){for(var n=0;ns||n<=0)&&(n=1);for(var u=[],d=0;ds)break;u.push(p)}return c.default.createElement("div",{style:{marginTop:"10px",height:"45px"}},c.default.createElement("div",{className:"col-md-6",style:{textAlign:"left"}},c.default.createElement("span",null,f.default.add((n-1)*o,1),"-",n*o>=r?r:n*o," 共",r,"条 ",s,"页")),c.default.createElement("div",{className:"col-md-6",style:{textAlign:"right"}},s>1&&c.default.createElement("ul",{className:"pagination",style:{margin:"0px"}},n-i>1&&c.default.createElement("li",{key:"first"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,1),title:"首页"},"<<")),n-1>0&&s>1&&c.default.createElement("li",{key:"pre"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,n-1),title:"前页"},"<")),f.default.map(u,function(t,r){return c.default.createElement("li",{key:r,className:t===n?"active":""},c.default.createElement("span",{className:"page-button",onClick:e.goPage.bind(e,t)},t))}),n1&&c.default.createElement("li",{key:"next"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,f.default.add(n,1)),title:"后页"},">")),s-i>n&&c.default.createElement("li",{key:"last"},c.default.createElement("span",{className:"page-button",onClick:this.goPage.bind(this,s),title:"尾页"},">>")))))}}],[{key:"propTypes",value:{query:u.PropTypes.object,refresh:u.PropTypes.func,total:u.PropTypes.number.isRequired,curPage:u.PropTypes.number,sizePerPage:u.PropTypes.number,paginationSize:u.PropTypes.number},enumerable:!0}]),t}(u.Component);t.default=p,e.exports=t.default}).call(this)}finally{}},2021:function(e,t,r){try{(function(){"use strict";function a(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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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,m.bindActionCreators)(y,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;te.end_time&&(r.start_time="计划开始时间要早于计划完成时间"),r},w=function(e){function t(e){n(this,r),s(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,e),this.state={ecode:0},this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}o(t,e),i(t,[{key:"handleSubmit",value:function(){var e,t,r,a,n;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return e=this.props,t=e.values,r=e.create,a=e.close,t.start_time&&(t.start_time=parseInt(g(t.start_time).startOf("day").format("X"))),t.end_time&&(t.end_time=parseInt(g(t.end_time).endOf("day").format("X"))),o.next=8,regeneratorRuntime.awrap(r(t));case 8:n=o.sent,0===n?(this.setState({ecode:0}),b.notify.show("新建完成。","success",2e3),a()):this.setState({ecode:n});case 10:case"end":return o.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,r=e.submitting;r||(this.setState({ecode:0}),t())}},{key:"componentWillMount",value:function(){var e=this.props.initializeForm;e({start_time:g(),end_time:g()})}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,r=e.fields,a=r.name,n=r.start_time,o=r.end_time,i=r.description,s=e.handleSubmit,u=e.invalid,d=e.submitting;return c.default.createElement(f.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},c.default.createElement(f.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},c.default.createElement(f.Modal.Title,{id:"contained-modal-title-la"},"创建版本")),c.default.createElement("form",{onSubmit:s(this.handleSubmit),onKeyUp:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(f.Modal.Body,null,c.default.createElement(f.FormGroup,{controlId:"formControlsText",validationState:a.touched&&a.error?"error":null},c.default.createElement(f.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(f.FormControl,l({disabled:d,type:"text"},a,{placeholder:"版本名"})),a.touched&&a.error&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},a.error)),c.default.createElement("div",null,c.default.createElement(f.FormGroup,{style:{width:"45%",display:"inline-block"},validationState:n.value&&n.error?"error":null},c.default.createElement(f.ControlLabel,null,"计划开始时间"),c.default.createElement(v.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:n.value,onChange:function(e){n.onChange(e)}}),n.value&&n.error&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},n.error)),c.default.createElement(f.FormGroup,{style:{width:"45%",display:"inline-block","float":"right"},validationState:o.value&&o.error?"error":null},c.default.createElement(f.ControlLabel,null,"计划完成时间"),c.default.createElement(v.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&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},o.error))),c.default.createElement(f.FormGroup,null,c.default.createElement(f.ControlLabel,null,"描述"),c.default.createElement(f.FormControl,l({disabled:d,componentClass:"textarea",style:{height:"200px"}},i,{placeholder:"描述"})))),c.default.createElement(f.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!d&&t[this.state.ecode]),c.default.createElement("img",{src:E,className:d?"loading":"hide"}),c.default.createElement(f.Button,{disabled:d||u,type:"submit"},"确定"),c.default.createElement(f.Button,{bsStyle:"link",disabled:d,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.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,initializeForm:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired},enumerable:!0}]);var r=t;return t=(0,d.reduxForm)({form:"version",fields:["name","start_time","end_time","description"],validate:_})(t)||t}(u.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},2023:function(e,t,r){try{(function(){"use strict";function a(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 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 l=function(){function e(e,t){for(var r=0;r")}}))))),u.default.createElement(c.Modal.Footer,null,u.default.createElement(c.Button,{onClick:this.handleCancel},"关闭")))}}],[{key:"propTypes",value:{close:s.PropTypes.func.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=m,e.exports=t.default}).call(this)}finally{}},2025:function(e,t,r){try{(function(){"use strict";function a(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 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 l=Object.assign||function(e){for(var t=1;te.end_time&&(r.start_time="计划开始时间要早于计划完成时间"),r},_=function(e){function t(e){n(this,r),s(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,e),this.state={ecode:0},this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}o(t,e),i(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.initializeForm,r=e.data;t(l({},r,{start_time:r.start_time?b.unix(r.start_time):r.start_time,end_time:r.end_time?b.unix(r.end_time):r.end_time}))}},{key:"handleSubmit",value:function(){var e,t,r,a,n;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.next){case 0:return e=this.props,t=e.values,r=e.edit,a=e.close,t.start_time&&(t.start_time=parseInt(b(t.start_time).startOf("day").format("X"))),t.end_time&&(t.end_time=parseInt(b(t.end_time).endOf("day").format("X"))),o.next=8,regeneratorRuntime.awrap(r(t));case 8:n=o.sent,0===n?(this.setState({ecode:0}),a(),v.notify.show("更新完成。","success",2e3)):this.setState({ecode:n});case 10:case"end":return o.stop()}},null,this)}},{key:"handleCancel",value:function(){var e=this.props,t=e.close,r=e.submitting;r||(this.setState({ecode:0}),t())}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,r=e.fields,a=r.id,n=r.name,o=r.start_time,i=r.end_time,s=r.description,u=e.handleSubmit,d=e.invalid,p=e.dirty,m=e.submitting,h=e.data;return c.default.createElement(f.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},c.default.createElement(f.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},c.default.createElement(f.Modal.Title,{id:"contained-modal-title-la"},"编辑版本 - "+h.name)),c.default.createElement("form",{onSubmit:u(this.handleSubmit),onKeyUp:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(f.Modal.Body,null,c.default.createElement(f.FormGroup,{controlId:"formControlsText",validationState:n.touched&&n.error?"error":null},c.default.createElement(f.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(f.FormControl,l({type:"hidden"},a)),c.default.createElement(f.FormControl,l({disabled:m,type:"text"},n,{placeholder:"版本名"})),n.touched&&n.error&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},n.error)),c.default.createElement("div",null,c.default.createElement(f.FormGroup,{style:{width:"45%",display:"inline-block"},validationState:o.value&&o.error?"error":null},c.default.createElement(f.ControlLabel,null,"计划开始时间"),c.default.createElement(y.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&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},o.error)),c.default.createElement(f.FormGroup,{style:{width:"45%",display:"inline-block","float":"right"},validationState:i.value&&i.error?"error":null},c.default.createElement(f.ControlLabel,null,"计划完成时间"),c.default.createElement(y.default,{locale:"zh-cn",mode:"date",closeOnSelect:!0,dateFormat:"YYYY/MM/DD",timeFormat:!1,value:i.value,onChange:function(e){i.onChange(e)}}),i.value&&i.error&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},i.error))),c.default.createElement(f.FormGroup,null,c.default.createElement(f.ControlLabel,null,"描述"),c.default.createElement(f.FormControl,l({disabled:m,componentClass:"textarea",style:{height:"200px"}},s,{placeholder:"描述"})))),c.default.createElement(f.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!m&&t[this.state.ecode]),c.default.createElement("img",{src:g,className:m?"loading":"hide"}),c.default.createElement(f.Button,{disabled:!p||m||d,type:"submit"},"确定"),c.default.createElement(f.Button,{bsStyle:"link",disabled:m,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{i18n:u.PropTypes.object.isRequired,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,dirty: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,edit:u.PropTypes.func.isRequired},enumerable:!0}]);var r=t;return t=(0,d.reduxForm)({form:"version",fields:["id","name","start_time","end_time","description"],validate:E})(t)||t}(u.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},2026:function(e,t,r){try{(function(){"use strict";function a(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 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 l=function(){function e(e,t){for(var r=0;rl[S].end_time&&"released"!==l[S].status?"red":"#000"}},l[S].end_time?E.unix(l[S].end_time).format("YYYY/MM/DD"):"-")),released_time:u.default.createElement("div",{style:{display:"table",width:"100%"}},u.default.createElement("div",{style:{display:"inline-block","float":"left",margin:"3px",marginBottom:"6px"}},l[S].released_time?E.unix(l[S].released_time).format("YYYY/MM/DD"):"-")),issues:u.default.createElement("ul",{style:{marginBottom:"0px",paddingLeft:"0px",listStyle:"none"}},u.default.createElement("li",null,"所有问题 - ",u.default.createElement(c.Link,{to:"/project/"+l[S].project_key+"/issue?resolve_version="+l[S].id},l[S].all_cnt||0)),u.default.createElement("li",null,"未解决的 - ",u.default.createElement(c.Link,{to:"/project/"+l[S].project_key+"/issue?resolution=Unresolved&resolve_version="+l[S].id},u.default.createElement("span",{style:{color:"red"}},l[S].unresolved_cnt||0)))),status:u.default.createElement("span",null,"released"===l[S].status?u.default.createElement("span",{style:{color:"#009900"},title:"已发布"},u.default.createElement("i",{className:"fa fa-check"})):"未发布"),operation:o.permissions&&o.permissions.indexOf("manage_project")!==-1?u.default.createElement("div",null,x&&k===l[S].id&&!p&&u.default.createElement(f.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:S,title:T,id:"dropdown-basic-"+S,onSelect:this.operateSelect.bind(this)},u.default.createElement(f.MenuItem,{eventKey:"view"},"查看"),u.default.createElement(f.MenuItem,{eventKey:"edit"},"编辑"),"released"!=l[S].status&&u.default.createElement(f.MenuItem,{eventKey:"release"},"发布"),u.default.createElement(f.MenuItem,{eventKey:"del"},"删除")),u.default.createElement("img",{src:_,className:p&&i.id===l[S].id?"loading":"hide"})):u.default.createElement(f.Button,{bsStyle:"link",onClick:this.view.bind(this,l[S].id)},"查看")});var R={};return s?R.noDataText=u.default.createElement("div",null,u.default.createElement("img",{src:_,className:"loading"})):R.noDataText="暂无数据显示。",R.onRowMouseOver=this.onRowMouseOver.bind(this),u.default.createElement("div",{style:{marginBottom:"30px"}},u.default.createElement(d.BootstrapTable,{data:j,bordered:!1,hover:!0,options:R,trClassName:"tr-top"},u.default.createElement(d.TableHeaderColumn,{dataField:"id",isKey:!0,hidden:!0},"ID"),u.default.createElement(d.TableHeaderColumn,{dataField:"name"},"名称"),u.default.createElement(d.TableHeaderColumn,{dataField:"start_time",width:"130"},"计划开始时间"),u.default.createElement(d.TableHeaderColumn,{dataField:"end_time",width:"130"},"计划完成时间"),u.default.createElement(d.TableHeaderColumn,{dataField:"issues",width:"150"},"问题完成情况"),u.default.createElement(d.TableHeaderColumn,{dataField:"status",width:"100"},"状态"),u.default.createElement(d.TableHeaderColumn,{width:"80",dataField:"operation"})),!s&&o.total&&o.total>0?u.default.createElement(g,{total:o.total||0,curPage:r.page?r.page-0:1,sizePerPage:o.sizePerPage||50,paginationSize:4,query:r,refresh:a}):"",this.state.viewModalShow&&u.default.createElement(h,{show:!0,close:this.viewModalClose,data:i}),this.state.editModalShow&&u.default.createElement(y,{show:!0,close:this.editModalClose,edit:C,data:i,collection:l,i18n:t}),this.state.delNotifyShow&&u.default.createElement(b,{show:!0,close:this.delNotifyClose,data:i,versions:l,del:w,i18n:t}),this.state.releaseModalShow&&u.default.createElement(v,{show:!0,loading:m,close:this.releaseModalClose,data:i,versions:l,release:P,i18n:t}))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,options:s.PropTypes.object.isRequired,collection:s.PropTypes.array.isRequired,selectedItem: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,query:s.PropTypes.object,select:s.PropTypes.func.isRequired,update:s.PropTypes.func.isRequired,release:s.PropTypes.func.isRequired,del:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=w,e.exports=t.default}).call(this)}finally{}},2028:function(e,t,r){try{(function(){"use strict";function a(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 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 l=function(){function e(e,t){for(var r=0;r0?u.default.createElement("div",{className:"info-col",style:{marginTop:"5px"}},u.default.createElement("div",{className:"info-icon"},u.default.createElement("i",{className:"fa fa-info-circle"})),u.default.createElement("div",{className:"info-content"},"该版本还有 ",u.default.createElement("span",{style:{color:"red",fontWeight:600}},a.unresolved_cnt)," 个问题未解决。")):u.default.createElement("div",{className:"info-col",style:{marginTop:"5px"}},u.default.createElement("div",{className:"info-icon"},u.default.createElement("i",{className:"fa fa-info-circle"})),u.default.createElement("div",{className:"info-content"},"该版本没有未解决的问题。")),a.unresolved_cnt>0&&u.default.createElement("div",{style:{margin:"20px 10px 10px 10px"}},u.default.createElement("div",{style:{display:"inline-block",verticalAlign:"top",fontWeight:600}},"未解决的问题"),u.default.createElement("div",{style:{display:"inline-block",marginLeft:"20px"}},u.default.createElement(c.FormGroup,null,u.default.createElement(c.Radio,{inline:!0,name:"swap",onClick:function(){e.setState({operate_flg:"1"})},checked:"1"===this.state.operate_flg},"移动至版本"),u.default.createElement("div",{style:{width:"300px",margin:"5px 5px 10px 18px"}},u.default.createElement(f.default,{simpleValue:!0,clearable:!1,disabled:"1"!==this.state.operate_flg,options:h.default.map(h.default.reject(n,{id:a.id}),function(e){return{value:e.id,label:e.name}}),value:this.state.swapVersion,onChange:function(t){e.setState({swapVersion:t})},placeholder:"选择版本"})),u.default.createElement(c.Radio,{inline:!0,name:"ignore",onClick:function(){e.setState({operate_flg:"2"})},checked:"2"===this.state.operate_flg},"忽略继续发布"))))),"released"===a.status&&u.default.createElement(c.Modal.Body,null,"该版本确认要取消发布吗?"),u.default.createElement(c.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!o&&r[this.state.ecode]),u.default.createElement("img",{src:y,className:o?"loading":"hide"}),"released"!==a.status&&u.default.createElement(c.Checkbox,{disabled:o,checked:this.state.isSendMsg,onClick:function(){e.setState({isSendMsg:!e.state.isSendMsg})},style:{display:"inline-block",marginRight:"20px",marginLeft:"10px"}},"通知项目成员"),u.default.createElement(c.Button,{onClick:this.confirm,disabled:o||"released"!==a.status&&a.unresolved_cnt>0&&"0"===this.state.operate_flg||"released"!==a.status&&"1"===this.state.operate_flg&&!this.state.swapVersion},"确定"),u.default.createElement(c.Button,{bsStyle:"link",disabled:o,onClick:this.cancel},"取消")))}}],[{key:"propTypes",value:{i18n:s.PropTypes.object.isRequired,close:s.PropTypes.func.isRequired,release:s.PropTypes.func.isRequired,versions:s.PropTypes.array.isRequired,loading:s.PropTypes.bool.isRequired,data:s.PropTypes.object.isRequired},enumerable:!0}]),t}(s.Component);t.default=v,e.exports=t.default}).call(this)}finally{}},2090:function(e,t,r){try{(function(){"use strict";function e(e,t){return(0,u.asyncFuncCreator)({constant:"VERSION_INDEX",promise:function(r){return r.request({url:"/project/"+e+"/version"+(t?"?"+t:"")})}})}function a(e,t){return(0,u.asyncFuncCreator)({constant:"VERSION_CREATE",promise:function(r){return r.request({url:"/project/"+e+"/version",method:"post",data:t})}})}function n(e,t){return(0,u.asyncFuncCreator)({constant:"VERSION_UPDATE",promise:function(r){return r.request({url:"/project/"+e+"/version/"+t.id,method:"put",data:t})}})}function o(e,t){return(0,u.asyncFuncCreator)({constant:"VERSION_RELEASE",promise:function(r){return r.request({url:"/project/"+e+"/version/"+t.id+"/release",method:"post",data:t})}})}function l(e,t){return(0,u.asyncFuncCreator)({constant:"VERSION_MERGE",source:t.source||"",dest:t.dest||"",promise:function(r){return r.request({url:"/project/"+e+"/version/merge",data:t,method:"post"})}})}function i(e){return{type:"VERSION_SELECT",id:e}}function s(e,t){return(0,u.asyncFuncCreator)({constant:"VERSION_DELETE",id:t.id,promise:function(r){return r.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=n,t.release=o,t.merge=l,t.select=i,t.del=s;var u=r(26)}).call(this)}finally{}}}); -//# sourceMappingURL=version-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=version-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/assets/webhooks-2fafc167f8a6ebfe8dae.js b/public/assets/webhooks-d133ff15592d3c829f3c.js similarity index 99% rename from public/assets/webhooks-2fafc167f8a6ebfe8dae.js rename to public/assets/webhooks-d133ff15592d3c829f3c.js index e35a8097..817167c7 100644 --- a/public/assets/webhooks-2fafc167f8a6ebfe8dae.js +++ b/public/assets/webhooks-d133ff15592d3c829f3c.js @@ -1,2 +1,2 @@ webpackJsonp([30],{19:function(e,t,n){try{(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=[{value:"Integer",label:"整数字段"},{value:"Number",label:"数值字段"},{value:"Text",label:"文本框单行"},{value:"TextArea",label:"文本框多行"},{value:"RichTextEditor",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 r={project:[{id:"view_project",name:"查看项目"},{id:"manage_project",name:"管理项目"}],issue:[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"edit_self_issue",name:"编辑自己创建的问题"},{id:"delete_issue",name:"删除问题"},{id:"delete_self_issue",name:"删除自己创建的问题"},{id:"assign_issue",name:"分配问题"},{id:"assigned_issue",name:"被分配问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reset_issue",name:"重置问题"},{id:"link_issue",name:"链接问题"},{id:"move_issue",name:"移动问题"},{id:"exec_workflow",name:"执行流程"}],comments:[{id:"add_comments",name:"添加评论"},{id:"edit_comments",name:"编辑评论"},{id:"edit_self_comments",name:"编辑自己的评论"},{id:"delete_comments",name:"删除评论"},{id:"delete_self_comments",name:"删除自己的评论"}],worklogs:[{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"},{id:"edit_self_worklog",name:"编辑自己的工作日志"},{id:"delete_worklog",name:"删除工作日志"},{id:"delete_self_worklog",name:"删除自己的工作日志"}],files:[{id:"upload_file",name:"上传附件"},{id:"download_file",name:"下载附件"},{id:"remove_file",name:"删除附件"},{id:"remove_self_file",name:"删除自己上传附件"}]};t.Permissions=r;var a=[{id:"create_issue",name:"创建问题"},{id:"edit_issue",name:"编辑问题"},{id:"del_issue",name:"删除问题"},{id:"resolve_issue",name:"解决问题"},{id:"close_issue",name:"关闭问题"},{id:"reopen_issue",name:"重新打开问题"},{id:"create_version",name:"创建版本"},{id:"edit_version",name:"编辑版本"},{id:"release_version",name:"发布版本"},{id:"merge_version",name:"合并版本"},{id:"del_version",name:"删除版本"},{id:"add_worklog",name:"添加工作日志"},{id:"edit_worklog",name:"编辑工作日志"}];t.webhookEvents=a;var l={CARD:"card",KANBAN_COLUMN:"kanban_column",KANBAN_FILTER:"kanban_filter"};t.CardTypes=l;var o=["#CCCCCC","#B3B3B3","#999999","#A4DD00","#68BC00","#006600","#73D8FF","#009CE0","#0062B1","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500"];t.PriorityRGBs=o;var i=["#CCCCCC","#B3B3B3","#999999","#808080","#666666","#FDA1FF","#FA28FF","#AB149E","#AEA1FF","#7B64FF","#653294","#73D8FF","#009CE0","#0062B1","#68CCCA","#16A5A5","#0C797D","#A4DD00","#68BC00","#006600","#DBDF00","#B0BC00","#808900","#FCDC00","#FCC400","#FB9E00","#FE9200","#E27300","#C45100","#F44E3B","#D33115","#9F0500","#4D4D4D","#333333","#000000"];t.LabelRGBs=i;var s=600;t.DetailMinWidth=s;var u=1e3;t.DetailMaxWdith=u}).call(this)}finally{}},40:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var l=Object.assign||function(e){for(var t=1;t=0),"function"==typeof r&&(a.onChange=r.bind(null,this.props.value)),i.default.createElement("input",l({},this.props,{type:"checkbox",name:t},a))}}),t.CheckboxGroup=i.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:i.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),r=a(e,["Component","name","value","onChange","children"]);return i.default.createElement(t,r,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)}})},2030:function(e,t,n){try{(function(){"use strict";function r(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 a(e){return e&&e.__esModule?e:{"default":e}}function l(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 i(e){return{actions:(0,h.bindActionCreators)(y,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxGroup=t.Checkbox=void 0;var o=Object.assign||function(e){for(var t=1;t=0),"function"==typeof a&&(i.onChange=a.bind(null,this.props.value)),l.default.createElement("input",o({},this.props,{type:"checkbox",name:t},i))}}),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),a=i(e,["Component","name","value","onChange","children"]);return l.default.createElement(t,a,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)}})},68:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var i=n(101),o=a(i);t.default=function(){function e(e,t){for(var n=0;n"+(t.length>0?t[0].id+'["'+t[0].name+'"]':"-")+";",o=function(e){var n=f.default.escape(t[e].name);return t[e].actions&&t[e].actions.length<=0?(i+=t[e].id+'["'+n+'"];',"continue"):void f.default.map(t[e].actions,function(a){f.default.map(a.results,function(o){i+=t[e].id+'["'+n+'"]',i+='--"'+f.default.escape(a.name)+"("+a.id+')"-->';var r=f.default.find(t,{id:o.step});i+=r.id+'["'+f.default.escape(r.name)+'"];'})})},r=0;r0&&"none"!==t&&(o=a));return document.body.removeChild(e),o}Object.defineProperty(t,"__esModule",{value:!0}),t.getScroll=n,t.offset=a,t.getTransformPropertyName=i;var o=void 0},297:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var i=n(101),o=a(i);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},303:function(e,t,n){function a(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var i=n(171)}catch(o){var i=n(171)}var r=/\s+/,l=Object.prototype.toString;e.exports=function(e){return new a(e)},a.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=i(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},a.prototype.remove=function(e){if("[object RegExp]"==l.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=i(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},a.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n children");return g.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 i=t.component;if(i){var o=t;return"string"==typeof i&&(o=(0,l.default)({className:t.className,style:t.style},t.componentProps)),g.default.createElement(i,o,a)}return a[0]||null}}]),t}(g.default.Component);S.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},S.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:o,onEnter:o,onLeave:o,onAppear:o};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 a=e.props;if(delete e.currentlyAnimatingKeys[t],!a.exclusive||a===e.nextProps){var o=(0,k.toArrayChildren)(i(a));e.isValidChildByKey(o,t)?"appear"===n?x.default.allowAppearCallback(a)&&(a.onAppear(t),a.onEnd(t,!0)):x.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,k.toArrayChildren)(i(n));if(e.isValidChildByKey(a,t))e.performEnter(t);else{var o=function(){x.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,k.isSameChildren)(e.state.children,a,n.showProp)?o():e.setState({children:a},o)}}}};t.default=S,e.exports=t.default},327:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(144),o=a(i),r=n(9),l=a(r),s=n(68),u=a(s),c=n(11),d=a(c),f=n(10),p=a(f),m=n(1),h=a(m),v=n(13),y=a(v),b=n(25),g=a(b),E=n(310),C=a(E),k=n(175),P=a(k),T={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.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),i=this.props,r=i.transitionName,l="object"===("undefined"==typeof r?"undefined":(0,o.default)(r));this.stop();var s=function(){n.stopper=null,t()};if((E.isCssAnimationSupported||!i.animation[e])&&r&&i[T[e]]){var u=l?r[e]:r+"-"+e,c=u+"-active";l&&r[e+"Active"]&&(c=r[e+"Active"]),this.stopper=(0,C.default)(a,{name:u,active:c},s)}else this.stopper=i.animation[e](a,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(h.default.Component);w.propTypes={children:g.default.any},t.default=w,e.exports=t.default},328:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=[];return d.default.Children.forEach(e,function(e){t.push(e)}),t}function o(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 l(e,t,n){var a=0;return e&&e.forEach(function(e){a||(a=e&&e.key===t&&!e.props[n])}),a}function s(e,t,n){var a=e.length===t.length;return a&&e.forEach(function(e,i){var o=t[i];e&&o&&(e&&!o||!e&&o?a=!1:e.key!==o.key?a=!1:n&&e.props[n]!==o.props[n]&&(a=!1))}),a}function u(e,t){var n=[],a={},i=[];return e.forEach(function(e){e&&o(t,e.key)?i.length&&(a[e.key]=i,i=[]):i.push(e)}),t.forEach(function(e){e&&a.hasOwnProperty(e.key)&&(n=n.concat(a[e.key])),n.push(e)}),n=n.concat(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=i,t.findChildInChildrenByKey=o,t.findShownChildInChildrenByKey=r,t.findHiddenChildInChildrenByKey=l,t.isSameChildren=s,t.mergeChildren=u;var c=n(1),d=a(c)},329:function(e,t,n){"use strict";function a(e){var t=e.refs,n=t.nav,a=(0,i.offset)(n),o=t.inkBar,r=t.activeTab,l=e.props.tabPosition;if(r){var s=r,u=(0,i.offset)(s),c=(0,i.getTransformPropertyName)();if("top"===l||"bottom"===l){var d=u.left-a.left;c?(o.style[c]="translate3d("+d+"px,0,0)",o.style.width=s.offsetWidth+"px",o.style.height=""):(o.style.left=d+"px",o.style.top="",o.style.bottom="",o.style.right=n.offsetWidth-d-s.offsetWidth+"px")}else{var f=u.top-a.top;c?(o.style[c]="translate3d(0,"+f+"px,0)",o.style.height=s.offsetHeight+"px",o.style.width=""):(o.style.left="",o.style.right="",o.style.top=f+"px",o.style.bottom=n.offsetHeight-f-s.offsetHeight+"px")}}o.style.display=r?"block":"none"}Object.defineProperty(t,"__esModule",{value:!0});var i=n(177);t.default={componentDidUpdate:function(){a(this)},componentDidMount:function(){a(this)}},e.exports=t.default},330: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},331:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}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 o(){}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0?(c=!1,this.setOffset(0),l=0):sl?(o+=r-l,this.setState({offset:o})):r+ir?"backward":"forward";this.setState({activeKey:e,tabMovingDirection:s})}else this.setState({activeKey:e})},render:function(){var e,t=this.props,n=t.destroyInactiveTabPane,a=t.prefixCls,o=t.tabPosition,r=t.className,l=t.animation,u=(0,b.default)((e={},i(e,a,1),i(e,a+"-"+o,1),i(e,r,!!r),e)),c=this.state.tabMovingDirection,d=this.getTabPanes(),f=void 0;f=t.transitionName&&t.transitionName[c||"backward"],!f&&l&&(f=a+"-"+l+"-"+(c||"backward")),n&&(d=d.filter(function(e){return e.props.active})),f&&(d=n?s.default.createElement(v.default,{exclusive:!0,component:"div",transitionName:f},d):s.default.createElement(v.default,{showProp:"active",exclusive:!0,component:"div",transitionName:f},d));var p=[s.default.createElement(m.default,{prefixCls:a,key:"nav",onKeyDown:this.onNavKeyDown,tabBarExtraContent:this.props.tabBarExtraContent,tabPosition:o,style:t.navStyle,onTabClick:this.onTabClick,tabMovingDirection:c,panels:this.props.children,activeKey:this.state.activeKey}),s.default.createElement("div",{className:a+"-content",style:t.contentStyle,key:"content"},d)];return"bottom"===o&&p.reverse(),s.default.createElement("div",{className:u,style:t.style},p)}});g.TabPane=f.default,t.default=g,e.exports=t.default},333: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 i=n(332),o=a(i),r=n(176),l=a(r);t.default=o.default,t.TabPane=l.default},2046:function(e,t,n){try{(function(){"use strict";function a(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 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 r=Object.assign||function(e){for(var t=1;t0&&(this.state.conditions=g.default.map(a.restrict_to.conditions.list,function(e){return e.args&&g.default.assign(t,e.args),g.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=g.default.map(a.post_functions,function(e){return e.args&&g.default.assign(t,e.args),g.default.findKey(k,{name:e.name})}))),g.default.indexOf(this.state.postFunctions,"triggerEvent")===-1&&(this.state.eventParam=""),this.handleSubmit=this.handleSubmit.bind(this),this.handleCancel=this.handleCancel.bind(this)}o(t,e),l(t,[{key:"handleSubmit",value:function(){var e=this.props,t=e.values,n=e.create,a=e.edit,i=e.close,o=e.stepData,r=(e.steps,{});r.id=t.id,r.name=t.name,r.screen=t.screen,r.results=[{step:t.destStep,status:"Finished"}];for(var l=[],s=this.state.postFunctions.length,u=0;u0?l.push({name:k[c].name,args:d,sn:k[c].sn}):l.push({name:k[c].name,sn:k[c].sn}))}}l.length>0&&(r.post_functions=g.default.map(g.default.sortBy(l,"sn"),function(e){return g.default.pick(e,["name","args"])}));for(var v=[],y=this.state.conditions.length,u=0;u0?v.push({name:C[b].name,args:E,sn:C[b].sn}):v.push({name:C[b].name,sn:C[b].sn}))}}if(v.length>0){var P=g.default.map(g.default.sortBy(v,"sn"),function(e){return g.default.pick(e,["name","args"])});r.restrict_to={conditions:{type:this.state.relation?this.state.relation:"and",list:P}}}t.id?a(o.id,r):n(o.id,r),i()}},{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={};g.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,i=n.name,o=n.destStep,l=n.screen,s=t.options,u=t.steps,d=t.stepData,p=t.handleSubmit,b=t.invalid,C=t.submitting,k=t.data,P=g.default.map(g.default.filter(u,function(e){return d.id!==e.id}),function(e){return{label:e.name,value:e.id}}),T=g.default.map(s.screens,function(e){return{label:e.name,value:e.id}}),w=[{label:"全部满足",value:"and"},{label:"满足任何一个即可",value:"or"}],x=[{id:"assignee",name:"负责人"},{id:"reporter",name:"报告人"},{id:"principal",name:"项目负责人"}],O=[{id:"me",name:"当前用户"},{id:"reporter",name:"报告人"},{id:"principal",name:"项目负责人"}],S=(s.users||[]).sort(function(e,t){return e.email.localeCompare(t.email)}),_=s.events||[],j=s.states||[],A=[];g.default.forEach(E.Permissions,function(e){A=A.concat(e)});var M=s.roles||[],N=s.resolutions||[],F={width:"125px",height:"25px",verticalAlign:"middle",marginLeft:"10px",backgroundColor:"#ffffff",borderRadius:"4px"},R={width:"125px",height:"25px",verticalAlign:"middle",marginLeft:"10px",backgroundColor:"#f5f5f5",borderRadius:"4px"};return c.default.createElement(f.Modal,{show:!0,onHide:this.handleCancel,backdrop:"static","aria-labelledby":"contained-modal-title-sm"},c.default.createElement(f.Modal.Header,{closeButton:!0,style:{background:"#f0f0f0",height:"50px"}},c.default.createElement(f.Modal.Title,{id:"contained-modal-title-la"},k.id?"编辑查看动作 - "+k.name:"添加动作"," ")),c.default.createElement("form",{onSubmit:p(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(f.Modal.Body,{style:{height:"420px"}},c.default.createElement(f.FormControl,r({type:"hidden"},a)),c.default.createElement(v.default,{activeKey:this.state.activeKey,onChange:this.onTabChange.bind(this)},c.default.createElement(h.TabPane,{tab:"基本",key:"1"},c.default.createElement("div",{style:{paddingTop:"15px"}},c.default.createElement(f.FormGroup,{controlId:"formControlsText"},c.default.createElement(f.ControlLabel,null,"起始步骤"),c.default.createElement(f.FormControl,{type:"text",value:d.name,disabled:!0})),c.default.createElement(f.FormGroup,{controlId:"formControlsText",validationState:i.touched&&i.error?"error":null},c.default.createElement(f.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"动作名"),c.default.createElement(f.FormControl,r({disabled:C,type:"text"},i,{placeholder:"动作名"})),i.touched&&i.error&&c.default.createElement(f.HelpBlock,{style:{"float":"right"}},i.error)),c.default.createElement(f.FormGroup,{controlId:"formControlsText"},c.default.createElement(f.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"目标步骤"),c.default.createElement(m.default,{disabled:C,options:P,simpleValue:!0,value:o.value,onChange:function(e){o.onChange(e)},placeholder:"请选择目标步骤",clearable:!1,searchable:!1})),c.default.createElement(f.FormGroup,{controlId:"formControlsText"},c.default.createElement(f.ControlLabel,null,"动作界面"),c.default.createElement(m.default,{disabled:C,options:T,simpleValue:!0,value:l.value||null,onChange:function(e){l.onChange(e)},placeholder:"无界面",searchable:!1})))),c.default.createElement(h.TabPane,{tab:"触发条件",key:"2"},c.default.createElement("div",{style:{paddingTop:"15px",paddingBottom:"20px",paddingLeft:"5px"}},c.default.createElement(m.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:!(g.default.indexOf(this.state.conditions,"isSome")!==-1&&!C),style:g.default.indexOf(this.state.conditions,"isSome")!==-1?F:R},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("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:!(g.default.indexOf(this.state.conditions,"isTheUser")!==-1&&!C),style:g.default.indexOf(this.state.conditions,"isTheUser")!==-1?F:R},c.default.createElement("option",{value:"",key:""},"请选择用户"),S.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:!(g.default.indexOf(this.state.conditions,"checkSubTasksState")!==-1&&!C),style:g.default.indexOf(this.state.conditions,"checkSubTasksState")!==-1?F:R},c.default.createElement("option",{value:"",key:""},"请选择状态"),j.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:!(g.default.indexOf(this.state.conditions,"hasPermission")!==-1&&!C),style:g.default.indexOf(this.state.conditions,"hasPermission")!==-1?F:R},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:"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:!(g.default.indexOf(this.state.conditions,"belongsToRole")!==-1&&!C),style:g.default.indexOf(this.state.conditions,"belongsToRole")!==-1?F:R},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("span",null,"的成员才能执行此动作"))))),c.default.createElement(h.TabPane,{tab:"结果处理",key:"3"},c.default.createElement("div",{style:{paddingTop:"15px",paddingBottom:"20px",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:!(g.default.indexOf(this.state.postFunctions,"setResolution")!==-1&&!C),style:g.default.indexOf(this.state.postFunctions,"setResolution")!==-1?F:R},c.default.createElement("option",{value:"",key:""},"请选择结果值"),N.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:!(g.default.indexOf(this.state.postFunctions,"assignIssue")!==-1&&!C),style:g.default.indexOf(this.state.postFunctions,"assignIssue")!==-1?F:R},c.default.createElement("option",{value:"",key:""},"请选择负责人"),O.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:!(g.default.indexOf(this.state.postFunctions,"assignIssueToUser")!==-1&&!C),style:g.default.indexOf(this.state.postFunctions,"assignIssueToUser")!==-1?F:R},c.default.createElement("option",{value:"",key:""},"请选择用户"),S.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",disabled:g.default.indexOf(this.state.postFunctions,"triggerEvent")!==-1}),c.default.createElement("span",null,"过程结束后触发"),c.default.createElement("select",{value:this.state.eventParam,onChange:function(t){return e.setState({eventParam:t.target.value})},disabled:g.default.indexOf(this.state.postFunctions,"triggerEvent")===-1,style:g.default.indexOf(this.state.postFunctions,"triggerEvent")!==-1?F:R},_.map(function(e){return c.default.createElement("option",{value:e.id,key:e.id},e.name)})),c.default.createElement("span",null,"通知事件"))))))),c.default.createElement(f.Modal.Footer,null,c.default.createElement(f.Button,{disabled:C||b,type:"submit"},"确定"),c.default.createElement(f.Button,{bsStyle:"link",disabled:C,onClick:this.handleCancel},"取消"))))}}],[{key:"propTypes",value:{options:u.PropTypes.object,data:u.PropTypes.object,stepData:u.PropTypes.object,steps:u.PropTypes.array,submitting:u.PropTypes.bool,invalid:u.PropTypes.bool,values:u.PropTypes.object,fields:u.PropTypes.object,initializeForm:u.PropTypes.func.isRequired,handleSubmit:u.PropTypes.func.isRequired,close:u.PropTypes.func.isRequired,create:u.PropTypes.func.isRequired,edit:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"wfconfig",fields:["id","name","destStep","screen"],validate:P})(t)||t}(u.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},2047: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 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 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 l(e){return{actions:(0,m.bindActionCreators)(v,e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=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,i;return regeneratorRuntime.async(function(o){for(;;)switch(o.prev=o.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:"Finished"}]},o.next=6,regeneratorRuntime.awrap(n({contents:{initial_action:a,steps:t}}));case 6:i=o.sent,0===i?m.notify.show("保存成功。","success",2e3):m.notify.show("保存失败,请重试。","error",2e3);case 8:case"end":return o.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),i=t!=e.collection2JSON;this.setState({isChanged:i}),a(i)}},{key:"render",value:function(){var e=this,t=this.props,n=t.createStep,a=t.options,i=t.pathname,o=t.collection,r=(t.collection2JSON,t.workflowName),l=t.saveLoading;return u.default.createElement("div",null,this.state.isChanged&&o.length>0&&u.default.createElement("div",{className:"workflow-config-notice"},u.default.createElement("span",null,u.default.createElement("i",{className:"fa fa-exclamation-triangle"}),"  配置已修改,需保存后才能生效。"),u.default.createElement(c.Button,{onClick:this.saveConfig.bind(this),disabled:l},u.default.createElement("i",{className:"fa fa-save"})," 保存"),u.default.createElement(c.Button,{bsStyle:"link",onClick:this.cancelConfig.bind(this)},"取消修改"),u.default.createElement("img",{src:b,className:l?"loading":"hide"})),u.default.createElement("div",{style:{marginTop:"5px"}},u.default.createElement(d.Link,{to:i.substr(0,i.lastIndexOf("/"))},u.default.createElement(c.Button,{className:"create-btn"},u.default.createElement("i",{className:"fa fa-reply"})," 返回")),u.default.createElement(c.Button,{className:"create-btn",onClick:function(){e.setState({previewModalShow:!0})},disabled:o.length<=0},u.default.createElement("i",{className:"fa fa-search-plus"})," 预览"),u.default.createElement(c.Button,{className:"create-btn",onClick:function(){e.setState({createStepModalShow:!0})}},u.default.createElement("i",{className:"fa fa-plus"})," 新建步骤"),u.default.createElement("span",{style:{"float":"right",marginTop:"20px",marginRight:"10px",fontWeight:"bold"}},r),u.default.createElement("span",{style:{"float":"right",marginTop:"20px"}},"工作流名称:")),u.default.createElement("div",{className:"info-col"},u.default.createElement("div",{className:"info-icon"},u.default.createElement("i",{className:"fa fa-info-circle"})),u.default.createElement("div",{className:"info-content"},"配置工作流时应先新建工作流步骤,然后再添加相关的动作。",u.default.createElement("br",null),"每一步骤相关联的状态在状态模块中定义。")),this.state.createStepModalShow&&u.default.createElement(h,{show:!0,close:this.createStepModalClose,create:n,options:a,collection:o}),this.state.saveNotifyShow&&u.default.createElement(v,{show:!0,close:this.saveNotifyClose,save:this.save}),this.state.cancelNotifyShow&&u.default.createElement(v,{show:!0,close:this.cancelNotifyClose,cancel:this.cancel}),this.state.previewModalShow&&u.default.createElement(y,{show:!0,close:this.previewModalClose,collection:o,name:r}))}}],[{key:"propTypes",value:{pathname:s.PropTypes.string.isRequired,workflowName:s.PropTypes.string,ecode:s.PropTypes.number.isRequired,collection:s.PropTypes.array.isRequired,collection2JSON:s.PropTypes.string.isRequired,saveLoading:s.PropTypes.bool.isRequired,options:s.PropTypes.object.isRequired,setConfigChanged:s.PropTypes.func.isRequired,save:s.PropTypes.func.isRequired,cancel:s.PropTypes.func.isRequired,createStep:s.PropTypes.func.isRequired},enumerable:!0}]),t}(s.Component);t.default=g,e.exports=t.default}).call(this)}finally{}},2049:function(e,t,n){try{(function(){"use strict";function a(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 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 r=function(){function e(e,t){for(var n=0;n>"," "+p.default.find(n,{id:e.step}).name)}))})),operation:u.default.createElement("div",null,u.default.createElement(d.Button,{bsStyle:"link",onClick:e.addAction.bind(e,n[t].id)},"添加动作"),u.default.createElement(d.Button,{bsStyle:"link",onClick:e.delAction.bind(e,n[t].id)},"删除动作"),u.default.createElement(d.Button,{bsStyle:"link",onClick:e.showStep.bind(e,n[t].id)},"编辑"),0===n[t].actions.length&&1!==n[t].id&&p.default.indexOf(P,n[t].id)===-1&&u.default.createElement(d.Button,{bsStyle:"link",onClick:e.delStepNotify.bind(e,n[t].id)},"删除"))})},w=0;w0&&y.default.map(i.data,function(e){o.push({id:e.id,name:e.name})}),a.abrupt("return",{options:o});case 12:case"end":return a.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=n.name,i=n.dest_path,o=e.handleSubmit,s=e.invalid,l=e.submitting,u=e.data;return c.default.createElement(p.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,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"},"复制",1===u.d?"目录":"文档"," - ",u.name)),c.default.createElement("form",{onSubmit:o(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},c.default.createElement(p.Modal.Body,null,c.default.createElement(p.FormGroup,{controlId:"formControlsText",validationState:r.touched&&r.error?"error":null},c.default.createElement(p.ControlLabel,null,c.default.createElement("span",{className:"txt-impt"},"*"),"名称"),c.default.createElement(p.FormControl,a({disabled:l,type:"text"},r,{placeholder:"名称"})),r.touched&&r.error&&c.default.createElement(p.HelpBlock,{style:{"float":"right"}},r.error)),c.default.createElement(p.FormGroup,{controlId:"formControlsText"},c.default.createElement(p.ControlLabel,null,"复制到"),c.default.createElement(h.default.Async,{clearable:!1,disabled:l,options:[],value:i.value,onChange:function(e){i.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称(默认当前路径)"}))),c.default.createElement(p.Modal.Footer,null,c.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!l&&t[this.state.ecode]),c.default.createElement("img",{src:k,className:l?"loading":"hide"}),c.default.createElement(p.Button,{disabled:l||s,type:"submit"},"确定"),c.default.createElement(p.Button,{bsStyle:"link",disabled:l,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,curPath:u.PropTypes.string.isRequired,copy:u.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,d.reduxForm)({form:"copy_wiki",fields:["name","dest_path"],validate:x})(t)||t}(u.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},2036:function(e,t,n){try{(function(){"use strict";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 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 a=function(){function e(e,t){for(var n=0;n0)for(var n=e.children.length,r=0;r/gi),r=[];return n&&g.default.forEach(n,function(e,n){var i=new RegExp('^$');if(i.exec(e)){var o=RegExp.$1;if(!o)return;t=t.replace(e,''),r.push(o)}}),{html:t,imgFileUrls:r}}},{key:"createLightbox",value:function(e,t){var n=this;return u.default.createElement(b.default,{mainSrc:e[t],nextSrc:e[(t+1)%e.length],prevSrc:e[(t+e.length-1)%e.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){n.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return n.setState({photoIndex:(t+e.length-1)%e.length})},onMoveNextRequest:function(){return n.setState({photoIndex:(t+1)%e.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n=-1;0===t.indexOf("inlineimg-")&&(n=t.substr(t.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:n}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.project,i=t.directory,o=t.collection,a=t.selectedItem,s=t.loading,l=t.indexLoading,f=t.itemLoading,m=(t.reload,t.checkin,t.checkout),y=t.goto,v=t.create,b=t.del,w=t.update,j=t.copy,T=t.move,M=t.options,R=t.user,F=t.query,A=t.directoryShow,I=t.toggleDirectory,L=this.state,N=L.inlinePreviewShow,D=L.photoIndex,q=L.createFolderShow,B=L.searchShow,z=L.editRowId,W=L.hoverRowId,H=L.operateShow,V=[{value:"1w",label:"1周内"},{value:"2w",label:"2周内"},{value:"1m",label:"1个月内"},{value:"2m",label:"2个月内"}],U=[{value:"create_time_asc",label:"创建时间 ↑"},{value:"create_time_desc",label:"创建时间 ↓"},{value:"update_time_asc",label:"更新时间 ↑"},{value:"update_time_desc",label:"更新时间 ↓"},{value:"name_asc",label:"名称 ↑"},{value:"name_desc",label:"名称 ↓"}],Y="",G="",Z=[];if(M.home&&M.home.contents){x.setOptions({breaks:!0});var K=this.extractImg(x(M.home.contents||"")),X=K.html,Q=K.imgFileUrls;Y=X,Z=Q,G=u.default.createElement("span",{style:{fontWeight:400,fontSize:"14px"}},u.default.createElement("span",{style:{"float":"left",backgroundColor:"#777",marginTop:"8px",marginRight:"8px",width:"4px",height:"4px",borderRadius:"8px"}}),u.default.createElement("span",null,u.default.createElement(c.Link,{to:"/project/"+r.key+"/wiki/root/"+M.home.id},M.home.name)),u.default.createElement("span",{style:{"float":"right",fontWeight:400,fontSize:"14px"}},"最近修改:",M.home.editor&&M.home.editor.name?M.home.editor.name:M.home.creator&&M.home.creator.name||"","于 ",M.home.updated_at?k.unix(M.home.updated_at).format("YYYY/MM/DD HH:mm"):k.unix(M.home.created_at).format("YYYY/MM/DD HH:mm")))}var $=u.default.createElement("span",null,u.default.createElement("i",{className:"fa fa-cog"})),J=[];if(!l&&M.path&&M.path.length>1&&g.default.isEmpty(F)){var ee=M.path[M.path.length-2];J.push({id:ee.id,name:u.default.createElement("div",null,u.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},u.default.createElement("i",{className:"fa fa-arrow-up"})),u.default.createElement(c.Link,{to:"/project/"+r.key+"/wiki"+("0"!==ee.id?"/"+ee.id:"")},"返回上级")),operation:u.default.createElement("div",null)})}q&&J.push({id:"createFolder",name:u.default.createElement(O,{i18n:n,loading:s,data:{},create:v,collection:o,cancel:this.cancelEditRow}),operation:u.default.createElement("div",null)});var te=g.default.filter(o,{d:1});g.default.map(te,function(t,i){return z==t.id?void J.push({id:t.id,name:u.default.createElement(O,{i18n:n,loading:s,data:a,collection:o,edit:w,cancel:e.cancelEditRow}),operation:u.default.createElement("div",null)}):void J.push({id:t.id,name:u.default.createElement("div",null,u.default.createElement("span",{style:{marginRight:"5px",color:"#FFD300"}},u.default.createElement("i",{className:"fa fa-folder"})),u.default.createElement(c.Link,{to:"/project/"+r.key+"/wiki/"+t.id},t.name),t.favorited&&u.default.createElement("span",{title:"点击取消收藏",style:{"float":"right",color:"#FFD300",cursor:"pointer",marginRight:"15px"},onClick:function(n){e.favorite(t.id)}},u.default.createElement("i",{className:"fa fa-star"}))),operation:u.default.createElement("div",null,H&&"active"==r.status&&W===t.id&&!f&&u.default.createElement(p.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:i,title:$,id:"dropdown-basic-"+i,onClick:e.cancelEditRow,onSelect:e.operateSelect.bind(e)},u.default.createElement(p.MenuItem,{eventKey:"favorite"},t.favorited?"取消收藏":"收藏"),M.permissions&&M.permissions.indexOf("manage_project")!==-1&&u.default.createElement(p.MenuItem,{eventKey:"rename"},"重命名"),M.permissions&&M.permissions.indexOf("manage_project")!==-1&&u.default.createElement(p.MenuItem,{eventKey:"move"},"移动"),M.permissions&&M.permissions.indexOf("manage_project")!==-1&&u.default.createElement(p.MenuItem,{eventKey:"del"},"删除")),u.default.createElement("img",{src:P,className:f&&a.id===t.id?"loading":"hide"}))})});for(var ne=g.default.reject(o,{d:1}),re=ne.length,ie=function(t){J.push({id:ne[t].id,name:u.default.createElement("div",null,u.default.createElement("span",{style:{"float":"left",backgroundColor:"#777",marginTop:"8px",marginRight:"8px",marginLeft:"5px",width:"4px",height:"4px",borderRadius:"8px"}}),u.default.createElement(c.Link,{to:"/project/"+r.key+"/wiki/"+("0"==ne[t].parent?"root":ne[t].parent)+"/"+ne[t].id},ne[t].name),!g.default.isEmpty(ne[t].attachments)&&u.default.createElement("span",{style:{marginLeft:"8px"},title:ne[t].attachments.length+"个附件"},u.default.createElement("i",{className:"fa fa-paperclip fa-rotate-90"})),!g.default.isEmpty(ne[t].checkin)&&u.default.createElement("span",{style:{marginLeft:"8px",color:"#f0ad4e"},title:"该文档被"+(ne[t].checkin.user?ne[t].checkin.user.id==R.id?"我":ne[t].checkin.user.name||"":"")+"于 "+(ne[t].checkin.at?k.unix(ne[t].checkin.at).format("YYYY/MM/DD HH:mm"):"")+" 锁定。"},u.default.createElement("i",{className:"fa fa-lock"})),u.default.createElement("span",{style:{"float":"right"}},ne[t].parent!=i&&u.default.createElement(c.Link,{to:"/project/"+r.key+"/wiki"+("0"==ne[t].parent?"":"/"+ne[t].parent)},u.default.createElement("span",{style:{marginRight:"15px","float":"left"}},"打开目录")),ne[t].favorited&&u.default.createElement("span",{title:"点击取消收藏",style:{"float":"left",color:"#FFD300",cursor:"pointer",marginRight:"15px"},onClick:function(n){e.favorite(ne[t].id)}},u.default.createElement("i",{className:"fa fa-star"})),ne[t].creator&&u.default.createElement("span",{style:{marginRight:"15px","float":"left"}},ne[t].creator.name+" "+k.unix(ne[t].created_at).format("YYYY/MM/DD HH:mm")))),operation:u.default.createElement("div",null,H&&"active"==r.status&&W===ne[t].id&&!f&&(!(!g.default.isEmpty(ne[t].checkin)&&ne[t].checkin.user.id!==R.id)||M.permissions&&M.permissions.indexOf("manage_project")!==-1)&&u.default.createElement(p.DropdownButton,{pullRight:!0,bsStyle:"link",style:{textDecoration:"blink",color:"#000"},key:t,title:$,id:"dropdown-basic-"+t,onClick:e.cancelEditRow,onSelect:e.operateSelect.bind(e)},u.default.createElement(p.MenuItem,{eventKey:"edit"},"编辑"),u.default.createElement(p.MenuItem,{eventKey:"favorite"},ne[t].favorited?"取消收藏":"收藏"),g.default.isEmpty(ne[t].checkin)&&u.default.createElement(p.MenuItem,{eventKey:"checkin"},"加锁"),!g.default.isEmpty(ne[t].checkin)&&(ne[t].checkin.user.id==R.id||M.permissions&&M.permissions.indexOf("manage_project")!==-1)&&u.default.createElement(p.MenuItem,{eventKey:"checkout"},"解锁"),u.default.createElement(p.MenuItem,{eventKey:"copy"},"复制"),u.default.createElement(p.MenuItem,{eventKey:"move"},"移动"),u.default.createElement(p.MenuItem,{eventKey:"del"},"删除")),u.default.createElement("img",{src:P,className:f&&a.id===ne[t].id?"loading":"hide"}))})},oe=0;oe0&&m.default.map(a.data,function(e){e.id!==r.parent&&s.push({id:e.id,name:e.name})}),l.abrupt("return",{options:s});case 14:case"end":return l.stop()}},null,this)}},{key:"render",value:function(){var e=this.props,t=e.i18n.errMsg,n=e.fields,r=(n.id,n.dest_path),i=e.handleSubmit,o=e.invalid,a=e.submitting,s=e.data;return u.default.createElement(d.Modal,{show:!0,bsSize:"large",onHide:this.handleCancel,onEntered:this.handleEntry,backdrop:"static","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"},"移动",1===s.d?"目录":"文档"," - ",s.name)),u.default.createElement("form",{onSubmit:i(this.handleSubmit),onKeyDown:function(e){13==e.keyCode&&e.preventDefault()}},u.default.createElement(d.Modal.Body,null,u.default.createElement(d.FormGroup,{validationState:r.touched&&r.error?"error":null},u.default.createElement(d.ControlLabel,null,u.default.createElement("span",{className:"txt-impt"},"*"),"移动到"),u.default.createElement(f.default.Async,{clearable:!1,disabled:a,options:[],value:r.value,onChange:function(e){r.onChange(e)},valueKey:"id",labelKey:"name",loadOptions:this.searchPath.bind(this),placeholder:"输入路径名称"}),r.touched&&r.error&&u.default.createElement(d.HelpBlock,{style:{"float":"right"}},r.error))),u.default.createElement(d.Modal.Footer,null,u.default.createElement("span",{className:"ralign"},0!==this.state.ecode&&!a&&t[this.state.ecode]),u.default.createElement("img",{src:w,className:a?"loading":"hide"}),u.default.createElement(d.Button,{disabled:a||o,type:"submit"},"确定"),u.default.createElement(d.Button,{bsStyle:"link",disabled:a,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,move:l.PropTypes.func.isRequired},enumerable:!0}]);var n=t;return t=(0,c.reduxForm)({form:"move_wiki",fields:["id","dest_path"],validate:k})(t)||t}(l.Component);t.default=x,e.exports=t.default}).call(this)}finally{}},2044:function(e,t,n){try{(function(){"use strict";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 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 a=function(){function e(e,t){for(var n=0;n/gi),r=[];return n&&y.default.forEach(n,function(e,n){var i=new RegExp('^$');if(i.exec(e)){var o=RegExp.$1;if(!o)return;t=t.replace(e,''),r.push(o)}}),{html:t,imgFileUrls:r}}},{key:"createLightbox",value:function(e,t){var n=this;return u.default.createElement(v.default,{mainSrc:e[t],nextSrc:e[(t+1)%e.length],prevSrc:e[(t+e.length-1)%e.length],imageTitle:"",imageCaption:"",onCloseRequest:function(){n.setState({inlinePreviewShow:!1})},onMovePrevRequest:function(){return n.setState({photoIndex:(t+e.length-1)%e.length})},onMoveNextRequest:function(){return n.setState({photoIndex:(t+1)%e.length})}})}},{key:"previewInlineImg",value:function(e){var t=e.target.id;if(t){var n=-1;0===t.indexOf("inlineimg-")&&(n=t.substr(t.lastIndexOf("-")+1)-0,this.setState({inlinePreviewShow:!0,photoIndex:n}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.i18n,r=t.options,i=t.user,o=t.project,a=t.loading,s=t.itemDetailLoading,l=t.itemLoading,c=t.item,f=t.wid,m=t.update,g=t.del,v=t.delFile,T=t.checkin,M=t.checkout,R=t.show,F=t.reload,A=t.directoryShow,I=t.toggleDirectory;if(!s&&y.default.isEmpty(c))return u.default.createElement("div",null);var L={showFiletypeIcon:!0,postUrl:j+"/project/"+o.key+"/wiki/"+c.id+"/upload"},N={dictDefaultMessage:"点击或拖拽文件至此",addRemoveLinks:!0},D={init:function(t){return e.dropzone=t; },success:function(t,n){e.uploadSuccess(t,n),e.dropzone.removeFile(t)},error:function(t){b.notify.show("文档上传失败。","error",2e3),e.dropzone.removeFile(t)}};_.setOptions({breaks:!0});var q=this.extractImg(_(c.contents||"")),B=q.html,z=q.imgFileUrls,W=!0;c.versions&&c.version1&&u.default.createElement("span",{style:{color:"#707070"}},"共 ",u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({versionViewShow:!0})}},c.versions.length)," 个版本。"),c.checkin&&!y.default.isEmpty(c.checkin)&&u.default.createElement("span",{style:{marginLeft:"8px",color:"#f0ad4e"}},u.default.createElement("i",{className:"fa fa-lock"})," 该文档被",c.checkin.user?c.checkin.user.id==i.id?"我":c.checkin.user.name||"":"","于 ",c.checkin.at?k.unix(c.checkin.at).format("YYYY/MM/DD HH:mm"):""," 锁定。"),!l||"checkin"!=this.state.operate&&"checkout"!=this.state.operate?u.default.createElement("span",null,!y.default.isEmpty(c.checkin)&&(c.checkin.user&&c.checkin.user.id===i.id||r.permissions&&r.permissions.indexOf("manage_project")!==-1)&&u.default.createElement("span",{style:{marginLeft:"8px"}},u.default.createElement("a",{href:"#",title:"解锁",onClick:function(t){t.preventDefault(),e.checkout()}},u.default.createElement("i",{className:"fa fa-unlock"}))),y.default.isEmpty(c.checkin)&&u.default.createElement("span",{style:{marginLeft:"8px"}},u.default.createElement("a",{href:"#",title:"锁定",onClick:function(t){t.preventDefault(),e.checkin()}},u.default.createElement("i",{className:"fa fa-lock"}))),u.default.createElement("span",{style:{marginLeft:"8px"}},u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.refresh()},title:W?"刷新":"最新版"},u.default.createElement("i",{className:"fa fa-refresh"})))):u.default.createElement("span",null,u.default.createElement("img",{src:x,className:"loading",style:{width:"13px",height:"13px"}})),c.favorited?u.default.createElement("span",{style:{marginLeft:"10px",cursor:"pointer",color:"#FFD300"},title:"点击取消收藏",onClick:this.favorite.bind(this)},u.default.createElement("i",{className:"fa fa-star"})):u.default.createElement("span",{style:{marginLeft:"10px",cursor:"pointer"},title:"点击收藏",onClick:this.favorite.bind(this)},u.default.createElement("i",{className:"fa fa-star-o"}))),u.default.createElement("div",{style:{marginTop:"15px",marginBottom:"20px",paddingLeft:"5px"}},c.id&&B&&u.default.createElement("div",{id:"wiki-contents",className:"markdown-body",onClick:this.previewInlineImg,dangerouslySetInnerHTML:{__html:B}}),this.state.inlinePreviewShow&&this.createLightbox(z,this.state.photoIndex),c.id&&!B&&u.default.createElement("div",{style:{height:"200px",textAlign:"center"}},u.default.createElement("div",{style:{paddingTop:"80px",color:"#999"}},"暂无内容"))),c.id&&c.attachments&&c.attachments.length>0&&u.default.createElement("div",{style:{marginBottom:"5px"}},u.default.createElement("div",{style:{marginLeft:"2px",marginBottom:"5px",fontWeight:600}},"附件:"),u.default.createElement(p.Table,{id:"attachmentlist",condensed:!0,hover:!0,responsive:!0,style:{borderBottom:"1px solid #ddd"}},u.default.createElement("tbody",null,y.default.map(c.attachments,function(t,n){return u.default.createElement("tr",{key:n},u.default.createElement("td",null,u.default.createElement("span",{style:{marginRight:"5px",color:"#777"}},u.default.createElement("i",{className:(0,w.getFileIconCss)(t.name)})),u.default.createElement("a",{href:j+"/project/"+o.key+"/wiki/"+f+"/file/"+t.id+"/download",download:t.name},t.name)),u.default.createElement("td",{width:"10%"},u.default.createElement("div",{style:{whiteSpace:"nowrap"}},t.uploader.name+" "+k.unix(t.uploaded_at).format("YYYY/MM/DD HH:mm"))),(r.permissions&&r.permissions.indexOf("manage_project")!==-1||i.id===t.uploader.id)&&u.default.createElement("td",{width:"2%"},u.default.createElement("span",{className:"remove-icon",onClick:e.delFileNotify.bind(e,t.id,t.name)},u.default.createElement("i",{className:"fa fa-trash"}))))})))),c.id&&"active"==o.status&&u.default.createElement("div",{style:{marginTop:"0px"}},u.default.createElement(h.default,{style:{height:"200px"},config:L,eventHandlers:D,djsConfig:N})),c.attachments&&c.attachments.length>1&&u.default.createElement("div",{style:{marginLeft:"5px",marginTop:"10px"}},u.default.createElement("i",{className:"fa fa-download"}),u.default.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.downloadAll()}},"下载全部")),u.default.createElement("div",{style:{marginBottom:"40px"}}),this.state.delNotifyShow&&u.default.createElement(S,{show:!0,close:this.delNotifyClose.bind(this),data:c,reload:F,del:g}),this.state.checkoutNotifyShow&&u.default.createElement(E,{show:!0,close:this.checkoutNotifyClose.bind(this),data:c,checkout:M}),this.state.versionViewShow&&u.default.createElement(P,{show:!0,close:this.versionViewClose.bind(this),select:this.selectVersion.bind(this),versions:c.versions||[]}),this.state.editModalShow&&u.default.createElement(O,{i18n:n,show:!0,user:i,checkin:T,get:R,close:this.editModalClose.bind(this),path:r.path||[],itemLoading:l,loading:a,wid:f,data:c,update:m}),this.state.delFileShow&&u.default.createElement(C,{show:!0,close:this.delFileModalClose,del:v,data:this.state.selectedFile,loading:a,wid:f,i18n:n}))}}],[{key:"propTypes",value:{i18n:l.PropTypes.object.isRequired,options:l.PropTypes.object.isRequired,user:l.PropTypes.object.isRequired,project:l.PropTypes.object.isRequired,wid:l.PropTypes.string.isRequired,loading:l.PropTypes.bool.isRequired,itemLoading:l.PropTypes.bool.isRequired,itemDetailLoading:l.PropTypes.bool.isRequired,item:l.PropTypes.object.isRequired,"goto":l.PropTypes.func.isRequired,show:l.PropTypes.func.isRequired,checkin:l.PropTypes.func.isRequired,checkout:l.PropTypes.func.isRequired,update:l.PropTypes.func.isRequired,del:l.PropTypes.func.isRequired,delFile:l.PropTypes.func.isRequired,addAttachment:l.PropTypes.func.isRequired,reload:l.PropTypes.func.isRequired,directoryShow:l.PropTypes.bool.isRequired,toggleDirectory:l.PropTypes.func.isRequired,favorite:l.PropTypes.func.isRequired},enumerable:!0}]),t}(l.Component);t.default=T,e.exports=t.default}).call(this)}finally{}},2045:function(e,t,n){try{(function(){"use strict";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 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 a=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{}},2061: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-2fafc167f8a6ebfe8dae.js.map \ No newline at end of file +//# sourceMappingURL=workflow-d133ff15592d3c829f3c.js.map \ No newline at end of file diff --git a/public/scripts/app.js b/public/scripts/app.js index 498f5b4a..91d2db4c 100644 --- a/public/scripts/app.js +++ b/public/scripts/app.js @@ -18,14 +18,14 @@ has:function(e,t){return t in e}})},function(e,t,n){var r=n(15),o=n(53),a=Object },function(e,t,n){t=e.exports=n(63)(),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,n){t=e.exports=n(63)(),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,n){t=e.exports=n(63)(),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,n){t=e.exports=n(63)(),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,n){t=e.exports=n(63)(),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,n){t=e.exports=n(63)(),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,n){t=e.exports=n(63)(),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,n){function r(){return t.colors[u++%t.colors.length]}function o(e){function n(){}function o(){var e=o,n=+new Date,a=n-(c||n);e.diff=a,e.prev=c,e.curr=n,c=n,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=r());var i=Array.prototype.slice.call(arguments);i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&(i=["%o"].concat(i));var s=0;i[0]=i[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;s++;var o=t.formatters[r];if("function"==typeof o){var a=i[s];n=o.call(e,a),i.splice(s,1),s--}return n}),"function"==typeof t.formatArgs&&(i=t.formatArgs.apply(e,i));var l=o.log||t.log||void 0;l.apply(e,i)}n.enabled=!1,o.enabled=!0;var a=t.enabled(e)?o:n;return a.namespace=e,a}function a(e){t.save(e);for(var n=(e||"").split(/[\s,]+/),r=n.length,o=0;o=0&&t=0&&g=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return function(){function t(e){return y&&null==e.basename&&(0===e.pathname.indexOf(y)?(e.pathname=e.pathname.substring(y.length),e.basename=y,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!y)return e;"string"==typeof e&&(e=f.default(e));var t=e.pathname,n="/"===y.slice(-1)?y:y+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return i({},e,{pathname:o})}function r(e){return x.listenBefore(function(n,r){c.default(e,t(n),r)})}function a(e){return x.listen(function(n){e(t(n))})}function l(e){x.push(n(e))}function u(e){x.replace(n(e))}function p(e){return x.createPath(n(e))}function m(e){return x.createHref(n(e))}function g(){return t(x.createLocation.apply(x,arguments))}function b(e,t){"string"==typeof t&&(t=f.default(t)),l(i({state:e},t))}function _(e,t){"string"==typeof t&&(t=f.default(t)),u(i({state:e},t))}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],y=v.basename,E=o(v,["basename"]),x=e(E);if(null==y&&s.canUseDOM){var w=document.getElementsByTagName("base")[0];w&&(y=d.default(w.href))}return i({},x,{listenBefore:r,listen:a,push:l,replace:u,createPath:p,createHref:m,createLocation:g,pushState:h.default(b,"pushState is deprecated; use push instead"),replaceState:h.default(_,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;tt&&(Ke=0,Ge={line:1,column:1,seenCR:!1}),n(Ge,Ke,t),Ke=t),Ge}function r(e){Beqe&&(qe=Be,Je=[]),Je.push(e))}function o(r,o,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],o=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+o+" found."}var l=n(a),c=a1?arguments[1]:{},C={},A={start:a},O=a,I=function(e){return{type:"messageFormatPattern",elements:e}},Y=C,N=function(e){var t,n,r,o,a,i="";for(t=0,r=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(s,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: "'+s.join('", "')+'"')},r.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(r.defaultLocale);var t,n,o,a,i=r.__localeData__;for(t=0,n=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+l.join('", "')+'"')},r.prototype._selectUnits=function(e){var t,n,o;for(t=0,n=s.length;t1&&(t.sort(),e=e.replace(RegExp("(?:"+V.expExtSequences.source+")+","i"),re.call(t,""))),X.call(fe.tags,e)&&(e=fe.tags[e]),n=e.split("-");for(var r=1,o=n.length;r-1)return n;var r=n.lastIndexOf("-");if(r<0)return;r>=2&&"-"===n.charAt(r-2)&&(r-=2),n=n.substring(0,r)}}function c(e,t){for(var n,r=0,o=t.length;r2){var L=f[k+1],M=S.call(E,L);if(M!==-1)var x=L,w="-"+v+"-"+x}else{var M=S(E,"true");if(M!==-1)var x="true"}}if(X.call(n,"[["+v+"]]")){var T=n["[["+v+"]]"];S.call(E,T)!==-1&&T!==x&&(x=T,w="")}h["[["+v+"]]"]=x,g+=w,b++}if(g.length>2)var D=s.substring(0,d),C=s.substring(d),s=D+g+C;return h["[[locale]]"]=s,h}function p(e,t){for(var n=t.length,r=new j,o=0;or)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(a)}return o}function b(){var e=arguments[0],t=arguments[1];return this&&this!==G?_(H(this),e,t):new G.NumberFormat(e,t)}function _(e,t,n){var r=W(e),o=U();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");Z(e,"__getInternalProperties",{value:function(){if(arguments[0]===se)return r}}),r["[[initializedIntlObject]]"]=!0;var a=s(t);n=void 0===n?{}:H(n);var l=new P,c=h(n,"localeMatcher","string",new j("lookup","best fit"),"best fit");l["[[localeMatcher]]"]=c;var u=ie.NumberFormat["[[localeData]]"],p=d(ie.NumberFormat["[[availableLocales]]"],a,l,ie.NumberFormat["[[relevantExtensionKeys]]"],u);r["[[locale]]"]=p["[[locale]]"],r["[[numberingSystem]]"]=p["[[nu]]"],r["[[dataLocale]]"]=p["[[dataLocale]]"];var f=p["[[dataLocale]]"],m=h(n,"style","string",new j("decimal","percent","currency"),"decimal");r["[[style]]"]=m;var b=h(n,"currency","string");if(void 0!==b&&!i(b))throw new RangeError("'"+b+"' is not a valid currency code");if("currency"===m&&void 0===b)throw new TypeError("Currency code is required when style is currency");if("currency"===m){b=b.toUpperCase(),r["[[currency]]"]=b;var _=v(b)}var E=h(n,"currencyDisplay","string",new j("code","symbol","name"),"symbol");"currency"===m&&(r["[[currencyDisplay]]"]=E);var x=g(n,"minimumIntegerDigits",1,21,1);r["[[minimumIntegerDigits]]"]=x;var w="currency"===m?_:0,S=g(n,"minimumFractionDigits",0,20,w);r["[[minimumFractionDigits]]"]=S;var k="currency"===m?Math.max(S,_):"percent"===m?Math.max(S,0):Math.max(S,3),L=g(n,"maximumFractionDigits",S,20,k);r["[[maximumFractionDigits]]"]=L;var M=n.minimumSignificantDigits,T=n.maximumSignificantDigits;void 0===M&&void 0===T||(M=g(n,"minimumSignificantDigits",1,21,1),T=g(n,"maximumSignificantDigits",M,21,21),r["[[minimumSignificantDigits]]"]=M,r["[[maximumSignificantDigits]]"]=T);var D=h(n,"useGrouping","boolean",void 0,!0);r["[[useGrouping]]"]=D;var C=u[f],A=C.patterns,O=A[m];return r["[[positivePattern]]"]=O.positivePattern,r["[[negativePattern]]"]=O.negativePattern,r["[[boundFormat]]"]=void 0,r["[[initializedNumberFormat]]"]=!0,J&&(e.format=y.call(e)),o.exp.test(o.input),e}function v(e){return void 0!==me[e]?me[e]:2}function y(){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 E(this,Number(e))},n=ae.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function E(e,t){var n,r=U(),o=W(e),a=o["[[dataLocale]]"],i=o["[[numberingSystem]]"],s=ie.NumberFormat["[[localeData]]"][a],l=s.symbols[i]||s.symbols.latn,c=!1;if(isFinite(t)===!1)isNaN(t)?n=l.nan:(n=l.infinity,t<0&&(c=!0));else{if(t<0&&(c=!0,t=-t),"percent"===o["[[style]]"]&&(t*=100),n=X.call(o,"[[minimumSignificantDigits]]")&&X.call(o,"[[maximumSignificantDigits]]")?x(t,o["[[minimumSignificantDigits]]"],o["[[maximumSignificantDigits]]"]):w(t,o["[[minimumIntegerDigits]]"],o["[[minimumFractionDigits]]"],o["[[maximumFractionDigits]]"]),he[i]){var u=he[o["[[numberingSystem]]"]];n=String(n).replace(/\d/g,function(e){return u[e]})}else n=String(n);if(n=n.replace(/\./g,l.decimal),o["[[useGrouping]]"]===!0){var d=n.split(l.decimal),p=d[0],f=s.patterns.primaryGroupSize||3,m=s.patterns.secondaryGroupSize||f;if(p.length>f){var h=new j,g=p.length-f,b=g%m,_=p.slice(0,b);for(_.length&&ne.call(h,_);b=r)return o+re.call(Array(a-r+1+1),"0");if(a===r-1)return o;if(a>=0?o=o.slice(0,a+1)+"."+o.slice(a+1):a<0&&(o="0."+re.call(Array(-(a+1)+1),"0")+o),o.indexOf(".")>=0&&n>t){for(var s=n-t;s>0&&"0"===o.charAt(o.length-1);)o=o.slice(0,-1),s--;"."===o.charAt(o.length-1)&&(o=o.slice(0,-1))}return o}function w(e,t,n,r){var o,a=Number.prototype.toFixed.call(e,r),i=a.split(".")[0].length,s=r-n,l=(o=a.indexOf("e"))>-1?a.slice(o+1):0;for(l&&(a=a.slice(0,o).replace(".",""),a+=re.call(Array(l-(a.length-1)+1),"0")+"."+re.call(Array(r+1),"0"),i=a.length);s>0&&"0"===a.slice(-1);)a=a.slice(0,-1),s--;if("."===a.slice(-1)&&(a=a.slice(0,-1)),id&&(d=h,r=m),p++}return r}function C(e,t){return D(e,t,!0)}function A(){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 O(this,e)},n=ae.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function O(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var n=e.__getInternalProperties(se),r=U(),o=n["[[locale]]"],a=new G.NumberFormat([o],{useGrouping:!1}),i=new G.NumberFormat([o],{minimumIntegerDigits:2,useGrouping:!1}),s=I(t,n["[[calendar]]"],n["[[timeZone]]"]),l=n["[[pattern]]"],c=n["[[dataLocale]]"],u=ie.DateTimeFormat["[[localeData]]"][c].calendars,d=n["[[calendar]]"];for(var p in ge)if(X.call(n,"[["+p+"]]")){var f,m,h=n["[["+p+"]]"],g=s["[["+p+"]]"];if("year"===p&&g<=0?g=1-g:"month"===p?g++:"hour"===p&&n["[[hour12]]"]===!0&&(g%=12,f=g!==s["[["+p+"]]"],0===g&&n["[[hourNo0]]"]===!0&&(g=12)),"numeric"===h)m=E(a,g);else if("2-digit"===h)m=E(i,g),m.length>2&&(m=m.slice(-2));else if(h in le)switch(p){case"month":m=R(u,d,"months",h,s["[["+p+"]]"]);break;case"weekday":try{m=R(u,d,"days",h,s["[["+p+"]]"])}catch(b){throw new Error("Could not find weekday data for locale "+o)}break;case"timeZoneName":m="";break;default:m=s["[["+p+"]]"]}l=l.replace("{"+p+"}",m)}return n["[[hour12]]"]===!0&&(m=R(u,d,"dayPeriods",f?"pm":"am"),l=l.replace("{ampm}",m)),r.exp.test(r.input),l}function I(e,t,n){var r=new Date(e),o="get"+(n||"");return new P({"[[weekday]]":r[o+"Day"](),"[[era]]":+(r[o+"FullYear"]()>=0),"[[year]]":r[o+"FullYear"](),"[[month]]":r[o+"Month"](),"[[day]]":r[o+"Date"](),"[[hour]]":r[o+"Hours"](),"[[minute]]":r[o+"Minutes"](),"[[second]]":r[o+"Seconds"](),"[[inDST]]":!1})}function Y(e,t){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var n,r=[t],o=t.split("-");for(o.length>2&&4===o[1].length&&ne.call(r,o[0]+"-"+o[2]);n=oe.call(r);)ne.call(ie.NumberFormat["[[availableLocales]]"],n),ie.NumberFormat["[[localeData]]"][n]=e.number,e.date&&(e.date.nu=e.number.nu,ne.call(ie.DateTimeFormat["[[availableLocales]]"],n),ie.DateTimeFormat["[[localeData]]"][n]=e.date);void 0===B&&(B=t),ce||(_(G.NumberFormat.prototype),ce=!0),e.date&&!ue&&(k(G.DateTimeFormat.prototype),ue=!0)}function N(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 F(e){if(!X.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=U(),n=arguments[1],r=this["[[availableLocales]]"],o=s(e);return t.exp.test(t.input),m(r,o,n)}function R(e,t,n,r,o){var a=e[t]&&e[t][n]?e[t][n]:e.gregory[n],i={narrow:["short","long"],"short":["long","narrow"],"long":["short","narrow"]},s=X.call(a,r)?a[r]:X.call(a,i[r][0])?a[i[r][0]]:a[i[r][1]];return null!=o?s[o]:s}function P(e){for(var t in e)(e instanceof P||X.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&&ne.apply(this,ee.call(arguments))}function U(){for(var e=/[.?*+^$[\]\\(){}|-]/g,t=RegExp.lastMatch||"",n=RegExp.multiline?"m":"",r={input:RegExp.input},o=new j,a=!1,i={},s=1;s<=9;s++)a=(i["$"+s]=RegExp["$"+s])||a;if(t=t.replace(e,"\\$&"),a)for(var s=1;s<=9;s++){var l=i["$"+s];l?(l=l.replace(e,"\\$&"),t=t.replace(l,"("+l+")")):t="()"+t,ne.call(o,t.slice(0,t.indexOf("(")+1)),t=t.slice(t.indexOf("(")+1)}return r.exp=new RegExp(re.call(o,"")+t,n),r}function z(e){for(var t=e.length;t--;){var n=e.charAt(t);n>="a"&&n<="z"&&(e=e.slice(0,t)+n.toUpperCase()+e.slice(t+1))}return e}function H(e){if(null==e)throw new TypeError("Cannot convert null or undefined to object");return Object(e)}function W(e){return X.call(e,"__getInternalProperties")?e.__getInternalProperties(se):$(null)}var B,V=n(1593),K=n(1591),G={},q=function(){var e={};try{return Object.defineProperty(e,"a",{}),"a"in e}catch(t){return!1}}(),J=!q&&!Object.prototype.__defineGetter__,X=Object.prototype.hasOwnProperty,Z=q?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!X.call(e,t)||"value"in n)&&(e[t]=n.value)},Q=Array.prototype.indexOf||function(e){var t=this;if(!t.length)return-1;for(var n=arguments[1]||0,r=t.length;n1e4)){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 n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=l?Math.round(e/l)+"h":e>=s?Math.round(e/s)+"m":e>=i?Math.round(e/i)+"s":e+"ms"}function o(e){return a(e,c,"day")||a(e,l,"hour")||a(e,s,"minute")||a(e,i,"second")||e+" ms"}function a(e,t,n){if(!(e=0&&n.parseArrays&&i<=n.arrayLimit?(r=[],r[i]=c(e,t,n)):r[a]=c(e,t,n)}return r},l=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,a=/^([^\[\]]*)/,i=/(\[[^\[\]]*\])/g,l=a.exec(r),c=[];if(l[1]){if(!n.plainObjects&&o.call(Object.prototype,l[1])&&!n.allowPrototypes)return;c.push(l[1])}for(var u=0;null!==(l=i.exec(r))&&uu||l.year()>c)&&(e+=" rdtNew"),s&&l.isSame(s,"day")&&(e+=" rdtActive"),l.isSame(o(),"day")&&(e+=" rdtToday"),t=!m(r,s),t&&(e+=" rdtDisabled"),n={key:l.format("M_D"),"data-value":l.date(),className:e},t||(n.onClick=this.updateSelectedDate),p.push(f(n,r,s)),7===p.length&&(d.push(a.tr({key:l.format("M_D")},p)),p=[]),l.add(1,"d");return d},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t){return a.td(e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return a.tfoot({key:"tf"},a.tr({},a.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},isValidDate:function(){return 1}});e.exports=i},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}var o=n(1),a=o.DOM,i=o.createClass({render:function(){return a.div({className:"rdtMonths"},[a.table({key:"a"},a.thead({},a.tr({},[a.th({key:"prev",className:"rdtPrev"},a.span({onClick:this.props.subtractTime(1,"years")},"‹")),a.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),a.th({key:"next",className:"rdtNext"},a.span({onClick:this.props.addTime(1,"years")},"›"))]))),a.table({key:"months"},a.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n=this.props.selectedDate,r=this.props.viewDate.month(),o=this.props.viewDate.year(),i=[],s=0,l=[],c=this.props.renderMonth||this.renderMonth;s<12;)e="rdtMonth",n&&s===r&&o===n.year()&&(e+=" rdtActive"),t={key:s,"data-value":s,className:e,onClick:"months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")},l.push(c(t,s,o,n&&n.clone())),4===l.length&&(i.push(a.tr({key:r+"_"+i.length},l)),l=[]),s++;return i},updateSelectedMonth:function(e){this.props.updateSelectedDate(e,!0)},renderMonth:function(e,t){var n=this.props.viewDate.localeData()._monthsShort;return a.td(e,n.standalone?r(n.standalone[t]):n[t])}});e.exports=i},function(e,t,n){"use strict";var r=n(1),o=n(1026),a=r.DOM,i=r.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,r=[];n.indexOf("H")===-1&&n.indexOf("h")===-1||(r.push("hours"),n.indexOf("m")!==-1&&(r.push("minutes"),n.indexOf("s")!==-1&&r.push("seconds")));var o=!1;return this.props.timeFormat.indexOf(" A")!==-1&&null!==this.state&&(o=this.state.hours>=12?"PM":"AM"),{hours:t.format("H"),minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:o,counters:r}},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)),a.div({key:e,className:"rdtCounter"},[a.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e)},"▲"),a.div({key:"c",className:"rdtCount"},t),a.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e)},"▼")])}return""},renderDayPart:function(){return a.div({className:"rdtCounter",key:"dayPart"},[a.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▲"),a.div({key:this.state.daypart,className:"rdtCount"},this.state.daypart),a.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(a.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(a.div({className:"rdtCounterSeparator",key:"sep5"},":")),t.push(a.div({className:"rdtCounter rdtMilli",key:"m"},a.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),a.div({className:"rdtTime"},a.table({},[this.renderHeader(),a.tbody({key:"b"},a.tr({},a.td({},a.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){o(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 a.thead({key:"h"},a.tr({},a.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 r={};r[t]=n[e](t),n.setState(r),n.timer=setTimeout(function(){n.increaseTimer=setInterval(function(){r[t]=n[e](t),n.setState(r)},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||o[1]>13)&&(r=n(13));var a=[],i=[],s="ignore-react-onclickoutside",l=function(e,t){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(s):e.classList.contains(s))};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 r=n.target,o=!1;r.parentNode;){if(o=l(r,e))return;r=r.parentNode}t(n)}}(r.findDOMNode(this),this.handleClickOutside),t=a.length;a.push(this),i[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=a.indexOf(this);e>-1&&i[e]&&(i.splice(e,1),a.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)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(2441)},function(e,t,n){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{"default":e}}var t=n(872),r=e(t),o=n(13),a=e(o),i=n(20),s=n(895),l=n(2096),c=e(l),u=n(38),d=e(u),p=n(2136),f=e(p),m=n(348),h={BASENAME:"/actionview",API_BASENAME:"/actionview/api",BROWSER:!0,NODE_ENV:"production"},g=h.BASENAME,b=h.NODE_ENV,_=h.BROWSER;"production"!==b&&r.default.enable("dev"),_&&(n(2791),n(2788),n(2797),n(2794),n(2795),n(2793),n(2792),n(2796),n(2790),n(2789),n(2787),n(2780),n(2781),n(2782),n(2786),n(2785),n(2783),n(2784),n(2798)),function(){var e,t,n,o,l;return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,e=(0,i.useRouterHistory)(s.createHistory)({basename:g}),t=(0,c.default)(new d.default,window.__state,e),n=(0,m.syncHistoryWithStore)(e,t),o=window.document.getElementById("content"),u.next=7,regeneratorRuntime.awrap((0,f.default)({history:n,store:t}));case 7:l=u.sent,a.default.render(l,o),t.resolver.firstRender=!1,t.resolver.pendingActions=[],u.next=17;break;case 13:throw u.prev=13,u.t0=u.catch(0),(0,r.default)("dev")("Error with first render"),u.t0;case 17:case"end":return u.stop()}},null,this,[[0,13]])}()}).call(this)}finally{}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){try{(function(){"use strict";function r(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 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 s(e){return{actions:(0,m.bindActionCreators)(v,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n1e4)){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 n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=l?Math.round(e/l)+"h":e>=s?Math.round(e/s)+"m":e>=i?Math.round(e/i)+"s":e+"ms"}function o(e){return a(e,c,"day")||a(e,l,"hour")||a(e,s,"minute")||a(e,i,"second")||e+" ms"}function a(e,t,n){if(!(e=0&&n.parseArrays&&i<=n.arrayLimit?(r=[],r[i]=c(e,t,n)):r[a]=c(e,t,n)}return r},l=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,a=/^([^\[\]]*)/,i=/(\[[^\[\]]*\])/g,l=a.exec(r),c=[];if(l[1]){if(!n.plainObjects&&o.call(Object.prototype,l[1])&&!n.allowPrototypes)return;c.push(l[1])}for(var u=0;null!==(l=i.exec(r))&&uu||l.year()>c)&&(e+=" rdtNew"),s&&l.isSame(s,"day")&&(e+=" rdtActive"),l.isSame(o(),"day")&&(e+=" rdtToday"),t=!m(r,s),t&&(e+=" rdtDisabled"),n={key:l.format("M_D"),"data-value":l.date(),className:e},t||(n.onClick=this.updateSelectedDate),p.push(f(n,r,s)),7===p.length&&(d.push(a.tr({key:l.format("M_D")},p)),p=[]),l.add(1,"d");return d},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t){return a.td(e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return a.tfoot({key:"tf"},a.tr({},a.td({onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},isValidDate:function(){return 1}});e.exports=i},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}var o=n(1),a=o.DOM,i=o.createClass({render:function(){return a.div({className:"rdtMonths"},[a.table({key:"a"},a.thead({},a.tr({},[a.th({key:"prev",className:"rdtPrev"},a.span({onClick:this.props.subtractTime(1,"years")},"‹")),a.th({key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),a.th({key:"next",className:"rdtNext"},a.span({onClick:this.props.addTime(1,"years")},"›"))]))),a.table({key:"months"},a.tbody({key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n=this.props.selectedDate,r=this.props.viewDate.month(),o=this.props.viewDate.year(),i=[],s=0,l=[],c=this.props.renderMonth||this.renderMonth;s<12;)e="rdtMonth",n&&s===r&&o===n.year()&&(e+=" rdtActive"),t={key:s,"data-value":s,className:e,onClick:"months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")},l.push(c(t,s,o,n&&n.clone())),4===l.length&&(i.push(a.tr({key:r+"_"+i.length},l)),l=[]),s++;return i},updateSelectedMonth:function(e){this.props.updateSelectedDate(e,!0)},renderMonth:function(e,t){var n=this.props.viewDate.localeData()._monthsShort;return a.td(e,n.standalone?r(n.standalone[t]):n[t])}});e.exports=i},function(e,t,n){"use strict";var r=n(1),o=n(1026),a=r.DOM,i=r.createClass({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,r=[];n.indexOf("H")===-1&&n.indexOf("h")===-1||(r.push("hours"),n.indexOf("m")!==-1&&(r.push("minutes"),n.indexOf("s")!==-1&&r.push("seconds")));var o=!1;return this.props.timeFormat.indexOf(" A")!==-1&&null!==this.state&&(o=this.state.hours>=12?"PM":"AM"),{hours:t.format("H"),minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:o,counters:r}},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)),a.div({key:e,className:"rdtCounter"},[a.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e)},"▲"),a.div({key:"c",className:"rdtCount"},t),a.span({key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e)},"▼")])}return""},renderDayPart:function(){return a.div({className:"rdtCounter",key:"dayPart"},[a.span({key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours")},"▲"),a.div({key:this.state.daypart,className:"rdtCount"},this.state.daypart),a.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(a.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(a.div({className:"rdtCounterSeparator",key:"sep5"},":")),t.push(a.div({className:"rdtCounter rdtMilli",key:"m"},a.input({value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),a.div({className:"rdtTime"},a.table({},[this.renderHeader(),a.tbody({key:"b"},a.tr({},a.td({},a.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){o(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 a.thead({key:"h"},a.tr({},a.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 r={};r[t]=n[e](t),n.setState(r),n.timer=setTimeout(function(){n.increaseTimer=setInterval(function(){r[t]=n[e](t),n.setState(r)},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||o[1]>13)&&(r=n(13));var a=[],i=[],s="ignore-react-onclickoutside",l=function(e,t){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(s):e.classList.contains(s))};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 r=n.target,o=!1;r.parentNode;){if(o=l(r,e))return;r=r.parentNode}t(n)}}(r.findDOMNode(this),this.handleClickOutside),t=a.length;a.push(this),i[t]=e,this.props.disableOnClickOutside||this.enableOnClickOutside()},componentWillUnmount:function(){this.disableOnClickOutside(),this.__outsideClickHandler=!1;var e=a.indexOf(this);e>-1&&i[e]&&(i.splice(e,1),a.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)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(2441)},function(e,t,n){try{(function(){"use strict";function e(e){return e&&e.__esModule?e:{"default":e}}var t=n(872),r=e(t),o=n(13),a=e(o),i=n(20),s=n(895),l=n(2096),c=e(l),u=n(38),d=e(u),p=n(2136),f=e(p),m=n(348),h={BASENAME:"/actionview",API_BASENAME:"/actionview/api",BROWSER:!0,NODE_ENV:"production"},g=h.BASENAME,b=h.NODE_ENV,_=h.BROWSER;"production"!==b&&r.default.enable("dev"),_&&(n(2791),n(2788),n(2797),n(2794),n(2795),n(2793),n(2792),n(2796),n(2790),n(2789),n(2787),n(2780),n(2781),n(2782),n(2786),n(2785),n(2783),n(2784),n(2798)),function(){var e,t,n,o,l;return regeneratorRuntime.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,e=(0,i.useRouterHistory)(s.createHistory)({basename:g}),t=(0,c.default)(new d.default,window.__state,e),n=(0,m.syncHistoryWithStore)(e,t),o=window.document.getElementById("content"),u.next=7,regeneratorRuntime.awrap((0,f.default)({history:n,store:t}));case 7:l=u.sent,a.default.render(l,o),t.resolver.firstRender=!1,t.resolver.pendingActions=[],u.next=17;break;case 13:throw u.prev=13,u.t0=u.catch(0),(0,r.default)("dev")("Error with first render"),u.t0;case 17:case"end":return u.stop()}},null,this,[[0,13]])}()}).call(this)}finally{}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){try{(function(){"use strict";function r(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 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 s(e){return{actions:(0,m.bindActionCreators)(v,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n0&&c.default.createElement(u.MenuItem,{divider:!0}),c.default.createElement(u.MenuItem,{eventKey:"myproject"},!p.default.isEmpty(a)&&c.default.createElement("div",{style:{display:"inline-block",width:"20px"}}),c.default.createElement("span",null,"项目中心")))),this.state.aboutShow&&c.default.createElement(f,{show:!0,close:function(){e.setState({aboutShow:!1})}}))}}],[{key:"propTypes",value:{project:l.PropTypes.object.isRequired,session:l.PropTypes.object.isRequired,getSess:l.PropTypes.func.isRequired,recents:l.PropTypes.func.isRequired,entry:l.PropTypes.func.isRequired,cleanSelectedProject:l.PropTypes.func.isRequired,logout:l.PropTypes.func.isRequired,pathname:l.PropTypes.string},enumerable:!0}]),t}(l.Component);t.default=_,e.exports=t.default}).call(this)}finally{}},function(e,t,n){try{(function(){"use strict";function r(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 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 s(e){return{actions:(0,f.bindActionCreators)(w,e),layoutActions:(0,f.bindActionCreators)(M,e),sessionActions:(0,f.bindActionCreators)(k,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n0&&f(".animate-dialog").offset().left-f(".doc-container").offset().left<1&&(e=!0),f(".toc-container").animate({left:"-20%"}),f(".toc-container").css({position:"fixed"}),f(".head").css({paddingLeft:"15px"}),f(".toc-logo").css({left:"45%"}),f("#show-bar").show(),e&&f(".animate-dialog").css("left",f(".doc-container").offset().left),this.props.resize({containerWidth:f(".doc-main").get(0).clientWidth,sidebarHide:!0});var t=window.localStorage;t&&t.setItem("sideBarHide","1")}},{key:"tackBar",value:function(){var e=!1;f(".animate-dialog").length>0&&f(".animate-dialog").offset().left-f(".doc-container").offset().left<1&&(e=!0),f(".head").css({paddingLeft:"19%"}),f(".toc-logo").css({left:"54%"}),f(".toc-container").css({position:"relative"}),f("#show-bar").hide(),f("#tack-bar").hide(),f("#hide-bar").show(),e&&f(".animate-dialog").css("left",f(".doc-container").offset().left),this.props.resize({containerWidth:.8*f(".doc-main").get(0).clientWidth,sidebarHide:!1});var t=window.localStorage;t&&t.setItem("sideBarHide","0")}},{key:"toggleShow",value:function(e){var t=this;return function(n){t.setState(o({},e+"Show",!t.state[e+"Show"])),n.nativeEvent.stopImmediatePropagation()}}},{key:"componentDidUpdate",value:function(){var e=this.props.pathname;/^\/project\/(\w+)(\/summary)?$/.test(e)?f("#summary").addClass("menu-active"):f("#summary").removeClass("menu-active"),/^\/project\/(\w+)\/kanban(\/\w+)?$/.test(e)?f("#kanban").addClass("menu-active"):f("#kanban").removeClass("menu-active"),/^\/project\/(\w+)\/gantt(\/\w+)?$/.test(e)?f("#gantt").addClass("menu-active"):f("#gantt").removeClass("menu-active"),/^\/project\/(\w+)\/workflow(\/\w+)?$/.test(e)?f("#workflow").addClass("menu-active"):f("#workflow").removeClass("menu-active"),/^\/admin\/scheme\/workflow(\/\w+)?$/.test(e)?f("#admin-workflow").addClass("menu-active"):f("#admin-workflow").removeClass("menu-active"),/^\/project\/(\w+)\/report(\/\w+)?$/.test(e)?f("#report").addClass("menu-active"):f("#report").removeClass("menu-active"),/^\/project\/(\w+)\/document(\/\w+)?$/.test(e)?f("#document").addClass("menu-active"):f("#document").removeClass("menu-active"),/^\/project\/(\w+)\/wiki(\/\w+)*$/.test(e)?f("#wiki").addClass("menu-active"):f("#wiki").removeClass("menu-active")}},{key:"componentWillReceiveProps",value:function(e){/^\/project\/(\w+)(\/(summary|issue|kanban|activity|version|module|team|document|wiki|report|gantt)(\/\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):/^\/project\/(\w+)\/(webhooks|integrations|labels|reminds)(\/\w+)?$/.test(e.pathname)?(this.state.adminPanelShow=!1,this.state.projectPanelShow=!0,this.state.projectSettingsShow=!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|calendar)$/.test(e.pathname)?(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminSysSettingsShow=!0):/^\/admin\/logs$/.test(e.pathname)&&(this.state.adminPanelShow=!0,this.state.projectPanelShow=!1,this.state.adminAccessLogsShow=!0)}},{key:"render",value:function(){var e=this.props,t=e.project,n=e.session,r=this.toggleShow.bind(this);return this.state.adminPanelShow?u.default.createElement("div",{className:"toc-container"},u.default.createElement("div",{className:"react-menu-container"},u.default.createElement("div",{className:"toc-container-header"},u.default.createElement("span",{className:"span-bar-icon",onClick:this.hideBar.bind(this)},u.default.createElement("i",{className:"fa fa-bars"})),u.default.createElement("span",{className:"span-angle-double",id:"hide-bar",onClick:this.hideBar.bind(this)},u.default.createElement("i",{className:"fa fa-thumb-tack fa-rotate-90"})),u.default.createElement("span",{className:"span-tack-bar",style:{display:"none"},id:"tack-bar",onClick:this.tackBar.bind(this)},u.default.createElement("i",{className:"fa fa-thumb-tack"}))),n.user.permissions&&n.user.permissions.sys_admin&&u.default.createElement("div",{className:"toc-container-body"},u.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis",cursor:"default"}},"管理员管理面板"),u.default.createElement("h4",{onClick:r("adminScheme")},u.default.createElement("i",{className:this.state.adminSchemeShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"全局方案配置"),u.default.createElement("ul",{className:!this.state.adminSchemeShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/type",activeClassName:"menu-active"},"问题类型")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/state",activeClassName:"menu-active"},"状态")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/workflow",activeClassName:"menu-active",id:"admin-workflow"},"工作流")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/field",activeClassName:"menu-active"},"字段")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/screen",activeClassName:"menu-active"},"界面")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/priority",activeClassName:"menu-active"},"优先级")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/resolution",activeClassName:"menu-active"},"解决结果")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/role",activeClassName:"menu-active"},"角色权限")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/scheme/events",activeClassName:"menu-active"},"通知事件"))),u.default.createElement("h4",{onClick:r("adminUserManage")},u.default.createElement("i",{className:this.state.adminUserManageShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"用户管理"),u.default.createElement("ul",{className:!this.state.adminUserManageShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/user",activeClassName:"menu-active"},"用户")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/group",activeClassName:"menu-active"},"用户组")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/directory",activeClassName:"menu-active"},"用户目录"))),u.default.createElement("h4",{onClick:r("adminProjectManage")},u.default.createElement("i",{className:this.state.adminProjectManageShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"项目管理"),u.default.createElement("ul",{className:!this.state.adminProjectManageShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/project",activeClassName:"menu-active"},"项目"))),u.default.createElement("h4",{onClick:r("adminAccessLogs")},u.default.createElement("i",{className:this.state.adminAccessLogsShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"日志查看"),u.default.createElement("ul",{className:!this.state.adminAccessLogsShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/logs",activeClassName:"menu-active"},"日志"))),u.default.createElement("h4",{onClick:r("adminSysSettings")},u.default.createElement("i",{className:this.state.adminSysSettingsShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"系统配置"),u.default.createElement("ul",{className:!this.state.adminSysSettingsShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/syssetting",activeClassName:"menu-active"},"系统配置")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/admin/calendar",activeClassName:"menu-active"},"日历管理")))))):u.default.createElement("div",{className:"toc-container"},u.default.createElement("div",{className:"react-menu-container"},u.default.createElement("div",{className:"toc-container-header"},u.default.createElement("span",{className:"span-bar-icon",onClick:this.hideBar.bind(this)},u.default.createElement("i",{className:"fa fa-bars"})),u.default.createElement("span",{className:"span-angle-double",id:"hide-bar",onClick:this.hideBar.bind(this)},u.default.createElement("i",{className:"fa fa-thumb-tack fa-rotate-90"})),u.default.createElement("span",{className:"span-tack-bar",style:{display:"none"},id:"tack-bar",onClick:this.tackBar.bind(this)},u.default.createElement("i",{className:"fa fa-thumb-tack"}))),t.item.key?u.default.createElement("div",{className:"toc-container-body"},u.default.createElement("h4",{style:{overflow:"hidden",textOverflow:"ellipsis",cursor:"default"},title:t.item.name},t.item.name||""),u.default.createElement("h4",{onClick:r("projectSummary")},u.default.createElement("i",{className:this.state.projectSummaryShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"项目概述"),t.options.permissions&&t.options.permissions.length>0&&u.default.createElement("ul",{className:!this.state.projectSummaryShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/summary",activeClassName:"menu-active",id:"summary"},"概览")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/issue",activeClassName:"menu-active"},"问题")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/kanban",activeClassName:"menu-active",id:"kanban"},"看板")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/gantt/filter",activeClassName:"menu-active",id:"gantt"},"甘特图")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/activity",activeClassName:"menu-active"},"活动")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/module",activeClassName:"menu-active"},"模块")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/version",activeClassName:"menu-active"},"版本")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/report",activeClassName:"menu-active",id:"report"},"报告")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/document",activeClassName:"menu-active",id:"document"},"文件")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/wiki",activeClassName:"menu-active",id:"wiki"},"Wiki")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/team",activeClassName:"menu-active"},"成员"))),u.default.createElement("h4",{onClick:r("projectConfig")},u.default.createElement("i",{className:this.state.projectConfigShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"方案配置"),t.options.permissions&&t.options.permissions.indexOf("manage_project")!==-1&&u.default.createElement("ul",{className:!this.state.projectConfigShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/config",activeClassName:"menu-active"},"概要")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/type",activeClassName:"menu-active"},"问题类型")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/state",activeClassName:"menu-active"},"状态")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/workflow",activeClassName:"menu-active",id:"workflow"},"工作流")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/field",activeClassName:"menu-active"},"字段")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/screen",activeClassName:"menu-active"},"界面")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/priority",activeClassName:"menu-active"},"优先级")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/resolution",activeClassName:"menu-active"},"解决结果")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/role",activeClassName:"menu-active"},"角色权限")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/events",activeClassName:"menu-active"},"通知事件"))),t.options.permissions&&t.options.permissions.indexOf("manage_project")===-1&&u.default.createElement("ul",{className:!this.state.projectConfigShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/config",activeClassName:"menu-active"},"概要"))),t.options.permissions&&t.options.permissions.indexOf("manage_project")!==-1&&u.default.createElement("h4",{onClick:r("projectSettings")},u.default.createElement("i",{className:this.state.projectSettingsShow?"fa fa-minus-square-o":"fa fa-plus-square-o"}),"项目设置"),t.options.permissions&&t.options.permissions.indexOf("manage_project")!==-1&&u.default.createElement("ul",{className:!this.state.projectSettingsShow&&"hide"},u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/labels",activeClassName:"menu-active"},"标签管理")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/integrations",activeClassName:"menu-active"},"外部用户")),u.default.createElement("li",null,u.default.createElement(d.Link,{to:"/project/"+t.item.key+"/webhooks",activeClassName:"menu-active"},"Webhooks"))),u.default.createElement("h4",null," "),u.default.createElement("h4",null," ")):u.default.createElement("h4",{className:"toc-container-body"},"请选择要查看的项目")))}}],[{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=m,e.exports=t.default}).call(this)}finally{}},function(e,t,n){try{(function(){"use strict";function r(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 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 s(e){return{actions:(0,h.bindActionCreators)(v,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t0&&(c=k.parse(s.shift())),this.context.router.push({pathname:l,query:c})):"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,n=t.email,r=t.password,o=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:w,width:200})),f.default.createElement("form",{onSubmit:o(this.handleSubmit)},f.default.createElement(_.FormGroup,{controlId:"formControlsName",validationState:n.touched&&n.error?"error":null},f.default.createElement(_.FormControl,c({disabled:a,type:"text"},n,{placeholder:"用户名/邮箱"})),n.touched&&n.error&&f.default.createElement(_.HelpBlock,{style:{marginLeft:"5px"}},n.error)),f.default.createElement(_.FormGroup,{controlId:"formControlsPwd",validationState:r.touched&&r.error?"error":null},f.default.createElement(_.FormControl,c({disabled:a,type:"password"},r,{placeholder:"密码"})),r.touched&&r.error&&f.default.createElement(_.HelpBlock,{style:{marginLeft:"5px"}},r.error)),f.default.createElement(_.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"},f.default.createElement("span",null,"若非该系统用户,请联系系统管理员创建。"),f.default.createElement(m.Link,{to:"/forgot",style:{marginLeft:"5px"}},"忘记密码")))))}}],[{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 n=t;return t=(0,h.reduxForm)({form:"login",fields:["email","password"],validate:L})(t)||t,t=(0,b.connect)(s,l)(t)||t}(p.Component);t.default=M,e.exports=t.default}).call(this)}finally{}},function(e,t,n){try{(function(){"use strict";function r(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 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 s(e){return{actions:(0,h.bindActionCreators)(y,e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return function(){return function(t){return function(n){var o=n.promise,l=n.types,c=r(n,["promise","types"]);if(!o)return t(n);var u=a(l,3),d=u[0],p=u[1],f=u[2];return t(i({},c,{type:d})),o(e).then(function(e){return e.ecode!==-10001?t(i({},c,{result:e,type:p})):void t({type:s.SESSION_INVALIDATE})},function(e){return t(i({},c,{error:e,type:f}))})}}}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t0?(e.toggled=!0,v.default.forEach(e.children,function(e){i(e)}),e.children.sort(function(e,t){return e.name.localeCompare(t.name)})):e.children=[]}function s(e,t){if(e.id==t)return e;for(var n=e.children?e.children.length:0,r=0;r0&&u.default.map(t.result.data.links,function(n){e.itemData.id===n.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 l.ISSUE_COPY_FAIL:return i({},e,{loading:!1,error:t.error});case l.ISSUE_EDIT:case l.ISSUE_MOVE:case l.ISSUE_CONVERT:return i({},e,{loading:!0,historyLoaded:!1});case l.ISSUE_EDIT_SUCCESS:case l.ISSUE_MOVE_SUCCESS:case l.ISSUE_CONVERT_SUCCESS:if(0===t.result.ecode){var n=u.default.findIndex(e.collection,{id:t.result.data.id});n!==-1&&(e.collection[n]=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 l.ISSUE_EDIT_FAIL:case l.ISSUE_MOVE_FAIL:case l.ISSUE_CONVERT_FAIL:return i({},e,{loading:!1,error:t.error});case l.ISSUE_SHOW:return i({},e,{itemLoading:!0,linkLoading:!1,detailFloatStyle:t.floatStyle||e.detailFloatStyle,itemData:{id:t.id},commentsLoaded:!1,historyLoaded:!1,worklogLoaded:!1,gitCommitsLoaded:!1});case l.ISSUE_SHOW_SUCCESS:return 0===t.result.ecode&&(e.itemData=t.result.data),i({},e,{itemLoading:!1,ecode:t.result.ecode});case l.ISSUE_SHOW_FAIL:return i({},e,{itemLoading:!1,error:t.error});case l.ISSUE_DELETE:return i({},e,{itemLoading:!0});case l.ISSUE_DELETE_SUCCESS:return 0===t.result.ecode&&u.default.forEach(t.result.data.ids||[],function(t){e.collection=u.default.reject(e.collection,{id:t})}),i({},e,{itemLoading:!1,ecode:t.result.ecode});case l.ISSUE_DELETE_FAIL:return i({},e,{itemLoading:!1,error:t.error});case l.ISSUE_FILTER_SAVE:case l.ISSUE_FILTERS_CONFIG:case l.ISSUE_FILTERS_DEL:case l.ISSUE_FILTERS_RESET:return i({},e,{filterLoading:!0});case l.ISSUE_FILTER_SAVE_SUCCESS:case l.ISSUE_FILTERS_CONFIG_SUCCESS:case l.ISSUE_FILTERS_DEL_SUCCESS:case l.ISSUE_FILTERS_RESET_SUCCESS:return 0===t.result.ecode&&(e.options.filters=t.result.data),i({},e,{filterLoading:!1,ecode:t.result.ecode});case l.ISSUE_FILTER_SAVE_FAIL:case l.ISSUE_FILTERS_CONFIG_FAIL:case l.ISSUE_FILTERS_DEL_FAIL:case l.ISSUE_FILTERS_RESET_FAIL:return i({},e,{filterLoading:!1,error:t.error});case l.ISSUE_LIST_COLUMNS_SET:case l.ISSUE_LIST_COLUMNS_RESET:return i({},e,{columnsLoading:!0});case l.ISSUE_LIST_COLUMNS_SET_SUCCESS:case l.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 l.ISSUE_LIST_COLUMNS_SET_FAIL:case l.ISSUE_LIST_COLUMNS_RESET_FAIL:return i({},e,{columnsLoading:!1,error:t.error});case l.ISSUE_FILE_DELETE:return i({},e,{fileLoading:!0,historyLoaded:!1});case l.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 l.ISSUE_FILE_DELETE_FAIL:return i({},e,{fileLoading:!1,error:t.error});case l.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 l.ISSUE_WORKFLOW_ACTION:return i({},e,{itemLoading:!t.screen,loading:t.screen,historyLoaded:!1,commentsLoaded:!1});case l.ISSUE_ADD_LABELS:var r=u.default.map(u.default.filter(t.newLabels,function(t){return u.default.findIndex(e.options.labels,{name:t})===-1}),function(e){return{name:e,bgColor:""}});return r.length>0&&(e.options.labels=r.concat(e.options.labels)),i({},e,{options:e.options});case l.ISSUE_SET_ASSIGNEE:return i({},e,{historyLoaded:!1,itemLoading:!t.modelFlag});case l.ISSUE_SET_ITEM_VALUE:return i({},e,{historyLoaded:!1,itemLoading:!0});case l.ISSUE_SET_LABELS:return i({},e,{historyLoaded:!1});case l.ISSUE_STATE_RESET:return i({},e,{itemLoading:!0,historyLoaded:!1});case l.ISSUE_WORKFLOW_ACTION_SUCCESS:case l.ISSUE_STATE_RESET_SUCCESS:case l.ISSUE_SET_ASSIGNEE_SUCCESS:case l.ISSUE_SET_ITEM_VALUE_SUCCESS:case l.ISSUE_SET_LABELS_SUCCESS:if(0===t.result.ecode){var n=u.default.findIndex(e.collection,{id:t.result.data.id});n!==-1&&u.default.extend(e.collection[n],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 l.ISSUE_WORKFLOW_ACTION_FAIL:case l.ISSUE_STATE_RESET_FAIL:case l.ISSUE_SET_ASSIGNEE_FAIL:case l.ISSUE_SET_ITEM_VALUE_FAIL:case l.ISSUE_SET_LABELS_FAIL:return i({},e,{itemLoading:!1,loading:!1,error:t.error});case l.ISSUE_COMMENTS_INDEX:return i({},e,{commentsIndexLoading:!0,commentsLoading:!1,commentsCollection:[]});case l.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 l.ISSUE_COMMENTS_INDEX_FAIL:return i({},e,{commentsIndexLoading:!1,error:t.error});case l.ISSUE_COMMENTS_SORT:return e.commentsCollection.reverse(),i({},e,{commentsSort:"desc"===e.commentsSort?"asc":"desc" -});case l.ISSUE_COMMENTS_ADD:return i({},e,{commentsLoading:!0});case l.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 l.ISSUE_COMMENTS_ADD_FAIL:return i({},e,{commentsLoading:!1,error:t.error});case l.ISSUE_COMMENTS_EDIT:return i({},e,{commentsItemLoading:!0});case l.ISSUE_COMMENTS_EDIT_SUCCESS:if(0===t.result.ecode){var n=u.default.findIndex(e.commentsCollection,{id:t.result.data.id});e.commentsCollection[n]=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 l.ISSUE_COMMENTS_EDIT_FAIL:return i({},e,{commentsItemLoading:!1,error:t.error});case l.ISSUE_COMMENTS_DELETE:return i({},e,{commentsItemLoading:!0});case l.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 l.ISSUE_COMMENTS_DELETE_FAIL:return i({},e,{commentsItemLoading:!1,error:t.error});case l.ISSUE_HISTORY_INDEX:return i({},e,{historyIndexLoading:!0,historyCollection:[]});case l.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 l.ISSUE_HISTORY_INDEX_FAIL:return i({},e,{historyIndexLoading:!1,error:t.error});case l.ISSUE_HISTORY_SORT:return e.historyCollection.reverse(),i({},e,{historySort:"desc"===e.historySort?"asc":"desc"});case l.ISSUE_GITCOMMITS_INDEX:return i({},e,{gitCommitsIndexLoading:!0,gitCommitsCollection:[]});case l.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 l.ISSUE_GITCOMMITS_INDEX_FAIL:return i({},e,{gitCommitsIndexLoading:!1,error:t.error});case l.ISSUE_GITCOMMITS_SORT:return e.gitCommitsCollection.reverse(),i({},e,{gitCommitsSort:"desc"===e.gitCommitsSort?"asc":"desc"});case l.ISSUE_WORKLOG_INDEX:return i({},e,{worklogIndexLoading:!0,worklogLoading:!1,worklogCollection:[]});case l.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 l.ISSUE_WORKLOG_INDEX_FAIL:return i({},e,{worklogIndexLoading:!1,error:t.error});case l.ISSUE_WORKLOG_SORT:return e.worklogCollection.reverse(),i({},e,{worklogSort:"asc"===e.worklogSort?"desc":"asc"});case l.ISSUE_WORKLOG_ADD:return i({},e,{worklogLoading:!0});case l.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 l.ISSUE_WORKLOG_ADD_FAIL:return i({},e,{worklogLoading:!1,error:t.error});case l.ISSUE_WORKLOG_EDIT:return i({},e,{worklogLoading:!0});case l.ISSUE_WORKLOG_EDIT_SUCCESS:if(0===t.result.ecode){var n=u.default.findIndex(e.worklogCollection,{id:t.result.data.id});e.worklogCollection[n]=t.result.data}return i({},e,{worklogLoading:!1,ecode:t.result.ecode});case l.ISSUE_WORKLOG_EDIT_FAIL:return i({},e,{worklogLoading:!1,error:t.error});case l.ISSUE_WORKLOG_DELETE:return i({},e,{worklogLoading:!0});case l.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 l.ISSUE_WORKLOG_DELETE_FAIL:return i({},e,{worklogLoading:!1,error:t.error});case l.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 l.ISSUE_FORWARD:return i({},e,{visitedIndex:u.default.add(e.visitedIndex,t.offset||0)});case l.ISSUE_CLEAN_RECORD:return i({},e,{visitedIndex:-1,visitedCollection:[],itemLoading:!1});case l.ISSUE_LINK_CREATE:return i({},e,{linkLoading:!0});case l.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 l.ISSUE_LINK_CREATE_FAIL:return i({},e,{linkLoading:!1,error:t.error});case l.ISSUE_LINK_DELETE:return i({},e,{linkLoading:!0});case l.ISSUE_LINK_DELETE_SUCCESS:if(0===t.result.ecode&&!u.default.isEmpty(e.itemData)&&e.itemData.links&&e.itemData.links.length>0){var a=u.default.findIndex(e.itemData.links,{id:t.id});a>-1&&e.itemData.links.splice(a,1)}return i({},e,{linkLoading:!1,ecode:t.result.ecode});case l.ISSUE_LINK_DELETE_FAIL:return i({},e,{linkLoading:!1,error:t.error});case l.ISSUE_WATCHING_SUCCESS:if(0===t.result.ecode){var n=u.default.findIndex(e.collection,{id:t.result.data.id});if(n!==-1&&(e.collection[n].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 s=u.default.findIndex(e.itemData.watchers,{id:t.result.data.user.id});s!==-1&&e.itemData.watchers.splice(s,1)}}return i({},e,{ecode:t.result.ecode});case l.ISSUE_SPRINT_REMOVE_ISSUE:var c=u.default.reject(e.collection,function(e){return t.issue===e.no});return i({},e,{collection:c});case l.ISSUE_KANBAN_RANK_SET:return i({},e,{rankLoading:!0});case l.ISSUE_KANBAN_RANK_SET_SUCCESS:if(0===t.result.ecode&&t.result.data.rank&&t.result.data.rank.length>0){var f=function(){var n=[];return u.default.forEach(t.result.data.rank,function(t){var r=u.default.find(e.collection,{no:t});r&&n.push(r)}),{v:i({},e,{collection:n,rankLoading:!1})}}();if("object"==typeof f)return f.v}return i({},e,{rankLoading:!1});case l.ISSUE_KANBAN_RANK_SET_FAIL:return i({},e,{rankLoading:!1,error:t.error});case l.ISSUE_KANBAN_RELEASE:return i({},e,{itemLoading:!0});case l.ISSUE_KANBAN_RELEASE_SUCCESS:return 0===t.result.ecode&&u.default.forEach(t.result.data.ids||[],function(t){e.collection=u.default.reject(e.collection,{id:t})}),i({},e,{itemLoading:!1,ecode:t.result.ecode});case l.ISSUE_KANBAN_RELEASE_FAIL:return i({},e,{itemLoading:!1,error:t.error});case l.ISSUE_IMPORTS:return i({},e,{loading:!0,emsg:""});case l.ISSUE_IMPORTS_SUCCESS:return 0!==t.result.ecode&&(e.emsg=t.result.emsg),i({},e,{loading:!1,ecode:t.result.ecode});case l.ISSUE_IMPORTS_FAIL:return i({},e,{loading:!1,error:t.error});case l.ISSUE_MULTI_EDIT:case l.ISSUE_MULTI_DELETE:case l.ISSUE_MULTI_STATE_RESET:return i({},e,{loading:!0});case l.ISSUE_MULTI_EDIT_SUCCESS:case l.ISSUE_MULTI_STATE_RESET_SUCCESS:case l.ISSUE_MULTI_DELETE_SUCCESS:return i({},e,{loading:!1,ecode:t.result.ecode});case l.ISSUE_MULTI_EDIT_FAIL:case l.ISSUE_MULTI_DELETE_FAIL:case l.ISSUE_MULTI_STATE_RESET_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;t0?(e.toggled=!0,_.default.forEach(e.children,function(e){i(e)}),e.children.sort(function(e,t){return e.d==t.d||!e.d&&!t.d?e.name.localeCompare(t.name):(t.d||0)-(e.d||0)})):1==e.d&&(e.children=[])}function s(e,t){if(e.id==t)return e;for(var n=e.children?e.children.length:0,r=0;r":">","<":"<",'"':""","'":"'"},r=/[&><"']/g;t.default=function(e){return(""+e).replace(r,function(e){return n[e]})}},function(e,t,n){"use strict";function r(e){o.default.__addLocaleData(e),a.default.__addLocaleData(e)}t.__addLocaleData=r;var o=n(550),a=n(899),i=n(2145),s=n(231),l=n(2139),c=n(2144),u=n(2143),d=n(2142),p=n(2141),f=n(2140);r(i.default),t.IntlMixin=s.default,t.FormattedDate=l.default,t.FormattedTime=c.default,t.FormattedRelative=u.default,t.FormattedNumber=d.default,t.FormattedMessage=p.default,t.FormattedHTMLMessage=f.default},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case T.topCompositionStart:return D.compositionStart;case T.topCompositionEnd:return D.compositionEnd;case T.topCompositionUpdate:return D.compositionUpdate}}function i(e,t){return e===T.topKeyDown&&t.keyCode===E}function s(e,t){switch(e){case T.topKeyUp:return y.indexOf(t.keyCode)!==-1;case T.topKeyDown:return t.keyCode!==E;case T.topKeyPress:case T.topMouseDown:case T.topBlur:return!0;default:return!1}}function l(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var o,c;if(x?o=a(e):A?s(e,r)&&(o=D.compositionEnd):i(e,r)&&(o=D.compositionStart),!o)return null;k&&(A||o!==D.compositionStart?o===D.compositionEnd&&A&&(c=A.getData()):A=g.getPooled(t));var u=b.getPooled(o,n,r);if(c)u.data=c;else{var d=l(r);null!==d&&(u.data=d)}return m.accumulateTwoPhaseDispatches(u),u}function u(e,t){switch(e){case T.topCompositionEnd:return l(t);case T.topKeyPress:var n=t.which;return n!==L?null:(C=!0,M);case T.topTextInput:var r=t.data;return r===M&&C?null:r;default:return null}}function d(e,t){if(A){if(e===T.topCompositionEnd||s(e,t)){var n=A.getData();return g.release(A),A=null,n}return null}switch(e){case T.topPaste:return null;case T.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case T.topCompositionEnd:return k?null:t.data;default:return null}}function p(e,t,n,r){var o;if(o=S?u(e,r):d(e,r),!o)return null;var a=_.getPooled(D.beforeInput,n,r);return a.data=o,m.accumulateTwoPhaseDispatches(a),a}var f=n(107),m=n(342),h=n(91),g=n(2156),b=n(2190),_=n(2193),v=n(189),y=[9,13,27,32],E=229,x=h.canUseDOM&&"CompositionEvent"in window,w=null;h.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var S=h.canUseDOM&&"TextEvent"in window&&!w&&!r(),k=h.canUseDOM&&(!x||w&&w>8&&w<=11),L=32,M=String.fromCharCode(L),T=f.topLevelTypes,D={beforeInput:{phasedRegistrationNames:{bubbled:v({onBeforeInput:null}),captured:v({onBeforeInputCapture:null})},dependencies:[T.topCompositionEnd,T.topKeyPress,T.topTextInput,T.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:v({onCompositionEnd:null}),captured:v({onCompositionEndCapture:null})},dependencies:[T.topBlur,T.topCompositionEnd,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:v({onCompositionStart:null}),captured:v({onCompositionStartCapture:null})},dependencies:[T.topBlur,T.topCompositionStart,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:v({onCompositionUpdate:null}),captured:v({onCompositionUpdateCapture:null})},dependencies:[T.topBlur,T.topCompositionUpdate,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]}},C=!1,A=null,O={eventTypes:D,extractEvents:function(e,t,n,r){return[c(e,t,n,r),p(e,t,n,r)]}};e.exports=O},function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function o(e){var t=w.getPooled(T.change,C,e);y.accumulateTwoPhaseDispatches(t),x.batchedUpdates(a,t)}function a(e){v.enqueueEvents(e),v.processEventQueue()}function i(e,t){D=e,C=t,D.attachEvent("onchange",o)}function s(){D&&(D.detachEvent("onchange",o),D=null,C=null)}function l(e,t,n){if(e===M.topChange)return n}function c(e,t,n){e===M.topFocus?(s(),i(t,n)):e===M.topBlur&&s()}function u(e,t){D=e,C=t,A=e.value,O=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(D,"value",N),D.attachEvent("onpropertychange",p)}function d(){D&&(delete D.value,D.detachEvent("onpropertychange",p),D=null,C=null,A=null,O=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==A&&(A=t,o(e))}}function f(e,t,n){if(e===M.topInput)return n}function m(e,t,n){e===M.topFocus?(d(),u(t,n)):e===M.topBlur&&d()}function h(e,t,n){if((e===M.topSelectionChange||e===M.topKeyUp||e===M.topKeyDown)&&D&&D.value!==A)return A=D.value,C}function g(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function b(e,t,n){if(e===M.topClick)return n}var _=n(107),v=n(341),y=n(342),E=n(91),x=n(135),w=n(234),S=n(612),k=n(1093),L=n(189),M=_.topLevelTypes,T={change:{phasedRegistrationNames:{bubbled:L({onChange:null}),captured:L({onChangeCapture:null})},dependencies:[M.topBlur,M.topChange,M.topClick,M.topFocus,M.topInput,M.topKeyDown,M.topKeyUp,M.topSelectionChange]}},D=null,C=null,A=null,O=null,I=!1;E.canUseDOM&&(I=S("change")&&(!("documentMode"in document)||document.documentMode>8));var Y=!1;E.canUseDOM&&(Y=S("input")&&(!("documentMode"in document)||document.documentMode>9));var N={get:function(){return O.get.call(this)},set:function(e){A=""+e,O.set.call(this,e)}},F={eventTypes:T,extractEvents:function(e,t,n,o){var a,i;if(r(t)?I?a=l:i=c:k(t)?Y?a=f:(a=h,i=m):g(t)&&(a=b),a){var s=a(e,t,n);if(s){var u=w.getPooled(T.change,s,o);return y.accumulateTwoPhaseDispatches(u),u}}i&&i(e,t,n)}};e.exports=F},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var o=n(2152),a=n(1080),i=n(2216),s=n(28),l={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:i,processUpdates:function(e,t){for(var n,l=null,c=null,u=0;u]+)/,u="data-danger-index",d={dangerouslyRenderMarkup:function(e){l(o.canUseDOM);for(var t,n={},d=0;d1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(278),a=n(91),i=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,l=o.injection.HAS_BOOLEAN_VALUE,c=o.injection.HAS_SIDE_EFFECTS,u=o.injection.HAS_NUMERIC_VALUE,d=o.injection.HAS_POSITIVE_NUMERIC_VALUE,p=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var f=document.implementation;r=f&&f.hasFeature&&f.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var m={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|l,allowTransparency:i,alt:null,async:l,autoComplete:null,autoPlay:l,cellPadding:null,cellSpacing:null,charSet:i,checked:s|l,classID:i,className:r?i:s,cols:i|d,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:s|l,coords:null,crossOrigin:null,data:null,dateTime:i,defer:l,dir:null,disabled:i|l,download:p,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:l,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,label:null,lang:null,list:i,loop:s|l,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,multiple:s|l,muted:s|l,name:null,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|l,rel:null,required:l,role:i,rows:i|d,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:i|l,selected:s|l,shape:null,size:i|d,sizes:i,span:d,spellCheck:null,src:null,srcDoc:s,srcSet:i,start:u,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|c,width:i,wmode:i,autoCapitalize:null,autoCorrect:null,itemProp:i,itemScope:i|l,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=m},function(e,t,n){"use strict";var r=n(107),o=n(188),a=r.topLevelTypes,i={eventTypes:null,extractEvents:function(e,t,n,r){if(e===a.topTouchStart){var i=r.target;i&&!i.onclick&&(i.onclick=o)}}};e.exports=i},function(e,t,n){"use strict";var r=n(595),o=n(2161),a=n(1075),i=n(108),s=n(600),l=n(155),c=n(50),u=(n(343),n(2163)),d=n(1077),p=n(2174),f=n(280),m=n(156),h=n(233),g=n(1081),b=n(282),_=n(2183),v=n(49),y=n(1086),E=n(2214);p.inject();var x=c.createElement,w=c.createFactory,S=c.cloneElement,k=h.measure("React","render",m.render),L={Children:{map:o.map,forEach:o.forEach,count:o.count,only:E},Component:a,DOM:u,PropTypes:g,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:i.createClass,createElement:x,cloneElement:S,createFactory:w,createMixin:function(e){return e},constructAndRenderComponent:m.constructAndRenderComponent,constructAndRenderComponentByID:m.constructAndRenderComponentByID,findDOMNode:y,render:k,renderToString:_.renderToString,renderToStaticMarkup:_.renderToStaticMarkup,unmountComponentAtNode:m.unmountComponentAtNode,isValidElement:c.isValidElement,withContext:s.withContext,__spread:v};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:l,InstanceHandles:f,Mount:m,Reconciler:b,TextComponent:d});L.version="0.13.3",e.exports=L},function(e,t,n){"use strict";var r=n(282),o=n(2204),a=n(611),i=n(614),s={instantiateChildren:function(e,t,n){var r=o(e);for(var i in r)if(r.hasOwnProperty(i)){var s=r[i],l=a(s,null);r[i]=l}return r},updateChildren:function(e,t,n,s){var l=o(t);if(!l&&!e)return null;var c;for(c in l)if(l.hasOwnProperty(c)){var u=e&&e[c],d=u&&u._currentElement,p=l[c];if(i(d,p))r.receiveComponent(u,p,n,s),l[c]=u;else{u&&r.unmountComponent(u,c);var f=a(p,null);l[c]=f}}for(c in e)!e.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||r.unmountComponent(e[c]);return l},unmountChildren:function(e){for(var t in e){var n=e[t];r.unmountComponent(n)}}};e.exports=s},function(e,t,n){"use strict";function r(e,t){this.forEachFunction=e,this.forEachContext=t}function o(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function a(e,t,n){if(null==e)return e;var a=r.getPooled(t,n);f(e,o,a),r.release(a)}function i(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function s(e,t,n,r){var o=e,a=o.mapResult,i=!a.hasOwnProperty(n);if(i){var s=o.mapFunction.call(o.mapContext,t,r);a[n]=s}}function l(e,t,n){if(null==e)return e;var r={},o=i.getPooled(r,t,n);return f(e,s,o),i.release(o),p.create(r)}function c(e,t,n,r){return null}function u(e,t){return f(e,c,null)}var d=n(153),p=n(427),f=n(1094),m=(n(51),d.twoArgumentPooler),h=d.threeArgumentPooler;d.addPoolingTo(r,m),d.addPoolingTo(i,h);var g={forEach:a,map:l,count:u};e.exports=g},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var o=n(599),a=n(600),i=n(155),s=n(50),l=(n(343),n(281)),c=n(603),u=n(428),d=n(233),p=n(604),f=(n(429),n(282)),m=n(135),h=n(49),g=n(432),b=n(28),_=n(614),v=(n(51),1),y={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,n){this._context=n,this._mountOrder=v++,this._rootNodeID=e;var r=this._processProps(this._currentElement.props),o=this._processContext(this._currentElement._context),a=u.getComponentClassForElement(this._currentElement),i=new a(r,o);i.props=r,i.context=o,i.refs=g,this._instance=i,l.set(i,this);var s=i.state;void 0===s&&(i.state=s=null),b("object"==typeof s&&!Array.isArray(s)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var d,p,m=c.currentlyMountingInstance;c.currentlyMountingInstance=this;try{i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),d=this._getValidatedChildContext(n),p=this._renderValidatedComponent(d)}finally{c.currentlyMountingInstance=m}this._renderedComponent=this._instantiateReactComponent(p,this._currentElement.type);var h=f.mountComponent(this._renderedComponent,e,t,this._mergeChildContext(n,d));return i.componentDidMount&&t.getReactMountReady().enqueue(i.componentDidMount,i),h},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=c.currentlyUnmountingInstance;c.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{c.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,l.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=s.cloneAndReplaceProps(n,h({},n.props,e)),m.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return g;var n=this._currentElement.type.contextTypes;if(!n)return g;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var t=this._maskContext(e);return t},_getValidatedChildContext:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();if(n){b("object"==typeof t.constructor.childContextTypes);for(var r in n)b(r in t.constructor.childContextTypes);return n}return null},_mergeChildContext:function(e,t){return t?h({},e,t):e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var i;try{b("function"==typeof e[a]),i=e[a](t,a,o,n)}catch(s){i=s}if(i instanceof Error){r(this);n===p.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},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 n=Object.keys(t).sort(),r=(this.getName()||"ReactCompositeComponent",0);r must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to must be a scalar value if `multiple` is false.")}function a(e,t){var n,r,o,a=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;rt.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[u()].length,o=Math.min(t.start,r),a="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>a){var i=a;a=o,o=i}var s=c(e,o),l=c(e,a);if(s&&l){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),o>a?(n.addRange(d),n.extend(l.node,l.offset)):(d.setEnd(l.node,l.offset),n.addRange(d))}}}var l=n(91),c=n(2206),u=n(1091),d=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?o:a,setOffsets:d?i:s};e.exports=p},function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=n(426),a=n(340),i=n(596),s=n(154),l=n(108),c=n(50),u=n(135),d=n(49),p=n(28),f=(n(51),c.createFactory("textarea")),m=l.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,i.Mixin,s],getInitialState:function(){var e=this.props.defaultValue,t=this.props.children;null!=t&&(p(null==e),Array.isArray(t)&&(p(t.length<=1),t=t[0]),e=""+t),null==e&&(e="");var n=i.getValue(this);return{initialValue:""+(null!=n?n:e)}},render:function(){var e=d({},this.props);return p(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,f(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=i.getValue(this);if(null!=r){var o=this.getDOMNode();a.setValueForProperty(o,"value",""+r)}},_handleChange:function(e){var t,n=i.getOnChange(this);return n&&(t=n.call(this,e)),u.asap(r,this),t}});e.exports=m},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(135),a=n(431),i=n(49),s=n(188),l={initialize:s,close:function(){p.isBatchingUpdates=!1}},c={initialize:s,close:o.flushBatchedUpdates.bind(o)},u=[c,l];i(r.prototype,a.Mixin,{getTransactionWrappers:function(){return u}});var d=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?e(t,n,r,o):d.perform(e,null,t,n,r,o)}};e.exports=p},function(e,t,n){"use strict";function r(e){return m.createClass({tagName:e.toUpperCase(),render:function(){return new T(e,null,null,null,null,this.props)}})}function o(){C.EventEmitter.injectReactEventListener(D),C.EventPluginHub.injectEventPluginOrder(l),C.EventPluginHub.injectInstanceHandle(A),C.EventPluginHub.injectMount(O),C.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:F,EnterLeaveEventPlugin:c,ChangeEventPlugin:i,MobileSafariClickEventPlugin:p,SelectEventPlugin:Y,BeforeInputEventPlugin:a}),C.NativeComponent.injectGenericComponentClass(b),C.NativeComponent.injectTextComponentClass(M), +C.NativeComponent.injectAutoWrapper(r),C.Class.injectMixin(f),C.NativeComponent.injectComponentClasses({button:_,form:v,iframe:x,img:y,input:w,option:S,select:k,textarea:L,html:P("html"),head:P("head"),body:P("body")}),C.DOMProperty.injectDOMPropertyConfig(d),C.DOMProperty.injectDOMPropertyConfig(R),C.EmptyComponent.injectEmptyComponent("noscript"),C.Updates.injectReconcileTransaction(I),C.Updates.injectBatchingStrategy(g),C.RootIndex.injectCreateReactRootIndex(u.canUseDOM?s.createReactRootIndex:N.createReactRootIndex),C.Component.injectEnvironment(h),C.DOMComponent.injectIDOperations(E)}var a=n(2148),i=n(2149),s=n(2150),l=n(2153),c=n(2154),u=n(91),d=n(2157),p=n(2158),f=n(154),m=n(108),h=n(598),g=n(2173),b=n(601),_=n(2164),v=n(2165),y=n(2167),E=n(1076),x=n(2166),w=n(2168),S=n(2169),k=n(2170),L=n(2172),M=n(1077),T=n(50),D=n(2177),C=n(2178),A=n(280),O=n(156),I=n(2181),Y=n(2186),N=n(2187),F=n(2188),R=n(2185),P=n(2201);e.exports={inject:o}},function(e,t){"use strict";var n={guard:function(e,t){return e}};e.exports=n},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue()}var o=n(341),a={handleTopLevel:function(e,t,n,a){var i=o.extractEvents(e,t,n,a);r(i)}};e.exports=a},function(e,t,n){"use strict";function r(e){var t=d.getID(e),n=u.getReactRootIDFromNodeID(t),r=d.findReactContainerForID(n),o=d.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){for(var t=d.getFirstReactDOM(m(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0,a=e.ancestors.length;o=t)return{node:o,offset:t-a};a=i}o=n(r(o))}}e.exports=o},function(e,t){"use strict";function n(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;e.exports=n},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(a,"-ms-")}var o=n(2209),a=/^ms-/;e.exports=r},function(e,t,n){function r(e){return o(e)&&3==e.nodeType}var o=n(1092);e.exports=r},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var a in e)r.call(e,a)&&(o[a]=t.call(n,e[a],a,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){return a(o.isValidElement(e)),e}var o=n(50),a=n(28);e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(433);e.exports=r},function(e,t,n){"use strict";var r=n(91),o=n(433),a=n(613),i=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){a(e,o(t))})),e.exports=i},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}e.exports=n},function(e,t,n){function r(e){var t=e.length;if(o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),o("number"==typeof t),o(0===t||t-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),a=0;ae.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(l({},this.props,c,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(d.Component);t.default=x,x.propTypes=v,x.defaultProps=E,e.exports=t.default},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;t=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=_.call(o,"catchLoc"),s=_.call(o,"finallyLoc");if(i&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),f(n),L}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},L}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,function(){return this}(),n(213))},function(e,t,n){"use strict";var r=n(2826).isRegExp,o=Math.floor(1099511627776*Math.random()).toString(16),a=new RegExp('"@__(FUNCTION|REGEXP)-'+o+'-(\\d+)__@"',"g"),i=/\{\s*\[native code\]\s*\}/g,s=/[<>\/\u2028\u2029]/g,l={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};e.exports=function(e,t){var n,c=[],u=[];return n=JSON.stringify(e,function(e,t){return"function"==typeof t?"@__FUNCTION-"+o+"-"+(c.push(t)-1)+"__@":"object"==typeof t&&r(t)?"@__REGEXP-"+o+"-"+(u.push(t)-1)+"__@":t},t),"string"!=typeof n?String(n):(n=n.replace(s,function(e){return l[e]}),0===c.length&&0===u.length?n:n.replace(a,function(e,t,n){if("REGEXP"===t)return u[n].toString();var r=c[n],o=r.toString();if(i.test(o))throw new TypeError("Serializing native function: "+r.name);return o}))}},,function(e,t,n){var r=n(1440);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1441);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1442);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1443);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1444);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1445);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1446);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1447);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1448);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1449);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1450);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1451);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1452);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1453);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1454);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1455);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1456);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1457);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(1458);"string"==typeof r&&(r=[[e.id,r,""]]);n(67)(r,{});r.locals&&(e.exports=r.locals)},,,function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoEAIAAABTDPN5AAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAA4ElEQVRo3u3YMQoCMRBG4c02XkCQLcXKwsN5Eq+znScRa8FasLP4q0DGZASLecmr0mSHr9tMuh5Pr91+MnpfnofHfXK2OW9v9jdb+t/cuR+qCaZSC2A2NQP3QFVpXZfFfy0iVc3eC3GpmusAR6fq3ARmUJvAJGoFzKOaYCq1AGZTM3APVJW+v5ZIVOX+8YhL1dwfwRGpOrvBcalucHSqA8ygNoFJ1AqYRzXBVGoBzKZm4B6oauy0uNSx06JTm8AkagXMo5pgKrUAZlMzcA9UNXZaXOrYadGpbnB0qgPMoKoPsn/eaLRwj54AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTUtMDMtMTFUMDg6NDk6MzUtMDc6MDA6ngyxAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE1LTAzLTExVDA4OjQ5OjM1LTA3OjAwS8O0DQAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoEAAAAAD5BTvyAAAAAmJLR0T//xSrMc0AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAB6SURBVEjH7dXLEYAgDEVRqk0HNmpFMgxi+Lnw3Z0hSzJnmZuO8x6b3vPn530vsVwDKa6CHFdAkssgyy1AjTNLLDeAOteBBOdAhmsgxVWQ4wpIchlkuQ34nXPni+EWoMZNoMoNoM51IMFFU3QumqJz0RSdi6bo3C+bcgHap6IryOSd+AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNS0wMy0xMVQwODo0OTozNS0wNzowMDqeDLEAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTUtMDMtMTFUMDg6NDk6MzUtMDc6MDBLw7QNAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkAQAAAADcH0/XAAAAAmJLR0QAAd2KE6QAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAPSURBVCjPY2AYBaOA+gAAAlgAAXU2hncAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTUtMDMtMTFUMDg6NDk6MzUtMDc6MDA6ngyxAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE1LTAzLTExVDA4OjQ5OjM1LTA3OjAwS8O0DQAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQEAAAAAAao4lEAAAAAmJLR0T//xSrMc0AAAAJcEhZcwAAAEgAAABIAEbJaz4AAABISURBVDjLY/g1mWEUjSKqo2/fGL5LMXzPYfh+nOGHFsOPBQw/xRh+TmX4JcLwq4vhNwPD71yG3xcZ/igx/Ilk+JM0ikYRMQgA8pJH3iOhTlAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTUtMDMtMTFUMDg6NDk6MzQtMDc6MDCc6QcFAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE1LTAzLTExVDA4OjQ5OjM0LTA3OjAw7bS/uQAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQEAIAAACwqkHPAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAmklEQVRIx+3PPwsBARgH4N/7s0gmXZSuKMvNdl/AV2A1X1ltzBaf5UazEp3RpKujFMV0uT/dy6cQwzs98wPdZVk8IwAAhmEYxrdBWSZJGFKq4smGaGDENeFgwgfREp8d6Ph1OEZEWxaVOXSVRieHcGXJALrNnvEQes6nlz20yO9Xl9IUn128e0VwS4k6BvQIoob+X6QNwzB+yAca/jJVRVy4gQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNS0wMy0xMVQwODo0OTozNS0wNzowMDqeDLEAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTUtMDMtMTFUMDg6NDk6MzUtMDc6MDBLw7QNAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQAQAAAABHIzd2AAAAAmJLR0QAAd2KE6QAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAARSURBVCjPY2hgGIWjcBTigACVaMgB0zSxaQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNS0wMy0xMVQwODo0OTozNC0wNzowMJzpBwUAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTUtMDMtMTFUMDg6NDk6MzQtMDc6MDDttL+5AAAAAElFTkSuQmCC"},function(e,t,n){e.exports=n.p+"ZmbEGAc.png"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkEAAAAAAy19n/AAAAAmJLR0T//xSrMc0AAAAJcEhZcwAAAEgAAABIAEbJaz4AAABYSURBVBjTxcK9DUBAAIDRjxk0dBQaE4gR7KFVM4rEDBIjEKVV7s79OZ0teHk8FR/NCAehJ6TcK3eD3/EtbsPV2AVbYmZMgh7RMdfAFaEmVIE8kR0yR4gfv1IulNTJHsTLAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE1LTAzLTExVDA4OjQ5OjM0LTA3OjAwnOkHBQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNS0wMy0xMVQwODo0OTozNC0wNzowMO20v7kAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkEAIAAACY3hF0AAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAhklEQVQoz+WQMQrCUBBEH1NaCzaxTc7iHcwhcoiktP6kS8BK8BIWHkYQrM1mLD5Bb6Bg9Xg7syws9mNztADgj3CjFbifk4A+0od1UWDfr2kloJkGgZsYBdRTKfB+qgTOtgzrqHJWCtg9T++9pdnEIHAb22yjwPk6XRQCzvNa4IsP3//ST+MF5uU/iXGyfBoAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTUtMDMtMTFUMDg6NDk6MzUtMDc6MDA6ngyxAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE1LTAzLTExVDA4OjQ5OjM1LTA3OjAwS8O0DQAAAABJRU5ErkJggg=="},function(e,t,n){e.exports=n.p+"1x7zSk8.png"},function(e,t,n){e.exports=n.p+"3PPSXkJ.png"},function(e,t,n){e.exports=n.p+"3fwwhm_.png"},function(e,t,n){e.exports=n.p+"3F_ZjKn.png"},function(e,t,n){e.exports=n.p+"13dTbE_.svg"},function(e,t,n){e.exports=n.p+"CwKxS4A.ttf"},function(e,t,n){e.exports=n.p+"1DiGtnz.woff"},function(e,t,n){e.exports=n.p+"23S_MeV.woff2"},function(e,t,n){e.exports=n.p+"2yxzQba.eot"},2818,function(e,t,n){e.exports=n.p+"11hlE1p.svg"},function(e,t,n){e.exports=n.p+"1HCVL_B.ttf"},function(e,t,n){e.exports=n.p+"2EYFMXv.woff2"},function(e,t,n){e.exports=n.p+"sEsywAO.woff"},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,n){(function(e,r){function o(e,n){var r={seen:[],stylize:i};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),E(r.showHidden)&&(r.showHidden=!1),E(r.depth)&&(r.depth=2),E(r.colors)&&(r.colors=!1),E(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),l(r,e,r.depth)}function a(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function i(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function l(e,n,r){if(e.customInspect&&n&&L(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return v(o)||(o=l(e,o,r)),o}var a=c(e,n);if(a)return a;var i=Object.keys(n),h=s(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),k(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return u(n);if(0===i.length){if(L(n)){var g=n.name?": "+n.name:"";return e.stylize("[Function"+g+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return u(n)}var b="",_=!1,y=["{","}"];if(m(n)&&(_=!0,y=["[","]"]),L(n)){var E=n.name?": "+n.name:"";b=" [Function"+E+"]"}if(x(n)&&(b=" "+RegExp.prototype.toString.call(n)),S(n)&&(b=" "+Date.prototype.toUTCString.call(n)),k(n)&&(b=" "+u(n)),0===i.length&&(!_||0==n.length))return y[0]+b+y[1];if(r<0)return x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var w;return w=_?d(e,n,r,h,i):i.map(function(t){return p(e,n,r,h,t,_)}),e.seen.pop(),f(w,b,y)}function c(e,t){if(E(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o){for(var a=[],i=0,s=t.length;i-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),E(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function f(e,t,n){var r=0,o=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function m(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return null==e}function _(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return"symbol"==typeof e}function E(e){return void 0===e}function x(e){return w(e)&&"[object RegExp]"===T(e)}function w(e){return"object"==typeof e&&null!==e}function S(e){return w(e)&&"[object Date]"===T(e)}function k(e){return w(e)&&("[object Error]"===T(e)||e instanceof Error)}function L(e){return"function"==typeof e}function M(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function T(e){return Object.prototype.toString.call(e)}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var C=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),s=r[n];nt&&!a||!o||n&&!i&&u||r&&u)return 1;if(e-1;);return n}function f(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function d(e,t){return a(e.criteria,t.criteria)||e.index-t.index}function p(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,u=o.length,s=n.length;++r=s)return l;var c=n[r];return l*("asc"===c||c===!0?1:-1)}}return e.index-t.index}function h(e){return qe[e]}function y(e){return Ge[e]}function v(e,t,n){return t?e=$e[e]:n&&(e=Ze[e]),"\\"+e}function m(e){return"\\"+Ze[e]}function g(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o=9&&e<=13||32==e||160==e||5760==e||6158==e||e>=8192&&(e<=8202||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function x(e,t){for(var n=-1,r=e.length,o=-1,a=[];++n=H?yn(t):null,l=t.length;s&&(a=Ze,i=!1,t=s);e:for(;++oo?0:o+n),r=r===C||r>o?o:+r||0,r<0&&(r+=o),o=n>r?0:r>>>0,n>>>=0;no?0:o+t),n=n===C||n>o?o:+n||0,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Va(o);++r=H,s=i?yn():null,l=[];s?(r=Ze,a=!1):(i=!1,s=t?[]:l);e:for(;++n>>1,i=e[a];(n?i<=t:i2?n[o-2]:C,i=o>2?n[2]:C,u=o>1?n[o-1]:C;for("function"==typeof a?(a=an(a,u,5),o-=2):(a="function"==typeof u?u:C,o-=a?1:0),i&&Jn(n[0],n[1],i)&&(a=o<3?C:a,o=1);++r-1?n[a]:C}return St(n,r,e)}}function Tn(e){return function(t,n,r){return t&&t.length?(n=Vn(n,r,3),i(t,n,e)):-1}}function En(e){return function(t,n,r){return n=Vn(n,r,3),St(t,n,e,!0)}}function On(e){return function(){for(var t,n=arguments.length,o=e?n:-1,a=0,i=Va(n);e?o--:++o=H)return t.plant(r).value();for(var o=0,a=n?i[o].apply(this,e):r;++o=t||!_i(t))return"";var o=t-r;return n=null==n?" ":n+"",ma(n,vi(o/n.length)).slice(0,o)}function Dn(e,t,n,r){function o(){for(var t=-1,u=arguments.length,s=-1,l=r.length,c=Va(l+u);++ss))return!1;for(;++u-1&&e%1==0&&e-1&&e%1==0&&e<=Ni}function rr(e){return e===e&&!Io(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,a=o-1;)pi.call(t,a,1);return t}function Mr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,a=[],i=e.length;for(t=Vn(t,n,3);++o-1:!!o&&Wn(e,t,n)>-1}function eo(e,t,n){var r=Mu(e)?st:Ft;return t=Vn(t,n,3),r(e,t)}function to(e,t){return eo(e,Da(t))}function no(e,t,n){var r=Mu(e)?ut:Ct;return t=Vn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?Jn(e,t,n):null==t){e=cr(e);var r=e.length;return r>0?e[qt(0,r-1)]:C}var o=-1,a=Yo(e),r=a.length,i=r-1;for(t=Ei(t<0?0:+t||0,r);++o0&&(n=t.apply(this,arguments)),e<=1&&(t=C),n}}function ho(e,t,n){function r(){p&&ui(p),l&&ui(l),y=0,l=p=h=C}function o(t,n){n&&ui(n),l=p=h=C, +!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(a,i){for(var u,s,l=0,c=[];lt&&!a||!o||n&&!i&&u||r&&u)return 1;if(e-1;);return n}function f(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function d(e,t){return a(e.criteria,t.criteria)||e.index-t.index}function p(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,u=o.length,s=n.length;++r=s)return l;var c=n[r];return l*("asc"===c||c===!0?1:-1)}}return e.index-t.index}function h(e){return qe[e]}function y(e){return Ge[e]}function v(e,t,n){return t?e=$e[e]:n&&(e=Ze[e]),"\\"+e}function m(e){return"\\"+Ze[e]}function g(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o=9&&e<=13||32==e||160==e||5760==e||6158==e||e>=8192&&(e<=8202||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function x(e,t){for(var n=-1,r=e.length,o=-1,a=[];++n=H?yn(t):null,l=t.length;s&&(a=Ze,i=!1,t=s);e:for(;++oo?0:o+n),r=r===C||r>o?o:+r||0,r<0&&(r+=o),o=n>r?0:r>>>0,n>>>=0;no?0:o+t),n=n===C||n>o?o:+n||0,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Va(o);++r=H,s=i?yn():null,l=[];s?(r=Ze,a=!1):(i=!1,s=t?[]:l);e:for(;++n>>1,i=e[a];(n?i<=t:i2?n[o-2]:C,i=o>2?n[2]:C,u=o>1?n[o-1]:C;for("function"==typeof a?(a=an(a,u,5),o-=2):(a="function"==typeof u?u:C,o-=a?1:0),i&&Jn(n[0],n[1],i)&&(a=o<3?C:a,o=1);++r-1?n[a]:C}return St(n,r,e)}}function Tn(e){return function(t,n,r){return t&&t.length?(n=Vn(n,r,3),i(t,n,e)):-1}}function En(e){return function(t,n,r){return n=Vn(n,r,3),St(t,n,e,!0)}}function On(e){return function(){for(var t,n=arguments.length,o=e?n:-1,a=0,i=Va(n);e?o--:++o=H)return t.plant(r).value();for(var o=0,a=n?i[o].apply(this,e):r;++o=t||!_i(t))return"";var o=t-r;return n=null==n?" ":n+"",ma(n,vi(o/n.length)).slice(0,o)}function Dn(e,t,n,r){function o(){for(var t=-1,u=arguments.length,s=-1,l=r.length,c=Va(l+u);++ss))return!1;for(;++u-1&&e%1==0&&e-1&&e%1==0&&e<=Ni}function rr(e){return e===e&&!Io(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,a=o-1;)pi.call(t,a,1);return t}function Mr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,a=[],i=e.length;for(t=Vn(t,n,3);++o-1:!!o&&Wn(e,t,n)>-1}function eo(e,t,n){var r=Mu(e)?st:Ft;return t=Vn(t,n,3),r(e,t)}function to(e,t){return eo(e,Da(t))}function no(e,t,n){var r=Mu(e)?ut:Ct;return t=Vn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?Jn(e,t,n):null==t){e=cr(e);var r=e.length;return r>0?e[qt(0,r-1)]:C}var o=-1,a=Yo(e),r=a.length,i=r-1;for(t=Ei(t<0?0:+t||0,r);++o0&&(n=t.apply(this,arguments)),e<=1&&(t=C),n}}function ho(e,t,n){function r(){p&&ui(p),l&&ui(l),y=0,l=p=h=C}function o(t,n){n&&ui(n),l=p=h=C, t&&(y=yu(),c=e.apply(d,s),p||l||(s=d=C))}function a(){var e=t-(yu()-f);e<=0||e>t?o(h,l):p=di(a,e)}function i(){o(m,p)}function u(){if(s=arguments,f=yu(),d=this,h=m&&(p||!g),v===!1)var n=g&&!p;else{l||g||(y=f);var r=v-(f-y),o=r<=0||r>v;o?(l&&(l=ui(l)),y=f,c=e.apply(d,s)):l||(l=di(i,r))}return o&&p?p=ui(p):p||t===v||(p=di(a,t)),n&&(o=!0,c=e.apply(d,s)),!o||p||l||(s=d=C),c}var s,l,c,f,d,p,h,y=0,v=!1,m=!0;if("function"!=typeof e)throw new $a(K);if(t=t<0?0:+t||0,n===!0){var g=!0;m=!1}else Io(n)&&(g=!!n.leading,v="maxWait"in n&&Ti(+n.maxWait||0,t),m="trailing"in n?!!n.trailing:m);return u.cancel=r,u}function yo(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new $a(K);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new yo.Cache,n}function vo(e){if("function"!=typeof e)throw new $a(K);return function(){return!e.apply(this,arguments)}}function mo(e){return po(2,e)}function go(e,t){if("function"!=typeof e)throw new $a(K);return t=Ti(t===C?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=Ti(n.length-t,0),a=Va(o);++rt}function wo(e,t){return e>=t}function Po(e){return b(e)&&Zn(e)&&ti.call(e,"callee")&&!ci.call(e,"callee")}function Co(e){return e===!0||e===!1||b(e)&&ri.call(e)==X}function So(e){return b(e)&&ri.call(e)==$}function Mo(e){return!!e&&1===e.nodeType&&b(e)&&!Vo(e)}function ko(e){return null==e||(Zn(e)&&(Mu(e)||Wo(e)||Po(e)||b(e)&&Do(e.splice))?!e.length:!Uu(e).length)}function Ao(e,t,n,r){n="function"==typeof n?an(n,r,3):C;var o=n?n(e,t):C;return o===C?It(e,t,n):!!o}function No(e){return b(e)&&"string"==typeof e.message&&ri.call(e)==Z}function Ro(e){return"number"==typeof e&&_i(e)}function Do(e){return Io(e)&&ri.call(e)==Q}function Io(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function jo(e,t,n,r){return n="function"==typeof n?an(n,r,3):C,Lt(e,zn(t),n)}function Lo(e){return Uo(e)&&e!=+e}function Fo(e){return null!=e&&(Do(e)?ai.test(ei.call(e)):b(e)&&je.test(e))}function Bo(e){return null===e}function Uo(e){return"number"==typeof e||b(e)&&ri.call(e)==ee}function Vo(e){var t;if(!b(e)||ri.call(e)!=te||Po(e)||!ti.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return kt(e,function(e,t){n=t}),n===C||ti.call(e,n)}function Ho(e){return Io(e)&&ri.call(e)==ne}function Wo(e){return"string"==typeof e||b(e)&&ri.call(e)==oe}function zo(e){return b(e)&&nr(e.length)&&!!ze[ri.call(e)]}function Ko(e){return e===C}function qo(e,t){return e0;++r=Ei(t,n)&&e=0&&e.indexOf(t,n)==n}function pa(e){return e=l(e),e&&Te.test(e)?e.replace(_e,y):e}function ha(e){return e=l(e),e&&ke.test(e)?e.replace(Me,v):e||"(?:)"}function ya(e,t,n){e=l(e),t=+t;var r=e.length;if(r>=t||!_i(t))return e;var o=(t-r)/2,a=gi(o),i=vi(o);return n=Rn("",i,n),n.slice(0,a)+e+n}function va(e,t,n){return(n?Jn(e,t,n):null==t)?t=0:t&&(t=+t),e=_a(e),wi(e,t||(Ie.test(e)?16:10))}function ma(e,t){var n="";if(e=l(e),t=+t,t<1||!e||!_i(t))return n;do t%2&&(n+=e),t=gi(t/2),e+=e;while(t);return n}function ga(e,t,n){return e=l(e),n=null==n?0:Ei(n<0?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function ba(e,n,r){var o=t.templateSettings;r&&Jn(e,n,r)&&(n=r=C),e=l(e),n=vt(mt({},r||n),o,yt);var a,i,u=vt(mt({},n.imports),o.imports,yt),s=Uu(u),c=en(u,s),f=0,d=n.interpolate||Be,p="__p += '",h=Ya((n.escape||Be).source+"|"+d.source+"|"+(d===we?Re:Be).source+"|"+(n.evaluate||Be).source+"|$","g"),y="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++We+"]")+"\n";e.replace(h,function(t,n,r,o,u,s){return r||(r=o),p+=e.slice(f,s).replace(Ue,m),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=s+t.length,t}),p+="';\n";var v=n.variable;v||(p="with (obj) {\n"+p+"\n}\n"),p=(i?p.replace(ve,""):p).replace(me,"$1").replace(ge,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Zu(function(){return za(s,y+"return "+p).apply(C,c)});if(g.source=p,No(g))throw g;return g}function _a(e,t,n){var r=e;return(e=l(e))?(n?Jn(r,t,n):null==t)?e.slice(E(e),O(e)+1):(t+="",e.slice(c(e,t),f(e,t)+1)):e}function xa(e,t,n){var r=e;return e=l(e),e?(n?Jn(r,t,n):null==t)?e.slice(E(e)):e.slice(c(e,t+"")):e}function Ta(e,t,n){var r=e;return e=l(e),e?(n?Jn(r,t,n):null==t)?e.slice(0,O(e)+1):e.slice(0,f(e,t+"")+1):e}function Ea(e,t,n){n&&Jn(e,t,n)&&(t=C);var r=F,o=B;if(null!=t)if(Io(t)){var a="separator"in t?t.separator:a;r="length"in t?+t.length||0:r,o="omission"in t?l(t.omission):o}else r=+t||0;if(e=l(e),r>=e.length)return e;var i=r-o.length;if(i<1)return o;var u=e.slice(0,i);if(null==a)return u+o;if(Ho(a)){if(e.slice(i).search(a)){var s,c,f=e.slice(0,i);for(a.global||(a=Ya(a.source,(De.exec(a)||"")+"g")),a.lastIndex=0;s=a.exec(f);)c=s.index;u=u.slice(0,null==c?i:c)}}else if(e.indexOf(a,i)!=i){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+o}function Oa(e){return e=l(e),e&&xe.test(e)?e.replace(be,w):e}function wa(e,t,n){return n&&Jn(e,t,n)&&(t=C),e=l(e),e.match(t||Ve)||[]}function Pa(e,t,n){return n&&Jn(e,t,n)&&(t=C),b(e)?Ma(e):_t(e,t)}function Ca(e){return function(){return e}}function Sa(e){return e}function Ma(e){return Bt(xt(e,!0))}function ka(e,t){return Ut(e,xt(t,!0))}function Aa(e,t,n){if(null==n){var r=Io(t),o=r?Uu(t):C,a=o&&o.length?Rt(t,o):C;(a?a.length:r)||(a=!1,n=t,t=e,e=this)}a||(a=Rt(t,Uu(t)));var i=!0,u=-1,s=Do(e),l=a.length;n===!1?i=!1:Io(n)&&"chain"in n&&(i=n.chain);for(;++u>>1,Ni=9007199254740991,Ri=yi&&new yi,Di={};t.support={};t.templateSettings={escape:Ee,evaluate:Oe,interpolate:we,variable:"",imports:{_:t}};var Ii=function(){function e(){}return function(t){if(Io(t)){e.prototype=t;var n=new e;e.prototype=C}return n||{}}}(),ji=dn(At),Li=dn(Nt,!0),Fi=pn(),Bi=pn(!0),Ui=Ri?function(e,t){return Ri.set(e,t),e}:Sa,Vi=Ri?function(e){return Ri.get(e)}:Ra,Hi=Wt("length"),Wi=function(){var e=0,t=0;return function(n,r){var o=yu(),a=V-(o-t);if(t=o,a>0){if(++e>=U)return n}else e=0;return Ui(n,r)}}(),zi=go(function(e,t){return b(e)&&Zn(e)?Et(e,Mt(t,!1,!0)):[]}),Ki=Tn(),qi=Tn(!0),Gi=go(function(e){for(var t=e.length,n=t,r=Va(f),o=Wn(),a=o==u,i=[];n--;){var s=e[n]=Zn(s=e[n])?s:[];r[n]=a&&s.length>=120?yn(n&&s):null}var l=e[0],c=-1,f=l?l.length:0,d=r[0];e:for(;++c2?e[t-2]:C,r=t>1?e[t-1]:C;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):C,r=C),e.length=t,Fr(e,n,r)}),tu=go(function(e){return e=Mt(e),this.thru(function(t){return Je(Mu(t)?t:[fr(t)],e)})}),nu=go(function(e,t){return gt(e,Mt(t))}),ru=cn(function(e,t,n){ti.call(e,n)?++e[n]:e[n]=1}),ou=xn(ji),au=xn(Li,!0),iu=wn(tt,ji),uu=wn(nt,Li),su=cn(function(e,t,n){ti.call(e,n)?e[n].push(t):e[n]=[t]}),lu=cn(function(e,t,n){e[n]=t}),cu=go(function(e,t,n){var r=-1,o="function"==typeof t,a=er(t),i=Zn(e)?Va(e.length):[];return ji(e,function(e){var u=o?t:a&&null!=e?e[t]:C;i[++r]=u?u.apply(e,n):$n(e,t,n)}),i}),fu=cn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),du=An(ct,ji),pu=An(ft,Li),hu=go(function(e,t){if(null==e)return[];var n=t[2];return n&&Jn(t[0],t[1],n)&&(t.length=1),Zt(e,Mt(t),[])}),yu=Oi||function(){return(new Ha).getTime()},vu=go(function(e,t,n){var r=M;if(n.length){var o=x(n,vu.placeholder);r|=D}return Ln(e,r,t,n,o)}),mu=go(function(e,t){t=t.length?Mt(t):Zo(e);for(var n=-1,r=t.length;++n0||t<0)?new o(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==C&&(t=+t||0,n=t<0?n.dropRight(-t):n.take(t-e)),n)},o.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},o.prototype.toArray=function(){return this.take(Si)},At(o.prototype,function(e,n){var a=/^(?:filter|map|reject)|While$/.test(n),i=/^(?:first|last)$/.test(n),u=t[i?"take"+("last"==n?"Right":""):n];u&&(t.prototype[n]=function(){var t=i?[1]:arguments,n=this.__chain__,s=this.__wrapped__,l=!!this.__actions__.length,c=s instanceof o,f=t[0],d=c||Mu(s);d&&a&&"function"==typeof f&&1!=f.length&&(c=d=!1);var p=function(e){return i&&n?u(e,1)[0]:u.apply(C,lt([e],t))},h={func:Wr,args:[p],thisArg:C},y=c&&!l;if(i&&!n)return y?(s=s.clone(),s.__actions__.push(h),e.call(s)):u.call(C,this.value())[0];if(!i&&d){s=y?s:new o(this);var v=e.apply(s,t);return v.__actions__.push(h),new r(v,n)}return this.thru(p)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var n=(/^(?:replace|split)$/.test(e)?Ja:Za)[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:join|pop|replace|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;return o&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),At(o.prototype,function(e,n){var r=t[n];if(r){var o=r.name,a=Di[o]||(Di[o]=[]);a.push({name:n,func:r})}}),Di[Nn(C,k).name]=[{name:"wrapper",func:C}],o.prototype.clone=_,o.prototype.reverse=J,o.prototype.value=re,t.prototype.chain=zr,t.prototype.commit=Kr,t.prototype.concat=tu,t.prototype.plant=qr,t.prototype.reverse=Gr,t.prototype.toString=Yr,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=Xr,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var C,S="3.10.1",M=1,k=2,A=4,N=8,R=16,D=32,I=64,j=128,L=256,F=30,B="...",U=150,V=16,H=200,W=1,z=2,K="Expected a function",q="__lodash_placeholder__",G="[object Arguments]",Y="[object Array]",X="[object Boolean]",$="[object Date]",Z="[object Error]",Q="[object Function]",J="[object Map]",ee="[object Number]",te="[object Object]",ne="[object RegExp]",re="[object Set]",oe="[object String]",ae="[object WeakMap]",ie="[object ArrayBuffer]",ue="[object Float32Array]",se="[object Float64Array]",le="[object Int8Array]",ce="[object Int16Array]",fe="[object Int32Array]",de="[object Uint8Array]",pe="[object Uint8ClampedArray]",he="[object Uint16Array]",ye="[object Uint32Array]",ve=/\b__p \+= '';/g,me=/\b(__p \+=) '' \+/g,ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39|#96);/g,_e=/[&<>"'`]/g,xe=RegExp(be.source),Te=RegExp(_e.source),Ee=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,we=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Me=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,ke=RegExp(Me.source),Ae=/[\u0300-\u036f\ufe20-\ufe23]/g,Ne=/\\(\\)?/g,Re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/\w*$/,Ie=/^0[xX]/,je=/^\[object .+?Constructor\]$/,Le=/^\d+$/,Fe=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Be=/($^)/,Ue=/['\n\r\u2028\u2029\\]/g,Ve=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),He=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],We=-1,ze={};ze[ue]=ze[se]=ze[le]=ze[ce]=ze[fe]=ze[de]=ze[pe]=ze[he]=ze[ye]=!0,ze[G]=ze[Y]=ze[ie]=ze[X]=ze[$]=ze[Z]=ze[Q]=ze[J]=ze[ee]=ze[te]=ze[ne]=ze[re]=ze[oe]=ze[ae]=!1;var Ke={};Ke[G]=Ke[Y]=Ke[ie]=Ke[X]=Ke[$]=Ke[ue]=Ke[se]=Ke[le]=Ke[ce]=Ke[fe]=Ke[ee]=Ke[te]=Ke[ne]=Ke[oe]=Ke[de]=Ke[pe]=Ke[he]=Ke[ye]=!0,Ke[Z]=Ke[Q]=Ke[J]=Ke[re]=Ke[ae]=!1;var qe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Ge={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ye={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Xe={"function":!0,object:!0},$e={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qe=Xe[typeof t]&&t&&!t.nodeType&&t,Je=Xe[typeof e]&&e&&!e.nodeType&&e,et=Qe&&Je&&"object"==typeof o&&o&&o.Object&&o,tt=Xe[typeof self]&&self&&self.Object&&self,nt=Xe[typeof window]&&window&&window.Object&&window,rt=(Je&&Je.exports===Qe&&Qe,et||nt!==(this&&this.window)&&nt||tt||this),ot=P();rt._=ot,r=function(){return ot}.call(t,n,t,e),!(r!==C&&(e.exports=r))}).call(this)}).call(t,n(78)(e),function(){return this}())},,function(e,t,n){"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(!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)}function u(e,t,n,r){y.default.render(p.default.createElement(P,{text:e,timeout:n,type:t,color:r}),document.getElementById(g))}function s(){y.default.unmountComponentAtNode(document.getElementById(g))}function l(e,t,n,r){if(!document.getElementById(g).hasChildNodes()){var o=n;return o||(o=b),u(e,t,o,r),n!==-1&&(setTimeout(function(){s()},o+_),!0)}return!1}function c(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return this.msgs=[],this.isNotifying=!1,this.currentRecallDelay=t,this.showNotify=function(){if(0===e.msgs.length)return void(e.isNotifying=!1);e.isNotifying=!0;var r=e.msgs.pop();l(r.text,r.type,r.timeout,r.color)?(e.currentRecallDelay=t,r.timeout>0&&setTimeout(function(){return e.showNotify()},r.timeout+_)):(e.msgs.unshift(r),setTimeout(function(){return e.showNotify()},e.currentRecallDelay),e.currentRecallDelay+=n)},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x;e.msgs.push({text:t,type:n,timeout:r,color:o}),e.isNotifying||e.showNotify()}}Object.defineProperty(t,"__esModule",{value:!0}),t.notify=void 0;var f=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},,function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseChildIndex=t.getReactEventByType=t.renderByOrder=t.isChildrenEqual=t.isSingleChildEqual=t.filterSvgElements=t.isSsr=t.validateWidthHeight=t.filterEventsOfChild=t.filterEventAttributes=t.getPresentationAttributes=t.withoutType=t.findChildByType=t.findAllByType=t.getDisplayName=t.LEGEND_TYPES=t.SCALE_TYPES=t.EVENT_ATTRIBUTES=t.PRESENTATION_ATTRIBUTES=void 0;var i=n(96),u=r(i),s=n(694),l=r(s),c=n(141),f=r(c),d=n(41),p=r(d),h=n(61),y=r(h),v=n(1),m=r(v),g=n(23),b=r(g),_=n(43),x=n(35),T=t.PRESENTATION_ATTRIBUTES={alignmentBaseline:b.default.string,angle:b.default.number,baselineShift:b.default.string,clip:b.default.string,clipPath:b.default.string,clipRule:b.default.string,color:b.default.string,colorInterpolation:b.default.string,colorInterpolationFilters:b.default.string,colorProfile:b.default.string,colorRendering:b.default.string,cursor:b.default.string,direction:b.default.oneOf(["ltr","rtl","inherit"]),display:b.default.string,dominantBaseline:b.default.string,enableBackground:b.default.string,fill:b.default.string,fillOpacity:b.default.oneOfType([b.default.string,b.default.number]),fillRule:b.default.oneOf(["nonzero","evenodd","inherit"]),filter:b.default.string,floodColor:b.default.string,floodOpacity:b.default.oneOfType([b.default.string,b.default.number]),font:b.default.string,fontFamily:b.default.string,fontSize:b.default.oneOfType([b.default.number,b.default.string]),fontSizeAdjust:b.default.oneOfType([b.default.number,b.default.string]),fontStretch:b.default.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:b.default.oneOf(["normal","italic","oblique","inherit"]),fontVariant:b.default.oneOf(["normal","small-caps","inherit"]),fontWeight:b.default.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:b.default.string,glyphOrientationVertical:b.default.string,imageRendering:b.default.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:b.default.oneOfType([b.default.number,b.default.string]),letterSpacing:b.default.oneOfType([b.default.number,b.default.string]),lightingColor:b.default.string,markerEnd:b.default.string,markerMid:b.default.string,markerStart:b.default.string,mask:b.default.string,opacity:b.default.oneOfType([b.default.number,b.default.string]),overflow:b.default.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:b.default.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:b.default.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:b.default.string,stopOpacity:b.default.oneOfType([b.default.number,b.default.string]),stroke:b.default.oneOfType([b.default.number,b.default.string]),strokeDasharray:b.default.string,strokeDashoffset:b.default.oneOfType([b.default.number,b.default.string]),strokeLinecap:b.default.oneOf(["butt","round","square","inherit"]),strokeLinejoin:b.default.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:b.default.oneOfType([b.default.number,b.default.string]),strokeOpacity:b.default.oneOfType([b.default.number,b.default.string]),strokeWidth:b.default.oneOfType([b.default.number,b.default.string]),textAnchor:b.default.oneOf(["start","middle","end","inherit"]),textDecoration:b.default.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:b.default.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:b.default.oneOf(["normal","embed","bidi-override","inherit"]),visibility:b.default.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:b.default.oneOfType([b.default.number,b.default.string]),writingMode:b.default.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:b.default.string,style:b.default.object,width:b.default.number,height:b.default.number,dx:b.default.number,dy:b.default.number,x:b.default.number,y:b.default.number,r:b.default.number,radius:b.default.oneOfType([b.default.number,b.default.array])},E=t.EVENT_ATTRIBUTES={onClick:b.default.func,onMouseDown:b.default.func,onMouseUp:b.default.func,onMouseOver:b.default.func,onMouseMove:b.default.func,onMouseOut:b.default.func,onMouseEnter:b.default.func,onMouseLeave:b.default.func,onTouchEnd:b.default.func,onTouchMove:b.default.func,onTouchStart:b.default.func,onTouchCancel:b.default.func},O={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},w=(t.SCALE_TYPES=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utcTime","sequential","threshold"],t.LEGEND_TYPES=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],t.getDisplayName=function(e){return e?"string"==typeof e?e:e.displayName||e.name||"Component":""}),P=t.findAllByType=function(e,t){var n=[],r=[];return r=(0,y.default)(t)?t.map(function(e){return w(e)}):[w(t)],m.default.Children.forEach(e,function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);r.indexOf(t)!==-1&&n.push(e)}),n},C=(t.findChildByType=function(e,t){var n=P(e,t);return n&&n[0]},t.withoutType=function(e,t){var n=[],r=void 0;return r=(0,y.default)(t)?t.map(function(e){return w(e)}):[w(t)],m.default.Children.forEach(e,function(e){e&&e.type&&e.type.displayName&&r.indexOf(e.type.displayName)!==-1||n.push(e)}),n},t.getPresentationAttributes=function(e){if(!e||(0,p.default)(e))return null;var t=m.default.isValidElement(e)?e.props:e;if(!(0,f.default)(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&T[r]&&(n||(n={}),n[r]=t[r]);return n},function(e,t){return function(n){return e(t,n),null}}),S=(t.filterEventAttributes=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||(0,p.default)(e))return null;var r=m.default.isValidElement(e)?e.props:e;if(!(0,f.default)(r))return null;var o=null;for(var a in r)({}).hasOwnProperty.call(r,a)&&E[a]&&(o||(o={}),o[a]=t||(n?C(r[a],r):r[a]));return o},function(e,t,n){return function(r){return e(t,n,r),null}}),M=(t.filterEventsOfChild=function(e,t,n){if(!(0,f.default)(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&E[o]&&(0,p.default)(e[o])&&(r||(r={}),r[o]=S(e[o],t,n));return r},t.validateWidthHeight=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!(0,_.isNumber)(n)||n<=0||!(0,_.isNumber)(r)||r<=0)},t.isSsr=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)},["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]),k=function(e){return e&&e.type&&(0,l.default)(e.type)&&M.indexOf(e.type)>=0},A=(t.filterSvgElements=function(e){var t=[];return m.default.Children.forEach(e,function(e){e&&e.type&&(0,l.default)(e.type)&&M.indexOf(e.type)>=0&&t.push(e)}),t},function(e,t){if((0,u.default)(e)&&(0,u.default)(t))return!0;if(!(0,u.default)(e)&&!(0,u.default)(t)){var n=e.props||{},r=n.children,o=a(n,["children"]),i=t.props||{},s=i.children,l=a(i,["children"]);return r&&s?(0,x.shallowEqual)(o,l)&&N(r,s):!r&&!s&&(0,x.shallowEqual)(o,l)}return!1});t.isSingleChildEqual=A;var N=t.isChildrenEqual=function R(e,t){if(e===t)return!0;if(v.Children.count(e)!==v.Children.count(t))return!1;var n=v.Children.count(e);if(0===n)return!0;if(1===n)return A((0,y.default)(e)?e[0]:e,(0,y.default)(t)?t[0]:t);for(var r=0;r0?1:-1},t.isPercent=function(e){return(0,p.default)(e)&&e.indexOf("%")===e.length-1}),y=t.isNumber=function(e){return(0,f.default)(e)&&!(0,l.default)(e)},v=(t.isNumOrStr=function(e){return y(e)||(0,p.default)(e)},0);t.uniqueId=function(e){var t=++v;return""+(e||"")+t},t.getPercentValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!y(e)&&!(0,p.default)(e))return n;var o=void 0;if(h(e)){var a=e.indexOf("%");o=t*parseFloat(e.slice(0,a))/100}else o=+e;return(0,l.default)(o)&&(o=n),r&&o>t&&(o=t),o},t.getAnyElementOfObject=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},t.hasDuplicate=function(e){if(!(0,u.default)(e))return!1;for(var t=e.length,n={},r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){var t=e.children,n=e.className,r=o(e,["children","className"]),a=(0,d.default)("recharts-layer",n);return s.default.createElement("g",i({className:a},r),t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t2?n-2:0),o=2;o1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var i=r.range,u=0;u0?n[u-1].coordinate:n[a-1].coordinate,l=n[u].coordinate,c=u>=a-1?n[0].coordinate:n[u+1].coordinate,f=void 0;if((0,D.mathSign)(l-s)!==(0,D.mathSign)(c-l)){var d=[];if((0,D.mathSign)(c-l)===(0,D.mathSign)(i[1]-i[0])){f=c;var p=l+i[1]-i[0];d[0]=Math.min(p,(p+s)/2),d[1]=Math.max(p,(p+s)/2)}else{f=s;var h=c+i[1]-i[0];d[0]=Math.min(l,(h+l)/2),d[1]=Math.max(l,(h+l)/2)}var y=[Math.min(l,(f+l)/2),Math.max(l,(f+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[1]){o=n[u].index;break}}else{var v=Math.min(s,c),m=Math.max(s,c);if(e>(v+l)/2&&e<=(m+l)/2){o=n[u].index;break}}}else for(var g=0;g0&&g(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===a-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){o=t[g].index;break}}else o=0;return o},t.getMainColorOfGraphicItem=function(e){var t=e.type.displayName,n=void 0;switch(t){case"Line":case"Area":case"Radar":n=e.props.stroke;break;default:n=e.props.fill}return n}),X=t.getLegendProps=function(e){var t=e.children,n=e.formatedGraphicalItems,r=e.legendWidth,o=e.legendContent,a=(0,K.findChildByType)(t,z.default);if(!a)return null;var i=void 0;return i=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType,u=n.hide;return{inactive:u,dataKey:r,type:a.props.iconType||i||"square",color:Y(t),value:o||r,payload:t.props}}),M({},a.props,z.default.getWithHeight(a,r),{payload:i,item:a})},$=(t.getBarSizeList=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,u=a.length;i=0});if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[h];o[m]||(o[m]=[]),o[m].push({item:y[0],stackList:y.slice(1),barSize:(0,S.default)(v)?t:v})}}return o},t.getBarPosition=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,a=void 0===o?[]:o,u=e.maxBarSize,s=a.length;if(s<1)return null;var l=(0,D.getPercentValue)(t,r,0,!0),c=void 0;if(a[0].barSize===+a[0].barSize){var f=!1,d=r/s,p=a.reduce(function(e,t){return e+t.barSize||0},0);p+=(s-1)*l,p>=r&&(p-=(s-1)*l,l=0),p>=r&&d>0&&(f=!0,d*=.9,p=s*d);var h=(r-p)/2>>0,y={offset:h-l,size:0};c=a.reduce(function(e,t){var n=[].concat(i(e),[{item:t.item,position:{offset:y.offset+y.size+l,size:f?d:t.barSize}}]);return y=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:y})}),n},[])}else{var v=(0,D.getPercentValue)(n,r,0,!0);r-2*v-(s-1)*l<=0&&(l=0);var m=(r-2*v-(s-1)*l)/s;m>1&&(m>>=0);var g=u===+u?Math.min(m,u):m;c=a.reduce(function(e,t,n){var r=[].concat(i(e),[{item:t.item,position:{offset:v+(m+l)*n+(m-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},[])}return c},t.appendOffsetOfLegend=function(e,t,n,r){var o=n.children,i=n.width,u=n.height,s=n.margin,l=i-(s.left||0)-(s.right||0),c=u-(s.top||0)-(s.bottom||0),f=X({children:o,items:t,legendWidth:l,legendHeight:c}),d=e;if(f){var p=r||{},h=f.align,y=f.verticalAlign,v=f.layout;("vertical"===v||"horizontal"===v&&"center"===y)&&(0,D.isNumber)(e[h])&&(d=M({},e,a({},h,d[h]+(p.width||0)))),("horizontal"===v||"vertical"===v&&"center"===h)&&(0,D.isNumber)(e[y])&&(d=M({},e,a({},y,d[y]+(p.height||0))))}return d},t.getDomainOfErrorBars=function(e,t,n,r){var o=t.props.children,a=(0,K.findAllByType)(o,H.default).filter(function(e){var t=e.props.direction;return!(!(0,S.default)(t)&&!(0,S.default)(r))||r.indexOf(t)>=0});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=q(t,n,0),o=(0,_.default)(r)?[(0,g.default)(r),(0,v.default)(r)]:[r,r],a=i.reduce(function(e,n){var r=q(t,n,0),a=o[0]-Math.abs((0,_.default)(r)?r[0]:r),i=o[1]+Math.abs((0,_.default)(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-(1/0)]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-(1/0)])}return null}),Z=(t.parseErrorBarsOfAxis=function(e,t,n,r){var o=t.map(function(t){return $(e,t,n,r)}).filter(function(e){return!(0,S.default)(e)});return o&&o.length?o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-(1/0)]):null},t.getDomainOfItemsWithSameAxis=function(e,t,n,r){var o=t.map(function(t){var o=t.props.dataKey;return"number"===n&&o?$(e,t,o)||G(e,o,n,r):G(e,o,n,r)});if("number"===n)return o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]; },[1/0,-(1/0)]);var a={};return o.reduce(function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:N.scalePoint(),realScaleType:"point"}:"category"===r?{scale:N.scaleBand(),realScaleType:"band"}:{scale:N.scaleLinear(),realScaleType:"linear"};if((0,h.default)(n)){var i="scale"+n.slice(0,1).toUpperCase()+n.slice(1);return{scale:(N[i]||N.scalePoint)(),realScaleType:N[i]?i:"point"}}return(0,O.default)(n)?{scale:n}:{scale:N.scalePoint(),realScaleType:"point"}},1e-4),Q=(t.checkDomainOfScale=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-Z,a=Math.max(r[0],r[1])+Z,i=e(t[0]),u=e(t[n-1]);(ia||ua)&&e.domain([t[0],t[n-1]])}},t.findPositionOfBar=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[i][n][0]=o,e[i][n][1]=o+u,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+u,a=e[i][n][1])}}),J={sign:Q,expand:R.stackOffsetExpand,none:R.stackOffsetNone,silhouette:R.stackOffsetSilhouette,wiggle:R.stackOffsetWiggle},ee=t.getStackedData=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=(0,R.stack)().keys(r).value(function(e,t){return+q(e,t,0)}).order(R.stackOrderNone).offset(J[n]);return o(e)},te=(t.getStackGroupsByAxisId=function(e,t,n,r,o,i){if(!e)return null;var u=i?t.reverse():t,s=u.reduce(function(e,t){var o=t.props,i=o.stackId,u=o.hide;if(u)return e;var s=t.props[n],l=e[s]||{hasStack:!1,stackGroups:{}};if((0,D.isNumOrStr)(i)){var c=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[i]=c}else l.stackGroups[(0,D.uniqueId)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return M({},e,a({},s,l))},{});return Object.keys(s).reduce(function(t,i){var u=s[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(t,i){var s=u.stackGroups[i];return M({},t,a({},i,{numericAxisId:n,cateAxisId:r,items:s.items,stackedData:ee(e,s.items,o)}))},{})),M({},t,a({},i,u))},{})},t.calculateDomainOfTicks=function(e,t){return"number"===t?[Math.min.apply(null,e),Math.max.apply(null,e)]:e}),ne=(t.getTicksOfScale=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,a=t.originalDomain,i=t.allowDecimals,u=n||t.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===r&&a&&("auto"===a[0]||"auto"===a[1])){var s=e.domain(),l=(0,k.getNiceTickValues)(s,o,i);return e.domain(te(l,r)),{niceTicks:l}}if(o&&"number"===r){var c=e.domain(),f=(0,k.getTickValuesFixedDomain)(c,o,i);return{niceTicks:f}}return null},t.getCateCoordinateOfLine=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,a=e.index;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,S.default)(o[t.dataKey])){var i=(0,D.findEntryInArray)(n,"value",o[t.dataKey]);if(i)return i.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var u=q(o,t.dataKey);return(0,S.default)(u)?null:t.scale(u)},t.getCateCoordinateOfBar=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,a=e.entry,i=e.index;if("category"===t.type)return n[i]?n[i].coordinate+r:null;var u=q(a,t.dataKey,t.domain[i]);return(0,S.default)(u)?null:t.scale(u)-o/2+r},t.getBaseValueOfBar=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},t.detectReferenceElementsDomain=function(e,t,n,r,o){var a=(0,K.findAllByType)(e,F.default),i=(0,K.findAllByType)(e,j.default),u=a.concat(i),s=(0,K.findAllByType)(e,U.default),l=r+"Id",c=r[0],f=t;if(u.length&&(f=u.reduce(function(e,t){if(t.props[l]===n&&t.props.alwaysShow&&(0,D.isNumber)(t.props[c])){var r=t.props[c];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},f)),s.length){var d=c+"1",p=c+"2";f=s.reduce(function(e,t){if(t.props[l]===n&&t.props.alwaysShow&&(0,D.isNumber)(t.props[d])&&(0,D.isNumber)(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e},f)}return o&&o.length&&(f=o.reduce(function(e,t){return(0,D.isNumber)(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},f)),f},t.getStackedDataOfItem=function(e,t){var n=e.props.stackId;if((0,D.isNumOrStr)(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,a=0,i=r.items.length;a=0?r.stackedData[o]:null}}return null},function(e){return e.reduce(function(e,t){return[Math.min.apply(null,t.concat([e[0]]).filter(D.isNumber)),Math.max.apply(null,t.concat([e[1]]).filter(D.isNumber))]},[1/0,-(1/0)])}),re=(t.getDomainOfStackGroups=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o],i=a.stackedData,u=i.reduce(function(e,r){var o=ne(r.slice(t,n+1));return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-(1/0)]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-(1/0)]).map(function(e){return e===1/0||e===-(1/0)?0:e})},t.MIN_VALUE_REG=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/),oe=t.MAX_VALUE_REG=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/;t.parseSpecifiedDomain=function(e,t,n){if(!(0,_.default)(e))return t;var r=[];if((0,D.isNumber)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(re.test(e[0])){var o=+re.exec(e[0])[1];r[0]=t[0]-o}else(0,O.default)(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if((0,D.isNumber)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(oe.test(e[1])){var a=+oe.exec(e[1])[1];r[1]=t[1]+a}else(0,O.default)(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},t.validateCoordinateInRange=function(e,t){if(!t)return!1;var n=t.range(),r=n[0],o=n[n.length-1],a=r<=o?e>=r&&e<=o:e>=o&&e<=r;return a},t.getBandSizeOfAxis=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=(0,c.default)(t,function(e){return e.coordinate}),r=1/0,o=1,a=n.length;o",LAST_PAGE:">>",PRE_PAGE:"<",FIRST_PAGE:"<<",PAGE_START_INDEX:1,ROW_SELECT_BG_COLOR:"",ROW_SELECT_NONE:"none",ROW_SELECT_SINGLE:"radio",ROW_SELECT_MULTI:"checkbox",CELL_EDIT_NONE:"none",CELL_EDIT_CLICK:"click",CELL_EDIT_DBCLICK:"dbclick",SIZE_PER_PAGE_LIST:[10,25,30,50],PAGINATION_SIZE:5,NO_DATA_TEXT:"There is no data to display",SHOW_ONLY_SELECT:"Show Selected Only",SHOW_ALL:"Show All",EXPORT_CSV_TEXT:"Export to CSV",INSERT_BTN_TEXT:"New",DELETE_BTN_TEXT:"Delete",SAVE_BTN_TEXT:"Save",CLOSE_BTN_TEXT:"Close",FILTER_DELAY:500,FILTER_TYPE:{TEXT:"TextFilter",REGEX:"RegexFilter",SELECT:"SelectFilter",NUMBER:"NumberFilter",DATE:"DateFilter",CUSTOM:"CustomFilter"}},e.exports=t.default},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;n1){for(var v=Array(y),m=0;m1){for(var b=Array(g),_=0;_2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2}),p=(t.formatAxisMap=function(e,t,n,r,a){var c=e.width,f=e.height,p=e.startAngle,h=e.endAngle,y=(0,s.getPercentValue)(e.cx,c,c/2),v=(0,s.getPercentValue)(e.cy,f,f/2),m=d(c,f,n),g=(0,s.getPercentValue)(e.innerRadius,m,0),b=(0,s.getPercentValue)(e.outerRadius,m,.8*m),_=Object.keys(t);return _.reduce(function(e,n){var s=t[n],c=s.domain,f=s.reversed,d=void 0;(0,i.default)(s.range)?("angleAxis"===r?d=[p,h]:"radiusAxis"===r&&(d=[g,b]),f&&(d=[d[1],d[0]])):(d=s.range,p=d[0],h=d[1]);var m=(0,l.parseScale)(s,a),_=m.realScaleType,x=m.scale;x.domain(c).range(d),(0,l.checkDomainOfScale)(x);var T=(0,l.getTicksOfScale)(x,u({},s,{realScaleType:_})),E=u({},s,T,{range:d,radius:b,realScaleType:_,scale:x,cx:y,cy:v,innerRadius:g,outerRadius:b,startAngle:p,endAngle:h});return u({},e,o({},n,E))},{})},t.distanceBetweenPoints=function(e,t){var n=e.x,r=e.y,o=t.x,a=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-a,2))}),h=t.getAngleOfPoint=function(e,t){var n=e.x,r=e.y,o=t.cx,a=t.cy,i=p({x:n,y:r},{x:o,y:a});if(i<=0)return{radius:i};var u=(n-o)/i,s=Math.acos(u);return r>a&&(s=2*Math.PI-s),{radius:i,angle:f(s),angleInRadian:s}},y=t.formatAngleOfSector=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),a=Math.min(r,o);return{startAngle:t-360*a,endAngle:n-360*a}},v=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),a=Math.floor(r/360),i=Math.min(o,a);return e+360*i};t.inRangeOfSector=function(e,t){var n=e.x,r=e.y,o=h({x:n,y:r},t),a=o.radius,i=o.angle,s=t.innerRadius,l=t.outerRadius;if(al)return!1;if(0===a)return!0;var c=y(t),f=c.startAngle,d=c.endAngle,p=i,m=void 0;if(f<=d){for(;p>d;)p-=360;for(;p=f&&p<=d}else{for(;p>f;)p-=360;for(;p=d&&p<=f}return m?u({},t,{radius:a,angle:v(p,t)}):null}},,,,function(e,t,n){var r=n(490)("wks"),o=n(390),a=n(170).Symbol,i="function"==typeof a,u=e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))};u.store=r},,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return!e||"#"===e.trim()}t.__esModule=!0;var a=n(12),i=r(a),u=n(14),s=r(u),l=n(9),c=r(l),f=n(11),d=r(f),p=n(10),h=r(p),y=n(1),v=r(y),m=n(45),g=r(m),b={href:v.default.PropTypes.string,onClick:v.default.PropTypes.func,disabled:v.default.PropTypes.bool,role:v.default.PropTypes.string,tabIndex:v.default.PropTypes.oneOfType([v.default.PropTypes.number,v.default.PropTypes.string]),componentClass:g.default},_={componentClass:"a"},x=function(e){function t(n,r){(0,c.default)(this,t);var o=(0,d.default)(this,e.call(this,n,r));return o.handleClick=o.handleClick.bind(o),o}return(0,h.default)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.disabled,r=t.href,a=t.onClick;return(n||o(r))&&e.preventDefault(),n?void e.stopPropagation():void(a&&a(e))},t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.disabled,r=(0,s.default)(e,["componentClass","disabled"]);return o(r.href)&&(r.role=r.role||"button",r.href=r.href||""),n&&(r.tabIndex=-1,r.style=(0,i.default)({pointerEvents:"none"},r.style)),v.default.createElement(t,(0,i.default)({},r,{onClick:this.handleClick}))},t}(v.default.Component);x.propTypes=b,x.defaultProps=_,t.default=x,e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},,134,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.translateStyle=t.AnimateGroup=t.configBezier=t.configSpring=void 0;var o=n(1127),a=r(o),i=n(1128),u=n(443),s=n(2297),l=r(s);t.configSpring=i.configSpring,t.configBezier=i.configBezier,t.AnimateGroup=l.default,t.translateStyle=u.translateStyle,t.default=a.default},61,[2883,1204],function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1280),a=r(o),i=n(1279),u=r(i),s="function"==typeof u.default&&"symbol"==typeof a.default?function(e){return typeof e}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":typeof e};t.default="function"==typeof u.default&&"symbol"===s(a.default)?function(e){return"undefined"==typeof e?"undefined":s(e)}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":"undefined"==typeof e?"undefined":s(e)}},,,,,,function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},,,,,,,[2883,1137],function(e,t,n){"use strict";var r=n(408),o=r({bubbled:null,captured:null}),a=r({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),i={topLevelTypes:a,PropagationPhases:o};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];u?this[a]=u(n):"target"===a?this.target=r:this[a]=n[a]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return s?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse,this}var o=n(42),a=n(192),i=n(103),u=(n(36),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),s={type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);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 i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t