@ddict/bubble 0.0.9 → 0.0.11

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.
@@ -1 +1 @@
1
- (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.Bubble={},r.Vue))})(this,function(r,e){"use strict";const $="/assets/icons/ddict-logo.svg",a=(o,n)=>{const t=o.__vccOpts||o;for(const[s,l]of n)t[s]=l;return t},g={name:"Logo"},f={src:$,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function B(o,n,t,s,l,i){return e.openBlock(),e.createElementBlock("img",f)}const b=a(g,[["render",B]]),y="/ddict-loading.gif",h={name:"Loading"},S={class:"rounded bg-white p-1"},E=[e.createElementVNode("img",{src:y,alt:"Loading",class:"w-12"},null,-1)];function F(o,n,t,s,l,i){return e.openBlock(),e.createElementBlock("div",S,E)}const x=a(h,[["render",F]]),C={name:"Dict",props:["dictionary"]},L={class:"capitalize text-base italic font-normal text-slate-400"};function V(o,n,t,s,l,i){return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dictionary,(c,ke)=>(e.openBlock(),e.createElementBlock("div",{key:ke,class:"mt-2"},[e.createElementVNode("p",L,e.toDisplayString(c.pos),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.terms,(_e,$e)=>(e.openBlock(),e.createElementBlock("span",{key:$e,class:"text-base leading-6 text-textCustom"},e.toDisplayString(_e)+", ",1))),128))]))),128))])}const w=a(C,[["render",V]]),N="/assets/icons/volume.svg",u="/assets/icons/volume-stop.svg",D={name:"Player",props:["tts"],data(){return{playing:!1,player:new Audio(this.tts),err:null}},watch:{playing(o){if(!o){this.player.pause();return}this.player.play()}},created(){this.player.onended=()=>{this.playing=!1},this.player.onerror=o=>{this.err=o}},methods:{play(){this.playing=!this.playing}}},U={key:0,class:"w-5",src:N,alt:"Play"},j={key:1,class:"w-5",src:u,alt:"Stop"};function P(o,n,t,s,l,i){return e.openBlock(),e.createElementBlock("button",{class:"btn btn-xs btn-ghost btn-circle",onClick:n[0]||(n[0]=(...c)=>i.play&&i.play(...c))},[l.playing?(e.openBlock(),e.createElementBlock("img",j)):(e.openBlock(),e.createElementBlock("img",U))])}const d=a(D,[["render",P]]),z="/assets/icons/favorite-filled.svg",O="/assets/icons/favorite.svg",T={name:"Favorite",props:["isFilled"]},M={class:"btn btn-xs btn-circle btn-ghost"},q={key:0,class:"w-5",src:z,alt:"Clear"},A={key:1,class:"w-5",src:O,alt:"Clear"};function H(o,n,t,s,l,i){return e.openBlock(),e.createElementBlock("button",M,[t.isFilled?(e.openBlock(),e.createElementBlock("img",q)):(e.openBlock(),e.createElementBlock("img",A))])}const p=a(T,[["render",H]]),I="/assets/icons/setting.svg",G={},J={class:"btn btn-xs btn-ghost btn-circle"},K=[e.createElementVNode("img",{class:"w-5",src:I,alt:"Icon description"},null,-1)];function Q(o,n){return e.openBlock(),e.createElementBlock("button",J,K)}const m=a(G,[["render",Q]]),R="/assets/icons/cancel.svg",W={},X={class:"btn btn-xs btn-circle btn-ghost"},Y=[e.createElementVNode("img",{class:"w-5",src:R,alt:"Clear"},null,-1)];function Z(o,n){return e.openBlock(),e.createElementBlock("button",X,Y)}const k=a(W,[["render",Z]]),v={name:"Sentences",props:["sentences"]},ee={class:"text-base text-textCustom leading-tight p-0 mr-2"};function te(o,n,t,s,l,i){return e.openBlock(),e.createElementBlock("p",ee,e.toDisplayString(t.sentences),1)}const ne=a(v,[["render",te]]),oe={name:"Phonetic",props:["phonetic"]},se={class:"p-0 m-0"},ie={class:"text-sm font-md text-slate-400"};function le(o,n,t,s,l,i){return e.openBlock(),e.createElementBlock("p",se,[e.createElementVNode("span",ie,"/"+e.toDisplayString(t.phonetic)+"/",1)])}const ce=a(oe,[["render",le]]),ae={class:"flex flex-col"},re={key:0,class:"flex flex-row pb-2 border-b border-[#D3D4D9] pl-10"},_={__name:"Header",props:{tts:String,sentences:String,phonetic:String,isLongSentence:Boolean,isServiceUnavailable:Boolean,isFavorite:Boolean,isFavoriteFeatureEnabled:Boolean},emits:["favorite","setting","close"],setup(o,{emit:n}){const t=o,s=n;return(l,i)=>(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",{class:e.normalizeClass(["flex p-2 pt-2 pb-0",{"flex-row-reverse":t.isLongSentence,"flex-row justify-between":!t.isLongSentence}])},[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-row gap-2",{"order-2":t.isLongSentence,"items-center":!t.isLongSentence}])},[t.tts&&!o.isLongSentence?(e.openBlock(),e.createBlock(d,{key:0,tts:t.tts},null,8,["tts"])):e.createCommentVNode("",!0),e.createVNode(ne,{sentences:o.isServiceUnavailable?["Service Unavailable"]:t.sentences},null,8,["sentences"])],2),e.createElementVNode("div",{class:e.normalizeClass(["flex",{"flex-col items-end":t.isLongSentence,"flex-row justify-right items-center ml-2":!t.isLongSentence}])},[t.isLongSentence?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(k,{onClick:i[0]||(i[0]=c=>s("close"))}),t.tts?(e.openBlock(),e.createBlock(d,{key:0,tts:t.tts},null,8,["tts"])):e.createCommentVNode("",!0),!o.isServiceUnavailable&&t.isFavoriteFeatureEnabled?(e.openBlock(),e.createBlock(p,{key:1,isFilled:t.isFavorite,onClick:i[1]||(i[1]=c=>s("favorite"))},null,8,["isFilled"])):e.createCommentVNode("",!0),e.createVNode(m,{onClick:i[2]||(i[2]=c=>s("setting"))})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[!o.isServiceUnavailable&&t.isFavoriteFeatureEnabled?(e.openBlock(),e.createBlock(p,{key:0,isFilled:t.isFavorite,onClick:i[3]||(i[3]=c=>s("favorite"))},null,8,["isFilled"])):e.createCommentVNode("",!0),e.createVNode(m,{onClick:i[4]||(i[4]=c=>s("setting"))}),e.createVNode(k,{onClick:i[5]||(i[5]=c=>s("close"))})],64))],2)],2),t.isLongSentence?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",re,[t.phonetic?(e.openBlock(),e.createBlock(ce,{key:0,phonetic:t.phonetic},null,8,["phonetic"])):e.createCommentVNode("",!0)]))]))}},de={key:0,class:"flex justify-center"},pe={key:1,class:"wrapper drop-shadow-2xl rounded-lg text-slate-900 bg-white text-sm border border-solid border-neutral-300"},me=Object.assign({name:"Bubble",props:["translationData","tts","status","isFavorite","isFavoriteFeatureEnabled"],emits:["logo","favorite","settings","close"],data(){return{data:null,isLongSentence:!1,isServiceUnavailable:!1}},created(){try{this.data=this.translationData,!this.data.dictionary||this.data.dictionary.length===0?this.isLongSentence=!0:this.isLongSentence=!1,this.isServiceUnavailable=!1}catch{this.isServiceUnavailable=!0}}},{setup(o){return(n,t)=>o.status<2?(e.openBlock(),e.createElementBlock("div",de,[o.status===0?(e.openBlock(),e.createBlock(b,{key:0,onClick:t[0]||(t[0]=s=>n.$emit("logo"))})):(e.openBlock(),e.createBlock(x,{key:1}))])):(e.openBlock(),e.createElementBlock("div",pe,[n.isServiceUnavailable?(e.openBlock(),e.createBlock(_,{key:0,isServiceUnavailable:n.isServiceUnavailable,isLongSentence:!1,onFavorite:t[1]||(t[1]=s=>n.$emit("favorite")),onSetting:t[2]||(t[2]=s=>n.$emit("settings")),onClose:t[3]||(t[3]=s=>n.$emit("close"))},null,8,["isServiceUnavailable"])):(e.openBlock(),e.createBlock(_,{key:1,tts:o.tts,sentences:n.data.result,phonetic:n.data.phonetic.src,isFavorite:o.isFavorite,isFavoriteFeatureEnabled:o.isFavoriteFeatureEnabled,onFavorite:t[4]||(t[4]=s=>n.$emit("favorite")),onSetting:t[5]||(t[5]=s=>n.$emit("settings")),onClose:t[6]||(t[6]=s=>n.$emit("close")),isLongSentence:n.isLongSentence},null,8,["tts","sentences","phonetic","isFavorite","isFavoriteFeatureEnabled","isLongSentence"])),n.isServiceUnavailable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(w,{key:2,class:"p-3 pt-0",dictionary:n.data.dictionary},null,8,["dictionary"]))]))}});r.default=me,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(W,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(W=typeof globalThis<"u"?globalThis:W||self,i(W.Bubble={},W.Vue))})(this,function(W,i){"use strict";const Nt="data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200%2014%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36153%201.34067C6.15774%200.203232%207.84226%200.203229%208.63846%201.34066L14%209H0L5.36153%201.34067Z'%20fill='white'/%3e%3c/svg%3e",D=Math.min,b=Math.max,st=Math.round,lt=Math.floor,Y=t=>({x:t,y:t}),Wt={left:"right",right:"left",bottom:"top",top:"bottom"},qt={start:"end",end:"start"};function gt(t,e,n){return b(t,D(e,n))}function z(t,e){return typeof t=="function"?t(e):t}function T(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function Et(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function q(t){return["top","bottom"].includes(T(t))?"y":"x"}function Ct(t){return Et(q(t))}function jt(t,e,n){n===void 0&&(n=!1);const o=$(t),s=Ct(t),l=dt(s);let r=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(r=rt(r)),[r,rt(r)]}function Zt(t){const e=rt(t);return[ut(t),e,ut(e)]}function ut(t){return t.replace(/start|end/g,e=>qt[e])}function Pt(t,e,n){const o=["left","right"],s=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:o:e?o:s;case"left":case"right":return e?l:r;default:return[]}}function zt(t,e,n,o){const s=$(t);let l=Pt(T(t),n==="start",o);return s&&(l=l.map(r=>r+"-"+s),e&&(l=l.concat(l.map(ut)))),l}function rt(t){return t.replace(/left|right|bottom|top/g,e=>Wt[e])}function $t(t){return{top:0,right:0,bottom:0,left:0,...t}}function It(t){return typeof t!="number"?$t(t):{top:t,right:t,bottom:t,left:t}}function ct(t){const{x:e,y:n,width:o,height:s}=t;return{width:o,height:s,top:n,left:e,right:e+o,bottom:n+s,x:e,y:n}}function Qt(t,e,n){let{reference:o,floating:s}=t;const l=q(e),r=Ct(e),c=dt(r),a=T(e),f=l==="y",A=o.x+o.width/2-s.width/2,d=o.y+o.height/2-s.height/2,h=o[c]/2-s[c]/2;let g;switch(a){case"top":g={x:A,y:o.y-s.height};break;case"bottom":g={x:A,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:d};break;case"left":g={x:o.x-s.width,y:d};break;default:g={x:o.x,y:o.y}}switch($(e)){case"start":g[r]-=h*(n&&f?-1:1);break;case"end":g[r]+=h*(n&&f?-1:1);break}return g}const Xt=async(t,e,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:r}=n,c=l.filter(Boolean),a=await(r.isRTL==null?void 0:r.isRTL(e));let f=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:A,y:d}=Qt(f,o,a),h=o,g={},u=0;for(let p=0;p<c.length;p++){const{name:w,fn:B}=c[p],{x:m,y:C,data:y,reset:E}=await B({x:A,y:d,initialPlacement:o,placement:h,strategy:s,middlewareData:g,rects:f,platform:r,elements:{reference:t,floating:e}});A=m??A,d=C??d,g={...g,[w]:{...g[w],...y}},E&&u<=50&&(u++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(f=E.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):E.rects),{x:A,y:d}=Qt(f,h,a)),p=-1)}return{x:A,y:d,placement:h,strategy:s,middlewareData:g}};async function mt(t,e){var n;e===void 0&&(e={});const{x:o,y:s,platform:l,rects:r,elements:c,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:A="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=z(e,t),u=It(g),w=c[h?d==="floating"?"reference":"floating":d],B=ct(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(w)))==null||n?w:w.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:f,rootBoundary:A,strategy:a})),m=d==="floating"?{x:o,y:s,width:r.floating.width,height:r.floating.height}:r.reference,C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),y=await(l.isElement==null?void 0:l.isElement(C))?await(l.getScale==null?void 0:l.getScale(C))||{x:1,y:1}:{x:1,y:1},E=ct(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:m,offsetParent:C,strategy:a}):m);return{top:(B.top-E.top+u.top)/y.y,bottom:(E.bottom-B.bottom+u.bottom)/y.y,left:(B.left-E.left+u.left)/y.x,right:(E.right-B.right+u.right)/y.x}}const _t=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:s,rects:l,platform:r,elements:c,middlewareData:a}=e,{element:f,padding:A=0}=z(t,e)||{};if(f==null)return{};const d=It(A),h={x:n,y:o},g=Ct(s),u=dt(g),p=await r.getDimensions(f),w=g==="y",B=w?"top":"left",m=w?"bottom":"right",C=w?"clientHeight":"clientWidth",y=l.reference[u]+l.reference[g]-h[g]-l.floating[u],E=h[g]-l.reference[g],I=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let x=I?I[C]:0;(!x||!await(r.isElement==null?void 0:r.isElement(I)))&&(x=c.floating[C]||l.floating[u]);const L=y/2-E/2,S=x/2-p[u]/2-1,v=D(d[B],S),U=D(d[m],S),P=v,it=x-p[u]-U,Q=x/2-p[u]/2+L,et=gt(P,Q,it),J=!a.arrow&&$(s)!=null&&Q!==et&&l.reference[u]/2-(Q<P?v:U)-p[u]/2<0,H=J?Q<P?Q-P:Q-it:0;return{[g]:h[g]+H,data:{[g]:et,centerOffset:Q-et-H,...J&&{alignmentOffset:H}},reset:J}}}),t2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:s,middlewareData:l,rects:r,initialPlacement:c,platform:a,elements:f}=e,{mainAxis:A=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:p=!0,...w}=z(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const B=T(s),m=q(c),C=T(c)===c,y=await(a.isRTL==null?void 0:a.isRTL(f.floating)),E=h||(C||!p?[rt(c)]:Zt(c)),I=u!=="none";!h&&I&&E.push(...zt(c,p,u,y));const x=[c,...E],L=await mt(e,w),S=[];let v=((o=l.flip)==null?void 0:o.overflows)||[];if(A&&S.push(L[B]),d){const Q=jt(s,r,y);S.push(L[Q[0]],L[Q[1]])}if(v=[...v,{placement:s,overflows:S}],!S.every(Q=>Q<=0)){var U,P;const Q=(((U=l.flip)==null?void 0:U.index)||0)+1,et=x[Q];if(et)return{data:{index:Q,overflows:v},reset:{placement:et}};let J=(P=v.filter(H=>H.overflows[0]<=0).sort((H,K)=>H.overflows[1]-K.overflows[1])[0])==null?void 0:P.placement;if(!J)switch(g){case"bestFit":{var it;const H=(it=v.filter(K=>{if(I){const N=q(K.placement);return N===m||N==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(N=>N>0).reduce((N,Me)=>N+Me,0)]).sort((K,N)=>K[1]-N[1])[0])==null?void 0:it[0];H&&(J=H);break}case"initialPlacement":J=c;break}if(s!==J)return{reset:{placement:J}}}return{}}}};async function e2(t,e){const{placement:n,platform:o,elements:s}=t,l=await(o.isRTL==null?void 0:o.isRTL(s.floating)),r=T(n),c=$(n),a=q(n)==="y",f=["left","top"].includes(r)?-1:1,A=l&&a?-1:1,d=z(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:u}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&typeof u=="number"&&(g=c==="end"?u*-1:u),a?{x:g*A,y:h*f}:{x:h*f,y:g*A}}const n2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:s,y:l,placement:r,middlewareData:c}=e,a=await e2(e,t);return r===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:s+a.x,y:l+a.y,data:{...a,placement:r}}}}},o2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:s}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:c={fn:w=>{let{x:B,y:m}=w;return{x:B,y:m}}},...a}=z(t,e),f={x:n,y:o},A=await mt(e,a),d=q(T(s)),h=Et(d);let g=f[h],u=f[d];if(l){const w=h==="y"?"top":"left",B=h==="y"?"bottom":"right",m=g+A[w],C=g-A[B];g=gt(m,g,C)}if(r){const w=d==="y"?"top":"left",B=d==="y"?"bottom":"right",m=u+A[w],C=u-A[B];u=gt(m,u,C)}const p=c.fn({...e,[h]:g,[d]:u});return{...p,data:{x:p.x-n,y:p.y-o}}}}},i2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:s,elements:l}=e,{apply:r=()=>{},...c}=z(t,e),a=await mt(e,c),f=T(n),A=$(n),d=q(n)==="y",{width:h,height:g}=o.floating;let u,p;f==="top"||f==="bottom"?(u=f,p=A===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(p=f,u=A==="end"?"top":"bottom");const w=g-a.top-a.bottom,B=h-a.left-a.right,m=D(g-a[u],w),C=D(h-a[p],B),y=!e.middlewareData.shift;let E=m,I=C;if(d?I=A||y?D(C,B):B:E=A||y?D(m,w):w,y&&!A){const L=b(a.left,0),S=b(a.right,0),v=b(a.top,0),U=b(a.bottom,0);d?I=h-2*(L!==0||S!==0?L+S:b(a.left,a.right)):E=g-2*(v!==0||U!==0?v+U:b(a.top,a.bottom))}await r({...e,availableWidth:I,availableHeight:E});const x=await s.getDimensions(l.floating);return h!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function j(t){return ht(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function G(t){var e;return(e=(ht(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ht(t){return t instanceof Node||t instanceof k(t).Node}function M(t){return t instanceof Element||t instanceof k(t).Element}function R(t){return t instanceof HTMLElement||t instanceof k(t).HTMLElement}function bt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof k(t).ShadowRoot}function nt(t){const{overflow:e,overflowX:n,overflowY:o,display:s}=F(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(s)}function s2(t){return["table","td","th"].includes(j(t))}function at(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function pt(t){const e=wt(),n=F(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function l2(t){let e=V(t);for(;R(e)&&!X(e);){if(at(e))return null;if(pt(e))return e;e=V(e)}return null}function wt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function X(t){return["html","body","#document"].includes(j(t))}function F(t){return k(t).getComputedStyle(t)}function ft(t){return M(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function V(t){if(j(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bt(t)&&t.host||G(t);return bt(e)?e.host:e}function kt(t){const e=V(t);return X(e)?t.ownerDocument?t.ownerDocument.body:t.body:R(e)&&nt(e)?e:kt(e)}function ot(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=kt(t),l=s===((o=t.ownerDocument)==null?void 0:o.body),r=k(s);return l?e.concat(r,r.visualViewport||[],nt(s)?s:[],r.frameElement&&n?ot(r.frameElement):[]):e.concat(s,ot(s,[],n))}function St(t){const e=F(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=R(t),l=s?t.offsetWidth:n,r=s?t.offsetHeight:o,c=st(n)!==l||st(o)!==r;return c&&(n=l,o=r),{width:n,height:o,$:c}}function Bt(t){return M(t)?t:t.contextElement}function _(t){const e=Bt(t);if(!R(e))return Y(1);const n=e.getBoundingClientRect(),{width:o,height:s,$:l}=St(e);let r=(l?st(n.width):n.width)/o,c=(l?st(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const r2=Y(0);function Ft(t){const e=k(t);return!wt()||!e.visualViewport?r2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function c2(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==k(t)?!1:e}function Z(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=Bt(t);let r=Y(1);e&&(o?M(o)&&(r=_(o)):r=_(t));const c=c2(l,n,o)?Ft(l):Y(0);let a=(s.left+c.x)/r.x,f=(s.top+c.y)/r.y,A=s.width/r.x,d=s.height/r.y;if(l){const h=k(l),g=o&&M(o)?k(o):o;let u=h,p=u.frameElement;for(;p&&o&&g!==u;){const w=_(p),B=p.getBoundingClientRect(),m=F(p),C=B.left+(p.clientLeft+parseFloat(m.paddingLeft))*w.x,y=B.top+(p.clientTop+parseFloat(m.paddingTop))*w.y;a*=w.x,f*=w.y,A*=w.x,d*=w.y,a+=C,f+=y,u=k(p),p=u.frameElement}}return ct({width:A,height:d,x:a,y:f})}function a2(t){let{elements:e,rect:n,offsetParent:o,strategy:s}=t;const l=s==="fixed",r=G(o),c=e?at(e.floating):!1;if(o===r||c&&l)return n;let a={scrollLeft:0,scrollTop:0},f=Y(1);const A=Y(0),d=R(o);if((d||!d&&!l)&&((j(o)!=="body"||nt(r))&&(a=ft(o)),R(o))){const h=Z(o);f=_(o),A.x=h.x+o.clientLeft,A.y=h.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+A.x,y:n.y*f.y-a.scrollTop*f.y+A.y}}function f2(t){return Array.from(t.getClientRects())}function Lt(t){return Z(G(t)).left+ft(t).scrollLeft}function A2(t){const e=G(t),n=ft(t),o=t.ownerDocument.body,s=b(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=b(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Lt(t);const c=-n.scrollTop;return F(o).direction==="rtl"&&(r+=b(e.clientWidth,o.clientWidth)-s),{width:s,height:l,x:r,y:c}}function g2(t,e){const n=k(t),o=G(t),s=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,c=0,a=0;if(s){l=s.width,r=s.height;const f=wt();(!f||f&&e==="fixed")&&(c=s.offsetLeft,a=s.offsetTop)}return{width:l,height:r,x:c,y:a}}function d2(t,e){const n=Z(t,!0,e==="fixed"),o=n.top+t.clientTop,s=n.left+t.clientLeft,l=R(t)?_(t):Y(1),r=t.clientWidth*l.x,c=t.clientHeight*l.y,a=s*l.x,f=o*l.y;return{width:r,height:c,x:a,y:f}}function vt(t,e,n){let o;if(e==="viewport")o=g2(t,n);else if(e==="document")o=A2(G(t));else if(M(e))o=d2(e,n);else{const s=Ft(t);o={...e,x:e.x-s.x,y:e.y-s.y}}return ct(o)}function Dt(t,e){const n=V(t);return n===e||!M(n)||X(n)?!1:F(n).position==="fixed"||Dt(n,e)}function C2(t,e){const n=e.get(t);if(n)return n;let o=ot(t,[],!1).filter(c=>M(c)&&j(c)!=="body"),s=null;const l=F(t).position==="fixed";let r=l?V(t):t;for(;M(r)&&!X(r);){const c=F(r),a=pt(r);!a&&c.position==="fixed"&&(s=null),(l?!a&&!s:!a&&c.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||nt(r)&&!a&&Dt(t,r))?o=o.filter(A=>A!==r):s=c,r=V(r)}return e.set(t,o),o}function u2(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const r=[...n==="clippingAncestors"?at(e)?[]:C2(e,this._c):[].concat(n),o],c=r[0],a=r.reduce((f,A)=>{const d=vt(e,A,s);return f.top=b(d.top,f.top),f.right=D(d.right,f.right),f.bottom=D(d.bottom,f.bottom),f.left=b(d.left,f.left),f},vt(e,c,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function m2(t){const{width:e,height:n}=St(t);return{width:e,height:n}}function h2(t,e,n){const o=R(e),s=G(e),l=n==="fixed",r=Z(t,!0,l,e);let c={scrollLeft:0,scrollTop:0};const a=Y(0);if(o||!o&&!l)if((j(e)!=="body"||nt(s))&&(c=ft(e)),o){const d=Z(e,!0,l,e);a.x=d.x+e.clientLeft,a.y=d.y+e.clientTop}else s&&(a.x=Lt(s));const f=r.left+c.scrollLeft-a.x,A=r.top+c.scrollTop-a.y;return{x:f,y:A,width:r.width,height:r.height}}function xt(t){return F(t).position==="static"}function Mt(t,e){return!R(t)||F(t).position==="fixed"?null:e?e(t):t.offsetParent}function Rt(t,e){const n=k(t);if(at(t))return n;if(!R(t)){let s=V(t);for(;s&&!X(s);){if(M(s)&&!xt(s))return s;s=V(s)}return n}let o=Mt(t,e);for(;o&&s2(o)&&xt(o);)o=Mt(o,e);return o&&X(o)&&xt(o)&&!pt(o)?n:o||l2(t)||n}const p2=async function(t){const e=this.getOffsetParent||Rt,n=this.getDimensions,o=await n(t.floating);return{reference:h2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function w2(t){return F(t).direction==="rtl"}const B2={convertOffsetParentRelativeRectToViewportRelativeRect:a2,getDocumentElement:G,getClippingRect:u2,getOffsetParent:Rt,getElementRects:p2,getClientRects:f2,getDimensions:m2,getScale:_,isElement:M,isRTL:w2};function x2(t,e){let n=null,o;const s=G(t);function l(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function r(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),l();const{left:f,top:A,width:d,height:h}=t.getBoundingClientRect();if(c||e(),!d||!h)return;const g=lt(A),u=lt(s.clientWidth-(f+d)),p=lt(s.clientHeight-(A+h)),w=lt(f),m={rootMargin:-g+"px "+-u+"px "+-p+"px "+-w+"px",threshold:b(0,D(1,a))||1};let C=!0;function y(E){const I=E[0].intersectionRatio;if(I!==a){if(!C)return r();I?r(!1,I):o=setTimeout(()=>{r(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(y,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(y,m)}n.observe(t)}return r(!0),l}function y2(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,f=Bt(t),A=s||l?[...f?ot(f):[],...ot(e)]:[];A.forEach(B=>{s&&B.addEventListener("scroll",n,{passive:!0}),l&&B.addEventListener("resize",n)});const d=f&&c?x2(f,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(B=>{let[m]=B;m&&m.target===f&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(e)})),n()}),f&&!a&&g.observe(f),g.observe(e));let u,p=a?Z(t):null;a&&w();function w(){const B=Z(t);p&&(B.x!==p.x||B.y!==p.y||B.width!==p.width||B.height!==p.height)&&n(),p=B,u=requestAnimationFrame(w)}return n(),()=>{var B;A.forEach(m=>{s&&m.removeEventListener("scroll",n),l&&m.removeEventListener("resize",n)}),d==null||d(),(B=g)==null||B.disconnect(),g=null,a&&cancelAnimationFrame(u)}}const E2=n2,I2=o2,Q2=t2,b2=i2,k2=_t,S2=(t,e,n)=>{const o=new Map,s={platform:B2,...n},l={...s.platform,_c:o};return Xt(t,e,{...s,platform:l})};function F2(t){return t!=null&&typeof t=="object"&&"$el"in t}function yt(t){if(F2(t)){const e=t.$el;return ht(e)&&j(e)==="#comment"?null:e}return t}function tt(t){return typeof t=="function"?t():i.unref(t)}function L2(t){return{name:"arrow",options:t,fn(e){const n=yt(tt(t.element));return n==null?{}:k2({element:n,padding:t.padding}).fn(e)}}}function Ht(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Gt(t,e){const n=Ht(t);return Math.round(e*n)/n}function v2(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,s=i.computed(()=>{var x;return(x=tt(n.open))!=null?x:!0}),l=i.computed(()=>tt(n.middleware)),r=i.computed(()=>{var x;return(x=tt(n.placement))!=null?x:"bottom"}),c=i.computed(()=>{var x;return(x=tt(n.strategy))!=null?x:"absolute"}),a=i.computed(()=>{var x;return(x=tt(n.transform))!=null?x:!0}),f=i.computed(()=>yt(t.value)),A=i.computed(()=>yt(e.value)),d=i.ref(0),h=i.ref(0),g=i.ref(c.value),u=i.ref(r.value),p=i.shallowRef({}),w=i.ref(!1),B=i.computed(()=>{const x={position:g.value,left:"0",top:"0"};if(!A.value)return x;const L=Gt(A.value,d.value),S=Gt(A.value,h.value);return a.value?{...x,transform:"translate("+L+"px, "+S+"px)",...Ht(A.value)>=1.5&&{willChange:"transform"}}:{position:g.value,left:L+"px",top:S+"px"}});let m;function C(){f.value==null||A.value==null||S2(f.value,A.value,{middleware:l.value,placement:r.value,strategy:c.value}).then(x=>{d.value=x.x,h.value=x.y,g.value=x.strategy,u.value=x.placement,p.value=x.middlewareData,w.value=!0})}function y(){typeof m=="function"&&(m(),m=void 0)}function E(){if(y(),o===void 0){C();return}if(f.value!=null&&A.value!=null){m=o(f.value,A.value,C);return}}function I(){s.value||(w.value=!1)}return i.watch([l,r,c],C,{flush:"sync"}),i.watch([f,A],E,{flush:"sync"}),i.watch(s,I,{flush:"sync"}),i.getCurrentScope()&&i.onScopeDispose(y),{x:i.shallowReadonly(d),y:i.shallowReadonly(h),strategy:i.shallowReadonly(g),placement:i.shallowReadonly(u),middlewareData:i.shallowReadonly(p),isPositioned:i.shallowReadonly(w),floatingStyles:B,update:C}}const D2="data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e",O=(t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n},M2={name:"Logo"},R2={src:D2,alt:"DDict Logo",class:"w-6 h-6 cursor-pointer"};function H2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("img",R2)}const G2=O(M2,[["render",H2]]),O2="data:image/gif;base64,R0lGODlhQAAmAPQAAM3Nzerq6sbGxu3t7dnZ2eHh4bW1tfv7+/Ly8re3t7y8vPz8/MLCwvX19fj4+N7e3rq6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c8BwxAlKBWkCOOoABIlAcc38iwGwhKEUBM5EBnIymAZqDxW7EryOHgekZsIkmk01HoGGx5NeiMPCIYiGoSKIoiOjIWKkIqSjh+VhpeOmnqclImWjZ2im6SUE3mBF6iGDx4TBIAmbD0eAZMvCkYiHg0UciMSGCm+BwWrJgkbZSRfAHsPRyY5BMIfBgAIUiULAQ8N3UkIGkMCA1w3LooeA1vjIQAh+QQFAwAfACwpABMAEQATAAAFZuAnjovTeGOaloUEbROqfsfCCcYYPY4sLgNAbibgLEQISmKWMlgGHguTCVlIp6qEFZvdckfa6/cTHovKZvRYCzB/FKWHgpvYnD6eCWGpMgAQPiIeCBpDHwIBR1NAAhEYB4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=",J2={name:"Loading"},Y2={class:"rounded bg-white p-1"},T2=[i.createElementVNode("img",{src:O2,alt:"Loading",class:"w-12"},null,-1)];function V2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",Y2,T2)}const U2=O(J2,[["render",V2]]),K2={name:"Dict",props:["dictionary"]},N2={class:"capitalize text-base italic font-normal text-slate-400"};function W2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.dictionary,(r,c)=>(i.openBlock(),i.createElementBlock("div",{key:c,class:"mt-2"},[i.createElementVNode("p",N2,i.toDisplayString(r.pos),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.terms,(a,f)=>(i.openBlock(),i.createElementBlock("span",{key:f,class:"text-base leading-6 text-textCustom"},i.toDisplayString(a)+", ",1))),128))]))),128))])}const q2=O(K2,[["render",W2]]),j2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e",Z2="data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e",P2={name:"Player",props:["tts"],data(){return{playing:!1,player:new Audio(this.tts),err:null}},watch:{playing(t){if(!t){this.player.pause();return}this.player.play()}},created(){this.player.onended=()=>{this.playing=!1},this.player.onerror=t=>{this.err=t}},methods:{play(){this.playing=!this.playing}}},z2={key:0,class:"w-5",src:j2,alt:"Play"},$2={key:1,class:"w-5",src:Z2,alt:"Stop"};function X2(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("button",{class:"btn btn-xs btn-ghost btn-circle",onClick:e[0]||(e[0]=(...r)=>l.play&&l.play(...r))},[s.playing?(i.openBlock(),i.createElementBlock("img",$2)):(i.openBlock(),i.createElementBlock("img",z2))])}const Ot=O(P2,[["render",X2]]),_2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e",te="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%23FFC857'/%3e%3c/svg%3e",ee={name:"Favorite",props:["isFilled"]},ne={class:"btn btn-xs btn-circle btn-ghost"},oe={key:0,class:"w-5",src:_2,alt:"Clear"},ie={key:1,class:"w-5",src:te,alt:"Clear"};function se(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("button",ne,[n.isFilled?(i.openBlock(),i.createElementBlock("img",oe)):(i.openBlock(),i.createElementBlock("img",ie))])}const Jt=O(ee,[["render",se]]),le="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%237E7E7E'/%3e%3c/svg%3e",re={},ce={class:"btn btn-xs btn-ghost btn-circle"},ae=[i.createElementVNode("img",{class:"w-5",src:le,alt:"Icon description"},null,-1)];function fe(t,e){return i.openBlock(),i.createElementBlock("button",ce,ae)}const Yt=O(re,[["render",fe]]),Ae="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e",ge={},de={class:"btn btn-xs btn-circle btn-ghost"},Ce=[i.createElementVNode("img",{class:"w-5",src:Ae,alt:"Clear"},null,-1)];function ue(t,e){return i.openBlock(),i.createElementBlock("button",de,Ce)}const Tt=O(ge,[["render",ue]]),me={name:"Sentences",props:["sentences"]},he={class:"text-base text-textCustom leading-tight p-0 mr-2"};function pe(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",he,i.toDisplayString(n.sentences),1)}const we=O(me,[["render",pe]]),Be={name:"Phonetic",props:["phonetic"]},xe={class:"p-0 m-0"},ye={class:"text-sm font-md text-slate-400"};function Ee(t,e,n,o,s,l){return i.openBlock(),i.createElementBlock("p",xe,[i.createElementVNode("span",ye,"/"+i.toDisplayString(n.phonetic)+"/",1)])}const Ie=O(Be,[["render",Ee]]),Qe={class:"flex flex-col"},be={key:0,class:"flex flex-row pb-2 border-b border-[#D3D4D9] pl-10"},Vt={__name:"Header",props:{tts:String,sentences:String,phonetic:String,isLongSentence:Boolean,isServiceUnavailable:Boolean,isFavorite:Boolean,isFavoriteFeatureEnabled:Boolean},emits:["favorite","setting","close"],setup(t,{emit:e}){const n=t,o=e;return(s,l)=>(i.openBlock(),i.createElementBlock("div",Qe,[i.createElementVNode("div",{class:i.normalizeClass(["flex p-2 pt-2 pb-0",{"flex-row-reverse":n.isLongSentence,"flex-row justify-between":!n.isLongSentence}])},[i.createElementVNode("div",{class:i.normalizeClass(["flex flex-row gap-2",{"order-2":n.isLongSentence,"items-center":!n.isLongSentence}])},[n.tts&&!t.isLongSentence?(i.openBlock(),i.createBlock(Ot,{key:0,tts:n.tts},null,8,["tts"])):i.createCommentVNode("",!0),i.createVNode(we,{sentences:t.isServiceUnavailable?["Service Unavailable"]:n.sentences},null,8,["sentences"])],2),i.createElementVNode("div",{class:i.normalizeClass(["flex",{"flex-col items-end":n.isLongSentence,"flex-row justify-right items-center ml-2":!n.isLongSentence}])},[n.isLongSentence?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(Tt,{onClick:l[0]||(l[0]=r=>o("close"))}),n.tts?(i.openBlock(),i.createBlock(Ot,{key:0,tts:n.tts},null,8,["tts"])):i.createCommentVNode("",!0),!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:1,isFilled:n.isFavorite,onClick:l[1]||(l[1]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Yt,{onClick:l[2]||(l[2]=r=>o("setting"))})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[!t.isServiceUnavailable&&n.isFavoriteFeatureEnabled?(i.openBlock(),i.createBlock(Jt,{key:0,isFilled:n.isFavorite,onClick:l[3]||(l[3]=r=>o("favorite"))},null,8,["isFilled"])):i.createCommentVNode("",!0),i.createVNode(Yt,{onClick:l[4]||(l[4]=r=>o("setting"))}),i.createVNode(Tt,{onClick:l[5]||(l[5]=r=>o("close"))})],64))],2)],2),n.isLongSentence?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",be,[n.phonetic?(i.openBlock(),i.createBlock(Ie,{key:0,phonetic:n.phonetic},null,8,["phonetic"])):i.createCommentVNode("",!0)]))]))}},ke={key:0,class:"flex justify-center"},Se={key:1,class:"wrapper drop-shadow-2xl rounded-lg text-slate-900 bg-white text-sm border border-solid border-neutral-300"},Fe=Object.assign({name:"Bubble",props:["translationData","tts","status","isFavorite","isFavoriteFeatureEnabled"],emits:["logo","favorite","settings","close"],data(){return{data:null,isLongSentence:!1,isServiceUnavailable:!1}},created(){try{this.data=this.translationData,!this.data.dictionary||this.data.dictionary.length===0?this.isLongSentence=!0:this.isLongSentence=!1,this.isServiceUnavailable=!1}catch{this.isServiceUnavailable=!0}}},{setup(t){return(e,n)=>t.status<2?(i.openBlock(),i.createElementBlock("div",ke,[t.status===0?(i.openBlock(),i.createBlock(G2,{key:0,onClick:n[0]||(n[0]=o=>e.$emit("logo"))})):(i.openBlock(),i.createBlock(U2,{key:1}))])):(i.openBlock(),i.createElementBlock("div",Se,[e.isServiceUnavailable?(i.openBlock(),i.createBlock(Vt,{key:0,isServiceUnavailable:e.isServiceUnavailable,isLongSentence:!1,onFavorite:n[1]||(n[1]=o=>e.$emit("favorite")),onSetting:n[2]||(n[2]=o=>e.$emit("settings")),onClose:n[3]||(n[3]=o=>e.$emit("close"))},null,8,["isServiceUnavailable"])):(i.openBlock(),i.createBlock(Vt,{key:1,tts:t.tts,sentences:e.data.result,phonetic:e.data.phonetic.src,isFavorite:t.isFavorite,isFavoriteFeatureEnabled:t.isFavoriteFeatureEnabled,onFavorite:n[4]||(n[4]=o=>e.$emit("favorite")),onSetting:n[5]||(n[5]=o=>e.$emit("settings")),onClose:n[6]||(n[6]=o=>e.$emit("close")),isLongSentence:e.isLongSentence},null,8,["tts","sentences","phonetic","isFavorite","isFavoriteFeatureEnabled","isLongSentence"])),e.isServiceUnavailable?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(q2,{key:2,class:"p-3 pt-0",dictionary:e.data.dictionary},null,8,["dictionary"]))]))}});function Le(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ut={exports:{}};(function(t){(function(){var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window<"u",o=n&&window.mozInnerScreenX!=null;function s(l,r,c){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var a=c&&c.debug||!1;if(a){var f=document.querySelector("#input-textarea-caret-position-mirror-div");f&&f.parentNode.removeChild(f)}var A=document.createElement("div");A.id="input-textarea-caret-position-mirror-div",document.body.appendChild(A);var d=A.style,h=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,g=l.nodeName==="INPUT";d.whiteSpace="pre-wrap",g||(d.wordWrap="break-word"),d.position="absolute",a||(d.visibility="hidden"),e.forEach(function(w){g&&w==="lineHeight"?d.lineHeight=h.height:d[w]=h[w]}),o?l.scrollHeight>parseInt(h.height)&&(d.overflowY="scroll"):d.overflow="hidden",A.textContent=l.value.substring(0,r),g&&(A.textContent=A.textContent.replace(/\s/g," "));var u=document.createElement("span");u.textContent=l.value.substring(r)||".",A.appendChild(u);var p={top:u.offsetTop+parseInt(h.borderTopWidth),left:u.offsetLeft+parseInt(h.borderLeftWidth),height:parseInt(h.lineHeight)};return a?u.style.backgroundColor="#aaa":document.body.removeChild(A),p}t.exports=s})()})(Ut);var ve=Ut.exports;const Kt=Le(ve);function At(t){const e=window.getSelection();let n=e+"";if(n=n.trim(),!n.length&&(!(t&&t.selectionEnd)||(n=t.value.substring(t.selectionStart,t.selectionEnd),n=n.trim(),!n.length)))return!1;let s=e.getRangeAt(0).getBoundingClientRect(),{top:l,bottom:r,left:c,width:a,height:f}=s;if(!r&&!c){if(!t.selectionEnd)return!1;let A=Kt(t,t.selectionStart),d=Kt(t,t.selectionEnd);s=t.getBoundingClientRect(),c=s.left+A.left,a=d.left-A.left,A.top!=d.top&&(c=s.left,a=s.width),l=s.top+A.top,r=s.top+d.top+20}return f===0&&(f=r-l),{text:n,x:c,y:l,top:l,bottom:r,left:c,right:c+a,width:a,height:f}}const De={__name:"BubbleWrapper",props:{translationData:Object,isFavoriteFeatureEnabled:Boolean,isFavorite:Boolean,tts:String,status:Number},emits:["logo","favorite","settings","close"],setup(t,{emit:e}){const n=t,o=e,s=i.ref(null),l=i.ref(null),r=i.ref(null),c=i.ref(!1),a=i.ref(""),f=i.computed(()=>typeof window>"u"||!r.value||!a.value?null:{getBoundingClientRect:()=>At(r.value),getClientRects:()=>At(r.value)}),A=i.computed(()=>{if(!g.value.arrow||n.status<1)return{display:"none"};const{x:m,y:C}=g.value.arrow,y={top:"bottom",right:"left",bottom:"top",left:"right"}[g.value.offset.placement];return{left:m!=null?`${m}px`:"",top:C!=null?`${C}px`:"",[y]:"-8px",position:"absolute"}}),d=i.computed(()=>{var C;switch((C=g.value.offset)==null?void 0:C.placement){case"top":return{transform:"rotate(180deg)"};case"left":return{transform:"rotate(90deg)"};case"right":return{transform:"rotate(-90deg)"};default:return{}}}),{floatingStyles:h,middlewareData:g,update:u}=v2(f,s,{placement:"bottom",middleware:[E2(8),Q2(),I2(),L2({element:l}),b2({apply({rects:m,elements:C}){Object.assign(C.floating.style,{maxWidth:`${m.reference.width>250?m.reference.width:250}px`})}})],whileElementsMounted(m,C,y){return y2(m,C,y,{ancestorScroll:!0})}});i.onMounted(()=>{document.body.onclick=m=>{const C=At(m.target);if(!C){B();return}p(C,m)},document.body.ontouchend=m=>{const C=At(m.target);if(!C){B();return}p(C,m)}}),i.onUnmounted(()=>{document.body.onclick=null,document.body.ontouchend=null});const p=(m,C)=>{n.status!==0&&o("close"),r.value=C.target,a.value=m.text,c.value=!0,i.nextTick(u)},w=m=>{m.stopPropagation()},B=async()=>{c.value=!1,o("close")};return i.watch(()=>n.status,()=>{c.value&&i.nextTick(u)},{deep:!0}),(m,C)=>c.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"floatingEl",ref:s,style:i.normalizeStyle(i.unref(h)),onClick:w},[i.createElementVNode("div",{ref_key:"arrowEl",ref:l,style:i.normalizeStyle(A.value),class:"absolute transform"},[i.createElementVNode("img",{style:i.normalizeStyle(d.value),class:"w-5",src:Nt,alt:"arrow"},null,4)],4),i.createVNode(Fe,{translationData:t.translationData,tts:t.tts,status:t.status,isFavorite:n.isFavorite,isFavoriteFeatureEnabled:n.isFavoriteFeatureEnabled,onLogo:C[0]||(C[0]=y=>o("logo")),onFavorite:C[1]||(C[1]=y=>o("favorite")),onSettings:C[2]||(C[2]=y=>o("settings")),onClose:B},null,8,["translationData","tts","status","isFavorite","isFavoriteFeatureEnabled"])],4)):i.createCommentVNode("",!0)}};W.default=De,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddict/bubble",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -14,8 +14,8 @@
14
14
  "cypress:run": "cypress run",
15
15
  "preview": "vite preview",
16
16
  "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
17
- "format": "prettier --write src/",
18
- "format-check": "prettier --check src/"
17
+ "format": "prettier --write .",
18
+ "format-check": "prettier --check ."
19
19
  },
20
20
  "dependencies": {
21
21
  "@floating-ui/vue": "^1.1.1",
@@ -40,7 +40,8 @@
40
40
  "prettier": "^3.3.3",
41
41
  "start-server-and-test": "^2.0.4",
42
42
  "tailwindcss": "^3.4.4",
43
- "vite": "^5.3.3"
43
+ "vite": "^5.3.3",
44
+ "vite-plugin-static-copy": "^1.0.6"
44
45
  },
45
46
  "optionalDependencies": {
46
47
  "@rollup/rollup-darwin-arm64": "^4.18.1",
package/dist/favicon.ico DELETED
Binary file
File without changes