vviinn-widgets 2.7.1 → 2.7.2

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 (55) hide show
  1. package/dist/cjs/{app-globals-047a582c.js → app-globals-8db3bcbe.js} +1 -1
  2. package/dist/cjs/cropper-handler_27.cjs.entry.js +5 -5
  3. package/dist/cjs/{customized-slots-cb722e68.js → customized-slots-06ca4007.js} +1 -1
  4. package/dist/cjs/{index-bd771524.js → index-3c3ab815.js} +1 -1
  5. package/dist/cjs/{index-d07466b9.js → index-df6896e2.js} +1 -1
  6. package/dist/cjs/{index-fcafbfe5.js → index-f66cd8d1.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/vviinn-carousel_2.cjs.entry.js +3 -3
  9. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +2 -2
  10. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +2 -2
  11. package/dist/cjs/vviinn-vps-button.cjs.entry.js +3 -3
  12. package/dist/cjs/vviinn-widgets.cjs.js +2 -2
  13. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +1 -1
  14. package/dist/esm/{app-globals-68b1d848.js → app-globals-865bc7a7.js} +1 -1
  15. package/dist/esm/cropper-handler_27.entry.js +5 -5
  16. package/dist/esm/{customized-slots-95a05ceb.js → customized-slots-96902edf.js} +1 -1
  17. package/dist/esm/{index-33fe5a25.js → index-2fdd499d.js} +1 -1
  18. package/dist/esm/{index-f9df412f.js → index-443468c7.js} +1 -1
  19. package/dist/esm/{index-75a1f589.js → index-51f71d18.js} +1 -1
  20. package/dist/esm/loader.js +2 -2
  21. package/dist/esm/vviinn-carousel_2.entry.js +3 -3
  22. package/dist/esm/vviinn-recommendations-sidebar.entry.js +2 -2
  23. package/dist/esm/vviinn-vpr-button.entry.js +2 -2
  24. package/dist/esm/vviinn-vps-button.entry.js +3 -3
  25. package/dist/esm/vviinn-widgets.js +2 -2
  26. package/dist/vviinn-widgets/{p-f6e59cb2.js → p-166970f3.js} +1 -1
  27. package/dist/vviinn-widgets/{p-5aca8be2.entry.js → p-2dd35f19.entry.js} +1 -1
  28. package/dist/vviinn-widgets/{p-4e55513e.js → p-3469b71a.js} +1 -1
  29. package/dist/vviinn-widgets/{p-5358970c.entry.js → p-40bea5b5.entry.js} +1 -1
  30. package/{www/build/p-66015ad7.js → dist/vviinn-widgets/p-465d043d.js} +1 -1
  31. package/dist/vviinn-widgets/{p-9de1b0e7.js → p-59bd2a99.js} +1 -1
  32. package/dist/vviinn-widgets/p-74ed36af.entry.js +1 -0
  33. package/dist/vviinn-widgets/{p-c1cd51ef.entry.js → p-9def6b8b.entry.js} +1 -1
  34. package/dist/vviinn-widgets/{p-8080679b.entry.js → p-a6e0710f.entry.js} +1 -1
  35. package/dist/vviinn-widgets/{p-b254eee7.js → p-cd995515.js} +1 -1
  36. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  37. package/package.json +1 -1
  38. package/www/build/{p-f6e59cb2.js → p-166970f3.js} +1 -1
  39. package/www/build/{p-5aca8be2.entry.js → p-2dd35f19.entry.js} +1 -1
  40. package/www/build/{p-4e55513e.js → p-3469b71a.js} +1 -1
  41. package/www/build/{p-5358970c.entry.js → p-40bea5b5.entry.js} +1 -1
  42. package/{dist/vviinn-widgets/p-66015ad7.js → www/build/p-465d043d.js} +1 -1
  43. package/www/build/{p-9de1b0e7.js → p-59bd2a99.js} +1 -1
  44. package/www/build/p-61933b75.js +1 -0
  45. package/www/build/p-74ed36af.entry.js +1 -0
  46. package/www/build/{p-c1cd51ef.entry.js → p-9def6b8b.entry.js} +1 -1
  47. package/www/build/p-a67898be.css +1 -0
  48. package/www/build/{p-8080679b.entry.js → p-a6e0710f.entry.js} +1 -1
  49. package/www/build/{p-b254eee7.js → p-cd995515.js} +1 -1
  50. package/www/build/vviinn-widgets.esm.js +1 -1
  51. package/www/index.html +1 -1
  52. package/dist/vviinn-widgets/p-e32c30d4.entry.js +0 -1
  53. package/www/build/p-e0153ae2.css +0 -6
  54. package/www/build/p-e32c30d4.entry.js +0 -1
  55. package/www/build/p-f6566a1f.js +0 -125
@@ -1 +1 @@
1
- const t={packageVersion:"2.7.0",packageName:"vviinn-widgets",environment:"local"};let e,n,l=!1,s=null,o=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},r={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),f=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=h(t,n),c=d(e,s),i=p(n);r.ael(o,l,c,i),(e.o=e.o||[]).push((()=>r.rel(o,l,c,i)))}))},d=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){lt(t)}},h=(t,e)=>16&e?i.body:t,p=t=>0!=(2&t),y=new WeakMap,m=t=>"sc-"+t.h,$={},w=t=>"object"==(t=typeof t)||"function"===t,b=(t,e,...n)=>{let l=null,s=!1,o=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!w(l))&&(l+=""),s&&o?c[c.length-1].p+=l:c.push(s?g(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,c,j);const r=g(t,null);return r.m=e,c.length>0&&(r.$=c),r},g=(t,e)=>({t:0,g:t,p:e,v:null,$:null,m:null}),v={},j={forEach:(t,e)=>t.map(S).forEach(e),map:(t,e)=>t.map(S).map(e).map(k)},S=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.S,vtag:t.g,vtext:t.p}),k=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),b(t.vtag,e,...t.vchildren||[])}const e=g(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.S=t.vname,e},O=(t,e,n,l,s,o)=>{if(n!==l){let i=nt(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,s=M(n),o=M(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if(i||"o"!==e[0]||"n"!==e[1]){const c=w(l);if((i||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):nt(c,a)?a.slice(2):a[2]+e.slice(3),n&&r.rel(t,e,n,!1),l&&r.ael(t,e,l,!1)}},C=/\s/,M=t=>t?t.split(C):[],x=(t,e,n,l)=>{const s=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.m||$,c=e.m||$;for(l in o)l in c||O(s,l,o[l],void 0,n,e.t);for(l in c)O(s,l,o[l],c[l],n,e.t)},E=(t,n,s)=>{let o,c,r=n.$[s],a=0;if(null!==r.p)o=r.v=i.createTextNode(r.p);else{if(l||(l="svg"===r.g),o=r.v=i.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.g),l&&"foreignObject"===r.g&&(l=!1),x(null,r,l),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),r.$)for(a=0;a<r.$.length;++a)c=E(t,r,a),c&&o.appendChild(c);"svg"===r.g?l=!1:"foreignObject"===o.tagName&&(l=!0)}return o},L=(t,e,l,s,o,c)=>{let i,r=t;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=c;++o)s[o]&&(i=E(null,l,o),i&&(s[o].v=i,r.insertBefore(i,e)))},P=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.v.remove()},T=(t,e)=>t.g===e.g,W=(t,e)=>{const n=e.v=t.v,s=t.$,o=e.$,c=e.g,i=e.p;null===i?(l="svg"===c||"foreignObject"!==c&&l,"slot"===c||x(t,e,l),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,c=0,i=e.length-1,r=e[0],a=e[i],u=l.length-1,f=l[0],d=l[u];for(;o<=i&&c<=u;)null==r?r=e[++o]:null==a?a=e[--i]:null==f?f=l[++c]:null==d?d=l[--u]:T(r,f)?(W(r,f),r=e[++o],f=l[++c]):T(a,d)?(W(a,d),a=e[--i],d=l[--u]):T(r,d)?(W(r,d),t.insertBefore(r.v,a.v.nextSibling),r=e[++o],d=l[--u]):T(a,f)?(W(a,f),t.insertBefore(a.v,r.v),a=e[--i],f=l[++c]):(s=E(e&&e[c],n,c),f=l[++c],s&&r.v.parentNode.insertBefore(s,r.v));o>i?L(t,null==l[u+1]?null:l[u+1].v,n,l,c,u):c>u&&P(e,o,i)})(n,s,e,o):null!==o?(null!==t.p&&(n.textContent=""),L(n,null,e,o,0,o.length-1)):null!==s&&P(s,0,s.length-1),l&&"svg"===c&&(l=!1)):t.p!==i&&(n.data=i)},A=t=>Z(t).k,F=(t,e,n)=>{const l=A(t);return{emit:t=>H(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},H=(t,e,n)=>{const l=r.ce(e,n);return t.dispatchEvent(l),l},N=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},R=(t,e)=>{if(t.t|=16,!(4&t.t))return N(t,t.C),ht((()=>U(t,e)));t.t|=512},U=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>G(n,t,e))),t.u=null),l=G(n,"componentWillLoad")),I(l,(()=>V(t,n,e)))},V=async(t,e,n)=>{const l=t.k,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.k,l=e.t,s=((t,e)=>{let n=m(e),l=ct.get(n);if(t=11===t.nodeType?t:i,l)if("string"==typeof l){let e,s=y.get(t=t.head||t);s||y.set(t,s=new Set),s.has(n)||(e=i.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);q(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>_(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},q=(t,l)=>{try{s=l,l=l.render(),t.t&=-17,t.t|=2,((t,l)=>{const s=t.k,o=t.M,c=t.L||g(null,null),i=(t=>t&&t.g===v)(l)?l:b(null,null,l);n=s.tagName,o.P&&(i.m=i.m||{},o.P.map((([t,e])=>i.m[e]=s[t]))),i.g=null,i.t|=4,t.L=i,i.v=c.v=s.shadowRoot||s,e=s["s-sc"],W(c,i)})(t,l)}catch(e){lt(e,t.k)}return s=null,null},D=()=>s,_=t=>{const e=t.k,n=t.i,l=t.C;64&t.t||(t.t|=64,J(e),G(n,"componentDidLoad"),t.T(e),l||B()),t.O&&(t.O(),t.O=void 0),512&t.t&&dt((()=>R(t,!1))),t.t&=-517},z=t=>{{const e=Z(t),n=e.k.isConnected;return n&&2==(18&e.t)&&R(e,!1),n}},B=()=>{J(i.documentElement),dt((()=>H(c,"appload",{detail:{namespace:"vviinn-widgets"}})))},G=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){lt(t)}},I=(t,e)=>t&&t.then?t.then(e):e(),J=t=>t.classList.add("hydrated"),K=(t,e,n)=>{if(e.W){t.watchers&&(e.A=t.watchers);const l=Object.entries(e.W),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>Z(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=Z(t),o=s.k,c=s.F.get(e),i=s.t,r=s.i;if(n=((t,e)=>null==t||w(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.W[e][0]),!(8&i&&void 0!==c||n===c)&&(s.F.set(e,n),r)){if(l.A&&128&i){const t=l.A[e];t&&t.map((t=>{try{r[t](n,c,e)}catch(t){lt(t,o)}}))}2==(18&i)&&R(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){r.jmp((()=>{const e=n.get(t);this.hasOwnProperty(e)&&(l=this[e],delete this[e]),this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.P.push([t,s]),s}))}}return t},Q=t=>{G(t,"connectedCallback")},X=(t,e={})=>{const n=[],l=e.exclude||[],s=c.customElements,o=i.head,a=o.querySelector("meta[charset]"),d=i.createElement("style"),h=[];let p,y=!0;Object.assign(r,e),r.l=new URL(e.resourcesUrl||"./",i.baseURI).href,t.map((t=>t[1].map((e=>{const o={t:e[0],h:e[1],W:e[2],H:e[3]};o.W=e[2],o.H=e[3],o.P=[],o.A={};const c=o.h,i=class extends HTMLElement{constructor(t){super(t),et(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?h.push(this):r.jmp((()=>(t=>{if(0==(1&r.t)){const e=Z(t),n=e.M,l=()=>{};if(1&e.t)f(t,e,n.H),Q(e.i);else{e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(e,e.C=n);break}}n.W&&Object.entries(n.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=ot(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.A=s.watchers,K(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){lt(t)}e.t&=-9,e.t|=128,t(),Q(e.i)}if(s.style){let t=s.style;const e=m(n);if(!ct.has(e)){const l=()=>{};((t,e,n)=>{let l=ct.get(t);u&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,ct.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.C,c=()=>R(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const t=Z(this),e=t.i;t.o&&(t.o.map((t=>t())),t.o=void 0),G(e,"disconnectedCallback")}})()))}componentOnReady(){return Z(this).N}};o.R=t[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,K(i,o,1)))})))),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),o.insertBefore(d,a?a.nextSibling:o.firstChild),y=!1,h.length?h.map((t=>t.connectedCallback())):r.jmp((()=>p=setTimeout(B,30)))},Y=new WeakMap,Z=t=>Y.get(t),tt=(t,e)=>Y.set(e.i=t,e),et=(t,e)=>{const n={t:0,k:t,M:e,F:new Map};return n.N=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],f(t,n,e.H),Y.set(t,n)},nt=(t,e)=>e in t,lt=(t,e)=>(0,console.error)(t,e),st=new Map,ot=t=>{const e=t.h.replace(/-/g,"_"),n=t.R,l=st.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(st.set(n,t),t[e])),lt)},ct=new Map,it=[],rt=[],at=(t,e)=>n=>{t.push(n),o||(o=!0,e&&4&r.t?dt(ft):r.raf(ft))},ut=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){lt(t)}t.length=0},ft=()=>{ut(it),ut(rt),(o=it.length>0)&&r.raf(ft)},dt=t=>a().then(t),ht=at(rt,!0);export{t as E,v as H,D as a,X as b,F as c,z as f,A as g,b as h,a as p,tt as r}
1
+ const t={packageVersion:"2.7.2",packageName:"vviinn-widgets",environment:"local"};let e,n,l=!1,s=null,o=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},r={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),f=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=h(t,n),c=d(e,s),i=p(n);r.ael(o,l,c,i),(e.o=e.o||[]).push((()=>r.rel(o,l,c,i)))}))},d=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){lt(t)}},h=(t,e)=>16&e?i.body:t,p=t=>0!=(2&t),y=new WeakMap,m=t=>"sc-"+t.h,$={},w=t=>"object"==(t=typeof t)||"function"===t,b=(t,e,...n)=>{let l=null,s=!1,o=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!w(l))&&(l+=""),s&&o?c[c.length-1].p+=l:c.push(s?g(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,c,j);const r=g(t,null);return r.m=e,c.length>0&&(r.$=c),r},g=(t,e)=>({t:0,g:t,p:e,v:null,$:null,m:null}),v={},j={forEach:(t,e)=>t.map(S).forEach(e),map:(t,e)=>t.map(S).map(e).map(k)},S=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.S,vtag:t.g,vtext:t.p}),k=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),b(t.vtag,e,...t.vchildren||[])}const e=g(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.S=t.vname,e},O=(t,e,n,l,s,o)=>{if(n!==l){let i=nt(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,s=M(n),o=M(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if(i||"o"!==e[0]||"n"!==e[1]){const c=w(l);if((i||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):nt(c,a)?a.slice(2):a[2]+e.slice(3),n&&r.rel(t,e,n,!1),l&&r.ael(t,e,l,!1)}},C=/\s/,M=t=>t?t.split(C):[],x=(t,e,n,l)=>{const s=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.m||$,c=e.m||$;for(l in o)l in c||O(s,l,o[l],void 0,n,e.t);for(l in c)O(s,l,o[l],c[l],n,e.t)},E=(t,n,s)=>{let o,c,r=n.$[s],a=0;if(null!==r.p)o=r.v=i.createTextNode(r.p);else{if(l||(l="svg"===r.g),o=r.v=i.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.g),l&&"foreignObject"===r.g&&(l=!1),x(null,r,l),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),r.$)for(a=0;a<r.$.length;++a)c=E(t,r,a),c&&o.appendChild(c);"svg"===r.g?l=!1:"foreignObject"===o.tagName&&(l=!0)}return o},L=(t,e,l,s,o,c)=>{let i,r=t;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=c;++o)s[o]&&(i=E(null,l,o),i&&(s[o].v=i,r.insertBefore(i,e)))},P=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.v.remove()},T=(t,e)=>t.g===e.g,W=(t,e)=>{const n=e.v=t.v,s=t.$,o=e.$,c=e.g,i=e.p;null===i?(l="svg"===c||"foreignObject"!==c&&l,"slot"===c||x(t,e,l),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,c=0,i=e.length-1,r=e[0],a=e[i],u=l.length-1,f=l[0],d=l[u];for(;o<=i&&c<=u;)null==r?r=e[++o]:null==a?a=e[--i]:null==f?f=l[++c]:null==d?d=l[--u]:T(r,f)?(W(r,f),r=e[++o],f=l[++c]):T(a,d)?(W(a,d),a=e[--i],d=l[--u]):T(r,d)?(W(r,d),t.insertBefore(r.v,a.v.nextSibling),r=e[++o],d=l[--u]):T(a,f)?(W(a,f),t.insertBefore(a.v,r.v),a=e[--i],f=l[++c]):(s=E(e&&e[c],n,c),f=l[++c],s&&r.v.parentNode.insertBefore(s,r.v));o>i?L(t,null==l[u+1]?null:l[u+1].v,n,l,c,u):c>u&&P(e,o,i)})(n,s,e,o):null!==o?(null!==t.p&&(n.textContent=""),L(n,null,e,o,0,o.length-1)):null!==s&&P(s,0,s.length-1),l&&"svg"===c&&(l=!1)):t.p!==i&&(n.data=i)},A=t=>Z(t).k,F=(t,e,n)=>{const l=A(t);return{emit:t=>H(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},H=(t,e,n)=>{const l=r.ce(e,n);return t.dispatchEvent(l),l},N=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},R=(t,e)=>{if(t.t|=16,!(4&t.t))return N(t,t.C),ht((()=>U(t,e)));t.t|=512},U=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>G(n,t,e))),t.u=null),l=G(n,"componentWillLoad")),I(l,(()=>V(t,n,e)))},V=async(t,e,n)=>{const l=t.k,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.k,l=e.t,s=((t,e)=>{let n=m(e),l=ct.get(n);if(t=11===t.nodeType?t:i,l)if("string"==typeof l){let e,s=y.get(t=t.head||t);s||y.set(t,s=new Set),s.has(n)||(e=i.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);q(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>_(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},q=(t,l)=>{try{s=l,l=l.render(),t.t&=-17,t.t|=2,((t,l)=>{const s=t.k,o=t.M,c=t.L||g(null,null),i=(t=>t&&t.g===v)(l)?l:b(null,null,l);n=s.tagName,o.P&&(i.m=i.m||{},o.P.map((([t,e])=>i.m[e]=s[t]))),i.g=null,i.t|=4,t.L=i,i.v=c.v=s.shadowRoot||s,e=s["s-sc"],W(c,i)})(t,l)}catch(e){lt(e,t.k)}return s=null,null},D=()=>s,_=t=>{const e=t.k,n=t.i,l=t.C;64&t.t||(t.t|=64,J(e),G(n,"componentDidLoad"),t.T(e),l||B()),t.O&&(t.O(),t.O=void 0),512&t.t&&dt((()=>R(t,!1))),t.t&=-517},z=t=>{{const e=Z(t),n=e.k.isConnected;return n&&2==(18&e.t)&&R(e,!1),n}},B=()=>{J(i.documentElement),dt((()=>H(c,"appload",{detail:{namespace:"vviinn-widgets"}})))},G=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){lt(t)}},I=(t,e)=>t&&t.then?t.then(e):e(),J=t=>t.classList.add("hydrated"),K=(t,e,n)=>{if(e.W){t.watchers&&(e.A=t.watchers);const l=Object.entries(e.W),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>Z(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=Z(t),o=s.k,c=s.F.get(e),i=s.t,r=s.i;if(n=((t,e)=>null==t||w(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.W[e][0]),!(8&i&&void 0!==c||n===c)&&(s.F.set(e,n),r)){if(l.A&&128&i){const t=l.A[e];t&&t.map((t=>{try{r[t](n,c,e)}catch(t){lt(t,o)}}))}2==(18&i)&&R(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){r.jmp((()=>{const e=n.get(t);this.hasOwnProperty(e)&&(l=this[e],delete this[e]),this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.P.push([t,s]),s}))}}return t},Q=t=>{G(t,"connectedCallback")},X=(t,e={})=>{const n=[],l=e.exclude||[],s=c.customElements,o=i.head,a=o.querySelector("meta[charset]"),d=i.createElement("style"),h=[];let p,y=!0;Object.assign(r,e),r.l=new URL(e.resourcesUrl||"./",i.baseURI).href,t.map((t=>t[1].map((e=>{const o={t:e[0],h:e[1],W:e[2],H:e[3]};o.W=e[2],o.H=e[3],o.P=[],o.A={};const c=o.h,i=class extends HTMLElement{constructor(t){super(t),et(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?h.push(this):r.jmp((()=>(t=>{if(0==(1&r.t)){const e=Z(t),n=e.M,l=()=>{};if(1&e.t)f(t,e,n.H),Q(e.i);else{e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(e,e.C=n);break}}n.W&&Object.entries(n.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=ot(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.A=s.watchers,K(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){lt(t)}e.t&=-9,e.t|=128,t(),Q(e.i)}if(s.style){let t=s.style;const e=m(n);if(!ct.has(e)){const l=()=>{};((t,e,n)=>{let l=ct.get(t);u&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,ct.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.C,c=()=>R(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const t=Z(this),e=t.i;t.o&&(t.o.map((t=>t())),t.o=void 0),G(e,"disconnectedCallback")}})()))}componentOnReady(){return Z(this).N}};o.R=t[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,K(i,o,1)))})))),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),o.insertBefore(d,a?a.nextSibling:o.firstChild),y=!1,h.length?h.map((t=>t.connectedCallback())):r.jmp((()=>p=setTimeout(B,30)))},Y=new WeakMap,Z=t=>Y.get(t),tt=(t,e)=>Y.set(e.i=t,e),et=(t,e)=>{const n={t:0,k:t,M:e,F:new Map};return n.N=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],f(t,n,e.H),Y.set(t,n)},nt=(t,e)=>e in t,lt=(t,e)=>(0,console.error)(t,e),st=new Map,ot=t=>{const e=t.h.replace(/-/g,"_"),n=t.R,l=st.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(st.set(n,t),t[e])),lt)},ct=new Map,it=[],rt=[],at=(t,e)=>n=>{t.push(n),o||(o=!0,e&&4&r.t?dt(ft):r.raf(ft))},ut=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){lt(t)}t.length=0},ft=()=>{ut(it),ut(rt),(o=it.length>0)&&r.raf(ft)},dt=t=>a().then(t),ht=at(rt,!0);export{t as E,v as H,D as a,X as b,F as c,z as f,A as g,b as h,a as p,tt as r}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as o,g as r}from"./p-4e55513e.js";import{d as a}from"./p-f6e59cb2.js";let n=class{constructor(e){t(this,e),this.modalClosed=i(this,"modalClosed",7),this.position="bottom",this.sourceImage=null,this.widgetScrollbar=!1,this.campaigns="",this.state="idle"}bodyClickListener(t){const{clientX:i,clientY:e}=t,o=this.getSidebarRectangle();o&&(i>=o.left&&i<=o.right&&e>=o.top&&e<=o.bottom||(this.state="closed"))}getClassMap(){return{[this.position]:!0,[this.state]:!0}}getSidebarRectangle(){var t;return null===(t=this.el.shadowRoot.querySelector("aside"))||void 0===t?void 0:t.getBoundingClientRect()}render(){return e(o,{class:this.getClassMap()},e("aside",{class:"sidebar",part:"body",onAnimationEnd:t=>this.handleAnimationEnd(t)},e("header",{class:{"contains-source-img":this.isSourceImageValid()},part:"sidebar-header"},this.isSourceImageValid()?this.renderSourceImage():null,e("span",{class:"title",part:"title"},this.sidebarTitle),e("button",{class:"close-sidebar",onClick:()=>this.state="closed"},e(a,null))),e("main",{part:"sidebar-content"},e("vviinn-vpr-widget",{exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title: product-title",token:this.token,productId:this.productId,imageWidth:300,blockTitle:"",mode:"bottom"===this.position?"continuity":"grid",useCarousel:"bottom"===this.position,onRecommendationsLoaded:()=>this.state="open",showScroll:this.widgetScrollbar,campaigns:this.campaigns}))))}renderSourceImage(){return e("img",{class:"source-image",part:"source-image",src:this.sourceImage})}isSourceImageValid(){var t;return(null===(t=this.sourceImage)||void 0===t?void 0:t.length)>0}handleAnimationEnd({animationName:t}){t.includes("slideOut")&&this.modalClosed.emit()}get el(){return r(this)}};n.style=":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-name:slideOutFromBottom;animation-name:slideOutFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{-webkit-animation-name:slideInFromBottom;animation-name:slideInFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-name:slideOutFromRight;animation-name:slideOutFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.open) .sidebar{-webkit-animation-name:slideInFromRight;animation-name:slideInFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}";export{n as vviinn_recommendations_sidebar}
1
+ import{r as t,c as i,h as o,H as r,g as e}from"./p-3469b71a.js";import{d as a}from"./p-166970f3.js";let n=class{constructor(o){t(this,o),this.modalClosed=i(this,"modalClosed",7),this.position="bottom",this.sourceImage=null,this.widgetScrollbar=!1,this.campaigns="",this.state="idle"}bodyClickListener(t){const{clientX:i,clientY:o}=t,r=this.getSidebarRectangle();r&&(i>=r.left&&i<=r.right&&o>=r.top&&o<=r.bottom||(this.state="closed"))}getClassMap(){return{[this.position]:!0,[this.state]:!0}}getSidebarRectangle(){var t;return null===(t=this.el.shadowRoot.querySelector("aside"))||void 0===t?void 0:t.getBoundingClientRect()}render(){return o(r,{class:this.getClassMap()},o("aside",{class:"sidebar",part:"body",onAnimationEnd:t=>this.handleAnimationEnd(t)},o("header",{class:{"contains-source-img":this.isSourceImageValid()},part:"sidebar-header"},this.isSourceImageValid()?this.renderSourceImage():null,o("span",{class:"title",part:"title"},this.sidebarTitle),o("button",{class:"close-sidebar",onClick:()=>this.state="closed"},o(a,null))),o("main",{part:"sidebar-content"},o("vviinn-vpr-widget",{exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title: product-title",token:this.token,productId:this.productId,imageWidth:300,blockTitle:"",mode:"bottom"===this.position?"continuity":"grid",useCarousel:"bottom"===this.position,onRecommendationsLoaded:()=>this.state="open",showScroll:this.widgetScrollbar,campaigns:this.campaigns}))))}renderSourceImage(){return o("img",{class:"source-image",part:"source-image",src:this.sourceImage})}isSourceImageValid(){var t;return(null===(t=this.sourceImage)||void 0===t?void 0:t.length)>0}handleAnimationEnd({animationName:t}){t.includes("slideOut")&&this.modalClosed.emit()}get el(){return e(this)}};n.style=":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-name:slideOutFromBottom;animation-name:slideOutFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{-webkit-animation-name:slideInFromBottom;animation-name:slideInFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-name:slideOutFromRight;animation-name:slideOutFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.open) .sidebar{-webkit-animation-name:slideInFromRight;animation-name:slideInFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}";export{n as vviinn_recommendations_sidebar}
@@ -1,4 +1,4 @@
1
- import{E as t}from"./p-4e55513e.js";
1
+ import{E as t}from"./p-3469b71a.js";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4