{
  "version": 3,
  "sources": ["/cdn/shop/t/3/assets/slide.js?cv=f899159"],
  "sourcesContent": ["const defaultOptions = {\n  duration: 400,\n  delay: 0\n};\nconst slideUp = (target, options = defaultOptions, callback) => {\n  let { display } = window.getComputedStyle(target);\n  if (display === \"none\") display = \"block\";\n  target.style.display = display;\n  target.style.transitionProperty = \"height\";\n  target.style.transitionDuration = `${options.duration}ms`;\n  target.style.transitionTimingFunction = options.easing ? options.easing : \"ease\";\n  target.style.height = `${target.offsetHeight}px`;\n  setTimeout(() => {\n    console.log(target.offsetHeight);\n    target.style.overflow = \"hidden\";\n    target.style.height = \"0px\";\n    setTimeout(() => {\n      target.style.removeProperty(\"height\");\n      target.style.removeProperty(\"opacity\");\n      target.style.removeProperty(\"overflow\");\n      target.style.removeProperty(\"transition-duration\");\n      target.style.removeProperty(\"transition-property\");\n      target.style.display = \"none\";\n      if (callback) {\n        callback();\n      }\n    }, options.duration);\n  }, 10);\n};\nconst slideDown = (target, options = defaultOptions, callback) => {\n  const transition = () => {\n    target.style.removeProperty(\"display\");\n    let { display } = window.getComputedStyle(target);\n    if (display === \"none\") display = \"block\";\n    target.style.display = display;\n    const height = target.offsetHeight;\n    target.style.overflow = \"hidden\";\n    target.style.height = \"0px\";\n    target.offsetHeight;\n    target.style.transitionProperty = \"height\";\n    target.style.transitionDuration = `${options.duration}ms`;\n    target.style.transitionTimingFunction = options.easing ? options.easing : \"ease\";\n    target.style.height = `${height}px`;\n    setTimeout(() => {\n      target.style.removeProperty(\"height\");\n      target.style.removeProperty(\"height\");\n      target.style.removeProperty(\"overflow\");\n      target.style.removeProperty(\"opacity\");\n      target.style.removeProperty(\"transition-duration\");\n      target.style.removeProperty(\"transition-property\");\n      if (callback) {\n        callback();\n      }\n    }, options.duration);\n  };\n  if (options.delay) {\n    setTimeout(() => {\n      transition();\n    }, options.delay);\n  } else {\n    transition();\n  }\n};\nexport {\n  slideDown as a,\n  slideUp as s\n};\n"],
  "mappings": "AAAA,MAAM,eAAi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