Advertisement
Guest User

Untitled

a guest
Oct 9th, 2019
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 327.90 KB | None | 0 0
  1. webpackJsonp([0], [, , , , , , function(t, e, n) {
  2. "use strict";
  3. var s = n(50),
  4. o = n.n(s),
  5. i = n(12),
  6. a = n(222),
  7. r = n.n(a),
  8. c = n(223),
  9. u = n.n(c),
  10. l = n(18),
  11. h = n(11);
  12. e.a = {
  13. CreateModal: function() {
  14. var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  15. return new o.a(function(e, n) {
  16. var s = new(i.a.extend(r.a))({
  17. el: document.createElement("div"),
  18. propsData: t
  19. });
  20. document.querySelector("#app").appendChild(s.$el), s.$on("select", function(t) {
  21. e(t), s.$el.parentNode.removeChild(s.$el), s.$destroy()
  22. }), s.$on("cancel", function() {
  23. e({
  24. title: "cancel"
  25. }), s.$el.parentNode.removeChild(s.$el), s.$destroy()
  26. })
  27. })
  28. },
  29. CreateTextModal: function() {
  30. var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  31. return !1 === l.a.getters.useMouse ? h.a.getReponseText(t) : new o.a(function(e, n) {
  32. var s = new(i.a.extend(u.a))({
  33. el: document.createElement("div"),
  34. propsData: t
  35. });
  36. document.querySelector("#app").appendChild(s.$el), s.$on("valid", function(t) {
  37. e(t), s.$el.parentNode.removeChild(s.$el), s.$destroy()
  38. }), s.$on("cancel", function() {
  39. n("UserCancel"), s.$el.parentNode.removeChild(s.$el), s.$destroy()
  40. })
  41. })
  42. }
  43. }
  44. }, , , , function(t, e, n) {
  45. function s(t) {
  46. n(183)
  47. }
  48. var o = n(0)(n(102), n(253), s, "data-v-3a8bc553", null);
  49. t.exports = o.exports
  50. }, function(t, e, n) {
  51. "use strict";
  52. var s = n(1),
  53. o = n.n(s),
  54. i = n(33),
  55. a = n.n(i),
  56. r = n(5),
  57. c = n.n(r),
  58. u = n(28),
  59. l = n.n(u),
  60. h = n(4),
  61. p = n.n(h),
  62. f = n(51),
  63. d = n.n(f),
  64. m = n(52),
  65. v = n.n(m),
  66. g = n(21),
  67. _ = n.n(g),
  68. w = n(18),
  69. C = n(74),
  70. k = n(12),
  71. b = n(276),
  72. y = n.n(b),
  73. S = _()(y.a),
  74. T = !1,
  75. A = function() {
  76. function t() {
  77. var e = this;
  78. d()(this, t), window.addEventListener("message", function(t) {
  79. var n = t.data.event;
  80. void 0 !== n && "function" == typeof e["on" + n] ? e["on" + n](t.data) : void 0 !== t.data.show && w.a.commit("SET_PHONE_VISIBILITY", t.data.show)
  81. }), this.config = null, this.voiceRTC = null, this.soundList = {}
  82. }
  83. return v()(t, [{
  84. key: "post",
  85. value: function() {
  86. function t(t, n) {
  87. return e.apply(this, arguments)
  88. }
  89. var e = p()(c.a.mark(function t(e, n) {
  90. var s, o;
  91. return c.a.wrap(function(t) {
  92. for (;;) switch (t.prev = t.next) {
  93. case 0:
  94. return s = void 0 === n ? "{}" : l()(n), t.next = 3, window.jQuery.post("http://gcphone/" + e, s);
  95. case 3:
  96. return o = t.sent, t.abrupt("return", JSON.parse(o));
  97. case 5:
  98. case "end":
  99. return t.stop()
  100. }
  101. }, t, this)
  102. }));
  103. return t
  104. }()
  105. }, {
  106. key: "log",
  107. value: function() {
  108. function t() {
  109. return e.apply(this, arguments)
  110. }
  111. var e = p()(c.a.mark(function t() {
  112. for (var e = arguments.length, n = Array(e), s = 0; s < e; s++) n[s] = arguments[s];
  113. var o;
  114. return c.a.wrap(function(t) {
  115. for (;;) switch (t.prev = t.next) {
  116. case 0:
  117. return t.abrupt("return", this.post("log", n));
  118. case 4:
  119. return t.abrupt("return", (o = console).log.apply(o, n));
  120. case 5:
  121. case "end":
  122. return t.stop()
  123. }
  124. }, t, this)
  125. }));
  126. return t
  127. }()
  128. }, {
  129. key: "convertEmoji",
  130. value: function(t) {
  131. var e = !0,
  132. n = !1,
  133. s = void 0;
  134. try {
  135. for (var o, i = a()(S); !(e = (o = i.next()).done); e = !0) {
  136. var r = o.value;
  137. t = t.replace(new RegExp(":" + r + ":", "g"), y.a[r])
  138. }
  139. } catch (t) {
  140. n = !0, s = t
  141. } finally {
  142. try {
  143. !e && i.return && i.return()
  144. } finally {
  145. if (n) throw s
  146. }
  147. }
  148. return t
  149. }
  150. }, {
  151. key: "sendMessage",
  152. value: function() {
  153. function t(t, n) {
  154. return e.apply(this, arguments)
  155. }
  156. var e = p()(c.a.mark(function t(e, n) {
  157. return c.a.wrap(function(t) {
  158. for (;;) switch (t.prev = t.next) {
  159. case 0:
  160. return t.abrupt("return", this.post("sendMessage", {
  161. phoneNumber: e,
  162. message: n
  163. }));
  164. case 1:
  165. case "end":
  166. return t.stop()
  167. }
  168. }, t, this)
  169. }));
  170. return t
  171. }()
  172. }, {
  173. key: "deleteMessage",
  174. value: function() {
  175. function t(t) {
  176. return e.apply(this, arguments)
  177. }
  178. var e = p()(c.a.mark(function t(e) {
  179. return c.a.wrap(function(t) {
  180. for (;;) switch (t.prev = t.next) {
  181. case 0:
  182. return t.abrupt("return", this.post("deleteMessage", {
  183. id: e
  184. }));
  185. case 1:
  186. case "end":
  187. return t.stop()
  188. }
  189. }, t, this)
  190. }));
  191. return t
  192. }()
  193. }, {
  194. key: "deleteMessagesNumber",
  195. value: function() {
  196. function t(t) {
  197. return e.apply(this, arguments)
  198. }
  199. var e = p()(c.a.mark(function t(e) {
  200. return c.a.wrap(function(t) {
  201. for (;;) switch (t.prev = t.next) {
  202. case 0:
  203. return t.abrupt("return", this.post("deleteMessageNumber", {
  204. number: e
  205. }));
  206. case 1:
  207. case "end":
  208. return t.stop()
  209. }
  210. }, t, this)
  211. }));
  212. return t
  213. }()
  214. }, {
  215. key: "deleteAllMessages",
  216. value: function() {
  217. function t() {
  218. return e.apply(this, arguments)
  219. }
  220. var e = p()(c.a.mark(function t() {
  221. return c.a.wrap(function(t) {
  222. for (;;) switch (t.prev = t.next) {
  223. case 0:
  224. return t.abrupt("return", this.post("deleteAllMessage"));
  225. case 1:
  226. case "end":
  227. return t.stop()
  228. }
  229. }, t, this)
  230. }));
  231. return t
  232. }()
  233. }, {
  234. key: "setMessageRead",
  235. value: function() {
  236. function t(t) {
  237. return e.apply(this, arguments)
  238. }
  239. var e = p()(c.a.mark(function t(e) {
  240. return c.a.wrap(function(t) {
  241. for (;;) switch (t.prev = t.next) {
  242. case 0:
  243. return t.abrupt("return", this.post("setReadMessageNumber", {
  244. number: e
  245. }));
  246. case 1:
  247. case "end":
  248. return t.stop()
  249. }
  250. }, t, this)
  251. }));
  252. return t
  253. }()
  254. }, {
  255. key: "updateContact",
  256. value: function() {
  257. function t(t, n, s) {
  258. return e.apply(this, arguments)
  259. }
  260. var e = p()(c.a.mark(function t(e, n, s) {
  261. return c.a.wrap(function(t) {
  262. for (;;) switch (t.prev = t.next) {
  263. case 0:
  264. return t.abrupt("return", this.post("updateContact", {
  265. id: e,
  266. display: n,
  267. phoneNumber: s
  268. }));
  269. case 1:
  270. case "end":
  271. return t.stop()
  272. }
  273. }, t, this)
  274. }));
  275. return t
  276. }()
  277. }, {
  278. key: "addContact",
  279. value: function() {
  280. function t(t, n) {
  281. return e.apply(this, arguments)
  282. }
  283. var e = p()(c.a.mark(function t(e, n) {
  284. return c.a.wrap(function(t) {
  285. for (;;) switch (t.prev = t.next) {
  286. case 0:
  287. return t.abrupt("return", this.post("addContact", {
  288. display: e,
  289. phoneNumber: n
  290. }));
  291. case 1:
  292. case "end":
  293. return t.stop()
  294. }
  295. }, t, this)
  296. }));
  297. return t
  298. }()
  299. }, {
  300. key: "deleteContact",
  301. value: function() {
  302. function t(t) {
  303. return e.apply(this, arguments)
  304. }
  305. var e = p()(c.a.mark(function t(e) {
  306. return c.a.wrap(function(t) {
  307. for (;;) switch (t.prev = t.next) {
  308. case 0:
  309. return t.abrupt("return", this.post("deleteContact", {
  310. id: e
  311. }));
  312. case 1:
  313. case "end":
  314. return t.stop()
  315. }
  316. }, t, this)
  317. }));
  318. return t
  319. }()
  320. }, {
  321. key: "appelsDeleteHistorique",
  322. value: function() {
  323. function t(t) {
  324. return e.apply(this, arguments)
  325. }
  326. var e = p()(c.a.mark(function t(e) {
  327. return c.a.wrap(function(t) {
  328. for (;;) switch (t.prev = t.next) {
  329. case 0:
  330. return t.abrupt("return", this.post("appelsDeleteHistorique", {
  331. numero: e
  332. }));
  333. case 1:
  334. case "end":
  335. return t.stop()
  336. }
  337. }, t, this)
  338. }));
  339. return t
  340. }()
  341. }, {
  342. key: "appelsDeleteAllHistorique",
  343. value: function() {
  344. function t() {
  345. return e.apply(this, arguments)
  346. }
  347. var e = p()(c.a.mark(function t() {
  348. return c.a.wrap(function(t) {
  349. for (;;) switch (t.prev = t.next) {
  350. case 0:
  351. return t.abrupt("return", this.post("appelsDeleteAllHistorique"));
  352. case 1:
  353. case "end":
  354. return t.stop()
  355. }
  356. }, t, this)
  357. }));
  358. return t
  359. }()
  360. }, {
  361. key: "closePhone",
  362. value: function() {
  363. function t() {
  364. return e.apply(this, arguments)
  365. }
  366. var e = p()(c.a.mark(function t() {
  367. return c.a.wrap(function(t) {
  368. for (;;) switch (t.prev = t.next) {
  369. case 0:
  370. return t.abrupt("return", this.post("closePhone"));
  371. case 1:
  372. case "end":
  373. return t.stop()
  374. }
  375. }, t, this)
  376. }));
  377. return t
  378. }()
  379. }, {
  380. key: "setUseMouse",
  381. value: function() {
  382. function t(t) {
  383. return e.apply(this, arguments)
  384. }
  385. var e = p()(c.a.mark(function t(e) {
  386. return c.a.wrap(function(t) {
  387. for (;;) switch (t.prev = t.next) {
  388. case 0:
  389. return t.abrupt("return", this.post("useMouse", e));
  390. case 1:
  391. case "end":
  392. return t.stop()
  393. }
  394. }, t, this)
  395. }));
  396. return t
  397. }()
  398. }, {
  399. key: "setGPS",
  400. value: function() {
  401. function t(t, n) {
  402. return e.apply(this, arguments)
  403. }
  404. var e = p()(c.a.mark(function t(e, n) {
  405. return c.a.wrap(function(t) {
  406. for (;;) switch (t.prev = t.next) {
  407. case 0:
  408. return t.abrupt("return", this.post("setGPS", {
  409. x: e,
  410. y: n
  411. }));
  412. case 1:
  413. case "end":
  414. return t.stop()
  415. }
  416. }, t, this)
  417. }));
  418. return t
  419. }()
  420. }, {
  421. key: "takePhoto",
  422. value: function() {
  423. function t() {
  424. return e.apply(this, arguments)
  425. }
  426. var e = p()(c.a.mark(function t() {
  427. var e;
  428. return c.a.wrap(function(t) {
  429. for (;;) switch (t.prev = t.next) {
  430. case 0:
  431. return w.a.commit("SET_TEMPO_HIDE", !0), t.next = 3, this.post("takePhoto", {
  432. url: this.config.fileUploadService_Url,
  433. field: this.config.fileUploadService_Field
  434. });
  435. case 3:
  436. return e = t.sent, w.a.commit("SET_TEMPO_HIDE", !1), t.abrupt("return", e);
  437. case 6:
  438. case "end":
  439. return t.stop()
  440. }
  441. }, t, this)
  442. }));
  443. return t
  444. }()
  445. }, {
  446. key: "getReponseText",
  447. value: function() {
  448. function t(t) {
  449. return e.apply(this, arguments)
  450. }
  451. var e = p()(c.a.mark(function t(e) {
  452. return c.a.wrap(function(t) {
  453. for (;;) switch (t.prev = t.next) {
  454. case 0:
  455. return t.abrupt("return", this.post("reponseText", e || {}));
  456. case 4:
  457. return t.abrupt("return", {
  458. text: window.prompt()
  459. });
  460. case 5:
  461. case "end":
  462. return t.stop()
  463. }
  464. }, t, this)
  465. }));
  466. return t
  467. }()
  468. }, {
  469. key: "faketakePhoto",
  470. value: function() {
  471. function t() {
  472. return e.apply(this, arguments)
  473. }
  474. var e = p()(c.a.mark(function t() {
  475. return c.a.wrap(function(t) {
  476. for (;;) switch (t.prev = t.next) {
  477. case 0:
  478. return t.abrupt("return", this.post("faketakePhoto"));
  479. case 1:
  480. case "end":
  481. return t.stop()
  482. }
  483. }, t, this)
  484. }));
  485. return t
  486. }()
  487. }, {
  488. key: "callEvent",
  489. value: function() {
  490. function t(t, n) {
  491. return e.apply(this, arguments)
  492. }
  493. var e = p()(c.a.mark(function t(e, n) {
  494. return c.a.wrap(function(t) {
  495. for (;;) switch (t.prev = t.next) {
  496. case 0:
  497. return t.abrupt("return", this.post("callEvent", {
  498. eventName: e,
  499. data: n
  500. }));
  501. case 1:
  502. case "end":
  503. return t.stop()
  504. }
  505. }, t, this)
  506. }));
  507. return t
  508. }()
  509. }, {
  510. key: "deleteALL",
  511. value: function() {
  512. function t() {
  513. return e.apply(this, arguments)
  514. }
  515. var e = p()(c.a.mark(function t() {
  516. return c.a.wrap(function(t) {
  517. for (;;) switch (t.prev = t.next) {
  518. case 0:
  519. return localStorage.clear(), w.a.dispatch("tchatReset"), w.a.dispatch("resetPhone"), w.a.dispatch("resetMessage"), w.a.dispatch("resetContact"), w.a.dispatch("resetBourse"), w.a.dispatch("resetAppels"), t.abrupt("return", this.post("deleteALL"));
  520. case 8:
  521. case "end":
  522. return t.stop()
  523. }
  524. }, t, this)
  525. }));
  526. return t
  527. }()
  528. }, {
  529. key: "getConfig",
  530. value: function() {
  531. function t() {
  532. return e.apply(this, arguments)
  533. }
  534. var e = p()(c.a.mark(function t() {
  535. var e;
  536. return c.a.wrap(function(t) {
  537. for (;;) switch (t.prev = t.next) {
  538. case 0:
  539. if (null !== this.config) {
  540. t.next = 7;
  541. break
  542. }
  543. return t.next = 3, window.jQuery.get("/html/static/config/config.json");
  544. case 3:
  545. e = t.sent, this.config = JSON.parse(e), !0 === this.config.useWebRTCVocal && (this.voiceRTC = new C.a(this.config.RTCConfig), T = !0), this.notififyUseRTC(this.config.useWebRTCVocal);
  546. case 7:
  547. return t.abrupt("return", this.config);
  548. case 8:
  549. case "end":
  550. return t.stop()
  551. }
  552. }, t, this)
  553. }));
  554. return t
  555. }()
  556. }, {
  557. key: "onsetEnableApp",
  558. value: function() {
  559. function t(t) {
  560. return e.apply(this, arguments)
  561. }
  562. var e = p()(c.a.mark(function t(e) {
  563. return c.a.wrap(function(t) {
  564. for (;;) switch (t.prev = t.next) {
  565. case 0:
  566. w.a.dispatch("setEnableApp", e);
  567. case 1:
  568. case "end":
  569. return t.stop()
  570. }
  571. }, t, this)
  572. }));
  573. return t
  574. }()
  575. }, {
  576. key: "setIgnoreFocus",
  577. value: function() {
  578. function t(t) {
  579. return e.apply(this, arguments)
  580. }
  581. var e = p()(c.a.mark(function t(e) {
  582. return c.a.wrap(function(t) {
  583. for (;;) switch (t.prev = t.next) {
  584. case 0:
  585. this.post("setIgnoreFocus", {
  586. ignoreFocus: e
  587. });
  588. case 1:
  589. case "end":
  590. return t.stop()
  591. }
  592. }, t, this)
  593. }));
  594. return t
  595. }()
  596. }, {
  597. key: "tchatGetMessagesChannel",
  598. value: function() {
  599. function t(t) {
  600. return e.apply(this, arguments)
  601. }
  602. var e = p()(c.a.mark(function t(e) {
  603. return c.a.wrap(function(t) {
  604. for (;;) switch (t.prev = t.next) {
  605. case 0:
  606. this.post("tchat_getChannel", {
  607. channel: e
  608. });
  609. case 1:
  610. case "end":
  611. return t.stop()
  612. }
  613. }, t, this)
  614. }));
  615. return t
  616. }()
  617. }, {
  618. key: "tchatSendMessage",
  619. value: function() {
  620. function t(t, n) {
  621. return e.apply(this, arguments)
  622. }
  623. var e = p()(c.a.mark(function t(e, n) {
  624. return c.a.wrap(function(t) {
  625. for (;;) switch (t.prev = t.next) {
  626. case 0:
  627. this.post("tchat_addMessage", {
  628. channel: e,
  629. message: n
  630. });
  631. case 1:
  632. case "end":
  633. return t.stop()
  634. }
  635. }, t, this)
  636. }));
  637. return t
  638. }()
  639. }, {
  640. key: "onupdateMyPhoneNumber",
  641. value: function(t) {
  642. w.a.commit("SET_MY_PHONE_NUMBER", t.myPhoneNumber)
  643. }
  644. }, {
  645. key: "onupdateMessages",
  646. value: function(t) {
  647. w.a.commit("SET_MESSAGES", t.messages)
  648. }
  649. }, {
  650. key: "onnewMessage",
  651. value: function(t) {
  652. w.a.commit("ADD_MESSAGE", t.message)
  653. }
  654. }, {
  655. key: "onupdateContacts",
  656. value: function(t) {
  657. w.a.commit("SET_CONTACTS", t.contacts)
  658. }
  659. }, {
  660. key: "onhistoriqueCall",
  661. value: function(t) {
  662. w.a.commit("SET_APPELS_HISTORIQUE", t.historique)
  663. }
  664. }, {
  665. key: "onupdateBankbalance",
  666. value: function(t) {
  667. w.a.commit("SET_BANK_AMONT", t.banking)
  668. }
  669. }, {
  670. key: "onupdateBourse",
  671. value: function(t) {
  672. w.a.commit("SET_BOURSE_INFO", t.bourse)
  673. }
  674. }, {
  675. key: "startCall",
  676. value: function() {
  677. function t(t) {
  678. return e.apply(this, arguments)
  679. }
  680. var e = p()(c.a.mark(function t(e) {
  681. var n, s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0;
  682. return c.a.wrap(function(t) {
  683. for (;;) switch (t.prev = t.next) {
  684. case 0:
  685. if (!0 !== T) {
  686. t.next = 7;
  687. break
  688. }
  689. return t.next = 3, this.voiceRTC.prepareCall();
  690. case 3:
  691. return n = t.sent, t.abrupt("return", this.post("startCall", {
  692. numero: e,
  693. rtcOffer: n,
  694. extraData: s
  695. }));
  696. case 7:
  697. return t.abrupt("return", this.post("startCall", {
  698. numero: e,
  699. extraData: s
  700. }));
  701. case 8:
  702. case "end":
  703. return t.stop()
  704. }
  705. }, t, this)
  706. }));
  707. return t
  708. }()
  709. }, {
  710. key: "acceptCall",
  711. value: function() {
  712. function t(t) {
  713. return e.apply(this, arguments)
  714. }
  715. var e = p()(c.a.mark(function t(e) {
  716. var n;
  717. return c.a.wrap(function(t) {
  718. for (;;) switch (t.prev = t.next) {
  719. case 0:
  720. if (!0 !== T) {
  721. t.next = 7;
  722. break
  723. }
  724. return t.next = 3, this.voiceRTC.acceptCall(e);
  725. case 3:
  726. return n = t.sent, t.abrupt("return", this.post("acceptCall", {
  727. infoCall: e,
  728. rtcAnswer: n
  729. }));
  730. case 7:
  731. return t.abrupt("return", this.post("acceptCall", {
  732. infoCall: e
  733. }));
  734. case 8:
  735. case "end":
  736. return t.stop()
  737. }
  738. }, t, this)
  739. }));
  740. return t
  741. }()
  742. }, {
  743. key: "rejectCall",
  744. value: function() {
  745. function t(t) {
  746. return e.apply(this, arguments)
  747. }
  748. var e = p()(c.a.mark(function t(e) {
  749. return c.a.wrap(function(t) {
  750. for (;;) switch (t.prev = t.next) {
  751. case 0:
  752. return t.abrupt("return", this.post("rejectCall", {
  753. infoCall: e
  754. }));
  755. case 1:
  756. case "end":
  757. return t.stop()
  758. }
  759. }, t, this)
  760. }));
  761. return t
  762. }()
  763. }, {
  764. key: "notififyUseRTC",
  765. value: function() {
  766. function t(t) {
  767. return e.apply(this, arguments)
  768. }
  769. var e = p()(c.a.mark(function t(e) {
  770. return c.a.wrap(function(t) {
  771. for (;;) switch (t.prev = t.next) {
  772. case 0:
  773. return t.abrupt("return", this.post("notififyUseRTC", e));
  774. case 1:
  775. case "end":
  776. return t.stop()
  777. }
  778. }, t, this)
  779. }));
  780. return t
  781. }()
  782. }, {
  783. key: "onwaitingCall",
  784. value: function(t) {
  785. w.a.commit("SET_APPELS_INFO_IF_EMPTY", o()({}, t.infoCall, {
  786. initiator: t.initiator
  787. }))
  788. }
  789. }, {
  790. key: "onacceptCall",
  791. value: function(t) {
  792. var e = this;
  793. !0 === T && (!0 === t.initiator && this.voiceRTC.onReceiveAnswer(t.infoCall.rtcAnswer), this.voiceRTC.addEventListener("onCandidate", function(n) {
  794. e.post("onCandidates", {
  795. id: t.infoCall.id,
  796. candidates: n
  797. })
  798. })), w.a.commit("SET_APPELS_INFO_IS_ACCEPTS", !0)
  799. }
  800. }, {
  801. key: "oncandidatesAvailable",
  802. value: function(t) {
  803. this.voiceRTC.addIceCandidates(t.candidates)
  804. }
  805. }, {
  806. key: "onrejectCall",
  807. value: function(t) {
  808. null !== this.voiceRTC && this.voiceRTC.close(), w.a.commit("SET_APPELS_INFO", null)
  809. }
  810. }, {
  811. key: "ontchat_receive",
  812. value: function(t) {
  813. w.a.dispatch("tchatAddMessage", t)
  814. }
  815. }, {
  816. key: "ontchat_channel",
  817. value: function(t) {
  818. w.a.commit("TCHAT_SET_MESSAGES", t)
  819. }
  820. }, {
  821. key: "onautoStartCall",
  822. value: function(t) {
  823. this.startCall(t.number, t.extraData)
  824. }
  825. }, {
  826. key: "onautoAcceptCall",
  827. value: function(t) {
  828. w.a.commit("SET_APPELS_INFO", t.infoCall), this.acceptCall(t.infoCall)
  829. }
  830. }, {
  831. key: "twitter_login",
  832. value: function(t, e) {
  833. this.post("twitter_login", {
  834. username: t,
  835. password: e
  836. })
  837. }
  838. }, {
  839. key: "twitter_changePassword",
  840. value: function(t, e, n) {
  841. this.post("twitter_changePassword", {
  842. username: t,
  843. password: e,
  844. newPassword: n
  845. })
  846. }
  847. }, {
  848. key: "twitter_createAccount",
  849. value: function(t, e, n) {
  850. this.post("twitter_createAccount", {
  851. username: t,
  852. password: e,
  853. avatarUrl: n
  854. })
  855. }
  856. }, {
  857. key: "twitter_postTweet",
  858. value: function(t, e, n) {
  859. this.post("twitter_postTweet", {
  860. username: t,
  861. password: e,
  862. message: n
  863. })
  864. }
  865. }, {
  866. key: "twitter_postTweetImg",
  867. value: function(t, e, n) {
  868. this.post("twitter_postTweetImg", {
  869. username: t,
  870. password: e,
  871. img: n
  872. })
  873. }
  874. }, {
  875. key: "twitter_toggleLikeTweet",
  876. value: function(t, e, n) {
  877. this.post("twitter_toggleLikeTweet", {
  878. username: t,
  879. password: e,
  880. tweetId: n
  881. })
  882. }
  883. }, {
  884. key: "twitter_setAvatar",
  885. value: function(t, e, n) {
  886. this.post("twitter_setAvatarUrl", {
  887. username: t,
  888. password: e,
  889. avatarUrl: n
  890. })
  891. }
  892. }, {
  893. key: "twitter_getTweets",
  894. value: function(t, e) {
  895. this.post("twitter_getTweets", {
  896. username: t,
  897. password: e
  898. })
  899. }
  900. }, {
  901. key: "twitter_getFavoriteTweets",
  902. value: function(t, e) {
  903. this.post("twitter_getFavoriteTweets", {
  904. username: t,
  905. password: e
  906. })
  907. }
  908. }, {
  909. key: "ontwitter_tweets",
  910. value: function(t) {
  911. w.a.commit("SET_TWEETS", t)
  912. }
  913. }, {
  914. key: "ontwitter_favoritetweets",
  915. value: function(t) {
  916. w.a.commit("SET_FAVORITE_TWEETS", t)
  917. }
  918. }, {
  919. key: "ontwitter_newTweet",
  920. value: function(t) {
  921. w.a.dispatch("addTweet", t.tweet)
  922. }
  923. }, {
  924. key: "ontwitter_setAccount",
  925. value: function(t) {
  926. w.a.dispatch("setAccount", t)
  927. }
  928. }, {
  929. key: "ontwitter_updateTweetLikes",
  930. value: function(t) {
  931. w.a.commit("UPDATE_TWEET_LIKE", t)
  932. }
  933. }, {
  934. key: "ontwitter_setTweetLikes",
  935. value: function(t) {
  936. w.a.commit("UPDATE_TWEET_ISLIKE", t)
  937. }
  938. }, {
  939. key: "ontwitter_showError",
  940. value: function(t) {
  941. k.a.notify({
  942. title: w.a.getters.IntlString(t.title, ""),
  943. message: w.a.getters.IntlString(t.message),
  944. icon: "twitter",
  945. backgroundColor: "#e0245e80"
  946. })
  947. }
  948. }, {
  949. key: "ontwitter_showSuccess",
  950. value: function(t) {
  951. k.a.notify({
  952. title: w.a.getters.IntlString(t.title, ""),
  953. message: w.a.getters.IntlString(t.message),
  954. icon: "twitter"
  955. })
  956. }
  957. }, {
  958. key: "onplaySound",
  959. value: function(t) {
  960. var e = t.sound,
  961. n = t.volume,
  962. s = void 0 === n ? 1 : n;
  963. e && (void 0 !== this.soundList[e] ? this.soundList[e].volume = s : (this.soundList[e] = new Audio("/html/static/sound/" + e), this.soundList[e].loop = !0, this.soundList[e].volume = s, this.soundList[e].play()))
  964. }
  965. }, {
  966. key: "onsetSoundVolume",
  967. value: function(t) {
  968. var e = t.sound,
  969. n = t.volume,
  970. s = void 0 === n ? 1 : n;
  971. void 0 !== this.soundList[e] && (this.soundList[e].volume = s)
  972. }
  973. }, {
  974. key: "onstopSound",
  975. value: function(t) {
  976. var e = t.sound;
  977. void 0 !== this.soundList[e] && (this.soundList[e].pause(), delete this.soundList[e])
  978. }
  979. }]), t
  980. }(),
  981. E = new A;
  982. e.a = E
  983. }, , , , , , , function(t, e, n) {
  984. "use strict";
  985. var s = n(12),
  986. o = n(2),
  987. i = n(81),
  988. a = n(79),
  989. r = n(80),
  990. c = n(76),
  991. u = n(77),
  992. l = n(78),
  993. h = n(82),
  994. p = n(83);
  995. s.a.use(o.c), e.a = new o.c.Store({
  996. modules: {
  997. phone: i.a,
  998. contacts: a.a,
  999. messages: r.a,
  1000. appels: c.a,
  1001. bank: u.a,
  1002. bourse: l.a,
  1003. tchat: h.a,
  1004. twitter: p.a
  1005. },
  1006. strict: !0
  1007. })
  1008. }, , function(t, e, n) {
  1009. "use strict";
  1010.  
  1011. function s(t) {
  1012. var e = t.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);
  1013. return null !== e ? {
  1014. red: parseInt(e[1], 10),
  1015. green: parseInt(e[2], 10),
  1016. blue: parseInt(e[3], 10)
  1017. } : (e = t.match(/^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/), null !== e ? {
  1018. red: parseInt(e[1], 16),
  1019. green: parseInt(e[2], 16),
  1020. blue: parseInt(e[3], 16)
  1021. } : void 0)
  1022. }
  1023.  
  1024. function o(t, e) {
  1025. return t.reduce(function(t, n) {
  1026. return (t[n[e]] = t[n[e]] || []).push(n), t
  1027. }, {})
  1028. }
  1029.  
  1030. function i(t) {
  1031. if (0 === t.length || "#" === t[0]) return "#D32F2F";
  1032. var e = t.split("").reduce(function(t, e) {
  1033. return (t << 5) - t + e.charCodeAt(0) | 0
  1034. }, 0);
  1035. return r.a.getters.colors[Math.abs(e) % r.a.getters.colors.length]
  1036. }
  1037.  
  1038. function a(t) {
  1039. var e = s(t);
  1040. return void 0 === e ? "#000000" : .299 * e.red + .587 * e.green + .114 * e.blue > 186 ? "rgba(0, 0, 0, 0.87)" : "#FFFFFF"
  1041. }
  1042. e.b = o, e.a = i, e.c = a;
  1043. var r = n(18)
  1044. }, , , , , , function(t, e, n) {
  1045. function s(t) {
  1046. n(179)
  1047. }
  1048. var o = n(0)(n(97), n(249), s, "data-v-2804e189", null);
  1049. t.exports = o.exports
  1050. }, function(t, e, n) {
  1051. function s(t) {
  1052. n(202)
  1053. }
  1054. var o = n(0)(n(98), n(272), s, "data-v-def349b2", null);
  1055. t.exports = o.exports
  1056. }, , , , , , , , , , , , , , , , , , , , , , function(t, e, n) {
  1057. "use strict";
  1058. var s = n(12);
  1059. e.a = new s.a
  1060. }, , , , , , , , , , , , , , , , , , , , function(t, e, n) {
  1061. "use strict";
  1062. var s = n(120),
  1063. o = n.n(s),
  1064. i = n(12),
  1065. a = n(209),
  1066. r = n.n(a),
  1067. c = n(49),
  1068. u = {
  1069. install: function(t) {
  1070. if (!this.installed) {
  1071. this.installed = !0, i.a.component("notification", r.a);
  1072. var e = function(t) {
  1073. c.a.$emit("add", t)
  1074. };
  1075. i.a.notify = e, o()(i.a.prototype, {
  1076. $notify: {
  1077. get: function() {
  1078. return i.a.notify
  1079. }
  1080. }
  1081. })
  1082. }
  1083. }
  1084. };
  1085. e.a = u
  1086. }, function(t, e, n) {
  1087. "use strict";
  1088.  
  1089. function s(t, e) {
  1090. if ("just now" === t) return e;
  1091. var n = Math.round(t);
  1092. return Array.isArray(e) ? n > 1 ? e[1].replace(/%s/, n) : e[0].replace(/%s/, n) : e.replace(/%s/, n)
  1093. }
  1094.  
  1095. function o(t) {
  1096. return new Date(t).toLocaleString()
  1097. }
  1098.  
  1099. function i(t) {
  1100. var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  1101. n = e.name,
  1102. i = void 0 === n ? "timeago" : n,
  1103. a = e.locale,
  1104. m = e.locales,
  1105. v = void 0 === m ? d : m;
  1106. if (!v || 0 === r()(v).length) throw new TypeError("Expected locales to have at least one locale.");
  1107. var g = {
  1108. props: {
  1109. since: {
  1110. required: !0
  1111. },
  1112. locale: String,
  1113. maxTime: Number,
  1114. autoUpdate: Number,
  1115. format: Function
  1116. },
  1117. data: function() {
  1118. return {
  1119. now: (new Date).getTime()
  1120. }
  1121. },
  1122. computed: {
  1123. currentLocale: function() {
  1124. if (t.prototype.$timeago) {
  1125. var e = g.locales[g.locale];
  1126. if (e) return e
  1127. }
  1128. return v.fr_FR
  1129. },
  1130. sinceTime: function() {
  1131. return new Date(this.since).getTime()
  1132. },
  1133. timeForTitle: function() {
  1134. var t = this.now / 1e3 - this.sinceTime / 1e3;
  1135. return this.maxTime && t > this.maxTime ? null : this.format ? this.format(this.sinceTime) : o(this.sinceTime)
  1136. },
  1137. timeago: function() {
  1138. var t = this.now / 1e3 - this.sinceTime / 1e3;
  1139. return this.maxTime && t > this.maxTime ? (clearInterval(this.interval), this.format ? this.format(this.sinceTime) : o(this.sinceTime)) : t <= 5 ? s("just now", this.currentLocale[0]) : t < c ? s(t, this.currentLocale[1]) : t < u ? s(t / c, this.currentLocale[2]) : t < l ? s(t / u, this.currentLocale[3]) : t < h ? s(t / l, this.currentLocale[4]) : t < p ? s(t / h, this.currentLocale[5]) : t < f ? s(t / p, this.currentLocale[6]) : s(t / f, this.currentLocale[7])
  1140. }
  1141. },
  1142. mounted: function() {
  1143. this.autoUpdate && this.update()
  1144. },
  1145. render: function(t) {
  1146. return t("time", {
  1147. attrs: {
  1148. datetime: new Date(this.since),
  1149. title: this.timeForTitle
  1150. }
  1151. }, this.timeago)
  1152. },
  1153. watch: {
  1154. autoUpdate: function(t) {
  1155. this.stopUpdate(), t && this.update()
  1156. }
  1157. },
  1158. methods: {
  1159. update: function() {
  1160. var t = this,
  1161. e = 1e3 * this.autoUpdate;
  1162. this.interval = setInterval(function() {
  1163. t.now = (new Date).getTime()
  1164. }, e)
  1165. },
  1166. stopUpdate: function() {
  1167. clearInterval(this.interval), this.interval = null
  1168. }
  1169. },
  1170. beforeDestroy: function() {
  1171. this.stopUpdate()
  1172. }
  1173. };
  1174. g.locale = "fr_FR", g.locales = {}, t.prototype.$timeago = {
  1175. setCurrentLocale: function(t) {
  1176. g.locale = t
  1177. },
  1178. addLocale: function(t, e) {
  1179. g.locales[t] = e
  1180. }
  1181. }, t.component(i, g)
  1182. }
  1183. e.a = i;
  1184. var a = n(21),
  1185. r = n.n(a),
  1186. c = 60,
  1187. u = 60 * c,
  1188. l = 24 * u,
  1189. h = 7 * l,
  1190. p = 30 * l,
  1191. f = 365 * l,
  1192. d = {
  1193. fr_FR: ["ร  l'instant", ["il y a %s seconde", "il y a %s secondes"],
  1194. ["il y a %s minute", "il y a %s minutes"],
  1195. ["il y a %s heure", "il y a %s heures"],
  1196. ["il y a %s jour", "il y a %s jours"],
  1197. ["il y a %s semaine", "il y a %s semaines"],
  1198. ["il y a %s mois", "il y a %s mois"],
  1199. ["il y a %s an", "il y a %s ans"]
  1200. ]
  1201. }
  1202. }, function(t, e, n) {
  1203. "use strict";
  1204. var s = {
  1205. inserted: function(t) {
  1206. t.focus()
  1207. }
  1208. };
  1209. e.a = s
  1210. }, function(t, e, n) {
  1211. "use strict";
  1212. var s = n(12),
  1213. o = n(274),
  1214. i = n(220),
  1215. a = n.n(i),
  1216. r = n(221),
  1217. c = n.n(r),
  1218. u = n(229),
  1219. l = n.n(u),
  1220. h = n(228),
  1221. p = n.n(h),
  1222. f = n(232),
  1223. d = n.n(f),
  1224. m = n(231),
  1225. v = n.n(m),
  1226. g = n(230),
  1227. _ = n.n(g),
  1228. w = n(211),
  1229. C = n.n(w),
  1230. k = n(212),
  1231. b = n.n(k),
  1232. y = n(215),
  1233. S = n.n(y),
  1234. T = n(227),
  1235. A = n.n(T),
  1236. E = n(225),
  1237. I = n.n(E),
  1238. P = n(226),
  1239. $ = n.n(P),
  1240. x = n(237),
  1241. N = n.n(x),
  1242. M = n(236),
  1243. U = n.n(M),
  1244. L = n(233),
  1245. O = n.n(L),
  1246. R = n(217),
  1247. D = n.n(R),
  1248. B = n(218),
  1249. F = n.n(B),
  1250. H = n(224),
  1251. V = n.n(H),
  1252. q = n(210),
  1253. G = n.n(q);
  1254. s.a.use(o.a), e.a = new o.a({
  1255. routes: [{
  1256. path: "/",
  1257. name: "home",
  1258. component: a.a
  1259. }, {
  1260. path: "/menu",
  1261. name: "menu",
  1262. component: c.a
  1263. }, {
  1264. path: "/contacts",
  1265. name: "contacts",
  1266. component: l.a
  1267. }, {
  1268. path: "/contact/:id",
  1269. name: "contacts.view",
  1270. component: p.a
  1271. }, {
  1272. path: "/messages",
  1273. name: "messages",
  1274. component: d.a
  1275. }, {
  1276. path: "/messages/select",
  1277. name: "messages.selectcontact",
  1278. component: _.a
  1279. }, {
  1280. path: "/messages/:number/:display",
  1281. name: "messages.view",
  1282. component: v.a
  1283. }, {
  1284. path: "/bourse",
  1285. name: "bourse",
  1286. component: F.a
  1287. }, {
  1288. path: "/bank",
  1289. name: "bank",
  1290. component: D.a
  1291. }, {
  1292. path: "/photo",
  1293. name: "photo",
  1294. component: V.a
  1295. }, {
  1296. path: "/paramtre",
  1297. name: "parametre",
  1298. component: O.a
  1299. }, {
  1300. path: "/appels",
  1301. name: "appels",
  1302. component: C.a
  1303. }, {
  1304. path: "/appelsactive",
  1305. name: "appels.active",
  1306. component: b.a
  1307. }, {
  1308. path: "/appelsNumber",
  1309. name: "appels.number",
  1310. component: S.a
  1311. }, {
  1312. path: "/tchatsplash",
  1313. name: "tchat",
  1314. component: A.a
  1315. }, {
  1316. path: "/tchat",
  1317. name: "tchat.channel",
  1318. component: I.a
  1319. }, {
  1320. path: "/tchat/:channel",
  1321. name: "tchat.channel.show",
  1322. component: $.a
  1323. }, {
  1324. path: "/twitter/splash",
  1325. name: "twitter.splash",
  1326. component: N.a
  1327. }, {
  1328. path: "/twitter/view",
  1329. name: "twitter.screen",
  1330. component: U.a
  1331. }, {
  1332. path: "/9gag",
  1333. name: "9gag",
  1334. component: G.a
  1335. }, {
  1336. path: "*",
  1337. redirect: "/"
  1338. }]
  1339. })
  1340. }, function(t, e, n) {
  1341. function s(t) {
  1342. n(195)
  1343. }
  1344. var o = n(0)(n(84), n(265), s, null, null);
  1345. t.exports = o.exports
  1346. }, function(t, e, n) {
  1347. "use strict";
  1348. var s = n(33),
  1349. o = n.n(s),
  1350. i = n(28),
  1351. a = n.n(i),
  1352. r = n(5),
  1353. c = n.n(r),
  1354. u = n(4),
  1355. l = n.n(u),
  1356. h = n(51),
  1357. p = n.n(h),
  1358. f = n(52),
  1359. d = n.n(f),
  1360. m = {
  1361. video: !1,
  1362. audio: !0
  1363. },
  1364. v = function() {
  1365. function t(e) {
  1366. p()(this, t), this.myPeerConnection = null, this.candidates = [], this.listener = {}, this.myCandidates = [], this.audio = new Audio, this.offer = null, this.answer = null, this.initiator = null, this.RTCConfig = e
  1367. }
  1368. return d()(t, [{
  1369. key: "init",
  1370. value: function() {
  1371. function t() {
  1372. return e.apply(this, arguments)
  1373. }
  1374. var e = l()(c.a.mark(function t() {
  1375. return c.a.wrap(function(t) {
  1376. for (;;) switch (t.prev = t.next) {
  1377. case 0:
  1378. return t.next = 2, this.close();
  1379. case 2:
  1380. return this.myPeerConnection = new RTCPeerConnection(this.RTCConfig), t.next = 5, navigator.mediaDevices.getUserMedia(m);
  1381. case 5:
  1382. this.stream = t.sent;
  1383. case 6:
  1384. case "end":
  1385. return t.stop()
  1386. }
  1387. }, t, this)
  1388. }));
  1389. return t
  1390. }()
  1391. }, {
  1392. key: "newConnection",
  1393. value: function() {
  1394. this.close(), this.candidates = [], this.myCandidates = [], this.listener = {}, this.offer = null, this.answer = null, this.initiator = null, this.myPeerConnection = new RTCPeerConnection(this.RTCConfig), this.myPeerConnection.onaddstream = this.onaddstream.bind(this)
  1395. }
  1396. }, {
  1397. key: "close",
  1398. value: function() {
  1399. null !== this.myPeerConnection && this.myPeerConnection.close(), this.myPeerConnection = null
  1400. }
  1401. }, {
  1402. key: "prepareCall",
  1403. value: function() {
  1404. function t() {
  1405. return e.apply(this, arguments)
  1406. }
  1407. var e = l()(c.a.mark(function t() {
  1408. return c.a.wrap(function(t) {
  1409. for (;;) switch (t.prev = t.next) {
  1410. case 0:
  1411. return t.next = 2, this.init();
  1412. case 2:
  1413. return this.newConnection(), this.initiator = !0, this.myPeerConnection.addStream(this.stream), this.myPeerConnection.onicecandidate = this.onicecandidate.bind(this), t.next = 8, this.myPeerConnection.createOffer();
  1414. case 8:
  1415. return this.offer = t.sent, this.myPeerConnection.setLocalDescription(this.offer), t.abrupt("return", btoa(a()(this.offer)));
  1416. case 11:
  1417. case "end":
  1418. return t.stop()
  1419. }
  1420. }, t, this)
  1421. }));
  1422. return t
  1423. }()
  1424. }, {
  1425. key: "acceptCall",
  1426. value: function() {
  1427. function t(t) {
  1428. return e.apply(this, arguments)
  1429. }
  1430. var e = l()(c.a.mark(function t(e) {
  1431. var n;
  1432. return c.a.wrap(function(t) {
  1433. for (;;) switch (t.prev = t.next) {
  1434. case 0:
  1435. return n = JSON.parse(atob(e.rtcOffer)), this.newConnection(), this.initiator = !1, t.next = 5, navigator.mediaDevices.getUserMedia(m);
  1436. case 5:
  1437. return this.stream = t.sent, this.myPeerConnection.onicecandidate = this.onicecandidate.bind(this), this.myPeerConnection.addStream(this.stream), this.offer = new RTCSessionDescription(n), this.myPeerConnection.setRemoteDescription(this.offer), t.next = 12, this.myPeerConnection.createAnswer();
  1438. case 12:
  1439. return this.answer = t.sent, this.myPeerConnection.setLocalDescription(this.answer), t.abrupt("return", btoa(a()(this.answer)));
  1440. case 15:
  1441. case "end":
  1442. return t.stop()
  1443. }
  1444. }, t, this)
  1445. }));
  1446. return t
  1447. }()
  1448. }, {
  1449. key: "onReceiveAnswer",
  1450. value: function() {
  1451. function t(t) {
  1452. return e.apply(this, arguments)
  1453. }
  1454. var e = l()(c.a.mark(function t(e) {
  1455. var n;
  1456. return c.a.wrap(function(t) {
  1457. for (;;) switch (t.prev = t.next) {
  1458. case 0:
  1459. n = JSON.parse(atob(e)), this.answer = new RTCSessionDescription(n), this.myPeerConnection.setRemoteDescription(this.answer);
  1460. case 3:
  1461. case "end":
  1462. return t.stop()
  1463. }
  1464. }, t, this)
  1465. }));
  1466. return t
  1467. }()
  1468. }, {
  1469. key: "onicecandidate",
  1470. value: function(t) {
  1471. if (void 0 !== t.candidate && (this.myCandidates.push(t.candidate), void 0 !== this.listener.onCandidate)) {
  1472. var e = this.getAvailableCandidates(),
  1473. n = !0,
  1474. s = !1,
  1475. i = void 0;
  1476. try {
  1477. for (var a, r = o()(this.listener.onCandidate); !(n = (a = r.next()).done); n = !0) {
  1478. (0, a.value)(e)
  1479. }
  1480. } catch (t) {
  1481. s = !0, i = t
  1482. } finally {
  1483. try {
  1484. !n && r.return && r.return()
  1485. } finally {
  1486. if (s) throw i
  1487. }
  1488. }
  1489. }
  1490. }
  1491. }, {
  1492. key: "getAvailableCandidates",
  1493. value: function() {
  1494. var t = btoa(a()(this.myCandidates));
  1495. return this.myCandidates = [], t
  1496. }
  1497. }, {
  1498. key: "addIceCandidates",
  1499. value: function(t) {
  1500. var e = this;
  1501. if (null !== this.myPeerConnection) {
  1502. JSON.parse(atob(t)).forEach(function(t) {
  1503. null !== t && e.myPeerConnection.addIceCandidate(t)
  1504. })
  1505. }
  1506. }
  1507. }, {
  1508. key: "addEventListener",
  1509. value: function(t, e) {
  1510. "onCandidate" === t && (void 0 === this.listener[t] && (this.listener[t] = []), this.listener[t].push(e), e(this.getAvailableCandidates()))
  1511. }
  1512. }, {
  1513. key: "onaddstream",
  1514. value: function(t) {
  1515. this.audio.srcObject = t.stream, this.audio.play()
  1516. }
  1517. }]), t
  1518. }();
  1519. l()(c.a.mark(function t() {
  1520. return c.a.wrap(function(t) {
  1521. for (;;) switch (t.prev = t.next) {
  1522. case 0:
  1523. case "end":
  1524. return t.stop()
  1525. }
  1526. }, t, this)
  1527. }))(), e.a = v
  1528. }, function(t, e, n) {
  1529. "use strict";
  1530. Object.defineProperty(e, "__esModule", {
  1531. value: !0
  1532. });
  1533. var s = n(12),
  1534. o = n(73),
  1535. i = n.n(o),
  1536. a = n(72),
  1537. r = n(18),
  1538. c = n(70),
  1539. u = n(11),
  1540. l = n(69),
  1541. h = n(71);
  1542. s.a.use(c.a), s.a.use(l.a), s.a.config.productionTip = !1, s.a.prototype.$bus = new s.a, s.a.prototype.$phoneAPI = u.a, window.VueTimeago = c.a, window.Vue = s.a, window.store = r.a, s.a.directive("autofocus", h.a), window.APP = new s.a({
  1543. el: "#app",
  1544. store: r.a,
  1545. router: a.a,
  1546. render: function(t) {
  1547. return t(i.a)
  1548. }
  1549. })
  1550. }, function(t, e, n) {
  1551. "use strict";
  1552. var s = n(34),
  1553. o = n.n(s),
  1554. i = n(11),
  1555. a = {
  1556. appelsHistorique: [],
  1557. appelsInfo: null
  1558. },
  1559. r = {
  1560. appelsHistorique: function(t) {
  1561. return t.appelsHistorique
  1562. },
  1563. appelsInfo: function(t) {
  1564. return t.appelsInfo
  1565. },
  1566. appelsDisplayName: function(t, e) {
  1567. if (null === t.appelsInfo) return "ERROR";
  1568. if (!0 === t.appelsInfo.hidden) return e.IntlString("APP_PHONE_NUMBER_HIDDEN");
  1569. var n = e.appelsDisplayNumber;
  1570. return (e.contacts.find(function(t) {
  1571. return t.number === n
  1572. }) || {}).display || e.IntlString("APP_PHONE_NUMBER_UNKNOWN")
  1573. },
  1574. appelsDisplayNumber: function(t, e) {
  1575. return null === t.appelsInfo ? "ERROR" : !0 === e.isInitiatorCall ? t.appelsInfo.receiver_num : !0 === t.appelsInfo.hidden ? "###-####" : t.appelsInfo.transmitter_num
  1576. },
  1577. isInitiatorCall: function(t, e) {
  1578. return null !== t.appelsInfo && !0 === t.appelsInfo.initiator
  1579. }
  1580. },
  1581. c = {
  1582. startCall: function(t, e) {
  1583. var n = (t.commit, e.numero);
  1584. i.a.startCall(n)
  1585. },
  1586. acceptCall: function(t) {
  1587. var e = t.state;
  1588. i.a.acceptCall(e.appelsInfo)
  1589. },
  1590. rejectCall: function(t) {
  1591. var e = t.state;
  1592. i.a.rejectCall(e.appelsInfo)
  1593. },
  1594. ignoreCall: function(t) {
  1595. (0, t.commit)("SET_APPELS_INFO", null)
  1596. },
  1597. appelsDeleteHistorique: function(t, e) {
  1598. var n = t.commit,
  1599. s = t.state,
  1600. o = e.numero;
  1601. i.a.appelsDeleteHistorique(o), n("SET_APPELS_HISTORIQUE", s.appelsHistorique.filter(function(t) {
  1602. return t.num !== o
  1603. }))
  1604. },
  1605. appelsDeleteAllHistorique: function(t) {
  1606. var e = t.commit;
  1607. i.a.appelsDeleteAllHistorique(), e("SET_APPELS_HISTORIQUE", [])
  1608. },
  1609. resetAppels: function(t) {
  1610. var e = t.commit;
  1611. e("SET_APPELS_HISTORIQUE", []), e("SET_APPELS_INFO", null)
  1612. }
  1613. },
  1614. u = {
  1615. SET_APPELS_HISTORIQUE: function(t, e) {
  1616. t.appelsHistorique = e
  1617. },
  1618. SET_APPELS_INFO_IF_EMPTY: function(t, e) {
  1619. null === t.appelsInfo && (t.appelsInfo = e)
  1620. },
  1621. SET_APPELS_INFO: function(t, e) {
  1622. t.appelsInfo = e
  1623. },
  1624. SET_APPELS_INFO_IS_ACCEPTS: function(t, e) {
  1625. null !== t.appelsInfo && (t.appelsInfo = o()({}, t.appelsInfo, {
  1626. is_accepts: e
  1627. }))
  1628. }
  1629. };
  1630. e.a = {
  1631. state: a,
  1632. getters: r,
  1633. actions: c,
  1634. mutations: u
  1635. }
  1636. }, function(t, e, n) {
  1637. "use strict";
  1638. var s = {
  1639. bankAmont: "0"
  1640. },
  1641. o = {
  1642. bankAmont: function(t) {
  1643. return t.bankAmont
  1644. }
  1645. },
  1646. i = {},
  1647. a = {
  1648. SET_BANK_AMONT: function(t, e) {
  1649. t.bankAmont = e
  1650. }
  1651. };
  1652. e.a = {
  1653. state: s,
  1654. getters: o,
  1655. actions: i,
  1656. mutations: a
  1657. }
  1658. }, function(t, e, n) {
  1659. "use strict";
  1660. var s = {
  1661. bourseInfo: []
  1662. },
  1663. o = {
  1664. bourseInfo: function(t) {
  1665. return t.bourseInfo
  1666. }
  1667. },
  1668. i = {
  1669. resetBourse: function(t) {
  1670. (0, t.commit)("SET_BOURSE_INFO", [])
  1671. }
  1672. },
  1673. a = {
  1674. SET_BOURSE_INFO: function(t, e) {
  1675. t.bourseInfo = e
  1676. }
  1677. };
  1678. e.a = {
  1679. state: s,
  1680. getters: o,
  1681. actions: i,
  1682. mutations: a
  1683. }
  1684. }, function(t, e, n) {
  1685. "use strict";
  1686. var s = n(8),
  1687. o = n.n(s),
  1688. i = n(11),
  1689. a = {
  1690. contacts: [],
  1691. defaultContacts: []
  1692. },
  1693. r = {
  1694. contacts: function(t) {
  1695. var e = t.contacts,
  1696. n = t.defaultContacts;
  1697. return [].concat(o()(e), o()(n))
  1698. }
  1699. },
  1700. c = {
  1701. updateContact: function(t, e) {
  1702. var n = e.id,
  1703. s = e.display,
  1704. o = e.number;
  1705. i.a.updateContact(n, s, o)
  1706. },
  1707. addContact: function(t, e) {
  1708. var n = e.display,
  1709. s = e.number;
  1710. i.a.addContact(n, s)
  1711. },
  1712. deleteContact: function(t, e) {
  1713. var n = e.id;
  1714. i.a.deleteContact(n)
  1715. },
  1716. resetContact: function(t) {
  1717. (0, t.commit)("SET_CONTACTS", [])
  1718. }
  1719. },
  1720. u = {
  1721. SET_CONTACTS: function(t, e) {
  1722. t.contacts = e.sort(function(t, e) {
  1723. return t.display.localeCompare(e.display)
  1724. })
  1725. },
  1726. SET_DEFAULT_CONTACTS: function(t, e) {
  1727. t.defaultContacts = e
  1728. }
  1729. };
  1730. e.a = {
  1731. state: a,
  1732. getters: r,
  1733. actions: c,
  1734. mutations: u
  1735. }
  1736. }, function(t, e, n) {
  1737. "use strict";
  1738. var s = n(11),
  1739. o = {
  1740. messages: []
  1741. },
  1742. i = {
  1743. messages: function(t) {
  1744. return t.messages
  1745. },
  1746. nbMessagesUnread: function(t) {
  1747. return t.messages.filter(function(t) {
  1748. return 1 !== t.isRead
  1749. }).length
  1750. }
  1751. },
  1752. a = {
  1753. setMessages: function(t, e) {
  1754. (0, t.commit)("SET_MESSAGES", e)
  1755. },
  1756. sendMessage: function(t, e) {
  1757. var n = (t.commit, e.phoneNumber),
  1758. o = e.message;
  1759. s.a.sendMessage(n, o)
  1760. },
  1761. deleteMessage: function(t, e) {
  1762. var n = (t.commit, e.id);
  1763. s.a.deleteMessage(n)
  1764. },
  1765. deleteMessagesNumber: function(t, e) {
  1766. var n = t.commit,
  1767. o = t.state,
  1768. i = e.num;
  1769. s.a.deleteMessagesNumber(i), n("SET_MESSAGES", o.messages.filter(function(t) {
  1770. return t.transmitter !== i
  1771. }))
  1772. },
  1773. deleteAllMessages: function(t) {
  1774. var e = t.commit;
  1775. s.a.deleteAllMessages(), e("SET_MESSAGES", [])
  1776. },
  1777. setMessageRead: function(t, e) {
  1778. var n = t.commit;
  1779. s.a.setMessageRead(e), n("SET_MESSAGES_READ", {
  1780. num: e
  1781. })
  1782. },
  1783. resetMessage: function(t) {
  1784. (0, t.commit)("SET_MESSAGES", [])
  1785. }
  1786. },
  1787. r = {
  1788. SET_MESSAGES: function(t, e) {
  1789. t.messages = e
  1790. },
  1791. ADD_MESSAGE: function(t, e) {
  1792. t.messages.push(e)
  1793. },
  1794. SET_MESSAGES_READ: function(t, e) {
  1795. for (var n = e.num, s = 0; s < t.messages.length; s += 1) t.messages[s].transmitter === n && 1 !== t.messages[s].isRead && (t.messages[s].isRead = 1)
  1796. }
  1797. };
  1798. e.a = {
  1799. state: o,
  1800. getters: i,
  1801. actions: a,
  1802. mutations: r
  1803. }
  1804. }, function(t, e, n) {
  1805. "use strict";
  1806. var s = n(28),
  1807. o = n.n(s),
  1808. i = n(5),
  1809. a = n.n(i),
  1810. r = n(4),
  1811. c = n.n(r),
  1812. u = n(33),
  1813. l = n.n(u),
  1814. h = n(21),
  1815. p = n.n(h),
  1816. f = n(12),
  1817. d = n(11),
  1818. m = {
  1819. show: !1,
  1820. tempoHide: !1,
  1821. myPhoneNumber: "###-####",
  1822. background: JSON.parse(window.localStorage.gc_background || null),
  1823. coque: JSON.parse(window.localStorage.gc_coque || null),
  1824. zoom: window.localStorage.gc_zoom || "100%",
  1825. volume: parseFloat(window.localStorage.gc_volume) || 1,
  1826. mouse: "true" === window.localStorage.gc_mouse,
  1827. lang: window.localStorage.gc_language,
  1828. config: {
  1829. reseau: "Gannon",
  1830. useFormatNumberFrance: !1,
  1831. apps: [],
  1832. themeColor: "#2A56C6",
  1833. colors: ["#2A56C6"],
  1834. language: {}
  1835. }
  1836. };
  1837. d.a.setUseMouse(m.mouse);
  1838. var v = {
  1839. show: function(t) {
  1840. return t.show
  1841. },
  1842. tempoHide: function(t) {
  1843. return t.tempoHide
  1844. },
  1845. myPhoneNumber: function(t) {
  1846. return t.myPhoneNumber
  1847. },
  1848. volume: function(t) {
  1849. return t.volume
  1850. },
  1851. enableTakePhoto: function(t) {
  1852. return !0 === t.config.enableTakePhoto
  1853. },
  1854. background: function(t) {
  1855. var e = t.background,
  1856. n = t.config;
  1857. return null === e ? void 0 !== n.background_default ? n.background_default : {
  1858. label: "Default",
  1859. value: "default.jpg"
  1860. } : e
  1861. },
  1862. backgroundLabel: function(t, e) {
  1863. return e.background.label
  1864. },
  1865. backgroundURL: function(t, e) {
  1866. return !0 === e.background.value.startsWith("http") ? e.background.value : "/html/static/img/background/" + e.background.value
  1867. },
  1868. coque: function(t) {
  1869. var e = t.coque,
  1870. n = t.config;
  1871. return null === e ? n && void 0 !== n.coque_default ? n.coque_default : {
  1872. label: "base",
  1873. value: "base.jpg"
  1874. } : e
  1875. },
  1876. coqueLabel: function(t, e) {
  1877. return e.coque.label
  1878. },
  1879. zoom: function(t) {
  1880. return t.zoom
  1881. },
  1882. useMouse: function(t) {
  1883. return t.mouse
  1884. },
  1885. config: function(t) {
  1886. return t.config
  1887. },
  1888. warningMessageCount: function(t) {
  1889. return t.config.warningMessageCount || 250
  1890. },
  1891. useFormatNumberFrance: function(t) {
  1892. return t.config.useFormatNumberFrance
  1893. },
  1894. themeColor: function(t) {
  1895. return t.config.themeColor
  1896. },
  1897. colors: function(t) {
  1898. return t.config.colors
  1899. },
  1900. Apps: function(t, e) {
  1901. var n = t.config,
  1902. s = t.lang;
  1903. return n.apps.filter(function(t) {
  1904. return !1 !== t.enabled
  1905. }).map(function(t) {
  1906. void 0 !== t.puceRef && (t.puce = e[t.puceRef]);
  1907. var n = s + "__name";
  1908. return t.intlName = t[n] || t.name, t
  1909. })
  1910. },
  1911. AppsHome: function(t, e) {
  1912. return e.Apps.filter(function(t) {
  1913. return !0 === t.inHomePage
  1914. })
  1915. },
  1916. availableLanguages: function(t) {
  1917. var e = t.config,
  1918. n = p()(e.language),
  1919. s = {},
  1920. o = !0,
  1921. i = !1,
  1922. a = void 0;
  1923. try {
  1924. for (var r, c = l()(n); !(o = (r = c.next()).done); o = !0) {
  1925. var u = r.value;
  1926. s[e.language[u].NAME] = u
  1927. }
  1928. } catch (t) {
  1929. i = !0, a = t
  1930. } finally {
  1931. try {
  1932. !o && c.return && c.return()
  1933. } finally {
  1934. if (i) throw a
  1935. }
  1936. }
  1937. return s
  1938. },
  1939. IntlString: function(t) {
  1940. var e = t.config,
  1941. n = t.lang;
  1942. return n = n || e.defaultLanguage, void 0 === e.language[n] ? function(t) {
  1943. return t
  1944. } : function(t, s) {
  1945. return e.language[n][t] || s || t
  1946. }
  1947. }
  1948. },
  1949. g = {
  1950. loadConfig: function(t) {
  1951. var e = this,
  1952. n = t.commit,
  1953. s = t.state;
  1954. return c()(a.a.mark(function t() {
  1955. var o, i, r, c, u, h, m, v, g;
  1956. return a.a.wrap(function(t) {
  1957. for (;;) switch (t.prev = t.next) {
  1958. case 0:
  1959. return t.next = 2, d.a.getConfig();
  1960. case 2:
  1961. for (o = t.sent, i = p()(o.language), r = !0, c = !1, u = void 0, t.prev = 7, h = l()(i); !(r = (m = h.next()).done); r = !0) v = m.value, void 0 !== (g = o.language[v].TIMEAGO) && f.a.prototype.$timeago.addLocale(v, g);
  1962. t.next = 15;
  1963. break;
  1964. case 11:
  1965. t.prev = 11, t.t0 = t.catch(7), c = !0, u = t.t0;
  1966. case 15:
  1967. t.prev = 15, t.prev = 16, !r && h.return && h.return();
  1968. case 18:
  1969. if (t.prev = 18, !c) {
  1970. t.next = 21;
  1971. break
  1972. }
  1973. throw u;
  1974. case 21:
  1975. return t.finish(18);
  1976. case 22:
  1977. return t.finish(15);
  1978. case 23:
  1979. f.a.prototype.$timeago.setCurrentLocale(s.lang), void 0 !== o.defaultContacts && n("SET_DEFAULT_CONTACTS", o.defaultContacts), n("SET_CONFIG", o);
  1980. case 26:
  1981. case "end":
  1982. return t.stop()
  1983. }
  1984. }, t, e, [
  1985. [7, 11, 15, 23],
  1986. [16, , 18, 22]
  1987. ])
  1988. }))()
  1989. },
  1990. setEnableApp: function(t, e) {
  1991. var n = t.commit,
  1992. s = (t.state, e.appName),
  1993. o = e.enable;
  1994. n("SET_APP_ENABLE", {
  1995. appName: s,
  1996. enable: void 0 === o || o
  1997. })
  1998. },
  1999. setVisibility: function(t, e) {
  2000. (0, t.commit)("SET_PHONE_VISIBILITY", e)
  2001. },
  2002. setZoon: function(t, e) {
  2003. var n = t.commit;
  2004. window.localStorage.gc_zoom = e, n("SET_ZOOM", e)
  2005. },
  2006. setBackground: function(t, e) {
  2007. var n = t.commit;
  2008. window.localStorage.gc_background = o()(e), n("SET_BACKGROUND", e)
  2009. },
  2010. setCoque: function(t, e) {
  2011. var n = t.commit;
  2012. window.localStorage.gc_coque = o()(e), n("SET_COQUE", e)
  2013. },
  2014. setVolume: function(t, e) {
  2015. var n = t.commit;
  2016. window.localStorage.gc_volume = e, n("SET_VOLUME", e)
  2017. },
  2018. setLanguage: function(t, e) {
  2019. var n = t.commit;
  2020. window.localStorage.gc_language = e, f.a.prototype.$timeago.setCurrentLocale(e), n("SET_LANGUAGE", e)
  2021. },
  2022. setMouseSupport: function(t, e) {
  2023. var n = t.commit;
  2024. window.localStorage.gc_mouse = e, d.a.setUseMouse(e), n("SET_MOUSE_SUPPORT", e)
  2025. },
  2026. closePhone: function() {
  2027. d.a.closePhone()
  2028. },
  2029. resetPhone: function(t) {
  2030. var e = t.dispatch,
  2031. n = t.getters;
  2032. e("setZoon", "100%"), e("setVolume", 1), e("setBackground", n.config.background_default), e("setCoque", n.config.coque_default), e("setLanguage", "fr_FR")
  2033. }
  2034. },
  2035. _ = {
  2036. SET_CONFIG: function(t, e) {
  2037. t.config = e
  2038. },
  2039. SET_APP_ENABLE: function(t, e) {
  2040. var n = e.appName,
  2041. s = e.enable,
  2042. o = t.config.apps.findIndex(function(t) {
  2043. return t.name === n
  2044. }); - 1 !== o && f.a.set(t.config.apps[o], "enabled", s)
  2045. },
  2046. SET_PHONE_VISIBILITY: function(t, e) {
  2047. t.show = e, t.tempoHide = !1
  2048. },
  2049. SET_TEMPO_HIDE: function(t, e) {
  2050. t.tempoHide = e
  2051. },
  2052. SET_MY_PHONE_NUMBER: function(t, e) {
  2053. t.myPhoneNumber = e
  2054. },
  2055. SET_BACKGROUND: function(t, e) {
  2056. t.background = e
  2057. },
  2058. SET_COQUE: function(t, e) {
  2059. t.coque = e
  2060. },
  2061. SET_ZOOM: function(t, e) {
  2062. t.zoom = e
  2063. },
  2064. SET_VOLUME: function(t, e) {
  2065. t.volume = e
  2066. },
  2067. SET_LANGUAGE: function(t, e) {
  2068. t.lang = e
  2069. },
  2070. SET_MOUSE_SUPPORT: function(t, e) {
  2071. t.mouse = e
  2072. }
  2073. };
  2074. e.a = {
  2075. state: m,
  2076. getters: v,
  2077. actions: g,
  2078. mutations: _
  2079. }
  2080. }, function(t, e, n) {
  2081. "use strict";
  2082. var s = n(34),
  2083. o = (n.n(s), n(28)),
  2084. i = n.n(o),
  2085. a = n(11),
  2086. r = "gc_tchat_channels",
  2087. c = null,
  2088. u = {
  2089. channels: JSON.parse(localStorage[r] || null) || [],
  2090. currentChannel: null,
  2091. messagesChannel: []
  2092. },
  2093. l = {
  2094. tchatChannels: function(t) {
  2095. return t.channels
  2096. },
  2097. tchatCurrentChannel: function(t) {
  2098. return t.currentChannel
  2099. },
  2100. tchatMessages: function(t) {
  2101. return t.messagesChannel
  2102. }
  2103. },
  2104. h = {
  2105. tchatReset: function(t) {
  2106. var e = t.commit;
  2107. e("TCHAT_SET_MESSAGES", {
  2108. messages: []
  2109. }), e("TCHAT_SET_CHANNEL", {
  2110. channel: null
  2111. }), e("TCHAT_REMOVES_ALL_CHANNELS")
  2112. },
  2113. tchatSetChannel: function(t, e) {
  2114. var n = t.state,
  2115. s = t.commit,
  2116. o = t.dispatch,
  2117. i = e.channel;
  2118. n.currentChannel !== i && (s("TCHAT_SET_MESSAGES", {
  2119. messages: []
  2120. }), s("TCHAT_SET_CHANNEL", {
  2121. channel: i
  2122. }), o("tchatGetMessagesChannel", {
  2123. channel: i
  2124. }))
  2125. },
  2126. tchatAddMessage: function(t, e) {
  2127. var n = t.state,
  2128. s = t.commit,
  2129. o = t.getters,
  2130. i = e.message,
  2131. a = i.channel;
  2132. void 0 !== n.channels.find(function(t) {
  2133. return t.channel === a
  2134. }) && (null !== c && (c.pause(), c = null), c = new Audio("/html/static/sound/tchatNotification.ogg"), c.volume = o.volume, c.play()), s("TCHAT_ADD_MESSAGES", {
  2135. message: i
  2136. })
  2137. },
  2138. tchatAddChannel: function(t, e) {
  2139. (0, t.commit)("TCHAT_ADD_CHANNELS", {
  2140. channel: e.channel
  2141. })
  2142. },
  2143. tchatRemoveChannel: function(t, e) {
  2144. (0, t.commit)("TCHAT_REMOVES_CHANNELS", {
  2145. channel: e.channel
  2146. })
  2147. },
  2148. tchatGetMessagesChannel: function(t, e) {
  2149. var n = (t.commit, e.channel);
  2150. a.a.tchatGetMessagesChannel(n)
  2151. },
  2152. tchatSendMessage: function(t, e) {
  2153. var n = e.channel,
  2154. s = e.message;
  2155. a.a.tchatSendMessage(n, s)
  2156. }
  2157. },
  2158. p = {
  2159. TCHAT_SET_CHANNEL: function(t, e) {
  2160. var n = e.channel;
  2161. t.currentChannel = n
  2162. },
  2163. TCHAT_ADD_CHANNELS: function(t, e) {
  2164. var n = e.channel;
  2165. t.channels.push({
  2166. channel: n
  2167. }), localStorage[r] = i()(t.channels)
  2168. },
  2169. TCHAT_REMOVES_CHANNELS: function(t, e) {
  2170. var n = e.channel;
  2171. t.channels = t.channels.filter(function(t) {
  2172. return t.channel !== n
  2173. }), localStorage[r] = i()(t.channels)
  2174. },
  2175. TCHAT_REMOVES_ALL_CHANNELS: function(t) {
  2176. t.channels = [], localStorage[r] = i()(t.channels)
  2177. },
  2178. TCHAT_ADD_MESSAGES: function(t, e) {
  2179. var n = e.message;
  2180. n.channel === t.currentChannel && t.messagesChannel.push(n)
  2181. },
  2182. TCHAT_SET_MESSAGES: function(t, e) {
  2183. var n = e.messages;
  2184. t.messagesChannel = n
  2185. }
  2186. };
  2187. e.a = {
  2188. state: u,
  2189. getters: l,
  2190. actions: h,
  2191. mutations: p
  2192. }
  2193. }, function(t, e, n) {
  2194. "use strict";
  2195. var s = n(8),
  2196. o = n.n(s),
  2197. i = n(11),
  2198. a = n(12),
  2199. r = {
  2200. twitterUsername: localStorage.gcphone_twitter_username,
  2201. twitterPassword: localStorage.gcphone_twitter_password,
  2202. twitterAvatarUrl: localStorage.gcphone_twitter_avatarUrl,
  2203. twitterNotification: localStorage.gcphone_twitter_notif ? parseInt(localStorage.gcphone_twitter_notif) : 1,
  2204. twitterNotificationSound: "false" !== localStorage.gcphone_twitter_notif_sound,
  2205. tweets: [],
  2206. favoriteTweets: []
  2207. },
  2208. c = {
  2209. twitterUsername: function(t) {
  2210. return t.twitterUsername
  2211. },
  2212. twitterPassword: function(t) {
  2213. return t.twitterPassword
  2214. },
  2215. twitterAvatarUrl: function(t) {
  2216. return t.twitterAvatarUrl
  2217. },
  2218. twitterNotification: function(t) {
  2219. return t.twitterNotification
  2220. },
  2221. twitterNotificationSound: function(t) {
  2222. return t.twitterNotificationSound
  2223. },
  2224. tweets: function(t) {
  2225. return t.tweets
  2226. },
  2227. favoriteTweets: function(t) {
  2228. return t.favoriteTweets
  2229. }
  2230. },
  2231. u = {
  2232. twitterCreateNewAccount: function(t, e) {
  2233. var n = e.username,
  2234. s = e.password,
  2235. o = e.avatarUrl;
  2236. i.a.twitter_createAccount(n, s, o)
  2237. },
  2238. twitterLogin: function(t, e) {
  2239. var n = (t.commit, e.username),
  2240. s = e.password;
  2241. i.a.twitter_login(n, s)
  2242. },
  2243. twitterChangePassword: function(t, e) {
  2244. var n = t.state;
  2245. i.a.twitter_changePassword(n.twitterUsername, n.twitterPassword, e)
  2246. },
  2247. twitterLogout: function(t) {
  2248. var e = t.commit;
  2249. localStorage.removeItem("gcphone_twitter_username"), localStorage.removeItem("gcphone_twitter_password"), localStorage.removeItem("gcphone_twitter_avatarUrl"), e("UPDATE_ACCOUNT", {
  2250. username: void 0,
  2251. password: void 0,
  2252. avatarUrl: void 0
  2253. })
  2254. },
  2255. twitterSetAvatar: function(t, e) {
  2256. var n = t.state,
  2257. s = e.avatarUrl;
  2258. i.a.twitter_setAvatar(n.twitterUsername, n.twitterPassword, s)
  2259. },
  2260. twitterPostTweet: function(t, e) {
  2261. var n = t.state,
  2262. s = (t.commit, e.message);
  2263. /^https?:\/\/.*\.(png|jpg|jpeg|gif)$/.test(s) ? i.a.twitter_postTweetImg(n.twitterUsername, n.twitterPassword, s) : i.a.twitter_postTweet(n.twitterUsername, n.twitterPassword, i.a.convertEmoji(s))
  2264. },
  2265. twitterToogleLike: function(t, e) {
  2266. var n = t.state,
  2267. s = e.tweetId;
  2268. i.a.twitter_toggleLikeTweet(n.twitterUsername, n.twitterPassword, s)
  2269. },
  2270. setAccount: function(t, e) {
  2271. var n = t.commit;
  2272. localStorage.gcphone_twitter_username = e.username, localStorage.gcphone_twitter_password = e.password, localStorage.gcphone_twitter_avatarUrl = e.avatarUrl, n("UPDATE_ACCOUNT", e)
  2273. },
  2274. addTweet: function(t, e) {
  2275. var n = t.commit,
  2276. s = t.state,
  2277. o = 2 === s.twitterNotification;
  2278. 1 === s.twitterNotification && (o = e.message && -1 !== e.message.toLowerCase().indexOf(s.twitterUsername.toLowerCase())), !0 === o && a.a.notify({
  2279. message: e.message,
  2280. title: e.author + " :",
  2281. icon: "twitter",
  2282. sound: s.twitterNotificationSound ? "Twitter_Sound_Effect.ogg" : void 0
  2283. }), n("ADD_TWEET", {
  2284. tweet: e
  2285. })
  2286. },
  2287. fetchTweets: function(t) {
  2288. var e = t.state;
  2289. i.a.twitter_getTweets(e.twitterUsername, e.twitterPassword)
  2290. },
  2291. fetchFavoriteTweets: function(t) {
  2292. var e = t.state;
  2293. i.a.twitter_getFavoriteTweets(e.twitterUsername, e.twitterPassword)
  2294. },
  2295. setTwitterNotification: function(t, e) {
  2296. var n = t.commit;
  2297. localStorage.gcphone_twitter_notif = e, n("SET_TWITTER_NOTIFICATION", {
  2298. notification: e
  2299. })
  2300. },
  2301. setTwitterNotificationSound: function(t, e) {
  2302. var n = t.commit;
  2303. localStorage.gcphone_twitter_notif_sound = e, n("SET_TWITTER_NOTIFICATION_SOUND", {
  2304. notificationSound: e
  2305. })
  2306. }
  2307. },
  2308. l = {
  2309. SET_TWITTER_NOTIFICATION: function(t, e) {
  2310. var n = e.notification;
  2311. t.twitterNotification = n
  2312. },
  2313. SET_TWITTER_NOTIFICATION_SOUND: function(t, e) {
  2314. var n = e.notificationSound;
  2315. t.twitterNotificationSound = n
  2316. },
  2317. UPDATE_ACCOUNT: function(t, e) {
  2318. var n = e.username,
  2319. s = e.password,
  2320. o = e.avatarUrl;
  2321. t.twitterUsername = n, t.twitterPassword = s, t.twitterAvatarUrl = o
  2322. },
  2323. SET_TWEETS: function(t, e) {
  2324. var n = e.tweets;
  2325. t.tweets = n
  2326. },
  2327. SET_FAVORITE_TWEETS: function(t, e) {
  2328. var n = e.tweets;
  2329. t.favoriteTweets = n
  2330. },
  2331. ADD_TWEET: function(t, e) {
  2332. var n = e.tweet;
  2333. t.tweets = [n].concat(o()(t.tweets))
  2334. },
  2335. UPDATE_TWEET_LIKE: function(t, e) {
  2336. var n = e.tweetId,
  2337. s = e.likes,
  2338. o = t.tweets.findIndex(function(t) {
  2339. return t.id === n
  2340. }); - 1 !== o && (t.tweets[o].likes = s);
  2341. var i = t.favoriteTweets.findIndex(function(t) {
  2342. return t.id === n
  2343. }); - 1 !== i && (t.favoriteTweets[i].likes = s)
  2344. },
  2345. UPDATE_TWEET_ISLIKE: function(t, e) {
  2346. var n = e.tweetId,
  2347. s = e.isLikes,
  2348. o = t.tweets.findIndex(function(t) {
  2349. return t.id === n
  2350. }); - 1 !== o && a.a.set(t.tweets[o], "isLikes", s);
  2351. var i = t.favoriteTweets.findIndex(function(t) {
  2352. return t.id === n
  2353. }); - 1 !== i && a.a.set(t.favoriteTweets[i], "isLikes", s)
  2354. }
  2355. };
  2356. e.a = {
  2357. state: r,
  2358. getters: c,
  2359. actions: u,
  2360. mutations: l
  2361. }
  2362. }, function(t, e, n) {
  2363. "use strict";
  2364. Object.defineProperty(e, "__esModule", {
  2365. value: !0
  2366. });
  2367. var s = n(1),
  2368. o = n.n(s),
  2369. i = n(169),
  2370. a = (n.n(i), n(168)),
  2371. r = (n.n(a), n(2));
  2372. e.default = {
  2373. name: "app",
  2374. components: {},
  2375. data: function() {
  2376. return {
  2377. soundCall: null
  2378. }
  2379. },
  2380. methods: o()({}, n.i(r.a)(["loadConfig", "rejectCall"]), {
  2381. closePhone: function() {
  2382. this.$phoneAPI.closePhone()
  2383. }
  2384. }),
  2385. computed: o()({}, n.i(r.b)(["show", "zoom", "coque", "appelsInfo", "myPhoneNumber", "volume", "tempoHide"])),
  2386. watch: {
  2387. appelsInfo: function(t, e) {
  2388. if (null !== this.appelsInfo && !0 !== this.appelsInfo.is_accepts ? (null !== this.soundCall && this.soundCall.pause(), !0 === this.appelsInfo.initiator ? this.soundCall = new Audio("/html/static/sound/Phone_Call_Sound_Effect.ogg") : this.soundCall = new Audio("/html/static/sound/ring.ogg"), this.soundCall.loop = !0, this.soundCall.volume = this.volume, this.soundCall.play()) : null !== this.soundCall && (this.soundCall.pause(), this.soundCall = null), null === t && null !== e) return void this.$router.push({
  2389. name: "home"
  2390. });
  2391. null !== t && this.$router.push({
  2392. name: "appels.active"
  2393. })
  2394. },
  2395. show: function() {
  2396. null !== this.appelsInfo ? this.$router.push({
  2397. name: "appels.active"
  2398. }) : this.$router.push({
  2399. name: "home"
  2400. }), !1 === this.show && null !== this.appelsInfo && this.rejectCall()
  2401. }
  2402. },
  2403. mounted: function() {
  2404. var t = this;
  2405. this.loadConfig(), window.addEventListener("message", function(e) {
  2406. void 0 !== e.data.keyUp && t.$bus.$emit("keyUp" + e.data.keyUp)
  2407. }), window.addEventListener("keyup", function(e) {
  2408. -1 !== ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown", "Backspace", "Enter"].indexOf(e.key) && t.$bus.$emit("keyUp" + e.key), "Escape" === e.key && t.$phoneAPI.closePhone()
  2409. })
  2410. }
  2411. }
  2412. }, function(t, e, n) {
  2413. "use strict";
  2414. Object.defineProperty(e, "__esModule", {
  2415. value: !0
  2416. });
  2417. var s = n(5),
  2418. o = n.n(s),
  2419. i = n(1),
  2420. a = n.n(i),
  2421. r = n(4),
  2422. c = n.n(r),
  2423. u = n(49);
  2424. e.default = {
  2425. data: function() {
  2426. return {
  2427. currentId: 0,
  2428. list: []
  2429. }
  2430. },
  2431. mounted: function() {
  2432. u.a.$on("add", this.addItem)
  2433. },
  2434. methods: {
  2435. addItem: function() {
  2436. var t = this,
  2437. e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  2438. return c()(o.a.mark(function n() {
  2439. var s, i;
  2440. return o.a.wrap(function(n) {
  2441. for (;;) switch (n.prev = n.next) {
  2442. case 0:
  2443. s = a()({}, e, {
  2444. id: t.currentId++,
  2445. duration: parseInt(e.duration) || 3e3
  2446. }), t.list.push(s), window.setTimeout(function() {
  2447. t.destroy(s.id)
  2448. }, s.duration), null !== e.sound && void 0 !== e.sound && (i = new Audio("/html/static/sound/" + e.sound), i.addEventListener("ended", function() {
  2449. i.src = null
  2450. }), i.play());
  2451. case 4:
  2452. case "end":
  2453. return n.stop()
  2454. }
  2455. }, n, t)
  2456. }))()
  2457. },
  2458. style: function(t) {
  2459. return {
  2460. backgroundColor: t.backgroundColor
  2461. }
  2462. },
  2463. destroy: function(t) {
  2464. this.list = this.list.filter(function(e) {
  2465. return e.id !== t
  2466. })
  2467. }
  2468. }
  2469. }
  2470. }, function(t, e, n) {
  2471. "use strict";
  2472. Object.defineProperty(e, "__esModule", {
  2473. value: !0
  2474. });
  2475. var s = n(5),
  2476. o = n.n(s),
  2477. i = n(8),
  2478. a = n.n(i),
  2479. r = n(4),
  2480. c = n.n(r),
  2481. u = n(10),
  2482. l = n.n(u);
  2483. e.default = {
  2484. components: {
  2485. PhoneTitle: l.a
  2486. },
  2487. data: function() {
  2488. return {
  2489. nextCursor: "c=10",
  2490. currentSelectPost: 0,
  2491. posts: []
  2492. }
  2493. },
  2494. computed: {
  2495. currentPost: function() {
  2496. if (this.posts && this.posts.length > this.currentSelectPost) return this.posts[this.currentSelectPost];
  2497. this.loadItems()
  2498. }
  2499. },
  2500. methods: {
  2501. loadItems: function() {
  2502. var t = this;
  2503. return c()(o.a.mark(function e() {
  2504. var n, s, i, r;
  2505. return o.a.wrap(function(e) {
  2506. for (;;) switch (e.prev = e.next) {
  2507. case 0:
  2508. return s = "https://9gag.com/v1/group-posts/group/default/type/hot?" + t.nextCursor, e.next = 3, fetch(s);
  2509. case 3:
  2510. return i = e.sent, e.next = 6, i.json();
  2511. case 6:
  2512. r = e.sent, (n = t.posts).push.apply(n, a()(r.data.posts)), t.nextCursor = r.data.nextCursor;
  2513. case 9:
  2514. case "end":
  2515. return e.stop()
  2516. }
  2517. }, e, t)
  2518. }))()
  2519. },
  2520. previewPost: function() {
  2521. var t = this;
  2522. if (0 === this.currentSelectPost) return 0;
  2523. this.currentSelectPost -= 1, setTimeout(function() {
  2524. void 0 !== t.$refs.video && (t.$refs.video.volume = .15)
  2525. }, 200)
  2526. },
  2527. nextPost: function() {
  2528. var t = this;
  2529. this.currentSelectPost += 1, setTimeout(function() {
  2530. void 0 !== t.$refs.video && (t.$refs.video.volume = .15)
  2531. }, 200)
  2532. },
  2533. onClick: function(t) {
  2534. t.offsetX < 200 ? this.previewPost() : this.nextPost()
  2535. },
  2536. quit: function() {
  2537. this.$router.push({
  2538. name: "home"
  2539. })
  2540. }
  2541. },
  2542. created: function() {
  2543. this.$bus.$on("keyUpArrowLeft", this.previewPost), this.$bus.$on("keyUpArrowRight", this.nextPost), this.$bus.$on("keyUpBackspace", this.quit)
  2544. },
  2545. beforeDestroy: function() {
  2546. this.$bus.$off("keyUpArrowLeft", this.previewPost), this.$bus.$off("keyUpArrowRight", this.nextPost), this.$bus.$off("keyUpBackspace", this.quit)
  2547. }
  2548. }
  2549. }, function(t, e, n) {
  2550. "use strict";
  2551. Object.defineProperty(e, "__esModule", {
  2552. value: !0
  2553. });
  2554. var s = n(1),
  2555. o = n.n(s),
  2556. i = n(2),
  2557. a = n(10),
  2558. r = n.n(a),
  2559. c = n(214),
  2560. u = n.n(c),
  2561. l = n(213),
  2562. h = n.n(l),
  2563. p = n(216),
  2564. f = n.n(p);
  2565. e.default = {
  2566. components: {
  2567. PhoneTitle: r.a
  2568. },
  2569. data: function() {
  2570. return {
  2571. currentMenuIndex: 1
  2572. }
  2573. },
  2574. computed: o()({}, n.i(i.b)(["IntlString", "useMouse", "themeColor"]), {
  2575. subMenu: function() {
  2576. return [{
  2577. Comp: u.a,
  2578. name: this.IntlString("APP_PHONE_MENU_FAVORITES"),
  2579. icon: "star"
  2580. }, {
  2581. Comp: f.a,
  2582. name: this.IntlString("APP_PHONE_MENU_RECENTS"),
  2583. icon: "clock-o"
  2584. }, {
  2585. Comp: h.a,
  2586. name: this.IntlString("APP_PHONE_MENU_CONTACTS"),
  2587. icon: "user"
  2588. }]
  2589. }
  2590. }),
  2591. methods: {
  2592. getColorItem: function(t) {
  2593. return this.currentMenuIndex === t ? {
  2594. color: this.themeColor
  2595. } : {}
  2596. },
  2597. swapMenu: function(t) {
  2598. this.currentMenuIndex = t
  2599. },
  2600. onLeft: function() {
  2601. this.currentMenuIndex = Math.max(this.currentMenuIndex - 1, 0)
  2602. },
  2603. onRight: function() {
  2604. this.currentMenuIndex = Math.min(this.currentMenuIndex + 1, this.subMenu.length - 1)
  2605. },
  2606. onBackspace: function() {
  2607. !0 !== this.ignoreControls && this.$router.push({
  2608. name: "home"
  2609. })
  2610. }
  2611. },
  2612. created: function() {
  2613. this.useMouse || (this.$bus.$on("keyUpBackspace", this.onBackspace), this.$bus.$on("keyUpArrowLeft", this.onLeft), this.$bus.$on("keyUpArrowRight", this.onRight))
  2614. },
  2615. beforeDestroy: function() {
  2616. this.$bus.$off("keyUpBackspace", this.onBackspace), this.$bus.$off("keyUpArrowLeft", this.onLeft), this.$bus.$off("keyUpArrowRight", this.onRight)
  2617. }
  2618. }
  2619. }, function(t, e, n) {
  2620. "use strict";
  2621. Object.defineProperty(e, "__esModule", {
  2622. value: !0
  2623. });
  2624. var s = n(1),
  2625. o = n.n(s),
  2626. i = n(2),
  2627. a = n(26),
  2628. r = n.n(a);
  2629. e.default = {
  2630. components: {
  2631. InfoBare: r.a
  2632. },
  2633. data: function() {
  2634. return {
  2635. time: -1,
  2636. intervalNum: void 0,
  2637. select: -1,
  2638. status: 0
  2639. }
  2640. },
  2641. methods: o()({}, n.i(i.a)(["acceptCall", "rejectCall", "ignoreCall"]), {
  2642. onBackspace: function() {
  2643. 1 === this.status ? this.onRejectCall() : this.onIgnoreCall()
  2644. },
  2645. onEnter: function() {
  2646. 0 === this.status && (0 === this.select ? this.onRejectCall() : this.onAcceptCall())
  2647. },
  2648. raccrocher: function() {
  2649. this.onRejectCall()
  2650. },
  2651. deccrocher: function() {
  2652. 0 === this.status && this.onAcceptCall()
  2653. },
  2654. onLeft: function() {
  2655. 0 === this.status && (this.select = 0)
  2656. },
  2657. onRight: function() {
  2658. 0 === this.status && (this.select = 1)
  2659. },
  2660. updateTime: function() {
  2661. this.time += 1
  2662. },
  2663. onRejectCall: function() {
  2664. this.rejectCall(), this.$phoneAPI.setIgnoreFocus(!1)
  2665. },
  2666. onAcceptCall: function() {
  2667. this.acceptCall(), this.$phoneAPI.setIgnoreFocus(!0)
  2668. },
  2669. onIgnoreCall: function() {
  2670. this.ignoreCall(), this.$phoneAPI.setIgnoreFocus(!1), this.$router.push({
  2671. name: "home"
  2672. })
  2673. },
  2674. startTimer: function() {
  2675. void 0 === this.intervalNum && (this.time = 0, this.intervalNum = setInterval(this.updateTime, 1e3))
  2676. }
  2677. }),
  2678. watch: {
  2679. appelsInfo: function() {
  2680. null !== this.appelsInfo && !0 === this.appelsInfo.is_accepts && (this.status = 1, this.$phoneAPI.setIgnoreFocus(!0), this.startTimer())
  2681. }
  2682. },
  2683. computed: o()({}, n.i(i.b)(["IntlString", "backgroundURL", "useMouse", "appelsInfo", "appelsDisplayName", "appelsDisplayNumber", "myPhoneNumber"]), {
  2684. timeDisplay: function() {
  2685. if (this.time < 0) return ". . .";
  2686. var t = Math.floor(this.time / 60),
  2687. e = this.time % 60;
  2688. return e < 10 && (e = "0" + e), t + ":" + e
  2689. }
  2690. }),
  2691. mounted: function() {
  2692. null !== this.appelsInfo && !0 === this.appelsInfo.initiator && (this.status = 1, this.$phoneAPI.setIgnoreFocus(!0))
  2693. },
  2694. created: function() {
  2695. this.useMouse || (this.$bus.$on("keyUpEnter", this.onEnter), this.$bus.$on("keyUpArrowLeft", this.onLeft), this.$bus.$on("keyUpArrowRight", this.onRight)), this.$bus.$on("keyUpBackspace", this.onBackspace)
  2696. },
  2697. beforeDestroy: function() {
  2698. this.$bus.$off("keyUpBackspace", this.onBackspace), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpArrowLeft", this.onLeft), this.$bus.$off("keyUpArrowRight", this.onRight), void 0 !== this.intervalNum && window.clearInterval(this.intervalNum), this.$phoneAPI.setIgnoreFocus(!1)
  2699. }
  2700. }
  2701. }, function(t, e, n) {
  2702. "use strict";
  2703. Object.defineProperty(e, "__esModule", {
  2704. value: !0
  2705. });
  2706. var s = n(8),
  2707. o = n.n(s),
  2708. i = n(1),
  2709. a = n.n(i),
  2710. r = n(2),
  2711. c = n(20),
  2712. u = n(27),
  2713. l = n.n(u);
  2714. e.default = {
  2715. name: "Contacts",
  2716. components: {
  2717. List: l.a
  2718. },
  2719. data: function() {
  2720. return {}
  2721. },
  2722. methods: a()({}, n.i(r.a)(["startCall"]), {
  2723. onSelect: function(t) {
  2724. void 0 !== t && (!0 === t.custom ? this.$router.push({
  2725. name: "appels.number"
  2726. }) : this.startCall({
  2727. numero: t.number
  2728. }))
  2729. }
  2730. }),
  2731. computed: a()({}, n.i(r.b)(["IntlString", "contacts"]), {
  2732. contactsList: function() {
  2733. return [{
  2734. display: this.IntlString("APP_PHONE_ENTER_NUMBER"),
  2735. letter: "#",
  2736. backgroundColor: "#D32F2F",
  2737. custom: !0
  2738. }].concat(o()(this.contacts.slice(0).map(function(t) {
  2739. return t.backgroundColor = n.i(c.a)(t.number), t
  2740. })))
  2741. }
  2742. }),
  2743. created: function() {},
  2744. beforeDestroy: function() {}
  2745. }
  2746. }, function(t, e, n) {
  2747. "use strict";
  2748. Object.defineProperty(e, "__esModule", {
  2749. value: !0
  2750. });
  2751. var s = n(8),
  2752. o = n.n(s),
  2753. i = n(1),
  2754. a = n.n(i),
  2755. r = n(2),
  2756. c = n(27),
  2757. u = n.n(c),
  2758. l = n(6);
  2759. e.default = {
  2760. name: "Favoris",
  2761. components: {
  2762. List: u.a
  2763. },
  2764. data: function() {
  2765. return {
  2766. ignoreControls: !1
  2767. }
  2768. },
  2769. computed: a()({}, n.i(r.b)(["config"]), {
  2770. callList: function() {
  2771. return this.config.serviceCall || []
  2772. }
  2773. }),
  2774. methods: {
  2775. onSelect: function(t) {
  2776. var e = this;
  2777. !0 !== this.ignoreControls && (this.ignoreControls = !0, l.a.CreateModal({
  2778. choix: [].concat(o()(t.subMenu), [{
  2779. title: "Retour"
  2780. }])
  2781. }).then(function(t) {
  2782. e.ignoreControls = !1, "Retour" !== t.title && (e.$phoneAPI.callEvent(t.eventName, t.type), e.$router.push({
  2783. name: "home"
  2784. }))
  2785. }))
  2786. }
  2787. },
  2788. created: function() {},
  2789. beforeDestroy: function() {}
  2790. }
  2791. }, function(t, e, n) {
  2792. "use strict";
  2793. Object.defineProperty(e, "__esModule", {
  2794. value: !0
  2795. });
  2796. var s = n(1),
  2797. o = n.n(s),
  2798. i = n(2),
  2799. a = n(10),
  2800. r = n.n(a);
  2801. e.default = {
  2802. components: {
  2803. PhoneTitle: r.a
  2804. },
  2805. data: function() {
  2806. return {
  2807. numero: "",
  2808. keyInfo: [{
  2809. primary: "1",
  2810. secondary: ""
  2811. }, {
  2812. primary: "2",
  2813. secondary: "abc"
  2814. }, {
  2815. primary: "3",
  2816. secondary: "def"
  2817. }, {
  2818. primary: "4",
  2819. secondary: "ghi"
  2820. }, {
  2821. primary: "5",
  2822. secondary: "jkl"
  2823. }, {
  2824. primary: "6",
  2825. secondary: "mmo"
  2826. }, {
  2827. primary: "7",
  2828. secondary: "pqrs"
  2829. }, {
  2830. primary: "8",
  2831. secondary: "tuv"
  2832. }, {
  2833. primary: "9",
  2834. secondary: "wxyz"
  2835. }, {
  2836. primary: "โœฒ",
  2837. secondary: "",
  2838. isNotNumber: !0
  2839. }, {
  2840. primary: "0",
  2841. secondary: "+"
  2842. }, {
  2843. primary: "#",
  2844. secondary: "",
  2845. isNotNumber: !0
  2846. }],
  2847. keySelect: 0
  2848. }
  2849. },
  2850. methods: o()({}, n.i(i.a)(["startCall"]), {
  2851. onLeft: function() {
  2852. this.keySelect = Math.max(this.keySelect - 1, 0)
  2853. },
  2854. onRight: function() {
  2855. this.keySelect = Math.min(this.keySelect + 1, 11)
  2856. },
  2857. onDown: function() {
  2858. this.keySelect = Math.min(this.keySelect + 3, 12)
  2859. },
  2860. onUp: function() {
  2861. this.keySelect > 2 && (12 === this.keySelect ? this.keySelect = 10 : this.keySelect = this.keySelect - 3)
  2862. },
  2863. onEnter: function() {
  2864. 12 === this.keySelect ? this.numero.length > 0 && this.startCall({
  2865. numero: this.numeroFormat
  2866. }) : this.numero += this.keyInfo[this.keySelect].primary
  2867. },
  2868. onBackspace: function() {
  2869. !0 !== this.ignoreControls && (0 !== this.numero.length ? this.numero = this.numero.slice(0, -1) : history.back())
  2870. },
  2871. deleteNumber: function() {
  2872. 0 !== this.numero.length && (this.numero = this.numero.slice(0, -1))
  2873. },
  2874. onPressKey: function(t) {
  2875. this.numero = this.numero + t.primary
  2876. },
  2877. onPressCall: function() {
  2878. this.startCall({
  2879. numero: this.numeroFormat
  2880. })
  2881. },
  2882. quit: function() {
  2883. history.back()
  2884. }
  2885. }),
  2886. computed: o()({}, n.i(i.b)(["IntlString", "useMouse", "useFormatNumberFrance"]), {
  2887. numeroFormat: function() {
  2888. if (!0 === this.useFormatNumberFrance) return this.numero;
  2889. var t = this.numero.startsWith("#") ? 4 : 3;
  2890. return this.numero.length > t ? this.numero.slice(0, t) + "-" + this.numero.slice(t) : this.numero
  2891. }
  2892. }),
  2893. created: function() {
  2894. this.useMouse ? this.keySelect = -1 : (this.$bus.$on("keyUpBackspace", this.onBackspace), this.$bus.$on("keyUpArrowLeft", this.onLeft), this.$bus.$on("keyUpArrowRight", this.onRight), this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter))
  2895. },
  2896. beforeDestroy: function() {
  2897. this.$bus.$off("keyUpBackspace", this.onBackspace), this.$bus.$off("keyUpArrowLeft", this.onLeft), this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter)
  2898. }
  2899. }
  2900. }, function(t, e, n) {
  2901. "use strict";
  2902. Object.defineProperty(e, "__esModule", {
  2903. value: !0
  2904. });
  2905. var s = n(5),
  2906. o = n.n(s),
  2907. i = n(8),
  2908. a = n.n(i),
  2909. r = n(4),
  2910. c = n.n(r),
  2911. u = n(1),
  2912. l = n.n(u),
  2913. h = n(2),
  2914. p = n(20),
  2915. f = n(6);
  2916. e.default = {
  2917. name: "Recents",
  2918. components: {},
  2919. data: function() {
  2920. return {
  2921. ignoreControls: !1,
  2922. selectIndex: 0
  2923. }
  2924. },
  2925. methods: l()({}, n.i(h.a)(["startCall", "appelsDeleteHistorique", "appelsDeleteAllHistorique"]), {
  2926. getContact: function(t) {
  2927. return this.contacts.find(function(e) {
  2928. return e.number === t
  2929. })
  2930. },
  2931. scrollIntoViewIfNeeded: function() {
  2932. var t = this;
  2933. this.$nextTick(function() {
  2934. t.$el.querySelector(".active").scrollIntoViewIfNeeded()
  2935. })
  2936. },
  2937. onUp: function() {
  2938. !0 !== this.ignoreControls && (this.selectIndex = Math.max(0, this.selectIndex - 1), this.scrollIntoViewIfNeeded())
  2939. },
  2940. onDown: function() {
  2941. !0 !== this.ignoreControls && (this.selectIndex = Math.min(this.historique.length - 1, this.selectIndex + 1), this.scrollIntoViewIfNeeded())
  2942. },
  2943. selectItem: function(t) {
  2944. var e = this;
  2945. return c()(o.a.mark(function n() {
  2946. var s, i, r, c;
  2947. return o.a.wrap(function(n) {
  2948. for (;;) switch (n.prev = n.next) {
  2949. case 0:
  2950. return s = t.num, i = !1 === s.startsWith("#"), e.ignoreControls = !0, r = [{
  2951. id: 1,
  2952. title: e.IntlString("APP_PHONE_DELETE"),
  2953. icons: "fa-trash",
  2954. color: "orange"
  2955. }, {
  2956. id: 2,
  2957. title: e.IntlString("APP_PHONE_DELETE_ALL"),
  2958. icons: "fa-trash",
  2959. color: "red"
  2960. }, {
  2961. id: 3,
  2962. title: e.IntlString("CANCEL"),
  2963. icons: "fa-undo"
  2964. }], !0 === i && (r = [{
  2965. id: 0,
  2966. title: e.IntlString("APP_PHONE_CALL"),
  2967. icons: "fa-phone"
  2968. }].concat(a()(r))), n.next = 7, f.a.CreateModal({
  2969. choix: r
  2970. });
  2971. case 7:
  2972. c = n.sent, e.ignoreControls = !1, n.t0 = c.id, n.next = 0 === n.t0 ? 12 : 1 === n.t0 ? 14 : 2 === n.t0 ? 16 : 17;
  2973. break;
  2974. case 12:
  2975. return e.startCall({
  2976. numero: s
  2977. }), n.abrupt("break", 17);
  2978. case 14:
  2979. return e.appelsDeleteHistorique({
  2980. numero: s
  2981. }), n.abrupt("break", 17);
  2982. case 16:
  2983. e.appelsDeleteAllHistorique();
  2984. case 17:
  2985. case "end":
  2986. return n.stop()
  2987. }
  2988. }, n, e)
  2989. }))()
  2990. },
  2991. onEnter: function() {
  2992. var t = this;
  2993. return c()(o.a.mark(function e() {
  2994. return o.a.wrap(function(e) {
  2995. for (;;) switch (e.prev = e.next) {
  2996. case 0:
  2997. if (!0 !== t.ignoreControls) {
  2998. e.next = 2;
  2999. break
  3000. }
  3001. return e.abrupt("return");
  3002. case 2:
  3003. t.selectItem(t.historique[t.selectIndex]);
  3004. case 3:
  3005. case "end":
  3006. return e.stop()
  3007. }
  3008. }, e, t)
  3009. }))()
  3010. },
  3011. stylePuce: function(t) {
  3012. return t = t || {}, void 0 !== t.icon ? {
  3013. backgroundImage: "url(" + t.icon + ")",
  3014. backgroundSize: "cover",
  3015. color: "rgba(0,0,0,0)"
  3016. } : {
  3017. color: t.color || this.color,
  3018. backgroundColor: t.backgroundColor || this.backgroundColor,
  3019. borderRadius: "50%"
  3020. }
  3021. }
  3022. }),
  3023. computed: l()({}, n.i(h.b)(["IntlString", "useMouse", "appelsHistorique", "contacts"]), {
  3024. historique: function() {
  3025. var t = n.i(p.b)(this.appelsHistorique, "num"),
  3026. e = [];
  3027. for (var s in t) {
  3028. var o = t[s],
  3029. i = o.map(function(t) {
  3030. return t.date = new Date(t.time), t
  3031. }).sort(function(t, e) {
  3032. return e.date - t.date
  3033. }).slice(0, 6),
  3034. a = this.getContact(s) || {
  3035. letter: "#"
  3036. };
  3037. e.push({
  3038. num: s,
  3039. display: a.display || s,
  3040. lastCall: i,
  3041. letter: a.letter || a.display[0],
  3042. backgroundColor: a.backgroundColor || n.i(p.a)(s),
  3043. icon: a.icon
  3044. })
  3045. }
  3046. return e.sort(function(t, e) {
  3047. return e.lastCall[0].time - t.lastCall[0].time
  3048. }), e
  3049. }
  3050. }),
  3051. created: function() {
  3052. this.useMouse ? this.selectIndex = -1 : (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter))
  3053. },
  3054. beforeDestroy: function() {
  3055. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter)
  3056. }
  3057. }
  3058. }, function(t, e, n) {
  3059. "use strict";
  3060. Object.defineProperty(e, "__esModule", {
  3061. value: !0
  3062. });
  3063. var s = n(1),
  3064. o = n.n(s),
  3065. i = n(2);
  3066. e.default = {
  3067. data: function() {
  3068. return {}
  3069. },
  3070. computed: o()({}, n.i(i.b)(["bankAmont"]), {
  3071. bankAmontFormat: function() {
  3072. return Intl.NumberFormat().format(this.bankAmont)
  3073. }
  3074. }),
  3075. methods: {
  3076. onBackspace: function() {
  3077. this.$router.push({
  3078. name: "home"
  3079. })
  3080. }
  3081. },
  3082. created: function() {
  3083. this.$bus.$on("keyUpBackspace", this.onBackspace)
  3084. },
  3085. beforeDestroy: function() {
  3086. this.$bus.$off("keyUpBackspace", this.onBackspace)
  3087. }
  3088. }
  3089. }, function(t, e, n) {
  3090. "use strict";
  3091. Object.defineProperty(e, "__esModule", {
  3092. value: !0
  3093. });
  3094. var s = n(1),
  3095. o = n.n(s),
  3096. i = n(2),
  3097. a = n(10),
  3098. r = n.n(a);
  3099. e.default = {
  3100. components: {
  3101. PhoneTitle: r.a
  3102. },
  3103. data: function() {
  3104. return {
  3105. currentSelect: 0
  3106. }
  3107. },
  3108. computed: o()({}, n.i(i.b)(["IntlString", "useMouse", "bourseInfo"])),
  3109. methods: {
  3110. scrollIntoViewIfNeeded: function() {
  3111. var t = this;
  3112. this.$nextTick(function() {
  3113. t.$el.querySelector(".select").scrollIntoViewIfNeeded()
  3114. })
  3115. },
  3116. colorBourse: function(t) {
  3117. return 0 === t.difference ? "#1565c0" : t.difference < 0 ? "#c62828" : "#2e7d32"
  3118. },
  3119. classInfo: function(t) {
  3120. return 0 === t.difference ? ["fa-arrow-right", "iblue"] : t.difference < 0 ? ["fa-arrow-up", "ired"] : ["fa-arrow-down", "igreen"]
  3121. },
  3122. onBackspace: function() {
  3123. this.$router.push({
  3124. name: "home"
  3125. })
  3126. },
  3127. onUp: function() {
  3128. this.currentSelect = 0 === this.currentSelect ? 0 : this.currentSelect - 1, this.scrollIntoViewIfNeeded()
  3129. },
  3130. onDown: function() {
  3131. this.currentSelect = this.currentSelect === this.bourseInfo.length - 1 ? this.currentSelect : this.currentSelect + 1, this.scrollIntoViewIfNeeded()
  3132. }
  3133. },
  3134. created: function() {
  3135. this.useMouse || (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp)), this.$bus.$on("keyUpBackspace", this.onBackspace)
  3136. },
  3137. beforeDestroy: function() {
  3138. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpBackspace", this.onBackspace)
  3139. }
  3140. }
  3141. }, function(t, e, n) {
  3142. "use strict";
  3143. Object.defineProperty(e, "__esModule", {
  3144. value: !0
  3145. }), e.default = {
  3146. data: function() {
  3147. return {
  3148. time: "",
  3149. myInterval: 0
  3150. }
  3151. },
  3152. methods: {
  3153. updateTime: function() {
  3154. var t = new Date,
  3155. e = t.getMinutes();
  3156. e = e > 9 ? e : "0" + e;
  3157. var n = t.getHours();
  3158. n = n > 9 ? n : "0" + n;
  3159. var s = n + ":" + e;
  3160. this.time = s
  3161. }
  3162. },
  3163. created: function() {
  3164. this.updateTime(), this.myInterval = setInterval(this.updateTime, 1e3)
  3165. },
  3166. beforeDestroy: function() {
  3167. clearInterval(this.myInterval)
  3168. }
  3169. }
  3170. }, function(t, e, n) {
  3171. "use strict";
  3172. Object.defineProperty(e, "__esModule", {
  3173. value: !0
  3174. });
  3175. var s = n(1),
  3176. o = n.n(s),
  3177. i = n(2),
  3178. a = n(26),
  3179. r = n.n(a);
  3180. e.default = {
  3181. components: {
  3182. InfoBare: r.a
  3183. },
  3184. data: function() {
  3185. return {
  3186. currentSelect: 0
  3187. }
  3188. },
  3189. computed: o()({}, n.i(i.b)(["IntlString", "useMouse", "nbMessagesUnread", "backgroundURL", "messages", "AppsHome", "warningMessageCount"])),
  3190. methods: o()({}, n.i(i.a)(["closePhone", "setMessages"]), {
  3191. onLeft: function() {
  3192. this.currentSelect = (this.currentSelect + this.AppsHome.length) % (this.AppsHome.length + 1)
  3193. },
  3194. onRight: function() {
  3195. this.currentSelect = (this.currentSelect + 1) % (this.AppsHome.length + 1)
  3196. },
  3197. onUp: function() {
  3198. this.currentSelect = Math.max(this.currentSelect - 4, 0)
  3199. },
  3200. onDown: function() {
  3201. this.currentSelect = Math.min(this.currentSelect + 4, this.AppsHome.length)
  3202. },
  3203. openApp: function(t) {
  3204. this.$router.push({
  3205. name: t.routeName
  3206. })
  3207. },
  3208. onEnter: function() {
  3209. this.openApp(this.AppsHome[this.currentSelect] || {
  3210. routeName: "menu"
  3211. })
  3212. },
  3213. onBack: function() {
  3214. this.closePhone()
  3215. }
  3216. }),
  3217. created: function() {
  3218. this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowLeft", this.onLeft), this.$bus.$on("keyUpArrowRight", this.onRight), this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.onBack)
  3219. },
  3220. beforeDestroy: function() {
  3221. this.$bus.$off("keyUpArrowLeft", this.onLeft), this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBack)
  3222. }
  3223. }
  3224. }, function(t, e, n) {
  3225. "use strict";
  3226. Object.defineProperty(e, "__esModule", {
  3227. value: !0
  3228. });
  3229. var s = n(2),
  3230. o = n(219),
  3231. i = n.n(o);
  3232. e.default = {
  3233. computed: n.i(s.b)(["config"]),
  3234. components: {
  3235. CurrentTime: i.a
  3236. }
  3237. }
  3238. }, function(t, e, n) {
  3239. "use strict";
  3240. Object.defineProperty(e, "__esModule", {
  3241. value: !0
  3242. });
  3243. var s = n(1),
  3244. o = n.n(s),
  3245. i = n(10),
  3246. a = n.n(i),
  3247. r = n(26),
  3248. c = n.n(r),
  3249. u = n(2);
  3250. e.default = {
  3251. name: "hello",
  3252. components: {
  3253. PhoneTitle: a.a,
  3254. InfoBare: c.a
  3255. },
  3256. data: function() {
  3257. return {
  3258. currentSelect: 0
  3259. }
  3260. },
  3261. props: {
  3262. title: {
  3263. type: String,
  3264. default: "Title"
  3265. },
  3266. showHeader: {
  3267. type: Boolean,
  3268. default: !0
  3269. },
  3270. showInfoBare: {
  3271. type: Boolean,
  3272. default: !0
  3273. },
  3274. list: {
  3275. type: Array,
  3276. required: !0
  3277. },
  3278. color: {
  3279. type: String,
  3280. default: "#FFFFFF"
  3281. },
  3282. backgroundColor: {
  3283. type: String,
  3284. default: "#4CAF50"
  3285. },
  3286. keyDispay: {
  3287. type: String,
  3288. default: "display"
  3289. },
  3290. disable: {
  3291. type: Boolean,
  3292. default: !1
  3293. },
  3294. titleBackgroundColor: {
  3295. type: String,
  3296. default: "#FFFFFF"
  3297. }
  3298. },
  3299. watch: {
  3300. list: function() {
  3301. this.currentSelect = 0
  3302. }
  3303. },
  3304. computed: o()({}, n.i(u.b)(["useMouse"])),
  3305. methods: {
  3306. styleTitle: function() {
  3307. return {
  3308. color: this.color,
  3309. backgroundColor: this.backgroundColor
  3310. }
  3311. },
  3312. stylePuce: function(t) {
  3313. return t = t || {}, void 0 !== t.icon ? {
  3314. backgroundImage: "url(" + t.icon + ")",
  3315. backgroundSize: "cover",
  3316. color: "rgba(0,0,0,0)"
  3317. } : {
  3318. color: t.color || this.color,
  3319. backgroundColor: t.backgroundColor || this.backgroundColor,
  3320. borderRadius: "50%"
  3321. }
  3322. },
  3323. scrollIntoViewIfNeeded: function() {
  3324. this.$nextTick(function() {
  3325. document.querySelector(".select").scrollIntoViewIfNeeded()
  3326. })
  3327. },
  3328. onUp: function() {
  3329. !0 !== this.disable && (this.currentSelect = 0 === this.currentSelect ? this.list.length - 1 : this.currentSelect - 1, this.scrollIntoViewIfNeeded())
  3330. },
  3331. onDown: function() {
  3332. !0 !== this.disable && (this.currentSelect = this.currentSelect === this.list.length - 1 ? 0 : this.currentSelect + 1, this.scrollIntoViewIfNeeded())
  3333. },
  3334. selectItem: function(t) {
  3335. this.$emit("select", t)
  3336. },
  3337. optionItem: function(t) {
  3338. this.$emit("option", t)
  3339. },
  3340. back: function() {
  3341. this.$emit("back")
  3342. },
  3343. onRight: function() {
  3344. !0 !== this.disable && this.$emit("option", this.list[this.currentSelect])
  3345. },
  3346. onEnter: function() {
  3347. !0 !== this.disable && this.$emit("select", this.list[this.currentSelect])
  3348. }
  3349. },
  3350. created: function() {
  3351. this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpArrowRight", this.onRight), this.$bus.$on("keyUpEnter", this.onEnter))
  3352. },
  3353. beforeDestroy: function() {
  3354. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("keyUpEnter", this.onEnter)
  3355. }
  3356. }
  3357. }, function(t, e, n) {
  3358. "use strict";
  3359. Object.defineProperty(e, "__esModule", {
  3360. value: !0
  3361. });
  3362. var s = n(1),
  3363. o = n.n(s),
  3364. i = n(2),
  3365. a = n(26),
  3366. r = n.n(a);
  3367. e.default = {
  3368. components: {
  3369. InfoBare: r.a
  3370. },
  3371. data: function() {
  3372. return {
  3373. currentSelect: 0
  3374. }
  3375. },
  3376. computed: o()({}, n.i(i.b)(["nbMessagesUnread", "backgroundURL", "Apps", "useMouse"])),
  3377. methods: o()({}, n.i(i.b)(["closePhone"]), {
  3378. onLeft: function() {
  3379. var t = Math.floor(this.currentSelect / 4),
  3380. e = (this.currentSelect + 4 - 1) % 4 + 4 * t;
  3381. this.currentSelect = Math.min(e, this.Apps.length - 1)
  3382. },
  3383. onRight: function() {
  3384. var t = Math.floor(this.currentSelect / 4),
  3385. e = (this.currentSelect + 1) % 4 + 4 * t;
  3386. e >= this.Apps.length && (e = 4 * t), this.currentSelect = e
  3387. },
  3388. onUp: function() {
  3389. var t = this.currentSelect - 4;
  3390. if (t < 0) {
  3391. var e = this.currentSelect % 4;
  3392. t = 4 * Math.floor((this.Apps.length - 1) / 4), this.currentSelect = Math.min(t + e, this.Apps.length - 1)
  3393. } else this.currentSelect = t
  3394. },
  3395. onDown: function() {
  3396. var t = this.currentSelect % 4,
  3397. e = this.currentSelect + 4;
  3398. e >= this.Apps.length && (e = t), this.currentSelect = e
  3399. },
  3400. openApp: function(t) {
  3401. this.$router.push({
  3402. name: t.routeName
  3403. })
  3404. },
  3405. onEnter: function() {
  3406. this.openApp(this.Apps[this.currentSelect])
  3407. },
  3408. onBack: function() {
  3409. this.$router.push({
  3410. name: "home"
  3411. })
  3412. }
  3413. }),
  3414. mounted: function() {},
  3415. created: function() {
  3416. this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowLeft", this.onLeft), this.$bus.$on("keyUpArrowRight", this.onRight), this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.onBack)
  3417. },
  3418. beforeDestroy: function() {
  3419. this.$bus.$off("keyUpArrowLeft", this.onLeft), this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBack)
  3420. }
  3421. }
  3422. }, function(t, e, n) {
  3423. "use strict";
  3424. Object.defineProperty(e, "__esModule", {
  3425. value: !0
  3426. });
  3427. var s = n(1),
  3428. o = n.n(s),
  3429. i = n(18),
  3430. a = n(2);
  3431. e.default = {
  3432. name: "Modal",
  3433. store: i.a,
  3434. data: function() {
  3435. return {
  3436. currentSelect: 0
  3437. }
  3438. },
  3439. props: {
  3440. choix: {
  3441. type: Array,
  3442. default: function() {
  3443. return []
  3444. }
  3445. }
  3446. },
  3447. computed: o()({}, n.i(a.b)(["useMouse"])),
  3448. methods: {
  3449. scrollIntoViewIfNeeded: function() {
  3450. this.$nextTick(function() {
  3451. document.querySelector(".modal-choix.select").scrollIntoViewIfNeeded()
  3452. })
  3453. },
  3454. onUp: function() {
  3455. this.currentSelect = 0 === this.currentSelect ? 0 : this.currentSelect - 1, this.scrollIntoViewIfNeeded()
  3456. },
  3457. onDown: function() {
  3458. this.currentSelect = this.currentSelect === this.choix.length - 1 ? this.currentSelect : this.currentSelect + 1, this.scrollIntoViewIfNeeded()
  3459. },
  3460. selectItem: function(t) {
  3461. this.$emit("select", t)
  3462. },
  3463. onEnter: function() {
  3464. this.$emit("select", this.choix[this.currentSelect])
  3465. },
  3466. cancel: function() {
  3467. this.$emit("cancel")
  3468. }
  3469. },
  3470. created: function() {
  3471. this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.cancel)
  3472. },
  3473. beforeDestroy: function() {
  3474. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.cancel)
  3475. }
  3476. }
  3477. }, function(t, e, n) {
  3478. "use strict";
  3479. Object.defineProperty(e, "__esModule", {
  3480. value: !0
  3481. });
  3482. var s = n(1),
  3483. o = n.n(s),
  3484. i = n(18),
  3485. a = n(2);
  3486. e.default = {
  3487. name: "TextModal",
  3488. store: i.a,
  3489. data: function() {
  3490. return {
  3491. inputText: ""
  3492. }
  3493. },
  3494. props: {
  3495. title: {
  3496. type: String,
  3497. default: function() {
  3498. return ""
  3499. }
  3500. },
  3501. text: {
  3502. type: String,
  3503. default: function() {
  3504. return ""
  3505. }
  3506. },
  3507. limit: {
  3508. type: Number,
  3509. default: 255
  3510. }
  3511. },
  3512. computed: o()({}, n.i(a.b)(["IntlString", "themeColor"]), {
  3513. color: function() {
  3514. return this.themeColor || "#2A56C6"
  3515. }
  3516. }),
  3517. methods: {
  3518. scrollIntoViewIfNeeded: function() {
  3519. this.$nextTick(function() {
  3520. document.querySelector(".modal-choix.select").scrollIntoViewIfNeeded()
  3521. })
  3522. },
  3523. onUp: function() {
  3524. this.currentSelect = 0 === this.currentSelect ? 0 : this.currentSelect - 1, this.scrollIntoViewIfNeeded()
  3525. },
  3526. onDown: function() {
  3527. this.currentSelect = this.currentSelect === this.choix.length - 1 ? this.currentSelect : this.currentSelect + 1, this.scrollIntoViewIfNeeded()
  3528. },
  3529. selectItem: function(t) {
  3530. this.$emit("select", t)
  3531. },
  3532. onEnter: function() {
  3533. this.$emit("select", this.choix[this.currentSelect])
  3534. },
  3535. cancel: function() {
  3536. this.$emit("cancel")
  3537. },
  3538. valide: function() {
  3539. this.$emit("valid", {
  3540. text: this.inputText
  3541. })
  3542. }
  3543. },
  3544. created: function() {
  3545. this.inputText = this.text
  3546. },
  3547. mounted: function() {
  3548. var t = this;
  3549. this.$nextTick(function() {
  3550. t.$refs.textarea.focus()
  3551. })
  3552. },
  3553. beforeDestroy: function() {}
  3554. }
  3555. }, function(t, e, n) {
  3556. "use strict";
  3557. Object.defineProperty(e, "__esModule", {
  3558. value: !0
  3559. });
  3560. var s = n(1),
  3561. o = n.n(s),
  3562. i = n(2),
  3563. a = n(26),
  3564. r = n.n(a);
  3565. e.default = {
  3566. components: {
  3567. InfoBare: r.a
  3568. },
  3569. computed: o()({}, n.i(i.b)(["themeColor"]), {
  3570. style: function() {
  3571. return {
  3572. backgroundColor: this.backgroundColor || this.themeColor,
  3573. color: this.color || "#FFF"
  3574. }
  3575. }
  3576. }),
  3577. methods: {
  3578. back: function() {
  3579. this.$emit("back")
  3580. }
  3581. },
  3582. props: {
  3583. title: {
  3584. type: String,
  3585. required: !0
  3586. },
  3587. showInfoBare: {
  3588. type: Boolean,
  3589. default: !0
  3590. },
  3591. backgroundColor: {
  3592. type: String
  3593. }
  3594. }
  3595. }
  3596. }, function(t, e, n) {
  3597. "use strict";
  3598. Object.defineProperty(e, "__esModule", {
  3599. value: !0
  3600. });
  3601. var s = n(11);
  3602. e.default = {
  3603. created: function() {
  3604. s.a.faketakePhoto()
  3605. }
  3606. }
  3607. }, function(t, e, n) {
  3608. "use strict";
  3609. Object.defineProperty(e, "__esModule", {
  3610. value: !0
  3611. });
  3612. var s = n(5),
  3613. o = n.n(s),
  3614. i = n(4),
  3615. a = n.n(i),
  3616. r = n(1),
  3617. c = n.n(r),
  3618. u = n(2),
  3619. l = n(6),
  3620. h = n(10),
  3621. p = n.n(h);
  3622. e.default = {
  3623. components: {
  3624. PhoneTitle: p.a
  3625. },
  3626. data: function() {
  3627. return {
  3628. currentSelect: 0,
  3629. ignoreControls: !1
  3630. }
  3631. },
  3632. watch: {
  3633. list: function() {
  3634. this.currentSelect = 0
  3635. }
  3636. },
  3637. computed: c()({}, n.i(u.b)(["IntlString", "useMouse", "tchatChannels", "Apps"])),
  3638. methods: c()({}, n.i(u.a)(["tchatAddChannel", "tchatRemoveChannel"]), {
  3639. scrollIntoViewIfNeeded: function() {
  3640. var t = this;
  3641. this.$nextTick(function() {
  3642. var e = t.$el.querySelector(".select");
  3643. null !== e && e.scrollIntoViewIfNeeded()
  3644. })
  3645. },
  3646. onUp: function() {
  3647. !0 !== this.ignoreControls && (this.currentSelect = 0 === this.currentSelect ? 0 : this.currentSelect - 1, this.scrollIntoViewIfNeeded())
  3648. },
  3649. onDown: function() {
  3650. !0 !== this.ignoreControls && (this.currentSelect = this.currentSelect === this.tchatChannels.length - 1 ? this.currentSelect : this.currentSelect + 1, this.scrollIntoViewIfNeeded())
  3651. },
  3652. onRight: function() {
  3653. var t = this;
  3654. return a()(o.a.mark(function e() {
  3655. var n, s;
  3656. return o.a.wrap(function(e) {
  3657. for (;;) switch (e.prev = e.next) {
  3658. case 0:
  3659. if (!0 !== t.ignoreControls) {
  3660. e.next = 2;
  3661. break
  3662. }
  3663. return e.abrupt("return");
  3664. case 2:
  3665. return t.ignoreControls = !0, n = [{
  3666. id: 1,
  3667. title: t.IntlString("APP_DARKTCHAT_NEW_CHANNEL"),
  3668. icons: "fa-plus",
  3669. color: "green"
  3670. }, {
  3671. id: 2,
  3672. title: t.IntlString("APP_DARKTCHAT_DELETE_CHANNEL"),
  3673. icons: "fa-minus",
  3674. color: "orange"
  3675. }, {
  3676. id: 3,
  3677. title: t.IntlString("APP_DARKTCHAT_CANCEL"),
  3678. icons: "fa-undo"
  3679. }], 0 === t.tchatChannels.length && n.splice(1, 1), e.next = 7, l.a.CreateModal({
  3680. choix: n
  3681. });
  3682. case 7:
  3683. s = e.sent, t.ignoreControls = !1, e.t0 = s.id, e.next = 1 === e.t0 ? 12 : 2 === e.t0 ? 14 : (e.t0, 16);
  3684. break;
  3685. case 12:
  3686. return t.addChannelOption(), e.abrupt("break", 16);
  3687. case 14:
  3688. return t.removeChannelOption(), e.abrupt("break", 16);
  3689. case 16:
  3690. case "end":
  3691. return e.stop()
  3692. }
  3693. }, e, t)
  3694. }))()
  3695. },
  3696. onEnter: function() {
  3697. var t = this;
  3698. return a()(o.a.mark(function e() {
  3699. var n, s, i;
  3700. return o.a.wrap(function(e) {
  3701. for (;;) switch (e.prev = e.next) {
  3702. case 0:
  3703. if (!0 !== t.ignoreControls) {
  3704. e.next = 2;
  3705. break
  3706. }
  3707. return e.abrupt("return");
  3708. case 2:
  3709. if (0 !== t.tchatChannels.length) {
  3710. e.next = 12;
  3711. break
  3712. }
  3713. return t.ignoreControls = !0, n = [{
  3714. id: 1,
  3715. title: t.IntlString("APP_DARKTCHAT_NEW_CHANNEL"),
  3716. icons: "fa-plus",
  3717. color: "green"
  3718. }, {
  3719. id: 3,
  3720. title: t.IntlString("APP_DARKTCHAT_CANCEL"),
  3721. icons: "fa-undo"
  3722. }], e.next = 7, l.a.CreateModal({
  3723. choix: n
  3724. });
  3725. case 7:
  3726. s = e.sent, t.ignoreControls = !1, 1 === s.id && t.addChannelOption(), e.next = 14;
  3727. break;
  3728. case 12:
  3729. i = t.tchatChannels[t.currentSelect].channel, t.showChannel(i);
  3730. case 14:
  3731. case "end":
  3732. return e.stop()
  3733. }
  3734. }, e, t)
  3735. }))()
  3736. },
  3737. showChannel: function(t) {
  3738. this.$router.push({
  3739. name: "tchat.channel.show",
  3740. params: {
  3741. channel: t
  3742. }
  3743. })
  3744. },
  3745. onBack: function() {
  3746. !0 !== this.ignoreControls && this.$router.push({
  3747. name: "home"
  3748. })
  3749. },
  3750. addChannelOption: function() {
  3751. var t = this;
  3752. return a()(o.a.mark(function e() {
  3753. var n, s;
  3754. return o.a.wrap(function(e) {
  3755. for (;;) switch (e.prev = e.next) {
  3756. case 0:
  3757. return e.prev = 0, e.next = 3, l.a.CreateTextModal({
  3758. limit: 20,
  3759. title: t.IntlString("APP_DARKTCHAT_NEW_CHANNEL")
  3760. });
  3761. case 3:
  3762. n = e.sent, s = (n || {}).text || "", s = s.toLowerCase().replace(/[^a-z]/g, ""), s.length > 0 && (t.currentSelect = 0, t.tchatAddChannel({
  3763. channel: s
  3764. })), e.next = 11;
  3765. break;
  3766. case 9:
  3767. e.prev = 9, e.t0 = e.catch(0);
  3768. case 11:
  3769. case "end":
  3770. return e.stop()
  3771. }
  3772. }, e, t, [
  3773. [0, 9]
  3774. ])
  3775. }))()
  3776. },
  3777. removeChannelOption: function() {
  3778. var t = this;
  3779. return a()(o.a.mark(function e() {
  3780. var n;
  3781. return o.a.wrap(function(e) {
  3782. for (;;) switch (e.prev = e.next) {
  3783. case 0:
  3784. n = t.tchatChannels[t.currentSelect].channel, t.currentSelect = 0, t.tchatRemoveChannel({
  3785. channel: n
  3786. });
  3787. case 3:
  3788. case "end":
  3789. return e.stop()
  3790. }
  3791. }, e, t)
  3792. }))()
  3793. }
  3794. }),
  3795. created: function() {
  3796. this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpArrowRight", this.onRight), this.$bus.$on("keyUpEnter", this.onEnter), this.$bus.$on("keyUpBackspace", this.onBack))
  3797. },
  3798. beforeDestroy: function() {
  3799. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBack)
  3800. }
  3801. }
  3802. }, function(t, e, n) {
  3803. "use strict";
  3804. Object.defineProperty(e, "__esModule", {
  3805. value: !0
  3806. });
  3807. var s = n(5),
  3808. o = n.n(s),
  3809. i = n(4),
  3810. a = n.n(i),
  3811. r = n(1),
  3812. c = n.n(r),
  3813. u = n(2),
  3814. l = n(10),
  3815. h = n.n(l);
  3816. e.default = {
  3817. components: {
  3818. PhoneTitle: h.a
  3819. },
  3820. data: function() {
  3821. return {
  3822. message: "",
  3823. channel: "",
  3824. currentSelect: 0
  3825. }
  3826. },
  3827. computed: c()({}, n.i(u.b)(["tchatMessages", "tchatCurrentChannel", "useMouse"]), {
  3828. channelName: function() {
  3829. return "# " + this.channel
  3830. }
  3831. }),
  3832. watch: {
  3833. tchatMessages: function() {
  3834. var t = this.$refs.elementsDiv;
  3835. t.scrollTop = t.scrollHeight
  3836. }
  3837. },
  3838. methods: c()({
  3839. setChannel: function(t) {
  3840. this.channel = t, this.tchatSetChannel({
  3841. channel: t
  3842. })
  3843. }
  3844. }, n.i(u.a)(["tchatSetChannel", "tchatSendMessage"]), {
  3845. scrollIntoViewIfNeeded: function() {
  3846. var t = this;
  3847. this.$nextTick(function() {
  3848. var e = t.$el.querySelector(".select");
  3849. null !== e && e.scrollIntoViewIfNeeded()
  3850. })
  3851. },
  3852. onUp: function() {
  3853. var t = this.$refs.elementsDiv;
  3854. t.scrollTop = t.scrollTop - 120
  3855. },
  3856. onDown: function() {
  3857. var t = this.$refs.elementsDiv;
  3858. t.scrollTop = t.scrollTop + 120
  3859. },
  3860. onEnter: function() {
  3861. var t = this;
  3862. return a()(o.a.mark(function e() {
  3863. var n, s;
  3864. return o.a.wrap(function(e) {
  3865. for (;;) switch (e.prev = e.next) {
  3866. case 0:
  3867. return e.next = 2, t.$phoneAPI.getReponseText();
  3868. case 2:
  3869. n = e.sent, void 0 !== n && void 0 !== n.text && (s = n.text.trim(), 0 !== s.length && t.tchatSendMessage({
  3870. channel: t.channel,
  3871. message: s
  3872. }));
  3873. case 4:
  3874. case "end":
  3875. return e.stop()
  3876. }
  3877. }, e, t)
  3878. }))()
  3879. },
  3880. sendMessage: function() {
  3881. var t = this.message.trim();
  3882. 0 !== t.length && (this.tchatSendMessage({
  3883. channel: this.channel,
  3884. message: t
  3885. }), this.message = "")
  3886. },
  3887. onBack: function() {
  3888. !0 === this.useMouse && "BODY" !== document.activeElement.tagName || this.onQuit()
  3889. },
  3890. onQuit: function() {
  3891. this.$router.push({
  3892. name: "tchat.channel"
  3893. })
  3894. },
  3895. formatTime: function(t) {
  3896. return new Date(t).toLocaleTimeString()
  3897. }
  3898. }),
  3899. created: function() {
  3900. this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.onBack), this.setChannel(this.$route.params.channel)
  3901. },
  3902. mounted: function() {
  3903. window.c = this.$refs.elementsDiv;
  3904. var t = this.$refs.elementsDiv;
  3905. t.scrollTop = t.scrollHeight
  3906. },
  3907. beforeDestroy: function() {
  3908. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBack)
  3909. }
  3910. }
  3911. }, function(t, e, n) {
  3912. "use strict";
  3913. Object.defineProperty(e, "__esModule", {
  3914. value: !0
  3915. }), e.default = {
  3916. created: function() {
  3917. var t = this;
  3918. setTimeout(function() {
  3919. t.$router.push({
  3920. name: "tchat.channel"
  3921. })
  3922. }, 700)
  3923. }
  3924. }
  3925. }, function(t, e, n) {
  3926. "use strict";
  3927. Object.defineProperty(e, "__esModule", {
  3928. value: !0
  3929. });
  3930. var s = n(1),
  3931. o = n.n(s),
  3932. i = n(2),
  3933. a = n(10),
  3934. r = n.n(a),
  3935. c = n(6);
  3936. e.default = {
  3937. components: {
  3938. PhoneTitle: r.a
  3939. },
  3940. data: function() {
  3941. return {
  3942. id: -1,
  3943. currentSelect: 0,
  3944. ignoreControls: !1,
  3945. contact: {
  3946. display: "",
  3947. number: "",
  3948. id: -1
  3949. }
  3950. }
  3951. },
  3952. computed: o()({}, n.i(i.b)(["IntlString", "contacts", "useMouse"])),
  3953. methods: o()({}, n.i(i.a)(["updateContact", "addContact"]), {
  3954. onUp: function() {
  3955. if (!0 !== this.ignoreControls) {
  3956. var t = document.querySelector(".group.select");
  3957. if (null !== t.previousElementSibling) {
  3958. document.querySelectorAll(".group").forEach(function(t) {
  3959. t.classList.remove("select")
  3960. }), t.previousElementSibling.classList.add("select");
  3961. var e = t.previousElementSibling.querySelector("input");
  3962. null !== e && e.focus()
  3963. }
  3964. }
  3965. },
  3966. onDown: function() {
  3967. if (!0 !== this.ignoreControls) {
  3968. var t = document.querySelector(".group.select");
  3969. if (null !== t.nextElementSibling) {
  3970. document.querySelectorAll(".group").forEach(function(t) {
  3971. t.classList.remove("select")
  3972. }), t.nextElementSibling.classList.add("select");
  3973. var e = t.nextElementSibling.querySelector("input");
  3974. null !== e && e.focus()
  3975. }
  3976. }
  3977. },
  3978. onEnter: function() {
  3979. var t = this;
  3980. if (!0 !== this.ignoreControls) {
  3981. var e = document.querySelector(".group.select");
  3982. if ("text" === e.dataset.type) {
  3983. var n = {
  3984. limit: parseInt(e.dataset.maxlength) || 64,
  3985. text: this.contact[e.dataset.model] || ""
  3986. };
  3987. this.$phoneAPI.getReponseText(n).then(function(n) {
  3988. t.contact[e.dataset.model] = n.text
  3989. })
  3990. }
  3991. e.dataset.action && this[e.dataset.action] && this[e.dataset.action]()
  3992. }
  3993. },
  3994. save: function() {
  3995. -1 !== this.id ? this.updateContact({
  3996. id: this.id,
  3997. display: this.contact.display,
  3998. number: this.contact.number
  3999. }) : this.addContact({
  4000. display: this.contact.display,
  4001. number: this.contact.number
  4002. }), history.back()
  4003. },
  4004. cancel: function() {
  4005. !0 !== this.ignoreControls && (!0 === this.useMouse && "BODY" !== document.activeElement.tagName || history.back())
  4006. },
  4007. forceCancel: function() {
  4008. history.back()
  4009. },
  4010. deleteC: function() {
  4011. var t = this;
  4012. if (-1 !== this.id) {
  4013. this.ignoreControls = !0;
  4014. var e = [{
  4015. title: "Annuler"
  4016. }, {
  4017. title: "Annuler"
  4018. }, {
  4019. title: "Supprimer",
  4020. color: "red"
  4021. }, {
  4022. title: "Annuler"
  4023. }, {
  4024. title: "Annuler"
  4025. }];
  4026. c.a.CreateModal({
  4027. choix: e
  4028. }).then(function(e) {
  4029. t.ignoreControls = !1, "Supprimer" === e.title && (t.$phoneAPI.deleteContact(t.id), history.back())
  4030. })
  4031. } else history.back()
  4032. }
  4033. }),
  4034. created: function() {
  4035. var t = this;
  4036. if (this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.cancel), this.id = parseInt(this.$route.params.id), this.contact.display = this.IntlString("APP_CONTACT_NEW"), -1 !== this.id) {
  4037. var e = this.contacts.find(function(e) {
  4038. return e.id === t.id
  4039. });
  4040. void 0 !== e && (this.contact = {
  4041. id: e.id,
  4042. display: e.display,
  4043. number: e.number
  4044. })
  4045. }
  4046. },
  4047. beforeDestroy: function() {
  4048. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.cancel)
  4049. }
  4050. }
  4051. }, function(t, e, n) {
  4052. "use strict";
  4053. Object.defineProperty(e, "__esModule", {
  4054. value: !0
  4055. });
  4056. var s = n(8),
  4057. o = n.n(s),
  4058. i = n(1),
  4059. a = n.n(i),
  4060. r = n(2),
  4061. c = n(20),
  4062. u = n(27),
  4063. l = n.n(u),
  4064. h = n(6);
  4065. e.default = {
  4066. components: {
  4067. List: l.a
  4068. },
  4069. data: function() {
  4070. return {
  4071. disableList: !1
  4072. }
  4073. },
  4074. computed: a()({}, n.i(r.b)(["IntlString", "contacts", "useMouse"]), {
  4075. lcontacts: function() {
  4076. return [{
  4077. display: this.IntlString("APP_CONTACT_NEW"),
  4078. letter: "+",
  4079. num: "",
  4080. id: -1
  4081. }].concat(o()(this.contacts.map(function(t) {
  4082. return t.backgroundColor = t.backgroundColor || n.i(c.a)(t.number), t
  4083. })))
  4084. }
  4085. }),
  4086. methods: {
  4087. onSelect: function(t) {
  4088. -1 === t.id ? this.$router.push({
  4089. name: "contacts.view",
  4090. params: {
  4091. id: t.id
  4092. }
  4093. }) : this.$router.push({
  4094. name: "messages.view",
  4095. params: {
  4096. number: t.number,
  4097. display: t.display
  4098. }
  4099. })
  4100. },
  4101. onOption: function(t) {
  4102. var e = this; - 1 !== t.id && void 0 !== t.id && (this.disableList = !0, h.a.CreateModal({
  4103. choix: [{
  4104. id: 1,
  4105. title: this.IntlString("APP_CONTACT_EDIT"),
  4106. icons: "fa-circle-o",
  4107. color: "orange"
  4108. }, {
  4109. id: 3,
  4110. title: "Annuler",
  4111. icons: "fa-undo"
  4112. }]
  4113. }).then(function(n) {
  4114. 1 === n.id && e.$router.push({
  4115. path: "contact/" + t.id
  4116. }), e.disableList = !1
  4117. }))
  4118. },
  4119. back: function() {
  4120. !0 !== this.disableList && this.$router.push({
  4121. name: "home"
  4122. })
  4123. }
  4124. },
  4125. created: function() {
  4126. this.useMouse || this.$bus.$on("keyUpBackspace", this.back)
  4127. },
  4128. beforeDestroy: function() {
  4129. this.$bus.$off("keyUpBackspace", this.back)
  4130. }
  4131. }
  4132. }, function(t, e, n) {
  4133. "use strict";
  4134. Object.defineProperty(e, "__esModule", {
  4135. value: !0
  4136. });
  4137. var s = n(8),
  4138. o = n.n(s),
  4139. i = n(1),
  4140. a = n.n(i),
  4141. r = n(27),
  4142. c = n.n(r),
  4143. u = n(2),
  4144. l = n(6);
  4145. e.default = {
  4146. components: {
  4147. List: c.a
  4148. },
  4149. data: function() {
  4150. return {}
  4151. },
  4152. computed: a()({}, n.i(u.b)(["IntlString", "contacts", "useMouse"]), {
  4153. lcontacts: function() {
  4154. return [{
  4155. display: this.IntlString("APP_MESSAGE_CONTRACT_ENTER_NUMBER"),
  4156. letter: "+",
  4157. backgroundColor: "orange",
  4158. num: -1
  4159. }].concat(o()(this.contacts))
  4160. }
  4161. }),
  4162. methods: {
  4163. onSelect: function(t) {
  4164. var e = this; - 1 === t.num ? l.a.CreateTextModal({
  4165. title: this.IntlString("APP_PHONE_ENTER_NUMBER"),
  4166. limit: 10
  4167. }).then(function(t) {
  4168. var n = t.text.trim();
  4169. "" !== n && e.$router.push({
  4170. name: "messages.view",
  4171. params: {
  4172. number: n,
  4173. display: n
  4174. }
  4175. })
  4176. }) : this.$router.push({
  4177. name: "messages.view",
  4178. params: t
  4179. })
  4180. },
  4181. back: function() {
  4182. history.back()
  4183. }
  4184. },
  4185. created: function() {
  4186. this.$bus.$on("keyUpBackspace", this.back)
  4187. },
  4188. beforeDestroy: function() {
  4189. this.$bus.$off("keyUpBackspace", this.back)
  4190. }
  4191. }
  4192. }, function(t, e, n) {
  4193. "use strict";
  4194. Object.defineProperty(e, "__esModule", {
  4195. value: !0
  4196. });
  4197. var s = n(5),
  4198. o = n.n(s),
  4199. i = n(8),
  4200. a = n.n(i),
  4201. r = n(4),
  4202. c = n.n(r),
  4203. u = n(1),
  4204. l = n.n(u),
  4205. h = n(2),
  4206. p = n(20),
  4207. f = n(10),
  4208. d = n.n(f),
  4209. m = n(6);
  4210. e.default = {
  4211. data: function() {
  4212. return {
  4213. ignoreControls: !1,
  4214. selectMessage: -1,
  4215. display: "",
  4216. phoneNumber: "",
  4217. imgZoom: void 0,
  4218. message: ""
  4219. }
  4220. },
  4221. components: {
  4222. PhoneTitle: d.a
  4223. },
  4224. methods: l()({}, n.i(h.a)(["setMessageRead", "sendMessage", "deleteMessage", "startCall"]), {
  4225. resetScroll: function() {
  4226. var t = this;
  4227. this.$nextTick(function() {
  4228. var e = document.querySelector("#sms_list");
  4229. e.scrollTop = e.scrollHeight, t.selectMessage = -1
  4230. })
  4231. },
  4232. scrollIntoViewIfNeeded: function() {
  4233. var t = this;
  4234. this.$nextTick(function() {
  4235. var e = t.$el.querySelector(".select");
  4236. null !== e && e.scrollIntoViewIfNeeded()
  4237. })
  4238. },
  4239. quit: function() {
  4240. this.$router.go(-1)
  4241. },
  4242. onUp: function() {
  4243. !0 !== this.ignoreControls && (-1 === this.selectMessage ? this.selectMessage = this.messagesList.length - 1 : this.selectMessage = 0 === this.selectMessage ? 0 : this.selectMessage - 1, this.scrollIntoViewIfNeeded())
  4244. },
  4245. onDown: function() {
  4246. !0 !== this.ignoreControls && (-1 === this.selectMessage ? this.selectMessage = this.messagesList.length - 1 : this.selectMessage = this.selectMessage === this.messagesList.length - 1 ? this.selectMessage : this.selectMessage + 1, this.scrollIntoViewIfNeeded())
  4247. },
  4248. onEnter: function() {
  4249. var t = this;
  4250. !0 !== this.ignoreControls && (-1 !== this.selectMessage ? this.onActionMessage(this.messagesList[this.selectMessage]) : this.$phoneAPI.getReponseText().then(function(e) {
  4251. var n = e.text.trim();
  4252. "" !== n && t.sendMessage({
  4253. phoneNumber: t.phoneNumber,
  4254. message: n
  4255. })
  4256. }))
  4257. },
  4258. send: function() {
  4259. var t = this.message.trim();
  4260. "" !== t && (this.message = "", this.sendMessage({
  4261. phoneNumber: this.phoneNumber,
  4262. message: t
  4263. }))
  4264. },
  4265. isSMSImage: function(t) {
  4266. return /^https?:\/\/.*\.(png|jpg|jpeg|gif)/.test(t.message)
  4267. },
  4268. onActionMessage: function(t) {
  4269. var e = this;
  4270. return c()(o.a.mark(function n() {
  4271. var s, i, r, c, u, l, h;
  4272. return o.a.wrap(function(n) {
  4273. for (;;) switch (n.prev = n.next) {
  4274. case 0:
  4275. return n.prev = 0, s = /(-?\d+(\.\d+)?), (-?\d+(\.\d+)?)/.test(t.message), i = /#([0-9]+)/.test(t.message), r = e.isSMSImage(t), c = [{
  4276. id: "delete",
  4277. title: e.IntlString("APP_MESSAGE_DELETE"),
  4278. icons: "fa-trash"
  4279. }, {
  4280. id: -1,
  4281. title: e.IntlString("CANCEL"),
  4282. icons: "fa-undo"
  4283. }], !0 === s && (c = [{
  4284. id: "gps",
  4285. title: e.IntlString("APP_MESSAGE_SET_GPS"),
  4286. icons: "fa-location-arrow"
  4287. }].concat(a()(c))), !0 === i && (u = t.message.match(/#([0-9-]*)/)[1], c = [{
  4288. id: "num",
  4289. title: e.IntlString("APP_MESSAGE_MESS_NUMBER") + " " + u,
  4290. number: u,
  4291. icons: "fa-phone"
  4292. }].concat(a()(c))), !0 === r && (c = [{
  4293. id: "zoom",
  4294. title: e.IntlString("APP_MESSAGE_ZOOM_IMG"),
  4295. icons: "fa-search"
  4296. }].concat(a()(c))), e.ignoreControls = !0, n.next = 11, m.a.CreateModal({
  4297. choix: c
  4298. });
  4299. case 11:
  4300. l = n.sent, "delete" === l.id ? e.deleteMessage({
  4301. id: t.id
  4302. }) : "gps" === l.id ? (h = t.message.match(/(-?\d+(\.\d+)?), (-?\d+(\.\d+)?)/), e.$phoneAPI.setGPS(h[1], h[3])) : "num" === l.id ? e.$nextTick(function() {
  4303. e.onSelectPhoneNumber(l.number)
  4304. }) : "zoom" === l.id && (e.imgZoom = t.message), n.next = 17;
  4305. break;
  4306. case 15:
  4307. n.prev = 15, n.t0 = n.catch(0);
  4308. case 17:
  4309. return n.prev = 17, e.ignoreControls = !1, e.selectMessage = -1, n.finish(17);
  4310. case 21:
  4311. case "end":
  4312. return n.stop()
  4313. }
  4314. }, n, e, [
  4315. [0, 15, 17, 21]
  4316. ])
  4317. }))()
  4318. },
  4319. onSelectPhoneNumber: function(t) {
  4320. var e = this;
  4321. return c()(o.a.mark(function n() {
  4322. var s, i, a;
  4323. return o.a.wrap(function(n) {
  4324. for (;;) switch (n.prev = n.next) {
  4325. case 0:
  4326. return n.prev = 0, e.ignoreControls = !0, s = [{
  4327. id: "sms",
  4328. title: e.IntlString("APP_MESSAGE_MESS_SMS"),
  4329. icons: "fa-comment"
  4330. }, {
  4331. id: "call",
  4332. title: e.IntlString("APP_MESSAGE_MESS_CALL"),
  4333. icons: "fa-phone"
  4334. }], s.push({
  4335. id: "copy",
  4336. title: e.IntlString("APP_MESSAGE_MESS_COPY"),
  4337. icons: "fa-copy"
  4338. }), s.push({
  4339. id: -1,
  4340. title: e.IntlString("CANCEL"),
  4341. icons: "fa-undo"
  4342. }), n.next = 7, m.a.CreateModal({
  4343. choix: s
  4344. });
  4345. case 7:
  4346. if (i = n.sent, "sms" !== i.id) {
  4347. n.next = 13;
  4348. break
  4349. }
  4350. e.phoneNumber = t, e.display = void 0, n.next = 31;
  4351. break;
  4352. case 13:
  4353. if ("call" !== i.id) {
  4354. n.next = 17;
  4355. break
  4356. }
  4357. e.startCall({
  4358. numero: t
  4359. }), n.next = 31;
  4360. break;
  4361. case 17:
  4362. if ("copy" !== i.id) {
  4363. n.next = 31;
  4364. break
  4365. }
  4366. return n.prev = 18, a = e.$refs.copyTextarea, a.value = t, a.style.height = "20px", a.focus(), a.select(), n.next = 26, document.execCommand("copy");
  4367. case 26:
  4368. a.style.height = "0", n.next = 31;
  4369. break;
  4370. case 29:
  4371. n.prev = 29, n.t0 = n.catch(18);
  4372. case 31:
  4373. n.next = 35;
  4374. break;
  4375. case 33:
  4376. n.prev = 33, n.t1 = n.catch(0);
  4377. case 35:
  4378. return n.prev = 35, e.ignoreControls = !1, e.selectMessage = -1, n.finish(35);
  4379. case 39:
  4380. case "end":
  4381. return n.stop()
  4382. }
  4383. }, n, e, [
  4384. [0, 33, 35, 39],
  4385. [18, 29]
  4386. ])
  4387. }))()
  4388. },
  4389. onBackspace: function() {
  4390. if (void 0 !== this.imgZoom) return void(this.imgZoom = void 0);
  4391. !0 !== this.ignoreControls && (!0 === this.useMouse && "BODY" !== document.activeElement.tagName || (-1 !== this.selectMessage ? this.selectMessage = -1 : this.quit()))
  4392. },
  4393. showOptions: function() {
  4394. var t = this;
  4395. return c()(o.a.mark(function e() {
  4396. var n, s, i, a;
  4397. return o.a.wrap(function(e) {
  4398. for (;;) switch (e.prev = e.next) {
  4399. case 0:
  4400. return e.prev = 0, t.ignoreControls = !0, n = [{
  4401. id: 1,
  4402. title: t.IntlString("APP_MESSAGE_SEND_GPS"),
  4403. icons: "fa-location-arrow"
  4404. }, {
  4405. id: -1,
  4406. title: t.IntlString("CANCEL"),
  4407. icons: "fa-undo"
  4408. }], t.enableTakePhoto && (n = [{
  4409. id: 1,
  4410. title: t.IntlString("APP_MESSAGE_SEND_GPS"),
  4411. icons: "fa-location-arrow"
  4412. }, {
  4413. id: 2,
  4414. title: t.IntlString("APP_MESSAGE_SEND_PHOTO"),
  4415. icons: "fa-picture-o"
  4416. }, {
  4417. id: -1,
  4418. title: t.IntlString("CANCEL"),
  4419. icons: "fa-undo"
  4420. }]), e.next = 6, m.a.CreateModal({
  4421. choix: n
  4422. });
  4423. case 6:
  4424. if (s = e.sent, 1 === s.id && t.sendMessage({
  4425. phoneNumber: t.phoneNumber,
  4426. message: "%pos%"
  4427. }), 2 !== s.id) {
  4428. e.next = 14;
  4429. break
  4430. }
  4431. return e.next = 11, t.$phoneAPI.takePhoto();
  4432. case 11:
  4433. i = e.sent, a = i.url, null !== a && void 0 !== a && t.sendMessage({
  4434. phoneNumber: t.phoneNumber,
  4435. message: a
  4436. });
  4437. case 14:
  4438. t.ignoreControls = !1, e.next = 19;
  4439. break;
  4440. case 17:
  4441. e.prev = 17, e.t0 = e.catch(0);
  4442. case 19:
  4443. return e.prev = 19, t.ignoreControls = !1, e.finish(19);
  4444. case 22:
  4445. case "end":
  4446. return e.stop()
  4447. }
  4448. }, e, t, [
  4449. [0, 17, 19, 22]
  4450. ])
  4451. }))()
  4452. },
  4453. onRight: function() {
  4454. !0 !== this.ignoreControls && -1 === this.selectMessage && this.showOptions()
  4455. }
  4456. }),
  4457. computed: l()({}, n.i(h.b)(["IntlString", "messages", "contacts", "useMouse", "enableTakePhoto"]), {
  4458. messagesList: function() {
  4459. var t = this;
  4460. return this.messages.filter(function(e) {
  4461. return e.transmitter === t.phoneNumber
  4462. }).sort(function(t, e) {
  4463. return t.time - e.time
  4464. })
  4465. },
  4466. displayContact: function() {
  4467. var t = this;
  4468. if (void 0 !== this.display) return this.display;
  4469. var e = this.contacts.find(function(e) {
  4470. return e.number === t.phoneNumber
  4471. });
  4472. return void 0 !== e ? e.display : this.phoneNumber
  4473. },
  4474. color: function() {
  4475. return n.i(p.a)(this.phoneNumber)
  4476. },
  4477. colorSmsOwner: function() {
  4478. return [{
  4479. backgroundColor: this.color,
  4480. color: n.i(p.c)(this.color)
  4481. }, {}]
  4482. }
  4483. }),
  4484. watch: {
  4485. messagesList: function() {
  4486. this.setMessageRead(this.phoneNumber), this.resetScroll()
  4487. }
  4488. },
  4489. created: function() {
  4490. this.display = this.$route.params.display, this.phoneNumber = this.$route.params.number, this.useMouse || (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter), this.$bus.$on("keyUpArrowRight", this.onRight)), this.$bus.$on("keyUpBackspace", this.onBackspace)
  4491. },
  4492. beforeDestroy: function() {
  4493. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("keyUpBackspace", this.onBackspace)
  4494. }
  4495. }
  4496. }, function(t, e, n) {
  4497. "use strict";
  4498. Object.defineProperty(e, "__esModule", {
  4499. value: !0
  4500. });
  4501. var s = n(21),
  4502. o = n.n(s),
  4503. i = n(1),
  4504. a = n.n(i),
  4505. r = n(2),
  4506. c = n(20),
  4507. u = n(6),
  4508. l = n(27),
  4509. h = n.n(l);
  4510. e.default = {
  4511. components: {
  4512. List: h.a
  4513. },
  4514. data: function() {
  4515. return {
  4516. disableList: !1
  4517. }
  4518. },
  4519. methods: a()({}, n.i(r.a)(["deleteMessagesNumber", "deleteAllMessages", "startCall"]), {
  4520. onSelect: function(t) {
  4521. -1 === t.id ? this.$router.push({
  4522. name: "messages.selectcontact"
  4523. }) : this.$router.push({
  4524. name: "messages.view",
  4525. params: t
  4526. })
  4527. },
  4528. onOption: function(t) {
  4529. var e = this;
  4530. void 0 !== t.number && (this.disableList = !0, u.a.CreateModal({
  4531. choix: [{
  4532. id: 4,
  4533. title: this.IntlString("APP_PHONE_CALL"),
  4534. icons: "fa-phone"
  4535. }, {
  4536. id: 5,
  4537. title: this.IntlString("APP_PHONE_CALL_ANONYMOUS"),
  4538. icons: "fa-mask"
  4539. }, {
  4540. id: 6,
  4541. title: this.IntlString("APP_MESSAGE_NEW_MESSAGE"),
  4542. icons: "fa-sms"
  4543. }, {
  4544. id: 1,
  4545. title: this.IntlString("APP_MESSAGE_ERASE_CONVERSATION"),
  4546. icons: "fa-trash",
  4547. color: "orange"
  4548. }, {
  4549. id: 2,
  4550. title: this.IntlString("APP_MESSAGE_ERASE_ALL_CONVERSATIONS"),
  4551. icons: "fa-trash",
  4552. color: "red"
  4553. }, {
  4554. id: 3,
  4555. title: this.IntlString("CANCEL"),
  4556. icons: "fa-undo"
  4557. }]
  4558. }).then(function(n) {
  4559. 1 === n.id ? e.deleteMessagesNumber({
  4560. num: t.number
  4561. }) : 2 === n.id ? e.deleteAllMessages() : 4 === n.id ? e.startCall({
  4562. numero: t.number
  4563. }) : 5 === n.id ? e.startCall({
  4564. numero: "#" + t.number
  4565. }) : 6 === n.id && e.$router.push({
  4566. name: "messages.view",
  4567. params: t
  4568. }), e.disableList = !1
  4569. }))
  4570. },
  4571. back: function() {
  4572. !0 !== this.disableList && this.$router.push({
  4573. name: "home"
  4574. })
  4575. }
  4576. }),
  4577. computed: a()({}, n.i(r.b)(["IntlString", "useMouse", "contacts", "messages"]), {
  4578. messagesData: function() {
  4579. var t = this.messages,
  4580. e = this.contacts,
  4581. s = t.reduce(function(t, s) {
  4582. if (void 0 === t[s.transmitter]) {
  4583. var o = {
  4584. noRead: 0,
  4585. lastMessage: 0,
  4586. display: s.transmitter
  4587. },
  4588. i = e.find(function(t) {
  4589. return t.number === s.transmitter
  4590. });
  4591. void 0 !== i ? (o.display = i.display, o.backgroundColor = i.backgroundColor || n.i(c.a)(s.transmitter), o.letter = i.letter, o.icon = i.icon) : o.backgroundColor = n.i(c.a)(s.transmitter), t[s.transmitter] = o
  4592. }
  4593. return 0 === s.isRead && (t[s.transmitter].noRead += 1), s.time >= t[s.transmitter].lastMessage && (t[s.transmitter].lastMessage = s.time, t[s.transmitter].keyDesc = s.message), t
  4594. }, {}),
  4595. i = [];
  4596. return o()(s).forEach(function(t) {
  4597. i.push({
  4598. display: s[t].display,
  4599. puce: s[t].noRead,
  4600. number: t,
  4601. lastMessage: s[t].lastMessage,
  4602. keyDesc: s[t].keyDesc,
  4603. backgroundColor: s[t].backgroundColor,
  4604. icon: s[t].icon,
  4605. letter: s[t].letter
  4606. })
  4607. }), i.sort(function(t, e) {
  4608. return e.lastMessage - t.lastMessage
  4609. }), [this.newMessageOption].concat(i)
  4610. },
  4611. newMessageOption: function() {
  4612. return {
  4613. backgroundColor: "#C0C0C0",
  4614. display: this.IntlString("APP_MESSAGE_NEW_MESSAGE"),
  4615. letter: "+",
  4616. id: -1
  4617. }
  4618. }
  4619. }),
  4620. created: function() {
  4621. this.$bus.$on("keyUpBackspace", this.back)
  4622. },
  4623. beforeDestroy: function() {
  4624. this.$bus.$off("keyUpBackspace", this.back)
  4625. }
  4626. }
  4627. }, function(t, e, n) {
  4628. "use strict";
  4629. Object.defineProperty(e, "__esModule", {
  4630. value: !0
  4631. });
  4632. var s = n(5),
  4633. o = n.n(s),
  4634. i = n(4),
  4635. a = n.n(i),
  4636. r = n(21),
  4637. c = n.n(r),
  4638. u = n(1),
  4639. l = n.n(u),
  4640. h = n(2),
  4641. p = n(10),
  4642. f = n.n(p),
  4643. d = n(6);
  4644. e.default = {
  4645. components: {
  4646. PhoneTitle: f.a
  4647. },
  4648. data: function() {
  4649. return {
  4650. ignoreControls: !1,
  4651. currentSelect: 0
  4652. }
  4653. },
  4654. computed: l()({}, n.i(h.b)(["IntlString", "useMouse", "myPhoneNumber", "backgroundLabel", "coqueLabel", "zoom", "config", "volume", "availableLanguages"]), {
  4655. paramList: function() {
  4656. var t = this.IntlString("CANCEL"),
  4657. e = this.IntlString("APP_CONFIG_RESET_CONFIRM"),
  4658. n = {},
  4659. s = {};
  4660. return n[t] = "cancel", s[e] = "accept", [{
  4661. icons: "fa-phone",
  4662. title: this.IntlString("APP_CONFIG_MY_MUNBER"),
  4663. value: this.myPhoneNumber
  4664. }, {
  4665. icons: "fa-picture-o",
  4666. title: this.IntlString("APP_CONFIG_WALLPAPER"),
  4667. value: this.backgroundLabel,
  4668. onValid: "onChangeBackground",
  4669. values: this.config.background
  4670. }, {
  4671. icons: "fa-mobile",
  4672. title: this.IntlString("APP_CONFIG_CASE"),
  4673. value: this.coqueLabel,
  4674. onValid: "onChangeCoque",
  4675. values: this.config.coque
  4676. }, {
  4677. icons: "fa-search",
  4678. title: this.IntlString("APP_CONFIG_ZOOM"),
  4679. value: this.zoom,
  4680. onValid: "setZoom",
  4681. onLeft: this.ajustZoom(-1),
  4682. onRight: this.ajustZoom(1),
  4683. values: {
  4684. "125 %": "125%",
  4685. "100 %": "100%",
  4686. "80 %": "80%",
  4687. "60 %": "60%",
  4688. "40 %": "40%",
  4689. "20 %": "20%"
  4690. }
  4691. }, {
  4692. icons: "fa-volume-down",
  4693. title: this.IntlString("APP_CONFIG_VOLUME"),
  4694. value: this.valumeDisplay,
  4695. onValid: "setPhoneVolume",
  4696. onLeft: this.ajustVolume(-.01),
  4697. onRight: this.ajustVolume(.01),
  4698. values: {
  4699. "100 %": 1,
  4700. "80 %": .8,
  4701. "60 %": .6,
  4702. "40 %": .4,
  4703. "20 %": .2,
  4704. "0 %": 0
  4705. }
  4706. }, {
  4707. icons: "fa-globe",
  4708. title: this.IntlString("APP_CONFIG_LANGUAGE"),
  4709. onValid: "onChangeLanguages",
  4710. values: l()({}, this.availableLanguages, n)
  4711. }, {
  4712. icons: "fa-mouse-pointer",
  4713. title: this.IntlString("APP_CONFIG_MOUSE_SUPPORT"),
  4714. onValid: "onChangeMouseSupport",
  4715. values: l()({
  4716. Yes: !0,
  4717. No: !1
  4718. }, n)
  4719. }, {
  4720. icons: "fa-exclamation-triangle",
  4721. color: "#c0392b",
  4722. title: this.IntlString("APP_CONFIG_RESET"),
  4723. onValid: "resetPhone",
  4724. values: l()({}, s, n)
  4725. }]
  4726. },
  4727. valumeDisplay: function() {
  4728. return Math.floor(100 * this.volume) + " %"
  4729. }
  4730. }),
  4731. methods: l()({}, n.i(h.a)(["getIntlString", "setZoon", "setBackground", "setCoque", "setVolume", "setLanguage", "setMouseSupport"]), {
  4732. scrollIntoViewIfNeeded: function() {
  4733. this.$nextTick(function() {
  4734. document.querySelector(".select").scrollIntoViewIfNeeded()
  4735. })
  4736. },
  4737. onBackspace: function() {
  4738. !0 !== this.ignoreControls && this.$router.push({
  4739. name: "home"
  4740. })
  4741. },
  4742. onUp: function() {
  4743. !0 !== this.ignoreControls && (this.currentSelect = 0 === this.currentSelect ? 0 : this.currentSelect - 1, this.scrollIntoViewIfNeeded())
  4744. },
  4745. onDown: function() {
  4746. !0 !== this.ignoreControls && (this.currentSelect = this.currentSelect === this.paramList.length - 1 ? this.currentSelect : this.currentSelect + 1, this.scrollIntoViewIfNeeded())
  4747. },
  4748. onRight: function() {
  4749. if (!0 !== this.ignoreControls) {
  4750. var t = this.paramList[this.currentSelect];
  4751. void 0 !== t.onRight && t.onRight(t)
  4752. }
  4753. },
  4754. onLeft: function() {
  4755. if (!0 !== this.ignoreControls) {
  4756. var t = this.paramList[this.currentSelect];
  4757. void 0 !== t.onLeft && t.onLeft(t)
  4758. }
  4759. },
  4760. actionItem: function(t) {
  4761. var e = this;
  4762. if (void 0 !== t.values) {
  4763. this.ignoreControls = !0;
  4764. var n = c()(t.values).map(function(e) {
  4765. return {
  4766. title: e,
  4767. value: t.values[e],
  4768. picto: t.values[e]
  4769. }
  4770. });
  4771. d.a.CreateModal({
  4772. choix: n
  4773. }).then(function(n) {
  4774. e.ignoreControls = !1, "cancel" !== n.title && e[t.onValid](t, n)
  4775. })
  4776. }
  4777. },
  4778. onPressItem: function(t) {
  4779. this.actionItem(this.paramList[t])
  4780. },
  4781. onEnter: function() {
  4782. !0 !== this.ignoreControls && this.actionItem(this.paramList[this.currentSelect])
  4783. },
  4784. onChangeBackground: function(t, e) {
  4785. var n = this;
  4786. return a()(o.a.mark(function t() {
  4787. var s;
  4788. return o.a.wrap(function(t) {
  4789. for (;;) switch (t.prev = t.next) {
  4790. case 0:
  4791. s = e.value, "URL" === s ? (n.ignoreControls = !0, d.a.CreateTextModal({
  4792. text: "https://i.imgur.com/"
  4793. }).then(function(t) {
  4794. "" !== t.text && void 0 !== t.text && null !== t.text && "https://i.imgur.com/" !== t.text && n.setBackground({
  4795. label: "Custom",
  4796. value: t.text
  4797. })
  4798. }).finally(function() {
  4799. n.ignoreControls = !1
  4800. })) : n.setBackground({
  4801. label: e.title,
  4802. value: e.value
  4803. });
  4804. case 2:
  4805. case "end":
  4806. return t.stop()
  4807. }
  4808. }, t, n)
  4809. }))()
  4810. },
  4811. onChangeCoque: function(t, e) {
  4812. this.setCoque({
  4813. label: e.title,
  4814. value: e.value
  4815. })
  4816. },
  4817. setZoom: function(t, e) {
  4818. this.setZoon(e.value)
  4819. },
  4820. ajustZoom: function(t) {
  4821. var e = this;
  4822. return function() {
  4823. var n = Math.max(10, (parseInt(e.zoom) || 100) + t);
  4824. e.setZoon(n + "%")
  4825. }
  4826. },
  4827. setPhoneVolume: function(t, e) {
  4828. this.setVolume(e.value)
  4829. },
  4830. ajustVolume: function(t) {
  4831. var e = this;
  4832. return function() {
  4833. var n = Math.max(0, Math.min(1, parseFloat(e.volume) + t));
  4834. e.setVolume(n)
  4835. }
  4836. },
  4837. onChangeLanguages: function(t, e) {
  4838. "cancel" !== e.value && this.setLanguage(e.value)
  4839. },
  4840. onChangeMouseSupport: function(t, e) {
  4841. "cancel" !== e.value && (this.setMouseSupport(e.value), this.onBackspace())
  4842. },
  4843. resetPhone: function(t, e) {
  4844. var n = this;
  4845. if ("cancel" !== e.value) {
  4846. this.ignoreControls = !0;
  4847. var s = this.IntlString("CANCEL"),
  4848. o = this.IntlString("APP_CONFIG_RESET_CONFIRM"),
  4849. i = [{
  4850. title: s
  4851. }, {
  4852. title: s
  4853. }, {
  4854. title: o,
  4855. color: "red",
  4856. reset: !0
  4857. }, {
  4858. title: s
  4859. }, {
  4860. title: s
  4861. }];
  4862. d.a.CreateModal({
  4863. choix: i
  4864. }).then(function(t) {
  4865. n.ignoreControls = !1, !0 === t.reset && n.$phoneAPI.deleteALL()
  4866. })
  4867. }
  4868. }
  4869. }),
  4870. created: function() {
  4871. this.useMouse ? this.currentSelect = -1 : (this.$bus.$on("keyUpArrowRight", this.onRight), this.$bus.$on("keyUpArrowLeft", this.onLeft), this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.onBackspace)
  4872. },
  4873. beforeDestroy: function() {
  4874. this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("keyUpArrowLeft", this.onLeft), this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBackspace)
  4875. }
  4876. }
  4877. }, function(t, e, n) {
  4878. "use strict";
  4879. Object.defineProperty(e, "__esModule", {
  4880. value: !0
  4881. });
  4882. var s = n(5),
  4883. o = n.n(s),
  4884. i = n(4),
  4885. a = n.n(i),
  4886. r = n(1),
  4887. c = n.n(r),
  4888. u = n(122),
  4889. l = n.n(u),
  4890. h = n(2),
  4891. p = n(6),
  4892. f = l()({
  4893. MENU: 0,
  4894. NEW_ACCOUNT: 1,
  4895. LOGIN: 2,
  4896. ACCOUNT: 3,
  4897. NOTIFICATION: 4
  4898. });
  4899. e.default = {
  4900. components: {},
  4901. data: function() {
  4902. return {
  4903. STATES: f,
  4904. state: f.MENU,
  4905. localAccount: {
  4906. username: "",
  4907. password: "",
  4908. passwordConfirm: "",
  4909. avatarUrl: null
  4910. },
  4911. notification: 0,
  4912. notificationSound: !1
  4913. }
  4914. },
  4915. computed: c()({}, n.i(h.b)(["IntlString", "useMouse", "twitterUsername", "twitterPassword", "twitterAvatarUrl", "twitterNotification", "twitterNotificationSound"]), {
  4916. isLogin: function() {
  4917. return void 0 !== this.twitterUsername && "" !== this.twitterUsername
  4918. },
  4919. validAccount: function() {
  4920. return this.localAccount.username.length >= 4 && this.localAccount.password.length >= 6 && this.localAccount.password === this.localAccount.passwordConfirm
  4921. }
  4922. }),
  4923. methods: c()({}, n.i(h.a)(["twitterLogin", "twitterChangePassword", "twitterLogout", "twitterSetAvatar", "twitterCreateNewAccount", "setTwitterNotification", "setTwitterNotificationSound"]), {
  4924. onUp: function() {
  4925. if (!0 !== this.ignoreControls) {
  4926. var t = document.querySelector(".group.select");
  4927. if (null === t) return t = document.querySelector(".group"), void t.classList.add("select");
  4928. for (; null !== t.previousElementSibling && !t.previousElementSibling.classList.contains("group");) t = t.previousElementSibling;
  4929. if (null !== t.previousElementSibling) {
  4930. document.querySelectorAll(".group").forEach(function(t) {
  4931. t.classList.remove("select")
  4932. }), t.previousElementSibling.classList.add("select");
  4933. var e = t.previousElementSibling.querySelector("input");
  4934. null !== e && e.focus()
  4935. }
  4936. }
  4937. },
  4938. onDown: function() {
  4939. if (!0 !== this.ignoreControls) {
  4940. var t = document.querySelector(".group.select");
  4941. if (null === t) return t = document.querySelector(".group"), void t.classList.add("select");
  4942. for (; null !== t.nextElementSibling && !t.nextElementSibling.classList.contains("group");) t = t.nextElementSibling;
  4943. if (null !== t.nextElementSibling) {
  4944. document.querySelectorAll(".group").forEach(function(t) {
  4945. t.classList.remove("select")
  4946. }), t.nextElementSibling.classList.add("select");
  4947. var e = t.nextElementSibling.querySelector("input");
  4948. null !== e && e.focus()
  4949. }
  4950. }
  4951. },
  4952. onEnter: function() {
  4953. if (!0 !== this.ignoreControls) {
  4954. var t = document.querySelector(".group.select");
  4955. if (null !== t && null !== t.dataset) {
  4956. if ("text" === t.dataset.type) {
  4957. var e = t.querySelector("input"),
  4958. n = {
  4959. limit: parseInt(t.dataset.maxlength) || 64,
  4960. text: t.dataset.defaultValue || ""
  4961. };
  4962. this.$phoneAPI.getReponseText(n).then(function(t) {
  4963. e.value = t.text, e.dispatchEvent(new window.Event("change"))
  4964. })
  4965. }
  4966. "button" === t.dataset.type && t.click()
  4967. }
  4968. }
  4969. },
  4970. onBack: function() {
  4971. this.state !== this.STATES.MENU ? this.state = this.STATES.MENU : this.$bus.$emit("twitterHome")
  4972. },
  4973. setLocalAccount: function(t, e) {
  4974. this.localAccount[e] = t.target.value
  4975. },
  4976. setLocalAccountAvartar: function(t) {
  4977. var e = this;
  4978. return a()(o.a.mark(function t() {
  4979. var n;
  4980. return o.a.wrap(function(t) {
  4981. for (;;) switch (t.prev = t.next) {
  4982. case 0:
  4983. return t.prev = 0, t.next = 3, p.a.CreateTextModal({
  4984. text: e.twitterAvatarUrl || "https://i.imgur.com/"
  4985. });
  4986. case 3:
  4987. n = t.sent, e.localAccount.avatarUrl = n.text, t.next = 9;
  4988. break;
  4989. case 7:
  4990. t.prev = 7, t.t0 = t.catch(0);
  4991. case 9:
  4992. case "end":
  4993. return t.stop()
  4994. }
  4995. }, t, e, [
  4996. [0, 7]
  4997. ])
  4998. }))()
  4999. },
  5000. onPressChangeAvartar: function() {
  5001. var t = this;
  5002. return a()(o.a.mark(function e() {
  5003. var n;
  5004. return o.a.wrap(function(e) {
  5005. for (;;) switch (e.prev = e.next) {
  5006. case 0:
  5007. return e.prev = 0, e.next = 3, p.a.CreateTextModal({
  5008. text: t.twitterAvatarUrl || "https://i.imgur.com/"
  5009. });
  5010. case 3:
  5011. n = e.sent, t.twitterSetAvatar({
  5012. avatarUrl: n.text
  5013. }), e.next = 9;
  5014. break;
  5015. case 7:
  5016. e.prev = 7, e.t0 = e.catch(0);
  5017. case 9:
  5018. case "end":
  5019. return e.stop()
  5020. }
  5021. }, e, t, [
  5022. [0, 7]
  5023. ])
  5024. }))()
  5025. },
  5026. login: function() {
  5027. this.twitterLogin({
  5028. username: this.localAccount.username,
  5029. password: this.localAccount.password
  5030. }), this.state = f.MENU
  5031. },
  5032. logout: function() {
  5033. this.twitterLogout()
  5034. },
  5035. createAccount: function() {
  5036. !0 === this.validAccount && (this.twitterCreateNewAccount(this.localAccount), this.localAccount = {
  5037. username: "",
  5038. password: "",
  5039. passwordConfirm: "",
  5040. avatarUrl: null
  5041. }, this.state = this.STATES.MENU)
  5042. },
  5043. cancel: function() {
  5044. this.state = f.MENU
  5045. },
  5046. setNotification: function(t) {
  5047. this.setTwitterNotification(t)
  5048. },
  5049. setNotificationSound: function(t) {
  5050. this.setTwitterNotificationSound(t)
  5051. },
  5052. changePassword: function(t) {
  5053. var e = this;
  5054. return a()(o.a.mark(function t() {
  5055. var n, s;
  5056. return o.a.wrap(function(t) {
  5057. for (;;) switch (t.prev = t.next) {
  5058. case 0:
  5059. return t.prev = 0, t.next = 3, p.a.CreateTextModal({
  5060. limit: 30
  5061. });
  5062. case 3:
  5063. if (n = t.sent, "" !== n.text) {
  5064. t.next = 6;
  5065. break
  5066. }
  5067. return t.abrupt("return");
  5068. case 6:
  5069. return t.next = 8, p.a.CreateTextModal({
  5070. limit: 30
  5071. });
  5072. case 8:
  5073. if (s = t.sent, "" !== s.text) {
  5074. t.next = 11;
  5075. break
  5076. }
  5077. return t.abrupt("return");
  5078. case 11:
  5079. if (s.text === n.text) {
  5080. t.next = 16;
  5081. break
  5082. }
  5083. return e.$notify({
  5084. title: e.IntlString("APP_TWITTER_NAME"),
  5085. message: e.IntlString("APP_TWITTER_NOTIF_NEW_PASSWORD_MISS_MATCH"),
  5086. icon: "twitter",
  5087. backgroundColor: "#e0245e80"
  5088. }), t.abrupt("return");
  5089. case 16:
  5090. if (!(s.text.length < 6)) {
  5091. t.next = 19;
  5092. break
  5093. }
  5094. return e.$notify({
  5095. title: e.IntlString("APP_TWITTER_NAME"),
  5096. message: e.IntlString("APP_TWITTER_NOTIF_NEW_PASSWORD_LENGTH_ERROR"),
  5097. icon: "twitter",
  5098. backgroundColor: "#e0245e80"
  5099. }), t.abrupt("return");
  5100. case 19:
  5101. e.twitterChangePassword(s.text), t.next = 25;
  5102. break;
  5103. case 22:
  5104. t.prev = 22, t.t0 = t.catch(0), console.error(t.t0);
  5105. case 25:
  5106. case "end":
  5107. return t.stop()
  5108. }
  5109. }, t, e, [
  5110. [0, 22]
  5111. ])
  5112. }))()
  5113. }
  5114. }),
  5115. created: function() {
  5116. this.useMouse || (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter), this.$bus.$on("keyUpBackspace", this.onBack))
  5117. },
  5118. beforeDestroy: function() {
  5119. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBack)
  5120. }
  5121. }
  5122. }, function(t, e, n) {
  5123. "use strict";
  5124. Object.defineProperty(e, "__esModule", {
  5125. value: !0
  5126. });
  5127. var s = n(5),
  5128. o = n.n(s),
  5129. i = n(4),
  5130. a = n.n(i),
  5131. r = n(1),
  5132. c = n.n(r),
  5133. u = n(2);
  5134. e.default = {
  5135. components: {},
  5136. data: function() {
  5137. return {
  5138. message: ""
  5139. }
  5140. },
  5141. computed: c()({}, n.i(u.b)(["IntlString", "useMouse"])),
  5142. watch: {},
  5143. methods: c()({}, n.i(u.a)(["twitterPostTweet"]), {
  5144. onEnter: function() {
  5145. var t = this;
  5146. return a()(o.a.mark(function e() {
  5147. var n, s;
  5148. return o.a.wrap(function(e) {
  5149. for (;;) switch (e.prev = e.next) {
  5150. case 0:
  5151. return e.prev = 0, e.next = 3, t.$phoneAPI.getReponseText({});
  5152. case 3:
  5153. n = e.sent, void 0 !== n && void 0 !== n.text && (s = n.text.trim(), 0 !== s.length && t.twitterPostTweet({
  5154. message: s
  5155. })), e.next = 9;
  5156. break;
  5157. case 7:
  5158. e.prev = 7, e.t0 = e.catch(0);
  5159. case 9:
  5160. case "end":
  5161. return e.stop()
  5162. }
  5163. }, e, t, [
  5164. [0, 7]
  5165. ])
  5166. }))()
  5167. },
  5168. tweeter: function() {
  5169. var t = this;
  5170. return a()(o.a.mark(function e() {
  5171. return o.a.wrap(function(e) {
  5172. for (;;) switch (e.prev = e.next) {
  5173. case 0:
  5174. if ("" !== t.message) {
  5175. e.next = 2;
  5176. break
  5177. }
  5178. return e.abrupt("return");
  5179. case 2:
  5180. return e.next = 4, t.twitterPostTweet({
  5181. message: t.message
  5182. });
  5183. case 4:
  5184. t.message = "";
  5185. case 5:
  5186. case "end":
  5187. return e.stop()
  5188. }
  5189. }, e, t)
  5190. }))()
  5191. },
  5192. onBack: function() {
  5193. !0 === this.useMouse && "BODY" !== document.activeElement.tagName || this.$bus.$emit("twitterHome")
  5194. }
  5195. }),
  5196. created: function() {
  5197. this.useMouse || this.$bus.$on("keyUpEnter", this.onEnter), this.$bus.$on("keyUpBackspace", this.onBack)
  5198. },
  5199. mounted: function() {
  5200. var t = this;
  5201. return a()(o.a.mark(function e() {
  5202. return o.a.wrap(function(t) {
  5203. for (;;) switch (t.prev = t.next) {
  5204. case 0:
  5205. case "end":
  5206. return t.stop()
  5207. }
  5208. }, e, t)
  5209. }))()
  5210. },
  5211. beforeDestroy: function() {
  5212. this.$bus.$off("keyUpBackspace", this.onBack), this.$bus.$off("keyUpEnter", this.onEnter)
  5213. }
  5214. }
  5215. }, function(t, e, n) {
  5216. "use strict";
  5217. Object.defineProperty(e, "__esModule", {
  5218. value: !0
  5219. });
  5220. var s = n(1),
  5221. o = n.n(s),
  5222. i = n(10),
  5223. a = n.n(i),
  5224. r = n(239),
  5225. c = n.n(r),
  5226. u = n(235),
  5227. l = n.n(u),
  5228. h = n(234),
  5229. p = n.n(h),
  5230. f = n(238),
  5231. d = n.n(f),
  5232. m = n(2);
  5233. e.default = {
  5234. components: {
  5235. PhoneTitle: a.a
  5236. },
  5237. data: function() {
  5238. return {
  5239. currentScreenIndex: 0
  5240. }
  5241. },
  5242. computed: o()({}, n.i(m.b)(["IntlString", "useMouse"]), {
  5243. screen: function() {
  5244. return [{
  5245. title: this.IntlString("APP_TWITTER_VIEW_TWITTER"),
  5246. component: c.a,
  5247. icon: "fa-home"
  5248. }, {
  5249. title: this.IntlString("APP_TWITTER_VIEW_TOP_TWEETS"),
  5250. component: d.a,
  5251. icon: "fa-heart"
  5252. }, {
  5253. title: this.IntlString("APP_TWITTER_VIEW_TWEETER"),
  5254. component: l.a,
  5255. icon: "fa-comment"
  5256. }, {
  5257. title: this.IntlString("APP_TWITTER_VIEW_SETTING"),
  5258. component: p.a,
  5259. icon: "fa-cog"
  5260. }]
  5261. },
  5262. currentScreen: function() {
  5263. return this.screen[this.currentScreenIndex]
  5264. }
  5265. }),
  5266. watch: {},
  5267. methods: {
  5268. onLeft: function() {
  5269. this.currentScreenIndex = Math.max(0, this.currentScreenIndex - 1)
  5270. },
  5271. onRight: function() {
  5272. this.currentScreenIndex = Math.min(this.screen.length - 1, this.currentScreenIndex + 1)
  5273. },
  5274. home: function() {
  5275. this.currentScreenIndex = 0
  5276. },
  5277. openMenu: function(t) {
  5278. this.currentScreenIndex = t
  5279. },
  5280. quit: function() {
  5281. 0 === this.currentScreenIndex ? this.$router.push({
  5282. name: "home"
  5283. }) : this.currentScreenIndex = 0
  5284. }
  5285. },
  5286. created: function() {
  5287. this.useMouse || (this.$bus.$on("keyUpArrowLeft", this.onLeft), this.$bus.$on("keyUpArrowRight", this.onRight)), this.$bus.$on("twitterHome", this.home)
  5288. },
  5289. mounted: function() {},
  5290. beforeDestroy: function() {
  5291. this.$bus.$off("keyUpArrowLeft", this.onLeft), this.$bus.$off("keyUpArrowRight", this.onRight), this.$bus.$off("twitterHome", this.home)
  5292. }
  5293. }
  5294. }, function(t, e, n) {
  5295. "use strict";
  5296. Object.defineProperty(e, "__esModule", {
  5297. value: !0
  5298. }), e.default = {
  5299. created: function() {
  5300. var t = this;
  5301. setTimeout(function() {
  5302. t.$router.push({
  5303. name: "twitter.screen"
  5304. })
  5305. }, 500)
  5306. }
  5307. }
  5308. }, function(t, e, n) {
  5309. "use strict";
  5310. Object.defineProperty(e, "__esModule", {
  5311. value: !0
  5312. });
  5313. var s = n(5),
  5314. o = n.n(s),
  5315. i = n(8),
  5316. a = n.n(i),
  5317. r = n(4),
  5318. c = n.n(r),
  5319. u = n(1),
  5320. l = n.n(u),
  5321. h = n(2),
  5322. p = n(6);
  5323. e.default = {
  5324. components: {},
  5325. data: function() {
  5326. return {
  5327. selectMessage: -1,
  5328. ignoreControls: !1,
  5329. imgZoom: void 0
  5330. }
  5331. },
  5332. computed: l()({}, n.i(h.b)(["favoriteTweets", "IntlString", "useMouse"]), {
  5333. tweets: function() {
  5334. return this.favoriteTweets
  5335. }
  5336. }),
  5337. watch: {},
  5338. methods: l()({}, n.i(h.a)(["twitterLogin", "twitterPostTweet", "twitterToogleLike", "fetchFavoriteTweets"]), {
  5339. showOption: function() {
  5340. var t = this;
  5341. return c()(o.a.mark(function e() {
  5342. var n, s, i;
  5343. return o.a.wrap(function(e) {
  5344. for (;;) switch (e.prev = e.next) {
  5345. case 0:
  5346. return t.ignoreControls = !0, n = t.tweets[t.selectMessage], s = [{
  5347. id: 1,
  5348. title: "Like / Unlike",
  5349. icons: "fa-heart"
  5350. }, {
  5351. id: 2,
  5352. title: "Rรฉpondre",
  5353. icons: "fa-reply"
  5354. }, {
  5355. id: -1,
  5356. title: t.IntlString("CANCEL"),
  5357. icons: "fa-undo"
  5358. }], t.isImage(n.message) && (s = [{
  5359. id: 3,
  5360. title: t.IntlString("APP_MESSAGE_ZOOM_IMG"),
  5361. icons: "fa-search"
  5362. }].concat(a()(s))), e.next = 6, p.a.CreateModal({
  5363. choix: s
  5364. });
  5365. case 6:
  5366. i = e.sent, t.ignoreControls = !1, e.t0 = i.id, e.next = 1 === e.t0 ? 11 : 2 === e.t0 ? 13 : 3 === e.t0 ? 15 : 17;
  5367. break;
  5368. case 11:
  5369. return t.twitterToogleLike({
  5370. tweetId: n.id
  5371. }), e.abrupt("break", 17);
  5372. case 13:
  5373. return t.reply(n), e.abrupt("break", 17);
  5374. case 15:
  5375. return t.imgZoom = n.message, e.abrupt("break", 17);
  5376. case 17:
  5377. case "end":
  5378. return e.stop()
  5379. }
  5380. }, e, t)
  5381. }))()
  5382. },
  5383. isImage: function(t) {
  5384. return /^https?:\/\/.*\.(png|jpg|jpeg|gif)/.test(t)
  5385. },
  5386. reply: function(t) {
  5387. var e = this;
  5388. return c()(o.a.mark(function n() {
  5389. var s, i, a;
  5390. return o.a.wrap(function(n) {
  5391. for (;;) switch (n.prev = n.next) {
  5392. case 0:
  5393. return s = t.author, n.prev = 1, e.ignoreControls = !0, n.next = 5, p.a.CreateTextModal({
  5394. title: "Rรฉpondre",
  5395. text: "@" + s + " "
  5396. });
  5397. case 5:
  5398. i = n.sent, void 0 !== i && void 0 !== i.text && (a = i.text.trim(), 0 !== a.length && e.twitterPostTweet({
  5399. message: a
  5400. })), n.next = 11;
  5401. break;
  5402. case 9:
  5403. n.prev = 9, n.t0 = n.catch(1);
  5404. case 11:
  5405. return n.prev = 11, e.ignoreControls = !1, n.finish(11);
  5406. case 14:
  5407. case "end":
  5408. return n.stop()
  5409. }
  5410. }, n, e, [
  5411. [1, 9, 11, 14]
  5412. ])
  5413. }))()
  5414. },
  5415. resetScroll: function() {
  5416. var t = this;
  5417. this.$nextTick(function() {
  5418. var e = document.querySelector("#tweets");
  5419. e.scrollTop = e.scrollHeight, t.selectMessage = -1
  5420. })
  5421. },
  5422. scrollIntoViewIfNeeded: function() {
  5423. var t = this;
  5424. this.$nextTick(function() {
  5425. var e = t.$el.querySelector(".select");
  5426. null !== e && e.scrollIntoViewIfNeeded()
  5427. })
  5428. },
  5429. onUp: function() {
  5430. !0 !== this.ignoreControls && (-1 === this.selectMessage ? this.selectMessage = 0 : this.selectMessage = 0 === this.selectMessage ? 0 : this.selectMessage - 1, this.scrollIntoViewIfNeeded())
  5431. },
  5432. onDown: function() {
  5433. !0 !== this.ignoreControls && (-1 === this.selectMessage ? this.selectMessage = 0 : this.selectMessage = this.selectMessage === this.tweets.length - 1 ? this.selectMessage : this.selectMessage + 1, this.scrollIntoViewIfNeeded())
  5434. },
  5435. onEnter: function() {
  5436. var t = this;
  5437. return c()(o.a.mark(function e() {
  5438. return o.a.wrap(function(e) {
  5439. for (;;) switch (e.prev = e.next) {
  5440. case 0:
  5441. if (!0 !== t.ignoreControls) {
  5442. e.next = 2;
  5443. break
  5444. }
  5445. return e.abrupt("return");
  5446. case 2:
  5447. -1 === t.selectMessage ? t.newTweet() : t.showOption();
  5448. case 3:
  5449. case "end":
  5450. return e.stop()
  5451. }
  5452. }, e, t)
  5453. }))()
  5454. },
  5455. onBack: function() {
  5456. if (void 0 !== this.imgZoom) return void(this.imgZoom = void 0);
  5457. !0 !== this.ignoreControls && (-1 !== this.selectMessage ? this.selectMessage = -1 : this.$bus.$emit("twitterHome"))
  5458. },
  5459. formatTime: function(t) {
  5460. return new Date(t).toLocaleTimeString()
  5461. }
  5462. }),
  5463. created: function() {
  5464. this.useMouse || (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.onBack)
  5465. },
  5466. mounted: function() {
  5467. this.fetchFavoriteTweets()
  5468. },
  5469. beforeDestroy: function() {
  5470. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBack)
  5471. }
  5472. }
  5473. }, function(t, e, n) {
  5474. "use strict";
  5475. Object.defineProperty(e, "__esModule", {
  5476. value: !0
  5477. });
  5478. var s = n(5),
  5479. o = n.n(s),
  5480. i = n(8),
  5481. a = n.n(i),
  5482. r = n(4),
  5483. c = n.n(r),
  5484. u = n(1),
  5485. l = n.n(u),
  5486. h = n(2),
  5487. p = n(6);
  5488. e.default = {
  5489. components: {},
  5490. data: function() {
  5491. return {
  5492. selectMessage: -1,
  5493. ignoreControls: !1,
  5494. imgZoom: void 0
  5495. }
  5496. },
  5497. computed: l()({}, n.i(h.b)(["tweets", "IntlString", "useMouse"])),
  5498. watch: {},
  5499. methods: l()({}, n.i(h.a)(["twitterLogin", "twitterPostTweet", "twitterToogleLike", "fetchTweets"]), {
  5500. showOption: function() {
  5501. var t = this;
  5502. return c()(o.a.mark(function e() {
  5503. var n, s, i;
  5504. return o.a.wrap(function(e) {
  5505. for (;;) switch (e.prev = e.next) {
  5506. case 0:
  5507. return t.ignoreControls = !0, n = t.tweets[t.selectMessage], s = [{
  5508. id: 1,
  5509. title: "Like / Unlike",
  5510. icons: "fa-heart"
  5511. }, {
  5512. id: 2,
  5513. title: "Rรฉpondre",
  5514. icons: "fa-reply"
  5515. }, {
  5516. id: -1,
  5517. title: t.IntlString("CANCEL"),
  5518. icons: "fa-undo"
  5519. }], t.isImage(n.message) && (s = [{
  5520. id: 3,
  5521. title: t.IntlString("APP_MESSAGE_ZOOM_IMG"),
  5522. icons: "fa-search"
  5523. }].concat(a()(s))), e.next = 6, p.a.CreateModal({
  5524. choix: s
  5525. });
  5526. case 6:
  5527. i = e.sent, t.ignoreControls = !1, e.t0 = i.id, e.next = 1 === e.t0 ? 11 : 2 === e.t0 ? 13 : 3 === e.t0 ? 15 : 17;
  5528. break;
  5529. case 11:
  5530. return t.twitterToogleLike({
  5531. tweetId: n.id
  5532. }), e.abrupt("break", 17);
  5533. case 13:
  5534. return t.reply(n), e.abrupt("break", 17);
  5535. case 15:
  5536. return t.imgZoom = n.message, e.abrupt("break", 17);
  5537. case 17:
  5538. case "end":
  5539. return e.stop()
  5540. }
  5541. }, e, t)
  5542. }))()
  5543. },
  5544. isImage: function(t) {
  5545. return /^https?:\/\/.*\.(png|jpg|jpeg|gif)/.test(t)
  5546. },
  5547. reply: function(t) {
  5548. var e = this;
  5549. return c()(o.a.mark(function n() {
  5550. var s, i, a;
  5551. return o.a.wrap(function(n) {
  5552. for (;;) switch (n.prev = n.next) {
  5553. case 0:
  5554. return s = t.author, n.prev = 1, e.ignoreControls = !0, n.next = 5, p.a.CreateTextModal({
  5555. title: "Rรฉpondre",
  5556. text: "@" + s + " "
  5557. });
  5558. case 5:
  5559. i = n.sent, void 0 !== i && void 0 !== i.text && (a = i.text.trim(), 0 !== a.length && e.twitterPostTweet({
  5560. message: a
  5561. })), n.next = 11;
  5562. break;
  5563. case 9:
  5564. n.prev = 9, n.t0 = n.catch(1);
  5565. case 11:
  5566. return n.prev = 11, e.ignoreControls = !1, n.finish(11);
  5567. case 14:
  5568. case "end":
  5569. return n.stop()
  5570. }
  5571. }, n, e, [
  5572. [1, 9, 11, 14]
  5573. ])
  5574. }))()
  5575. },
  5576. resetScroll: function() {
  5577. var t = this;
  5578. this.$nextTick(function() {
  5579. var e = document.querySelector("#tweets");
  5580. e.scrollTop = e.scrollHeight, t.selectMessage = -1
  5581. })
  5582. },
  5583. scrollIntoViewIfNeeded: function() {
  5584. var t = this;
  5585. this.$nextTick(function() {
  5586. var e = t.$el.querySelector(".select");
  5587. null !== e && e.scrollIntoViewIfNeeded()
  5588. })
  5589. },
  5590. onUp: function() {
  5591. !0 !== this.ignoreControls && (-1 === this.selectMessage ? this.selectMessage = 0 : this.selectMessage = 0 === this.selectMessage ? 0 : this.selectMessage - 1, this.scrollIntoViewIfNeeded())
  5592. },
  5593. onDown: function() {
  5594. !0 !== this.ignoreControls && (-1 === this.selectMessage ? this.selectMessage = 0 : this.selectMessage = this.selectMessage === this.tweets.length - 1 ? this.selectMessage : this.selectMessage + 1, this.scrollIntoViewIfNeeded())
  5595. },
  5596. onEnter: function() {
  5597. var t = this;
  5598. return c()(o.a.mark(function e() {
  5599. return o.a.wrap(function(e) {
  5600. for (;;) switch (e.prev = e.next) {
  5601. case 0:
  5602. if (!0 !== t.ignoreControls) {
  5603. e.next = 2;
  5604. break
  5605. }
  5606. return e.abrupt("return");
  5607. case 2:
  5608. -1 === t.selectMessage ? t.newTweet() : t.showOption();
  5609. case 3:
  5610. case "end":
  5611. return e.stop()
  5612. }
  5613. }, e, t)
  5614. }))()
  5615. },
  5616. onBack: function() {
  5617. if (void 0 !== this.imgZoom) return void(this.imgZoom = void 0);
  5618. !0 !== this.ignoreControls && (-1 !== this.selectMessage ? this.selectMessage = -1 : this.$router.push({
  5619. name: "home"
  5620. }))
  5621. },
  5622. formatTime: function(t) {
  5623. return new Date(t).toLocaleTimeString()
  5624. }
  5625. }),
  5626. created: function() {
  5627. this.useMouse || (this.$bus.$on("keyUpArrowDown", this.onDown), this.$bus.$on("keyUpArrowUp", this.onUp), this.$bus.$on("keyUpEnter", this.onEnter)), this.$bus.$on("keyUpBackspace", this.onBack)
  5628. },
  5629. mounted: function() {
  5630. this.fetchTweets()
  5631. },
  5632. beforeDestroy: function() {
  5633. this.$bus.$off("keyUpArrowDown", this.onDown), this.$bus.$off("keyUpArrowUp", this.onUp), this.$bus.$off("keyUpEnter", this.onEnter), this.$bus.$off("keyUpBackspace", this.onBack)
  5634. }
  5635. }
  5636. }, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, , , , , , function(t, e, n) {
  5637. function s(t) {
  5638. n(191)
  5639. }
  5640. var o = n(0)(n(85), n(261), s, "data-v-64f456c2", null);
  5641. t.exports = o.exports
  5642. }, function(t, e, n) {
  5643. function s(t) {
  5644. n(192)
  5645. }
  5646. var o = n(0)(n(86), n(262), s, "data-v-6a46c302", null);
  5647. t.exports = o.exports
  5648. }, function(t, e, n) {
  5649. function s(t) {
  5650. n(178)
  5651. }
  5652. var o = n(0)(n(87), n(248), s, "data-v-26ec6c14", null);
  5653. t.exports = o.exports
  5654. }, function(t, e, n) {
  5655. function s(t) {
  5656. n(199)
  5657. }
  5658. var o = n(0)(n(88), n(269), s, "data-v-d2b698c8", null);
  5659. t.exports = o.exports
  5660. }, function(t, e, n) {
  5661. function s(t) {
  5662. n(197)
  5663. }
  5664. var o = n(0)(n(89), n(267), s, "data-v-9104422e", null);
  5665. t.exports = o.exports
  5666. }, function(t, e, n) {
  5667. function s(t) {
  5668. n(172)
  5669. }
  5670. var o = n(0)(n(90), n(242), s, "data-v-0c8c5d42", null);
  5671. t.exports = o.exports
  5672. }, function(t, e, n) {
  5673. function s(t) {
  5674. n(170)
  5675. }
  5676. var o = n(0)(n(91), n(240), s, "data-v-0570365f", null);
  5677. t.exports = o.exports
  5678. }, function(t, e, n) {
  5679. function s(t) {
  5680. n(171)
  5681. }
  5682. var o = n(0)(n(92), n(241), s, "data-v-07b6e6d2", null);
  5683. t.exports = o.exports
  5684. }, function(t, e, n) {
  5685. function s(t) {
  5686. n(196)
  5687. }
  5688. var o = n(0)(n(93), n(266), s, "data-v-821f15d4", null);
  5689. t.exports = o.exports
  5690. }, function(t, e, n) {
  5691. function s(t) {
  5692. n(189)
  5693. }
  5694. var o = n(0)(n(94), n(259), s, "data-v-5d567654", null);
  5695. t.exports = o.exports
  5696. }, function(t, e, n) {
  5697. function s(t) {
  5698. n(203)
  5699. }
  5700. var o = n(0)(n(95), n(273), s, "data-v-e5131126", null);
  5701. t.exports = o.exports
  5702. }, function(t, e, n) {
  5703. function s(t) {
  5704. n(177)
  5705. }
  5706. var o = n(0)(n(96), n(247), s, "data-v-235696e8", null);
  5707. t.exports = o.exports
  5708. }, function(t, e, n) {
  5709. function s(t) {
  5710. n(176)
  5711. }
  5712. var o = n(0)(n(99), n(246), s, "data-v-1c547768", null);
  5713. t.exports = o.exports
  5714. }, function(t, e, n) {
  5715. function s(t) {
  5716. n(193)
  5717. }
  5718. var o = n(0)(n(100), n(263), s, "data-v-6cc9c1b2", null);
  5719. t.exports = o.exports
  5720. }, function(t, e, n) {
  5721. function s(t) {
  5722. n(175)
  5723. }
  5724. var o = n(0)(n(101), n(245), s, "data-v-17cee085", null);
  5725. t.exports = o.exports
  5726. }, function(t, e, n) {
  5727. var s = n(0)(n(103), null, null, null, null);
  5728. t.exports = s.exports
  5729. }, function(t, e, n) {
  5730. function s(t) {
  5731. n(182)
  5732. }
  5733. var o = n(0)(n(104), n(252), s, "data-v-3967a7e3", null);
  5734. t.exports = o.exports
  5735. }, function(t, e, n) {
  5736. function s(t) {
  5737. n(174)
  5738. }
  5739. var o = n(0)(n(105), n(244), s, "data-v-15f3ee32", null);
  5740. t.exports = o.exports
  5741. }, function(t, e, n) {
  5742. function s(t) {
  5743. n(190)
  5744. }
  5745. var o = n(0)(n(106), n(260), s, "data-v-5fdffa03", null);
  5746. t.exports = o.exports
  5747. }, function(t, e, n) {
  5748. function s(t) {
  5749. n(180)
  5750. }
  5751. var o = n(0)(n(107), n(250), s, "data-v-2e18afa6", null);
  5752. t.exports = o.exports
  5753. }, function(t, e, n) {
  5754. function s(t) {
  5755. n(181)
  5756. }
  5757. var o = n(0)(n(108), n(251), s, "data-v-392cfe96", null);
  5758. t.exports = o.exports
  5759. }, function(t, e, n) {
  5760. function s(t) {
  5761. n(184)
  5762. }
  5763. var o = n(0)(n(109), n(254), s, "data-v-3bd73f1c", null);
  5764. t.exports = o.exports
  5765. }, function(t, e, n) {
  5766. function s(t) {
  5767. n(200)
  5768. }
  5769. var o = n(0)(n(110), n(270), s, "data-v-d7a21294", null);
  5770. t.exports = o.exports
  5771. }, function(t, e, n) {
  5772. function s(t) {
  5773. n(185)
  5774. }
  5775. var o = n(0)(n(111), n(255), s, "data-v-48096518", null);
  5776. t.exports = o.exports
  5777. }, function(t, e, n) {
  5778. function s(t) {
  5779. n(201)
  5780. }
  5781. var o = n(0)(n(112), n(271), s, "data-v-d8a29754", null);
  5782. t.exports = o.exports
  5783. }, function(t, e, n) {
  5784. function s(t) {
  5785. n(187)
  5786. }
  5787. var o = n(0)(n(113), n(257), s, "data-v-4f9e50c2", null);
  5788. t.exports = o.exports
  5789. }, function(t, e, n) {
  5790. function s(t) {
  5791. n(194)
  5792. }
  5793. var o = n(0)(n(114), n(264), s, "data-v-7163c2ba", null);
  5794. t.exports = o.exports
  5795. }, function(t, e, n) {
  5796. function s(t) {
  5797. n(198)
  5798. }
  5799. var o = n(0)(n(115), n(268), s, "data-v-bbe95f2c", null);
  5800. t.exports = o.exports
  5801. }, function(t, e, n) {
  5802. function s(t) {
  5803. n(173)
  5804. }
  5805. var o = n(0)(n(116), n(243), s, "data-v-0ff47592", null);
  5806. t.exports = o.exports
  5807. }, function(t, e, n) {
  5808. function s(t) {
  5809. n(188)
  5810. }
  5811. var o = n(0)(n(117), n(258), s, "data-v-5d20189a", null);
  5812. t.exports = o.exports
  5813. }, function(t, e, n) {
  5814. function s(t) {
  5815. n(186)
  5816. }
  5817. var o = n(0)(n(118), n(256), s, "data-v-48f6b0ba", null);
  5818. t.exports = o.exports
  5819. }, function(t, e) {
  5820. t.exports = {
  5821. render: function() {
  5822. var t = this,
  5823. e = t.$createElement,
  5824. n = t._self._c || e;
  5825. return n("div", {
  5826. staticClass: "phone_app"
  5827. }, [n("PhoneTitle", {
  5828. attrs: {
  5829. title: t.IntlString("APP_PHONE_TITLE")
  5830. },
  5831. on: {
  5832. back: t.quit
  5833. }
  5834. }), t._v(" "), n("div", {
  5835. staticClass: "content"
  5836. }, [n("div", {
  5837. staticClass: "number"
  5838. }, [t._v("\n " + t._s(t.numeroFormat) + "\n "), n("span", {
  5839. staticClass: "deleteNumber",
  5840. on: {
  5841. click: function(e) {
  5842. return e.stopPropagation(), t.deleteNumber(e)
  5843. }
  5844. }
  5845. })]), t._v(" "), n("div", {
  5846. staticClass: "keyboard"
  5847. }, t._l(t.keyInfo, function(e, s) {
  5848. return n("div", {
  5849. key: e.primary,
  5850. staticClass: "key",
  5851. class: {
  5852. "key-select": s === t.keySelect, keySpe: !0 === e.isNotNumber
  5853. },
  5854. on: {
  5855. click: function(n) {
  5856. return n.stopPropagation(), t.onPressKey(e)
  5857. }
  5858. }
  5859. }, [n("span", {
  5860. staticClass: "key-primary",
  5861. on: {
  5862. click: function(n) {
  5863. return n.stopPropagation(), t.onPressKey(e)
  5864. }
  5865. }
  5866. }, [t._v(t._s(e.primary))]), t._v(" "), n("span", {
  5867. staticClass: "key-secondary",
  5868. on: {
  5869. click: function(n) {
  5870. return n.stopPropagation(), t.onPressKey(e)
  5871. }
  5872. }
  5873. }, [t._v(t._s(e.secondary))])])
  5874. }), 0), t._v(" "), n("div", {
  5875. staticClass: "call"
  5876. }, [n("div", {
  5877. staticClass: "call-btn",
  5878. class: {
  5879. active: 12 === t.keySelect
  5880. },
  5881. on: {
  5882. click: function(e) {
  5883. return e.stopPropagation(), t.onPressCall(e)
  5884. }
  5885. }
  5886. }, [n("svg", {
  5887. attrs: {
  5888. viewBox: "0 0 24 24"
  5889. },
  5890. on: {
  5891. click: function(e) {
  5892. return e.stopPropagation(), t.onPressCall(e)
  5893. }
  5894. }
  5895. }, [n("g", {
  5896. attrs: {
  5897. transform: "rotate(0, 12, 12)"
  5898. }
  5899. }, [n("path", {
  5900. attrs: {
  5901. d: "M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z"
  5902. }
  5903. })])])])])])], 1)
  5904. },
  5905. staticRenderFns: []
  5906. }
  5907. }, function(t, e) {
  5908. t.exports = {
  5909. render: function() {
  5910. var t = this,
  5911. e = t.$createElement,
  5912. n = t._self._c || e;
  5913. return n("div", {
  5914. staticClass: "phone_app"
  5915. }, [n("div", {
  5916. staticClass: "elements"
  5917. }, t._l(t.historique, function(e, s) {
  5918. return n("div", {
  5919. key: s,
  5920. staticClass: "element",
  5921. class: {
  5922. active: t.selectIndex === s
  5923. },
  5924. on: {
  5925. click: function(n) {
  5926. return n.stopPropagation(), t.selectItem(e)
  5927. }
  5928. }
  5929. }, [n("div", {
  5930. staticClass: "elem-pic",
  5931. style: t.stylePuce(e),
  5932. on: {
  5933. click: function(n) {
  5934. return n.stopPropagation(), t.selectItem(e)
  5935. }
  5936. }
  5937. }, [t._v(t._s(e.letter))]), t._v(" "), n("div", {
  5938. staticClass: "elem-content",
  5939. on: {
  5940. click: function(n) {
  5941. return n.stopPropagation(), t.selectItem(e)
  5942. }
  5943. }
  5944. }, [n("div", {
  5945. staticClass: "elem-content-p",
  5946. on: {
  5947. click: function(n) {
  5948. return n.stopPropagation(), t.selectItem(e)
  5949. }
  5950. }
  5951. }, [t._v(t._s(e.display))]), t._v(" "), n("div", {
  5952. staticClass: "elem-content-s",
  5953. on: {
  5954. click: function(n) {
  5955. return n.stopPropagation(), t.selectItem(e)
  5956. }
  5957. }
  5958. }, [t._l(e.lastCall, function(s, o) {
  5959. return n("div", {
  5960. key: o,
  5961. staticClass: "elem-histo-pico",
  5962. class: {
  5963. reject: !1 === s.accept
  5964. },
  5965. on: {
  5966. click: function(n) {
  5967. return n.stopPropagation(), t.selectItem(e)
  5968. }
  5969. }
  5970. }, [1 === s.accepts && 1 === s.incoming ? n("svg", {
  5971. attrs: {
  5972. viewBox: "0 0 24 24",
  5973. fill: "#43a047"
  5974. },
  5975. on: {
  5976. click: function(n) {
  5977. return n.stopPropagation(), t.selectItem(e)
  5978. }
  5979. }
  5980. }, [n("path", {
  5981. attrs: {
  5982. d: "M9,5v2h6.59L4,18.59L5.41,20L17,8.41V15h2V5H9z"
  5983. }
  5984. })]) : 1 === s.accepts && 0 === s.incoming ? n("svg", {
  5985. attrs: {
  5986. viewBox: "0 0 24 24",
  5987. fill: "#43a047"
  5988. },
  5989. on: {
  5990. click: function(n) {
  5991. return n.stopPropagation(), t.selectItem(e)
  5992. }
  5993. }
  5994. }, [n("path", {
  5995. attrs: {
  5996. d: "M20,5.41L18.59,4L7,15.59V9H5v10h10v-2H8.41L20,5.41z"
  5997. }
  5998. })]) : 0 === s.accepts && 1 === s.incoming ? n("svg", {
  5999. attrs: {
  6000. viewBox: "0 0 24 24",
  6001. fill: "#D32F2F"
  6002. },
  6003. on: {
  6004. click: function(n) {
  6005. return n.stopPropagation(), t.selectItem(e)
  6006. }
  6007. }
  6008. }, [n("path", {
  6009. attrs: {
  6010. d: "M3,8.41l9,9l7-7V15h2V7h-8v2h4.59L12,14.59L4.41,7L3,8.41z"
  6011. },
  6012. on: {
  6013. click: function(n) {
  6014. return n.stopPropagation(), t.selectItem(e)
  6015. }
  6016. }
  6017. })]) : 0 === s.accepts && 0 === s.incoming ? n("svg", {
  6018. attrs: {
  6019. viewBox: "0 0 24 24",
  6020. fill: "#D32F2F"
  6021. },
  6022. on: {
  6023. click: function(n) {
  6024. return n.stopPropagation(), t.selectItem(e)
  6025. }
  6026. }
  6027. }, [n("path", {
  6028. attrs: {
  6029. d: "M19.59,7L12,14.59L6.41,9H11V7H3v8h2v-4.59l7,7l9-9L19.59,7z"
  6030. }
  6031. })]) : t._e()])
  6032. }), t._v(" "), 0 !== e.lastCall.length ? n("div", {
  6033. staticClass: "lastCall"
  6034. }, [n("timeago", {
  6035. attrs: {
  6036. since: e.lastCall[0].date,
  6037. "auto-update": 20
  6038. }
  6039. })], 1) : t._e()], 2)]), t._v(" "), n("div", {
  6040. staticClass: "elem-icon",
  6041. on: {
  6042. click: function(n) {
  6043. return n.stopPropagation(), t.selectItem(e)
  6044. }
  6045. }
  6046. }, [n("i", {
  6047. staticClass: "fa fa-phone",
  6048. on: {
  6049. click: function(n) {
  6050. return n.stopPropagation(), t.selectItem(e)
  6051. }
  6052. }
  6053. })])])
  6054. }), 0)])
  6055. },
  6056. staticRenderFns: []
  6057. }
  6058. }, function(t, e) {
  6059. t.exports = {
  6060. render: function() {
  6061. var t = this,
  6062. e = t.$createElement,
  6063. n = t._self._c || e;
  6064. return n("div", [n("list", {
  6065. attrs: {
  6066. list: t.callList,
  6067. showHeader: !1,
  6068. disable: t.ignoreControls
  6069. },
  6070. on: {
  6071. select: t.onSelect
  6072. }
  6073. })], 1)
  6074. },
  6075. staticRenderFns: []
  6076. }
  6077. }, function(t, e) {
  6078. t.exports = {
  6079. render: function() {
  6080. var t = this,
  6081. e = t.$createElement;
  6082. t._self._c;
  6083. return t._m(0)
  6084. },
  6085. staticRenderFns: [function() {
  6086. var t = this,
  6087. e = t.$createElement,
  6088. n = t._self._c || e;
  6089. return n("div", {
  6090. staticClass: "splash"
  6091. }, [n("img", {
  6092. attrs: {
  6093. src: "/html/static/img/twitter/bird.png"
  6094. }
  6095. })])
  6096. }]
  6097. }
  6098. }, function(t, e) {
  6099. t.exports = {
  6100. render: function() {
  6101. var t = this,
  6102. e = t.$createElement,
  6103. n = t._self._c || e;
  6104. return n("div", {
  6105. staticClass: "phone_app"
  6106. }, [n("PhoneTitle", {
  6107. attrs: {
  6108. title: t.channelName,
  6109. backgroundColor: "#090f20"
  6110. },
  6111. on: {
  6112. back: t.onQuit
  6113. }
  6114. }), t._v(" "), n("div", {
  6115. staticClass: "phone_content"
  6116. }, [n("div", {
  6117. ref: "elementsDiv",
  6118. staticClass: "elements"
  6119. }, t._l(t.tchatMessages, function(e) {
  6120. return n("div", {
  6121. key: e.id,
  6122. staticClass: "element"
  6123. }, [n("div", {
  6124. staticClass: "time"
  6125. }, [t._v(t._s(t.formatTime(e.time)))]), t._v(" "), n("div", {
  6126. staticClass: "message"
  6127. }, [t._v("\n " + t._s(e.message) + "\n ")])])
  6128. }), 0), t._v(" "), n("div", {
  6129. staticClass: "tchat_write"
  6130. }, [n("input", {
  6131. directives: [{
  6132. name: "model",
  6133. rawName: "v-model",
  6134. value: t.message,
  6135. expression: "message"
  6136. }],
  6137. attrs: {
  6138. type: "text",
  6139. placeholder: "..."
  6140. },
  6141. domProps: {
  6142. value: t.message
  6143. },
  6144. on: {
  6145. keyup: function(e) {
  6146. return !e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : (e.preventDefault(), t.sendMessage(e))
  6147. },
  6148. input: function(e) {
  6149. e.target.composing || (t.message = e.target.value)
  6150. }
  6151. }
  6152. }), t._v(" "), n("span", {
  6153. staticClass: "tchat_send",
  6154. on: {
  6155. click: t.sendMessage
  6156. }
  6157. }, [t._v(">")])])])], 1)
  6158. },
  6159. staticRenderFns: []
  6160. }
  6161. }, function(t, e) {
  6162. t.exports = {
  6163. render: function() {
  6164. var t = this,
  6165. e = t.$createElement,
  6166. n = t._self._c || e;
  6167. return n("transition", {
  6168. attrs: {
  6169. name: "modal"
  6170. }
  6171. }, [n("div", {
  6172. staticClass: "modal-mask"
  6173. }, [n("div", {
  6174. staticClass: "modal-container",
  6175. on: {
  6176. click: function(t) {
  6177. t.stopPropagation()
  6178. }
  6179. }
  6180. }, [n("h2", {
  6181. style: {
  6182. color: t.color
  6183. }
  6184. }, [t._v(t._s(t.title))]), t._v(" "), n("textarea", {
  6185. directives: [{
  6186. name: "model",
  6187. rawName: "v-model",
  6188. value: t.inputText,
  6189. expression: "inputText"
  6190. }],
  6191. ref: "textarea",
  6192. staticClass: "modal-textarea",
  6193. class: {
  6194. oneline: t.limit <= 18
  6195. },
  6196. style: {
  6197. borderColor: t.color
  6198. },
  6199. attrs: {
  6200. maxlength: t.limit
  6201. },
  6202. domProps: {
  6203. value: t.inputText
  6204. },
  6205. on: {
  6206. input: function(e) {
  6207. e.target.composing || (t.inputText = e.target.value)
  6208. }
  6209. }
  6210. }), t._v(" "), n("div", {
  6211. staticClass: "botton-container"
  6212. }, [n("button", {
  6213. style: {
  6214. color: t.color
  6215. },
  6216. on: {
  6217. click: t.cancel
  6218. }
  6219. }, [t._v("\r\n " + t._s(t.IntlString("CANCEL")) + "\r\n ")]), t._v(" "), n("button", {
  6220. style: {
  6221. color: t.color
  6222. },
  6223. on: {
  6224. click: t.valide
  6225. }
  6226. }, [t._v("\r\n " + t._s(t.IntlString("OK")) + "\r\n ")])])])])])
  6227. },
  6228. staticRenderFns: []
  6229. }
  6230. }, function(t, e) {
  6231. t.exports = {
  6232. render: function() {
  6233. var t = this,
  6234. e = t.$createElement,
  6235. n = t._self._c || e;
  6236. return n("div", {
  6237. staticClass: "phone_app"
  6238. }, [n("div", {
  6239. staticClass: "backblur",
  6240. style: {
  6241. background: "url(" + t.backgroundURL + ")"
  6242. }
  6243. }), t._v(" "), n("InfoBare", {
  6244. staticClass: "infobare"
  6245. }), t._v(" "), n("div", {
  6246. staticClass: "menu",
  6247. on: {
  6248. click: t.onBack
  6249. }
  6250. }, [n("div", {
  6251. staticClass: "menu_content"
  6252. }, [n("div", {
  6253. staticClass: "menu_buttons"
  6254. }, t._l(t.Apps, function(e, s) {
  6255. return n("button", {
  6256. key: e.name,
  6257. class: {
  6258. select: s === t.currentSelect
  6259. },
  6260. style: {
  6261. backgroundImage: "url(" + e.icons + ")"
  6262. },
  6263. on: {
  6264. click: function(n) {
  6265. return n.stopPropagation(), t.openApp(e)
  6266. }
  6267. }
  6268. }, [t._v("\n " + t._s(e.intlName) + "\n "), void 0 !== e.puce && 0 !== e.puce ? n("span", {
  6269. staticClass: "puce"
  6270. }, [t._v(t._s(e.puce))]) : t._e()])
  6271. }), 0)])])], 1)
  6272. },
  6273. staticRenderFns: []
  6274. }
  6275. }, function(t, e) {
  6276. t.exports = {
  6277. render: function() {
  6278. var t = this,
  6279. e = t.$createElement,
  6280. n = t._self._c || e;
  6281. return n("div", {
  6282. staticClass: "home",
  6283. style: {
  6284. background: "url(" + t.backgroundURL + ")"
  6285. }
  6286. }, [n("InfoBare"), t._v(" "), t.messages.length >= t.warningMessageCount ? n("span", {
  6287. staticClass: "warningMess"
  6288. }, [t._m(0), t._v(" "), n("span", {
  6289. staticClass: "warningMess_content"
  6290. }, [n("span", {
  6291. staticClass: "warningMess_title"
  6292. }, [t._v(t._s(t.IntlString("PHONE_WARNING_MESSAGE")))]), n("br"), t._v(" "), n("span", {
  6293. staticClass: "warningMess_mess"
  6294. }, [t._v(t._s(t.messages.length) + " / " + t._s(t.warningMessageCount) + " " + t._s(t.IntlString("PHONE_WARNING_MESSAGE_MESS")))])])]) : t._e(), t._v(" "), n("div", {
  6295. staticClass: "home_buttons"
  6296. }, [t._l(t.AppsHome, function(e, s) {
  6297. return n("button", {
  6298. key: e.name,
  6299. class: {
  6300. select: s === t.currentSelect
  6301. },
  6302. style: {
  6303. backgroundImage: "url(" + e.icons + ")"
  6304. },
  6305. on: {
  6306. click: function(n) {
  6307. return t.openApp(e)
  6308. }
  6309. }
  6310. }, [t._v("\n " + t._s(e.intlName) + "\n "), void 0 !== e.puce && 0 !== e.puce ? n("span", {
  6311. staticClass: "puce"
  6312. }, [t._v(t._s(e.puce))]) : t._e()])
  6313. }), t._v(" "), n("div", {
  6314. staticClass: "btn_menu_ctn"
  6315. }, [n("button", {
  6316. staticClass: "btn_menu",
  6317. class: {
  6318. select: t.AppsHome.length === t.currentSelect
  6319. },
  6320. style: {
  6321. backgroundImage: "url(/html/static/img/icons_app/menu.png)"
  6322. },
  6323. on: {
  6324. click: function(e) {
  6325. return t.openApp({
  6326. routeName: "menu"
  6327. })
  6328. }
  6329. }
  6330. })])], 2)], 1)
  6331. },
  6332. staticRenderFns: [function() {
  6333. var t = this,
  6334. e = t.$createElement,
  6335. n = t._self._c || e;
  6336. return n("div", {
  6337. staticClass: "warningMess_icon"
  6338. }, [n("i", {
  6339. staticClass: "fa fa-warning"
  6340. })])
  6341. }]
  6342. }
  6343. }, function(t, e) {
  6344. t.exports = {
  6345. render: function() {
  6346. var t = this,
  6347. e = t.$createElement,
  6348. n = t._self._c || e;
  6349. return n("div", {
  6350. staticClass: "phone_app"
  6351. }, [n("PhoneTitle", {
  6352. attrs: {
  6353. title: t.IntlString("APP_PHONE_TITLE")
  6354. },
  6355. on: {
  6356. back: t.onBackspace
  6357. }
  6358. }), t._v(" "), n("div", {
  6359. staticClass: "content"
  6360. }, [n(t.subMenu[t.currentMenuIndex].Comp, {
  6361. tag: "component"
  6362. })], 1), t._v(" "), n("div", {
  6363. staticClass: "subMenu"
  6364. }, t._l(t.subMenu, function(e, s) {
  6365. return n("div", {
  6366. key: s,
  6367. staticClass: "subMenu-elem",
  6368. style: t.getColorItem(s),
  6369. on: {
  6370. click: function(e) {
  6371. return t.swapMenu(s)
  6372. }
  6373. }
  6374. }, [n("i", {
  6375. staticClass: "subMenu-icon fa",
  6376. class: ["fa-" + e.icon],
  6377. on: {
  6378. click: function(e) {
  6379. return e.stopPropagation(), t.swapMenu(s)
  6380. }
  6381. }
  6382. }), t._v(" "), n("span", {
  6383. staticClass: "subMenu-name",
  6384. on: {
  6385. click: function(e) {
  6386. return e.stopPropagation(), t.swapMenu(s)
  6387. }
  6388. }
  6389. }, [t._v(t._s(e.name))])])
  6390. }), 0)], 1)
  6391. },
  6392. staticRenderFns: []
  6393. }
  6394. }, function(t, e) {
  6395. t.exports = {
  6396. render: function() {
  6397. var t = this,
  6398. e = t.$createElement,
  6399. n = t._self._c || e;
  6400. return n("div", {
  6401. staticClass: "phone_infoBare barre-header"
  6402. }, [n("span", {
  6403. staticClass: "reseau"
  6404. }, [t._v(t._s(t.config.reseau))]), t._v(" "), n("span", {
  6405. staticClass: "time"
  6406. }, [n("current-time")], 1), t._v(" "), n("hr", {
  6407. staticClass: "batterie1"
  6408. }), t._v(" "), n("hr", {
  6409. staticClass: "batterie2"
  6410. }), t._v(" "), n("hr", {
  6411. staticClass: "barre1"
  6412. }), t._v(" "), n("hr", {
  6413. staticClass: "barre2"
  6414. }), t._v(" "), n("hr", {
  6415. staticClass: "barre3"
  6416. }), t._v(" "), n("hr", {
  6417. staticClass: "barre4"
  6418. })])
  6419. },
  6420. staticRenderFns: []
  6421. }
  6422. }, function(t, e) {
  6423. t.exports = {
  6424. render: function() {
  6425. var t = this,
  6426. e = t.$createElement,
  6427. n = t._self._c || e;
  6428. return n("div", {
  6429. staticClass: "phone_app"
  6430. }, [n("PhoneTitle", {
  6431. attrs: {
  6432. title: t.contact.display
  6433. },
  6434. on: {
  6435. back: t.forceCancel
  6436. }
  6437. }), t._v(" "), n("div", {
  6438. staticClass: "phone_content content inputText"
  6439. }, [n("div", {
  6440. staticClass: "group select",
  6441. attrs: {
  6442. "data-type": "text",
  6443. "data-model": "display",
  6444. "data-maxlength": "64"
  6445. }
  6446. }, [n("input", {
  6447. directives: [{
  6448. name: "model",
  6449. rawName: "v-model",
  6450. value: t.contact.display,
  6451. expression: "contact.display"
  6452. }, {
  6453. name: "autofocus",
  6454. rawName: "v-autofocus"
  6455. }],
  6456. attrs: {
  6457. type: "text",
  6458. maxlength: "64"
  6459. },
  6460. domProps: {
  6461. value: t.contact.display
  6462. },
  6463. on: {
  6464. input: function(e) {
  6465. e.target.composing || t.$set(t.contact, "display", e.target.value)
  6466. }
  6467. }
  6468. }), t._v(" "), n("span", {
  6469. staticClass: "highlight"
  6470. }), t._v(" "), n("span", {
  6471. staticClass: "bar"
  6472. }), t._v(" "), n("label", [t._v(t._s(t.IntlString("APP_CONTACT_LABEL_NAME")))])]), t._v(" "), n("div", {
  6473. staticClass: "group inputText",
  6474. attrs: {
  6475. "data-type": "text",
  6476. "data-model": "number",
  6477. "data-maxlength": "10"
  6478. }
  6479. }, [n("input", {
  6480. directives: [{
  6481. name: "model",
  6482. rawName: "v-model",
  6483. value: t.contact.number,
  6484. expression: "contact.number"
  6485. }],
  6486. attrs: {
  6487. type: "text",
  6488. maxlength: "10"
  6489. },
  6490. domProps: {
  6491. value: t.contact.number
  6492. },
  6493. on: {
  6494. input: function(e) {
  6495. e.target.composing || t.$set(t.contact, "number", e.target.value)
  6496. }
  6497. }
  6498. }), t._v(" "), n("span", {
  6499. staticClass: "highlight"
  6500. }), t._v(" "), n("span", {
  6501. staticClass: "bar"
  6502. }), t._v(" "), n("label", [t._v(t._s(t.IntlString("APP_CONTACT_LABEL_NUMBER")))])]), t._v(" "), n("div", {
  6503. staticClass: "group ",
  6504. staticStyle: {
  6505. "margin-top": "56px"
  6506. },
  6507. attrs: {
  6508. "data-type": "button",
  6509. "data-action": "save"
  6510. },
  6511. on: {
  6512. click: function(e) {
  6513. return e.stopPropagation(), t.save(e)
  6514. }
  6515. }
  6516. }, [n("input", {
  6517. staticClass: "btn btn-green",
  6518. attrs: {
  6519. type: "button",
  6520. value: t.IntlString("APP_CONTACT_SAVE")
  6521. },
  6522. on: {
  6523. click: function(e) {
  6524. return e.stopPropagation(), t.save(e)
  6525. }
  6526. }
  6527. })]), t._v(" "), n("div", {
  6528. staticClass: "group",
  6529. attrs: {
  6530. "data-type": "button",
  6531. "data-action": "cancel"
  6532. },
  6533. on: {
  6534. click: function(e) {
  6535. return e.stopPropagation(), t.forceCancel(e)
  6536. }
  6537. }
  6538. }, [n("input", {
  6539. staticClass: "btn btn-orange",
  6540. attrs: {
  6541. type: "button",
  6542. value: t.IntlString("APP_CONTACT_CANCEL")
  6543. },
  6544. on: {
  6545. click: function(e) {
  6546. return e.stopPropagation(), t.forceCancel(e)
  6547. }
  6548. }
  6549. })]), t._v(" "), n("div", {
  6550. staticClass: "group",
  6551. attrs: {
  6552. "data-type": "button",
  6553. "data-action": "deleteC"
  6554. },
  6555. on: {
  6556. click: function(e) {
  6557. return e.stopPropagation(), t.deleteC(e)
  6558. }
  6559. }
  6560. }, [n("input", {
  6561. staticClass: "btn btn-red",
  6562. attrs: {
  6563. type: "button",
  6564. value: t.IntlString("APP_CONTACT_DELETE")
  6565. },
  6566. on: {
  6567. click: function(e) {
  6568. return e.stopPropagation(), t.deleteC(e)
  6569. }
  6570. }
  6571. })])])], 1)
  6572. },
  6573. staticRenderFns: []
  6574. }
  6575. }, function(t, e) {
  6576. t.exports = {
  6577. render: function() {
  6578. var t = this,
  6579. e = t.$createElement,
  6580. n = t._self._c || e;
  6581. return n("div", {
  6582. staticClass: "contact"
  6583. }, [n("list", {
  6584. attrs: {
  6585. list: t.lcontacts,
  6586. disable: t.disableList,
  6587. title: t.IntlString("APP_CONTACT_TITLE")
  6588. },
  6589. on: {
  6590. back: t.back,
  6591. select: t.onSelect,
  6592. option: t.onOption
  6593. }
  6594. })], 1)
  6595. },
  6596. staticRenderFns: []
  6597. }
  6598. }, function(t, e) {
  6599. t.exports = {
  6600. render: function() {
  6601. var t = this,
  6602. e = t.$createElement,
  6603. n = t._self._c || e;
  6604. return n("div", {
  6605. staticClass: "phone_app"
  6606. }, [n("PhoneTitle", {
  6607. attrs: {
  6608. title: t.IntlString("APP_DARKTCHAT_TITLE"),
  6609. backgroundColor: "#090f20"
  6610. },
  6611. on: {
  6612. back: t.onBack
  6613. }
  6614. }), t._v(" "), n("div", {
  6615. staticClass: "elements",
  6616. on: {
  6617. contextmenu: function(e) {
  6618. return e.preventDefault(), t.addChannelOption(e)
  6619. }
  6620. }
  6621. }, t._l(t.tchatChannels, function(e, s) {
  6622. return n("div", {
  6623. key: e.channel,
  6624. staticClass: "element",
  6625. class: {
  6626. select: s === t.currentSelect
  6627. },
  6628. on: {
  6629. click: function(n) {
  6630. return n.stopPropagation(), t.showChannel(e.channel)
  6631. }
  6632. }
  6633. }, [n("div", {
  6634. staticClass: "elem-title",
  6635. on: {
  6636. click: function(n) {
  6637. return n.stopPropagation(), t.showChannel(e.channel)
  6638. }
  6639. }
  6640. }, [n("span", {
  6641. staticClass: "diese"
  6642. }, [t._v("#")]), t._v(" " + t._s(e.channel))])])
  6643. }), 0)], 1)
  6644. },
  6645. staticRenderFns: []
  6646. }
  6647. }, function(t, e) {
  6648. t.exports = {
  6649. render: function() {
  6650. var t = this,
  6651. e = t.$createElement,
  6652. n = t._self._c || e;
  6653. return n("div", {
  6654. staticClass: "phone_title_content",
  6655. class: {
  6656. hasInfoBare: t.showInfoBare
  6657. },
  6658. style: t.style
  6659. }, [t.showInfoBare ? n("InfoBare") : t._e(), t._v(" "), n("div", {
  6660. staticClass: "phone_title",
  6661. style: {
  6662. backgroundColor: t.backgroundColor
  6663. }
  6664. }, [n("button", {
  6665. staticClass: "btn-back",
  6666. on: {
  6667. click: function(e) {
  6668. return e.stopPropagation(), t.back(e)
  6669. }
  6670. }
  6671. }, [n("i", {
  6672. staticClass: "fa fa-arrow-left",
  6673. on: {
  6674. click: function(e) {
  6675. return e.stopPropagation(), t.back(e)
  6676. }
  6677. }
  6678. })]), t._v("\n " + t._s(t.title) + "\n ")])], 1)
  6679. },
  6680. staticRenderFns: []
  6681. }
  6682. }, function(t, e) {
  6683. t.exports = {
  6684. render: function() {
  6685. var t = this,
  6686. e = t.$createElement,
  6687. n = t._self._c || e;
  6688. return n("div", {
  6689. staticClass: "contact"
  6690. }, [n("list", {
  6691. attrs: {
  6692. list: t.lcontacts,
  6693. title: t.IntlString("APP_MESSAGE_CONTACT_TITLE")
  6694. },
  6695. on: {
  6696. select: t.onSelect,
  6697. back: t.back
  6698. }
  6699. })], 1)
  6700. },
  6701. staticRenderFns: []
  6702. }
  6703. }, function(t, e) {
  6704. t.exports = {
  6705. render: function() {
  6706. var t = this,
  6707. e = t.$createElement,
  6708. n = t._self._c || e;
  6709. return n("div", {
  6710. staticClass: "screen"
  6711. }, [n("list", {
  6712. attrs: {
  6713. list: t.messagesData,
  6714. disable: t.disableList,
  6715. title: t.IntlString("APP_MESSAGE_TITLE")
  6716. },
  6717. on: {
  6718. back: t.back,
  6719. select: t.onSelect,
  6720. option: t.onOption
  6721. }
  6722. })], 1)
  6723. },
  6724. staticRenderFns: []
  6725. }
  6726. }, function(t, e) {
  6727. t.exports = {
  6728. render: function() {
  6729. var t = this,
  6730. e = t.$createElement,
  6731. n = t._self._c || e;
  6732. return n("div", {
  6733. staticClass: "phone_content"
  6734. }, [void 0 !== t.imgZoom ? n("div", {
  6735. staticClass: "img-fullscreen",
  6736. on: {
  6737. click: function(e) {
  6738. e.stopPropagation(), t.imgZoom = void 0
  6739. }
  6740. }
  6741. }, [n("img", {
  6742. attrs: {
  6743. src: t.imgZoom
  6744. }
  6745. })]) : t._e(), t._v(" "), n("div", {
  6746. ref: "elementsDiv",
  6747. staticClass: "tweets-wrapper"
  6748. }, t._l(t.tweets, function(e, s) {
  6749. return n("div", {
  6750. key: e.id,
  6751. staticClass: "tweet",
  6752. class: {
  6753. select: s === t.selectMessage
  6754. }
  6755. }, [n("div", {
  6756. staticClass: "tweet-img"
  6757. }, [n("img", {
  6758. attrs: {
  6759. src: e.authorIcon || "html/static/img/twitter/default_profile.png",
  6760. width: "48",
  6761. height: "48"
  6762. }
  6763. })]), t._v(" "), n("div", {
  6764. staticClass: "tweet-content"
  6765. }, [n("div", {
  6766. staticClass: "tweet-head"
  6767. }, [n("div", {
  6768. staticClass: "tweet-head-author"
  6769. }, [t._v(t._s(e.author))]), t._v(" "), n("div", {
  6770. staticClass: "tweet-head-time"
  6771. }, [t._v(t._s(t.formatTime(e.time)))])]), t._v(" "), n("div", {
  6772. staticClass: "tweet-message"
  6773. }, [t.isImage(e.message) ? n("img", {
  6774. staticClass: "tweet-attachement-img",
  6775. attrs: {
  6776. src: e.message
  6777. },
  6778. on: {
  6779. click: function(n) {
  6780. n.stopPropagation(), t.imgZoom = e.message
  6781. }
  6782. }
  6783. }) : [t._v(t._s(e.message))]], 2), t._v(" "), n("div", {
  6784. staticClass: "tweet-like"
  6785. }, [n("div", {
  6786. staticClass: "item svgreply",
  6787. on: {
  6788. click: function(n) {
  6789. return n.stopPropagation(), t.reply(e)
  6790. }
  6791. }
  6792. }, [n("svg", {
  6793. attrs: {
  6794. xmlns: "http://www.w3.org/2000/svg",
  6795. width: "12",
  6796. height: "12",
  6797. viewBox: "0 0 24 24"
  6798. },
  6799. on: {
  6800. click: function(n) {
  6801. return n.stopPropagation(), t.reply(e)
  6802. }
  6803. }
  6804. }, [n("path", {
  6805. attrs: {
  6806. fill: "none",
  6807. d: "M0 0h24v24H0V0z"
  6808. }
  6809. }), n("path", {
  6810. attrs: {
  6811. d: "M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"
  6812. }
  6813. })])]), t._v(" "), n("div", {
  6814. staticClass: "item"
  6815. }, [n("svg", {
  6816. attrs: {
  6817. xmlns: "http://www.w3.org/2000/svg",
  6818. width: "12",
  6819. height: "12",
  6820. viewBox: "0 0 24 24"
  6821. }
  6822. }, [n("path", {
  6823. attrs: {
  6824. d: "M0 0h24v24H0z",
  6825. fill: "none"
  6826. }
  6827. }), n("path", {
  6828. attrs: {
  6829. d: "M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"
  6830. }
  6831. })])]), t._v(" "), e.isLikes ? n("div", {
  6832. staticClass: "item svgdislike",
  6833. on: {
  6834. click: function(n) {
  6835. return n.stopPropagation(), t.twitterToogleLike({
  6836. tweetId: e.id
  6837. })
  6838. }
  6839. }
  6840. }, [n("svg", {
  6841. attrs: {
  6842. xmlns: "http://www.w3.org/2000/svg",
  6843. width: "12",
  6844. height: "12",
  6845. viewBox: "0 0 24 24"
  6846. },
  6847. on: {
  6848. click: function(n) {
  6849. return n.stopPropagation(), t.twitterToogleLike({
  6850. tweetId: e.id
  6851. })
  6852. }
  6853. }
  6854. }, [n("path", {
  6855. attrs: {
  6856. d: "M0 0h24v24H0z",
  6857. fill: "none"
  6858. }
  6859. }), n("path", {
  6860. attrs: {
  6861. d: "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
  6862. }
  6863. })]), t._v(" "), n("span", {
  6864. on: {
  6865. click: function(n) {
  6866. return n.stopPropagation(), t.twitterToogleLike({
  6867. tweetId: e.id
  6868. })
  6869. }
  6870. }
  6871. }, [t._v(t._s(e.likes))])]) : n("div", {
  6872. staticClass: "svglike",
  6873. on: {
  6874. click: function(n) {
  6875. return n.stopPropagation(), t.twitterToogleLike({
  6876. tweetId: e.id
  6877. })
  6878. }
  6879. }
  6880. }, [n("svg", {
  6881. attrs: {
  6882. xmlns: "http://www.w3.org/2000/svg",
  6883. width: "12",
  6884. height: "12",
  6885. viewBox: "0 0 24 24"
  6886. },
  6887. on: {
  6888. click: function(n) {
  6889. return n.stopPropagation(), t.twitterToogleLike({
  6890. tweetId: e.id
  6891. })
  6892. }
  6893. }
  6894. }, [n("path", {
  6895. attrs: {
  6896. d: "M0 0h24v24H0z",
  6897. fill: "none"
  6898. }
  6899. }), n("path", {
  6900. attrs: {
  6901. d: "M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"
  6902. }
  6903. })]), t._v(" "), n("span", {
  6904. on: {
  6905. click: function(n) {
  6906. return n.stopPropagation(), t.twitterToogleLike({
  6907. tweetId: e.id
  6908. })
  6909. }
  6910. }
  6911. }, [t._v(t._s(e.likes))])]), t._v(" "), n("div", {
  6912. staticClass: "item"
  6913. }, [n("svg", {
  6914. attrs: {
  6915. xmlns: "http://www.w3.org/2000/svg",
  6916. width: "12",
  6917. height: "12",
  6918. viewBox: "0 0 24 24"
  6919. }
  6920. }, [n("path", {
  6921. attrs: {
  6922. fill: "none",
  6923. d: "M0 0h24v24H0V0z"
  6924. }
  6925. }), n("path", {
  6926. attrs: {
  6927. d: "M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"
  6928. }
  6929. })])])])])])
  6930. }), 0)])
  6931. },
  6932. staticRenderFns: []
  6933. }
  6934. }, function(t, e) {
  6935. t.exports = {
  6936. render: function() {
  6937. var t = this,
  6938. e = t.$createElement,
  6939. n = t._self._c || e;
  6940. return n("div", {
  6941. staticClass: "phone_content content inputText"
  6942. }, [t.state === t.STATES.MENU ? [t.isLogin ? t._e() : [n("div", {
  6943. staticClass: "group",
  6944. attrs: {
  6945. "data-type": "button"
  6946. },
  6947. on: {
  6948. click: function(e) {
  6949. e.stopPropagation(), t.state = t.STATES.LOGIN
  6950. }
  6951. }
  6952. }, [n("input", {
  6953. staticClass: "btn btn-blue",
  6954. attrs: {
  6955. type: "button",
  6956. value: t.IntlString("APP_TWITTER_ACCOUNT_LOGIN")
  6957. },
  6958. on: {
  6959. click: function(e) {
  6960. e.stopPropagation(), t.state = t.STATES.LOGIN
  6961. }
  6962. }
  6963. })]), t._v(" "), n("div", {
  6964. staticClass: "group",
  6965. attrs: {
  6966. "data-type": "button"
  6967. },
  6968. on: {
  6969. click: function(e) {
  6970. e.stopPropagation(), t.state = t.STATES.NOTIFICATION
  6971. }
  6972. }
  6973. }, [n("input", {
  6974. staticClass: "btn btn-blue",
  6975. attrs: {
  6976. type: "button",
  6977. value: t.IntlString("APP_TWITTER_NOTIFICATION")
  6978. },
  6979. on: {
  6980. click: function(e) {
  6981. e.stopPropagation(), t.state = t.STATES.NOTIFICATION
  6982. }
  6983. }
  6984. })]), t._v(" "), n("div", {
  6985. staticClass: "group bottom",
  6986. attrs: {
  6987. "data-type": "button"
  6988. },
  6989. on: {
  6990. click: function(e) {
  6991. e.stopPropagation(), t.state = t.STATES.NEW_ACCOUNT
  6992. }
  6993. }
  6994. }, [n("input", {
  6995. staticClass: "btn btn-red",
  6996. attrs: {
  6997. type: "button",
  6998. value: t.IntlString("APP_TWITTER_ACCOUNT_NEW")
  6999. },
  7000. on: {
  7001. click: function(e) {
  7002. e.stopPropagation(), t.state = t.STATES.NEW_ACCOUNT
  7003. }
  7004. }
  7005. })])], t._v(" "), t.isLogin ? [n("img", {
  7006. staticStyle: {
  7007. "align-self": "center"
  7008. },
  7009. attrs: {
  7010. src: t.twitterAvatarUrl,
  7011. height: "128",
  7012. width: "128"
  7013. }
  7014. }), t._v(" "), n("div", {
  7015. staticClass: "group",
  7016. attrs: {
  7017. "data-type": "button"
  7018. },
  7019. on: {
  7020. click: function(e) {
  7021. e.stopPropagation(), t.state = t.STATES.ACCOUNT
  7022. }
  7023. }
  7024. }, [n("input", {
  7025. staticClass: "btn btn-blue",
  7026. attrs: {
  7027. type: "button",
  7028. value: t.IntlString("APP_TWITTER_ACCOUNT_PARAM")
  7029. },
  7030. on: {
  7031. click: function(e) {
  7032. e.stopPropagation(), t.state = t.STATES.ACCOUNT
  7033. }
  7034. }
  7035. })]), t._v(" "), n("div", {
  7036. staticClass: "group",
  7037. attrs: {
  7038. "data-type": "button"
  7039. },
  7040. on: {
  7041. click: function(e) {
  7042. e.stopPropagation(), t.state = t.STATES.NOTIFICATION
  7043. }
  7044. }
  7045. }, [n("input", {
  7046. staticClass: "btn btn-blue",
  7047. attrs: {
  7048. type: "button",
  7049. value: t.IntlString("APP_TWITTER_NOTIFICATION")
  7050. },
  7051. on: {
  7052. click: function(e) {
  7053. e.stopPropagation(), t.state = t.STATES.NOTIFICATION
  7054. }
  7055. }
  7056. })]), t._v(" "), n("div", {
  7057. staticClass: "group bottom",
  7058. attrs: {
  7059. "data-type": "button"
  7060. },
  7061. on: {
  7062. click: function(e) {
  7063. return e.stopPropagation(), t.logout(e)
  7064. }
  7065. }
  7066. }, [n("input", {
  7067. staticClass: "btn btn-red",
  7068. attrs: {
  7069. type: "button",
  7070. value: t.IntlString("APP_TWITTER_ACCOUNT_LOGOUT")
  7071. },
  7072. on: {
  7073. click: function(e) {
  7074. return e.stopPropagation(), t.logout(e)
  7075. }
  7076. }
  7077. })])] : t._e()] : t.state === t.STATES.LOGIN ? [n("div", {
  7078. staticClass: "group inputText",
  7079. attrs: {
  7080. "data-type": "text",
  7081. "data-maxlength": "64",
  7082. "data-defaultValue": t.localAccount.username
  7083. }
  7084. }, [n("input", {
  7085. attrs: {
  7086. type: "text"
  7087. },
  7088. domProps: {
  7089. value: t.localAccount.username
  7090. },
  7091. on: {
  7092. change: function(e) {
  7093. return t.setLocalAccount(e, "username")
  7094. }
  7095. }
  7096. }), t._v(" "), n("span", {
  7097. staticClass: "highlight"
  7098. }), t._v(" "), n("span", {
  7099. staticClass: "bar"
  7100. }), t._v(" "), n("label", [t._v(t._s(t.IntlString("APP_TWITTER_ACCOUNT_USERNAME")))])]), t._v(" "), n("div", {
  7101. staticClass: "group inputText",
  7102. attrs: {
  7103. "data-type": "text",
  7104. "data-model": "password",
  7105. "data-maxlength": "30"
  7106. }
  7107. }, [n("input", {
  7108. attrs: {
  7109. autocomplete: "new-password",
  7110. type: "password"
  7111. },
  7112. domProps: {
  7113. value: t.localAccount.password
  7114. },
  7115. on: {
  7116. change: function(e) {
  7117. return t.setLocalAccount(e, "password")
  7118. }
  7119. }
  7120. }), t._v(" "), n("span", {
  7121. staticClass: "highlight"
  7122. }), t._v(" "), n("span", {
  7123. staticClass: "bar"
  7124. }), t._v(" "), n("label", [t._v(t._s(t.IntlString("APP_TWITTER_ACCOUNT_PASSWORD")))])]), t._v(" "), n("div", {
  7125. staticClass: "group",
  7126. attrs: {
  7127. "data-type": "button"
  7128. },
  7129. on: {
  7130. click: function(e) {
  7131. return e.stopPropagation(), t.login(e)
  7132. }
  7133. }
  7134. }, [n("input", {
  7135. staticClass: "btn btn-blue",
  7136. attrs: {
  7137. type: "button",
  7138. value: t.IntlString("APP_TWITTER_ACCOUNT_LOGIN")
  7139. },
  7140. on: {
  7141. click: function(e) {
  7142. return e.stopPropagation(), t.login(e)
  7143. }
  7144. }
  7145. })])] : t.state === t.STATES.NOTIFICATION ? [n("div", {
  7146. staticClass: "groupCheckBoxTitle"
  7147. }, [n("label", [t._v(t._s(t.IntlString("APP_TWITTER_NOTIFICATION_WHEN")))])]), t._v(" "), n("label", {
  7148. staticClass: "group checkbox",
  7149. attrs: {
  7150. "data-type": "button"
  7151. },
  7152. on: {
  7153. click: function(e) {
  7154. return e.preventDefault(), e.stopPropagation(), t.setNotification(2)
  7155. }
  7156. }
  7157. }, [n("input", {
  7158. attrs: {
  7159. type: "checkbox"
  7160. },
  7161. domProps: {
  7162. checked: 2 === t.twitterNotification
  7163. },
  7164. on: {
  7165. click: function(e) {
  7166. return e.preventDefault(), e.stopPropagation(), t.setNotification(2)
  7167. }
  7168. }
  7169. }), t._v("\n " + t._s(t.IntlString("APP_TWITTER_NOTIFICATION_ALL")) + "\n ")]), t._v(" "), n("label", {
  7170. staticClass: "group checkbox",
  7171. attrs: {
  7172. "data-type": "button"
  7173. },
  7174. on: {
  7175. click: function(e) {
  7176. return e.preventDefault(), e.stopPropagation(), t.setNotification(1)
  7177. }
  7178. }
  7179. }, [n("input", {
  7180. attrs: {
  7181. type: "checkbox"
  7182. },
  7183. domProps: {
  7184. checked: 1 === t.twitterNotification
  7185. },
  7186. on: {
  7187. click: function(e) {
  7188. return e.preventDefault(), e.stopPropagation(), t.setNotification(1)
  7189. }
  7190. }
  7191. }), t._v("\n " + t._s(t.IntlString("APP_TWITTER_NOTIFICATION_MENTION")) + "\n ")]), t._v(" "), n("label", {
  7192. staticClass: "group checkbox",
  7193. attrs: {
  7194. "data-type": "button"
  7195. },
  7196. on: {
  7197. click: function(e) {
  7198. return e.preventDefault(), e.stopPropagation(), t.setNotification(0)
  7199. }
  7200. }
  7201. }, [n("input", {
  7202. attrs: {
  7203. type: "checkbox"
  7204. },
  7205. domProps: {
  7206. checked: 0 === t.twitterNotification
  7207. },
  7208. on: {
  7209. click: function(e) {
  7210. return e.preventDefault(), e.stopPropagation(), t.setNotification(0)
  7211. }
  7212. }
  7213. }), t._v("\n " + t._s(t.IntlString("APP_TWITTER_NOTIFICATION_NEVER")) + "\n ")]), t._v(" "), n("div", {
  7214. staticClass: "groupCheckBoxTitle"
  7215. }, [n("label", [t._v(t._s(t.IntlString("APP_TWITTER_NOTIFICATION_SOUND")))])]), t._v(" "), n("label", {
  7216. staticClass: "group checkbox",
  7217. attrs: {
  7218. "data-type": "button"
  7219. },
  7220. on: {
  7221. click: function(e) {
  7222. return e.preventDefault(), e.stopPropagation(), t.setNotificationSound(!0)
  7223. }
  7224. }
  7225. }, [n("input", {
  7226. attrs: {
  7227. type: "checkbox"
  7228. },
  7229. domProps: {
  7230. checked: t.twitterNotificationSound
  7231. },
  7232. on: {
  7233. click: function(e) {
  7234. return e.preventDefault(), e.stopPropagation(), t.setNotificationSound(!0)
  7235. }
  7236. }
  7237. }), t._v("\n " + t._s(t.IntlString("APP_TWITTER_NOTIFICATION_SOUND_YES")) + "\n ")]), t._v(" "), n("label", {
  7238. staticClass: "group checkbox",
  7239. attrs: {
  7240. "data-type": "button"
  7241. },
  7242. on: {
  7243. click: function(e) {
  7244. return e.preventDefault(), e.stopPropagation(), t.setNotificationSound(!1)
  7245. }
  7246. }
  7247. }, [n("input", {
  7248. attrs: {
  7249. type: "checkbox"
  7250. },
  7251. domProps: {
  7252. checked: !t.twitterNotificationSound
  7253. },
  7254. on: {
  7255. click: function(e) {
  7256. return e.preventDefault(), e.stopPropagation(), t.setNotificationSound(!1)
  7257. }
  7258. }
  7259. }), t._v("\n " + t._s(t.IntlString("APP_TWITTER_NOTIFICATION_SOUND_NO")) + "\n ")])] : t.state === t.STATES.ACCOUNT ? [n("div", {
  7260. staticClass: "group img",
  7261. staticStyle: {
  7262. "margin-top": "42px",
  7263. "margin-bottom": "42px"
  7264. },
  7265. attrs: {
  7266. "data-type": "button"
  7267. },
  7268. on: {
  7269. click: function(e) {
  7270. return e.stopPropagation(), t.onPressChangeAvartar(e)
  7271. }
  7272. }
  7273. }, [n("img", {
  7274. attrs: {
  7275. src: t.twitterAvatarUrl,
  7276. height: "128",
  7277. width: "128"
  7278. },
  7279. on: {
  7280. click: function(e) {
  7281. return e.stopPropagation(), t.onPressChangeAvartar(e)
  7282. }
  7283. }
  7284. }), t._v(" "), n("input", {
  7285. staticClass: "btn btn-blue",
  7286. attrs: {
  7287. type: "button",
  7288. value: t.IntlString("APP_TWITTER_ACCOUNT_AVATAR")
  7289. },
  7290. on: {
  7291. click: function(e) {
  7292. return e.stopPropagation(), t.onPressChangeAvartar(e)
  7293. }
  7294. }
  7295. })]), t._v(" "), n("div", {
  7296. staticClass: "group",
  7297. attrs: {
  7298. "data-type": "button"
  7299. },
  7300. on: {
  7301. click: function(e) {
  7302. return e.stopPropagation(), t.changePassword(e)
  7303. }
  7304. }
  7305. }, [n("input", {
  7306. staticClass: "btn btn-red",
  7307. attrs: {
  7308. type: "button",
  7309. value: t.IntlString("APP_TWITTER_ACCOUNT_CHANGE_PASSWORD")
  7310. },
  7311. on: {
  7312. click: function(e) {
  7313. return e.stopPropagation(), t.changePassword(e)
  7314. }
  7315. }
  7316. })])] : t.state === t.STATES.NEW_ACCOUNT ? [n("div", {
  7317. staticClass: "group inputText",
  7318. attrs: {
  7319. "data-type": "text",
  7320. "data-maxlength": "64",
  7321. "data-defaultValue": ""
  7322. }
  7323. }, [n("input", {
  7324. attrs: {
  7325. type: "text"
  7326. },
  7327. domProps: {
  7328. value: t.localAccount.username
  7329. },
  7330. on: {
  7331. change: function(e) {
  7332. return t.setLocalAccount(e, "username")
  7333. }
  7334. }
  7335. }), t._v(" "), n("span", {
  7336. staticClass: "highlight"
  7337. }), t._v(" "), n("span", {
  7338. staticClass: "bar"
  7339. }), t._v(" "), n("label", [t._v(t._s(t.IntlString("APP_TWITTER_NEW_ACCOUNT_USERNAME")))])]), t._v(" "), n("div", {
  7340. staticClass: "group inputText",
  7341. attrs: {
  7342. "data-type": "text",
  7343. "data-model": "password",
  7344. "data-maxlength": "30"
  7345. }
  7346. }, [n("input", {
  7347. attrs: {
  7348. autocomplete: "new-password",
  7349. type: "password"
  7350. },
  7351. domProps: {
  7352. value: t.localAccount.password
  7353. },
  7354. on: {
  7355. change: function(e) {
  7356. return t.setLocalAccount(e, "password")
  7357. }
  7358. }
  7359. }), t._v(" "), n("span", {
  7360. staticClass: "highlight"
  7361. }), t._v(" "), n("span", {
  7362. staticClass: "bar"
  7363. }), t._v(" "), n("label", [t._v(t._s(t.IntlString("APP_TWITTER_NEW_ACCOUNT_PASSWORD")))])]), t._v(" "), n("div", {
  7364. staticClass: "group inputText",
  7365. attrs: {
  7366. "data-type": "text",
  7367. "data-model": "password",
  7368. "data-maxlength": "30"
  7369. }
  7370. }, [n("input", {
  7371. attrs: {
  7372. autocomplete: "new-password",
  7373. type: "password"
  7374. },
  7375. domProps: {
  7376. value: t.localAccount.passwordConfirm
  7377. },
  7378. on: {
  7379. change: function(e) {
  7380. return t.setLocalAccount(e, "passwordConfirm")
  7381. }
  7382. }
  7383. }), t._v(" "), n("span", {
  7384. staticClass: "highlight"
  7385. }), t._v(" "), n("span", {
  7386. staticClass: "bar"
  7387. }), t._v(" "), n("label", [t._v(t._s(t.IntlString("APP_TWITTER_NEW_ACCOUNT_PASSWORD_CONFIRM")))])]), t._v(" "), n("div", {
  7388. staticClass: "group img",
  7389. staticStyle: {
  7390. "margin-top": "42px",
  7391. "margin-bottom": "42px"
  7392. },
  7393. attrs: {
  7394. "data-type": "button"
  7395. },
  7396. on: {
  7397. click: function(e) {
  7398. return e.stopPropagation(), t.setLocalAccountAvartar(e)
  7399. }
  7400. }
  7401. }, [n("img", {
  7402. attrs: {
  7403. src: t.localAccount.avatarUrl,
  7404. height: "128",
  7405. width: "128"
  7406. },
  7407. on: {
  7408. click: function(e) {
  7409. return e.stopPropagation(), t.setLocalAccountAvartar(e)
  7410. }
  7411. }
  7412. }), t._v(" "), n("input", {
  7413. staticClass: "btn btn-blue",
  7414. attrs: {
  7415. type: "button",
  7416. value: t.IntlString("APP_TWITTER_NEW_ACCOUNT_AVATAR")
  7417. },
  7418. on: {
  7419. click: function(e) {
  7420. return e.stopPropagation(), t.setLocalAccountAvartar(e)
  7421. }
  7422. }
  7423. })]), t._v(" "), n("div", {
  7424. staticClass: "group",
  7425. attrs: {
  7426. "data-type": "button"
  7427. },
  7428. on: {
  7429. click: function(e) {
  7430. return e.stopPropagation(), t.createAccount(e)
  7431. }
  7432. }
  7433. }, [n("input", {
  7434. staticClass: "btn",
  7435. class: t.validAccount ? "btn-blue" : "btn-gray",
  7436. attrs: {
  7437. type: "button",
  7438. value: t.IntlString("APP_TWIITER_ACCOUNT_CREATE")
  7439. },
  7440. on: {
  7441. click: function(e) {
  7442. return e.stopPropagation(), t.createAccount(e)
  7443. }
  7444. }
  7445. })])] : t._e()], 2)
  7446. },
  7447. staticRenderFns: []
  7448. }
  7449. }, function(t, e) {
  7450. t.exports = {
  7451. render: function() {
  7452. var t = this,
  7453. e = t.$createElement,
  7454. n = t._self._c || e;
  7455. return n("div", {
  7456. staticClass: "phone_content"
  7457. }, [void 0 !== t.imgZoom ? n("div", {
  7458. staticClass: "img-fullscreen",
  7459. on: {
  7460. click: function(e) {
  7461. e.stopPropagation(), t.imgZoom = void 0
  7462. }
  7463. }
  7464. }, [n("img", {
  7465. attrs: {
  7466. src: t.imgZoom
  7467. }
  7468. })]) : t._e(), t._v(" "), n("div", {
  7469. ref: "elementsDiv",
  7470. staticClass: "tweets-wrapper"
  7471. }, t._l(t.tweets, function(e, s) {
  7472. return n("div", {
  7473. key: e.id,
  7474. staticClass: "tweet",
  7475. class: {
  7476. select: s === t.selectMessage
  7477. }
  7478. }, [n("div", {
  7479. staticClass: "tweet-img"
  7480. }, [n("img", {
  7481. attrs: {
  7482. src: e.authorIcon || "html/static/img/twitter/default_profile.png",
  7483. width: "48",
  7484. height: "48"
  7485. }
  7486. })]), t._v(" "), n("div", {
  7487. staticClass: "tweet-content"
  7488. }, [n("div", {
  7489. staticClass: "tweet-head"
  7490. }, [n("div", {
  7491. staticClass: "tweet-head-author"
  7492. }, [t._v(t._s(e.author))]), t._v(" "), n("div", {
  7493. staticClass: "tweet-head-time"
  7494. }, [t._v(t._s(t.formatTime(e.time)))])]), t._v(" "), n("div", {
  7495. staticClass: "tweet-message"
  7496. }, [t.isImage(e.message) ? n("img", {
  7497. staticClass: "tweet-attachement-img",
  7498. attrs: {
  7499. src: e.message
  7500. },
  7501. on: {
  7502. click: function(n) {
  7503. n.stopPropagation(), t.imgZoom = e.message
  7504. }
  7505. }
  7506. }) : [t._v(t._s(e.message))]], 2), t._v(" "), n("div", {
  7507. staticClass: "tweet-like"
  7508. }, [n("div", {
  7509. staticClass: "item svgreply",
  7510. on: {
  7511. click: function(n) {
  7512. return n.stopPropagation(), t.reply(e)
  7513. }
  7514. }
  7515. }, [n("svg", {
  7516. attrs: {
  7517. xmlns: "http://www.w3.org/2000/svg",
  7518. width: "12",
  7519. height: "12",
  7520. viewBox: "0 0 24 24"
  7521. },
  7522. on: {
  7523. click: function(n) {
  7524. return n.stopPropagation(), t.reply(e)
  7525. }
  7526. }
  7527. }, [n("path", {
  7528. attrs: {
  7529. fill: "none",
  7530. d: "M0 0h24v24H0V0z"
  7531. }
  7532. }), n("path", {
  7533. attrs: {
  7534. d: "M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"
  7535. }
  7536. })])]), t._v(" "), n("div", {
  7537. staticClass: "item"
  7538. }, [n("svg", {
  7539. attrs: {
  7540. xmlns: "http://www.w3.org/2000/svg",
  7541. width: "12",
  7542. height: "12",
  7543. viewBox: "0 0 24 24"
  7544. }
  7545. }, [n("path", {
  7546. attrs: {
  7547. d: "M0 0h24v24H0z",
  7548. fill: "none"
  7549. }
  7550. }), n("path", {
  7551. attrs: {
  7552. d: "M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"
  7553. }
  7554. })])]), t._v(" "), e.isLikes ? n("div", {
  7555. staticClass: "item svgdislike",
  7556. on: {
  7557. click: function(n) {
  7558. return n.stopPropagation(), t.twitterToogleLike({
  7559. tweetId: e.id
  7560. })
  7561. }
  7562. }
  7563. }, [n("svg", {
  7564. attrs: {
  7565. xmlns: "http://www.w3.org/2000/svg",
  7566. width: "12",
  7567. height: "12",
  7568. viewBox: "0 0 24 24"
  7569. },
  7570. on: {
  7571. click: function(n) {
  7572. return n.stopPropagation(), t.twitterToogleLike({
  7573. tweetId: e.id
  7574. })
  7575. }
  7576. }
  7577. }, [n("path", {
  7578. attrs: {
  7579. d: "M0 0h24v24H0z",
  7580. fill: "none"
  7581. }
  7582. }), n("path", {
  7583. attrs: {
  7584. d: "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
  7585. }
  7586. })]), t._v(" "), n("span", {
  7587. on: {
  7588. click: function(n) {
  7589. return n.stopPropagation(), t.twitterToogleLike({
  7590. tweetId: e.id
  7591. })
  7592. }
  7593. }
  7594. }, [t._v(t._s(e.likes))])]) : n("div", {
  7595. staticClass: "svglike",
  7596. on: {
  7597. click: function(n) {
  7598. return n.stopPropagation(), t.twitterToogleLike({
  7599. tweetId: e.id
  7600. })
  7601. }
  7602. }
  7603. }, [n("svg", {
  7604. attrs: {
  7605. xmlns: "http://www.w3.org/2000/svg",
  7606. width: "12",
  7607. height: "12",
  7608. viewBox: "0 0 24 24"
  7609. },
  7610. on: {
  7611. click: function(n) {
  7612. return n.stopPropagation(), t.twitterToogleLike({
  7613. tweetId: e.id
  7614. })
  7615. }
  7616. }
  7617. }, [n("path", {
  7618. attrs: {
  7619. d: "M0 0h24v24H0z",
  7620. fill: "none"
  7621. }
  7622. }), n("path", {
  7623. attrs: {
  7624. d: "M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"
  7625. }
  7626. })]), t._v(" "), n("span", {
  7627. on: {
  7628. click: function(n) {
  7629. return n.stopPropagation(), t.twitterToogleLike({
  7630. tweetId: e.id
  7631. })
  7632. }
  7633. }
  7634. }, [t._v(t._s(e.likes))])]), t._v(" "), n("div", {
  7635. staticClass: "item"
  7636. }, [n("svg", {
  7637. attrs: {
  7638. xmlns: "http://www.w3.org/2000/svg",
  7639. width: "12",
  7640. height: "12",
  7641. viewBox: "0 0 24 24"
  7642. }
  7643. }, [n("path", {
  7644. attrs: {
  7645. fill: "none",
  7646. d: "M0 0h24v24H0V0z"
  7647. }
  7648. }), n("path", {
  7649. attrs: {
  7650. d: "M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"
  7651. }
  7652. })])])])])])
  7653. }), 0)])
  7654. },
  7655. staticRenderFns: []
  7656. }
  7657. }, function(t, e) {
  7658. t.exports = {
  7659. render: function() {
  7660. var t = this,
  7661. e = t.$createElement,
  7662. n = t._self._c || e;
  7663. return n("div", {
  7664. staticClass: "phone_app"
  7665. }, [n("PhoneTitle", {
  7666. attrs: {
  7667. title: t.IntlString("APP_BOURSE_TITLE")
  7668. },
  7669. on: {
  7670. back: t.onBackspace
  7671. }
  7672. }), t._v(" "), n("div", {
  7673. staticClass: "elements"
  7674. }, t._l(t.bourseInfo, function(e, s) {
  7675. return n("div", {
  7676. key: s,
  7677. staticClass: "element",
  7678. class: {
  7679. select: s === t.currentSelect
  7680. }
  7681. }, [n("div", {
  7682. staticClass: "elem-evo"
  7683. }, [n("i", {
  7684. staticClass: "fa",
  7685. class: t.classInfo(e)
  7686. })]), t._v(" "), n("div", {
  7687. staticClass: "elem-libelle"
  7688. }, [t._v(t._s(e.libelle))]), t._v(" "), n("div", {
  7689. staticClass: "elem-price",
  7690. style: {
  7691. color: t.colorBourse(e)
  7692. }
  7693. }, [t._v(t._s(e.price) + " $ ")]), t._v(" "), n("div", {
  7694. staticClass: "elem-difference",
  7695. style: {
  7696. color: t.colorBourse(e)
  7697. }
  7698. }, [e.difference > 0 ? n("span", [t._v("+")]) : t._e(), t._v(t._s(e.difference))])])
  7699. }), 0)], 1)
  7700. },
  7701. staticRenderFns: []
  7702. }
  7703. }, function(t, e) {
  7704. t.exports = {
  7705. render: function() {
  7706. var t = this,
  7707. e = t.$createElement;
  7708. t._self._c;
  7709. return t._m(0)
  7710. },
  7711. staticRenderFns: [function() {
  7712. var t = this,
  7713. e = t.$createElement,
  7714. n = t._self._c || e;
  7715. return n("div", {
  7716. staticClass: "splash"
  7717. }, [n("img", {
  7718. attrs: {
  7719. src: "/html/static/img/app_tchat/splashtchat.png",
  7720. alt: ""
  7721. }
  7722. })])
  7723. }]
  7724. }
  7725. }, function(t, e) {
  7726. t.exports = {
  7727. render: function() {
  7728. var t = this,
  7729. e = t.$createElement,
  7730. n = t._self._c || e;
  7731. return n("div", {
  7732. staticClass: "notifications"
  7733. }, t._l(t.list, function(e) {
  7734. return n("div", {
  7735. key: e.id,
  7736. staticClass: "notification",
  7737. style: t.style(e)
  7738. }, [n("div", {
  7739. staticClass: "title"
  7740. }, [e.icon ? n("i", {
  7741. staticClass: "fa",
  7742. class: "fa-" + e.icon
  7743. }) : t._e(), t._v(" " + t._s(e.title) + "\n ")]), t._v(" "), n("div", {
  7744. staticClass: "message"
  7745. }, [t._v(t._s(e.message))])])
  7746. }), 0)
  7747. },
  7748. staticRenderFns: []
  7749. }
  7750. }, function(t, e) {
  7751. t.exports = {
  7752. render: function() {
  7753. var t = this,
  7754. e = t.$createElement,
  7755. n = t._self._c || e;
  7756. return n("div", {
  7757. staticClass: "phone_app"
  7758. }, [n("PhoneTitle", {
  7759. attrs: {
  7760. title: "9 GAG (" + t.currentSelectPost + ")",
  7761. backgroundColor: "#000"
  7762. },
  7763. on: {
  7764. back: t.quit
  7765. }
  7766. }), t._v(" "), n("div", {
  7767. staticClass: "phone_content",
  7768. on: {
  7769. click: t.onClick
  7770. }
  7771. }, [void 0 !== t.currentPost ? n("div", {
  7772. staticClass: "post"
  7773. }, [n("h1", {
  7774. staticClass: "post-title"
  7775. }, [t._v(t._s(t.currentPost.title))]), t._v(" "), n("div", {
  7776. staticClass: "post-content"
  7777. }, [void 0 !== t.currentPost.images.image460svwm ? n("video", {
  7778. ref: "video",
  7779. staticClass: "post-video",
  7780. attrs: {
  7781. autoplay: "",
  7782. loop: "",
  7783. src: t.currentPost.images.image460svwm.url
  7784. }
  7785. }) : n("img", {
  7786. staticClass: "post-image",
  7787. attrs: {
  7788. src: t.currentPost.images.image460.url,
  7789. alt: ""
  7790. }
  7791. })])]) : n("div", {
  7792. staticClass: "loading"
  7793. }, [n("div", [t._v("CHARGEMENT")])])])], 1)
  7794. },
  7795. staticRenderFns: []
  7796. }
  7797. }, function(t, e) {
  7798. t.exports = {
  7799. render: function() {
  7800. var t = this,
  7801. e = t.$createElement,
  7802. n = t._self._c || e;
  7803. return n("transition", {
  7804. attrs: {
  7805. name: "modal"
  7806. }
  7807. }, [n("div", {
  7808. staticClass: "modal-mask",
  7809. on: {
  7810. click: function(e) {
  7811. return e.stopPropagation(), t.cancel(e)
  7812. }
  7813. }
  7814. }, [n("div", {
  7815. staticClass: "modal-container"
  7816. }, t._l(t.choix, function(e, s) {
  7817. return n("div", {
  7818. key: s,
  7819. staticClass: "modal-choix",
  7820. class: {
  7821. select: s === t.currentSelect
  7822. },
  7823. style: {
  7824. color: e.color
  7825. },
  7826. on: {
  7827. click: function(n) {
  7828. return n.stopPropagation(), t.selectItem(e)
  7829. }
  7830. }
  7831. }, [n("i", {
  7832. staticClass: "fas",
  7833. class: e.icons,
  7834. on: {
  7835. click: function(n) {
  7836. return n.stopPropagation(), t.selectItem(e)
  7837. }
  7838. }
  7839. }), t._v(t._s(e.title) + "\r\n ")])
  7840. }), 0)])])
  7841. },
  7842. staticRenderFns: []
  7843. }
  7844. }, function(t, e) {
  7845. t.exports = {
  7846. render: function() {
  7847. var t = this,
  7848. e = t.$createElement,
  7849. n = t._self._c || e;
  7850. return n("div", {
  7851. staticClass: "phone_content"
  7852. }, [n("div", {
  7853. staticClass: "tweet_write"
  7854. }, [n("textarea", {
  7855. directives: [{
  7856. name: "model",
  7857. rawName: "v-model.trim",
  7858. value: t.message,
  7859. expression: "message",
  7860. modifiers: {
  7861. trim: !0
  7862. }
  7863. }, {
  7864. name: "autofocus",
  7865. rawName: "v-autofocus"
  7866. }],
  7867. staticClass: "textarea-input",
  7868. attrs: {
  7869. placeholder: t.IntlString("APP_TWITTER_PLACEHOLDER_MESSAGE")
  7870. },
  7871. domProps: {
  7872. value: t.message
  7873. },
  7874. on: {
  7875. input: function(e) {
  7876. e.target.composing || (t.message = e.target.value.trim())
  7877. },
  7878. blur: function(e) {
  7879. return t.$forceUpdate()
  7880. }
  7881. }
  7882. }), t._v(" "), n("span", {
  7883. staticClass: "tweet_send",
  7884. on: {
  7885. click: t.tweeter
  7886. }
  7887. }, [t._v(t._s(t.IntlString("APP_TWITTER_BUTTON_ACTION_TWEETER")))])])])
  7888. },
  7889. staticRenderFns: []
  7890. }
  7891. }, function(t, e) {
  7892. t.exports = {
  7893. render: function() {
  7894. var t = this,
  7895. e = t.$createElement,
  7896. n = t._self._c || e;
  7897. return n("div", {
  7898. staticStyle: {
  7899. height: "100vh",
  7900. width: "100vw"
  7901. },
  7902. on: {
  7903. contextmenu: t.closePhone
  7904. }
  7905. }, [n("notification"), t._v(" "), !0 === t.show && !1 === t.tempoHide ? n("div", {
  7906. style: {
  7907. zoom: t.zoom
  7908. },
  7909. on: {
  7910. contextmenu: function(t) {
  7911. t.stopPropagation()
  7912. }
  7913. }
  7914. }, [n("div", {
  7915. staticClass: "phone_wrapper"
  7916. }, [n("div", {
  7917. staticClass: "phone_coque",
  7918. style: {
  7919. backgroundImage: "url(/html/static/img/coque/" + t.coque.value + ")"
  7920. }
  7921. }), t._v(" "), n("div", {
  7922. staticClass: "phone_screen",
  7923. attrs: {
  7924. id: "app"
  7925. }
  7926. }, [n("router-view")], 1)])]) : t._e()], 1)
  7927. },
  7928. staticRenderFns: []
  7929. }
  7930. }, function(t, e) {
  7931. t.exports = {
  7932. render: function() {
  7933. var t = this,
  7934. e = t.$createElement,
  7935. n = t._self._c || e;
  7936. return n("div", {
  7937. staticClass: "screen",
  7938. on: {
  7939. click: t.onBackspace
  7940. }
  7941. }, [n("div", {
  7942. staticClass: "elements"
  7943. }, [n("img", {
  7944. staticClass: "logo_maze",
  7945. attrs: {
  7946. src: "/html/static/img/app_bank/logo_mazebank.jpg"
  7947. }
  7948. }), t._v(" "), n("div", {
  7949. staticClass: "hr"
  7950. }), t._v(" "), n("div", {
  7951. staticClass: "element"
  7952. }, [n("div", {
  7953. staticClass: "element-content"
  7954. }, [n("span", [t._v("$ " + t._s(t.bankAmontFormat))])])])])])
  7955. },
  7956. staticRenderFns: []
  7957. }
  7958. }, function(t, e) {
  7959. t.exports = {
  7960. render: function() {
  7961. var t = this,
  7962. e = t.$createElement,
  7963. n = t._self._c || e;
  7964. return n("div", [n("list", {
  7965. attrs: {
  7966. list: t.contactsList,
  7967. showHeader: !1
  7968. },
  7969. on: {
  7970. select: t.onSelect
  7971. }
  7972. })], 1)
  7973. },
  7974. staticRenderFns: []
  7975. }
  7976. }, function(t, e) {
  7977. t.exports = {
  7978. render: function() {
  7979. var t = this,
  7980. e = t.$createElement,
  7981. n = t._self._c || e;
  7982. return n("div", {
  7983. staticClass: "phone_app"
  7984. }, [n("PhoneTitle", {
  7985. attrs: {
  7986. title: t.currentScreen.title,
  7987. backgroundColor: "#1da1f2"
  7988. },
  7989. on: {
  7990. back: t.quit
  7991. }
  7992. }), t._v(" "), n("div", {
  7993. staticClass: "phone_content"
  7994. }, [n(t.currentScreen.component, {
  7995. tag: "component"
  7996. })], 1), t._v(" "), n("div", {
  7997. staticClass: "twitter_menu"
  7998. }, t._l(t.screen, function(e, s) {
  7999. return n("div", {
  8000. key: s,
  8001. staticClass: "twitter_menu-item",
  8002. class: {
  8003. select: s === t.currentScreenIndex
  8004. },
  8005. on: {
  8006. click: function(e) {
  8007. return e.stopPropagation(), t.openMenu(s)
  8008. }
  8009. }
  8010. }, [n("i", {
  8011. staticClass: "fa",
  8012. class: e.icon,
  8013. on: {
  8014. click: function(e) {
  8015. return e.stopPropagation(), t.openMenu(s)
  8016. }
  8017. }
  8018. })])
  8019. }), 0)], 1)
  8020. },
  8021. staticRenderFns: []
  8022. }
  8023. }, function(t, e) {
  8024. t.exports = {
  8025. render: function() {
  8026. var t = this,
  8027. e = t.$createElement,
  8028. n = t._self._c || e;
  8029. return n("div", {
  8030. staticClass: "phone_app"
  8031. }, [n("div", {
  8032. staticClass: "backblur",
  8033. style: {
  8034. background: "url(" + t.backgroundURL + ")"
  8035. }
  8036. }), t._v(" "), n("InfoBare"), t._v(" "), n("div", {
  8037. staticClass: "num"
  8038. }, [t._v(t._s(t.appelsDisplayNumber))]), t._v(" "), n("div", {
  8039. staticClass: "contactName"
  8040. }, [t._v(t._s(t.appelsDisplayName))]), t._v(" "), n("div", {
  8041. staticClass: "time"
  8042. }), t._v(" "), n("div", {
  8043. staticClass: "time-display"
  8044. }, [t._v(t._s(t.timeDisplay))]), t._v(" "), t.useMouse && 0 === t.status ? n("div", {
  8045. staticClass: "ignore",
  8046. on: {
  8047. click: function(e) {
  8048. return e.stopPropagation(), t.onIgnoreCall(e)
  8049. }
  8050. }
  8051. }, [t._v("\n " + t._s(t.IntlString("APP_PHONE_CALL_IGNORE")) + "\n ")]) : t._e(), t._v(" "), n("div", {
  8052. staticClass: "actionbox"
  8053. }, [n("div", {
  8054. staticClass: "action raccrocher",
  8055. class: {
  8056. disable: 0 === t.status && 0 !== t.select
  8057. },
  8058. on: {
  8059. click: function(e) {
  8060. return e.stopPropagation(), t.raccrocher(e)
  8061. }
  8062. }
  8063. }, [n("svg", {
  8064. attrs: {
  8065. viewBox: "0 0 24 24"
  8066. },
  8067. on: {
  8068. click: function(e) {
  8069. return e.stopPropagation(), t.raccrocher(e)
  8070. }
  8071. }
  8072. }, [n("g", {
  8073. attrs: {
  8074. transform: "rotate(135, 12, 12)"
  8075. }
  8076. }, [n("path", {
  8077. attrs: {
  8078. d: "M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z"
  8079. }
  8080. })])])]), t._v(" "), 0 === t.status ? n("div", {
  8081. staticClass: "action deccrocher",
  8082. class: {
  8083. disable: 0 === t.status && 1 !== t.select
  8084. },
  8085. on: {
  8086. click: function(e) {
  8087. return e.stopPropagation(), t.deccrocher(e)
  8088. }
  8089. }
  8090. }, [n("svg", {
  8091. attrs: {
  8092. viewBox: "0 0 24 24"
  8093. },
  8094. on: {
  8095. click: function(e) {
  8096. return e.stopPropagation(), t.deccrocher(e)
  8097. }
  8098. }
  8099. }, [n("g", {
  8100. attrs: {
  8101. transform: "rotate(0, 12, 12)"
  8102. }
  8103. }, [n("path", {
  8104. attrs: {
  8105. d: "M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z"
  8106. }
  8107. })])])]) : t._e()])], 1)
  8108. },
  8109. staticRenderFns: []
  8110. }
  8111. }, function(t, e) {
  8112. t.exports = {
  8113. render: function() {
  8114. var t = this,
  8115. e = t.$createElement,
  8116. n = t._self._c || e;
  8117. return n("div", {
  8118. staticClass: "phone_app messages"
  8119. }, [n("PhoneTitle", {
  8120. attrs: {
  8121. title: t.displayContact,
  8122. backgroundColor: t.color
  8123. },
  8124. on: {
  8125. back: t.quit
  8126. }
  8127. }), t._v(" "), void 0 !== t.imgZoom ? n("div", {
  8128. staticClass: "img-fullscreen",
  8129. on: {
  8130. click: function(e) {
  8131. e.stopPropagation(), t.imgZoom = void 0
  8132. }
  8133. }
  8134. }, [n("img", {
  8135. attrs: {
  8136. src: t.imgZoom
  8137. }
  8138. })]) : t._e(), t._v(" "), n("textarea", {
  8139. ref: "copyTextarea",
  8140. staticClass: "copyTextarea"
  8141. }), t._v(" "), n("div", {
  8142. attrs: {
  8143. id: "sms_list"
  8144. },
  8145. on: {
  8146. contextmenu: function(e) {
  8147. return e.preventDefault(), t.showOptions(e)
  8148. }
  8149. }
  8150. }, t._l(t.messagesList, function(e, s) {
  8151. return n("div", {
  8152. key: e.id,
  8153. staticClass: "sms",
  8154. class: {
  8155. select: s === t.selectMessage
  8156. },
  8157. on: {
  8158. click: function(n) {
  8159. return n.stopPropagation(), t.onActionMessage(e)
  8160. }
  8161. }
  8162. }, [n("span", {
  8163. staticClass: "sms_message sms_me",
  8164. class: {
  8165. sms_other: 0 === e.owner
  8166. },
  8167. style: t.colorSmsOwner[e.owner],
  8168. on: {
  8169. click: function(n) {
  8170. return n.stopPropagation(), t.onActionMessage(e)
  8171. }
  8172. }
  8173. }, [t.isSMSImage(e) ? n("img", {
  8174. staticClass: "sms-img",
  8175. attrs: {
  8176. src: e.message
  8177. },
  8178. on: {
  8179. click: function(n) {
  8180. return n.stopPropagation(), t.onActionMessage(e)
  8181. }
  8182. }
  8183. }) : n("span", {
  8184. on: {
  8185. click: function(n) {
  8186. return n.stopPropagation(), t.onActionMessage(e)
  8187. }
  8188. }
  8189. }, [t._v(t._s(e.message))]), t._v(" "), n("span", {
  8190. on: {
  8191. click: function(n) {
  8192. return n.stopPropagation(), t.onActionMessage(e)
  8193. }
  8194. }
  8195. }, [n("timeago", {
  8196. staticClass: "sms_time",
  8197. style: t.colorSmsOwner[e.owner],
  8198. attrs: {
  8199. since: e.time,
  8200. "auto-update": 20
  8201. }
  8202. })], 1)])])
  8203. }), 0), t._v(" "), n("div", {
  8204. attrs: {
  8205. id: "sms_write"
  8206. },
  8207. on: {
  8208. contextmenu: function(e) {
  8209. return e.preventDefault(), t.showOptions(e)
  8210. }
  8211. }
  8212. }, [n("input", {
  8213. directives: [{
  8214. name: "model",
  8215. rawName: "v-model",
  8216. value: t.message,
  8217. expression: "message"
  8218. }, {
  8219. name: "autofocus",
  8220. rawName: "v-autofocus"
  8221. }],
  8222. attrs: {
  8223. type: "text",
  8224. placeholder: t.IntlString("APP_MESSAGE_PLACEHOLDER_ENTER_MESSAGE")
  8225. },
  8226. domProps: {
  8227. value: t.message
  8228. },
  8229. on: {
  8230. keyup: function(e) {
  8231. return !e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : (e.preventDefault(), t.send(e))
  8232. },
  8233. input: function(e) {
  8234. e.target.composing || (t.message = e.target.value)
  8235. }
  8236. }
  8237. }), t._v(" "), n("div", {
  8238. staticClass: "sms_send",
  8239. on: {
  8240. click: function(e) {
  8241. return e.stopPropagation(), t.send(e)
  8242. }
  8243. }
  8244. }, [n("svg", {
  8245. attrs: {
  8246. height: "24",
  8247. viewBox: "0 0 24 24",
  8248. width: "24"
  8249. },
  8250. on: {
  8251. click: function(e) {
  8252. return e.stopPropagation(), t.send(e)
  8253. }
  8254. }
  8255. }, [n("path", {
  8256. attrs: {
  8257. d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"
  8258. }
  8259. }), t._v(" "), n("path", {
  8260. attrs: {
  8261. d: "M0 0h24v24H0z",
  8262. fill: "none"
  8263. }
  8264. })])])])], 1)
  8265. },
  8266. staticRenderFns: []
  8267. }
  8268. }, function(t, e) {
  8269. t.exports = {
  8270. render: function() {
  8271. var t = this,
  8272. e = t.$createElement,
  8273. n = t._self._c || e;
  8274. return n("div", {
  8275. staticClass: "phone_app"
  8276. }, [n("PhoneTitle", {
  8277. attrs: {
  8278. title: t.IntlString("APP_CONFIG_TITLE")
  8279. },
  8280. on: {
  8281. back: t.onBackspace
  8282. }
  8283. }), t._v(" "), n("div", {
  8284. staticClass: "phone_content elements"
  8285. }, t._l(t.paramList, function(e, s) {
  8286. return n("div", {
  8287. key: s,
  8288. staticClass: "element",
  8289. class: {
  8290. select: s === t.currentSelect
  8291. },
  8292. on: {
  8293. click: function(e) {
  8294. return e.stopPropagation(), t.onPressItem(s)
  8295. }
  8296. }
  8297. }, [n("i", {
  8298. staticClass: "fa",
  8299. class: e.icons,
  8300. style: {
  8301. color: e.color
  8302. },
  8303. on: {
  8304. click: function(e) {
  8305. return e.stopPropagation(), t.onPressItem(s)
  8306. }
  8307. }
  8308. }), t._v(" "), n("div", {
  8309. staticClass: "element-content",
  8310. on: {
  8311. click: function(e) {
  8312. return e.stopPropagation(), t.onPressItem(s)
  8313. }
  8314. }
  8315. }, [n("span", {
  8316. staticClass: "element-title",
  8317. on: {
  8318. click: function(e) {
  8319. return e.stopPropagation(), t.onPressItem(s)
  8320. }
  8321. }
  8322. }, [t._v(t._s(e.title))]), t._v(" "), e.value ? n("span", {
  8323. staticClass: "element-value",
  8324. on: {
  8325. click: function(e) {
  8326. return e.stopPropagation(), t.onPressItem(s)
  8327. }
  8328. }
  8329. }, [t._v(t._s(e.value))]) : t._e()])])
  8330. }), 0)], 1)
  8331. },
  8332. staticRenderFns: []
  8333. }
  8334. }, function(t, e) {
  8335. t.exports = {
  8336. render: function() {
  8337. var t = this,
  8338. e = t.$createElement,
  8339. n = t._self._c || e;
  8340. return n("div", {
  8341. staticClass: "phone_app"
  8342. }, [t.showHeader ? n("PhoneTitle", {
  8343. attrs: {
  8344. title: t.title,
  8345. showInfoBare: t.showInfoBare
  8346. },
  8347. on: {
  8348. back: t.back
  8349. }
  8350. }) : t._e(), t._v(" "), n("div", {
  8351. staticClass: "phone_content elements"
  8352. }, t._l(t.list, function(e, s) {
  8353. return n("div", {
  8354. key: e[t.keyDispay],
  8355. staticClass: "element",
  8356. class: {
  8357. select: s === t.currentSelect
  8358. },
  8359. on: {
  8360. click: function(n) {
  8361. return n.stopPropagation(), t.selectItem(e)
  8362. },
  8363. contextmenu: function(n) {
  8364. return n.preventDefault(), t.optionItem(e)
  8365. }
  8366. }
  8367. }, [n("div", {
  8368. staticClass: "elem-pic",
  8369. style: t.stylePuce(e),
  8370. on: {
  8371. click: function(n) {
  8372. return n.stopPropagation(), t.selectItem(e)
  8373. }
  8374. }
  8375. }, [t._v("\n " + t._s(e.letter || e[t.keyDispay][0]) + "\n ")]), t._v(" "), void 0 !== e.puce && 0 !== e.puce ? n("div", {
  8376. staticClass: "elem-puce",
  8377. on: {
  8378. click: function(n) {
  8379. return n.stopPropagation(), t.selectItem(e)
  8380. }
  8381. }
  8382. }, [t._v(t._s(e.puce))]) : t._e(), t._v(" "), void 0 === e.keyDesc || "" === e.keyDesc ? n("div", {
  8383. staticClass: "elem-title",
  8384. on: {
  8385. click: function(n) {
  8386. return n.stopPropagation(), t.selectItem(e)
  8387. }
  8388. }
  8389. }, [t._v(t._s(e[t.keyDispay]))]) : t._e(), t._v(" "), void 0 !== e.keyDesc && "" !== e.keyDesc ? n("div", {
  8390. staticClass: "elem-title-has-desc",
  8391. on: {
  8392. click: function(n) {
  8393. return n.stopPropagation(), t.selectItem(e)
  8394. }
  8395. }
  8396. }, [t._v(t._s(e[t.keyDispay]))]) : t._e(), t._v(" "), void 0 !== e.keyDesc && "" !== e.keyDesc ? n("div", {
  8397. staticClass: "elem-description",
  8398. on: {
  8399. click: function(n) {
  8400. return n.stopPropagation(), t.selectItem(e)
  8401. }
  8402. }
  8403. }, [t._v(t._s(e.keyDesc))]) : t._e()])
  8404. }), 0)], 1)
  8405. },
  8406. staticRenderFns: []
  8407. }
  8408. }, function(t, e) {
  8409. t.exports = {
  8410. render: function() {
  8411. var t = this,
  8412. e = t.$createElement;
  8413. return (t._self._c || e)("span", [t._v(t._s(t.time))])
  8414. },
  8415. staticRenderFns: []
  8416. }
  8417. }, , , function(t, e) {
  8418. t.exports = {
  8419. 100: "๐Ÿ’ฏ",
  8420. 1234: "๐Ÿ”ข",
  8421. grinning: "๐Ÿ˜€",
  8422. grimacing: "๐Ÿ˜ฌ",
  8423. grin: "๐Ÿ˜",
  8424. joy: "๐Ÿ˜‚",
  8425. rofl: "๐Ÿคฃ",
  8426. partying: "๐Ÿฅณ",
  8427. smiley: "๐Ÿ˜ƒ",
  8428. smile: "๐Ÿ˜„",
  8429. sweat_smile: "๐Ÿ˜…",
  8430. laughing: "๐Ÿ˜†",
  8431. innocent: "๐Ÿ˜‡",
  8432. wink: "๐Ÿ˜‰",
  8433. blush: "๐Ÿ˜Š",
  8434. slightly_smiling_face: "๐Ÿ™‚",
  8435. upside_down_face: "๐Ÿ™ƒ",
  8436. relaxed: "โ˜บ๏ธ",
  8437. yum: "๐Ÿ˜‹",
  8438. relieved: "๐Ÿ˜Œ",
  8439. heart_eyes: "๐Ÿ˜",
  8440. smiling_face_with_three_hearts: "๐Ÿฅฐ",
  8441. kissing_heart: "๐Ÿ˜˜",
  8442. kissing: "๐Ÿ˜—",
  8443. kissing_smiling_eyes: "๐Ÿ˜™",
  8444. kissing_closed_eyes: "๐Ÿ˜š",
  8445. stuck_out_tongue_winking_eye: "๐Ÿ˜œ",
  8446. zany: "๐Ÿคช",
  8447. raised_eyebrow: "๐Ÿคจ",
  8448. monocle: "๐Ÿง",
  8449. stuck_out_tongue_closed_eyes: "๐Ÿ˜",
  8450. stuck_out_tongue: "๐Ÿ˜›",
  8451. money_mouth_face: "๐Ÿค‘",
  8452. nerd_face: "๐Ÿค“",
  8453. sunglasses: "๐Ÿ˜Ž",
  8454. star_struck: "๐Ÿคฉ",
  8455. clown_face: "๐Ÿคก",
  8456. cowboy_hat_face: "๐Ÿค ",
  8457. hugs: "๐Ÿค—",
  8458. smirk: "๐Ÿ˜",
  8459. no_mouth: "๐Ÿ˜ถ",
  8460. neutral_face: "๐Ÿ˜",
  8461. expressionless: "๐Ÿ˜‘",
  8462. unamused: "๐Ÿ˜’",
  8463. roll_eyes: "๐Ÿ™„",
  8464. thinking: "๐Ÿค”",
  8465. lying_face: "๐Ÿคฅ",
  8466. hand_over_mouth: "๐Ÿคญ",
  8467. shushing: "๐Ÿคซ",
  8468. symbols_over_mouth: "๐Ÿคฌ",
  8469. exploding_head: "๐Ÿคฏ",
  8470. flushed: "๐Ÿ˜ณ",
  8471. disappointed: "๐Ÿ˜ž",
  8472. worried: "๐Ÿ˜Ÿ",
  8473. angry: "๐Ÿ˜ ",
  8474. rage: "๐Ÿ˜ก",
  8475. pensive: "๐Ÿ˜”",
  8476. confused: "๐Ÿ˜•",
  8477. slightly_frowning_face: "๐Ÿ™",
  8478. frowning_face: "โ˜น",
  8479. persevere: "๐Ÿ˜ฃ",
  8480. confounded: "๐Ÿ˜–",
  8481. tired_face: "๐Ÿ˜ซ",
  8482. weary: "๐Ÿ˜ฉ",
  8483. pleading: "๐Ÿฅบ",
  8484. triumph: "๐Ÿ˜ค",
  8485. open_mouth: "๐Ÿ˜ฎ",
  8486. scream: "๐Ÿ˜ฑ",
  8487. fearful: "๐Ÿ˜จ",
  8488. cold_sweat: "๐Ÿ˜ฐ",
  8489. hushed: "๐Ÿ˜ฏ",
  8490. frowning: "๐Ÿ˜ฆ",
  8491. anguished: "๐Ÿ˜ง",
  8492. cry: "๐Ÿ˜ข",
  8493. disappointed_relieved: "๐Ÿ˜ฅ",
  8494. drooling_face: "๐Ÿคค",
  8495. sleepy: "๐Ÿ˜ช",
  8496. sweat: "๐Ÿ˜“",
  8497. hot: "๐Ÿฅต",
  8498. cold: "๐Ÿฅถ",
  8499. sob: "๐Ÿ˜ญ",
  8500. dizzy_face: "๐Ÿ˜ต",
  8501. astonished: "๐Ÿ˜ฒ",
  8502. zipper_mouth_face: "๐Ÿค",
  8503. nauseated_face: "๐Ÿคข",
  8504. sneezing_face: "๐Ÿคง",
  8505. vomiting: "๐Ÿคฎ",
  8506. mask: "๐Ÿ˜ท",
  8507. face_with_thermometer: "๐Ÿค’",
  8508. face_with_head_bandage: "๐Ÿค•",
  8509. woozy: "๐Ÿฅด",
  8510. sleeping: "๐Ÿ˜ด",
  8511. zzz: "๐Ÿ’ค",
  8512. poop: "๐Ÿ’ฉ",
  8513. smiling_imp: "๐Ÿ˜ˆ",
  8514. imp: "๐Ÿ‘ฟ",
  8515. japanese_ogre: "๐Ÿ‘น",
  8516. japanese_goblin: "๐Ÿ‘บ",
  8517. skull: "๐Ÿ’€",
  8518. ghost: "๐Ÿ‘ป",
  8519. alien: "๐Ÿ‘ฝ",
  8520. robot: "๐Ÿค–",
  8521. smiley_cat: "๐Ÿ˜บ",
  8522. smile_cat: "๐Ÿ˜ธ",
  8523. joy_cat: "๐Ÿ˜น",
  8524. heart_eyes_cat: "๐Ÿ˜ป",
  8525. smirk_cat: "๐Ÿ˜ผ",
  8526. kissing_cat: "๐Ÿ˜ฝ",
  8527. scream_cat: "๐Ÿ™€",
  8528. crying_cat_face: "๐Ÿ˜ฟ",
  8529. pouting_cat: "๐Ÿ˜พ",
  8530. palms_up: "๐Ÿคฒ",
  8531. raised_hands: "๐Ÿ™Œ",
  8532. clap: "๐Ÿ‘",
  8533. wave: "๐Ÿ‘‹",
  8534. call_me_hand: "๐Ÿค™",
  8535. "\\+1": "๐Ÿ‘",
  8536. "-1": "๐Ÿ‘Ž",
  8537. facepunch: "๐Ÿ‘Š",
  8538. fist: "โœŠ",
  8539. fist_left: "๐Ÿค›",
  8540. fist_right: "๐Ÿคœ",
  8541. v: "โœŒ",
  8542. ok_hand: "๐Ÿ‘Œ",
  8543. raised_hand: "โœ‹",
  8544. raised_back_of_hand: "๐Ÿคš",
  8545. open_hands: "๐Ÿ‘",
  8546. muscle: "๐Ÿ’ช",
  8547. pray: "๐Ÿ™",
  8548. foot: "๐Ÿฆถ",
  8549. leg: "๐Ÿฆต",
  8550. handshake: "๐Ÿค",
  8551. point_up: "โ˜",
  8552. point_up_2: "๐Ÿ‘†",
  8553. point_down: "๐Ÿ‘‡",
  8554. point_left: "๐Ÿ‘ˆ",
  8555. point_right: "๐Ÿ‘‰",
  8556. fu: "๐Ÿ–•",
  8557. raised_hand_with_fingers_splayed: "๐Ÿ–",
  8558. love_you: "๐ŸคŸ",
  8559. metal: "๐Ÿค˜",
  8560. crossed_fingers: "๐Ÿคž",
  8561. vulcan_salute: "๐Ÿ––",
  8562. writing_hand: "โœ",
  8563. selfie: "๐Ÿคณ",
  8564. nail_care: "๐Ÿ’…",
  8565. lips: "๐Ÿ‘„",
  8566. tooth: "๐Ÿฆท",
  8567. tongue: "๐Ÿ‘…",
  8568. ear: "๐Ÿ‘‚",
  8569. nose: "๐Ÿ‘ƒ",
  8570. eye: "๐Ÿ‘",
  8571. eyes: "๐Ÿ‘€",
  8572. brain: "๐Ÿง ",
  8573. bust_in_silhouette: "๐Ÿ‘ค",
  8574. busts_in_silhouette: "๐Ÿ‘ฅ",
  8575. speaking_head: "๐Ÿ—ฃ",
  8576. baby: "๐Ÿ‘ถ",
  8577. child: "๐Ÿง’",
  8578. boy: "๐Ÿ‘ฆ",
  8579. girl: "๐Ÿ‘ง",
  8580. adult: "๐Ÿง‘",
  8581. man: "๐Ÿ‘จ",
  8582. woman: "๐Ÿ‘ฉ",
  8583. blonde_woman: "๐Ÿ‘ฑโ€โ™€๏ธ",
  8584. blonde_man: "๐Ÿ‘ฑ",
  8585. bearded_person: "๐Ÿง”",
  8586. older_adult: "๐Ÿง“",
  8587. older_man: "๐Ÿ‘ด",
  8588. older_woman: "๐Ÿ‘ต",
  8589. man_with_gua_pi_mao: "๐Ÿ‘ฒ",
  8590. woman_with_headscarf: "๐Ÿง•",
  8591. woman_with_turban: "๐Ÿ‘ณโ€โ™€๏ธ",
  8592. man_with_turban: "๐Ÿ‘ณ",
  8593. policewoman: "๐Ÿ‘ฎโ€โ™€๏ธ",
  8594. policeman: "๐Ÿ‘ฎ",
  8595. construction_worker_woman: "๐Ÿ‘ทโ€โ™€๏ธ",
  8596. construction_worker_man: "๐Ÿ‘ท",
  8597. guardswoman: "๐Ÿ’‚โ€โ™€๏ธ",
  8598. guardsman: "๐Ÿ’‚",
  8599. female_detective: "๐Ÿ•ต๏ธโ€โ™€๏ธ",
  8600. male_detective: "๐Ÿ•ต",
  8601. woman_health_worker: "๐Ÿ‘ฉโ€โš•๏ธ",
  8602. man_health_worker: "๐Ÿ‘จโ€โš•๏ธ",
  8603. woman_farmer: "๐Ÿ‘ฉโ€๐ŸŒพ",
  8604. man_farmer: "๐Ÿ‘จโ€๐ŸŒพ",
  8605. woman_cook: "๐Ÿ‘ฉโ€๐Ÿณ",
  8606. man_cook: "๐Ÿ‘จโ€๐Ÿณ",
  8607. woman_student: "๐Ÿ‘ฉโ€๐ŸŽ“",
  8608. man_student: "๐Ÿ‘จโ€๐ŸŽ“",
  8609. woman_singer: "๐Ÿ‘ฉโ€๐ŸŽค",
  8610. man_singer: "๐Ÿ‘จโ€๐ŸŽค",
  8611. woman_teacher: "๐Ÿ‘ฉโ€๐Ÿซ",
  8612. man_teacher: "๐Ÿ‘จโ€๐Ÿซ",
  8613. woman_factory_worker: "๐Ÿ‘ฉโ€๐Ÿญ",
  8614. man_factory_worker: "๐Ÿ‘จโ€๐Ÿญ",
  8615. woman_technologist: "๐Ÿ‘ฉโ€๐Ÿ’ป",
  8616. man_technologist: "๐Ÿ‘จโ€๐Ÿ’ป",
  8617. woman_office_worker: "๐Ÿ‘ฉโ€๐Ÿ’ผ",
  8618. man_office_worker: "๐Ÿ‘จโ€๐Ÿ’ผ"
  8619. }
  8620. }], [75]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement