Guest User

Untitled

a guest
Jan 5th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1: ! function(e) {
  2.     function t(a) {
  3.         if (n[a]) return n[a].exports;
  4.         var r = n[a] = {
  5.             i: a,
  6.             l: !1,
  7.             exports: {}
  8.         };
  9.         return e[a].call(r.exports, r, r.exports, t), r.l = !0, r.exports
  10.     }
  11.     var n = {};
  12.     return t.m = e, t.c = n, t.i = function(e) {
  13.         return e
  14.     }, t.d = function(e, t, n) {
  15.         Object.defineProperty(e, t, {
  16.             configurable: !1,
  17.             enumerable: !0,
  18.             get: n
  19.         })
  20.     }, t.n = function(e) {
  21.         var n = e && e.__esModule ? function() {
  22.             return e["default"]
  23.         } : function() {
  24.             return e
  25.         };
  26.         return t.d(n, "a", n), n
  27.     }, t.o = function(e, t) {
  28.         return Object.prototype.hasOwnProperty.call(e, t)
  29.     }, t.p = "", t(t.s = 11)
  30. }([function(e, t) {
  31.     "use strict";
  32.  
  33.     function n(e, t) {
  34.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  35.     }
  36.     Object.defineProperty(t, "__esModule", {
  37.         value: !0
  38.     });
  39.     var a = function() {
  40.             function e(e, t) {
  41.                 for (var n = 0; n < t.length; n++) {
  42.                     var a = t[n];
  43.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  44.                 }
  45.             }
  46.             return function(t, n, a) {
  47.                 return n && e(t.prototype, n), a && e(t, a), t
  48.             }
  49.         }(),
  50.         r = function() {
  51.             function e() {
  52.                 n(this, e), this.exceptionSite = "/activate/pwd"
  53.             }
  54.             return a(e, [{
  55.                 key: "handle",
  56.                 value: function() {
  57.                     this.ieES6Fix(), this.checkPartnerExceptions() && this.checkCustomerExceptions() && $("#login-modal").modal()
  58.                 }
  59.             }, {
  60.                 key: "checkPartnerExceptions",
  61.                 value: function() {
  62.                     return !(this.urlEndsWith("partner") || this.urlWithLabeled("partner") || this.urlStartsWith("/partner/mcode") || this.urlWithLabeled("partner", "/mcode", !0) || this.urlStartsWith(this.exceptionSite))
  63.                 }
  64.             }, {
  65.                 key: "checkCustomerExceptions",
  66.                 value: function() {
  67.                     return !this.urlWithLabeled("customer", this.exceptionSite, !0) && !this.urlStartsWith("/customer" + this.exceptionSite)
  68.                 }
  69.             }, {
  70.                 key: "ieES6Fix",
  71.                 value: function() {
  72.                     String.prototype.endsWith || (String.prototype.endsWith = function(e) {
  73.                         return this.indexOf(e, this.length - e.length) !== -1
  74.                     }), String.prototype.startsWith || (String.prototype.startsWith = function(e, t) {
  75.                         return t = t || 0, this.indexOf(e, t) === t
  76.                     })
  77.                 }
  78.             }, {
  79.                 key: "urlStartsWith",
  80.                 value: function(e) {
  81.                     return location.pathname.toLowerCase().startsWith(e)
  82.                 }
  83.             }, {
  84.                 key: "urlEndsWith",
  85.                 value: function(e) {
  86.                     return location.pathname.toLowerCase().endsWith("/" + e + "/") || location.pathname.toLowerCase().endsWith("/" + e)
  87.                 }
  88.             }, {
  89.                 key: "urlWithLabeled",
  90.                 value: function(e) {
  91.                     var t = this,
  92.                         n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "",
  93.                         a = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
  94.                     for (var r in app.whiteLabels) {
  95.                         var o = e + r + n,
  96.                             i = a ? t.urlStartsWith("/" + o) : t.urlEndsWith(o);
  97.                         if (i) return i
  98.                     }
  99.                     return !1
  100.                 }
  101.             }], [{
  102.                 key: "enable",
  103.                 value: function() {
  104.                     (new e).handle()
  105.                 }
  106.             }]), e
  107.         }();
  108.     t["default"] = r
  109. }, function(e, t, n) {
  110.     "use strict";
  111.  
  112.     function a(e) {
  113.         return e && e.__esModule ? e : {
  114.             "default": e
  115.         }
  116.     }
  117.  
  118.     function r(e, t) {
  119.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  120.     }
  121.     Object.defineProperty(t, "__esModule", {
  122.         value: !0
  123.     });
  124.     var o = function() {
  125.             function e(e, t) {
  126.                 for (var n = 0; n < t.length; n++) {
  127.                     var a = t[n];
  128.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  129.                 }
  130.             }
  131.             return function(t, n, a) {
  132.                 return n && e(t.prototype, n), a && e(t, a), t
  133.             }
  134.         }(),
  135.         i = n(5),
  136.         l = a(i),
  137.         s = n(7),
  138.         u = a(s),
  139.         c = function() {
  140.             function e() {
  141.                 r(this, e), this.handle()
  142.             }
  143.             return o(e, [{
  144.                 key: "handle",
  145.                 value: function() {
  146.                     this.listenForMasterCodeInput()
  147.                 }
  148.             }, {
  149.                 key: "listenForMasterCodeInput",
  150.                 value: function() {
  151.                     var e = this;
  152.                     $(".yv__form").validator().on("valid.bs.validator", function(t) {
  153.                         var n = $("#inputKey").val() || $("#partnerSelect").val();
  154.                         $("#inputKey")[0] !== t.relatedTarget && $("#partnerSelect")[0] !== t.relatedTarget || $.get("https://" + location.host + "/partner/services/apexrest/validators?mastercode=" + n, function(t) {
  155.                             return e.startFillTacContentJob(JSON.parse(t))
  156.                         })
  157.                     })
  158.                 }
  159.             }, {
  160.                 key: "deligateJobs",
  161.                 value: function(e) {
  162.                     var t = JSON.parse(e);
  163.                     return this.shouldBeRedirected(t) ? this.startRedirectJob(t) : void this.startFillTacContentJob(t)
  164.                 }
  165.             }, {
  166.                 key: "startRedirectJob",
  167.                 value: function(e) {
  168.                     u["default"].enable(e)
  169.                 }
  170.             }, {
  171.                 key: "startFillTacContentJob",
  172.                 value: function(e) {
  173.                     l["default"].enable(e)
  174.                 }
  175.             }, {
  176.                 key: "shouldBeRedirected",
  177.                 value: function(e) {
  178.                     return e.labeled && window.location.pathname.indexOf(e.account) == -1 && this.isNotLabeledYouvestorCase(e)
  179.                 }
  180.             }, {
  181.                 key: "isNotLabeledYouvestorCase",
  182.                 value: function(e) {
  183.                     return "youvestor" !== e.account || "youvestor" === e.account && !window.location.pathname.endsWith("/partner/") && !window.location.pathname.startsWith("/partner/mcode")
  184.                 }
  185.             }], [{
  186.                 key: "enable",
  187.                 value: function() {
  188.                     return new e
  189.                 }
  190.             }]), e
  191.         }();
  192.     t["default"] = c
  193. }, function(e, t, n) {
  194.     "use strict";
  195.  
  196.     function a(e) {
  197.         return e && e.__esModule ? e : {
  198.             "default": e
  199.         }
  200.     }
  201.  
  202.     function r(e, t) {
  203.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  204.     }
  205.  
  206.     function o(e, t) {
  207.         if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  208.         return !t || "object" != typeof t && "function" != typeof t ? e : t
  209.     }
  210.  
  211.     function i(e, t) {
  212.         if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
  213.         e.prototype = Object.create(t && t.prototype, {
  214.             constructor: {
  215.                 value: e,
  216.                 enumerable: !1,
  217.                 writable: !0,
  218.                 configurable: !0
  219.             }
  220.         }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
  221.     }
  222.     Object.defineProperty(t, "__esModule", {
  223.         value: !0
  224.     });
  225.     var l = function() {
  226.             function e(e, t) {
  227.                 for (var n = 0; n < t.length; n++) {
  228.                     var a = t[n];
  229.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  230.                 }
  231.             }
  232.             return function(t, n, a) {
  233.                 return n && e(t.prototype, n), a && e(t, a), t
  234.             }
  235.         }(),
  236.         s = n(9),
  237.         u = a(s),
  238.         c = n(4),
  239.         f = a(c),
  240.         d = n(6),
  241.         p = a(d),
  242.         h = n(8),
  243.         v = a(h),
  244.         b = n(3),
  245.         m = a(b),
  246.         y = function(e) {
  247.             function t(e) {
  248.                 return r(this, t), o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e))
  249.             }
  250.             return i(t, e), l(t, [{
  251.                 key: "setUp",
  252.                 value: function() {
  253.                     f["default"].enable(), p["default"].enable(this.portalType), m["default"].start(), v["default"].listen(this.portalType)
  254.                 }
  255.             }], [{
  256.                 key: "make",
  257.                 value: function(e) {
  258.                     return new t(e)
  259.                 }
  260.             }]), t
  261.         }(u["default"]);
  262.     t["default"] = y
  263. }, function(e, t) {
  264.     "use strict";
  265.  
  266.     function n(e, t) {
  267.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  268.     }
  269.     Object.defineProperty(t, "__esModule", {
  270.         value: !0
  271.     });
  272.     var a = function() {
  273.             function e(e, t) {
  274.                 for (var n = 0; n < t.length; n++) {
  275.                     var a = t[n];
  276.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  277.                 }
  278.             }
  279.             return function(t, n, a) {
  280.                 return n && e(t.prototype, n), a && e(t, a), t
  281.             }
  282.         }(),
  283.         r = function() {
  284.             function e() {
  285.                 n(this, e), this.enableReset()
  286.             }
  287.             return a(e, [{
  288.                 key: "enableReset",
  289.                 value: function() {
  290.                     this.enableResetWithClick(), this.enableResetWithEnter()
  291.                 }
  292.             }, {
  293.                 key: "enableResetWithClick",
  294.                 value: function() {
  295.                     var e = this;
  296.                     $("#yv-partner-password-reset").click(function() {
  297.                         var t = {};
  298.                         t.email = $("#inputForgotPasswordEmail_modal").val(), t.type = "customer", PortalLoginController.resetPassword(JSON.stringify(t), e.resetCallback)
  299.                     })
  300.                 }
  301.             }, {
  302.                 key: "enableResetWithEnter",
  303.                 value: function() {
  304.                     $("input[id$=inputForgotPasswordEmail_modal]").keypress(function(e) {
  305.                         13 === e.keyCode && (e.preventDefault(), $("#yv-partner-password-reset").trigger("click"))
  306.                     })
  307.                 }
  308.             }, {
  309.                 key: "resetCallback",
  310.                 value: function(e, t) {
  311.                     200 != t.statusCode && Rollbar.error("yv reset affiliate password error", t), $("#forgot-password-modal").modal("hide"), "success" === e ? $("#forgot-password-succeed-modal").modal() : $("#forgot-password-error-modal").modal()
  312.                 }
  313.             }], [{
  314.                 key: "start",
  315.                 value: function() {
  316.                     return new e
  317.                 }
  318.             }]), e
  319.         }();
  320.     t["default"] = r
  321. }, function(e, t) {
  322.     "use strict";
  323.  
  324.     function n(e, t) {
  325.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  326.     }
  327.     Object.defineProperty(t, "__esModule", {
  328.         value: !0
  329.     });
  330.     var a = function() {
  331.             function e(e, t) {
  332.                 for (var n = 0; n < t.length; n++) {
  333.                     var a = t[n];
  334.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  335.                 }
  336.             }
  337.             return function(t, n, a) {
  338.                 return n && e(t.prototype, n), a && e(t, a), t
  339.             }
  340.         }(),
  341.         r = function() {
  342.             function e() {
  343.                 n(this, e), this.handle()
  344.             }
  345.             return a(e, [{
  346.                 key: "handle",
  347.                 value: function() {
  348.                     for (var e = window.location.href, t = "", n = e, a = !0; a;) t = unescape(n), n = unescape(t), n == t && (a = !1);
  349.                     e != t && (window.location.href = app.link.replaceParamConcatSign(t, "label", "&"))
  350.                 }
  351.             }], [{
  352.                 key: "enable",
  353.                 value: function() {
  354.                     return new e
  355.                 }
  356.             }]), e
  357.         }();
  358.     t["default"] = r
  359. }, function(e, t, n) {
  360.     "use strict";
  361.  
  362.     function a(e) {
  363.         return e && e.__esModule ? e : {
  364.             "default": e
  365.         }
  366.     }
  367.  
  368.     function r(e, t) {
  369.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  370.     }
  371.     Object.defineProperty(t, "__esModule", {
  372.         value: !0
  373.     });
  374.     var o = function() {
  375.             function e(e, t) {
  376.                 for (var n = 0; n < t.length; n++) {
  377.                     var a = t[n];
  378.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  379.                 }
  380.             }
  381.             return function(t, n, a) {
  382.                 return n && e(t.prototype, n), a && e(t, a), t
  383.             }
  384.         }(),
  385.         i = n(10),
  386.         l = a(i),
  387.         s = function() {
  388.             function e(t) {
  389.                 r(this, e), this.data = t, this.handle()
  390.             }
  391.             return o(e, [{
  392.                 key: "handle",
  393.                 value: function() {
  394.                     this.fillContent()
  395.                 }
  396.             }, {
  397.                 key: "fillContent",
  398.                 value: function() {
  399.                     var e = new l["default"],
  400.                         t = e.template(this.data.servicefee, this.data.basepoints, this.data.sharepartner, this.data.conditions, this.data.compensationFraction, this.data.customerFee, this.data.exampleAmount);
  401.                     $("#tac-template").html(t), window.location.pathname.indexOf("mcode") !== -1 && $(".yv-inputKey-group").hide(), this.enableTacModal()
  402.                 }
  403.             }, {
  404.                 key: "enableTacModal",
  405.                 value: function() {
  406.                     $("#inputTaC").removeAttr("disabled"), $(".yv-tac-link").attr("data-toggle", "modal")
  407.                 }
  408.             }], [{
  409.                 key: "enable",
  410.                 value: function(t) {
  411.                     return new e(t)
  412.                 }
  413.             }]), e
  414.         }();
  415.     t["default"] = s
  416. }, function(e, t) {
  417.     "use strict";
  418.  
  419.     function n(e, t) {
  420.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  421.     }
  422.     Object.defineProperty(t, "__esModule", {
  423.         value: !0
  424.     });
  425.     var a = function() {
  426.             function e(e, t) {
  427.                 for (var n = 0; n < t.length; n++) {
  428.                     var a = t[n];
  429.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  430.                 }
  431.             }
  432.             return function(t, n, a) {
  433.                 return n && e(t.prototype, n), a && e(t, a), t
  434.             }
  435.         }(),
  436.         r = function() {
  437.             function e(t) {
  438.                 n(this, e), this.portalType = t, this.handle()
  439.             }
  440.             return a(e, [{
  441.                 key: "handle",
  442.                 value: function(e) {
  443.                     this.startLoginManagement()
  444.                 }
  445.             }, {
  446.                 key: "startLoginManagement",
  447.                 value: function() {
  448.                     this.enableLoginActions()
  449.                 }
  450.             }, {
  451.                 key: "enableLoginActions",
  452.                 value: function() {
  453.                     this.enableLoginWithClick(), this.enableLoginWithEnter(), this.preventStandardFormSubmit()
  454.                 }
  455.             }, {
  456.                 key: "enableLoginWithClick",
  457.                 value: function() {
  458.                     this.portalType;
  459.                     $("a[id$=yv-partner-login]").on("click", function() {
  460.                         $("#login-loading").removeClass("hidden"), $(this).addClass("hidden");
  461.                         var e = this;
  462.                         setTimeout(function() {
  463.                             $("#login-loading").addClass("hidden"), $(e).removeClass("hidden")
  464.                         }, 2e3)
  465.                     })
  466.                 }
  467.             }, {
  468.                 key: "enableLoginWithEnter",
  469.                 value: function() {
  470.                     $("input[id$=inputPassword_modal]").keypress(function(e) {
  471.                         app.common.isEnter(e) && (e.preventDefault(), $("a[id$=yv-partner-login]").trigger("click"))
  472.                     })
  473.                 }
  474.             }, {
  475.                 key: "preventStandardFormSubmit",
  476.                 value: function() {
  477.                     $("input[id$=inputEmail_modal]").keypress(function(e) {
  478.                         app.common.isEnter(e) && e.preventDefault()
  479.                     })
  480.                 }
  481.             }], [{
  482.                 key: "enable",
  483.                 value: function(t) {
  484.                     return new e(t)
  485.                 }
  486.             }]), e
  487.         }();
  488.     t["default"] = r
  489. }, function(e, t) {
  490.     "use strict";
  491.  
  492.     function n(e, t) {
  493.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  494.     }
  495.     Object.defineProperty(t, "__esModule", {
  496.         value: !0
  497.     });
  498.     var a = function() {
  499.             function e(e, t) {
  500.                 for (var n = 0; n < t.length; n++) {
  501.                     var a = t[n];
  502.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  503.                 }
  504.             }
  505.             return function(t, n, a) {
  506.                 return n && e(t.prototype, n), a && e(t, a), t
  507.             }
  508.         }(),
  509.         r = function() {
  510.             function e(t) {
  511.                 n(this, e), this.data = t, this.handle()
  512.             }
  513.             return a(e, [{
  514.                 key: "handle",
  515.                 value: function() {
  516.                     this.startRedirect()
  517.                 }
  518.             }, {
  519.                 key: "startRedirect",
  520.                 value: function() {
  521.                     return "youvestor" === this.data.account ? window.location.pathname = "/partner/mcode/" + this.data.mcode : window.location.pathname = "/partner/" + this.data.account + "/mcode/" + this.data.mcode
  522.                 }
  523.             }], [{
  524.                 key: "enable",
  525.                 value: function(t) {
  526.                     return new e(t)
  527.                 }
  528.             }]), e
  529.         }();
  530.     t["default"] = r
  531. }, function(e, t) {
  532.     "use strict";
  533.  
  534.     function n(e, t) {
  535.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  536.     }
  537.     Object.defineProperty(t, "__esModule", {
  538.         value: !0
  539.     });
  540.     var a = function() {
  541.             function e(e, t) {
  542.                 for (var n = 0; n < t.length; n++) {
  543.                     var a = t[n];
  544.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  545.                 }
  546.             }
  547.             return function(t, n, a) {
  548.                 return n && e(t.prototype, n), a && e(t, a), t
  549.             }
  550.         }(),
  551.         r = function() {
  552.             function e(t) {
  553.                 n(this, e), this.portalType = t, this.handle()
  554.             }
  555.             return a(e, [{
  556.                 key: "handle",
  557.                 value: function() {
  558.                     this.listenToPaths()
  559.                 }
  560.             }, {
  561.                 key: "listenToPaths",
  562.                 value: function() {
  563.                     this.enableActivatePassword(), this.prefillLoginForm()
  564.                 }
  565.             }, {
  566.                 key: "enableActivatePassword",
  567.                 value: function() {
  568.                     location.pathname.startsWith("/" + this.portalType + "/activate/PWD") && app.common.adjustSize(".yv__register")
  569.                 }
  570.             }, {
  571.                 key: "prefillLoginForm",
  572.                 value: function() {
  573.                     var e = app.link.getParam("user");
  574.                     e && ($("[id$=inputEmail_modal]").val(e), setTimeout(function() {
  575.                         $("[id$=inputPassword_modal]").focus()
  576.                     }, 500))
  577.                 }
  578.             }], [{
  579.                 key: "listen",
  580.                 value: function(t) {
  581.                     return new e(t)
  582.                 }
  583.             }]), e
  584.         }();
  585.     t["default"] = r
  586. }, function(e, t) {
  587.     "use strict";
  588.  
  589.     function n(e, t) {
  590.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  591.     }
  592.     Object.defineProperty(t, "__esModule", {
  593.         value: !0
  594.     });
  595.     var a = function r(e) {
  596.         n(this, r), this.portalType = e, this.setUp()
  597.     };
  598.     t["default"] = a
  599. }, function(e, t) {
  600.     "use strict";
  601.  
  602.     function n(e, t) {
  603.         if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  604.     }
  605.     Object.defineProperty(t, "__esModule", {
  606.         value: !0
  607.     });
  608.     var a = function() {
  609.             function e(e, t) {
  610.                 for (var n = 0; n < t.length; n++) {
  611.                     var a = t[n];
  612.                     a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
  613.                 }
  614.             }
  615.             return function(t, n, a) {
  616.                 return n && e(t.prototype, n), a && e(t, a), t
  617.             }
  618.         }(),
  619.         r = function() {
  620.             function e() {
  621.                 n(this, e)
  622.             }
  623.             return a(e, [{
  624.                 key: "template",
  625.                 value: function(e, t, n, a, r, o, i) {
  626.                     var l = this;
  627.                     return "<h5><strong>(1) Partizipation an der Lizenzvergütung</strong></h5>\n                <p>Der Kunde zahlt " + this.format(o, 2) + "% inkl. MwSt. p.a. auf sein Depotvolumen als Lizenzgebühr. Der Tippgeber erhält hieraus einen Anteil von " + this.format(e, 2) + "% inkl. MwSt. (entspricht " + t + " Basispunkten)  als Vergütung für den erfolgreichen Nachweis.</p>\n\n                <p>Beispiel: youvestor erhält " + i + ",- € als Lizenzgebühr. Der Anteil des Tippgebers beträgt " + n + ",- €.</p>\n\n                <h5><strong>(2) Vergütung seitens der depotführenden Stelle</strong></h5>\n                <p>youvestor gibt " + this.format(r, 2) + '% der Depotvergütung inkl. MwSt., die seitens der depotführenden Stelle an die youvestor AG gezahlt wird, weiter.</p>\n                <h5><strong>(1) Gesamtvergütung Tippgeber</strong></h5>\n                <p>Die nachfolgende Tabelle stellt die Zusammensetzung der Gesamtvergütung des Tippgebers beispielhaft dar. Die Vergütungssätze der depotführenden Stelle für die einzelnen Lösungen stellen eine Momentaufnahme dar. Sie können in Zukunft von diesen abweichen.</p>\n                <table class="tmp-yv-tac-table">\n                    <tr>\n                        <th><strong>Volumen der<br />nachgewiesenen<br />Kunden</strong></th>\n                        <th><strong>Lösung</strong></th>\n                        <th colspan="2"><strong>Anteil Tippgeber<br />Lizenzgebühr<br />inkl. MwSt. p. a.</strong></th>\n                        <th colspan="2"><strong>Anteil Tippgeber inkl. MwSt. p.a. aus Vergütung seitens der depotführenden Stelle*</strong></th>\n                        <th colspan="2"><strong>Gesamtvergütung Tippgeber<br />inkl. MwSt. p.a.</strong></th>\n                    </tr>\n\n                    ' + a.map(function(e) {
  628.                         return l.getCondition(e)
  629.                     }).join("") + "\n                </table>"
  630.                 }
  631.             }, {
  632.                 key: "getCondition",
  633.                 value: function(e) {
  634.                     return '<tr>\n\t                <td><span class="yv-tac-volume">' + this.format(e.volume1) + "&nbsp;EUR</td>\n\t                <td>" + e.name + '</td>\n\t                <td><span class="yv-servicefee">' + this.format(e.serviceFee1, 2) + '&nbsp;%</td>\n\t                <td><span class="yv-servicefeevolume">' + this.format(e.volume2) + '&nbsp;EUR</td>\n\t                <td><span class="yv-depotfee">' + this.format(e.serviceFee2 / 100, 2) + '&nbsp;%</td>\n\t                <td><span class="yv-depotfeevolume">' + this.format(e.volume3) + '&nbsp;EUR</td>\n\t                <td><span class="yv-feesum">' + this.format(e.serviceFee3 / 100, 2) + '&nbsp;%</td>\n\t                <td><span class="yv-volumesum">' + this.format(e.volume4) + "&nbsp;EUR</td>\n\t            </tr>"
  635.                 }
  636.             }, {
  637.                 key: "format",
  638.                 value: function(e) {
  639.                     var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
  640.                     return app.format.number(Number(e.toFixed(t)))
  641.                 }
  642.             }]), e
  643.         }();
  644.     t["default"] = r
  645. }, function(e, t, n) {
  646.     "use strict";
  647.  
  648.     function a(e) {
  649.         return e && e.__esModule ? e : {
  650.             "default": e
  651.         }
  652.     }
  653.     var r = n(2),
  654.         o = a(r),
  655.         i = n(0),
  656.         l = a(i),
  657.         s = n(1),
  658.         u = a(s);
  659.     o["default"].make("partner"), u["default"].enable(), l["default"].enable(), $(function() {
  660.         var e = app.link.labelAll(),
  661.             t = {};
  662.         t.info = {}, t.saveCallback = function(t, n) {
  663.             if (200 != n.statusCode) app.scroll.to(), Rollbar.error("yv create affiliate error", n.email);
  664.             else {
  665.                 var a = "" != e ? e + "/" : "";
  666.                 location.href = "https://" + location.host + "/partner/" + a + "portal_registration_partner_confirmation"
  667.             }
  668.         }, t.save = function() {
  669.             $("#loading-modal").modal(), PortalLoginController.createAffiliate(JSON.stringify(t.info), t.saveCallback)
  670.         }, t.setNewPassword = function() {
  671.             var e = {};
  672.             e.activationCode = location.pathname.split("/activate/")[1], e.password = $("#inputPassword").val(), t.info = e, PasswordChangeController.setNewPassword(JSON.stringify(t.info), t.setNewPasswordCallback)
  673.         }, t.setNewPasswordCallback = function(e, t) {
  674.             200 != t.statusCode && Rollbar.error("yv reset affiliate password error", t), e = $("<div/>").html(e).text();
  675.             var n = JSON.parse(e),
  676.                 e = n.result,
  677.                 a = n.userdata;
  678.             if (e === !0) window.location.href = a;
  679.             else if ("PasswordAlreadyUsed" === e) $("#password-already-used-modal").modal();
  680.             else {
  681.                 if ("activationCodeExpired" === e) return void $("#activation-code-error-modal").modal();
  682.                 $("#set-new-password-error-modal").modal()
  683.             }
  684.         }, t.resetPasswordCallback = function(e, t) {
  685.             200 != t.statusCode && Rollbar.error("yv reset affiliate password error", t), $("#forgot-password-modal").modal("hide"), "success" === e ? $("#forgot-password-succeed-modal").modal() : $("#forgot-password-error-modal").modal()
  686.         }, $("#inputTaC").click(function() {
  687.             function e(e) {
  688.                 return 10 > e ? "0" + e : e + ""
  689.             }
  690.             var n = new Date,
  691.                 a = [
  692.                     [e(n.getDate()), e(n.getMonth() + 1), n.getFullYear()].join("."), [e(n.getHours()), e(n.getMinutes())].join(":")
  693.                 ].join(" ");
  694.             t.setTaCAcceptedTime(a)
  695.         }), t.setTaCAcceptedTime = function(e) {
  696.             t.tacAccepted = e
  697.         }, $("#sendFormSetPassword").click(function(e) {
  698.             e.preventDefault(), $(this).hasClass("disabled") ? $(".yv__passwordChange__form").validator("validate") : t.setNewPassword()
  699.         }), $(".yv__form").validator().on("invalid.bs.validator", function(e) {
  700.             $("#inputKey")[0] === e.relatedTarget && ($(".yv-inputKey-group").show(), $(".yv-tac-link").removeAttr("data-toggle"), $("#inputTaC").attr("disabled", "disabled").attr("checked", !1))
  701.         }), $("#sendForm").click(function(e) {
  702.             if (e.preventDefault(), $(this).hasClass("disabled")) $(".yv__form").validator("validate");
  703.             else {
  704.                 var n = {};
  705.                 n.salutation = $("#inputSalutation").val(), n.lastname = $("#inputLastname").val(), n.firstname = $("#inputFirstname").val(), n.street = $("#inputStreet").val(), n.postcode = $("#inputPostcode").val(), n.city = $("#inputCity").val(), n.email = $("#inputEmail").val(), n.clientCode = $("#inputKey").val() || $("#partnerSelect").val(), n.password = $("#inputPassword").val(), n.tele = $("#inputPhone").val(), n.registerNumber = $("#inputRegisterNum").val(), n.tacAcceptedTime = t.tacAccepted, t.info = n, t.save()
  706.             }
  707.         }), $("#yv-affiliate-agb-confirm").click(function() {
  708.             $("#inputTaC").is(":checked") || $("#inputTaC").trigger("click")
  709.         });
  710.         var n = location.pathname.toLowerCase();
  711.         if (n.startsWith("/partner/mcode") || n.startsWith("/partner/" + app.label.toLowerCase() + "/mcode")) {
  712.             var a = location.pathname.split("/mcode/")[1];
  713.             $("#inputKey").val(a), $("#partnerSelect").val(a), $("#inputKey").trigger("input"), $("#partnerSelect").trigger("input"), $("#partnerSelect").attr("disabled", !0)
  714.         }
  715.     })
  716. }]);
Advertisement
Add Comment
Please, Sign In to add comment