@onlive.ai/common-121 0.2.70 → 0.2.163
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/README.md +0 -1
- package/components/asset/asset-modal-portal.cjs +550 -0
- package/components/asset/asset-modal-portal.d.cts +22 -0
- package/components/asset/asset-modal-portal.d.ts +22 -0
- package/components/asset/asset-modal-portal.js +550 -0
- package/components/asset/asset.cjs +3536 -0
- package/components/asset/asset.d.cts +37 -0
- package/components/asset/asset.d.ts +37 -0
- package/components/asset/asset.js +3536 -0
- package/components/asset/asset.loaders.cjs +2 -0
- package/components/asset/asset.loaders.d.cts +17 -0
- package/components/asset/asset.loaders.d.ts +17 -0
- package/components/asset/asset.loaders.js +2 -0
- package/components/asset/asset.renderer.cjs +2292 -0
- package/components/asset/asset.renderer.d.cts +29 -0
- package/components/asset/asset.renderer.d.ts +29 -0
- package/components/asset/asset.renderer.js +2292 -0
- package/components/asset/asset.styles.cjs +683 -0
- package/components/asset/asset.styles.d.cts +6 -0
- package/components/asset/asset.styles.d.ts +6 -0
- package/components/asset/asset.styles.js +683 -0
- package/components/asset/asset.types.cjs +2 -0
- package/components/asset/asset.types.d.cts +103 -0
- package/components/asset/asset.types.d.ts +103 -0
- package/components/asset/asset.types.js +1 -0
- package/components/asset/index.cjs +3536 -0
- package/components/asset/index.d.cts +8 -0
- package/components/asset/index.d.ts +8 -0
- package/components/asset/index.js +3536 -0
- package/components/player/player.cjs +2044 -0
- package/components/player/player.d.cts +25 -0
- package/components/player/player.d.ts +25 -0
- package/components/player/player.js +2044 -0
- package/components/player/player.styles.cjs +16 -0
- package/components/player/player.styles.d.cts +6 -0
- package/components/player/player.styles.d.ts +6 -0
- package/components/player/player.styles.js +16 -0
- package/components/side-bar/index.cjs +3185 -0
- package/components/side-bar/index.d.cts +11 -0
- package/components/side-bar/index.d.ts +11 -0
- package/components/side-bar/index.js +3185 -0
- package/components/side-bar/side-bar.cjs +3185 -0
- package/components/side-bar/side-bar.d.cts +83 -0
- package/components/side-bar/side-bar.d.ts +83 -0
- package/components/side-bar/side-bar.js +3185 -0
- package/components/side-bar/side-bar.styles.cjs +801 -0
- package/components/side-bar/side-bar.styles.d.cts +6 -0
- package/components/side-bar/side-bar.styles.d.ts +6 -0
- package/components/side-bar/side-bar.styles.js +801 -0
- package/components/side-bar/side-bar.types.cjs +2 -0
- package/components/side-bar/side-bar.types.d.cts +105 -0
- package/components/side-bar/side-bar.types.d.ts +105 -0
- package/components/side-bar/side-bar.types.js +2 -0
- package/components/upload/index.cjs +83 -0
- package/components/upload/index.d.cts +4 -0
- package/components/upload/index.d.ts +4 -0
- package/components/upload/index.js +83 -0
- package/components/upload/upload.cjs +83 -0
- package/components/upload/upload.d.cts +28 -0
- package/components/upload/upload.d.ts +28 -0
- package/components/upload/upload.js +83 -0
- package/components/upload/upload.styles.cjs +65 -0
- package/components/upload/upload.styles.d.cts +6 -0
- package/components/upload/upload.styles.d.ts +6 -0
- package/components/upload/upload.styles.js +65 -0
- package/components/upload/upload.types.cjs +2 -0
- package/components/upload/upload.types.d.cts +16 -0
- package/components/upload/upload.types.d.ts +16 -0
- package/components/upload/upload.types.js +1 -0
- package/index.cjs +4677 -0
- package/index.d.cts +338 -0
- package/index.d.ts +338 -0
- package/index.js +4677 -0
- package/package.json +32 -11
- package/react/components/asset/Asset.cjs +2 -0
- package/react/components/asset/Asset.d.cts +33 -0
- package/react/components/asset/Asset.d.ts +33 -0
- package/react/components/asset/Asset.jsx +2 -0
- package/react/components/side-bar/SideBar.cjs +2 -0
- package/react/components/side-bar/SideBar.d.cts +37 -0
- package/react/components/side-bar/SideBar.d.ts +37 -0
- package/react/components/side-bar/SideBar.jsx +2 -0
- package/react/components/upload/Upload.cjs +2 -0
- package/react/components/upload/Upload.d.cts +23 -0
- package/react/components/upload/Upload.d.ts +23 -0
- package/react/components/upload/Upload.jsx +2 -0
- package/services/audio.service.cjs +2 -2
- package/services/audio.service.d.cts +1 -0
- package/services/audio.service.d.ts +1 -0
- package/services/audio.service.js +2 -2
- package/services/conversation/conversation.service.cjs +2 -0
- package/services/conversation/conversation.service.d.cts +533 -0
- package/services/conversation/conversation.service.d.ts +533 -0
- package/services/conversation/conversation.service.js +2 -0
- package/services/conversation/conversation.types.cjs +2 -0
- package/services/conversation/conversation.types.d.cts +519 -0
- package/services/conversation/conversation.types.d.ts +519 -0
- package/services/conversation/conversation.types.js +2 -0
- package/services/conversation/index.cjs +2 -0
- package/services/conversation/index.d.cts +7 -0
- package/services/conversation/index.d.ts +7 -0
- package/services/conversation/index.js +2 -0
- package/services/faqs/faqs.service.cjs +2 -0
- package/services/faqs/faqs.service.d.cts +16 -0
- package/services/faqs/faqs.service.d.ts +16 -0
- package/services/faqs/faqs.service.js +2 -0
- package/services/faqs/faqs.types.cjs +2 -0
- package/services/faqs/faqs.types.d.cts +60 -0
- package/services/faqs/faqs.types.d.ts +60 -0
- package/services/faqs/faqs.types.js +1 -0
- package/services/faqs/index.cjs +2 -0
- package/services/faqs/index.d.cts +3 -0
- package/services/faqs/index.d.ts +3 -0
- package/services/faqs/index.js +2 -0
- package/services/file/file.service.cjs +2 -0
- package/services/file/file.service.d.cts +66 -0
- package/services/file/file.service.d.ts +66 -0
- package/services/file/file.service.js +2 -0
- package/services/file/file.types.cjs +2 -0
- package/services/file/file.types.d.cts +72 -0
- package/services/file/file.types.d.ts +72 -0
- package/services/file/file.types.js +1 -0
- package/services/file/index.cjs +2 -0
- package/services/file/index.d.cts +3 -0
- package/services/file/index.d.ts +3 -0
- package/services/file/index.js +2 -0
- package/services/firebase/firebase-api.cjs +2 -2
- package/services/firebase/firebase-api.d.cts +25 -9
- package/services/firebase/firebase-api.d.ts +25 -9
- package/services/firebase/firebase-api.js +2 -2
- package/services/multimedia/config.example.cjs +2 -0
- package/services/multimedia/config.example.d.cts +13 -0
- package/services/multimedia/config.example.d.ts +13 -0
- package/services/multimedia/config.example.js +2 -0
- package/services/multimedia/index.cjs +2 -0
- package/services/multimedia/index.d.cts +3 -0
- package/services/multimedia/index.d.ts +3 -0
- package/services/multimedia/index.js +2 -0
- package/services/multimedia/multimedia.service.cjs +2 -0
- package/services/multimedia/multimedia.service.d.cts +28 -0
- package/services/multimedia/multimedia.service.d.ts +28 -0
- package/services/multimedia/multimedia.service.js +2 -0
- package/services/multimedia/multimedia.types.cjs +2 -0
- package/services/multimedia/multimedia.types.d.cts +65 -0
- package/services/multimedia/multimedia.types.d.ts +65 -0
- package/services/multimedia/multimedia.types.js +1 -0
- package/services/product/index.cjs +2 -0
- package/services/product/index.d.cts +3 -0
- package/services/product/index.d.ts +3 -0
- package/services/product/index.js +2 -0
- package/services/product/product.service.cjs +2 -0
- package/services/product/product.service.d.cts +19 -0
- package/services/product/product.service.d.ts +19 -0
- package/services/product/product.service.js +2 -0
- package/services/product/product.types.cjs +2 -0
- package/services/product/product.types.d.cts +78 -0
- package/services/product/product.types.d.ts +78 -0
- package/services/product/product.types.js +1 -0
- package/services/request.provider.cjs +1 -1
- package/services/request.provider.d.cts +1 -0
- package/services/request.provider.d.ts +1 -0
- package/services/request.provider.js +1 -1
- package/services/session.service.cjs +2 -0
- package/services/session.service.d.cts +70 -0
- package/services/session.service.d.ts +70 -0
- package/services/session.service.js +2 -0
- package/services/upload/index.cjs +2 -0
- package/services/upload/index.d.cts +2 -0
- package/services/upload/index.d.ts +2 -0
- package/services/upload/index.js +2 -0
- package/services/upload/upload.service.cjs +2 -0
- package/services/upload/upload.service.d.cts +81 -0
- package/services/upload/upload.service.d.ts +81 -0
- package/services/upload/upload.service.js +2 -0
- package/themes/dark.cjs +4 -1
- package/themes/dark.d.cts +1 -0
- package/themes/dark.d.ts +1 -0
- package/themes/dark.js +4 -1
- package/themes/light.cjs +1 -1
- package/themes/light.d.cts +1 -0
- package/themes/light.d.ts +1 -0
- package/themes/light.js +1 -1
- package/types/globals.cjs +2 -0
- package/types/globals.d.cts +39 -0
- package/types/globals.d.ts +39 -0
- package/types/globals.js +1 -0
- package/types/tracking-options.cjs +2 -2
- package/types/tracking-options.d.cts +8 -6
- package/types/tracking-options.d.ts +8 -6
- package/types/tracking-options.js +1 -1
- package/utils/adopt-styles.cjs +2 -2
- package/utils/adopt-styles.d.cts +1 -0
- package/utils/adopt-styles.d.ts +1 -0
- package/utils/adopt-styles.js +2 -2
- package/utils/browser-preferences.cjs +2 -2
- package/utils/browser-preferences.d.cts +1 -0
- package/utils/browser-preferences.d.ts +1 -0
- package/utils/browser-preferences.js +2 -2
- package/utils/classify-media.cjs +1 -1
- package/utils/classify-media.d.cts +1 -0
- package/utils/classify-media.d.ts +1 -0
- package/utils/classify-media.js +1 -1
- package/utils/decorators.cjs +1 -1
- package/utils/decorators.d.cts +1 -0
- package/utils/decorators.d.ts +1 -0
- package/utils/decorators.js +1 -1
- package/utils/detected-lang.cjs +2 -2
- package/utils/detected-lang.d.cts +1 -0
- package/utils/detected-lang.d.ts +1 -0
- package/utils/detected-lang.js +2 -2
- package/utils/fullscreen.cjs +2 -2
- package/utils/fullscreen.d.cts +6 -5
- package/utils/fullscreen.d.ts +6 -5
- package/utils/fullscreen.js +2 -2
- package/utils/insert-script.cjs +1 -1
- package/utils/insert-script.d.cts +1 -0
- package/utils/insert-script.d.ts +1 -0
- package/utils/insert-script.js +1 -1
- package/utils/is-map-compatible.cjs +1 -1
- package/utils/is-map-compatible.d.cts +1 -0
- package/utils/is-map-compatible.d.ts +1 -0
- package/utils/is-map-compatible.js +1 -1
- package/utils/markdown.cjs +2 -2
- package/utils/markdown.d.cts +1 -0
- package/utils/markdown.d.ts +1 -0
- package/utils/markdown.js +2 -2
- package/utils/merge.cjs +2 -2
- package/utils/merge.d.cts +2 -1
- package/utils/merge.d.ts +2 -1
- package/utils/merge.js +2 -2
- package/utils/multiband-track-volume.cjs +2 -2
- package/utils/multiband-track-volume.d.cts +1 -0
- package/utils/multiband-track-volume.d.ts +1 -0
- package/utils/multiband-track-volume.js +2 -2
- package/utils/onlive-url-params.cjs +1 -1
- package/utils/onlive-url-params.d.cts +1 -0
- package/utils/onlive-url-params.d.ts +1 -0
- package/utils/onlive-url-params.js +1 -1
- package/utils/pretty-distance.cjs +2 -2
- package/utils/pretty-distance.d.cts +2 -1
- package/utils/pretty-distance.d.ts +2 -1
- package/utils/pretty-distance.js +2 -2
- package/utils/pretty-time.cjs +2 -0
- package/utils/pretty-time.d.cts +16 -0
- package/utils/pretty-time.d.ts +16 -0
- package/utils/pretty-time.js +2 -0
- package/utils/random-string.cjs +1 -1
- package/utils/random-string.d.cts +1 -0
- package/utils/random-string.d.ts +1 -0
- package/utils/random-string.js +1 -1
- package/utils/resource-type.cjs +1 -1
- package/utils/resource-type.d.cts +1 -0
- package/utils/resource-type.d.ts +1 -0
- package/utils/resource-type.js +1 -1
- package/utils/round-number.cjs +2 -0
- package/utils/round-number.d.cts +30 -0
- package/utils/round-number.d.ts +30 -0
- package/utils/round-number.js +2 -0
- package/utils/safe-html.cjs +2 -2
- package/utils/safe-html.d.cts +4 -3
- package/utils/safe-html.d.ts +4 -3
- package/utils/safe-html.js +2 -2
- package/utils/sanitize.cjs +2 -2
- package/utils/sanitize.d.cts +1 -0
- package/utils/sanitize.d.ts +1 -0
- package/utils/sanitize.js +2 -2
- package/utils/spread.cjs +2 -2
- package/utils/spread.d.cts +1 -0
- package/utils/spread.d.ts +1 -0
- package/utils/spread.js +2 -2
- package/utils/watch.cjs +1 -1
- package/utils/watch.d.cts +1 -0
- package/utils/watch.d.ts +1 -0
- package/utils/watch.js +1 -1
- package/services/firebase/firebase.service.cjs +0 -2
- package/services/firebase/firebase.service.d.cts +0 -40
- package/services/firebase/firebase.service.d.ts +0 -40
- package/services/firebase/firebase.service.js +0 -2
- package/services/livekit.service.cjs +0 -2
- package/services/livekit.service.d.cts +0 -219
- package/services/livekit.service.d.ts +0 -219
- package/services/livekit.service.js +0 -2
- package/types/window-context.cjs +0 -2
- package/types/window-context.d.cts +0 -8
- package/types/window-context.d.ts +0 -8
- package/types/window-context.js +0 -1
package/index.cjs
ADDED
|
@@ -0,0 +1,4677 @@
|
|
|
1
|
+
/*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
|
|
2
|
+
"use strict";var ye=Object.create;var I=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var xe=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var Ae=(a,t)=>{for(var e in t)I(a,e,{get:t[e],enumerable:!0})},G=(a,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of _e(t))!we.call(a,s)&&s!==e&&I(a,s,{get:()=>t[s],enumerable:!(o=B(t,s))||o.enumerable});return a};var f=(a,t,e)=>(e=a!=null?ye(xe(a)):{},G(t||!a||!a.__esModule?I(e,"default",{value:a,enumerable:!0}):e,a)),ke=a=>G(I({},"__esModule",{value:!0}),a),d=(a,t,e,o)=>{for(var s=o>1?void 0:o?B(t,e):t,i=a.length-1,n;i>=0;i--)(n=a[i])&&(s=(o?n(t,e,s):n(s))||s);return o&&s&&I(t,e,s),s};var Te={};Ae(Te,{Asset:()=>pe,OSBAsset:()=>g,OSBSideBar:()=>p,OSBUpload:()=>j,SideBar:()=>ge,Upload:()=>be});module.exports=ke(Te);var S=require("lit"),b=require("lit/decorators.js"),ae=require("lit/directives/class-map.js");var Se=(a,t)=>(customElements.get(a)?console.debug(`Custom element <${a}> is already defined, skipping definition of ${t.name}.`):window.customElements.define(a,t),t),ze=(a,t)=>{let{kind:e,elements:o}=t;return{kind:e,elements:o,finisher(s){customElements.get(a)||window.customElements.define(a,s)}}},w=a=>t=>typeof t=="function"?Se(a,t):ze(a,t);var C=class a{constructor(t){this.config=t}static initialize(t){return new a(t)}getBaseUrl(){return`${this.config.baseUrl}`}getHeaders(){return{"Content-Type":"application/json"}}async makeRequest(t,e={}){let o=`${this.getBaseUrl()}${t}`,s=await fetch(o,{...e,headers:{...this.getHeaders(),...e.headers}});if(!s.ok)throw new Error(`FAQs API error: ${s.status} ${s.statusText}`);return s.json()}async getSettingsByOrganization(t,e){try{let o=new URLSearchParams;e&&o.append("userGroupId",e);let s=o.toString(),i=`${this.getBaseUrl()}/settings/organization/${t}${s?`?${s}`:""}`,n=await fetch(i,{method:"GET",headers:this.getHeaders(),credentials:"include"});if(n.status===404)return null;if(!n.ok)throw new Error(`Failed to fetch settings: ${n.statusText}`);return await n.json()}catch(o){return console.error("Error fetching settings:",o),null}}async getFaqs(t={}){let e=new URLSearchParams;if(t.search&&e.append("search",t.search),t.organizationId&&e.append("organizationId",t.organizationId),t.groupId&&e.append("groupId",t.groupId),t.isActive!==void 0&&e.append("isActive",t.isActive.toString()),t.page&&e.append("page",t.page.toString()),t.limit&&e.append("limit",t.limit.toString()),t.sortBy&&e.append("sortBy",t.sortBy),t.sortOrder&&e.append("sortOrder",t.sortOrder),t.extraFilters){for(let[i,n]of Object.entries(t.extraFilters))if(n&&(Array.isArray(n)?n.length>0:n.toString().trim()!=="")){let c=Array.isArray(n)?n.join(","):n.toString();e.append(`extra_${i}`,c)}}let o=e.toString(),s=`/faqs${o?`?${o}`:""}`;return this.makeRequest(s)}async getFaqById(t){return this.makeRequest(`/faqs/${t}`,{})}};var T=async(a,t)=>{let e=await fetch(a,t);if(!e.ok){let o=await e.json().catch(()=>({}));throw new Error(JSON.stringify({status:e.status,statusText:e.statusText,...o}))}return e&&e.json()};var F=class a{constructor(t){this.config=t,this.enableUpload=t.enableUpload||!1}static getInstance(t){if(!a.instance&&t&&(a.instance=new a(t)),!a.instance)throw new Error("FileService must be initialized with config first");return a.instance}static initialize(t){return a.instance=new a(t),a.instance}async uploadFile(t,e={}){try{let o=await this.requestSignedUrl({filename:t.name,description:e.description,loadDirection:"up",bucketType:e.bucketType||"conversations",path:e.path||".temp",mimeType:t.type});return await this.uploadToSignedUrl(o.data.signedUrlData.signedUrl,t),{success:!0,id:o.data.file.id,name:o.data.file.name,url:o.data.file.url,type:o.data.file.type}}catch(o){return console.error("Error uploading file:",o),{success:!1,error:o instanceof Error?o.message:"Unknown error"}}}async requestSignedUrl(t){let e=`${this.config.baseUrl}/files/upload-url`;return this.makeRequest(e,{method:"POST",body:JSON.stringify(t)})}async uploadToSignedUrl(t,e){let o=await fetch(t,{method:"PUT",body:e,headers:{"Content-Type":e.type}});if(!o.ok){let s=await o.text().catch(()=>"No response");throw new Error(`Upload failed with status: ${o.status}. Response: ${s}`)}}async uploadFileWithRetry(t,e={}){let o=e.maxRetries||3,s=null;for(let i=1;i<=o;i++)try{let n=await this.uploadFile(t,e);if(n.success)return n;throw new Error(n.error||"Upload failed")}catch(n){if(s=n instanceof Error?n:new Error("Unknown error"),i===o)break;let c=2**i*1e3;await new Promise(v=>setTimeout(v,c))}return{success:!1,error:s?.message||"Upload failed after retries"}}async getFileById(t){let e=`${this.config.baseUrl}/files/${t}`,o=await this.makeRequest(e);if(!o.success)throw new Error("Failed to get file");return o.data}async makeRequest(t,e){let o={"Content-Type":"application/json"};return this.config.organizationId&&(o["X-Onlive-Organization-Id"]=this.config.organizationId),e?.headers&&Object.assign(o,e.headers),T(t,{...e,headers:o})}updateConfig(t){this.config={...this.config,...t}}getConfig(){return{...this.config}}};var E=class a{constructor(t){this.config=t}static getInstance(t){if(!a.instance&&t&&(a.instance=new a(t)),!a.instance)throw new Error("MultimediaService must be initialized with config first");return a.instance}static initialize(t){return a.instance=new a(t),a.instance}async getImages(t={}){let e=new URLSearchParams({type:"image",page:(t.page||1).toString(),limit:(t.limit||12).toString(),...t.search&&{search:t.search},...t.labels&&{labels:t.labels.join(",")},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});this.appendExtraFilters(e,t.extraFilters);let o=`${this.config.baseUrl}/multimedia?${e}`;return this.makeRequest(o)}async getVideos(t={}){let e=new URLSearchParams({type:"video",page:(t.page||1).toString(),limit:(t.limit||12).toString(),...t.search&&{search:t.search},...t.labels&&{labels:t.labels.join(",")},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});this.appendExtraFilters(e,t.extraFilters);let o=`${this.config.baseUrl}/multimedia?${e}`;return this.makeRequest(o)}async getPresentations(t={}){let e=new URLSearchParams({type:"presentation",page:(t.page||1).toString(),limit:(t.limit||12).toString(),...t.search&&{search:t.search},...t.labels&&{labels:t.labels.join(",")},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});this.appendExtraFilters(e,t.extraFilters);let o=`${this.config.baseUrl}/multimedia?${e}`;return this.makeRequest(o)}async getAllMultimedia(t={}){let[e,o,s]=await Promise.all([this.getImages(t),this.getVideos(t),this.getPresentations(t)]);return{images:e,videos:o,presentations:s}}async getMultimediaByToken(t){let e=`${this.config.baseUrl}/multimedia/secure-token/${t}`;return this.makeRequest(e,!1)}async searchMultimedia(t,e){let o={search:t,page:1,limit:50,includeSecureToken:!0};if(e)return this.getMultimediaByType(e,o);let[s,i,n]=await Promise.all([this.getImages(o),this.getVideos(o),this.getPresentations(o)]),c=[...s.items,...i.items,...n.items];return{items:c,total:c.length,count:c.length,currentPage:1,totalPages:1}}async getMultimediaByType(t,e){switch(t){case"image":return this.getImages(e);case"video":return this.getVideos(e);case"presentation":return this.getPresentations(e);default:throw new Error(`Invalid multimedia type: ${t}`)}}appendExtraFilters(t,e){if(e){for(let[o,s]of Object.entries(e))if(s&&(Array.isArray(s)?s.length>0:s.toString().trim()!=="")){let i=Array.isArray(s)?s.join(","):s.toString();t.append(`extra_${o}`,i)}}}async makeRequest(t,e=!0){let o={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return T(t,{method:"GET",headers:o,credentials:e?"include":void 0})}updateConfig(t){this.config={...this.config,...t}}getConfig(){return{...this.config}}};var A=class a{constructor(t){this.config=t}static getInstance(t){if(!a.instance&&t&&(a.instance=new a(t)),!a.instance)throw new Error("ProductService must be initialized with config first");return a.instance}static initialize(t){return a.instance=new a(t),a.instance}async getProducts(t={}){let e=new URLSearchParams({...t.title&&{title:t.title},...t.search&&{search:t.search},...t.category&&{category:t.category},...t.tags&&{tags:t.tags.join(",")},...t.sortBy&&{sortBy:t.sortBy},...t.sortOrder&&{sortOrder:t.sortOrder},...t.minPrice&&{minPrice:t.minPrice.toString()},...t.maxPrice&&{maxPrice:t.maxPrice.toString()},...t.inStock!==void 0&&{inStock:t.inStock.toString()},...t.offset&&{offset:t.offset.toString()},...t.includeSecureToken&&{includeSecureToken:t.includeSecureToken.toString()}});t.extraFields&&Object.keys(t.extraFields).length>0&&e.append("extraFields",JSON.stringify(t.extraFields));let o=`${this.config.baseUrl}/products?${e}`;return this.makeRequest(o,!0)}async getProductByToken(t){let e=`${this.config.baseUrl}/products/secure-token/${t}`;return this.makeRequest(e)}async searchProducts(t,e={}){return this.getProducts({...e,search:t})}async makeRequest(t,e=!1){let o={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return T(t,{method:"GET",headers:o,credentials:e?"include":"same-origin"})}updateConfig(t){this.config={...this.config,...t}}getConfig(){return{...this.config}}};var R=class{constructor(t){t?.multimediaService&&(this.multimediaService=E.initialize(t.multimediaService)),t?.faqsService&&(this.faqsService=C.initialize(t.faqsService)),t?.productService&&(this.productService=A.initialize(t.productService)),t?.fileService&&(this.fileService=F.initialize(t.fileService))}async loadAsset(t,e){switch(t){case"multimedia":return this.loadMultimediaAsset(e);case"product":return this.loadProductAsset(e);case"faq":return this.loadFaqAsset(e);case"file":return this.loadFileAsset(e);default:throw new Error(`Unsupported asset type: ${t}`)}}async loadMultimediaAsset(t){if(!this.multimediaService)throw new Error("MultimediaService not configured");let e=await this.multimediaService.getMultimediaByToken(t);if(!e)throw new Error("Multimedia not found");return{id:e.id,name:e.name,description:e.description||"",url:e.url,thumbnail:e.animatedCoverUrl||e.url,type:"multimedia",externalId:e.id,format:e.format,size:e.size||void 0,duration:e.duration||void 0,vodUrl:e.vodUrl||void 0,slides:e.slides||[],labels:e.labels,animatedCoverUrl:e.animatedCoverUrl||void 0,metadata:{organizationId:e.organizationId,status:e.status,createdAt:e.createdAt,updatedAt:e.updatedAt}}}async loadProductAsset(t){if(!this.productService)throw new Error("MultimediaService not configured");let e=await this.productService.getProductByToken(t);if(!e)throw new Error("Product not found");return{id:e.id,name:e.name,description:e.description,url:e.url,thumbnail:e.images?.[0],type:"product",externalId:e.externalId,price:e.price,currency:e.currency,category:e.category,tags:e.tags,images:e.images,variants:e.variants?.map(o=>({id:o.id,externalId:o.externalId,price:o.price,currency:o.currency,images:o.images})),options:e.options,metadata:{providerType:e.providerType,providerId:e.providerId,discountType:e.discountType,discount:e.discount,stock:e.stock,broken:e.broken}}}async loadFaqAsset(t){if(!this.faqsService)throw new Error("FaqsService not configured");let e=await this.faqsService.getFaqById(t);return{id:e.id,name:e.question,description:e.answer,url:`#faq-${e.id}`,type:"faq",externalId:e.id,question:e.question,answer:e.answer,priority:e.priority,isActive:e.isActive,metadata:{organizationId:e.organizationId,createdAt:e.createdAt,updatedAt:e.updatedAt}}}async loadFileAsset(t){if(!this.fileService)throw new Error("FileService not configured");let e=await this.fileService.getFileById(t),o=e.type||"",s=o.startsWith("video/"),i=o.startsWith("image/");return{id:e.id,name:e.name,description:e.description||"",url:e.url,thumbnail:i?e.url:void 0,type:"file",externalId:e.id,format:o,size:e.metadata?.size,duration:void 0,vodUrl:s?e.url:void 0,labels:[],animatedCoverUrl:s?e.url:void 0,metadata:{path:e.metadata?.path,bucketType:e.metadata?.bucketType,loadDirection:e.metadata?.loadDirection,createdAt:e.createdAt,updatedAt:e.updatedAt}}}};var r=require("lit"),oe=require("lit/directives/class-map.js"),P=require("lit/directives/if-defined.js"),_=require("lit/directives/when.js");var K=require("lit/directives/unsafe-html.js");var O=f(require("dompurify"),1),Ce={ALLOWED_TAGS:["p","br","span","b","strong","i","em","u","s","del","ul","ol","li","code","pre","a","h1","h2","h3","h4","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","target","rel","title","aria-label","role","colspan","rowspan"],FORCE_HTTPS:!0,ALLOW_DATA_ATTR:!1};O.default.addHook("afterSanitizeAttributes",a=>{"target"in a&&a.target==="_blank"&&a.setAttribute("rel","noopener noreferrer")});var Q=(a,t=Ce)=>O.default.sanitize(a,t);function X(a=""){return(0,K.unsafeHTML)(Q(a,{ADD_ATTR:["target","rel"],ADD_TAGS:["ol-"],CUSTOM_ELEMENT_HANDLING:{tagNameCheck:/^ol-/,attributeNameCheck:null,allowCustomizedBuiltInElements:!0}}))}var Ze=require("@onlive.ai/ui/dist/components/button/button.js"),et=require("@onlive.ai/ui/dist/components/icon/icon.js"),q=require("lit"),D=require("lit/decorators.js"),ee=require("lit/directives/repeat.js"),te=f(require("video.js"),1);var U=require("lit"),W=f(require("video.js/dist/video-js.min.css?inline"),1),Z=U.css`
|
|
3
|
+
${(0,U.unsafeCSS)(W.default)}
|
|
4
|
+
.och__player {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: auto;
|
|
7
|
+
aspect-ratio: 16 / 9;
|
|
8
|
+
}
|
|
9
|
+
.video-js .vjs-big-play-button,
|
|
10
|
+
.video-js:hover .vjs-big-play-button {
|
|
11
|
+
font-size: 45px;
|
|
12
|
+
border: none;
|
|
13
|
+
background: transparent;
|
|
14
|
+
transition: all 0.2s ease;
|
|
15
|
+
}
|
|
16
|
+
`;var k=class extends q.LitElement{constructor(){super(...arguments);this.sources=[];this.player=null}connectedCallback(){super.connectedCallback();let e="videojs-font-face";if(!document.head.querySelector(`#${e}`)){let o=document.createElement("style");o.id=e,o.innerHTML=`
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: VideoJS;
|
|
19
|
+
src:
|
|
20
|
+
url(https://cdn.onlive.site/fonts/video-js/font/VideoJS.woff) format("woff"),
|
|
21
|
+
url(https://cdn.onlive.site/fonts/video-js/font/VideoJS.ttf) format("truetype");
|
|
22
|
+
}`,document.head.appendChild(o)}}firstUpdated(){this.$player&&(this.player=(0,te.default)(this.$player,{controls:!0,controlBar:{children:["playToggle","progressControl","volumePanel","fullscreenToggle"]}}))}play(){this.player?.play()}pause(){this.player?.pause()}render(){return q.html`
|
|
23
|
+
<video
|
|
24
|
+
id="player"
|
|
25
|
+
class="och__player video-js video-js vjs-16-9 vjs-controls-enabled vjs-workinghover vjs-v8 vjs-theme-sea vjs_video_2321-dimensions vjs-has-started vjs-paused vjs-user-inactive"
|
|
26
|
+
>
|
|
27
|
+
${(0,ee.repeat)(this.sources,e=>e.src,e=>q.html`<source src=${e.src} type=${e.type}></source>`)}
|
|
28
|
+
<p class="vjs-no-js">
|
|
29
|
+
To view this video please enable JavaScript, and consider upgrading to a web browser that
|
|
30
|
+
<a href="https://videojs.com/html5-video-support/" target="_blank"> supports HTML5 video </a>
|
|
31
|
+
</p>
|
|
32
|
+
</video>
|
|
33
|
+
<style>
|
|
34
|
+
.vjs-svg-icon {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
background-repeat: no-repeat;
|
|
37
|
+
background-position: center;
|
|
38
|
+
fill: currentColor;
|
|
39
|
+
height: 1.8em;
|
|
40
|
+
width: 1.8em
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.vjs-svg-icon:before {
|
|
44
|
+
content: none !important
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.vjs-control:focus .vjs-svg-icon, .vjs-svg-icon:hover {
|
|
48
|
+
filter: drop-shadow(0 0 .25em #fff)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.video-js .vjs-big-play-button .vjs-icon-placeholder:before, .video-js .vjs-modal-dialog, .vjs-button>.vjs-icon-placeholder:before, .vjs-modal-dialog .vjs-modal-dialog-content {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.video-js .vjs-big-play-button .vjs-icon-placeholder:before, .vjs-button>.vjs-icon-placeholder:before {
|
|
60
|
+
text-align: center
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@font-face {
|
|
64
|
+
font-family: VideoJS;
|
|
65
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABTsAAsAAAAAIpAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV32Y21hcAAAAYQAAAEJAAAD5p42+VxnbHlmAAACkAAADtIAABckI4l972hlYWQAABFkAAAAKwAAADYsvIjpaGhlYQAAEZAAAAAdAAAAJA+RCL1obXR4AAARsAAAABcAAAC8Q2YAAGxvY2EAABHIAAAAYAAAAGB7CIGGbWF4cAAAEigAAAAfAAAAIAFAAI9uYW1lAAASSAAAASUAAAIK1cf1oHBvc3QAABNwAAABfAAAAnXdFqh1eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGR7yDiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGPHcRdyA4RZgQRADaGCyYAAHic7dPXbcMwAEXRK1vuvffem749XAbKV3bjBA6fXsaIgMMLEWoQJaAEFKNnlELyQ4K27zib5PNF6vl8yld+TKr5kH0+cUw0xv00Hwvx2DResUyFKrV4XoMmLdp06NKjz4AhI8ZMmDJjzoIlK9Zs2LJjz4EjJ85cuHLjziPe/0UWL17mf2tqKLz/9jK9f8tXpGCoRdPKhtS0RqFkWvVQNtSKoVYNtWaoddPXEBqG2jQ9XWgZattQO4baNdSeofYNdWCoQ0MdGerYUCeGOjXUmaHODXVhqEtDXRnq2lA3hro11J2h7g31YKhHQz0Z6tlQL4Z6NdSbod4N9WGoT9MfHF6GmhnZLxyDcRMAAAB4nJ1YC1hU17U+a5/HMA4iA3NmVBDmoQwP5TFnHlFeA4gYiUFRQINoSCBAyK3G2yi+0aipYtFcHYo2xsb4NiY3+VrNxSaX5uvt495ozNdoYoxmem2/L8HGpLc+InB279pnhlGr5mvL4eyz99nrrL32eu1/DQcc/okdYgdHOA6MQKp4r9gx0EcMHMezOalVasW5BM7NcXoSb9fFgE6KtSSBxWz1FYDPG+vMBGcKb9cebu2VS5s2aaTkCvRSf6C7Y+Ppibm5E09v7IDs2/3uZQtbD0zIyppwoHXh/93ukmyYgdePNRp65p5v+3v/9otQl2O7wP34cT88p8Md2YxpYLQZoRcy6FlSBRnwnGAe6BPMSCZo+7NJVqS0cE4uHendzhSnbPH6TDqL1+Nme5LZXkCHnGyoH0kne30WH+gswhm3q+pt/mTas9NLS64GnjmSlTPw0wVQT/ewRaBgxtydy3cuUB9/6SW+vb5yRvr+t0eOfPKJZ/9t3+4tL7xj32Xd3thCxi+ge6ifdsAN+l5+wi5HQ/cCoeull1AszS7CUfEcJzK7sKWJAdJhCd0sPM4+EY7QDm5ov08hXRQXE5bf6PV5Q5+IjW7X7Nku92Ask4l2hCRRD6TPqISiCJeQna3SCFwrhrNzXHzo4yFevBwxpzxk8WCIIfkvVEKVy32SbT8n68gzgaslpaiO2zIGIyuSb7RNf9HSuN26y/7OC1tgEmpiyA6aD4qcgTOiLThwGG0eB694FI8NHLLN6OBlRVaMxNAFS4JdXUG6mW8PwpKuYLCLXKGbu8iwYNdgO06Sn3Th+/vyZAxs8Ro30DjHe9gy8Fywi24OMm7Qyzh3MTZVOMYhLBnoC+J79lpTUyQmorjhnMwlcQ5uPEYGpDjsOkkH49BjQLQBqs3jFtFdJNlksYmoQFDArLh8Xh+Qd6Ghcsb6FUuehDi+U/lqD71K/qiegeV1imcwjl7ExwiSrf4BZyCujV6cVcFo6VX+G9IcPyFjJnUufbU/jzrL1X99as36reXl8K32nFaOr+E8jWJEcJ55DpMVfSMe95/AJaOsGBH2GJCNpiRQbK4C8BjdmQA22QY2j03Em13i2YHqtNLU1NI04Yj2HJgA6fQc6VPNpA/D+Ryks554NnVy2mB72uRUfPLsqR4N0LOBQKArwJYO+5W2fgZX8oC1HR6HjNaQTVIG2FPwnTcXXGZZfNB7TE6pTKZUwaw91XWLAoFFGcnB5PHjsckgBjbWutrL+0h5Y1xw3DRGDumsnXb3MJwXrJIN5U7m0rgJ3yG5w4he5ckFG4pmNEkOm0/xOO4r4yL87wqtQM+hiJIVp+6iG2wPBKD35ElGkDx+UfC2v1mFG1o+M3AjNFty8biKMXwzyxnZLds8wYD2BxmCPHAldPOeLsy/0BugftYhVYFAhO8SqQ0j3oK7dHJZnI/jxmUS4onlxskSF8thmvNZjIrRZwEPxr0lBuLRuz3oy/FOHCsxwOPYh2M+e9u3J5pgPYz9gp6G7C9m0A11F9ddqKMfV+4sbq45/YspOysXvT+3pdFdYNg2fHbW8Dz301MqDVuGrz0Fuh0YMW8mddrpqzST7rV9BcvqPoNvadRndWp0p8HvbiqrFj5yFQ/vNFSXDpxpLEFWp+DcrF3FT1afWshFcmCfeAMjEvO65i0Y6XijQfSRPWx3TV/Df7Km3E1l+kLt56s/rwVzuRusNMhudznkwdLaS+QNdeal2jDPP4l9qHc98vTYZOSkxzD+njBWVWjFPKgipx6DkWvXQiW8OYcewVHE5yukinDMcfGgc0opDltYKDxIGBedkzc6jSfE7tlvESCDFUw0Hx0opS+U0lHCxNottbNWSxX9zZVvEhKWUSyBpaXwBc2a98M6UqPeXAs/GDon8Ax7hsthO8cM5HU7Ad0UvRR9lHmtyQKZ4MAe814X5h9MSUkQmhf96eVJ6p90OjIiqSIjvykvr2l5U55O/fPQKD+jIomYpNyGJQ25uQ2kIikRfAmuBHCPsWqkSDEqgZ5KDI2sifS/R43MbZg0idFHbCPNxXxZws1ACVE6hAhOdJwRkJLFBLPZpRGYJ50pko6XzMkgmSx40ljik6AQcKhFnLcQE6rF7PXFe1Ocoj0T3AXgSgJTDIhHRfHlYZKuSzc6uievOJGXY+i5GJkkTp7UM3y0LqATDbtFcbdBxO7o4T25JYlEjoH0uynUh8rapkxp62QN70svSF+hT4gGPlovlmcm/ComLi7mV4kTykV9NFWjE/QrwgQ4uIcAP0rQF4VZYRP2o3PhHHzfPMJj9Ir+uzKUlrH49ntT18AVvj1sc3YGjUT/Mt2Dxawa8ArcA7bCQIpvfwAYu22vEG/No/5RvPdA7g+AelLrPwzy+LtkLPhnpIxH14m4EYq8eeMHbPEPNm6G7Nv9B4jcFPZ8bJj0SEjP3MPgQdKTqqEoy2v6G32P/Y6dxOv04AxnoAeq+GILvUavtYCBXm+BaIhuodcfrN5B/V2EYMCPh+SxavjGyPwV0x4CJgUPGT0mQaODGBACIJZGsMXwAD0LGXx7l3CdAcKMIKI+f5CepWeD0BvyU/GcdBxPF8SwejC6LGZmAURFdsSWKR5HyHld2kbdIZO1Ixx+bnnzU7n5+blPNV9jnUDWhP2tC68tbN3PVIldsQPxSAcSpjOav7Q05uXn5zW2LLvDXn9B6syscPy9iDLEMmSrJz6nYuWMipukjM0AH8JkGS+XFyMRkzSCH7KD/hwm172SAyZYumHlefr5AddrtA0O0TnwaVZxcRY9Bfukn9Gf05N1r9DV9MoBsJ1f+ZrqUvtPHizJAntWybv7hmqLt6QLuK6ZS9Fqi1jO5rDoWPZXXII5Tgajg53cIXCjDCGIcYrRIY2n6+mXOa/W0bdhau3ryiEYe2FV/5oeaIYK/5w5frCyll6/cYO8DiNhw6t1MBWmznt91QX62UF1N7l0eHBZTRGpKaqpKVIPF9UcIzmReud9TSY75+K899GHbBu6wjoR7RKKZVYiYxSPf5/2wJT5e3NAhmUbVn5KLx1Ujg0+BGvpAIh0DezInTkzF37KVocxrKU3r1+XLtAe2lO3l66kfQfB/unKY+q8N375Ru8bc4pJXfEcESU95q+p8ZNZRTWH1d9FzvUdYXk5rLkcdkEisoKKVHQW/b3GEx6tPaYcoJfOr9wAbSBnv1IHpep0OExr4LPMkpJM+j7sly7UHkOzXjoAZljHCGiyegtNlwljM0v+c19ET9Pvst09a2Mtgcf5/ZSzYO5h1156+eyydfAsxGa9XAuF6vzjh6CssLq6ECysperXX0sX5h5ZdpZe3guxsGIPEtHk/aqXX1hVqP5HYVVVISkrrNqvXorIc+5Ou91Hnr/LcD2afi6eX7UBloOcs7cOpqgGaNfs1g7bNbs9z6wASaylN69d0/TFTIz6Ws8+oGV3mE2612wRTHKcVUbhjKadebloMc+dyXgMVtVK6BwMB/+mVW09igdRBWaRtNQX59d/VD//xdQ0TCiYNj1KT9sq6Wdu5WTbqk3qDXyDaLa1fv621LS01G3z61sD6lH8lAxDLicV921s6Bf92JOYvzNYCL1khbqBXEFUzC521N5NyzNaQIWhjyFyDoBIVrAjmv2UEaLlI+c6zw1jmVIPLLLZZUTj6GxGHW+mq1tgHXR2D85p4Q934+jLbtjVLcyCdS10NVzpHqxp4Q/hK7WopY/NRGx9HGsPGdFjOjcpjBnGYMVqY/4eqT5khWEHWUup2A/pTw7pdWgsWft7ETUERL96nRg0HNFPmCYba6pylECaExX89A9WLUOVB4oKLu/o1oqSYHCgLzBUlAz8hNFDRpeSU1XT+LRmDUgPaKbYdHDn9suF/tu13nHJij0N97LfS0QmqONuyONk7zvUI6Qa0pF9f2+oABL92AT6e0U//z9YqAiWtJLU1JK0gS+1aacwamiNqK067u9ZQ8f1d4qLodMzz3uL89Z68V/Hnr++hXWUuHgw8dfi972PeTyPefu3aNNucemQ74qFuIaJnVkOu4Q+yjuwmmC1FqZpl1i4uzoPxjkpPf3Xv545tl26Rr+dOvUd+omqJzch9dOeU7f10Y64nMcKK137DccIZq2WdXtdZjbEoLSzHwiMtrjYLDxpHQW8gjMX6XFYAE2zSWVD04EGYSs9MbO6sEo20BMEAB4mpvSypsKjZ4Stgzb+c3A9/MQT2+vrBy+qvyFxLUtLlSRF/Ri2wjfZ2dus2Q8lXx4608/jnqK5OOap6NY2PSjYYnECCjiEeLJll/pbmqfeIK+ps3+MxrlEhqmTPipVP7kqlF4VhpEb6r+Q7YOJg38kJ9SHBf3NBl6+9YchfbUjb5ahLSzUM3kPHmwFAsZ5rpai0S7E5xWzZ1j+fW7zsUWP2g5NXTw52ySCTrgG0+lbw60l2Y/CB185CoA8NK+tbRKxfjy6pm5hzQRRR+cMqv1Jbiw6STivtEvt3DRcy0QEh92JlUGo2PG4tSKHl00YD6xc8CK+YPYyy3io2lN8BcSjKRzrIV6ypOAobqxViJPaT9M9Hy5szY33mp7OX/Zu89L/7Ww5vqY2Y8b0pKgoiUhG5cPDPzq8qTV/WkzUOIvXVVA96kmjcBrr3HrYC/Wn+fYP6Z7T1rqy3zknbvqma/FvVk96fNXGkuaXrdHW5JGSxZT/2I/O73v+yNWafMdzc5NdxYurHs6h86e01sLKLz9EBrg+x36rxAaED7hRnAMx7Vzu+9wabh3zG8XLQjx0ablUJzmxdErxYT3kzQSd0SSafVqF5PXgpp0OyYJ1EyNHpGUZmvK575ySzd85JSqF7IBzSAbMM04+MbE58xF3/njXOGecSaermlw2y9PsSQdytLJVr8t+wg+rR8cZYoeNxVIzNdk3Bngi8U5LAlgTFoQnzJCa5EsCgYhCaGL+qPj7TdhG31p9tej3R04N//PXxNwJvyUqwaJqRPJY98TJ5TPndmflRAkAhBfe46sfKW5wizSge08Xb7Ca/GUVs55trngkKkrUS2WPzKttaaqq+idmahugkY+W6fN0I6i3gPt/x88U4wAAeJxjYGRgYADiGU9YXsXz23xl4GZnAIFH7fO+IdMc/WBxDgYmEAUASbMKwAB4nGNgZGBgZwABjj4Ghv//OfoZGBlQgT4ARicDZAAAAHicY2BgYGAfxJijD8Fmu4EqBwCSpgKpAAAAAAAADgBoAH4AzADgAQIBQgFsAZgB7gIuAooC0AL8A2IDjAOoA+AEMASwBNoFCAVaBcAGCAYuBnAGrAb2B04HigfSCCoIcAiGCJwIyAkkCVYJiAmsCfIKIApWCsQLknicY2BkYGDQZ2hmYGcAASYg5gJCBob/YD4DABqrAdAAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2ReVPbMBDF/ULi2EkDBFqO3gdHLxUzDB9IkdexBllydRD49ihO3Ckz7B/a31utZnafkkGyiXnyclxhgB0MMUKKMTLkmGCKV5hhF3vYxxwHOMRrvMERjnGCU7zFO7zHB3zEJ3zGF3zFN5zhHBe4xHf8wE/8wm8w/MEVimTYKv44XR9MSCsUjVoeHE3vjQoNsSZ4mmxZmVWPjSz7jlou6/0qKOWEJdKMtCe793/hQfqxa6XWZHMXFl56RS4TvPXSaDeoy0zUUZB109KstDK8lHo5q6Qi1hcOnqkImubPS6aqRq7mlnaEWabub4iYblba3SRmgldS0+FWdhNtt04F14JUaqkl7tcpOpJtErvNt3Bd9HRT5JWxK25Ldjvp6br4hzfFiIdSmlzTg2fSUzNrLd1LE1ynxq4OVaVoKLjzJ60UPtj1RKzHzsbjly6inVnFBS2MucviPncU7Rr7lfTxRepDs1A2j3ZHRc7PuzFYSfE3ZOd4kjwBy227hA==) format("woff");
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
font-style: normal
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.video-js .vjs-big-play-button .vjs-icon-placeholder:before, .video-js .vjs-play-control .vjs-icon-placeholder, .vjs-icon-play {
|
|
71
|
+
font-family: VideoJS;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
font-style: normal
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.video-js .vjs-big-play-button .vjs-icon-placeholder:before, .video-js .vjs-play-control .vjs-icon-placeholder:before, .vjs-icon-play:before {
|
|
77
|
+
content: "\f101"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.vjs-icon-play-circle {
|
|
81
|
+
font-family: VideoJS;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
font-style: normal
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.vjs-icon-play-circle:before {
|
|
87
|
+
content: "\f102"
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder, .vjs-icon-pause {
|
|
91
|
+
font-family: VideoJS;
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
font-style: normal
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before, .vjs-icon-pause:before {
|
|
97
|
+
content: "\f103"
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder, .vjs-icon-volume-mute {
|
|
101
|
+
font-family: VideoJS;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
font-style: normal
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before, .vjs-icon-volume-mute:before {
|
|
107
|
+
content: "\f104"
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder, .vjs-icon-volume-low {
|
|
111
|
+
font-family: VideoJS;
|
|
112
|
+
font-weight: 400;
|
|
113
|
+
font-style: normal
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before, .vjs-icon-volume-low:before {
|
|
117
|
+
content: "\f105"
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder, .vjs-icon-volume-mid {
|
|
121
|
+
font-family: VideoJS;
|
|
122
|
+
font-weight: 400;
|
|
123
|
+
font-style: normal
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before, .vjs-icon-volume-mid:before {
|
|
127
|
+
content: "\f106"
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.video-js .vjs-mute-control .vjs-icon-placeholder, .vjs-icon-volume-high {
|
|
131
|
+
font-family: VideoJS;
|
|
132
|
+
font-weight: 400;
|
|
133
|
+
font-style: normal
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.video-js .vjs-mute-control .vjs-icon-placeholder:before, .vjs-icon-volume-high:before {
|
|
137
|
+
content: "\f107"
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.video-js .vjs-fullscreen-control .vjs-icon-placeholder, .vjs-icon-fullscreen-enter {
|
|
141
|
+
font-family: VideoJS;
|
|
142
|
+
font-weight: 400;
|
|
143
|
+
font-style: normal
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before, .vjs-icon-fullscreen-enter:before {
|
|
147
|
+
content: "\f108"
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder, .vjs-icon-fullscreen-exit {
|
|
151
|
+
font-family: VideoJS;
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
font-style: normal
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before, .vjs-icon-fullscreen-exit:before {
|
|
157
|
+
content: "\f109"
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.vjs-icon-spinner {
|
|
161
|
+
font-family: VideoJS;
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
font-style: normal
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.vjs-icon-spinner:before {
|
|
167
|
+
content: "\f10a"
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.video-js .vjs-subs-caps-button .vjs-icon-placeholder, .video-js .vjs-subtitles-button .vjs-icon-placeholder, .video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder, .vjs-icon-subtitles {
|
|
171
|
+
font-family: VideoJS;
|
|
172
|
+
font-weight: 400;
|
|
173
|
+
font-style: normal
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js .vjs-subtitles-button .vjs-icon-placeholder:before, .video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before, .vjs-icon-subtitles:before {
|
|
177
|
+
content: "\f10b"
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.video-js .vjs-captions-button .vjs-icon-placeholder, .video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder, .vjs-icon-captions {
|
|
181
|
+
font-family: VideoJS;
|
|
182
|
+
font-weight: 400;
|
|
183
|
+
font-style: normal
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.video-js .vjs-captions-button .vjs-icon-placeholder:before, .video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before, .vjs-icon-captions:before {
|
|
187
|
+
content: "\f10c"
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.vjs-icon-hd {
|
|
191
|
+
font-family: VideoJS;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
font-style: normal
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.vjs-icon-hd:before {
|
|
197
|
+
content: "\f10d"
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.video-js .vjs-chapters-button .vjs-icon-placeholder, .vjs-icon-chapters {
|
|
201
|
+
font-family: VideoJS;
|
|
202
|
+
font-weight: 400;
|
|
203
|
+
font-style: normal
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.video-js .vjs-chapters-button .vjs-icon-placeholder:before, .vjs-icon-chapters:before {
|
|
207
|
+
content: "\f10e"
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.vjs-icon-downloading {
|
|
211
|
+
font-family: VideoJS;
|
|
212
|
+
font-weight: 400;
|
|
213
|
+
font-style: normal
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.vjs-icon-downloading:before {
|
|
217
|
+
content: "\f10f"
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.vjs-icon-file-download {
|
|
221
|
+
font-family: VideoJS;
|
|
222
|
+
font-weight: 400;
|
|
223
|
+
font-style: normal
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.vjs-icon-file-download:before {
|
|
227
|
+
content: "\f110"
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.vjs-icon-file-download-done {
|
|
231
|
+
font-family: VideoJS;
|
|
232
|
+
font-weight: 400;
|
|
233
|
+
font-style: normal
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.vjs-icon-file-download-done:before {
|
|
237
|
+
content: "\f111"
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.vjs-icon-file-download-off {
|
|
241
|
+
font-family: VideoJS;
|
|
242
|
+
font-weight: 400;
|
|
243
|
+
font-style: normal
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.vjs-icon-file-download-off:before {
|
|
247
|
+
content: "\f112"
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.vjs-icon-share {
|
|
251
|
+
font-family: VideoJS;
|
|
252
|
+
font-weight: 400;
|
|
253
|
+
font-style: normal
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.vjs-icon-share:before {
|
|
257
|
+
content: "\f113"
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.vjs-icon-cog {
|
|
261
|
+
font-family: VideoJS;
|
|
262
|
+
font-weight: 400;
|
|
263
|
+
font-style: normal
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.vjs-icon-cog:before {
|
|
267
|
+
content: "\f114"
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.vjs-icon-square {
|
|
271
|
+
font-family: VideoJS;
|
|
272
|
+
font-weight: 400;
|
|
273
|
+
font-style: normal
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.vjs-icon-square:before {
|
|
277
|
+
content: "\f115"
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.video-js .vjs-play-progress, .video-js .vjs-volume-level, .vjs-icon-circle, .vjs-seek-to-live-control .vjs-icon-placeholder {
|
|
281
|
+
font-family: VideoJS;
|
|
282
|
+
font-weight: 400;
|
|
283
|
+
font-style: normal
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.video-js .vjs-play-progress:before, .video-js .vjs-volume-level:before, .vjs-icon-circle:before, .vjs-seek-to-live-control .vjs-icon-placeholder:before {
|
|
287
|
+
content: "\f116"
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.vjs-icon-circle-outline {
|
|
291
|
+
font-family: VideoJS;
|
|
292
|
+
font-weight: 400;
|
|
293
|
+
font-style: normal
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.vjs-icon-circle-outline:before {
|
|
297
|
+
content: "\f117"
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.vjs-icon-circle-inner-circle {
|
|
301
|
+
font-family: VideoJS;
|
|
302
|
+
font-weight: 400;
|
|
303
|
+
font-style: normal
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.vjs-icon-circle-inner-circle:before {
|
|
307
|
+
content: "\f118"
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder, .vjs-icon-cancel {
|
|
311
|
+
font-family: VideoJS;
|
|
312
|
+
font-weight: 400;
|
|
313
|
+
font-style: normal
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before, .vjs-icon-cancel:before {
|
|
317
|
+
content: "\f119"
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.vjs-icon-repeat {
|
|
321
|
+
font-family: VideoJS;
|
|
322
|
+
font-weight: 400;
|
|
323
|
+
font-style: normal
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.vjs-icon-repeat:before {
|
|
327
|
+
content: "\f11a"
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder, .vjs-icon-replay {
|
|
331
|
+
font-family: VideoJS;
|
|
332
|
+
font-weight: 400;
|
|
333
|
+
font-style: normal
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before, .vjs-icon-replay:before {
|
|
337
|
+
content: "\f11b"
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.video-js .vjs-skip-backward-5 .vjs-icon-placeholder, .vjs-icon-replay-5 {
|
|
341
|
+
font-family: VideoJS;
|
|
342
|
+
font-weight: 400;
|
|
343
|
+
font-style: normal
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.video-js .vjs-skip-backward-5 .vjs-icon-placeholder:before, .vjs-icon-replay-5:before {
|
|
347
|
+
content: "\f11c"
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.video-js .vjs-skip-backward-10 .vjs-icon-placeholder, .vjs-icon-replay-10 {
|
|
351
|
+
font-family: VideoJS;
|
|
352
|
+
font-weight: 400;
|
|
353
|
+
font-style: normal
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.video-js .vjs-skip-backward-10 .vjs-icon-placeholder:before, .vjs-icon-replay-10:before {
|
|
357
|
+
content: "\f11d"
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.video-js .vjs-skip-backward-30 .vjs-icon-placeholder, .vjs-icon-replay-30 {
|
|
361
|
+
font-family: VideoJS;
|
|
362
|
+
font-weight: 400;
|
|
363
|
+
font-style: normal
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.video-js .vjs-skip-backward-30 .vjs-icon-placeholder:before, .vjs-icon-replay-30:before {
|
|
367
|
+
content: "\f11e"
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.video-js .vjs-skip-forward-5 .vjs-icon-placeholder, .vjs-icon-forward-5 {
|
|
371
|
+
font-family: VideoJS;
|
|
372
|
+
font-weight: 400;
|
|
373
|
+
font-style: normal
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.video-js .vjs-skip-forward-5 .vjs-icon-placeholder:before, .vjs-icon-forward-5:before {
|
|
377
|
+
content: "\f11f"
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.video-js .vjs-skip-forward-10 .vjs-icon-placeholder, .vjs-icon-forward-10 {
|
|
381
|
+
font-family: VideoJS;
|
|
382
|
+
font-weight: 400;
|
|
383
|
+
font-style: normal
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.video-js .vjs-skip-forward-10 .vjs-icon-placeholder:before, .vjs-icon-forward-10:before {
|
|
387
|
+
content: "\f120"
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.video-js .vjs-skip-forward-30 .vjs-icon-placeholder, .vjs-icon-forward-30 {
|
|
391
|
+
font-family: VideoJS;
|
|
392
|
+
font-weight: 400;
|
|
393
|
+
font-style: normal
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.video-js .vjs-skip-forward-30 .vjs-icon-placeholder:before, .vjs-icon-forward-30:before {
|
|
397
|
+
content: "\f121"
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.video-js .vjs-audio-button .vjs-icon-placeholder, .vjs-icon-audio {
|
|
401
|
+
font-family: VideoJS;
|
|
402
|
+
font-weight: 400;
|
|
403
|
+
font-style: normal
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.video-js .vjs-audio-button .vjs-icon-placeholder:before, .vjs-icon-audio:before {
|
|
407
|
+
content: "\f122"
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.vjs-icon-next-item {
|
|
411
|
+
font-family: VideoJS;
|
|
412
|
+
font-weight: 400;
|
|
413
|
+
font-style: normal
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.vjs-icon-next-item:before {
|
|
417
|
+
content: "\f123"
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.vjs-icon-previous-item {
|
|
421
|
+
font-family: VideoJS;
|
|
422
|
+
font-weight: 400;
|
|
423
|
+
font-style: normal
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.vjs-icon-previous-item:before {
|
|
427
|
+
content: "\f124"
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.vjs-icon-shuffle {
|
|
431
|
+
font-family: VideoJS;
|
|
432
|
+
font-weight: 400;
|
|
433
|
+
font-style: normal
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.vjs-icon-shuffle:before {
|
|
437
|
+
content: "\f125"
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.vjs-icon-cast {
|
|
441
|
+
font-family: VideoJS;
|
|
442
|
+
font-weight: 400;
|
|
443
|
+
font-style: normal
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.vjs-icon-cast:before {
|
|
447
|
+
content: "\f126"
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder, .vjs-icon-picture-in-picture-enter {
|
|
451
|
+
font-family: VideoJS;
|
|
452
|
+
font-weight: 400;
|
|
453
|
+
font-style: normal
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before, .vjs-icon-picture-in-picture-enter:before {
|
|
457
|
+
content: "\f127"
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder, .vjs-icon-picture-in-picture-exit {
|
|
461
|
+
font-family: VideoJS;
|
|
462
|
+
font-weight: 400;
|
|
463
|
+
font-style: normal
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before, .vjs-icon-picture-in-picture-exit:before {
|
|
467
|
+
content: "\f128"
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.vjs-icon-facebook {
|
|
471
|
+
font-family: VideoJS;
|
|
472
|
+
font-weight: 400;
|
|
473
|
+
font-style: normal
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.vjs-icon-facebook:before {
|
|
477
|
+
content: "\f129"
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.vjs-icon-linkedin {
|
|
481
|
+
font-family: VideoJS;
|
|
482
|
+
font-weight: 400;
|
|
483
|
+
font-style: normal
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.vjs-icon-linkedin:before {
|
|
487
|
+
content: "\f12a"
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.vjs-icon-twitter {
|
|
491
|
+
font-family: VideoJS;
|
|
492
|
+
font-weight: 400;
|
|
493
|
+
font-style: normal
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.vjs-icon-twitter:before {
|
|
497
|
+
content: "\f12b"
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.vjs-icon-tumblr {
|
|
501
|
+
font-family: VideoJS;
|
|
502
|
+
font-weight: 400;
|
|
503
|
+
font-style: normal
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.vjs-icon-tumblr:before {
|
|
507
|
+
content: "\f12c"
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.vjs-icon-pinterest {
|
|
511
|
+
font-family: VideoJS;
|
|
512
|
+
font-weight: 400;
|
|
513
|
+
font-style: normal
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.vjs-icon-pinterest:before {
|
|
517
|
+
content: "\f12d"
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.video-js .vjs-descriptions-button .vjs-icon-placeholder, .vjs-icon-audio-description {
|
|
521
|
+
font-family: VideoJS;
|
|
522
|
+
font-weight: 400;
|
|
523
|
+
font-style: normal
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.video-js .vjs-descriptions-button .vjs-icon-placeholder:before, .vjs-icon-audio-description:before {
|
|
527
|
+
content: "\f12e"
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.video-js {
|
|
531
|
+
display: inline-block;
|
|
532
|
+
vertical-align: top;
|
|
533
|
+
box-sizing: border-box;
|
|
534
|
+
color: #fff;
|
|
535
|
+
background-color: #000;
|
|
536
|
+
position: relative;
|
|
537
|
+
padding: 0;
|
|
538
|
+
font-size: 10px;
|
|
539
|
+
line-height: 1;
|
|
540
|
+
font-weight: 400;
|
|
541
|
+
font-style: normal;
|
|
542
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
543
|
+
word-break: initial
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.video-js:-moz-full-screen {
|
|
547
|
+
position: absolute
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.video-js:-webkit-full-screen {
|
|
551
|
+
width: 100% !important;
|
|
552
|
+
height: 100% !important
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.video-js[tabindex="-1"] {
|
|
556
|
+
outline: 0
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.video-js *, .video-js :after, .video-js :before {
|
|
560
|
+
box-sizing: inherit
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.video-js ul {
|
|
564
|
+
font-family: inherit;
|
|
565
|
+
font-size: inherit;
|
|
566
|
+
line-height: inherit;
|
|
567
|
+
list-style-position: outside;
|
|
568
|
+
margin-left: 0;
|
|
569
|
+
margin-right: 0;
|
|
570
|
+
margin-top: 0;
|
|
571
|
+
margin-bottom: 0
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.video-js.vjs-1-1, .video-js.vjs-16-9, .video-js.vjs-4-3, .video-js.vjs-9-16, .video-js.vjs-fluid {
|
|
575
|
+
width: 100%;
|
|
576
|
+
max-width: 100%
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.video-js.vjs-1-1:not(.vjs-audio-only-mode), .video-js.vjs-16-9:not(.vjs-audio-only-mode), .video-js.vjs-4-3:not(.vjs-audio-only-mode), .video-js.vjs-9-16:not(.vjs-audio-only-mode), .video-js.vjs-fluid:not(.vjs-audio-only-mode) {
|
|
580
|
+
height: 0
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.video-js.vjs-16-9:not(.vjs-audio-only-mode) {
|
|
584
|
+
padding-top: 56.25%
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.video-js.vjs-4-3:not(.vjs-audio-only-mode) {
|
|
588
|
+
padding-top: 75%
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.video-js.vjs-9-16:not(.vjs-audio-only-mode) {
|
|
592
|
+
padding-top: 177.7777777778%
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.video-js.vjs-1-1:not(.vjs-audio-only-mode) {
|
|
596
|
+
padding-top: 100%
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.video-js.vjs-fill:not(.vjs-audio-only-mode) {
|
|
600
|
+
width: 100%;
|
|
601
|
+
height: 100%
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.video-js .vjs-tech {
|
|
605
|
+
position: absolute;
|
|
606
|
+
top: 0;
|
|
607
|
+
left: 0;
|
|
608
|
+
width: 100%;
|
|
609
|
+
height: 100%
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.video-js.vjs-audio-only-mode .vjs-tech {
|
|
613
|
+
display: none
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
body.vjs-full-window, body.vjs-pip-window {
|
|
617
|
+
padding: 0;
|
|
618
|
+
margin: 0;
|
|
619
|
+
height: 100%
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.vjs-full-window .video-js.vjs-fullscreen, body.vjs-pip-window .video-js {
|
|
623
|
+
position: fixed;
|
|
624
|
+
overflow: hidden;
|
|
625
|
+
z-index: 1000;
|
|
626
|
+
left: 0;
|
|
627
|
+
top: 0;
|
|
628
|
+
bottom: 0;
|
|
629
|
+
right: 0
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.video-js.vjs-fullscreen:not(.vjs-ios-native-fs), body.vjs-pip-window .video-js {
|
|
633
|
+
width: 100% !important;
|
|
634
|
+
height: 100% !important;
|
|
635
|
+
padding-top: 0 !important;
|
|
636
|
+
display: block
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.video-js.vjs-fullscreen.vjs-user-inactive {
|
|
640
|
+
cursor: none
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.vjs-pip-container .vjs-pip-text {
|
|
644
|
+
position: absolute;
|
|
645
|
+
bottom: 10%;
|
|
646
|
+
font-size: 2em;
|
|
647
|
+
background-color: rgba(0, 0, 0, .7);
|
|
648
|
+
padding: .5em;
|
|
649
|
+
text-align: center;
|
|
650
|
+
width: 100%
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.vjs-layout-small.vjs-pip-container .vjs-pip-text, .vjs-layout-tiny.vjs-pip-container .vjs-pip-text, .vjs-layout-x-small.vjs-pip-container .vjs-pip-text {
|
|
654
|
+
bottom: 0;
|
|
655
|
+
font-size: 1.4em
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.vjs-hidden {
|
|
659
|
+
display: none !important
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.vjs-disabled {
|
|
663
|
+
opacity: .5;
|
|
664
|
+
cursor: default
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.video-js .vjs-offscreen {
|
|
668
|
+
height: 1px;
|
|
669
|
+
left: -9999px;
|
|
670
|
+
position: absolute;
|
|
671
|
+
top: 0;
|
|
672
|
+
width: 1px
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.vjs-lock-showing {
|
|
676
|
+
display: block !important;
|
|
677
|
+
opacity: 1 !important;
|
|
678
|
+
visibility: visible !important
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.vjs-no-js {
|
|
682
|
+
padding: 20px;
|
|
683
|
+
color: #fff;
|
|
684
|
+
background-color: #000;
|
|
685
|
+
font-size: 18px;
|
|
686
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
687
|
+
text-align: center;
|
|
688
|
+
width: 300px;
|
|
689
|
+
height: 150px;
|
|
690
|
+
margin: 0 auto
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.vjs-no-js a, .vjs-no-js a:visited {
|
|
694
|
+
color: #66a8cc
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.video-js .vjs-big-play-button {
|
|
698
|
+
font-size: 3em;
|
|
699
|
+
line-height: 1.5em;
|
|
700
|
+
height: 1.63332em;
|
|
701
|
+
width: 3em;
|
|
702
|
+
display: block;
|
|
703
|
+
position: absolute;
|
|
704
|
+
top: 50%;
|
|
705
|
+
left: 50%;
|
|
706
|
+
padding: 0;
|
|
707
|
+
margin-top: -.81666em;
|
|
708
|
+
margin-left: -1.5em;
|
|
709
|
+
cursor: pointer;
|
|
710
|
+
opacity: 1;
|
|
711
|
+
border: .06666em solid #fff;
|
|
712
|
+
background-color: #2b333f;
|
|
713
|
+
background-color: rgba(43, 51, 63, .7);
|
|
714
|
+
border-radius: .3em;
|
|
715
|
+
transition: all .4s
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.vjs-big-play-button .vjs-svg-icon {
|
|
719
|
+
width: 1em;
|
|
720
|
+
height: 1em;
|
|
721
|
+
position: absolute;
|
|
722
|
+
top: 50%;
|
|
723
|
+
left: 50%;
|
|
724
|
+
line-height: 1;
|
|
725
|
+
transform: translate(-50%, -50%)
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.video-js .vjs-big-play-button:focus, .video-js:hover .vjs-big-play-button {
|
|
729
|
+
border-color: #fff;
|
|
730
|
+
background-color: rgb(114.9141509434, 132.7028301887, 159.3858490566);
|
|
731
|
+
background-color: rgba(114.9141509434, 132.7028301887, 159.3858490566, .5);
|
|
732
|
+
transition: all 0s
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.vjs-controls-disabled .vjs-big-play-button, .vjs-error .vjs-big-play-button, .vjs-has-started .vjs-big-play-button, .vjs-using-native-controls .vjs-big-play-button {
|
|
736
|
+
display: none
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause:not(.vjs-seeking, .vjs-scrubbing, .vjs-error) .vjs-big-play-button {
|
|
740
|
+
display: block
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.video-js button {
|
|
744
|
+
background: 0 0;
|
|
745
|
+
border: none;
|
|
746
|
+
color: inherit;
|
|
747
|
+
display: inline-block;
|
|
748
|
+
font-size: inherit;
|
|
749
|
+
line-height: inherit;
|
|
750
|
+
text-transform: none;
|
|
751
|
+
text-decoration: none;
|
|
752
|
+
transition: none;
|
|
753
|
+
-webkit-appearance: none;
|
|
754
|
+
-moz-appearance: none;
|
|
755
|
+
appearance: none
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.video-js.vjs-spatial-navigation-enabled .vjs-button:focus {
|
|
759
|
+
outline: .0625em solid #fff;
|
|
760
|
+
box-shadow: none
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.vjs-control .vjs-button {
|
|
764
|
+
width: 100%;
|
|
765
|
+
height: 100%
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.video-js .vjs-control.vjs-close-button {
|
|
769
|
+
cursor: pointer;
|
|
770
|
+
height: 3em;
|
|
771
|
+
position: absolute;
|
|
772
|
+
right: 0;
|
|
773
|
+
top: .5em;
|
|
774
|
+
z-index: 2
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.video-js .vjs-modal-dialog {
|
|
778
|
+
background: rgba(0, 0, 0, .8);
|
|
779
|
+
background: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(255, 255, 255, 0));
|
|
780
|
+
overflow: auto
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.video-js .vjs-modal-dialog>* {
|
|
784
|
+
box-sizing: border-box
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.vjs-modal-dialog .vjs-modal-dialog-content {
|
|
788
|
+
font-size: 1.2em;
|
|
789
|
+
line-height: 1.5;
|
|
790
|
+
padding: 20px 24px;
|
|
791
|
+
z-index: 1
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.vjs-menu-button {
|
|
795
|
+
cursor: pointer
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.vjs-menu-button.vjs-disabled {
|
|
799
|
+
cursor: default
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu {
|
|
803
|
+
display: none
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.vjs-menu .vjs-menu-content {
|
|
807
|
+
display: block;
|
|
808
|
+
padding: 0;
|
|
809
|
+
margin: 0;
|
|
810
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
811
|
+
overflow: auto
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.vjs-menu .vjs-menu-content>* {
|
|
815
|
+
box-sizing: border-box
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu {
|
|
819
|
+
display: none
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.vjs-menu li {
|
|
823
|
+
display: flex;
|
|
824
|
+
justify-content: center;
|
|
825
|
+
list-style: none;
|
|
826
|
+
margin: 0;
|
|
827
|
+
padding: .2em 0;
|
|
828
|
+
line-height: 1.4em;
|
|
829
|
+
font-size: 1.2em;
|
|
830
|
+
text-align: center;
|
|
831
|
+
text-transform: lowercase
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.js-focus-visible .vjs-menu li.vjs-menu-item:hover, .vjs-menu li.vjs-menu-item:focus, .vjs-menu li.vjs-menu-item:hover {
|
|
835
|
+
background-color: rgb(114.9141509434, 132.7028301887, 159.3858490566);
|
|
836
|
+
background-color: rgba(114.9141509434, 132.7028301887, 159.3858490566, .5)
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.js-focus-visible .vjs-menu li.vjs-selected:hover, .vjs-menu li.vjs-selected, .vjs-menu li.vjs-selected:focus, .vjs-menu li.vjs-selected:hover {
|
|
840
|
+
background-color: #fff;
|
|
841
|
+
color: #2b333f
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.js-focus-visible .vjs-menu li.vjs-selected:hover .vjs-svg-icon, .vjs-menu li.vjs-selected .vjs-svg-icon, .vjs-menu li.vjs-selected:focus .vjs-svg-icon, .vjs-menu li.vjs-selected:hover .vjs-svg-icon {
|
|
845
|
+
fill: #000
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible), .video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible) {
|
|
849
|
+
background: 0 0
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.vjs-menu li.vjs-menu-title {
|
|
853
|
+
text-align: center;
|
|
854
|
+
text-transform: uppercase;
|
|
855
|
+
font-size: 1em;
|
|
856
|
+
line-height: 2em;
|
|
857
|
+
padding: 0;
|
|
858
|
+
margin: 0 0 .3em 0;
|
|
859
|
+
font-weight: 700;
|
|
860
|
+
cursor: default
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.vjs-menu-button-popup .vjs-menu {
|
|
864
|
+
display: none;
|
|
865
|
+
position: absolute;
|
|
866
|
+
bottom: 0;
|
|
867
|
+
width: 10em;
|
|
868
|
+
left: -3em;
|
|
869
|
+
height: 0;
|
|
870
|
+
margin-bottom: 1.5em;
|
|
871
|
+
border-top-color: rgba(43, 51, 63, .7)
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.vjs-pip-window .vjs-menu-button-popup .vjs-menu {
|
|
875
|
+
left: unset;
|
|
876
|
+
right: 1em
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
|
880
|
+
background-color: #2b333f;
|
|
881
|
+
background-color: rgba(43, 51, 63, .7);
|
|
882
|
+
position: absolute;
|
|
883
|
+
width: 100%;
|
|
884
|
+
bottom: 1.5em;
|
|
885
|
+
max-height: 15em
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content, .vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
|
889
|
+
max-height: 5em
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
|
893
|
+
max-height: 10em
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
|
897
|
+
max-height: 14em
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content, .vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content, .vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
|
901
|
+
max-height: 25em
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.vjs-menu-button-popup .vjs-menu.vjs-lock-showing, .vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu {
|
|
905
|
+
display: block
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.video-js .vjs-menu-button-inline {
|
|
909
|
+
transition: all .4s;
|
|
910
|
+
overflow: hidden
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.video-js .vjs-menu-button-inline:before {
|
|
914
|
+
width: 2.222222222em
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.video-js .vjs-menu-button-inline.vjs-slider-active, .video-js .vjs-menu-button-inline:focus, .video-js .vjs-menu-button-inline:hover {
|
|
918
|
+
width: 12em
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.vjs-menu-button-inline .vjs-menu {
|
|
922
|
+
opacity: 0;
|
|
923
|
+
height: 100%;
|
|
924
|
+
width: auto;
|
|
925
|
+
position: absolute;
|
|
926
|
+
left: 4em;
|
|
927
|
+
top: 0;
|
|
928
|
+
padding: 0;
|
|
929
|
+
margin: 0;
|
|
930
|
+
transition: all .4s
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.vjs-menu-button-inline.vjs-slider-active .vjs-menu, .vjs-menu-button-inline:focus .vjs-menu, .vjs-menu-button-inline:hover .vjs-menu {
|
|
934
|
+
display: block;
|
|
935
|
+
opacity: 1
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.vjs-menu-button-inline .vjs-menu-content {
|
|
939
|
+
width: auto;
|
|
940
|
+
height: 100%;
|
|
941
|
+
margin: 0;
|
|
942
|
+
overflow: hidden
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.video-js .vjs-control-bar {
|
|
946
|
+
display: none;
|
|
947
|
+
width: 100%;
|
|
948
|
+
position: absolute;
|
|
949
|
+
bottom: 0;
|
|
950
|
+
left: 0;
|
|
951
|
+
right: 0;
|
|
952
|
+
height: 3em;
|
|
953
|
+
background-color: #2b333f;
|
|
954
|
+
background-color: rgba(43, 51, 63, .7)
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.video-js.vjs-spatial-navigation-enabled .vjs-control-bar {
|
|
958
|
+
gap: 1px
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.video-js:not(.vjs-controls-disabled, .vjs-using-native-controls, .vjs-error) .vjs-control-bar.vjs-lock-showing {
|
|
962
|
+
display: flex !important
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.vjs-audio-only-mode .vjs-control-bar, .vjs-has-started .vjs-control-bar {
|
|
966
|
+
display: flex;
|
|
967
|
+
visibility: visible;
|
|
968
|
+
opacity: 1;
|
|
969
|
+
transition: visibility .1s, opacity .1s
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
|
|
973
|
+
visibility: visible;
|
|
974
|
+
opacity: 0;
|
|
975
|
+
pointer-events: none;
|
|
976
|
+
transition: visibility 1s, opacity 1s
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.vjs-controls-disabled .vjs-control-bar, .vjs-error .vjs-control-bar, .vjs-using-native-controls .vjs-control-bar {
|
|
980
|
+
display: none !important
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar, .vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
|
|
984
|
+
opacity: 1;
|
|
985
|
+
visibility: visible;
|
|
986
|
+
pointer-events: auto
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.video-js .vjs-control {
|
|
990
|
+
position: relative;
|
|
991
|
+
text-align: center;
|
|
992
|
+
margin: 0;
|
|
993
|
+
padding: 0;
|
|
994
|
+
height: 100%;
|
|
995
|
+
width: 4em;
|
|
996
|
+
flex: none
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.video-js .vjs-control.vjs-visible-text {
|
|
1000
|
+
width: auto;
|
|
1001
|
+
padding-left: 1em;
|
|
1002
|
+
padding-right: 1em
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.vjs-button>.vjs-icon-placeholder:before {
|
|
1006
|
+
font-size: 1.8em;
|
|
1007
|
+
line-height: 1.67
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.vjs-button>.vjs-icon-placeholder {
|
|
1011
|
+
display: block
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.vjs-button>.vjs-svg-icon {
|
|
1015
|
+
display: inline-block
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.video-js .vjs-control:focus, .video-js .vjs-control:focus:before, .video-js .vjs-control:hover:before {
|
|
1019
|
+
text-shadow: 0 0 1em #fff
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
.video-js :not(.vjs-visible-text)>.vjs-control-text {
|
|
1023
|
+
border: 0;
|
|
1024
|
+
clip: rect(0 0 0 0);
|
|
1025
|
+
height: 1px;
|
|
1026
|
+
overflow: hidden;
|
|
1027
|
+
padding: 0;
|
|
1028
|
+
position: absolute;
|
|
1029
|
+
width: 1px
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.video-js .vjs-custom-control-spacer {
|
|
1033
|
+
display: none
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.video-js .vjs-progress-control {
|
|
1037
|
+
cursor: pointer;
|
|
1038
|
+
flex: auto;
|
|
1039
|
+
display: flex;
|
|
1040
|
+
align-items: center;
|
|
1041
|
+
min-width: 4em;
|
|
1042
|
+
touch-action: none
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.video-js .vjs-progress-control.disabled {
|
|
1046
|
+
cursor: default
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.vjs-live .vjs-progress-control {
|
|
1050
|
+
display: none
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.vjs-liveui .vjs-progress-control {
|
|
1054
|
+
display: flex;
|
|
1055
|
+
align-items: center
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.video-js .vjs-progress-holder {
|
|
1059
|
+
flex: auto;
|
|
1060
|
+
transition: all .2s;
|
|
1061
|
+
height: .3em
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.video-js .vjs-progress-control .vjs-progress-holder {
|
|
1065
|
+
margin: 0 10px
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.video-js .vjs-progress-control:hover .vjs-progress-holder, .video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-progress-holder {
|
|
1069
|
+
font-size: 1.6666666667em
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled {
|
|
1073
|
+
font-size: 1em
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-progress-holder .vjs-play-progress {
|
|
1077
|
+
position: absolute;
|
|
1078
|
+
display: block;
|
|
1079
|
+
height: 100%;
|
|
1080
|
+
margin: 0;
|
|
1081
|
+
padding: 0;
|
|
1082
|
+
width: 0
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
.video-js .vjs-play-progress {
|
|
1086
|
+
background-color: #fff
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.video-js .vjs-play-progress:before {
|
|
1090
|
+
font-size: .9em;
|
|
1091
|
+
position: absolute;
|
|
1092
|
+
right: -.5em;
|
|
1093
|
+
line-height: .35em;
|
|
1094
|
+
z-index: 1
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.vjs-svg-icons-enabled .vjs-play-progress:before {
|
|
1098
|
+
content: none !important
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.vjs-play-progress .vjs-svg-icon {
|
|
1102
|
+
position: absolute;
|
|
1103
|
+
top: -.35em;
|
|
1104
|
+
right: -.4em;
|
|
1105
|
+
width: .9em;
|
|
1106
|
+
height: .9em;
|
|
1107
|
+
pointer-events: none;
|
|
1108
|
+
line-height: .15em;
|
|
1109
|
+
z-index: 1
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
.video-js .vjs-load-progress {
|
|
1113
|
+
background: rgba(114.9141509434, 132.7028301887, 159.3858490566, .5)
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
.video-js .vjs-load-progress div {
|
|
1117
|
+
background: rgba(114.9141509434, 132.7028301887, 159.3858490566, .75)
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.video-js .vjs-time-tooltip {
|
|
1121
|
+
background-color: #fff;
|
|
1122
|
+
background-color: rgba(255, 255, 255, .8);
|
|
1123
|
+
border-radius: .3em;
|
|
1124
|
+
color: #000;
|
|
1125
|
+
float: right;
|
|
1126
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
1127
|
+
font-size: 1em;
|
|
1128
|
+
padding: 6px 8px 8px 8px;
|
|
1129
|
+
pointer-events: none;
|
|
1130
|
+
position: absolute;
|
|
1131
|
+
top: -3.4em;
|
|
1132
|
+
visibility: hidden;
|
|
1133
|
+
z-index: 1
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.video-js .vjs-progress-holder:focus .vjs-time-tooltip {
|
|
1137
|
+
display: none
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip, .video-js .vjs-progress-control:hover .vjs-time-tooltip, .video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-time-tooltip {
|
|
1141
|
+
display: block;
|
|
1142
|
+
font-size: .6em;
|
|
1143
|
+
visibility: visible
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip {
|
|
1147
|
+
font-size: 1em
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
.video-js .vjs-progress-control .vjs-mouse-display {
|
|
1151
|
+
display: none;
|
|
1152
|
+
position: absolute;
|
|
1153
|
+
width: 1px;
|
|
1154
|
+
height: 100%;
|
|
1155
|
+
background-color: #000;
|
|
1156
|
+
z-index: 1
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.video-js .vjs-progress-control:hover .vjs-mouse-display {
|
|
1160
|
+
display: block
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-mouse-display {
|
|
1164
|
+
display: block
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.video-js.vjs-touch-enabled:not(.vjs-scrubbing) .vjs-progress-control .vjs-mouse-display, .video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display {
|
|
1168
|
+
visibility: hidden;
|
|
1169
|
+
opacity: 0;
|
|
1170
|
+
transition: visibility 1s, opacity 1s
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.vjs-mouse-display .vjs-time-tooltip {
|
|
1174
|
+
color: #fff;
|
|
1175
|
+
background-color: #000;
|
|
1176
|
+
background-color: rgba(0, 0, 0, .8)
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.video-js .vjs-slider {
|
|
1180
|
+
position: relative;
|
|
1181
|
+
cursor: pointer;
|
|
1182
|
+
padding: 0;
|
|
1183
|
+
margin: 0 .45em 0 .45em;
|
|
1184
|
+
-webkit-touch-callout: none;
|
|
1185
|
+
-webkit-user-select: none;
|
|
1186
|
+
-moz-user-select: none;
|
|
1187
|
+
user-select: none;
|
|
1188
|
+
background-color: rgb(114.9141509434, 132.7028301887, 159.3858490566);
|
|
1189
|
+
background-color: rgba(114.9141509434, 132.7028301887, 159.3858490566, .5)
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.video-js .vjs-slider.disabled {
|
|
1193
|
+
cursor: default
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
.video-js .vjs-slider:focus {
|
|
1197
|
+
text-shadow: 0 0 1em #fff;
|
|
1198
|
+
box-shadow: 0 0 1em #fff
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.video-js.vjs-spatial-navigation-enabled .vjs-slider:focus {
|
|
1202
|
+
outline: .0625em solid #fff
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.video-js .vjs-mute-control {
|
|
1206
|
+
cursor: pointer;
|
|
1207
|
+
flex: none
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
.video-js .vjs-volume-control {
|
|
1211
|
+
cursor: pointer;
|
|
1212
|
+
margin-right: 1em;
|
|
1213
|
+
display: flex
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.video-js .vjs-volume-control.vjs-volume-horizontal {
|
|
1217
|
+
width: 5em
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
.video-js .vjs-volume-panel .vjs-volume-control {
|
|
1221
|
+
visibility: visible;
|
|
1222
|
+
opacity: 0;
|
|
1223
|
+
width: 1px;
|
|
1224
|
+
height: 1px;
|
|
1225
|
+
margin-left: -1px
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
.video-js .vjs-volume-panel {
|
|
1229
|
+
transition: width 1s
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active, .video-js .vjs-volume-panel .vjs-volume-control:active, .video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control, .video-js .vjs-volume-panel.vjs-hover .vjs-volume-control, .video-js .vjs-volume-panel:active .vjs-volume-control, .video-js .vjs-volume-panel:focus .vjs-volume-control {
|
|
1233
|
+
visibility: visible;
|
|
1234
|
+
opacity: 1;
|
|
1235
|
+
position: relative;
|
|
1236
|
+
transition: visibility .1s, opacity .1s, height .1s, width .1s, left 0s, top 0s
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal, .video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal, .video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal, .video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal, .video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal, .video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal {
|
|
1240
|
+
width: 5em;
|
|
1241
|
+
height: 3em;
|
|
1242
|
+
margin-right: 0
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical, .video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical, .video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical, .video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical, .video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical, .video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical {
|
|
1246
|
+
left: -3.5em;
|
|
1247
|
+
transition: left 0s
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, .video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active {
|
|
1251
|
+
width: 10em;
|
|
1252
|
+
transition: width .1s
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only {
|
|
1256
|
+
width: 4em
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical {
|
|
1260
|
+
height: 8em;
|
|
1261
|
+
width: 3em;
|
|
1262
|
+
left: -3000em;
|
|
1263
|
+
transition: visibility 1s, opacity 1s, height 1s 1s, width 1s 1s, left 1s 1s, top 1s 1s
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal {
|
|
1267
|
+
transition: visibility 1s, opacity 1s, height 1s 1s, width 1s, left 1s 1s, top 1s 1s
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.video-js .vjs-volume-panel {
|
|
1271
|
+
display: flex
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.video-js .vjs-volume-bar {
|
|
1275
|
+
margin: 1.35em .45em
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.vjs-volume-bar.vjs-slider-horizontal {
|
|
1279
|
+
width: 5em;
|
|
1280
|
+
height: .3em
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.vjs-volume-bar.vjs-slider-vertical {
|
|
1284
|
+
width: .3em;
|
|
1285
|
+
height: 5em;
|
|
1286
|
+
margin: 1.35em auto
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.video-js .vjs-volume-level {
|
|
1290
|
+
position: absolute;
|
|
1291
|
+
bottom: 0;
|
|
1292
|
+
left: 0;
|
|
1293
|
+
background-color: #fff
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
.video-js .vjs-volume-level:before {
|
|
1297
|
+
position: absolute;
|
|
1298
|
+
font-size: .9em;
|
|
1299
|
+
z-index: 1
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
.vjs-slider-vertical .vjs-volume-level {
|
|
1303
|
+
width: .3em
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.vjs-slider-vertical .vjs-volume-level:before {
|
|
1307
|
+
top: -.5em;
|
|
1308
|
+
left: -.3em;
|
|
1309
|
+
z-index: 1
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.vjs-svg-icons-enabled .vjs-volume-level:before {
|
|
1313
|
+
content: none
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.vjs-volume-level .vjs-svg-icon {
|
|
1317
|
+
position: absolute;
|
|
1318
|
+
width: .9em;
|
|
1319
|
+
height: .9em;
|
|
1320
|
+
pointer-events: none;
|
|
1321
|
+
z-index: 1
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
.vjs-slider-horizontal .vjs-volume-level {
|
|
1325
|
+
height: .3em
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.vjs-slider-horizontal .vjs-volume-level:before {
|
|
1329
|
+
line-height: .35em;
|
|
1330
|
+
right: -.5em
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.vjs-slider-horizontal .vjs-volume-level .vjs-svg-icon {
|
|
1334
|
+
right: -.3em;
|
|
1335
|
+
transform: translateY(-50%)
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.vjs-slider-vertical .vjs-volume-level .vjs-svg-icon {
|
|
1339
|
+
top: -.55em;
|
|
1340
|
+
transform: translateX(-50%)
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.video-js .vjs-volume-panel.vjs-volume-panel-vertical {
|
|
1344
|
+
width: 4em
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level {
|
|
1348
|
+
height: 100%
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level {
|
|
1352
|
+
width: 100%
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.video-js .vjs-volume-vertical {
|
|
1356
|
+
width: 3em;
|
|
1357
|
+
height: 8em;
|
|
1358
|
+
bottom: 8em;
|
|
1359
|
+
background-color: #2b333f;
|
|
1360
|
+
background-color: rgba(43, 51, 63, .7)
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
.video-js .vjs-volume-horizontal .vjs-menu {
|
|
1364
|
+
left: -2em
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
.video-js .vjs-volume-tooltip {
|
|
1368
|
+
background-color: #fff;
|
|
1369
|
+
background-color: rgba(255, 255, 255, .8);
|
|
1370
|
+
border-radius: .3em;
|
|
1371
|
+
color: #000;
|
|
1372
|
+
float: right;
|
|
1373
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
1374
|
+
font-size: 1em;
|
|
1375
|
+
padding: 6px 8px 8px 8px;
|
|
1376
|
+
pointer-events: none;
|
|
1377
|
+
position: absolute;
|
|
1378
|
+
top: -3.4em;
|
|
1379
|
+
visibility: hidden;
|
|
1380
|
+
z-index: 1
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip, .video-js .vjs-volume-control:hover .vjs-volume-tooltip {
|
|
1384
|
+
display: block;
|
|
1385
|
+
font-size: 1em;
|
|
1386
|
+
visibility: visible
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip, .video-js .vjs-volume-vertical:hover .vjs-volume-tooltip {
|
|
1390
|
+
left: 1em;
|
|
1391
|
+
top: -12px
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip {
|
|
1395
|
+
font-size: 1em
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.video-js .vjs-volume-control .vjs-mouse-display {
|
|
1399
|
+
display: none;
|
|
1400
|
+
position: absolute;
|
|
1401
|
+
width: 100%;
|
|
1402
|
+
height: 1px;
|
|
1403
|
+
background-color: #000;
|
|
1404
|
+
z-index: 1
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.video-js .vjs-volume-horizontal .vjs-mouse-display {
|
|
1408
|
+
width: 1px;
|
|
1409
|
+
height: 100%
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
.video-js .vjs-volume-control:hover .vjs-mouse-display {
|
|
1413
|
+
display: block
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display {
|
|
1417
|
+
visibility: hidden;
|
|
1418
|
+
opacity: 0;
|
|
1419
|
+
transition: visibility 1s, opacity 1s
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
.vjs-mouse-display .vjs-volume-tooltip {
|
|
1423
|
+
color: #fff;
|
|
1424
|
+
background-color: #000;
|
|
1425
|
+
background-color: rgba(0, 0, 0, .8)
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
.vjs-poster {
|
|
1429
|
+
display: inline-block;
|
|
1430
|
+
vertical-align: middle;
|
|
1431
|
+
cursor: pointer;
|
|
1432
|
+
margin: 0;
|
|
1433
|
+
padding: 0;
|
|
1434
|
+
position: absolute;
|
|
1435
|
+
top: 0;
|
|
1436
|
+
right: 0;
|
|
1437
|
+
bottom: 0;
|
|
1438
|
+
left: 0;
|
|
1439
|
+
height: 100%
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
.vjs-has-started .vjs-poster, .vjs-using-native-controls .vjs-poster {
|
|
1443
|
+
display: none
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
.vjs-audio.vjs-has-started .vjs-poster, .vjs-has-started.vjs-audio-poster-mode .vjs-poster, .vjs-pip-container.vjs-has-started .vjs-poster {
|
|
1447
|
+
display: block
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.vjs-poster img {
|
|
1451
|
+
width: 100%;
|
|
1452
|
+
height: 100%;
|
|
1453
|
+
object-fit: contain
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
.video-js .vjs-live-control {
|
|
1457
|
+
display: flex;
|
|
1458
|
+
align-items: flex-start;
|
|
1459
|
+
flex: auto;
|
|
1460
|
+
font-size: 1em;
|
|
1461
|
+
line-height: 3em
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
.video-js.vjs-liveui .vjs-live-control, .video-js:not(.vjs-live) .vjs-live-control {
|
|
1465
|
+
display: none
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
.video-js .vjs-seek-to-live-control {
|
|
1469
|
+
align-items: center;
|
|
1470
|
+
cursor: pointer;
|
|
1471
|
+
flex: none;
|
|
1472
|
+
display: inline-flex;
|
|
1473
|
+
height: 100%;
|
|
1474
|
+
padding-left: .5em;
|
|
1475
|
+
padding-right: .5em;
|
|
1476
|
+
font-size: 1em;
|
|
1477
|
+
line-height: 3em;
|
|
1478
|
+
width: auto;
|
|
1479
|
+
min-width: 4em
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control, .video-js:not(.vjs-live) .vjs-seek-to-live-control {
|
|
1483
|
+
display: none
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge {
|
|
1487
|
+
cursor: auto
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
.vjs-seek-to-live-control .vjs-icon-placeholder {
|
|
1491
|
+
margin-right: .5em;
|
|
1492
|
+
color: #888
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.vjs-svg-icons-enabled .vjs-seek-to-live-control {
|
|
1496
|
+
line-height: 0
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
.vjs-seek-to-live-control .vjs-svg-icon {
|
|
1500
|
+
width: 1em;
|
|
1501
|
+
height: 1em;
|
|
1502
|
+
pointer-events: none;
|
|
1503
|
+
fill: #888
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder {
|
|
1507
|
+
color: red
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-svg-icon {
|
|
1511
|
+
fill: red
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.video-js .vjs-time-control {
|
|
1515
|
+
flex: none;
|
|
1516
|
+
font-size: 1em;
|
|
1517
|
+
line-height: 3em;
|
|
1518
|
+
min-width: 2em;
|
|
1519
|
+
width: auto;
|
|
1520
|
+
padding-left: 1em;
|
|
1521
|
+
padding-right: 1em
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.video-js .vjs-current-time, .video-js .vjs-duration, .vjs-live .vjs-time-control, .vjs-live .vjs-time-divider {
|
|
1525
|
+
display: none
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.vjs-time-divider {
|
|
1529
|
+
display: none;
|
|
1530
|
+
line-height: 3em
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.vjs-normalise-time-controls:not(.vjs-live) .vjs-time-control {
|
|
1534
|
+
display: flex
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
.video-js .vjs-play-control {
|
|
1538
|
+
cursor: pointer
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
.video-js .vjs-play-control .vjs-icon-placeholder {
|
|
1542
|
+
flex: none
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.vjs-text-track-display {
|
|
1546
|
+
position: absolute;
|
|
1547
|
+
bottom: 3em;
|
|
1548
|
+
left: 0;
|
|
1549
|
+
right: 0;
|
|
1550
|
+
top: 0;
|
|
1551
|
+
pointer-events: none
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
.vjs-error .vjs-text-track-display {
|
|
1555
|
+
display: none
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
.video-js.vjs-controls-disabled .vjs-text-track-display, .video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display {
|
|
1559
|
+
bottom: 1em
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
.video-js .vjs-text-track {
|
|
1563
|
+
font-size: 1.4em;
|
|
1564
|
+
text-align: center;
|
|
1565
|
+
margin-bottom: .1em
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
.vjs-subtitles {
|
|
1569
|
+
color: #fff
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
.vjs-captions {
|
|
1573
|
+
color: #fc6
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
.vjs-tt-cue {
|
|
1577
|
+
display: block
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
video::-webkit-media-text-track-display {
|
|
1581
|
+
transform: translateY(-3em)
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
.video-js.vjs-controls-disabled video::-webkit-media-text-track-display, .video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display {
|
|
1585
|
+
transform: translateY(-1.5em)
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.video-js.vjs-force-center-align-cues .vjs-text-track-cue {
|
|
1589
|
+
text-align: center !important;
|
|
1590
|
+
width: 80% !important
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
@supports not (inset:10px) {
|
|
1594
|
+
.video-js .vjs-text-track-display>div {
|
|
1595
|
+
top: 0;
|
|
1596
|
+
right: 0;
|
|
1597
|
+
bottom: 0;
|
|
1598
|
+
left: 0
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
.video-js .vjs-picture-in-picture-control {
|
|
1603
|
+
cursor: pointer;
|
|
1604
|
+
flex: none
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control, .vjs-pip-window .vjs-picture-in-picture-control {
|
|
1608
|
+
display: none
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
.video-js .vjs-fullscreen-control {
|
|
1612
|
+
cursor: pointer;
|
|
1613
|
+
flex: none
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.video-js.vjs-audio-only-mode .vjs-fullscreen-control, .vjs-pip-window .vjs-fullscreen-control {
|
|
1617
|
+
display: none
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
.vjs-playback-rate .vjs-playback-rate-value, .vjs-playback-rate>.vjs-menu-button {
|
|
1621
|
+
position: absolute;
|
|
1622
|
+
top: 0;
|
|
1623
|
+
left: 0;
|
|
1624
|
+
width: 100%;
|
|
1625
|
+
height: 100%
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
.vjs-playback-rate .vjs-playback-rate-value {
|
|
1629
|
+
pointer-events: none;
|
|
1630
|
+
font-size: 1.5em;
|
|
1631
|
+
line-height: 2;
|
|
1632
|
+
text-align: center
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
.vjs-playback-rate .vjs-menu {
|
|
1636
|
+
width: 4em;
|
|
1637
|
+
left: 0
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
.vjs-error .vjs-error-display .vjs-modal-dialog-content {
|
|
1641
|
+
font-size: 1.4em;
|
|
1642
|
+
text-align: center
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
.vjs-loading-spinner {
|
|
1646
|
+
display: none;
|
|
1647
|
+
position: absolute;
|
|
1648
|
+
top: 50%;
|
|
1649
|
+
left: 50%;
|
|
1650
|
+
transform: translate(-50%, -50%);
|
|
1651
|
+
opacity: .85;
|
|
1652
|
+
text-align: left;
|
|
1653
|
+
border: .6em solid rgba(43, 51, 63, .7);
|
|
1654
|
+
box-sizing: border-box;
|
|
1655
|
+
background-clip: padding-box;
|
|
1656
|
+
width: 5em;
|
|
1657
|
+
height: 5em;
|
|
1658
|
+
border-radius: 50%;
|
|
1659
|
+
visibility: hidden
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
.vjs-seeking .vjs-loading-spinner, .vjs-waiting .vjs-loading-spinner {
|
|
1663
|
+
display: flex;
|
|
1664
|
+
justify-content: center;
|
|
1665
|
+
align-items: center;
|
|
1666
|
+
animation: vjs-spinner-show 0s linear .3s forwards
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
.vjs-error .vjs-loading-spinner {
|
|
1670
|
+
display: none
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
.vjs-loading-spinner:after, .vjs-loading-spinner:before {
|
|
1674
|
+
content: "";
|
|
1675
|
+
position: absolute;
|
|
1676
|
+
box-sizing: inherit;
|
|
1677
|
+
width: inherit;
|
|
1678
|
+
height: inherit;
|
|
1679
|
+
border-radius: inherit;
|
|
1680
|
+
opacity: 1;
|
|
1681
|
+
border: inherit;
|
|
1682
|
+
border-color: transparent;
|
|
1683
|
+
border-top-color: #fff
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.vjs-seeking .vjs-loading-spinner:after, .vjs-seeking .vjs-loading-spinner:before, .vjs-waiting .vjs-loading-spinner:after, .vjs-waiting .vjs-loading-spinner:before {
|
|
1687
|
+
animation: vjs-spinner-spin 1.1s cubic-bezier(.6, .2, 0, .8) infinite, vjs-spinner-fade 1.1s linear infinite
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.vjs-seeking .vjs-loading-spinner:before, .vjs-waiting .vjs-loading-spinner:before {
|
|
1691
|
+
border-top-color: #fff
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
.vjs-seeking .vjs-loading-spinner:after, .vjs-waiting .vjs-loading-spinner:after {
|
|
1695
|
+
border-top-color: #fff;
|
|
1696
|
+
animation-delay: .44s
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
@keyframes vjs-spinner-show {
|
|
1700
|
+
to {
|
|
1701
|
+
visibility: visible
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
@keyframes vjs-spinner-spin {
|
|
1706
|
+
100% {
|
|
1707
|
+
transform: rotate(360deg)
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
@keyframes vjs-spinner-fade {
|
|
1712
|
+
0% {
|
|
1713
|
+
border-top-color: rgb(114.9141509434, 132.7028301887, 159.3858490566)
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
20% {
|
|
1717
|
+
border-top-color: rgb(114.9141509434, 132.7028301887, 159.3858490566)
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
35% {
|
|
1721
|
+
border-top-color: #fff
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
60% {
|
|
1725
|
+
border-top-color: rgb(114.9141509434, 132.7028301887, 159.3858490566)
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
100% {
|
|
1729
|
+
border-top-color: rgb(114.9141509434, 132.7028301887, 159.3858490566)
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
.video-js.vjs-audio-only-mode .vjs-captions-button {
|
|
1734
|
+
display: none
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.vjs-chapters-button .vjs-menu ul {
|
|
1738
|
+
width: 24em
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
.video-js.vjs-audio-only-mode .vjs-descriptions-button {
|
|
1742
|
+
display: none
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
.vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-svg-icon {
|
|
1746
|
+
width: 1.5em;
|
|
1747
|
+
height: 1.5em
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder {
|
|
1751
|
+
vertical-align: middle;
|
|
1752
|
+
display: inline-block;
|
|
1753
|
+
margin-bottom: -.1em
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {
|
|
1757
|
+
font-family: VideoJS;
|
|
1758
|
+
content: "\f10c";
|
|
1759
|
+
font-size: 1.5em;
|
|
1760
|
+
line-height: inherit
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
.video-js.vjs-audio-only-mode .vjs-subs-caps-button {
|
|
1764
|
+
display: none
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
.video-js .vjs-audio-button+.vjs-menu .vjs-descriptions-menu-item .vjs-menu-item-text .vjs-icon-placeholder, .video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder {
|
|
1768
|
+
vertical-align: middle;
|
|
1769
|
+
display: inline-block;
|
|
1770
|
+
margin-bottom: -.1em
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
.video-js .vjs-audio-button+.vjs-menu .vjs-descriptions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before, .video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {
|
|
1774
|
+
font-family: VideoJS;
|
|
1775
|
+
content: " \f12e";
|
|
1776
|
+
font-size: 1.5em;
|
|
1777
|
+
line-height: inherit
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
.video-js.vjs-layout-small .vjs-current-time, .video-js.vjs-layout-small .vjs-duration, .video-js.vjs-layout-small .vjs-playback-rate, .video-js.vjs-layout-small .vjs-remaining-time, .video-js.vjs-layout-small .vjs-time-divider, .video-js.vjs-layout-small .vjs-volume-control, .video-js.vjs-layout-tiny .vjs-current-time, .video-js.vjs-layout-tiny .vjs-duration, .video-js.vjs-layout-tiny .vjs-playback-rate, .video-js.vjs-layout-tiny .vjs-remaining-time, .video-js.vjs-layout-tiny .vjs-time-divider, .video-js.vjs-layout-tiny .vjs-volume-control, .video-js.vjs-layout-x-small .vjs-current-time, .video-js.vjs-layout-x-small .vjs-duration, .video-js.vjs-layout-x-small .vjs-playback-rate, .video-js.vjs-layout-x-small .vjs-remaining-time, .video-js.vjs-layout-x-small .vjs-time-divider, .video-js.vjs-layout-x-small .vjs-volume-control {
|
|
1781
|
+
display: none
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, .video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active, .video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
|
|
1785
|
+
width: auto;
|
|
1786
|
+
width: initial
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
.video-js.vjs-layout-tiny .vjs-progress-control, .video-js.vjs-layout-x-small .vjs-progress-control {
|
|
1790
|
+
display: none
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
.video-js.vjs-layout-x-small .vjs-custom-control-spacer {
|
|
1794
|
+
flex: auto;
|
|
1795
|
+
display: block
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
.vjs-modal-dialog.vjs-text-track-settings {
|
|
1799
|
+
background-color: #2b333f;
|
|
1800
|
+
background-color: rgba(43, 51, 63, .75);
|
|
1801
|
+
color: #fff;
|
|
1802
|
+
height: 70%
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
.vjs-spatial-navigation-enabled .vjs-modal-dialog.vjs-text-track-settings {
|
|
1806
|
+
height: 80%
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.vjs-error .vjs-text-track-settings {
|
|
1810
|
+
display: none
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.vjs-text-track-settings .vjs-modal-dialog-content {
|
|
1814
|
+
display: table
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
.vjs-text-track-settings .vjs-track-settings-colors, .vjs-text-track-settings .vjs-track-settings-controls, .vjs-text-track-settings .vjs-track-settings-font {
|
|
1818
|
+
display: table-cell
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
.vjs-text-track-settings .vjs-track-settings-controls {
|
|
1822
|
+
text-align: right;
|
|
1823
|
+
vertical-align: bottom
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
@supports (display:grid) {
|
|
1827
|
+
.vjs-text-track-settings .vjs-modal-dialog-content {
|
|
1828
|
+
display: grid;
|
|
1829
|
+
grid-template-columns: 1fr 1fr;
|
|
1830
|
+
grid-template-rows: 1fr;
|
|
1831
|
+
padding: 20px 24px 0 24px
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.vjs-track-settings-controls .vjs-default-button {
|
|
1835
|
+
margin-bottom: 20px
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.vjs-text-track-settings .vjs-track-settings-controls {
|
|
1839
|
+
grid-column: 1/-1
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content, .vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content, .vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content {
|
|
1843
|
+
grid-template-columns: 1fr
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.vjs-text-track-settings select {
|
|
1848
|
+
font-size: inherit
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
.vjs-track-setting>select {
|
|
1852
|
+
margin-right: 1em;
|
|
1853
|
+
margin-bottom: .5em
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
.vjs-text-track-settings fieldset {
|
|
1857
|
+
margin: 10px;
|
|
1858
|
+
border: none
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
.vjs-text-track-settings fieldset span {
|
|
1862
|
+
display: inline-block;
|
|
1863
|
+
padding: 0 .6em .8em
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
.vjs-text-track-settings fieldset span>select {
|
|
1867
|
+
max-width: 7.3em
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
.vjs-text-track-settings legend {
|
|
1871
|
+
color: #fff;
|
|
1872
|
+
font-weight: 700;
|
|
1873
|
+
font-size: 1.2em
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
.vjs-text-track-settings .vjs-label {
|
|
1877
|
+
margin: 0 .5em .5em 0
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
.vjs-track-settings-controls button:active, .vjs-track-settings-controls button:focus {
|
|
1881
|
+
outline-style: solid;
|
|
1882
|
+
outline-width: medium;
|
|
1883
|
+
background-image: linear-gradient(0deg, #fff 88%, rgb(114.9141509434, 132.7028301887, 159.3858490566) 100%)
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
.vjs-track-settings-controls button:hover {
|
|
1887
|
+
color: rgba(43, 51, 63, .75)
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
.vjs-track-settings-controls button {
|
|
1891
|
+
background-color: #fff;
|
|
1892
|
+
background-image: linear-gradient(-180deg, #fff 88%, rgb(114.9141509434, 132.7028301887, 159.3858490566) 100%);
|
|
1893
|
+
color: #2b333f;
|
|
1894
|
+
cursor: pointer;
|
|
1895
|
+
border-radius: 2px
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
.vjs-track-settings-controls .vjs-default-button {
|
|
1899
|
+
margin-right: 1em
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
.vjs-title-bar {
|
|
1903
|
+
background: rgba(0, 0, 0, .9);
|
|
1904
|
+
background: linear-gradient(180deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .7) 60%, rgba(0, 0, 0, 0) 100%);
|
|
1905
|
+
font-size: 1.2em;
|
|
1906
|
+
line-height: 1.5;
|
|
1907
|
+
transition: opacity .1s;
|
|
1908
|
+
padding: .666em 1.333em 4em;
|
|
1909
|
+
pointer-events: none;
|
|
1910
|
+
position: absolute;
|
|
1911
|
+
top: 0;
|
|
1912
|
+
width: 100%
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
.vjs-error .vjs-title-bar {
|
|
1916
|
+
display: none
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
.vjs-title-bar-description, .vjs-title-bar-title {
|
|
1920
|
+
margin: 0;
|
|
1921
|
+
overflow: hidden;
|
|
1922
|
+
text-overflow: ellipsis;
|
|
1923
|
+
white-space: nowrap
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
.vjs-title-bar-title {
|
|
1927
|
+
font-weight: 700;
|
|
1928
|
+
margin-bottom: .333em
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
.vjs-playing.vjs-user-inactive .vjs-title-bar {
|
|
1932
|
+
opacity: 0;
|
|
1933
|
+
transition: opacity 1s
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
.video-js .vjs-skip-forward-5 {
|
|
1937
|
+
cursor: pointer
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
.video-js .vjs-skip-forward-10 {
|
|
1941
|
+
cursor: pointer
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
.video-js .vjs-skip-forward-30 {
|
|
1945
|
+
cursor: pointer
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
.video-js .vjs-skip-backward-5 {
|
|
1949
|
+
cursor: pointer
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
.video-js .vjs-skip-backward-10 {
|
|
1953
|
+
cursor: pointer
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
.video-js .vjs-skip-backward-30 {
|
|
1957
|
+
cursor: pointer
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
.video-js .vjs-transient-button {
|
|
1961
|
+
position: absolute;
|
|
1962
|
+
height: 3em;
|
|
1963
|
+
display: flex;
|
|
1964
|
+
align-items: center;
|
|
1965
|
+
justify-content: center;
|
|
1966
|
+
background-color: rgba(50, 50, 50, .5);
|
|
1967
|
+
cursor: pointer;
|
|
1968
|
+
opacity: 1;
|
|
1969
|
+
transition: opacity 1s
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
.video-js:not(.vjs-has-started) .vjs-transient-button {
|
|
1973
|
+
display: none
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
.video-js.not-hover .vjs-transient-button:not(.force-display), .video-js.vjs-user-inactive .vjs-transient-button:not(.force-display) {
|
|
1977
|
+
opacity: 0
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
.video-js .vjs-transient-button span {
|
|
1981
|
+
padding: 0 .5em
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
.video-js .vjs-transient-button.vjs-left {
|
|
1985
|
+
left: 1em
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
.video-js .vjs-transient-button.vjs-right {
|
|
1989
|
+
right: 1em
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
.video-js .vjs-transient-button.vjs-top {
|
|
1993
|
+
top: 1em
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
.video-js .vjs-transient-button.vjs-near-top {
|
|
1997
|
+
top: 4em
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
.video-js .vjs-transient-button.vjs-bottom {
|
|
2001
|
+
bottom: 4em
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
.video-js .vjs-transient-button:hover {
|
|
2005
|
+
background-color: rgba(50, 50, 50, .9)
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
@media print {
|
|
2009
|
+
.video-js>:not(.vjs-tech):not(.vjs-poster) {
|
|
2010
|
+
visibility: hidden
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.vjs-resize-manager {
|
|
2015
|
+
position: absolute;
|
|
2016
|
+
top: 0;
|
|
2017
|
+
left: 0;
|
|
2018
|
+
width: 100%;
|
|
2019
|
+
height: 100%;
|
|
2020
|
+
border: none;
|
|
2021
|
+
z-index: -1000
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
.js-focus-visible .video-js :focus:not(.focus-visible) {
|
|
2025
|
+
outline: 0
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
.video-js :focus:not(:focus-visible) {
|
|
2029
|
+
outline: 0
|
|
2030
|
+
}
|
|
2031
|
+
.och__player {
|
|
2032
|
+
width: 100%;
|
|
2033
|
+
height: auto;
|
|
2034
|
+
aspect-ratio: 16 / 9;
|
|
2035
|
+
}
|
|
2036
|
+
.video-js .vjs-big-play-button,
|
|
2037
|
+
.video-js:hover .vjs-big-play-button {
|
|
2038
|
+
font-size: 45px;
|
|
2039
|
+
border: none;
|
|
2040
|
+
background: transparent;
|
|
2041
|
+
transition: all 0.2s ease;
|
|
2042
|
+
}
|
|
2043
|
+
</style>
|
|
2044
|
+
`}};k.styles=[Z],d([(0,D.property)({type:Array})],k.prototype,"sources",2),d([(0,D.query)("#player")],k.prototype,"$player",2),k=d([w("och-player")],k);var L=class{formatFileSize(t){let e=["B","KB","MB","GB"];if(t===0)return"0 B";let o=Math.floor(Math.log(t)/Math.log(1024));return Math.round(t/1024**o*100)/100+" "+e[o]}formatDuration(t){let e=Math.floor(t/60),o=Math.floor(t%60);return`${e}:${o.toString().padStart(2,"0")}`}getMultimediaSubtype(t){let e=t.format||"";return e.startsWith("video/")?"video":e.startsWith("image/")?"image":e.includes("presentation")||e.includes("pdf")||e.includes("powerpoint")||e.includes("slides")||e.includes("application/vnd.ms-powerpoint")||e.includes("application/vnd.openxmlformats-officedocument.presentationml")||t.slides&&t.slides.length>0?"presentation":t.duration||t.vodUrl?"video":"image"}renderThumbnail(t,e,o,s,i){return!e.showThumbnail||t.type==="faq"?r.html``:r.html`
|
|
2045
|
+
<div class="ol-asset__thumbnail">
|
|
2046
|
+
${this.renderThumbnailContent(t)}
|
|
2047
|
+
${this.renderMetadata(t,e)}
|
|
2048
|
+
${this.renderThumbnailOverlay(t)}
|
|
2049
|
+
${this.renderHoverOverlay(t,o,i,s)}
|
|
2050
|
+
</div>
|
|
2051
|
+
`}renderThumbnailContent(t){switch(t.type){case"multimedia":{let e=t;switch(this.getMultimediaSubtype(e)){case"video":return this.renderVideoThumbnail(e);case"presentation":return this.renderPresentationThumbnail(e);case"image":default:return r.html`
|
|
2052
|
+
<img
|
|
2053
|
+
src="${(0,P.ifDefined)(e.thumbnail||e.url)}"
|
|
2054
|
+
alt="${e.name}"
|
|
2055
|
+
class="ol-asset__image"
|
|
2056
|
+
/>
|
|
2057
|
+
`}}case"file":{let e=t;switch(this.getMultimediaSubtype(e)){case"video":return this.renderVideoThumbnail(e);case"presentation":return this.renderPresentationThumbnail(e);case"image":default:return r.html`
|
|
2058
|
+
<img
|
|
2059
|
+
src="${(0,P.ifDefined)(e.thumbnail||e.url)}"
|
|
2060
|
+
alt="${e.name}"
|
|
2061
|
+
class="ol-asset__image"
|
|
2062
|
+
/>
|
|
2063
|
+
`}}default:return r.html`
|
|
2064
|
+
<img
|
|
2065
|
+
src="${(0,P.ifDefined)(t.thumbnail||t.url)}"
|
|
2066
|
+
alt="${t.name}"
|
|
2067
|
+
class="ol-asset__image"
|
|
2068
|
+
/>
|
|
2069
|
+
`}}renderVideoThumbnail(t){return r.html`
|
|
2070
|
+
<och-player
|
|
2071
|
+
class="ol-asset__video-player"
|
|
2072
|
+
.sources=${[{src:t.url||"",type:t.format||"video/mp4"}]}
|
|
2073
|
+
></och-player>
|
|
2074
|
+
`}renderPresentationThumbnail(t){return r.html`
|
|
2075
|
+
<div class="ol-asset__presentation-preview">
|
|
2076
|
+
${(0,_.when)(t.slides&&t.slides.length>0,()=>r.html`
|
|
2077
|
+
<img
|
|
2078
|
+
src="${t.slides[0]}"
|
|
2079
|
+
alt="Presentation preview"
|
|
2080
|
+
class="ol-asset__presentation-image"
|
|
2081
|
+
/>
|
|
2082
|
+
`,()=>r.html`
|
|
2083
|
+
<div class="ol-asset__presentation-fallback">
|
|
2084
|
+
<div class="ol-asset__presentation-icon">
|
|
2085
|
+
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2086
|
+
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
2087
|
+
<polyline points="14 2 14 8 20 8"></polyline>
|
|
2088
|
+
<line x1="16" y1="13" x2="8" y2="13"></line>
|
|
2089
|
+
<line x1="16" y1="17" x2="8" y2="17"></line>
|
|
2090
|
+
<polyline points="10 9 9 9 8 9"></polyline>
|
|
2091
|
+
</svg>
|
|
2092
|
+
</div>
|
|
2093
|
+
<div class="ol-asset__presentation-name">${t.name}</div>
|
|
2094
|
+
</div>
|
|
2095
|
+
`)}
|
|
2096
|
+
</div>
|
|
2097
|
+
`}renderThumbnailOverlay(t){let e=[];if(t.type==="multimedia"||t.type==="file"){let o=t;this.getMultimediaSubtype(o)==="video"&&o.duration&&e.push(r.html`
|
|
2098
|
+
<div class="ol-asset__duration">${this.formatDuration(o.duration)}</div>
|
|
2099
|
+
`)}return r.html`${e}`}renderContent(t,e){let o=(t.type==="multimedia"||t.type==="file")&&!e.showName&&!e.showDescription&&!e.showTags;return r.html`
|
|
2100
|
+
<div class=${(0,oe.classMap)({"ol-asset__content":!0,"ol-asset__content--assets":!!o})}>
|
|
2101
|
+
${this.renderName(t,e)}
|
|
2102
|
+
${this.renderDescription(t,e)}
|
|
2103
|
+
${this.renderPrice(t)}
|
|
2104
|
+
${this.renderTags(t,e)}
|
|
2105
|
+
</div>
|
|
2106
|
+
`}renderName(t,e){return t.type==="faq"?r.html``:t.type==="product"?r.html`
|
|
2107
|
+
<div class="ol-asset__name">${t.name}</div>
|
|
2108
|
+
`:(t.type==="multimedia"||t.type==="file")&&this.getMultimediaSubtype(t)==="presentation"&&(!t.slides||t.slides.length===0)?r.html`
|
|
2109
|
+
<div class="ol-asset__name">${t.name}</div>
|
|
2110
|
+
`:e.showName?r.html`
|
|
2111
|
+
<div class="ol-asset__name">${t.name}</div>
|
|
2112
|
+
`:r.html``}renderDescription(t,e){if(t.type==="faq"){let s=t;return s.answer?r.html`
|
|
2113
|
+
<div class="ol-asset__description ol-asset__answer">${s.answer}</div>
|
|
2114
|
+
`:r.html``}return t.description?t.type==="product"?r.html`
|
|
2115
|
+
<div class="ol-asset__description">${X(t.description)}</div>
|
|
2116
|
+
`:e.showDescription?r.html`
|
|
2117
|
+
<div class="ol-asset__description">${t.description}</div>
|
|
2118
|
+
`:r.html``:r.html``}renderPrice(t){if(t.type!=="product")return r.html``;let e=t;return e.price?r.html`
|
|
2119
|
+
<div class="ol-asset__price">
|
|
2120
|
+
${e.currency} ${e.price}
|
|
2121
|
+
</div>
|
|
2122
|
+
`:r.html``}renderMetadata(t,e){if(!e.showMetadata)return r.html``;let o=[];if(e.showSize&&t.type!=="faq"&&"size"in t&&t.size&&typeof t.size=="number"&&o.push(r.html`
|
|
2123
|
+
<div class="ol-asset__meta-item">
|
|
2124
|
+
<span>${this.formatFileSize(t.size)}</span>
|
|
2125
|
+
</div>
|
|
2126
|
+
`),e.showDuration&&(t.type==="multimedia"||t.type==="file")){let s=t;this.getMultimediaSubtype(s)==="video"&&s.duration&&o.push(r.html`
|
|
2127
|
+
<div class="ol-asset__meta-item">
|
|
2128
|
+
<span>⏱️</span>
|
|
2129
|
+
<span>${this.formatDuration(s.duration)}</span>
|
|
2130
|
+
</div>
|
|
2131
|
+
`)}return o.length===0?r.html``:r.html`
|
|
2132
|
+
<div class="ol-asset__metadata">
|
|
2133
|
+
${o}
|
|
2134
|
+
</div>
|
|
2135
|
+
`}renderTags(t,e){if(!e.showTags)return r.html``;let o=[];switch(t.type){case"product":o=t.tags||[];break;case"multimedia":case"file":o=t.labels||[];break}return o.length===0?r.html``:r.html`
|
|
2136
|
+
<div class="ol-asset__tags">
|
|
2137
|
+
${o.slice(0,3).map(s=>r.html`
|
|
2138
|
+
<span class="ol-asset__tag">${s}</span>
|
|
2139
|
+
`)}
|
|
2140
|
+
</div>
|
|
2141
|
+
`}renderLoading(){return r.html`
|
|
2142
|
+
<div class="ol-asset__loading">
|
|
2143
|
+
<div class="ol-asset__spinner"></div>
|
|
2144
|
+
<span>Loading...</span>
|
|
2145
|
+
</div>
|
|
2146
|
+
`}renderError(t){return r.html`
|
|
2147
|
+
<div class="ol-asset__error">
|
|
2148
|
+
<span class="ol-asset__error-icon">⚠️</span>
|
|
2149
|
+
<span>${t}</span>
|
|
2150
|
+
</div>
|
|
2151
|
+
`}renderModal(t,e,o){return e?r.html`
|
|
2152
|
+
<div class="ol-asset__modal-overlay" @click=${o}>
|
|
2153
|
+
<div class="ol-asset__modal" @click=${s=>s.stopPropagation()}>
|
|
2154
|
+
<ol-button class="ol-asset__modal-close" @click=${o}>
|
|
2155
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
2156
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
2157
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
2158
|
+
</svg>
|
|
2159
|
+
</ol-button>
|
|
2160
|
+
<div class="ol-asset__modal-content">
|
|
2161
|
+
${this.renderModalContent(t)}
|
|
2162
|
+
</div>
|
|
2163
|
+
</div>
|
|
2164
|
+
</div>
|
|
2165
|
+
`:r.html``}renderModalContent(t){switch(t.type){case"multimedia":{let e=t,o=this.getMultimediaSubtype(e);return o==="image"?r.html`
|
|
2166
|
+
<img
|
|
2167
|
+
src="${(0,P.ifDefined)(e.url)}"
|
|
2168
|
+
alt="${e.name}"
|
|
2169
|
+
class="ol-asset__modal-image"
|
|
2170
|
+
/>
|
|
2171
|
+
<div class="ol-asset__modal-info">
|
|
2172
|
+
<h3 class="ol-asset__modal-title">${e.name}</h3>
|
|
2173
|
+
${e.description?r.html`<p class="ol-asset__modal-description">${e.description}</p>`:r.html``}
|
|
2174
|
+
</div>
|
|
2175
|
+
`:r.html`
|
|
2176
|
+
<div class="ol-asset__modal-info">
|
|
2177
|
+
<h3 class="ol-asset__modal-title">${e.name}</h3>
|
|
2178
|
+
${e.description?r.html`<p class="ol-asset__modal-description">${e.description}</p>`:r.html``}
|
|
2179
|
+
<p class="ol-asset__modal-type">Type: ${o}</p>
|
|
2180
|
+
</div>
|
|
2181
|
+
`}case"file":{let e=t,o=this.getMultimediaSubtype(e);return o==="image"?r.html`
|
|
2182
|
+
<img
|
|
2183
|
+
src="${(0,P.ifDefined)(e.url)}"
|
|
2184
|
+
alt="${e.name}"
|
|
2185
|
+
class="ol-asset__modal-image"
|
|
2186
|
+
/>
|
|
2187
|
+
<div class="ol-asset__modal-info">
|
|
2188
|
+
<h3 class="ol-asset__modal-title">${e.name}</h3>
|
|
2189
|
+
${e.description?r.html`<p class="ol-asset__modal-description">${e.description}</p>`:r.html``}
|
|
2190
|
+
</div>
|
|
2191
|
+
`:r.html`
|
|
2192
|
+
<div class="ol-asset__modal-info">
|
|
2193
|
+
<h3 class="ol-asset__modal-title">${e.name}</h3>
|
|
2194
|
+
${e.description?r.html`<p class="ol-asset__modal-description">${e.description}</p>`:r.html``}
|
|
2195
|
+
<p class="ol-asset__modal-type">Type: ${o}</p>
|
|
2196
|
+
</div>
|
|
2197
|
+
`}case"faq":return r.html`
|
|
2198
|
+
<div class="ol-asset__modal-faq">
|
|
2199
|
+
<div class="ol-asset__modal-answer">${t.answer||t.description}</div>
|
|
2200
|
+
</div>
|
|
2201
|
+
`;default:return r.html`
|
|
2202
|
+
<div class="ol-asset__modal-info">
|
|
2203
|
+
<h3 class="ol-asset__modal-title">${t.name}</h3>
|
|
2204
|
+
${t.description?r.html`<p class="ol-asset__modal-description">${t.description}</p>`:r.html``}
|
|
2205
|
+
</div>
|
|
2206
|
+
`}}renderHoverOverlay(t,e,o,s){let i=t.type==="multimedia"&&this.getMultimediaSubtype(t)==="video",n=(t.type==="multimedia"||t.type==="file")&&this.getMultimediaSubtype(t)==="presentation"&&(!t.slides||t.slides.length===0);return i?r.html`
|
|
2207
|
+
<div class="ol-asset__video-controls">
|
|
2208
|
+
${(0,_.when)(o,()=>r.html`
|
|
2209
|
+
<ol-button
|
|
2210
|
+
class="ol-asset__video-btn ol-asset__video-btn--maximize"
|
|
2211
|
+
@click=${c=>{c.stopPropagation(),o(t)}}
|
|
2212
|
+
title="Maximize ${t.name}"
|
|
2213
|
+
>
|
|
2214
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
2215
|
+
<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>
|
|
2216
|
+
</svg>
|
|
2217
|
+
</ol-button>
|
|
2218
|
+
`)}
|
|
2219
|
+
${(0,_.when)(e,()=>r.html`
|
|
2220
|
+
<ol-button
|
|
2221
|
+
class="ol-asset__video-btn ol-asset__video-btn--download ${s?"ol-asset__video-btn--downloading":""}"
|
|
2222
|
+
@click=${c=>{c.stopPropagation(),e(t)}}
|
|
2223
|
+
title="Download ${t.name}"
|
|
2224
|
+
?disabled=${s}
|
|
2225
|
+
>
|
|
2226
|
+
${(0,_.when)(s,()=>r.html`
|
|
2227
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="ol-asset__download-spinner">
|
|
2228
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
2229
|
+
<path d="M12 2a10 10 0 0 1 10 10"></path>
|
|
2230
|
+
</svg>
|
|
2231
|
+
`,()=>r.html`
|
|
2232
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
2233
|
+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
|
2234
|
+
<polyline points="7,10 12,15 17,10"></polyline>
|
|
2235
|
+
<line x1="12" y1="15" x2="12" y2="3"></line>
|
|
2236
|
+
</svg>
|
|
2237
|
+
`)}
|
|
2238
|
+
</ol-button>
|
|
2239
|
+
`)}
|
|
2240
|
+
</div>
|
|
2241
|
+
`:r.html`
|
|
2242
|
+
<div class="ol-asset__hover-overlay">
|
|
2243
|
+
<div class="ol-asset__hover-buttons">
|
|
2244
|
+
${(0,_.when)(t.type==="product",()=>r.html`
|
|
2245
|
+
<ol-button
|
|
2246
|
+
class="ol-asset__hover-btn ol-asset__hover-btn--external"
|
|
2247
|
+
@click=${c=>{c.stopPropagation(),this.openProductInNewWindow(t)}}
|
|
2248
|
+
title="Open ${t.name} in new window"
|
|
2249
|
+
>
|
|
2250
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
2251
|
+
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
|
|
2252
|
+
<polyline points="15,3 21,3 21,9"></polyline>
|
|
2253
|
+
<line x1="10" y1="14" x2="21" y2="3"></line>
|
|
2254
|
+
</svg>
|
|
2255
|
+
</ol-button>
|
|
2256
|
+
`,()=>r.html`
|
|
2257
|
+
${(0,_.when)(o&&!n,()=>r.html`
|
|
2258
|
+
<ol-button
|
|
2259
|
+
class="ol-asset__hover-btn ol-asset__hover-btn--maximize"
|
|
2260
|
+
@click=${c=>{c.stopPropagation(),o(t)}}
|
|
2261
|
+
title="Maximize ${t.name}"
|
|
2262
|
+
>
|
|
2263
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
2264
|
+
<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>
|
|
2265
|
+
</svg>
|
|
2266
|
+
</ol-button>
|
|
2267
|
+
`)}
|
|
2268
|
+
${(0,_.when)(e&&["multimedia","file"].includes(t.type),()=>r.html`
|
|
2269
|
+
<ol-button
|
|
2270
|
+
class="ol-asset__hover-btn ol-asset__hover-btn--download ${s?"ol-asset__hover-btn--downloading":""}"
|
|
2271
|
+
@click=${c=>{c.stopPropagation(),e(t)}}
|
|
2272
|
+
title="Download ${t.name}"
|
|
2273
|
+
?disabled=${s}
|
|
2274
|
+
>
|
|
2275
|
+
${(0,_.when)(s,()=>r.html`
|
|
2276
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="ol-asset__download-spinner">
|
|
2277
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
2278
|
+
<path d="M12 2a10 10 0 0 1 10 10"></path>
|
|
2279
|
+
</svg>
|
|
2280
|
+
`,()=>r.html`
|
|
2281
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
2282
|
+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
|
2283
|
+
<polyline points="7,10 12,15 17,10"></polyline>
|
|
2284
|
+
<line x1="12" y1="15" x2="12" y2="3"></line>
|
|
2285
|
+
</svg>
|
|
2286
|
+
`)}
|
|
2287
|
+
</ol-button>
|
|
2288
|
+
`)}
|
|
2289
|
+
`)}
|
|
2290
|
+
</div>
|
|
2291
|
+
</div>
|
|
2292
|
+
`}openProductInNewWindow(t){t.url&&window.open(t.url,"_blank","noopener,noreferrer")}};var se=require("lit"),ie=se.css`
|
|
2293
|
+
:host {
|
|
2294
|
+
display: block;
|
|
2295
|
+
--asset-border-radius: 8px;
|
|
2296
|
+
--asset-padding: 12px;
|
|
2297
|
+
--asset-gap: 8px;
|
|
2298
|
+
--asset-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
2299
|
+
--asset-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
2300
|
+
--asset-transition: all 0.2s ease-in-out;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
.ol-asset {
|
|
2304
|
+
display: flex;
|
|
2305
|
+
flex-direction: column;
|
|
2306
|
+
border-radius: var(--asset-border-radius);
|
|
2307
|
+
background: var(--ol-color-surface, #ffffff);
|
|
2308
|
+
transition: var(--asset-transition);
|
|
2309
|
+
overflow: hidden;
|
|
2310
|
+
position: relative;
|
|
2311
|
+
cursor: default;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
.ol-asset--loading {
|
|
2317
|
+
opacity: 0.7;
|
|
2318
|
+
pointer-events: none;
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
.ol-asset--error {
|
|
2322
|
+
border-color: var(--ol-color-error, #ef4444);
|
|
2323
|
+
background: var(--ol-color-error-surface, #fef2f2);
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
.ol-asset--compact {
|
|
2327
|
+
flex-direction: row;
|
|
2328
|
+
align-items: center;
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
.ol-asset--minimal {
|
|
2332
|
+
padding: var(--asset-padding);
|
|
2333
|
+
border: none;
|
|
2334
|
+
box-shadow: none;
|
|
2335
|
+
background: transparent;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
.ol-asset--minimal:hover {
|
|
2339
|
+
transform: none;
|
|
2340
|
+
box-shadow: none;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
/* Sizes */
|
|
2344
|
+
.ol-asset--small {
|
|
2345
|
+
--asset-padding: 8px;
|
|
2346
|
+
--asset-gap: 6px;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
.ol-asset--medium {
|
|
2350
|
+
--asset-padding: 12px;
|
|
2351
|
+
--asset-gap: 8px;
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
.ol-asset--large {
|
|
2355
|
+
--asset-padding: 16px;
|
|
2356
|
+
--asset-gap: 12px;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
/* Thumbnail */
|
|
2360
|
+
.ol-asset__thumbnail {
|
|
2361
|
+
position: relative;
|
|
2362
|
+
width: 100%;
|
|
2363
|
+
aspect-ratio: 16/9;
|
|
2364
|
+
overflow: hidden;
|
|
2365
|
+
background: var(--ol-color-surface-secondary, #f9fafb);
|
|
2366
|
+
display: flex;
|
|
2367
|
+
align-items: center;
|
|
2368
|
+
justify-content: center;
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
.ol-asset--compact .ol-asset__thumbnail {
|
|
2372
|
+
width: 60px;
|
|
2373
|
+
height: 60px;
|
|
2374
|
+
aspect-ratio: 1;
|
|
2375
|
+
flex-shrink: 0;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
.ol-asset--minimal .ol-asset__thumbnail {
|
|
2379
|
+
display: none;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
.ol-asset__image {
|
|
2383
|
+
width: 100%;
|
|
2384
|
+
height: 100%;
|
|
2385
|
+
object-fit: contain;
|
|
2386
|
+
transition: var(--asset-transition);
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
.ol-asset__video-player {
|
|
2390
|
+
width: 100%;
|
|
2391
|
+
height: 100%;
|
|
2392
|
+
min-height: 120px;
|
|
2393
|
+
aspect-ratio: 16/9;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
.ol-asset__duration {
|
|
2397
|
+
position: absolute;
|
|
2398
|
+
bottom: 8px;
|
|
2399
|
+
right: 8px;
|
|
2400
|
+
background: rgba(0, 0, 0, 0.8);
|
|
2401
|
+
color: white;
|
|
2402
|
+
padding: 2px 6px;
|
|
2403
|
+
border-radius: 4px;
|
|
2404
|
+
font-size: 12px;
|
|
2405
|
+
font-weight: 500;
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
.ol-asset__format-badge {
|
|
2409
|
+
position: absolute;
|
|
2410
|
+
top: 8px;
|
|
2411
|
+
left: 8px;
|
|
2412
|
+
background: rgba(0, 0, 0, 0.8);
|
|
2413
|
+
color: white;
|
|
2414
|
+
padding: 2px 6px;
|
|
2415
|
+
border-radius: 4px;
|
|
2416
|
+
font-size: 10px;
|
|
2417
|
+
font-weight: 500;
|
|
2418
|
+
text-transform: uppercase;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
/* Content */
|
|
2424
|
+
.ol-asset__content {
|
|
2425
|
+
padding: var(--asset-padding);
|
|
2426
|
+
display: flex;
|
|
2427
|
+
flex-direction: column;
|
|
2428
|
+
gap: var(--asset-gap);
|
|
2429
|
+
flex: 1;
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
.ol-asset__content--assets {
|
|
2433
|
+
display: none;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
.ol-asset--compact .ol-asset__content {
|
|
2437
|
+
padding-left: var(--asset-padding);
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
.ol-asset--minimal .ol-asset__content {
|
|
2441
|
+
padding: 0;
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
.ol-asset__name {
|
|
2445
|
+
font-size: 14px;
|
|
2446
|
+
font-weight: 600;
|
|
2447
|
+
color: var(--ol-color-text-primary, #111827);
|
|
2448
|
+
line-height: 1.4;
|
|
2449
|
+
display: -webkit-box;
|
|
2450
|
+
-webkit-line-clamp: 2;
|
|
2451
|
+
-webkit-box-orient: vertical;
|
|
2452
|
+
overflow: hidden;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
.ol-asset--large .ol-asset__name {
|
|
2456
|
+
font-size: 16px;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
.ol-asset--small .ol-asset__name {
|
|
2460
|
+
font-size: 12px;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
.ol-asset__description {
|
|
2464
|
+
font-size: 12px;
|
|
2465
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
2466
|
+
line-height: 1.4;
|
|
2467
|
+
display: -webkit-box;
|
|
2468
|
+
-webkit-line-clamp: 2;
|
|
2469
|
+
-webkit-box-orient: vertical;
|
|
2470
|
+
overflow: hidden;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.ol-asset--large .ol-asset__description {
|
|
2474
|
+
font-size: 14px;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
.ol-asset--small .ol-asset__description {
|
|
2478
|
+
font-size: 11px;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
.ol-asset__price {
|
|
2482
|
+
font-size: 14px;
|
|
2483
|
+
font-weight: 600;
|
|
2484
|
+
color: var(--ol-color-primary, #3b82f6);
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
.ol-asset--large .ol-asset__price {
|
|
2488
|
+
font-size: 16px;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
.ol-asset--small .ol-asset__price {
|
|
2492
|
+
font-size: 12px;
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
/* Metadata */
|
|
2496
|
+
.ol-asset__metadata {
|
|
2497
|
+
display: flex;
|
|
2498
|
+
flex-wrap: wrap;
|
|
2499
|
+
gap: 8px;
|
|
2500
|
+
font-size: 11px;
|
|
2501
|
+
color: var(--ol-color-text-tertiary, #9ca3af);
|
|
2502
|
+
position: absolute;
|
|
2503
|
+
bottom: 8px;
|
|
2504
|
+
left: 8px;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
.ol-asset--large .ol-asset__metadata {
|
|
2508
|
+
font-size: 12px;
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
.ol-asset--small .ol-asset__metadata {
|
|
2512
|
+
font-size: 10px;
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
.ol-asset__meta-item {
|
|
2516
|
+
display: flex;
|
|
2517
|
+
align-items: center;
|
|
2518
|
+
gap: 4px;
|
|
2519
|
+
color: #fff;
|
|
2520
|
+
border-radius:99px;
|
|
2521
|
+
padding: 0 var(--ol-spacing-x-small);
|
|
2522
|
+
background-color: var(--ol-color-surface-secondary, rgba(0, 0, 0, 0.8));
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
/* Tags */
|
|
2526
|
+
.ol-asset__tags {
|
|
2527
|
+
display: flex;
|
|
2528
|
+
flex-wrap: wrap;
|
|
2529
|
+
gap: 4px;
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
.ol-asset__tag {
|
|
2533
|
+
background: var(--ol-color-surface-secondary, #f3f4f6);
|
|
2534
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
2535
|
+
padding: 2px 6px;
|
|
2536
|
+
border-radius: 4px;
|
|
2537
|
+
font-size: 10px;
|
|
2538
|
+
font-weight: 500;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
.ol-asset--large .ol-asset__tag {
|
|
2542
|
+
font-size: 11px;
|
|
2543
|
+
padding: 3px 8px;
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
.ol-asset--small .ol-asset__tag {
|
|
2547
|
+
font-size: 9px;
|
|
2548
|
+
padding: 1px 4px;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
/* FAQ specific styles */
|
|
2552
|
+
.ol-asset--faq {
|
|
2553
|
+
background: transparent;
|
|
2554
|
+
border: none;
|
|
2555
|
+
box-shadow: none;
|
|
2556
|
+
padding: 0;
|
|
2557
|
+
margin: 0;
|
|
2558
|
+
cursor: pointer;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
.ol-asset--faq:hover {
|
|
2562
|
+
transform: none;
|
|
2563
|
+
box-shadow: none;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
.ol-asset--faq .ol-asset__thumbnail {
|
|
2567
|
+
display: none;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
.ol-asset--faq .ol-asset__content {
|
|
2571
|
+
gap: 0;
|
|
2572
|
+
border-radius: 18px 18px 4px 18px;
|
|
2573
|
+
position: relative;
|
|
2574
|
+
margin-left: auto;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.ol-asset--faq .ol-asset__content::before {
|
|
2578
|
+
content: "";
|
|
2579
|
+
position: absolute;
|
|
2580
|
+
bottom: 0;
|
|
2581
|
+
right: -8px;
|
|
2582
|
+
width: 0;
|
|
2583
|
+
height: 0;
|
|
2584
|
+
border-left: 8px solid var(--ol-color-primary, #3b82f6);
|
|
2585
|
+
border-top: 8px solid transparent;
|
|
2586
|
+
border-bottom: 8px solid transparent;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
.ol-asset--faq .ol-asset__name {
|
|
2590
|
+
display: none;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
.ol-asset--faq .ol-asset__description,
|
|
2594
|
+
.ol-asset--faq .ol-asset__answer {
|
|
2595
|
+
font-size: 14px;
|
|
2596
|
+
line-height: 1.5;
|
|
2597
|
+
padding: var(--ol-spacing-small);
|
|
2598
|
+
display: block;
|
|
2599
|
+
margin: 0;
|
|
2600
|
+
-webkit-line-clamp: none;
|
|
2601
|
+
-webkit-box-orient: initial;
|
|
2602
|
+
overflow: visible;
|
|
2603
|
+
white-space: pre-wrap;
|
|
2604
|
+
word-wrap: break-word;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
.ol-asset--large .ol-asset--faq .ol-asset__description,
|
|
2608
|
+
.ol-asset--large .ol-asset--faq .ol-asset__answer {
|
|
2609
|
+
font-size: 15px;
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
.ol-asset--small .ol-asset--faq .ol-asset__description,
|
|
2613
|
+
.ol-asset--small .ol-asset--faq .ol-asset__answer {
|
|
2614
|
+
font-size: 13px;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
.ol-asset--faq .ol-asset__metadata {
|
|
2618
|
+
display: none;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
.ol-asset--faq .ol-asset__meta-item {
|
|
2622
|
+
display: none;
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
/* Presentation specific styles */
|
|
2626
|
+
.ol-asset__presentation-preview {
|
|
2627
|
+
position: relative;
|
|
2628
|
+
width: 100%;
|
|
2629
|
+
height: 100%;
|
|
2630
|
+
display: flex;
|
|
2631
|
+
align-items: center;
|
|
2632
|
+
justify-content: center;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
.ol-asset__presentation-image {
|
|
2636
|
+
width: 100%;
|
|
2637
|
+
height: 100%;
|
|
2638
|
+
object-fit: cover;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
.ol-asset__presentation-fallback {
|
|
2642
|
+
display: flex;
|
|
2643
|
+
flex-direction: column;
|
|
2644
|
+
align-items: center;
|
|
2645
|
+
justify-content: center;
|
|
2646
|
+
width: calc(100% - calc(2 * var(--ol-spacing-medium, 16px)));
|
|
2647
|
+
padding: var(--ol-spacing-medium, 16px);
|
|
2648
|
+
height: calc(100% - calc(2 * var(--ol-spacing-medium, 16px) + 4px));
|
|
2649
|
+
gap: var(--ol-spacing-medium, 16px);
|
|
2650
|
+
background: linear-gradient(135deg, var(--ol-color-neutral-50, #f9fafb) 0%, var(--ol-color-neutral-100, #f3f4f6) 100%);
|
|
2651
|
+
border: 2px dashed var(--ol-color-neutral-300, #d1d5db);
|
|
2652
|
+
border-radius: var(--asset-border-radius, 8px);
|
|
2653
|
+
transition: all 0.2s ease;
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
.ol-asset:hover .ol-asset__presentation-fallback {
|
|
2657
|
+
background: linear-gradient(135deg, var(--ol-color-neutral-100, #f3f4f6) 0%, var(--ol-color-neutral-200, #e5e7eb) 100%);
|
|
2658
|
+
border-color: var(--ol-color-neutral-400, #9ca3af);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
.ol-asset__presentation-icon {
|
|
2662
|
+
display: flex;
|
|
2663
|
+
align-items: center;
|
|
2664
|
+
justify-content: center;
|
|
2665
|
+
width: 48px;
|
|
2666
|
+
height: 48px;
|
|
2667
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
2668
|
+
opacity: 0.7;
|
|
2669
|
+
transition: all 0.2s ease;
|
|
2670
|
+
flex-shrink: 0;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
.ol-asset:hover .ol-asset__presentation-icon {
|
|
2674
|
+
opacity: 1;
|
|
2675
|
+
transform: scale(1.05);
|
|
2676
|
+
color: var(--ol-color-text-primary, #111827);
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
.ol-asset__presentation-icon svg {
|
|
2680
|
+
width: 100%;
|
|
2681
|
+
height: 100%;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
.ol-asset__presentation-name {
|
|
2685
|
+
font-size: var(--ol-font-size-small, 0.875rem);
|
|
2686
|
+
font-weight: 500;
|
|
2687
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
2688
|
+
text-align: center;
|
|
2689
|
+
line-height: 1.4;
|
|
2690
|
+
max-width: 100%;
|
|
2691
|
+
overflow: hidden;
|
|
2692
|
+
text-overflow: ellipsis;
|
|
2693
|
+
display: -webkit-box;
|
|
2694
|
+
-webkit-line-clamp: 2;
|
|
2695
|
+
-webkit-box-orient: vertical;
|
|
2696
|
+
word-break: break-word;
|
|
2697
|
+
transition: color 0.2s ease;
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
.ol-asset:hover .ol-asset__presentation-name {
|
|
2701
|
+
color: var(--ol-color-text-primary, #111827);
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
.ol-asset--small .ol-asset__presentation-icon {
|
|
2705
|
+
width: 40px;
|
|
2706
|
+
height: 40px;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
.ol-asset--small .ol-asset__presentation-name {
|
|
2710
|
+
font-size: var(--ol-font-size-x-small, 0.75rem);
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
.ol-asset--large .ol-asset__presentation-icon {
|
|
2714
|
+
width: 80px;
|
|
2715
|
+
height: 80px;
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
.ol-asset--large .ol-asset__presentation-name {
|
|
2719
|
+
font-size: var(--ol-font-size-medium, 1rem);
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
/* Loading state */
|
|
2723
|
+
.ol-asset__loading {
|
|
2724
|
+
display: flex;
|
|
2725
|
+
align-items: center;
|
|
2726
|
+
justify-content: center;
|
|
2727
|
+
padding: 20px;
|
|
2728
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
.ol-asset__spinner {
|
|
2732
|
+
width: 20px;
|
|
2733
|
+
height: 20px;
|
|
2734
|
+
border: 2px solid var(--ol-color-border, #e5e7eb);
|
|
2735
|
+
border-top: 2px solid var(--ol-color-primary, #3b82f6);
|
|
2736
|
+
border-radius: 50%;
|
|
2737
|
+
animation: spin 1s linear infinite;
|
|
2738
|
+
margin-right: 8px;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
@keyframes spin {
|
|
2742
|
+
0% { transform: rotate(0deg); }
|
|
2743
|
+
100% { transform: rotate(360deg); }
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
/* Error state */
|
|
2747
|
+
.ol-asset__error {
|
|
2748
|
+
display: flex;
|
|
2749
|
+
align-items: center;
|
|
2750
|
+
justify-content: center;
|
|
2751
|
+
padding: 20px;
|
|
2752
|
+
color: var(--ol-color-error, #ef4444);
|
|
2753
|
+
text-align: center;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
.ol-asset__error-icon {
|
|
2757
|
+
margin-right: 8px;
|
|
2758
|
+
font-size: 16px;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
/* Responsive */
|
|
2762
|
+
@media (max-width: 768px) {
|
|
2763
|
+
.ol-asset--compact {
|
|
2764
|
+
flex-direction: column;
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
.ol-asset--compact .ol-asset__thumbnail {
|
|
2768
|
+
width: 100%;
|
|
2769
|
+
height: auto;
|
|
2770
|
+
aspect-ratio: 16/9;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
.ol-asset--compact .ol-asset__content {
|
|
2774
|
+
padding-left: var(--asset-padding);
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
/* Download button */
|
|
2779
|
+
.ol-asset__download-btn {
|
|
2780
|
+
position: absolute;
|
|
2781
|
+
top: 8px;
|
|
2782
|
+
right: 8px;
|
|
2783
|
+
width: 32px;
|
|
2784
|
+
height: 32px;
|
|
2785
|
+
border: none;
|
|
2786
|
+
border-radius: 50%;
|
|
2787
|
+
background: rgba(0, 0, 0, 0.7);
|
|
2788
|
+
color: white;
|
|
2789
|
+
cursor: pointer;
|
|
2790
|
+
display: flex;
|
|
2791
|
+
align-items: center;
|
|
2792
|
+
justify-content: center;
|
|
2793
|
+
transition: all 0.2s ease;
|
|
2794
|
+
z-index: 2;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
.ol-asset__download-btn:hover {
|
|
2798
|
+
background: rgba(0, 0, 0, 0.9);
|
|
2799
|
+
transform: scale(1.1);
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
.ol-asset__download-btn svg {
|
|
2803
|
+
width: 16px;
|
|
2804
|
+
height: 16px;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
.ol-asset__download-btn--downloading {
|
|
2808
|
+
opacity: 0.7;
|
|
2809
|
+
cursor: not-allowed;
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
.ol-asset__download-spinner {
|
|
2813
|
+
animation: spin 1s linear infinite;
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
@keyframes spin {
|
|
2817
|
+
from {
|
|
2818
|
+
transform: rotate(0deg);
|
|
2819
|
+
}
|
|
2820
|
+
to {
|
|
2821
|
+
transform: rotate(360deg);
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
/* Hover overlay */
|
|
2826
|
+
.ol-asset__hover-overlay {
|
|
2827
|
+
position: absolute;
|
|
2828
|
+
top: 0;
|
|
2829
|
+
left: 0;
|
|
2830
|
+
right: 0;
|
|
2831
|
+
bottom: 0;
|
|
2832
|
+
background: rgba(0, 0, 0, 0.3);
|
|
2833
|
+
backdrop-filter: blur(4px);
|
|
2834
|
+
display: flex;
|
|
2835
|
+
align-items: center;
|
|
2836
|
+
justify-content: center;
|
|
2837
|
+
opacity: 0;
|
|
2838
|
+
visibility: hidden;
|
|
2839
|
+
transition: all 0.3s ease;
|
|
2840
|
+
border-radius: var(--asset-border-radius);
|
|
2841
|
+
z-index: 10;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
.ol-asset:hover .ol-asset__hover-overlay {
|
|
2845
|
+
opacity: 1;
|
|
2846
|
+
visibility: visible;
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
.ol-asset__hover-buttons {
|
|
2850
|
+
display: flex;
|
|
2851
|
+
gap: 12px;
|
|
2852
|
+
align-items: center;
|
|
2853
|
+
justify-content: center;
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
.ol-asset__hover-btn {
|
|
2857
|
+
width: 48px;
|
|
2858
|
+
height: 48px;
|
|
2859
|
+
border: none;
|
|
2860
|
+
border-radius: 50%;
|
|
2861
|
+
background: rgba(255, 255, 255, 0.9);
|
|
2862
|
+
color: var(--ol-color-neutral-700, #374151);
|
|
2863
|
+
cursor: pointer;
|
|
2864
|
+
display: flex;
|
|
2865
|
+
align-items: center;
|
|
2866
|
+
justify-content: center;
|
|
2867
|
+
transition: all 0.2s ease;
|
|
2868
|
+
backdrop-filter: blur(8px);
|
|
2869
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
.ol-asset__hover-btn:hover {
|
|
2873
|
+
background: rgba(255, 255, 255, 1);
|
|
2874
|
+
transform: scale(1.1);
|
|
2875
|
+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
.ol-asset__hover-btn:active {
|
|
2879
|
+
transform: scale(0.95);
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
.ol-asset__hover-btn--maximize,
|
|
2883
|
+
.ol-asset__hover-btn--download,
|
|
2884
|
+
.ol-asset__hover-btn--external {
|
|
2885
|
+
background: rgba(255, 255, 255, 0.9);
|
|
2886
|
+
color: var(--ol-color-neutral-700, #374151);
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
.ol-asset__hover-btn--maximize:hover,
|
|
2890
|
+
.ol-asset__hover-btn--download:hover,
|
|
2891
|
+
.ol-asset__hover-btn--external:hover {
|
|
2892
|
+
background: rgba(255, 255, 255, 1);
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
.ol-asset__hover-btn--downloading {
|
|
2896
|
+
opacity: 0.7;
|
|
2897
|
+
cursor: not-allowed;
|
|
2898
|
+
transform: none !important;
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
.ol-asset__hover-btn--downloading:hover {
|
|
2902
|
+
transform: none;
|
|
2903
|
+
background: rgba(34, 197, 94, 0.9);
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
.ol-asset__hover-btn svg {
|
|
2907
|
+
width: 20px;
|
|
2908
|
+
height: 20px;
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
/* Video controls (always visible in top-right corner) */
|
|
2912
|
+
.ol-asset__video-controls {
|
|
2913
|
+
position: absolute;
|
|
2914
|
+
top: 8px;
|
|
2915
|
+
right: 8px;
|
|
2916
|
+
display: flex;
|
|
2917
|
+
gap: 6px;
|
|
2918
|
+
align-items: center;
|
|
2919
|
+
z-index: 20;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
.ol-asset__video-btn {
|
|
2923
|
+
width: 32px;
|
|
2924
|
+
height: 32px;
|
|
2925
|
+
border: none;
|
|
2926
|
+
border-radius: 6px;
|
|
2927
|
+
background: rgba(0, 0, 0, 0.6);
|
|
2928
|
+
color: white;
|
|
2929
|
+
cursor: pointer;
|
|
2930
|
+
display: flex;
|
|
2931
|
+
align-items: center;
|
|
2932
|
+
justify-content: center;
|
|
2933
|
+
transition: all 0.2s ease;
|
|
2934
|
+
backdrop-filter: blur(8px);
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
.ol-asset__video-btn:hover {
|
|
2938
|
+
background: rgba(0, 0, 0, 0.8);
|
|
2939
|
+
transform: scale(1.05);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
.ol-asset__video-btn:active {
|
|
2943
|
+
transform: scale(0.95);
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
.ol-asset__video-btn--downloading {
|
|
2947
|
+
opacity: 0.7;
|
|
2948
|
+
cursor: not-allowed;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
.ol-asset__video-btn--downloading:hover {
|
|
2952
|
+
transform: none;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
.ol-asset__video-btn svg {
|
|
2956
|
+
width: 16px;
|
|
2957
|
+
height: 16px;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
/* Mobile: Video controls always visible */
|
|
2961
|
+
@media (max-width: 768px) {
|
|
2962
|
+
.ol-asset__video-controls {
|
|
2963
|
+
opacity: 1;
|
|
2964
|
+
visibility: visible;
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
/* Hide existing download button when hover overlay is visible */
|
|
2969
|
+
.ol-asset:hover .ol-asset__download-btn {
|
|
2970
|
+
opacity: 0;
|
|
2971
|
+
visibility: hidden;
|
|
2972
|
+
}
|
|
2973
|
+
`;var V=class{constructor(t,e){this.asset=t,this.onClose=e}getMultimediaSubtype(t){let e=t.format||"";return e.startsWith("video/")?"video":e.startsWith("image/")?"image":e.includes("presentation")||e.includes("pdf")||e.includes("powerpoint")||e.includes("slides")||e.includes("application/vnd.ms-powerpoint")||e.includes("application/vnd.openxmlformats-officedocument.presentationml")||t.slides&&t.slides.length>0?"presentation":t.duration||t.vodUrl?"video":"image"}formatDuration(t){let e=Math.floor(t/60),o=Math.floor(t%60);return`${e}:${o.toString().padStart(2,"0")}`}async open(){await import("@onlive.ai/ui/dist/components/dialog/dialog.js"),await import("@onlive.ai/ui/dist/components/icon-button/icon-button.js"),await import("@onlive.ai/ui/dist/components/button/button.js"),await import("@onlive.ai/ui/dist/components/icon/icon.js");let t=this.asset;this.getMultimediaSubtype(t)==="presentation"&&(t.slides?.length??0)>0&&await Promise.all([import("@onlive.ai/ui/dist/components/carousel/carousel.js"),import("@onlive.ai/ui/dist/components/carousel-item/carousel-item.js")]),this.injectStyles(),this.createDialog(),this.dialog?.show()}close(){this.dialog?.hide(),setTimeout(()=>{this.removeDialog()},300)}createDialog(){if(this.dialog||!this.asset)return;let t=this.createDialogHTML(),e=document.createElement("div");e.innerHTML=t,this.dialog=e.firstElementChild,this.dialog&&(document.body.appendChild(this.dialog),this.attachEventListeners())}removeDialog(){this.dialog&&(this.dialog.parentNode&&this.dialog.parentNode.removeChild(this.dialog),this.dialog=void 0)}injectStyles(){if(document.getElementById("asset-modal-styles"))return;let t=document.createElement("style");t.id="asset-modal-styles",t.textContent=this.getModalStyles(),document.head.appendChild(t)}getModalStyles(){return`
|
|
2974
|
+
|
|
2975
|
+
ol-dialog::part(base){
|
|
2976
|
+
z-index: 1000000;
|
|
2977
|
+
}
|
|
2978
|
+
ol-dialog.ol-asset__dialog {
|
|
2979
|
+
--width: 90vw;
|
|
2980
|
+
--max-width: 1400px;
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
ol-dialog.ol-asset__dialog[data-fullscreen="true"] {
|
|
2984
|
+
--width: 100vw;
|
|
2985
|
+
--max-width: 100vw;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
.ol-asset__dialog-content {
|
|
2989
|
+
display: flex;
|
|
2990
|
+
flex-direction: column;
|
|
2991
|
+
max-height: 85vh;
|
|
2992
|
+
overflow: hidden;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
.ol-asset__dialog-body {
|
|
2996
|
+
flex: 1;
|
|
2997
|
+
overflow-y: auto;
|
|
2998
|
+
padding: 0;
|
|
2999
|
+
display: flex;
|
|
3000
|
+
flex-direction: column;
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
.ol-asset__modal-media-container {
|
|
3004
|
+
position: relative;
|
|
3005
|
+
width: 100%;
|
|
3006
|
+
display: flex;
|
|
3007
|
+
align-items: center;
|
|
3008
|
+
justify-content: center;
|
|
3009
|
+
background: var(--ol-color-neutral-50, #f9fafb);
|
|
3010
|
+
min-height: 300px;
|
|
3011
|
+
max-height: 75vh;
|
|
3012
|
+
overflow: hidden;
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
.ol-asset__modal-media-container[data-type="presentation"] {
|
|
3016
|
+
max-height: 85vh;
|
|
3017
|
+
min-height: 400px;
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
.ol-asset__modal-image-container {
|
|
3021
|
+
width: 100%;
|
|
3022
|
+
height: 100%;
|
|
3023
|
+
display: flex;
|
|
3024
|
+
align-items: center;
|
|
3025
|
+
justify-content: center;
|
|
3026
|
+
padding: var(--ol-spacing-medium);
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
.ol-asset__modal-image {
|
|
3030
|
+
max-width: 100%;
|
|
3031
|
+
max-height: 75vh;
|
|
3032
|
+
width: auto;
|
|
3033
|
+
height: auto;
|
|
3034
|
+
object-fit: contain;
|
|
3035
|
+
display: block;
|
|
3036
|
+
image-rendering: -webkit-optimize-contrast;
|
|
3037
|
+
image-rendering: crisp-edges;
|
|
3038
|
+
image-rendering: high-quality;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
@media (min-width: 768px) {
|
|
3042
|
+
.ol-asset__modal-image {
|
|
3043
|
+
max-height: 80vh;
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
@media (min-width: 1024px) {
|
|
3048
|
+
.ol-asset__modal-image {
|
|
3049
|
+
max-height: 85vh;
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
.ol-asset__modal-info {
|
|
3054
|
+
padding: var(--ol-spacing-large);
|
|
3055
|
+
background: var(--ol-color-surface, #ffffff);
|
|
3056
|
+
border-top: 1px solid var(--ol-color-neutral-200, #e5e7eb);
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
.ol-asset__modal-title {
|
|
3060
|
+
margin: 0 0 var(--ol-spacing-small) 0;
|
|
3061
|
+
font-size: var(--ol-font-size-x-large, 1.5rem);
|
|
3062
|
+
font-weight: 600;
|
|
3063
|
+
color: var(--ol-color-text, #1f2937);
|
|
3064
|
+
line-height: 1.3;
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
.ol-asset__modal-description {
|
|
3068
|
+
margin: 0 0 var(--ol-spacing-medium) 0;
|
|
3069
|
+
font-size: var(--ol-font-size-medium, 1rem);
|
|
3070
|
+
line-height: 1.6;
|
|
3071
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
.ol-asset__modal-metadata {
|
|
3075
|
+
display: flex;
|
|
3076
|
+
flex-wrap: wrap;
|
|
3077
|
+
gap: var(--ol-spacing-medium);
|
|
3078
|
+
margin-top: var(--ol-spacing-small);
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
.ol-asset__modal-metadata-item {
|
|
3082
|
+
display: flex;
|
|
3083
|
+
align-items: center;
|
|
3084
|
+
gap: var(--ol-spacing-2x-small);
|
|
3085
|
+
font-size: var(--ol-font-size-small, 0.875rem);
|
|
3086
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3089
|
+
.ol-asset__modal-metadata-item ol-icon {
|
|
3090
|
+
font-size: 1rem;
|
|
3091
|
+
color: var(--ol-color-neutral-400, #9ca3af);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
.ol-asset__modal-faq {
|
|
3095
|
+
padding: var(--ol-spacing-large);
|
|
3096
|
+
max-width: 800px;
|
|
3097
|
+
margin: 0 auto;
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
.ol-asset__modal-question {
|
|
3101
|
+
margin: 0 0 var(--ol-spacing-large) 0;
|
|
3102
|
+
font-size: var(--ol-font-size-2x-large, 2rem);
|
|
3103
|
+
font-weight: 600;
|
|
3104
|
+
color: var(--ol-color-primary, #3b82f6);
|
|
3105
|
+
line-height: 1.2;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
.ol-asset__modal-answer {
|
|
3109
|
+
font-size: var(--ol-font-size-medium, 1rem);
|
|
3110
|
+
line-height: 1.8;
|
|
3111
|
+
color: var(--ol-color-text, #1f2937);
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
.ol-asset__modal-video-container {
|
|
3115
|
+
width: 100%;
|
|
3116
|
+
max-height: 75vh;
|
|
3117
|
+
display: flex;
|
|
3118
|
+
justify-content: center;
|
|
3119
|
+
align-items: center;
|
|
3120
|
+
background: #000;
|
|
3121
|
+
position: relative;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
.ol-asset__modal-video-player {
|
|
3125
|
+
width: 100%;
|
|
3126
|
+
max-width: 100%;
|
|
3127
|
+
height: auto;
|
|
3128
|
+
max-height: 75vh;
|
|
3129
|
+
object-fit: contain;
|
|
3130
|
+
display: block;
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3133
|
+
.ol-asset__modal-presentation {
|
|
3134
|
+
width: 100%;
|
|
3135
|
+
height: 100%;
|
|
3136
|
+
min-height: 400px;
|
|
3137
|
+
display: flex;
|
|
3138
|
+
justify-content: center;
|
|
3139
|
+
align-items: center;
|
|
3140
|
+
background: var(--ol-color-neutral-50, #f9fafb);
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
.ol-asset__modal-carousel {
|
|
3144
|
+
width: 100%;
|
|
3145
|
+
height: 100%;
|
|
3146
|
+
min-height: 400px;
|
|
3147
|
+
--aspect-ratio: auto;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
.ol-asset__modal-carousel::part(base) {
|
|
3151
|
+
height: 100%;
|
|
3152
|
+
min-height: 400px;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
.ol-asset__modal-carousel::part(scroll-container) {
|
|
3156
|
+
height: 100%;
|
|
3157
|
+
min-height: 400px;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
.ol-asset__modal-carousel ol-carousel-item {
|
|
3161
|
+
display: flex;
|
|
3162
|
+
align-items: center;
|
|
3163
|
+
justify-content: center;
|
|
3164
|
+
padding: var(--ol-spacing-medium);
|
|
3165
|
+
height: 100%;
|
|
3166
|
+
min-height: 400px;
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
.ol-asset__modal-slide-image {
|
|
3170
|
+
max-width: 100%;
|
|
3171
|
+
max-height: 100%;
|
|
3172
|
+
width: auto;
|
|
3173
|
+
height: auto;
|
|
3174
|
+
object-fit: contain;
|
|
3175
|
+
display: block;
|
|
3176
|
+
image-rendering: -webkit-optimize-contrast;
|
|
3177
|
+
image-rendering: crisp-edges;
|
|
3178
|
+
image-rendering: high-quality;
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
.ol-asset__modal-presentation-fallback {
|
|
3182
|
+
display: flex;
|
|
3183
|
+
flex-direction: column;
|
|
3184
|
+
align-items: center;
|
|
3185
|
+
justify-content: center;
|
|
3186
|
+
padding: 40px;
|
|
3187
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
.ol-asset__modal-presentation-icon {
|
|
3191
|
+
font-size: 48px;
|
|
3192
|
+
margin-bottom: 16px;
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
.ol-asset__modal-type {
|
|
3196
|
+
margin: 0;
|
|
3197
|
+
font-size: var(--ol-font-size-small, 0.875rem);
|
|
3198
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
3199
|
+
font-weight: 500;
|
|
3200
|
+
text-transform: uppercase;
|
|
3201
|
+
letter-spacing: 0.05em;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
.ol-asset__modal-duration,
|
|
3205
|
+
.ol-asset__modal-slides {
|
|
3206
|
+
margin: 0;
|
|
3207
|
+
font-size: var(--ol-font-size-small, 0.875rem);
|
|
3208
|
+
color: var(--ol-color-text-secondary, #6b7280);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
@media (max-width: 768px) {
|
|
3212
|
+
ol-dialog.ol-asset__dialog {
|
|
3213
|
+
--width: 95vw;
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
.ol-asset__modal-info,
|
|
3217
|
+
.ol-asset__modal-faq {
|
|
3218
|
+
padding: var(--ol-spacing-medium);
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
.ol-asset__modal-title {
|
|
3222
|
+
font-size: var(--ol-font-size-large, 1.25rem);
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
.ol-asset__modal-question {
|
|
3226
|
+
font-size: var(--ol-font-size-x-large, 1.5rem);
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
.ol-asset__modal-description,
|
|
3230
|
+
.ol-asset__modal-answer {
|
|
3231
|
+
font-size: var(--ol-font-size-small, 0.875rem);
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
.ol-asset__modal-image {
|
|
3235
|
+
max-height: 60vh;
|
|
3236
|
+
}
|
|
3237
|
+
|
|
3238
|
+
.ol-asset__modal-video-player {
|
|
3239
|
+
max-height: 60vh;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
.ol-asset__modal-slide-image {
|
|
3243
|
+
max-height: 60vh;
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
@media (min-width: 1024px) {
|
|
3248
|
+
.ol-asset__modal-media-container {
|
|
3249
|
+
max-height: 80vh;
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
.ol-asset__modal-media-container[data-type="presentation"] {
|
|
3253
|
+
max-height: 85vh;
|
|
3254
|
+
min-height: 500px;
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
.ol-asset__modal-image {
|
|
3258
|
+
max-height: 80vh;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
.ol-asset__modal-video-player {
|
|
3262
|
+
max-height: 80vh;
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
.ol-asset__modal-presentation {
|
|
3266
|
+
min-height: 500px;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
.ol-asset__modal-carousel {
|
|
3270
|
+
min-height: 500px;
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
.ol-asset__modal-carousel::part(base),
|
|
3274
|
+
.ol-asset__modal-carousel::part(scroll-container) {
|
|
3275
|
+
min-height: 500px;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
.ol-asset__modal-carousel ol-carousel-item {
|
|
3279
|
+
min-height: 500px;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
.ol-asset__modal-slide-image {
|
|
3283
|
+
max-height: 85vh;
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
@media (min-width: 1400px) {
|
|
3288
|
+
.ol-asset__modal-media-container[data-type="presentation"] {
|
|
3289
|
+
max-height: 90vh;
|
|
3290
|
+
min-height: 600px;
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
.ol-asset__modal-presentation {
|
|
3294
|
+
min-height: 600px;
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
.ol-asset__modal-carousel {
|
|
3298
|
+
min-height: 600px;
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
.ol-asset__modal-carousel::part(base),
|
|
3302
|
+
.ol-asset__modal-carousel::part(scroll-container) {
|
|
3303
|
+
min-height: 600px;
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
.ol-asset__modal-carousel ol-carousel-item {
|
|
3307
|
+
min-height: 600px;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
.ol-asset__modal-slide-image {
|
|
3311
|
+
max-height: 90vh;
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
`}createDialogHTML(){if(!this.asset)return"";let{name:t,description:e,url:o,type:s}=this.asset,i="";if(s==="multimedia"){let v=this.asset,y=this.getMultimediaSubtype(v);if(y==="image")i=`
|
|
3315
|
+
<div class="ol-asset__modal-media-container">
|
|
3316
|
+
<div class="ol-asset__modal-image-container">
|
|
3317
|
+
<img
|
|
3318
|
+
src="${o||""}"
|
|
3319
|
+
alt="${t}"
|
|
3320
|
+
class="ol-asset__modal-image"
|
|
3321
|
+
loading="eager"
|
|
3322
|
+
/>
|
|
3323
|
+
</div>
|
|
3324
|
+
</div>
|
|
3325
|
+
<div class="ol-asset__modal-info">
|
|
3326
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3327
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3328
|
+
<div class="ol-asset__modal-metadata">
|
|
3329
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3330
|
+
<ol-icon name="photo"></ol-icon>
|
|
3331
|
+
<span class="ol-asset__modal-type">Image</span>
|
|
3332
|
+
</div>
|
|
3333
|
+
</div>
|
|
3334
|
+
</div>
|
|
3335
|
+
`;else if(y==="video")i=`
|
|
3336
|
+
<div class="ol-asset__modal-media-container">
|
|
3337
|
+
<div class="ol-asset__modal-video-container">
|
|
3338
|
+
<video
|
|
3339
|
+
src="${o||v.vodUrl||""}"
|
|
3340
|
+
controls
|
|
3341
|
+
class="ol-asset__modal-video-player"
|
|
3342
|
+
preload="metadata"
|
|
3343
|
+
>
|
|
3344
|
+
Your browser does not support the video tag.
|
|
3345
|
+
</video>
|
|
3346
|
+
</div>
|
|
3347
|
+
</div>
|
|
3348
|
+
<div class="ol-asset__modal-info">
|
|
3349
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3350
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3351
|
+
<div class="ol-asset__modal-metadata">
|
|
3352
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3353
|
+
<ol-icon name="video"></ol-icon>
|
|
3354
|
+
<span class="ol-asset__modal-type">Video</span>
|
|
3355
|
+
</div>
|
|
3356
|
+
${v.duration?`
|
|
3357
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3358
|
+
<ol-icon name="clock"></ol-icon>
|
|
3359
|
+
<span class="ol-asset__modal-duration">${this.formatDuration(v.duration)}</span>
|
|
3360
|
+
</div>
|
|
3361
|
+
`:""}
|
|
3362
|
+
</div>
|
|
3363
|
+
</div>
|
|
3364
|
+
`;else if(y==="presentation")if(v.slides&&v.slides.length>0){let m=v.slides;i=`
|
|
3365
|
+
<div class="ol-asset__modal-media-container" data-type="presentation">
|
|
3366
|
+
<div class="ol-asset__modal-presentation">
|
|
3367
|
+
<ol-carousel pagination navigation loop class="ol-asset__modal-carousel">
|
|
3368
|
+
${m.map((Y,H)=>`
|
|
3369
|
+
<ol-carousel-item>
|
|
3370
|
+
<img
|
|
3371
|
+
src="${Y}"
|
|
3372
|
+
alt="Slide ${H+1} of ${m.length}"
|
|
3373
|
+
class="ol-asset__modal-slide-image"
|
|
3374
|
+
/>
|
|
3375
|
+
</ol-carousel-item>
|
|
3376
|
+
`).join("")}
|
|
3377
|
+
</ol-carousel>
|
|
3378
|
+
</div>
|
|
3379
|
+
</div>
|
|
3380
|
+
<div class="ol-asset__modal-info">
|
|
3381
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3382
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3383
|
+
<div class="ol-asset__modal-metadata">
|
|
3384
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3385
|
+
<ol-icon name="file-presentation"></ol-icon>
|
|
3386
|
+
<span class="ol-asset__modal-type">Presentation</span>
|
|
3387
|
+
</div>
|
|
3388
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3389
|
+
<ol-icon name="layers"></ol-icon>
|
|
3390
|
+
<span class="ol-asset__modal-slides">${m.length} ${m.length===1?"slide":"slides"}</span>
|
|
3391
|
+
</div>
|
|
3392
|
+
</div>
|
|
3393
|
+
</div>
|
|
3394
|
+
`}else i=`
|
|
3395
|
+
<div class="ol-asset__modal-presentation">
|
|
3396
|
+
<div class="ol-asset__modal-presentation-fallback">
|
|
3397
|
+
<div class="ol-asset__modal-presentation-icon">\u{1F4C4}</div>
|
|
3398
|
+
<p>Presentation Preview</p>
|
|
3399
|
+
</div>
|
|
3400
|
+
</div>
|
|
3401
|
+
<div class="ol-asset__modal-info">
|
|
3402
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3403
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3404
|
+
<p class="ol-asset__modal-type">Type: Presentation</p>
|
|
3405
|
+
</div>
|
|
3406
|
+
`}else if(s==="file"){let v=this.asset,y=this.getMultimediaSubtype(v);if(y==="image")i=`
|
|
3407
|
+
<div class="ol-asset__modal-media-container">
|
|
3408
|
+
<div class="ol-asset__modal-image-container">
|
|
3409
|
+
<img
|
|
3410
|
+
src="${o||""}"
|
|
3411
|
+
alt="${t}"
|
|
3412
|
+
class="ol-asset__modal-image"
|
|
3413
|
+
loading="eager"
|
|
3414
|
+
/>
|
|
3415
|
+
</div>
|
|
3416
|
+
</div>
|
|
3417
|
+
<div class="ol-asset__modal-info">
|
|
3418
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3419
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3420
|
+
<div class="ol-asset__modal-metadata">
|
|
3421
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3422
|
+
<ol-icon name="photo"></ol-icon>
|
|
3423
|
+
<span class="ol-asset__modal-type">Image File</span>
|
|
3424
|
+
</div>
|
|
3425
|
+
</div>
|
|
3426
|
+
</div>
|
|
3427
|
+
`;else if(y==="video")i=`
|
|
3428
|
+
<div class="ol-asset__modal-media-container">
|
|
3429
|
+
<div class="ol-asset__modal-video-container">
|
|
3430
|
+
<video
|
|
3431
|
+
src="${o||v.vodUrl||""}"
|
|
3432
|
+
controls
|
|
3433
|
+
class="ol-asset__modal-video-player"
|
|
3434
|
+
preload="metadata"
|
|
3435
|
+
>
|
|
3436
|
+
Your browser does not support the video tag.
|
|
3437
|
+
</video>
|
|
3438
|
+
</div>
|
|
3439
|
+
</div>
|
|
3440
|
+
<div class="ol-asset__modal-info">
|
|
3441
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3442
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3443
|
+
<div class="ol-asset__modal-metadata">
|
|
3444
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3445
|
+
<ol-icon name="video"></ol-icon>
|
|
3446
|
+
<span class="ol-asset__modal-type">Video File</span>
|
|
3447
|
+
</div>
|
|
3448
|
+
${v.duration?`
|
|
3449
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3450
|
+
<ol-icon name="clock"></ol-icon>
|
|
3451
|
+
<span class="ol-asset__modal-duration">${this.formatDuration(v.duration)}</span>
|
|
3452
|
+
</div>
|
|
3453
|
+
`:""}
|
|
3454
|
+
</div>
|
|
3455
|
+
</div>
|
|
3456
|
+
`;else if(y==="presentation")if(v.slides&&v.slides.length>0){let m=v.slides;i=`
|
|
3457
|
+
<div class="ol-asset__modal-media-container" data-type="presentation">
|
|
3458
|
+
<div class="ol-asset__modal-presentation">
|
|
3459
|
+
<ol-carousel pagination navigation loop class="ol-asset__modal-carousel">
|
|
3460
|
+
${m.map((Y,H)=>`
|
|
3461
|
+
<ol-carousel-item>
|
|
3462
|
+
<img
|
|
3463
|
+
src="${Y}"
|
|
3464
|
+
alt="Slide ${H+1} of ${m.length}"
|
|
3465
|
+
class="ol-asset__modal-slide-image"
|
|
3466
|
+
/>
|
|
3467
|
+
</ol-carousel-item>
|
|
3468
|
+
`).join("")}
|
|
3469
|
+
</ol-carousel>
|
|
3470
|
+
</div>
|
|
3471
|
+
</div>
|
|
3472
|
+
<div class="ol-asset__modal-info">
|
|
3473
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3474
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3475
|
+
<div class="ol-asset__modal-metadata">
|
|
3476
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3477
|
+
<ol-icon name="file-presentation"></ol-icon>
|
|
3478
|
+
<span class="ol-asset__modal-type">Presentation File</span>
|
|
3479
|
+
</div>
|
|
3480
|
+
<div class="ol-asset__modal-metadata-item">
|
|
3481
|
+
<ol-icon name="layers"></ol-icon>
|
|
3482
|
+
<span class="ol-asset__modal-slides">${m.length} ${m.length===1?"slide":"slides"}</span>
|
|
3483
|
+
</div>
|
|
3484
|
+
</div>
|
|
3485
|
+
</div>
|
|
3486
|
+
`}else i=`
|
|
3487
|
+
<div class="ol-asset__modal-presentation">
|
|
3488
|
+
<div class="ol-asset__modal-presentation-fallback">
|
|
3489
|
+
<div class="ol-asset__modal-presentation-icon">\u{1F4C4}</div>
|
|
3490
|
+
<p>Presentation Preview</p>
|
|
3491
|
+
</div>
|
|
3492
|
+
</div>
|
|
3493
|
+
<div class="ol-asset__modal-info">
|
|
3494
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3495
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3496
|
+
<p class="ol-asset__modal-type">Type: Presentation File</p>
|
|
3497
|
+
</div>
|
|
3498
|
+
`}else if(s==="faq"){let v=this.asset;i=`
|
|
3499
|
+
<div class="ol-asset__modal-faq">
|
|
3500
|
+
<h3 class="ol-asset__modal-question">${v.question||t}</h3>
|
|
3501
|
+
<div class="ol-asset__modal-answer">${v.answer||e}</div>
|
|
3502
|
+
</div>
|
|
3503
|
+
`}else i=`
|
|
3504
|
+
<div class="ol-asset__modal-info">
|
|
3505
|
+
<h3 class="ol-asset__modal-title">${t}</h3>
|
|
3506
|
+
${e?`<p class="ol-asset__modal-description">${e}</p>`:""}
|
|
3507
|
+
</div>
|
|
3508
|
+
`;let n=s==="multimedia"||s==="file",c=s==="faq"&&this.asset.question||t;return`
|
|
3509
|
+
<ol-dialog
|
|
3510
|
+
label="${this.escapeHtml(c)}"
|
|
3511
|
+
class="ol-asset__dialog"
|
|
3512
|
+
data-fullscreen="${n}"
|
|
3513
|
+
${n?'style="--width: 95vw; --max-width: 1600px;"':""}
|
|
3514
|
+
>
|
|
3515
|
+
<div class="ol-asset__dialog-content">
|
|
3516
|
+
<div class="ol-asset__dialog-body">
|
|
3517
|
+
${i}
|
|
3518
|
+
</div>
|
|
3519
|
+
</div>
|
|
3520
|
+
</ol-dialog>
|
|
3521
|
+
`}attachEventListeners(){this.dialog&&(this.dialog.addEventListener("ol-after-hide",()=>{this.onClose?.()}),this.dialog.addEventListener("ol-request-close",t=>{t.detail?.source==="overlay"&&t.preventDefault()}))}escapeHtml(t){let e=document.createElement("div");return e.textContent=t,e.innerHTML}};var g=class extends S.LitElement{constructor(){super(...arguments);this.loadingState="idle";this.assetRenderer=new L;this.isDownloading=!1;this.defaultDisplayOptions={showThumbnail:!0,showName:!1,showDescription:!1,showMetadata:!0,showPrice:!0,showDuration:!1,showSize:!1,showTags:!1,layout:"card",size:"medium"}}connectedCallback(){super.connectedCallback(),this.initializeServices(),this.loadAsset()}disconnectedCallback(){super.disconnectedCallback(),this.closeModal()}initializeServices(){this.assetLoader=new R(this.config)}async loadAsset(){if(!this.type||!this.externalId){this.error="Type and externalId are required",this.loadingState="error";return}this.loadingState="loading",this.error=void 0;try{let e=await this.assetLoader.loadAsset(this.type,this.externalId);this.asset=e,this.loadingState="loaded",this.dispatchEvent(new CustomEvent("asset-load",{detail:e})),console.debug("Asset loaded:",e)}catch(e){console.error(`Error loading ${this.type} asset:`,e),this.error=e instanceof Error?e.message:"Failed to load asset",this.loadingState="error",this.dispatchEvent(new CustomEvent("asset-error",{detail:{error:this.error,asset:this.asset}}))}}async onDownload(e){if(!(!e.url||this.isDownloading)){this.isDownloading=!0;try{let o=await fetch(e.url,{method:"GET",mode:"cors",cache:"no-cache"});if(o.ok){let s=await o.blob(),i=window.URL.createObjectURL(s),n=document.createElement("a");n.href=i,n.download=this.getDownloadFilename(e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>window.URL.revokeObjectURL(i),100),this.dispatchEvent(new CustomEvent("asset-download",{detail:e})),this.isDownloading=!1;return}}catch(o){console.warn("Fetch strategy failed:",o)}try{let o=await fetch(e.url,{headers:{Accept:"*/*"},mode:"no-cors"});if(o.type==="opaque")throw new Error("No-cors response, cannot access blob");let s=await o.blob(),i=window.URL.createObjectURL(s),n=document.createElement("a");n.href=i,n.download=this.getDownloadFilename(e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>window.URL.revokeObjectURL(i),100),this.dispatchEvent(new CustomEvent("asset-download",{detail:e})),this.isDownloading=!1;return}catch(o){console.warn("No-cors strategy failed:",o)}try{let o=document.createElement("a");o.href=e.url,o.download=this.getDownloadFilename(e),o.target="_blank",o.rel="noopener noreferrer",o.style.position="absolute",o.style.left="-9999px",document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o)},100),this.dispatchEvent(new CustomEvent("asset-download",{detail:e}))}catch(o){console.error("All download strategies failed:",o),window.open(e.url,"_blank")}this.isDownloading=!1}}getDownloadFilename(e){let o=Date.now(),s=this.getFileExtension(e);return`${e.name||`asset-${e.type}-${o}`}${s}`}getFileExtension(e){if(e.url){let i=new URL(e.url).pathname,n=i.lastIndexOf(".");if(n>0)return i.substring(n)}return{multimedia:".jpg",file:".bin",product:".jpg",faq:".txt"}[e.type]||""}async openModal(){this.asset&&(this.modalPortal=new V(this.asset,this.closeModal.bind(this)),await this.modalPortal.open())}onMaximize(){if(this.asset){if(this.asset.type==="multimedia"||this.asset.type==="file"){let e=this.asset,o=e.slides&&e.slides.length>0,s=e.format||"";if((s.includes("presentation")||s.includes("pdf")||s.includes("powerpoint")||s.includes("slides")||s.includes("application/vnd.ms-powerpoint")||s.includes("application/vnd.openxmlformats-officedocument.presentationml")||o&&e.slides.length>0)&&!o)return}this.asset.type==="multimedia"||this.asset.type==="file"||this.asset.type==="faq"?this.openModal():this.dispatchEvent(new CustomEvent("asset-click",{detail:this.asset}))}}closeModal(){this.modalPortal&&(this.modalPortal.close(),this.modalPortal=void 0)}render(){let e={...this.defaultDisplayOptions,...this.config?.assetDisplayOptions||{}};return this.loadingState==="loading"?S.html`
|
|
3522
|
+
<div class="ol-asset ol-asset--loading">
|
|
3523
|
+
${this.assetRenderer.renderLoading()}
|
|
3524
|
+
</div>
|
|
3525
|
+
`:this.loadingState==="error"?S.html`
|
|
3526
|
+
<div class="ol-asset ol-asset--error">
|
|
3527
|
+
${this.assetRenderer.renderError(this.error)}
|
|
3528
|
+
</div>
|
|
3529
|
+
`:this.asset?S.html`
|
|
3530
|
+
<div
|
|
3531
|
+
class="ol-asset ${(0,ae.classMap)({"ol-asset--compact":e.layout==="compact","ol-asset--minimal":e.layout==="minimal","ol-asset--small":e.size==="small","ol-asset--medium":e.size==="medium","ol-asset--large":e.size==="large","ol-asset--faq":this.asset.type==="faq"})}"
|
|
3532
|
+
>
|
|
3533
|
+
${this.assetRenderer.renderThumbnail(this.asset,e,this.onDownload.bind(this),this.isDownloading,this.onMaximize.bind(this))}
|
|
3534
|
+
${this.assetRenderer.renderContent(this.asset,e)}
|
|
3535
|
+
</div>
|
|
3536
|
+
`:S.html``}};g.styles=[ie],d([(0,b.property)({type:String})],g.prototype,"type",2),d([(0,b.property)({type:String})],g.prototype,"externalId",2),d([(0,b.property)({type:Object})],g.prototype,"config",2),d([(0,b.state)()],g.prototype,"asset",2),d([(0,b.state)()],g.prototype,"loadingState",2),d([(0,b.state)()],g.prototype,"error",2),d([(0,b.state)()],g.prototype,"assetLoader",2),d([(0,b.state)()],g.prototype,"assetRenderer",2),d([(0,b.state)()],g.prototype,"isDownloading",2),g=d([w("osb-asset")],g);var Ct=require("@onlive.ai/ui/dist/components/button/button.js"),Tt=require("@onlive.ai/ui/dist/components/details/details.js"),Ft=require("@onlive.ai/ui/dist/components/icon/icon.js"),Et=require("@onlive.ai/ui/dist/components/input/input.js"),Pt=require("@onlive.ai/ui/dist/components/option/option.js"),Mt=require("@onlive.ai/ui/dist/components/select/select.js"),l=require("lit"),h=require("lit/decorators.js"),z=require("lit/directives/class-map.js"),$=require("lit/directives/if-defined.js"),N=require("lit/directives/repeat.js"),u=require("lit/directives/when.js");var ft=require("@onlive.ai/ui/dist/components/button/button.js"),bt=require("@onlive.ai/ui/dist/components/dropdown/dropdown.js"),jt=require("@onlive.ai/ui/dist/components/icon/icon.js"),yt=require("@onlive.ai/ui/dist/components/menu-item/menu-item.js"),_t=require("@onlive.ai/ui/dist/components/menu/menu.js"),M=require("lit"),J=require("lit/decorators.js");var re=require("lit"),ne=re.css`
|
|
3537
|
+
:host {
|
|
3538
|
+
display: inline-block;
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
.ol-upload {
|
|
3542
|
+
position: relative;
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
.ol-upload--empty {
|
|
3546
|
+
padding: 8px 16px;
|
|
3547
|
+
background: var(--ol-color-neutral-100, #f3f4f6);
|
|
3548
|
+
border: 1px solid var(--ol-color-neutral-300, #d1d5db);
|
|
3549
|
+
border-radius: 6px;
|
|
3550
|
+
color: var(--ol-color-neutral-600, #4b5563);
|
|
3551
|
+
font-size: 14px;
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
.ol-upload__selected-file {
|
|
3555
|
+
margin-top: 12px;
|
|
3556
|
+
padding: 12px;
|
|
3557
|
+
background: var(--ol-color-success-50, #f0fdf4);
|
|
3558
|
+
border: 1px solid var(--ol-color-success-200, #bbf7d0);
|
|
3559
|
+
border-radius: 8px;
|
|
3560
|
+
display: flex;
|
|
3561
|
+
align-items: center;
|
|
3562
|
+
justify-content: space-between;
|
|
3563
|
+
gap: 12px;
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
.ol-upload__file-info {
|
|
3567
|
+
flex: 1;
|
|
3568
|
+
font-size: 14px;
|
|
3569
|
+
color: var(--ol-color-success-800, #166534);
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
.ol-upload__file-info strong {
|
|
3573
|
+
display: block;
|
|
3574
|
+
margin-bottom: 4px;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
.ol-upload__file-info small {
|
|
3578
|
+
color: var(--ol-color-success-600, #16a34a);
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
.ol-upload__clear-btn {
|
|
3582
|
+
width: 32px;
|
|
3583
|
+
height: 32px;
|
|
3584
|
+
border: none;
|
|
3585
|
+
background: var(--ol-color-success-200, #bbf7d0);
|
|
3586
|
+
color: var(--ol-color-success-700, #15803d);
|
|
3587
|
+
border-radius: 50%;
|
|
3588
|
+
cursor: pointer;
|
|
3589
|
+
display: flex;
|
|
3590
|
+
align-items: center;
|
|
3591
|
+
justify-content: center;
|
|
3592
|
+
transition: all 0.2s ease;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
.ol-upload__clear-btn:hover {
|
|
3596
|
+
background: var(--ol-color-success-300, #86efac);
|
|
3597
|
+
transform: scale(1.1);
|
|
3598
|
+
}
|
|
3599
|
+
`;var j=class extends M.LitElement{constructor(){super(...arguments);this.defaultConfig={maxFileSize:10*1024*1024,multiple:!1,showImage:!0,showVideo:!0,showDocument:!0}}getAllowedExtensions(e){switch(e){case"image":return[".jpg",".jpeg",".png",".gif",".webp",".svg"];case"video":return[".mp4",".avi",".mov",".wmv",".flv",".webm"];case"document":return[".pdf",".doc",".docx",".txt",".rtf",".odt"];default:return[]}}getAcceptAttribute(e){return this.getAllowedExtensions(e).join(",")}getFileTypeLabel(e){switch(e){case"image":return"Imagen";case"video":return"Video";case"document":return"Documento";default:return"Archivo"}}getAvailableTypes(){let e={...this.defaultConfig,...this.config},o=[];return e.showImage&&o.push("image"),e.showVideo&&o.push("video"),e.showDocument&&o.push("document"),o}onTypeSelect(e){this.openFileDialog(e)}openFileDialog(e){let o=document.createElement("input");o.type="file",o.accept=this.getAcceptAttribute(e),o.multiple=this.config?.multiple||!1,o.onchange=s=>{let i=s.target.files?.[0];i&&this.handleFileSelection(i,e)},o.click()}handleFileSelection(e,o){let s=this.validateFile(e,o);if(!s.valid){this.dispatchEvent(new CustomEvent("osb-upload-error",{detail:{error:s.error},bubbles:!0}));return}this.dispatchEvent(new CustomEvent("osb-file-selected",{detail:{file:e,type:o},bubbles:!0})),this.events?.onFileSelected?.(e,o)}validateFile(e,o){let s={...this.defaultConfig,...this.config};if(s.maxFileSize&&e.size>s.maxFileSize)return{valid:!1,error:`El archivo es demasiado grande. Tama\xF1o m\xE1ximo: ${Math.round(s.maxFileSize/1048576)}MB`};let i=e.name.toLowerCase(),n=this.getAllowedExtensions(o);return n.some(v=>i.endsWith(v.toLowerCase()))?{valid:!0}:{valid:!1,error:`Tipo de archivo no v\xE1lido. Extensiones permitidas: ${n.join(", ")}`}}render(){let e=this.getAvailableTypes();return e.length===0?M.html`<div class="ol-upload ol-upload--empty">No hay tipos de archivo disponibles</div>`:M.html`
|
|
3600
|
+
<div class="ol-upload">
|
|
3601
|
+
<ol-dropdown placement="bottom-start" distance="8">
|
|
3602
|
+
<div slot="trigger">
|
|
3603
|
+
<slot>
|
|
3604
|
+
</slot>
|
|
3605
|
+
</div>
|
|
3606
|
+
|
|
3607
|
+
<ol-menu>
|
|
3608
|
+
${e.map(o=>M.html`
|
|
3609
|
+
<ol-menu-item @click="${()=>this.onTypeSelect(o)}">
|
|
3610
|
+
<ol-icon slot="prefix" name="${this.getIconName(o)}"></ol-icon>
|
|
3611
|
+
${this.getFileTypeLabel(o)}
|
|
3612
|
+
</ol-menu-item>
|
|
3613
|
+
`)}
|
|
3614
|
+
</ol-menu>
|
|
3615
|
+
</ol-dropdown>
|
|
3616
|
+
</div>
|
|
3617
|
+
`}getIconName(e){switch(e){case"image":return"image";case"video":return"file-play";case"document":return"file-text";default:return"file"}}};j.styles=[ne],d([(0,J.property)({type:Object})],j.prototype,"config",2),d([(0,J.property)({type:Object})],j.prototype,"events",2),j=d([w("osb-upload")],j);var le=require("lit"),de=le.css`
|
|
3618
|
+
:host {
|
|
3619
|
+
display: block;
|
|
3620
|
+
position: fixed;
|
|
3621
|
+
top: 0;
|
|
3622
|
+
right: 0;
|
|
3623
|
+
height: 100vh;
|
|
3624
|
+
width: 20vw;
|
|
3625
|
+
min-width: 320px;
|
|
3626
|
+
max-width: 620px;
|
|
3627
|
+
z-index: 1000;
|
|
3628
|
+
transition: transform 0.3s ease-in-out;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
:host([disabled]) {
|
|
3632
|
+
pointer-events: none;
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
.ol-sidebar {
|
|
3636
|
+
display: flex;
|
|
3637
|
+
flex-direction: column;
|
|
3638
|
+
height: 100%;
|
|
3639
|
+
background-color: var(--ol-color-neutral-0);
|
|
3640
|
+
border-left: 1px solid var(--ol-color-neutral-200);
|
|
3641
|
+
box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
.ol-sidebar--disabled {
|
|
3645
|
+
opacity: 0.6;
|
|
3646
|
+
pointer-events: none;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
.ol-sidebar__header {
|
|
3651
|
+
padding: 20px;
|
|
3652
|
+
border-bottom: 1px solid var(--ol-color-neutral-200);
|
|
3653
|
+
background-color: var(--ol-color-neutral-0);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
|
|
3657
|
+
|
|
3658
|
+
.ol-sidebar__asset-presentation-format {
|
|
3659
|
+
position: absolute;
|
|
3660
|
+
top: var(--ol-spacing-x-small);
|
|
3661
|
+
right: var(--ol-spacing-x-small);
|
|
3662
|
+
padding: 2px var(--ol-spacing-x-small);
|
|
3663
|
+
background-color: rgba(255, 255, 255, 0.9);
|
|
3664
|
+
color: var(--ol-color-neutral-700);
|
|
3665
|
+
font-size: 10px;
|
|
3666
|
+
font-weight: 600;
|
|
3667
|
+
border-radius: 12px;
|
|
3668
|
+
text-transform: uppercase;
|
|
3669
|
+
letter-spacing: 0.5px;
|
|
3670
|
+
backdrop-filter: blur(4px);
|
|
3671
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
.ol-sidebar__header-top {
|
|
3675
|
+
display: flex;
|
|
3676
|
+
align-items: center;
|
|
3677
|
+
justify-content: space-between;
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
.ol-sidebar__title {
|
|
3681
|
+
margin: 0;
|
|
3682
|
+
font-size: 18px;
|
|
3683
|
+
font-weight: 600;
|
|
3684
|
+
color: var(--ol-color-neutral-900);
|
|
3685
|
+
text-transform: uppercase;
|
|
3686
|
+
letter-spacing: 0.5px;
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
.ol-sidebar__unified-search {
|
|
3690
|
+
margin-top: var(--ol-spacing-medium);
|
|
3691
|
+
width: 100%;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
.ol-sidebar__unified-search-input {
|
|
3695
|
+
width: calc(100% - 2 * var(--ol-spacing-small));
|
|
3696
|
+
padding: var(--ol-spacing-small);
|
|
3697
|
+
border: 1px solid var(--ol-color-neutral-300);
|
|
3698
|
+
border-radius: var(--ol-border-radius-medium);
|
|
3699
|
+
font-size: 14px;
|
|
3700
|
+
background-color: var(--ol-color-neutral-0);
|
|
3701
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
.ol-sidebar__unified-search-input:focus {
|
|
3705
|
+
outline: none;
|
|
3706
|
+
border-color: var(--ol-color-primary-500);
|
|
3707
|
+
box-shadow: 0 0 0 2px rgba(var(--ol-color-primary-500-rgb), 0.2);
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
.ol-sidebar__unified-search-input:disabled {
|
|
3711
|
+
opacity: 0.6;
|
|
3712
|
+
cursor: not-allowed;
|
|
3713
|
+
background-color: var(--ol-color-neutral-100);
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
.ol-sidebar__unified-search-input::placeholder {
|
|
3717
|
+
color: var(--ol-color-neutral-400);
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
/* Extra filters styles */
|
|
3721
|
+
.ol-sidebar__extra-filters {
|
|
3722
|
+
display: flex;
|
|
3723
|
+
flex-wrap: wrap;
|
|
3724
|
+
gap: var(--ol-spacing-small);
|
|
3725
|
+
margin-top: var(--ol-spacing-medium);
|
|
3726
|
+
padding-top: var(--ol-spacing-small);
|
|
3727
|
+
border-top: 1px solid var(--ol-color-neutral-200);
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
.ol-sidebar__filter {
|
|
3731
|
+
display: flex;
|
|
3732
|
+
flex-direction: column;
|
|
3733
|
+
gap: var(--ol-spacing-x-small);
|
|
3734
|
+
flex: 1;
|
|
3735
|
+
min-width: 120px;
|
|
3736
|
+
max-width: 200px;
|
|
3737
|
+
}
|
|
3738
|
+
|
|
3739
|
+
.ol-sidebar__filter-label {
|
|
3740
|
+
font-size: 11px;
|
|
3741
|
+
font-weight: 500;
|
|
3742
|
+
color: var(--ol-color-neutral-600);
|
|
3743
|
+
text-transform: uppercase;
|
|
3744
|
+
letter-spacing: 0.5px;
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3747
|
+
.ol-sidebar__filter-select,
|
|
3748
|
+
.ol-sidebar__filter-input {
|
|
3749
|
+
width: 100%;
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
.ol-sidebar__filter-select::part(combobox) {
|
|
3753
|
+
font-size: 12px;
|
|
3754
|
+
min-height: 32px;
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
.ol-sidebar__filter-input::part(base) {
|
|
3758
|
+
font-size: 12px;
|
|
3759
|
+
min-height: 32px;
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
.ol-sidebar__filters-loading {
|
|
3763
|
+
display: flex;
|
|
3764
|
+
align-items: center;
|
|
3765
|
+
gap: var(--ol-spacing-small);
|
|
3766
|
+
margin-top: var(--ol-spacing-small);
|
|
3767
|
+
padding: var(--ol-spacing-small);
|
|
3768
|
+
background-color: var(--ol-color-neutral-50);
|
|
3769
|
+
border-radius: var(--ol-border-radius-small);
|
|
3770
|
+
font-size: 12px;
|
|
3771
|
+
color: var(--ol-color-neutral-600);
|
|
3772
|
+
}
|
|
3773
|
+
|
|
3774
|
+
.ol-sidebar__spinner--small {
|
|
3775
|
+
width: 16px;
|
|
3776
|
+
height: 16px;
|
|
3777
|
+
border-width: 2px;
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
.ol-sidebar__content {
|
|
3781
|
+
flex: 1;
|
|
3782
|
+
overflow-y: auto;
|
|
3783
|
+
padding: 0;
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
/* Custom scrollbar styles */
|
|
3787
|
+
.ol-sidebar__content::-webkit-scrollbar {
|
|
3788
|
+
width: 6px;
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
.ol-sidebar__content::-webkit-scrollbar-track {
|
|
3792
|
+
background: transparent;
|
|
3793
|
+
border-radius: 3px;
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
.ol-sidebar__content::-webkit-scrollbar-thumb {
|
|
3797
|
+
background: var(--ol-color-neutral-300);
|
|
3798
|
+
border-radius: 3px;
|
|
3799
|
+
transition: background-color 0.2s ease;
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
.ol-sidebar__content::-webkit-scrollbar-thumb:hover {
|
|
3803
|
+
background: var(--ol-color-neutral-400);
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
.ol-sidebar__content::-webkit-scrollbar-thumb:active {
|
|
3807
|
+
background: var(--ol-color-neutral-500);
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
/* Firefox scrollbar styles */
|
|
3811
|
+
.ol-sidebar__content {
|
|
3812
|
+
scrollbar-width: thin;
|
|
3813
|
+
scrollbar-color: var(--ol-color-neutral-300) transparent;
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
.ol-sidebar__category {
|
|
3817
|
+
margin: 0 var(--ol-spacing-small);
|
|
3818
|
+
border: none;
|
|
3819
|
+
border-radius: 0;
|
|
3820
|
+
background-color: var(--ol-color-neutral-0);
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
.ol-sidebar__category:last-child {
|
|
3824
|
+
border-bottom: none;
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
.ol-sidebar__category slot[name="summary"] {
|
|
3828
|
+
display: flex;
|
|
3829
|
+
align-items: center;
|
|
3830
|
+
justify-content: space-between;
|
|
3831
|
+
padding: 16px 20px;
|
|
3832
|
+
cursor: pointer;
|
|
3833
|
+
user-select: none;
|
|
3834
|
+
border: none;
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3837
|
+
.ol-sidebar__category--disabled slot[name="summary"] {
|
|
3838
|
+
cursor: not-allowed;
|
|
3839
|
+
opacity: 0.6;
|
|
3840
|
+
}
|
|
3841
|
+
|
|
3842
|
+
.ol-sidebar__category slot[name="summary"]::slotted(*) {
|
|
3843
|
+
width: 100%;
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
.ol-sidebar__category-header {
|
|
3847
|
+
display: flex;
|
|
3848
|
+
align-items: center;
|
|
3849
|
+
justify-content: space-between;
|
|
3850
|
+
width: 100%;
|
|
3851
|
+
}
|
|
3852
|
+
|
|
3853
|
+
.ol-sidebar__category-info {
|
|
3854
|
+
display: flex;
|
|
3855
|
+
align-items: center;
|
|
3856
|
+
gap: var(--ol-spacing-small);
|
|
3857
|
+
flex: 1;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
.ol-sidebar__category-icon {
|
|
3861
|
+
color: var(--ol-color-neutral-600);
|
|
3862
|
+
font-size: var(--ol-font-size-medium);
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
.ol-sidebar__category-label {
|
|
3866
|
+
font-weight: 500;
|
|
3867
|
+
color: var(--ol-color-neutral-900);
|
|
3868
|
+
text-transform: uppercase;
|
|
3869
|
+
letter-spacing: 0.5px;
|
|
3870
|
+
font-size: 12px;
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3873
|
+
.ol-sidebar__category-count {
|
|
3874
|
+
color: var(--ol-color-neutral-500);
|
|
3875
|
+
font-size: 11px;
|
|
3876
|
+
font-weight: 400;
|
|
3877
|
+
margin-left: 8px;
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
.ol-sidebar__category-actions {
|
|
3881
|
+
display: flex;
|
|
3882
|
+
align-items: center;
|
|
3883
|
+
gap: var(--ol-spacing-x-small);
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
ol-button::part(base) {
|
|
3887
|
+
background: none;
|
|
3888
|
+
border: none;
|
|
3889
|
+
color: var(--ol-color-neutral-500);
|
|
3890
|
+
cursor: pointer;
|
|
3891
|
+
font-size: 22px;
|
|
3892
|
+
padding: 2px;
|
|
3893
|
+
border-radius: 4px;
|
|
3894
|
+
transition: all 0.2s ease;
|
|
3895
|
+
width: 24px;
|
|
3896
|
+
height: 24px;
|
|
3897
|
+
display: flex;
|
|
3898
|
+
align-items: center;
|
|
3899
|
+
justify-content: center;
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3902
|
+
.ol-sidebar__add-button:hover {
|
|
3903
|
+
background-color: var(--ol-color-neutral-100);
|
|
3904
|
+
color: var(--ol-color-neutral-700);
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3907
|
+
.ol-sidebar__asset-presentation {
|
|
3908
|
+
display: flex;
|
|
3909
|
+
align-items: center;
|
|
3910
|
+
justify-content: center;
|
|
3911
|
+
position: relative;
|
|
3912
|
+
border-radius: 4px;
|
|
3913
|
+
overflow: hidden;
|
|
3914
|
+
background-color: var(--ol-color-neutral-100);
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
.ol-sidebar__asset-presentation-preview {
|
|
3918
|
+
position: relative;
|
|
3919
|
+
width: 100%;
|
|
3920
|
+
height: 100%;
|
|
3921
|
+
display: flex;
|
|
3922
|
+
align-items: center;
|
|
3923
|
+
justify-content: center;
|
|
3924
|
+
overflow: hidden;
|
|
3925
|
+
}
|
|
3926
|
+
|
|
3927
|
+
.ol-sidebar__asset-presentation-image {
|
|
3928
|
+
width: 100%;
|
|
3929
|
+
height: 80px;
|
|
3930
|
+
object-fit: cover;
|
|
3931
|
+
object-position: center;
|
|
3932
|
+
border-radius: 4px;
|
|
3933
|
+
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
.ol-sidebar__asset-presentation-fallback {
|
|
3937
|
+
display: flex;
|
|
3938
|
+
flex-direction: column;
|
|
3939
|
+
align-items: center;
|
|
3940
|
+
justify-content: center;
|
|
3941
|
+
gap: var(--ol-spacing-x-small);
|
|
3942
|
+
width: 100%;
|
|
3943
|
+
height: 100%;
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3946
|
+
.ol-sidebar__asset-presentation-icon {
|
|
3947
|
+
font-size: 24px;
|
|
3948
|
+
color: var(--ol-color-neutral-500);
|
|
3949
|
+
}
|
|
3950
|
+
|
|
3951
|
+
.ol-sidebar__load-more-button {
|
|
3952
|
+
background-color: var(--ol-color-neutral-100);
|
|
3953
|
+
border: 1px solid var(--ol-color-neutral-300);
|
|
3954
|
+
color: var(--ol-color-neutral-700);
|
|
3955
|
+
padding: var(--ol-spacing-small) var(--ol-spacing-medium);
|
|
3956
|
+
border-radius: var(--ol-border-radius-small);
|
|
3957
|
+
cursor: pointer;
|
|
3958
|
+
font-size: var(--ol-font-size-small);
|
|
3959
|
+
transition: all 0.2s ease;
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3962
|
+
.ol-sidebar__load-more-button:hover:not(:disabled) {
|
|
3963
|
+
background-color: var(--ol-color-neutral-200);
|
|
3964
|
+
border-color: var(--ol-color-neutral-400);
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
.ol-sidebar__load-more-button:disabled {
|
|
3968
|
+
opacity: 0.6;
|
|
3969
|
+
cursor: not-allowed;
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
.ol-sidebar__spinner {
|
|
3973
|
+
width: 24px;
|
|
3974
|
+
height: 24px;
|
|
3975
|
+
border: 2px solid var(--ol-color-neutral-200);
|
|
3976
|
+
border-top: 2px solid var(--ol-color-primary-500);
|
|
3977
|
+
border-radius: 50%;
|
|
3978
|
+
animation: spin 1s linear infinite;
|
|
3979
|
+
margin: 0 auto;
|
|
3980
|
+
display: block;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
@keyframes spin {
|
|
3984
|
+
0% { transform: rotate(0deg); }
|
|
3985
|
+
100% { transform: rotate(360deg); }
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
.ol-sidebar__assets {
|
|
3990
|
+
display: flex;
|
|
3991
|
+
gap: var(--ol-spacing-small);
|
|
3992
|
+
padding: var(--ol-spacing-small) 0;
|
|
3993
|
+
overflow: auto;
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3996
|
+
/* Custom scrollbar for assets sections */
|
|
3997
|
+
.ol-sidebar__assets::-webkit-scrollbar {
|
|
3998
|
+
height: 8px;
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
.ol-sidebar__assets::-webkit-scrollbar-track {
|
|
4002
|
+
background: transparent;
|
|
4003
|
+
border-radius: 3px;
|
|
4004
|
+
}
|
|
4005
|
+
|
|
4006
|
+
.ol-sidebar__assets::-webkit-scrollbar-thumb {
|
|
4007
|
+
background: var(--ol-color-neutral-300);
|
|
4008
|
+
border-radius: 3px;
|
|
4009
|
+
transition: background-color 0.2s ease;
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
.ol-sidebar__assets::-webkit-scrollbar-thumb:hover {
|
|
4013
|
+
background: var(--ol-color-neutral-400);
|
|
4014
|
+
}
|
|
4015
|
+
|
|
4016
|
+
.ol-sidebar__assets::-webkit-scrollbar-thumb:active {
|
|
4017
|
+
background: var(--ol-color-neutral-500);
|
|
4018
|
+
}
|
|
4019
|
+
|
|
4020
|
+
/* Firefox scrollbar for assets */
|
|
4021
|
+
.ol-sidebar__assets {
|
|
4022
|
+
scrollbar-width: thin;
|
|
4023
|
+
scrollbar-color: var(--ol-color-neutral-300) transparent;
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
.ol-sidebar__assets--list {
|
|
4027
|
+
grid-template-columns: 1fr;
|
|
4028
|
+
}
|
|
4029
|
+
|
|
4030
|
+
.ol-sidebar__asset-item {
|
|
4031
|
+
display: flex;
|
|
4032
|
+
flex-direction: column;
|
|
4033
|
+
padding: 8px;
|
|
4034
|
+
border: 1px solid var(--ol-color-neutral-200);
|
|
4035
|
+
border-radius: 6px;
|
|
4036
|
+
background-color: var(--ol-color-neutral-0);
|
|
4037
|
+
cursor: pointer;
|
|
4038
|
+
transition: all 0.2s ease;
|
|
4039
|
+
position: relative;
|
|
4040
|
+
min-height: 80px;
|
|
4041
|
+
max-height: 100px;
|
|
4042
|
+
min-width: 100px;
|
|
4043
|
+
max-width: 120px;
|
|
4044
|
+
flex-shrink: 0;
|
|
4045
|
+
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
ol-details::part(summary) {
|
|
4049
|
+
width: 100%;
|
|
4050
|
+
}
|
|
4051
|
+
|
|
4052
|
+
ol-details::part(base) {
|
|
4053
|
+
border: none;
|
|
4054
|
+
border-bottom: 1px solid var(--ol-color-neutral-200);
|
|
4055
|
+
border-radius: 0;
|
|
4056
|
+
}
|
|
4057
|
+
|
|
4058
|
+
ol-details::part(header) {
|
|
4059
|
+
padding: var(--ol-spacing-medium);
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4062
|
+
ol-details::part(content){
|
|
4063
|
+
padding: 0 var(--ol-spacing-medium);
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
.ol-sidebar__category-summary {
|
|
4067
|
+
width: 100%;
|
|
4068
|
+
}
|
|
4069
|
+
|
|
4070
|
+
.ol-sidebar__asset-item:hover:not(.ol-sidebar__asset-item--disabled) {
|
|
4071
|
+
border-color: var(--ol-color-primary-500);
|
|
4072
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
4073
|
+
transform: translateY(-1px);
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
.ol-sidebar__asset-item--disabled {
|
|
4077
|
+
opacity: 0.6;
|
|
4078
|
+
cursor: not-allowed;
|
|
4079
|
+
pointer-events: none;
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
.ol-sidebar__asset-item--grid {
|
|
4083
|
+
text-align: center;
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
.ol-sidebar__asset-item--list {
|
|
4087
|
+
flex-direction: row;
|
|
4088
|
+
align-items: center;
|
|
4089
|
+
gap: 8px;
|
|
4090
|
+
min-height: 60px;
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
.ol-sidebar__asset-item--faq {
|
|
4094
|
+
flex-direction: column;
|
|
4095
|
+
align-items: stretch;
|
|
4096
|
+
min-height: auto;
|
|
4097
|
+
padding: var(--ol-spacing-medium);
|
|
4098
|
+
border-radius: var(--ol-border-radius-medium);
|
|
4099
|
+
background-color: var(--ol-color-neutral-50);
|
|
4100
|
+
border: 1px solid var(--ol-color-neutral-200);
|
|
4101
|
+
transition: all 0.2s ease;
|
|
4102
|
+
overflow: hidden;
|
|
4103
|
+
word-wrap: break-word;
|
|
4104
|
+
word-break: break-word;
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
.ol-sidebar__asset-item--faq:hover {
|
|
4108
|
+
background-color: var(--ol-color-neutral-100);
|
|
4109
|
+
border-color: var(--ol-color-primary-300);
|
|
4110
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
|
|
4114
|
+
.ol-sidebar__asset-thumbnail {
|
|
4115
|
+
position: relative;
|
|
4116
|
+
width: 100%;
|
|
4117
|
+
height: 100%;
|
|
4118
|
+
border-radius: 4px;
|
|
4119
|
+
overflow: hidden;
|
|
4120
|
+
background-color: var(--ol-color-neutral-100);
|
|
4121
|
+
margin-bottom: 6px;
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
.ol-sidebar__asset-item--list .ol-sidebar__asset-thumbnail {
|
|
4125
|
+
width: 40px;
|
|
4126
|
+
height: 40px;
|
|
4127
|
+
flex-shrink: 0;
|
|
4128
|
+
margin-bottom: 0;
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4131
|
+
.ol-sidebar__asset-image {
|
|
4132
|
+
width: 100%;
|
|
4133
|
+
height: 100%;
|
|
4134
|
+
min-height: 50px;
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4137
|
+
.ol-sidebar__asset-duration {
|
|
4138
|
+
position: absolute;
|
|
4139
|
+
top: var(--ol-spacing-x-small);
|
|
4140
|
+
right: var(--ol-spacing-x-small);
|
|
4141
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
4142
|
+
color: var(--ol-color-neutral-0);
|
|
4143
|
+
padding: 2px var(--ol-spacing-x-small);
|
|
4144
|
+
border-radius: var(--ol-border-radius-small);
|
|
4145
|
+
font-size: var(--ol-font-size-x-small);
|
|
4146
|
+
font-weight: var(--ol-font-weight-medium);
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
.ol-sidebar__asset-content {
|
|
4150
|
+
flex: 1;
|
|
4151
|
+
min-width: 0;
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
.ol-sidebar__asset-item--faq .ol-sidebar__asset-content {
|
|
4155
|
+
width: 100%;
|
|
4156
|
+
max-width: 100%;
|
|
4157
|
+
overflow: hidden;
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
.ol-sidebar__asset-name {
|
|
4161
|
+
font-weight: 500;
|
|
4162
|
+
color: var(--ol-color-neutral-900);
|
|
4163
|
+
font-size: 11px;
|
|
4164
|
+
line-height: 1.2;
|
|
4165
|
+
margin-bottom: 4px;
|
|
4166
|
+
overflow: hidden;
|
|
4167
|
+
text-overflow: ellipsis;
|
|
4168
|
+
white-space: nowrap;
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
.ol-sidebar__asset-name--faq {
|
|
4172
|
+
font-size: 14px;
|
|
4173
|
+
font-weight: 600;
|
|
4174
|
+
color: var(--ol-color-neutral-900);
|
|
4175
|
+
line-height: 1.4;
|
|
4176
|
+
white-space: normal;
|
|
4177
|
+
overflow: visible;
|
|
4178
|
+
text-overflow: unset;
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
.ol-sidebar__asset-description {
|
|
4182
|
+
color: var(--ol-color-neutral-600);
|
|
4183
|
+
font-size: 10px;
|
|
4184
|
+
line-height: 1.2;
|
|
4185
|
+
margin-bottom: 4px;
|
|
4186
|
+
overflow: hidden;
|
|
4187
|
+
text-overflow: ellipsis;
|
|
4188
|
+
display: -webkit-box;
|
|
4189
|
+
-webkit-line-clamp: 2;
|
|
4190
|
+
-webkit-box-orient: vertical;
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
.ol-sidebar__asset-description--faq {
|
|
4194
|
+
font-size: 12px;
|
|
4195
|
+
color: var(--ol-color-neutral-700);
|
|
4196
|
+
line-height: 1.5;
|
|
4197
|
+
margin-bottom: 0;
|
|
4198
|
+
display: -webkit-box;
|
|
4199
|
+
-webkit-line-clamp: 3;
|
|
4200
|
+
-webkit-box-orient: vertical;
|
|
4201
|
+
overflow: hidden;
|
|
4202
|
+
text-overflow: ellipsis;
|
|
4203
|
+
word-wrap: break-word;
|
|
4204
|
+
word-break: break-word;
|
|
4205
|
+
max-height: calc(1.5em * 3); /* Fallback para navegadores que no soportan line-clamp */
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
.ol-sidebar__asset-meta {
|
|
4209
|
+
display: flex;
|
|
4210
|
+
flex-wrap: wrap;
|
|
4211
|
+
gap: var(--ol-spacing-x-small);
|
|
4212
|
+
margin-bottom: var(--ol-spacing-x-small);
|
|
4213
|
+
}
|
|
4214
|
+
|
|
4215
|
+
.ol-sidebar__asset-price,
|
|
4216
|
+
.ol-sidebar__asset-size,
|
|
4217
|
+
.ol-sidebar__asset-duration {
|
|
4218
|
+
color: var(--ol-color-neutral-500);
|
|
4219
|
+
font-size: 10px;
|
|
4220
|
+
font-weight: 500;
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
.ol-sidebar__asset-price {
|
|
4224
|
+
color: var(--ol-color-success-600);
|
|
4225
|
+
font-weight: 600;
|
|
4226
|
+
font-size: 11px;
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4229
|
+
.ol-sidebar__asset-tags {
|
|
4230
|
+
display: flex;
|
|
4231
|
+
flex-wrap: wrap;
|
|
4232
|
+
gap: var(--ol-spacing-x-small);
|
|
4233
|
+
}
|
|
4234
|
+
|
|
4235
|
+
.ol-sidebar__asset-tag {
|
|
4236
|
+
background-color: var(--ol-color-neutral-100);
|
|
4237
|
+
color: var(--ol-color-neutral-700);
|
|
4238
|
+
padding: 2px var(--ol-spacing-x-small);
|
|
4239
|
+
border-radius: var(--ol-border-radius-small);
|
|
4240
|
+
font-size: var(--ol-font-size-x-small);
|
|
4241
|
+
font-weight: var(--ol-font-weight-medium);
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4244
|
+
.ol-sidebar__load-more {
|
|
4245
|
+
display: flex;
|
|
4246
|
+
justify-content: center;
|
|
4247
|
+
padding: var(--ol-spacing-medium) 0;
|
|
4248
|
+
}
|
|
4249
|
+
|
|
4250
|
+
.ol-sidebar__loading,
|
|
4251
|
+
.ol-sidebar__error,
|
|
4252
|
+
.ol-sidebar__empty {
|
|
4253
|
+
display: flex;
|
|
4254
|
+
flex-direction: column;
|
|
4255
|
+
align-items: center;
|
|
4256
|
+
justify-content: center;
|
|
4257
|
+
padding: var(--ol-spacing-large);
|
|
4258
|
+
text-align: center;
|
|
4259
|
+
color: var(--ol-color-neutral-500);
|
|
4260
|
+
min-height: 120px;
|
|
4261
|
+
width: 100%;
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
.ol-sidebar__loading {
|
|
4265
|
+
gap: var(--ol-spacing-small);
|
|
4266
|
+
}
|
|
4267
|
+
|
|
4268
|
+
.ol-sidebar__loading .ol-sidebar__spinner {
|
|
4269
|
+
margin: 0 auto;
|
|
4270
|
+
display: block;
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
.ol-sidebar__loading span {
|
|
4274
|
+
display: block;
|
|
4275
|
+
text-align: center;
|
|
4276
|
+
width: 100%;
|
|
4277
|
+
}
|
|
4278
|
+
|
|
4279
|
+
.ol-sidebar__error {
|
|
4280
|
+
color: var(--ol-color-danger-600);
|
|
4281
|
+
gap: var(--ol-spacing-small);
|
|
4282
|
+
}
|
|
4283
|
+
|
|
4284
|
+
.ol-sidebar__error-icon {
|
|
4285
|
+
font-size: var(--ol-font-size-large);
|
|
4286
|
+
color: var(--ol-color-danger-500);
|
|
4287
|
+
display: block;
|
|
4288
|
+
text-align: center;
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
.ol-sidebar__error span {
|
|
4292
|
+
display: block;
|
|
4293
|
+
text-align: center;
|
|
4294
|
+
width: 100%;
|
|
4295
|
+
}
|
|
4296
|
+
|
|
4297
|
+
.ol-sidebar__empty {
|
|
4298
|
+
gap: var(--ol-spacing-small);
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
.ol-sidebar__empty span {
|
|
4302
|
+
display: block;
|
|
4303
|
+
text-align: center;
|
|
4304
|
+
width: 100%;
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4307
|
+
.ol-sidebar__loading ol-icon,
|
|
4308
|
+
.ol-sidebar__error ol-icon,
|
|
4309
|
+
.ol-sidebar__empty ol-icon {
|
|
4310
|
+
font-size: var(--ol-font-size-large);
|
|
4311
|
+
color: var(--ol-color-neutral-400);
|
|
4312
|
+
display: block;
|
|
4313
|
+
text-align: center;
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
.ol-sidebar__error ol-icon {
|
|
4317
|
+
color: var(--ol-color-danger-500);
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
/* Send button */
|
|
4321
|
+
.ol-sidebar__send-btn {
|
|
4322
|
+
position: absolute;
|
|
4323
|
+
top: 8px;
|
|
4324
|
+
right: 8px;
|
|
4325
|
+
width: 28px;
|
|
4326
|
+
height: 28px;
|
|
4327
|
+
border: none;
|
|
4328
|
+
border-radius: 50%;
|
|
4329
|
+
background: var(--ol-color-primary-500, --ol-color-red-500);
|
|
4330
|
+
color: white;
|
|
4331
|
+
cursor: pointer;
|
|
4332
|
+
display: flex;
|
|
4333
|
+
align-items: center;
|
|
4334
|
+
justify-content: center;
|
|
4335
|
+
transition: all 0.2s ease;
|
|
4336
|
+
z-index: 2;
|
|
4337
|
+
opacity: 0;
|
|
4338
|
+
transform: scale(0.8);
|
|
4339
|
+
}
|
|
4340
|
+
|
|
4341
|
+
/* Show send button on hover for desktop */
|
|
4342
|
+
.ol-sidebar__asset-item:hover .ol-sidebar__send-btn {
|
|
4343
|
+
opacity: 1;
|
|
4344
|
+
transform: scale(1);
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
.ol-sidebar__send-btn:hover {
|
|
4348
|
+
background: var(--ol-color-primary-600, --ol-color-red-500);
|
|
4349
|
+
transform: scale(1.1);
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
.ol-sidebar__send-btn svg {
|
|
4353
|
+
width: 14px;
|
|
4354
|
+
height: 14px;
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
/* Special positioning for FAQ assets */
|
|
4358
|
+
.ol-sidebar__asset-item--faq .ol-sidebar__send-btn {
|
|
4359
|
+
position: absolute;
|
|
4360
|
+
top: 50%;
|
|
4361
|
+
right: 12px;
|
|
4362
|
+
transform: translateY(-50%) scale(0.8);
|
|
4363
|
+
opacity: 0;
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4366
|
+
.ol-sidebar__asset-item--faq:hover .ol-sidebar__send-btn {
|
|
4367
|
+
opacity: 1;
|
|
4368
|
+
transform: translateY(-50%) scale(1);
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
.ol-sidebar__asset-item--faq .ol-sidebar__send-btn:hover {
|
|
4372
|
+
transform: translateY(-50%) scale(1.1);
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
/* Responsive design */
|
|
4376
|
+
@media (max-width: 768px) {
|
|
4377
|
+
/* Always show send button on mobile */
|
|
4378
|
+
.ol-sidebar__send-btn {
|
|
4379
|
+
opacity: 1;
|
|
4380
|
+
transform: scale(1);
|
|
4381
|
+
position: static;
|
|
4382
|
+
align-self: center;
|
|
4383
|
+
width: 32px;
|
|
4384
|
+
height: 32px;
|
|
4385
|
+
position: absolute;
|
|
4386
|
+
top: 8px;
|
|
4387
|
+
right: 8px;
|
|
4388
|
+
}
|
|
4389
|
+
|
|
4390
|
+
.ol-sidebar__asset-item:hover .ol-sidebar__send-btn {
|
|
4391
|
+
transform: scale(1);
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
.ol-sidebar__asset-item--faq .ol-sidebar__send-btn {
|
|
4395
|
+
position: static;
|
|
4396
|
+
transform: none;
|
|
4397
|
+
align-self: center;
|
|
4398
|
+
width: 32px;
|
|
4399
|
+
height: 32px;
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
.ol-sidebar__asset-item--faq:hover .ol-sidebar__send-btn {
|
|
4403
|
+
transform: none;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
.ol-sidebar__asset-item--list {
|
|
4407
|
+
flex-direction: column;
|
|
4408
|
+
align-items: stretch;
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
.ol-sidebar__asset-item--list .ol-sidebar__asset-thumbnail {
|
|
4412
|
+
width: 100%;
|
|
4413
|
+
height: 120px;
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
4416
|
+
`;var x={products:{label:"PRODUCTS",icon:"shopping-bag",enabled:!0,displayOptions:{showThumbnail:!0,showDescription:!1,showPrice:!0,showTags:!1,thumbnailSize:"small",layout:"grid"}},videos:{label:"VIDEOS",icon:"video",enabled:!0,displayOptions:{showThumbnail:!0,showDescription:!1,showDuration:!0,showSize:!1,thumbnailSize:"small",layout:"grid"}},images:{label:"IMAGES",icon:"image",enabled:!0,displayOptions:{showThumbnail:!0,showDescription:!1,showSize:!1,thumbnailSize:"small",layout:"grid"}},presentations:{label:"PRESENTATIONS",icon:"file-text",enabled:!0,displayOptions:{showThumbnail:!0,showDescription:!1,showSize:!1,thumbnailSize:"small",layout:"grid"}},faqs:{label:"FAQS",icon:"help-circle",enabled:!0,displayOptions:{showThumbnail:!1,showDescription:!0,showSize:!1,thumbnailSize:"small",layout:"list"}},audios:{label:"AUDIOS",icon:"music",enabled:!1,displayOptions:{showThumbnail:!0,showDescription:!1,showDuration:!0,showSize:!1,thumbnailSize:"small",layout:"grid"}},"special-effects":{label:"SPECIAL EFFECTS",icon:"zap",enabled:!1,displayOptions:{showThumbnail:!0,showDescription:!1,showSize:!1,thumbnailSize:"small",layout:"grid"}}};var p=class extends l.LitElement{constructor(){super(...arguments);this.selectedCategory="products";this.disabled=!1;this.isUploading=!1;this.uploadProgress=0;this.categoryStates=new Map;this.unifiedSearchQuery="";this.extraFilters=[];this.activeFilters={};this.loadingFilters=!1;this.defaultSearchConfig={placeholder:"Search all assets...",debounceMs:300,minLength:2}}async firstUpdated(){this.initializeService(),this.initializeCategoryStates(),await this.loadExtraFilters()}initializeService(){this.config?.multimediaService&&(this.multimediaService=E.initialize(this.config.multimediaService)),this.config?.productService&&(this.productService=A.initialize(this.config.productService)),this.config?.faqsService&&(this.faqsService=C.initialize(this.config.faqsService)),this.config?.fileService&&(this.fileService=F.initialize(this.config.fileService))}initializeCategoryStates(){(this.config?.customCategories||Object.keys(x)).forEach(o=>{this.categoryStates.set(o,{category:o,items:[],pagination:{page:1,limit:this.config?.itemsPerPage||12,total:0,hasMore:!1,loading:!1},searchQuery:"",loading:!1})})}async loadExtraFilters(){if(!this.config?.enableExtraFilters||!this.faqsService)return;let e=this.config.faqsService?.organizationId;if(!e){console.warn("Organization ID required for loading extra filters");return}this.loadingFilters=!0;try{let o=await this.faqsService.getSettingsByOrganization(e,this.config.userGroupId);o?.extraFilters&&(this.extraFilters=o.extraFilters.filter(s=>s.enabled&&(s.entity==="all"||s.entity==="assets")).sort((s,i)=>s.order-i.order))}catch(o){console.error("Error loading extra filters:",o)}finally{this.loadingFilters=!1}}hasActiveFilters(){return Object.keys(this.activeFilters).length>0}convertToExtraFields(e){if(!e||Object.keys(e).length===0)return;let o={};for(let[s,i]of Object.entries(e))i!=null&&(Array.isArray(i)?i.length>0&&(o[s]=i.join(",")):typeof i=="string"&&i.trim()!==""&&(i==="true"?o[s]=!0:i==="false"?o[s]=!1:!isNaN(Number(i))&&i.trim()!==""?o[s]=Number(i):o[s]=i));return Object.keys(o).length>0?o:void 0}async loadCategoryData(e,o="",s=1){if(!this.multimediaService&&e!=="faqs"&&e!=="products"||!this.productService&&e==="products"||!this.faqsService&&e==="faqs")return;let i=this.categoryStates.get(e);if(!i)return;this.updateCategoryState(e,{loading:!0,error:void 0});let n=this.hasActiveFilters()?this.activeFilters:void 0;try{let c=[],v=0;switch(e){case"products":{let m=await this.productService.getProducts({title:o,limit:i.pagination.limit,includeSecureToken:!0,extraFields:this.convertToExtraFields(n)});c=this.mapProductsToAssetItems(m),v=m.length;break}case"images":{let m=await this.multimediaService.getImages({search:o,page:s,limit:i.pagination.limit,includeSecureToken:!0,extraFilters:n});c=this.mapMultimediaToAssetItems(m.items,"images"),v=m.total;break}case"videos":{let m=await this.multimediaService.getVideos({search:o,page:s,limit:i.pagination.limit,includeSecureToken:!0,extraFilters:n});c=this.mapMultimediaToAssetItems(m.items,"videos"),v=m.total;break}case"presentations":{let m=await this.multimediaService.getPresentations({search:o,page:s,limit:i.pagination.limit,includeSecureToken:!0,extraFilters:n});c=this.mapMultimediaToAssetItems(m.items,"presentations"),v=m.total;break}case"faqs":{let m=await this.faqsService.getFaqs({search:o,isActive:!0,page:s,organizationId:this.config?.faqsService?.organizationId,limit:i.pagination.limit,sortBy:"priority",sortOrder:"desc",extraFilters:n});c=this.mapFaqsToAssetItems(m.data),v=m.total;break}}let y=s===1?c:[...i.items,...c];this.updateCategoryState(e,{items:y,pagination:{...i.pagination,page:s,total:v,hasMore:y.length<v,loading:!1},searchQuery:o,loading:!1})}catch(c){console.error(`Error loading ${e} data:`,c),this.updateCategoryState(e,{loading:!1,error:c instanceof Error?c.message:"Failed to load data"})}}mapProductsToAssetItems(e){return e.map(o=>({id:o.id,name:o.name,description:o.description,url:o.url,thumbnail:o.images?.[0],type:"products",price:o.price,currency:o.currency,tags:o.tags,secureToken:o.secureToken,metadata:{externalId:o.externalId,category:o.category,providerType:o.providerType,variants:o.variants,options:o.options}}))}mapMultimediaToAssetItems(e,o){return e?.map(s=>({id:s.id,name:s.name,description:s.description,url:s.url,thumbnail:o==="images"?s.url:s.animatedCoverUrl,type:o,size:s.size,format:s.format,duration:s.duration,labels:s.labels,secureToken:s.secureToken,metadata:{organizationId:s.organizationId,status:s.status,vodUrl:s.vodUrl,slides:s.slides}}))}mapFaqsToAssetItems(e){return e.map(o=>({id:o.id,name:o.question,description:o.answer,url:`#faq-${o.id}`,type:"faqs",metadata:{organizationId:o.organizationId,groupId:o.groupId,priority:o.priority,isActive:o.isActive,createdAt:o.createdAt,updatedAt:o.updatedAt}}))}updateCategoryState(e,o){let s=this.categoryStates.get(e);s&&(this.categoryStates.set(e,{...s,...o}),this.requestUpdate())}async onCategoryToggle(e){if(this.disabled)return;let o=this.categoryStates.get(e);o&&o.items.length===0&&!o.loading&&await this.loadCategoryData(e,this.unifiedSearchQuery),this.dispatchEvent(new CustomEvent("category-change",{detail:e}))}async onUnifiedSearchInput(e){if(this.disabled)return;let s=e.target.value.trim();this.unifiedSearchQuery=s,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=window.setTimeout(async()=>{s.length>=(this.searchConfig?.minLength||this.defaultSearchConfig.minLength)?(await this.searchAllCategories(s),this.dispatchEvent(new CustomEvent("search",{detail:{query:s,category:"all"}}))):s.length===0&&await this.clearSearchAllCategories()},this.searchConfig?.debounceMs||this.defaultSearchConfig.debounceMs)}async searchAllCategories(e){let o=this.config?.customCategories||Object.keys(x);for(let s of o)this.updateCategoryState(s,{searchQuery:e}),await this.loadCategoryData(s,e,1)}async clearSearchAllCategories(){let e=this.config?.customCategories||Object.keys(x);for(let o of e)this.updateCategoryState(o,{searchQuery:""}),await this.loadCategoryData(o,"",1)}async onFilterChange(e,o){if(!this.disabled){if(!o||Array.isArray(o)&&o.length===0||o===""){let{[e]:s,...i}=this.activeFilters;this.activeFilters=i}else this.activeFilters={...this.activeFilters,[e]:o};await this.reloadAllOpenCategories(),this.dispatchEvent(new CustomEvent("filter-change",{detail:{filterName:e,value:o,activeFilters:this.activeFilters}}))}}async reloadAllOpenCategories(){let e=this.config?.customCategories||Object.keys(x);for(let o of e){let s=this.categoryStates.get(o);s&&s.items.length>0&&await this.loadCategoryData(o,s.searchQuery,1)}}renderExtraFilters(){return this.extraFilters.length?l.html`
|
|
4417
|
+
<div class="ol-sidebar__extra-filters">
|
|
4418
|
+
${(0,N.repeat)(this.extraFilters,e=>e.name,e=>this.renderFilter(e))}
|
|
4419
|
+
</div>
|
|
4420
|
+
`:l.html``}renderFilter(e){switch(e.type){case"select":return this.renderSelectFilter(e);case"multiselect":return this.renderMultiselectFilter(e);case"text":return this.renderTextFilter(e);default:return l.html``}}renderSelectFilter(e){let o=this.activeFilters[e.name];return l.html`
|
|
4421
|
+
<div class="ol-sidebar__filter">
|
|
4422
|
+
<label class="ol-sidebar__filter-label">${e.label}</label>
|
|
4423
|
+
<ol-select
|
|
4424
|
+
class="ol-sidebar__filter-select"
|
|
4425
|
+
placeholder=${(0,$.ifDefined)(e.placeholder||`Select ${e.label.toLowerCase()}`)}
|
|
4426
|
+
clearable
|
|
4427
|
+
size="small"
|
|
4428
|
+
?disabled=${this.disabled}
|
|
4429
|
+
.value=${o||""}
|
|
4430
|
+
@ol-change=${s=>{let i=s.target;this.onFilterChange(e.name,i.value)}}
|
|
4431
|
+
>
|
|
4432
|
+
${e.values?.map(s=>l.html`
|
|
4433
|
+
<ol-option value=${s}>${s}</ol-option>
|
|
4434
|
+
`)}
|
|
4435
|
+
</ol-select>
|
|
4436
|
+
</div>
|
|
4437
|
+
`}renderMultiselectFilter(e){let o=this.activeFilters[e.name]||[];return l.html`
|
|
4438
|
+
<div class="ol-sidebar__filter">
|
|
4439
|
+
<label class="ol-sidebar__filter-label">${e.label}</label>
|
|
4440
|
+
<ol-select
|
|
4441
|
+
class="ol-sidebar__filter-select"
|
|
4442
|
+
placeholder=${(0,$.ifDefined)(e.placeholder||`Select ${e.label.toLowerCase()}`)}
|
|
4443
|
+
multiple
|
|
4444
|
+
clearable
|
|
4445
|
+
size="small"
|
|
4446
|
+
?disabled=${this.disabled}
|
|
4447
|
+
.value=${o}
|
|
4448
|
+
@ol-change=${s=>{let i=s.target,n=Array.isArray(i.value)?i.value:[i.value].filter(Boolean);this.onFilterChange(e.name,n)}}
|
|
4449
|
+
>
|
|
4450
|
+
${e.values?.map(s=>l.html`
|
|
4451
|
+
<ol-option value=${s}>${s}</ol-option>
|
|
4452
|
+
`)}
|
|
4453
|
+
</ol-select>
|
|
4454
|
+
</div>
|
|
4455
|
+
`}renderTextFilter(e){let o=this.activeFilters[e.name]||"";return l.html`
|
|
4456
|
+
<div class="ol-sidebar__filter">
|
|
4457
|
+
<label class="ol-sidebar__filter-label">${e.label}</label>
|
|
4458
|
+
<ol-input
|
|
4459
|
+
class="ol-sidebar__filter-input"
|
|
4460
|
+
placeholder=${(0,$.ifDefined)(e.placeholder||`Enter ${e.label.toLowerCase()}`)}
|
|
4461
|
+
size="small"
|
|
4462
|
+
?disabled=${this.disabled}
|
|
4463
|
+
.value=${o}
|
|
4464
|
+
@ol-input=${s=>{let i=s.target;this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=window.setTimeout(()=>{this.onFilterChange(e.name,i.value)},this.searchConfig?.debounceMs||this.defaultSearchConfig.debounceMs)}}
|
|
4465
|
+
></ol-input>
|
|
4466
|
+
</div>
|
|
4467
|
+
`}async onLoadMore(e){if(this.disabled)return;let o=this.categoryStates.get(e);!o||!o.pagination.hasMore||o.pagination.loading||(await this.loadCategoryData(e,o.searchQuery,o.pagination.page+1),this.dispatchEvent(new CustomEvent("load-more",{detail:e})))}onItemSelect(e){this.disabled||this.dispatchEvent(new CustomEvent("item-select",{detail:e}))}async onFileSelected(e){if(this.disabled)return;if(!this.fileService){console.warn("FileService not configured");return}let{file:o,type:s}=e.detail;this.isUploading=!0,this.uploadProgress=0;try{let i=await this.fileService.uploadFile(o,{bucketType:"conversations",path:"scanned",description:`${s} uploaded from sidebar`,onProgress:n=>{this.uploadProgress=n}});if(i.success)this.dispatchEvent(new CustomEvent("file-uploaded",{detail:{id:i.id,name:i.name,url:i.url,type:"file"}}));else throw new Error(i.error||"Upload failed")}catch(i){console.error("Error uploading file:",i),this.dispatchEvent(new CustomEvent("file-upload-error",{detail:{error:i instanceof Error?i.message:"Unknown error"},bubbles:!0}))}finally{this.isUploading=!1,this.uploadProgress=0}}renderCategoryHeader(e){let o=x[e],i=this.categoryStates.get(e)?.items.length||0;return l.html`
|
|
4468
|
+
<div class="ol-sidebar__category-header">
|
|
4469
|
+
<div class="ol-sidebar__category-info">
|
|
4470
|
+
<span class="ol-sidebar__category-label">${o.label}</span>
|
|
4471
|
+
${(0,u.when)(i>0,()=>l.html`
|
|
4472
|
+
<span class="ol-sidebar__category-count">(${i})</span>
|
|
4473
|
+
`)}
|
|
4474
|
+
</div>
|
|
4475
|
+
|
|
4476
|
+
</div>
|
|
4477
|
+
`}renderAssetItem(e,o){return l.html`
|
|
4478
|
+
<div
|
|
4479
|
+
class="ol-sidebar__asset-item ${(0,z.classMap)({"ol-sidebar__asset-item--grid":o.layout==="grid","ol-sidebar__asset-item--list":o.layout==="list","ol-sidebar__asset-item--faq":e.type==="faqs","ol-sidebar__asset-item--disabled":this.disabled})}"
|
|
4480
|
+
@click=${()=>this.onItemSelect(e)}
|
|
4481
|
+
>
|
|
4482
|
+
${this.renderAssetThumbnail(e)}
|
|
4483
|
+
${this.renderAssetContent(e,o)}
|
|
4484
|
+
</div>
|
|
4485
|
+
`}renderAssetThumbnail(e){return e.type==="faqs"?l.html``:l.html`
|
|
4486
|
+
${(0,u.when)(e.type==="videos",()=>l.html`
|
|
4487
|
+
<div class="ol-sidebar__asset-thumbnail">
|
|
4488
|
+
<och-player
|
|
4489
|
+
class="och__media-visualizer__item--video"
|
|
4490
|
+
.sources=${[{src:e.url,type:e.format||"video/mp4"}]}
|
|
4491
|
+
></och-player>
|
|
4492
|
+
<div class="ol-sidebar__asset-duration">
|
|
4493
|
+
${this.formatDuration(e.duration)}
|
|
4494
|
+
</div>
|
|
4495
|
+
</div>
|
|
4496
|
+
`,()=>l.html`
|
|
4497
|
+
<div class="ol-sidebar__asset-thumbnail">
|
|
4498
|
+
<img
|
|
4499
|
+
src="${(0,$.ifDefined)(e.thumbnail)}"
|
|
4500
|
+
alt="${e.name}"
|
|
4501
|
+
class="ol-sidebar__asset-image"
|
|
4502
|
+
/>
|
|
4503
|
+
</div>
|
|
4504
|
+
`)}
|
|
4505
|
+
`}renderAssetContent(e,o){return l.html`
|
|
4506
|
+
<div class="ol-sidebar__asset-content">
|
|
4507
|
+
${this.renderAssetName(e)}
|
|
4508
|
+
${this.renderAssetPrice(e)}
|
|
4509
|
+
${this.renderAssetPresentation(e)}
|
|
4510
|
+
${this.renderAssetDescription(e,o)}
|
|
4511
|
+
${this.renderAssetMeta(e,o)}
|
|
4512
|
+
${this.renderAssetTags(e,o)}
|
|
4513
|
+
</div>
|
|
4514
|
+
`}renderAssetName(e){return l.html`
|
|
4515
|
+
<div class="ol-sidebar__asset-name ${(0,z.classMap)({"ol-sidebar__asset-name--faq":e.type==="faqs"})}">
|
|
4516
|
+
${e.name}
|
|
4517
|
+
</div>
|
|
4518
|
+
`}renderAssetPrice(e){return l.html`
|
|
4519
|
+
${(0,u.when)(e.type==="products"&&e.price,()=>l.html`
|
|
4520
|
+
<div class="ol-sidebar__asset-price">
|
|
4521
|
+
${e.currency} ${e.price}
|
|
4522
|
+
</div>
|
|
4523
|
+
`)}
|
|
4524
|
+
`}renderAssetPresentation(e){return l.html`
|
|
4525
|
+
${(0,u.when)(e.type==="presentations",()=>l.html`
|
|
4526
|
+
<div class="ol-sidebar__asset-presentation">
|
|
4527
|
+
${(0,u.when)(e.metadata?.slides&&e.metadata.slides.length>0,()=>l.html`
|
|
4528
|
+
<div class="ol-sidebar__asset-presentation-preview">
|
|
4529
|
+
<img
|
|
4530
|
+
src=${e.metadata?.slides[0]}
|
|
4531
|
+
alt="Presentation preview"
|
|
4532
|
+
class="ol-sidebar__asset-presentation-image"
|
|
4533
|
+
/>
|
|
4534
|
+
<div class="ol-sidebar__asset-presentation-format">
|
|
4535
|
+
${this.getFormat(e.format)}
|
|
4536
|
+
</div>
|
|
4537
|
+
</div>
|
|
4538
|
+
`,()=>l.html`
|
|
4539
|
+
<div class="ol-sidebar__asset-presentation-fallback">
|
|
4540
|
+
<div class="ol-sidebar__asset-presentation-icon">📄</div>
|
|
4541
|
+
<div class="ol-sidebar__asset-presentation-format">
|
|
4542
|
+
${this.getFormat(e.format)}
|
|
4543
|
+
</div>
|
|
4544
|
+
</div>
|
|
4545
|
+
`)}
|
|
4546
|
+
</div>
|
|
4547
|
+
`)}
|
|
4548
|
+
`}renderAssetDescription(e,o){return l.html`
|
|
4549
|
+
${(0,u.when)(o.showDescription&&e.description&&e.type!=="products",()=>l.html`
|
|
4550
|
+
<div class="ol-sidebar__asset-description ${(0,z.classMap)({"ol-sidebar__asset-description--faq":e.type==="faqs"})}">
|
|
4551
|
+
${e.description}
|
|
4552
|
+
</div>
|
|
4553
|
+
`)}
|
|
4554
|
+
`}renderAssetMeta(e,o){return l.html`
|
|
4555
|
+
<div class="ol-sidebar__asset-meta">
|
|
4556
|
+
${(0,u.when)(o.showSize&&e.size,()=>l.html`
|
|
4557
|
+
<span class="ol-sidebar__asset-size">
|
|
4558
|
+
${this.formatFileSize(e.size)}
|
|
4559
|
+
</span>
|
|
4560
|
+
`)}
|
|
4561
|
+
</div>
|
|
4562
|
+
`}renderAssetTags(e,o){return l.html`
|
|
4563
|
+
${(0,u.when)(o.showTags&&e.tags&&e.tags.length>0,()=>l.html`
|
|
4564
|
+
<div class="ol-sidebar__asset-tags">
|
|
4565
|
+
${e.tags?.map(s=>l.html`
|
|
4566
|
+
<span class="ol-sidebar__asset-tag">${s}</span>
|
|
4567
|
+
`)}
|
|
4568
|
+
</div>
|
|
4569
|
+
`)}
|
|
4570
|
+
`}renderCategoryContent(e){let o=this.categoryStates.get(e),s=x[e];return o?l.html`
|
|
4571
|
+
<div class="ol-sidebar__category-content">
|
|
4572
|
+
|
|
4573
|
+
${(0,u.when)(o.loading&&o.items.length===0,()=>l.html`
|
|
4574
|
+
<div class="ol-sidebar__loading">
|
|
4575
|
+
<div class="ol-sidebar__spinner"></div>
|
|
4576
|
+
<span>Loading ${s.label.toLowerCase()}...</span>
|
|
4577
|
+
</div>
|
|
4578
|
+
`)}
|
|
4579
|
+
|
|
4580
|
+
${(0,u.when)(o.error,()=>l.html`
|
|
4581
|
+
<div class="ol-sidebar__error">
|
|
4582
|
+
<span class="ol-sidebar__error-icon">⚠</span>
|
|
4583
|
+
<span>${o.error}</span>
|
|
4584
|
+
</div>
|
|
4585
|
+
`)}
|
|
4586
|
+
|
|
4587
|
+
${(0,u.when)(o.items.length>0,()=>l.html`
|
|
4588
|
+
<div class="ol-sidebar__assets ${(0,z.classMap)({"ol-sidebar__assets--list":s.displayOptions.layout==="list"})}">
|
|
4589
|
+
${(0,N.repeat)(o.items,i=>i.id,i=>this.renderAssetItem(i,s.displayOptions))}
|
|
4590
|
+
</div>
|
|
4591
|
+
`)}
|
|
4592
|
+
|
|
4593
|
+
${(0,u.when)(o.pagination.hasMore,()=>l.html`
|
|
4594
|
+
<div class="ol-sidebar__load-more">
|
|
4595
|
+
<ol-button
|
|
4596
|
+
class="ol-sidebar__load-more-button"
|
|
4597
|
+
?disabled=${o.pagination.loading||this.disabled}
|
|
4598
|
+
@click=${()=>this.onLoadMore(e)}
|
|
4599
|
+
>
|
|
4600
|
+
${o.pagination.loading?"Loading...":"Load More"}
|
|
4601
|
+
</ol-button>
|
|
4602
|
+
</div>
|
|
4603
|
+
`)}
|
|
4604
|
+
|
|
4605
|
+
${(0,u.when)(!o.loading&&o.items.length===0&&!o.error,()=>l.html`
|
|
4606
|
+
<div class="ol-sidebar__empty">
|
|
4607
|
+
<span>No ${s.label.toLowerCase()}s found</span>
|
|
4608
|
+
</div>
|
|
4609
|
+
`)}
|
|
4610
|
+
</div>
|
|
4611
|
+
`:l.html``}formatFileSize(e){let o=["B","KB","MB","GB"];if(e===0)return"0 B";let s=Math.floor(Math.log(e)/Math.log(1024));return Math.round(e/1024**s*100)/100+" "+o[s]}getFormat(e){return e.split("/")[1]}formatDuration(e){let o=Math.floor(e/60),s=Math.floor(e%60);return`${o}:${s.toString().padStart(2,"0")}`}render(){let e=this.config?.customCategories||Object.keys(x);return l.html`
|
|
4612
|
+
<div class="ol-sidebar ${(0,z.classMap)({"ol-sidebar--disabled":this.disabled})}">
|
|
4613
|
+
<div class="ol-sidebar__header">
|
|
4614
|
+
<div class="ol-sidebar__header-top">
|
|
4615
|
+
<h2 class="ol-sidebar__title">Assets</h2>
|
|
4616
|
+
${(0,u.when)(this.config?.enableUpload&&this.fileService&&!this.disabled,()=>l.html`
|
|
4617
|
+
<osb-upload
|
|
4618
|
+
.config=${{maxFileSize:10*1024*1024,showImage:!0,showVideo:!0,showDocument:!0}}
|
|
4619
|
+
@osb-file-selected=${this.onFileSelected}
|
|
4620
|
+
>
|
|
4621
|
+
<ol-button variant="default" caret>
|
|
4622
|
+
<ol-icon name="plus"></ol-icon>
|
|
4623
|
+
</ol-button>
|
|
4624
|
+
</osb-upload>
|
|
4625
|
+
${(0,u.when)(this.isUploading,()=>l.html`
|
|
4626
|
+
<div class="ol-sidebar__upload-progress">
|
|
4627
|
+
<div class="ol-sidebar__upload-progress-bar">
|
|
4628
|
+
<div
|
|
4629
|
+
class="ol-sidebar__upload-progress-fill"
|
|
4630
|
+
style="width: ${this.uploadProgress}%"
|
|
4631
|
+
></div>
|
|
4632
|
+
</div>
|
|
4633
|
+
<span class="ol-sidebar__upload-progress-text">
|
|
4634
|
+
${Math.round(this.uploadProgress)}%
|
|
4635
|
+
</span>
|
|
4636
|
+
</div>
|
|
4637
|
+
`)}
|
|
4638
|
+
`)}
|
|
4639
|
+
</div>
|
|
4640
|
+
${(0,u.when)(this.config?.showSearch,()=>l.html`
|
|
4641
|
+
<div class="ol-sidebar__unified-search">
|
|
4642
|
+
<input
|
|
4643
|
+
class="ol-sidebar__unified-search-input"
|
|
4644
|
+
type="text"
|
|
4645
|
+
placeholder="${(0,$.ifDefined)(this.searchConfig?.placeholder||this.defaultSearchConfig.placeholder)}"
|
|
4646
|
+
.value=${this.unifiedSearchQuery}
|
|
4647
|
+
?disabled=${this.disabled}
|
|
4648
|
+
@input=${this.onUnifiedSearchInput}
|
|
4649
|
+
/>
|
|
4650
|
+
</div>
|
|
4651
|
+
`)}
|
|
4652
|
+
${(0,u.when)(this.config?.enableExtraFilters&&this.extraFilters.length>0,()=>this.renderExtraFilters())}
|
|
4653
|
+
${(0,u.when)(this.loadingFilters,()=>l.html`
|
|
4654
|
+
<div class="ol-sidebar__filters-loading">
|
|
4655
|
+
<div class="ol-sidebar__spinner ol-sidebar__spinner--small"></div>
|
|
4656
|
+
<span>Loading filters...</span>
|
|
4657
|
+
</div>
|
|
4658
|
+
`)}
|
|
4659
|
+
</div>
|
|
4660
|
+
|
|
4661
|
+
<div class="ol-sidebar__content">
|
|
4662
|
+
${(0,N.repeat)(e,o=>o,o=>x[o].enabled?l.html`
|
|
4663
|
+
<ol-details
|
|
4664
|
+
class="ol-sidebar__category ${(0,z.classMap)({"ol-sidebar__category--disabled":this.disabled})}"
|
|
4665
|
+
summary=""
|
|
4666
|
+
?disabled=${this.disabled}
|
|
4667
|
+
@ol-show=${()=>this.onCategoryToggle(o)}
|
|
4668
|
+
>
|
|
4669
|
+
<div class="ol-sidebar__category-summary" slot="summary">
|
|
4670
|
+
${this.renderCategoryHeader(o)}
|
|
4671
|
+
</div>
|
|
4672
|
+
${this.renderCategoryContent(o)}
|
|
4673
|
+
</ol-details>
|
|
4674
|
+
`:l.html``)}
|
|
4675
|
+
</div>
|
|
4676
|
+
</div>
|
|
4677
|
+
`}};p.styles=[de],d([(0,h.property)({type:Object})],p.prototype,"config",2),d([(0,h.property)({type:Object})],p.prototype,"searchConfig",2),d([(0,h.property)({type:String})],p.prototype,"selectedCategory",2),d([(0,h.property)({type:Boolean})],p.prototype,"disabled",2),d([(0,h.state)()],p.prototype,"multimediaService",2),d([(0,h.state)()],p.prototype,"productService",2),d([(0,h.state)()],p.prototype,"faqsService",2),d([(0,h.state)()],p.prototype,"fileService",2),d([(0,h.state)()],p.prototype,"isUploading",2),d([(0,h.state)()],p.prototype,"uploadProgress",2),d([(0,h.state)()],p.prototype,"categoryStates",2),d([(0,h.state)()],p.prototype,"searchTimeout",2),d([(0,h.state)()],p.prototype,"unifiedSearchQuery",2),d([(0,h.state)()],p.prototype,"extraFilters",2),d([(0,h.state)()],p.prototype,"activeFilters",2),d([(0,h.state)()],p.prototype,"loadingFilters",2),p=d([w("osb-side-bar")],p);var ce=require("@lit/react"),ve=f(require("react"),1);var pe=(0,ce.createComponent)({tagName:"osb-asset",elementClass:g,react:ve.default,events:{onAssetClick:"asset-click",onAssetDownload:"asset-download",onAssetLoad:"asset-load",onAssetError:"asset-error",onContentClick:"content-click"}});var me=require("@lit/react"),ue=f(require("react"),1);var ge=(0,me.createComponent)({tagName:"osb-side-bar",elementClass:p,react:ue.default,events:{onSearch:"search",onLoadMore:"load-more",onItemAdd:"item-add",onCategoryChange:"category-change",onItemSelect:"item-select",onFileUpload:"file-uploaded"}});var he=require("@lit/react"),fe=f(require("react"),1);var be=(0,he.createComponent)({tagName:"osb-upload",elementClass:j,react:fe.default,events:{onFileSelected:"osb-file-selected",onUploadError:"osb-upload-error"}});0&&(module.exports={Asset,OSBAsset,OSBSideBar,OSBUpload,SideBar,Upload});
|