cty-mui-core 1.0.21 → 1.0.23

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.
Files changed (55) hide show
  1. package/components/cty-camera-photo.js +4 -2
  2. package/components/cty-share-sheet.js +3 -2
  3. package/components/cty-video.js +3 -2
  4. package/components/status-bar.js +19 -1
  5. package/dist/cjs/cty-camera-photo.cjs.entry.js +2 -2
  6. package/dist/cjs/cty-media-capture.cjs.entry.js +1 -1
  7. package/dist/cjs/cty-mui.cjs.js +1 -1
  8. package/dist/cjs/cty-share-sheet.cjs.entry.js +2 -2
  9. package/dist/cjs/cty-video.cjs.entry.js +4 -3
  10. package/dist/cjs/index.cjs.js +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/{status-bar-BJrl_sQk.js → status-bar-DR3Ts0xT.js} +19 -1
  13. package/dist/collection/components/camera-photo/camera-photo.css +2 -0
  14. package/dist/collection/components/camera-photo/camera-photo.js +4 -2
  15. package/dist/collection/components/share-sheet/share-sheet.css +4 -0
  16. package/dist/collection/components/share-sheet/share-sheet.js +3 -2
  17. package/dist/collection/components/video/video.js +3 -2
  18. package/dist/collection/utils/date.js +19 -1
  19. package/dist/cty-mui/cty-mui.esm.js +1 -1
  20. package/dist/cty-mui/index.esm.js +1 -1
  21. package/dist/cty-mui/p-061ea659.system.entry.js +1 -0
  22. package/dist/cty-mui/{p-bb83aa1b.system.entry.js → p-2ade6369.system.entry.js} +1 -1
  23. package/dist/cty-mui/{p-fd2da714.entry.js → p-3bbb54df.entry.js} +1 -1
  24. package/dist/cty-mui/p-4c1ed416.system.entry.js +1 -0
  25. package/dist/cty-mui/p-705df197.entry.js +1 -0
  26. package/dist/cty-mui/p-Cegbc1c7.system.js +1 -1
  27. package/dist/cty-mui/{p-vRZWRoQ8.js → p-DHw6yjQm.js} +1 -1
  28. package/dist/cty-mui/{p-BLI96Ug8.system.js → p-DcAsxXPo.system.js} +1 -1
  29. package/dist/cty-mui/{p-CWfyjvMz.system.js → p-MYIzeChY.system.js} +1 -1
  30. package/dist/cty-mui/{p-a78aa31c.entry.js → p-c3f845cf.entry.js} +1 -1
  31. package/dist/cty-mui/{p-78fcf340.entry.js → p-d8e7bff7.entry.js} +1 -1
  32. package/dist/cty-mui/{p-9997121c.system.entry.js → p-ee54f61b.system.entry.js} +1 -1
  33. package/dist/docs.json +1 -1
  34. package/dist/esm/cty-camera-photo.entry.js +2 -2
  35. package/dist/esm/cty-media-capture.entry.js +1 -1
  36. package/dist/esm/cty-mui.js +1 -1
  37. package/dist/esm/cty-share-sheet.entry.js +2 -2
  38. package/dist/esm/cty-video.entry.js +4 -3
  39. package/dist/esm/index.js +1 -1
  40. package/dist/esm/loader.js +1 -1
  41. package/dist/esm/{status-bar-DhaoWhCJ.js → status-bar-KyPyjcXz.js} +19 -1
  42. package/dist/esm-es5/cty-camera-photo.entry.js +1 -1
  43. package/dist/esm-es5/cty-media-capture.entry.js +1 -1
  44. package/dist/esm-es5/cty-mui.js +1 -1
  45. package/dist/esm-es5/cty-share-sheet.entry.js +1 -1
  46. package/dist/esm-es5/cty-video.entry.js +1 -1
  47. package/dist/esm-es5/index.js +1 -1
  48. package/dist/esm-es5/loader.js +1 -1
  49. package/dist/esm-es5/{status-bar-DhaoWhCJ.js → status-bar-KyPyjcXz.js} +1 -1
  50. package/dist/types/components/camera-photo/camera-photo.d.ts +2 -2
  51. package/dist/types/components/share-sheet/share-sheet.d.ts +1 -1
  52. package/package.json +1 -1
  53. package/dist/cty-mui/p-3e33b40b.system.entry.js +0 -1
  54. package/dist/cty-mui/p-6fc16b0f.entry.js +0 -1
  55. package/dist/cty-mui/p-8a8f89d4.system.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,c as t,h as i,a,g as c}from"./p-DBsZD0Dk.js";import{r as s,s as r}from"./p-vRZWRoQ8.js";import{v as o}from"./p-5nFZnKTK.js";import{o as l,q as n}from"./p-CvHW-guK.js";import"./p-iD8sj4Mi.js";import"./p-cERsY8tm.js";import"./p-CZI7sxie.js";import"./p-CXtPwfcM.js";import"./p-BqPoMbNS.js";import"./p-BqPNWsXF.js";const d=class{constructor(i){e(this,i),this.ctyDismiss=t(this,"ctyDismiss",7),this.ctyComplete=t(this,"ctyComplete",7),this.ctyStart=t(this,"ctyStart",7),this.ctyStop=t(this,"ctyStop",7),this.confirmText="完成",this.captureTime=!0,this.options={},this.closeIcon=l,this.revocationIcon=n,this.loop=!0,this.autoplay=!0,this.controls=!1,this.poster="",this.timeLimit=0,this.isCaptured=!1,this.capturing=!1,this.captureDuration=0,this.filePath="",this.videoFileUrl="",this.originalBodyBackground="",this._timer=0}connectedCallback(){this.initVideoCapture()}initVideoCapture(){const e=window.document.querySelector("body");e.style.visibility="hidden",this.originalBodyBackground=window.getComputedStyle(e).background,e.style.background="transparent",o.captureVideo(this.options).then((e=>{if(e){const{url:t,data:i}=e;this.filePath=i,this.videoFileUrl=t,setTimeout((()=>{this.videoEl.play()}),150)}})).catch((()=>{}))}disconnectedCallback(){this.videoEl&&this.videoEl.pause(),clearInterval(this._timer);const e=window.document.querySelector("body");e.style.visibility="visible",e.style.background=this.originalBodyBackground,s.toggleStatusBar(!0)}doCapture(){this.capturing?this.stopVideoCapture():this.startVideoCapture()}async startVideoCapture(){await o.startVideoCapture().catch((()=>{})),this.capturing=!0,clearInterval(this._timer),this._timer=window.setInterval((()=>{this.captureDuration++,this.timeLimit>0&&this.captureDuration>=this.captureDuration&&(this.stopVideoCapture(),clearInterval(this._timer))}),1e3),this.ctyStart.emit()}async stopVideoCapture(){await o.stopVideoCapture().catch((()=>{})),clearInterval(this._timer),this.capturing=!1,this.isCaptured=!0,this.ctyStop.emit()}doHeaderAction(){if(this.isCaptured)return this.initVideoCapture(),this.isCaptured=!1,this.captureDuration=0,this.filePath="",void(this.videoFileUrl="");this.ctyDismiss.emit()}toggleVideo(e){const t=e.target;t.paused?t.play():t.pause()}confirm(){this.ctyComplete.emit({data:this.filePath,url:this.videoFileUrl})}render(){const e=r(this.captureDuration);return i(a,{key:"7df73ede7265de8ac877c284fb99236beb7da688",class:{"cty-media-capture":!0,"cty-media-captured":this.isCaptured}},i("div",{key:"dd490280cf4bf3c0b64eb71c7222ddb63165f4bc",class:"cty-media-capture__header"},i("button",{key:"f5fbad30e612392ec925e4a74435cf150880f961",onClick:()=>this.doHeaderAction(),class:"cty-button-native"},i("cty-icon",{key:"a16ba899880f3d544b69627f8fc507dc13a916d0",class:"cty-capture__close-icon",name:this.isCaptured?this.revocationIcon:this.closeIcon})),this.captureTime&&(this.isCaptured||this.capturing)&&i("span",{key:"30bfee5fa232c20e9884aafed22aa0f2752b70e4",class:{"cty-media-capture__time":!0,"cty-media-capture__time-active":this.capturing}},e)),this.isCaptured&&i("video",{key:"d46137ee89411d0cdb1ed6c690a3cdad5a878866",ref:e=>this.videoEl=e,class:"cty-media-capture__video",autoplay:this.autoplay,loop:this.loop,poster:this.poster,src:this.videoFileUrl,playsinline:!0,"webkit-playsinline":!0,controls:this.controls,onClick:e=>this.toggleVideo(e)}),i("div",{key:"db58c0730e88a834932da85e577f4523d7469754",class:"cty-media-capture__footer flex-center"},!this.isCaptured&&i("button",{key:"23995b602e06dc4f3f3bd21bb0ee33ffc7153aa9",class:"cty-media-capture__switch cty-button-native",onClick:()=>this.doCapture()},i("span",{key:"fe1f90736da47dff04e7e79dfdaaf09c1205eeb3",class:{"cty-media-capture__status":!0,"cty-media-capture__status-active":this.capturing}})),this.isCaptured&&i("button",{key:"d5437d70c9cf19fa6373b57d86b644444f54e886",class:"cty-media-capture__confirm cty-button-native",onClick:()=>this.confirm()},this.confirmText)),i("slot",{key:"0215ebf29d18176002d375d9053aa89772e3b6b6"}))}get el(){return c(this)}};d.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-media-capture-video-background:var(--cty-color-black);--cty-media-capture-header-top:var(--ion-safe-area-top, 44px);--cty-media-capture-header-padding-start:10px;--cty-media-capture-header-padding-end:15px;--cty-media-capture-close-icon-size:24px;--cty-media-capture-close-icon-color:var(--cty-color-primary);--cty-media-capture-time-padding:2px 5px;--cty-media-capture-time-bg-color:#f00;--cty-media-capture-time-size:var(--cty-font-size-base);--cty-media-capture-time-color:var(--cty-color-white);--cty-media-capture-time-border-radius:var(--cty-border-radius-small);--cty-media-capture-footer-bottom:30px;--cty-media-capture-switch-size:60px;--cty-media-capture-switch-bg-color:var(--cty-color-primary);--cty-media-capture-switch-active-bg-color:#f00;--cty-media-capture-switch-border-width:3px;--cty-media-capture-switch-active-size:24px;--cty-media-capture-status-size:48px;--cty-media-capture-confirm-min-height:30px;--cty-media-capture-confirm-padding:0 1em;--cty-media-capture-confirm-size:var(--cty-font-size-base);--cty-media-capture-confirm-color:var(--cty-color-white);--cty-media-capture-confirm-bg-color:var(--cty-color-primary);--cty-media-capture-confirm-right:15px;--cty-media-capture-confirm-border-radius:var(--cty-border-radius-base);--cty-media-capture-video-object-fit:cover;position:absolute;left:0;top:0;width:100vw;height:100vh;visibility:visible !important}:host(.cty-media-captured){background:var(--cty-media-capture-video-background)}.cty-media-capture__header{position:absolute;z-index:1;left:0;top:var(--cty-media-capture-header-top);width:100%;padding-left:var(--cty-media-capture-header-padding-start);padding-right:var(--cty-media-capture-header-padding-end)}.cty-capture__close-icon{font-size:var(--cty-media-capture-close-icon-size);color:var(--cty-media-capture-close-icon-color)}.cty-media-capture__time{position:absolute;left:50%;top:50%;padding:var(--cty-media-capture-time-padding);border-radius:var(--cty-media-capture-time-border-radius);font-size:var(--cty-media-capture-time-size);color:var(--cty-media-capture-time-color);-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-media-capture__time-active{background:var(--cty-media-capture-time-bg-color)}.cty-media-capture__footer{position:absolute;bottom:var(--cty-media-capture-footer-bottom);left:0;width:100%}.cty-media-capture__switch{width:var(--cty-media-capture-switch-size);height:var(--cty-media-capture-switch-size);border-color:var(--cty-media-capture-switch-bg-color);border-width:var(--cty-media-capture-switch-border-width);border-style:solid;border-radius:var(--cty-border-radius-circle);cursor:pointer}.cty-media-capture__status{width:var(--cty-media-capture-status-size);height:var(--cty-media-capture-status-size);border-radius:var(--cty-border-radius-circle);background:var(--cty-media-capture-switch-bg-color);-webkit-transition:0.3s;transition:0.3s}.cty-media-capture__status-active{width:var(--cty-media-capture-switch-active-size);height:var(--cty-media-capture-switch-active-size);border-radius:var(--cty-border-radius-base);background:var(--cty-media-capture-switch-active-bg-color)}.cty-media-capture__confirm{position:absolute;right:var(--cty-media-capture-confirm-right);top:50%;min-height:var(--cty-media-capture-confirm-min-height);background:var(--cty-media-capture-confirm-bg-color);padding:var(--cty-media-capture-confirm-padding);color:var(--cty-media-capture-confirm-color);font-size:var(--cty-media-capture-confirm-size);border-radius:var(--cty-media-capture-confirm-border-radius);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-media-capture__video{position:absolute;left:0;top:0;width:100%;height:100%;-o-object-fit:var(--cty-media-capture-video-object-fit);object-fit:var(--cty-media-capture-video-object-fit)}";export{d as cty_media_capture}
