whatmore-react-assets 1.0.1637 → 1.0.1638

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/static/js/262.f6aeba03.chunk.js +1 -0
  3. package/static/js/413.a37d75e4.chunk.js +127 -0
  4. package/static/js/427.6508d07b.chunk.js +1 -0
  5. package/static/js/988.f25d4f2e.chunk.js +1 -0
  6. package/static/js/atc-with-form.054bd7b2.chunk.js +1 -0
  7. package/static/js/banner-template-a.395cdaec.chunk.js +1 -0
  8. package/static/js/carousel-template-a.ba8a94e9.chunk.js +1 -0
  9. package/static/js/carousel-template-b.3eeb38ca.chunk.js +1 -0
  10. package/static/js/carousel-template-f.0f07f331.chunk.js +41 -0
  11. package/static/js/carousel-template-h.a334544b.chunk.js +1 -0
  12. package/static/js/carousel-template-i.e30f6356.chunk.js +1 -0
  13. package/static/js/event-click.8f73befa.chunk.js +2 -0
  14. package/static/js/product-page-view.274047be.chunk.js +1 -0
  15. package/static/js/spotlight-view.609c4337.chunk.js +1 -0
  16. package/static/js/whatmore-root.13d23696.chunk.js +1 -0
  17. package/whatmore.js +2 -2
  18. package/static/js/176.e1494954.chunk.js +0 -127
  19. package/static/js/852.62635cf8.chunk.js +0 -1
  20. package/static/js/988.370f90ec.chunk.js +0 -1
  21. package/static/js/atc-with-form.c675cc96.chunk.js +0 -1
  22. package/static/js/banner-template-a.37712eb9.chunk.js +0 -1
  23. package/static/js/carousel-template-a.541979bb.chunk.js +0 -1
  24. package/static/js/carousel-template-b.2e550617.chunk.js +0 -1
  25. package/static/js/carousel-template-f.9bfd9d30.chunk.js +0 -41
  26. package/static/js/carousel-template-h.70efb640.chunk.js +0 -1
  27. package/static/js/carousel-template-i.e3d5453c.chunk.js +0 -1
  28. package/static/js/event-click.10c5af5d.chunk.js +0 -2
  29. package/static/js/product-page-view.5e8ffb1a.chunk.js +0 -1
  30. package/static/js/spotlight-view.1758a8e1.chunk.js +0 -1
  31. package/static/js/whatmore-root.467877bb.chunk.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1637",
3
+ "version": "1.0.1638",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262],{3262:function(t,e,r){r.r(e),r.d(e,{initiateCartSliderEvent:function(){return n}});var o=r(1745);const n=async function(t,e,r,n,i="",a="",u="",c="",d="",s=""){if("STRNV8MHJTF"!=t&&"STR6HU283UZ"!=t&&"STR9T3LLEJB"!=t&&"STRWJMIOJNX"!=t&&"STRUDQ36YAC"!=t&&"STR1D5ONOZX"!=t){await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((t=>t.json()));if(null==sessionStorage.getItem("wht_atc_form")){var l;fetch(null===s||void 0===s||null===(l=s.split("?"))||void 0===l?void 0:l[0]).then((t=>t.text())).then((t=>{var e;const r=(new DOMParser).parseFromString(t,"text/html"),n=Array.from(r.querySelectorAll('form[action*="/cart/add"]')).find((t=>t.querySelector('button[type="submit"]')));let l=n.querySelector('input[name="id"]');l||(l=document.createElement("input"),l.type="hidden",l.name="id",l.value="123",n.appendChild(l)),console.log(s,"html"),sessionStorage.setItem("wht_atc_form",n.outerHTML),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",a);const m=n.querySelector('input[name="id"]');m&&(m.setAttribute("value",i),m.hasAttribute("disabled")&&m.removeAttribute("disabled"));const p=n.querySelector('input[name="product-id"]');p&&p.setAttribute("value",a);const h=document.createElement("div");h.appendChild(n),document.body.appendChild(h),console.log(h,"formElement");const y=null===(e=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==i})))||void 0===e?void 0:e.querySelector('button[type="submit"]');y&&y.click(),setTimeout((()=>{(0,o.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==i)),r=e.key,n=e.quantity,a=e.properties;(0,o.CP)(r,n,a,u,c,d,!0,!0,!0)}))}),2e3)}))}else{var m;const t=sessionStorage.getItem("wht_atc_form"),e=(new DOMParser).parseFromString(t,"text/html").querySelector('form[action*="/cart/add"]');e.hasAttribute("data-product-id")&&e.setAttribute("data-product-id",a);const r=e.querySelector('input[name="id"]');r&&(r.setAttribute("value",i),r.hasAttribute("disabled")&&r.removeAttribute("disabled"));const n=e.querySelector('input[name="product-id"]');n&&n.setAttribute("value",a);const s=document.createElement("div");s.appendChild(e),document.body.appendChild(s);const l=null===(m=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==i})))||void 0===m?void 0:m.querySelector('button[type="submit"]');l&&l.click(),setTimeout((()=>{(0,o.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==i)),r=e.key,n=e.quantity,a=e.properties;(0,o.CP)(r,n,a,u,c,d,!0,!0,!0)}))}),2e3)}setTimeout(e,r)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}}}]);