{
  "version": 3,
  "sources": ["/cdn/shop/t/285/assets/sedr-cart-counter.js?x=1"],
  "sourcesContent": ["// Sedr Al-Khaleej, STR-214: the in-cart counter (Moaz 5 Nov: \u00AB\u0628\u0645\u062C\u0631\u062F \u0627\u0644\u0636\u063A\u0637 \u0639\u0644\u0649 \u0632\u0627\u0626\u062F \u064A\u0636\u0627\u0641 \u062D\u0628\u0629 \u0648\u0643\u0644\u0645\u0627 \u0632\u064A\u062F \u0627\u0636\u064A\u0641\u0629 \u0627\u0644\u0632\u064A\u0627\u062F\u0629\n// \u0645\u0639 \u0638\u0647\u0648\u0631 \u0627\u0644\u0631\u0642\u0645 ... \u0648\u0639\u062F\u0645 \u0641\u062A\u062D \u0627\u0644\u0633\u0644\u0629 \u0643\u0644 \u0645\u0631\u0629\u00BB).\n// <sedr-cart-counter data-variant data-max>: \u00AB\u2212\u00BB N \u00AB+\u00BB for one variant, shown while the variant is in the cart.\n// - On a product card it sits beside the theme's quick add form and takes over its submit: the first press adds one\n//   without opening the cart, then the card shows the number. Products with options keep the theme's quick buy, and\n//   <sedr-cart-counter data-product> there is only a badge with the number in the cart.\n// - In the product page's sticky bar it replaces the add button once the chosen variant is in the cart.\n// Quick presses are gathered into one request (as assets/sedr-cart-qty.js does in the cart, STR-57), the number moves at\n// once and the cart follows; on an error the number goes back to the cart's and the reason is announced.\n// The theme hears every change through its own events (variant:add with blockCartDrawerOpening, then cart:change), so\n// the header count, the drawer, the free shipping bar and the Kaching quantity discount, which the cart works out from\n// the line quantity, stay right. Every counter of a variant on the page shows the same number.\n// Loaded as a module from the card and the bar, so the many copies run once. Toggle: sedr_cart_counter_enabled.\n\nconst root = window.Shopify?.routes?.root || '/';\nlet cart = null;\nlet loading = null;\nconst pending = new Map(); // variant id \u2192 { target, timer, busy }\n\nconst fetchJson = () => fetch(`${root}cart.js`, { headers: { Accept: 'application/json' } }).then((r) => r.json());\n// STR-219: the first read takes the theme's own cart request (fetchCart in theme.js), so the page asks for the cart once.\n// The theme's promise never settles when its request fails, so after 5s the counter asks on its own.\nconst themeCart = () => import('theme').then(({ fetchCart }) => new Promise((resolve, reject) => {\n  let done = false;\n  const own = () => { if (!done) { done = true; fetchJson().then(resolve, reject); } };\n  const timer = setTimeout(own, 5000);\n  Promise.resolve(fetchCart).then((c) => {\n    clearTimeout(timer);\n    if (Array.isArray(c?.items)) { if (!done) { done = true; resolve(c); } } else own();\n  }, () => { clearTimeout(timer); own(); });\n})).catch(fetchJson);\n\nconst load = (fresh) => {\n  if (fresh || !loading) loading = (fresh ? fetchJson() : themeCart()).then(setCart).catch(() => null);\n  return loading;\n};\n\n// The cart's number in the header and the bottom nav gives a small beat when the cart grows (Moaz 5 Nov: \u00AB\u062A\u0623\u062B\u064A\u0631\u0627\u062A \u0627\u0646\u0645\u064A\u0634\u0646\n// \u0644\u062A\u0648\u0636\u064A\u062D \u0627\u0646\u0647 \u0627\u0636\u064A\u0641 \u0644\u0644\u0633\u0644\u0629 \u0648\u0627\u0646 \u0639\u062F\u0627\u062F \u0627\u0644\u0633\u0644\u0629 \u062A\u062D\u0631\u0643\u00BB), from any add on the page, as the cart stays closed. The nav is not\n// brought back for it: it would lift the bar under a thumb that is still pressing \u00AB+\u00BB.\nlet counted = null;\nconst beat = (count) => {\n  if (counted !== null && count > counted && !matchMedia('(prefers-reduced-motion: reduce)').matches) {\n    // After the theme writes the new number in, on its own cart:change\n    requestAnimationFrame(() => document.querySelectorAll('cart-count').forEach((el) => {\n      if (el.getClientRects().length) el.animate?.([{ scale: '1' }, { scale: '1.45' }, { scale: '1' }], { duration: 420, easing: 'cubic-bezier(.3, .7, .3, 1)' });\n    }));\n  }\n  counted = count;\n};\n\nconst setCart = (next) => {\n  if (!next || !Array.isArray(next.items)) return cart;\n  if (counted === null) counted = next.item_count;\n  cart = next;\n  render();\n  return cart;\n};\n\nconst lines = (variant) => (cart?.items || []).filter((item) => String(item.variant_id) === variant);\nconst inCart = (variant) => lines(variant).reduce((sum, item) => sum + item.quantity, 0);\nconst productInCart = (product) => (cart?.items || []).filter((item) => String(item.product_id) === product).reduce((sum, item) => sum + item.quantity, 0);\nconst shown = (variant) => (pending.has(variant) ? pending.get(variant).target : inCart(variant));\n\nconst render = () => document.querySelectorAll('sedr-cart-counter').forEach((el) => el.update());\n\n// The theme gathers the sections it re-renders from the cart response (the drawer, the popover), as for its own form\nconst bundle = () => {\n  const sections = [];\n  document.documentElement.dispatchEvent(new CustomEvent('cart:prepare-bundled-sections', { bubbles: true, detail: { sections } }));\n  return sections;\n};\n\nconst post = async (path, body) => {\n  const response = await fetch(`${root}cart/${path}`, {\n    method: 'POST',\n    headers: { 'Content-Type': 'application/json', Accept: 'application/json' },\n    body: JSON.stringify(body),\n  });\n  const json = await response.json().catch(() => ({}));\n  if (!response.ok) throw Object.assign(new Error(json.description || json.message || response.status), { description: json.description || json.message });\n  return json;\n};\n\nasync function flush(variant, from) {\n  const job = pending.get(variant);\n  if (!job || job.busy) return;\n  const delta = job.target - inCart(variant);\n  if (delta === 0) { pending.delete(variant); render(); return; }\n  const before = inCart(variant);\n  job.busy = true;\n  const sections = bundle();\n  const extra = sections.length ? { sections: sections.join(','), sections_url: location.pathname } : {};\n  const all = lines(variant);\n  let added = null;\n  try {\n    let next;\n    if (delta > 0 && !all.length) {\n      // Not in the cart yet: one add, which the theme announces as its own\n      const response = await post('add.js', { items: [{ id: Number(variant), quantity: delta }], ...extra });\n      added = response.items || [response];\n      next = await (await fetch(`${root}cart.js`, { headers: { Accept: 'application/json' } })).json();\n      next.sections = response.sections;\n    } else {\n      // In the cart: a plain line moves, so a line with its own properties or a selling plan (an offer) is kept\n      const plain = all.filter((item) => !item.selling_plan_allocation && !Object.keys(item.properties || {}).length);\n      const pool = plain.length ? plain : all;\n      const line = delta > 0 ? pool[0] : pool[pool.length - 1];\n      next = await post('change.js', { id: line.key, quantity: Math.max(0, line.quantity + delta), ...extra });\n    }\n    setCart(next);\n    if (added) from.dispatchEvent(new CustomEvent('variant:add', { bubbles: true, detail: { items: added, cart: next, blockCartDrawerOpening: true } }));\n    document.documentElement.dispatchEvent(new CustomEvent('cart:change', { bubbles: true, detail: { baseEvent: added ? 'variant:add' : 'line-item:change', cart: next, sedr: true } }));\n    job.busy = false;\n    // A change made elsewhere (the drawer) while the request was out wins over the presses here\n    if (pending.get(variant) !== job) { render(); return; }\n    // A response that left the variant as it was (the store capped it at its stock, or an app moved another line) ends the\n    // batch, so the same request is never sent again and again\n    if (inCart(variant) === before) {\n      pending.delete(variant);\n      render();\n      if (job.target > before) from.say(from.dataset.limit || from.dataset.error);\n      return;\n    }\n    // Presses made while the request was out go in the next one\n    if (job.target !== inCart(variant)) flush(variant, from); else { pending.delete(variant); render(); }\n  } catch (error) {\n    pending.delete(variant);\n    await load(true);\n    from.say(error.description || from.dataset.error);\n  }\n}\n\nclass SedrCartCounter extends HTMLElement {\n  connectedCallback() {\n    if (this.ready) { this.update(); return; }\n    this.ready = true;\n    this.variant = this.dataset.variant || '';\n    this.product = this.dataset.product || '';\n    this.max = parseInt(this.dataset.max, 10);\n    this.count = this.querySelector('[data-count]');\n    this.less = this.querySelector('[data-less]');\n    this.more = this.querySelector('[data-more]');\n    this.status = this.querySelector('[data-status]');\n    this.addEventListener('click', (event) => {\n      const button = event.target.closest('[data-less], [data-more]');\n      if (button && button.getAttribute('aria-disabled') !== 'true') this.step(button.hasAttribute('data-more') ? 1 : -1);\n    });\n    // The card's quick add form: its first press is this counter's first \u00AB+\u00BB, so the cart does not open\n    const form = this.hasAttribute('data-form') && this.parentElement?.querySelector('form[is=\"product-form\"]');\n    if (form) {\n      this.parentElement.addEventListener('submit', (event) => {\n        if (event.target !== form) return;\n        event.preventDefault();\n        event.stopPropagation();\n        this.step(1, true);\n      }, true);\n    }\n    this.update();\n    load();\n  }\n\n  step(by, fromForm = false) {\n    if (!cart) { load().then(() => cart && this.step(by, fromForm)); return; }\n    const now = shown(this.variant);\n    const target = Math.max(0, now + by);\n    if (by > 0 && this.max > 0 && target > this.max) { this.say(this.dataset.limit); return; }\n    const job = pending.get(this.variant) || { target: now, busy: false };\n    job.target = target;\n    pending.set(this.variant, job);\n    render();\n    if (fromForm) this.more?.focus({ preventScroll: true });\n    clearTimeout(job.timer);\n    // The first add goes at once; the presses after it wait for a pause\n    job.timer = setTimeout(() => flush(this.variant, this), now === 0 && by > 0 ? 0 : 450);\n  }\n\n  say(text) {\n    if (!this.status || !text) return;\n    this.status.textContent = text;\n    this.classList.add('has-note');\n    clearTimeout(this.noteTimer);\n    this.noteTimer = setTimeout(() => { this.classList.remove('has-note'); this.status.textContent = ''; }, 3500);\n  }\n\n  update() {\n    if (!this.ready) return;\n    const n = this.product ? productInCart(this.product) : shown(this.variant);\n    const on = n > 0;\n    if (this.classList.contains('is-in') !== on) {\n      this.classList.toggle('is-in', on);\n      // Opens out of the button only when a press puts it in the cart, not when the page comes with it\n      if (on) { this.classList.add('is-open'); setTimeout(() => this.classList.remove('is-open'), 300); }\n    }\n    if (this.hidden === on) this.hidden = !on;\n    if (this.count && this.count.textContent !== String(n)) {\n      const was = this.count.textContent;\n      this.count.textContent = on ? String(n) : '';\n      // A small lift of the number when a press changes it, so the shopper sees the cart took it\n      if (on && was && !matchMedia('(prefers-reduced-motion: reduce)').matches) this.count.animate?.([{ transform: 'scale(1.3)' }, { transform: 'none' }], { duration: 200, easing: 'ease-out' });\n    }\n    if (this.less) {\n      const last = n === 1;\n      this.less.classList.toggle('is-remove', last);\n      this.less.setAttribute('aria-label', last ? this.dataset.remove : this.dataset.decrease);\n    }\n    if (this.more) this.more.setAttribute('aria-disabled', String(this.max > 0 && n >= this.max));\n  }\n}\n\nif (!customElements.get('sedr-cart-counter')) {\n  // The look, once for every counter (the badge sits on the card's round button; the bar's counter takes the button's place)\n  const style = document.createElement('style');\n  style.textContent = `\n  .sedr-cc[hidden] { display: none !important; }\n  .sedr-cc { --sedr-cc-h: 2.75rem; position: relative; display: inline-flex; align-items: center; height: var(--sedr-cc-h); border-radius: 999px; background: rgb(var(--background-primary, 255 255 255)); color: rgb(var(--text-primary, 30 27 24)); box-shadow: inset 0 0 0 1px rgb(var(--text-primary, 30 27 24) / .14), 0 2px 8px rgb(0 0 0 / .08); font-weight: 600; font-variant-numeric: tabular-nums; }\n  .sedr-cc__btn { display: grid; place-content: center; width: 2.25rem; height: 100%; border-radius: 999px; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n  .sedr-cc__btn[aria-disabled=\"true\"] { opacity: .3; cursor: default; }\n  .sedr-cc__n { min-width: 1.25rem; text-align: center; font-size: var(--text-sm, .875rem); }\n  .sedr-cc__bin, .sedr-cc .is-remove .sedr-cc__minus { display: none; }\n  .sedr-cc .is-remove .sedr-cc__bin { display: block; }\n  .sedr-cc__note { position: absolute; bottom: calc(100% + 6px); inset-inline-end: 0; z-index: 3; width: max-content; max-width: 13rem; padding: 6px 10px; border-radius: 8px; background: rgb(var(--text-primary, 30 27 24)); color: rgb(var(--background-primary, 255 255 255)); font-size: .75rem; font-weight: 500; line-height: 1.4; }\n  .sedr-cc:not(.has-note) .sedr-cc__note { display: none; }\n  /* STR-218 (Moaz 6 Nov: \u00AB\u0627\u0644\u0632\u064A\u0627\u062F\u0629 \u064A\u0645\u064A\u0646\u00BB): in Arabic the plus takes the right and the minus the left, on the counters and on\n     the product's quantity, the page and the quick view. English keeps the minus first. */\n  [dir=\"rtl\"] .sedr-cc > [data-more], [dir=\"rtl\"] .product-info__quantity-selector .quantity-selector > .quantity-selector__button:last-child { order: -1; }\n  [dir=\"rtl\"] .sedr-cc > [data-less], [dir=\"rtl\"] .product-info__quantity-selector .quantity-selector > .quantity-selector__button:first-child { order: 1; }\n  @media (hover: hover) { .sedr-cc__btn:not([aria-disabled=\"true\"]):hover { background: rgb(var(--text-primary, 30 27 24) / .06); } }\n  .product-card__quick-buy:has(> .sedr-cc--card.is-in) > form { display: none; }\n  .product-card__quick-buy:has(> .sedr-cc--card.is-in) { opacity: 1; visibility: visible; transform: none; }\n  /* On a phone the card's round button is the counter's first \u00AB+\u00BB (Moaz: \u00AB\u064A\u062C\u0628 \u0627\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u062A\u062C\u0631\u0628\u0629 \u0623\u0643\u062B\u0631 \u0633\u0644\u0627\u0633\u0629\u00BB): it shows a\n     plus instead of the bag, and the counter opens out of it at its size and edge. */\n  .product-card__quick-buy:has(> .sedr-cc--card) .product-card__mobile-quick-buy-button svg { display: none; }\n  .product-card__quick-buy:has(> .sedr-cc--card) .product-card__mobile-quick-buy-button > div::before { content: \"\"; display: block; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat; }\n  .sedr-cc--card.is-open { animation: sedr-cc-open .22s cubic-bezier(.2, .8, .3, 1); }\n  .sedr-cc--card.is-open:dir(rtl) { animation-name: sedr-cc-open-rtl; }\n  @keyframes sedr-cc-open { from { clip-path: inset(0 0 0 calc(100% - var(--sedr-cc-h)) round 999px); } to { clip-path: inset(0 round 999px); } }\n  @keyframes sedr-cc-open-rtl { from { clip-path: inset(0 calc(100% - var(--sedr-cc-h)) 0 0 round 999px); } to { clip-path: inset(0 round 999px); } }\n  @media (pointer: coarse) {\n    .sedr-cc--card { --sedr-cc-h: 36px; box-shadow: inset 0 0 0 1px rgb(var(--text-primary, 30 27 24) / .12); }\n    .sedr-cc--card .sedr-cc__btn { width: 36px; }\n  }\n  @media (prefers-reduced-motion: reduce) { .sedr-cc--card.is-open { animation: none; } }\n  /* In the cart the card's counter is filled, so a glance down the grid shows what is already in the cart */\n  .sedr-cc--card.is-in { background: rgb(var(--text-primary, 30 27 24)); color: rgb(var(--background-primary, 255 255 255)); box-shadow: 0 2px 8px rgb(0 0 0 / .12); }\n  @media (hover: hover) { .sedr-cc--card.is-in .sedr-cc__btn:not([aria-disabled=\"true\"]):hover { background: rgb(var(--background-primary, 255 255 255) / .14); } }\n  .sedr-cc--badge { position: absolute; top: -.375rem; inset-inline-end: -.375rem; z-index: 2; min-width: 1.25rem; height: 1.25rem; padding: 0 .25rem; justify-content: center; background: rgb(var(--text-primary, 30 27 24)); color: rgb(var(--background-primary, 255 255 255)); box-shadow: none; font-size: .6875rem; pointer-events: none; }\n  @media (pointer: fine) { .sedr-cc--badge { display: none; } }\n  .sedr-cc--bar { --sedr-cc-h: 44px; box-shadow: inset 0 0 0 1px rgb(var(--text-primary, 30 27 24) / .15), 0 2px 10px rgb(0 0 0 / .12); }\n  .sedr-cc--bar .sedr-cc__btn { width: 44px; }\n  .sedr-cc__in { margin-inline: .375rem; font-size: var(--text-xs, .75rem); font-weight: 500; opacity: .7; }\n  :is(.product-quick-add, .product-quick-add__variant):has(> .sedr-cc--bar.is-in) > :is(.sedr-sticky-qty, buy-buttons) { display: none !important; }\n  .product-quick-add > .sedr-cc { display: none !important; }\n  @media screen and (max-width: 699px) { .product-quick-add__variant > .sedr-cc--bar { --sedr-cc-h: 46px; } }\n  @media screen and (max-width: 429px) { .product-quick-add__variant > .sedr-cc--bar .sedr-cc__btn { width: 36px; } .sedr-cc__in { display: none; } }\n  @media screen and (max-width: 359px) { .product-quick-add__variant > .sedr-cc--bar { --sedr-cc-h: 44px; } }\n`;\n  document.head.append(style);\n  customElements.define('sedr-cart-counter', SedrCartCounter);\n  document.addEventListener('cart:change', (event) => {\n    if (!event.detail?.cart?.items) return;\n    // A change from elsewhere (the drawer, the cart page) drops the presses still waiting here, so they do not undo it\n    if (!event.detail.sedr) { pending.forEach((job) => clearTimeout(job.timer)); pending.clear(); }\n    beat(event.detail.cart.item_count);\n    setCart(event.detail.cart);\n  });\n  document.addEventListener('cart:refresh', () => load(true));\n  window.addEventListener('pageshow', (event) => { if (event.persisted) load(true); });\n}\n"],
  "mappings": "AAcA,MAAM,KAAO,OAAO,SAAS,QAAQ,MAAQ,IAC7C,IAAI,KAAO,KACP,QAAU,KACd,MAAM,QAAU,IAAI,IAEd,UAAY,IAAM,MAAM,GAAG,IAAI,UAAW,CAAE,QAAS,CAAE,OAAQ,kBAA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