{"product_id":"whale-gravity-pet-water-dispenser","title":"Whale Gravity Pet Water Dispenser","description":"\u003cdiv class=\"frezunia-whale\"\u003e\n\u003csection class=\"whale-scene\" aria-labelledby=\"whale-scene-title\"\u003e\n  \u003cdiv class=\"whale-scene-copy\"\u003e\n\u003ch2 id=\"whale-scene-title\"\u003eA fresh sip for the pets at home\u003c\/h2\u003e\n\u003cp\u003eThe bowl refills as your cat or small dog drinks. Gravity brings water down from the attached bottle, so there's no pump, cord, or battery.\u003c\/p\u003e\n\u003c\/div\u003e\n  \u003cfigure\u003e\u003cpicture\u003e\u003csource media=\"(prefers-reduced-motion: reduce)\" srcset=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-pets-drinking.jpg?v=1795229829\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-refill-demo.gif?v=1795229879\" alt=\"Cats drinking from both colors of the whale dispenser\" width=\"400\" height=\"400\" loading=\"lazy\" decoding=\"async\"\u003e\u003c\/picture\u003e\u003cfigcaption\u003eShown with bottles attached for demonstration.\u003c\/figcaption\u003e\u003c\/figure\u003e\n\u003c\/section\u003e\n\u003cfigure class=\"whale-banner\"\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-extra-home-hydration.jpg?v=1795230247\" alt=\"Whale-shaped gravity dispenser being used by a cat at home\" width=\"1200\" height=\"675\" loading=\"lazy\" decoding=\"async\"\u003e\u003c\/figure\u003e\n\u003csection class=\"whale-features\" aria-labelledby=\"whale-features-title\"\u003e\n  \u003ch2 id=\"whale-features-title\"\u003eSet up, drink, rinse\u003c\/h2\u003e\n  \u003cdiv class=\"whale-feature-list\"\u003e\n\u003carticle\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-bottle-fit.jpg?v=1795229885\" alt=\"Compatible bottles for the screw-lock fitting\" width=\"1254\" height=\"1254\" loading=\"lazy\" decoding=\"async\"\u003e\u003cdiv\u003e\n\u003ch3\u003eBring a bottle that fits\u003c\/h3\u003e\n\u003cp\u003eFill a compatible screw-top bottle, attach it firmly, then let the bowl fill on a level surface. Check the fit before turning the bottle upside down.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/article\u003e\u003carticle\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-suction-foot.jpg?v=1795229871\" alt=\"Underside of the whale dispenser with suction feet\" width=\"1254\" height=\"1254\" loading=\"lazy\" decoding=\"async\"\u003e\u003cdiv\u003e\n\u003ch3\u003eA steadier spot to drink\u003c\/h3\u003e\n\u003cp\u003ePress the suction feet onto a clean, smooth surface to help keep the dispenser in place while your pet drinks.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/article\u003e\u003carticle\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-easy-clean.jpg?v=1795229865\" alt=\"Exploded view of the detachable whale dispenser parts\" width=\"1254\" height=\"1254\" loading=\"lazy\" decoding=\"async\"\u003e\u003cdiv\u003e\n\u003ch3\u003eTake it apart to rinse\u003c\/h3\u003e\n\u003cp\u003eDetach the bowl pieces to rinse the surfaces that touch water. Replace the water regularly and reassemble when clean.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/article\u003e\u003carticle\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-extra-siphon-refill.jpg?v=1795230231\" alt=\"Illustration of the gravity refill system supplying the bowl as a cat drinks\" width=\"1254\" height=\"1254\" loading=\"lazy\" decoding=\"async\"\u003e\u003cdiv\u003e\n\u003ch3\u003eRefills as they drink\u003c\/h3\u003e\n\u003cp\u003eWhen the water level drops, more water flows down from the attached bottle. The amount of water available depends on the bottle you use.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/article\u003e\u003carticle\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-extra-compact-size.jpg?v=1795230240\" alt=\"Carrying the compact pink whale dispenser with the bottle removed\" width=\"1254\" height=\"1254\" loading=\"lazy\" decoding=\"async\"\u003e\u003cdiv\u003e\n\u003ch3\u003eEasy to move between rooms\u003c\/h3\u003e\n\u003cp\u003eRemove the bottle and empty the tray before you carry the dispenser to a new spot.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/article\u003e\u003carticle\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-pets-drinking.jpg?v=1795229829\" alt=\"A cat and a small dog using the whale water dispenser\" width=\"1254\" height=\"1254\" loading=\"lazy\" decoding=\"async\"\u003e\u003cdiv\u003e\n\u003ch3\u003eA bowl for cats and small dogs\u003c\/h3\u003e\n\u003cp\u003eSet it in your pet’s usual drinking area on a flat surface where they can approach it comfortably.\u003c\/p\u003e\n\u003c\/div\u003e\u003c\/article\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\u003csection class=\"whale-spec\" aria-labelledby=\"whale-spec-title\"\u003e\n  \u003ch2 id=\"whale-spec-title\"\u003eTechnical Specifications\u003c\/h2\u003e\n  \u003cdl\u003e\n\u003cdiv\u003e\n\u003cdt\u003eBest for\u003c\/dt\u003e\n\u003cdd\u003eCats and small dogs\u003c\/dd\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdt\u003eRefill system\u003c\/dt\u003e\n\u003cdd\u003eGravity-fed screw-top fitting\u003c\/dd\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdt\u003ePower\u003c\/dt\u003e\n\u003cdd\u003eNo electricity required\u003c\/dd\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdt\u003eColors\u003c\/dt\u003e\n\u003cdd\u003eMist Blue and Blossom Pink\u003c\/dd\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdt\u003ePacked weight\u003c\/dt\u003e\n\u003cdd\u003eApprox. 410 g (0.90 lb)\u003c\/dd\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cdt\u003eIn the box\u003c\/dt\u003e\n\u003cdd\u003e1 whale water dispenser. Bottle not included.\u003c\/dd\u003e\n\u003c\/div\u003e\n\u003c\/dl\u003e\n\u003c\/section\u003e\n\u003c\/div\u003e\n\u003cstyle\u003e\n.frezunia-whale{--whale-ink:#183940;--whale-muted:#466066;--whale-line:#d5e5e4;--whale-mint:#e8f5f3;--whale-blush:#fff0ea;max-width:1220px;margin:0 auto;padding:clamp(16px,4vw,54px) clamp(16px,3.8vw,48px) clamp(35px,6vw,82px);color:var(--whale-ink);line-height:1.5;box-sizing:border-box}\n.frezunia-whale h2,.frezunia-whale h3,.frezunia-whale p,.frezunia-whale figure,.frezunia-whale ul,.frezunia-whale dl{margin:0}\n.frezunia-whale h2,.frezunia-whale h3{color:var(--whale-ink);text-wrap:balance}\n.frezunia-whale h2{font-size:clamp(25px,3.2vw,42px);line-height:1.08;letter-spacing:-.032em}\n.frezunia-whale h3{font-size:clamp(18px,1.75vw,23px);line-height:1.18}\n.frezunia-whale p,.frezunia-whale dd{font-size:clamp(15px,1.25vw,17px);color:var(--whale-muted)}\n\n\n\n\n\n\n\n\n\n.frezunia-whale .whale-scene{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(14px,4.2vw,46px);align-items:center;padding:clamp(20px,4vw,48px);background:#eff4f1;border-radius:22px}\n.frezunia-whale .whale-scene-copy p{margin-top:15px;max-width:35ch}\n.frezunia-whale .whale-scene figure{width:min(100%,400px);justify-self:center}\n.frezunia-whale img{display:block;width:100%;height:auto;margin:0;border:0}\n.frezunia-whale .whale-scene img{aspect-ratio:1;object-fit:cover;border-radius:14px}\n.frezunia-whale figcaption{font-size:13px;margin-top:8px;color:var(--whale-muted)}\n.frezunia-whale .whale-banner{margin:clamp(20px,4vw,42px) 0 0;overflow:hidden;border-radius:18px;background:#f4f6f4}\n.frezunia-whale .whale-features,.frezunia-whale .whale-spec{margin-top:clamp(35px,6.5vw,76px)}\n.frezunia-whale .whale-feature-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,24px);margin-top:clamp(14px,2.8vw,28px)}\n.frezunia-whale .whale-feature-list article{overflow:hidden;border:1px solid var(--whale-line);border-radius:16px;background:#fff}\n.frezunia-whale .whale-feature-list article \u003e div{padding:clamp(16px,2.2vw,25px)}\n.frezunia-whale .whale-feature-list article p{margin-top:8px}\n.frezunia-whale .whale-spec dl{display:grid;grid-template-columns:1fr 1fr;margin-top:19px;border-top:1px solid var(--whale-line)}\n.frezunia-whale .whale-spec dl div{padding:12px 13px;border-bottom:1px solid var(--whale-line)}\n.frezunia-whale .whale-spec dt{font-weight:700;font-size:14px}\n.frezunia-whale .whale-spec dd{margin:2px 0 0}\n@media(max-width:749px){.frezunia-whale .whale-scene,.frezunia-whale .whale-feature-list{grid-template-columns:1fr}.frezunia-whale .whale-scene{gap:20px}.frezunia-whale .whale-feature-list{gap:18px}.frezunia-whale .whale-scene-copy p{margin-top:10px}}\n@media(max-width:360px){.frezunia-whale .whale-spec dl{grid-template-columns:1fr}}\nbody:has(.frezunia-whale) .fz-buy-summary:not([data-whale-summary]){display:none}\n\u003c\/style\u003e\n\u003cscript\u003e(() =\u003e {\n  const product = window.yx_product;\n  if (String(product?.id) !== '9149870211190') return;\n\n  const summary = document.querySelector('.fz-buy-summary');\n  if (summary) {\n    summary.textContent = 'Gravity-fed water refills for cats and small dogs. Bring your own compatible screw-top bottle.';\n    summary.dataset.whaleSummary = 'true';\n  }\n\n  const subscription = document.querySelector('.yx-subscription-ui--checkout input[name=\"subscription_enabled\"][data-selling-plan-id=\"2820931702\"]');\n  if (!subscription || subscription.dataset.whaleOptIn === 'true') return;\n  const wasSelected = subscription.checked;\n  subscription.dataset.whaleOptIn = 'true';\n  subscription.dataset.yxDefaultOpenApplied = '1';\n  subscription.defaultChecked = false;\n  subscription.checked = false;\n  if (wasSelected) subscription.dispatchEvent(new Event('change', { bubbles: true }));\n})();\u003c\/script\u003e\n\u003cstyle\u003e\n.whale-bundle{--wb-accent:#4d8376;--wb-border:#c9d9d4;--wb-active:#eaf3f0;--wb-text:#19342f;box-sizing:border-box;min-width:0;width:100%;border:0;margin:1.2rem 0;padding:0;color:var(--wb-text)}\n.whale-bundle legend{display:flex;align-items:center;gap:.85rem;width:100%;margin-bottom:.8rem;padding:0;color:var(--wb-text);font-size:1.35rem;font-weight:800;letter-spacing:.055em;text-align:center;text-transform:uppercase}\n.whale-bundle legend::before,.whale-bundle legend::after{content:\"\";flex:1;border-top:1px solid var(--wb-border)}\n.whale-bundle__row{min-width:0;margin-bottom:.65rem;border:1px solid var(--wb-border);border-radius:10px;background:#fbfdfc}\n.whale-bundle__row:has(input[type=radio]:checked){border-color:var(--wb-accent);box-shadow:0 0 0 1px var(--wb-accent);background:var(--wb-active)}\n.whale-bundle__label{display:flex;align-items:center;min-height:54px;gap:.65rem;margin:0;padding:.85rem 1rem;cursor:pointer;font-size:1.42rem;line-height:1.25}\n.whale-bundle__label :where(input[type=radio]){position:static;appearance:auto;clip:auto;opacity:1;flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:var(--wb-accent)}\n.whale-bundle__name{flex:0 0 auto;white-space:nowrap}\n.whale-bundle__badge{border-radius:4px;background:#255647;color:#fff;padding:.29rem .5rem;font-size:1.08rem;font-weight:700;white-space:nowrap}\n.whale-bundle__prices{display:grid;justify-items:end;gap:.15rem;margin-left:auto;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}\n.whale-bundle__prices strong{color:#306f60;font-size:1.65rem;line-height:1.05}\n.whale-bundle__prices del,.whale-bundle__prices small{font-size:1.12rem;color:#526461}\n.whale-bundle__slots{border-top:1px solid var(--wb-border);display:grid;gap:.55rem;margin:0 1rem;padding:.8rem 0 1rem}\n.whale-bundle__slot{display:grid;grid-template-columns:2.75rem minmax(0,1fr);align-items:center;gap:.55rem;margin:0;font-size:1.23rem;line-height:1.3}\n.whale-bundle__color-label{display:block;margin-bottom:.24rem;color:#526461;font-size:1.02rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}\n.whale-bundle__slot select{display:block;width:100%;min-height:40px;border:1px solid var(--wb-border);border-radius:6px;padding:.35rem .6rem;color:var(--wb-text);background:#fff;font:inherit}\n.whale-bundle :focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}\n.whale-bundle__bottle-note{margin:0 0 .85rem;color:#47625c;font-size:1.18rem;line-height:1.4;text-align:center}\n.whale-bundle__note{margin:.72rem 0 0;font-size:1.18rem;line-height:1.45;color:#47625c}\n.whale-bundle [hidden],[data-whale-bundle-replaced]{display:none!important}\n\u003c\/style\u003e\n\u003ctemplate id=\"whale-bundle-template\"\u003e\u003cfieldset class=\"whale-bundle\"\u003e\n  \u003clegend\u003eBundle \u0026amp; Save\u003c\/legend\u003e\n  \u003cp class=\"whale-bundle__bottle-note\"\u003eFits most standard screw-top bottles. Bottle not included.\u003c\/p\u003e\n  \u003cdiv class=\"whale-bundle__row\" data-whale-pack-row data-quantity=\"1\" data-percent=\"0\"\u003e\n  \u003clabel class=\"whale-bundle__label\" for=\"whale-pack-1\"\u003e\n    \u003cinput type=\"radio\" id=\"whale-pack-1\" name=\"whale-pack-size\" value=\"1\" checked\u003e\n    \u003cstrong class=\"whale-bundle__name\"\u003eBuy 1\u003c\/strong\u003e\n    \u003cspan class=\"whale-bundle__prices\"\u003e\u003cstrong data-pack-total\u003e\u003c\/strong\u003e\u003cdel data-pack-compare hidden\u003e\u003c\/del\u003e\u003csmall data-pack-one-time hidden\u003e\u003c\/small\u003e\u003c\/span\u003e\n  \u003c\/label\u003e\n  \n\u003c\/div\u003e\n\u003cdiv class=\"whale-bundle__row\" data-whale-pack-row data-quantity=\"2\" data-percent=\"15\"\u003e\n  \u003clabel class=\"whale-bundle__label\" for=\"whale-pack-2\"\u003e\n    \u003cinput type=\"radio\" id=\"whale-pack-2\" name=\"whale-pack-size\" value=\"2\" aria-controls=\"whale-pack-options-2\"\u003e\n    \u003cstrong class=\"whale-bundle__name\"\u003eBuy 2\u003c\/strong\u003e\u003cspan class=\"whale-bundle__badge\"\u003eSave 15%\u003c\/span\u003e\n    \u003cspan class=\"whale-bundle__prices\"\u003e\u003cstrong data-pack-total\u003e\u003c\/strong\u003e\u003cdel data-pack-compare hidden\u003e\u003c\/del\u003e\u003csmall data-pack-one-time hidden\u003e\u003c\/small\u003e\u003c\/span\u003e\n  \u003c\/label\u003e\n  \u003cdiv class=\"whale-bundle__slots\" id=\"whale-pack-options-2\" hidden\u003e\n\u003clabel class=\"whale-bundle__slot\"\u003e\u003cspan\u003e#1\u003c\/span\u003e\u003cspan\u003e\u003csmall class=\"whale-bundle__color-label\"\u003eColor\u003c\/small\u003e\u003cselect aria-label=\"Color for item 1 in Buy 2\"\u003e\u003c\/select\u003e\u003c\/span\u003e\u003c\/label\u003e\u003clabel class=\"whale-bundle__slot\"\u003e\u003cspan\u003e#2\u003c\/span\u003e\u003cspan\u003e\u003csmall class=\"whale-bundle__color-label\"\u003eColor\u003c\/small\u003e\u003cselect aria-label=\"Color for item 2 in Buy 2\"\u003e\u003c\/select\u003e\u003c\/span\u003e\u003c\/label\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"whale-bundle__row\" data-whale-pack-row data-quantity=\"3\" data-percent=\"20\"\u003e\n  \u003clabel class=\"whale-bundle__label\" for=\"whale-pack-3\"\u003e\n    \u003cinput type=\"radio\" id=\"whale-pack-3\" name=\"whale-pack-size\" value=\"3\" aria-controls=\"whale-pack-options-3\"\u003e\n    \u003cstrong class=\"whale-bundle__name\"\u003eBuy 3\u003c\/strong\u003e\u003cspan class=\"whale-bundle__badge\"\u003eSave 20%\u003c\/span\u003e\n    \u003cspan class=\"whale-bundle__prices\"\u003e\u003cstrong data-pack-total\u003e\u003c\/strong\u003e\u003cdel data-pack-compare hidden\u003e\u003c\/del\u003e\u003csmall data-pack-one-time hidden\u003e\u003c\/small\u003e\u003c\/span\u003e\n  \u003c\/label\u003e\n  \u003cdiv class=\"whale-bundle__slots\" id=\"whale-pack-options-3\" hidden\u003e\n\u003clabel class=\"whale-bundle__slot\"\u003e\u003cspan\u003e#1\u003c\/span\u003e\u003cspan\u003e\u003csmall class=\"whale-bundle__color-label\"\u003eColor\u003c\/small\u003e\u003cselect aria-label=\"Color for item 1 in Buy 3\"\u003e\u003c\/select\u003e\u003c\/span\u003e\u003c\/label\u003e\u003clabel class=\"whale-bundle__slot\"\u003e\u003cspan\u003e#2\u003c\/span\u003e\u003cspan\u003e\u003csmall class=\"whale-bundle__color-label\"\u003eColor\u003c\/small\u003e\u003cselect aria-label=\"Color for item 2 in Buy 3\"\u003e\u003c\/select\u003e\u003c\/span\u003e\u003c\/label\u003e\u003clabel class=\"whale-bundle__slot\"\u003e\u003cspan\u003e#3\u003c\/span\u003e\u003cspan\u003e\u003csmall class=\"whale-bundle__color-label\"\u003eColor\u003c\/small\u003e\u003cselect aria-label=\"Color for item 3 in Buy 3\"\u003e\u003c\/select\u003e\u003c\/span\u003e\u003c\/label\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n  \u003cp class=\"whale-bundle__note\" data-pack-note aria-live=\"polite\"\u003e\u003c\/p\u003e\n\u003c\/fieldset\u003e\u003c\/template\u003e\n\u003cscript\u003e(() =\u003e {\n  const source = document.getElementById('whale-bundle-template');\n  const product = window.yx_product;\n  if (!source || String(product?.id) !== '9149870211190') return;\n  const productForm = document.querySelector('product-form[data-main=\"true\"]');\n  const form = productForm?.querySelector('form[data-type=\"add-to-cart-form\"]');\n  const info = productForm?.closest('.product__info-container');\n  const quantityControl = info?.querySelector('[id^=\"Quantity-Form-\"]');\n  const variantInput = form?.querySelector('input[name=\"id\"]');\n  if (!form || !quantityControl || !variantInput || info.querySelector('.whale-bundle')) return;\n\n  const variants = new Map(product.variants.map(variant =\u003e [String(variant.id), variant]));\n  const currentVariant = () =\u003e variants.get(variantInput.value);\n  if (!currentVariant()) return;\n  const picker = source.content.firstElementChild.cloneNode(true);\n  const note = picker.querySelector('[data-pack-note]');\n  const rows = [...picker.querySelectorAll('[data-whale-pack-row]')].map(element =\u003e ({\n    quantity: Number(element.dataset.quantity),\n    percentage: Number(element.dataset.percent),\n    input: element.querySelector('input'),\n    slots: [...element.querySelectorAll('select')],\n    options: element.querySelector('.whale-bundle__slots'),\n    total: element.querySelector('[data-pack-total]'),\n    compare: element.querySelector('[data-pack-compare]'),\n    oneTime: element.querySelector('[data-pack-one-time]')\n  }));\n\n  const format = new Intl.NumberFormat(document.documentElement.lang || 'en-US', {\n    style: 'currency',\n    currency: window.Shopify?.currency?.active || 'USD'\n  });\n  const money = cents =\u003e format.format(cents \/ 100);\n  const discounted = (price, percentage) =\u003e price - Math.floor(price * percentage \/ 100);\n  const activeTier = () =\u003e rows.find(row =\u003e row.input.checked);\n  const currentPlan = () =\u003e productForm.querySelector('input[name=\"subscription_enabled\"]:checked[data-selling-plan-id]');\n  const selectFor = tier =\u003e tier.slots.length ? tier.slots.map(slot =\u003e variants.get(slot.value)) : [currentVariant()];\n\n  for (const row of rows) {\n    for (const slot of row.slots) {\n      for (const [id, variant] of variants) {\n        const option = new Option(variant.title, id);\n        option.disabled = !variant.available;\n        slot.add(option);\n      }\n      slot.value = variantInput.value;\n    }\n  }\n\n  function grouped(choices) {\n    const counts = new Map();\n    for (const variant of choices) {\n      const id = String(variant.id);\n      counts.set(id, (counts.get(id) || 0) + 1);\n    }\n    return [...counts].map(([id, quantity]) =\u003e ({ id, quantity }));\n  }\n\n  function render() {\n    const plan = currentPlan();\n    for (const row of rows) {\n      if (row.options) row.options.hidden = !row.input.checked;\n      const choices = selectFor(row);\n      if (!choices.every(Boolean)) continue;\n      const regular = choices.reduce((sum, variant) =\u003e sum + variant.price, 0);\n      const bundle = choices.reduce((sum, variant) =\u003e sum + discounted(variant.price, row.percentage), 0);\n      const subscriptionPrices = plan ? choices.map(variant =\u003e {\n        const allocation = variant.selling_plan_allocations?.find(item =\u003e String(item.selling_plan_id) === plan.dataset.sellingPlanId);\n        return allocation?.price ?? Math.floor(variant.price * (100 - Number(plan.dataset.discountRate)) \/ 100);\n      }) : [];\n      const comparison = plan ? subscriptionPrices.reduce((sum, price) =\u003e sum + price, 0) : regular;\n      const total = plan\n        ? subscriptionPrices.reduce((sum, price) =\u003e sum + discounted(price, row.percentage), 0)\n        : bundle;\n      row.total.textContent = money(total);\n      row.compare.hidden = comparison === total;\n      row.compare.textContent = money(comparison);\n      row.oneTime.hidden = !plan || row.quantity === 1;\n      row.oneTime.textContent = 'One-time ' + money(bundle);\n    }\n    note.textContent = 'Mix Mist Blue and Blossom Pink. Bundle savings apply to one-time purchases and stack with subscription savings.';\n  }\n\n  let lastVariant = variantInput.value;\n  function syncVariant() {\n    const id = variantInput.value;\n    if (id !== lastVariant \u0026\u0026 variants.get(id)?.available) {\n      lastVariant = id;\n      for (const row of rows) {\n        for (const slot of row.slots) {\n          if (!slot.dataset.whaleChosen) slot.value = id;\n        }\n      }\n    }\n    render();\n  }\n\n  picker.addEventListener('change', event =\u003e {\n    if (event.target.matches('select')) event.target.dataset.whaleChosen = 'true';\n    render();\n  });\n  productForm.addEventListener('change', render);\n  variantInput.addEventListener('change', syncVariant);\n  new MutationObserver(syncVariant).observe(variantInput, { attributes: true, attributeFilter: ['value'] });\n\n  \/\/ Preserve the theme's cart submission and carry each chosen color as its own line item.\n  form.addEventListener('formdata', ({ formData }) =\u003e {\n    const tier = activeTier();\n    if (!tier || tier.quantity === 1) return;\n    const choices = selectFor(tier);\n    if (!choices.every(variant =\u003e variant?.available)) return;\n    const plan = currentPlan()?.dataset.sellingPlanId;\n    const existing = new Map();\n    const shared = new Map();\n    for (const [key, value] of formData) {\n      const item = key.match(\/^items\\[(\\d+)\\](\\[.+\\])$\/);\n      if (item) {\n        const [, index, field] = item;\n        if (!existing.has(index)) existing.set(index, new Map());\n        existing.get(index).set(field, value);\n      } else if (key.startsWith('properties[')) {\n        shared.set('[properties]' + key.slice('properties'.length), value);\n      }\n    }\n    for (const key of [...formData.keys()]) {\n      if (\/^items\\[\\d+\\]|^properties\\[\/.test(key) || ['id', 'quantity', 'selling_plan', 'selling_plan_group_id'].includes(key)) {\n        formData.delete(key);\n      }\n    }\n    const prior = [...existing.values()];\n    const lines = prior.filter(line =\u003e !variants.has(line.get('[id]')));\n    for (const { id, quantity } of grouped(choices)) {\n      const fields = new Map(shared);\n      const priorLine = prior.find(line =\u003e line.get('[id]') === id);\n      for (const [key, value] of priorLine || []) {\n        if (key.startsWith('[properties]')) fields.set(key, value);\n      }\n      fields.set('[id]', id);\n      fields.set('[quantity]', quantity);\n      if (plan) fields.set('[selling_plan]', plan);\n      lines.push(fields);\n    }\n    lines.forEach((fields, index) =\u003e {\n      for (const [key, value] of fields) formData.set('items[' + index + ']' + key, value);\n    });\n  });\n\n  \/\/ The existing wallet checkout bridge reads mixed variants from this widget interface.\n  window.sym ||= {};\n  const previousWidget = window.sym.bundleWidget;\n  window.sym.bundleWidget = {\n    ...previousWidget,\n    getBundleSelectedVariants() {\n      const tier = activeTier();\n      if (!tier || tier.quantity === 1) return previousWidget?.getBundleSelectedVariants?.();\n      const choices = selectFor(tier);\n      return choices.every(Boolean) ? grouped(choices) : [];\n    }\n  };\n\n  quantityControl.before(picker);\n  quantityControl.dataset.whaleBundleReplaced = 'true';\n  render();\n})();\u003c\/script\u003e","brand":"Frezunia","offers":[{"title":"Mist Blue","offer_id":49466999734390,"sku":"GYSDNEDW-BLUE","price":29.99,"currency_code":"USD","in_stock":true},{"title":"Blossom Pink","offer_id":49466999767158,"sku":"GYSDNEDW-PINK","price":29.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0729\/4976\/0118\/files\/frezunia-whale-pets-drinking.jpg?v=1795229829","url":"https:\/\/frezunia.com\/products\/whale-gravity-pet-water-dispenser","provider":"Frezunia","version":"1.0","type":"link"}