;(wx.webpackJsonp = wx.webpackJsonp || []).push([
  [7835],
  {
    7636: function (n, e, t) {
      var s = t(4160),
        c = t(5652),
        r = t(2555),
        i = t(4576),
        u = t(758),
        a = t(2573),
        o = t.n(a),
        l = t(4269),
        f = t(5215),
        w = t(3816),
        v = t(6070),
        h = !1,
        g = function () {
          var n = (0, u.useState)({ url: void 0, loginSuccess: void 0 });
            var e = (0, i.A)(n, 2);
            var t = e[0],
            s = e[1]
          ;(0, a.useDidShow)(
            (0, r.A)(
              (0, c.A)().m(function n() {
                var e, s, r
                return (0, c.A)().w(function (n) {
                  for (;;)
                    switch (n.n) {
                      case 0:
                        return (n.n = 1), w.A.isLogin()
                      case 1:
                        if (((e = n.v), h || e)) {
                          n.n = 3
                          break
                        }
                        return (h = !0), (n.n = 2), w.A.login()
                      case 2:
                        ;(s = n.v), (r = s.success), (e = r)
                      case 3:
                        if (!e) {
                          n.n = 5
                          break
                        }
                        if (null == t || !t.url) {
                          n.n = 4
                          break
                        }
                        return n.a(2)
                      case 4:
                        g(), (n.n = 6)
                        break
                      case 5:
                        p()
                      case 6:
                        return n.a(2)
                    }
                }, n)
              }),
            ),
          )
          var g = (function () {

              var n = (0, r.A)(
                (0, c.A)().m(function n() {
                  var e
                  return (0, c.A)().w(function (n) {

                    for (;;)
                      switch (n.n) {
                        case 0:
                          return (
                            (n.n = 1),
                            w.A.getH5LoginUrl(
                              'https://m.damai.cn/shows/ticket/list.html?scene_source=wxmini_tab_webview',
                            )
                          )
                        case 1:
                          ;(e = n.v) ? s({ url: e, loginSuccess: !0 }) : p(!0)
                        case 2:
                          return n.a(2)
                      }
                  }, n)
                }),
              )
              return function () {
                return n.apply(this, arguments)
              }
            })(),
            p = function () {
              var n = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]
              n && o().showToast({ title: '登录失败，请重试', icon: 'none' }), s({ url: '', loginSuccess: !1 })
            }
          return (0, v.jsx)(l.Ss, {
            className: 'bui-default-light',
            children:
              !1 === t.loginSuccess
                ? (0, v.jsx)(f.A, {
                    theme: 'show',
                    message: '请登录',
                    buttonText: '登录',
                    onClick: function () {
                      w.A.login()
                        .then(function (n) {
                          n.success ? g() : p(!0)
                        })
                        .catch(function () {
                          return p(!0)
                        })
                    },
                    className: 'error-tips',
                  })
                : (null == t ? void 0 : t.url) && (0, v.jsx)(l.SC, { src: null == t ? void 0 : t.url }),
          })
        }
      Page(
        (0, s.eU)(
          g,
          'pages/ticket-wallet/index',
          { root: { cn: [] } },
          { disableSwipeBack: !0, spmB: 'ticket_wallet' } || {},
        ),
      )
    },
  },
  function (n) {
    n.O(0, [6907, 8096, 2076], function () {
      return (e = 7636), n((n.s = e))
      var e
    }),
      n.O()
  },
])
