受学习者的喜爱,得到专家的支持。
这是数百万学习者对他们流利使用Mondly的旅程的评价。
',ee(t,"class","flex h-96 items-center justify-center rounded-lg bg-gray-100")},m(e,i){W(e,t,i)},p:g,i:g,o:g,d(e){e&&H(t)}}}function en(e){let t,i,a,r,n;return a=new rt({props:{data:ct}}),{c(){t=Y("div"),i=Y("div"),qe(a.$$.fragment),r=K("\n\t\t\t\t\t\t\tProcessing Video"),ee(i,"class","pointer-events-none flex animate-pulse items-center gap-2 rounded-md bg-amber-500/20 px-4 py-2 text-amber-500 shadow-2xl shadow-amber-500/40"),ee(t,"class","flex h-full w-full flex-col items-center justify-center rounded-md bg-slate-900")},m(e,s){W(e,t,s),O(t,i),Ke(a,i,null),O(i,r),n=!0},p:g,i(e){n||(Ge(a.$$.fragment,e),n=!0)},o(e){De(a.$$.fragment,e),n=!1},d(e){e&&H(t),Ze(a)}}}function tn(e){let t,i,a,r,n;return a=new rt({props:{data:st}}),{c(){t=Y("div"),i=Y("div"),qe(a.$$.fragment),r=K("\n\t\t\t\t\t\t\tError Processing Video"),ee(i,"class","pointer-events-none flex items-center gap-2 rounded-md bg-red-500/20 px-4 py-2 text-red-500 shadow-2xl shadow-red-500/40"),ee(t,"class","flex h-full w-full flex-col items-center justify-center rounded-md bg-slate-900")},m(e,s){W(e,t,s),O(t,i),Ke(a,i,null),O(i,r),n=!0},p:g,i(e){n||(Ge(a.$$.fragment,e),n=!0)},o(e){De(a.$$.fragment,e),n=!1},d(e){e&&H(t),Ze(a)}}}function an(e){let t,i,a,r,n;const s=[nn,rn],o=[];function l(e,t){return e[20]||e[19]?0:1}t=l(e),i=o[t]=s[t](e);let d=e[21]&&$n();return{c(){i.c(),a=Z(),d&&d.c(),r=X()},m(e,i){o[t].m(e,i),W(e,a,i),d&&d.m(e,i),W(e,r,i),n=!0},p(e,n){let c=t;t=l(e),t===c?o[t].p(e,n):(Ne(),De(o[c],1,1,()=>{o[c]=null}),Oe(),i=o[t],i?i.p(e,n):(i=o[t]=s[t](e),i.c()),Ge(i,1),i.m(a.parentNode,a)),e[21]?d||(d=$n(),d.c(),d.m(r.parentNode,r)):d&&(d.d(1),d=null)},i(e){n||(Ge(i),n=!0)},o(e){De(i),n=!1},d(e){e&&(H(a),H(r)),o[t].d(e),d&&d.d(e)}}}function rn(e){let t,i,a,r,n,s,o,l,d,c,u,p,m,g,f=e[5]&&e[17]?.review?.rating&&sn(e),h=e[4]&&e[17]?.review?.title&&on(e);function w(e,t){return e[9]?dn:ln}c=new rt({props:{data:ht,fill:"currentColor",size:32,class:"text-white"}});let v=w(e),b=v(e);return{c(){t=Y("img"),a=Z(),r=Y("button"),n=Y("div"),f&&f.c(),s=Z(),h&&h.c(),o=Z(),l=Y("div"),d=Y("span"),qe(c.$$.fragment),u=Z(),b.c(),A(t.src,i=e[35])||ee(t,"src",i),ee(t,"alt",""),ee(t,"class","absolute inset-0 h-full w-full object-cover"),ee(n,"class","w-full text-left text-white"),ee(d,"class","rounded-full bg-black/30 p-4 shadow-xl backdrop-blur-md"),ee(l,"class","flex w-full items-center justify-center"),ee(r,"class","absolute flex h-full w-full flex-col justify-between px-4 py-4")},m(i,w){W(i,t,w),W(i,a,w),W(i,r,w),O(r,n),f&&f.m(n,null),O(n,s),h&&h.m(n,null),O(r,o),O(r,l),O(l,d),Ke(c,d,null),O(r,u),b.m(r,null),p=!0,m||(g=Q(r,"click",e[10]),m=!0)},p(e,a){(!p||16&a[1]&&!A(t.src,i=e[35]))&&ee(t,"src",i),e[5]&&e[17]?.review?.rating?f?(f.p(e,a),131104&a[0]&&Ge(f,1)):(f=sn(e),f.c(),Ge(f,1),f.m(n,s)):f&&(Ne(),De(f,1,1,()=>{f=null}),Oe()),e[4]&&e[17]?.review?.title?h?h.p(e,a):(h=on(e),h.c(),h.m(n,null)):h&&(h.d(1),h=null),v===(v=w(e))&&b?b.p(e,a):(b.d(1),b=v(e),b&&(b.c(),b.m(r,null)))},i(e){p||(Ge(f),Ge(c.$$.fragment,e),p=!0)},o(e){De(f),De(c.$$.fragment,e),p=!1},d(e){e&&(H(t),H(a),H(r)),f&&f.d(),h&&h.d(),Ze(c),b.d(),m=!1,g()}}}function nn(e){let t,i,a,r,n,s,o,l,d=e[19]&&un(e),c=e[32].length>0&&jn(e),u=e[22]&&e[16]?.form_question?.title&&kn(e);return{c(){t=Y("video"),i=Y("track"),a=Z(),d&&d.c(),r=Z(),c&&c.c(),n=Z(),s=Y("div"),u&&u.c(),ee(i,"kind","captions"),t.playsInline=!0,ee(t,"webkit-playsinline",""),ee(t,"poster",e[35]),ee(t,"class","h-full w-full object-cover"),ee(s,"class","pointer-events-none absolute inset-x-0 top-0 z-20 bg-gradient-to-b from-black/90 via-black/60 to-transparent opacity-0 transition-opacity"),le(s,"opacity-100",e[22]&&e[16]?.form_question?.title)},m(p,m){W(p,t,m),O(t,i),e[69](t),W(p,a,m),d&&d.m(p,m),W(p,r,m),c&&c.m(p,m),W(p,n,m),W(p,s,m),u&&u.m(s,null),o||(l=[Q(t,"ended",e[51]),Q(t,"play",e[52]),Q(t,"pause",e[53]),Q(t,"timeupdate",e[70]),Q(t,"loadedmetadata",e[71])],o=!0)},p(e,i){16&i[1]&&ee(t,"poster",e[35]),e[19]?d?d.p(e,i):(d=un(e),d.c(),d.m(r.parentNode,r)):d&&(d.d(1),d=null),e[32].length>0?c?c.p(e,i):(c=jn(e),c.c(),c.m(n.parentNode,n)):c&&(c.d(1),c=null),e[22]&&e[16]?.form_question?.title?u?u.p(e,i):(u=kn(e),u.c(),u.m(s,null)):u&&(u.d(1),u=null),4259840&i[0]&&le(s,"opacity-100",e[22]&&e[16]?.form_question?.title)},i:g,o:g,d(i){i&&(H(t),H(a),H(r),H(n),H(s)),e[69](null),d&&d.d(i),c&&c.d(i),u&&u.d(),o=!1,b(l)}}}function sn(e){let t,i,a;return i=new Sa({props:{rating:e[17].review.rating,size:12,color:e[6],strokeWidth:e[7],stroke:e[8]}}),{c(){t=Y("div"),qe(i.$$.fragment),ee(t,"class","mb-1")},m(e,r){W(e,t,r),Ke(i,t,null),a=!0},p(e,t){const a={};131072&t[0]&&(a.rating=e[17].review.rating),64&t[0]&&(a.color=e[6]),128&t[0]&&(a.strokeWidth=e[7]),256&t[0]&&(a.stroke=e[8]),i.$set(a)},i(e){a||(Ge(i.$$.fragment,e),a=!0)},o(e){De(i.$$.fragment,e),a=!1},d(e){e&&H(t),Ze(i)}}}function on(e){let t,i,a=e[17].review.title+"";return{c(){t=Y("div"),i=K(a),ee(t,"class","mb-2 text-base font-semibold text-white")},m(e,a){W(e,t,a),O(t,i)},p(e,t){131072&t[0]&&a!==(a=e[17].review.title+"")&&ne(i,a)},d(e){e&&H(t)}}}function ln(e){let t;return{c(){t=Y("div"),ee(t,"class","w-full")},m(e,i){W(e,t,i)},p:g,d(e){e&&H(t)}}}function dn(e){let t,i,a,r,n=(e[17]?.customer?.name??"Unnamed")+"",s=Oa(e[17]?.review),o=s&&cn(e);return{c(){t=Y("div"),i=Y("div"),a=K(n),r=Z(),o&&o.c(),ee(i,"class","text-xl text-white"),ee(t,"class","w-full text-left text-white")},m(e,n){W(e,t,n),O(t,i),O(i,a),O(t,r),o&&o.m(t,null)},p(e,i){131072&i[0]&&n!==(n=(e[17]?.customer?.name??"Unnamed")+"")&&ne(a,n),131072&i[0]&&(s=Oa(e[17]?.review)),s?o?o.p(e,i):(o=cn(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(e){e&&H(t),o&&o.d()}}}function cn(e){let t,i,a=Oa(e[17]?.review)+"";return{c(){t=Y("div"),i=K(a),ee(t,"class","text-sm text-white opacity-80")},m(e,a){W(e,t,a),O(t,i)},p(e,t){131072&t[0]&&a!==(a=Oa(e[17]?.review)+"")&&ne(i,a)},d(e){e&&H(t)}}}function un(e){let t,i,a,r,n,s,o,l,d,c,u,p,m,g,f,h,w,v,y,x,j,A,k=[],$=new Map,S=_n(e[41])+"",_=_n(e[34])+"",T=e[24]&&null!==e[23]&&"compact"!==e[3]&&pn(e),E=We(e[42]);const M=e=>e[101];for(let t=0;t
1&&e[42][e[23]].customerName&&mn(e);return{c(){t=Y("div"),c&&c.c(),i=Z(),a=Y("div"),r=K(l),n=Z(),s=Y("div"),o=K(d),ee(a,"class","font-medium"),ee(s,"class","mt-1 text-xs text-gray-300"),ee(t,"class","pointer-events-none absolute z-30 whitespace-nowrap rounded bg-gray-800 px-3 py-2 text-center text-xs font-medium text-white"),oe(t,"top","-75px"),oe(t,"left",e[25]/e[28]*100+"%"),oe(t,"transform","translateX(-50%)")},m(e,l){W(e,t,l),c&&c.m(t,null),O(t,i),O(t,a),O(a,r),O(t,n),O(t,s),O(s,o)},p(e,a){e[18].length>1&&e[42][e[23]].customerName?c?c.p(e,a):(c=mn(e),c.c(),c.m(t,i)):c&&(c.d(1),c=null),8388608&a[0]|2048&a[1]&&l!==(l=e[42][e[23]].title+"")&&ne(r,l),301989888&a[0]|8&a[1]&&d!==(d=_n(e[25]/e[28]*e[34])+"")&&ne(o,d),301989888&a[0]&&oe(t,"left",e[25]/e[28]*100+"%")},d(e){e&&H(t),c&&c.d()}}}function mn(e){let t,i,a=e[42][e[23]].customerName+"";return{c(){t=Y("div"),i=K(a),ee(t,"class","text-xs text-gray-400")},m(e,a){W(e,t,a),O(t,i)},p(e,t){8388608&t[0]|2048&t[1]&&a!==(a=e[42][e[23]].customerName+"")&&ne(i,a)},d(e){e&&H(t)}}}function gn(e,t){let i,a,r;function n(...e){return t[72](t[101],...e)}return{key:e,first:null,c(){i=Y("div"),ee(i,"class","absolute cursor-pointer rounded transition-opacity"),oe(i,"left","calc("+(t[34]>0?t[102].startTime/t[34]*100:0)+"% + "+("compact"===t[3]?"2px":"4px")+")"),oe(i,"width","calc("+(t[34]>0?(t[102].endTime-t[102].startTime)/t[34]*100:0)+"% - "+("compact"===t[3]?"4px":"8px")+")"),oe(i,"background-color",t[11]===t[101]?t[43]:t[43]+"80"),oe(i,"height",t[11]===t[101]?"100%":"50%"),oe(i,"top",t[11]===t[101]?"0":"25%"),this.first=i},m(e,s){W(e,i,s),a||(r=[Q(i,"mouseenter",n),Q(i,"mouseleave",t[73])],a=!0)},p(e,a){t=e,8&a[0]|2056&a[1]&&oe(i,"left","calc("+(t[34]>0?t[102].startTime/t[34]*100:0)+"% + "+("compact"===t[3]?"2px":"4px")+")"),8&a[0]|2056&a[1]&&oe(i,"width","calc("+(t[34]>0?(t[102].endTime-t[102].startTime)/t[34]*100:0)+"% - "+("compact"===t[3]?"4px":"8px")+")"),2048&a[0]|6144&a[1]&&oe(i,"background-color",t[11]===t[101]?t[43]:t[43]+"80"),2048&a[0]|2048&a[1]&&oe(i,"height",t[11]===t[101]?"100%":"50%"),2048&a[0]|2048&a[1]&&oe(i,"top",t[11]===t[101]?"0":"25%")},d(e){e&&H(i),a=!1,b(r)}}}function fn(e){let t,i;return{c(){t=q("svg"),i=q("path"),ee(i,"d","M8 5v14l11-7z"),ee(t,"xmlns","http://www.w3.org/2000/svg"),ee(t,"width","20"),ee(t,"height","20"),ee(t,"viewBox","0 0 24 24"),ee(t,"fill","currentColor"),ee(t,"class","text-white")},m(e,a){W(e,t,a),O(t,i)},d(e){e&&H(t)}}}function hn(e){let t,i;return{c(){t=q("svg"),i=q("path"),ee(i,"d","M6 4h4v16H6V4zm8 0h4v16h-4V4z"),ee(t,"xmlns","http://www.w3.org/2000/svg"),ee(t,"width","20"),ee(t,"height","20"),ee(t,"viewBox","0 0 24 24"),ee(t,"fill","currentColor"),ee(t,"class","text-white")},m(e,a){W(e,t,a),O(t,i)},d(e){e&&H(t)}}}function wn(e){let t,i,a,r,n,s,o,l;function d(e,t){return 0===e[29]||e[30]?yn:e[29]<.5 c='d(e),u=c(e);return{c(){t=Y("div"),i=Y("button"),u.c(),r=Z(),n=Y("input"),ee(i,"class","flex' items-center justify-center rounded p-1 transition-colors hover:bg-gray-700 h-1 cursor-pointer appearance-none rounded-lg bg-gray-600 svelte-l5nmg2 gap-2 vn t bn yn xn subtitles on off jn map l="e=">e[101];for(let t=0;tLoading...',ee(t,"class","absolute inset-0 flex items-center justify-center bg-black/50 backdrop-blur-sm")},m(e,i){W(e,t,i)},d(e){e&&H(t)}}}function Sn(e){let t,i,a,r;const n=[Jr,Qr],s=[];function o(e,t){return 0===e[15].length?0:1}return i=o(e),a=s[i]=n[i](e),{c(){t=Y("div"),a.c(),ee(t,"class","flex flex-col gap-4")},m(e,a){W(e,t,a),s[i].m(t,null),r=!0},p(e,r){let l=i;i=o(e),i===l?s[i].p(e,r):(Ne(),De(s[l],1,1,()=>{s[l]=null}),Oe(),a=s[i],a?a.p(e,r):(a=s[i]=n[i](e),a.c()),Ge(a,1),a.m(t,null))},i(e){r||(Ge(a),r=!0)},o(e){De(a),r=!1},d(e){e&&H(t),s[i].d()}}}function _n(e){if(!e||isNaN(e))return"0:00";return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function Tn(e,t,i){let a,r,n,s,o,l,d,c,u,p,m,g,f,h,w,v,b,y;k(e,Yr,e=>i(66,y=e));let x,j,{review:A}=t,{reviews:$=[]}=t,{customer:S}=t,{customers:_=[]}=t,{selectedResponseMap:T={}}=t,{brandColors:E=null}=t,{subtitleFontSize:M="text-xl"}=t,{subtitlePosition:C="bottom-[10%]"}=t,{questionOverlayFontSize:z="text-sm md:text-xl lg:text-xl"}=t,{questionOverlayPadding:P="px-4 py-3 md:px-4 md:py-3"}=t,{aspectRatioOverride:L}=t,{showNavigation:I=!0}=t,{volumeControlVariant:B="default"}=t,{showTitle:R=!1}=t,{showRating:N=!1}=t,{ratingColor:O="currentColor"}=t,{ratingStrokeWidth:G}=t,{ratingStroke:D}=t,{showCustomerInfo:F=!1}=t,U=0,W=!1,H=!1,V=null,Y=null,q=!1,K=null,Z=null,X=!1,Q=0,J=0,ee=0,te=!1,ie=0,ae=1,re=!1,ne=1,se=!1,oe=!0,le=[],de=null,ce=!1;function ue(e){return e?.media_asset?function(e){if(!e)return null;const t=function(e){var t,i;const a=null==e?void 0:e.metadata;return(null==a?void 0:a.playback_ids)?null!==(i=null===(t=a.playback_ids.find(e=>"public"===e.policy))||void 0===t?void 0:t.id)&&void 0!==i?i:"":null}(e);return t?`https://stream.mux.com/${t}.m3u8`:null}(e.media_asset)+"?max_resolution=1080p":null}function pe(e){const t=e.currentTarget.getBoundingClientRect();i(25,Q=e.clientX-t.left),i(28,ie=t.width)}function me(e){if(!se)return;const t=e instanceof TouchEvent?e.touches[0]?.clientX:e.clientX;void 0!==t&&function(e){if(!j||!d)return;const t=j.getBoundingClientRect(),a=Math.max(0,Math.min(1,(e-t.left)/t.width))*d;let r=0;for(let e=0;e