1import{_ as k}from"./CdnImage.cde68b02.js";import{_ as P}from"./client-only.fa072d1f.js";import{j as T,k as m,A as y,a2 as q,x as D,H as S,o as A,c as L,b as c,w as B,a as g,s as l,l as a,P as b,Q as h,d as V,B as E}from"./entry.4fe30dff.js";const I=["aria-label"],R={class:"flex justify-center items-center gap-x-2 cursor-pointer"},$={__name:"WistiaPlayer",props:{options:{type:Object,default:()=>({"en-us":{},"en-ca":{},"es-mx":{},ctaType:""})},purpose:{type:String,default:"PrettyLitter Color Change"},style:{type:String}},setup(r){const u=E(),i=r,p=T().public,s=m(null),d=m({"en-us":{id:"wduu4fvftx",img:"thumbs/thumb_color_change_square_pink",alt:"PrettyLitter next to various color crystals"},"fr-ca":{id:"wduu4fvftx",img:"thumbs/thumb_color_change_square_pink",alt:"PrettyLitter next to various color crystals"},"en-ca":{id:"zqht4z2ef6",img:"thumbs/thumb_color_change_square_pink",alt:"PrettyLitter next to various color crystals"},"es-mx":{id:"4ad4rpiru6",img:"thumbs/thumb_color_change_square_pink",alt:"PrettyLitter next to various color crystals"},ctaType:"thumb"}),o=y(()=>{var e;const t=q(d.value,i.options),n=((e=p.localizeLanguage)==null?void 0:e.toLowerCase())||"en-us";return t[n]}),_=y(()=>i.options.ctaType!==""?i.options.ctaType:d.value.ctaType);function f(){u.$wistia.create(o.value.id,x,w)}function v(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),f())}function x(t){const n=`[id*='wistia-${t}'][id$='_popover']`,e=document.querySelector(n);e&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1"),e?(e.focus(),console.debug("VIDEO START: Focused on player with ID",t)):console.debug("VIDEO START: Player container not found for ID",t)}function w(){console.debug("VIDEO ENDS: ",s),s.value&&setTimeout(()=>{s.value.focus(),console.debug("Focus restored to play button")},150)}return D(()=>{p.store==="mx"&&(window._wq=window._wq||[],_wq.push({id:o.value.id,options:{videoFoam:!0,plugin:{"captions-v1":{onByDefault:!0,language:"spa"}}}}),_wq.push({id:"_all",onReady:t=>{document.querySelectorAll(".accordion-items img").forEach(e=>{e.src===""&&(e.src=e.getAttribute("data-src"),e.removeAttribute("data-src"),e.classList.add("isLoaded"))})}}))}),S(()=>{var t;(t=u.$wistia)==null||t.cleanupWistiaContainer()}),(t,n)=>{const e=k,C=P;return A(),L("div",{class:l(r.style)},[c(C,null,{default:B(()=>[g("span",{ref_key:"playButtonRef",ref:s,class:l(`wistia_embed wistia_async_${a(o).id} popover=true popoverPreventScroll=true popoverContent=link focus:ring-2 ring-offset-2 cursor-pointer`),onClick:f,onKeydown:v,tabindex:"0",role:"button","aria-label":`Play video: ${r.purpose}`},[b(c(e,{src:a(o).img,alt:a(o).alt,class:l(a(o).class)},null,8,["src","alt","class"]),[[h,a(_)==="thumb"]]),b(g("div",R,[c(e,{src:"icon_play_circle",alt:"Play",fetchFormat:"f_svg","data-not-lazy":""}),V(" Learn More ")],512),[[h,a(_)==="icon"]])],42,I)]),_:1})],2)}}},F=$;export{F as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.