1
+ import{r as e,c as t,h as i,a,g as c}from"./p-DBsZD0Dk.js";import{r as s,s as r}from"./p-DHw6yjQm.js";import{v as o}from"./p-5nFZnKTK.js";import{o as l,q as n}from"./p-CvHW-guK.js";import"./p-iD8sj4Mi.js";import"./p-cERsY8tm.js";import"./p-CZI7sxie.js";import"./p-CXtPwfcM.js";import"./p-BqPoMbNS.js";import"./p-BqPNWsXF.js";const d=class{constructor(i){e(this,i),this.ctyDismiss=t(this,"ctyDismiss",7),this.ctyComplete=t(this,"ctyComplete",7),this.ctyStart=t(this,"ctyStart",7),this.ctyStop=t(this,"ctyStop",7),this.confirmText="完成",this.captureTime=!0,this.options={},this.closeIcon=l,this.revocationIcon=n,this.loop=!0,this.autoplay=!0,this.controls=!1,this.poster="",this.timeLimit=0,this.isCaptured=!1,this.capturing=!1,this.captureDuration=0,this.filePath="",this.videoFileUrl="",this.originalBodyBackground="",this._timer=0}connectedCallback(){this.initVideoCapture()}initVideoCapture(){const e=window.document.querySelector("body");e.style.visibility="hidden",this.originalBodyBackground=window.getComputedStyle(e).background,e.style.background="transparent",o.captureVideo(this.options).then((e=>{if(e){const{url:t,data:i}=e;this.filePath=i,this.videoFileUrl=t,setTimeout((()=>{this.videoEl.play()}),150)}})).catch((()=>{}))}disconnectedCallback(){this.videoEl&&this.videoEl.pause(),clearInterval(this._timer);const e=window.document.querySelector("body");e.style.visibility="visible",e.style.background=this.originalBodyBackground,s.toggleStatusBar(!0)}doCapture(){this.capturing?this.stopVideoCapture():this.startVideoCapture()}async startVideoCapture(){await o.startVideoCapture().catch((()=>{})),this.capturing=!0,clearInterval(this._timer),this._timer=window.setInterval((()=>{this.captureDuration++,this.timeLimit>0&&this.captureDuration>=this.captureDuration&&(this.stopVideoCapture(),clearInterval(this._timer))}),1e3),this.ctyStart.emit()}async stopVideoCapture(){await o.stopVideoCapture().catch((()=>{})),clearInterval(this._timer),this.capturing=!1,this.isCaptured=!0,this.ctyStop.emit()}doHeaderAction(){if(this.isCaptured)return this.initVideoCapture(),this.isCaptured=!1,this.captureDuration=0,this.filePath="",void(this.videoFileUrl="");this.ctyDismiss.emit()}toggleVideo(e){const t=e.target;t.paused?t.play():t.pause()}confirm(){this.ctyComplete.emit({data:this.filePath,url:this.videoFileUrl})}render(){const e=r(this.captureDuration);return i(a,{key:"7df73ede7265de8ac877c284fb99236beb7da688",class:{"cty-media-capture":!0,"cty-media-captured":this.isCaptured}},i("div",{key:"dd490280cf4bf3c0b64eb71c7222ddb63165f4bc",class:"cty-media-capture__header"},i("button",{key:"f5fbad30e612392ec925e4a74435cf150880f961",onClick:()=>this.doHeaderAction(),class:"cty-button-native"},i("cty-icon",{key:"a16ba899880f3d544b69627f8fc507dc13a916d0",class:"cty-capture__close-icon",name:this.isCaptured?this.revocationIcon:this.closeIcon})),this.captureTime&&(this.isCaptured||this.capturing)&&i("span",{key:"30bfee5fa232c20e9884aafed22aa0f2752b70e4",class:{"cty-media-capture__time":!0,"cty-media-capture__time-active":this.capturing}},e)),this.isCaptured&&i("video",{key:"d46137ee89411d0cdb1ed6c690a3cdad5a878866",ref:e=>this.videoEl=e,class:"cty-media-capture__video",autoplay:this.autoplay,loop:this.loop,poster:this.poster,src:this.videoFileUrl,playsinline:!0,"webkit-playsinline":!0,controls:this.controls,onClick:e=>this.toggleVideo(e)}),i("div",{key:"db58c0730e88a834932da85e577f4523d7469754",class:"cty-media-capture__footer flex-center"},!this.isCaptured&&i("button",{key:"23995b602e06dc4f3f3bd21bb0ee33ffc7153aa9",class:"cty-media-capture__switch cty-button-native",onClick:()=>this.doCapture()},i("span",{key:"fe1f90736da47dff04e7e79dfdaaf09c1205eeb3",class:{"cty-media-capture__status":!0,"cty-media-capture__status-active":this.capturing}})),this.isCaptured&&i("button",{key:"d5437d70c9cf19fa6373b57d86b644444f54e886",class:"cty-media-capture__confirm cty-button-native",onClick:()=>this.confirm()},this.confirmText)),i("slot",{key:"0215ebf29d18176002d375d9053aa89772e3b6b6"}))}get el(){return c(this)}};d.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-button-native{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;background:transparent;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;line-height:1;border:0;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}:host{--cty-media-capture-video-background:var(--cty-color-black);--cty-media-capture-header-top:var(--ion-safe-area-top, 44px);--cty-media-capture-header-padding-start:10px;--cty-media-capture-header-padding-end:15px;--cty-media-capture-close-icon-size:24px;--cty-media-capture-close-icon-color:var(--cty-color-primary);--cty-media-capture-time-padding:2px 5px;--cty-media-capture-time-bg-color:#f00;--cty-media-capture-time-size:var(--cty-font-size-base);--cty-media-capture-time-color:var(--cty-color-white);--cty-media-capture-time-border-radius:var(--cty-border-radius-small);--cty-media-capture-footer-bottom:30px;--cty-media-capture-switch-size:60px;--cty-media-capture-switch-bg-color:var(--cty-color-primary);--cty-media-capture-switch-active-bg-color:#f00;--cty-media-capture-switch-border-width:3px;--cty-media-capture-switch-active-size:24px;--cty-media-capture-status-size:48px;--cty-media-capture-confirm-min-height:30px;--cty-media-capture-confirm-padding:0 1em;--cty-media-capture-confirm-size:var(--cty-font-size-base);--cty-media-capture-confirm-color:var(--cty-color-white);--cty-media-capture-confirm-bg-color:var(--cty-color-primary);--cty-media-capture-confirm-right:15px;--cty-media-capture-confirm-border-radius:var(--cty-border-radius-base);--cty-media-capture-video-object-fit:cover;position:absolute;left:0;top:0;width:100vw;height:100vh;visibility:visible !important}:host(.cty-media-captured){background:var(--cty-media-capture-video-background)}.cty-media-capture__header{position:absolute;z-index:1;left:0;top:var(--cty-media-capture-header-top);width:100%;padding-left:var(--cty-media-capture-header-padding-start);padding-right:var(--cty-media-capture-header-padding-end)}.cty-capture__close-icon{font-size:var(--cty-media-capture-close-icon-size);color:var(--cty-media-capture-close-icon-color)}.cty-media-capture__time{position:absolute;left:50%;top:50%;padding:var(--cty-media-capture-time-padding);border-radius:var(--cty-media-capture-time-border-radius);font-size:var(--cty-media-capture-time-size);color:var(--cty-media-capture-time-color);-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-media-capture__time-active{background:var(--cty-media-capture-time-bg-color)}.cty-media-capture__footer{position:absolute;bottom:var(--cty-media-capture-footer-bottom);left:0;width:100%}.cty-media-capture__switch{width:var(--cty-media-capture-switch-size);height:var(--cty-media-capture-switch-size);border-color:var(--cty-media-capture-switch-bg-color);border-width:var(--cty-media-capture-switch-border-width);border-style:solid;border-radius:var(--cty-border-radius-circle);cursor:pointer}.cty-media-capture__status{width:var(--cty-media-capture-status-size);height:var(--cty-media-capture-status-size);border-radius:var(--cty-border-radius-circle);background:var(--cty-media-capture-switch-bg-color);-webkit-transition:0.3s;transition:0.3s}.cty-media-capture__status-active{width:var(--cty-media-capture-switch-active-size);height:var(--cty-media-capture-switch-active-size);border-radius:var(--cty-border-radius-base);background:var(--cty-media-capture-switch-active-bg-color)}.cty-media-capture__confirm{position:absolute;right:var(--cty-media-capture-confirm-right);top:50%;min-height:var(--cty-media-capture-confirm-min-height);background:var(--cty-media-capture-confirm-bg-color);padding:var(--cty-media-capture-confirm-padding);color:var(--cty-media-capture-confirm-color);font-size:var(--cty-media-capture-confirm-size);border-radius:var(--cty-media-capture-confirm-border-radius);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-media-capture__video{position:absolute;left:0;top:0;width:100%;height:100%;-o-object-fit:var(--cty-media-capture-video-object-fit);object-fit:var(--cty-media-capture-video-object-fit)}";export{d as cty_media_capture}
@@ -1 +1 @@
1
- import{r as t,c as o,h as a,a as c,g as e}from"./p-DBsZD0Dk.js";import{i}from"./p-DgInCMSb.js";import{d as r,c as s}from"./p-CXtPwfcM.js";import{e as h,f as p,p as n,g as y,h as l,j as m,k as d}from"./p-CTeeGenQ.js";import{c as b}from"./p-CaB1JJxy.js";import{r as g}from"./p-Bm1EyNNA.js";import{g as v,l as u,e as x}from"./p-CbxS1eTP.js";import"./p-CZI7sxie.js";import"./p-BqPoMbNS.js";import"./p-BqPNWsXF.js";import"./p-iD8sj4Mi.js";import"./p-B9QMksFp.js";import"./p-ZjP4CjeZ.js";import"./p-skPg8wu0.js";const f=class{constructor(a){t(this,a),this.ctyTapStart=o(this,"ctyTapStart",7),this.ctyTap=o(this,"ctyTap",7),this.ctyDismiss=o(this,"ctyDismiss",7),this.didPresent=o(this,"ctyDidPresent",7),this.willPresent=o(this,"ctyWillPresent",7),this.willDismiss=o(this,"ctyWillDismiss",7),this.didDismiss=o(this,"ctyDidDismiss",7),this.delegateController=h(this),this.lockController=b(),this.triggerController=p(),this.presented=!1,this.hasController=!1,this.backdropDismiss=!0,this.title="",this.closeable=!1,this.closeIcon="cty-close2",this.cancelText="取消",this.file=!0,this.count=1,this.photoOption={},this.options=[{text:"从手机相册选择",permissionDescription:"存储空间权限使用说明:<br/>用于访问图片、视频、音频文件",action:"album"},{text:"拍一张",permissionDescription:"相机权限使用说明:<br/>用于拍摄、录制视频等场景",action:"camera"}],this.clipPt="",this.clipCancelText="取消",this.clipCconfirmText="选取",this.clipImageWidth=750,this.clipImageBg="",this.clipMaxScale=2,this.clipMinScale=1,this.clipImageQuality=1,this.clipImageSuffix="jpeg",this.permissionPurpose=!0,this.root="default",this.animated=!1,this.overlay=!0,this.isMicroMessager=r.isMicroMessager,this.isIOS=r.isIos,this.allowEdit=!1,this.showCropImage=!1,this.clipImage="",this.imageSource={option:{action:""},imageList:[],index:0},this.showPermissionPurpose=!1,this.permissionDescription=""}triggerChanged(){const{trigger:t,el:o,triggerController:a}=this;t&&a.addClickListener(o,t)}connectedCallback(){n(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.presented&&y()}componentDidLoad(){!this.hasController&&g((()=>this.present()))}componentWillLoad(){this.allowEdit=this.clipPt.indexOf(this.isMicroMessager?"W":this.isIOS?"I":"A")>=0&&!this.photoOption.allowEdit}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(this.root),await l(this,"cameraPhotoEnter",(t=>x(t,".cty-camera-photo"))),t()}async dismiss(){const t=await this.lockController.lock(),o=await m(this,"cameraPhotoLeave",(t=>u(t,".cty-camera-photo")));return o&&this.delegateController.removeViewFromDom(),t(),o}onDidDismiss(){return d(this.el,"ctyDidDismiss")}onWillDismiss(){return d(this.el,"ctyWillDismiss")}async _buttonClick(t){t.stopPropagation();const{index:o}=t.detail,a=this.options[o];if(this.ctyTapStart.emit(o),"album"!=a.action&&"camera"!=a.action)return a.handler&&a.handler({option:a,imageList:[]}),void this.ctyTap.emit({index:o,imageList:[]});this.isIOS||this.isMicroMessager||await this.checkPermission(a.action||"",a.permissionDescription||"");let c=[];try{const t={camera:"camera"===a.action,file:this.file,count:this.count,option:this.photoOption};c=await i.getPictures(t),this.showPermissionPurpose=!1}catch(t){this.showPermissionPurpose=!1}if(this.allowEdit&&("camera"===a.action||"album"===a.action&&1==this.count)&&c.length>0)return this.showCropImage=!0,this.clipImage=c[0].url,void(this.imageSource={option:a,imageList:c,index:o});a.handler&&a.handler({option:a,imageList:c}),this.ctyTap.emit({index:o,imageList:c})}checkPermission(t,o){return Promise.resolve().then((async()=>{if(this.permissionPurpose&&o)if(this.permissionDescription=o,"camera"!=t)if("album"!=t);else{const t=await s("READ_MEDIA_IMAGES"),o=await s("READ_EXTERNAL_STORAGE");!1===t&&!1===o&&(this.showPermissionPurpose=!0)}else!1===await s("CAMERA")&&(this.showPermissionPurpose=!0)})).catch((t=>void 0===t?null:t))}_doCropCancel(){this.showCropImage=!1;const{index:t}=this.imageSource;this._buttonClick({detail:{item:{},index:t}})}_doCropConfirm(t){const o=t.detail,{option:a,imageList:c,index:e}=this.imageSource;c[0]=o,this.showCropImage=!1,a.handler&&a.handler({option:a,imageList:c}),this.ctyTap.emit({index:e,imageList:c})}render(){return a(c,{key:"4994ab89e969ab4f135e61d465ce4fcd34739b0b",class:Object.assign(Object.assign({},v(this.cssClass)),{"overlay-hidden":!0,"cty-pos-cover":this.overlay}),style:{zIndex:`${2e4+this.overlayIndex}`}},a("cty-action-sheet",{key:"deef5fb5f31944b226bcb22e0df2bafb685bedbd",class:"cty-camera-photo",animated:!1,overlayIndex:1,backdropDismiss:this.backdropDismiss,title:this.title,closeable:this.closeable,closeIcon:this.closeIcon,cancelText:this.cancelText,options:this.options,onCtyDismiss:()=>this.dismiss(),onCtyTap:t=>this._buttonClick(t)}),this.showCropImage&&a("cty-backdrop",{key:"e264d6caf8b866f83f5d1b9bc46bf8ede10f3420",backdropDismiss:!1},a("cty-crop-image",{key:"3d3068238520a825596c106be9bcea7c88d8ea4c",url:this.clipImage,cancelText:this.clipCancelText,confirmText:this.clipCconfirmText,imageWidth:this.clipImageWidth,imageBackground:this.clipImageBg,maxScale:this.clipMaxScale,minScale:this.clipMinScale,suffix:this.clipImageSuffix,quality:this.clipImageQuality,onCtyCancel:()=>this._doCropCancel(),onCtyConfirm:t=>this._doCropConfirm(t)})),this.showPermissionPurpose&&a("cty-permission-purpose",{key:"924373b5916aa0abd717e5c35e041f82b6b73bb0",description:this.permissionDescription}))}get el(){return e(this)}static get watchers(){return{trigger:["triggerChanged"]}}};f.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-crop-overlay-z-index:999999;--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-backdrop{z-index:var(--cty-camera-photo-crop-overlay-z-index);background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{background:var(--cty-camera-photo-crop-background);width:var(--cty-camera-photo-crop-width);height:var(--cty-camera-photo-crop-height);--cty-crop-image-clip-width:var(--cty-camera-photo-crop-clip-width);--cty-crop-image-clip-height:var(--cty-camera-photo-crop-clip-height);--cty-crop-image-clip-background:var(--cty-camera-photo-crop-clip-background);--cty-crop-image-clip-border:var(--cty-camera-photo-crop-clip-border);--cty-crop-image-buttons-padding:var(--cty-camera-photo-crop-buttons-padding);--cty-crop-image-button-padding:var(--cty-camera-photo-crop-button-padding);--cty-crop-image-button-color:var(--cty-camera-photo-crop-button-color);--cty-crop-image-button-active-color:var(--cty-camera-photo-crop-button-active-color);--cty-crop-image-button-size:var(--cty-camera-photo-crop-button-size);--cty-crop-image-button-line-height:var(--cty-camera-photo-crop-button-line-height);--cty-crop-image-button-weight:var(--cty-camera-photo-crop-overlay-weight)}cty-permission-purpose{--cty-permission-purpose-overlay-background:var(--cty-camera-photo-permission-purpose-overlay-background);--cty-permission-purpose-overlay-height:var(--cty-camera-photo-permission-purpose-overlay-height)}";export{f as cty_camera_photo}
1
+ import{r as t,c as o,h as a,a as e,g as c}from"./p-DBsZD0Dk.js";import{i}from"./p-DgInCMSb.js";import{d as r,c as s}from"./p-CXtPwfcM.js";import{e as p,f as h,p as n,g as y,h as l,j as m,k as d}from"./p-CTeeGenQ.js";import{c as g}from"./p-CaB1JJxy.js";import{r as b}from"./p-Bm1EyNNA.js";import{g as v,l as u,e as x}from"./p-CbxS1eTP.js";import"./p-CZI7sxie.js";import"./p-BqPoMbNS.js";import"./p-BqPNWsXF.js";import"./p-iD8sj4Mi.js";import"./p-B9QMksFp.js";import"./p-ZjP4CjeZ.js";import"./p-skPg8wu0.js";const f=class{constructor(a){t(this,a),this.ctyTapStart=o(this,"ctyTapStart",7),this.ctyTap=o(this,"ctyTap",7),this.ctyDismiss=o(this,"ctyDismiss",7),this.didPresent=o(this,"ctyDidPresent",7),this.willPresent=o(this,"ctyWillPresent",7),this.willDismiss=o(this,"ctyWillDismiss",7),this.didDismiss=o(this,"ctyDidDismiss",7),this.delegateController=p(this),this.lockController=g(),this.triggerController=h(),this.presented=!1,this.hasController=!1,this.backdropDismiss=!0,this.title="",this.closeable=!1,this.closeIcon="cty-close2",this.cancelText="取消",this.file=!0,this.count=1,this.photoOption={},this.options=[{text:"从手机相册选择",permissionDescription:"存储空间权限使用说明:<br/>用于访问图片、视频、音频文件",action:"album"},{text:"拍一张",permissionDescription:"相机权限使用说明:<br/>用于拍摄、录制视频等场景",action:"camera"}],this.clipPt="",this.clipCancelText="取消",this.clipCconfirmText="选取",this.clipImageWidth=750,this.clipImageBg="",this.clipMaxScale=2,this.clipMinScale=1,this.clipImageQuality=1,this.clipImageSuffix="jpeg",this.permissionPurpose=!0,this.root="default",this.animated=!1,this.overlay=!0,this.isMicroMessager=r.isMicroMessager,this.isIOS=r.isIos,this.allowEdit=!1,this.showCropImage=!1,this.clipImage="",this.imageSource={option:{action:""},imageList:[],index:0},this.showPermissionPurpose=!1,this.permissionDescription=""}triggerChanged(){const{trigger:t,el:o,triggerController:a}=this;t&&a.addClickListener(o,t)}connectedCallback(){n(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.presented&&y()}componentDidLoad(){!this.hasController&&b((()=>this.present()))}componentWillLoad(){this.allowEdit=this.clipPt.indexOf(this.isMicroMessager?"W":this.isIOS?"I":"A")>=0&&!this.photoOption.allowEdit}async present(){const t=await this.lockController.lock();await this.delegateController.attachViewToDom(this.root),await l(this,"cameraPhotoEnter",(t=>x(t,".cty-camera-photo"))),t()}async dismiss(){const t=await this.lockController.lock(),o=await m(this,"cameraPhotoLeave",(t=>u(t,".cty-camera-photo")));return o&&this.delegateController.removeViewFromDom(),t(),o}onDidDismiss(){return d(this.el,"ctyDidDismiss")}onWillDismiss(){return d(this.el,"ctyWillDismiss")}async _buttonClick(t){t.stopPropagation();const{index:o}=t.detail,a=this.options[o];if(this.ctyTapStart.emit(o),"album"!=a.action&&"camera"!=a.action)return a.handler&&a.handler({option:a,imageList:[]}),void this.ctyTap.emit({index:o,imageList:[]});this.isIOS||this.isMicroMessager||await this.checkPermission(a.action||"",a.permissionDescription||"");let e=[];try{const t={camera:"camera"===a.action,file:this.file,count:this.count,option:this.photoOption};e=await i.getPictures(t),this.showPermissionPurpose=!1}catch(t){this.showPermissionPurpose=!1}if(this.allowEdit&&("camera"===a.action||"album"===a.action&&1==this.count)&&e.length>0)return this.showCropImage=!0,this.clipImage=e[0].url,void(this.imageSource={option:a,imageList:e,index:o});a.handler&&a.handler({option:a,imageList:e}),this.ctyTap.emit({index:o,imageList:e})}checkPermission(t,o){return Promise.resolve().then((async()=>{if(this.permissionPurpose&&o)if(this.permissionDescription=o,"camera"!=t)if("album"!=t);else{const t=await s("READ_MEDIA_IMAGES"),o=await s("READ_EXTERNAL_STORAGE");!1===t&&!1===o&&(this.showPermissionPurpose=!0)}else!1===await s("CAMERA")&&(this.showPermissionPurpose=!0)})).catch((t=>void 0===t?null:t))}_doCropCancel(){this.showCropImage=!1;const{index:t}=this.imageSource;this._buttonClick({detail:{item:{},index:t}})}_doCropConfirm(t){const o=t.detail,{option:a,imageList:e,index:c}=this.imageSource;e[0]=o,this.showCropImage=!1,a.handler&&a.handler({option:a,imageList:e}),this.ctyTap.emit({index:c,imageList:e})}render(){return a(e,{key:"bf664a9c7a1a47f86e1e5efc94edce7b3897ca46",class:Object.assign(Object.assign({},v(this.cssClass)),{"overlay-hidden":!0,"cty-pos-cover":this.overlay}),style:{zIndex:`${2e4+this.overlayIndex}`}},a("cty-action-sheet",{key:"6baf98701e79eead40a3f20f1deac5178d13563b",class:"cty-camera-photo",animated:!1,overlayIndex:1,backdropDismiss:this.backdropDismiss,title:this.title,closeable:this.closeable,closeIcon:this.closeIcon,cancelText:this.cancelText,options:this.options,onCtyDismiss:()=>this.dismiss(),onCtyTap:t=>this._buttonClick(t)}),this.showCropImage&&a("cty-backdrop",{key:"81456ac1e2f369d2d0564d7933776f26ba6f6e0d",backdropDismiss:!1},a("cty-crop-image",{key:"e742d3caae19b9ee3c43a47c200a6768efb125ef",url:this.clipImage,cancelText:this.clipCancelText,confirmText:this.clipCconfirmText,imageWidth:this.clipImageWidth,imageBackground:this.clipImageBg,maxScale:this.clipMaxScale,minScale:this.clipMinScale,suffix:this.clipImageSuffix,quality:this.clipImageQuality,onCtyCancel:()=>this._doCropCancel(),onCtyConfirm:t=>this._doCropConfirm(t)})),this.showPermissionPurpose&&a("cty-permission-purpose",{key:"67c53ea351b7ec13edf5a47ef4aab5b28b275b3d",description:this.permissionDescription}))}get el(){return c(this)}static get watchers(){return{trigger:["triggerChanged"]}}};f.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-crop-overlay-z-index:999999;--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto;--cty-camera-photo-permission-purpose-overlay-z-index:999999}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-backdrop{z-index:var(--cty-camera-photo-crop-overlay-z-index);background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{background:var(--cty-camera-photo-crop-background);width:var(--cty-camera-photo-crop-width);height:var(--cty-camera-photo-crop-height);--cty-crop-image-clip-width:var(--cty-camera-photo-crop-clip-width);--cty-crop-image-clip-height:var(--cty-camera-photo-crop-clip-height);--cty-crop-image-clip-background:var(--cty-camera-photo-crop-clip-background);--cty-crop-image-clip-border:var(--cty-camera-photo-crop-clip-border);--cty-crop-image-buttons-padding:var(--cty-camera-photo-crop-buttons-padding);--cty-crop-image-button-padding:var(--cty-camera-photo-crop-button-padding);--cty-crop-image-button-color:var(--cty-camera-photo-crop-button-color);--cty-crop-image-button-active-color:var(--cty-camera-photo-crop-button-active-color);--cty-crop-image-button-size:var(--cty-camera-photo-crop-button-size);--cty-crop-image-button-line-height:var(--cty-camera-photo-crop-button-line-height);--cty-crop-image-button-weight:var(--cty-camera-photo-crop-overlay-weight)}cty-permission-purpose{--cty-permission-purpose-overlay-background:var(--cty-camera-photo-permission-purpose-overlay-background);--cty-permission-purpose-overlay-height:var(--cty-camera-photo-permission-purpose-overlay-height);--cty-permission-purpose-overlay-z-index:var(--cty-camera-photo-permission-purpose-overlay-z-index)}";export{f as cty_camera_photo}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,o){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function n(t){try{c(o.next(t))}catch(t){a(t)}}function s(t){try{c(o["throw"](t))}catch(t){a(t)}}function c(t){t.done?i(t.value):r(t.value).then(n,s)}c((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(t){return function(e){return c([t,e])}}function c(s){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(i=0)),i)try{if(o=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(s[0]===6&&i.label<a[1]){i.label=a[1];a=s;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(s);break}if(a[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];r=0}finally{o=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-BpC3ubr-.system.js","./p-BqniUMS5.system.js","./p-CWfyjvMz.system.js","./p-ChvDscoj.system.js","./p-B6ewx4qT.system.js","./p-DSgG8qVn.system.js","./p-DvPCY95C.system.js","./p-DA6jN8Vz.system.js","./p-NPOR6IxC.system.js","./p-D36DysLX.system.js"],(function(t){"use strict";var e,i,o,r,a,n,s,c,d,l,h,f,v,u,y,p,g,b,_,m,x,w;return{setters:[function(t){e=t.r;i=t.c;o=t.h;r=t.a;a=t.g},function(t){n=t.g;s=t.b;c=t.a},function(t){d=t.s;l=t.r},function(t){h=t.s;f=t.v},function(t){v=t.n},function(t){u=t.d},function(t){y=t.c},function(t){p=t.v;g=t.a;b=t.b;_=t.c;m=t.d;x=t.e},function(t){w=t.i},null],execute:function(){var k='*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-ellipsis[class]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:normal}.cty-ellipsis2[class]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;word-wrap:break-word}.cty-ellipsis3[class]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-all;word-wrap:break-word}.cty-ellipsis4[class]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;word-break:break-all;word-wrap:break-word}ion-button{--background-activated:transparent;--background-focused:transparent;--background-hover:transparent;--box-shadow:none}ion-grid{padding:0}ion-row{padding:0}ion-col{padding:0}ion-item{--padding-bottom:0;--padding-end:0;--padding-start:0;--padding-top:0;--inner-padding-top:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-bottom:0;--inner-border-width:0;--border-width:0;--min-height:0;--background:none;overflow:initial}ion-toast{--width:84%;--height:36px;--color:var(--cty-color-white);--background:rgba(0, 0, 0, 0.7);--border-radius:100px;line-height:1.2;font-size:var(--cty-font-size-base);text-align:center}.plt-hybrid .safe-area-bottom-border{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid var(--cty-color-white)}.plt-hybrid .safe-area-bottom-border-color{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid currentColor}.plt-hybrid .safe-area-bottom-padding{padding-bottom:var(--ion-safe-area-bottom, 0)}:host{--cty-video-width:100vw;--cty-video-height:100vh;--cty-video-half-width:calc(var(--cty-video-width) / 2);--cty-video-fit:fill;--cty-video-header-height:50px;--cty-video-header-background:var(--cty-overlay-color-lighter);--cty-video-header-unfullscreen-background:transparent;--cty-video-header-unfullscreen-height:30px;--cty-video-header-padding-top:0px;--cty-video-header-padding-bottom:0px;--cty-video-header-padding-start:0px;--cty-video-header-padding-end:0px;--cty-video-header-back-display:flex;--cty-video-header-back-background:transparent;--cty-video-header-back-height:36px;--cty-video-header-back-width:36px;--cty-video-header-back-radius:var(--cty-border-radius-circle);--cty-video-header-back-offset-start:2px;--cty-video-header-back-offset-end:0px;--cty-video-header-back-size:25px;--cty-video-header-back-color:var(--cty-color-white);--cty-video-header-title-size:var(--cty-font-size-medium);--cty-video-header-title-color:var(--cty-color-white);--cty-video-header-title-display:flex;--cty-video-footer-height:50px;--cty-video-footer-background:var(--cty-overlay-color-lighter);--cty-video-footer-unfullscreen-background:transparent;--cty-video-footer-unfullscreen-height:35px;--cty-video-footer-progress-height:0px;--cty-video-footer-padding-start:0px;--cty-video-footer-padding-end:0px;--cty-video-footer-progress-size:var(--cty-font-size-medium);--cty-video-footer-icon-size:24px;--cty-video-footer-fullscreen-icon-size:20px;--cty-video-play-size:80px;--cty-video-play-border:5px solid rgb(238 238 238 / 80%);--cty-video-play-icon-size:40px;--cty-video-unfullscreen-play-size:40px;--cty-video-unfullscreen-play-border:4px solid rgb(238 238 238 / 80%);--cty-video-unfullscreen-play-icon-size:26px;--cty-video-range-bar-height:2px;--cty-video-bar-size:12px;--cty-video-bar-color:var(--cty-color-white);--cty-video-range-knob-background:var(--cty-color-white);--cty-video-range-background:rgb(255 255 255 / 50%);--cty-video-range-background-active:var(--cty-color-primary);--cty-video-loading-background-color:rgb(0 0 0 / 90%);--cty-video-loading-img-width:100px;--cty-video-half-screen-height:56vw;--cty-video-dot-size:7px;--cty-video-dot-padding:9px;--cty-video-dot-active-color:var(--cty-color-primary);--cty-video-progress-vertical-padding:0 15px;--cty-video-progress-horizongtal-padding:0px;--cty-video-rate-active-color:var(--cty-color-primary);--cty-video-toast-width:calc(var(--cty-video-width) * 0.4);--cty-video-toast-height:40px;--cty-video-opn-toast-icon-size:20px;position:relative;display:block;width:var(--cty-video-width);height:var(--cty-video-height);background:var(--cty-color-black)}ion-row{height:100%}ion-col{overflow:hidden}ion-button{min-height:auto;margin:0}.cty-video__wrapper{position:relative;width:100%;height:100%}.cty-video__player{position:absolute;top:0;left:0;display:none;width:var(--cty-video-height);height:var(--cty-video-width);margin:0;-o-object-fit:var(--cty-video-fit);object-fit:var(--cty-video-fit);-webkit-transform:rotate(90deg) translate(0, -100%);transform:rotate(90deg);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width)}.cty-video__controls{position:absolute;top:0;left:0;width:100%;height:100%}.cty-video__header{position:absolute;top:0;left:0;z-index:6;-webkit-box-sizing:content-box;box-sizing:content-box;width:calc(var(--cty-video-height) - var(--cty-video-header-padding-start) - var(--cty-video-header-padding-end));height:var(--cty-video-header-height);padding:var(--cty-video-header-padding-top) var(--cty-video-header-padding-end) var(--cty-video-header-padding-bottom) var(--cty-video-header-padding-start);background:var(--cty-video-header-background);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width)}.cty-video__header-back{display:var(--cty-video-header-back-display);-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__header-back ion-button{width:var(--cty-video-header-back-width);height:var(--cty-video-header-back-height);margin-right:var(--cty-video-header-back-offset-end);margin-left:var(--cty-video-header-back-offset-start);border-radius:var(--cty-video-header-back-radius);--background:var(--cty-video-header-back-background);--padding-start:5px;--padding-end:5px;--padding-top:0;--padding-bottom:0}.cty-video__header-back cty-icon{font-size:var(--cty-video-header-back-size);color:var(--cty-video-header-back-color)}.cty-video__title[class]{display:var(--cty-video-header-title-display);font-size:var(--cty-video-header-title-size);line-height:var(--cty-video-header-height);color:var(--cty-video-header-title-color)}.cty-video__footer{position:absolute;top:0;left:0;z-index:6;-webkit-box-sizing:border-box;box-sizing:border-box;width:var(--cty-video-height);height:var(--cty-video-footer-height);padding-right:var(--cty-video-footer-padding-end);padding-left:var(--cty-video-footer-padding-start);background:var(--cty-video-footer-background);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2);transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2)}.cty-video__footer ion-button{height:100%;--background:transparent;--padding-start:12px;--padding-end:12px;--padding-top:0;--padding-bottom:0;--color:var(--cty-color-white)}.cty-video__footer ion-row{height:calc(var(--cty-video-footer-height) - var(--cty-video-footer-progress-height))}.cty-video__footer .cty-video__footer-progress__top{height:var(--cty-video-footer-progress-height);-webkit-transform:translateY(calc(var(--cty-video-footer-progress-height) / 2));transform:translateY(calc(var(--cty-video-footer-progress-height) / 2))}.cty-video__footer-controls{background:transparent}.cty-video__footer-controls ion-col:not(.cty-video__footer-progress){opacity:0}.cty-video__footer-controls .cty-video__time{opacity:0}.cty-video__footer-toggle-play{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-toggle-play cty-icon{font-size:var(--cty-video-footer-icon-size)}.cty-video__footer-flex{-ms-flex:1;flex:1}.cty-video__footer-time-label{margin-left:8px;font-size:var(--cty-video-footer-progress-size);color:var(--cty-color-white);letter-spacing:0.2px}.cty-video__footer-time-label span{margin:0 1px;-webkit-transform:translateY(-1px);transform:translateY(-1px)}.cty-video__footer-progress{-ms-flex:1;flex:1;overflow:auto}.cty-video__time{font-size:var(--cty-video-footer-progress-size);color:var(--cty-color-white)}.cty-video__time:nth-child(1){margin-right:12px}.cty-video__time:nth-child(2),.cty-video__time:last-child{margin-left:12px}.cty-video__footer-range{--height:100%;--knob-size:var(--cty-video-bar-size);--bar-height:var(--cty-video-range-bar-height);padding:0;font-size:var(--cty-font-size-medium);color:var(--cty-video-bar-color);opacity:1;--knob-background:var(--cty-video-range-knob-background);--bar-background:var(--cty-video-range-background);--bar-background-active:var(--cty-video-range-background-active)}.cty-video__footer-bar{position:relative;-ms-flex:1;flex:1;height:80%;cursor:pointer}.cty-video__footer-progress__top{position:relative;z-index:2;padding:var(--cty-video-progress-horizongtal-padding)}.cty-video__footer-progress__top .cty-video__footer-bar{height:100%}.cty-video__footer-dot{position:absolute;top:50%;padding:var(--cty-video-dot-padding);-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-video__footer-dot::after{display:block;width:var(--cty-video-dot-size);height:var(--cty-video-dot-size);content:"";background:var(--cty-video-dot-active-color);border-radius:var(--cty-border-radius-circle)}.cty-video__footer-rate{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-rate ion-button{--padding-start:5px;--padding-end:5px;--padding-top:4px;--padding-bottom:4px;width:36px;height:auto;margin-left:12px;font-size:var(--cty-font-size-extra-small);font-weight:bold;white-space:nowrap;border:1px solid var(--cty-color-white);border-radius:var(--cty-border-radius-base)}.cty-video__footer-volume{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-volume cty-icon{font-size:var(--cty-video-footer-icon-size)}.cty-video__footer-fullscreen{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-fullscreen ion-button{--padding-start:0px}.cty-video__footer-fullscreen cty-icon{font-size:var(--cty-video-footer-fullscreen-icon-size)}.cty-video__toggle-play{position:absolute;top:50%;left:50%;z-index:8;width:var(--cty-video-play-size);height:var(--cty-video-play-size);margin:calc(var(--cty-video-play-size) / -2) 0 0 calc(var(--cty-video-play-size) / -2);font-weight:bold;text-align:center;border:var(--cty-video-play-border);border-radius:var(--cty-border-radius-circle);--background:transparent;--padding-top:0;--padding-end:0;--padding-start:0;--padding-bottom:0}.cty-video__toggle-play cty-icon{font-size:var(--cty-video-play-icon-size);color:rgba(238, 238, 238, 0.9);text-align:center;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cty-video__opn-toast{position:absolute;top:50%;left:50%;z-index:4;width:var(--cty-video-toast-width);max-width:150px;height:var(--cty-video-toast-height);font-size:var(--cty-font-size-medium);font-weight:bold;color:var(--cty-color-white);background:var(--cty-overlay-color-light);border-radius:var(--cty-border-radius-round);-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.cty-video__opn-toast cty-icon{margin-right:10px;font-size:var(--cty-video-opn-toast-icon-size)}.cty-video__opn-panel{position:absolute;top:50%;left:50%;z-index:5;width:var(--cty-video-height);height:calc(var(--cty-video-width) - var(--cty-video-header-height) - var(--cty-video-footer-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom));margin:0 0 0 calc((var(--cty-video-footer-height) - var(--cty-video-header-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom)) / 2);-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.cty-video__dot-panel{position:absolute;z-index:6;padding:5px 11px 5px 8px;margin-left:calc(var(--cty-video-footer-height) + 13px + 46px);background:var(--cty-overlay-color);border-radius:var(--cty-border-radius-base);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:left top;transform-origin:left top}.cty-video__dot-panel .cty-video__dot-label{position:relative;max-width:160px;padding-right:17px;font-size:var(--cty-font-size-small);line-height:1.38;color:var(--cty-color-white)}.cty-video__dot-panel .cty-video__dot-label::after{position:absolute;top:0;right:7px;width:1px;height:100%;content:"";background-color:rgba(255, 255, 255, 0.3);-webkit-transform:scaleX(1.5);transform:scaleX(1.5)}.cty-video__dot-panel ion-button{height:36px;font-size:var(--cty-font-size-small);font-weight:bold;--padding-start:0;--padding-end:0;--background:transparent;--border-radius:0;--color:var(--cty-video-dot-active-color)}.cty-video__dot-panel cty-icon{margin-right:4px;font-size:var(--cty-font-size-medium)}.cty-video__dot-panel .cty-video__dot-triangle{position:absolute;bottom:-18px;left:20px;border-color:transparent;border-style:solid;border-width:9px 8px;border-top-color:var(--cty-overlay-color)}.cty-video__dot-panel-ex{margin-left:calc(var(--cty-video-footer-height) + 46px)}.cty-video__toast[class]{position:absolute;top:50%;z-index:7;min-width:300px;max-width:96vw;padding:0 15px;margin:0 0 0 -60px;font-size:var(--cty-font-size-extra-small);font-weight:bold;line-height:30px;color:rgba(238, 238, 238, 0.9);text-align:center;pointer-events:none;background:var(--cty-overlay-color);border-radius:var(--cty-border-radius-large);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cty-video__rate{position:absolute;top:0;left:0;z-index:9;width:var(--cty-video-height);height:var(--cty-video-width);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width)}.cty-video__rate-mask{position:absolute;top:0;right:0;width:40%;height:100%;background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.9)), color-stop(rgba(0, 0, 0, 0.8)), color-stop(rgba(0, 0, 0, 0.5)), to(transparent));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent)}.cty-video__rate-list-item{display:block;width:112px;min-height:50px;font-size:var(--cty-font-size-base);color:var(--cty-color-white);text-align:center;outline:none;background-color:transparent;border:none}.cty-video__rate-list-item.active{color:var(--cty-video-rate-active-color)}.cty-video__interactive{z-index:101;display:none;background-color:transparent;background-repeat:no-repeat;background-size:100% 100%}:host(.cty-video__vertical) cty-loading{--cty-loading-transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__player{top:50%;width:var(--cty-video-width);height:auto;max-height:100%;-webkit-transform:rotate(0deg) translateY(-50%);transform:rotate(0deg) translateY(-50%)}:host(.cty-video__vertical) .cty-video__toggle-play cty-icon{-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__toast{top:80%;left:50%;margin:0;-webkit-transform:rotate(0deg) translateX(-50%);transform:rotate(0deg) translateX(-50%)}:host(.cty-video__vertical) .cty-video__header{width:calc(var(--cty-video-width) - var(--cty-video-header-padding-start) - var(--cty-video-header-padding-end));-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__opn-panel{width:var(--cty-video-width);height:calc(var(--cty-video-height) - var(--cty-video-header-height) - var(--cty-video-footer-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom));margin:calc((var(--cty-video-footer-height) - var(--cty-video-header-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom)) / -2) 0 0;-webkit-transform:translate(-50%, -50%) rotate(0);transform:translate(-50%, -50%) rotate(0)}:host(.cty-video__vertical) .cty-video__opn-toast{top:50%;-webkit-transform:translate(-50%, 0) rotate(0deg);transform:translate(-50%, 0) rotate(0deg)}:host(.cty-video__vertical) .cty-video__footer{top:auto;bottom:0;width:var(--cty-video-width);-webkit-transform:rotate(0);transform:rotate(0)}:host(.cty-video__vertical) .cty-video__footer-progress__top{padding:var(--cty-video-progress-vertical-padding)}:host(.cty-video__vertical) .cty-video__time{font-size:var(--cty-font-size-small)}:host(.cty-video__vertical) .cty-video__footer-time-label{margin-left:0}:host(.cty-video__vertical) .cty-video__rate{width:var(--cty-video-width);height:var(--cty-video-height);-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__dot-panel{bottom:calc(var(--cty-video-footer-height) + 13px);margin-left:0;-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__dot-panel-ex{bottom:var(--cty-video-footer-height)}:host(.cty-video__unfullscreen){height:var(--cty-video-half-screen-height)}:host(.cty-video__unfullscreen) .cty-video__wrapper{background-color:var(--cty-color-black)}:host(.cty-video__unfullscreen) .cty-video__player{top:0;height:var(--cty-video-half-screen-height);max-height:initial;-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__unfullscreen) .cty-video__toggle-play{width:var(--cty-video-unfullscreen-play-size);height:var(--cty-video-unfullscreen-play-size);margin:calc(var(--cty-video-unfullscreen-play-size) / -2) 0 0 calc(var(--cty-video-unfullscreen-play-size) / -2);border:var(--cty-video-unfullscreen-play-border)}:host(.cty-video__unfullscreen) .cty-video__toggle-play cty-icon{font-size:var(--cty-video-unfullscreen-play-icon-size)}:host(.cty-video__unfullscreen) .cty-video__header{height:var(--cty-video-header-unfullscreen-height);background:var(--cty-video-header-unfullscreen-background)}:host(.cty-video__unfullscreen) .cty-video__title{line-height:var(--cty-video-header-unfullscreen-height)}:host(.cty-video__unfullscreen) .cty-video__header-back ion-button{width:30px;height:100%}:host(.cty-video__unfullscreen) .cty-video__footer{height:var(--cty-video-footer-unfullscreen-height);background:var(--cty-video-footer-unfullscreen-background)}:host(.cty-video__unfullscreen) .cty-video__footer ion-row{height:calc(var(--cty-video-footer-unfullscreen-height) - var(--cty-video-footer-progress-height))}:host(.cty-video__unfullscreen) .cty-video__footer .cty-video__footer-progress__top{height:var(--cty-video-footer-progress-height)}:host(.cty-video__unfullscreen) .cty-video__footer ion-button{--padding-start:8px;--padding-end:8px}:host(.cty-video__unfullscreen) .cty-video__footer-fullscreen ion-button{--padding-start:0px}:host(.cty-video__unfullscreen) .cty-video__opn-panel{height:calc(var(--cty-video-half-screen-height) - var(--cty-video-header-unfullscreen-height) - var(--cty-video-footer-unfullscreen-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom))}:host(.cty-video__unfullscreen) .cty-video__opn-toast{top:40%;height:30px}:host(.cty-video__unfullscreen) .cty-video__toast{top:70%}:host(.cty-video__unfullscreen) cty-loading{--cty-loading-overlay-height:var(--cty-video-half-screen-height)}:host(.cty-video__large-screen) .cty-video__player{top:0;left:50%;width:auto;max-width:100%;height:100%;-webkit-transform:rotate(0deg) translateX(-50%);transform:rotate(0deg) translateX(-50%)}.cty-video__audio-player{display:block}.cty-video__player-audio{position:absolute;display:none;visibility:hidden}';var z=t("cty_video",function(){function t(t){var o=this;e(this,t);this.ctyDismiss=i(this,"ctyDismiss",7);this.ctyVideoCanplay=i(this,"ctyVideoCanplay",7);this.ctyVideoTimeupdate=i(this,"ctyVideoTimeupdate",7);this.ctyVideoPlaying=i(this,"ctyVideoPlaying",7);this.ctyVideoPlay=i(this,"ctyVideoPlay",7);this.ctyVideoPause=i(this,"ctyVideoPause",7);this.ctyVideoStalled=i(this,"ctyVideoStalled",7);this.ctyVideoWaiting=i(this,"ctyVideoWaiting",7);this.ctyVideoEnded=i(this,"ctyVideoEnded",7);this.ctyVideoError=i(this,"ctyVideoError",7);this.ctyVideoChangeVolume=i(this,"ctyVideoChangeVolume",7);this.ctyVideoProgress=i(this,"ctyVideoProgress",7);this.ctyVideoScreenChange=i(this,"ctyVideoScreenChange",7);this.ctyVideoIAEnter=i(this,"ctyVideoIAEnter",7);this.ctyVideoIAAction=i(this,"ctyVideoIAAction",7);this.ctyVideoCtrlChange=i(this,"ctyVideoCtrlChange",7);this.ctyVideoRateChange=i(this,"ctyVideoRateChange",7);this.url="";this.poster="";this.startTime=0;this.preload="metadata";this.allowForward=true;this.allowBackward=true;this.unAllowForwardMsg="首次学习不允许快进哦~";this.unAllowRateMsg="首次学习不允许设置播放倍速";this.trafficMsg="当前是非WIFI网络, 可能消耗流量, 点击继续~";this.errorMsg="视频播放异常或网络故障, 请稍后重试。";this.orientation=true;this.autoplay=true;this.trafficAutoplay=false;this.fullscreenOnly=true;this.defaultFullscreen=true;this.fullscreenIcon="cty-fullscreen";this.exitFullscreenIcon="cty-exit-fullscreen";this.direction="L";this.controls=true;this.headerCtrl=true;this.footerCtrl=true;this.title="";this.rates=[.7,1,1.25,1.5];this.rate=1;this.directRate=false;this.loading=false;this.loadingImg="";this.updateNow=true;this.markers=[];this.landscapeEnterTimer=20;this.landscapeLeaveTimer=420;this.togglePlayTimer=150;this.progressPosition="center";this.player="video";this.largeScreenIsPortrait=true;this.allowBackgroundForward=false;this.interactiveActions=[];this.playProgress=0;this.maxPlayProgress=0;this.currentTimeLabel="00:00:00";this.durationLabel="00:00:00";this.isPlaying=false;this.isMute=false;this.showCtrl=true;this.showPlayRate=false;this.showVideoError=true;this.warningMsg="";this.isLoading=true;this.showTogglePlay=false;this.playVolume=100;this.playBrightness=100;this.controlIcon="";this.controlLabel="";this.controlType="";this.lastControlType="";this.touchState={isTouching:false,right:0,height:0,top:0,bottom:0,currentY:0};this.isMoving=false;this.opnStartTime=0;this.opnMoveTime=0;this.opnLx=0;this.opnLy=0;this.opnNx=0;this.opnNy=0;this.isMouseMove=false;this.isMicroMessager=u.isMicroMessager;this.isPC=u.isPC;this.isIOS=u.isIos;this.isIpad=u.isIpad;this.isWifi=v.isWifi;this.isHybrid=u.isHybrid;this.lastTapScreenTime=Date.now();this.footerPrgtime=0;this._curIsFullscreen=true;this.showInteractiveLayer=false;this.hasInteractive=false;this.interactiving_action=null;this.ctrlTimer=0;this.warningMsgTimer=0;this.touchMoveTimer=0;this._rates=[];this.markerList=[];this.currentMarker={describe:"",breakpoint:0,position:0};this.showDotPanel=false;this.dotDotPanelTop="auto";this.dotDotPanelLeft="auto";this.triangleMargin=0;this.reallyShowDot=false;this.isRealWaiting=true;this.isSeeking=false;this.deviceIsPORTRAIT=false;this.canScreenOrientation=false;this.visibilityChangeHandler=function(){};this.iosAppPauseHandler=function(){};this.iosAResumeHandler=function(){};this._doCanplay=function(){setTimeout((function(){o.showTogglePlay=true}),o.togglePlayTimer);if(o.isLoading){o.videoEl.style.display="block"}if((!o.isWifi||o.isMicroMessager||!o.autoplay||!o.loading)&&o.isLoading){o.isLoading=false}o.durationLabel=d(o.videoEl.duration);o.ctyVideoCanplay.emit();o.markerList=o.markers.map((function(t){return Object.assign(Object.assign({},t),{position:+(t.breakpoint/o.videoEl.duration*100).toFixed(3)})}))};this._doTimeupdate=function(){var t=o.videoEl.currentTime;if(!o.isPlaying&&t>0){if(o.isLoading){o.isLoading=false}if(!o.videoEl.paused){o.isPlaying=true}}if(!o.touchState.isTouching){o._updateVideoProgress();o.interactiveCheck(t)}o.ctyVideoTimeupdate.emit(t)};this._doPlay=function(){o.ctyVideoPlay.emit()};this._doPause=function(){o.isPlaying=false;o.ctyVideoPause.emit()};this._doEnded=function(){o.isPlaying=false;o._updateVideoProgress();o.interactiveReset();o.ctyVideoEnded.emit()};this._doPlaying=function(){if(!w("android")){if(o.isLoading){o.isLoading=false}o.isPlaying=true}o.ctyVideoPlaying.emit()};this._doChangeVolume=function(){o.playVolume=Math.round(o.videoEl.volume*100);o.ctyVideoChangeVolume.emit()};this._doError=function(){if(!o.isLoading&&o.showVideoError){o.warningMsg=o.errorMsg;o.clearWarningMsg();o.ctyVideoError.emit(true);return}if(o.isLoading){o.isLoading=false;o.showTogglePlay=true}o.ctyVideoError.emit(false)};this._doStalled=function(){o.ctyVideoStalled.emit()};this._doWaiting=function(){if(o.isRealWaiting&&!o.isSeeking){o.ctyVideoWaiting.emit(o.videoEl.currentTime)}};this._doSeeked=function(){if(o.isSeeking=false){o.isRealWaiting=true}};this._dismiss=function(){if(!o.fullscreenOnly&&o.curIsFullscreen){o.curIsFullscreen=false;if(o.isHybrid){l.toggleStatusBar(true)}if(o.canScreenOrientation){h.lock("portrait").catch((function(){}))}o.ctyDismiss.emit(false);return}if(!o.videoEl.paused){o.pause();o.ctyDismiss.emit(false);return}if(o.isHybrid){l.toggleStatusBar(true)}if(o.canScreenOrientation){if(o.landscapeLeaveTimer>0){setTimeout((function(){h.lock("portrait").catch((function(){}))}),o.landscapeLeaveTimer)}else{h.lock("portrait").catch((function(){}))}}o.ctyDismiss.emit(true)};this._doSetRate=function(){if(!o.allowForward){o.warningMsg=o.unAllowRateMsg;o.clearWarningMsg();return}if(o.direction!="L"||o.directRate){var t=o.rates.findIndex((function(t){return t==o.rate}))+1;if(t==o.rates.length){t=0}o.setPlayRate(o.rates[t]);return}o.showCtrl=false;o.showPlayRate=true;o._resetDot();o.ctyVideoCtrlChange.emit(o.showCtrl)};this._toggleFullScreen=function(t){o.curIsFullscreen=t;if(o.isHybrid){l.toggleStatusBar(!t)}if(o.canScreenOrientation){h.lock(t?"landscape":"portrait").catch((function(){}))}o.ctyVideoScreenChange.emit(t)};this._doPrgTouchstart=function(t){var e;if(t.type=="mousedown"){o.isMouseMove=true}o.isRealWaiting=false;if(!o.allowForward&&!o.allowBackward||((e=t.touches)===null||e===void 0?void 0:e.length)>1){return true}o.isSeeking=true;var i=n(t.currentTarget);o.touchState.top=i.top;o.touchState.height=i.bottom-o.touchState.top;o.touchState.right=i.right;o.touchState.bottom=i.bottom;o.touchState.isTouching=true;if(o.deviceIsPORTRAIT){o.touchState.top=i.left;o.touchState.height=i.right-o.touchState.top;o.touchState.right=i.bottom;o.touchState.bottom=i.right}o.touchState.currentY=o._getPoint(t).x;o.maxPlayProgress=Math.max(o.playProgress,o.maxPlayProgress);o._changeProgressByTouch();o.clearCtrlTimeout();return true};this._doPrgTouchmove=function(t){var e;if(!o.isMouseMove&&t.type=="mousemove"){return}if(((e=t.touches)===null||e===void 0?void 0:e.length)>1){return true}var i=Date.now();if(o.footerPrgtime+50>i){return true}o.footerPrgtime=i;var r=o._getPoint(t).x;var a=Math.abs(r-o.touchState.currentY)*100/o.touchState.height;o.touchState.currentY=r;if(a>1||t.type=="mousemove"){o._changeProgressByTouch(o.updateNow)}return true};this._doPrgTouchend=function(t){if(t.type=="mouseleave"&&!o.isMouseMove){return}if(t.type=="mouseup"||t.type=="mouseleave"){o.isMouseMove=false}if(o.touchState.isTouching){o._changeProgressByTouch()}o.touchState.isTouching=false;o.isSeeking=false;return true};this._doOpnStart=function(t){if(t.type=="mousedown"){o.isMouseMove=true}o.isSeeking=true;o.isRealWaiting=false;var e=n(t.currentTarget);o.touchState.top=e.top;o.touchState.height=e.bottom-o.touchState.top;o.touchState.right=e.right;o.touchState.bottom=e.bottom;o.touchState.isTouching=true;if(o.deviceIsPORTRAIT){o.touchState.top=e.left;o.touchState.height=e.right-o.touchState.top;o.touchState.right=e.bottom;o.touchState.bottom=e.right}var i=o._getPoint(t),r=i.x,a=i.y;o.opnLx=r;o.opnLy=a;o.maxPlayProgress=Math.max(o.playProgress,o.maxPlayProgress);o.opnStartTime=(new Date).getTime();return true};this._doOpnMove=function(t){if(!o.isMouseMove&&t.type=="mousemove"){return}if(o.opnMoveTime===0){o.opnMoveTime=(new Date).getTime()}if(o.opnMoveTime-o.opnStartTime<1500){o.showCtrl=true;o.clearCtrlTimeout();o.isMoving=true;var e=o._getPoint(t),i=e.x,r=e.y;o.opnNx=i;o.opnNy=r;if(!o.controlType){if(Math.abs(o.opnNx-o.opnLx)>=Math.abs(o.opnNy-o.opnLy)){o.controlType="P";o.controlLabel=o.currentTimeLabel}else{if(!o.isIOS){if(o.opnLx>o.touchState.height*.5){o.controlType="V";o.controlIcon="cty-volume-high";o.controlLabel=o.playVolume+"%"}else{o.controlType="B";o.controlIcon="cty-brightness";o.controlLabel=o.playBrightness+"%"}}else{o.controlType="B";o.controlIcon="cty-brightness";o.controlLabel=o.playBrightness+"%"}}}if(o.controlType=="P"){o.controlIcon=o.opnNx-o.opnLx>0?"cty-forward":"cty-backward"}switch(o.controlType){case"B":if(o.opnNy-o.opnLy<0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy>0&&o.deviceIsPORTRAIT){o.playBrightness-=2;o.playBrightness=Math.max(o.playBrightness,0);if(o.updateNow){o._updateBrightness()}}else if(o.opnNy-o.opnLy>0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy<0&&o.deviceIsPORTRAIT){o.playBrightness+=2;o.playBrightness=Math.min(o.playBrightness,100);if(o.updateNow){o._updateBrightness()}}o.controlLabel=o.playBrightness+"%";break;case"V":if(o.opnNy-o.opnLy<0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy>0&&o.deviceIsPORTRAIT){o.playVolume-=2;o.playVolume=Math.max(o.playVolume,0);if(o.updateNow){o._updateVolume()}}else if(o.opnNy-o.opnLy>0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy<0&&o.deviceIsPORTRAIT){o.playVolume+=2;o.playVolume=Math.min(o.playVolume,100);if(o.updateNow){o._updateVolume()}}o.controlLabel=o.playVolume+"%";break;case"P":if(o.opnNx-o.opnLx>0){if(!o.allowForward&&o.playProgress>=o.maxPlayProgress){o.isMoving=false;o.unAllowForward();return}o.playProgress+=1;o.playProgress=Math.min(o.playProgress,1e3);if(o.updateNow){o.videoEl.currentTime=o.playProgress/1e3*o.videoEl.duration;o._updateVideoProgress()}o.controlLabel=d(o.playProgress/1e3*o.videoEl.duration)}else if(o.opnNx-o.opnLx<0){o.playProgress-=1;o.playProgress=Math.max(0,o.playProgress);if(o.updateNow){o.videoEl.currentTime=o.playProgress/1e3*o.videoEl.duration;o._updateVideoProgress()}o.controlLabel=d(o.playProgress/1e3*o.videoEl.duration)}else{o.interactiveReset()}break}o.lastControlType=o.controlType;o.opnLx=o.opnNx;o.opnLy=o.opnNy}};this._doOpnEnd=function(t){if(t.type=="mouseleave"&&!o.isMouseMove){return}if(t.type=="mouseup"||t.type=="mouseleave"){o.isMouseMove=false}if(!o.isMoving){o.showCtrl=!o.showCtrl;o.ctyVideoCtrlChange.emit(o.showCtrl);o._resetDot();var e=Date.now();if(e-o.lastTapScreenTime<400){o.lastTapScreenTime=o.lastTapScreenTime-1e3;o.toggleVideo(null)}else{o.lastTapScreenTime=e}}if(!o.updateNow){switch(o.controlType){case"B":o._updateBrightness();break;case"V":o._updateVolume();break;case"P":o.videoEl.currentTime=o.playProgress/1e3*o.videoEl.duration;o._updateVideoProgress();break}}o.controlType="";o.clearCtrlTimeout();o.touchState.isTouching=false;o.opnMoveTime=0;o._clearTouchMoveToast();o.isSeeking=false};this._doDot=function(t,e){t.stopPropagation();o.clearCtrlTimeout();if(o.currentMarker.breakpoint>0&&e.breakpoint==o.currentMarker.breakpoint){o.setVideoCurrentTime(o.currentMarker.breakpoint,(function(){o._resetDot();o.play()}));return}o.showDotPanel=true;o.currentMarker=e;var i=n(t.target);var r=i.top+i.height/2;var a=i.left+i.width/2;o.reallyShowDot=false;window.setTimeout((function(){var t=o.dotPanelEl;var e=t.parentNode.offsetHeight;var i=t.parentNode.offsetWidth;var n=t.offsetWidth;var s=t.children[t.children.length-1];var c=r-s.offsetLeft-s.offsetWidth/2+o.triangleMargin;var d=a-s.offsetLeft-s.offsetWidth/2+o.triangleMargin;o.dotDotPanelTop=c+"px";o.dotDotPanelLeft=d+"px";var l=e-n-20;var h=i-n-20;if(o.canScreenOrientation){if(d>h){o.triangleMargin=d-h;o.dotDotPanelLeft=h+"px"}else if(d<5){o.triangleMargin=d-5;o.dotDotPanelLeft="5px"}else{o.triangleMargin=0}o.dotDotPanelTop="auto"}else{if(c>l){o.triangleMargin=c-l;o.dotDotPanelTop=l+"px"}else if(c<5){o.triangleMargin=c-5;o.dotDotPanelTop="5px"}else{o.triangleMargin=0}o.dotDotPanelLeft="auto"}window.setTimeout((function(){o.reallyShowDot=true}),10)}),100)};this._toPoint=function(){o.clearCtrlTimeout();o.setVideoCurrentTime(o.currentMarker.breakpoint,(function(){o._resetDot();o.play()}))}}Object.defineProperty(t.prototype,"curIsFullscreen",{get:function(){return this._curIsFullscreen},set:function(t){this._curIsFullscreen=t;this.deviceIsPORTRAIT=this.direction=="P"||!t||this.largeScreenIsPortrait&&(this.isPC||this.isIpad)||this.canScreenOrientation&&t},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,o;return __generator(this,(function(r){switch(r.label){case 0:if(!(!this.isIOS&&!this.isMicroMessager&&f.isAvailable))return[3,5];r.label=1;case 1:r.trys.push([1,4,,5]);t=this;return[4,f.getVolume()];case 2:t.playVolume=r.sent();e=this;return[4,f.isMuted()];case 3:e.isMute=r.sent();return[3,5];case 4:i=r.sent();return[3,5];case 5:if(!this.defaultFullscreen&&!this.fullscreenOnly){this.curIsFullscreen=false}o=this.rates.map((function(t){return t}));this._rates=o;this.hasInteractive=Array.isArray(this.interactiveActions)&&this.interactiveActions.length>0;this.interactiveReset();this.showTogglePlay=!this.autoplay;return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.canScreenOrientation=this.orientation&&this.direction=="L"&&this.isHybrid&&w("mobile")&&!this.isIpad;this.deviceIsPORTRAIT=this.direction=="P"||!this.curIsFullscreen||this.largeScreenIsPortrait&&(this.isPC||this.isIpad)||this.canScreenOrientation;if(this.canScreenOrientation&&this.curIsFullscreen){if(this.landscapeEnterTimer>0){setTimeout((function(){h.lock("landscape").catch((function(){}))}),this.landscapeEnterTimer)}else{h.lock("landscape").catch((function(){}))}}else if(this.isHybrid&&w("mobile")){h.lock("portrait").catch((function(){}))}if(+this.startTime>0){this.videoEl.currentTime=Number(this.startTime)}this.videoEl.controls=false;this.videoEl.playbackRate=this.rate;if(this.isMicroMessager){window.setTimeout((function(){t.isLoading=false;t.showTogglePlay=true;t.videoEl.style.display="block"}),2500)}else if(!this.isWifi){window.setTimeout((function(){t.isLoading=false;t.showTogglePlay=true;t.videoEl.style.display="block"}),1500)}else if(+this.startTime>0){this.videoEl.style.display="block"}if(!this.allowBackgroundForward&&this.isIOS){var e=1;var i="";var o=0;if(this.isMicroMessager){this.visibilityChangeHandler=function(){if(!t.allowForward&&t.videoEl){if(e%2==1){t.showVideoError=false;i=t.videoEl.src;o=t.videoEl.currentTime;t.videoEl.src="data:video/mp4;base64,YQ=="}else{t.videoEl.src=i;window.setTimeout((function(){t.videoEl.currentTime=o;t.showVideoError=true}),1500)}e++}};document.addEventListener("visibilitychange",this.visibilityChangeHandler)}else{this.iosAppPauseHandler=function(){if(t.videoEl&&!t.allowForward){t.showVideoError=false;i=t.videoEl.src;o=t.videoEl.currentTime;t.videoEl.src="data:video/mp4;base64,YQ=="}};this.iosAResumeHandler=function(){if(t.videoEl&&!t.allowForward){t.videoEl.src=i;window.setTimeout((function(){t.showVideoError=false;t.videoEl.currentTime=o}),1500)}};document.addEventListener("pause",this.iosAppPauseHandler);document.addEventListener("resume",this.iosAResumeHandler)}}};t.prototype.disconnectedCallback=function(){clearTimeout(this.ctrlTimer);clearTimeout(this.warningMsgTimer);clearTimeout(this.touchMoveTimer);if(!this.allowBackgroundForward&&this.isIOS){if(this.isMicroMessager){document.removeEventListener("visibilitychange",this.visibilityChangeHandler)}else{document.removeEventListener("pause",this.iosAppPauseHandler);document.removeEventListener("resume",this.iosAResumeHandler)}}};t.prototype._getVolumeIconName=function(){if(this.isMute){return p}if(this.playVolume==0){return g}else if(this.playVolume<30){return b}else if(this.playVolume<70){return _}else{return m}};t.prototype.unAllowForward=function(){this.warningMsg=this.unAllowForwardMsg;this.clearWarningMsg()};t.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.videoEl.paused){this.videoEl.play()}this.isPlaying=true;return[2]}))}))};t.prototype.setCtrlShow=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=false}return __generator(this,(function(e){this.showCtrl=t;this._resetDot();this.ctyVideoCtrlChange.emit(t);return[2]}))}))};t.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.videoEl.paused){this.videoEl.pause()}this.isPlaying=false;return[2]}))}))};t.prototype.setVideoCurrentTime=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(o){this.maxPlayProgress=Math.max(this.maxPlayProgress,this.playProgress);i=this.videoEl.duration*this.maxPlayProgress/1e3;if(t>i&&!this.allowForward){this.unAllowForward();return[2]}this.videoEl.currentTime=t;e&&e();return[2]}))}))};t.prototype._clearTouchMoveToast=function(){var t=this;clearTimeout(this.touchMoveTimer);this.touchMoveTimer=window.setTimeout((function(){t.isMoving=false}),2e3)};t.prototype.clearCtrlTimeout=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this.showCtrl){clearTimeout(this.ctrlTimer);this.ctrlTimer=window.setTimeout((function(){t.showCtrl=false;t.touchState.isTouching=false;t._resetDot();t.ctyVideoCtrlChange.emit(false)}),4e3)}return[2]}))}))};t.prototype.setWarningMsg=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.warningMsg=t;this.clearWarningMsg();return[2]}))}))};t.prototype.clearWarningMsg=function(){var t=this;if(this.warningMsg!=""){clearTimeout(this.warningMsgTimer);this.warningMsgTimer=window.setTimeout((function(){t.warningMsg=""}),2e3)}};t.prototype.toggleVideo=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.isLoading){return[2]}if(this.videoEl.paused){this.play()}else{this.pause()}if(t){this.clearCtrlTimeout();t.stopPropagation()}return[2]}))}))};t.prototype.toggleVolume=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:if(!(!this.isIOS&&!this.isMicroMessager&&f.isAvailable))return[3,6];i.label=1;case 1:i.trys.push([1,4,,5]);return[4,f.toggleMute()];case 2:i.sent();t=this;return[4,f.isMuted()];case 3:t.isMute=i.sent();return[3,5];case 4:e=i.sent();if(this.isMute){f.setVolume(this.playVolume)}else{f.setVolume(0)}this.isMute=!this.isMute;return[3,5];case 5:return[3,7];case 6:this.videoEl.muted=!this.videoEl.muted;this.isMute=this.videoEl.muted;i.label=7;case 7:this.clearCtrlTimeout();return[2]}}))}))};t.prototype.setPlayRate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rate=t;this.videoEl.playbackRate=this.rate;this.showPlayRate=false;this.ctyVideoRateChange.emit(t);return[2]}))}))};t.prototype._getPoint=function(t){var e=s(t),i=e.x,o=e.y;try{if(this.deviceIsPORTRAIT){return{x:i,y:o}}return{x:o,y:i}}catch(t){return{x:0,y:0}}};t.prototype._changeProgressByTouch=function(t){if(t===void 0){t=true}if(!this.allowForward&&!this.allowBackward){return}var e=Math.round((this.touchState.currentY-this.touchState.top)/this.touchState.height*1e3);if(!this.allowBackward&&e<this.playProgress){return}if(!this.allowForward&&e>this.maxPlayProgress){this.unAllowForward();return}this.lastControlType="P";this.isMoving=true;if(this.playProgress>e){this.controlIcon="cty-backward"}else if(this.playProgress<e){this.controlIcon="cty-forward"}this.playProgress=e;if(e==0){this.interactiveReset();this.isMoving=false}if(t){this.videoEl.currentTime=this.playProgress/1e3*this.videoEl.duration;this._updateVideoProgress()}else{this.controlLabel=d(this.playProgress/1e3*this.videoEl.duration)}this._clearTouchMoveToast()};t.prototype._updateVideoProgress=function(){var t=this.videoEl.currentTime;var e=this.videoEl.duration;this.playProgress=e>0?Math.round(t/e*1e3):0;this.ctyVideoProgress.emit(this.playProgress/10);this.currentTimeLabel=d(t);this.durationLabel=d(e);if(this.lastControlType=="P"){this.controlLabel=this.currentTimeLabel}};t.prototype._updateBrightness=function(){var t="rgba(0,0,0, "+(100-this.playBrightness)/1.6/100+")";this.videoCtrlEl.style.backgroundColor=t};t.prototype._updateVolume=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:if(!(!this.isIOS&&!this.isMicroMessager&&f.isAvailable))return[3,6];i.label=1;case 1:i.trys.push([1,4,,5]);return[4,f.setVolume(this.playVolume)];case 2:i.sent();t=this;return[4,f.isMuted()];case 3:t.isMute=i.sent();return[3,5];case 4:e=i.sent();return[3,5];case 5:return[3,7];case 6:this.videoEl.volume=this.playVolume/100;i.label=7;case 7:this.videoEl.volume=this.playVolume/100;if(this.playVolume>0&&this.isMute){this.toggleVolume()}return[2]}}))}))};t.prototype._resetDot=function(){this.showDotPanel=false;this.currentMarker={describe:"",breakpoint:0,position:0}};t.prototype.getVideoElement=function(){var t=this;return Promise.resolve().then((function(){return t.videoEl}))};t.prototype.getVideoState=function(){var t=this;return Promise.resolve().then((function(){var e=t,i=e.maxPlayProgress,o=e.isWifi,r=e.isLoading,a=e.playProgress,n=e.isPlaying;return{maxPlayProgress:i,isWifi:o,isLoading:r,playProgress:a,isPlaying:n}}))};t.prototype.interactiveCheck=function(t){var e;if(!this.hasInteractive||this.showInteractiveLayer){return}for(var i=0,o=this.interactiveActions;i<o.length;i++){var r=o[i];if(this.checkActionTriggerCond(r,t,"play")){this.showInteractiveLayer=true;this.interactiving_action=r;r.status.entercount++;for(var a=0,n=r.buttons;a<n.length;a++){var s=n[a];if(s.type=="optbtn"){s.val=s.defaultval}}var c=false;if(((e=r.autoactions)===null||e===void 0?void 0:e.length)>0){for(var d=0,l=r.autoactions;d<l.length;d++){var h=l[d];if(this.calcTriggerCond(this.interactiving_action,h.condtrigger)){this.pause();this.doInteractiveAction(h);c=true;break}}}if(!c&&r.buttons.length>0){this.pause();this.showInteractiveActionUI(r)}break}}};t.prototype.changeInteractiveAction=function(t){if(!this.hasInteractive&&!this.showInteractiveLayer){return}this.clearInteractiveActionUI();this.interactiving_action=t;t.status.entercount++;for(var e=0,i=t.buttons;e<i.length;e++){var o=i[e];if(o.type=="optbtn"){o.val=o.defaultval}}this.showInteractiveActionUI(t)};t.prototype.checkActionTriggerCond=function(t,e,i){var o=t.playtrigger;if(i=="play"&&(e<o.min||e>=o.max)){return false}if(this.calcTriggerCond(t,t.condtrigger)){return true}return false};t.prototype.calcTriggerCond=function(t,e){var i=true;for(var o=0,r=e;o<r.length;o++){var a=r[o];var n=true;var s=null;switch(a.type){case"entercount":s=this.findInteractiveAction(a.actionid,t);if(s!=null){var c=s.status.entercount;n=c>=a.min&&(c<a.max||a.max=="")}break;case"optbtn":s=this.findInteractiveAction(a.actionid,t);if(s!=null){for(var d=0,l=s.buttons;d<l.length;d++){var h=l[d];if(h.type=="optbtn"&&h.id==a.btnid){n=h.val==a.val;break}}}break;case"group":n=this.calcTriggerCond(t,a.subs);break}if(a.op=="or"){i=i||n}else{i=i&&n}}return i};t.prototype.findInteractiveAction=function(t,e){if(t.trim()==""){return e}for(var i=0,o=this.interactiveActions;i<o.length;i++){var r=o[i];if(r.id==t){return r}}return null};t.prototype.interactiveAction=function(t){t.stopPropagation();if(this.interactiving_action==null){return}var e=this.interactiving_action.imgW;var i=this.interactiving_action.imgH;for(var o=0,r=this.interactiving_action.buttons;o<r.length;o++){var a=r[o];var n={x:a.x,y:a.y,width:a.w,height:a.h};if(this.interactiveClickHitCheck(t,n,e,i)){switch(a.type){case"optbtn":a.val=a.val==1?"0":"1";this.refreshInteractiveActionBtnStatus(this.interactiving_action);break;case"link":case"input":this.doInteractiveAction(a);break;case"action":default:for(var s=0,c=a.actions;s<c.length;s++){var d=c[s];if(this.calcTriggerCond(this.interactiving_action,d.condtrigger)){this.doInteractiveAction(d);break}}break}break}}};t.prototype.doInteractiveAction=function(t){var e=this;if(t.type=="action"){this.changeInteractiveAction(this.findInteractiveAction(t.actionid,this.interactiving_action))}else if(t.type=="play"){this.videoEl.currentTime=t.startTime;this.play();this.clearInteractiveActionUI();window.setTimeout((function(){e.interactiving_action=null;e.hideInteractiveActionUI()}),100)}else if(t.type=="link"){if(!t.link){this.play();this.clearInteractiveActionUI();window.setTimeout((function(){e.interactiving_action=null;e.hideInteractiveActionUI()}),100);return}this.ctyVideoIAAction.emit(t)}};t.prototype.interactiveClickHitCheck=function(t,e,i,o){var r=o;var a=i;var n=this.interactiveEl;var s=e.y*r/o;var d=e.x*a/i;var l=e.width*a/i;var h=e.height*r/o;var f=c(t),v=f.x,u=f.y;var y=(v-n.offsetLeft)*a/n.clientWidth;var p=(u-n.offsetTop)*r/n.clientHeight;if(y>=d&&y<=d+l&&p>=s&&p<=s+h){return true}return false};t.prototype.showInteractiveActionUI=function(t){this.interactiveEl.style.display="block";if(t.img!=""){this.interactiveEl.style.backgroundImage="url("+t.img+")"}this.refreshInteractiveActionBtnStatus(t);this.ctyVideoIAEnter.emit()};t.prototype.hideInteractiveActionUI=function(){this.showInteractiveLayer=false;this.clearInteractiveActionUI();this.interactiveEl.style.display="none"};t.prototype.refreshInteractiveActionBtnStatus=function(t){var e=this.interactiveEl;var i="";for(var o=0,r=t.buttons;o<r.length;o++){var a=r[o];if(a.type=="optbtn"){i+=a.htmls[a.val]||""}}e.innerHTML=i};t.prototype.clearInteractiveActionUI=function(){this.interactiveEl.innerHTML=""};t.prototype.interactiveReset=function(){if(!this.hasInteractive){return}this.showInteractiveLayer=false;for(var t=0,e=this.interactiveActions;t<e.length;t++){var i=e[t];i.status.entercount=0;for(var o=0,r=i.buttons;o<r.length;o++){var a=r[o];if(a.type=="optbtn"){a.val=a.defaultval}}}};t.prototype.renderPlayer=function(){var t=this;var e=this.poster||"".concat(y.get("resUrlPrefix",""),"assets/cty_res/img/poster.jpg");return o("div",{class:"cty-video__wrapper","data-tap-disable":"true"},this.player==="video"&&o("video",{ref:function(e){return t.videoEl=e},class:"cty-video__player",poster:e,preload:this.preload,"x5-video-player-type":"h5","x5-video-player-fullscreen":"true",playsinline:true,"webkit-playsinline":true,autoplay:(this.isWifi||this.isMicroMessager||this.trafficAutoplay)&&this.autoplay,onCanPlay:this._doCanplay,onTimeUpdate:this._doTimeupdate,onPlay:this._doPlay,onPause:this._doPause,onEnded:this._doEnded,onPlaying:this._doPlaying,onVolumeChange:this._doChangeVolume,onError:this._doError,onStalled:this._doStalled,onWaiting:this._doWaiting,onSeeked:this._doSeeked,src:this.url,typeof:"video/mp4"}),this.player==="audio"&&o("div",{class:"cty-video__player cty-video__audio-player"},o("audio",{ref:function(e){return t.videoEl=e},class:"cty-video__player-audio",preload:this.preload,autoplay:(this.isWifi||this.isMicroMessager||this.trafficAutoplay)&&this.autoplay,onCanPlay:this._doCanplay,onTimeUpdate:this._doTimeupdate,onEnded:this._doEnded,onPlaying:this._doPlaying,onPlay:this._doPlay,onPause:this._doPause,onVolumeChange:this._doChangeVolume,onError:this._doError,onStalled:this._doStalled},o("source",{src:this.url,type:"audio/mp3"}),o("source",{src:this.url,type:"audio/ogg"})),o("slot",{name:"audio-content"})))};t.prototype.renderControls=function(){var t=this;return o("div",{class:"cty-video__controls",ref:function(e){return t.videoCtrlEl=e}},o("slot",{name:"header"}),this.showCtrl&&this.headerCtrl&&o("ion-grid",{class:"cty-video__header"},o("ion-row",null,o("ion-col",{class:"flex-align-center cty-video__header-back"},o("ion-button",{onClick:this._dismiss},o("cty-icon",{name:x}))),o("ion-col",{size:"6",class:"cty-video__title flex-align-center cty-ellipsis"},this.title),o("ion-col",null,o("slot",{name:"headerCol"})))),o("slot",{name:"footer"}),this.showCtrl&&this.footerCtrl&&o("ion-grid",{class:{"cty-video__footer":true,"safe-area-bottom-border-color":this.direction=="P"&&this.curIsFullscreen}},this.progressPosition=="top"&&o("ion-row",{class:"cty-video__footer-progress__top"},o("ion-range",{mode:"ios",class:"cty-video__footer-range",debounce:300,max:1e3,value:this.playProgress,disabled:true,ticks:false})),o("ion-row",null,o("ion-col",{class:{"flex-align-center cty-video__footer-toggle-play":true,"cty-video__footer-flex":this.progressPosition=="top"}},o("ion-button",{onClick:function(e){t.toggleVideo(e)}},o("cty-icon",{name:this.isPlaying?"cty-pause":"cty-play"})),this.progressPosition=="top"&&o("div",{class:"flex-align-center cty-video__footer-time-label"},this.currentTimeLabel,o("span",null,"/"),this.durationLabel)),this.progressPosition=="center"&&o("ion-col",{class:"cty-video__footer-progress flex-center"},o("ion-range",{mode:"ios",class:"cty-video__footer-range",debounce:300,max:1e3,value:this.playProgress,disabled:true,ticks:false},o("span",{class:"cty-video__time",slot:"start"},this.currentTimeLabel),o("span",{class:"cty-video__time",slot:"end"},this.durationLabel))),this.curIsFullscreen&&o("ion-col",{class:"cty-video__footer-rate flex-align-center"},o("ion-button",{onClick:this._doSetRate},this.rate==1?"倍速":this.rate+"X")),o("ion-col",{class:"cty-video__footer-volume flex-align-center"},o("ion-button",{onClick:function(){return t.toggleVolume()}},o("cty-icon",{name:this._getVolumeIconName()}))),!this.fullscreenOnly&&!this.curIsFullscreen&&this.fullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(true)}},o("cty-icon",{name:this.fullscreenIcon}))),!this.fullscreenOnly&&this.curIsFullscreen&&this.exitFullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(false)}},o("cty-icon",{name:this.exitFullscreenIcon}))),o("slot",{name:"footerCol"}))),(this.allowForward||this.allowBackward)&&this.showCtrl&&this.footerCtrl&&o("ion-grid",{class:{"cty-video__footer cty-video__footer-controls":true,"safe-area-bottom-border-color":this.direction=="P"&&this.curIsFullscreen}},this.progressPosition=="top"&&o("ion-row",{class:"cty-video__footer-progress__top",onClick:function(t){return t.stopPropagation()}},!this.isPC&&o("div",{class:"cty-video__footer-bar",onTouchStart:this._doPrgTouchstart,onTouchMove:this._doPrgTouchmove,onTouchEnd:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})}))),this.isPC&&o("div",{class:"cty-video__footer-bar",onMouseDown:this._doPrgTouchstart,onMouseMove:this._doPrgTouchmove,onMouseUp:this._doPrgTouchend,onMouseLeave:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})})))),o("ion-row",null,o("ion-col",{class:{"flex-align-center cty-video__footer-toggle-play":true,"cty-video__footer-flex":this.progressPosition=="top"}},o("ion-button",{onClick:function(e){t.toggleVideo(e)}},o("cty-icon",{name:this.isPlaying?"cty-pause":"cty-play"})),this.progressPosition=="top"&&o("div",{class:"flex-align-center cty-video__footer-time-label"},this.currentTimeLabel,o("span",null,"/"),this.durationLabel)),this.progressPosition=="center"&&o("ion-col",{class:"cty-video__footer-progress flex-center"},o("span",{class:"cty-video__time"},this.currentTimeLabel),!this.isPC&&o("div",{class:"cty-video__footer-bar",onTouchStart:this._doPrgTouchstart,onTouchMove:this._doPrgTouchmove,onTouchEnd:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})}))),this.isPC&&o("div",{class:"cty-video__footer-bar",onMouseDown:this._doPrgTouchstart,onMouseMove:this._doPrgTouchmove,onMouseUp:this._doPrgTouchend,onMouseLeave:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})}))),o("span",{class:"cty-video__time"},this.durationLabel)),this.curIsFullscreen&&o("ion-col",{class:"cty-video__footer-rate flex-align-center"},o("ion-button",{onClick:this._doSetRate},this.rate==1?"倍速":this.rate+"X")),o("ion-col",{class:"cty-video__footer-volume flex-align-center"},o("ion-button",{onClick:function(){return t.toggleVolume()}},o("cty-icon",{name:this._getVolumeIconName()}))),!this.fullscreenOnly&&!this.curIsFullscreen&&this.fullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(true)}},o("cty-icon",{name:this.fullscreenIcon}))),!this.fullscreenOnly&&this.curIsFullscreen&&this.exitFullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(false)}},o("cty-icon",{name:this.exitFullscreenIcon}))),o("slot",{name:"footerCol"}))),this.isMoving&&o("div",{class:"cty-video__opn-toast flex-center"},o("cty-icon",{name:this.controlIcon}),o("span",null,this.controlLabel)),o("slot",{name:"controls"}),!this.isPC&&this.controls&&o("div",{class:"cty-video__opn-panel",onTouchStart:this._doOpnStart,onTouchMove:this._doOpnMove,onTouchEnd:this._doOpnEnd,onClick:function(t){return t.stopPropagation()}}),this.isPC&&this.controls&&o("div",{class:"cty-video__opn-panel",onMouseDown:this._doOpnStart,onMouseMove:this._doOpnMove,onMouseUp:this._doOpnEnd,onMouseLeave:this._doOpnEnd,onClick:function(t){return t.stopPropagation()}}),this.showCtrl&&this.showDotPanel&&o("div",{ref:function(e){t.dotPanelEl=e},class:{"cty-video__dot-panel flex-center":true,"cty-video__dot-panel-ex":this.progressPosition=="top"},onClick:function(t){return t.stopPropagation()},style:{top:this.dotDotPanelTop,left:this.dotDotPanelLeft,opacity:this.reallyShowDot?"1":"0"}},o("span",{class:"cty-video__dot-label cty-ellipsis2"},this.currentMarker.describe),o("ion-button",{onClick:this._toPoint},o("cty-icon",{name:"cty-play-ex"}),"知识点"),o("span",{class:"cty-video__dot-triangle",style:{"margin-left":this.triangleMargin+"px"}})),o("slot",{name:"ctrl"}))};t.prototype.render=function(){var t=this;return o(r,{key:"6adfc085d212a7f444cbfdebcaa8db55c16c28ad",class:{"cty-video":true,"cty-video__vertical":this.deviceIsPORTRAIT,"cty-video__unfullscreen":!this.curIsFullscreen,"cty-video__large-screen":this.direction=="P"&&this.curIsFullscreen&&(this.isPC||this.isIpad)}},this.renderPlayer(),this.renderControls(),(!this.isLoading||this.isMicroMessager)&&!this.isPlaying&&!this.showInteractiveLayer&&this.showTogglePlay&&o("ion-button",{key:"5fc0a3de547d15aacfaf97d5d88386d01f42cc36",part:"toggle-play",class:"cty-video__toggle-play flex-center",onClick:function(e){t.toggleVideo(e)}},o("cty-icon",{key:"bdaf69d81dc56cab662dad85fade4a96211092a8",name:"cty-play"})),!this.isWifi&&!this.isPlaying&&!this.isLoading&&!this.isMicroMessager&&this.trafficMsg&&o("div",{key:"88706702c3db5d24dfdcc705166acb7d87588baf",class:"cty-video__toast cty-ellipsis",part:"toast"},this.trafficMsg),this.warningMsg!=""&&o("div",{key:"d0fc2227043e207f86006b31a101db5cff24aaa8",class:"cty-video__toast cty-ellipsis",part:"toast"},this.warningMsg),this.showPlayRate&&o("div",{key:"4f9fd7d4f4d1553cce4ff1b6b11c0f189a3ebe25",class:"cty-video__rate",onClick:function(){return t.showPlayRate=false}},o("div",{key:"b6f4d58a9dd2491cb8df589e3cbde6116a5930ab",class:"cty-video__rate-mask flex-center-justify-end"},o("div",{key:"9d9fa14f992b76a7c3068992c2a5ba2bf6d90f84",class:"cty-video__rate-list"},this._rates.map((function(e){return o("button",{onClick:function(){return t.setPlayRate(e)},class:{active:t.rate==e,"cty-video__rate-list-item":true}},o("span",null,e,"X"))}))))),this.hasInteractive&&this.curIsFullscreen&&o("div",{key:"dfa51bb93aecc26bfca408f3670f1ca839fa942f",class:"cty-video__player cty-video__interactive",onClick:function(){},ref:function(e){return t.interactiveEl=e}}))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());z.style=k}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,o){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function a(t){try{c(o.next(t))}catch(t){n(t)}}function s(t){try{c(o["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):r(t.value).then(a,s)}c((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(o=1,r&&(n=s[0]&2?r["return"]:s[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;if(r=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];r=0}finally{o=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-BpC3ubr-.system.js","./p-BqniUMS5.system.js","./p-MYIzeChY.system.js","./p-ChvDscoj.system.js","./p-B6ewx4qT.system.js","./p-DSgG8qVn.system.js","./p-DvPCY95C.system.js","./p-DA6jN8Vz.system.js","./p-NPOR6IxC.system.js","./p-D36DysLX.system.js"],(function(t){"use strict";var e,i,o,r,n,a,s,c,d,l,h,f,v,u,y,p,g,_,b,m,x,w;return{setters:[function(t){e=t.r;i=t.c;o=t.h;r=t.a;n=t.g},function(t){a=t.g;s=t.b;c=t.a},function(t){d=t.s;l=t.r},function(t){h=t.s;f=t.v},function(t){v=t.n},function(t){u=t.d},function(t){y=t.c},function(t){p=t.v;g=t.a;_=t.b;b=t.c;m=t.d;x=t.e},function(t){w=t.i},null],execute:function(){var k='*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.flex{display:-ms-flexbox;display:flex}.flex-wrap{display:-ms-flexbox;display:flex;-ms-flex-flow:wrap;flex-flow:wrap}.flex-align-start{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.flex-align-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.flex-align-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}.flex-justify-start{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.flex-justify-center{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.flex-justify-end{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.flex-align-end-start{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}.flex-align-end-center{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.flex-align-end-end{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}.flex-center{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-center-justify-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.flex-between{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.flex-center-between{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.flex-column{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.flex-column-align-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center}.flex-column-justify-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:center;justify-content:center}.flex-column-center{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flex-column-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:justify;justify-content:space-between}.flex-column-center-between{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.cty-ellipsis[class]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:normal}.cty-ellipsis2[class]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;word-wrap:break-word}.cty-ellipsis3[class]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-all;word-wrap:break-word}.cty-ellipsis4[class]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;word-break:break-all;word-wrap:break-word}ion-button{--background-activated:transparent;--background-focused:transparent;--background-hover:transparent;--box-shadow:none}ion-grid{padding:0}ion-row{padding:0}ion-col{padding:0}ion-item{--padding-bottom:0;--padding-end:0;--padding-start:0;--padding-top:0;--inner-padding-top:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-bottom:0;--inner-border-width:0;--border-width:0;--min-height:0;--background:none;overflow:initial}ion-toast{--width:84%;--height:36px;--color:var(--cty-color-white);--background:rgba(0, 0, 0, 0.7);--border-radius:100px;line-height:1.2;font-size:var(--cty-font-size-base);text-align:center}.plt-hybrid .safe-area-bottom-border{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid var(--cty-color-white)}.plt-hybrid .safe-area-bottom-border-color{-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:var(--ion-safe-area-bottom, 0) solid currentColor}.plt-hybrid .safe-area-bottom-padding{padding-bottom:var(--ion-safe-area-bottom, 0)}:host{--cty-video-width:100vw;--cty-video-height:100vh;--cty-video-half-width:calc(var(--cty-video-width) / 2);--cty-video-fit:fill;--cty-video-header-height:50px;--cty-video-header-background:var(--cty-overlay-color-lighter);--cty-video-header-unfullscreen-background:transparent;--cty-video-header-unfullscreen-height:30px;--cty-video-header-padding-top:0px;--cty-video-header-padding-bottom:0px;--cty-video-header-padding-start:0px;--cty-video-header-padding-end:0px;--cty-video-header-back-display:flex;--cty-video-header-back-background:transparent;--cty-video-header-back-height:36px;--cty-video-header-back-width:36px;--cty-video-header-back-radius:var(--cty-border-radius-circle);--cty-video-header-back-offset-start:2px;--cty-video-header-back-offset-end:0px;--cty-video-header-back-size:25px;--cty-video-header-back-color:var(--cty-color-white);--cty-video-header-title-size:var(--cty-font-size-medium);--cty-video-header-title-color:var(--cty-color-white);--cty-video-header-title-display:flex;--cty-video-footer-height:50px;--cty-video-footer-background:var(--cty-overlay-color-lighter);--cty-video-footer-unfullscreen-background:transparent;--cty-video-footer-unfullscreen-height:35px;--cty-video-footer-progress-height:0px;--cty-video-footer-padding-start:0px;--cty-video-footer-padding-end:0px;--cty-video-footer-progress-size:var(--cty-font-size-medium);--cty-video-footer-icon-size:24px;--cty-video-footer-fullscreen-icon-size:20px;--cty-video-play-size:80px;--cty-video-play-border:5px solid rgb(238 238 238 / 80%);--cty-video-play-icon-size:40px;--cty-video-unfullscreen-play-size:40px;--cty-video-unfullscreen-play-border:4px solid rgb(238 238 238 / 80%);--cty-video-unfullscreen-play-icon-size:26px;--cty-video-range-bar-height:2px;--cty-video-bar-size:12px;--cty-video-bar-color:var(--cty-color-white);--cty-video-range-knob-background:var(--cty-color-white);--cty-video-range-background:rgb(255 255 255 / 50%);--cty-video-range-background-active:var(--cty-color-primary);--cty-video-loading-background-color:rgb(0 0 0 / 90%);--cty-video-loading-img-width:100px;--cty-video-half-screen-height:56vw;--cty-video-dot-size:7px;--cty-video-dot-padding:9px;--cty-video-dot-active-color:var(--cty-color-primary);--cty-video-progress-vertical-padding:0 15px;--cty-video-progress-horizongtal-padding:0px;--cty-video-rate-active-color:var(--cty-color-primary);--cty-video-toast-width:calc(var(--cty-video-width) * 0.4);--cty-video-toast-height:40px;--cty-video-opn-toast-icon-size:20px;position:relative;display:block;width:var(--cty-video-width);height:var(--cty-video-height);background:var(--cty-color-black)}ion-row{height:100%}ion-col{overflow:hidden}ion-button{min-height:auto;margin:0}.cty-video__wrapper{position:relative;width:100%;height:100%}.cty-video__player{position:absolute;top:0;left:0;display:none;width:var(--cty-video-height);height:var(--cty-video-width);margin:0;-o-object-fit:var(--cty-video-fit);object-fit:var(--cty-video-fit);-webkit-transform:rotate(90deg) translate(0, -100%);transform:rotate(90deg);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width)}.cty-video__controls{position:absolute;top:0;left:0;width:100%;height:100%}.cty-video__header{position:absolute;top:0;left:0;z-index:6;-webkit-box-sizing:content-box;box-sizing:content-box;width:calc(var(--cty-video-height) - var(--cty-video-header-padding-start) - var(--cty-video-header-padding-end));height:var(--cty-video-header-height);padding:var(--cty-video-header-padding-top) var(--cty-video-header-padding-end) var(--cty-video-header-padding-bottom) var(--cty-video-header-padding-start);background:var(--cty-video-header-background);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width)}.cty-video__header-back{display:var(--cty-video-header-back-display);-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__header-back ion-button{width:var(--cty-video-header-back-width);height:var(--cty-video-header-back-height);margin-right:var(--cty-video-header-back-offset-end);margin-left:var(--cty-video-header-back-offset-start);border-radius:var(--cty-video-header-back-radius);--background:var(--cty-video-header-back-background);--padding-start:5px;--padding-end:5px;--padding-top:0;--padding-bottom:0}.cty-video__header-back cty-icon{font-size:var(--cty-video-header-back-size);color:var(--cty-video-header-back-color)}.cty-video__title[class]{display:var(--cty-video-header-title-display);font-size:var(--cty-video-header-title-size);line-height:var(--cty-video-header-height);color:var(--cty-video-header-title-color)}.cty-video__footer{position:absolute;top:0;left:0;z-index:6;-webkit-box-sizing:border-box;box-sizing:border-box;width:var(--cty-video-height);height:var(--cty-video-footer-height);padding-right:var(--cty-video-footer-padding-end);padding-left:var(--cty-video-footer-padding-start);background:var(--cty-video-footer-background);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2);transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2)}.cty-video__footer ion-button{height:100%;--background:transparent;--padding-start:12px;--padding-end:12px;--padding-top:0;--padding-bottom:0;--color:var(--cty-color-white)}.cty-video__footer ion-row{height:calc(var(--cty-video-footer-height) - var(--cty-video-footer-progress-height))}.cty-video__footer .cty-video__footer-progress__top{height:var(--cty-video-footer-progress-height);-webkit-transform:translateY(calc(var(--cty-video-footer-progress-height) / 2));transform:translateY(calc(var(--cty-video-footer-progress-height) / 2))}.cty-video__footer-controls{background:transparent}.cty-video__footer-controls ion-col:not(.cty-video__footer-progress){opacity:0}.cty-video__footer-controls .cty-video__time{opacity:0}.cty-video__footer-toggle-play{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-toggle-play cty-icon{font-size:var(--cty-video-footer-icon-size)}.cty-video__footer-flex{-ms-flex:1;flex:1}.cty-video__footer-time-label{margin-left:8px;font-size:var(--cty-video-footer-progress-size);color:var(--cty-color-white);letter-spacing:0.2px}.cty-video__footer-time-label span{margin:0 1px;-webkit-transform:translateY(-1px);transform:translateY(-1px)}.cty-video__footer-progress{-ms-flex:1;flex:1;overflow:auto}.cty-video__time{font-size:var(--cty-video-footer-progress-size);color:var(--cty-color-white)}.cty-video__time:nth-child(1){margin-right:12px}.cty-video__time:nth-child(2),.cty-video__time:last-child{margin-left:12px}.cty-video__footer-range{--height:100%;--knob-size:var(--cty-video-bar-size);--bar-height:var(--cty-video-range-bar-height);padding:0;font-size:var(--cty-font-size-medium);color:var(--cty-video-bar-color);opacity:1;--knob-background:var(--cty-video-range-knob-background);--bar-background:var(--cty-video-range-background);--bar-background-active:var(--cty-video-range-background-active)}.cty-video__footer-bar{position:relative;-ms-flex:1;flex:1;height:80%;cursor:pointer}.cty-video__footer-progress__top{position:relative;z-index:2;padding:var(--cty-video-progress-horizongtal-padding)}.cty-video__footer-progress__top .cty-video__footer-bar{height:100%}.cty-video__footer-dot{position:absolute;top:50%;padding:var(--cty-video-dot-padding);-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-video__footer-dot::after{display:block;width:var(--cty-video-dot-size);height:var(--cty-video-dot-size);content:"";background:var(--cty-video-dot-active-color);border-radius:var(--cty-border-radius-circle)}.cty-video__footer-rate{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-rate ion-button{--padding-start:5px;--padding-end:5px;--padding-top:4px;--padding-bottom:4px;width:36px;height:auto;margin-left:12px;font-size:var(--cty-font-size-extra-small);font-weight:bold;white-space:nowrap;border:1px solid var(--cty-color-white);border-radius:var(--cty-border-radius-base)}.cty-video__footer-volume{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-volume cty-icon{font-size:var(--cty-video-footer-icon-size)}.cty-video__footer-fullscreen{-ms-flex-positive:0;flex-grow:0;width:auto;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.cty-video__footer-fullscreen ion-button{--padding-start:0px}.cty-video__footer-fullscreen cty-icon{font-size:var(--cty-video-footer-fullscreen-icon-size)}.cty-video__toggle-play{position:absolute;top:50%;left:50%;z-index:8;width:var(--cty-video-play-size);height:var(--cty-video-play-size);margin:calc(var(--cty-video-play-size) / -2) 0 0 calc(var(--cty-video-play-size) / -2);font-weight:bold;text-align:center;border:var(--cty-video-play-border);border-radius:var(--cty-border-radius-circle);--background:transparent;--padding-top:0;--padding-end:0;--padding-start:0;--padding-bottom:0}.cty-video__toggle-play cty-icon{font-size:var(--cty-video-play-icon-size);color:rgba(238, 238, 238, 0.9);text-align:center;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cty-video__opn-toast{position:absolute;top:50%;left:50%;z-index:4;width:var(--cty-video-toast-width);max-width:150px;height:var(--cty-video-toast-height);font-size:var(--cty-font-size-medium);font-weight:bold;color:var(--cty-color-white);background:var(--cty-overlay-color-light);border-radius:var(--cty-border-radius-round);-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.cty-video__opn-toast cty-icon{margin-right:10px;font-size:var(--cty-video-opn-toast-icon-size)}.cty-video__opn-panel{position:absolute;top:50%;left:50%;z-index:5;width:var(--cty-video-height);height:calc(var(--cty-video-width) - var(--cty-video-header-height) - var(--cty-video-footer-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom));margin:0 0 0 calc((var(--cty-video-footer-height) - var(--cty-video-header-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom)) / 2);-webkit-transform:translate(-50%, -50%) rotate(90deg);transform:translate(-50%, -50%) rotate(90deg)}.cty-video__dot-panel{position:absolute;z-index:6;padding:5px 11px 5px 8px;margin-left:calc(var(--cty-video-footer-height) + 13px + 46px);background:var(--cty-overlay-color);border-radius:var(--cty-border-radius-base);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:left top;transform-origin:left top}.cty-video__dot-panel .cty-video__dot-label{position:relative;max-width:160px;padding-right:17px;font-size:var(--cty-font-size-small);line-height:1.38;color:var(--cty-color-white)}.cty-video__dot-panel .cty-video__dot-label::after{position:absolute;top:0;right:7px;width:1px;height:100%;content:"";background-color:rgba(255, 255, 255, 0.3);-webkit-transform:scaleX(1.5);transform:scaleX(1.5)}.cty-video__dot-panel ion-button{height:36px;font-size:var(--cty-font-size-small);font-weight:bold;--padding-start:0;--padding-end:0;--background:transparent;--border-radius:0;--color:var(--cty-video-dot-active-color)}.cty-video__dot-panel cty-icon{margin-right:4px;font-size:var(--cty-font-size-medium)}.cty-video__dot-panel .cty-video__dot-triangle{position:absolute;bottom:-18px;left:20px;border-color:transparent;border-style:solid;border-width:9px 8px;border-top-color:var(--cty-overlay-color)}.cty-video__dot-panel-ex{margin-left:calc(var(--cty-video-footer-height) + 46px)}.cty-video__toast[class]{position:absolute;top:50%;z-index:7;min-width:300px;max-width:96vw;padding:0 15px;margin:0 0 0 -60px;font-size:var(--cty-font-size-extra-small);font-weight:bold;line-height:30px;color:rgba(238, 238, 238, 0.9);text-align:center;pointer-events:none;background:var(--cty-overlay-color);border-radius:var(--cty-border-radius-large);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cty-video__rate{position:absolute;top:0;left:0;z-index:9;width:var(--cty-video-height);height:var(--cty-video-width);-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width)}.cty-video__rate-mask{position:absolute;top:0;right:0;width:40%;height:100%;background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.9)), color-stop(rgba(0, 0, 0, 0.8)), color-stop(rgba(0, 0, 0, 0.5)), to(transparent));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent)}.cty-video__rate-list-item{display:block;width:112px;min-height:50px;font-size:var(--cty-font-size-base);color:var(--cty-color-white);text-align:center;outline:none;background-color:transparent;border:none}.cty-video__rate-list-item.active{color:var(--cty-video-rate-active-color)}.cty-video__interactive{z-index:101;display:none;background-color:transparent;background-repeat:no-repeat;background-size:100% 100%}:host(.cty-video__vertical) cty-loading{--cty-loading-transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__player{top:50%;width:var(--cty-video-width);height:auto;max-height:100%;-webkit-transform:rotate(0deg) translateY(-50%);transform:rotate(0deg) translateY(-50%)}:host(.cty-video__vertical) .cty-video__toggle-play cty-icon{-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__toast{top:80%;left:50%;margin:0;-webkit-transform:rotate(0deg) translateX(-50%);transform:rotate(0deg) translateX(-50%)}:host(.cty-video__vertical) .cty-video__header{width:calc(var(--cty-video-width) - var(--cty-video-header-padding-start) - var(--cty-video-header-padding-end));-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__opn-panel{width:var(--cty-video-width);height:calc(var(--cty-video-height) - var(--cty-video-header-height) - var(--cty-video-footer-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom));margin:calc((var(--cty-video-footer-height) - var(--cty-video-header-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom)) / -2) 0 0;-webkit-transform:translate(-50%, -50%) rotate(0);transform:translate(-50%, -50%) rotate(0)}:host(.cty-video__vertical) .cty-video__opn-toast{top:50%;-webkit-transform:translate(-50%, 0) rotate(0deg);transform:translate(-50%, 0) rotate(0deg)}:host(.cty-video__vertical) .cty-video__footer{top:auto;bottom:0;width:var(--cty-video-width);-webkit-transform:rotate(0);transform:rotate(0)}:host(.cty-video__vertical) .cty-video__footer-progress__top{padding:var(--cty-video-progress-vertical-padding)}:host(.cty-video__vertical) .cty-video__time{font-size:var(--cty-font-size-small)}:host(.cty-video__vertical) .cty-video__footer-time-label{margin-left:0}:host(.cty-video__vertical) .cty-video__rate{width:var(--cty-video-width);height:var(--cty-video-height);-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__dot-panel{bottom:calc(var(--cty-video-footer-height) + 13px);margin-left:0;-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__vertical) .cty-video__dot-panel-ex{bottom:var(--cty-video-footer-height)}:host(.cty-video__unfullscreen){height:var(--cty-video-half-screen-height)}:host(.cty-video__unfullscreen) .cty-video__wrapper{background-color:var(--cty-color-black)}:host(.cty-video__unfullscreen) .cty-video__player{top:0;height:var(--cty-video-half-screen-height);max-height:initial;-webkit-transform:rotate(0deg);transform:rotate(0deg)}:host(.cty-video__unfullscreen) .cty-video__toggle-play{width:var(--cty-video-unfullscreen-play-size);height:var(--cty-video-unfullscreen-play-size);margin:calc(var(--cty-video-unfullscreen-play-size) / -2) 0 0 calc(var(--cty-video-unfullscreen-play-size) / -2);border:var(--cty-video-unfullscreen-play-border)}:host(.cty-video__unfullscreen) .cty-video__toggle-play cty-icon{font-size:var(--cty-video-unfullscreen-play-icon-size)}:host(.cty-video__unfullscreen) .cty-video__header{height:var(--cty-video-header-unfullscreen-height);background:var(--cty-video-header-unfullscreen-background)}:host(.cty-video__unfullscreen) .cty-video__title{line-height:var(--cty-video-header-unfullscreen-height)}:host(.cty-video__unfullscreen) .cty-video__header-back ion-button{width:30px;height:100%}:host(.cty-video__unfullscreen) .cty-video__footer{height:var(--cty-video-footer-unfullscreen-height);background:var(--cty-video-footer-unfullscreen-background)}:host(.cty-video__unfullscreen) .cty-video__footer ion-row{height:calc(var(--cty-video-footer-unfullscreen-height) - var(--cty-video-footer-progress-height))}:host(.cty-video__unfullscreen) .cty-video__footer .cty-video__footer-progress__top{height:var(--cty-video-footer-progress-height)}:host(.cty-video__unfullscreen) .cty-video__footer ion-button{--padding-start:8px;--padding-end:8px}:host(.cty-video__unfullscreen) .cty-video__footer-fullscreen ion-button{--padding-start:0px}:host(.cty-video__unfullscreen) .cty-video__opn-panel{height:calc(var(--cty-video-half-screen-height) - var(--cty-video-header-unfullscreen-height) - var(--cty-video-footer-unfullscreen-height) - var(--cty-video-header-padding-top) - var(--cty-video-header-padding-bottom))}:host(.cty-video__unfullscreen) .cty-video__opn-toast{top:40%;height:30px}:host(.cty-video__unfullscreen) .cty-video__toast{top:70%}:host(.cty-video__unfullscreen) cty-loading{--cty-loading-overlay-height:var(--cty-video-half-screen-height)}:host(.cty-video__large-screen) .cty-video__player{top:0;left:50%;width:auto;max-width:100%;height:100%;-webkit-transform:rotate(0deg) translateX(-50%);transform:rotate(0deg) translateX(-50%)}.cty-video__audio-player{display:block}.cty-video__player-audio{position:absolute;display:none;visibility:hidden}';var z=t("cty_video",function(){function t(t){var o=this;e(this,t);this.ctyDismiss=i(this,"ctyDismiss",7);this.ctyVideoCanplay=i(this,"ctyVideoCanplay",7);this.ctyVideoTimeupdate=i(this,"ctyVideoTimeupdate",7);this.ctyVideoPlaying=i(this,"ctyVideoPlaying",7);this.ctyVideoPlay=i(this,"ctyVideoPlay",7);this.ctyVideoPause=i(this,"ctyVideoPause",7);this.ctyVideoStalled=i(this,"ctyVideoStalled",7);this.ctyVideoWaiting=i(this,"ctyVideoWaiting",7);this.ctyVideoEnded=i(this,"ctyVideoEnded",7);this.ctyVideoError=i(this,"ctyVideoError",7);this.ctyVideoChangeVolume=i(this,"ctyVideoChangeVolume",7);this.ctyVideoProgress=i(this,"ctyVideoProgress",7);this.ctyVideoScreenChange=i(this,"ctyVideoScreenChange",7);this.ctyVideoIAEnter=i(this,"ctyVideoIAEnter",7);this.ctyVideoIAAction=i(this,"ctyVideoIAAction",7);this.ctyVideoCtrlChange=i(this,"ctyVideoCtrlChange",7);this.ctyVideoRateChange=i(this,"ctyVideoRateChange",7);this.url="";this.poster="";this.startTime=0;this.preload="metadata";this.allowForward=true;this.allowBackward=true;this.unAllowForwardMsg="首次学习不允许快进哦~";this.unAllowRateMsg="首次学习不允许设置播放倍速";this.trafficMsg="当前是非WIFI网络, 可能消耗流量, 点击继续~";this.errorMsg="视频播放异常或网络故障, 请稍后重试。";this.orientation=true;this.autoplay=true;this.trafficAutoplay=false;this.fullscreenOnly=true;this.defaultFullscreen=true;this.fullscreenIcon="cty-fullscreen";this.exitFullscreenIcon="cty-exit-fullscreen";this.direction="L";this.controls=true;this.headerCtrl=true;this.footerCtrl=true;this.title="";this.rates=[.7,1,1.25,1.5];this.rate=1;this.directRate=false;this.loading=false;this.loadingImg="";this.updateNow=true;this.markers=[];this.landscapeEnterTimer=20;this.landscapeLeaveTimer=420;this.togglePlayTimer=150;this.progressPosition="center";this.player="video";this.largeScreenIsPortrait=true;this.allowBackgroundForward=false;this.interactiveActions=[];this.playProgress=0;this.maxPlayProgress=0;this.currentTimeLabel="00:00:00";this.durationLabel="00:00:00";this.isPlaying=false;this.isMute=false;this.showCtrl=true;this.showPlayRate=false;this.showVideoError=true;this.warningMsg="";this.isLoading=true;this.showTogglePlay=false;this.playVolume=100;this.playBrightness=100;this.controlIcon="";this.controlLabel="";this.controlType="";this.lastControlType="";this.touchState={isTouching:false,right:0,height:0,top:0,bottom:0,currentY:0};this.isMoving=false;this.opnStartTime=0;this.opnMoveTime=0;this.opnLx=0;this.opnLy=0;this.opnNx=0;this.opnNy=0;this.isMouseMove=false;this.isMicroMessager=u.isMicroMessager;this.isPC=u.isPC;this.isIOS=u.isIos;this.isIpad=u.isIpad;this.isWifi=v.isWifi;this.isHybrid=u.isHybrid;this.lastTapScreenTime=Date.now();this.footerPrgtime=0;this._curIsFullscreen=true;this.showInteractiveLayer=false;this.hasInteractive=false;this.interactiving_action=null;this.ctrlTimer=0;this.warningMsgTimer=0;this.touchMoveTimer=0;this._rates=[];this.markerList=[];this.currentMarker={describe:"",breakpoint:0,position:0};this.showDotPanel=false;this.dotDotPanelTop="auto";this.dotDotPanelLeft="auto";this.triangleMargin=0;this.reallyShowDot=false;this.isRealWaiting=true;this.isSeeking=false;this.deviceIsPORTRAIT=false;this.canScreenOrientation=false;this.visibilityChangeHandler=function(){};this.iosAppPauseHandler=function(){};this.iosAResumeHandler=function(){};this._doCanplay=function(){setTimeout((function(){o.showTogglePlay=true}),o.togglePlayTimer);if(o.isLoading){o.videoEl.style.display="block"}if((!o.isWifi||o.isMicroMessager||!o.autoplay||!o.loading)&&o.isLoading){o.isLoading=false}o.durationLabel=d(o.videoEl.duration);o.ctyVideoCanplay.emit();o.markerList=o.markers.map((function(t){return Object.assign(Object.assign({},t),{position:+(t.breakpoint/o.videoEl.duration*100).toFixed(3)})}))};this._doTimeupdate=function(){var t=o.videoEl.currentTime;if(!o.isPlaying&&t>0){if(o.isLoading){o.isLoading=false}if(!o.videoEl.paused){o.isPlaying=true}}if(!o.touchState.isTouching){o._updateVideoProgress();o.interactiveCheck(t)}o.ctyVideoTimeupdate.emit(t)};this._doPlay=function(){o.ctyVideoPlay.emit()};this._doPause=function(){o.isPlaying=false;o.ctyVideoPause.emit()};this._doEnded=function(){o.isPlaying=false;o._updateVideoProgress();o.interactiveReset();o.ctyVideoEnded.emit()};this._doPlaying=function(){if(!w("android")){if(o.isLoading){o.isLoading=false}o.isPlaying=true}o.ctyVideoPlaying.emit()};this._doChangeVolume=function(){o.playVolume=Math.round(o.videoEl.volume*100);o.ctyVideoChangeVolume.emit()};this._doError=function(){if(!o.isLoading&&o.showVideoError){o.warningMsg=o.errorMsg;o.clearWarningMsg();o.ctyVideoError.emit(true);return}if(o.isLoading){o.isLoading=false;o.showTogglePlay=true}o.ctyVideoError.emit(false)};this._doStalled=function(){o.ctyVideoStalled.emit()};this._doWaiting=function(){if(o.isRealWaiting&&!o.isSeeking){o.ctyVideoWaiting.emit(o.videoEl.currentTime)}};this._doSeeked=function(){if(o.isSeeking=false){o.isRealWaiting=true}};this._dismiss=function(){if(!o.fullscreenOnly&&o.curIsFullscreen){o.curIsFullscreen=false;if(o.isHybrid){l.toggleStatusBar(true)}if(o.canScreenOrientation){h.lock("portrait").catch((function(){}))}o.ctyDismiss.emit(false);return}if(!o.videoEl.paused){o.pause();o.ctyDismiss.emit(false);return}if(o.isHybrid){l.toggleStatusBar(true)}if(o.canScreenOrientation){if(o.landscapeLeaveTimer>0){setTimeout((function(){h.lock("portrait").catch((function(){}))}),o.landscapeLeaveTimer)}else{h.lock("portrait").catch((function(){}))}}o.ctyDismiss.emit(true)};this._doSetRate=function(){if(!o.allowForward){o.warningMsg=o.unAllowRateMsg;o.clearWarningMsg();return}if(o.direction!="L"||o.directRate){var t=o.rates.findIndex((function(t){return t==o.rate}))+1;if(t==o.rates.length){t=0}o.setPlayRate(o.rates[t]);return}o.showCtrl=false;o.showPlayRate=true;o._resetDot();o.ctyVideoCtrlChange.emit(o.showCtrl)};this._toggleFullScreen=function(t){o.curIsFullscreen=t;if(o.isHybrid){l.toggleStatusBar(!t)}if(o.canScreenOrientation){h.lock(t?"landscape":"portrait").catch((function(){}))}o.ctyVideoScreenChange.emit(t)};this._doPrgTouchstart=function(t){var e;if(t.type=="mousedown"){o.isMouseMove=true}o.isRealWaiting=false;if(!o.allowForward&&!o.allowBackward||((e=t.touches)===null||e===void 0?void 0:e.length)>1){return true}o.isSeeking=true;var i=a(t.currentTarget);o.touchState.top=i.top;o.touchState.height=i.bottom-o.touchState.top;o.touchState.right=i.right;o.touchState.bottom=i.bottom;o.touchState.isTouching=true;if(o.deviceIsPORTRAIT){o.touchState.top=i.left;o.touchState.height=i.right-o.touchState.top;o.touchState.right=i.bottom;o.touchState.bottom=i.right}o.touchState.currentY=o._getPoint(t).x;o.maxPlayProgress=Math.max(o.playProgress,o.maxPlayProgress);o._changeProgressByTouch();o.clearCtrlTimeout();return true};this._doPrgTouchmove=function(t){var e;if(!o.isMouseMove&&t.type=="mousemove"){return}if(((e=t.touches)===null||e===void 0?void 0:e.length)>1){return true}var i=Date.now();if(o.footerPrgtime+50>i){return true}o.footerPrgtime=i;var r=o._getPoint(t).x;var n=Math.abs(r-o.touchState.currentY)*100/o.touchState.height;o.touchState.currentY=r;if(n>1||t.type=="mousemove"){o._changeProgressByTouch(o.updateNow)}return true};this._doPrgTouchend=function(t){if(t.type=="mouseleave"&&!o.isMouseMove){return}if(t.type=="mouseup"||t.type=="mouseleave"){o.isMouseMove=false}if(o.touchState.isTouching){o._changeProgressByTouch()}o.touchState.isTouching=false;o.isSeeking=false;return true};this._doOpnStart=function(t){if(t.type=="mousedown"){o.isMouseMove=true}o.isSeeking=true;o.isRealWaiting=false;var e=a(t.currentTarget);o.touchState.top=e.top;o.touchState.height=e.bottom-o.touchState.top;o.touchState.right=e.right;o.touchState.bottom=e.bottom;o.touchState.isTouching=true;if(o.deviceIsPORTRAIT){o.touchState.top=e.left;o.touchState.height=e.right-o.touchState.top;o.touchState.right=e.bottom;o.touchState.bottom=e.right}var i=o._getPoint(t),r=i.x,n=i.y;o.opnLx=r;o.opnLy=n;o.maxPlayProgress=Math.max(o.playProgress,o.maxPlayProgress);o.opnStartTime=(new Date).getTime();return true};this._doOpnMove=function(t){if(!o.isMouseMove&&t.type=="mousemove"){return}if(o.opnMoveTime===0){o.opnMoveTime=(new Date).getTime()}if(o.opnMoveTime-o.opnStartTime<1500){o.showCtrl=true;o.clearCtrlTimeout();o.isMoving=true;var e=o._getPoint(t),i=e.x,r=e.y;o.opnNx=i;o.opnNy=r;if(!o.controlType){if(Math.abs(o.opnNx-o.opnLx)>=Math.abs(o.opnNy-o.opnLy)){o.controlType="P";o.controlLabel=o.currentTimeLabel}else{if(!o.isIOS){if(o.opnLx>o.touchState.height*.5){o.controlType="V";o.controlIcon="cty-volume-high";o.controlLabel=o.playVolume+"%"}else{o.controlType="B";o.controlIcon="cty-brightness";o.controlLabel=o.playBrightness+"%"}}else{o.controlType="B";o.controlIcon="cty-brightness";o.controlLabel=o.playBrightness+"%"}}}if(o.controlType=="P"){o.controlIcon=o.opnNx-o.opnLx>0?"cty-forward":"cty-backward"}switch(o.controlType){case"B":if(o.opnNy-o.opnLy<0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy>0&&o.deviceIsPORTRAIT){o.playBrightness-=2;o.playBrightness=Math.max(o.playBrightness,0);if(o.updateNow){o._updateBrightness()}}else if(o.opnNy-o.opnLy>0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy<0&&o.deviceIsPORTRAIT){o.playBrightness+=2;o.playBrightness=Math.min(o.playBrightness,100);if(o.updateNow){o._updateBrightness()}}o.controlLabel=o.playBrightness+"%";break;case"V":if(o.opnNy-o.opnLy<0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy>0&&o.deviceIsPORTRAIT){o.playVolume-=2;o.playVolume=Math.max(o.playVolume,0);if(o.updateNow){o._updateVolume()}}else if(o.opnNy-o.opnLy>0&&!o.deviceIsPORTRAIT||o.opnNy-o.opnLy<0&&o.deviceIsPORTRAIT){o.playVolume+=2;o.playVolume=Math.min(o.playVolume,100);if(o.updateNow){o._updateVolume()}}o.controlLabel=o.playVolume+"%";break;case"P":if(o.opnNx-o.opnLx>0){if(!o.allowForward&&o.playProgress>=o.maxPlayProgress){o.isMoving=false;o.unAllowForward();return}o.playProgress+=1;o.playProgress=Math.min(o.playProgress,1e3);if(o.updateNow){o.videoEl.currentTime=o.playProgress/1e3*o.videoEl.duration;o._updateVideoProgress()}o.controlLabel=d(o.playProgress/1e3*o.videoEl.duration)}else if(o.opnNx-o.opnLx<0){o.playProgress-=1;o.playProgress=Math.max(0,o.playProgress);if(o.updateNow){o.videoEl.currentTime=o.playProgress/1e3*o.videoEl.duration;o._updateVideoProgress()}o.controlLabel=d(o.playProgress/1e3*o.videoEl.duration)}else{o.interactiveReset()}break}o.lastControlType=o.controlType;o.opnLx=o.opnNx;o.opnLy=o.opnNy}};this._doOpnEnd=function(t){if(t.type=="mouseleave"&&!o.isMouseMove){return}if(t.type=="mouseup"||t.type=="mouseleave"){o.isMouseMove=false}if(!o.isMoving){o.showCtrl=!o.showCtrl;o.ctyVideoCtrlChange.emit(o.showCtrl);o._resetDot();var e=Date.now();if(e-o.lastTapScreenTime<400){o.lastTapScreenTime=o.lastTapScreenTime-1e3;o.toggleVideo(null)}else{o.lastTapScreenTime=e}}if(!o.updateNow){switch(o.controlType){case"B":o._updateBrightness();break;case"V":o._updateVolume();break;case"P":o.videoEl.currentTime=o.playProgress/1e3*o.videoEl.duration;o._updateVideoProgress();break}}o.controlType="";o.clearCtrlTimeout();o.touchState.isTouching=false;o.opnMoveTime=0;o._clearTouchMoveToast();o.isSeeking=false};this._doDot=function(t,e){t.stopPropagation();o.clearCtrlTimeout();if(o.currentMarker.breakpoint>0&&e.breakpoint==o.currentMarker.breakpoint){o.setVideoCurrentTime(o.currentMarker.breakpoint,(function(){o._resetDot();o.play()}));return}o.showDotPanel=true;o.currentMarker=e;var i=a(t.target);var r=i.top+i.height/2;var n=i.left+i.width/2;o.reallyShowDot=false;window.setTimeout((function(){var t=o.dotPanelEl;var e=t.parentNode.offsetHeight;var i=t.parentNode.offsetWidth;var a=t.offsetWidth;var s=t.children[t.children.length-1];var c=r-s.offsetLeft-s.offsetWidth/2+o.triangleMargin;var d=n-s.offsetLeft-s.offsetWidth/2+o.triangleMargin;o.dotDotPanelTop=c+"px";o.dotDotPanelLeft=d+"px";var l=e-a-20;var h=i-a-20;if(o.canScreenOrientation){if(d>h){o.triangleMargin=d-h;o.dotDotPanelLeft=h+"px"}else if(d<5){o.triangleMargin=d-5;o.dotDotPanelLeft="5px"}else{o.triangleMargin=0}o.dotDotPanelTop="auto"}else{if(c>l){o.triangleMargin=c-l;o.dotDotPanelTop=l+"px"}else if(c<5){o.triangleMargin=c-5;o.dotDotPanelTop="5px"}else{o.triangleMargin=0}o.dotDotPanelLeft="auto"}window.setTimeout((function(){o.reallyShowDot=true}),10)}),100)};this._toPoint=function(){o.clearCtrlTimeout();o.setVideoCurrentTime(o.currentMarker.breakpoint,(function(){o._resetDot();o.play()}))}}Object.defineProperty(t.prototype,"curIsFullscreen",{get:function(){return this._curIsFullscreen},set:function(t){this._curIsFullscreen=t;this.deviceIsPORTRAIT=this.direction=="P"||!t||this.largeScreenIsPortrait&&(this.isPC||this.isIpad)||this.canScreenOrientation&&t},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,o;return __generator(this,(function(r){switch(r.label){case 0:if(!(!this.isIOS&&!this.isMicroMessager&&f.isAvailable))return[3,5];r.label=1;case 1:r.trys.push([1,4,,5]);t=this;return[4,f.getVolume()];case 2:t.playVolume=r.sent();e=this;return[4,f.isMuted()];case 3:e.isMute=r.sent();return[3,5];case 4:i=r.sent();return[3,5];case 5:if(!this.defaultFullscreen&&!this.fullscreenOnly){this.curIsFullscreen=false}o=this.rates.map((function(t){return t}));this._rates=o;this.hasInteractive=Array.isArray(this.interactiveActions)&&this.interactiveActions.length>0;this.interactiveReset();this.showTogglePlay=!this.autoplay;return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.canScreenOrientation=this.orientation&&this.direction=="L"&&this.isHybrid&&w("mobile")&&!this.isIpad;this.deviceIsPORTRAIT=this.direction=="P"||!this.curIsFullscreen||this.largeScreenIsPortrait&&(this.isPC||this.isIpad)||this.canScreenOrientation;if(this.canScreenOrientation&&this.curIsFullscreen){if(this.landscapeEnterTimer>0){setTimeout((function(){h.lock("landscape").catch((function(){}))}),this.landscapeEnterTimer)}else{h.lock("landscape").catch((function(){}))}}else if(this.isHybrid&&w("mobile")){h.lock("portrait").catch((function(){}))}if(+this.startTime>0){this.videoEl.currentTime=Number(this.startTime)}this.videoEl.controls=false;this.videoEl.playbackRate=this.rate;if(this.isMicroMessager){window.setTimeout((function(){t.isLoading=false;t.showTogglePlay=true;t.videoEl.style.display="block"}),2500)}else if(!this.isWifi){window.setTimeout((function(){t.isLoading=false;t.showTogglePlay=true;t.videoEl.style.display="block"}),1500)}else if(+this.startTime>0){this.videoEl.style.display="block"}if(!this.allowBackgroundForward&&this.isIOS){var e=1;var i="";var o=0;if(this.isMicroMessager){this.visibilityChangeHandler=function(){if(!t.allowForward&&t.videoEl){if(e%2==1){t.showVideoError=false;i=t.videoEl.src;o=t.videoEl.currentTime;t.videoEl.src="data:video/mp4;base64,YQ=="}else{t.videoEl.src=i;window.setTimeout((function(){t.videoEl.currentTime=o;t.showVideoError=true}),1500)}e++}};document.addEventListener("visibilitychange",this.visibilityChangeHandler)}else{this.iosAppPauseHandler=function(){if(t.videoEl&&!t.allowForward){t.showVideoError=false;i=t.videoEl.src;o=t.videoEl.currentTime;t.videoEl.src="data:video/mp4;base64,YQ=="}};this.iosAResumeHandler=function(){if(t.videoEl&&!t.allowForward){t.videoEl.src=i;window.setTimeout((function(){t.showVideoError=false;t.videoEl.currentTime=o}),1500)}};document.addEventListener("pause",this.iosAppPauseHandler);document.addEventListener("resume",this.iosAResumeHandler)}}};t.prototype.disconnectedCallback=function(){clearTimeout(this.ctrlTimer);clearTimeout(this.warningMsgTimer);clearTimeout(this.touchMoveTimer);if(!this.allowBackgroundForward&&this.isIOS){if(this.isMicroMessager){document.removeEventListener("visibilitychange",this.visibilityChangeHandler)}else{document.removeEventListener("pause",this.iosAppPauseHandler);document.removeEventListener("resume",this.iosAResumeHandler)}}this.videoEl&&(this.videoEl.src="")};t.prototype._getVolumeIconName=function(){if(this.isMute){return p}if(this.playVolume==0){return g}else if(this.playVolume<30){return _}else if(this.playVolume<70){return b}else{return m}};t.prototype.unAllowForward=function(){this.warningMsg=this.unAllowForwardMsg;this.clearWarningMsg()};t.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.videoEl.paused){this.videoEl.play()}this.isPlaying=true;return[2]}))}))};t.prototype.setCtrlShow=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=false}return __generator(this,(function(e){this.showCtrl=t;this._resetDot();this.ctyVideoCtrlChange.emit(t);return[2]}))}))};t.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.videoEl.paused){this.videoEl.pause()}this.isPlaying=false;return[2]}))}))};t.prototype.setVideoCurrentTime=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(o){this.maxPlayProgress=Math.max(this.maxPlayProgress,this.playProgress);i=this.videoEl.duration*this.maxPlayProgress/1e3;if(t>i&&!this.allowForward){this.unAllowForward();return[2]}this.videoEl.currentTime=t;e&&e();return[2]}))}))};t.prototype._clearTouchMoveToast=function(){var t=this;clearTimeout(this.touchMoveTimer);this.touchMoveTimer=window.setTimeout((function(){t.isMoving=false}),2e3)};t.prototype.clearCtrlTimeout=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this.showCtrl){clearTimeout(this.ctrlTimer);this.ctrlTimer=window.setTimeout((function(){t.showCtrl=false;t.touchState.isTouching=false;t._resetDot();t.ctyVideoCtrlChange.emit(false)}),4e3)}return[2]}))}))};t.prototype.setWarningMsg=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.warningMsg=t;this.clearWarningMsg();return[2]}))}))};t.prototype.clearWarningMsg=function(){var t=this;if(this.warningMsg!=""){clearTimeout(this.warningMsgTimer);this.warningMsgTimer=window.setTimeout((function(){t.warningMsg=""}),2e3)}};t.prototype.toggleVideo=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.isLoading){return[2]}if(this.videoEl.paused){this.play()}else{this.pause()}if(t){this.clearCtrlTimeout();t.stopPropagation()}return[2]}))}))};t.prototype.toggleVolume=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:if(!(!this.isIOS&&!this.isMicroMessager&&f.isAvailable))return[3,6];i.label=1;case 1:i.trys.push([1,4,,5]);return[4,f.toggleMute()];case 2:i.sent();t=this;return[4,f.isMuted()];case 3:t.isMute=i.sent();return[3,5];case 4:e=i.sent();if(this.isMute){f.setVolume(this.playVolume)}else{f.setVolume(0)}this.isMute=!this.isMute;return[3,5];case 5:return[3,7];case 6:this.videoEl.muted=!this.videoEl.muted;this.isMute=this.videoEl.muted;i.label=7;case 7:this.clearCtrlTimeout();return[2]}}))}))};t.prototype.setPlayRate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rate=t;this.videoEl.playbackRate=this.rate;this.showPlayRate=false;this.ctyVideoRateChange.emit(t);return[2]}))}))};t.prototype._getPoint=function(t){var e=s(t),i=e.x,o=e.y;try{if(this.deviceIsPORTRAIT){return{x:i,y:o}}return{x:o,y:i}}catch(t){return{x:0,y:0}}};t.prototype._changeProgressByTouch=function(t){if(t===void 0){t=true}if(!this.allowForward&&!this.allowBackward){return}var e=Math.round((this.touchState.currentY-this.touchState.top)/this.touchState.height*1e3);if(!this.allowBackward&&e<this.playProgress){return}if(!this.allowForward&&e>this.maxPlayProgress){this.unAllowForward();return}this.lastControlType="P";this.isMoving=true;if(this.playProgress>e){this.controlIcon="cty-backward"}else if(this.playProgress<e){this.controlIcon="cty-forward"}this.playProgress=e;if(e==0){this.interactiveReset();this.isMoving=false}if(t){this.videoEl.currentTime=this.playProgress/1e3*this.videoEl.duration;this._updateVideoProgress()}else{this.controlLabel=d(this.playProgress/1e3*this.videoEl.duration)}this._clearTouchMoveToast()};t.prototype._updateVideoProgress=function(){var t=this.videoEl.currentTime;var e=this.videoEl.duration;this.playProgress=e>0?Math.round(t/e*1e3):0;this.ctyVideoProgress.emit(this.playProgress/10);this.currentTimeLabel=d(t);this.durationLabel=d(e);if(this.lastControlType=="P"){this.controlLabel=this.currentTimeLabel}};t.prototype._updateBrightness=function(){var t="rgba(0,0,0, "+(100-this.playBrightness)/1.6/100+")";this.videoCtrlEl.style.backgroundColor=t};t.prototype._updateVolume=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:if(!(!this.isIOS&&!this.isMicroMessager&&f.isAvailable))return[3,6];i.label=1;case 1:i.trys.push([1,4,,5]);return[4,f.setVolume(this.playVolume)];case 2:i.sent();t=this;return[4,f.isMuted()];case 3:t.isMute=i.sent();return[3,5];case 4:e=i.sent();return[3,5];case 5:return[3,7];case 6:this.videoEl.volume=this.playVolume/100;i.label=7;case 7:this.videoEl.volume=this.playVolume/100;if(this.playVolume>0&&this.isMute){this.toggleVolume()}return[2]}}))}))};t.prototype._resetDot=function(){this.showDotPanel=false;this.currentMarker={describe:"",breakpoint:0,position:0}};t.prototype.getVideoElement=function(){var t=this;return Promise.resolve().then((function(){return t.videoEl}))};t.prototype.getVideoState=function(){var t=this;return Promise.resolve().then((function(){var e=t,i=e.maxPlayProgress,o=e.isWifi,r=e.isLoading,n=e.playProgress,a=e.isPlaying;return{maxPlayProgress:i,isWifi:o,isLoading:r,playProgress:n,isPlaying:a}}))};t.prototype.interactiveCheck=function(t){var e;if(!this.hasInteractive||this.showInteractiveLayer){return}for(var i=0,o=this.interactiveActions;i<o.length;i++){var r=o[i];if(this.checkActionTriggerCond(r,t,"play")){this.showInteractiveLayer=true;this.interactiving_action=r;r.status.entercount++;for(var n=0,a=r.buttons;n<a.length;n++){var s=a[n];if(s.type=="optbtn"){s.val=s.defaultval}}var c=false;if(((e=r.autoactions)===null||e===void 0?void 0:e.length)>0){for(var d=0,l=r.autoactions;d<l.length;d++){var h=l[d];if(this.calcTriggerCond(this.interactiving_action,h.condtrigger)){this.pause();this.doInteractiveAction(h);c=true;break}}}if(!c&&r.buttons.length>0){this.pause();this.showInteractiveActionUI(r)}break}}};t.prototype.changeInteractiveAction=function(t){if(!this.hasInteractive&&!this.showInteractiveLayer){return}this.clearInteractiveActionUI();this.interactiving_action=t;t.status.entercount++;for(var e=0,i=t.buttons;e<i.length;e++){var o=i[e];if(o.type=="optbtn"){o.val=o.defaultval}}this.showInteractiveActionUI(t)};t.prototype.checkActionTriggerCond=function(t,e,i){var o=t.playtrigger;if(i=="play"&&(e<o.min||e>=o.max)){return false}if(this.calcTriggerCond(t,t.condtrigger)){return true}return false};t.prototype.calcTriggerCond=function(t,e){var i=true;for(var o=0,r=e;o<r.length;o++){var n=r[o];var a=true;var s=null;switch(n.type){case"entercount":s=this.findInteractiveAction(n.actionid,t);if(s!=null){var c=s.status.entercount;a=c>=n.min&&(c<n.max||n.max=="")}break;case"optbtn":s=this.findInteractiveAction(n.actionid,t);if(s!=null){for(var d=0,l=s.buttons;d<l.length;d++){var h=l[d];if(h.type=="optbtn"&&h.id==n.btnid){a=h.val==n.val;break}}}break;case"group":a=this.calcTriggerCond(t,n.subs);break}if(n.op=="or"){i=i||a}else{i=i&&a}}return i};t.prototype.findInteractiveAction=function(t,e){if(t.trim()==""){return e}for(var i=0,o=this.interactiveActions;i<o.length;i++){var r=o[i];if(r.id==t){return r}}return null};t.prototype.interactiveAction=function(t){t.stopPropagation();if(this.interactiving_action==null){return}var e=this.interactiving_action.imgW;var i=this.interactiving_action.imgH;for(var o=0,r=this.interactiving_action.buttons;o<r.length;o++){var n=r[o];var a={x:n.x,y:n.y,width:n.w,height:n.h};if(this.interactiveClickHitCheck(t,a,e,i)){switch(n.type){case"optbtn":n.val=n.val==1?"0":"1";this.refreshInteractiveActionBtnStatus(this.interactiving_action);break;case"link":case"input":this.doInteractiveAction(n);break;case"action":default:for(var s=0,c=n.actions;s<c.length;s++){var d=c[s];if(this.calcTriggerCond(this.interactiving_action,d.condtrigger)){this.doInteractiveAction(d);break}}break}break}}};t.prototype.doInteractiveAction=function(t){var e=this;if(t.type=="action"){this.changeInteractiveAction(this.findInteractiveAction(t.actionid,this.interactiving_action))}else if(t.type=="play"){this.videoEl.currentTime=t.startTime;this.play();this.clearInteractiveActionUI();window.setTimeout((function(){e.interactiving_action=null;e.hideInteractiveActionUI()}),100)}else if(t.type=="link"){if(!t.link){this.play();this.clearInteractiveActionUI();window.setTimeout((function(){e.interactiving_action=null;e.hideInteractiveActionUI()}),100);return}this.ctyVideoIAAction.emit(t)}};t.prototype.interactiveClickHitCheck=function(t,e,i,o){var r=o;var n=i;var a=this.interactiveEl;var s=e.y*r/o;var d=e.x*n/i;var l=e.width*n/i;var h=e.height*r/o;var f=c(t),v=f.x,u=f.y;var y=(v-a.offsetLeft)*n/a.clientWidth;var p=(u-a.offsetTop)*r/a.clientHeight;if(y>=d&&y<=d+l&&p>=s&&p<=s+h){return true}return false};t.prototype.showInteractiveActionUI=function(t){this.interactiveEl.style.display="block";if(t.img!=""){this.interactiveEl.style.backgroundImage="url("+t.img+")"}this.refreshInteractiveActionBtnStatus(t);this.ctyVideoIAEnter.emit()};t.prototype.hideInteractiveActionUI=function(){this.showInteractiveLayer=false;this.clearInteractiveActionUI();this.interactiveEl.style.display="none"};t.prototype.refreshInteractiveActionBtnStatus=function(t){var e=this.interactiveEl;var i="";for(var o=0,r=t.buttons;o<r.length;o++){var n=r[o];if(n.type=="optbtn"){i+=n.htmls[n.val]||""}}e.innerHTML=i};t.prototype.clearInteractiveActionUI=function(){this.interactiveEl.innerHTML=""};t.prototype.interactiveReset=function(){if(!this.hasInteractive){return}this.showInteractiveLayer=false;for(var t=0,e=this.interactiveActions;t<e.length;t++){var i=e[t];i.status.entercount=0;for(var o=0,r=i.buttons;o<r.length;o++){var n=r[o];if(n.type=="optbtn"){n.val=n.defaultval}}}};t.prototype.renderPlayer=function(){var t=this;var e=this.poster||"".concat(y.get("resUrlPrefix",""),"assets/cty_res/img/poster.jpg");return o("div",{class:"cty-video__wrapper","data-tap-disable":"true"},this.player==="video"&&o("video",{ref:function(e){return t.videoEl=e},class:"cty-video__player",poster:e,preload:this.preload,"x5-video-player-type":"h5","x5-video-player-fullscreen":"true",playsinline:true,"webkit-playsinline":true,autoplay:(this.isWifi||this.isMicroMessager||this.trafficAutoplay)&&this.autoplay,onCanPlay:this._doCanplay,onTimeUpdate:this._doTimeupdate,onPlay:this._doPlay,onPause:this._doPause,onEnded:this._doEnded,onPlaying:this._doPlaying,onVolumeChange:this._doChangeVolume,onError:this._doError,onStalled:this._doStalled,onWaiting:this._doWaiting,onSeeked:this._doSeeked,src:this.url,typeof:"video/mp4"}),this.player==="audio"&&o("div",{class:"cty-video__player cty-video__audio-player"},o("audio",{ref:function(e){return t.videoEl=e},class:"cty-video__player-audio",preload:this.preload,autoplay:(this.isWifi||this.isMicroMessager||this.trafficAutoplay)&&this.autoplay,onCanPlay:this._doCanplay,onTimeUpdate:this._doTimeupdate,onEnded:this._doEnded,onPlaying:this._doPlaying,onPlay:this._doPlay,onPause:this._doPause,onVolumeChange:this._doChangeVolume,onError:this._doError,onStalled:this._doStalled},o("source",{src:this.url,type:"audio/mp3"}),o("source",{src:this.url,type:"audio/ogg"})),o("slot",{name:"audio-content"})))};t.prototype.renderControls=function(){var t=this;return o("div",{class:"cty-video__controls",ref:function(e){return t.videoCtrlEl=e}},o("slot",{name:"header"}),this.showCtrl&&this.headerCtrl&&o("ion-grid",{class:"cty-video__header"},o("ion-row",null,o("ion-col",{class:"flex-align-center cty-video__header-back"},o("ion-button",{onClick:this._dismiss},o("cty-icon",{name:x}))),o("ion-col",{size:"6",class:"cty-video__title flex-align-center cty-ellipsis"},this.title),o("ion-col",null,o("slot",{name:"headerCol"})))),o("slot",{name:"footer"}),this.showCtrl&&this.footerCtrl&&o("ion-grid",{class:{"cty-video__footer":true,"safe-area-bottom-border-color":this.direction=="P"&&this.curIsFullscreen}},this.progressPosition=="top"&&o("ion-row",{class:"cty-video__footer-progress__top"},o("ion-range",{mode:"ios",class:"cty-video__footer-range",debounce:300,max:1e3,value:this.playProgress,disabled:true,ticks:false})),o("ion-row",null,o("ion-col",{class:{"flex-align-center cty-video__footer-toggle-play":true,"cty-video__footer-flex":this.progressPosition=="top"}},o("ion-button",{onClick:function(e){t.toggleVideo(e)}},o("cty-icon",{name:this.isPlaying?"cty-pause":"cty-play"})),this.progressPosition=="top"&&o("div",{class:"flex-align-center cty-video__footer-time-label"},this.currentTimeLabel,o("span",null,"/"),this.durationLabel)),this.progressPosition=="center"&&o("ion-col",{class:"cty-video__footer-progress flex-center"},o("ion-range",{mode:"ios",class:"cty-video__footer-range",debounce:300,max:1e3,value:this.playProgress,disabled:true,ticks:false},o("span",{class:"cty-video__time",slot:"start"},this.currentTimeLabel),o("span",{class:"cty-video__time",slot:"end"},this.durationLabel))),this.curIsFullscreen&&o("ion-col",{class:"cty-video__footer-rate flex-align-center"},o("ion-button",{onClick:this._doSetRate},this.rate==1?"倍速":this.rate+"X")),o("ion-col",{class:"cty-video__footer-volume flex-align-center"},o("ion-button",{onClick:function(){return t.toggleVolume()}},o("cty-icon",{name:this._getVolumeIconName()}))),!this.fullscreenOnly&&!this.curIsFullscreen&&this.fullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(true)}},o("cty-icon",{name:this.fullscreenIcon}))),!this.fullscreenOnly&&this.curIsFullscreen&&this.exitFullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(false)}},o("cty-icon",{name:this.exitFullscreenIcon}))),o("slot",{name:"footerCol"}))),(this.allowForward||this.allowBackward)&&this.showCtrl&&this.footerCtrl&&o("ion-grid",{class:{"cty-video__footer cty-video__footer-controls":true,"safe-area-bottom-border-color":this.direction=="P"&&this.curIsFullscreen}},this.progressPosition=="top"&&o("ion-row",{class:"cty-video__footer-progress__top",onClick:function(t){return t.stopPropagation()}},!this.isPC&&o("div",{class:"cty-video__footer-bar",onTouchStart:this._doPrgTouchstart,onTouchMove:this._doPrgTouchmove,onTouchEnd:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})}))),this.isPC&&o("div",{class:"cty-video__footer-bar",onMouseDown:this._doPrgTouchstart,onMouseMove:this._doPrgTouchmove,onMouseUp:this._doPrgTouchend,onMouseLeave:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})})))),o("ion-row",null,o("ion-col",{class:{"flex-align-center cty-video__footer-toggle-play":true,"cty-video__footer-flex":this.progressPosition=="top"}},o("ion-button",{onClick:function(e){t.toggleVideo(e)}},o("cty-icon",{name:this.isPlaying?"cty-pause":"cty-play"})),this.progressPosition=="top"&&o("div",{class:"flex-align-center cty-video__footer-time-label"},this.currentTimeLabel,o("span",null,"/"),this.durationLabel)),this.progressPosition=="center"&&o("ion-col",{class:"cty-video__footer-progress flex-center"},o("span",{class:"cty-video__time"},this.currentTimeLabel),!this.isPC&&o("div",{class:"cty-video__footer-bar",onTouchStart:this._doPrgTouchstart,onTouchMove:this._doPrgTouchmove,onTouchEnd:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})}))),this.isPC&&o("div",{class:"cty-video__footer-bar",onMouseDown:this._doPrgTouchstart,onMouseMove:this._doPrgTouchmove,onMouseUp:this._doPrgTouchend,onMouseLeave:this._doPrgTouchend},this.direction=="L"&&this.curIsFullscreen&&this.markerList.map((function(e){return o("span",{onTouchStart:function(i){return t._doDot(i,e)},class:"cty-video__footer-dot",style:{left:e.position+"%"}})}))),o("span",{class:"cty-video__time"},this.durationLabel)),this.curIsFullscreen&&o("ion-col",{class:"cty-video__footer-rate flex-align-center"},o("ion-button",{onClick:this._doSetRate},this.rate==1?"倍速":this.rate+"X")),o("ion-col",{class:"cty-video__footer-volume flex-align-center"},o("ion-button",{onClick:function(){return t.toggleVolume()}},o("cty-icon",{name:this._getVolumeIconName()}))),!this.fullscreenOnly&&!this.curIsFullscreen&&this.fullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(true)}},o("cty-icon",{name:this.fullscreenIcon}))),!this.fullscreenOnly&&this.curIsFullscreen&&this.exitFullscreenIcon&&o("ion-col",{class:"cty-video__footer-fullscreen flex-align-center"},o("ion-button",{onClick:function(){return t._toggleFullScreen(false)}},o("cty-icon",{name:this.exitFullscreenIcon}))),o("slot",{name:"footerCol"}))),this.isMoving&&o("div",{class:"cty-video__opn-toast flex-center"},o("cty-icon",{name:this.controlIcon}),o("span",null,this.controlLabel)),o("slot",{name:"controls"}),!this.isPC&&this.controls&&o("div",{class:"cty-video__opn-panel",onTouchStart:this._doOpnStart,onTouchMove:this._doOpnMove,onTouchEnd:this._doOpnEnd,onClick:function(t){return t.stopPropagation()}}),this.isPC&&this.controls&&o("div",{class:"cty-video__opn-panel",onMouseDown:this._doOpnStart,onMouseMove:this._doOpnMove,onMouseUp:this._doOpnEnd,onMouseLeave:this._doOpnEnd,onClick:function(t){return t.stopPropagation()}}),this.showCtrl&&this.showDotPanel&&o("div",{ref:function(e){t.dotPanelEl=e},class:{"cty-video__dot-panel flex-center":true,"cty-video__dot-panel-ex":this.progressPosition=="top"},onClick:function(t){return t.stopPropagation()},style:{top:this.dotDotPanelTop,left:this.dotDotPanelLeft,opacity:this.reallyShowDot?"1":"0"}},o("span",{class:"cty-video__dot-label cty-ellipsis2"},this.currentMarker.describe),o("ion-button",{onClick:this._toPoint},o("cty-icon",{name:"cty-play-ex"}),"知识点"),o("span",{class:"cty-video__dot-triangle",style:{"margin-left":this.triangleMargin+"px"}})),o("slot",{name:"ctrl"}))};t.prototype.render=function(){var t=this;return o(r,{key:"bcce9c119dd9742d0c69dd9b5ed45b2ee39e4f91",class:{"cty-video":true,"cty-video__vertical":this.deviceIsPORTRAIT,"cty-video__unfullscreen":!this.curIsFullscreen,"cty-video__large-screen":this.direction=="P"&&this.curIsFullscreen&&(this.isPC||this.isIpad)}},this.renderPlayer(),this.renderControls(),(!this.isLoading||this.isMicroMessager)&&!this.isPlaying&&!this.showInteractiveLayer&&this.showTogglePlay&&o("ion-button",{key:"f55a081110cdc0db15c903ec34b2258e953fafc7",part:"toggle-play",class:"cty-video__toggle-play flex-center",onClick:function(e){t.toggleVideo(e)}},o("cty-icon",{key:"f1ea8cecf7415ea732e59d475256f8033a242d74",name:"cty-play"})),!this.isWifi&&!this.isPlaying&&!this.isLoading&&!this.isMicroMessager&&this.trafficMsg&&o("div",{key:"9167c66f7410c98493227e4dca379bf65740242b",class:"cty-video__toast cty-ellipsis",part:"toast"},this.trafficMsg),this.warningMsg!=""&&o("div",{key:"536ff573d8c9670a531e5af490cbd8bb1ab74be1",class:"cty-video__toast cty-ellipsis",part:"toast"},this.warningMsg),this.showPlayRate&&o("div",{key:"cdf67ac451fd70983f4fee4741d5fe9330161407",class:"cty-video__rate",onClick:function(){return t.showPlayRate=false}},o("div",{key:"cbef52f68b8d3028908da0b69c6c8983564821be",class:"cty-video__rate-mask flex-center-justify-end"},o("div",{key:"8ddaff687d8231d9c8448ef4d5758a64e2751f7d",class:"cty-video__rate-list"},this._rates.map((function(e){return o("button",{onClick:function(){return t.setPlayRate(e)},class:{active:t.rate==e,"cty-video__rate-list-item":true}},o("span",null,e,"X"))}))))),this.hasInteractive&&this.curIsFullscreen&&o("div",{key:"b82904799d30e33e762b352739d67d9a38cdbff0",class:"cty-video__player cty-video__interactive",onClick:function(){},ref:function(e){return t.interactiveEl=e}}))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());z.style=k}}}));
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-12-02T02:20:05",
2
+ "timestamp": "2026-01-06T06:27:01",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.31.0",
@@ -13,7 +13,7 @@ import './animation-Cl-LwdfQ.js';
13
13
  import './index-ZjP4CjeZ.js';
