Loved by learners, supported by experts.
',ee(t,"class","flex h-96 items-center justify-center rounded-lg bg-gray-100")},m(e,a){W(e,t,a)},p:f,i:f,o:f,d(e){e&&U(t)}}}function tr(e){let t,a,i,n,r;return i=new nt({props:{data:ct}}),{c(){t=V("div"),a=V("div"),Ye(i.$$.fragment),n=K("\n\t\t\t\t\t\t\tProcessing Video"),ee(a,"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),G(t,a),Ke(i,a,null),G(a,n),r=!0},p:f,i(e){r||(Oe(i.$$.fragment,e),r=!0)},o(e){De(i.$$.fragment,e),r=!1},d(e){e&&U(t),Ze(i)}}}function ar(e){let t,a,i,n,r;return i=new nt({props:{data:st}}),{c(){t=V("div"),a=V("div"),Ye(i.$$.fragment),n=K("\n\t\t\t\t\t\t\tError Processing Video"),ee(a,"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),G(t,a),Ke(i,a,null),G(a,n),r=!0},p:f,i(e){r||(Oe(i.$$.fragment,e),r=!0)},o(e){De(i.$$.fragment,e),r=!1},d(e){e&&U(t),Ze(i)}}}function ir(e){let t,a,i,n,r;const s=[rr,nr],o=[];function l(e,t){return e[20]||e[19]?0:1}t=l(e),a=o[t]=s[t](e);let d=e[21]&&Ar();return{c(){a.c(),i=Z(),d&&d.c(),n=X()},m(e,a){o[t].m(e,a),W(e,i,a),d&&d.m(e,a),W(e,n,a),r=!0},p(e,r){let c=t;t=l(e),t===c?o[t].p(e,r):(Ne(),De(o[c],1,1,()=>{o[c]=null}),Ge(),a=o[t],a?a.p(e,r):(a=o[t]=s[t](e),a.c()),Oe(a,1),a.m(i.parentNode,i)),e[21]?d||(d=Ar(),d.c(),d.m(n.parentNode,n)):d&&(d.d(1),d=null)},i(e){r||(Oe(a),r=!0)},o(e){De(a),r=!1},d(e){e&&(U(i),U(n)),o[t].d(e),d&&d.d(e)}}}function nr(e){let t,a,i,n,r,s,o,l,d,c,p,u,m,f,g=e[5]&&e[17]?.review?.rating&&sr(e),h=e[4]&&e[17]?.review?.title&&or(e);function b(e,t){return e[9]?dr:lr}c=new nt({props:{data:ht,fill:"currentColor",size:32,class:"text-white"}});let v=b(e),w=v(e);return{c(){t=V("img"),i=Z(),n=V("button"),r=V("div"),g&&g.c(),s=Z(),h&&h.c(),o=Z(),l=V("div"),d=V("span"),Ye(c.$$.fragment),p=Z(),w.c(),j(t.src,a=e[35])||ee(t,"src",a),ee(t,"alt",""),ee(t,"class","absolute inset-0 h-full w-full object-cover"),ee(r,"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(n,"class","absolute flex h-full w-full flex-col justify-between px-4 py-4")},m(a,b){W(a,t,b),W(a,i,b),W(a,n,b),G(n,r),g&&g.m(r,null),G(r,s),h&&h.m(r,null),G(n,o),G(n,l),G(l,d),Ke(c,d,null),G(n,p),w.m(n,null),u=!0,m||(f=J(n,"click",e[10]),m=!0)},p(e,i){(!u||16&i[1]&&!j(t.src,a=e[35]))&&ee(t,"src",a),e[5]&&e[17]?.review?.rating?g?(g.p(e,i),131104&i[0]&&Oe(g,1)):(g=sr(e),g.c(),Oe(g,1),g.m(r,s)):g&&(Ne(),De(g,1,1,()=>{g=null}),Ge()),e[4]&&e[17]?.review?.title?h?h.p(e,i):(h=or(e),h.c(),h.m(r,null)):h&&(h.d(1),h=null),v===(v=b(e))&&w?w.p(e,i):(w.d(1),w=v(e),w&&(w.c(),w.m(n,null)))},i(e){u||(Oe(g),Oe(c.$$.fragment,e),u=!0)},o(e){De(g),De(c.$$.fragment,e),u=!1},d(e){e&&(U(t),U(i),U(n)),g&&g.d(),h&&h.d(),Ze(c),w.d(),m=!1,f()}}}function rr(e){let t,a,i,n,r,s,o,l,d=e[19]&&pr(e),c=e[32].length>0&&xr(e),p=e[22]&&e[16]?.form_question?.title&&kr(e);return{c(){t=V("video"),a=V("track"),i=Z(),d&&d.c(),n=Z(),c&&c.c(),r=Z(),s=V("div"),p&&p.c(),ee(a,"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(u,m){W(u,t,m),G(t,a),e[69](t),W(u,i,m),d&&d.m(u,m),W(u,n,m),c&&c.m(u,m),W(u,r,m),W(u,s,m),p&&p.m(s,null),o||(l=[J(t,"ended",e[51]),J(t,"play",e[52]),J(t,"pause",e[53]),J(t,"timeupdate",e[70]),J(t,"loadedmetadata",e[71])],o=!0)},p(e,a){16&a[1]&&ee(t,"poster",e[35]),e[19]?d?d.p(e,a):(d=pr(e),d.c(),d.m(n.parentNode,n)):d&&(d.d(1),d=null),e[32].length>0?c?c.p(e,a):(c=xr(e),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null),e[22]&&e[16]?.form_question?.title?p?p.p(e,a):(p=kr(e),p.c(),p.m(s,null)):p&&(p.d(1),p=null),4259840&a[0]&&le(s,"opacity-100",e[22]&&e[16]?.form_question?.title)},i:f,o:f,d(a){a&&(U(t),U(i),U(n),U(r),U(s)),e[69](null),d&&d.d(a),c&&c.d(a),p&&p.d(),o=!1,w(l)}}}function sr(e){let t,a,i;return a=new $i({props:{rating:e[17].review.rating,size:12,color:e[6],strokeWidth:e[7],stroke:e[8]}}),{c(){t=V("div"),Ye(a.$$.fragment),ee(t,"class","mb-1")},m(e,n){W(e,t,n),Ke(a,t,null),i=!0},p(e,t){const i={};131072&t[0]&&(i.rating=e[17].review.rating),64&t[0]&&(i.color=e[6]),128&t[0]&&(i.strokeWidth=e[7]),256&t[0]&&(i.stroke=e[8]),a.$set(i)},i(e){i||(Oe(a.$$.fragment,e),i=!0)},o(e){De(a.$$.fragment,e),i=!1},d(e){e&&U(t),Ze(a)}}}function or(e){let t,a,i=e[17].review.title+"";return{c(){t=V("div"),a=K(i),ee(t,"class","mb-2 text-base font-semibold text-white")},m(e,i){W(e,t,i),G(t,a)},p(e,t){131072&t[0]&&i!==(i=e[17].review.title+"")&&re(a,i)},d(e){e&&U(t)}}}function lr(e){let t;return{c(){t=V("div"),ee(t,"class","w-full")},m(e,a){W(e,t,a)},p:f,d(e){e&&U(t)}}}function dr(e){let t,a,i,n,r=(e[17]?.customer?.name??"Unnamed")+"",s=Gi(e[17]?.review),o=s&&cr(e);return{c(){t=V("div"),a=V("div"),i=K(r),n=Z(),o&&o.c(),ee(a,"class","text-xl text-white"),ee(t,"class","w-full text-left text-white")},m(e,r){W(e,t,r),G(t,a),G(a,i),G(t,n),o&&o.m(t,null)},p(e,a){131072&a[0]&&r!==(r=(e[17]?.customer?.name??"Unnamed")+"")&&re(i,r),131072&a[0]&&(s=Gi(e[17]?.review)),s?o?o.p(e,a):(o=cr(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(e){e&&U(t),o&&o.d()}}}function cr(e){let t,a,i=Gi(e[17]?.review)+"";return{c(){t=V("div"),a=K(i),ee(t,"class","text-sm text-white opacity-80")},m(e,i){W(e,t,i),G(t,a)},p(e,t){131072&t[0]&&i!==(i=Gi(e[17]?.review)+"")&&re(a,i)},d(e){e&&U(t)}}}function pr(e){let t,a,i,n,r,s,o,l,d,c,p,u,m,f,g,h,b,v,y,_,x,j,k=[],A=new Map,$=Sr(e[41])+"",S=Sr(e[34])+"",z=e[24]&&null!==e[23]&&"compact"!==e[3]&&ur(e),E=We(e[42]);const T=e=>e[101];for(let t=0;t
1&&e[42][e[23]].customerName&&mr(e);return{c(){t=V("div"),c&&c.c(),a=Z(),i=V("div"),n=K(l),r=Z(),s=V("div"),o=K(d),ee(i,"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),G(t,a),G(t,i),G(i,n),G(t,r),G(t,s),G(s,o)},p(e,i){e[18].length>1&&e[42][e[23]].customerName?c?c.p(e,i):(c=mr(e),c.c(),c.m(t,a)):c&&(c.d(1),c=null),8388608&i[0]|2048&i[1]&&l!==(l=e[42][e[23]].title+"")&&re(n,l),301989888&i[0]|8&i[1]&&d!==(d=Sr(e[25]/e[28]*e[34])+"")&&re(o,d),301989888&i[0]&&oe(t,"left",e[25]/e[28]*100+"%")},d(e){e&&U(t),c&&c.d()}}}function mr(e){let t,a,i=e[42][e[23]].customerName+"";return{c(){t=V("div"),a=K(i),ee(t,"class","text-xs text-gray-400")},m(e,i){W(e,t,i),G(t,a)},p(e,t){8388608&t[0]|2048&t[1]&&i!==(i=e[42][e[23]].customerName+"")&&re(a,i)},d(e){e&&U(t)}}}function fr(e,t){let a,i,n;function r(...e){return t[72](t[101],...e)}return{key:e,first:null,c(){a=V("div"),ee(a,"class","absolute cursor-pointer rounded transition-opacity"),oe(a,"left","calc("+(t[34]>0?t[102].startTime/t[34]*100:0)+"% + "+("compact"===t[3]?"2px":"4px")+")"),oe(a,"width","calc("+(t[34]>0?(t[102].endTime-t[102].startTime)/t[34]*100:0)+"% - "+("compact"===t[3]?"4px":"8px")+")"),oe(a,"background-color",t[11]===t[101]?t[43]:t[43]+"80"),oe(a,"height",t[11]===t[101]?"100%":"50%"),oe(a,"top",t[11]===t[101]?"0":"25%"),this.first=a},m(e,s){W(e,a,s),i||(n=[J(a,"mouseenter",r),J(a,"mouseleave",t[73])],i=!0)},p(e,i){t=e,8&i[0]|2056&i[1]&&oe(a,"left","calc("+(t[34]>0?t[102].startTime/t[34]*100:0)+"% + "+("compact"===t[3]?"2px":"4px")+")"),8&i[0]|2056&i[1]&&oe(a,"width","calc("+(t[34]>0?(t[102].endTime-t[102].startTime)/t[34]*100:0)+"% - "+("compact"===t[3]?"4px":"8px")+")"),2048&i[0]|6144&i[1]&&oe(a,"background-color",t[11]===t[101]?t[43]:t[43]+"80"),2048&i[0]|2048&i[1]&&oe(a,"height",t[11]===t[101]?"100%":"50%"),2048&i[0]|2048&i[1]&&oe(a,"top",t[11]===t[101]?"0":"25%")},d(e){e&&U(a),i=!1,w(n)}}}function gr(e){let t,a;return{c(){t=Y("svg"),a=Y("path"),ee(a,"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,i){W(e,t,i),G(t,a)},d(e){e&&U(t)}}}function hr(e){let t,a;return{c(){t=Y("svg"),a=Y("path"),ee(a,"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,i){W(e,t,i),G(t,a)},d(e){e&&U(t)}}}function br(e){let t,a,i,n,r,s,o,l;function d(e,t){return 0===e[29]||e[30]?yr:e[29]<.5 c='d(e),p=c(e);return{c(){t=V("div"),a=V("button"),p.c(),n=Z(),r=V("input"),ee(a,"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 vr t wr yr _r subtitles on off xr 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,a){W(e,t,a)},d(e){e&&U(t)}}}function $r(e){let t,a,i,n;const r=[er,Qn],s=[];function o(e,t){return 0===e[15].length?0:1}return a=o(e),i=s[a]=r[a](e),{c(){t=V("div"),i.c(),ee(t,"class","flex flex-col gap-4")},m(e,i){W(e,t,i),s[a].m(t,null),n=!0},p(e,n){let l=a;a=o(e),a===l?s[a].p(e,n):(Ne(),De(s[l],1,1,()=>{s[l]=null}),Ge(),i=s[a],i?i.p(e,n):(i=s[a]=r[a](e),i.c()),Oe(i,1),i.m(t,null))},i(e){n||(Oe(i),n=!0)},o(e){De(i),n=!1},d(e){e&&U(t),s[a].d()}}}function Sr(e){if(!e||isNaN(e))return"0:00";return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function zr(e,t,a){let i,n,r,s,o,l,d,c,p,u,m,f,g,h,b,v,w,y;k(e,Yn,e=>a(66,y=e));let _,x,{review:j}=t,{reviews:A=[]}=t,{customer:$}=t,{customers:S=[]}=t,{selectedResponseMap:z={}}=t,{brandColors:E=null}=t,{subtitleFontSize:T="text-xl"}=t,{subtitlePosition:M="bottom-[10%]"}=t,{questionOverlayFontSize:C="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:G="currentColor"}=t,{ratingStrokeWidth:O}=t,{ratingStroke:D}=t,{showCustomerInfo:F=!1}=t,q=0,W=!1,U=!1,H=null,V=null,Y=!1,K=null,Z=null,X=!1,J=0,Q=0,ee=0,te=!1,ae=0,ie=1,ne=!1,re=1,se=!1,oe=!0,le=[],de=null,ce=!1;function pe(e){return e?.media_asset?function(e){if(!e)return null;const t=function(e){var t,a;const i=null==e?void 0:e.metadata;return(null==i?void 0:i.playback_ids)?null!==(a=null===(t=i.playback_ids.find(e=>"public"===e.policy))||void 0===t?void 0:t.id)&&void 0!==a?a:"":null}(e);return t?`https://stream.mux.com/${t}.m3u8`:null}(e.media_asset)+"?max_resolution=1080p":null}function ue(e){const t=e.currentTarget.getBoundingClientRect();a(25,J=e.clientX-t.left),a(28,ae=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(!x||!d)return;const t=x.getBoundingClientRect(),i=Math.max(0,Math.min(1,(e-t.left)/t.width))*d;let n=0;for(let e=0;e