require('../../@babel/runtime/helpers/Arrayincludes')
var e = require('../../@babel/runtime/helpers/toConsumableArray'),
  t = require('../../@babel/runtime/helpers/defineProperty'),
  n = require('../../@babel/runtime/helpers/createForOfIteratorHelper'),
  a = require('../../@babel/runtime/helpers/slicedToArray')
require('../sub-vendors.js'),
  (wx.webpackJsonp = wx.webpackJsonp || []).push([
    [1327],
    {
      9389: function (i, l, r) {
        var o = r(4160),
          c = r(5652),
          s = r(2555),
          u = r(4107),
          d = r(4576),
          m = r(3526),
          v = r(2573),
          p = r.n(v),
          f = r(4752),
          y = function (e) {
            console.log('sendGoldLog')
            f.Ay.sendGoldLog(
              'CLK',
              '/yanchu.sku.discountdescription_clk',
              (0, u.A)((0, u.A)({}, e), {}, { spmC: 'ticket', spmD: 'discountdescription' }),
            )
          },
          h = function () {
            f.Ay.sendGoldLog('CLK', '/yanchu.bottom_buynotice.clk', { spmC: 'bottom', spmD: 'buynotice' })
          },
          g = function () {
            f.Ay.sendGoldLog('EXP', '/yanchu.bottom_buynotice.exp', { spmC: 'bottom', spmD: 'buynotice' })
          },
          b = function (e) {
            f.Ay.sendGoldLog(
              'CLK',
              '/yanchu.middle_changesku.clk',
              (0, u.A)((0, u.A)({}, e), {}, { spmC: 'middle', spmD: 'changesku' }),
            )
          },
          E = r(758),
          I = r(2645),
          N = r.n(I),
          k = r(761),
          A = r(872),
          w = r(6454),
          S = r(3266),
          C = (0, S.A)(
            '<path d="M77 13c6.1 0 11 4.9 11 11v14c0 1.7-1.3 3-3 3-3.9 0-7 3.1-7 7s3.1 7 7 7c1.7 0 3 1.3 3 3v14c0 6.1-4.9 11-11 11H19c-6.1 0-11-4.9-11-11V58c0-1.7 1.3-3 3-3 3.9 0 7-3.1 7-7s-3.1-7-7-7c-1.7 0-3-1.3-3-3V24c0-6.1 4.9-11 11-11h58zM40.2 30.9c-1.1-1.1-2.9-1.3-4.1-.2l-.1.1c-1.1 1.1-1.3 2.9-.2 4.1l6.7 8.1h-4.7c-1.6.1-2.8 1.4-2.8 3v.2c.1 1.6 1.4 2.8 3 2.8h7.5v4h-7.7c-1.6.1-2.8 1.4-2.8 3v.2c.1 1.6 1.4 2.8 3 2.8h7.5v4.2c.1 1.6 1.4 2.8 3 2.8h.2c1.6-.1 2.8-1.4 2.8-3v-4h6.7c1.6-.1 2.8-1.4 2.8-3v-.2c-.1-1.6-1.4-2.8-3-2.8h-6.5v-4h6.7c1.6-.1 2.8-1.4 2.8-3v-.2c-.1-1.6-1.4-2.8-3-2.8h-4.4l6.7-8.1.1-.1c.9-1.3.7-3.1-.5-4.1-1.3-1.1-3.2-.9-4.2.4L48 40.3l-7.7-9.2-.1-.2z"/>',
            'CouponFilledIcon',
          ),
          T = r(7427),
          O = r(2012),
          D = r(4440),
          P = r(9933),
          x = r(6924),
          L = r(1942),
          M = r(1209),
          _ = r(930),
          F = r(7782),
          j = (0, S.A)(
            '<path d="M50 37.9c-.1-.2-.3-.3-.5-.5-1.1-.8-2.6-.6-3.4.5L32.5 55.2c-.3.4-.5.9-.5 1.4 0 1.3 1.1 2.4 2.5 2.4h27.1c.5 0 1.1-.2 1.5-.5 1.1-.8 1.3-2.3.5-3.3L50 37.9z"/>',
            'CaretUpIcon',
          ),
          R = (0, E.createContext)(null),
          B = r(3438),
          U = '1',
          Y = '2',
          H = { BUY_IMMEDIATELY: 'BUY_IMMEDIATELY', JOIN: 'JOIN', INITIATE: 'INITIATE' },
          V = 864e5,
          q = (0, E.forwardRef)(function (e, t) {
            var n,
              i = e.className,
              l = e.style,
              r = e.ticketsNum,
              o = e.onSODrawerFooterBtnClick,
              c = (0, E.useState)(!1),
              s = a(c, 2),
              u = s[0],
              d = s[1],
              m = null != (n = (0, E.useContext)(R)) ? n : {},
              v = m.priceInfo,
              p = m.buttonText,
              f = m.openPriceDetailDrawer,
              y = void 0 !== f && f,
              h = m.spliceOrderAction,
              g = m.showPriceDrawer,
              b = m.currentFlowItem,
              I = void 0 === b ? {} : b,
              N = m.currentActivity,
              k = void 0 === N ? {} : N,
              S = m.closePriceDetailDrawer,
              C = (0, E.useMemo)(
                function () {
                  var e = null != v ? v : {},
                    t = e.price,
                    n = e.priceDesc,
                    a = e.soPrice,
                    i = e.soPriceDesc
                  return h === H.BUY_IMMEDIATELY ? { price: t, priceDesc: n } : { price: a, priceDesc: i }
                },
                [h, v],
              )
            return E.createElement(
              'div',
              { className: (0, w.A)('bui-so-footer', i), style: l, ref: t },
              E.createElement(
                'div',
                { className: 'price-wrapper' },
                (null == C ? void 0 : C.price) >= 0 &&
                  E.createElement(
                    'div',
                    {
                      className: 'price-info',
                      onClick: function () {
                        y ? S() : g()
                      },
                    },
                    E.createElement('span', { className: 'price-icon' }, '￥'),
                    E.createElement('span', { className: 'price-num' }, C.price / 100),
                    E.createElement(
                      'div',
                      { className: 'price-detail' },
                      '价格明细',
                      y
                        ? E.createElement(F.A, { className: 'icon-arrow', htmlColor: '#000' })
                        : E.createElement(j, { className: 'icon-arrow', htmlColor: '#000' }),
                    ),
                  ),
                E.createElement('div', { className: 'price-desc' }, null == C ? void 0 : C.priceDesc),
              ),
              E.createElement(
                A.A,
                {
                  Component: M.A,
                  className: (0, w.A)('so-submit-btn', 'log-btn-'.concat(h)),
                  color: 'primary',
                  variant: 'contained',
                  onClick: o,
                  disabled: u,
                },
                (function () {
                  if (h === H.BUY_IMMEDIATELY) return E.createElement('span', { className: 'so-submit-btn-text' }, p)
                  if (h === H.INITIATE)
                    return r < +k.joinRateLimit
                      ? E.createElement(
                          E.Fragment,
                          null,
                          E.createElement('span', { className: 'so-submit-btn-text' }, '发起拼单'),
                          E.createElement(
                            'span',
                            { className: 'so-submit-btn-desc' },
                            '还差',
                            +k.joinRateLimit - r,
                            '张拼成',
                          ),
                        )
                      : E.createElement('span', { className: 'so-submit-btn-text' }, '直接拼成')
                  var e = '直接拼成'
                  return (
                    u ? (e = '超时失败') : r < +I.joinRateLimit - +I.currentTickets && (e = '加入拼单'),
                    E.createElement(
                      E.Fragment,
                      null,
                      E.createElement('span', { className: 'so-submit-btn-text' }, e),
                      !u &&
                        E.createElement(B.A, {
                          className: 'so-footer-countdown',
                          remainingTime: +I.flowEndTime - Date.now() + I.offsetTimestamp,
                          onFinish: function () {
                            d(!0)
                          },
                          renderContent: function (e) {
                            return (function (e) {
                              var t = e.total,
                                n = e.days,
                                a = e.hoursWithDays,
                                i = e.minutes,
                                l = e.seconds,
                                r = t > V
                              return E.createElement(
                                E.Fragment,
                                null,
                                '还剩',
                                r &&
                                  E.createElement(
                                    E.Fragment,
                                    null,
                                    E.createElement('span', { className: 'countdown-time' }, parseInt(n, 10)),
                                    '天',
                                  ),
                                E.createElement('span', { className: (0, w.A)('countdown-time', { ml: r }) }, a),
                                ':',
                                E.createElement('span', { className: 'countdown-time' }, i),
                                ':',
                                E.createElement('span', { className: 'countdown-time' }, l),
                              )
                            })({
                              total: e.total,
                              days: e.days,
                              hoursWithDays: e.hoursWithDays,
                              minutes: e.minutes,
                              seconds: e.seconds,
                            })
                          },
                        }),
                    )
                  )
                })(),
              ),
            )
          })
        q.displayName = 'SpliceOrderFooter'
        var z = q,
          J = 'bui-dm-peice-detail-drawer',
          G = E.forwardRef(function (e, t) {
            var n,
              a = e.theme,
              i = e.className,
              l = e.style,
              r = e.detailData,
              o = e.price,
              c = e.priceDesc,
              s = e.footerStatus,
              u = void 0 === s ? { status: 'disable', statusText: '' } : s,
              d = e.openDrawer,
              m = e.buttonText,
              v = e.closeDrawer,
              p = e.onConfirm,
              f = e.onModuleIconClk,
              y = null != (n = (0, E.useContext)(R)) ? n : {},
              h = y.userTicketsNum,
              g = y.selectedSku,
              b = (0, E.useMemo)(
                function () {
                  return 'true' === (null == g ? void 0 : g.enableSpliceOrder)
                },
                [g],
              )
            return r
              ? E.createElement(
                  x.A,
                  { open: d, onClose: v, className: (0, w.A)(J, i, a), style: l, ref: t },
                  E.createElement(
                    'div',
                    { className: 'dm-price-drawer-container' },
                    E.createElement(
                      'div',
                      { className: 'dm-price-drawer-content' },
                      E.createElement(
                        'div',
                        { className: 'dm-price-drawer-header' },
                        E.createElement(
                          'div',
                          { className: 'dm-price-drawer-contain' },
                          E.createElement('span', { className: 'dm-price-drawer-title' }, '价格明细'),
                          E.createElement(
                            'span',
                            { className: 'dm-price-drawer-subtitle' },
                            '实际优惠金额以下单页为准',
                          ),
                        ),
                        E.createElement(
                          'div',
                          {
                            className: 'dm-price-drawer-closebtn',
                            onClick: function (e) {
                              return null == v ? void 0 : v(e)
                            },
                          },
                          E.createElement(_.A, { className: 'dm-price-drawer-close' }),
                        ),
                      ),
                      ((null == r ? void 0 : r.calculateModuleVOS) || []).map(function (e, t) {
                        return E.createElement(
                          'div',
                          { key: t, className: 'footer-bar-module' },
                          E.createElement(
                            'div',
                            { className: 'footer-bar-module-sum' },
                            E.createElement(
                              'div',
                              { className: 'footer-bar-module-title' },
                              null == e ? void 0 : e.moduleTitle,
                              (null == e ? void 0 : e.moduleIconURL) &&
                                E.createElement(
                                  'div',
                                  {
                                    onClick: function (t) {
                                      null == f || f(t, null == e ? void 0 : e.iconJumpURL)
                                    },
                                  },
                                  E.createElement(L.A, {
                                    className: 'drawer-question-icon',
                                    src: (0, P.zp)({ url: e.moduleIconURL }),
                                    lazy: !0,
                                  }),
                                ),
                            ),
                            E.createElement(
                              'div',
                              {
                                className: (0, w.A)('footer-bar-module-total', {
                                  'module-total-primary': 1 !== (null == e ? void 0 : e.moduleType),
                                }),
                              },
                              null == e ? void 0 : e.moduleTotalAmtText,
                            ),
                          ),
                          ((null == e ? void 0 : e.moduleDetailVOList) || []).map(function (e, t) {
                            return E.createElement(
                              'div',
                              { key: t, className: 'footer-bar-module-detail' },
                              E.createElement(
                                'div',
                                { className: 'footer-bar-module-subtitle' },
                                (null == e ? void 0 : e.skuName) &&
                                  E.createElement('span', { className: 'sku-name' }, e.skuName),
                                (null == e ? void 0 : e.count) &&
                                  E.createElement('span', { className: 'sku-count' }, ' x ', e.count),
                              ),
                              E.createElement(
                                'div',
                                { className: 'footer-bar-module-amount' },
                                null == e ? void 0 : e.amountText,
                              ),
                            )
                          }),
                        )
                      }),
                    ),
                    b
                      ? E.createElement(z, {
                          className: 'dm-price-drawer-bottom',
                          ticketsNum: h,
                          onSODrawerFooterBtnClick: p,
                        })
                      : E.createElement(
                          'div',
                          { className: 'dm-price-drawer-bottom' },
                          E.createElement(
                            'div',
                            { className: 'price-container' },
                            +o >= 0 && !(null == u ? void 0 : u.statusText)
                              ? E.createElement(
                                  E.Fragment,
                                  null,
                                  E.createElement(
                                    'div',
                                    {
                                      className: 'price-top',
                                      onClick: function () {
                                        return null == v ? void 0 : v()
                                      },
                                    },
                                    E.createElement('span', { className: 'price-text' }, '￥', +o / 100),
                                    E.createElement(
                                      'div',
                                      { className: 'price-detail' },
                                      '价格明细',
                                      d
                                        ? E.createElement(F.A, { className: 'icon-arrow' })
                                        : E.createElement(j, { className: 'icon-arrow' }),
                                    ),
                                  ),
                                  c && E.createElement('div', { className: 'price-desc' }, c),
                                )
                              : E.createElement(
                                  'div',
                                  { className: 'price-desc' },
                                  (null == u ? void 0 : u.statusText) || '',
                                ),
                          ),
                          E.createElement(
                            M.A,
                            {
                              className: (0, w.A)('dm-price-detail-btn', null == u ? void 0 : u.status),
                              disabled: 'disable' === (null == u ? void 0 : u.status),
                              variant: 'contained',
                              onClick: function (e) {
                                return null == p ? void 0 : p(e)
                              },
                            },
                            m,
                          ),
                        ),
                  ),
                )
              : null
          })
        G.displayName = 'DmPriceDetailDrawer'
        var K = G,
          W = r(4539),
          Q = r(127)
        function X(e) {
          return (e = ''.concat(e))[1] ? e : '0'.concat(e)
        }
        function Z(e) {
          var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '-'
          if (!e) return ''
          var n = e.substring(0, 4),
            a = e.substring(4, 6),
            i = e.substring(6, 8)
          return ''.concat(n).concat(t).concat(a).concat(t).concat(i)
        }
        function $(e, t) {
          if (e && e.length) {
            var n = [],
              i = {},
              l = [],
              r = '',
              o = t && t.length > 4 ? t.substring(0, 4) : ''
            return (
              (r = o),
              e.forEach(function (e) {
                var t = e.split(/\s/),
                  o = (e = a(t, 1)[0]).split('-'),
                  c = a(o, 3),
                  s = c[0],
                  u = c[1],
                  d = c[2],
                  m = ''.concat(s, '-').concat(u)
                if (!i[m]) {
                  n.push(m), (i[m] = [])
                  var v = ''
                    .concat(s !== r ? ''.concat(s, '年') : '')
                    .concat((null == u ? void 0 : u.startsWith('0')) ? u.charAt(1) : u, '月')
                  l.push({ key: m, text: v }), (r = s)
                }
                i[m].push(''.concat(d))
              }),
              [n, i, l]
            )
          }
        }
        function ee(e) {
          var t = new Date(e),
            n = t.getFullYear(),
            a = t.getMonth()
          0 === a && ((a = 12), (n -= 1))
          var i = new Date(n, a, 0)
          return ''.concat(i.getFullYear(), '-').concat(X(i.getMonth() + 1))
        }
        function te(e) {
          var t = new Date(e),
            n = t.getFullYear(),
            a = t.getMonth() + 1
          12 === a && ((a = 0), (n += 1))
          var i = new Date(n, a + 1, 0)
          return ''.concat(i.getFullYear(), '-').concat(X(i.getMonth() + 1))
        }
        var ne = r(5885),
          ae = r(4545),
          ie = (function (e) {
            return (e.TIMES = 'times'), (e.SKU = 'sku'), e
          })(ie || {}),
          le = Object.defineProperty,
          re = Object.getOwnPropertySymbols,
          oe = Object.prototype.hasOwnProperty,
          ce = Object.prototype.propertyIsEnumerable,
          se = function (e, t, n) {
            return t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          ue = 'bui-dm-sku-card-title',
          de = E.forwardRef(function (e, t) {
            var a = e,
              i = a.className,
              l = a.style,
              r = a.title,
              o = a.subtitle,
              c = a.perform,
              s = void 0 === c ? {} : c,
              u = a.type,
              d = a.isFavorPage,
              m = a.rightText,
              v = a.rightTextType,
              p = a.hasNotice,
              f = a.expLogClasses,
              y = a.onTitleRightClick,
              h = a.onNoticeClick,
              g = a.showSeatImg,
              b = (function (e, t) {
                var a = {}
                for (var i in e) oe.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && re) {
                  var l,
                    r = n(re(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && ce.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(a, [
                'className',
                'style',
                'title',
                'subtitle',
                'perform',
                'type',
                'isFavorPage',
                'rightText',
                'rightTextType',
                'hasNotice',
                'expLogClasses',
                'onTitleRightClick',
                'onNoticeClick',
                'showSeatImg',
              ]),
              I = (0, E.useMemo)(
                function () {
                  var e = []
                  return (
                    u === ie.SKU && (null == s ? void 0 : s.seatImg) && e.push({ text: '座位图', type: 2 }),
                    m && ('more' === v ? e.push({ text: m, type: 1 }) : e.push({ text: '优惠说明', type: 1 })),
                    p && e.push({ text: '演出变更', type: 3 }),
                    e
                  )
                },
                [u, s, m, p],
              )
            return E.createElement(
              'div',
              (function (e, t) {
                for (var a in t || (t = {})) oe.call(t, a) && se(e, a, t[a])
                if (re) {
                  var i,
                    l = n(re(t))
                  try {
                    for (l.s(); !(i = l.n()).done; ) {
                      a = i.value
                      ce.call(t, a) && se(e, a, t[a])
                    }
                  } catch (e) {
                    l.e(e)
                  } finally {
                    l.f()
                  }
                }
                return e
              })({ className: (0, w.A)(ue, i), style: l, ref: t }, b),
              E.createElement(
                'div',
                { className: 'title-left' },
                E.createElement(
                  'div',
                  { className: (0, w.A)('title-text', 'title-text-' + (d ? 'large' : 'normal')) },
                  r,
                ),
                o && E.createElement('div', { className: 'title-subtext' }, o),
              ),
              E.createElement(
                'div',
                { className: 'title-right' },
                I.map(function (e, t) {
                  return E.createElement(
                    'div',
                    { className: 'title-right-item', key: t },
                    0 !== t && E.createElement(ae.A, { className: 'split-line' }),
                    3 === e.type && E.createElement(ne.A, { className: 'i-info', htmlColor: '#31a9f5' }),
                    E.createElement(
                      'div',
                      {
                        className:
                          1 === (null == e ? void 0 : e.type) ? (null == f ? void 0 : f.discountDescDrawerBtn) : '',
                        onClick: function (t) {
                          return (function (e, t) {
                            I &&
                              I.length &&
                              (1 !== Number(null == t ? void 0 : t.type)
                                ? 2 !== Number(null == t ? void 0 : t.type)
                                  ? 3 === Number(null == t ? void 0 : t.type) && (null == h || h(e))
                                  : null == g || g(e, s)
                                : null == y || y(e))
                          })(t, e)
                        },
                      },
                      e.text,
                    ),
                  )
                }),
              ),
            )
          })
        de.displayName = 'DmSkuCardTitle'
        var me = de,
          ve = (0, S.A)(
            '<path d="M72.707 5.75A13.533 13.533 0 0 1 86.25 19.304v53.404A13.514 13.514 0 0 1 72.71 86.25h-53.4A13.535 13.535 0 0 1 5.75 72.708V19.304A13.556 13.556 0 0 1 19.31 5.753h.02l3.697.025a2.873 2.873 0 0 1-.02 5.746h-.02l-3.686-.027a7.814 7.814 0 0 0-7.805 7.807v9.454l.01.003 68.999.002v-9.46a7.774 7.774 0 0 0-2.278-5.524 7.743 7.743 0 0 0-5.515-2.289h-3.605a2.869 2.869 0 1 1-.003-5.737ZM11.506 34.507h-.01v38.2c0 2.086.815 4.041 2.29 5.516a7.76 7.76 0 0 0 5.525 2.281h53.4a7.737 7.737 0 0 0 5.513-2.281 7.74 7.74 0 0 0 2.28-5.515V34.509l-68.998-.002Zm46.955 6.205c1.094 0 2.092.613 2.576 1.58a2.805 2.805 0 0 1-.296 2.98c-.014.016-.715.927-1.755 2.477l-.256.384a72.424 72.424 0 0 0-3.528 5.927c-1.583 2.98-2.84 5.884-3.736 8.633-1.09 3.341-1.642 6.444-1.642 9.222 0 1.566-1.286 2.835-2.872 2.835-1.586 0-2.871-1.27-2.871-2.835 0-3.386.652-7.093 1.937-11.019 1.005-3.068 2.4-6.286 4.148-9.564a77.957 77.957 0 0 1 2.88-4.95h-17.59c-1.587 0-2.873-1.27-2.873-2.835 0-1.566 1.286-2.835 2.872-2.835ZM38.327 3.833c1.586 0 2.872 1.27 2.872 2.835v5.675c0 .752-.303 1.473-.842 2.004a2.89 2.89 0 0 1-2.03.83c-1.586 0-2.872-1.269-2.872-2.834V6.668c0-1.565 1.286-2.835 2.872-2.835Zm17.263 0c1.586 0 2.871 1.27 2.871 2.835v5.675c0 .752-.302 1.473-.84 2.004a2.89 2.89 0 0 1-2.031.83c-1.586 0-2.872-1.269-2.872-2.834V6.668c0-1.565 1.286-2.835 2.872-2.835Z"/>',
            'DateOutlinedIcon',
          ),
          pe = r(2499),
          fe = Object.defineProperty,
          ye = Object.getOwnPropertySymbols,
          he = Object.prototype.hasOwnProperty,
          ge = Object.prototype.propertyIsEnumerable,
          be = function (e, t, n) {
            return t in e ? fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Ee = 'bui-dm-tour',
          Ie = E.forwardRef(function (e, t) {
            var i = e,
              l = i.initId,
              r = i.sectionItems,
              o = i.size,
              c = void 0 === o ? 'medium' : o,
              s = i.defaultIntoViewId,
              u = i.className,
              d = i.style,
              m = i.switchTourClk,
              v = (function (e, t) {
                var a = {}
                for (var i in e) he.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && ye) {
                  var l,
                    r = n(ye(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && ge.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(i, ['initId', 'sectionItems', 'size', 'defaultIntoViewId', 'className', 'style', 'switchTourClk']),
              p = (0, E.useState)(l),
              f = a(p, 2),
              y = f[0],
              h = f[1],
              g = void 0 !== s ? s : l
            return (null == r ? void 0 : r.length)
              ? E.createElement(
                  pe.A,
                  (function (e, t) {
                    for (var a in t || (t = {})) he.call(t, a) && be(e, a, t[a])
                    if (ye) {
                      var i,
                        l = n(ye(t))
                      try {
                        for (l.s(); !(i = l.n()).done; ) {
                          a = i.value
                          ge.call(t, a) && be(e, a, t[a])
                        }
                      } catch (e) {
                        l.e(e)
                      } finally {
                        l.f()
                      }
                    }
                    return e
                  })(
                    {
                      ref: t,
                      scrollX: !0,
                      className: (0, w.A)(Ee, 'tph', ''.concat(Ee, '-').concat(c), u),
                      scrollIntoView: 'card-'.concat(g),
                      scrollIntoViewAlignment: 'center',
                      style: d,
                    },
                    v,
                  ),
                  r.map(function (e) {
                    var t = (null == e ? void 0 : e.title) || (null == e ? void 0 : e.cityName),
                      n = (null == e ? void 0 : e.subTitle) || (null == e ? void 0 : e.showTime)
                    return E.createElement(
                      'div',
                      {
                        key: 'card-'.concat(e.itemId),
                        id: 'card-'.concat(e.itemId),
                        className: 'tour-card',
                        onClick: function (t) {
                          return (function (e, t) {
                            var n = t.itemId
                            y === n || (null == t ? void 0 : t.disabled) || (h(n), m && m(e, t))
                          })(t, e)
                        },
                      },
                      E.createElement(
                        'div',
                        { className: 'tour-item-cell' },
                        E.createElement(
                          'div',
                          {
                            className: (0, w.A)(
                              'tour-item',
                              y === e.itemId ? 'tour-item-selected' : 'tour-item-normal',
                              {
                                'over-no-hide': !!(null == e ? void 0 : e.titleDesc),
                                'tour-item-full': 2 === r.length,
                                'tour-item-disabled': null == e ? void 0 : e.disabled,
                              },
                            ),
                          },
                          E.createElement(
                            'div',
                            {
                              className: (0, w.A)(
                                'tour-item-title',
                                'tour-item-title-'.concat(null == e ? void 0 : e.titleDescMode),
                              ),
                            },
                            (null == e ? void 0 : e.hideTitle) ? '' : t,
                          ),
                          (null == e ? void 0 : e.titleDesc) &&
                            E.createElement(
                              'div',
                              {
                                className: (0, w.A)(
                                  'item-title-desc',
                                  'tour-title-desc-'.concat(null == e ? void 0 : e.titleDescMode),
                                  { 'item-title-desc-notitle': null == e ? void 0 : e.hideTitle },
                                ),
                              },
                              null == e ? void 0 : e.titleDesc,
                            ),
                          E.createElement(
                            'div',
                            {
                              className: (0, w.A)(
                                'tour-item-subtitle',
                                'tour-item-subtitle-'.concat(null == e ? void 0 : e.titleDescMode),
                              ),
                            },
                            n,
                          ),
                        ),
                      ),
                    )
                  }),
                )
              : null
          })
        Ie.displayName = 'DmTour'
        var Ne = Ie
        r(7800)
        var ke = Object.defineProperty,
          Ae = Object.getOwnPropertySymbols,
          we = Object.prototype.hasOwnProperty,
          Se = Object.prototype.propertyIsEnumerable,
          Ce = function (e, t, n) {
            return t in e ? ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Te = function (e, t) {
            for (var a in t || (t = {})) we.call(t, a) && Ce(e, a, t[a])
            if (Ae) {
              var i,
                l = n(Ae(t))
              try {
                for (l.s(); !(i = l.n()).done; ) {
                  a = i.value
                  Se.call(t, a) && Ce(e, a, t[a])
                }
              } catch (e) {
                l.e(e)
              } finally {
                l.f()
              }
            }
            return e
          },
          Oe = 'bui-dm-sku-week-selector',
          De = E.forwardRef(function (e, t) {
            var i,
              l,
              r = e,
              o = r.className,
              c = r.style,
              s = r.theme,
              u = r.dateList,
              d = r.choosedDate,
              m = r.toggleCalendar,
              v = r.handleItemClick,
              p = (function (e, t) {
                var a = {}
                for (var i in e) we.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && Ae) {
                  var l,
                    r = n(Ae(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && Se.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(r, ['className', 'style', 'theme', 'dateList', 'choosedDate', 'toggleCalendar', 'handleItemClick']),
              f = (0, E.useState)(0),
              y = a(f, 2),
              h = y[0],
              g = y[1],
              b = u.map(function (e, t) {
                var n,
                  a,
                  i,
                  l,
                  r,
                  o,
                  c,
                  s = new Date(null == e ? void 0 : e.date),
                  u = ''.concat(X(s.getMonth() + 1), '.').concat(X(s.getDate())),
                  d = (function (e) {
                    e =
                      e.includes('.') || e.includes('-')
                        ? e.replace(/\./g, '-').replace(/\s+/, 'T')
                        : Number.parseInt(e, 10)
                    var t = new Date(e)
                    return '周'.concat(['日', '一', '二', '三', '四', '五', '六'][t.getUTCDay()])
                  })(null == e ? void 0 : e.date),
                  m =
                    !(null == (n = null == e ? void 0 : e.label) ? void 0 : n.text) ||
                    ((null == (a = null == e ? void 0 : e.label) ? void 0 : a.text) &&
                      (null == (i = null == e ? void 0 : e.label) ? void 0 : i.fixed))
                      ? d
                      : ''
                return Te(
                  {
                    index: t,
                    itemId: null == e ? void 0 : e.date,
                    title: m,
                    subTitle: u,
                    titleDesc: null == (l = null == e ? void 0 : e.label) ? void 0 : l.text,
                    disabled: !(null == e ? void 0 : e.enable),
                    titleDescMode: (null == (r = null == e ? void 0 : e.label) ? void 0 : r.fixed)
                      ? null == (o = null == e ? void 0 : e.label)
                        ? void 0
                        : o.fixedStatus
                      : 'normal',
                    hideTitle: '1' === (null == (c = null == e ? void 0 : e.label) ? void 0 : c.tag),
                  },
                  e,
                )
              }),
              I = b.find(function (e) {
                return (null == e ? void 0 : e.date) === d
              }),
              N = I ? (null == I ? void 0 : I.itemId) : null == (i = null == b ? void 0 : b[3]) ? void 0 : i.itemId,
              k = null == (l = null == b ? void 0 : b[1]) ? void 0 : l.itemId
            return (
              (0, E.useEffect)(function () {
                g(68)
              }, []),
              E.createElement(
                'div',
                Te({ className: (0, w.A)(Oe, o, s), style: c, ref: t }, p),
                E.createElement(Ne, {
                  className: 'week-date',
                  initId: N,
                  size: 'small',
                  defaultIntoViewId: k,
                  sectionItems: b,
                  switchTourClk: function (e, t) {
                    null == v || v(e, t)
                  },
                  scrollLeft: h,
                }),
                E.createElement(
                  'div',
                  { className: 'calendar-btn', onClick: m },
                  E.createElement(ve, { className: 'calendar-icon' }),
                  '展开',
                  E.createElement(F.A, { className: 'arrow-down-icon' }),
                ),
              )
            )
          })
        De.displayName = 'DmSkuWeekSelector'
        var Pe = De,
          xe = (function (e) {
            return (
              (e[(e.CUSTOM = 0)] = 'CUSTOM'),
              (e[(e.OFFLINE = 1)] = 'OFFLINE'),
              (e[(e.OFFLINEDATE = 2)] = 'OFFLINEDATE'),
              (e[(e.LOCAL_LIFE = 3)] = 'LOCAL_LIFE'),
              (e[(e.TMALL_SHOP = 4)] = 'TMALL_SHOP'),
              e
            )
          })(xe || {}),
          Le = (function (e) {
            return (e[(e.TIMES = 2)] = 'TIMES'), (e[(e.SKU = 3)] = 'SKU'), (e[(e.DATE = 4)] = 'DATE'), e
          })(Le || {}),
          Me = (function (e) {
            return (e.BUY = '1'), (e.FAVOR = '2'), e
          })(Me || {}),
          _e = (function (e) {
            return (
              (e[(e.DISABLED = -1)] = 'DISABLED'),
              (e[(e.NORMAL = 0)] = 'NORMAL'),
              (e[(e.NO_GOODS = 1)] = 'NO_GOODS'),
              (e[(e.START_SALE = 2)] = 'START_SALE'),
              e
            )
          })(_e || {}),
          Fe = (function (e) {
            return (e.WILL_BUY = 'willBuy'), (e.SALE_TIP = 'saleTip'), e
          })(Fe || {}),
          je = Object.defineProperty,
          Re = Object.getOwnPropertySymbols,
          Be = Object.prototype.hasOwnProperty,
          Ue = Object.prototype.propertyIsEnumerable,
          Ye = function (e, t, n) {
            return t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          He = 'bui-dm-sku-calendar',
          Ve = E.forwardRef(function (e, t) {
            var i = e,
              l = i.className,
              r = i.style,
              o = i.theme,
              c = i.whereUse,
              s = i.perform,
              u = i.performCalendar,
              d = i.holidayCalendar,
              m = i.isFavorPage,
              v = i.expLogClasses,
              p = i.headerProps,
              f = p.title,
              y = p.subtitle,
              h = p.showSeatImg,
              g = i.calendarProps,
              b = g.dateList,
              I = g.initCheckedDate,
              N = g.onDateItemClicked,
              k = (function (e, t) {
                var a = {}
                for (var i in e) Be.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && Re) {
                  var l,
                    r = n(Re(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && Ue.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(i, [
                'className',
                'style',
                'theme',
                'whereUse',
                'perform',
                'performCalendar',
                'holidayCalendar',
                'isFavorPage',
                'expLogClasses',
                'headerProps',
                'calendarProps',
              ]),
              A = (0, E.useState)(I),
              S = a(A, 2),
              C = S[0],
              T = S[1],
              O = (0, E.useState)(!0),
              D = a(O, 2),
              P = D[0],
              x = D[1],
              L = (0, E.useState)([]),
              M = a(L, 2),
              _ = M[0],
              F = M[1],
              j = (0, E.useState)([]),
              R = a(j, 2),
              B = R[0],
              U = R[1],
              Y = (0, E.useState)([]),
              H = a(Y, 2),
              V = H[0],
              q = H[1],
              z = (0, E.useMemo)(
                function () {
                  return null == u ? void 0 : u.today
                },
                [u],
              ),
              J = (0, E.useMemo)(
                function () {
                  return (function (e) {
                    var t = {}
                    if (!e) return t
                    var a,
                      i = n(e)
                    try {
                      for (i.s(); !(a = i.n()).done; ) {
                        var l = a.value
                        t[Z(l.dateStr)] = l.desc
                      }
                    } catch (e) {
                      i.e(e)
                    } finally {
                      i.f()
                    }
                    return t
                  })(d)
                },
                [d],
              ),
              G = (0, E.useMemo)(
                function () {
                  var e
                  return (0, W.A)(
                    (0, W.A)(null == (e = null == _ ? void 0 : _[0]) ? void 0 : e.key)
                      .startOf('month')
                      .format('YYYYMMDD'),
                  ).toDate()
                },
                [_],
              ),
              K = (0, E.useMemo)(
                function () {
                  var e
                  return (0, W.A)(
                    (0, W.A)(null == (e = null == _ ? void 0 : _[_.length - 1]) ? void 0 : e.key)
                      .endOf('month')
                      .format('YYYYMMDD'),
                  ).toDate()
                },
                [_],
              ),
              ne = function (e) {
                var t = e.currentMonthName,
                  n = e.optionalDate,
                  i = e.optionalMonthDayMapping
                if (t) {
                  var l = (function (e) {
                    var t,
                      n,
                      i,
                      l,
                      r = []
                    if ((e && ((t = /^(\d{4})-(\d{2}).*$/.exec(e)), (i = (n = a(t, 3))[1]), (l = n[2])), !i)) {
                      var o = new Date()
                      ;(i = o.getFullYear()), (l = o.getMonth() + 1)
                    }
                    for (
                      var c = new Date(i, l, 0),
                        s = c.getDay(),
                        u = c.getDate(),
                        d = ''.concat(i, '-').concat(X(l), '-'),
                        m = 1;
                      m <= u;
                      m++
                    )
                      r.push({ date: d + X(m), showDay: m })
                    return (
                      6 !== s &&
                        (r = r.concat(
                          (function (e) {
                            var t = []
                            return (t.length = e), t.fill(null), t
                          })(6 - s),
                        )),
                      r.forEach(function (e, t) {
                        e && (e.weekdayindex = t)
                      }),
                      r
                    )
                  })((t = t.slice(0, 7)))
                  '{}' === JSON.stringify(i) && ae()
                  var r = null == i ? void 0 : i[t]
                  return (
                    l.forEach(function (e) {
                      if (
                        (e && J && (e.bottomTag = null == J ? void 0 : J[e.date]),
                        e && r && r.includes(X(null == e ? void 0 : e.showDay)))
                      ) {
                        var a = n.findIndex(function (n) {
                            return n.split(/\s/)[0] === ''.concat(t, '-').concat(X(e.showDay))
                          }),
                          i = null == b ? void 0 : b[a]
                        ;(e.realIndex = a),
                          (e.enable = null == i ? void 0 : i.enable),
                          (e.raw = i),
                          (e.label = null == i ? void 0 : i.label)
                      }
                    }),
                    l
                  )
                }
              },
              ae = function (e) {
                var t = b.map(function (e) {
                    return e.date
                  }),
                  n = $(t, z)
                if (n) {
                  var i = a(n, 3),
                    l = i[0],
                    r = i[1],
                    o = i[2],
                    s = -1
                  if (I && 0 !== I.length) {
                    var u = I.substring(0, 7)
                    s = l.findIndex(function (e) {
                      return e === u
                    })
                  } else {
                    var d = e
                      ? l.findIndex(function (t) {
                          return t === (0, W.A)(e).format('YYYY-MM')
                        })
                      : 0
                    s = d >= 0 ? d : 0
                  }
                  var m = null == l ? void 0 : l[s],
                    v = ne({ currentMonthName: m, optionalDate: t, optionalMonthDayMapping: r }) || []
                  if (I) {
                    var p = v.find(function (e) {
                      return (null == e ? void 0 : e.date) === I
                    })
                    T(null == p ? void 0 : p.date), x(c === xe.OFFLINEDATE), le(null == p ? void 0 : p.date)
                  } else {
                    var f = v.find(function (t) {
                      return (null == t ? void 0 : t.date) === (0, W.A)(e).format('YYYY-MM-DD')
                    })
                    f && (T(null == f ? void 0 : f.date), le(null == f ? void 0 : f.date))
                  }
                  U(v), F(o)
                }
              }
            ;(0, E.useEffect)(
              function () {
                b.length &&
                  (ae(),
                  (null == s ? void 0 : s.dateKey) &&
                    setTimeout(function () {
                      ae(s.dateKey)
                    }, 500))
              },
              [b, I, null == s ? void 0 : s.dateKey],
            )
            var ie = function (e, t) {
                var n
                ;(null == t ? void 0 : t.enable) &&
                  (x(c === xe.OFFLINEDATE),
                  T(null == t ? void 0 : t.date),
                  N(e, {
                    id: null == (n = null == t ? void 0 : t.raw) ? void 0 : n.id,
                    index: null == t ? void 0 : t.realIndex,
                    date: C,
                  }))
              },
              le = function (e) {
                if (e) {
                  var t = b.map(function (e) {
                      return e.date
                    }),
                    n = $(t, z)
                  if (n) {
                    var i = a(n, 2)[1],
                      l = ne({ currentMonthName: e, optionalDate: t, optionalMonthDayMapping: i }) || [],
                      r = (l || []).findIndex(function (t) {
                        return (null == t ? void 0 : t.date) === e
                      }),
                      o = []
                    o.push(null == l ? void 0 : l[r])
                    var c = l,
                      s = r,
                      u = 1,
                      d = 1,
                      m = 3
                    do {
                      var v = null == c ? void 0 : c[s - u]
                      if (s - u > -1) v ? (o.unshift(v), (u += 1)) : (s = u - 1)
                      else {
                        var p = ee(e)
                        ;(s = (c = (
                          ne({ currentMonthName: p, optionalDate: t, optionalMonthDayMapping: i }) || []
                        ).filter(function (e) {
                          return e
                        })).length),
                          (m = 4 - u),
                          (u = 1)
                      }
                    } while (u <= m)
                    ;(m = 3), (c = l), (s = r)
                    do {
                      var f = null == c ? void 0 : c[s + d]
                      if (s + d < c.length) f ? (o.push(f), (d += 1)) : (s = c.length + 1)
                      else {
                        var y = te(e)
                        ;(c = (ne({ currentMonthName: y, optionalDate: t, optionalMonthDayMapping: i }) || []).filter(
                          function (e) {
                            return e
                          },
                        )),
                          (s = -1),
                          (m = 4 - d),
                          (d = 1)
                      }
                    } while (d <= m)
                    q(o)
                  }
                }
              }
            return E.createElement(
              'div',
              (function (e, t) {
                for (var a in t || (t = {})) Be.call(t, a) && Ye(e, a, t[a])
                if (Re) {
                  var i,
                    l = n(Re(t))
                  try {
                    for (l.s(); !(i = l.n()).done; ) {
                      a = i.value
                      Ue.call(t, a) && Ye(e, a, t[a])
                    }
                  } catch (e) {
                    l.e(e)
                  } finally {
                    l.f()
                  }
                }
                return e
              })({ className: (0, w.A)(He, l, o), style: r, ref: t }, k),
              E.createElement(me, {
                title: f,
                subtitle: y,
                perform: s,
                isFavorPage: m,
                expLogClasses: v,
                showSeatImg: h,
              }),
              P
                ? E.createElement(
                    'div',
                    { className: 'calendar-content' },
                    !!B.length &&
                      E.createElement(Q.A, {
                        mode: 'single',
                        value: C ? (0, W.A)((0, W.A)(C).format('YYYYMMDD')).toDate() : void 0,
                        hideDaysOutsideCurrentMonth: !0,
                        minDate: G,
                        maxDate: K,
                        dateRender: function (e) {
                          var t,
                            n,
                            a = (0, W.A)(null == e ? void 0 : e.day).format('YYYY-MM-DD'),
                            i = B.find(function (e) {
                              return (null == e ? void 0 : e.date) === a
                            }),
                            l = C && (null == i ? void 0 : i.date) === C && !!I
                          return E.createElement(
                            'div',
                            {
                              className: (0, w.A)('day-item', { disable: null == e ? void 0 : e.disabled, start: l }),
                              onClick: function (t) {
                                !(null == e ? void 0 : e.disabled) &&
                                  (function (e, t) {
                                    t && (T(null == t ? void 0 : t.date), ie(e, t), le(null == t ? void 0 : t.date))
                                  })(t, i)
                              },
                            },
                            E.createElement(
                              'div',
                              { className: 'day-item-top' },
                              E.createElement(
                                'div',
                                {
                                  className: (0, w.A)('label-color', {
                                    'label-color-normal': !(null == (t = null == i ? void 0 : i.label)
                                      ? void 0
                                      : t.fixed),
                                  }),
                                },
                                null == (n = null == i ? void 0 : i.label) ? void 0 : n.text,
                              ),
                            ),
                            (null == e ? void 0 : e.day) ? (0, W.A)(null == e ? void 0 : e.day).format('D') : '',
                            (null == i ? void 0 : i.bottomTag) &&
                              E.createElement(
                                'div',
                                { className: 'day-item-bottom' },
                                null == i ? void 0 : i.bottomTag,
                              ),
                          )
                        },
                        disabledDate: function (e) {
                          return !(
                            B.filter(function (e) {
                              return null == e ? void 0 : e.enable
                            }).map(function (e) {
                              return ''.concat(null == e ? void 0 : e.showDay)
                            }) || []
                          ).includes((0, W.A)(e).format('D'))
                        },
                        onMonthChange: function (e, t) {
                          var n = t.month,
                            i = b.map(function (e) {
                              return e.date
                            }),
                            l = $(i, z)
                          if (l) {
                            var r = a(l, 2)[1],
                              o = ne({
                                currentMonthName: (0, W.A)(n).format('YYYY-MM'),
                                optionalDate: i,
                                optionalMonthDayMapping: r,
                              })
                            U(o || [])
                          }
                        },
                      }),
                  )
                : E.createElement(Pe, {
                    theme: o,
                    dateList: V,
                    choosedDate: C,
                    toggleCalendar: function () {
                      x(!P)
                    },
                    handleItemClick: function (e) {
                      var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
                        n = t.index,
                        a = null == V ? void 0 : V[n]
                      if (!n || (null == a ? void 0 : a.enable)) {
                        var i = null == a ? void 0 : a.date
                        ie(e, a), le(i)
                      }
                    },
                  }),
            )
          })
        Ve.displayName = 'DmSkuCalendar'
        var qe = (0, E.memo)(Ve, function (e, t) {
            return JSON.stringify(e) === JSON.stringify(t)
          }),
          ze = r(5837),
          Je = (0, S.A)(
            '<path d="M62.6 11C78.1 11 88 23.4 88 40.1c0 13-11.7 27.2-34.8 43.3-3.1 2.2-7.2 2.2-10.3 0C19.7 67.3 8 53.1 8 40.1 8 23.4 17.9 11 33.4 11c5.6 0 9.4 2 14.6 6.4C53.2 13 57 11 62.6 11zm0 5.9c-3.9 0-6.6 1.4-11 5.2-.2.2-1.4 1.2-1.7 1.4-1.1 1-2.8 1-3.9 0-.3-.3-1.5-1.3-1.7-1.4-4.4-3.7-7.1-5.2-11-5.2C21.6 16.9 14 26.4 14 40c0 10.4 10.6 23.3 32.3 38.3 1 .7 2.4.7 3.4 0C71.4 63.3 82 50.4 82 40c0-13.6-7.6-23.1-19.4-23.1z"/>',
            'HeartOutlinedIcon',
          ),
          Ge = 'DateTimesDefaultKey',
          Ke = 'https://img.alicdn.com/imgextra/i2/O1CN01lk5y5n243wMttsGn3_!!6000000007336-2-tps-36-32.png',
          We = (function (e) {
            return (
              (e.EARLY_BIRD = '1001'),
              (e.WEDNESDAY_HALF = '1004'),
              (e.MEMBER_PRIVILEGES = '1005'),
              (e.SPLICE_ORDER = '1008'),
              e
            )
          })(We || {}),
          Qe = 'https://gw.alicdn.com/imgextra/i2/O1CN01FmiLIT1vx3TQ4alIK_!!6000000006238-2-tps-200-60.png',
          Xe = (function (e) {
            return (
              (e.NORMAL = 'theme-normal'), (e.LOCAL_LIFE = 'theme-local-life'), (e.TMALL_SHOP = 'theme-tmall-shop'), e
            )
          })(Xe || {}),
          Ze = Object.defineProperty,
          $e = Object.getOwnPropertySymbols,
          et = Object.prototype.hasOwnProperty,
          tt = Object.prototype.propertyIsEnumerable,
          nt = function (e, t, n) {
            return t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          at = 'bui-dm-sku-card-item',
          it = E.forwardRef(function (e, t) {
            var i = e,
              l = i.className,
              r = i.style,
              o = i.theme,
              c = i.cardItem,
              s = i.isFavorPage,
              u = i.selectedId,
              d = i.onClickItem,
              m = i.toast,
              v = i.type,
              p = i.timesDesc,
              f = i.hasHolidayStatus,
              y = (function (e, t) {
                var a = {}
                for (var i in e) et.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && $e) {
                  var l,
                    r = n($e(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && tt.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(i, [
                'className',
                'style',
                'theme',
                'cardItem',
                'isFavorPage',
                'selectedId',
                'onClickItem',
                'toast',
                'type',
                'timesDesc',
                'hasHolidayStatus',
              ]),
              h = c.tags,
              g = void 0 === h ? [] : h,
              b = c.name,
              I = void 0 === b ? '' : b,
              N = c.promotionTag,
              k = c.enable,
              A = c.id,
              S = c.remark,
              C = c.toastTips,
              T = c.workStatus,
              O = (0, E.useState)(''),
              D = a(O, 2),
              x = D[0],
              M = D[1],
              _ = o !== Xe.LOCAL_LIFE && o !== Xe.TMALL_SHOP,
              F = (0, E.useMemo)(
                function () {
                  return k ? (A && A == u ? 'selected' : 'normal') : 'disable'
                },
                [c, u],
              )
            return E.createElement(
              'div',
              { className: (0, w.A)('bui-dm-sku-card-item-box', l) },
              E.createElement(
                'div',
                (function (e, t) {
                  for (var a in t || (t = {})) et.call(t, a) && nt(e, a, t[a])
                  if ($e) {
                    var i,
                      l = n($e(t))
                    try {
                      for (l.s(); !(i = l.n()).done; ) {
                        a = i.value
                        tt.call(t, a) && nt(e, a, t[a])
                      }
                    } catch (e) {
                      l.e(e)
                    } finally {
                      l.f()
                    }
                  }
                  return e
                })(
                  {
                    className: (0, w.A)(at, s ? 'item-'.concat(F, '-favor') : 'item-'.concat(F), o),
                    style: r,
                    ref: t,
                    onClick: function (e) {
                      var t, n
                      'normal' === F &&
                        _ &&
                        (M('selected-gif'),
                        setTimeout(function () {
                          M('')
                        }, 800)),
                        (null == N ? void 0 : N.tag) !== We.MEMBER_PRIVILEGES ||
                        '4' !== (null == (t = null == g ? void 0 : g[0]) ? void 0 : t.tag) ||
                        v !== (null == (n = ie) ? void 0 : n.SKU)
                          ? null == d || d(e, c)
                          : C && (null == m || m(C))
                    },
                  },
                  y,
                ),
                E.createElement(
                  'div',
                  { className: 'item-content' },
                  E.createElement(
                    'div',
                    { className: (0, w.A)('item-text', s ? 'item-text-'.concat(F, '-favor') : 'item-text-'.concat(F)) },
                    f && T ? E.createElement('div', { className: 'holiday-status' }, T) : null,
                    I,
                    g.map(function (e, t) {
                      return E.createElement(
                        'div',
                        { className: 'item-tag-outer', key: t },
                        ['redhollow', 'greyhollow'].includes(null == e ? void 0 : e.style) &&
                          E.createElement(
                            'div',
                            {
                              className: (0, w.A)(
                                'item-tag',
                                'item-tag-'.concat(null == e ? void 0 : e.style),
                                'item-tag-'.concat(null == e ? void 0 : e.style, '-').concat(F),
                              ),
                            },
                            null == e ? void 0 : e.text,
                          ),
                      )
                    }),
                    s &&
                      _ &&
                      E.createElement(
                        'div',
                        { className: 'favor-contain' },
                        x
                          ? E.createElement('div', { className: x })
                          : 'selected' === F
                          ? E.createElement(ze.A, { className: 'icon-wanted', htmlColor: '#ff3497' })
                          : E.createElement(Je, { className: 'icon-want', htmlColor: '#3c3f44' }),
                      ),
                  ),
                  (null == N ? void 0 : N.subTagDesc) &&
                    E.createElement(
                      'div',
                      { className: (0, w.A)('ticket-desc', 'ticket-desc-'.concat(F)) },
                      null == N ? void 0 : N.subTagDesc,
                    ),
                ),
                (null == N ? void 0 : N.tag) === We.WEDNESDAY_HALF
                  ? E.createElement(L.A, {
                      className: 'item-promotion-img wednesday-half',
                      src: (0, P.zp)({ url: Qe, width: 50 }),
                      lazy: !0,
                    })
                  : (null == N ? void 0 : N.tag) === We.MEMBER_PRIVILEGES
                  ? E.createElement('div', { className: 'item-member-tag' }, '大麦VIP·专享购')
                  : (null == N ? void 0 : N.tag) === We.SPLICE_ORDER
                  ? E.createElement(
                      'div',
                      { className: 'item-spliceorder-tag' },
                      E.createElement('span', { className: 'tag-prefix' }, null == N ? void 0 : N.tagPrefix),
                      E.createElement('span', { className: 'tag-desc' }, null == N ? void 0 : N.tagDesc),
                    )
                  : E.createElement(
                      'div',
                      { className: (0, w.A)(N ? 'item-promotion-tag' : 'blank-span') },
                      (null == N ? void 0 : N.tagDesc) || '',
                    ),
              ),
              S &&
                'selected' === F &&
                E.createElement('div', { className: (0, w.A)('times-remark', 'times-remark-'.concat(F)) }, S),
              p && 'selected' === F && p !== S && E.createElement('div', { className: 'times-remark times-desc' }, p),
            )
          })
        it.displayName = 'DmSkuCardItem'
        var lt = it,
          rt = Object.defineProperty,
          ot = Object.getOwnPropertySymbols,
          ct = Object.prototype.hasOwnProperty,
          st = Object.prototype.propertyIsEnumerable,
          ut = function (e, t, n) {
            return t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          dt = 'bui-dm-sku-card',
          mt = E.forwardRef(function (e, t) {
            var a = e.className,
              i = e.style,
              l = e.theme,
              r = e.headerProps,
              o = e.contentProps,
              c = e.type,
              s = e.isFavorPage,
              u = e.perform,
              d = e.expLogClasses,
              m = e.toast,
              v = e.flex,
              p = void 0 === v ? 'auto' : v,
              f = e.hasHolidayStatus,
              y = r || {},
              h = y.title,
              g = y.subtitle,
              b = y.hasNotice,
              I = y.rightText,
              N = y.onTitleRightClick,
              k = y.onNoticeClick,
              A = y.showSeatImg,
              S = o || {},
              C = S.itemList,
              T = void 0 === C ? [] : C,
              O = S.selectedItem,
              D = S.handleClickItem,
              P = (function (e, t) {
                var a = {}
                for (var i in e) ct.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && ot) {
                  var l,
                    r = n(ot(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && st.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(S, ['itemList', 'selectedItem', 'handleClickItem']),
              x = (0, E.useMemo)(
                function () {
                  return c === ie.TIMES
                },
                [c],
              ),
              L = (0, E.useMemo)(
                function () {
                  return x && O && u ? (null == u ? void 0 : u.performTimeDetailStr) : ''
                },
                [u, O],
              ),
              M = T.some(function (e) {
                return !!e.workStatus
              })
            return E.createElement(
              'div',
              (function (e, t) {
                for (var a in t || (t = {})) ct.call(t, a) && ut(e, a, t[a])
                if (ot) {
                  var i,
                    l = n(ot(t))
                  try {
                    for (l.s(); !(i = l.n()).done; ) {
                      a = i.value
                      st.call(t, a) && ut(e, a, t[a])
                    }
                  } catch (e) {
                    l.e(e)
                  } finally {
                    l.f()
                  }
                }
                return e
              })({ className: (0, w.A)(dt, a), style: i, ref: t }, P),
              E.createElement(me, {
                type: c,
                title: h,
                subtitle: g,
                rightText: I,
                hasNotice: b,
                perform: u,
                isFavorPage: s,
                expLogClasses: d,
                onTitleRightClick: N,
                onNoticeClick: k,
                showSeatImg: A,
              }),
              E.createElement(
                'div',
                { className: 'sku-content ' + ('column' === p ? 'sku-content-column' : '') },
                f && M
                  ? E.createElement('div', { className: 'sku-rest-tip' }, '*以下日期涉及法定节假日调休，请合理安排时间')
                  : null,
                T.map(function (e, t) {
                  return E.createElement(lt, {
                    key: t + JSON.stringify(e),
                    type: c,
                    theme: l,
                    cardItem: e,
                    isFavorPage: s,
                    selectedId: null == O ? void 0 : O.id,
                    onClickItem: function (t) {
                      e.enable && D(t, e)
                    },
                    toast: m,
                    timesDesc: (null == u ? void 0 : u.performId) === (null == e ? void 0 : e.id) && L,
                    hasHolidayStatus: f,
                  })
                }),
              ),
            )
          })
        mt.displayName = 'DmSkuCard'
        var vt = mt,
          pt = r(9424),
          ft = (0, S.A)(
            '<path d="M48 88c22.1 0 40-17.9 40-40S70.1 8 48 8 8 25.9 8 48s17.9 40 40 40zM33 45h30c1.7 0 3 1.3 3 3s-1.3 3-3 3H33c-1.7 0-3-1.3-3-3s1.3-3 3-3z"/>',
            'BlockCircleFilledIcon',
          ),
          yt = (0, S.A)(
            '<path d="M48 88C25.9 88 8 70.1 8 48S25.9 8 48 8s40 17.9 40 40-17.9 40-40 40zm0-6c18.8 0 34-15.2 34-34S66.8 14 48 14 14 29.2 14 48s15.2 34 34 34zM33 45h30c1.7 0 3 1.3 3 3s-1.3 3-3 3H33c-1.7 0-3-1.3-3-3s1.3-3 3-3z"/>',
            'BlockCircleOutlinedIcon',
          ),
          ht = (0, S.A)(
            '<path d="M48 8c22.1 0 40 17.9 40 40S70.1 88 48 88 8 70.1 8 48 25.9 8 48 8zm0 22c-1.7 0-3 1.3-3 3v12H33c-1.7 0-3 1.3-3 3s1.3 3 3 3h12v12c0 1.7 1.3 3 3 3s3-1.3 3-3V51h12c1.7 0 3-1.3 3-3s-1.3-3-3-3H51V33c0-1.7-1.3-3-3-3z"/>',
            'AddCircleFilledIcon',
          ),
          gt = (0, S.A)(
            '<path d="M48 88C25.9 88 8 70.1 8 48S25.9 8 48 8s40 17.9 40 40-17.9 40-40 40zm0-6c18.8 0 34-15.2 34-34S66.8 14 48 14 14 29.2 14 48s15.2 34 34 34zm3-37h12c1.7 0 3 1.3 3 3s-1.3 3-3 3H51v12c0 1.7-1.3 3-3 3s-3-1.3-3-3V51H33c-1.7 0-3-1.3-3-3s1.3-3 3-3h12V33c0-1.7 1.3-3 3-3s3 1.3 3 3v12z"/>',
            'AddCircleOutlinedIcon',
          ),
          bt = Object.defineProperty,
          Et = Object.getOwnPropertySymbols,
          It = Object.prototype.hasOwnProperty,
          Nt = Object.prototype.propertyIsEnumerable,
          kt = function (e, t, n) {
            return t in e ? bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          At = 'bui-dm-sku-counter',
          wt = E.forwardRef(function (e, i) {
            var l = e,
              r = l.className,
              o = l.style,
              c = l.theme,
              s = l.selectedTimes,
              u = l.selectedSku,
              d = l.toast,
              m = l.handleTotalChange,
              v = l.onClickServiceFee,
              p = (function (e, t) {
                var a = {}
                for (var i in e) It.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && Et) {
                  var l,
                    r = n(Et(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && Nt.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(l, [
                'className',
                'style',
                'theme',
                'selectedTimes',
                'selectedSku',
                'toast',
                'handleTotalChange',
                'onClickServiceFee',
              ]),
              f = (0, E.useState)(),
              y = a(f, 2),
              h = y[0],
              g = y[1],
              b = (0, E.useState)(-1),
              I = a(b, 2),
              N = I[0],
              k = I[1],
              A = (0, E.useState)(-1),
              S = a(A, 2),
              C = S[0],
              T = S[1],
              O = (0, E.useState)(1),
              D = a(O, 2),
              P = D[0],
              x = D[1],
              M = (0, E.useState)(1),
              _ = a(M, 2),
              F = _[0],
              j = _[1],
              R = (0, E.useState)(0),
              B = a(R, 2),
              U = B[0],
              Y = B[1],
              H = (0, E.useState)(!1),
              V = a(H, 2),
              q = V[0],
              z = V[1],
              J = (0, E.useState)(''),
              G = a(J, 2),
              K = G[0],
              W = G[1],
              Q = (0, E.useState)(1),
              X = a(Q, 2),
              Z = X[0],
              $ = X[1],
              ee = (0, E.useMemo)(
                function () {
                  return P > 1
                },
                [P],
              ),
              te = (0, E.useMemo)(
                function () {
                  return (P + 1) * Z <= F
                },
                [P, Z, F],
              ),
              ne =
                t(t(t({}, Xe.NORMAL, 'rgb(234,68,132)'), Xe.LOCAL_LIFE, '#FF5456'), Xe.TMALL_SHOP, 'rgb(255,121,69)')[
                  c
                ] || 'rgb(234,68,132)'
            ;(0, E.useEffect)(
              function () {
                if (!s || !u) return k(0), j(0), Y(0), void x(-1)
                var e = u.singleLimit,
                  t = u.singlePerOrderLimit,
                  n = u.limit,
                  a = u.amount,
                  i = u.enable,
                  l = u.packagesFlag,
                  r = u.auctionUnit,
                  o = u.sfpt,
                  c = u.promotionTag
                g(o),
                  T(t && '1005' === (null == c ? void 0 : c.tag) ? t : -1),
                  k(t && '1005' === (null == c ? void 0 : c.tag) ? t : e),
                  j(n),
                  Y(a),
                  x(i && a > 0 ? 1 : 0),
                  z(l),
                  $(r),
                  W(c ? c.tag : -1),
                  l && r > n && (null == d || d('余票不足'), x(0))
              },
              [s, u],
            )
            return E.createElement(
              'div',
              (function (e, t) {
                console.log(e, t);
                for (var a in t || (t = {})) It.call(t, a) && kt(e, a, t[a])
                if (Et) {
                  var i,
                    l = n(Et(t))
                  try {
                    for (l.s(); !(i = l.n()).done; ) {
                      a = i.value
                      Nt.call(t, a) && kt(e, a, t[a])
                    }
                  } catch (e) {
                    l.e(e)
                  } finally {
                    l.f()
                  }
                }
                return e
              })({ className: (0, w.A)(At, r), style: o, ref: i }, p),
              E.createElement(
                'div',
                { className: 'number-tips' },
                E.createElement('div', { className: 'title-text' }, '数量'),
                E.createElement(
                  'div',
                  { className: 'title-subtext' },
                  N >= 0 &&
                    E.createElement(
                      'div',
                      { className: 'title-subtext-section' },
                      '每笔订单限购'.concat('1005' === K ? C : N, '张'),
                    ),
                  void 0 !== h &&
                    E.createElement(
                      E.Fragment,
                      null,
                      N >= 0 && E.createElement('div', { className: 'title-subtext-section' }, '，'),
                      E.createElement(
                        'div',
                        {
                          className: 'title-subtext-section',
                          onClick: function (e) {
                            return null == v ? void 0 : v(e)
                          },
                        },
                        '每张服务费',
                        h,
                        '元',
                        E.createElement(L.A, {
                          src: 'https://gw.alicdn.com/imgextra/i4/O1CN01Qt0LHF1mZqr4E60Ur_!!6000000004969-2-tps-56-56.png',
                          className: 'agreement-icon',
                          lazy: !0,
                        }),
                      ),
                    ),
                ),
              ),
              E.createElement(
                'div',
                { className: 'number-edit' },
                E.createElement(
                  'div',
                  {
                    className: 'number-edit-bg',
                    onClick: function (e) {
                      if (ee && P > 1) {
                        var t = P - 1
                        x(t), null == m || m(e, t)
                      }
                    },
                  },
                  ee
                    ? E.createElement(ft, { className: (0, w.A)('icon-couter-btn minus-enable'), htmlColor: ne })
                    : E.createElement(yt, {
                        className: (0, w.A)('icon-couter-btn minus-disable'),
                        htmlColor: '#8b949e',
                      }),
                ),
                E.createElement(
                  'div',
                  { className: 'number-info' },
                  E.createElement('div', { className: 'total' }, P, q ? '套' : '张'),
                  q && E.createElement('div', { className: 'total-detail' }, '/共', P * Z, '张'),
                ),
                E.createElement(
                  'div',
                  {
                    className: 'number-edit-bg',
                    onClick: function (e) {
                      if (!te) {
                        if (0 === U || (q && Z > F)) return void (null == d || d('余票不足'))
                        if ((P + 1) * Z > N) return void (null == d || d('最多购买'.concat(N, '张')))
                        if (P + 1 > U) return void (null == d || d('余票不足'))
                      }
                      if (P < F) {
                        var t = P + 1
                        x(t), null == m || m(e, t)
                      }
                    },
                  },
                  te
                    ? E.createElement(ht, { className: 'icon-couter-btn plus-enable', htmlColor: ne })
                    : E.createElement(gt, { className: 'icon-couter-btn plus-disable', htmlColor: '#8b949e' }),
                ),
              ),
            )
          })
        wt.displayName = 'DmSkuCounter'
        var St = (0, E.memo)(wt, function (e, t) {
            return JSON.stringify(e) === JSON.stringify(t)
          }),
          Ct = r(985),
          Tt = r(6868),
          Ot = r(2760),
          Dt = r(905),
          Pt = Object.defineProperty,
          xt = Object.defineProperties,
          Lt = Object.getOwnPropertyDescriptors,
          Mt = Object.getOwnPropertySymbols,
          _t = Object.prototype.hasOwnProperty,
          Ft = Object.prototype.propertyIsEnumerable,
          jt = function (e, t, n) {
            return t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Rt = function (e, t) {
            for (var a in t || (t = {})) _t.call(t, a) && jt(e, a, t[a])
            if (Mt) {
              var i,
                l = n(Mt(t))
              try {
                for (l.s(); !(i = l.n()).done; ) {
                  a = i.value
                  Ft.call(t, a) && jt(e, a, t[a])
                }
              } catch (e) {
                l.e(e)
              } finally {
                l.f()
              }
            }
            return e
          },
          Bt = function (e, t) {
            return xt(e, Lt(t))
          },
          Ut = 'bui-avatar-group',
          Yt = E.forwardRef(function (e, t) {
            var a = e,
              i = a.className,
              l = a.maxCount,
              r = a.variant,
              o = a.spacing,
              c = a.size,
              s = a.orientation,
              u = a.children,
              d = a.onClick,
              m = (function (e, t) {
                var a = {}
                for (var i in e) _t.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && Mt) {
                  var l,
                    r = n(Mt(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && Ft.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(a, ['className', 'maxCount', 'variant', 'spacing', 'size', 'orientation', 'children', 'onClick']),
              v = E.Children.count(u),
              p = v - Number(l),
              f = u
                ? E.Children.map(u, function (e, t) {
                    var n, a
                    if (l && t > Number(l)) return null
                    var i = 'right' === s ? -t + v : t
                    if (l && t === Number(l))
                      return E.createElement(
                        Dt.A,
                        {
                          variant: r,
                          size: c,
                          className: ''.concat(Ut, '-extra'),
                          style: { marginLeft: '-'.concat(o), zIndex: i },
                          onClick: d,
                        },
                        '+'.concat(p),
                      )
                    var u = {
                      className: (0, w.A)(
                        ''.concat(Ut, '-avatar'),
                        null == (n = null == e ? void 0 : e.props) ? void 0 : n.className,
                      ),
                      style: Bt(Rt({}, null == (a = null == e ? void 0 : e.props) ? void 0 : a.style), {
                        marginLeft: '-'.concat(o),
                        zIndex: i,
                      }),
                      size: c,
                      variant: r,
                    }
                    return E.isValidElement(e) ? (0, E.cloneElement)(e, Rt({}, u)) : e
                  })
                : ''
            return f ? E.createElement('div', Rt({ className: (0, w.A)(Ut, i), ref: t }, m), f) : null
          })
        ;(Yt.displayName = 'BuiAvatarGroup'), (Yt.defaultProps = { size: 'medium', orientation: 'right' })
        var Ht = Yt,
          Vt = (0, E.forwardRef)(function (t, n) {
            var i,
              l = t.className,
              r = t.style,
              o = t.selectedSku,
              c = (o || {}).spliceOrderInfo,
              s = void 0 === c ? {} : c,
              u = s.joinTip,
              d = s.spliceOrderList,
              m = void 0 === d ? [] : d,
              v = (0, E.useState)([]),
              p = a(v, 2),
              f = p[0],
              y = p[1],
              h = null != (i = (0, E.useContext)(R)) ? i : {},
              g = h.onClickQuickJoinTeams,
              b = h.onClickQuickJoinTeam
            ;(0, E.useEffect)(
              function () {
                var e = m.reduce(function (e, t) {
                  var n = null != t ? t : {},
                    a = n.flowList,
                    i = void 0 === a ? [] : a,
                    l = n.ruleId,
                    r = n.spliceOrderPrice,
                    o = n.originalPrice,
                    c = i
                      .map(function (e) {
                        if (
                          ((e.ruleId = l),
                          (e.spliceOrderPrice = r),
                          (e.originalPrice = o),
                          (e.offsetTimestamp = Date.now() - Number(e.systemTime)),
                          +e.systemTime < +e.flowEndTime)
                        )
                          return e
                      })
                      .filter(function (e) {
                        return !!e
                      })
                  return e.concat(c)
                }, [])
                y(e)
              },
              [o],
            )
            return (null == f ? void 0 : f.length)
              ? E.createElement(
                  A.A,
                  { className: (0, w.A)('bui-so-quick-entry', l), style: r, ref: n },
                  E.createElement(
                    A.A,
                    { className: 'quick-entry-title', onClick: g },
                    E.createElement('div', { className: 'title-text' }, u),
                    E.createElement(T.A, { className: 'arrow-right', htmlColor: '#3C3F44' }),
                  ),
                  E.createElement(
                    Tt.A,
                    { className: 'quick-entry-swiper tph', autoplay: !0, circular: !0, vertical: !0, interval: 5e3 },
                    null == f
                      ? void 0
                      : f.map(function (t) {
                          return E.createElement(
                            Ot.A,
                            { key: t.flowId, className: 'swiper-item tph' },
                            E.createElement(
                              'div',
                              { className: 'team-info' },
                              E.createElement(
                                Ht,
                                null,
                                E.createElement(Dt.A, {
                                  src: (0, P.zp)({ url: null == t ? void 0 : t.userAvatar, width: 40, height: 40 }),
                                }),
                                E.createElement(Dt.A, {
                                  src: 'https://gw.alicdn.com/imgextra/i2/O1CN01sPlczu1QbIoLHes8M_!!6000000001994-2-tps-87-87.png',
                                }),
                              ),
                              E.createElement(
                                'div',
                                { className: 'order-price' },
                                '拼成',
                                E.createElement('span', { className: 'price' }, '¥', +t.spliceOrderPrice / 100, '/张'),
                                E.createElement('span', { className: 'origin-price' }, '¥', +t.originalPrice / 100),
                              ),
                            ),
                            E.createElement(
                              'div',
                              { className: 'operate-area' },
                              E.createElement(
                                'div',
                                { className: 'remain' },
                                E.createElement(
                                  'div',
                                  { className: 'remain-info' },
                                  '还差',
                                  E.createElement(
                                    'span',
                                    { className: 'highlight-text' },
                                    +t.joinRateLimit - +t.currentTickets,
                                  ),
                                  '张票',
                                ),
                                E.createElement(B.A, {
                                  className: 'countdown',
                                  remainingTime: +t.flowEndTime - Date.now() + t.offsetTimestamp,
                                  onFinish: function () {
                                    !(function (t) {
                                      var n = f.findIndex(function (e) {
                                        return e.flowId === t.flowId
                                      })
                                      f.splice(n, 1), y(e(f))
                                    })(t)
                                  },
                                  renderContent: function (e) {
                                    return (function (e) {
                                      var t = e.total,
                                        n = e.days,
                                        a = e.hoursWithDays,
                                        i = e.minutes,
                                        l = e.seconds,
                                        r = t > V
                                      return E.createElement(
                                        E.Fragment,
                                        null,
                                        r &&
                                          E.createElement(
                                            E.Fragment,
                                            null,
                                            E.createElement('span', { className: 'countdown-time' }, parseInt(n, 10)),
                                            '天',
                                          ),
                                        E.createElement(
                                          'span',
                                          { className: (0, w.A)('countdown-time', { ml: r }) },
                                          a,
                                        ),
                                        ':',
                                        E.createElement('span', { className: 'countdown-time' }, i),
                                        ':',
                                        E.createElement('span', { className: 'countdown-time' }, l),
                                      )
                                    })({
                                      total: e.total,
                                      days: e.days,
                                      hoursWithDays: e.hoursWithDays,
                                      minutes: e.minutes,
                                      seconds: e.seconds,
                                    })
                                  },
                                }),
                              ),
                              E.createElement(
                                A.A,
                                {
                                  Component: M.A,
                                  className: 'join-quick-btn',
                                  color: 'primary',
                                  onClick: function () {
                                    !(function (e) {
                                      var t = m.find(function (t) {
                                        return t.ruleId === e.ruleId
                                      })
                                      null == b || b({ curActivity: t, team: e, offsetTimestamp: e.offsetTimestamp })
                                    })(t)
                                  },
                                  dynamicData: { flow_id: t.flowId },
                                },
                                '加入拼单',
                              ),
                            ),
                          )
                        }),
                  ),
                )
              : null
          })
        Vt.displayName = 'QuickEntryCard'
        var qt = Vt,
          zt = Object.defineProperty,
          Jt = Object.getOwnPropertySymbols,
          Gt = Object.prototype.hasOwnProperty,
          Kt = Object.prototype.propertyIsEnumerable,
          Wt = function (e, t, n) {
            return t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Qt = 'bui-dm-sku-footer',
          Xt = E.forwardRef(function (e, t) {
            var i,
              l,
              r,
              o,
              c,
              s,
              u = e,
              d = u.className,
              m = u.style,
              v = u.theme,
              p = u.isFavorPage,
              f = u.skuPreview,
              y = u.priceInfo,
              h = u.buttonStatus,
              g = u.buttonText,
              b = u.buttonSubText,
              I = u.selectedTimes,
              N = u.selectedSku,
              k = u.showDetail,
              S = u.expLogClasses,
              C = u.toast,
              T = u.onBuyAction,
              O = u.showPriceDrawer,
              D = u.handleTotalChange,
              P = u.onClickServiceFee,
              x = u.pagePropsSendExp,
              L = u.pagePropsSendClk,
              _ = u.onBuyImmediately,
              R = u.onInitiateSpliceOrder,
              B = (function (e, t) {
                var a = {}
                for (var i in e) Gt.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && Jt) {
                  var l,
                    r = n(Jt(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && Kt.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(u, [
                'className',
                'style',
                'theme',
                'isFavorPage',
                'skuPreview',
                'priceInfo',
                'buttonStatus',
                'buttonText',
                'buttonSubText',
                'selectedTimes',
                'selectedSku',
                'showDetail',
                'expLogClasses',
                'toast',
                'onBuyAction',
                'showPriceDrawer',
                'handleTotalChange',
                'onClickServiceFee',
                'pagePropsSendExp',
                'pagePropsSendClk',
                'onBuyImmediately',
                'onInitiateSpliceOrder',
              ]),
              U = y || {},
              Y = U.price,
              H = U.priceDesc,
              V = (0, E.useState)(!1),
              q = a(V, 2),
              z = q[0],
              J = q[1],
              G = (0, E.useMemo)(
                function () {
                  return (
                    !f &&
                    (null == I ? void 0 : I.id) &&
                    (null == N ? void 0 : N.id) &&
                    !(null == I ? void 0 : I.chooseSeat) &&
                    ![_e.DISABLED, _e.NO_GOODS, _e.START_SALE].includes(N.btnType)
                  )
                },
                [N, I, f],
              ),
              K = (0, E.useMemo)(
                function () {
                  return [_e.NO_GOODS, _e.START_SALE].includes(null == N ? void 0 : N.btnType)
                },
                [N],
              ),
              W = (0, E.useMemo)(
                function () {
                  return 'true' === (null == N ? void 0 : N.enableSpliceOrder)
                },
                [N],
              ),
              Q = (0, E.useMemo)(
                function () {
                  var e
                  return 'true' === (null == (e = null == N ? void 0 : N.spliceOrderInfo) ? void 0 : e.canJoin)
                },
                [N],
              )
            ;(0, E.useEffect)(
              function () {
                var e, t, n
                ;(null == (e = null == N ? void 0 : N.skuRemark) ? void 0 : e.notice) &&
                  (null == (n = null == (t = null == N ? void 0 : N.skuRemark) ? void 0 : t.notice)
                    ? void 0
                    : n.length) > 0 &&
                  (null == x || x('/yanchu.bottom_buynotice.exp', { spmC: 'bottom', spmD: 'buynotice' }))
              },
              [N],
            )
            return E.createElement(
              'div',
              (function (e, t) {
                for (var a in t || (t = {})) Gt.call(t, a) && Wt(e, a, t[a])
                if (Jt) {
                  var i,
                    l = n(Jt(t))
                  try {
                    for (l.s(); !(i = l.n()).done; ) {
                      a = i.value
                      Kt.call(t, a) && Wt(e, a, t[a])
                    }
                  } catch (e) {
                    l.e(e)
                  } finally {
                    l.f()
                  }
                }
                return e
              })({ className: (0, w.A)(Qt, d, v), style: m, ref: t }, B),
              (null == (i = null == N ? void 0 : N.skuRemark) ? void 0 : i.notice) &&
                (null == (r = null == (l = null == N ? void 0 : N.skuRemark) ? void 0 : l.notice) ? void 0 : r.length) >
                  0 &&
                E.createElement(
                  E.Fragment,
                  null,
                  E.createElement(
                    'div',
                    {
                      className: 'buy-notice-message',
                      onClick: function () {
                        null == L || L('/yanchu.bottom_buynotice.clk', { spmC: 'bottom', spmD: 'buynotice' }), J(!0)
                      },
                    },
                    E.createElement(
                      'div',
                      { className: 'buy-notice-message-content' },
                      E.createElement(
                        'div',
                        { className: 'buy-notice-message-content-left' },
                        E.createElement('span', { className: 'buy-notice-message-content-title' }, '购买须知'),
                        E.createElement(
                          'span',
                          { className: 'buy-notice-message-content-name' },
                          (null == N ? void 0 : N.name) || '',
                        ),
                      ),
                      E.createElement(pt.A, { className: 'buy-notice-message-content-right', htmlColor: '#0091FF' }),
                    ),
                  ),
                  E.createElement(Ct.A, {
                    open: z,
                    titleName: null == N ? void 0 : N.name,
                    onClose: function () {
                      J(!1)
                    },
                    list: [
                      {
                        title: '购买须知',
                        data:
                          null == (c = (null == (o = null == N ? void 0 : N.skuRemark) ? void 0 : o.notice) || [])
                            ? void 0
                            : c.map(function (e) {
                                return {
                                  icon: e.icon,
                                  imgUrl: '',
                                  tagName: e.title,
                                  tagDesc: e.content,
                                  hideSupportIcon: !0,
                                }
                              }),
                      },
                    ],
                  }),
                ),
              (console.log(G, W, E.createElement(St, {
                theme: v,
                selectedTimes: I,
                selectedSku: N,
                toast: C,
                handleTotalChange: D,
                onClickServiceFee: P,
              }))),
              G &&
                !W &&
                E.createElement(St, {
                  theme: v,
                  selectedTimes: I,
                  selectedSku: N,
                  toast: C,
                  handleTotalChange: D,
                  onClickServiceFee: P,
                }),
              W && Q && !p && E.createElement(qt, { className: 'so-popup-entry', selectedSku: N }),
              E.createElement(
                'div',
                { className: 'sku-footer-bottom' },
                !f &&
                  !K &&
                  !(null == I ? void 0 : I.chooseSeat) &&
                  !W &&
                  E.createElement(
                    'div',
                    { className: 'price-container' },
                    Y >= 0 && 0 === (null == (s = null == h ? void 0 : h.statusText) ? void 0 : s.length)
                      ? E.createElement(
                          'div',
                          { className: 'has-price' },
                          E.createElement(
                            'div',
                            {
                              className: 'price-top',
                              onClick: function (e) {
                                return null == O ? void 0 : O(e)
                              },
                            },
                            E.createElement('div', { className: 'price-text' }, '￥', Y / 100),
                            E.createElement(
                              'div',
                              { className: 'price-detail' },
                              E.createElement(
                                'div',
                                { className: null == S ? void 0 : S.priceDetailDrawerBtn },
                                '价格明细',
                              ),
                              k
                                ? E.createElement(F.A, { className: 'icon-arrow' })
                                : E.createElement(j, { className: 'icon-arrow' }),
                            ),
                          ),
                          (null == H ? void 0 : H.length) > 0 && E.createElement('div', { className: 'price-desc' }, H),
                        )
                      : E.createElement('div', { className: 'price-desc' }, (null == h ? void 0 : h.statusText) || ''),
                  ),
                (function () {
                  var e = !f && !K
                  if (W && e && !p) {
                    var t = (null != N ? N : {}).spliceOrderInfo,
                      n = 'true' === (null == t ? void 0 : t.canInitiate),
                      a = ((null == t ? void 0 : t.spliceOrderList) || []).some(function (e) {
                        var t
                        return !!(null == (t = null == e ? void 0 : e.flowList) ? void 0 : t.length)
                      })
                    return E.createElement(
                      'div',
                      { className: 'splice-order-wrapper' },
                      E.createElement(
                        A.A,
                        {
                          Component: M.A,
                          variant: 'contained',
                          className: 'so-btn create-so-btn',
                          disabled: !n,
                          onClick: R,
                        },
                        (null == t ? void 0 : t.buttonTip) &&
                          n &&
                          !a &&
                          E.createElement('div', { className: 'so-tips' }, t.buttonTip),
                        E.createElement('span', { className: 'btn-text' }, '发起拼单'),
                        E.createElement('span', { className: 'btn-desc' }, null == t ? void 0 : t.buttonText),
                      ),
                      E.createElement(
                        A.A,
                        { Component: M.A, variant: 'contained', className: 'so-btn buy-so-btn', onClick: _ },
                        E.createElement('span', { className: 'btn-text' }, '直接购买'),
                        E.createElement('span', { className: 'btn-desc' }, '最低¥', Y / 100),
                      ),
                    )
                  }
                  return e
                    ? E.createElement(
                        M.A,
                        {
                          className: (0, w.A)(
                            'sku-footer-buy-button',
                            (null == I ? void 0 : I.chooseSeat) ? 'full-width' : 'half-width',
                            null == h ? void 0 : h.status,
                            null == S ? void 0 : S.buyBtn,
                          ),
                          variant: 'contained',
                          disabled: 'disable' === (null == h ? void 0 : h.status),
                          onClick: function (e) {
                            return null == T ? void 0 : T(e)
                          },
                        },
                        g,
                        E.createElement('div', { className: 'sku-footer-buy-button-subtitle' }, b),
                      )
                    : E.createElement(
                        M.A,
                        {
                          className: (0, w.A)(
                            'sku-footer-buy-button full-width',
                            f ? (null == h ? void 0 : h.status) : '',
                            null == S ? void 0 : S.buyBtn,
                          ),
                          variant: 'contained',
                          disabled: !!f && 'disable' === (null == h ? void 0 : h.status),
                          onClick: function (e) {
                            return null == T ? void 0 : T(e)
                          },
                        },
                        g,
                        E.createElement('div', { className: 'sku-footer-buy-button-subtitle' }, b),
                      )
                })(),
              ),
            )
          })
        Xt.displayName = 'DmSkuFooter'
        var Zt = Xt,
          $t = Object.defineProperty,
          en = Object.getOwnPropertySymbols,
          tn = Object.prototype.hasOwnProperty,
          nn = Object.prototype.propertyIsEnumerable,
          an = function (e, t, n) {
            return t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          ln = 'bui-dm-sku-header',
          rn = 'bui-dm-sku-header-favor',
          on = 'bui-dm-sku-header-favor-locallife',
          cn = E.forwardRef(function (e, t) {
            var a = e,
              i = a.className,
              l = a.style,
              r = a.theme,
              o = a.venue,
              c = a.needRemind,
              s = a.basicInfo,
              u = a.isFavorPage,
              d = (function (e, t) {
                var a = {}
                for (var i in e) tn.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && en) {
                  var l,
                    r = n(en(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && nn.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(a, ['className', 'style', 'theme', 'venue', 'needRemind', 'basicInfo', 'isFavorPage']),
              m = (null == o ? void 0 : o.venueCityName) || (null == s ? void 0 : s.cityName),
              v = (null == o ? void 0 : o.venueName) || (null == s ? void 0 : s.venueName)
            return u
              ? E.createElement(
                  'div',
                  (function (e, t) {
                    for (var a in t || (t = {})) tn.call(t, a) && an(e, a, t[a])
                    if (en) {
                      var i,
                        l = n(en(t))
                      try {
                        for (l.s(); !(i = l.n()).done; ) {
                          a = i.value
                          nn.call(t, a) && an(e, a, t[a])
                        }
                      } catch (e) {
                        l.e(e)
                      } finally {
                        l.f()
                      }
                    }
                    return e
                  })({ className: (0, w.A)(r === Xe.LOCAL_LIFE && c ? on : rn, i), style: l, ref: t }, d),
                  E.createElement('div', { className: 'bui-sku-header-circle' }),
                )
              : E.createElement(
                  'div',
                  { className: (0, w.A)(ln, i), style: l, ref: t },
                  E.createElement('div', { className: 'sku-header-title' }, null == s ? void 0 : s.itemTitle),
                  m && v ? E.createElement('div', { className: 'sku-header-venue' }, m, ' | ', v) : null,
                  E.createElement('div', { className: 'bui-sku-header-circle' }),
                )
          })
        cn.displayName = 'DmSkuHeader'
        var sn = cn,
          un = Object.defineProperty,
          dn = Object.getOwnPropertySymbols,
          mn = Object.prototype.hasOwnProperty,
          vn = Object.prototype.propertyIsEnumerable,
          pn = function (e, t, n) {
            return t in e ? un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          fn = 'bui-dm-sku-offline-notimes-tips',
          yn = E.forwardRef(function (e, t) {
            var a = e,
              i = a.className,
              l = a.style,
              r = a.message,
              o = a.onTitleRightClick,
              c = (function (e, t) {
                var a = {}
                for (var i in e) mn.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && dn) {
                  var l,
                    r = n(dn(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && vn.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(a, ['className', 'style', 'message', 'onTitleRightClick'])
            return E.createElement(
              'div',
              (function (e, t) {
                for (var a in t || (t = {})) mn.call(t, a) && pn(e, a, t[a])
                if (dn) {
                  var i,
                    l = n(dn(t))
                  try {
                    for (l.s(); !(i = l.n()).done; ) {
                      a = i.value
                      vn.call(t, a) && pn(e, a, t[a])
                    }
                  } catch (e) {
                    l.e(e)
                  } finally {
                    l.f()
                  }
                }
                return e
              })({ className: (0, w.A)(fn, i), style: l, ref: t }, c),
              E.createElement(me, {
                title: '场次',
                subtitle: '场次时间均为演出当地时间',
                rightText: '更多场次',
                rightTextType: 'more',
                onTitleRightClick: o,
              }),
              E.createElement(
                'div',
                { className: 'notimes-tip-content' },
                E.createElement(L.A, {
                  className: 'notimes-tip-image',
                  fit: 'widthFix',
                  src: 'https://gw.alicdn.com/tfs/TB1JKt3dWWs3KVjSZFxXXaWUXXa-358-184.png',
                  lazy: !0,
                }),
                E.createElement('div', { className: 'notimes-tip-message' }, r),
              ),
            )
          })
        yn.displayName = 'DmSkuOfflineNoTimesTips'
        var hn = yn,
          gn = Object.defineProperty,
          bn = Object.getOwnPropertySymbols,
          En = Object.prototype.hasOwnProperty,
          In = Object.prototype.propertyIsEnumerable,
          Nn = function (e, t, n) {
            return t in e ? gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          kn = 'bui-dm-sku-promotion-desc',
          An = E.forwardRef(function (e, t) {
            var a = e,
              i = a.className,
              l = a.style,
              r = a.promotionDescList,
              o = (function (e, t) {
                var a = {}
                for (var i in e) En.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && bn) {
                  var l,
                    r = n(bn(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && In.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(a, ['className', 'style', 'promotionDescList'])
            return E.createElement(
              'div',
              (function (e, t) {
                for (var a in t || (t = {})) En.call(t, a) && Nn(e, a, t[a])
                if (bn) {
                  var i,
                    l = n(bn(t))
                  try {
                    for (l.s(); !(i = l.n()).done; ) {
                      a = i.value
                      In.call(t, a) && Nn(e, a, t[a])
                    }
                  } catch (e) {
                    l.e(e)
                  } finally {
                    l.f()
                  }
                }
                return e
              })({ className: (0, w.A)(kn, i), style: l, ref: t }, o),
              r.map(function (e, t) {
                return E.createElement(
                  'div',
                  { key: t, className: 'prop-desc-item' },
                  (null == e ? void 0 : e.icon) &&
                    E.createElement('div', {
                      className: 'prop-desc-item-icon',
                      style: { backgroundImage: 'url('.concat(e.icon, ')') },
                    }),
                  E.createElement(
                    'div',
                    { className: (0, w.A)('prop-desc-item-text', e.light ? 'prop-desc-item-text-light' : '') },
                    ((null == e ? void 0 : e.text) || []).map(function (e, t) {
                      return E.createElement('div', { key: t }, e)
                    }),
                  ),
                )
              }),
            )
          })
        An.displayName = 'DmSkuPromotionDesc'
        var wn = An,
          Sn = Object.defineProperty,
          Cn = Object.getOwnPropertySymbols,
          Tn = Object.prototype.hasOwnProperty,
          On = Object.prototype.propertyIsEnumerable,
          Dn = function (e, t, n) {
            return t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Pn = 'bui-dm-sku-wish-heat',
          xn = E.forwardRef(function (e, t) {
            var a = e,
              i = a.className,
              l = a.style,
              r = a.wishHeat,
              o = void 0 === r ? [] : r,
              c = a.selectedSkuId,
              s = (function (e, t) {
                var a = {}
                for (var i in e) Tn.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && Cn) {
                  var l,
                    r = n(Cn(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && On.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(a, ['className', 'style', 'wishHeat', 'selectedSkuId']),
              u = (0, E.useMemo)(
                function () {
                  if (!c) return o
                  return (
                    o.forEach(function (e) {
                      ;(null == e ? void 0 : e.skuId) === c ? u.unshift(e) : u.push(e)
                    }),
                    []
                  )
                },
                [o, c],
              )
            return (null == u ? void 0 : u.length)
              ? E.createElement(
                  'div',
                  (function (e, t) {
                    for (var a in t || (t = {})) Tn.call(t, a) && Dn(e, a, t[a])
                    if (Cn) {
                      var i,
                        l = n(Cn(t))
                      try {
                        for (l.s(); !(i = l.n()).done; ) {
                          a = i.value
                          On.call(t, a) && Dn(e, a, t[a])
                        }
                      } catch (e) {
                        l.e(e)
                      } finally {
                        l.f()
                      }
                    }
                    return e
                  })({ className: (0, w.A)(Pn, i), style: l, ref: t }, s),
                  E.createElement(me, { title: '想看热度', subtitle: '数据动态更新，仅供参考', isFavorPage: !0 }),
                  E.createElement(
                    'div',
                    { className: 'wish-prop-content' },
                    (u || []).map(function (e, t) {
                      return E.createElement(
                        'div',
                        { key: t, className: 'prop-item' },
                        E.createElement(
                          'div',
                          { className: 'prop-item-title' },
                          E.createElement('div', null, null == e ? void 0 : e.priceName),
                          (null == e ? void 0 : e.skuId) === c &&
                            E.createElement(ze.A, { className: 'icon-wanted', htmlColor: '#ff2869' }),
                        ),
                        E.createElement(
                          'div',
                          { className: 'prop-item-heat' },
                          E.createElement('div', {
                            className: (0, w.A)(
                              'prop-item-heat_img',
                              'prop-item-heat_img'.concat(null == e ? void 0 : e.heat),
                            ),
                          }),
                          E.createElement('div', null, null == e ? void 0 : e.heatDesc),
                        ),
                      )
                    }),
                  ),
                )
              : null
          })
        xn.displayName = 'DmSkuWishHeat'
        var Ln = xn,
          Mn = r(5215),
          _n = r(8212),
          Fn = Object.defineProperty,
          jn = Object.getOwnPropertySymbols,
          Rn = Object.prototype.hasOwnProperty,
          Bn = Object.prototype.propertyIsEnumerable,
          Un = function (e, t, n) {
            return t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          }
        function Yn(e) {
          return !(e && e.length > 0)
        }
        function Hn(e) {
          return e ? (-1 === e.indexOf('\n') ? [e] : e.split('\n')) : []
        }
        function Vn(e) {
          var t = []
          if (!e || !e.performCalendar || !e.performCalendar.dateViews) return t
          var a,
            i = e.performCalendar.dateViews,
            l = n(i)
          try {
            for (l.s(); !(a = l.n()).done; ) {
              var r = a.value,
                o = Wn(r)
              t.push({
                id: r.dateId,
                date: Z(r.dateId),
                enable: 'true' === r.buyPermission,
                checked: 'true' === r.checked,
                label: o,
                raw: r,
              })
            }
          } catch (e) {
            l.e(e)
          } finally {
            l.f()
          }
          return t
        }
        function qn(e, t) {
          var a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : []
          if (Yn(e)) return []
          var i,
            l = t[e] || [],
            r = [],
            o = n(l)
          try {
            var c = function () {
              var e = i.value,
                t = e.performId,
                n = e.performName,
                l = 'true' === e.buyPermission,
                o = 'true' === e.salable,
                c = '1' === e.chooseSeatType,
                s = Kn(e.otherTag),
                u = e.promotionTag,
                d = e.mktPromotionTips,
                m = e.dateKey,
                v = 1 == +e.performType,
                p = a.filter(function (t) {
                  return t.dateStr === e.dateKey
                })[0],
                f = ''
              v && 1 === Number(null == p ? void 0 : p.isHoliday)
                ? (f = '休')
                : v && 1 === Number(null == p ? void 0 : p.isWorkDay) && (f = '班'),
                r.push({
                  id: t,
                  name: n,
                  enable: l,
                  salable: o,
                  chooseSeat: c,
                  tags: s,
                  promotionTag: u,
                  mktPromotionTips: d,
                  remark: null == e ? void 0 : e.remark,
                  dateKey: m,
                  workStatus: f,
                })
            }
            for (o.s(); !(i = o.n()).done; ) c()
          } catch (e) {
            o.e(e)
          } finally {
            o.f()
          }
          return r
        }
        function zn(e) {
          var t,
            a,
            i = e.selectedTimesId,
            l = e.perform,
            r = e.whereUse,
            o = e.skuPreview
          if (Yn(i) || !l) return []
          var c,
            s = parseInt(l.limitQuantity, 10),
            u = l.itemLimitPerOrder && parseInt(l.itemLimitPerOrder, 10),
            d = l.skuList || [],
            m = [],
            v = n(d)
          try {
            for (v.s(); !(c = v.n()).done; ) {
              var p = c.value,
                f = Qn(p),
                y = !o && f === _e.NO_GOODS,
                h = [xe.LOCAL_LIFE, xe.TMALL_SHOP].includes(r),
                g = p.skuId,
                b = p.priceId,
                E = p.priceName,
                I = !((h && y) || 'true' !== p.buyPermission || 'true' !== p.clickable),
                N = Number(p.auctionUnit) || 1,
                k = parseInt(p.mq, 10),
                A = Math.min(
                  u && '1005' === (null == (t = null == p ? void 0 : p.promotionTag) ? void 0 : t.tag) ? u : s,
                  k * N,
                ),
                w = p.followRelationTargetType,
                S = Xn(p.mktPromotionText),
                C = Zn(f),
                T = parseFloat(p.dashPrice),
                O = parseFloat(p.price),
                D = 'true' === p.hasPromotion,
                P = 'true' === p.packagesFlag,
                x = p.mktPromotionTips,
                L = p.promotionTag,
                M = p.tips,
                _ = p.sfpt,
                F = Kn(p.otherTag, r),
                j = null == p ? void 0 : p.toastTips
              m.push({
                id: g,
                priceId: b,
                name: E,
                enable: I,
                singleLimit: s,
                singlePerOrderLimit: u,
                limit: A,
                amount: k,
                tags: F,
                btnType: f,
                btnText: C,
                followType: w,
                subTexts: S,
                dashPrice: T,
                price: O,
                promotionTag: L,
                tips: M,
                mktPromotionTips: x,
                hasPromotion: D,
                packagesFlag: P,
                auctionUnit: N,
                sfpt: _,
                toastTips: j,
                skuRemark: { notice: null == (a = null == p ? void 0 : p.remark) ? void 0 : a.notice },
                enableSpliceOrder: null == p ? void 0 : p.enableSpliceOrder,
                spliceOrderInfo: null == p ? void 0 : p.spliceOrderInfo,
              })
            }
          } catch (e) {
            v.e(e)
          } finally {
            v.f()
          }
          return m
        }
        function Jn(e, t) {
          var a,
            i = Yn(t),
            l = n(e)
          try {
            for (l.s(); !(a = l.n()).done; ) {
              var r = a.value
              if (i && r.adviseCheck) return r
              if (!i && r.id === t) return r
            }
          } catch (e) {
            l.e(e)
          } finally {
            l.f()
          }
          return null
        }
        function Gn(e) {
          return e ? e.performZoneNotice : ''
        }
        function Kn(e, t) {
          if (!e) return []
          if (
            (t === xe.TMALL_SHOP && ['1', '5'].includes(null == e ? void 0 : e.tag)) ||
            (t === xe.LOCAL_LIFE && '1' === (null == e ? void 0 : e.tag))
          )
            return []
          var n = e.tagDesc,
            a = 'greyhollow'
          return (
            ('2' !== e.tag && '3' !== e.tag && '5' !== e.tag && '7' !== e.tag) || (a = 'redhollow'),
            [{ text: n, style: a, tag: null == e ? void 0 : e.tag }]
          )
        }
        function Wn(e) {
          var t = e.promotionTag,
            a = e.otherTag || t
          if (!a) return null
          var i = a || {},
            l = i.tagDesc,
            r = !1,
            o = ''
          return (
            1 == +i.tagOrientation && ((r = !0), (o = 'selected')),
            (function (e, t) {
              for (var a in t || (t = {})) Rn.call(t, a) && Un(e, a, t[a])
              if (jn) {
                var i,
                  l = n(jn(t))
                try {
                  for (l.s(); !(i = l.n()).done; ) {
                    a = i.value
                    Bn.call(t, a) && Un(e, a, t[a])
                  }
                } catch (e) {
                  l.e(e)
                } finally {
                  l.f()
                }
              }
              return e
            })(
              { text: l, fixed: r, fixedStatus: o },
              (function (e, t) {
                var a = {}
                for (var i in e) Rn.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && jn) {
                  var l,
                    r = n(jn(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && Bn.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(i, ['tagDesc', 'tagOrientation']),
            )
          )
        }
        function Qn(e) {
          var t = _e.NORMAL
          return '2' === e.frontEndStatus ? (t = _e.NO_GOODS) : '3' === e.frontEndStatus && (t = _e.START_SALE), t
        }
        function Xn(e) {
          var t = []
          if (!e) return t
          var a,
            i = n(e)
          try {
            for (i.s(); !(a = i.n()).done; ) {
              var l = a.value,
                r = ''
              l &&
                (l.priceAfterPromotion && l.priceAfterPromotion.length > 0 && (r += l.priceAfterPromotion),
                l.tag && l.tag.length > 0 && (r.length > 0 ? (r += ' '.concat(l.tag)) : (r += ''.concat(l.tag))),
                l.promotionDesc &&
                  l.promotionDesc.length > 0 &&
                  (r.length > 0 ? (r += ' '.concat(l.promotionDesc)) : (r += ''.concat(l.promotionDesc)))),
                t.push(r)
            }
          } catch (e) {
            i.e(e)
          } finally {
            i.f()
          }
          return t
        }
        function Zn(e) {
          var t = '确定'
          return e === _e.NO_GOODS ? (t = '提交缺货登记') : e === _e.START_SALE && (t = '提交抢票预约'), t
        }
        var $n = r(1378),
          ea = r(6639),
          ta = r(1963),
          na = (0, E.forwardRef)(function (e, t) {
            var n = e.className,
              i = e.style,
              l = e.limit,
              r = e.value,
              o = e.logConfig,
              c = e.maxTickets,
              s = e.onChange,
              u = (0, E.useState)(''),
              d = a(u, 2),
              m = d[0],
              v = d[1],
              p = (0, E.useRef)(!1)
            ;(0, E.useEffect)(function () {
              p.current = r === l
            }, []),
              (0, E.useEffect)(
                function () {
                  var e = ''
                  r <= 1 ? (e = 'min') : r >= l && (e = 'max'), v(e)
                },
                [r, l],
              )
            return l <= 0 || r <= 0
              ? null
              : E.createElement(
                  A.A,
                  { className: (0, w.A)('bui-so-tickets-selector', n), style: i, ref: t },
                  E.createElement(
                    A.A,
                    {
                      className: (0, w.A)('btn-container', null == o ? void 0 : o.decrease),
                      onClick: function (e) {
                        if ('min' !== m && !p.current) {
                          var t = r - 1
                          v(t <= 1 ? 'min' : ''), s(e, { value: t })
                        }
                      },
                    },
                    E.createElement(ft, {
                      className: 'selector-btn',
                      htmlColor: 'min' === m || p.current ? '#9C9CA5' : '#FF4886',
                    }),
                  ),
                  E.createElement('div', { className: 'tickets-num-text' }, r, '张'),
                  E.createElement(
                    A.A,
                    {
                      className: (0, w.A)('btn-container', null == o ? void 0 : o.increase),
                      onClick: function (e) {
                        if ('max' === m || p.current)
                          (0, ta.A)({ message: '最多购买'.concat(l, '张'), position: 'bottom' })
                        else {
                          var t = r + 1
                          v(function (e) {
                            return t >= l ? 'max' : e
                          }),
                            void 0 !== c && t > c
                              ? (0, ta.A)({ message: '余票不足', position: 'bottom' })
                              : s(e, { value: t })
                        }
                      },
                    },
                    E.createElement(ht, {
                      className: 'selector-btn',
                      htmlColor: 'max' === m || p.current ? '#9C9CA5' : '#FF4886',
                    }),
                  ),
                )
          })
        na.displayName = 'TicketsSelector'
        var aa = na,
          ia = r(8641),
          la = (0, E.forwardRef)(function (e, t) {
            var n = e.className,
              i = e.style,
              l = (0, E.useState)([]),
              r = a(l, 2),
              o = r[0],
              c = r[1]
            return (
              (0, E.useEffect)(function () {
                var e
                null == (e = ia.A.mtop) ||
                  e
                    .call({ requestOptions: { api: 'mtop.film.MtopSpliceOrderAPI.getFinishUsers', v: '1.0' } })
                    .then(function (e) {
                      var t, n
                      c(
                        (null == (n = null == (t = null == e ? void 0 : e.data) ? void 0 : t.returnValue)
                          ? void 0
                          : n.finishUserList) || [],
                      )
                    })
                    .catch(function (e) {})
              }, []),
              (null == o ? void 0 : o.length)
                ? E.createElement(
                    Tt.A,
                    {
                      className: (0, w.A)('bui-so-info-swiper', 'tph', n),
                      style: i,
                      ref: t,
                      vertical: !0,
                      autoplay: !0,
                      circular: !0,
                      interval: 1500,
                    },
                    o.map(function (e, t) {
                      return E.createElement(
                        Ot.A,
                        { key: t, className: 'so-info-item tph' },
                        E.createElement(Dt.A, {
                          src: (0, P.zp)({ url: e.userAvatar, width: 50, height: 50, quality: 90 }),
                        }),
                        E.createElement('span', { className: 'info-text' }, e.text),
                      )
                    }),
                  )
                : null
            )
          })
        la.displayName = 'SpliceOrderInfoSwiper'
        var ra = la,
          oa = (0, E.forwardRef)(function (e, t) {
            var n,
              i = e.className,
              l = e.style,
              r = e.open,
              o = e.onClose,
              c = (0, E.useState)(1),
              s = a(c, 2),
              u = s[0],
              d = s[1],
              m = null != (n = (0, E.useContext)(R)) ? n : {},
              v = m.selectedSku,
              p = m.spliceOrderAction,
              f = m.soThroughInfo,
              y = m.currentActivity,
              h = m.handleSODrawerBtnClick,
              g = m.onTotalChange,
              b = m.onClickServiceFee
            ;(0, E.useEffect)(
              function () {
                d(1)
              },
              [r],
            )
            var I = (0, E.useMemo)(
              function () {
                return p === H.BUY_IMMEDIATELY
              },
              [p],
            )
            return E.createElement(
              A.A,
              {
                key: ''.concat(I),
                Component: x.A,
                className: (0, w.A)(
                  'bui-so-confirm-drawer',
                  I ? 'log-confirm-buy-drawer' : 'log-confirm-join-drawer',
                  i,
                ),
                style: l,
                ref: t,
                open: r,
                onClose: o,
                BackdropProps: { onClick: o },
                contentProps: { className: I ? '' : 'drawer-content-bg' },
              },
              r && !I && E.createElement(ra, { className: 'success-swiper' }),
              E.createElement(
                'div',
                { className: 'confirm-header' },
                E.createElement('div', { className: 'confirm-title' }, I ? '直接购买' : '加入拼单'),
                E.createElement(
                  $n.A,
                  {
                    onClick: function (e) {
                      o(e, {})
                    },
                    className: 'close-btn',
                    size: 'large',
                  },
                  E.createElement(ea.A, { className: 'close-icon', htmlColor: 'rgba(0,0,0,0.2)' }),
                ),
              ),
              E.createElement(
                'div',
                { className: 'tickets-num' },
                E.createElement(
                  'div',
                  { className: 'tickets-summary' },
                  E.createElement('div', { className: 'tickets-num-title' }, I ? '数量' : '我要买的票张数'),
                  E.createElement(
                    'div',
                    { className: 'tickets-desc' },
                    I ? '每笔订单限购' : '该拼单限购',
                    null == f ? void 0 : f.joinRateLimit,
                    '张',
                    (null == v ? void 0 : v.sfpt) &&
                      E.createElement(
                        'span',
                        { onClick: b },
                        '，每张服务费',
                        null == v ? void 0 : v.sfpt,
                        '元',
                        E.createElement(L.A, {
                          src: 'https://gw.alicdn.com/imgextra/i4/O1CN01Qt0LHF1mZqr4E60Ur_!!6000000004969-2-tps-56-56.png',
                          lazy: !0,
                        }),
                      ),
                  ),
                ),
                E.createElement(aa, {
                  className: 'num-selector log-selector-confirm',
                  value: u,
                  limit: null == f ? void 0 : f.joinRateLimit,
                  maxTickets: null == f ? void 0 : f.maxTickets,
                  onChange: function (e, t) {
                    var n = t.value
                    d(n),
                      g(e, n, {
                        ruleId: null == y ? void 0 : y.ruleId,
                        spliceOrderPrice: null == y ? void 0 : y.spliceOrderPrice,
                        originalPrice: null == y ? void 0 : y.originalPrice,
                      })
                  },
                  logConfig: { decrease: 'log-decrease-'.concat(p), increase: 'log-increase-'.concat(p) },
                }),
              ),
              E.createElement(z, { ticketsNum: u, onSODrawerFooterBtnClick: h }),
            )
          })
        oa.displayName = 'SpliceOrderConfirmDrawer'
        var ca = oa,
          sa = r(2596),
          ua = r(5718),
          da = (0, E.forwardRef)(function (e, t) {
            var n,
              i,
              l = e.className,
              r = e.style,
              o = e.open,
              c = e.onClose,
              s = (0, E.useState)(),
              u = a(s, 2),
              d = u[0],
              m = u[1],
              v = (0, E.useState)(),
              p = a(v, 2),
              f = p[0],
              y = p[1],
              h = (0, E.useState)(1),
              g = a(h, 2),
              b = g[0],
              I = g[1],
              N = null != (n = (0, E.useContext)(R)) ? n : {},
              k = N.skuProps,
              S = (void 0 === k ? {} : k).itemId,
              C = N.selectedSku,
              T = void 0 === C ? {} : C,
              O = N.soThroughInfo,
              D = N.isPublic,
              P = N.setIsPublic,
              M = N.currentActivity,
              _ = N.handleSODrawerBtnClick,
              F = N.calculatePrice,
              j = N.onTotalChange,
              B = N.onClickSOPriceItem,
              H = N.onClickServiceFee
            ;(0, E.useEffect)(
              function () {
                I(1)
              },
              [f],
            )
            var V = function () {
              m(void 0), y(void 0), I(1), null == c || c()
            }
            ;(0, E.useEffect)(
              function () {
                var e
                o &&
                  (null == (e = ia.A.mtop) ||
                    e
                      .call({
                        requestOptions: {
                          api: 'mtop.damai.spliceorder.create',
                          v: '1.0',
                          data: { itemId: S, skuId: null == T ? void 0 : T.id },
                        },
                      })
                      .then(function (e) {
                        var t,
                          n,
                          a = (null != e ? e : {}).data,
                          i =
                            M &&
                            (null == (t = null == a ? void 0 : a.spliceOrderList)
                              ? void 0
                              : t.find(function (e) {
                                  return (null == e ? void 0 : e.ruleId) === M.ruleId
                                })),
                          l =
                            null == (n = null == a ? void 0 : a.spliceOrderList)
                              ? void 0
                              : n.find(function (e) {
                                  return e.status !== Y
                                }),
                          r = i || l
                        m(a), y(r), null == B || B(r)
                      })
                      .catch(function (e) {
                        ;(0, ta.A)({ message: '小二很忙，请稍后再试吧~' }), V()
                      }))
              },
              [o, null == T ? void 0 : T.id],
            )
            return d
              ? E.createElement(
                  A.A,
                  {
                    Component: x.A,
                    className: (0, w.A)('bui-so-initiate-drawer', l),
                    style: r,
                    ref: t,
                    open: o,
                    onClose: V,
                    contentProps: { className: 'drawer-content-bg' },
                  },
                  o && E.createElement(ra, { className: 'success-swiper' }),
                  E.createElement(
                    'div',
                    { className: 'initiate-header' },
                    E.createElement('div', { className: 'initiate-title' }, '发起拼单'),
                    E.createElement(
                      $n.A,
                      { onClick: V, className: 'close-btn', size: 'large' },
                      E.createElement(ea.A, { className: 'close-icon', htmlColor: 'rgba(0,0,0,0.2)' }),
                    ),
                    E.createElement(L.A, {
                      className: 'so-teach',
                      fit: 'widthFix',
                      src: 'https://gw.alicdn.com/imgextra/i3/O1CN01PsODM71P2CqPKvbtc_!!6000000001782-2-tps-1125-84.png',
                      alt: '拼单指引',
                    }),
                  ),
                  (null == (i = null == d ? void 0 : d.spliceOrderList) ? void 0 : i.length)
                    ? E.createElement(
                        E.Fragment,
                        null,
                        E.createElement(
                          A.A,
                          { Component: pe.A, scrollY: !0, className: 'so-price-wrapper tph' },
                          E.createElement('div', { className: 'so-price-title' }, '选择拼单价'),
                          E.createElement(
                            'div',
                            { className: 'so-price-list' },
                            d.spliceOrderList.map(function (e) {
                              return E.createElement(
                                A.A,
                                {
                                  key: e.ruleId,
                                  className: (0, w.A)('create-price-item', {
                                    'is-active': e.ruleId === (null == f ? void 0 : f.ruleId),
                                    'reduce-price': e.status === U,
                                    'no-tickets': e.status === Y,
                                  }),
                                  onClick: function () {
                                    return (function (e) {
                                      e.status !== Y &&
                                        (y(e),
                                        B(e),
                                        F({
                                          ruleId: e.ruleId,
                                          spliceOrderPrice: e.spliceOrderPrice,
                                          originalPrice: e.originalPrice,
                                        }))
                                    })(e)
                                  },
                                  dynamicData: { price: e.spliceOrderPrice, rule_id: e.ruleId },
                                },
                                E.createElement(
                                  'div',
                                  { className: 'price-item-info' },
                                  E.createElement(
                                    'div',
                                    { className: 'price-info' },
                                    E.createElement(
                                      'div',
                                      { className: 'price-current' },
                                      '￥',
                                      +e.spliceOrderPrice / 100,
                                      '/张',
                                    ),
                                    E.createElement('div', { className: 'price-origin' }, '￥', +e.originalPrice / 100),
                                  ),
                                  (null == e ? void 0 : e.joinRateLimit) &&
                                    E.createElement(
                                      'div',
                                      { className: 'ticket-limit' },
                                      '需拼满',
                                      e.joinRateLimit,
                                      '张',
                                    ),
                                ),
                                (null == e ? void 0 : e.tag) &&
                                  E.createElement(
                                    'div',
                                    {
                                      className: (0, w.A)('price-tag', {
                                        'reduce-price-tag': e.status === U,
                                        'no-tickets-tag': e.status === Y,
                                      }),
                                    },
                                    e.tag,
                                  ),
                              )
                            }),
                          ),
                        ),
                        f
                          ? E.createElement(
                              E.Fragment,
                              null,
                              E.createElement(
                                'div',
                                { className: 'tickets-num' },
                                E.createElement(
                                  'div',
                                  { className: 'tickets-summary' },
                                  E.createElement('div', { className: 'tickets-num-title' }, '我要买的票张数'),
                                  E.createElement(
                                    'div',
                                    { className: 'tickets-desc' },
                                    '该拼单限购',
                                    null == O ? void 0 : O.joinRateLimit,
                                    '张',
                                    (null == T ? void 0 : T.sfpt) &&
                                      E.createElement(
                                        'span',
                                        { onClick: H },
                                        '，每张服务费',
                                        null == T ? void 0 : T.sfpt,
                                        '元',
                                        E.createElement(L.A, {
                                          src: 'https://gw.alicdn.com/imgextra/i4/O1CN01Qt0LHF1mZqr4E60Ur_!!6000000004969-2-tps-56-56.png',
                                          lazy: !0,
                                        }),
                                      ),
                                  ),
                                ),
                                E.createElement(aa, {
                                  className: 'num-selector log-selector-initiate',
                                  value: b,
                                  limit: null == O ? void 0 : O.joinRateLimit,
                                  maxTickets: null == O ? void 0 : O.maxTickets,
                                  onChange: function (e, t) {
                                    var n = t.value
                                    I(n),
                                      j(e, n, {
                                        ruleId: null == f ? void 0 : f.ruleId,
                                        spliceOrderPrice: null == f ? void 0 : f.spliceOrderPrice,
                                        originalPrice: null == f ? void 0 : f.originalPrice,
                                      })
                                  },
                                  logConfig: { decrease: 'log-decrease-initiate', increase: 'log-increase-initiate' },
                                }),
                              ),
                              'true' === (null == d ? void 0 : d.enablePublishSpliceOrder) &&
                                E.createElement(
                                  A.A,
                                  { className: 'so-public-switch' },
                                  E.createElement(
                                    'div',
                                    { className: 'so-public-info' },
                                    E.createElement('div', { className: 'so-public-title' }, '公开拼单'),
                                    E.createElement(
                                      'div',
                                      { className: 'so-public-desc' },
                                      null == d ? void 0 : d.publishSpliceOrderDesc,
                                    ),
                                  ),
                                  E.createElement(sa.A, {
                                    checked: 'true' === D,
                                    value: D,
                                    onChange: function () {
                                      P(function (e) {
                                        return 'false' === e ? 'true' : 'false'
                                      })
                                    },
                                    labelPlacement: 'left',
                                    checkedIcon: E.createElement(ua.A, { htmlColor: '#FF4886' }),
                                  }),
                                ),
                              E.createElement(z, { ticketsNum: b, onSODrawerFooterBtnClick: _ }),
                            )
                          : E.createElement('div', { className: 'so-area-holder' }),
                      )
                    : E.createElement(Mn.A, {
                        theme: 'show',
                        type: 'network',
                        showButton: !1,
                        message: '这里空空如也',
                      }),
                )
              : null
          })
        da.displayName = 'InitiateSpliceOrderDrawer'
        var ma = da,
          va = (0, S.A)(
            '<path d="M48 0c26.5 0 48 21.5 48 48 0 2.2-.1 4.4-.4 6.6-.3 2-2.1 3.4-4 3.1-2-.3-3.4-2.1-3.1-4 .2-1.8.4-3.7.4-5.6C88.8 25.5 70.5 7.2 48 7.2S7.2 25.5 7.2 48 25.5 88.8 48 88.8c1.9 0 3.7-.1 5.6-.4 2-.3 3.8 1.1 4 3.1.3 2-1.1 3.8-3.1 4-2.1.3-4.3.5-6.5.5C21.5 96 0 74.5 0 48S21.5 0 48 0z"/>',
            'LoadingThreeQuartersOutlinedIcon',
          ),
          pa = Object.defineProperty,
          fa = Object.getOwnPropertySymbols,
          ya = Object.prototype.hasOwnProperty,
          ha = Object.prototype.propertyIsEnumerable,
          ga = function (e, t, n) {
            return t in e ? pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          ba = function (e, t) {
            for (var a in t || (t = {})) ya.call(t, a) && ga(e, a, t[a])
            if (fa) {
              var i,
                l = n(fa(t))
              try {
                for (l.s(); !(i = l.n()).done; ) {
                  a = i.value
                  ha.call(t, a) && ga(e, a, t[a])
                }
              } catch (e) {
                l.e(e)
              } finally {
                l.f()
              }
            }
            return e
          },
          Ea = 'bui-loading',
          Ia = E.forwardRef(function (e, t) {
            var a = e,
              i = a.className,
              l = a.icon,
              r = a.IconProps,
              o = a.children,
              c = a.direction,
              s = (function (e, t) {
                var a = {}
                for (var i in e) ya.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && fa) {
                  var l,
                    r = n(fa(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && ha.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(a, ['className', 'icon', 'IconProps', 'children', 'direction'])
            return E.createElement(
              'div',
              ba({ ref: t, className: (0, w.A)(Ea, i, ''.concat(Ea, '-').concat(c)) }, s),
              null != l ? l : E.createElement(va, ba({ className: (0, w.A)(''.concat(Ea, '-icon')) }, r)),
              E.createElement('div', { className: ''.concat(Ea, '-text') }, o),
            )
          })
        ;(Ia.displayName = 'BuiLoading'), (Ia.defaultProps = { direction: 'vertical' })
        var Na = Ia,
          ka = r(3490),
          Aa = r(8367),
          wa = Object.defineProperty,
          Sa = Object.getOwnPropertySymbols,
          Ca = Object.prototype.hasOwnProperty,
          Ta = Object.prototype.propertyIsEnumerable,
          Oa = function (e, t, n) {
            return t in e ? wa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Da = function (e, t) {
            for (var a in t || (t = {})) Ca.call(t, a) && Oa(e, a, t[a])
            if (Sa) {
              var i,
                l = n(Sa(t))
              try {
                for (l.s(); !(i = l.n()).done; ) {
                  a = i.value
                  Ta.call(t, a) && Oa(e, a, t[a])
                }
              } catch (e) {
                l.e(e)
              } finally {
                l.f()
              }
            }
            return e
          },
          Pa = (0, E.forwardRef)(function (e, t) {
            var n,
              i,
              l,
              r,
              o = e.className,
              c = e.style,
              s = e.open,
              u = e.onClose,
              d = e.itemId,
              m = (0, E.useState)({}),
              v = a(m, 2),
              p = v[0],
              f = v[1],
              y = (0, E.useState)([]),
              h = a(y, 2),
              g = h[0],
              b = h[1],
              I = (0, E.useState)(!1),
              N = a(I, 2),
              k = N[0],
              S = N[1],
              C = null != (n = (0, E.useContext)(R)) ? n : {},
              O = C.onClickQuickJoinTeam,
              D = C.selectedSku,
              L = C.onInitiateSpliceOrder,
              _ = C.onClickSOPriceItem,
              F = function () {
                null == u || u(),
                  setTimeout(function () {
                    f({}), b([]), S(!1)
                  }, 300)
              },
              j = function (e) {
                var t
                ;(null == e ? void 0 : e.skuId) &&
                  s &&
                  (S(!0),
                  null == (t = ia.A.mtop) ||
                    t
                      .call({
                        requestOptions: { api: 'mtop.film.MtopSpliceOrderAPI.listSpliceOrder', v: '1.0', data: e },
                      })
                      .then(function (t) {
                        var n,
                          a,
                          i = (null != t ? t : {}).data,
                          l = (null == (n = null == i ? void 0 : i.returnValue) ? void 0 : n.spliceOrderList) || []
                        if (
                          (l.forEach(function (e) {
                            var t
                            null == (t = null == e ? void 0 : e.flowList) ||
                              t.forEach(function (e) {
                                ;(e.offsetTimestamp = Date.now() - Number(e.systemTime)),
                                  +e.systemTime >= +e.flowEndTime && (e._countdownEnd = !0)
                              })
                          }),
                          !(null == e ? void 0 : e.ruleId))
                        ) {
                          b(l)
                          var r = l.find(function (e) {
                            var t
                            return null == (t = null == e ? void 0 : e.flowList) ? void 0 : t.length
                          })
                          return f(r), void _(r)
                        }
                        if (null == (a = null == l ? void 0 : l[0]) ? void 0 : a.ruleId) {
                          b(function (t) {
                            var n = l.find(function (t) {
                              return (null == t ? void 0 : t.ruleId) === e.ruleId
                            })
                            return t.map(function (t) {
                              return t.ruleId === e.ruleId ? n : t
                            })
                          })
                          var o = l.find(function (t) {
                            return (null == t ? void 0 : t.ruleId) === e.ruleId
                          })
                          f(o), _(o)
                        }
                      })
                      .catch(function (e) {})
                      .finally(function () {
                        S(!1)
                      }))
              }
            ;(0, E.useEffect)(
              function () {
                ;(null == D ? void 0 : D.id) && s && j({ skuId: null == D ? void 0 : D.id, itemId: d })
              },
              [s, null == D ? void 0 : D.id],
            )
            var U = function () {
              var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '正在刷新'
              return E.createElement(Na, { className: 'so-loading' }, e, '...')
            }
            return E.createElement(
              A.A,
              {
                Component: x.A,
                className: (0, w.A)('bui-so-join-drawer', o),
                style: c,
                ref: t,
                open: s,
                onClose: F,
                contentProps: { className: 'drawer-content-bg' },
              },
              s && E.createElement(ra, { className: 'success-swiper' }),
              E.createElement(
                'div',
                { className: 'join-header' },
                E.createElement('div', { className: 'join-title' }, '加入拼单'),
                E.createElement(
                  $n.A,
                  { onClick: F, className: 'close-btn', size: 'large' },
                  E.createElement(ea.A, { className: 'close-icon', htmlColor: 'rgba(0,0,0,0.2)' }),
                ),
              ),
              (null == g ? void 0 : g.length)
                ? E.createElement(
                    E.Fragment,
                    null,
                    (null == g ? void 0 : g.length) > 1 &&
                      E.createElement(
                        pe.A,
                        { scrollX: !0, className: 'activity-tabs-wrapper tph' },
                        E.createElement(
                          ka.A,
                          {
                            className: 'activity-wrapper',
                            value: null == p ? void 0 : p.ruleId,
                            onChange: function (e, t) {
                              var n = t.index,
                                a = g.find(function (e) {
                                  return e.ruleId === n
                                })
                              f(a), j({ skuId: null == D ? void 0 : D.id, ruleId: n, itemId: d })
                            },
                          },
                          null == g
                            ? void 0
                            : g.map(function (e) {
                                return E.createElement(
                                  A.A,
                                  {
                                    Component: Aa.A,
                                    key: e.ruleId,
                                    index: e.ruleId,
                                    className: 'activity-tab',
                                    dynamicData: { rule_id: e.ruleId, price: e.spliceOrderPrice },
                                  },
                                  E.createElement('span', { className: 'so-price' }, '¥', +e.spliceOrderPrice / 100),
                                  E.createElement('span', { className: 'so-num' }, '拼满', e.joinRateLimit, '张'),
                                )
                              }),
                        ),
                      ),
                    E.createElement(
                      A.A,
                      { Component: pe.A, scrollY: !0, className: 'so-list tph' },
                      E.createElement('div', { className: 'loading-holder' }),
                      k && U(),
                      null == (i = null == p ? void 0 : p.flowList)
                        ? void 0
                        : i.map(function (e) {
                            return E.createElement(
                              'div',
                              { className: 'so-team', key: e.flowId },
                              E.createElement(
                                'div',
                                { className: 'team-info' },
                                E.createElement(
                                  Ht,
                                  null,
                                  E.createElement(Dt.A, {
                                    src: (0, P.zp)({ url: e.userAvatar, width: 60, height: 60 }),
                                  }),
                                  E.createElement(Dt.A, {
                                    src: 'https://gw.alicdn.com/imgextra/i2/O1CN01sPlczu1QbIoLHes8M_!!6000000001994-2-tps-87-87.png',
                                  }),
                                ),
                                E.createElement(
                                  'div',
                                  { className: 'order-price' },
                                  '拼成',
                                  E.createElement(
                                    'span',
                                    { className: 'price' },
                                    '¥',
                                    +p.spliceOrderPrice / 100,
                                    '/张',
                                  ),
                                  E.createElement('span', { className: 'origin-price' }, '¥', +p.originalPrice / 100),
                                ),
                              ),
                              E.createElement(
                                'div',
                                { className: 'operate-area' },
                                E.createElement(
                                  'div',
                                  { className: 'remain' },
                                  E.createElement(
                                    'div',
                                    { className: 'remain-info' },
                                    '还差',
                                    E.createElement(
                                      'span',
                                      { className: 'highlight-text' },
                                      Number(e.joinRateLimit) - Number(e.currentTickets),
                                    ),
                                    '张票',
                                  ),
                                  E.createElement(B.A, {
                                    className: 'countdown',
                                    remainingTime: +e.flowEndTime - Date.now() + e.offsetTimestamp,
                                    onFinish: function () {
                                      !(function (e) {
                                        var t
                                        null == (t = null == p ? void 0 : p.flowList) ||
                                          t.forEach(function (t) {
                                            t.flowId === e.flowId && (t._countdownEnd = !0)
                                          }),
                                          f(function (e) {
                                            return Da(Da({}, e), p)
                                          })
                                      })(e)
                                    },
                                    renderContent: function (e) {
                                      return (function (e) {
                                        var t = e.total,
                                          n = e.days,
                                          a = e.hoursWithDays,
                                          i = e.minutes,
                                          l = e.seconds,
                                          r = t > V
                                        return E.createElement(
                                          E.Fragment,
                                          null,
                                          r &&
                                            E.createElement(
                                              E.Fragment,
                                              null,
                                              E.createElement('span', { className: 'countdown-time' }, parseInt(n, 10)),
                                              '天',
                                            ),
                                          E.createElement(
                                            'span',
                                            { className: (0, w.A)('countdown-time', { ml: r }) },
                                            a,
                                          ),
                                          ':',
                                          E.createElement('span', { className: 'countdown-time' }, i),
                                          ':',
                                          E.createElement('span', { className: 'countdown-time' }, l),
                                        )
                                      })({
                                        total: e.total,
                                        days: e.days,
                                        hoursWithDays: e.hoursWithDays,
                                        minutes: e.minutes,
                                        seconds: e.seconds,
                                      })
                                    },
                                  }),
                                ),
                                E.createElement(
                                  A.A,
                                  {
                                    Component: M.A,
                                    className: 'join-team-btn',
                                    color: 'primary',
                                    disabled: e._countdownEnd,
                                    onClick: function (t) {
                                      !(function (e, t) {
                                        k || (F(), null == O || O({ curActivity: p, team: t }))
                                      })(0, e)
                                    },
                                    dynamicData: { flow_id: e.flowId },
                                  },
                                  e._countdownEnd ? '超时失败' : '加入拼单',
                                ),
                              ),
                            )
                          }),
                    ),
                    E.createElement(
                      'div',
                      {
                        className: (0, w.A)('join-footer', {
                          'no-team': !(null == (l = null == p ? void 0 : p.flowList) ? void 0 : l.length),
                        }),
                      },
                      'true' === (null == p ? void 0 : p.canCreate)
                        ? E.createElement(
                            A.A,
                            {
                              className: 'create-so-wrapper',
                              onClick: function () {
                                k || (F(), L())
                              },
                            },
                            (null == (r = null == p ? void 0 : p.flowList) ? void 0 : r.length)
                              ? '没有合适的队伍？'
                              : '暂无可加入的队伍，',
                            E.createElement('span', { className: 'create-so-entry' }, '发起拼单'),
                            E.createElement(T.A, { className: 'arrow-right', htmlColor: '#3C3F44' }),
                          )
                        : '暂无可加入的队伍',
                    ),
                  )
                : k
                ? U('加载中')
                : E.createElement(Mn.A, { theme: 'show', type: 'network', showButton: !1, message: '这里空空如也' }),
            )
          })
        Pa.displayName = 'JoinSpliceOrderDrawer'
        var xa = Pa,
          La = function () {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
              t = e.selectedSku,
              n = e.onClickBuyBtn,
              i = e.onTotalChange,
              l = e.calculatePrice,
              r = (0, E.useState)(!1),
              o = a(r, 2),
              c = o[0],
              s = o[1],
              u = (0, E.useState)(!1),
              d = a(u, 2),
              m = d[0],
              v = d[1],
              p = (0, E.useState)(!1),
              f = a(p, 2),
              y = f[0],
              h = f[1],
              g = (0, E.useState)(),
              b = a(g, 2),
              I = b[0],
              N = b[1],
              k = (0, E.useState)(),
              A = a(k, 2),
              w = A[0],
              S = A[1],
              C = (0, E.useState)('true'),
              T = a(C, 2),
              O = T[0],
              D = T[1],
              P = (0, E.useState)(),
              x = a(P, 2),
              L = x[0],
              M = x[1],
              _ = (0, E.useMemo)(
                function () {
                  var e = null == t ? void 0 : t.singleLimit,
                    n = null == t ? void 0 : t.singleLimit
                  if (
                    (I &&
                      ((e = Math.min((null == t ? void 0 : t.singleLimit) || 0, +I.joinRateLimit)),
                      (n = +I.joinRateLimit)),
                    L === H.JOIN && w)
                  ) {
                    var a = +w.joinRateLimit - +w.currentTickets
                    ;(e = Math.min(e, a)), (n = w.joinRateLimit)
                  }
                  return {
                    flowMixId: null == w ? void 0 : w.flowMixId,
                    orderScene: L,
                    openSplice: O,
                    originJoinRateLimit: n,
                    ruleId: null == I ? void 0 : I.ruleId,
                    joinRateLimit: e,
                    maxTickets: null == t ? void 0 : t.limit,
                  }
                },
                [t, L, O, I, w],
              ),
              F = function () {
                M(H.BUY_IMMEDIATELY), h(!0)
              },
              j = function () {
                M(H.INITIATE), v(!0)
              },
              R = function () {
                s(!0)
              },
              B = function (e) {
                var t = e.curActivity,
                  n = e.team
                M(H.JOIN),
                  N(t),
                  S(n),
                  h(!0),
                  l({ ruleId: t.ruleId, spliceOrderPrice: n.spliceOrderPrice, originalPrice: n.originalPrice })
              },
              U = function (e) {
                var n = e || {},
                  a = n.ruleId,
                  l = n.spliceOrderPrice,
                  r = (null == t ? void 0 : t.enable) && (null == t ? void 0 : t.amount) > 0 ? 1 : 0
                i(null, r, { ruleId: a, spliceOrderPrice: l })
              },
              Y = function (e) {
                N(e),
                  U({
                    ruleId: null == e ? void 0 : e.ruleId,
                    spliceOrderPrice: null == e ? void 0 : e.spliceOrderPrice,
                  })
              },
              V = function () {
                U({ ruleId: null == I ? void 0 : I.ruleId, spliceOrderPrice: null == I ? void 0 : I.spliceOrderPrice }),
                  M(void 0),
                  D('true'),
                  N(void 0),
                  S(void 0)
              },
              q = function () {
                V(), h(!1)
              },
              z = function () {
                V(), v(!1)
              },
              J = function () {
                s(!1)
              },
              G = function () {
                s(!1), n({ spliceOrder: _ })
              },
              K = (0, E.useMemo)(
                function () {
                  return {
                    spliceOrderAction: L,
                    currentFlowItem: w,
                    currentActivity: I,
                    soThroughInfo: _,
                    isPublic: O,
                    setIsPublic: D,
                    onClickQuickJoinTeams: R,
                    onClickQuickJoinTeam: B,
                    handleSODrawerBtnClick: G,
                    onClickSOPriceItem: Y,
                    onInitiateSpliceOrder: j,
                  }
                },
                [O, L, w, I, _],
              )
            return {
              spliceOrderAction: L,
              isShowJoinTeamsPopup: c,
              isShowInitiatePopup: m,
              isShowConfirmPopup: y,
              spliceOrderContextValue: K,
              currentFlowItem: w,
              currentActivity: I,
              soThroughInfo: _,
              onBuyImmediately: F,
              onInitiateSpliceOrder: j,
              onClickQuickJoinTeams: R,
              onClickQuickJoinTeam: B,
              closeSpliceOrderConfirmDrawer: q,
              closeInitiateSpliceOrderDrawer: z,
              closeJoinSpliceOrderDrawer: J,
            }
          },
          Ma = Object.defineProperty,
          _a = Object.defineProperties,
          Fa = Object.getOwnPropertyDescriptors,
          ja = Object.getOwnPropertySymbols,
          Ra = Object.prototype.hasOwnProperty,
          Ba = Object.prototype.propertyIsEnumerable,
          Ua = function (e, t, n) {
            return t in e ? Ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Ya = function (e, t) {
            for (var a in t || (t = {})) Ra.call(t, a) && Ua(e, a, t[a])
            if (ja) {
              var i,
                l = n(ja(t))
              try {
                for (l.s(); !(i = l.n()).done; ) {
                  a = i.value
                  Ba.call(t, a) && Ua(e, a, t[a])
                }
              } catch (e) {
                l.e(e)
              } finally {
                l.f()
              }
            }
            return e
          },
          Ha = 'bui-dm-sku-module',
          Va = E.forwardRef(function (e, a) {
            var i,
              l = e,
              r = l.hasBookSkuId,
              o = l.className,
              c = l.style,
              s = l.detailData,
              u = l.skuProps,
              d = l.isFavorPage,
              m = l.selectedTimes,
              v = l.selectedSku,
              p = l.selectedDate,
              f = l.priceInfo,
              y = l.buyInfo,
              h = l.offlineNoFixDateMessage,
              g = l.errorInfo,
              b = l.expLogClasses,
              I = l.openNoticeDrawer,
              N = l.openPriceDetailDrawer,
              k = l.openPromotionDrawer,
              A = l.hasHolidayStatus,
              S = l.userTicketsNum,
              P = l.toast,
              x = l.initPage,
              L = l.onClickBuyBtn,
              M = l.onTotalChange,
              _ = l.onTimesItemClicked,
              F = l.onDateItemClicked,
              j = l.onSkuItemClicked,
              B = l.showSeatImg,
              U = l.calculatePrice,
              Y = l.onTimesRightTitleClick,
              H = l.onSkuRightTitleClick,
              V = l.onNoticeLayerClick,
              q = l.onClickServiceFee,
              z = l.showPriceDrawer,
              J = l.onNoticeDrawerPreviewImage,
              G = l.onPriceDetailDrawerModuleIconClick,
              W = l.closeNoticeDrawer,
              Q = l.closePriceDetailDrawer,
              X = l.closePromotionDrawer,
              Z = l.pagePropsSendClk,
              $ = l.pagePropsSendExp,
              ee = (function (e, t) {
                var a = {}
                for (var i in e) Ra.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i])
                if (null != e && ja) {
                  var l,
                    r = n(ja(e))
                  try {
                    for (r.s(); !(l = r.n()).done; ) {
                      i = l.value
                      t.indexOf(i) < 0 && Ba.call(e, i) && (a[i] = e[i])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return a
              })(l, [
                'hasBookSkuId',
                'className',
                'style',
                'detailData',
                'skuProps',
                'isFavorPage',
                'selectedTimes',
                'selectedSku',
                'selectedDate',
                'priceInfo',
                'buyInfo',
                'offlineNoFixDateMessage',
                'errorInfo',
                'expLogClasses',
                'openNoticeDrawer',
                'openPriceDetailDrawer',
                'openPromotionDrawer',
                'hasHolidayStatus',
                'userTicketsNum',
                'toast',
                'initPage',
                'onClickBuyBtn',
                'onTotalChange',
                'onTimesItemClicked',
                'onDateItemClicked',
                'onSkuItemClicked',
                'showSeatImg',
                'calculatePrice',
                'onTimesRightTitleClick',
                'onSkuRightTitleClick',
                'onNoticeLayerClick',
                'onClickServiceFee',
                'showPriceDrawer',
                'onNoticeDrawerPreviewImage',
                'onPriceDetailDrawerModuleIconClick',
                'closeNoticeDrawer',
                'closePriceDetailDrawer',
                'closePromotionDrawer',
                'pagePropsSendClk',
                'pagePropsSendExp',
              ]),
              te = u || {},
              ne = te.whereUse,
              ae = te.skuPreview,
              le = te.itemId,
              re = te.venue,
              oe = te.needRemind,
              ce = te.isZLife,
              se = s || {},
              ue = se.itemBasicInfo,
              de = se.showDateView,
              me = se.itemAdditionalInfo,
              ve = se.promotionDetail,
              pe = se.wishHeat,
              fe = se.perform,
              ye = se.performCalendar,
              he = se.holidayCalendar,
              ge = se.timesList,
              be = void 0 === ge ? [] : ge,
              Ee = se.skuList,
              Ie = void 0 === Ee ? [] : Ee,
              Ne = se.dateList,
              ke = void 0 === Ne ? [] : Ne,
              Ae = me || {},
              we = Ae.couponDesc,
              Se = Ae.couponJumpUrl,
              Ce =
                t(
                  t(
                    t(t(t({}, xe.LOCAL_LIFE, Xe.LOCAL_LIFE), xe.TMALL_SHOP, Xe.TMALL_SHOP), xe.CUSTOM, Xe.NORMAL),
                    xe.OFFLINE,
                    Xe.NORMAL,
                  ),
                  xe.OFFLINEDATE,
                  Xe.NORMAL,
                )[ne] || Xe.NORMAL,
              Te = La({ selectedSku: v, onClickBuyBtn: L, onTotalChange: M, calculatePrice: U }),
              Oe = Te.isShowJoinTeamsPopup,
              De = Te.isShowInitiatePopup,
              Pe = Te.isShowConfirmPopup,
              Le = Te.spliceOrderContextValue,
              Me = Te.soThroughInfo,
              Fe = Te.onBuyImmediately,
              je = Te.onInitiateSpliceOrder,
              Re = Te.closeSpliceOrderConfirmDrawer,
              Be = Te.closeInitiateSpliceOrderDrawer,
              Ue = Te.closeJoinSpliceOrderDrawer,
              Ye = (0, E.useMemo)(
                function () {
                  return m && Ie && Ie.length > 0
                },
                [s, m],
              ),
              He = (0, E.useMemo)(
                function () {
                  return ((de && p) || !de) && (null == be ? void 0 : be.length) > 0
                },
                [s, p],
              ),
              Ve = (0, E.useMemo)(
                function () {
                  var e = []
                  if (v) {
                    var t = v.mktPromotionTips,
                      n = v.tips
                    if (n) {
                      var a = n.saleTime
                      Yn(a) || e.push({ icon: !1, text: a, light: !0 })
                    } else t && e.push({ icon: Ke, text: Hn(t), light: !1 })
                  } else if (m) {
                    var i = m.mktPromotionTips
                    i && e.push({ icon: Ke, text: Hn(i), light: !1 })
                  }
                  return e
                },
                [v, m],
              ),
              ze = (0, E.useMemo)(
                function () {
                  return !ae && [_e.NO_GOODS, _e.START_SALE].includes(null == v ? void 0 : v.btnType)
                },
                [v, u],
              ),
              Je = (0, E.useMemo)(
                function () {
                  if (!ae || !d) {
                    if (de && !p)
                      return { statusText: ne === xe.OFFLINE ? '请选择场次' : '请选择日期', status: 'disable' }
                    if (ze) return { statusText: null == v ? void 0 : v.btnText, status: 'normal' }
                    if (!m) return { statusText: '请选择场次', status: 'disable' }
                    if (null == m ? void 0 : m.chooseSeat)
                      return {
                        statusText: '更多信息请前往选座页',
                        status:
                          (null == m ? void 0 : m.enable) && (null == m ? void 0 : m.salable) ? 'normal' : 'disable',
                      }
                    if (!v) return { statusText: '请选择票档', status: 'disable' }
                    if (
                      (null == v ? void 0 : v.packagesFlag) &&
                      (null == v ? void 0 : v.auctionUnit) > (null == v ? void 0 : v.limit)
                    )
                      return { statusText: '', status: 'disable', empty: !0 }
                  }
                  return {
                    statusText: '',
                    status:
                      (null == v ? void 0 : v.btnType) < 0 || !(null == v ? void 0 : v.enable) ? 'disable' : 'normal',
                  }
                },
                [v, m, p, d, s, u, ze],
              ),
              Ge = (0, E.useMemo)(
                function () {
                  if (ae) return r && r === (null == v ? void 0 : v.id) ? '已预约' : '提交抢票预约'
                  var e = null == m ? void 0 : m.chooseSeat
                  return ze
                    ? null == v
                      ? void 0
                      : v.btnText
                    : (null == v ? void 0 : v.promotionTag)
                    ? e
                      ? '特惠选座'
                      : '特惠购买'
                    : e
                    ? '去选座'
                    : '确定'
                },
                [s, u],
              ),
              We = (0, E.useMemo)(
                function () {
                  return ae ? '开抢后有票会自动为你勾选' : ''
                },
                [s, u],
              ),
              Qe = (0, E.useMemo)(
                function () {
                  return Ya(
                    {
                      skuProps: u,
                      priceInfo: f,
                      buttonText: Ge,
                      selectedSku: v,
                      userTicketsNum: S,
                      openPriceDetailDrawer: N,
                      closePriceDetailDrawer: Q,
                      showPriceDrawer: z,
                      calculatePrice: U,
                      onTotalChange: M,
                      toast: P,
                      onClickServiceFee: q,
                    },
                    Le,
                  )
                },
                [u, Oe, N, f, v, Le, Ge],
              )
            return E.createElement(
              'div',
              Ya({ className: (0, w.A)(Ha, o), style: c, ref: a }, ee),
              g
                ? E.createElement(
                    Mn.A,
                    (function (e, t) {
                      return _a(e, Fa(t))
                    })(Ya({ theme: 'show', buttonText: '刷新页面', type: g.type, message: g.message }, g), {
                      onClick: function (e) {
                        return null == x ? void 0 : x(e)
                      },
                    }),
                  )
                : E.createElement(
                    E.Fragment,
                    null,
                    E.createElement(sn, { theme: Ce, needRemind: oe, venue: re, basicInfo: ue, isFavorPage: d }),
                    we
                      ? E.createElement(
                          'div',
                          {
                            className: 'bui-dm-sku-gcoupon-tips',
                            onClick: function () {
                              Se && (0, O.VJ)({ url: Se })
                            },
                          },
                          E.createElement(
                            'div',
                            { className: 'gcoupon-tips-content' },
                            E.createElement(C, { className: 'gcoupon-tips-coupon', htmlColor: '#ff4886' }),
                            we,
                          ),
                          Se ? E.createElement(T.A, { className: 'gcoupon-tips-arrow', htmlColor: '#69717c' }) : null,
                        )
                      : null,
                    ne !== xe.OFFLINE &&
                      de &&
                      E.createElement(qe, {
                        whereUse: ne,
                        perform: fe,
                        performCalendar: ye,
                        holidayCalendar: he,
                        isFavorPage: d,
                        theme: Ce,
                        headerProps: { title: d ? '想看哪个日期' : '日期', subtitle: Gn(me), showSeatImg: B },
                        calendarProps: {
                          dateList: ke,
                          initCheckedDate: null == p ? void 0 : p.date,
                          onDateItemClicked: F,
                        },
                        expLogClasses: b,
                      }),
                    !!h && E.createElement(hn, { message: h, onTitleRightClick: function () {} }),
                    ne !== xe.OFFLINEDATE &&
                      E.createElement(
                        E.Fragment,
                        null,
                        He &&
                          E.createElement(vt, {
                            flex: 'column',
                            className: (0, w.A)('sku-times-card', { 'no-promotion-desc': !!Ve.length && !Ye }),
                            headerProps: {
                              title: d ? '预约想看场次' : '场次',
                              subtitle: de && ne !== xe.OFFLINE ? '' : Gn(me),
                              hasNotice:
                                (null == (i = null == me ? void 0 : me.announcementList) ? void 0 : i.length) > 0,
                              rightText: ne === xe.OFFLINE && de ? '更多场次' : '',
                              onTitleRightClick: Y,
                              onNoticeClick: V,
                              showSeatImg: B,
                            },
                            contentProps: { itemList: be, selectedItem: m, handleClickItem: _ },
                            expLogClasses: b,
                            theme: Ce,
                            type: ie.TIMES,
                            isFavorPage: d,
                            perform: fe,
                            hasHolidayStatus: A,
                          }),
                        Ye &&
                          E.createElement(vt, {
                            className: (0, w.A)('sku-tickets-card', { 'no-promotion-desc': !!Ve.length }),
                            headerProps: {
                              title: d ? '预约想看票档' : '票档',
                              subtitle: '',
                              hasNotice: !1,
                              rightText: (null == v ? void 0 : v.promotionText) || ve ? '优惠说明' : '',
                              onTitleRightClick: H,
                              showSeatImg: B,
                            },
                            contentProps: { itemList: Ie, selectedItem: v, handleClickItem: j },
                            expLogClasses: b,
                            theme: Ce,
                            type: ie.SKU,
                            isFavorPage: d,
                            perform: fe,
                            toast: P,
                          }),
                        Ce === Xe.LOCAL_LIFE && ze
                          ? null
                          : !!Ve.length && E.createElement(wn, { promotionDescList: Ve }),
                        E.createElement(Ln, {
                          wishHeat: null == pe ? void 0 : pe.prices,
                          selectedSkuId: (null == v ? void 0 : v.id) || '',
                        }),
                        E.createElement(
                          R.Provider,
                          { value: Qe },
                          E.createElement(Zt, {
                            theme: Ce,
                            isFavorPage: d,
                            priceInfo: f,
                            buttonStatus: Je,
                            buttonText: Ge,
                            buttonSubText: We,
                            selectedTimes: m,
                            selectedSku: v,
                            skuPreview: ae,
                            showDetail: N,
                            expLogClasses: b,
                            toast: P,
                            showPriceDrawer: z,
                            onBuyAction: L,
                            handleTotalChange: M,
                            onClickServiceFee: q,
                            pagePropsSendExp: $,
                            pagePropsSendClk: Z,
                            onBuyImmediately: Fe,
                            onInitiateSpliceOrder: je,
                          }),
                          E.createElement(ca, { open: Pe, onClose: Re }),
                          E.createElement(ma, { open: De, onClose: Be }),
                          E.createElement(xa, { open: Oe, onClose: Ue, itemId: le }),
                          E.createElement(K, {
                            className: 'price-detail-drawer',
                            theme: Ce,
                            price: null == f ? void 0 : f.price,
                            priceDesc: null == f ? void 0 : f.priceDesc,
                            detailData: y,
                            footerStatus: Je,
                            openDrawer: N,
                            buttonText: Ge,
                            closeDrawer: Q,
                            onConfirm: function () {
                              L({ spliceOrder: Me })
                            },
                            onModuleIconClk: G,
                          }),
                        ),
                      ),
                  ),
              E.createElement(_n.A, {
                openPromotion: k,
                hidePromotionModel: X,
                promotionData: ve,
                queryCouponParams: { itemId: le },
                isZLife: ce,
              }),
              E.createElement(D.A, {
                className: 'perform-change-drawer',
                noticeTitle: '演出变更提醒',
                openNoticeLayer: I,
                detailList: (null == me ? void 0 : me.announcementList) || [],
                hideNoticeLayer: W,
                previewImage: J,
              }),
            )
          })
        Va.displayName = 'DmSkuModule'
        var qa = Va,
          za = r(6005),
          Ja = r(4269),
          Ga = r(2945),
          Ka = r(4911),
          Wa = r(5882),
          Qa = 'favorChoices',
          Xa = '亲, 今天无可售场次, 换一天试试吧~',
          Za = '亲, 无可售场次, 换一天试试吧~',
          $a = '亲, 无可售场次~',
          ei = '大麦开小差了，请点击重试',
          ti = '商品不存在或者已下架，请点击重试',
          ni = (function (e) {
            return (
              (e[(e.DISABLED = -1)] = 'DISABLED'),
              (e[(e.NORMAL = 0)] = 'NORMAL'),
              (e[(e.NO_GOODS = 1)] = 'NO_GOODS'),
              (e[(e.START_SALE = 2)] = 'START_SALE'),
              e
            )
          })({}),
          ai = (function (e) {
            return (e.WILL_BUY = 'willBuy'), (e.SALE_TIP = 'saleTip'), e
          })({}),
          ii = Object.defineProperty,
          li = Object.defineProperties,
          ri = Object.getOwnPropertyDescriptors,
          oi = Object.getOwnPropertySymbols,
          ci = Object.prototype.hasOwnProperty,
          si = Object.prototype.propertyIsEnumerable,
          ui = function (e, t, n) {
            return t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          di = function (e, t) {
            for (var a in t || (t = {})) ci.call(t, a) && ui(e, a, t[a])
            if (oi) {
              var i,
                l = n(oi(t))
              try {
                for (l.s(); !(i = l.n()).done; ) {
                  a = i.value
                  si.call(t, a) && ui(e, a, t[a])
                }
              } catch (e) {
                l.e(e)
              } finally {
                l.f()
              }
            }
            return e
          },
          mi = function (e, t) {
            return li(e, ri(t))
          },
          vi = function (e, t) {
            return e && 0 !== e.length
              ? 1 === e.length
                ? e[0]
                : Yn(t)
                ? null
                : e.find(function (e) {
                    return e.id === t
                  }) || null
              : null
          }
        function pi() {
          var e,
            t,
            n,
            a,
            i,
            l,
            r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
            o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
            c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
            s = c || {},
            u = s.whereUse,
            d = s.skuPreview,
            m = s.initDate,
            v = s.initTimes,
            p = s.selectedDate,
            f = o || {},
            y = f.dateId,
            h = f.requestType,
            g = f.timesId,
            b = {
              timesList: [],
              skuList: [],
              dateTimesMapping: {},
              showDateView: 'true' === (null == (e = null == r ? void 0 : r.performCalendar) ? void 0 : e.showDates),
              partSupportSeat:
                'PART_SUPPORT_CHOOSE' ===
                (null == (t = null == r ? void 0 : r.itemBasicInfo) ? void 0 : t.chooseService),
              useNewTrade: 'true' === (null == (n = null == r ? void 0 : r.tradeInfo) ? void 0 : n.hnewUltron),
            },
            E = { tempSelectedDate: void 0, dateList: void 0, tempSelectedTimes: void 0 }
          if (b.showDateView) {
            if (
              ((b.dateList = Vn(r)),
              Yn(y) ||
                ((b.dateTimesMapping[y] =
                  null == (a = null == r ? void 0 : r.performCalendar) ? void 0 : a.performViews),
                (b.timesList = qn(y, b.dateTimesMapping, null == r ? void 0 : r.holidayCalendar))),
              h === Le.DATE)
            ) {
              if (u === xe.OFFLINE && ((E.tempSelectedDate = Jn(b.dateList, y)), !E.tempSelectedDate))
                return (E.dateList = b.dateList), mi(di(di({}, b), r), { _tempStateData: E })
              if (Yn(y)) (b.timesList = []), (E.tempSelectedTimes = vi(b.timesList, ''))
              else {
                var I = (null == p ? void 0 : p.date) || E.tempSelectedDate,
                  N = I === (null == m ? void 0 : m.date) ? (null == v ? void 0 : v.id) : ''
                E.tempSelectedTimes = vi(b.timesList, N)
              }
            }
            h === Le.TIMES && (E.tempSelectedTimes = vi(b.timesList, g))
          } else
            (b.dateTimesMapping[Ge] = null == (i = null == r ? void 0 : r.performCalendar) ? void 0 : i.performViews),
              (b.timesList = qn(Ge, b.dateTimesMapping, null == r ? void 0 : r.holidayCalendar)),
              h === Le.DATE && (E.tempSelectedTimes = vi(b.timesList, '')),
              h === Le.TIMES && (E.tempSelectedTimes = vi(b.timesList, g))
          return (
            (b.skuList = zn({
              selectedTimesId: null == (l = E.tempSelectedTimes) ? void 0 : l.id,
              perform: r.perform,
              whereUse: u,
              skuPreview: d,
            })),
            mi(di(di({}, b), r), { _tempStateData: E })
          )
        }
        var fi = { api: 'mtop.damai.wireless.follow.relation.update', v: '1.2', method: 'GET', data: {} },
          yi = { api: 'mtop.damai.item.calcTicketPrice', v: '2.0', method: 'GET', data: {} },
          hi = { api: 'mtop.alibaba.detail.subpage.getdetail', v: '2.0', data: {} },
          gi = { api: 'mtop.damai.wireless.mkt.coupon.applyCoupon4User', v: '1.0', data: {} },
          bi = r(9887),
          Ei = function () {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
            return new bi.p((0, u.A)((0, u.A)({}, fi), e)).create()
          },
          Ii = function () {
            debugger
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
            return new bi.p((0, u.A)((0, u.A)({}, yi), e)).create()
          },
          Ni = function () {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
            return new bi.p((0, u.A)((0, u.A)({}, hi), e)).create()
          },
          ki = function () {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
            return new bi.p((0, u.A)((0, u.A)({}, gi), e)).create()
          },
          Ai = r(8838),
          wi = r(9365),
          Si = r(3816),
          Ci = r(3716),
          Ti = r(334),
          Oi = r(7422)
        function Di(e) {
          var t = {
            channel: 'damai_app',
            damai: '1',
            umpChannel: '100031002',
            subChannel: 'weapp@damai_h5',
            atomSplit: 1,
            signKey: null == e ? void 0 : e.signKey,
            rtc: null == e ? void 0 : e.rtc,
          }
          if (
            (e.distributionId && (t.distributionId = e.distributionId),
            e.quickBuy && (t.quickBuy = e.quickBuy),
            null != e && e.spliceOrder)
          ) {
            var n = e.spliceOrder,
              a = n.flowMixId,
              i = n.orderScene,
              l = n.openSplice,
              r = n.originJoinRateLimit,
              o = n.ruleId
            ;[H.INITIATE, H.JOIN].includes(i) && (t.orderScene = 'splicing'),
              a && (t.flowMixId = a),
              (t.openSplice = l),
              (t.joinRateLimit = r),
              (t.ruleId = o)
          }
          var c = encodeURIComponent(JSON.stringify(t)),
            s = { buyParam: ''.concat(e.itemId, '_').concat(e.buyNum, '_').concat(e.skuId), buyNow: !0, exParams: c }
          e.privilegeActId && (s.privilegeActId = e.privilegeActId)
          var u = ''.concat(Oi.A.spmA, '.project.bottom.dbuy')
          console.log(s)
          ;(s.spm = u),
            Oi.A.sendClickEvent(u, { clicktitle: '立即购买', item_id: e.itemId, sku_id: e.skuId, buy_num: e.buyNum }),
            Ka.A.navTo('subPackages/order-pay/index', s, { needLogin: !0 })
        }
        var Pi,
          xi,
          Li = r(7963),
          Mi = ['_tempStateData'],
          _i = wi.A,
          Fi = !1,
          ji = {
            whereUse: xe.CUSTOM,
            itemId: '',
            skuPreview: !1,
            privilegeId: '',
            projectId: '',
            distributionId: '',
            skuData: {},
            usePropSkuData: !1,
            venue: {},
          }
        function Ri() {
          var e,
            t = (0, v.useRouter)(),
            n = (null == t ? void 0 : t.params) || {},
            a = n.id,
            i = n.activityId,
            l = void 0 === i ? '' : i,
            r = n.isFromH5,
            o = n.isReserve
          r
            ? (ji = { itemId: a, skuPreview: 'true' === ''.concat(o) })
            : _i.globalData.detailSkuData
            ? ((ji = (0, u.A)((0, u.A)({}, ji), _i.globalData.detailSkuData)), (_i.globalData.detailSkuData = null))
            : a && (ji = (0, u.A)((0, u.A)({}, ji), {}, { itemId: a })),
            l && (ji.activityId = l)
          var m = (0, E.useState)({}),
            f = (0, d.A)(m, 2),
            y = f[0],
            h = f[1],
            g = (0, E.useState)(),
            I = (0, d.A)(g, 2),
            N = I[0],
            A = I[1],
            w = (0, E.useState)(),
            S = (0, d.A)(w, 2),
            C = S[0],
            T = S[1],
            O = (0, E.useState)(),
            D = (0, d.A)(O, 2),
            P = D[0],
            x = D[1],
            L = (0, E.useState)({}),
            M = (0, d.A)(L, 2),
            _ = M[0],
            F = M[1],
            j = (0, E.useState)({}),
            R = (0, d.A)(j, 2),
            B = R[0],
            U = R[1],
            Y = (0, E.useState)({}),
            H = (0, d.A)(Y, 2),
            V = H[0],
            q = H[1],
            z = (0, E.useState)(''),
            J = (0, d.A)(z, 2),
            G = J[0],
            K = J[1],
            W = (0, E.useState)(0),
            Q = (0, d.A)(W, 2),
            X = Q[0],
            Z = Q[1],
            $ = (0, E.useState)(),
            ee = (0, d.A)($, 2),
            te = ee[0],
            ne = ee[1],
            ae = (0, E.useState)({}),
            ie = (0, d.A)(ae, 2),
            le = ie[0],
            re = ie[1],
            oe = (0, E.useState)(null),
            ce = (0, d.A)(oe, 2),
            se = ce[0],
            ue = ce[1],
            de = (0, E.useState)(
              ji.itemId
                ? null === (e = p().getStorageSync(Qa)) ||
                  void 0 === e ||
                  null === (e = e[ji.itemId]) ||
                  void 0 === e ||
                  null === (e = e.selectedSku) ||
                  void 0 === e
                  ? void 0
                  : e.id
                : '',
            ),
            me = (0, d.A)(de, 2),
            ve = me[0],
            pe = me[1],
            fe = ji,
            ye = fe.canRedeemCoupon,
            he = fe.drawCouponMixedId,
            ge = (0, E.useRef)(1),
            be = (0, E.useMemo)(
              function () {
                var e
                return (
                  (null == y ||
                  null === (e = y.actionControl) ||
                  void 0 === e ||
                  null === (e = e.renderingControl) ||
                  void 0 === e
                    ? void 0
                    : e.renderingType) === Me.FAVOR
                )
              },
              [y],
            )
          ;(0, v.useLoad)(function () {
            var e
            null === (e = xi = (0, Li.A)({ spmB: 'sku' })) || void 0 === e || e.sendFCP()
          }),
            (0, v.useDidShow)(function () {
              var e = Pi && Fi
              ;(0, k.w)({ showLoading: !e }).then(function (t) {
                var n = t.success,
                  a = t.message
                n ? (e ? ((Fi = !1), Ae(Pi)) : Ee()) : (0, k.o)(a)
              })
            }),
            (0, v.useDidHide)(function () {
              Pi || (Pi = {}), (Pi.skuId = null == C ? void 0 : C.id), (Fi = !0)
            }),
            (0, E.useEffect)(
              function () {
                Se()
              },
              [X],
            )
          var Ee = function () {
              var e,
                t,
                n,
                a = Ie(),
                i = a.initSelectedDate,
                l = a.hasStoreTimes,
                r = a.initSelectedTimes,
                o = a.initSelectedSku
              l
                ? Ae({
                    requestType: Le.TIMES,
                    dateId: '',
                    skuId: null == o ? void 0 : o.id,
                    timesId: r.id,
                    initSelectedDate: i,
                  })
                : null !== (e = ji) &&
                  void 0 !== e &&
                  e.usePropSkuData &&
                  null !== (t = ji) &&
                  void 0 !== t &&
                  null !== (t = t.skuData) &&
                  void 0 !== t &&
                  t.performCalendar
                ? we(
                    null === (n = ji) || void 0 === n ? void 0 : n.skuData,
                    { requestType: Le.DATE, dateId: '' },
                    { needUpdateTimes: !0 },
                  )
                : Ae({ requestType: Le.DATE, dateId: '', timesId: '' })
            },
            Ie = function () {
              var e,
                t,
                n,
                a,
                i,
                l = p().getStorageSync(Qa),
                r =
                  (null === (e = ji) || void 0 === e ? void 0 : e.itemId) &&
                  (null == l ? void 0 : l[null === (t = ji) || void 0 === t ? void 0 : t.itemId])
              if (r) {
                var o,
                  c = (null == l ? void 0 : l[null === (o = ji) || void 0 === o ? void 0 : o.itemId]) || {},
                  s = c.selectedDate
                ;(a = c.selectedTimes), (i = c.selectedSku), x((n = s)), A(a), F(n), U(a), q(i)
              }
              return { hasStoreTimes: r, initSelectedDate: n, initSelectedTimes: a, initSelectedSku: i }
            },
            Ne = function (e) {
              var t,
                n,
                a,
                i = e.requestType,
                r = e.dateId,
                o = e.timesId
              return (
                i === Le.DATE ? (a = r) : i === Le.TIMES && (a = o),
                {
                  itemId: null === (t = ji) || void 0 === t ? void 0 : t.itemId,
                  bizCode: 'ali.china.damai',
                  scenario: 'itemsku',
                  exParams: JSON.stringify({
                    dataType: i,
                    dataId: a,
                    privilegeActId: null === (n = ji) || void 0 === n ? void 0 : n.privilegeId,
                    activityId: l,
                  }),
                }
              )
            },
            ke = function (e) {
              var t,
                n,
                a = Si.A.getHavanaId(),
                i = e || {},
                l = i.extra,
                r = i.perform,
                o = i.itemBuyBtn,
                c = i.itemBasicInfo,
                s = i.actionControl,
                u =
                  null == r || null === (t = r.skuList) || void 0 === t
                    ? void 0
                    : t.reduce(function (e, t) {
                        var n = (null == t ? void 0 : t.skuId) || '0',
                          a = (null == t ? void 0 : t.status) || '0',
                          i = (null == t ? void 0 : t.frontEndStatus) || '0',
                          l = 'true' === (null == t ? void 0 : t.clickable) ? '1' : '0'
                        return ''.concat(e).concat(n).concat(a).concat(i).concat(l)
                      }, ''),
                d = [
                  (null == l ? void 0 : l.timestamp) || '0',
                  (null == c ? void 0 : c.itemId) || '0',
                  (null == c ? void 0 : c.projectBizType) || '0',
                  (null == c ? void 0 : c.srcVerify) || '0',
                  (null == o ? void 0 : o.btnStatus) || '0',
                  (null == s || null === (n = s.renderingControl) || void 0 === n ? void 0 : n.renderingType) || '0',
                  (null == r ? void 0 : r.chooseSeatType) || '0',
                  'true' === (null == r ? void 0 : r.performSalable) ? '1' : '0',
                  'true' === (null == r ? void 0 : r.presale) ? '1' : '0',
                  u,
                  a,
                ]
              return null == d ? void 0 : d.join('')
            },
            Ae = (function () {
              var e = (0, s.A)(
                (0, c.A)().m(function e(t, n) {
                  var a, i, l, r, o, s, u, m, v, p
                  return (0, c.A)().w(
                    function (e) {
                      for (;;)
                        switch ((e.p = e.n)) {
                          case 0:
                            a = t;
                            e.p = 1;
                            Pi = a;
                            return (
                              (null == a ? void 0 : a.requestType) === Le.TIMES &&
                                (a.dateId =
                                  (null == a || null === (i = a.initSelectedDate) || void 0 === i ? void 0 : i.id) ||
                                  (null == P ? void 0 : P.id) ||
                                  ''),
                              (e.n = 2),
                              console.log('a =', a),
                              console.log('Ne(a) =', Ne(a)),
                              Ni(Ne(a))
                            )
                          case 2:
                            if (((l = e.v), (r = (0, d.A)(l, 2)), (o = r[0]), (s = r[1]), !o)) {
                              e.n = 3
                              break
                            }
                            return ue({ type: 'common', message: ei }), e.a(2)
                          case 3:
                            if (null != s && s.performCalendar) {
                              e.n = 4
                              break
                            }
                            return ue({ type: 'empty', message: ti }), e.a(2)
                          case 4:
                            we(s, a, n), ue(null), (e.n = 6)
                            break
                          case 5:
                            ;(e.p = 5), e.v, ue({ type: 'common', message: ei })
                          case 6:
                            return (
                              (e.p = 6),
                              null === (u = xi) ||
                                void 0 === u ||
                                null === (m = u.sendFMP) ||
                                void 0 === m ||
                                m.call(u),
                              null === (v = xi) ||
                                void 0 === v ||
                                null === (p = v.sendFLT) ||
                                void 0 === p ||
                                p.call(v),
                              e.f(6)
                            )
                          case 7:
                            return e.a(2)
                        }
                    },
                    e,
                    null,
                    [[1, 5, 6, 7]],
                  )
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
            we = (function () {
              var e = (0, s.A)(
                (0, c.A)().m(function e() {
                  var t,
                    n,
                    a,
                    i,
                    l,
                    r,
                    o,
                    s,
                    d,
                    m,
                    v,
                    p,
                    f,
                    y,
                    g,
                    b,
                    E,
                    I,
                    N,
                    k,
                    w = arguments
                  return (0, c.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (
                            (a = w.length > 0 && void 0 !== w[0] ? w[0] : {}),
                            (i = w.length > 1 && void 0 !== w[1] ? w[1] : {}),
                            (l = w.length > 2 && void 0 !== w[2] ? w[2] : { needUpdateTimes: !0 }),
                            (r = i.dateId),
                            (o = i.skuId),
                            (s = pi(a, i, {
                              whereUse: null === (t = ji) || void 0 === t ? void 0 : t.whereUse,
                              skuPreview: null === (n = ji) || void 0 === n ? void 0 : n.skuPreview,
                              initDate: _,
                              initTimes: B,
                              selectedDate: P,
                            })),
                            (d = s._tempStateData),
                            (m = d.tempSelectedDate),
                            (v = d.dateList),
                            (p = d.tempSelectedTimes),
                            (f = (0, Wa.A)(s, Mi)),
                            (g = (y = a || {}).extra),
                            (b = y.itemBasicInfo),
                            (I = (E = g || {}).k),
                            (N = E.cid),
                            (e.n = 1),
                            Ci.A.verifySign({ name: I, text: N, itemId: null == b ? void 0 : b.itemId, ctext: ke(a) })
                          )
                        case 1:
                          ;(k = e.v),
                            m && x(m),
                            v && De(v, r),
                            (null == l ? void 0 : l.needUpdateTimes) && A(p),
                            h((0, u.A)((0, u.A)({}, f), {}, { verifyMark: k })),
                            T(Oe(o, p, f)),
                            Z(function (e) {
                              return e + 1
                            })
                        case 2:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function () {
                return e.apply(this, arguments)
              }
            })(),
            Se = function (e) {
              var t, n
              if (
                (null === (t = ji) || void 0 === t || !t.skuPreview) &&
                N &&
                C &&
                !N.chooseSeat &&
                C.btnType !== _e.NO_GOODS &&
                C.btnType !== _e.START_SALE
              ) {
                var a = 'true' === (null == C ? void 0 : C.enableSpliceOrder)
                'true' ===
                  (null == y ||
                  null === (n = y.actionControl) ||
                  void 0 === n ||
                  null === (n = n.calculatePriceControl) ||
                  void 0 === n
                    ? void 0
                    : n.needCalc) || a
                  ? Ce(e)
                  : Te()
              }
            },
            Ce = (function () {
              var e = (0, s.A)(
                (0, c.A)().m(function e(t) {
                  var n, a, i, l, r, o, s, m, v, p, f, h, g, b, E, I, A, w, S, T, O, D, P
                  return (0, c.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (
                            (o = ji.itemId),
                            (s = C.dashPrice),
                            (m = C.priceId),
                            (v =
                              (null == y || null === (n = y.actionControl) || void 0 === n
                                ? void 0
                                : n.calculatePriceControl) || {}),
                            (p = v.calcFailSafe),
                            (f = v.calculateTag),
                            (h = []),
                            (g = 'true' === (null == C ? void 0 : C.enableSpliceOrder)),
                            h.push({ priceId: m, price: s, count: ge.current }),
                            (b = {
                              itemId: o,
                              performId: N.id,
                              calculateTag: f,
                              skuParamListJson: JSON.stringify(h),
                              exParams: { ruleId: null == t ? void 0 : t.ruleId },
                            }),
                            (e.n = 1),
                            Ii(b)
                          )
                        case 1:
                          if (
                            ((E = e.v),
                            (I = (0, d.A)(E, 2)),
                            (A = I[0]),
                            (w = I[1]),
                            'FAIL_SYS_SESSION_EXPIRED' !== (null == A ? void 0 : A.code))
                          ) {
                            e.n = 4
                            break
                          }
                          return (e.n = 2), (0, k.w)({ showLoading: !1 })
                        case 2:
                          if (((S = e.v), !S.success)) {
                            e.n = 3
                            break
                          }
                          return Ce(t), e.a(2)
                        case 3:
                          if (p) {
                            e.n = 4
                            break
                          }
                          return (0, k.o)('请登录后再试'), e.a(2)
                        case 4:
                          if (!A && null != w && w.success) {
                            e.n = 5
                            break
                          }
                          return g ? Te(t) : 'true' === p && Te(), e.a(2)
                        case 5:
                          ;(T = {
                            price: parseInt(
                              null == w || null === (a = w.model) || void 0 === a ? void 0 : a.realTotalAmt,
                            ),
                            priceDesc:
                              (null == w || null === (i = w.model) || void 0 === i ? void 0 : i.reduceTotalAmtDesc) ||
                              '',
                            total: ge.current,
                          }),
                            (O = { total: ge.current }),
                            null != t &&
                              t.ruleId &&
                              ((O.soPrice = parseInt(
                                null == w || null === (D = w.model) || void 0 === D ? void 0 : D.realTotalAmt,
                              )),
                              (O.soPriceDesc =
                                (null == w || null === (P = w.model) || void 0 === P ? void 0 : P.reduceTotalAmtDesc) ||
                                '')),
                            ne(function (e) {
                              var n = e || {}
                              return null != t && t.ruleId ? (0, u.A)((0, u.A)({}, n), O) : (0, u.A)((0, u.A)({}, n), T)
                            }),
                            re({
                              promotionText:
                                (null == w || null === (l = w.model) || void 0 === l ? void 0 : l.reduceTotalAmtDesc) ||
                                '',
                              calculateModuleVOS:
                                null == w || null === (r = w.model) || void 0 === r ? void 0 : r.calculateModuleVOS,
                            })
                        case 6:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function (t) {
                return e.apply(this, arguments)
              }
            })(),
            Te = function (e) {
              if (C) {
                var t,
                  n = C.dashPrice,
                  a = C.price,
                  i = C.name,
                  l = e || {},
                  r = l.spliceOrderPrice,
                  o = l.originalPrice,
                  c = { dashPrice: n * ge.current, total: ge.current },
                  s = { total: ge.current }
                ;(n = (n *= 100).toFixed(0)), (n = parseInt(n))
                var d = r && Number(r) > 0
                if (d) {
                  var m = parseInt(Number(r).toFixed(0)),
                    v = ((Number(o) - Number(r)) * ge.current) / 100
                  ;(s.soPrice = m * ge.current),
                    (s.soPriceDesc = 'number' == typeof v && v > 0 ? '已省'.concat(v, '元') : ''),
                    (t = {
                      moduleDetailVOList: [
                        { amount: m * ge.current, amountText: '-￥'.concat(v), count: ge.current, skuName: i },
                      ],
                      moduleTitle: '票档优惠',
                      moduleTotalAmt: m * ge.current,
                      moduleTotalAmtText: '-¥'.concat(v),
                      moduleType: 2,
                    })
                } else {
                  a *= 100
                  var p = ((n - (a = parseInt(a.toFixed(0)))) * ge.current) / 100
                  ;(c.price = a * ge.current),
                    (c.priceDesc = 'number' == typeof p && p > 0 ? '已省'.concat(p, '元') : ''),
                    (t = {
                      moduleDetailVOList: [
                        { amount: a * ge.current, amountText: '-￥'.concat(p), count: ge.current, skuName: i },
                      ],
                      moduleTitle: '票档优惠',
                      moduleTotalAmt: a * ge.current,
                      moduleTotalAmtText: '-¥'.concat(p),
                      moduleType: 2,
                    })
                }
                ne(function (e) {
                  var t = e || {}
                  return d ? (0, u.A)((0, u.A)({}, t), s) : (0, u.A)((0, u.A)({}, t), c)
                })
                var f = d ? s.soPrice : c.price,
                  y = [
                    {
                      moduleDetailVOList: [
                        { amount: f, amountText: '￥'.concat(f / 100), count: ge.current, skuName: i },
                      ],
                      moduleTitle: '商品原价',
                      moduleTotalAmt: f,
                      moduleTotalAmtText: '￥'.concat(f / 100),
                      moduleType: 1,
                    },
                  ]
                t && y.push(t), re({ promotionText: '', calculateModuleVOS: y })
              }
            },
            Oe = function (e, t, n) {
              var a,
                i,
                l,
                r = n,
                o = t
              if ((o || (o = N), r || (r = y), !o)) return null
              var c = null,
                s = zn({
                  selectedTimesId: o.id,
                  perform: r.perform,
                  whereUse: null === (a = ji) || void 0 === a ? void 0 : a.whereUse,
                  skuPreview: null === (i = ji) || void 0 === i ? void 0 : i.skuPreview,
                })
              return (
                1 === (null === (l = r) || void 0 === l ? void 0 : l.timesList.length) && 1 === s.length
                  ? (c = s[0])
                  : e &&
                    (c =
                      s.find(function (t) {
                        return t.id === e
                      }) || null),
                c
              )
            },
            De = function (e, t) {
              if (e && e.length > 1) {
                var n = (function () {
                  var e = new Date(),
                    t = e.getFullYear(),
                    n = e.getMonth() + 1,
                    a = e.getDate()
                  return ''
                    .concat(t)
                    .concat(n < 10 ? '0'.concat(n) : n)
                    .concat(a < 10 ? '0'.concat(a) : a)
                })()
                K(t === n ? Xa : Za)
              } else K($a)
            },
            Pe = (function () {
              var e = (0, s.A)(
                (0, c.A)().m(function e(t) {
                  var n, a, i, l, r, o, s, u, m, v
                  return (0, c.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (C) {
                            e.n = 1
                            break
                          }
                          return e.a(2)
                        case 1:
                          if (
                            ((i = p().getStorageSync(Qa)),
                            (null == C ? void 0 : C.id) !==
                              (null === (n = i[(null === (a = ji) || void 0 === a ? void 0 : a.itemId) || '']) ||
                              void 0 === n ||
                              null === (n = n.selectedSku) ||
                              void 0 === n
                                ? void 0
                                : n.id))
                          ) {
                            e.n = 2
                            break
                          }
                          return (0, k.o)('你已经预约成功啦 开抢后如果有票会自动帮你勾选哦～'), e.a(2)
                        case 2:
                          return (
                            (l = {
                              operateType: 1,
                              targetId: null == C ? void 0 : C.id,
                              targetType: t === Fe.WILL_BUY ? '20' : null == C ? void 0 : C.followType,
                            }),
                            (e.n = 3),
                            Ei(l)
                          )
                        case 3:
                          if (((r = e.v), (o = (0, d.A)(r, 2)), (s = o[0]), (u = o[1]), !s)) {
                            e.n = 6
                            break
                          }
                          if ('FAIL_SYS_SESSION_EXPIRED' !== (null == s ? void 0 : s.code)) {
                            e.n = 5
                            break
                          }
                          return (e.n = 4), (0, k.w)({ showLoading: !1 })
                        case 4:
                          return (m = e.v), m.success ? Pe(t) : (0, k.o)('请登录后再试'), e.a(2)
                        case 5:
                          return (0, k.o)(s.message), e.a(2)
                        case 6:
                          if (!u) {
                            e.n = 9
                            break
                          }
                          if (0 !== (v = parseInt(u.status)) && 1 !== v) {
                            e.n = 8
                            break
                          }
                          if (!be) {
                            e.n = 7
                            break
                          }
                          return je(t), e.a(2)
                        case 7:
                          ;(0, k.o)('已登记。'), (e.n = 9)
                          break
                        case 8:
                          ;(0, k.o)('提交预约失败，请稍后再试试吧～')
                        case 9:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function (t) {
                return e.apply(this, arguments)
              }
            })(),
            je = function (e) {
              var t = p().getStorageSync(Qa) || {}
              if (C) {
                var n
                ;(t[(null === (n = ji) || void 0 === n ? void 0 : n.itemId) || ''] = {
                  selectedDate: P,
                  selectedTimes: N,
                  selectedSku: C,
                }),
                  pe(C.id),
                  F(P),
                  U(N),
                  q(C),
                  p().setStorageSync(Qa, t)
                var a = e === Fe.WILL_BUY ? '已帮您记录所选场次、票档，正式开售时可直接购买' : '已登记'
                p().showModal({
                  title: '提交成功',
                  confirmColor: '#ff2869',
                  confirmText: '知道了',
                  content: a,
                  showCancel: !1,
                })
              }
            },
            Re = function () {
              var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
                t = e,
                n = ji,
                a = n.distributionId
              return a && (t.distributionId = a), t
            },
            Be = (function () {
              var e = (0, s.A)(
                (0, c.A)().m(function e() {
                  var t, n, a, i
                  return (0, c.A)().w(
                    function (e) {
                      for (;;)
                        switch ((e.p = e.n)) {
                          case 0:
                            return (
                              (e.p = 0),
                              (e.n = 1),
                              Ai.A.queryCouponActsOfItem({
                                itemId: null === (t = ji) || void 0 === t ? void 0 : t.itemId,
                              })
                            )
                          case 1:
                            return (
                              (n = e.v),
                              (a = (0, d.A)(n, 2)),
                              (i = a[1]),
                              e.a(2, (null == i ? void 0 : i.couponActivities) || [])
                            )
                          case 2:
                            return (e.p = 2), e.v, e.a(2, [])
                        }
                    },
                    e,
                    null,
                    [[0, 2]],
                  )
                }),
              )
              return function () {
                return e.apply(this, arguments)
              }
            })(),
            Ue = (function () {
              var e = (0, s.A)(
                (0, c.A)().m(function e() {
                  return (0, c.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (ye) {
                            e.n = 1
                            break
                          }
                          return e.a(2)
                        case 1:
                          ki({ couponActSpreadId: he, asac: '2A20211GN10S24HSTQIMUZ' })
                            .then(function (e) {
                              var t
                              ;(null == e ||
                              null === (t = e.data) ||
                              void 0 === t ||
                              null === (t = t.successCoupons) ||
                              void 0 === t
                                ? void 0
                                : t.length) > 0 && (0, k.o)('已为你自动领取可用优惠券')
                            })
                            .catch(function (e) {})
                        case 2:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function () {
                return e.apply(this, arguments)
              }
            })()
          return {
            hasBookSkuId: ve,
            detailData: y,
            skuProps: ji,
            isFavorPage: be,
            selectedTimes: N,
            selectedSku: C,
            selectedDate: P,
            initTimes: B,
            initSku: V,
            initDate: _,
            priceInfo: te,
            buyInfo: le,
            numsUpdate: X,
            offlineNoFixDateMessage: G,
            errorInfo: se,
            userTicketsNum: ge.current,
            initPage: Ee,
            onBuyAction: function (e) {
              var t,
                n,
                a = y.itemBasicInfo,
                i = y.useNewTrade,
                r = y.perform,
                o = y.actionControl,
                c = ji,
                s = c.privilegeId,
                u = c.itemId,
                d = c.whereUse
              if (N) {
                var m = a
                  ? null == a
                    ? void 0
                    : a.projectId
                  : null === (t = ji) || void 0 === t
                  ? void 0
                  : t.projectId
                if ((null != N && N.chooseSeat) || C) {
                  if (null != N && N.chooseSeat) {
                    var v
                    if (!N.enable) return void (0, k.o)('亲，选择的场次无票')
                    var p = {
                      itemId: u,
                      activityId: l,
                      performId: null == N ? void 0 : N.id,
                      skuId: (null == C ? void 0 : C.id) || '',
                      privilegeActId: s,
                      projectId: m,
                      useNewTrade: i,
                      signKey: null == a ? void 0 : a.t,
                      userPromotion: 'true' === (null == r ? void 0 : r.hasPromotion),
                      rtc:
                        'true' === (null == o || null === (v = o.tradeControl) || void 0 === v ? void 0 : v.rtc)
                          ? 1
                          : 0,
                      performanceCityId: null == a ? void 0 : a.nationalStandardCityId,
                    }
                    return (
                      d === xe.OFFLINE && (p.quickBuy = 1),
                      void (function (e) {
                        var t = {
                          userPromotion: e.userPromotion,
                          itemId: e.itemId,
                          activityId: e.activityId || '',
                          performId: e.performId,
                          skuId: e.skuId,
                          channel: 'damai_app',
                          toDxOrder: e.useNewTrade || !1,
                          rtc: e.rtc,
                          signKey: encodeURIComponent(e.signKey),
                          useDslOrderPay: !0,
                          performanceCityId: e.performanceCityId,
                        }
                        e.quickBuy && (t.quickBuy = e.quickBuy),
                          e.distributionId && (t.distributionId = e.distributionId),
                          e.privilegeActId && (t.privilegeActId = e.privilegeActId),
                          e.projectId && (t.projectId = e.projectId)
                        var n = ''.concat(Ti.A.h5_shows_url, 'seat.html'),
                          a = ''.concat(Oi.A.spmA, '.project.bottom.dbuy')
                        ;(t.spm = a),
                          Oi.A.sendClickEvent(a, { clicktitle: '选座购买', item_id: e.itemId, performId: e.performId }),
                          Ka.A.navTo(n, t, { needLogin: !0 })
                      })((p = Re(p)))
                    )
                  }
                  if (C) {
                    var f = {
                      itemId: u,
                      skuId: null == C ? void 0 : C.id,
                      buyNum: ge.current,
                      signKey: null == a ? void 0 : a.t,
                      rtc:
                        'true' === (null == o || null === (n = o.tradeControl) || void 0 === n ? void 0 : n.rtc)
                          ? 1
                          : 0,
                      spliceOrder: null == e ? void 0 : e.spliceOrder,
                    }
                    console.log("请选择票面", Re(f))
                    d === xe.OFFLINE && (f.quickBuy = 1), Di((f = Re(f)))
                  } else (0, k.o)('请选择票面')
                }
              }
            },
            calculatePrice: Se,
            onTimesItemClicked: function (e, t) {
              A(t),
                Z(function (e) {
                  return e + 1
                }),
                T(Oe('')),
                Ae({ requestType: Le.TIMES, dateId: '', timesId: null == t ? void 0 : t.id }, { needUpdateTimes: !1 })
            },
            onSkuItemClicked: function (e, t) {
              ;(ge.current = null != t && t.enable && (null == t ? void 0 : t.amount) > 0 ? 1 : 0),
                (null == t ? void 0 : t.id) !== (null == C ? void 0 : C.id) &&
                  (b({
                    id: null == t ? void 0 : t.id,
                    price: null == t ? void 0 : t.price,
                    name: null == t ? void 0 : t.name,
                    amount: null == t ? void 0 : t.amount,
                    enable: null == t ? void 0 : t.enable,
                  }),
                  T(t),
                  Z(function (e) {
                    return e + 1
                  }))
            },
            onDateItemClicked: function (e, t) {
              var n,
                a = y.dateList,
                i = y.dateTimesMapping,
                l = a[null == t ? void 0 : t.index],
                r = i[null == l ? void 0 : l.id] || []
              x(l),
                T(null),
                Z(function (e) {
                  return e + 1
                }),
                h(function (e) {
                  return (0, u.A)((0, u.A)({}, e), {}, { timesList: r })
                }),
                (null === (n = ji) || void 0 === n ? void 0 : n.whereUse) !== xe.OFFLINEDATE &&
                  (A(
                    (function (e, t) {
                      return e && 0 !== e.length
                        ? 1 === e.length
                          ? e[0]
                          : (function (e) {
                              return !(e && e.length > 0)
                            })(t)
                          ? null
                          : e.find(function (e) {
                              return e.id === t
                            }) || null
                        : null
                    })(r, ''),
                  ),
                  T(Oe('')),
                  Ae({ requestType: Le.DATE, dateId: null == l ? void 0 : l.id, timesId: '' }).then(function () {
                    Z(function (e) {
                      return e + 1
                    })
                  }))
            },
            handleTotalChange: function (e, t, n) {
              ;(ge.current = t), Se(n)
            },
            registerNotification: Pe,
            requestCouponInfo: Be,
            getCoupon: Ue,
          }
        }
        var Bi = r(6070),
          Ui = function (e) {
            var t = e.activity,
              n = e.itemId,
              a = (0, E.useState)({ activityItem: {}, subActivity: {}, applicable: !1, enable: !1, text: '' }),
              i = (0, d.A)(a, 2),
              l = i[0],
              r = i[1]
            ;(0, E.useEffect)(
              function () {
                !(function () {
                  var e = t,
                    n = {}
                  if (
                    (null != e && e.subCouponActExs && e.subCouponActExs.length > 0 && (n = e.subCouponActExs[0]), e)
                  ) {
                    var a = e.applicable,
                      i = { activityItem: e, subActivity: n, enable: a, text: a ? '领取' : '已领' }
                    r((0, u.A)((0, u.A)({}, l), i))
                  }
                })()
              },
              [t],
            )
            var o = (function () {
              var e = (0, s.A)(
                (0, c.A)().m(function e() {
                  var t, n, a, i, s, m, v
                  return (0, c.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (e.n = 1), (0, k.w)({ showLoading: !0 })
                        case 1:
                          if (((t = e.v), t.success)) {
                            e.n = 2
                            break
                          }
                          return e.a(2)
                        case 2:
                          return (
                            (n = l.activityItem.couponActSpreadId),
                            (a = { couponActSpreadId: n, calcNextApplicable: !0 }),
                            (e.n = 3),
                            Ai.A.applyCoupon4User(a)
                          )
                        case 3:
                          if (((i = e.v), (s = (0, d.A)(i, 2)), (m = s[0]), (v = s[1]), !m)) {
                            e.n = 6
                            break
                          }
                          if ('FAIL_SYS_SESSION_EXPIRED' !== m.code) {
                            e.n = 4
                            break
                          }
                          return o(), e.a(2)
                        case 4:
                          if ('30110105' !== m.code) {
                            e.n = 5
                            break
                          }
                          return r((0, u.A)((0, u.A)({}, l), {}, { enable: !1, text: '已结束' })), e.a(2)
                        case 5:
                          return (
                            '30110102' === m.code && r((0, u.A)((0, u.A)({}, l), {}, { enable: !1, text: '已领取' })),
                            p().showToast({ title: m.message, icon: 'none' }),
                            e.a(2)
                          )
                        case 6:
                          v &&
                            (v.successCoupons && v.successCoupons.length > 0
                              ? (p().showToast({ title: '领取成功', icon: 'none' }),
                                r(
                                  (0, u.A)(
                                    (0, u.A)({}, l),
                                    {},
                                    { enable: v.nextApplicable, text: v.nextApplicable ? '领取' : '已领' },
                                  ),
                                ))
                              : p().showToast({ title: '领取失败', icon: 'none' }))
                        case 7:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function () {
                return e.apply(this, arguments)
              }
            })()
            return (0, Bi.jsxs)(Ja.Ss, {
              className: 'coupon-item',
              children: [
                (0, Bi.jsxs)(Ja.Ss, {
                  className: 'item-left',
                  children: [
                    (0, Bi.jsxs)(Ja.Ss, {
                      className: 'item-price-container',
                      children: [
                        (0, Bi.jsx)(Ja.Ss, { className: 'item-price-unit', children: '￥' }),
                        (0, Bi.jsx)(Ja.Ss, { className: 'item-price', children: l.subActivity.decreaseMoneyNum }),
                      ],
                    }),
                    (0, Bi.jsx)(Ja.Ss, { className: 'item-price-desc', children: l.subActivity.tag }),
                  ],
                }),
                (0, Bi.jsxs)(Ja.Ss, {
                  className: 'item-center',
                  children: [
                    (0, Bi.jsx)(Ja.Ss, { className: 'item-coupon-title', children: l.subActivity.name }),
                    (0, Bi.jsx)(Ja.Ss, { className: 'item-coupon-time', children: l.subActivity.effectiveTimeText }),
                  ],
                }),
                (0, Bi.jsx)(Ja.Ss, {
                  className: 'item-get-section',
                  onClick: function () {
                    l.enable &&
                      (Oi.A.sendClickEvent(''.concat(Oi.A.spmA, '.project.layer_coupon.dreceive'), {
                        clicktitle: l.subActivity ? l.subActivity.name : '',
                        item_id: n,
                      }),
                      o())
                  },
                  children: (0, Bi.jsx)(Ja.Ss, {
                    className: 'item-get-section__button '.concat(
                      l.enable ? 'item-get-section__button-enable' : 'item-get-section__button-disable',
                    ),
                    children: l.text,
                  }),
                }),
              ],
            })
          },
          Yi = function (e) {
            return [
              {
                cssSelector: '.sku-wrapper .buy-so-btn',
                spmC: 'bottom',
                spmD: 'directbuy',
                logkey: '/yanchu.bottom_directbuy.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.log-confirm-buy-drawer .log-selector-confirm .log-decrease-BUY_IMMEDIATELY',
                spmC: 'directbuylayer',
                spmD: 'decrease',
                logkey: '/yanchu.directbuylayer_decrease.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.log-confirm-join-drawer .log-selector-confirm .log-decrease-JOIN',
                spmC: 'jointeamlayer',
                spmD: 'decrease',
                logkey: '/yanchu.jointeamlayer_decrease.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.log-confirm-buy-drawer .log-selector-confirm .log-increase-BUY_IMMEDIATELY',
                spmC: 'directbuylayer',
                spmD: 'increase',
                logkey: '/yanchu.directbuylayer_increase.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.log-confirm-join-drawer .log-selector-confirm .log-increase-JOIN',
                spmC: 'jointeamlayer',
                spmD: 'increase',
                logkey: '/yanchu.jointeamlayer_increase.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.sku-wrapper .create-so-btn',
                spmC: 'bottom',
                spmD: 'createspliceorder',
                logkey: '/yanchu.bottom_createspliceorder.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-so-initiate-drawer .so-price-wrapper .create-price-item',
                spmC: 'spliceorderlayer',
                spmD: 'chooseprice_',
                logkey: '/yanchu.spliceorderlayer_chooseprice.'.concat(e),
                data: ['item_id', 'price', 'rule_id'],
              },
              {
                cssSelector: '.log-selector-initiate .log-decrease-initiate',
                spmC: 'spliceorderlayer',
                spmD: 'decrease',
                logkey: '/yanchu.spliceorderlayer_decrease.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.log-selector-initiate .log-increase-initiate',
                spmC: 'spliceorderlayer',
                spmD: 'increase',
                logkey: '/yanchu.spliceorderlayer_increase.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-so-initiate-drawer .so-public-switch',
                spmC: 'spliceorderlayer',
                spmD: 'opensetting',
                logkey: '/yanchu.spliceorderlayer_opensetting.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-so-initiate-drawer .log-btn-INITIATE',
                spmC: 'spliceorderlayer',
                spmD: 'submit',
                logkey: '/yanchu.spliceorderlayer_submit.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.log-confirm-join-drawer .log-btn-JOIN',
                spmC: 'jointeamlayer',
                spmD: 'submit',
                logkey: '/yanchu.jointeamlayer_submit.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-so-quick-entry .quick-entry-title',
                spmC: 'jointeam',
                spmD: 'moreteam',
                logkey: '/yanchu.jointeam_moreteam.'.concat(e),
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-so-quick-entry .join-quick-btn',
                spmC: 'jointeam',
                spmD: 'join_',
                logkey: '/yanchu.jointeam_join.'.concat(e),
                data: ['item_id', 'flow_id'],
              },
              {
                cssSelector: '.bui-so-join-drawer .activity-tab',
                spmC: 'teamlist',
                spmD: 'chooseprice_',
                logkey: '/yanchu.teamlist_chooseprice.'.concat(e),
                data: ['item_id', 'price', 'rule_id'],
              },
              {
                cssSelector: '.bui-so-join-drawer .so-list .join-team-btn',
                spmC: 'teamlist',
                spmD: 'join_',
                logkey: '/yanchu.teamlist_join.'.concat(e),
                data: ['item_id', 'flow_id'],
              },
              {
                cssSelector: '.bui-so-join-drawer .create-so-wrapper',
                spmC: 'teamlist',
                spmD: 'tocreate',
                logkey: '/yanchu.teamlist_tocreate.'.concat(e),
                data: ['item_id'],
              },
            ]
          },
          Hi = { exp: Yi('exp'), clk: Yi('clk') },
          Vi = {
            buyBtn: 'sku-footer-buy-button-exp',
            priceDetailDrawerBtn: 'sku-price-detail-btn-exp',
            discountDescDrawerBtn: 'sku-discount-desc-btn-exp',
          },
          qi = function () {
            var e = Ri(),
              t = e.hasBookSkuId,
              n = e.detailData,
              a = e.skuProps,
              i = e.isFavorPage,
              l = e.selectedTimes,
              r = e.selectedSku,
              o = e.selectedDate,
              b = e.priceInfo,
              I = e.buyInfo,
              w = e.offlineNoFixDateMessage,
              S = e.errorInfo,
              C = e.userTicketsNum,
              T = e.initPage,
              O = e.onBuyAction,
              D = e.calculatePrice,
              P = e.handleTotalChange,
              x = e.onTimesItemClicked,
              L = e.onDateItemClicked,
              M = e.onSkuItemClicked,
              _ = e.registerNotification,
              F = e.requestCouponInfo,
              j = e.getCoupon,
              R = (0, v.useRouter)(),
              B = a.skuPreview,
              U = a.itemId,
              Y = n.verifyMark,
              H = n.itemAdditionalInfo,
              V = n.promotionDetail,
              q = (0, E.useState)(),
              z = (0, d.A)(q, 2),
              J = z[0],
              G = z[1],
              K = (0, E.useState)(!1),
              W = (0, d.A)(K, 2),
              Q = W[0],
              X = W[1],
              Z = (0, E.useState)(!1),
              $ = (0, d.A)(Z, 2),
              ee = $[0],
              te = $[1],
              ne = (0, E.useState)(!1),
              ae = (0, d.A)(ne, 2),
              ie = ae[0],
              le = ae[1],
              re = { item_id: U }
            ;(0, v.useDidShow)(function () {
              console.log('sendPV')
              console.log(R.params);
              console.log(U);
              f.Ay.sendPV(
                {},
                (0, u.A)(
                  (0, u.A)({ _pageRoute: 'subPackages/sku/index' }, null == R ? void 0 : R.params),
                  {},
                  { item_id: U },
                ),
              )
            }),
              (0, Ga.Ay)(Vi.buyBtn, function () {
                !(function (e) {
                  f.Ay.sendGoldLog(
                    'EXP',
                    '/yanchu.sku.wanttoseeok_exp',
                    (0, u.A)((0, u.A)({}, e), {}, { spmC: 'bottom', spmD: 'wanttoseeok' }),
                  )
                })(re)
              }),
              (0, Ga.Ay)(
                Vi.priceDetailDrawerBtn,
                function () {
                  !(function (e) {
                    f.Ay.sendGoldLog(
                      'EXP',
                      '/yanchu.sku.pricedetail_exp',
                      (0, u.A)((0, u.A)({}, e), {}, { spmC: 'bottom', spmD: 'pricedetail' }),
                    )
                  })(re)
                },
                [b],
              ),
              (0, Ga.Ay)(
                Vi.discountDescDrawerBtn,
                function () {
                  !(function (e) {
                    f.Ay.sendGoldLog(
                      'EXP',
                      '/yanchu.sku.discountdescription_exp',
                      (0, u.A)((0, u.A)({}, e), {}, { spmC: 'ticket', spmD: 'discountdescription' }),
                    )
                  })(re)
                },
                [n],
              ),
              (0, E.useEffect)(function () {
                j()
              }, [])
            var oe = !B && [ni.NO_GOODS, ni.START_SALE].includes(null == r ? void 0 : r.btnType),
              ce = (function () {
                var e = (0, s.A)(
                  (0, c.A)().m(function e() {
                    var t, a, i
                    return (0, c.A)().w(function (e) {
                      for (;;)
                        switch (e.n) {
                          case 0:
                            if (V) {
                              e.n = 1
                              break
                            }
                            return e.a(2)
                          case 1:
                            return (e.n = 2), se()
                          case 2:
                            ;(t = e.v),
                              G(t),
                              X(!0),
                              (a = n.itemBasicInfo),
                              y({ item_id: null == (i = void 0 === a ? {} : a) ? void 0 : i.itemId })
                          case 3:
                            return e.a(2)
                        }
                    }, e)
                  }),
                )
                return function () {
                  return e.apply(this, arguments)
                }
              })(),
              se = (function () {
                var e = (0, s.A)(
                  (0, c.A)().m(function e() {
                    var t
                    return (0, c.A)().w(function (e) {
                      for (;;)
                        switch (e.n) {
                          case 0:
                            return (e.n = 1), F()
                          case 1:
                            if (null != (t = e.v) && t.length) {
                              e.n = 2
                              break
                            }
                            return e.a(2, null)
                          case 2:
                            return e.a(
                              2,
                              (0, Bi.jsxs)(Ja.Ss, {
                                className: 'content-section',
                                children: [
                                  (0, Bi.jsx)(Ja.Ss, { className: 'title', children: '优惠券' }),
                                  t.map(function (e) {
                                    return (0,
                                    Bi.jsx)(Ui, { activity: e, itemId: U }, null == e ? void 0 : e.couponActSpreadId)
                                  }),
                                ],
                              }),
                            )
                        }
                    }, e)
                  }),
                )
                return function () {
                  return e.apply(this, arguments)
                }
              })(),
              ue = N()(
                function (e) {
                  console.log('这里可以了')
                  ;(function (e) {
                    f.Ay.sendGoldLog(
                      'CLK',
                      '/yanchu.sku.wanttoseeok_clk',
                      (0, u.A)((0, u.A)({}, e), {}, { spmC: 'bottom', spmD: 'wanttoseeok' }),
                    )
                  })(re),
                    // B ? i && _(ai.WILL_BUY) : oe ? _(ai.SALE_TIP) : O(e)
                    O(e)
                },
                500,
                { leading: !0, trailing: !1 },
              )
            return (0, Bi.jsx)(A.A, {
              className: (0, m.A)(!1 === Y ? 'fh' : '', 'bui-default-light sku-wrapper'),
              onMutate: function (e) {
                ;(0, za.E0)(e, Hi)
              },
              onAutoClick: function (e, t) {
                ;(0, za.MQ)(e, t, Hi)
              },
              dynamicData: { item_id: U },
              children: (0, Bi.jsx)(qa, {
                hasHolidayStatus: !0,
                hasBookSkuId: t,
                detailData: n,
                skuProps: a,
                isFavorPage: i,
                selectedTimes: l,
                selectedSku: r,
                selectedDate: o,
                priceInfo: b,
                buyInfo: I,
                offlineNoFixDateMessage: w,
                errorInfo: S,
                expLogClasses: Vi,
                openNoticeDrawer: ee,
                openPriceDetailDrawer: ie,
                openPromotionDrawer: Q,
                promotionDrawerCouponSlot: J,
                userTicketsNum: C,
                toast: k.o,
                initPage: T,
                onClickBuyBtn: ue,
                onTotalChange: P,
                calculatePrice: D,
                onTimesItemClicked: x,
                onDateItemClicked: L,
                onSkuItemClicked: M,
                showSeatImg: function (e, t) {
                  null != t &&
                    t.seatImg &&
                    p().previewImage({
                      urls: [null == t ? void 0 : t.seatImg],
                      current: null == t ? void 0 : t.seatImg,
                    })
                },
                onTimesRightTitleClick: function () {},
                onSkuRightTitleClick: ce,
                onNoticeLayerClick: function () {
                  null != H && H.announcementList && te(!0)
                },
                onClickServiceFee: function () {
                  null != H && H.serviceFeeAgreementURL && Ka.A.navTo(H.serviceFeeAgreementURL)
                },
                showPriceDrawer: function () {
                  ;(function (e) {
                    f.Ay.sendGoldLog(
                      'CLK',
                      '/yanchu.sku.pricedetail_clk',
                      (0, u.A)((0, u.A)({}, e), {}, { spmC: 'bottom', spmD: 'pricedetail' }),
                    )
                  })(re),
                    le(!0)
                },
                onPriceDetailDrawerModuleIconClick: function (e, t) {
                  t && Ka.A.navTo(t)
                },
                onNoticeDrawerPreviewImage: function (e, t) {
                  p().previewImage({ urls: [t], current: t })
                },
                closeNoticeDrawer: function () {
                  te(!1)
                },
                closePriceDetailDrawer: function () {
                  le(!1)
                },
                closePromotionDrawer: function () {
                  X(!1)
                },
                pagePropsSendClk: h,
                pagePropsSendExp: g,
              }),
            })
          }
        Page(
          (0, o.eU)(
            qi,
            'subPackages/sku/index',
            { root: { cn: [] } },
            {
              navigationBarTitleText: '选择票档',
              navigationBarBackgroundColor: '#FF6185',
              navigationBarTextStyle: 'white',
              spmB: 'sku',
            } || {},
          ),
        )
      },
    },
    function (e) {
      e.O(0, [933, 6907, 8096, 2076], function () {
        return (t = 9389), e((e.s = t))
        var t
      }),
        e.O()
    },
  ])