14
14
  import './helpers-skPg8wu0.js';
15
15
 
16
- const cameraPhotoCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-crop-overlay-z-index:999999;--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-backdrop{z-index:var(--cty-camera-photo-crop-overlay-z-index);background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{background:var(--cty-camera-photo-crop-background);width:var(--cty-camera-photo-crop-width);height:var(--cty-camera-photo-crop-height);--cty-crop-image-clip-width:var(--cty-camera-photo-crop-clip-width);--cty-crop-image-clip-height:var(--cty-camera-photo-crop-clip-height);--cty-crop-image-clip-background:var(--cty-camera-photo-crop-clip-background);--cty-crop-image-clip-border:var(--cty-camera-photo-crop-clip-border);--cty-crop-image-buttons-padding:var(--cty-camera-photo-crop-buttons-padding);--cty-crop-image-button-padding:var(--cty-camera-photo-crop-button-padding);--cty-crop-image-button-color:var(--cty-camera-photo-crop-button-color);--cty-crop-image-button-active-color:var(--cty-camera-photo-crop-button-active-color);--cty-crop-image-button-size:var(--cty-camera-photo-crop-button-size);--cty-crop-image-button-line-height:var(--cty-camera-photo-crop-button-line-height);--cty-crop-image-button-weight:var(--cty-camera-photo-crop-overlay-weight)}cty-permission-purpose{--cty-permission-purpose-overlay-background:var(--cty-camera-photo-permission-purpose-overlay-background);--cty-permission-purpose-overlay-height:var(--cty-camera-photo-permission-purpose-overlay-height)}";
16
+ const cameraPhotoCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}p,h1,h2,h3,h4,h5,h6{margin:0;padding:0}.cty-pos-rel{position:relative}.cty-pos-abs{position:absolute}.cty-pos-fix{position:fixed}.cty-pos-sti{position:-webkit-sticky;position:sticky}.cty-pos-cover{position:absolute;top:0;bottom:0;left:0;right:0}.cty-pos-l-t{position:absolute;left:0;top:0}.cty-pos-l-b{position:absolute;left:0;bottom:0}.cty-pos-r-t{position:absolute;right:0;top:0}.cty-pos-r-b{position:absolute;right:0;bottom:0}.cty-pos-100{position:absolute;left:0;top:0;width:100%;height:100%}.cty-pos-w100{position:absolute;left:0;width:100%}.cty-pos-h100{position:absolute;top:0;height:100%}.cty-pos-c{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cty-pos-c-x{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-t{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-x-b{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.cty-pos-c-y{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-l{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cty-pos-c-y-r{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host{--cty-camera-photo-overlay-position:fixed;--cty-camera-photo-overlay-z-index:10;--cty-camera-photo-overlay-background:var(--cty-overlay-color);--cty-camera-photo-overlay-width:100vw;--cty-camera-photo-overlay-height:100vh;--cty-camera-photo-padding:0;--cty-camera-photo-border-radius:0;--cty-camera-photo-title-color:var(--cty-text-color-primary);--cty-camera-photo-title-size:var(--cty-font-size-medium);--cty-camera-photo-title-line-height:36px;--cty-camera-photo-title-weight:500;--cty-camera-photo-title-align:center;--cty-camera-photo-close-top:10px;--cty-camera-photo-close-right:10px;--cty-camera-photo-close-color:var(--cty-text-color-secondary);--cty-camera-photo-close-size:20px;--cty-camera-photo-option-padding-bottom:14px;--cty-camera-photo-option-padding-top:14px;--cty-camera-photo-option-text-align:center;--cty-camera-photo-option-text-color:var(--cty-text-color-primary);--cty-camera-photo-option-text-size:var(--cty-font-size-medium);--cty-camera-photo-option-text-line-height:22px;--cty-camera-photo-cancel-background:var(--cty-color-white);--cty-camera-photo-cancel-padding-top:0;--cty-camera-photo-cancel-padding-bottom:0;--cty-camera-photo-cancel-border:8px solid var(--cty-border-color-extra-light);--cty-camera-photo-cancel-color:var(--cty-text-color-primary);--cty-camera-photo-cancel-min-height:48px;--cty-camera-photo-cancel-size:var(--cty-font-size-medium);--cty-camera-photo-crop-width:100vw;--cty-camera-photo-crop-height:100vh;--cty-camera-photo-crop-background:var(--cty-color-black);--cty-camera-photo-crop-clip-height:100vw;--cty-camera-photo-crop-clip-width:100vw;--cty-camera-photo-crop-clip-background:var(--cty-overlay-color-dark);--cty-camera-photo-crop-clip-border:1px solid #767676;--cty-camera-photo-crop-buttons-padding:12px 0;--cty-camera-photo-crop-button-padding:0 12px;--cty-camera-photo-crop-button-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-active-color:var(--cty-text-color-white);--cty-camera-photo-crop-button-size:var(--cty-font-size-base);--cty-camera-photo-crop-button-line-height:30px;--cty-camera-photo-crop-button-weight:400;--cty-camera-photo-crop-overlay-background:var(--cty-overlay-color);--cty-camera-photo-crop-overlay-z-index:999999;--cty-camera-photo-permission-purpose-overlay-background:transparent;--cty-camera-photo-permission-purpose-overlay-height:auto;--cty-camera-photo-permission-purpose-overlay-z-index:999999}:host(.overlay-hidden){display:none}cty-action-sheet{--cty-action-sheet-overlay-position:var(--cty-camera-photo-overlay-position);--cty-action-sheet-overlay-z-index:var(--cty-camera-photo-overlay-z-index);--cty-action-sheet-overlay-width:var(--cty-camera-photo-overlay-width);--cty-action-sheet-overlay-height:var(--cty-camera-photo-overlay-height);--cty-action-sheet-overlay-background:var(--cty-camera-photo-overlay-background);--cty-action-sheet-padding:var(--cty-camera-photo-padding);--cty-action-sheet-border-radius:var(--cty-camera-photo-border-radius);--cty-action-sheet-title-color:var(--cty-camera-photo-title-color);--cty-action-sheet-title-size:var(--cty-camera-photo-title-size);--cty-action-sheet-title-line-height:var(--cty-camera-photo-title-line-height);--cty-action-sheet-title-weight:var(--cty-camera-photo-title-weight);--cty-action-sheet-title-align:var(--cty-camera-photo-title-align);--cty-action-sheet-close-top:var(--cty-action-sheet-close-top);--cty-action-sheet-close-right:var(--cty-action-sheet-close-right);--cty-action-sheet-close-color:var(--cty-action-sheet-close-color);--cty-action-sheet-close-size:var(--cty-action-sheet-close-size);--cty-action-sheet-option-padding-bottom:var(--cty-camera-photo-option-padding-bottom);--cty-action-sheet-option-padding-top:var(--cty-camera-photo-option-padding-top);--cty-action-sheet-option-text-align:var(--cty-camera-photo-option-text-align);--cty-action-sheet-option-text-color:var(--cty-camera-photo-option-text-color);--cty-action-sheet-option-text-size:var(--cty-camera-photo-option-text-size);--cty-action-sheet-option-text-line-height:var(--cty-camera-photo-option-text-line-height);--cty-action-sheet-cancel-background:var(--cty-camera-photo-cancel-background);--cty-action-sheet-cancel-padding-top:var(--cty-camera-photo-cancel-padding-top);--cty-action-sheet-cancel-padding-bottom:var(--cty-camera-photo-cancel-padding-bottom);--cty-action-sheet-cancel-border:var(--cty-camera-photo-cancel-border);--cty-action-sheet-cancel-color:var(--cty-camera-photo-cancel-color);--cty-action-sheet-cancel-min-height:var(--cty-camera-photo-cancel-min-height);--cty-action-sheet-cancel-size:var(--cty-camera-photo-cancel-size)}cty-backdrop{z-index:var(--cty-camera-photo-crop-overlay-z-index);background:var(--cty-camera-photo-crop-overlay-background)}cty-crop-image{background:var(--cty-camera-photo-crop-background);width:var(--cty-camera-photo-crop-width);height:var(--cty-camera-photo-crop-height);--cty-crop-image-clip-width:var(--cty-camera-photo-crop-clip-width);--cty-crop-image-clip-height:var(--cty-camera-photo-crop-clip-height);--cty-crop-image-clip-background:var(--cty-camera-photo-crop-clip-background);--cty-crop-image-clip-border:var(--cty-camera-photo-crop-clip-border);--cty-crop-image-buttons-padding:var(--cty-camera-photo-crop-buttons-padding);--cty-crop-image-button-padding:var(--cty-camera-photo-crop-button-padding);--cty-crop-image-button-color:var(--cty-camera-photo-crop-button-color);--cty-crop-image-button-active-color:var(--cty-camera-photo-crop-button-active-color);--cty-crop-image-button-size:var(--cty-camera-photo-crop-button-size);--cty-crop-image-button-line-height:var(--cty-camera-photo-crop-button-line-height);--cty-crop-image-button-weight:var(--cty-camera-photo-crop-overlay-weight)}cty-permission-purpose{--cty-permission-purpose-overlay-background:var(--cty-camera-photo-permission-purpose-overlay-background);--cty-permission-purpose-overlay-height:var(--cty-camera-photo-permission-purpose-overlay-height);--cty-permission-purpose-overlay-z-index:var(--cty-camera-photo-permission-purpose-overlay-z-index)}";
17
17
 
18
18
  const CameraPhoto = class {
19
19
  constructor(hostRef) {
@@ -192,7 +192,7 @@ const CameraPhoto = class {
192
192
  this.ctyTap.emit({ index, imageList });
193
193
  }
194
194
  render() {
195
- return (h(Host, { key: '4994ab89e969ab4f135e61d465ce4fcd34739b0b', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'cty-pos-cover': this.overlay }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-action-sheet", { key: 'deef5fb5f31944b226bcb22e0df2bafb685bedbd', class: "cty-camera-photo", animated: false, overlayIndex: 1, backdropDismiss: this.backdropDismiss, title: this.title, closeable: this.closeable, closeIcon: this.closeIcon, cancelText: this.cancelText, options: this.options, onCtyDismiss: () => this.dismiss(), onCtyTap: e => this._buttonClick(e) }), this.showCropImage && (h("cty-backdrop", { key: 'e264d6caf8b866f83f5d1b9bc46bf8ede10f3420', backdropDismiss: false }, h("cty-crop-image", { key: '3d3068238520a825596c106be9bcea7c88d8ea4c', url: this.clipImage, cancelText: this.clipCancelText, confirmText: this.clipCconfirmText, imageWidth: this.clipImageWidth, imageBackground: this.clipImageBg, maxScale: this.clipMaxScale, minScale: this.clipMinScale, suffix: this.clipImageSuffix, quality: this.clipImageQuality, onCtyCancel: () => this._doCropCancel(), onCtyConfirm: (e) => this._doCropConfirm(e) }))), this.showPermissionPurpose && h("cty-permission-purpose", { key: '924373b5916aa0abd717e5c35e041f82b6b73bb0', description: this.permissionDescription })));
195
+ return (h(Host, { key: 'bf664a9c7a1a47f86e1e5efc94edce7b3897ca46', class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'cty-pos-cover': this.overlay }), style: { zIndex: `${20000 + this.overlayIndex}` } }, h("cty-action-sheet", { key: '6baf98701e79eead40a3f20f1deac5178d13563b', class: "cty-camera-photo", animated: false, overlayIndex: 1, backdropDismiss: this.backdropDismiss, title: this.title, closeable: this.closeable, closeIcon: this.closeIcon, cancelText: this.cancelText, options: this.options, onCtyDismiss: () => this.dismiss(), onCtyTap: e => this._buttonClick(e) }), this.showCropImage && (h("cty-backdrop", { key: '81456ac1e2f369d2d0564d7933776f26ba6f6e0d', backdropDismiss: false }, h("cty-crop-image", { key: 'e742d3caae19b9ee3c43a47c200a6768efb125ef', url: this.clipImage, cancelText: this.clipCancelText, confirmText: this.clipCconfirmText, imageWidth: this.clipImageWidth, imageBackground: this.clipImageBg, maxScale: this.clipMaxScale, minScale: this.clipMinScale, suffix: this.clipImageSuffix, quality: this.clipImageQuality, onCtyCancel: () => this._doCropCancel(), onCtyConfirm: (e) => this._doCropConfirm(e) }))), this.showPermissionPurpose && h("cty-permission-purpose", { key: '67c53ea351b7ec13edf5a47ef4aab5b28b275b3d', description: this.permissionDescription })));
196
196
  }
197
197
  get el() { return getElement(this); }
198
198
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-DBsZD0Dk.js';
2
- import { r as statusBar, s as secondsToVehicle } from './status-bar-DhaoWhCJ.js';
2
+ import { r as statusBar, s as secondsToVehicle } from './status-bar-KyPyjcXz.js';
3
3
  import { v as videoCapture } from './video-capture-CDcxCD7j.js';
4
4
  import { o as closeOutline, q as arrowUndoCircle } from './index-CvHW-guK.js';
5
5
  import './config-iD8sj4Mi.js';