aboutUs.js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. angular.module("slickCarousel", []).constant("slickCarouselConfig", {
  2. method: {},
  3. event: {}
  4. }).directive("slick", ["$timeout", "slickCarouselConfig", function(e, n) {
  5. var i, t;
  6. return i = ["slickGoTo", "slickNext", "slickPrev", "slickPause", "slickPlay", "slickAdd", "slickRemove", "slickFilter", "slickUnfilter", "unslick"], t = ["afterChange", "beforeChange", "breakpoint", "destroy", "edge", "init", "reInit", "setPosition", "swipe"], {
  7. scope: {
  8. settings: "=",
  9. enabled: "@",
  10. accessibility: "@",
  11. adaptiveHeight: "@",
  12. autoplay: "@",
  13. autoplaySpeed: "@",
  14. arrows: "@",
  15. asNavFor: "@",
  16. appendArrows: "@",
  17. prevArrow: "@",
  18. nextArrow: "@",
  19. centerMode: "@",
  20. centerPadding: "@",
  21. cssEase: "@",
  22. customPaging: "&",
  23. dots: "@",
  24. draggable: "@",
  25. fade: "@",
  26. focusOnSelect: "@",
  27. easing: "@",
  28. edgeFriction: "@",
  29. infinite: "@",
  30. initialSlide: "@",
  31. lazyLoad: "@",
  32. mobileFirst: "@",
  33. pauseOnHover: "@",
  34. pauseOnDotsHover: "@",
  35. respondTo: "@",
  36. responsive: "=?",
  37. rows: "@",
  38. slide: "@",
  39. slidesPerRow: "@",
  40. slidesToShow: "@",
  41. slidesToScroll: "@",
  42. speed: "@",
  43. swipe: "@",
  44. swipeToSlide: "@",
  45. touchMove: "@",
  46. touchThreshold: "@",
  47. useCSS: "@",
  48. variableWidth: "@",
  49. vertical: "@",
  50. verticalSwiping: "@",
  51. rtl: "@"
  52. },
  53. restrict: "AE",
  54. link: function(t, o, s) {
  55. angular.element(o).css("display", "none");
  56. var r, a, l, d, u, c;
  57. return a = function() {
  58. r = angular.extend(angular.copy(n), {
  59. enabled: "false" !== t.enabled,
  60. accessibility: "false" !== t.accessibility,
  61. adaptiveHeight: "true" === t.adaptiveHeight,
  62. autoplay: "true" === t.autoplay,
  63. autoplaySpeed: null != t.autoplaySpeed ? parseInt(t.autoplaySpeed, 10) : 3e3,
  64. arrows: "false" !== t.arrows,
  65. asNavFor: t.asNavFor ? t.asNavFor : void 0,
  66. appendArrows: angular.element(t.appendArrows ? t.appendArrows : o),
  67. prevArrow: t.prevArrow ? angular.element(t.prevArrow) : void 0,
  68. nextArrow: t.nextArrow ? angular.element(t.nextArrow) : void 0,
  69. centerMode: "true" === t.centerMode,
  70. centerPadding: t.centerPadding || "50px",
  71. cssEase: t.cssEase || "ease",
  72. customPaging: s.customPaging ? function(e, n) {
  73. return t.customPaging({
  74. slick: e,
  75. index: n
  76. })
  77. } : void 0,
  78. dots: "true" === t.dots,
  79. draggable: "false" !== t.draggable,
  80. fade: "true" === t.fade,
  81. focusOnSelect: "true" === t.focusOnSelect,
  82. easing: t.easing || "linear",
  83. edgeFriction: t.edgeFriction || .15,
  84. infinite: "false" !== t.infinite,
  85. initialSlide: parseInt(t.initialSlide) || 0,
  86. lazyLoad: t.lazyLoad || "ondemand",
  87. mobileFirst: "true" === t.mobileFirst,
  88. pauseOnHover: "false" !== t.pauseOnHover,
  89. pauseOnDotsHover: "true" === t.pauseOnDotsHover,
  90. respondTo: null != t.respondTo ? t.respondTo : "window",
  91. responsive: t.responsive || void 0,
  92. rows: null != t.rows ? parseInt(t.rows, 10) : 1,
  93. slide: t.slide || "",
  94. slidesPerRow: null != t.slidesPerRow ? parseInt(t.slidesPerRow, 10) : 1,
  95. slidesToShow: null != t.slidesToShow ? parseInt(t.slidesToShow, 10) : 1,
  96. slidesToScroll: null != t.slidesToScroll ? parseInt(t.slidesToScroll, 10) : 1,
  97. speed: null != t.speed ? parseInt(t.speed, 10) : 300,
  98. swipe: "false" !== t.swipe,
  99. swipeToSlide: "true" === t.swipeToSlide,
  100. touchMove: "false" !== t.touchMove,
  101. touchThreshold: t.touchThreshold ? parseInt(t.touchThreshold, 10) : 5,
  102. useCSS: "false" !== t.useCSS,
  103. variableWidth: "true" === t.variableWidth,
  104. vertical: "true" === t.vertical,
  105. verticalSwiping: "true" === t.verticalSwiping,
  106. rtl: "true" === t.rtl
  107. }, t.settings)
  108. }, l = function() {
  109. var e = angular.element(o);
  110. return e.hasClass("slick-initialized") && (e.remove("slick-list"), e.slick("unslick")), e
  111. }, d = function() {
  112. a();
  113. var n = angular.element(o);
  114. if (angular.element(o).hasClass("slick-initialized")) {
  115. if (r.enabled) return n.slick("getSlick");
  116. l()
  117. } else {
  118. if (angular.element(o).css("display", "block"), !r.enabled) return;
  119. n.on("init", function(e, n) {
  120. return "undefined" != typeof r.event.init && r.event.init(e, n), "undefined" != typeof c ? n.slideHandler(c) : void 0
  121. }), e(function() {
  122. n.slick(r)
  123. })
  124. }
  125. t.internalControl = r.method || {}, i.forEach(function(e) {
  126. t.internalControl[e] = function() {
  127. var i;
  128. i = Array.prototype.slice.call(arguments), i.unshift(e), n.slick.apply(o, i)
  129. }
  130. }), n.on("afterChange", function(e, n, i, o) {
  131. c = i, "undefined" != typeof r.event.afterChange && t.$apply(function() {
  132. r.event.afterChange(e, n, i, o)
  133. })
  134. }), n.on("beforeChange", function(e, n, i, o) {
  135. "undefined" != typeof r.event.beforeChange && t.$apply(function() {
  136. r.event.beforeChange(e, n, i, o)
  137. })
  138. }), n.on("reInit", function(e, n) {
  139. "undefined" != typeof r.event.reInit && t.$apply(function() {
  140. r.event.reInit(e, n)
  141. })
  142. }), "undefined" != typeof r.event.breakpoint && n.on("breakpoint", function(e, n, i) {
  143. t.$apply(function() {
  144. r.event.breakpoint(e, n, i)
  145. })
  146. }), "undefined" != typeof r.event.destroy && n.on("destroy", function(e, n) {
  147. t.$apply(function() {
  148. r.event.destroy(e, n)
  149. })
  150. }), "undefined" != typeof r.event.edge && n.on("edge", function(e, n, i) {
  151. t.$apply(function() {
  152. r.event.edge(e, n, i)
  153. })
  154. }), "undefined" != typeof r.event.setPosition && n.on("setPosition", function(e, n) {
  155. t.$apply(function() {
  156. r.event.setPosition(e, n)
  157. })
  158. }), "undefined" != typeof r.event.swipe && n.on("swipe", function(e, n, i) {
  159. t.$apply(function() {
  160. r.event.swipe(e, n, i)
  161. })
  162. })
  163. }, u = function() {
  164. l(), d()
  165. }, o.one("$destroy", function() {
  166. l()
  167. }), t.$watch("settings", function(e, n) {
  168. return null !== e ? u() : void 0
  169. }, !0)
  170. }
  171. }
  172. }]);