Remove build folder, and move to cloudflare for hosting

This commit is contained in:
WindowsAddict 2024-05-17 11:56:02 +05:30
parent c8990dfcd3
commit 16ff3a80d0
173 changed files with 14 additions and 5558 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
/node_modules
# Production
# /build
/build
# Generated files
.docusaurus

View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[5686],{8783:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>i,contentTitle:()=>o,default:()=>l,frontMatter:()=>t,metadata:()=>n,toc:()=>c});var d=s(4848),a=s(8453);const t={},o="News",n={id:"news",title:"News",description:"[28-Apr-24] Added some more products",source:"@site/docs/news.md",sourceDirName:".",slug:"/news",permalink:"/news",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/news.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Guides",permalink:"/guide_links"},next:{title:"MAS Changelog",permalink:"/changelog"}},i={},c=[{value:"[28-Apr-24] Added some more products",id:"28-apr-24-added-some-more-products",level:3},{value:"[20-Apr-24] Update: MAS 2.6 Added Support For Office 2024",id:"20-apr-24-update-mas-26-added-support-for-office-2024",level:3},{value:"[19-Apr-24] Added office 2024 preview serializer for macOS",id:"19-apr-24-added-office-2024-preview-serializer-for-macos",level:3},{value:"[17-Apr-24] Added Apr updated ISO's and IoT LTSB 15/16 ISO's",id:"17-apr-24-added-apr-updated-isos-and-iot-ltsb-1516-isos",level:3},{value:"[16-Apr-24] Added office links for older macOS versions",id:"16-apr-24-added-office-links-for-older-macos-versions",level:3},{value:"[13-Apr-24] Switched to Docusaurus for the site generation",id:"13-apr-24-switched-to-docusaurus-for-the-site-generation",level:3},{value:"[12-Apr-24] Added News page",id:"12-apr-24-added-news-page",level:3}];function p(e){const r={a:"a",br:"br",h1:"h1",h3:"h3",p:"p",...(0,a.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.h1,{id:"news",children:"News"}),"\n",(0,d.jsx)(r.h3,{id:"28-apr-24-added-some-more-products",children:"[28-Apr-24] Added some more products"}),"\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.a,{href:"https://massgrave.dev/unsupported_products_activation",children:"https://massgrave.dev/unsupported_products_activation"}),(0,d.jsx)(r.br,{}),"\n","HEVC Video Extensions, SQL Server, Microsoft Configuration Manager, System Center 2022, Windows Vista, Office 2007 Enterprise"]}),"\n",(0,d.jsx)(r.h3,{id:"20-apr-24-update-mas-26-added-support-for-office-2024",children:"[20-Apr-24] Update: MAS 2.6 Added Support For Office 2024"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.a,{href:"https://massgrave.dev/changelog#26",children:"https://massgrave.dev/changelog#26"})}),"\n",(0,d.jsx)(r.h3,{id:"19-apr-24-added-office-2024-preview-serializer-for-macos",children:"[19-Apr-24] Added office 2024 preview serializer for macOS"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.a,{href:"https://massgrave.dev/office_for_mac",children:"https://massgrave.dev/office_for_mac"})}),"\n",(0,d.jsx)(r.h3,{id:"17-apr-24-added-apr-updated-isos-and-iot-ltsb-1516-isos",children:"[17-Apr-24] Added Apr updated ISO's and IoT LTSB 15/16 ISO's"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.a,{href:"https://massgrave.dev/genuine-installation-media",children:"https://massgrave.dev/genuine-installation-media"})}),"\n",(0,d.jsx)(r.h3,{id:"16-apr-24-added-office-links-for-older-macos-versions",children:"[16-Apr-24] Added office links for older macOS versions"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.a,{href:"https://massgrave.dev/office_for_mac",children:"https://massgrave.dev/office_for_mac"})}),"\n",(0,d.jsx)(r.h3,{id:"13-apr-24-switched-to-docusaurus-for-the-site-generation",children:"[13-Apr-24] Switched to Docusaurus for the site generation"}),"\n",(0,d.jsx)(r.p,{children:"Thanks to asdcorp for the custom.css and help"}),"\n",(0,d.jsx)(r.h3,{id:"12-apr-24-added-news-page",children:"[12-Apr-24] Added News page"})]})}function l(e={}){const{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,d.jsx)(r,{...e,children:(0,d.jsx)(p,{...e})}):p(e)}},8453:(e,r,s)=>{s.d(r,{R:()=>o,x:()=>n});var d=s(6540);const a={},t=d.createContext(a);function o(e){const r=d.useContext(t);return d.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function n(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),d.createElement(t.Provider,{value:r},e.children)}}}]);

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[9529],{9777:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>a,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>c,toc:()=>u});var r=n(4848),o=n(8453);const s={},i="Our Non-Piracy Site",c={id:"our_non-piracy_site",title:"Our Non-Piracy Site",description:"We also operate https://gravesoft.dev/ where you can find stuff exclusive to non-piracy.",source:"@site/docs/our_non-piracy_site.md",sourceDirName:".",slug:"/our_non-piracy_site",permalink:"/our_non-piracy_site",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/our_non-piracy_site.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Unsupported Products Activation",permalink:"/unsupported_products_activation"},next:{title:"Credits",permalink:"/credits"}},a={},u=[];function p(t){const e={a:"a",h1:"h1",p:"p",...(0,o.R)(),...t.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h1,{id:"our-non-piracy-site",children:"Our Non-Piracy Site"}),"\n",(0,r.jsxs)(e.p,{children:["We also operate ",(0,r.jsx)(e.a,{href:"https://gravesoft.dev/",children:"https://gravesoft.dev/"})," where you can find stuff exclusive to non-piracy."]})]})}function d(t={}){const{wrapper:e}={...(0,o.R)(),...t.components};return e?(0,r.jsx)(e,{...t,children:(0,r.jsx)(p,{...t})}):p(t)}},8453:(t,e,n)=>{n.d(e,{R:()=>i,x:()=>c});var r=n(6540);const o={},s=r.createContext(o);function i(t){const e=r.useContext(s);return r.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function c(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(o):t.components||o:i(t.components),r.createElement(s.Provider,{value:e},t.children)}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[6061],{7973:(e,a,s)=>{s.r(a),s.d(a,{default:()=>x});s(6540);var t=s(4164),d=s(1003),l=s(7559),i=s(781),r=s(2125),c=s(7763),n=s(996),o=s(2153);const m={mdxPageWrapper:"mdxPageWrapper_j9I6"};var p=s(4848);function x(e){const{content:a}=e,{metadata:{title:s,editUrl:x,description:g,frontMatter:h,unlisted:j,lastUpdatedBy:_,lastUpdatedAt:A},assets:v}=a,{keywords:u,wrapperClassName:w,hide_table_of_contents:f}=h,N=v.image??h.image,k=!!(x||A||_);return(0,p.jsx)(d.e3,{className:(0,t.A)(w??l.G.wrapper.mdxPages,l.G.page.mdxPage),children:(0,p.jsxs)(i.A,{children:[(0,p.jsx)(d.be,{title:s,description:g,keywords:u,image:N}),(0,p.jsx)("main",{className:"container container--fluid margin-vert--lg",children:(0,p.jsxs)("div",{className:(0,t.A)("row",m.mdxPageWrapper),children:[(0,p.jsxs)("div",{className:(0,t.A)("col",!f&&"col--8"),children:[j&&(0,p.jsx)(n.A,{}),(0,p.jsx)("article",{children:(0,p.jsx)(r.A,{children:(0,p.jsx)(a,{})})}),k&&(0,p.jsx)(o.A,{className:(0,t.A)("margin-top--sm",l.G.pages.pageFooterEditMetaRow),editUrl:x,lastUpdatedAt:A,lastUpdatedBy:_})]}),!f&&a.toc.length>0&&(0,p.jsx)("div",{className:"col col--2",children:(0,p.jsx)(c.A,{toc:a.toc,minHeadingLevel:h.toc_min_heading_level,maxHeadingLevel:h.toc_max_heading_level})})]})})]})})}}}]);

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[2237],{3363:(e,t,n)=>{n.d(t,{A:()=>r});n(6540);var s=n(4164),i=n(1312),o=n(1107),a=n(4848);function r(e){let{className:t}=e;return(0,a.jsx)("main",{className:(0,s.A)("container margin-vert--xl",t),children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,a.jsx)(o.A,{as:"h1",className:"hero__title",children:(0,a.jsx)(i.A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,a.jsx)("p",{children:(0,a.jsx)(i.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,a.jsx)("p",{children:(0,a.jsx)(i.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},2237:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});n(6540);var s=n(1312),i=n(1003),o=n(781),a=n(3363),r=n(4848);function d(){const e=(0,s.T)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.be,{title:e}),(0,r.jsx)(o.A,{children:(0,r.jsx)(a.A,{})})]})}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[3384],{7678:(t,e,o)=>{o.r(e),o.d(e,{assets:()=>a,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var s=o(4848),n=o(8453);o(6540);const r=function(){return(0,s.jsx)("a",{href:"https://discord.gg/tVFN4N84PP",children:(0,s.jsx)("img",{height:"40px",src:"https://img.shields.io/discord/746721520931569757?style=social&logo=discord&label=Chat%20with%20us",alt:"Discord"})})},i={},c="Troubleshoot",l={id:"troubleshoot",title:"Troubleshoot",description:"- Make sure you are using the latest MAS version.",source:"@site/docs/troubleshoot.md",sourceDirName:".",slug:"/troubleshoot",permalink:"/troubleshoot",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/troubleshoot.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"FAQ",permalink:"/faq"},next:{title:"Download Windows / Office",permalink:"/genuine-installation-media"}},a={},u=[];function h(t){const e={a:"a",h1:"h1",hr:"hr",li:"li",strong:"strong",ul:"ul",...(0,n.R)(),...t.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e.h1,{id:"troubleshoot",children:"Troubleshoot"}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.strong,{children:"Make sure"})," you are using the ",(0,s.jsx)(e.a,{href:"/#download--how-to-use-it",children:"latest MAS version"}),"."]}),"\n",(0,s.jsxs)(e.li,{children:["If script is showing any instruction in ",(0,s.jsx)(e.strong,{children:"Blue color"}),", try to follow that."]}),"\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.strong,{children:"Reach out to us"})," on ",(0,s.jsx)(e.a,{href:"https://discord.gg/tVFN4N84PP",children:"Discord"})," (signup not required) or ",(0,s.jsx)(e.a,{href:"https://github.com/massgravel/Microsoft-Activation-Scripts",children:"GitHub"})," with an error screenshot."]}),"\n"]}),"\n","\n",(0,s.jsx)(r,{}),"\n",(0,s.jsx)(e.hr,{})]})}function d(t={}){const{wrapper:e}={...(0,n.R)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(h,{...t})}):h(t)}},8453:(t,e,o)=>{o.d(e,{R:()=>i,x:()=>c});var s=o(6540);const n={},r=s.createContext(n);function i(t){const e=s.useContext(r);return s.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function c(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(n):t.components||n:i(t.components),s.createElement(r.Provider,{value:e},t.children)}}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[4134],{6022:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>p,toc:()=>d});var o=t(4848),a=t(8453);const r={title:"Markdown page example"},s="Markdown page example",p={type:"mdx",permalink:"/markdown-page",source:"@site/src/pages/markdown-page.md",title:"Markdown page example",description:"You don't need React to write simple standalone pages.",frontMatter:{title:"Markdown page example"},unlisted:!1},c={},d=[];function i(e){const n={h1:"h1",p:"p",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{id:"markdown-page-example",children:"Markdown page example"}),"\n",(0,o.jsx)(n.p,{children:"You don't need React to write simple standalone pages."})]})}function l(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(i,{...e})}):i(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>p});var o=t(6540);const a={},r=o.createContext(a);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function p(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[1076],{4044:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>o,default:()=>a,frontMatter:()=>t,metadata:()=>l,toc:()=>d});var i=n(4848),r=n(8453);const t={},o="Guides",l={id:"guide_links",title:"Guides",description:"If you are facing any error, the script should tell you which guide you need to follow. If you are unsure, we suggest getting help from here instead of blindly following the guides.",source:"@site/docs/guide_links.md",sourceDirName:".",slug:"/guide_links",permalink:"/guide_links",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/guide_links.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Change Windows Edition",permalink:"/change_edition"},next:{title:"News",permalink:"/news"}},c={},d=[];function u(e){const s={a:"a",h1:"h1",hr:"hr",li:"li",p:"p",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.h1,{id:"guides",children:"Guides"}),"\n",(0,i.jsxs)(s.p,{children:["If you are facing any error, the script should tell you which guide you need to follow. If you are unsure, we suggest getting help from ",(0,i.jsx)(s.a,{href:"/troubleshoot",children:"here"})," instead of blindly following the guides."]}),"\n",(0,i.jsx)(s.hr,{}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"/office-license-is-not-genuine",children:"Office License Is Not Genuine"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"https://gravesoft.dev/bypass-russian-geoblock",children:"Bypass Russian Geoblock"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"https://gravesoft.dev/fix-wpa-registry",children:"Fix WPA Registry"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"/licensing-servers-issue",children:"Licensing Servers Issue"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"/issues_due_to_gaming_spoofers",children:"Issues Due To Gaming Spoofers"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"/change_edition_issues",children:"Change Edition Issues"})}),"\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.a,{href:"https://gravesoft.dev/in-place_repair_upgrade",children:"In-place Repair Upgrade"})}),"\n"]}),"\n",(0,i.jsx)(s.hr,{})]})}function a(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,s,n)=>{n.d(s,{R:()=>o,x:()=>l});var i=n(6540);const r={},t=i.createContext(r);function o(e){const s=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),i.createElement(t.Provider,{value:s},e.children)}}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[3202],{681:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>a});var t=s(4848),i=s(8453);const r={},o="Licensing Servers Issue",c={id:"licensing-servers-issue",title:"Licensing Servers Issue",description:"- In some cases, HWID activation may fail because the system couldn't connect to HWID licensing servers.",source:"@site/docs/licensing-servers-issue.md",sourceDirName:".",slug:"/licensing-servers-issue",permalink:"/licensing-servers-issue",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/licensing-servers-issue.md",tags:[],version:"current",frontMatter:{}},l={},a=[{value:"Network Reset",id:"network-reset",level:2},{value:"VPN",id:"vpn",level:2}];function h(e){const n={a:"a",h1:"h1",h2:"h2",hr:"hr",li:"li",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"licensing-servers-issue",children:"Licensing Servers Issue"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["In some cases, ",(0,t.jsx)(n.strong,{children:"HWID activation"})," may fail because the system couldn't connect to HWID licensing servers."]}),"\n",(0,t.jsx)(n.li,{children:"The activation script will inform you about this if that is the case. We suggest following the below guide only when the script tells you to do so."}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"network-reset",children:"Network Reset"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"In Windows 10/11, go to settings and search for Network Reset, then apply this option."}),"\n",(0,t.jsx)(n.li,{children:"Restart your system and try HWID Activation."}),"\n",(0,t.jsx)(n.li,{children:"If it's showing the same Internet error then follow the below option."}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"vpn",children:"VPN"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Download ",(0,t.jsx)(n.a,{href:"https://windscribe.com/download/",children:"Windscribe VPN"})," for Windows and install."]}),"\n",(0,t.jsx)(n.li,{children:"It will require you to signup, you can do that without email ID. After that, login in the app, connect, and try HWID activation."}),"\n",(0,t.jsx)(n.li,{children:"If the VPN is not connecting, use another Internet connection such as your Mobile phone through USB Tethering or Wi-Fi Hotspot, and try HWID activation."}),"\n",(0,t.jsxs)(n.li,{children:["If HWID activation is still not working then check ",(0,t.jsx)(n.a,{href:"/troubleshoot",children:"here"})," for help."]}),"\n"]}),"\n",(0,t.jsx)(n.hr,{})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>c});var t=s(6540);const i={},r=t.createContext(i);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]);

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[9647],{7121:(s,e,r)=>{r.r(e),r.d(e,{default:()=>l});r(6540);var a=r(4164),c=r(1003),u=r(7559),d=r(2831),n=r(781),t=r(4848);function l(s){return(0,t.jsx)(c.e3,{className:(0,a.A)(u.G.wrapper.docsPages),children:(0,t.jsx)(n.A,{children:(0,d.v)(s.route.routes)})})}}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[3659],{4588:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var s=t(4848),r=t(8453);const i={},o="Change Edition Issues",d={id:"change_edition_issues",title:"Change Edition Issues",description:"Error 0x80070490",source:"@site/docs/change_edition_issues.md",sourceDirName:".",slug:"/change_edition_issues",permalink:"/change_edition_issues",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/change_edition_issues.md",tags:[],version:"current",frontMatter:{}},c={},l=[{value:"Error 0x80070490",id:"error-0x80070490",level:2},{value:"Other Errors",id:"other-errors",level:2}];function a(e){const n={a:"a",br:"br",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"change-edition-issues",children:"Change Edition Issues"}),"\n",(0,s.jsx)(n.h2,{id:"error-0x80070490",children:"Error 0x80070490"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"In the Home to Pro upgrade process, the script may show the below error in red color:"}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{children:'Exception calling "_DismSet Edition" with "6" argument(s): "Element not found. (Exception from HRESULT: 0x80070490)"\n'})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"This issue often appears due to the installed .Net 3.5 framework."}),"\n",(0,s.jsxs)(n.li,{children:["To solve this, we need to disable it, to do that, open the command prompt as admin and enter",(0,s.jsx)(n.br,{}),"\n",(0,s.jsx)(n.code,{children:'DISM /Online /English /Disable-Feature /FeatureName:"NetFx3"'})]}),"\n",(0,s.jsx)(n.li,{children:"Once it's done, try to change the edition again."}),"\n",(0,s.jsxs)(n.li,{children:["After the edition change, you can enable .net 3.5 again, to do that, enter,",(0,s.jsx)(n.br,{}),"\n",(0,s.jsx)(n.code,{children:'DISM /Online /English /Enable-Feature /FeatureName:"NetFx3"'})]}),"\n"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"other-errors",children:"Other Errors"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"In Windows settings, go to the Windows Update page, run the check for updates button, and ensure that Windows is fully updated."}),"\n",(0,s.jsxs)(n.li,{children:["In the MAS script, go to Troubleshoot and run these options in the below order,","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"DISM Restore"}),"\n",(0,s.jsx)(n.li,{children:"SFC Scan"}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.li,{children:"Restart the system and try to change the edition again."}),"\n",(0,s.jsxs)(n.li,{children:["If it's still not resolved, please connect with us ",(0,s.jsx)(n.a,{href:"/troubleshoot",children:"here"}),"."]}),"\n"]}),"\n",(0,s.jsx)(n.hr,{})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>o,x:()=>d});var s=t(6540);const r={},i=s.createContext(r);function o(e){const n=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[1156],{6802:(t,e,i)=>{i.r(e),i.d(e,{assets:()=>r,contentTitle:()=>a,default:()=>d,frontMatter:()=>c,metadata:()=>o,toc:()=>h});var n=i(4848),s=i(8453);const c={},a="Check Activation Status",o={id:"check_activation_status",title:"Check Activation Status",description:"MAS includes 2 scripts for checking activation status in Windows and Office (WMI, VBS) which are taken from abbodi1406's KMSVLALL.",source:"@site/docs/check_activation_status.md",sourceDirName:".",slug:"/check_activation_status",permalink:"/check_activation_status",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/check_activation_status.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Command Line Switches",permalink:"/command_line_switches"},next:{title:"$OEM$ Folders",permalink:"/oem-folder"}},r={},h=[{value:"Check Activation Status [VBS]",id:"check-activation-status-vbs",level:2},{value:"Check Activation Status [WMI]",id:"check-activation-status-wmi",level:2}];function l(t){const e={a:"a",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...t.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h1,{id:"check-activation-status",children:"Check Activation Status"}),"\n",(0,n.jsxs)(e.p,{children:["MAS includes 2 scripts for checking activation status in Windows and Office (WMI, VBS) which are taken from abbodi1406's ",(0,n.jsx)(e.a,{href:"https://github.com/abbodi1406/KMS_VL_ALL_AIO/",children:"KMS_VL_ALL"}),".\r\nRead below to see the differences between the 2 scripts."]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"check-activation-status-vbs",children:"Check Activation Status [VBS]"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Queries and executes official licensing VBScripts: slmgr.vbs for Windows, ospp.vbs for Office."}),"\n",(0,n.jsx)(e.li,{children:"Shows the activation expiration date for Windows."}),"\n",(0,n.jsx)(e.li,{children:"Office 2010 ospp.vbs shows very little information."}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:"check-activation-status-wmi",children:"Check Activation Status [WMI]"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:"Queries and executes WMI functions using wmic.exe or VBScripts."}),"\n",(0,n.jsx)(e.li,{children:"Shows extra information (SKU ID, key channel)."}),"\n",(0,n.jsx)(e.li,{children:"Shows the activation expiration date for all products."}),"\n",(0,n.jsx)(e.li,{children:"Shows more detailed information for Office 2010."}),"\n",(0,n.jsx)(e.li,{children:"Can show the status of Office UWP apps."}),"\n",(0,n.jsxs)(e.li,{children:["Implement vNextDiag.ps1 functions to ",(0,n.jsx)(e.strong,{children:"detect new Office 365 vNext licenses and subscriptions"}),"."]}),"\n"]}),"\n",(0,n.jsx)(e.hr,{})]})}function d(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(l,{...t})}):l(t)}},8453:(t,e,i)=>{i.d(e,{R:()=>a,x:()=>o});var n=i(6540);const s={},c=n.createContext(s);function a(t){const e=n.useContext(c);return n.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function o(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(s):t.components||s:a(t.components),n.createElement(c.Provider,{value:e},t.children)}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[9697],{2142:(t,e,s)=>{s.r(e),s.d(e,{assets:()=>a,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=s(4848),r=s(8453);const i={},o="Contact Us",c={id:"contactus",title:"Contact Us",description:"Please feel free to share feedback regarding bug reports, documentation errors, troubleshooting, etc. using the links below.",source:"@site/docs/contactus.md",sourceDirName:".",slug:"/contactus",permalink:"/contactus",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/contactus.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Credits",permalink:"/credits"}},a={},d=[];function l(t){const e={a:"a",h1:"h1",hr:"hr",li:"li",p:"p",ul:"ul",...(0,r.R)(),...t.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h1,{id:"contact-us",children:"Contact Us"}),"\n",(0,n.jsx)(e.p,{children:"Please feel free to share feedback regarding bug reports, documentation errors, troubleshooting, etc. using the links below."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:"https://discord.gg/tVFN4N84PP",children:"Discord"})," \u2764\ufe0f (signup not required) - Discussion"]}),"\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"https://www.reddit.com/r/MAS_Activator/",children:"Reddit"})}),"\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"https://twitter.com/massgravel",children:"Twitter"})}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:"https://github.com/massgravel/Microsoft-Activation-Scripts",children:"GitHub"})," / ",(0,n.jsx)(e.a,{href:"https://bitbucket.org/WindowsAddict/microsoft-activation-scripts",children:"Bitbucket"})]}),"\n",(0,n.jsxs)(e.li,{children:["Email: ",(0,n.jsx)(e.a,{href:"mailto:windowsaddict@protonmail.com",children:"windowsaddict@protonmail.com"})]}),"\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"https://nsaneforums.com/topic/316668--",children:"Nsaneforums"})}),"\n"]}),"\n",(0,n.jsx)(e.hr,{})]})}function u(t={}){const{wrapper:e}={...(0,r.R)(),...t.components};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(l,{...t})}):l(t)}},8453:(t,e,s)=>{s.d(e,{R:()=>o,x:()=>c});var n=s(6540);const r={},i=n.createContext(r);function o(t){const e=n.useContext(i);return n.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function c(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(r):t.components||r:o(t.components),n.createElement(i.Provider,{value:e},t.children)}}}]);

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[1235],{8552:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]);

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[7098],{4532:(n,s,e)=>{e.r(s),e.d(s,{default:()=>d});e(6540);var r=e(1003),o=e(2967),t=e(2252),c=e(2831),i=e(1463),a=e(4848);function u(n){const{version:s}=n;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{version:s.version,tag:(0,o.tU)(s.pluginId,s.version)}),(0,a.jsx)(r.be,{children:s.noIndex&&(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})]})}function l(n){const{version:s,route:e}=n;return(0,a.jsx)(r.e3,{className:s.className,children:(0,a.jsx)(t.n,{version:s,children:(0,c.v)(e.routes)})})}function d(n){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u,{...n}),(0,a.jsx)(l,{...n})]})}}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[5742],{7093:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[4581],{579:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>l,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var o=t(4848),n=t(8453);const r={},i="Issues Due To Gaming Spoofers",a={id:"issues_due_to_gaming_spoofers",title:"Issues Due To Gaming Spoofers",description:"Incorrect ModuleId",source:"@site/docs/issues_due_to_gaming_spoofers.md",sourceDirName:".",slug:"/issues_due_to_gaming_spoofers",permalink:"/issues_due_to_gaming_spoofers",draft:!1,unlisted:!1,editUrl:"https://github.com/massgravel/mas-docs/tree/main/docs/issues_due_to_gaming_spoofers.md",tags:[],version:"current",frontMatter:{}},c={},d=[{value:"Incorrect ModuleId",id:"incorrect-moduleid",level:2}];function u(e){const s={a:"a",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",ul:"ul",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.h1,{id:"issues-due-to-gaming-spoofers",children:"Issues Due To Gaming Spoofers"}),"\n",(0,o.jsx)(s.h2,{id:"incorrect-moduleid",children:"Incorrect ModuleId"}),"\n",(0,o.jsx)(s.p,{children:'MAS activation may show the error related to "Incorrect ModuleId". Some gaming spoofers mess with Windows activation-related registry keys and because of that windows can not be activated. To fix this, you just need to restore that corrupt registry key with default data.'}),"\n",(0,o.jsxs)(s.ul,{children:["\n",(0,o.jsxs)(s.li,{children:[(0,o.jsx)(s.a,{target:"_blank","data-noBrokenLinkCheck":!0,href:t(7886).A+"",children:"Download"})," and run this registry file, and confirm all prompts."]}),"\n",(0,o.jsx)(s.li,{children:"Restart your system."}),"\n",(0,o.jsxs)(s.li,{children:["Run the activation in MAS and if the issue is still not resolved, connect with us ",(0,o.jsx)(s.a,{href:"/troubleshoot",children:"here"}),"."]}),"\n"]}),"\n",(0,o.jsx)(s.hr,{})]})}function l(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},7886:(e,s,t)=>{t.d(s,{A:()=>o});const o=t.p+"assets/files/spp_pro-6374eb95929d0cb04df7099798be2b98.zip"},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>a});var o=t(6540);const n={},r=o.createContext(n);function i(e){const s=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),o.createElement(r.Provider,{value:s},e.children)}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,64 +0,0 @@
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
/*! Bundled license information:
prismjs/prism.js:
(**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*)
*/
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[6328],{9348:(e,t,r)=>{var a,s=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,u=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))p.call(e,s)||s===r||o(e,s,{get:()=>t[s],enumerable:!(a=n(t,s))||a.enumerable});return e},h=(e,t,r)=>(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),c={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(c,{default:()=>f}),e.exports=(a=c,u(o({},"__esModule",{value:!0}),a));var y=((e,t,r)=>(r=null!=e?s(l(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)))(r(6540)),d=r(5635),m=r(327);class f extends y.Component{constructor(){super(...arguments),h(this,"callPlayer",d.callPlayer),h(this,"onDurationChange",(()=>{const e=this.getDuration();this.props.onDuration(e)})),h(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),h(this,"unmute",(()=>{this.callPlayer("setMuted",!1)})),h(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:t,config:r,onError:a,playing:s}=this.props,[,o]=e.match(m.MATCH_URL_DAILYMOTION);this.player?this.player.load(o,{start:(0,d.parseStartTime)(e),autoplay:s}):(0,d.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",(e=>e.player)).then((s=>{if(!this.container)return;const n=s.player;this.player=new n(this.container,{width:"100%",height:"100%",video:o,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,d.parseStartTime)(e),origin:window.location.origin,...r.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:e=>a(e)}})}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return y.default.createElement("div",{style:t},y.default.createElement("div",{ref:this.ref}))}}h(f,"displayName","DailyMotion"),h(f,"canPlay",m.canPlay.dailymotion),h(f,"loopOnEnded",!0)}}]);

View File

@ -1,155 +0,0 @@
exports.id = 328;
exports.ids = [328];
exports.modules = {
/***/ 9348:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var DailyMotion_exports = {};
__export(DailyMotion_exports, {
default: () => DailyMotion
});
module.exports = __toCommonJS(DailyMotion_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://api.dmcdn.net/all.js";
const SDK_GLOBAL = "DM";
const SDK_GLOBAL_READY = "dmAsyncInit";
class DailyMotion extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "onDurationChange", () => {
const duration = this.getDuration();
this.props.onDuration(duration);
});
__publicField(this, "mute", () => {
this.callPlayer("setMuted", true);
});
__publicField(this, "unmute", () => {
this.callPlayer("setMuted", false);
});
__publicField(this, "ref", (container) => {
this.container = container;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url) {
const { controls, config, onError, playing } = this.props;
const [, id] = url.match(import_patterns.MATCH_URL_DAILYMOTION);
if (this.player) {
this.player.load(id, {
start: (0, import_utils.parseStartTime)(url),
autoplay: playing
});
return;
}
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (DM) => DM.player).then((DM) => {
if (!this.container)
return;
const Player = DM.player;
this.player = new Player(this.container, {
width: "100%",
height: "100%",
video: id,
params: {
controls,
autoplay: this.props.playing,
mute: this.props.muted,
start: (0, import_utils.parseStartTime)(url),
origin: window.location.origin,
...config.params
},
events: {
apiready: this.props.onReady,
seeked: () => this.props.onSeek(this.player.currentTime),
video_end: this.props.onEnded,
durationchange: this.onDurationChange,
pause: this.props.onPause,
playing: this.props.onPlay,
waiting: this.props.onBuffer,
error: (event) => onError(event)
}
});
}, onError);
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("seek", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction);
}
getDuration() {
return this.player.duration || null;
}
getCurrentTime() {
return this.player.currentTime;
}
getSecondsLoaded() {
return this.player.bufferedTime;
}
render() {
const { display } = this.props;
const style = {
width: "100%",
height: "100%",
display
};
return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
}
}
__publicField(DailyMotion, "displayName", "DailyMotion");
__publicField(DailyMotion, "canPlay", import_patterns.canPlay.dailymotion);
__publicField(DailyMotion, "loopOnEnded", true);
/***/ })
};
;

View File

@ -1,156 +0,0 @@
exports.id = 887;
exports.ids = [887];
exports.modules = {
/***/ 1343:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Facebook_exports = {};
__export(Facebook_exports, {
default: () => Facebook
});
module.exports = __toCommonJS(Facebook_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://connect.facebook.net/en_US/sdk.js";
const SDK_GLOBAL = "FB";
const SDK_GLOBAL_READY = "fbAsyncInit";
const PLAYER_ID_PREFIX = "facebook-player-";
class Facebook extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "playerID", this.props.config.playerId || `${PLAYER_ID_PREFIX}${(0, import_utils.randomString)()}`);
__publicField(this, "mute", () => {
this.callPlayer("mute");
});
__publicField(this, "unmute", () => {
this.callPlayer("unmute");
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url, isReady) {
if (isReady) {
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((FB) => FB.XFBML.parse());
return;
}
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((FB) => {
FB.init({
appId: this.props.config.appId,
xfbml: true,
version: this.props.config.version
});
FB.Event.subscribe("xfbml.render", (msg) => {
this.props.onLoaded();
});
FB.Event.subscribe("xfbml.ready", (msg) => {
if (msg.type === "video" && msg.id === this.playerID) {
this.player = msg.instance;
this.player.subscribe("startedPlaying", this.props.onPlay);
this.player.subscribe("paused", this.props.onPause);
this.player.subscribe("finishedPlaying", this.props.onEnded);
this.player.subscribe("startedBuffering", this.props.onBuffer);
this.player.subscribe("finishedBuffering", this.props.onBufferEnd);
this.player.subscribe("error", this.props.onError);
if (this.props.muted) {
this.callPlayer("mute");
} else {
this.callPlayer("unmute");
}
this.props.onReady();
document.getElementById(this.playerID).querySelector("iframe").style.visibility = "visible";
}
});
});
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("seek", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction);
}
getDuration() {
return this.callPlayer("getDuration");
}
getCurrentTime() {
return this.callPlayer("getCurrentPosition");
}
getSecondsLoaded() {
return null;
}
render() {
const { attributes } = this.props.config;
const style = {
width: "100%",
height: "100%"
};
return /* @__PURE__ */ import_react.default.createElement(
"div",
{
style,
id: this.playerID,
className: "fb-video",
"data-href": this.props.url,
"data-autoplay": this.props.playing ? "true" : "false",
"data-allowfullscreen": "true",
"data-controls": this.props.controls ? "true" : "false",
...attributes
}
);
}
}
__publicField(Facebook, "displayName", "Facebook");
__publicField(Facebook, "canPlay", import_patterns.canPlay.facebook);
__publicField(Facebook, "loopOnEnded", true);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[6887],{1343:(e,t,s)=>{var r,a=Object.create,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,n=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,u=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of i(t))p.call(e,a)||a===s||l(e,a,{get:()=>t[a],enumerable:!(r=o(t,a))||r.enumerable});return e},c=(e,t,s)=>(((e,t,s)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s),h={};((e,t)=>{for(var s in t)l(e,s,{get:t[s],enumerable:!0})})(h,{default:()=>g}),e.exports=(r=h,u(l({},"__esModule",{value:!0}),r));var y=((e,t,s)=>(s=null!=e?a(n(e)):{},u(!t&&e&&e.__esModule?s:l(s,"default",{value:e,enumerable:!0}),e)))(s(6540)),d=s(5635),b=s(327);const f="https://connect.facebook.net/en_US/sdk.js",m="fbAsyncInit";class g extends y.Component{constructor(){super(...arguments),c(this,"callPlayer",d.callPlayer),c(this,"playerID",this.props.config.playerId||`facebook-player-${(0,d.randomString)()}`),c(this,"mute",(()=>{this.callPlayer("mute")})),c(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){t?(0,d.getSDK)(f,"FB",m).then((e=>e.XFBML.parse())):(0,d.getSDK)(f,"FB",m).then((e=>{e.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),e.Event.subscribe("xfbml.render",(e=>{this.props.onLoaded()})),e.Event.subscribe("xfbml.ready",(e=>{"video"===e.type&&e.id===this.playerID&&(this.player=e.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")}))}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config;return y.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}c(g,"displayName","Facebook"),c(g,"canPlay",b.canPlay.facebook),c(g,"loopOnEnded",!0)}}]);

File diff suppressed because one or more lines are too long

View File

@ -1,385 +0,0 @@
exports.id = 458;
exports.ids = [458];
exports.modules = {
/***/ 688:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var FilePlayer_exports = {};
__export(FilePlayer_exports, {
default: () => FilePlayer
});
module.exports = __toCommonJS(FilePlayer_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const HAS_NAVIGATOR = typeof navigator !== "undefined";
const IS_IPAD_PRO = HAS_NAVIGATOR && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
const IS_IOS = HAS_NAVIGATOR && (/iPad|iPhone|iPod/.test(navigator.userAgent) || IS_IPAD_PRO) && !window.MSStream;
const IS_SAFARI = HAS_NAVIGATOR && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && !window.MSStream;
const HLS_SDK_URL = "https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js";
const HLS_GLOBAL = "Hls";
const DASH_SDK_URL = "https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js";
const DASH_GLOBAL = "dashjs";
const FLV_SDK_URL = "https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js";
const FLV_GLOBAL = "flvjs";
const MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
const MATCH_CLOUDFLARE_STREAM = /https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/;
const REPLACE_CLOUDFLARE_STREAM = "https://videodelivery.net/{id}/manifest/video.m3u8";
class FilePlayer extends import_react.Component {
constructor() {
super(...arguments);
// Proxy methods to prevent listener leaks
__publicField(this, "onReady", (...args) => this.props.onReady(...args));
__publicField(this, "onPlay", (...args) => this.props.onPlay(...args));
__publicField(this, "onBuffer", (...args) => this.props.onBuffer(...args));
__publicField(this, "onBufferEnd", (...args) => this.props.onBufferEnd(...args));
__publicField(this, "onPause", (...args) => this.props.onPause(...args));
__publicField(this, "onEnded", (...args) => this.props.onEnded(...args));
__publicField(this, "onError", (...args) => this.props.onError(...args));
__publicField(this, "onPlayBackRateChange", (event) => this.props.onPlaybackRateChange(event.target.playbackRate));
__publicField(this, "onEnablePIP", (...args) => this.props.onEnablePIP(...args));
__publicField(this, "onDisablePIP", (e) => {
const { onDisablePIP, playing } = this.props;
onDisablePIP(e);
if (playing) {
this.play();
}
});
__publicField(this, "onPresentationModeChange", (e) => {
if (this.player && (0, import_utils.supportsWebKitPresentationMode)(this.player)) {
const { webkitPresentationMode } = this.player;
if (webkitPresentationMode === "picture-in-picture") {
this.onEnablePIP(e);
} else if (webkitPresentationMode === "inline") {
this.onDisablePIP(e);
}
}
});
__publicField(this, "onSeek", (e) => {
this.props.onSeek(e.target.currentTime);
});
__publicField(this, "mute", () => {
this.player.muted = true;
});
__publicField(this, "unmute", () => {
this.player.muted = false;
});
__publicField(this, "renderSourceElement", (source, index) => {
if (typeof source === "string") {
return /* @__PURE__ */ import_react.default.createElement("source", { key: index, src: source });
}
return /* @__PURE__ */ import_react.default.createElement("source", { key: index, ...source });
});
__publicField(this, "renderTrack", (track, index) => {
return /* @__PURE__ */ import_react.default.createElement("track", { key: index, ...track });
});
__publicField(this, "ref", (player) => {
if (this.player) {
this.prevPlayer = this.player;
}
this.player = player;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
this.addListeners(this.player);
const src = this.getSource(this.props.url);
if (src) {
this.player.src = src;
}
if (IS_IOS || this.props.config.forceDisableHls) {
this.player.load();
}
}
componentDidUpdate(prevProps) {
if (this.shouldUseAudio(this.props) !== this.shouldUseAudio(prevProps)) {
this.removeListeners(this.prevPlayer, prevProps.url);
this.addListeners(this.player);
}
if (this.props.url !== prevProps.url && !(0, import_utils.isMediaStream)(this.props.url) && !(this.props.url instanceof Array)) {
this.player.srcObject = null;
}
}
componentWillUnmount() {
this.player.removeAttribute("src");
this.removeListeners(this.player);
if (this.hls) {
this.hls.destroy();
}
}
addListeners(player) {
const { url, playsinline } = this.props;
player.addEventListener("play", this.onPlay);
player.addEventListener("waiting", this.onBuffer);
player.addEventListener("playing", this.onBufferEnd);
player.addEventListener("pause", this.onPause);
player.addEventListener("seeked", this.onSeek);
player.addEventListener("ended", this.onEnded);
player.addEventListener("error", this.onError);
player.addEventListener("ratechange", this.onPlayBackRateChange);
player.addEventListener("enterpictureinpicture", this.onEnablePIP);
player.addEventListener("leavepictureinpicture", this.onDisablePIP);
player.addEventListener("webkitpresentationmodechanged", this.onPresentationModeChange);
if (!this.shouldUseHLS(url)) {
player.addEventListener("canplay", this.onReady);
}
if (playsinline) {
player.setAttribute("playsinline", "");
player.setAttribute("webkit-playsinline", "");
player.setAttribute("x5-playsinline", "");
}
}
removeListeners(player, url) {
player.removeEventListener("canplay", this.onReady);
player.removeEventListener("play", this.onPlay);
player.removeEventListener("waiting", this.onBuffer);
player.removeEventListener("playing", this.onBufferEnd);
player.removeEventListener("pause", this.onPause);
player.removeEventListener("seeked", this.onSeek);
player.removeEventListener("ended", this.onEnded);
player.removeEventListener("error", this.onError);
player.removeEventListener("ratechange", this.onPlayBackRateChange);
player.removeEventListener("enterpictureinpicture", this.onEnablePIP);
player.removeEventListener("leavepictureinpicture", this.onDisablePIP);
player.removeEventListener("webkitpresentationmodechanged", this.onPresentationModeChange);
if (!this.shouldUseHLS(url)) {
player.removeEventListener("canplay", this.onReady);
}
}
shouldUseAudio(props) {
if (props.config.forceVideo) {
return false;
}
if (props.config.attributes.poster) {
return false;
}
return import_patterns.AUDIO_EXTENSIONS.test(props.url) || props.config.forceAudio;
}
shouldUseHLS(url) {
if (IS_SAFARI && this.props.config.forceSafariHLS || this.props.config.forceHLS) {
return true;
}
if (IS_IOS || this.props.config.forceDisableHls) {
return false;
}
return import_patterns.HLS_EXTENSIONS.test(url) || MATCH_CLOUDFLARE_STREAM.test(url);
}
shouldUseDASH(url) {
return import_patterns.DASH_EXTENSIONS.test(url) || this.props.config.forceDASH;
}
shouldUseFLV(url) {
return import_patterns.FLV_EXTENSIONS.test(url) || this.props.config.forceFLV;
}
load(url) {
const { hlsVersion, hlsOptions, dashVersion, flvVersion } = this.props.config;
if (this.hls) {
this.hls.destroy();
}
if (this.dash) {
this.dash.reset();
}
if (this.shouldUseHLS(url)) {
(0, import_utils.getSDK)(HLS_SDK_URL.replace("VERSION", hlsVersion), HLS_GLOBAL).then((Hls) => {
this.hls = new Hls(hlsOptions);
this.hls.on(Hls.Events.MANIFEST_PARSED, () => {
this.props.onReady();
});
this.hls.on(Hls.Events.ERROR, (e, data) => {
this.props.onError(e, data, this.hls, Hls);
});
if (MATCH_CLOUDFLARE_STREAM.test(url)) {
const id = url.match(MATCH_CLOUDFLARE_STREAM)[1];
this.hls.loadSource(REPLACE_CLOUDFLARE_STREAM.replace("{id}", id));
} else {
this.hls.loadSource(url);
}
this.hls.attachMedia(this.player);
this.props.onLoaded();
});
}
if (this.shouldUseDASH(url)) {
(0, import_utils.getSDK)(DASH_SDK_URL.replace("VERSION", dashVersion), DASH_GLOBAL).then((dashjs) => {
this.dash = dashjs.MediaPlayer().create();
this.dash.initialize(this.player, url, this.props.playing);
this.dash.on("error", this.props.onError);
if (parseInt(dashVersion) < 3) {
this.dash.getDebug().setLogToBrowserConsole(false);
} else {
this.dash.updateSettings({ debug: { logLevel: dashjs.Debug.LOG_LEVEL_NONE } });
}
this.props.onLoaded();
});
}
if (this.shouldUseFLV(url)) {
(0, import_utils.getSDK)(FLV_SDK_URL.replace("VERSION", flvVersion), FLV_GLOBAL).then((flvjs) => {
this.flv = flvjs.createPlayer({ type: "flv", url });
this.flv.attachMediaElement(this.player);
this.flv.on(flvjs.Events.ERROR, (e, data) => {
this.props.onError(e, data, this.flv, flvjs);
});
this.flv.load();
this.props.onLoaded();
});
}
if (url instanceof Array) {
this.player.load();
} else if ((0, import_utils.isMediaStream)(url)) {
try {
this.player.srcObject = url;
} catch (e) {
this.player.src = window.URL.createObjectURL(url);
}
}
}
play() {
const promise = this.player.play();
if (promise) {
promise.catch(this.props.onError);
}
}
pause() {
this.player.pause();
}
stop() {
this.player.removeAttribute("src");
if (this.dash) {
this.dash.reset();
}
}
seekTo(seconds, keepPlaying = true) {
this.player.currentTime = seconds;
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.player.volume = fraction;
}
enablePIP() {
if (this.player.requestPictureInPicture && document.pictureInPictureElement !== this.player) {
this.player.requestPictureInPicture();
} else if ((0, import_utils.supportsWebKitPresentationMode)(this.player) && this.player.webkitPresentationMode !== "picture-in-picture") {
this.player.webkitSetPresentationMode("picture-in-picture");
}
}
disablePIP() {
if (document.exitPictureInPicture && document.pictureInPictureElement === this.player) {
document.exitPictureInPicture();
} else if ((0, import_utils.supportsWebKitPresentationMode)(this.player) && this.player.webkitPresentationMode !== "inline") {
this.player.webkitSetPresentationMode("inline");
}
}
setPlaybackRate(rate) {
try {
this.player.playbackRate = rate;
} catch (error) {
this.props.onError(error);
}
}
getDuration() {
if (!this.player)
return null;
const { duration, seekable } = this.player;
if (duration === Infinity && seekable.length > 0) {
return seekable.end(seekable.length - 1);
}
return duration;
}
getCurrentTime() {
if (!this.player)
return null;
return this.player.currentTime;
}
getSecondsLoaded() {
if (!this.player)
return null;
const { buffered } = this.player;
if (buffered.length === 0) {
return 0;
}
const end = buffered.end(buffered.length - 1);
const duration = this.getDuration();
if (end > duration) {
return duration;
}
return end;
}
getSource(url) {
const useHLS = this.shouldUseHLS(url);
const useDASH = this.shouldUseDASH(url);
const useFLV = this.shouldUseFLV(url);
if (url instanceof Array || (0, import_utils.isMediaStream)(url) || useHLS || useDASH || useFLV) {
return void 0;
}
if (MATCH_DROPBOX_URL.test(url)) {
return url.replace("www.dropbox.com", "dl.dropboxusercontent.com");
}
return url;
}
render() {
const { url, playing, loop, controls, muted, config, width, height } = this.props;
const useAudio = this.shouldUseAudio(this.props);
const Element = useAudio ? "audio" : "video";
const style = {
width: width === "auto" ? width : "100%",
height: height === "auto" ? height : "100%"
};
return /* @__PURE__ */ import_react.default.createElement(
Element,
{
ref: this.ref,
src: this.getSource(url),
style,
preload: "auto",
autoPlay: playing || void 0,
controls,
muted,
loop,
...config.attributes
},
url instanceof Array && url.map(this.renderSourceElement),
config.tracks.map(this.renderTrack)
);
}
}
__publicField(FilePlayer, "displayName", "FilePlayer");
__publicField(FilePlayer, "canPlay", import_patterns.canPlay.file);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[6463],{7945:(e,t,r)=>{var s,a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,p=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of n(t))u.call(e,a)||a===r||o(e,a,{get:()=>t[a],enumerable:!(s=l(t,a))||s.enumerable});return e},h=(e,t,r)=>(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),d={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>f}),e.exports=(s=d,p(o({},"__esModule",{value:!0}),s));var c=((e,t,r)=>(r=null!=e?a(i(e)):{},p(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)))(r(6540)),y=r(5635),m=r(327);class f extends c.Component{constructor(){super(...arguments),h(this,"callPlayer",y.callPlayer),h(this,"duration",null),h(this,"currentTime",null),h(this,"secondsLoaded",null),h(this,"mute",(()=>{this.callPlayer("mute")})),h(this,"unmute",(()=>{this.callPlayer("unmute")})),h(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,y.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.on("ready",(()=>{setTimeout((()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()}),500)})))}),this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){return c.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}h(f,"displayName","Kaltura"),h(f,"canPlay",m.canPlay.kaltura)}}]);

View File

@ -1,153 +0,0 @@
exports.id = 463;
exports.ids = [463];
exports.modules = {
/***/ 7945:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Kaltura_exports = {};
__export(Kaltura_exports, {
default: () => Kaltura
});
module.exports = __toCommonJS(Kaltura_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://cdn.embed.ly/player-0.1.0.min.js";
const SDK_GLOBAL = "playerjs";
class Kaltura extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "duration", null);
__publicField(this, "currentTime", null);
__publicField(this, "secondsLoaded", null);
__publicField(this, "mute", () => {
this.callPlayer("mute");
});
__publicField(this, "unmute", () => {
this.callPlayer("unmute");
});
__publicField(this, "ref", (iframe) => {
this.iframe = iframe;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url) {
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((playerjs) => {
if (!this.iframe)
return;
this.player = new playerjs.Player(this.iframe);
this.player.on("ready", () => {
setTimeout(() => {
this.player.isReady = true;
this.player.setLoop(this.props.loop);
if (this.props.muted) {
this.player.mute();
}
this.addListeners(this.player, this.props);
this.props.onReady();
}, 500);
});
}, this.props.onError);
}
addListeners(player, props) {
player.on("play", props.onPlay);
player.on("pause", props.onPause);
player.on("ended", props.onEnded);
player.on("error", props.onError);
player.on("timeupdate", ({ duration, seconds }) => {
this.duration = duration;
this.currentTime = seconds;
});
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("setCurrentTime", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction);
}
setLoop(loop) {
this.callPlayer("setLoop", loop);
}
getDuration() {
return this.duration;
}
getCurrentTime() {
return this.currentTime;
}
getSecondsLoaded() {
return this.secondsLoaded;
}
render() {
const style = {
width: "100%",
height: "100%"
};
return /* @__PURE__ */ import_react.default.createElement(
"iframe",
{
ref: this.ref,
src: this.props.url,
frameBorder: "0",
scrolling: "no",
style,
allow: "encrypted-media; autoplay; fullscreen;",
referrerPolicy: "no-referrer-when-downgrade"
}
);
}
}
__publicField(Kaltura, "displayName", "Kaltura");
__publicField(Kaltura, "canPlay", import_patterns.canPlay.kaltura);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[7570],{3276:(e,t,r)=>{var s,o=Object.create,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,i=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,u=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of l(t))p.call(e,o)||o===r||a(e,o,{get:()=>t[o],enumerable:!(s=n(t,o))||s.enumerable});return e},h=(e,t,r)=>(((e,t,r)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),c={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(c,{default:()=>f}),e.exports=(s=c,u(a({},"__esModule",{value:!0}),s));var d=((e,t,r)=>(r=null!=e?o(i(e)):{},u(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)))(r(6540)),y=r(5635),m=r(327);class f extends d.Component{constructor(){super(...arguments),h(this,"callPlayer",y.callPlayer),h(this,"duration",null),h(this,"currentTime",null),h(this,"secondsLoaded",null),h(this,"mute",(()=>{})),h(this,"unmute",(()=>{})),h(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,y.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then((e=>{this.player=e.PlayerWidget(this.iframe),this.player.ready.then((()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on(((e,t)=>{this.currentTime=e,this.duration=t})),this.props.onReady()}))}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:t}=this.props,r=e.match(m.MATCH_URL_MIXCLOUD)[1],s=(0,y.queryString)({...t.options,feed:`/${r}/`});return d.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:`https://www.mixcloud.com/widget/iframe/?${s}`,frameBorder:"0",allow:"autoplay"})}}h(f,"displayName","Mixcloud"),h(f,"canPlay",m.canPlay.mixcloud),h(f,"loopOnEnded",!0)}}]);

View File

@ -1,141 +0,0 @@
exports.id = 570;
exports.ids = [570];
exports.modules = {
/***/ 3276:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Mixcloud_exports = {};
__export(Mixcloud_exports, {
default: () => Mixcloud
});
module.exports = __toCommonJS(Mixcloud_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://widget.mixcloud.com/media/js/widgetApi.js";
const SDK_GLOBAL = "Mixcloud";
class Mixcloud extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "duration", null);
__publicField(this, "currentTime", null);
__publicField(this, "secondsLoaded", null);
__publicField(this, "mute", () => {
});
__publicField(this, "unmute", () => {
});
__publicField(this, "ref", (iframe) => {
this.iframe = iframe;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url) {
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Mixcloud2) => {
this.player = Mixcloud2.PlayerWidget(this.iframe);
this.player.ready.then(() => {
this.player.events.play.on(this.props.onPlay);
this.player.events.pause.on(this.props.onPause);
this.player.events.ended.on(this.props.onEnded);
this.player.events.error.on(this.props.error);
this.player.events.progress.on((seconds, duration) => {
this.currentTime = seconds;
this.duration = duration;
});
this.props.onReady();
});
}, this.props.onError);
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("seek", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
}
getDuration() {
return this.duration;
}
getCurrentTime() {
return this.currentTime;
}
getSecondsLoaded() {
return null;
}
render() {
const { url, config } = this.props;
const id = url.match(import_patterns.MATCH_URL_MIXCLOUD)[1];
const style = {
width: "100%",
height: "100%"
};
const query = (0, import_utils.queryString)({
...config.options,
feed: `/${id}/`
});
return /* @__PURE__ */ import_react.default.createElement(
"iframe",
{
key: id,
ref: this.ref,
style,
src: `https://www.mixcloud.com/widget/iframe/?${query}`,
frameBorder: "0",
allow: "autoplay"
}
);
}
}
__publicField(Mixcloud, "displayName", "Mixcloud");
__publicField(Mixcloud, "canPlay", import_patterns.canPlay.mixcloud);
__publicField(Mixcloud, "loopOnEnded", true);
/***/ })
};
;

File diff suppressed because one or more lines are too long

View File

@ -1,241 +0,0 @@
exports.id = 723;
exports.ids = [723];
exports.modules = {
/***/ 7553:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Mux_exports = {};
__export(Mux_exports, {
default: () => Mux
});
module.exports = __toCommonJS(Mux_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";
class Mux extends import_react.Component {
constructor() {
super(...arguments);
// Proxy methods to prevent listener leaks
__publicField(this, "onReady", (...args) => this.props.onReady(...args));
__publicField(this, "onPlay", (...args) => this.props.onPlay(...args));
__publicField(this, "onBuffer", (...args) => this.props.onBuffer(...args));
__publicField(this, "onBufferEnd", (...args) => this.props.onBufferEnd(...args));
__publicField(this, "onPause", (...args) => this.props.onPause(...args));
__publicField(this, "onEnded", (...args) => this.props.onEnded(...args));
__publicField(this, "onError", (...args) => this.props.onError(...args));
__publicField(this, "onPlayBackRateChange", (event) => this.props.onPlaybackRateChange(event.target.playbackRate));
__publicField(this, "onEnablePIP", (...args) => this.props.onEnablePIP(...args));
__publicField(this, "onSeek", (e) => {
this.props.onSeek(e.target.currentTime);
});
__publicField(this, "onDurationChange", () => {
const duration = this.getDuration();
this.props.onDuration(duration);
});
__publicField(this, "mute", () => {
this.player.muted = true;
});
__publicField(this, "unmute", () => {
this.player.muted = false;
});
__publicField(this, "ref", (player) => {
this.player = player;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
this.addListeners(this.player);
const playbackId = this.getPlaybackId(this.props.url);
if (playbackId) {
this.player.playbackId = playbackId;
}
}
componentWillUnmount() {
this.player.playbackId = null;
this.removeListeners(this.player);
}
addListeners(player) {
const { playsinline } = this.props;
player.addEventListener("play", this.onPlay);
player.addEventListener("waiting", this.onBuffer);
player.addEventListener("playing", this.onBufferEnd);
player.addEventListener("pause", this.onPause);
player.addEventListener("seeked", this.onSeek);
player.addEventListener("ended", this.onEnded);
player.addEventListener("error", this.onError);
player.addEventListener("ratechange", this.onPlayBackRateChange);
player.addEventListener("enterpictureinpicture", this.onEnablePIP);
player.addEventListener("leavepictureinpicture", this.onDisablePIP);
player.addEventListener("webkitpresentationmodechanged", this.onPresentationModeChange);
player.addEventListener("canplay", this.onReady);
if (playsinline) {
player.setAttribute("playsinline", "");
}
}
removeListeners(player) {
player.removeEventListener("canplay", this.onReady);
player.removeEventListener("play", this.onPlay);
player.removeEventListener("waiting", this.onBuffer);
player.removeEventListener("playing", this.onBufferEnd);
player.removeEventListener("pause", this.onPause);
player.removeEventListener("seeked", this.onSeek);
player.removeEventListener("ended", this.onEnded);
player.removeEventListener("error", this.onError);
player.removeEventListener("ratechange", this.onPlayBackRateChange);
player.removeEventListener("enterpictureinpicture", this.onEnablePIP);
player.removeEventListener("leavepictureinpicture", this.onDisablePIP);
player.removeEventListener("canplay", this.onReady);
}
async load(url) {
var _a;
const { onError, config } = this.props;
if (!((_a = globalThis.customElements) == null ? void 0 : _a.get("mux-player"))) {
try {
const sdkUrl = SDK_URL.replace("VERSION", config.version);
await import(
/* webpackIgnore: true */
`${sdkUrl}`
);
this.props.onLoaded();
} catch (error) {
onError(error);
}
}
const [, id] = url.match(import_patterns.MATCH_URL_MUX);
this.player.playbackId = id;
}
play() {
const promise = this.player.play();
if (promise) {
promise.catch(this.props.onError);
}
}
pause() {
this.player.pause();
}
stop() {
this.player.playbackId = null;
}
seekTo(seconds, keepPlaying = true) {
this.player.currentTime = seconds;
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.player.volume = fraction;
}
enablePIP() {
if (this.player.requestPictureInPicture && document.pictureInPictureElement !== this.player) {
this.player.requestPictureInPicture();
}
}
disablePIP() {
if (document.exitPictureInPicture && document.pictureInPictureElement === this.player) {
document.exitPictureInPicture();
}
}
setPlaybackRate(rate) {
try {
this.player.playbackRate = rate;
} catch (error) {
this.props.onError(error);
}
}
getDuration() {
if (!this.player)
return null;
const { duration, seekable } = this.player;
if (duration === Infinity && seekable.length > 0) {
return seekable.end(seekable.length - 1);
}
return duration;
}
getCurrentTime() {
if (!this.player)
return null;
return this.player.currentTime;
}
getSecondsLoaded() {
if (!this.player)
return null;
const { buffered } = this.player;
if (buffered.length === 0) {
return 0;
}
const end = buffered.end(buffered.length - 1);
const duration = this.getDuration();
if (end > duration) {
return duration;
}
return end;
}
getPlaybackId(url) {
const [, id] = url.match(import_patterns.MATCH_URL_MUX);
return id;
}
render() {
const { url, playing, loop, controls, muted, config, width, height } = this.props;
const style = {
width: width === "auto" ? width : "100%",
height: height === "auto" ? height : "100%"
};
if (controls === false) {
style["--controls"] = "none";
}
return /* @__PURE__ */ import_react.default.createElement(
"mux-player",
{
ref: this.ref,
"playback-id": this.getPlaybackId(url),
style,
preload: "auto",
autoPlay: playing || void 0,
muted: muted ? "" : void 0,
loop: loop ? "" : void 0,
...config.attributes
}
);
}
}
__publicField(Mux, "displayName", "Mux");
__publicField(Mux, "canPlay", import_patterns.canPlay.mux);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[6353],{6734:(e,t,r)=>{var a,n=Object.create,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of s(t))c.call(e,n)||n===r||i(e,n,{get:()=>t[n],enumerable:!(a=l(t,n))||a.enumerable});return e},d=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),u={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(u,{default:()=>g}),e.exports=(a=u,p(i({},"__esModule",{value:!0}),a));var h=((e,t,r)=>(r=null!=e?n(o(e)):{},p(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(6540));const m="64px",b={};class g extends h.Component{constructor(){super(...arguments),d(this,"mounted",!1),d(this,"state",{image:null}),d(this,"handleKeyPress",(e=>{"Enter"!==e.key&&" "!==e.key||this.props.onClick()}))}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:r}=this.props;e.url===t&&e.light===r||this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:r}){if(!h.default.isValidElement(t))if("string"!=typeof t){if(!b[e])return this.setState({image:null}),window.fetch(r.replace("{url}",e)).then((e=>e.json())).then((t=>{if(t.thumbnail_url&&this.mounted){const r=t.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:r}),b[e]=r}}));this.setState({image:b[e]})}else this.setState({image:t})}render(){const{light:e,onClick:t,playIcon:r,previewTabIndex:a,previewAriaLabel:n}=this.props,{image:i}=this.state,l=h.default.isValidElement(e),s={display:"flex",alignItems:"center",justifyContent:"center"},o={preview:{width:"100%",height:"100%",backgroundImage:i&&!l?`url(${i})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...s},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:m,width:m,height:m,position:l?"absolute":void 0,...s},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},c=h.default.createElement("div",{style:o.shadow,className:"react-player__shadow"},h.default.createElement("div",{style:o.playIcon,className:"react-player__play-icon"}));return h.default.createElement("div",{style:o.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...n?{"aria-label":n}:{}},l?e:null,r||c)}}}}]);

View File

@ -1,150 +0,0 @@
exports.id = 353;
exports.ids = [353];
exports.modules = {
/***/ 6734:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Preview_exports = {};
__export(Preview_exports, {
default: () => Preview
});
module.exports = __toCommonJS(Preview_exports);
var import_react = __toESM(__webpack_require__(6540));
const ICON_SIZE = "64px";
const cache = {};
class Preview extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "mounted", false);
__publicField(this, "state", {
image: null
});
__publicField(this, "handleKeyPress", (e) => {
if (e.key === "Enter" || e.key === " ") {
this.props.onClick();
}
});
}
componentDidMount() {
this.mounted = true;
this.fetchImage(this.props);
}
componentDidUpdate(prevProps) {
const { url, light } = this.props;
if (prevProps.url !== url || prevProps.light !== light) {
this.fetchImage(this.props);
}
}
componentWillUnmount() {
this.mounted = false;
}
fetchImage({ url, light, oEmbedUrl }) {
if (import_react.default.isValidElement(light)) {
return;
}
if (typeof light === "string") {
this.setState({ image: light });
return;
}
if (cache[url]) {
this.setState({ image: cache[url] });
return;
}
this.setState({ image: null });
return window.fetch(oEmbedUrl.replace("{url}", url)).then((response) => response.json()).then((data) => {
if (data.thumbnail_url && this.mounted) {
const image = data.thumbnail_url.replace("height=100", "height=480").replace("-d_295x166", "-d_640");
this.setState({ image });
cache[url] = image;
}
});
}
render() {
const { light, onClick, playIcon, previewTabIndex, previewAriaLabel } = this.props;
const { image } = this.state;
const isElement = import_react.default.isValidElement(light);
const flexCenter = {
display: "flex",
alignItems: "center",
justifyContent: "center"
};
const styles = {
preview: {
width: "100%",
height: "100%",
backgroundImage: image && !isElement ? `url(${image})` : void 0,
backgroundSize: "cover",
backgroundPosition: "center",
cursor: "pointer",
...flexCenter
},
shadow: {
background: "radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",
borderRadius: ICON_SIZE,
width: ICON_SIZE,
height: ICON_SIZE,
position: isElement ? "absolute" : void 0,
...flexCenter
},
playIcon: {
borderStyle: "solid",
borderWidth: "16px 0 16px 26px",
borderColor: "transparent transparent transparent white",
marginLeft: "7px"
}
};
const defaultPlayIcon = /* @__PURE__ */ import_react.default.createElement("div", { style: styles.shadow, className: "react-player__shadow" }, /* @__PURE__ */ import_react.default.createElement("div", { style: styles.playIcon, className: "react-player__play-icon" }));
return /* @__PURE__ */ import_react.default.createElement(
"div",
{
style: styles.preview,
className: "react-player__preview",
onClick,
tabIndex: previewTabIndex,
onKeyPress: this.handleKeyPress,
...previewAriaLabel ? { "aria-label": previewAriaLabel } : {}
},
isElement ? light : null,
playIcon || defaultPlayIcon
);
}
}
/***/ })
};
;

View File

@ -1,158 +0,0 @@
exports.id = 979;
exports.ids = [979];
exports.modules = {
/***/ 5508:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var SoundCloud_exports = {};
__export(SoundCloud_exports, {
default: () => SoundCloud
});
module.exports = __toCommonJS(SoundCloud_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://w.soundcloud.com/player/api.js";
const SDK_GLOBAL = "SC";
class SoundCloud extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "duration", null);
__publicField(this, "currentTime", null);
__publicField(this, "fractionLoaded", null);
__publicField(this, "mute", () => {
this.setVolume(0);
});
__publicField(this, "unmute", () => {
if (this.props.volume !== null) {
this.setVolume(this.props.volume);
}
});
__publicField(this, "ref", (iframe) => {
this.iframe = iframe;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url, isReady) {
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((SC) => {
if (!this.iframe)
return;
const { PLAY, PLAY_PROGRESS, PAUSE, FINISH, ERROR } = SC.Widget.Events;
if (!isReady) {
this.player = SC.Widget(this.iframe);
this.player.bind(PLAY, this.props.onPlay);
this.player.bind(PAUSE, () => {
const remaining = this.duration - this.currentTime;
if (remaining < 0.05) {
return;
}
this.props.onPause();
});
this.player.bind(PLAY_PROGRESS, (e) => {
this.currentTime = e.currentPosition / 1e3;
this.fractionLoaded = e.loadedProgress;
});
this.player.bind(FINISH, () => this.props.onEnded());
this.player.bind(ERROR, (e) => this.props.onError(e));
}
this.player.load(url, {
...this.props.config.options,
callback: () => {
this.player.getDuration((duration) => {
this.duration = duration / 1e3;
this.props.onReady();
});
}
});
});
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("seekTo", seconds * 1e3);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction * 100);
}
getDuration() {
return this.duration;
}
getCurrentTime() {
return this.currentTime;
}
getSecondsLoaded() {
return this.fractionLoaded * this.duration;
}
render() {
const { display } = this.props;
const style = {
width: "100%",
height: "100%",
display
};
return /* @__PURE__ */ import_react.default.createElement(
"iframe",
{
ref: this.ref,
src: `https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,
style,
frameBorder: 0,
allow: "autoplay"
}
);
}
}
__publicField(SoundCloud, "displayName", "SoundCloud");
__publicField(SoundCloud, "canPlay", import_patterns.canPlay.soundcloud);
__publicField(SoundCloud, "loopOnEnded", true);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[9979],{3127:(e,t,r)=>{var s,o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,n=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,p=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of l(t))u.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(s=a(t,o))||s.enumerable});return e},h=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>f}),e.exports=(s=d,p(i({},"__esModule",{value:!0}),s));var c=((e,t,r)=>(r=null!=e?o(n(e)):{},p(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(6540)),y=r(5635),m=r(327);class f extends c.Component{constructor(){super(...arguments),h(this,"callPlayer",y.callPlayer),h(this,"duration",null),h(this,"currentTime",null),h(this,"fractionLoaded",null),h(this,"mute",(()=>{this.setVolume(0)})),h(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),h(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){(0,y.getSDK)("https://w.soundcloud.com/player/api.js","SC").then((r=>{if(!this.iframe)return;const{PLAY:s,PLAY_PROGRESS:o,PAUSE:i,FINISH:a,ERROR:l}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(s,this.props.onPlay),this.player.bind(i,(()=>{this.duration-this.currentTime<.05||this.props.onPause()})),this.player.bind(o,(e=>{this.currentTime=e.currentPosition/1e3,this.fractionLoaded=e.loadedProgress})),this.player.bind(a,(()=>this.props.onEnded())),this.player.bind(l,(e=>this.props.onError(e)))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration((e=>{this.duration=e/1e3,this.props.onReady()}))}})}))}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seekTo",1e3*e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return c.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:t,frameBorder:0,allow:"autoplay"})}}h(f,"displayName","SoundCloud"),h(f,"canPlay",m.canPlay.soundcloud),h(f,"loopOnEnded",!0)}}]);

View File

@ -1,151 +0,0 @@
exports.id = 627;
exports.ids = [627];
exports.modules = {
/***/ 9643:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Streamable_exports = {};
__export(Streamable_exports, {
default: () => Streamable
});
module.exports = __toCommonJS(Streamable_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://cdn.embed.ly/player-0.1.0.min.js";
const SDK_GLOBAL = "playerjs";
class Streamable extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "duration", null);
__publicField(this, "currentTime", null);
__publicField(this, "secondsLoaded", null);
__publicField(this, "mute", () => {
this.callPlayer("mute");
});
__publicField(this, "unmute", () => {
this.callPlayer("unmute");
});
__publicField(this, "ref", (iframe) => {
this.iframe = iframe;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url) {
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((playerjs) => {
if (!this.iframe)
return;
this.player = new playerjs.Player(this.iframe);
this.player.setLoop(this.props.loop);
this.player.on("ready", this.props.onReady);
this.player.on("play", this.props.onPlay);
this.player.on("pause", this.props.onPause);
this.player.on("seeked", this.props.onSeek);
this.player.on("ended", this.props.onEnded);
this.player.on("error", this.props.onError);
this.player.on("timeupdate", ({ duration, seconds }) => {
this.duration = duration;
this.currentTime = seconds;
});
this.player.on("buffered", ({ percent }) => {
if (this.duration) {
this.secondsLoaded = this.duration * percent;
}
});
if (this.props.muted) {
this.player.mute();
}
}, this.props.onError);
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("setCurrentTime", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction * 100);
}
setLoop(loop) {
this.callPlayer("setLoop", loop);
}
getDuration() {
return this.duration;
}
getCurrentTime() {
return this.currentTime;
}
getSecondsLoaded() {
return this.secondsLoaded;
}
render() {
const id = this.props.url.match(import_patterns.MATCH_URL_STREAMABLE)[1];
const style = {
width: "100%",
height: "100%"
};
return /* @__PURE__ */ import_react.default.createElement(
"iframe",
{
ref: this.ref,
src: `https://streamable.com/o/${id}`,
frameBorder: "0",
scrolling: "no",
style,
allow: "encrypted-media; autoplay; fullscreen;"
}
);
}
}
__publicField(Streamable, "displayName", "Streamable");
__publicField(Streamable, "canPlay", import_patterns.canPlay.streamable);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[7627],{9643:(e,t,r)=>{var s,a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,u=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of n(t))p.call(e,a)||a===r||o(e,a,{get:()=>t[a],enumerable:!(s=l(t,a))||s.enumerable});return e},h=(e,t,r)=>(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),c={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(c,{default:()=>f}),e.exports=(s=c,u(o({},"__esModule",{value:!0}),s));var d=((e,t,r)=>(r=null!=e?a(i(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)))(r(6540)),y=r(5635),m=r(327);class f extends d.Component{constructor(){super(...arguments),h(this,"callPlayer",y.callPlayer),h(this,"duration",null),h(this,"currentTime",null),h(this,"secondsLoaded",null),h(this,"mute",(()=>{this.callPlayer("mute")})),h(this,"unmute",(()=>{this.callPlayer("unmute")})),h(this,"ref",(e=>{this.iframe=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,y.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((e=>{this.iframe&&(this.player=new e.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({duration:e,seconds:t})=>{this.duration=e,this.currentTime=t})),this.player.on("buffered",(({percent:e})=>{this.duration&&(this.secondsLoaded=this.duration*e)})),this.props.muted&&this.player.mute())}),this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(m.MATCH_URL_STREAMABLE)[1];return d.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}h(f,"displayName","Streamable"),h(f,"canPlay",m.canPlay.streamable)}}]);

View File

@ -1,145 +0,0 @@
exports.id = 42;
exports.ids = [42];
exports.modules = {
/***/ 1400:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Twitch_exports = {};
__export(Twitch_exports, {
default: () => Twitch
});
module.exports = __toCommonJS(Twitch_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://player.twitch.tv/js/embed/v1.js";
const SDK_GLOBAL = "Twitch";
const PLAYER_ID_PREFIX = "twitch-player-";
class Twitch extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "playerID", this.props.config.playerId || `${PLAYER_ID_PREFIX}${(0, import_utils.randomString)()}`);
__publicField(this, "mute", () => {
this.callPlayer("setMuted", true);
});
__publicField(this, "unmute", () => {
this.callPlayer("setMuted", false);
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url, isReady) {
const { playsinline, onError, config, controls } = this.props;
const isChannel = import_patterns.MATCH_URL_TWITCH_CHANNEL.test(url);
const id = isChannel ? url.match(import_patterns.MATCH_URL_TWITCH_CHANNEL)[1] : url.match(import_patterns.MATCH_URL_TWITCH_VIDEO)[1];
if (isReady) {
if (isChannel) {
this.player.setChannel(id);
} else {
this.player.setVideo("v" + id);
}
return;
}
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Twitch2) => {
this.player = new Twitch2.Player(this.playerID, {
video: isChannel ? "" : id,
channel: isChannel ? id : "",
height: "100%",
width: "100%",
playsinline,
autoplay: this.props.playing,
muted: this.props.muted,
// https://github.com/CookPete/react-player/issues/733#issuecomment-549085859
controls: isChannel ? true : controls,
time: (0, import_utils.parseStartTime)(url),
...config.options
});
const { READY, PLAYING, PAUSE, ENDED, ONLINE, OFFLINE, SEEK } = Twitch2.Player;
this.player.addEventListener(READY, this.props.onReady);
this.player.addEventListener(PLAYING, this.props.onPlay);
this.player.addEventListener(PAUSE, this.props.onPause);
this.player.addEventListener(ENDED, this.props.onEnded);
this.player.addEventListener(SEEK, this.props.onSeek);
this.player.addEventListener(ONLINE, this.props.onLoaded);
this.player.addEventListener(OFFLINE, this.props.onLoaded);
}, onError);
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
this.callPlayer("pause");
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("seek", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction);
}
getDuration() {
return this.callPlayer("getDuration");
}
getCurrentTime() {
return this.callPlayer("getCurrentTime");
}
getSecondsLoaded() {
return null;
}
render() {
const style = {
width: "100%",
height: "100%"
};
return /* @__PURE__ */ import_react.default.createElement("div", { style, id: this.playerID });
}
}
__publicField(Twitch, "displayName", "Twitch");
__publicField(Twitch, "canPlay", import_patterns.canPlay.twitch);
__publicField(Twitch, "loopOnEnded", true);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[2042],{1400:(e,t,s)=>{var a,r=Object.create,l=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,h=(e,t,s,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of i(t))p.call(e,r)||r===s||l(e,r,{get:()=>t[r],enumerable:!(a=n(t,r))||a.enumerable});return e},d=(e,t,s)=>(((e,t,s)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s),y={};((e,t)=>{for(var s in t)l(e,s,{get:t[s],enumerable:!0})})(y,{default:()=>P}),e.exports=(a=y,h(l({},"__esModule",{value:!0}),a));var c=((e,t,s)=>(s=null!=e?r(o(e)):{},h(!t&&e&&e.__esModule?s:l(s,"default",{value:e,enumerable:!0}),e)))(s(6540)),u=s(5635),m=s(327);class P extends c.Component{constructor(){super(...arguments),d(this,"callPlayer",u.callPlayer),d(this,"playerID",this.props.config.playerId||`twitch-player-${(0,u.randomString)()}`),d(this,"mute",(()=>{this.callPlayer("setMuted",!0)})),d(this,"unmute",(()=>{this.callPlayer("setMuted",!1)}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const{playsinline:s,onError:a,config:r,controls:l}=this.props,n=m.MATCH_URL_TWITCH_CHANNEL.test(e),i=n?e.match(m.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(m.MATCH_URL_TWITCH_VIDEO)[1];t?n?this.player.setChannel(i):this.player.setVideo("v"+i):(0,u.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then((t=>{this.player=new t.Player(this.playerID,{video:n?"":i,channel:n?i:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:!!n||l,time:(0,u.parseStartTime)(e),...r.options});const{READY:a,PLAYING:o,PAUSE:p,ENDED:h,ONLINE:d,OFFLINE:y,SEEK:c}=t.Player;this.player.addEventListener(a,this.props.onReady),this.player.addEventListener(o,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(h,this.props.onEnded),this.player.addEventListener(c,this.props.onSeek),this.player.addEventListener(d,this.props.onLoaded),this.player.addEventListener(y,this.props.onLoaded)}),a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return c.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}d(P,"displayName","Twitch"),d(P,"canPlay",m.canPlay.twitch),d(P,"loopOnEnded",!0)}}]);

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[3392],{3552:(e,t,a)=>{var r,s=Object.create,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,y=(e,t,a,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of n(t))p.call(e,s)||s===a||l(e,s,{get:()=>t[s],enumerable:!(r=o(t,s))||r.enumerable});return e},u=(e,t,a)=>(((e,t,a)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a),h={};((e,t)=>{for(var a in t)l(e,a,{get:t[a],enumerable:!0})})(h,{default:()=>P}),e.exports=(r=h,y(l({},"__esModule",{value:!0}),r));var d=((e,t,a)=>(a=null!=e?s(i(e)):{},y(!t&&e&&e.__esModule?a:l(a,"default",{value:e,enumerable:!0}),e)))(a(6540)),c=a(5635),m=a(327);class P extends d.Component{constructor(){super(...arguments),u(this,"callPlayer",c.callPlayer),u(this,"mute",(()=>{this.setVolume(0)})),u(this,"unmute",(()=>{null!==this.props.volume&&this.setVolume(this.props.volume)})),u(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,config:a,onError:r,onDuration:s}=this.props,l=e&&e.match(m.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,c.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then((e=>{this.container&&(e.api.addReadyListener(((e,t)=>{this.player||(this.player=t,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))}),l),e.api.renderPlayer({uuid:l,container:this.container,autoplay:t?1:0,...a.options}),e.api.getPlayerMetadata(l).then((e=>{this.duration=e.length_in_seconds,s(e.length_in_seconds)})))}),r)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return d.default.createElement("div",{style:t},d.default.createElement("div",{ref:this.ref}))}}u(P,"displayName","Vidyard"),u(P,"canPlay",m.canPlay.vidyard)}}]);

View File

@ -1,149 +0,0 @@
exports.id = 392;
exports.ids = [392];
exports.modules = {
/***/ 3552:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Vidyard_exports = {};
__export(Vidyard_exports, {
default: () => Vidyard
});
module.exports = __toCommonJS(Vidyard_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://play.vidyard.com/embed/v4.js";
const SDK_GLOBAL = "VidyardV4";
const SDK_GLOBAL_READY = "onVidyardAPI";
class Vidyard extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "mute", () => {
this.setVolume(0);
});
__publicField(this, "unmute", () => {
if (this.props.volume !== null) {
this.setVolume(this.props.volume);
}
});
__publicField(this, "ref", (container) => {
this.container = container;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url) {
const { playing, config, onError, onDuration } = this.props;
const id = url && url.match(import_patterns.MATCH_URL_VIDYARD)[1];
if (this.player) {
this.stop();
}
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((Vidyard2) => {
if (!this.container)
return;
Vidyard2.api.addReadyListener((data, player) => {
if (this.player) {
return;
}
this.player = player;
this.player.on("ready", this.props.onReady);
this.player.on("play", this.props.onPlay);
this.player.on("pause", this.props.onPause);
this.player.on("seek", this.props.onSeek);
this.player.on("playerComplete", this.props.onEnded);
}, id);
Vidyard2.api.renderPlayer({
uuid: id,
container: this.container,
autoplay: playing ? 1 : 0,
...config.options
});
Vidyard2.api.getPlayerMetadata(id).then((meta) => {
this.duration = meta.length_in_seconds;
onDuration(meta.length_in_seconds);
});
}, onError);
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
window.VidyardV4.api.destroyPlayer(this.player);
}
seekTo(amount, keepPlaying = true) {
this.callPlayer("seek", amount);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction);
}
setPlaybackRate(rate) {
this.callPlayer("setPlaybackSpeed", rate);
}
getDuration() {
return this.duration;
}
getCurrentTime() {
return this.callPlayer("currentTime");
}
getSecondsLoaded() {
return null;
}
render() {
const { display } = this.props;
const style = {
width: "100%",
height: "100%",
display
};
return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
}
}
__publicField(Vidyard, "displayName", "Vidyard");
__publicField(Vidyard, "canPlay", import_patterns.canPlay.vidyard);
/***/ })
};
;

View File

@ -1,190 +0,0 @@
exports.id = 173;
exports.ids = [173];
exports.modules = {
/***/ 1423:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Vimeo_exports = {};
__export(Vimeo_exports, {
default: () => Vimeo
});
module.exports = __toCommonJS(Vimeo_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://player.vimeo.com/api/player.js";
const SDK_GLOBAL = "Vimeo";
const cleanUrl = (url) => {
return url.replace("/manage/videos", "");
};
class Vimeo extends import_react.Component {
constructor() {
super(...arguments);
// Prevent checking isLoading when URL changes
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "duration", null);
__publicField(this, "currentTime", null);
__publicField(this, "secondsLoaded", null);
__publicField(this, "mute", () => {
this.setMuted(true);
});
__publicField(this, "unmute", () => {
this.setMuted(false);
});
__publicField(this, "ref", (container) => {
this.container = container;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url) {
this.duration = null;
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Vimeo2) => {
if (!this.container)
return;
const { playerOptions, title } = this.props.config;
this.player = new Vimeo2.Player(this.container, {
url: cleanUrl(url),
autoplay: this.props.playing,
muted: this.props.muted,
loop: this.props.loop,
playsinline: this.props.playsinline,
controls: this.props.controls,
...playerOptions
});
this.player.ready().then(() => {
const iframe = this.container.querySelector("iframe");
iframe.style.width = "100%";
iframe.style.height = "100%";
if (title) {
iframe.title = title;
}
}).catch(this.props.onError);
this.player.on("loaded", () => {
this.props.onReady();
this.refreshDuration();
});
this.player.on("play", () => {
this.props.onPlay();
this.refreshDuration();
});
this.player.on("pause", this.props.onPause);
this.player.on("seeked", (e) => this.props.onSeek(e.seconds));
this.player.on("ended", this.props.onEnded);
this.player.on("error", this.props.onError);
this.player.on("timeupdate", ({ seconds }) => {
this.currentTime = seconds;
});
this.player.on("progress", ({ seconds }) => {
this.secondsLoaded = seconds;
});
this.player.on("bufferstart", this.props.onBuffer);
this.player.on("bufferend", this.props.onBufferEnd);
this.player.on("playbackratechange", (e) => this.props.onPlaybackRateChange(e.playbackRate));
}, this.props.onError);
}
refreshDuration() {
this.player.getDuration().then((duration) => {
this.duration = duration;
});
}
play() {
const promise = this.callPlayer("play");
if (promise) {
promise.catch(this.props.onError);
}
}
pause() {
this.callPlayer("pause");
}
stop() {
this.callPlayer("unload");
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("setCurrentTime", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction);
}
setMuted(muted) {
this.callPlayer("setMuted", muted);
}
setLoop(loop) {
this.callPlayer("setLoop", loop);
}
setPlaybackRate(rate) {
this.callPlayer("setPlaybackRate", rate);
}
getDuration() {
return this.duration;
}
getCurrentTime() {
return this.currentTime;
}
getSecondsLoaded() {
return this.secondsLoaded;
}
render() {
const { display } = this.props;
const style = {
width: "100%",
height: "100%",
overflow: "hidden",
display
};
return /* @__PURE__ */ import_react.default.createElement(
"div",
{
key: this.props.url,
ref: this.ref,
style
}
);
}
}
__publicField(Vimeo, "displayName", "Vimeo");
__publicField(Vimeo, "canPlay", import_patterns.canPlay.vimeo);
__publicField(Vimeo, "forceLoad", true);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[6173],{1423:(e,t,s)=>{var r,o=Object.create,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,l=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,h=(e,t,s,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of n(t))p.call(e,o)||o===s||a(e,o,{get:()=>t[o],enumerable:!(r=i(t,o))||r.enumerable});return e},u=(e,t,s)=>(((e,t,s)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s),c={};((e,t)=>{for(var s in t)a(e,s,{get:t[s],enumerable:!0})})(c,{default:()=>b}),e.exports=(r=c,h(a({},"__esModule",{value:!0}),r));var y=((e,t,s)=>(s=null!=e?o(l(e)):{},h(!t&&e&&e.__esModule?s:a(s,"default",{value:e,enumerable:!0}),e)))(s(6540)),d=s(5635),f=s(327);const m=e=>e.replace("/manage/videos","");class b extends y.Component{constructor(){super(...arguments),u(this,"callPlayer",d.callPlayer),u(this,"duration",null),u(this,"currentTime",null),u(this,"secondsLoaded",null),u(this,"mute",(()=>{this.setMuted(!0)})),u(this,"unmute",(()=>{this.setMuted(!1)})),u(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,d.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then((t=>{if(!this.container)return;const{playerOptions:s,title:r}=this.props.config;this.player=new t.Player(this.container,{url:m(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...s}),this.player.ready().then((()=>{const e=this.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",r&&(e.title=r)})).catch(this.props.onError),this.player.on("loaded",(()=>{this.props.onReady(),this.refreshDuration()})),this.player.on("play",(()=>{this.props.onPlay(),this.refreshDuration()})),this.player.on("pause",this.props.onPause),this.player.on("seeked",(e=>this.props.onSeek(e.seconds))),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",(({seconds:e})=>{this.currentTime=e})),this.player.on("progress",(({seconds:e})=>{this.secondsLoaded=e})),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",(e=>this.props.onPlaybackRateChange(e.playbackRate)))}),this.props.onError)}refreshDuration(){this.player.getDuration().then((e=>{this.duration=e}))}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,t={width:"100%",height:"100%",overflow:"hidden",display:e};return y.default.createElement("div",{key:this.props.url,ref:this.ref,style:t})}}u(b,"displayName","Vimeo"),u(b,"canPlay",f.canPlay.vimeo),u(b,"forceLoad",!0)}}]);

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[9340],{3330:(e,t,a)=>{var s,n=Object.create,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,h=(e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of i(t))p.call(e,n)||n===a||l(e,n,{get:()=>t[n],enumerable:!(s=o(t,n))||s.enumerable});return e},u=(e,t,a)=>(((e,t,a)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a),y={};((e,t)=>{for(var a in t)l(e,a,{get:t[a],enumerable:!0})})(y,{default:()=>P}),e.exports=(s=y,h(l({},"__esModule",{value:!0}),s));var c=((e,t,a)=>(a=null!=e?n(r(e)):{},h(!t&&e&&e.__esModule?a:l(a,"default",{value:e,enumerable:!0}),e)))(a(6540)),d=a(5635),b=a(327);class P extends c.Component{constructor(){super(...arguments),u(this,"callPlayer",d.callPlayer),u(this,"playerID",this.props.config.playerId||`wistia-player-${(0,d.randomString)()}`),u(this,"onPlay",((...e)=>this.props.onPlay(...e))),u(this,"onPause",((...e)=>this.props.onPause(...e))),u(this,"onSeek",((...e)=>this.props.onSeek(...e))),u(this,"onEnded",((...e)=>this.props.onEnded(...e))),u(this,"onPlaybackRateChange",((...e)=>this.props.onPlaybackRateChange(...e))),u(this,"mute",(()=>{this.callPlayer("mute")})),u(this,"unmute",(()=>{this.callPlayer("unmute")}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:t,muted:a,controls:s,onReady:n,config:l,onError:o}=this.props;(0,d.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then((e=>{l.customControls&&l.customControls.forEach((t=>e.defineControl(t))),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:t,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:s,fullscreenButton:s,playbar:s,playbackRateControl:s,qualityControl:s,volumeControl:s,settingsControl:s,smallPlayButton:s,...l.options},onReady:e=>{this.player=e,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),n()}})}),o)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,t=!0){this.callPlayer("time",e),t||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,t=e&&e.match(b.MATCH_URL_WISTIA)[1],a=`wistia_embed wistia_async_${t}`;return c.default.createElement("div",{id:this.playerID,key:t,className:a,style:{width:"100%",height:"100%"}})}}u(P,"displayName","Wistia"),u(P,"canPlay",b.canPlay.wistia),u(P,"loopOnEnded",!0)}}]);

View File

@ -1,165 +0,0 @@
exports.id = 340;
exports.ids = [340];
exports.modules = {
/***/ 3330:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var Wistia_exports = {};
__export(Wistia_exports, {
default: () => Wistia
});
module.exports = __toCommonJS(Wistia_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://fast.wistia.com/assets/external/E-v1.js";
const SDK_GLOBAL = "Wistia";
const PLAYER_ID_PREFIX = "wistia-player-";
class Wistia extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "playerID", this.props.config.playerId || `${PLAYER_ID_PREFIX}${(0, import_utils.randomString)()}`);
// Proxy methods to prevent listener leaks
__publicField(this, "onPlay", (...args) => this.props.onPlay(...args));
__publicField(this, "onPause", (...args) => this.props.onPause(...args));
__publicField(this, "onSeek", (...args) => this.props.onSeek(...args));
__publicField(this, "onEnded", (...args) => this.props.onEnded(...args));
__publicField(this, "onPlaybackRateChange", (...args) => this.props.onPlaybackRateChange(...args));
__publicField(this, "mute", () => {
this.callPlayer("mute");
});
__publicField(this, "unmute", () => {
this.callPlayer("unmute");
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
load(url) {
const { playing, muted, controls, onReady, config, onError } = this.props;
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Wistia2) => {
if (config.customControls) {
config.customControls.forEach((control) => Wistia2.defineControl(control));
}
window._wq = window._wq || [];
window._wq.push({
id: this.playerID,
options: {
autoPlay: playing,
silentAutoPlay: "allow",
muted,
controlsVisibleOnLoad: controls,
fullscreenButton: controls,
playbar: controls,
playbackRateControl: controls,
qualityControl: controls,
volumeControl: controls,
settingsControl: controls,
smallPlayButton: controls,
...config.options
},
onReady: (player) => {
this.player = player;
this.unbind();
this.player.bind("play", this.onPlay);
this.player.bind("pause", this.onPause);
this.player.bind("seek", this.onSeek);
this.player.bind("end", this.onEnded);
this.player.bind("playbackratechange", this.onPlaybackRateChange);
onReady();
}
});
}, onError);
}
unbind() {
this.player.unbind("play", this.onPlay);
this.player.unbind("pause", this.onPause);
this.player.unbind("seek", this.onSeek);
this.player.unbind("end", this.onEnded);
this.player.unbind("playbackratechange", this.onPlaybackRateChange);
}
play() {
this.callPlayer("play");
}
pause() {
this.callPlayer("pause");
}
stop() {
this.unbind();
this.callPlayer("remove");
}
seekTo(seconds, keepPlaying = true) {
this.callPlayer("time", seconds);
if (!keepPlaying) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("volume", fraction);
}
setPlaybackRate(rate) {
this.callPlayer("playbackRate", rate);
}
getDuration() {
return this.callPlayer("duration");
}
getCurrentTime() {
return this.callPlayer("time");
}
getSecondsLoaded() {
return null;
}
render() {
const { url } = this.props;
const videoID = url && url.match(import_patterns.MATCH_URL_WISTIA)[1];
const className = `wistia_embed wistia_async_${videoID}`;
const style = {
width: "100%",
height: "100%"
};
return /* @__PURE__ */ import_react.default.createElement("div", { id: this.playerID, key: videoID, className, style });
}
}
__publicField(Wistia, "displayName", "Wistia");
__publicField(Wistia, "canPlay", import_patterns.canPlay.wistia);
__publicField(Wistia, "loopOnEnded", true);
/***/ })
};
;

View File

@ -1,235 +0,0 @@
exports.id = 446;
exports.ids = [446];
exports.modules = {
/***/ 2910:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var YouTube_exports = {};
__export(YouTube_exports, {
default: () => YouTube
});
module.exports = __toCommonJS(YouTube_exports);
var import_react = __toESM(__webpack_require__(6540));
var import_utils = __webpack_require__(5635);
var import_patterns = __webpack_require__(327);
const SDK_URL = "https://www.youtube.com/iframe_api";
const SDK_GLOBAL = "YT";
const SDK_GLOBAL_READY = "onYouTubeIframeAPIReady";
const MATCH_PLAYLIST = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/;
const MATCH_USER_UPLOADS = /user\/([a-zA-Z0-9_-]+)\/?/;
const MATCH_NOCOOKIE = /youtube-nocookie\.com/;
const NOCOOKIE_HOST = "https://www.youtube-nocookie.com";
class YouTube extends import_react.Component {
constructor() {
super(...arguments);
__publicField(this, "callPlayer", import_utils.callPlayer);
__publicField(this, "parsePlaylist", (url) => {
if (url instanceof Array) {
return {
listType: "playlist",
playlist: url.map(this.getID).join(",")
};
}
if (MATCH_PLAYLIST.test(url)) {
const [, playlistId] = url.match(MATCH_PLAYLIST);
return {
listType: "playlist",
list: playlistId.replace(/^UC/, "UU")
};
}
if (MATCH_USER_UPLOADS.test(url)) {
const [, username] = url.match(MATCH_USER_UPLOADS);
return {
listType: "user_uploads",
list: username
};
}
return {};
});
__publicField(this, "onStateChange", (event) => {
const { data } = event;
const { onPlay, onPause, onBuffer, onBufferEnd, onEnded, onReady, loop, config: { playerVars, onUnstarted } } = this.props;
const { UNSTARTED, PLAYING, PAUSED, BUFFERING, ENDED, CUED } = window[SDK_GLOBAL].PlayerState;
if (data === UNSTARTED)
onUnstarted();
if (data === PLAYING) {
onPlay();
onBufferEnd();
}
if (data === PAUSED)
onPause();
if (data === BUFFERING)
onBuffer();
if (data === ENDED) {
const isPlaylist = !!this.callPlayer("getPlaylist");
if (loop && !isPlaylist) {
if (playerVars.start) {
this.seekTo(playerVars.start);
} else {
this.play();
}
}
onEnded();
}
if (data === CUED)
onReady();
});
__publicField(this, "mute", () => {
this.callPlayer("mute");
});
__publicField(this, "unmute", () => {
this.callPlayer("unMute");
});
__publicField(this, "ref", (container) => {
this.container = container;
});
}
componentDidMount() {
this.props.onMount && this.props.onMount(this);
}
getID(url) {
if (!url || url instanceof Array || MATCH_PLAYLIST.test(url)) {
return null;
}
return url.match(import_patterns.MATCH_URL_YOUTUBE)[1];
}
load(url, isReady) {
const { playing, muted, playsinline, controls, loop, config, onError } = this.props;
const { playerVars, embedOptions } = config;
const id = this.getID(url);
if (isReady) {
if (MATCH_PLAYLIST.test(url) || MATCH_USER_UPLOADS.test(url) || url instanceof Array) {
this.player.loadPlaylist(this.parsePlaylist(url));
return;
}
this.player.cueVideoById({
videoId: id,
startSeconds: (0, import_utils.parseStartTime)(url) || playerVars.start,
endSeconds: (0, import_utils.parseEndTime)(url) || playerVars.end
});
return;
}
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (YT) => YT.loaded).then((YT) => {
if (!this.container)
return;
this.player = new YT.Player(this.container, {
width: "100%",
height: "100%",
videoId: id,
playerVars: {
autoplay: playing ? 1 : 0,
mute: muted ? 1 : 0,
controls: controls ? 1 : 0,
start: (0, import_utils.parseStartTime)(url),
end: (0, import_utils.parseEndTime)(url),
origin: window.location.origin,
playsinline: playsinline ? 1 : 0,
...this.parsePlaylist(url),
...playerVars
},
events: {
onReady: () => {
if (loop) {
this.player.setLoop(true);
}
this.props.onReady();
},
onPlaybackRateChange: (event) => this.props.onPlaybackRateChange(event.data),
onPlaybackQualityChange: (event) => this.props.onPlaybackQualityChange(event),
onStateChange: this.onStateChange,
onError: (event) => onError(event.data)
},
host: MATCH_NOCOOKIE.test(url) ? NOCOOKIE_HOST : void 0,
...embedOptions
});
}, onError);
if (embedOptions.events) {
console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause");
}
}
play() {
this.callPlayer("playVideo");
}
pause() {
this.callPlayer("pauseVideo");
}
stop() {
if (!document.body.contains(this.callPlayer("getIframe")))
return;
this.callPlayer("stopVideo");
}
seekTo(amount, keepPlaying = false) {
this.callPlayer("seekTo", amount);
if (!keepPlaying && !this.props.playing) {
this.pause();
}
}
setVolume(fraction) {
this.callPlayer("setVolume", fraction * 100);
}
setPlaybackRate(rate) {
this.callPlayer("setPlaybackRate", rate);
}
setLoop(loop) {
this.callPlayer("setLoop", loop);
}
getDuration() {
return this.callPlayer("getDuration");
}
getCurrentTime() {
return this.callPlayer("getCurrentTime");
}
getSecondsLoaded() {
return this.callPlayer("getVideoLoadedFraction") * this.getDuration();
}
render() {
const { display } = this.props;
const style = {
width: "100%",
height: "100%",
display
};
return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
}
}
__publicField(YouTube, "displayName", "YouTube");
__publicField(YouTube, "canPlay", import_patterns.canPlay.youtube);
/***/ })
};
;

View File

@ -1 +0,0 @@
(self.webpackChunkmas_docs=self.webpackChunkmas_docs||[]).push([[8446],{2910:(e,t,a)=>{var s,o=Object.create,l=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,y=(e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of n(t))p.call(e,o)||o===a||l(e,o,{get:()=>t[o],enumerable:!(s=r(t,o))||s.enumerable});return e},c=(e,t,a)=>(((e,t,a)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a),u={};((e,t)=>{for(var a in t)l(e,a,{get:t[a],enumerable:!0})})(u,{default:()=>b}),e.exports=(s=u,y(l({},"__esModule",{value:!0}),s));var h=((e,t,a)=>(a=null!=e?o(i(e)):{},y(!t&&e&&e.__esModule?a:l(a,"default",{value:e,enumerable:!0}),e)))(a(6540)),d=a(5635),P=a(327);const m=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,f=/user\/([a-zA-Z0-9_-]+)\/?/,g=/youtube-nocookie\.com/;class b extends h.Component{constructor(){super(...arguments),c(this,"callPlayer",d.callPlayer),c(this,"parsePlaylist",(e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(m.test(e)){const[,t]=e.match(m);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(f.test(e)){const[,t]=e.match(f);return{listType:"user_uploads",list:t}}return{}})),c(this,"onStateChange",(e=>{const{data:t}=e,{onPlay:a,onPause:s,onBuffer:o,onBufferEnd:l,onEnded:r,onReady:n,loop:i,config:{playerVars:p,onUnstarted:y}}=this.props,{UNSTARTED:c,PLAYING:u,PAUSED:h,BUFFERING:d,ENDED:P,CUED:m}=window.YT.PlayerState;if(t===c&&y(),t===u&&(a(),l()),t===h&&s(),t===d&&o(),t===P){const e=!!this.callPlayer("getPlaylist");i&&!e&&(p.start?this.seekTo(p.start):this.play()),r()}t===m&&n()})),c(this,"mute",(()=>{this.callPlayer("mute")})),c(this,"unmute",(()=>{this.callPlayer("unMute")})),c(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||m.test(e)?null:e.match(P.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:s,playsinline:o,controls:l,loop:r,config:n,onError:i}=this.props,{playerVars:p,embedOptions:y}=n,c=this.getID(e);if(t)return m.test(e)||f.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:c,startSeconds:(0,d.parseStartTime)(e)||p.start,endSeconds:(0,d.parseEndTime)(e)||p.end});(0,d.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",(e=>e.loaded)).then((t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:c,playerVars:{autoplay:a?1:0,mute:s?1:0,controls:l?1:0,start:(0,d.parseStartTime)(e),end:(0,d.parseEndTime)(e),origin:window.location.origin,playsinline:o?1:0,...this.parsePlaylist(e),...p},events:{onReady:()=>{r&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>i(e.data)},host:g.test(e)?"https://www.youtube-nocookie.com":void 0,...y}))}),i),y.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),t||this.props.playing||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return h.default.createElement("div",{style:t},h.default.createElement("div",{ref:this.ref}))}}c(b,"displayName","YouTube"),c(b,"canPlay",P.canPlay.youtube)}}]);

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
<html>
<meta http-equiv="refresh" content="0; url=https://gravesoft.dev/bypass-russian-geoblock">
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More