react-covideo-embed 1.0.97 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";@import"https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";#covideo-embeddable-recorder{background:#f6f7f9;color:#272a32;font-style:normal;font-weight:400;font-size:15px;line-height:24px;box-sizing:border-box;text-align:left;max-width:100%}#covideo-embeddable-recorder *,#covideo-embeddable-recorder *:before,#covideo-embeddable-recorder *:after{box-sizing:border-box}#covideo-embeddable-recorder input,#covideo-embeddable-recorder button,#covideo-embeddable-recorder textarea,#covideo-embeddable-recorder select{font-family:inherit}#covideo-embeddable-recorder .ai-assist>button{width:32px;height:32px}#covideo-embeddable-recorder .ai-assist>button:hover{opacity:1!important}.ReactModal__Body--open .ai-assist img{width:100%;max-width:400px}.ReactModal__Body--open .ai-assist svg{box-sizing:content-box!important}@media(max-width:768px){.ReactModal__Body--open .ai-assist img{width:100%;height:auto}}@media(max-width:1240px){.ReactModal__Content{padding:0 15px!important;height:100%;display:block;inset:auto!important;position:initial!important;transform:none!important;margin-right:0!important;min-width:auto!important;width:auto!important}}.ai-assist *{font-family:Work Sans,sans-serif}.ai-assist img{width:100%;max-width:400px}@media(max-width:1240px){.ReactModal__Content{padding:0 15px!important;height:100%;display:block;inset:auto;position:initial!important;transform:none!important;margin-right:0!important;min-width:auto!important;width:auto!important}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),Me=require("react-query"),Gr=require("axios"),f=require("react"),p8=require("react-resize-detector"),eo=require("dayjs"),x8=require("dayjs/plugin/utc"),h8=require("dayjs/plugin/timezone"),qe=require("react-router-dom"),y8=require("file-saver"),l=require("styled-components"),f8=require("jwt-decode"),he=require("react-icons/md"),K=require("react-covideo-common"),re=require("react-i18next"),xr=require("lodash"),R1=require("react-icons/ai"),Wo=require("i18next");require("react-toastify/dist/ReactToastify.css");const V5=require("react-toastify"),Od=require("lottie-react"),ot=require("react-icons/io"),Ei=require("react-icons/io5"),L1=require("react-select/creatable"),qt=require("react-select"),g8=require("react-slider"),m8=require("react-modal"),Qo=require("react-router"),R5=require("react-icons/bs"),L5=require("color-convert"),$5=require("react-full-screen"),M5=require("react-icons/bi"),ht=require("formik"),v8=require("yup"),gi=require("react-compound-slider"),Va=require("react-beautiful-dnd"),Ra=require("react-spinners"),La=require("rc-progress/lib"),Dd=require("recordrtc"),Mn=require("react-icons/fa"),b8=require("rc-progress"),w8=require("react-scroll"),Nd=require("@mediapipe/tasks-vision"),S8=require("react-dropzone"),O5=require("react-infinite-scroll-component"),C8=require("js-cookie"),Pd=require("droplr-api"),k8=require("dayjs/plugin/duration");function D5(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return i.default=e,Object.freeze(i)}const q=D5(f),Et=D5(v8),N5="React-Covideo-Embed-Version",p1={default:"https://api-sandbox.covideo.com/",development:"https://localhost:3000/api/",sandbox:"https://api-sandbox.covideo.com/",staging:"https://api-staging.covideo.com/",production:"https://api.covideo.com/"};var to=(e=>(e.jwt="react-covideo-embed-jwt",e.merge="react-covideo-merge",e.recordSettings="record_settings",e.recordError="react-covideo-record-error",e))(to||{});let co=localStorage.getItem("react-covideo-embed-jwt"),cr=p1.default,m0;const On=(e,i=!1)=>{i||localStorage.setItem("react-covideo-embed-jwt",e),co=e,je.defaults.headers.Authorization=`Bearer ${co}`,$1.headers.Authorization=`Bearer ${co}`},j8=e=>{cr=p1[e]||p1.default,je.defaults.baseURL=cr},E8=e=>{m0=e,je.defaults.headers.ApiKey=m0,$1.headers.ApiKey=m0};let $1={headers:{Authorization:`Bearer ${co}`,...m0!==void 0?{ApiKey:m0}:{},[N5]:"1.0.
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),Me=require("react-query"),Gr=require("axios"),f=require("react"),p8=require("react-resize-detector"),eo=require("dayjs"),x8=require("dayjs/plugin/utc"),h8=require("dayjs/plugin/timezone"),qe=require("react-router-dom"),y8=require("file-saver"),l=require("styled-components"),f8=require("jwt-decode"),he=require("react-icons/md"),K=require("react-covideo-common"),re=require("react-i18next"),xr=require("lodash"),R1=require("react-icons/ai"),Wo=require("i18next");require("react-toastify/dist/ReactToastify.css");const V5=require("react-toastify"),Od=require("lottie-react"),ot=require("react-icons/io"),Ei=require("react-icons/io5"),L1=require("react-select/creatable"),qt=require("react-select"),g8=require("react-slider"),m8=require("react-modal"),Qo=require("react-router"),R5=require("react-icons/bs"),L5=require("color-convert"),$5=require("react-full-screen"),M5=require("react-icons/bi"),ht=require("formik"),v8=require("yup"),gi=require("react-compound-slider"),Va=require("react-beautiful-dnd"),Ra=require("react-spinners"),La=require("rc-progress/lib"),Dd=require("recordrtc"),Mn=require("react-icons/fa"),b8=require("rc-progress"),w8=require("react-scroll"),Nd=require("@mediapipe/tasks-vision"),S8=require("react-dropzone"),O5=require("react-infinite-scroll-component"),C8=require("js-cookie"),Pd=require("droplr-api"),k8=require("dayjs/plugin/duration");function D5(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return i.default=e,Object.freeze(i)}const q=D5(f),Et=D5(v8),N5="React-Covideo-Embed-Version",p1={default:"https://api-sandbox.covideo.com/",development:"https://localhost:3000/api/",sandbox:"https://api-sandbox.covideo.com/",staging:"https://api-staging.covideo.com/",production:"https://api.covideo.com/"};var to=(e=>(e.jwt="react-covideo-embed-jwt",e.merge="react-covideo-merge",e.recordSettings="record_settings",e.recordError="react-covideo-record-error",e))(to||{});let co=localStorage.getItem("react-covideo-embed-jwt"),cr=p1.default,m0;const On=(e,i=!1)=>{i||localStorage.setItem("react-covideo-embed-jwt",e),co=e,je.defaults.headers.Authorization=`Bearer ${co}`,$1.headers.Authorization=`Bearer ${co}`},j8=e=>{cr=p1[e]||p1.default,je.defaults.baseURL=cr},E8=e=>{m0=e,je.defaults.headers.ApiKey=m0,$1.headers.ApiKey=m0};let $1={headers:{Authorization:`Bearer ${co}`,...m0!==void 0?{ApiKey:m0}:{},[N5]:"1.0.98"}};const je=Gr.create({baseURL:cr,headers:{"Content-Type":"application/json",Authorization:`Bearer ${co}`,...m0!==void 0?{ApiKey:m0}:{},[N5]:"1.0.98"}});eo.extend(x8);eo.extend(h8);const P5=e=>e&&(Object.keys(e).forEach(i=>{if(typeof e[i]=="object")return P5(e[i]);typeof e[i]!="boolean"&&(e[i]=""+e[i])}),e),Fd=(e,i=30)=>{const n=Math.floor(e/3600),a=Math.floor((e-n*3600)/60);let c=e-n*3600-a*60;const d=parseInt((c%1).toFixed(3).substring(2));let u=parseInt(Math.floor(d/(1e3/i)).toFixed(0));if(c=parseInt(Math.floor(c).toFixed(0)),isNaN(a))return"00:00:00:00";let h="";return n<10&&(h="0"),h+=n+":",a<10&&(h+="0"),h+=a+":",c<10&&(h+="0"),h+=c+":",u<10&&(h+="0"),h+u},lr=(e,i=1)=>{const n=Math.floor(e/3600),a=Math.floor((e-n*3600)/60),c=e-n*3600-a*60;if(isNaN(a))return"00:00.0";let d="";return a<10&&(d+="0"),d+=a+":",c<10&&(d+="0"),d+=c.toFixed(i),d},F5=(e,i)=>e.userId+"_"+e.customerId+"_"+(Math.random()+1).toString(36).substring(2)+"."+i,_8=()=>{const e=eo(new Date).date();let i="th";return e===1||e===21||e===31?i="st":e===2||e===22?i="nd":(e===3||e===23)&&(i="rd"),eo(new Date).format(`MMM D[${i}] YYYY @ h:mm A`)},T8=(e,i,n="YYYY-MM-DD HH:mm:ss")=>{const a=i.timeZone||Intl.DateTimeFormat().resolvedOptions().timeZone||eo.tz.guess(),c=eo(e,["M/DD/YYYY h:mm:ss A","M/DD/YYYY, h:mm:ss A","M/D/YYYY h:mm:ss A","M/D/YYYY, h:mm:ss A","MM/DD/YYYY"]),d=-eo().tz("America/New_York").utcOffset(),u=eo().tz(a).utcOffset(),h=c.add(d,"minute");return eo(h).add(u,"minute").format(n)},I8=(e,i,n)=>{const a=Array.from(e),[c]=a.splice(i,1);return a.splice(n,0,c),a},z5=({trimStart:e,trimEnd:i,videoDuration:n})=>n===0||i===0?!1:e!==0||n-i>.3,hr=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),$a=e=>(e/1e3).toFixed(2);function A8(e){return e.charAt(0).toUpperCase()+e.slice(1)}function B5(){for(let e in to)localStorage.removeItem(to[e])}const V8=(e,i=1)=>{const n=Math.floor(e/60),a=e-n*60;if(isNaN(n))return"00.0";let c="";return n<10&&(c+="0"),c+=n+":",a<10&&(c+="0"),c+=a.toFixed(i),c};function Yr(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}const q5=f.createContext({}),R8=l.createGlobalStyle`
|
|
3
3
|
* {
|
|
4
4
|
font-family: ${e=>e.$isCdk?"'Roboto', sans-serif":"'Work Sans', sans-serif"};
|
|
5
5
|
}
|
|
@@ -71,7 +71,7 @@ let uc = {
|
|
|
71
71
|
headers: {
|
|
72
72
|
Authorization: `Bearer ${p0}`,
|
|
73
73
|
...Eo !== void 0 ? { ApiKey: Eo } : {},
|
|
74
|
-
[M3]: "1.0.
|
|
74
|
+
[M3]: "1.0.98"
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
const Te = ii.create({
|
|
@@ -80,7 +80,7 @@ const Te = ii.create({
|
|
|
80
80
|
"Content-Type": "application/json",
|
|
81
81
|
Authorization: `Bearer ${p0}`,
|
|
82
82
|
...Eo !== void 0 ? { ApiKey: Eo } : {},
|
|
83
|
-
[M3]: "1.0.
|
|
83
|
+
[M3]: "1.0.98"
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
i0.extend(hy);
|