cty-mui-core 1.0.7 → 1.0.9

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 (153) hide show
  1. package/components/cty-camera-photo.js +19 -6
  2. package/components/cty-media-capture.js +3 -2
  3. package/components/cty-record.js +7 -3
  4. package/components/cty-share-sheet.js +18 -7
  5. package/components/cty-tour.js +4 -4
  6. package/components/cty-video.js +12 -10
  7. package/components/device-info.js +3 -2
  8. package/components/index.js +85 -34
  9. package/components/network.js +3 -2
  10. package/components/status-bar.js +3 -2
  11. package/components/swipe.js +24 -14
  12. package/components/wechat.js +3 -2
  13. package/dist/cjs/cty-audio.cjs.entry.js +1 -1
  14. package/dist/cjs/cty-camera-photo.cjs.entry.js +22 -9
  15. package/dist/cjs/cty-canvas-video.cjs.entry.js +2 -2
  16. package/dist/cjs/cty-keyboard.cjs.entry.js +2 -2
  17. package/dist/cjs/cty-media-capture.cjs.entry.js +5 -4
  18. package/dist/cjs/cty-record.cjs.entry.js +9 -5
  19. package/dist/cjs/cty-share-sheet.cjs.entry.js +22 -11
  20. package/dist/cjs/cty-swipe_2.cjs.entry.js +24 -14
  21. package/dist/cjs/cty-tour.cjs.entry.js +4 -4
  22. package/dist/cjs/cty-video.cjs.entry.js +16 -14
  23. package/dist/cjs/{device-info-5b724fc2.js → device-info-3e14d4d0.js} +1 -1
  24. package/dist/cjs/{device-info-17184306.js → device-info-f9cdf3bc.js} +3 -2
  25. package/dist/cjs/index.cjs.js +87 -36
  26. package/dist/cjs/{network-8e98924e.js → network-9537b7cb.js} +3 -2
  27. package/dist/cjs/{status-bar-3eeb8fa8.js → status-bar-08f49272.js} +3 -2
  28. package/dist/cjs/{utils-f9260515.js → utils-b1c9f7ca.js} +1 -1
  29. package/dist/cjs/{wechat-be3842f5.js → wechat-065952a7.js} +3 -2
  30. package/dist/collection/components/swipe/swipe.js +24 -14
  31. package/dist/collection/components/tour/tour.js +4 -4
  32. package/dist/collection/components/video/video.css +2 -2
  33. package/dist/collection/components/video/video.js +5 -5
  34. package/dist/collection/utils/native/audio-recorder.js +7 -3
  35. package/dist/collection/utils/native/image-picker.js +19 -6
  36. package/dist/collection/utils/native/media-downloader.js +15 -7
  37. package/dist/collection/utils/native/network.js +3 -2
  38. package/dist/collection/utils/native/payment.js +17 -5
  39. package/dist/collection/utils/native/screen-orientation.js +3 -2
  40. package/dist/collection/utils/native/share.js +15 -5
  41. package/dist/collection/utils/native/status-bar.js +3 -2
  42. package/dist/collection/utils/native/video-capture.js +3 -2
  43. package/dist/collection/utils/native/volume-control.js +3 -2
  44. package/dist/collection/utils/native/wechat.js +3 -2
  45. package/dist/cty-mui/cty-mui.esm.js +1 -1
  46. package/dist/cty-mui/index.esm.js +1 -1
  47. package/dist/cty-mui/p-01fee189.entry.js +1 -0
  48. package/dist/cty-mui/p-07749e29.system.entry.js +1 -0
  49. package/dist/cty-mui/p-14b7c1b2.entry.js +1 -0
  50. package/dist/cty-mui/p-16c44e92.system.js +1 -1
  51. package/dist/cty-mui/{p-382bd91f.system.entry.js → p-2154fbbb.system.entry.js} +1 -1
  52. package/dist/cty-mui/p-3451eb59.js +1 -0
  53. package/dist/cty-mui/{p-79a54895.system.entry.js → p-3aa1e1bf.system.entry.js} +1 -1
  54. package/dist/cty-mui/p-43fb0d35.js +1 -0
  55. package/dist/cty-mui/p-45383258.system.js +1 -0
  56. package/dist/cty-mui/p-4dd4fb87.system.entry.js +1 -0
  57. package/dist/cty-mui/{p-27274c5c.system.entry.js → p-510facf9.system.entry.js} +1 -1
  58. package/dist/cty-mui/p-56b13a21.system.entry.js +1 -0
  59. package/dist/cty-mui/p-5ec1b7fd.entry.js +1 -0
  60. package/dist/cty-mui/p-63549372.system.js +1 -0
  61. package/dist/cty-mui/{p-939f5021.system.js → p-6d354b5a.system.js} +1 -1
  62. package/dist/cty-mui/p-81927c8c.js +1 -0
  63. package/dist/cty-mui/{p-4ea3cbd0.entry.js → p-90df5403.entry.js} +1 -1
  64. package/dist/cty-mui/p-90e32da6.entry.js +1 -0
  65. package/dist/cty-mui/p-98e9050b.system.js +1 -0
  66. package/dist/cty-mui/p-ade2b7cd.js +1 -0
  67. package/dist/cty-mui/p-b055056f.system.js +1 -0
  68. package/dist/cty-mui/{p-f87f3232.js → p-b5f36bea.js} +1 -1
  69. package/dist/cty-mui/{p-2ac4ea75.system.js → p-b60146a9.system.js} +1 -1
  70. package/dist/cty-mui/{p-28560f4a.entry.js → p-c0e40487.entry.js} +1 -1
  71. package/dist/cty-mui/{p-637935a6.entry.js → p-c2a3e4a4.entry.js} +1 -1
  72. package/dist/cty-mui/{p-05f84baf.system.entry.js → p-c94668b2.system.entry.js} +1 -1
  73. package/dist/cty-mui/p-cae090ba.system.entry.js +1 -0
  74. package/dist/cty-mui/{p-1c5d46a4.js → p-cb8fc9ba.js} +1 -1
  75. package/dist/cty-mui/p-d4ba1302.entry.js +1 -0
  76. package/dist/cty-mui/p-e37bf879.system.entry.js +1 -0
  77. package/dist/cty-mui/{p-21213462.system.js → p-e6325578.system.js} +1 -1
  78. package/dist/cty-mui/p-e90f14c1.system.entry.js +1 -0
  79. package/dist/cty-mui/p-ebff912a.entry.js +1 -0
  80. package/dist/cty-mui/p-eca2df91.entry.js +1 -0
  81. package/dist/docs.json +2 -2
  82. package/dist/esm/cty-audio.entry.js +1 -1
  83. package/dist/esm/cty-camera-photo.entry.js +22 -9
  84. package/dist/esm/cty-canvas-video.entry.js +2 -2
  85. package/dist/esm/cty-keyboard.entry.js +2 -2
  86. package/dist/esm/cty-media-capture.entry.js +5 -4
  87. package/dist/esm/cty-record.entry.js +9 -5
  88. package/dist/esm/cty-share-sheet.entry.js +22 -11
  89. package/dist/esm/cty-swipe_2.entry.js +24 -14
  90. package/dist/esm/cty-tour.entry.js +4 -4
  91. package/dist/esm/cty-video.entry.js +16 -14
  92. package/dist/esm/{device-info-9597a43d.js → device-info-08f5f1d7.js} +3 -2
  93. package/dist/esm/{device-info-ba83a042.js → device-info-d5c755d5.js} +1 -1
  94. package/dist/esm/index.js +89 -38
  95. package/dist/esm/{network-c7cc92fe.js → network-b9502e8d.js} +3 -2
  96. package/dist/esm/{status-bar-cc8a58c8.js → status-bar-8366d4e8.js} +3 -2
  97. package/dist/esm/{utils-1384e2b9.js → utils-231d5d36.js} +1 -1
  98. package/dist/esm/{wechat-6bd7f03c.js → wechat-07a8849a.js} +3 -2
  99. package/dist/esm-es5/cty-audio.entry.js +1 -1
  100. package/dist/esm-es5/cty-camera-photo.entry.js +1 -1
  101. package/dist/esm-es5/cty-canvas-video.entry.js +1 -1
  102. package/dist/esm-es5/cty-keyboard.entry.js +1 -1
  103. package/dist/esm-es5/cty-media-capture.entry.js +1 -1
  104. package/dist/esm-es5/cty-record.entry.js +1 -1
  105. package/dist/esm-es5/cty-share-sheet.entry.js +1 -1
  106. package/dist/esm-es5/cty-swipe_2.entry.js +1 -1
  107. package/dist/esm-es5/cty-tour.entry.js +1 -1
  108. package/dist/esm-es5/cty-video.entry.js +1 -1
  109. package/dist/esm-es5/device-info-08f5f1d7.js +1 -0
  110. package/dist/esm-es5/{device-info-ba83a042.js → device-info-d5c755d5.js} +1 -1
  111. package/dist/esm-es5/index.js +1 -1
  112. package/dist/esm-es5/network-b9502e8d.js +1 -0
  113. package/dist/esm-es5/status-bar-8366d4e8.js +1 -0
  114. package/dist/esm-es5/{utils-1384e2b9.js → utils-231d5d36.js} +1 -1
  115. package/dist/esm-es5/wechat-07a8849a.js +1 -0
  116. package/dist/types/components/video/video-interface.d.ts +1 -1
  117. package/dist/types/utils/native/audio-recorder.d.ts +2 -2
  118. package/dist/types/utils/native/image-picker.d.ts +5 -5
  119. package/dist/types/utils/native/media-downloader.d.ts +3 -3
  120. package/dist/types/utils/native/network.d.ts +1 -1
  121. package/dist/types/utils/native/payment.d.ts +4 -4
  122. package/dist/types/utils/native/screen-orientation.d.ts +1 -1
  123. package/dist/types/utils/native/share.d.ts +4 -4
  124. package/dist/types/utils/native/status-bar.d.ts +1 -1
  125. package/dist/types/utils/native/video-capture.d.ts +1 -1
  126. package/dist/types/utils/native/volume-control.d.ts +1 -1
  127. package/dist/types/utils/native/wechat.d.ts +1 -1
  128. package/package.json +1 -1
  129. package/dist/cty-mui/p-07c40b0a.entry.js +0 -1
  130. package/dist/cty-mui/p-21d763dc.entry.js +0 -1
  131. package/dist/cty-mui/p-23fb18fe.js +0 -1
  132. package/dist/cty-mui/p-3bbb5110.entry.js +0 -1
  133. package/dist/cty-mui/p-450a7aea.system.entry.js +0 -1
  134. package/dist/cty-mui/p-5d02b8a0.system.js +0 -1
  135. package/dist/cty-mui/p-6acde970.system.js +0 -1
  136. package/dist/cty-mui/p-6c2c7570.system.js +0 -1
  137. package/dist/cty-mui/p-7314de9e.system.js +0 -1
  138. package/dist/cty-mui/p-80f612bc.system.entry.js +0 -1
  139. package/dist/cty-mui/p-92749096.js +0 -1
  140. package/dist/cty-mui/p-93f1e37a.system.entry.js +0 -1
  141. package/dist/cty-mui/p-94b2d08c.entry.js +0 -1
  142. package/dist/cty-mui/p-b34d9a2f.system.entry.js +0 -1
  143. package/dist/cty-mui/p-c3ff249d.system.entry.js +0 -1
  144. package/dist/cty-mui/p-c4f96fc0.entry.js +0 -1
  145. package/dist/cty-mui/p-c8d7aba5.entry.js +0 -1
  146. package/dist/cty-mui/p-ca19acfb.entry.js +0 -1
  147. package/dist/cty-mui/p-de01d9bf.js +0 -1
  148. package/dist/cty-mui/p-de705c6b.system.entry.js +0 -1
  149. package/dist/cty-mui/p-ec34f0cc.js +0 -1
  150. package/dist/esm-es5/device-info-9597a43d.js +0 -1
  151. package/dist/esm-es5/network-c7cc92fe.js +0 -1
  152. package/dist/esm-es5/status-bar-cc8a58c8.js +0 -1
  153. package/dist/esm-es5/wechat-6bd7f03c.js +0 -1
@@ -23,14 +23,27 @@ var ImagePickerType;
23
23
  ImagePickerType[ImagePickerType["IMAGEPICKER"] = 1] = "IMAGEPICKER";
24
24
  })(ImagePickerType || (ImagePickerType = {}));
25
25
  class CTYImagePicker {
26
- constructor() {
26
+ get _isMicroMessenger() {
27
+ return deviceInfo.isMicroMessager;
28
+ }
29
+ ;
30
+ get _cameraPlugin() {
27
31
  var _a;
28
- this._isMicroMessenger = deviceInfo.isMicroMessager;
29
- this._cameraPlugin = (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.camera;
30
- this._imagePickerPlugin = window === null || window === void 0 ? void 0 : window.imagePicker;
31
- this._documentPickerPlugin = window === null || window === void 0 ? void 0 : window.CDVDocumentPicker;
32
- this._wxSDK = window === null || window === void 0 ? void 0 : window.wx;
32
+ return (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.camera;
33
+ }
34
+ ;
35
+ get _imagePickerPlugin() {
36
+ return window === null || window === void 0 ? void 0 : window.imagePicker;
37
+ }
38
+ ;
39
+ get _documentPickerPlugin() {
40
+ return window === null || window === void 0 ? void 0 : window.CDVDocumentPicker;
41
+ }
42
+ ;
43
+ get _wxSDK() {
44
+ return window === null || window === void 0 ? void 0 : window.wx;
33
45
  }
46
+ ;
34
47
  get isCameraAvailable() {
35
48
  return !!this._cameraPlugin;
36
49
  }
@@ -7,9 +7,10 @@ import { d as defineCustomElement$3 } from './icon.js';
7
7
  import { d as defineCustomElement$2 } from './icon2.js';
8
8
 
9
9
  class CTYVideoCapture {
10
- constructor() {
11
- this._videoCapturePlugin = window.CtyVideoCaptureCordova;
10
+ get _videoCapturePlugin() {
11
+ return window.CtyVideoCaptureCordova;
12
12
  }
13
+ ;
13
14
  get isVideoCaptureAvailable() {
14
15
  return !!this._videoCapturePlugin;
15
16
  }
@@ -18,10 +18,14 @@ var UploadProgressTip;
18
18
  UploadProgressTip[UploadProgressTip["SHOW"] = 1] = "SHOW";
19
19
  })(UploadProgressTip || (UploadProgressTip = {}));
20
20
  class CTYAudioRecorder {
21
- constructor() {
22
- this._audioRecorderPlugin = window === null || window === void 0 ? void 0 : window.AudioRecorder;
23
- this._wxSDK = window === null || window === void 0 ? void 0 : window.wx;
21
+ get _audioRecorderPlugin() {
22
+ return window === null || window === void 0 ? void 0 : window.AudioRecorder;
23
+ }
24
+ ;
25
+ get _wxSDK() {
26
+ return window === null || window === void 0 ? void 0 : window.wx;
24
27
  }
28
+ ;
25
29
  get isAudioRecorderAvailable() {
26
30
  return !!this._audioRecorderPlugin;
27
31
  }
@@ -45,9 +45,10 @@ var WechatMiniProgramType;
45
45
  WechatMiniProgramType[WechatMiniProgramType["PREVIEW"] = 2] = "PREVIEW"; // 体验版
46
46
  })(WechatMiniProgramType || (WechatMiniProgramType = {}));
47
47
  class CTYWechat {
48
- constructor() {
49
- this._wechatPlugin = window === null || window === void 0 ? void 0 : window.Wechat;
48
+ get _wechatPlugin() {
49
+ return window === null || window === void 0 ? void 0 : window.Wechat;
50
50
  }
51
+ ;
51
52
  get isWechatAvailable() {
52
53
  return !!this._wechatPlugin;
53
54
  }
@@ -133,13 +134,23 @@ class CTYWechat {
133
134
  const wechat = new CTYWechat();
134
135
 
135
136
  class CTYShare {
136
- constructor() {
137
+ get _socialSharingPlugin() {
137
138
  var _a;
138
- this._socialSharingPlugin = (_a = window === null || window === void 0 ? void 0 : window.plugins) === null || _a === void 0 ? void 0 : _a.socialsharing;
139
- this._weiboSDKPlugin = window === null || window === void 0 ? void 0 : window.WeiboSDK;
140
- this._wecomPlugin = window === null || window === void 0 ? void 0 : window.WecomPlugin;
141
- this._systemSharePlugin = window === null || window === void 0 ? void 0 : window.SystemSharePlugin;
139
+ return (_a = window === null || window === void 0 ? void 0 : window.plugins) === null || _a === void 0 ? void 0 : _a.socialsharing;
140
+ }
141
+ ;
142
+ get _weiboSDKPlugin() {
143
+ return window === null || window === void 0 ? void 0 : window.WeiboSDK;
144
+ }
145
+ ;
146
+ get _wecomPlugin() {
147
+ return window === null || window === void 0 ? void 0 : window.WecomPlugin;
148
+ }
149
+ ;
150
+ get _systemSharePlugin() {
151
+ return window === null || window === void 0 ? void 0 : window.SystemSharePlugin;
142
152
  }
153
+ ;
143
154
  get isSocialSharingAvailable() {
144
155
  return !!this._socialSharingPlugin;
145
156
  }
@@ -124,10 +124,10 @@ const Tour = /*@__PURE__*/ proxyCustomElement(class Tour extends HTMLElement {
124
124
  const popoverClass = (Array.isArray(cssClass) ? [...cssClass] : [cssClass]).concat(['cty-tour__popover']).join(' ');
125
125
  const tourCloseable = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.closeable) || closeable;
126
126
  const enableFooter = Array.isArray(steps) && steps.length > 1;
127
- return (h(Host, { key: '9d8661156fcf15df5c22b0d34961b534ae13d02c', class: "cty-tour overlay-hidden" }, display && h("cty-overlay", { key: 'f0d5d6decf59ed6faae5cf49e4a59cff08b3c5f6', root: '', backdropDismiss: false }, enableAopover && h("ion-popover", Object.assign({ key: '56fdb3d56abcd841b0ed20b9c49105a30e9d573a', mode: "ios", ref: (el) => (this.popoverEl = el), arrow: tourArrow, animated: false, backdropDismiss: backdropDismiss, alignment: alignment, side: side, keepContentsMounted: true, class: popoverClass, onIonPopoverWillDismiss: (e) => this.popoverWillDismiss(e) }, popoverAttrs, { showBackdrop: false }), h("div", { key: '7bffd7d92ec0df3cee220c54951a967bcdde149f', class: "cty-tour__clone-wrapper flex-center", ref: (el) => this.triggerCloneParentEl = el }), h("div", { key: '0b19e46e77e78416252b16f3820eecbafeefa4a2', class: { 'cty-tour__content': true, 'cty-tour__content-closeable': tourCloseable } }, h("slot", { key: '66a04550626abe4dbd325563835e5503f00f71c0', name: "header" }), tourCloseable && h("slot", { key: '84cc72b709dff789cce8346802c3a02f749306dd', name: "closeable" }, h("button", { key: '46c58097c56ad503f8be8ed97c2b86781e388d91', class: "cty-button-native cty-tour__closeable" }, h("cty-icon", { key: 'bd1619a0a94bc2f0e1c572258f9370dc2d21c435', name: "cty-close2", onClick: () => this.dismiss('closeable') }))), currentStep.content && h("slot", { key: 'b84399ad26a4946a40217dba009f67b8bb9fadc9', name: "content" }, h("p", { key: '72fa9c1d9394c2f87637497bebb896c1a5068d4c', class: "cty-tour__content-inner" }, currentStep.content)), enableFooter && h("div", { key: '47627655099918d3e521bc4edc32cf2f81038617', class: "cty-tour__content-footer flex-center-between" }, h("slot", { key: '06902d076fc51bc5dfed6bae2f53eafc2e1f387b', name: "indicator" }, h("div", { key: '799df380ea66ee0dbd4ce8b3d2c49716e4b5130d', class: "cty-tour__content-indicator" }, current + 1, "/", steps.length)), h("slot", { key: '72a3d0b4a8cda0c79f5e1ac4bffa4a3e33c757e6', name: "buttons" }, h("div", { key: 'a40098fc03c5f081c5e89d9f6ca048dca3c63728', class: "cty-tour__content-buttons flex" }, this.showPrev && current > 0 &&
128
- h("button", { key: '1d71e841bb9a33ceb28249ce4804d716832be8f3', class: "cty-button-native cty-tour__content-prev", onClick: () => this.prevStep() }, this.prevText), current < steps.length - 1 &&
129
- h("button", { key: '805f0d08eddb489428525190b3f63a1c046f2d0c', class: "cty-button-native cty-tour__content-next", onClick: () => this.nextStep() }, this.nextText), current === steps.length - 1 &&
130
- h("button", { key: 'c6d507eaf2b741896ece007b968f562475afa39e', class: "cty-button-native cty-tour__content-complete", onClick: () => this.complete() }, this.completeText)))), h("slot", { key: '445a3ca1493082677c00ffffa809e0155cafcccc', name: "footer" }))))));
127
+ return (h(Host, { key: '9d8661156fcf15df5c22b0d34961b534ae13d02c', class: "cty-tour overlay-hidden" }, display && h("cty-overlay", { key: 'f0d5d6decf59ed6faae5cf49e4a59cff08b3c5f6', root: '', backdropDismiss: false }, enableAopover && h("ion-popover", Object.assign({ key: 'a1138f0ab42d6b2cf93330c7c41fa5534041f64d', mode: "ios", ref: (el) => (this.popoverEl = el), arrow: tourArrow, animated: false, backdropDismiss: backdropDismiss, alignment: alignment, side: side, keepContentsMounted: true, class: popoverClass, onIonPopoverWillDismiss: (e) => this.popoverWillDismiss(e) }, popoverAttrs, { showBackdrop: false }), h("div", { key: 'fda1239d5bdb194304057869c7202fa973036829', class: "cty-tour__clone-wrapper flex-center", ref: (el) => this.triggerCloneParentEl = el }), h("div", { key: '3c5969c3aca13c398a0a461d20ae558159c618ff', class: { 'cty-tour__content': true, 'cty-tour__content-closeable': tourCloseable } }, h("slot", { key: '597428c38608ca19cce1b7e5b4fe28fb46b15dc9', name: "header" }), tourCloseable && h("slot", { key: 'd60f1e1380d17c3db200ed8d0ceb2ab11b3dd475', name: "closeable" }, h("button", { key: 'f2f614a0d8fa8000b694bfebf43d5167895e66a2', class: "cty-button-native cty-tour__closeable" }, h("cty-icon", { key: '2622b99a0a750f50de43b25cb812217be33b139c', name: "cty-close2", onClick: () => this.dismiss('closeable') }))), currentStep.content && h("slot", { key: '5622d447db172f0866d129210a05ea54ce07833e', name: "content" }, h("p", { key: '72c033247bd4a9b8c589f141f1d992f123074016', class: "cty-tour__content-inner" }, currentStep.content)), enableFooter && h("div", { key: '2dfbf149f1beaa3ae463bc388c487532dd3e02c7', class: "cty-tour__content-footer flex-center-between" }, h("slot", { key: '397045e0b07245485ce619197b544915c18d1705', name: "indicator" }, h("div", { key: '155eed8cfe0f3997c23a4093e9d70d983481221e', class: "cty-tour__content-indicator" }, current + 1, "/", steps.length)), h("slot", { key: '3d018423014eb291d6a5213d194102d1055eadfe', name: "buttons" }, h("div", { key: '0028d42802dd89e1bc879a7a5a6013cdd0ed76b5', class: "cty-tour__content-buttons flex" }, this.showPrev && current > 0 &&
128
+ h("button", { key: '66e55cf39b3190c8e0b71c29b3ffeb4ac17d6b35', class: "cty-button-native cty-tour__content-prev", onClick: () => this.prevStep() }, this.prevText), current < steps.length - 1 &&
129
+ h("button", { key: '93f853c11d8db9dac4806f59aa6de991273f13a2', class: "cty-button-native cty-tour__content-next", onClick: () => this.nextStep() }, this.nextText), current === steps.length - 1 &&
130
+ h("button", { key: 'c5f36a4232076e8cac57ea1f61eb72776219cd6f', class: "cty-button-native cty-tour__content-complete", onClick: () => this.complete() }, this.completeText)))), h("slot", { key: '658afef0513543d64a4b628caaea096e553b81c0', name: "footer" }))))));
131
131
  }
132
132
  get el() { return this; }
133
133
  static get watchers() { return {
@@ -18,10 +18,11 @@ import { d as defineCustomElement$3 } from './ripple-effect.js';
18
18
  import { d as defineCustomElement$2 } from './row.js';
19
19
 
20
20
  class CTYScreenOrientation {
21
- constructor() {
21
+ get _orientationPlugin() {
22
22
  var _a;
23
- this._orientationPlugin = (_a = window === null || window === void 0 ? void 0 : window.screen) === null || _a === void 0 ? void 0 : _a.orientation;
23
+ return (_a = window === null || window === void 0 ? void 0 : window.screen) === null || _a === void 0 ? void 0 : _a.orientation;
24
24
  }
25
+ ;
25
26
  async lock(orientation) {
26
27
  try {
27
28
  this._orientationPlugin.lock(orientation);
@@ -48,10 +49,11 @@ class CTYScreenOrientation {
48
49
  const screenOrientation = new CTYScreenOrientation();
49
50
 
50
51
  class CTYVolumeControl {
51
- constructor() {
52
+ get _volumeControlPlugin() {
52
53
  var _a, _b;
53
- this._volumeControlPlugin = (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.VolumeControl;
54
+ return (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.VolumeControl;
54
55
  }
56
+ ;
55
57
  get isAvailable() {
56
58
  return !!this._volumeControlPlugin;
57
59
  }
@@ -118,7 +120,7 @@ class CTYVolumeControl {
118
120
  }
119
121
  const volumeControl = new CTYVolumeControl();
120
122
 
121
- const videoCss = "*{-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 rgba(238, 238, 238, 0.8);--cty-video-play-icon-size:40px;--cty-video-unfullscreen-play-size:40px;--cty-video-unfullscreen-play-border:4px solid rgba(238, 238, 238, 0.8);--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:rgba(255,255,255,0.5);--cty-video-range-background-active:var(--cty-color-primary);--cty-video-loading-background-color:rgba(0,0,0,0.9);--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;display:block;position:relative;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{margin:0;min-height:auto}.cty-video__wrapper{position:relative;width:100%;height:100%}.cty-video__player{display:none;position:absolute;top:0;left:0;margin:0;width:var(--cty-video-height);height:var(--cty-video-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);-webkit-transform:rotate(90deg) translate(0, -100%);transform:rotate(90deg);-o-object-fit:var(--cty-video-fit);object-fit:var(--cty-video-fit)}.cty-video__controls{position:absolute;top:0;left:0;width:100%;height:100%}.cty-video__header{position:absolute;z-index:6;background:var(--cty-video-header-background);top:0;left:0;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-left:var(--cty-video-header-padding-start);padding-right:var(--cty-video-header-padding-end);padding-top:var(--cty-video-header-padding-top);padding-bottom:var(--cty-video-header-padding-bottom);-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);-webkit-box-sizing:content-box;box-sizing:content-box}.cty-video__header-back{display:var(--cty-video-header-back-display);width:auto;-ms-flex-positive:0;flex-grow:0;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);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;margin-left:var(--cty-video-header-back-offset-start);margin-right:var(--cty-video-header-back-offset-end)}.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);color:var(--cty-video-header-title-color);line-height:var(--cty-video-header-height)}.cty-video__footer{position:absolute;top:0;left:0;z-index:6;width:var(--cty-video-height);height:var(--cty-video-footer-height);background:var(--cty-video-footer-background);padding-left:var(--cty-video-footer-padding-start);padding-right:var(--cty-video-footer-padding-end);transform:rotate(90deg);-webkit-transform:rotate(90deg);transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2);-webkit-transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2);-webkit-box-sizing:border-box;box-sizing:border-box}.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{width:auto;-ms-flex-positive:0;flex-grow:0;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;color:var(--cty-color-white);font-size:var(--cty-video-footer-progress-size);letter-spacing:0.2px}.cty-video__footer-time-label span{margin:0 1px;-webkit-transform:translateY(-1px);transform:translateY(-1px)}.cty-video__footer-progress{overflow:auto;-ms-flex:1;flex:1}.cty-video__time{color:var(--cty-color-white);font-size:var(--cty-video-footer-progress-size)}.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;--knob-background:var(--cty-video-range-knob-background);--bar-background:var(--cty-video-range-background);--bar-background-active:var(--cty-video-range-background-active);color:var(--cty-video-bar-color);font-size:var(--cty-font-size-medium);opacity:1}.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);background:var(--cty-video-dot-active-color);content:\"\";border-radius:var(--cty-border-radius-circle)}.cty-video__footer-rate{width:auto;-ms-flex-positive:0;flex-grow:0;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;border-radius:var(--cty-border-radius-base);border:1px solid var(--cty-color-white);font-size:var(--cty-font-size-extra-small);font-weight:bold;white-space:nowrap}.cty-video__footer-volume{width:auto;-ms-flex-positive:0;flex-grow:0;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{width:auto;-ms-flex-positive:0;flex-grow:0;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;left:50%;top:50%;z-index:8;font-weight:bold;width:var(--cty-video-play-size);height:var(--cty-video-play-size);margin:calc(var(--cty-video-play-size) / -2) 0px 0px calc(var(--cty-video-play-size) / -2);border-radius:var(--cty-border-radius-circle);border:var(--cty-video-play-border);text-align:center;--background:transparent;--padding-top:0;--padding-end:0;--padding-start:0;--padding-bottom:0}.cty-video__toggle-play cty-icon{color:rgba(238, 238, 238, 0.9);font-size:var(--cty-video-play-icon-size);text-align:center;transform:rotate(90deg);-webkit-transform:rotate(90deg)}.cty-video__opn-toast{position:absolute;z-index:4;top:50%;left:50%;width:var(--cty-video-toast-width);max-width:150px;height:var(--cty-video-toast-height);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);font-size:var(--cty-font-size-medium);font-weight:bold;color:var(--cty-color-white)}.cty-video__opn-toast cty-icon{margin-right:10px;font-size:var(--cty-video-opn-toast-icon-size)}.cty-video__opn-panel{position:absolute;z-index:5;top:50%;left:50%;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;background:var(--cty-overlay-color);padding:5px 11px 5px 8px;margin-left:calc(var(--cty-video-footer-height) + 13px + 46px);border-radius:var(--cty-border-radius-base);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.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;height:100%;width:1px;background-color:rgba(255, 255, 255, 0.3);content:\"\";-webkit-transform:scaleX(1.5);transform:scaleX(1.5)}.cty-video__dot-panel ion-button{height:36px;--padding-start:0;--padding-end:0;--background:transparent;--border-radius:0;--color:var(--cty-video-dot-active-color);font-weight:bold;font-size:var(--cty-font-size-small)}.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-width:9px 8px;border-style:solid;border-color:transparent;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;font-weight:bold;min-width:300px;max-width:96vw;padding:0 15px;margin:0px 0px 0px -60px;background:var(--cty-overlay-color);border-radius:var(--cty-border-radius-large);color:rgba(238, 238, 238, 0.9);font-size:var(--cty-font-size-extra-small);line-height:30px;text-align:center;pointer-events:none;transform:rotate(90deg);-webkit-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-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.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;background-color:transparent;outline:none;border:none;color:var(--cty-color-white);font-size:var(--cty-font-size-base);text-align:center}.cty-video__rate-list-item.active{color:var(--cty-video-rate-active-color)}.cty-video__interactive{display:none;z-index:101;background-color:transparent;background-size:100% 100%;background-repeat:no-repeat}: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{left:50%;top:80%;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{width:var(--cty-video-width);-webkit-transform:rotate(0);transform:rotate(0);top:auto;bottom: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{margin-left:0;-webkit-transform:rotate(0deg);transform:rotate(0deg);bottom:calc(var(--footer-height) + 13px)}:host(.cty-video__vertical) .cty-video__dot-panel-ex{bottom:var(--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) 0px 0px 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{width:auto;max-width:100%;height:100%;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.cty-video__audio-player{display:block}.cty-video__player-audio{position:absolute;visibility:hidden;display:none}";
123
+ const videoCss = "*{-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 rgba(238, 238, 238, 0.8);--cty-video-play-icon-size:40px;--cty-video-unfullscreen-play-size:40px;--cty-video-unfullscreen-play-border:4px solid rgba(238, 238, 238, 0.8);--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:rgba(255,255,255,0.5);--cty-video-range-background-active:var(--cty-color-primary);--cty-video-loading-background-color:rgba(0,0,0,0.9);--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;display:block;position:relative;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{margin:0;min-height:auto}.cty-video__wrapper{position:relative;width:100%;height:100%}.cty-video__player{display:none;position:absolute;top:0;left:0;margin:0;width:var(--cty-video-height);height:var(--cty-video-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);-webkit-transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);-webkit-transform:rotate(90deg) translate(0, -100%);transform:rotate(90deg);-o-object-fit:var(--cty-video-fit);object-fit:var(--cty-video-fit)}.cty-video__controls{position:absolute;top:0;left:0;width:100%;height:100%}.cty-video__header{position:absolute;z-index:6;background:var(--cty-video-header-background);top:0;left:0;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-left:var(--cty-video-header-padding-start);padding-right:var(--cty-video-header-padding-end);padding-top:var(--cty-video-header-padding-top);padding-bottom:var(--cty-video-header-padding-bottom);-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);-webkit-box-sizing:content-box;box-sizing:content-box}.cty-video__header-back{display:var(--cty-video-header-back-display);width:auto;-ms-flex-positive:0;flex-grow:0;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);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;margin-left:var(--cty-video-header-back-offset-start);margin-right:var(--cty-video-header-back-offset-end)}.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);color:var(--cty-video-header-title-color);line-height:var(--cty-video-header-height)}.cty-video__footer{position:absolute;top:0;left:0;z-index:6;width:var(--cty-video-height);height:var(--cty-video-footer-height);background:var(--cty-video-footer-background);padding-left:var(--cty-video-footer-padding-start);padding-right:var(--cty-video-footer-padding-end);transform:rotate(90deg);-webkit-transform:rotate(90deg);transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2);-webkit-transform-origin:calc(var(--cty-video-footer-height) / 2) calc(var(--cty-video-footer-height) / 2);-webkit-box-sizing:border-box;box-sizing:border-box}.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{width:auto;-ms-flex-positive:0;flex-grow:0;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;color:var(--cty-color-white);font-size:var(--cty-video-footer-progress-size);letter-spacing:0.2px}.cty-video__footer-time-label span{margin:0 1px;-webkit-transform:translateY(-1px);transform:translateY(-1px)}.cty-video__footer-progress{overflow:auto;-ms-flex:1;flex:1}.cty-video__time{color:var(--cty-color-white);font-size:var(--cty-video-footer-progress-size)}.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;--knob-background:var(--cty-video-range-knob-background);--bar-background:var(--cty-video-range-background);--bar-background-active:var(--cty-video-range-background-active);color:var(--cty-video-bar-color);font-size:var(--cty-font-size-medium);opacity:1}.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);background:var(--cty-video-dot-active-color);content:\"\";border-radius:var(--cty-border-radius-circle)}.cty-video__footer-rate{width:auto;-ms-flex-positive:0;flex-grow:0;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;border-radius:var(--cty-border-radius-base);border:1px solid var(--cty-color-white);font-size:var(--cty-font-size-extra-small);font-weight:bold;white-space:nowrap}.cty-video__footer-volume{width:auto;-ms-flex-positive:0;flex-grow:0;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{width:auto;-ms-flex-positive:0;flex-grow:0;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;left:50%;top:50%;z-index:8;font-weight:bold;width:var(--cty-video-play-size);height:var(--cty-video-play-size);margin:calc(var(--cty-video-play-size) / -2) 0px 0px calc(var(--cty-video-play-size) / -2);border-radius:var(--cty-border-radius-circle);border:var(--cty-video-play-border);text-align:center;--background:transparent;--padding-top:0;--padding-end:0;--padding-start:0;--padding-bottom:0}.cty-video__toggle-play cty-icon{color:rgba(238, 238, 238, 0.9);font-size:var(--cty-video-play-icon-size);text-align:center;transform:rotate(90deg);-webkit-transform:rotate(90deg)}.cty-video__opn-toast{position:absolute;z-index:4;top:50%;left:50%;width:var(--cty-video-toast-width);max-width:150px;height:var(--cty-video-toast-height);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);font-size:var(--cty-font-size-medium);font-weight:bold;color:var(--cty-color-white)}.cty-video__opn-toast cty-icon{margin-right:10px;font-size:var(--cty-video-opn-toast-icon-size)}.cty-video__opn-panel{position:absolute;z-index:5;top:50%;left:50%;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;background:var(--cty-overlay-color);padding:5px 11px 5px 8px;margin-left:calc(var(--cty-video-footer-height) + 13px + 46px);border-radius:var(--cty-border-radius-base);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.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;height:100%;width:1px;background-color:rgba(255, 255, 255, 0.3);content:\"\";-webkit-transform:scaleX(1.5);transform:scaleX(1.5)}.cty-video__dot-panel ion-button{height:36px;--padding-start:0;--padding-end:0;--background:transparent;--border-radius:0;--color:var(--cty-video-dot-active-color);font-weight:bold;font-size:var(--cty-font-size-small)}.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-width:9px 8px;border-style:solid;border-color:transparent;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;font-weight:bold;min-width:300px;max-width:96vw;padding:0 15px;margin:0px 0px 0px -60px;background:var(--cty-overlay-color);border-radius:var(--cty-border-radius-large);color:rgba(238, 238, 238, 0.9);font-size:var(--cty-font-size-extra-small);line-height:30px;text-align:center;pointer-events:none;transform:rotate(90deg);-webkit-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-origin:var(--cty-video-half-width) var(--cty-video-half-width);transform-origin:var(--cty-video-half-width) var(--cty-video-half-width);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.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;background-color:transparent;outline:none;border:none;color:var(--cty-color-white);font-size:var(--cty-font-size-base);text-align:center}.cty-video__rate-list-item.active{color:var(--cty-video-rate-active-color)}.cty-video__interactive{display:none;z-index:101;background-color:transparent;background-size:100% 100%;background-repeat:no-repeat}: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{left:50%;top:80%;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{width:var(--cty-video-width);-webkit-transform:rotate(0);transform:rotate(0);top:auto;bottom: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{margin-left:0;-webkit-transform:rotate(0deg);transform:rotate(0deg);bottom:calc(var(--cty-video-footer-height) + 13px)}: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) 0px 0px 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{width:auto;max-width:100%;height:100%;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.cty-video__audio-player{display:block}.cty-video__player-audio{position:absolute;visibility:hidden;display:none}";
122
124
  const CtyVideoStyle0 = videoCss;
123
125
 
124
126
  const Video = /*@__PURE__*/ proxyCustomElement(class Video extends HTMLElement {
@@ -699,7 +701,7 @@ const Video = /*@__PURE__*/ proxyCustomElement(class Video extends HTMLElement {
699
701
  this.lastControlType = '';
700
702
  this.hasInteractive = false;
701
703
  this.currentMarker = {
702
- description: '',
704
+ describe: '',
703
705
  breakpoint: 0,
704
706
  position: 0
705
707
  };
@@ -982,7 +984,7 @@ const Video = /*@__PURE__*/ proxyCustomElement(class Video extends HTMLElement {
982
984
  _resetDot() {
983
985
  this.showDotPanel = false;
984
986
  this.currentMarker = {
985
- description: '',
987
+ describe: '',
986
988
  breakpoint: 0,
987
989
  position: 0
988
990
  };
@@ -1249,15 +1251,15 @@ const Video = /*@__PURE__*/ proxyCustomElement(class Video extends HTMLElement {
1249
1251
  } }, h("ion-button", { onClick: (e) => { this.toggleVideo(e); } }, h("cty-icon", { name: this.isPlaying ? 'cty-pause' : 'cty-play' })), this.progressPosition == 'top' && (h("div", { class: "flex-align-center cty-video__footer-time-label" }, this.currentTimeLabel, h("span", null, "/"), this.durationLabel))), this.progressPosition == 'center' && (h("ion-col", { class: "cty-video__footer-progress flex-center" }, h("span", { class: 'cty-video__time' }, this.currentTimeLabel), !this.isPC && (h("div", { class: "cty-video__footer-bar", onTouchStart: this._doPrgTouchstart, onTouchMove: this._doPrgTouchmove, onTouchEnd: this._doPrgTouchend }, this.direction == 'L' && this.curIsFullscreen && (this.markerList.map((item) => (h("span", { onTouchStart: (event) => this._doDot(event, item), class: "cty-video__footer-dot", style: { left: item.position + '%' } })))))), this.isPC && (h("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((item) => (h("span", { onTouchStart: (event) => this._doDot(event, item), class: "cty-video__footer-dot", style: { left: item.position + '%' } })))))), h("span", { class: 'cty-video__time' }, this.durationLabel))), this.curIsFullscreen && (h("ion-col", { class: "cty-video__footer-rate flex-align-center" }, h("ion-button", { onClick: this._doSetRate }, this.rate == 1 ? '倍速' : this.rate + "X"))), h("ion-col", { class: "cty-video__footer-volume flex-align-center" }, h("ion-button", { onClick: () => this.toggleVolume() }, h("cty-icon", { name: this._getVolumeIconName() }))), !this.fullscreenOnly && !this.curIsFullscreen && this.fullscreenIcon && (h("ion-col", { class: "cty-video__footer-fullscreen flex-align-center" }, h("ion-button", { onClick: () => this._toggleFullScreen(true) }, h("cty-icon", { name: this.fullscreenIcon })))), !this.fullscreenOnly && this.curIsFullscreen && this.exitFullscreenIcon && (h("ion-col", { class: "cty-video__footer-fullscreen flex-align-center" }, h("ion-button", { onClick: () => this._toggleFullScreen(false) }, h("cty-icon", { name: this.exitFullscreenIcon })))), h("slot", { name: "footerCol" })))), this.isMoving && (h("div", { class: "cty-video__opn-toast flex-center" }, h("cty-icon", { name: this.controlIcon }), h("span", null, this.controlLabel))), h("slot", { name: "controls" }), !this.isPC && this.controls && (h("div", { class: "cty-video__opn-panel", onTouchStart: this._doOpnStart, onTouchMove: this._doOpnMove, onTouchEnd: this._doOpnEnd, onClick: (event) => event.stopPropagation() })), this.isPC && this.controls && (h("div", { class: "cty-video__opn-panel", onMouseDown: this._doOpnStart, onMouseMove: this._doOpnMove, onMouseUp: this._doOpnEnd, onMouseLeave: this._doOpnEnd, onClick: (event) => event.stopPropagation() })), this.showCtrl && this.showDotPanel && (h("div", { ref: (el) => { this.dotPanelEl = el; }, class: {
1250
1252
  'cty-video__dot-panel flex-center': true,
1251
1253
  'cty-video__dot-panel-ex': this.progressPosition == 'top'
1252
- }, onClick: (event) => event.stopPropagation(), style: { top: this.dotDotPanelTop, left: this.dotDotPanelLeft, opacity: this.reallyShowDot ? '1' : '0' } }, h("span", { class: "cty-video__dot-label cty-ellipsis2" }, this.currentMarker.description), h("ion-button", { onClick: this._toPoint }, h("cty-icon", { name: "cty-play-ex" }), "\u77E5\u8BC6\u70B9"), h("span", { class: "cty-video__dot-triangle", style: { 'margin-left': this.triangleMargin + 'px' } }))), h("slot", { name: "ctrl" })));
1254
+ }, onClick: (event) => event.stopPropagation(), style: { top: this.dotDotPanelTop, left: this.dotDotPanelLeft, opacity: this.reallyShowDot ? '1' : '0' } }, h("span", { class: "cty-video__dot-label cty-ellipsis2" }, this.currentMarker.describe), h("ion-button", { onClick: this._toPoint }, h("cty-icon", { name: "cty-play-ex" }), "\u77E5\u8BC6\u70B9"), h("span", { class: "cty-video__dot-triangle", style: { 'margin-left': this.triangleMargin + 'px' } }))), h("slot", { name: "ctrl" })));
1253
1255
  }
1254
1256
  render() {
1255
- return (h(Host, { key: '056a3a42daea50d136a413ebd346c22576b5dc9c', class: {
1257
+ return (h(Host, { key: '9661f934045fa71c5059b2859cddb1b66a98c6f3', class: {
1256
1258
  'cty-video': true,
1257
1259
  'cty-video__vertical': this.deviceIsPORTRAIT,
1258
1260
  'cty-video__unfullscreen': !this.curIsFullscreen,
1259
1261
  'cty-video__large-screen': this.direction == 'P' && this.curIsFullscreen && (this.isPC || this.isIpad)
1260
- } }, this.renderPlayer(), this.renderControls(), (!this.isLoading || this.isMicroMessager) && !this.isPlaying && !this.showInteractiveLayer && this.showTogglePlay && (h("ion-button", { key: 'da1e20db5ec7456d0e4a71d76971906b8bc94ab1', part: "toggle-play", class: "cty-video__toggle-play flex-center", onClick: (e) => { this.toggleVideo(e); } }, h("cty-icon", { key: '8dad66e65350b990cadf8f86d631426c7c428c5e', name: "cty-play" }))), !this.isWifi && !this.isPlaying && !this.isLoading && !this.isMicroMessager && this.trafficMsg && (h("div", { key: '61570fcb22e63c1ad9267841e81716825ac7fa75', class: "cty-video__toast cty-ellipsis", part: "toast" }, this.trafficMsg)), this.warningMsg != '' && (h("div", { key: '9dfcf401d85d46984fac8ee25e7d46209f6d81a2', class: "cty-video__toast cty-ellipsis", part: "toast" }, this.warningMsg)), this.showPlayRate && (h("div", { key: 'dde86df67bcab9f038d7febb94c617d00c458a53', class: "cty-video__rate", onClick: () => this.showPlayRate = false }, h("div", { key: '069885c784b8635b306171bd92f2d714dfa375b5', class: "cty-video__rate-mask flex-center-justify-end" }, h("div", { key: '6883c64b7a7d5d2de585054a212e219b6297686b', class: "cty-video__rate-list" }, this._rates.map((item) => (h("button", { onClick: () => this.setPlayRate(item), class: { active: this.rate == item, 'cty-video__rate-list-item': true } }, h("span", null, item, "X")))))))), this.hasInteractive && this.curIsFullscreen && (h("div", { key: '58e86d6da30db08e19d45927b69380bd9d4c362a', class: "cty-video__player cty-video__interactive", onClick: () => { }, ref: (el) => this.interactiveEl = el }))));
1262
+ } }, this.renderPlayer(), this.renderControls(), (!this.isLoading || this.isMicroMessager) && !this.isPlaying && !this.showInteractiveLayer && this.showTogglePlay && (h("ion-button", { key: 'd237e7d4e2cf5938d05673e7ddf559ad0b7c4e4f', part: "toggle-play", class: "cty-video__toggle-play flex-center", onClick: (e) => { this.toggleVideo(e); } }, h("cty-icon", { key: 'cf6e46d17a7329b8943190599a35e9b24efeac14', name: "cty-play" }))), !this.isWifi && !this.isPlaying && !this.isLoading && !this.isMicroMessager && this.trafficMsg && (h("div", { key: 'e080016877dcc7109d5b914dc0a172d286049e87', class: "cty-video__toast cty-ellipsis", part: "toast" }, this.trafficMsg)), this.warningMsg != '' && (h("div", { key: '50f30feae870874dfb92f79fc652990448001bb6', class: "cty-video__toast cty-ellipsis", part: "toast" }, this.warningMsg)), this.showPlayRate && (h("div", { key: 'ade015d7c368ce5ac644eeb562b0566505ee8fb1', class: "cty-video__rate", onClick: () => this.showPlayRate = false }, h("div", { key: 'ec614cbcf9db30e9254fefd6efd169a351cd0bf0', class: "cty-video__rate-mask flex-center-justify-end" }, h("div", { key: 'c2a40d96769b41475ff4fddc4fe65e4f35fda3fb', class: "cty-video__rate-list" }, this._rates.map((item) => (h("button", { onClick: () => this.setPlayRate(item), class: { active: this.rate == item, 'cty-video__rate-list-item': true } }, h("span", null, item, "X")))))))), this.hasInteractive && this.curIsFullscreen && (h("div", { key: '122a272040b75963d4d50cf84ecab4716ff15586', class: "cty-video__player cty-video__interactive", onClick: () => { }, ref: (el) => this.interactiveEl = el }))));
1261
1263
  }
1262
1264
  static get assetsDirs() { return ["assets"]; }
1263
1265
  get el() { return this; }
@@ -4,10 +4,11 @@ import { i as isPlatform } from './platform.js';
4
4
  import { f as fromEvent, m as merge } from './merge.js';
5
5
 
6
6
  class CTYNetwork {
7
- constructor() {
7
+ get _networkPlugin() {
8
8
  var _a;
9
- this._networkPlugin = (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.connection;
9
+ return (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.connection;
10
10
  }
11
+ ;
11
12
  get type() {
12
13
  try {
13
14
  return this._networkPlugin.type;
@@ -14681,10 +14681,14 @@ var UploadProgressTip;
14681
14681
  UploadProgressTip[UploadProgressTip["SHOW"] = 1] = "SHOW";
14682
14682
  })(UploadProgressTip || (UploadProgressTip = {}));
14683
14683
  class CTYAudioRecorder {
14684
- constructor() {
14685
- this._audioRecorderPlugin = window === null || window === void 0 ? void 0 : window.AudioRecorder;
14686
- this._wxSDK = window === null || window === void 0 ? void 0 : window.wx;
14684
+ get _audioRecorderPlugin() {
14685
+ return window === null || window === void 0 ? void 0 : window.AudioRecorder;
14686
+ }
14687
+ ;
14688
+ get _wxSDK() {
14689
+ return window === null || window === void 0 ? void 0 : window.wx;
14687
14690
  }
14691
+ ;
14688
14692
  get isAudioRecorderAvailable() {
14689
14693
  return !!this._audioRecorderPlugin;
14690
14694
  }
@@ -14861,14 +14865,27 @@ var ImagePickerType;
14861
14865
  ImagePickerType[ImagePickerType["IMAGEPICKER"] = 1] = "IMAGEPICKER";
14862
14866
  })(ImagePickerType || (ImagePickerType = {}));
14863
14867
  class CTYImagePicker {
14864
- constructor() {
14868
+ get _isMicroMessenger() {
14869
+ return deviceInfo.isMicroMessager;
14870
+ }
14871
+ ;
14872
+ get _cameraPlugin() {
14865
14873
  var _a;
14866
- this._isMicroMessenger = deviceInfo.isMicroMessager;
14867
- this._cameraPlugin = (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.camera;
14868
- this._imagePickerPlugin = window === null || window === void 0 ? void 0 : window.imagePicker;
14869
- this._documentPickerPlugin = window === null || window === void 0 ? void 0 : window.CDVDocumentPicker;
14870
- this._wxSDK = window === null || window === void 0 ? void 0 : window.wx;
14874
+ return (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.camera;
14875
+ }
14876
+ ;
14877
+ get _imagePickerPlugin() {
14878
+ return window === null || window === void 0 ? void 0 : window.imagePicker;
14879
+ }
14880
+ ;
14881
+ get _documentPickerPlugin() {
14882
+ return window === null || window === void 0 ? void 0 : window.CDVDocumentPicker;
14883
+ }
14884
+ ;
14885
+ get _wxSDK() {
14886
+ return window === null || window === void 0 ? void 0 : window.wx;
14871
14887
  }
14888
+ ;
14872
14889
  get isCameraAvailable() {
14873
14890
  return !!this._cameraPlugin;
14874
14891
  }
@@ -15068,12 +15085,20 @@ var DownloadMediaType;
15068
15085
  DownloadMediaType[DownloadMediaType["FILE"] = 3] = "FILE";
15069
15086
  })(DownloadMediaType || (DownloadMediaType = {}));
15070
15087
  class CTYMediaDownloader {
15071
- constructor() {
15072
- var _a, _b, _c;
15073
- this._photoLibraryPlugin = (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.photoLibrary;
15074
- this._filePlugin = (_c = window === null || window === void 0 ? void 0 : window.cordova) === null || _c === void 0 ? void 0 : _c.file;
15075
- this._fileTransferPlugin = window === null || window === void 0 ? void 0 : window.FileTransfer;
15088
+ get _photoLibraryPlugin() {
15089
+ var _a, _b;
15090
+ return (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.photoLibrary;
15091
+ }
15092
+ ;
15093
+ get _filePlugin() {
15094
+ var _a;
15095
+ return (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.file;
15076
15096
  }
15097
+ ;
15098
+ get _fileTransferPlugin() {
15099
+ return window === null || window === void 0 ? void 0 : window.FileTransfer;
15100
+ }
15101
+ ;
15077
15102
  get isPhotoLibraryAvailable() {
15078
15103
  return !!this._photoLibraryPlugin;
15079
15104
  }
@@ -15100,11 +15125,11 @@ class CTYMediaDownloader {
15100
15125
  });
15101
15126
  return;
15102
15127
  }
15103
- this._photoLibraryPlugin.saveImage(options.url, options.albumName || 'cty', options, (value) => {
15128
+ this._photoLibraryPlugin.saveImage(options.url, options.albumName || 'cty', (value) => {
15104
15129
  resolve(value);
15105
15130
  }, (error) => {
15106
15131
  reject(error);
15107
- });
15132
+ }, options);
15108
15133
  }
15109
15134
  else {
15110
15135
  reject('Photo Library plugin is not available');
@@ -15192,13 +15217,25 @@ const mediaDownloader = new CTYMediaDownloader();
15192
15217
 
15193
15218
  class CTYPayment {
15194
15219
  constructor() {
15195
- var _a, _b;
15196
- this._inAppPurchasePlugin = window === null || window === void 0 ? void 0 : window.inAppPurchase;
15197
- this._alipayPlugin = (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.alipay;
15198
- this._wechatPlugin = window === null || window === void 0 ? void 0 : window.Wechat;
15199
- this._weixinJSBridge = window === null || window === void 0 ? void 0 : window.WeixinJSBridge;
15200
15220
  this._wxPayRequest = () => { };
15201
15221
  }
15222
+ get _inAppPurchasePlugin() {
15223
+ return window === null || window === void 0 ? void 0 : window.inAppPurchase;
15224
+ }
15225
+ ;
15226
+ get _alipayPlugin() {
15227
+ var _a, _b;
15228
+ return (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.alipay;
15229
+ }
15230
+ ;
15231
+ get _wechatPlugin() {
15232
+ return window === null || window === void 0 ? void 0 : window.Wechat;
15233
+ }
15234
+ ;
15235
+ get _weixinJSBridge() {
15236
+ return window === null || window === void 0 ? void 0 : window.WeixinJSBridge;
15237
+ }
15238
+ ;
15202
15239
  get isInAppPurchaseAvailable() {
15203
15240
  return !!this._inAppPurchasePlugin;
15204
15241
  }
@@ -15293,10 +15330,11 @@ class CTYPayment {
15293
15330
  const payment = new CTYPayment();
15294
15331
 
15295
15332
  class CTYScreenOrientation {
15296
- constructor() {
15333
+ get _orientationPlugin() {
15297
15334
  var _a;
15298
- this._orientationPlugin = (_a = window === null || window === void 0 ? void 0 : window.screen) === null || _a === void 0 ? void 0 : _a.orientation;
15335
+ return (_a = window === null || window === void 0 ? void 0 : window.screen) === null || _a === void 0 ? void 0 : _a.orientation;
15299
15336
  }
15337
+ ;
15300
15338
  async lock(orientation) {
15301
15339
  try {
15302
15340
  this._orientationPlugin.lock(orientation);
@@ -15323,13 +15361,23 @@ class CTYScreenOrientation {
15323
15361
  const screenOrientation = new CTYScreenOrientation();
15324
15362
 
15325
15363
  class CTYShare {
15326
- constructor() {
15364
+ get _socialSharingPlugin() {
15327
15365
  var _a;
15328
- this._socialSharingPlugin = (_a = window === null || window === void 0 ? void 0 : window.plugins) === null || _a === void 0 ? void 0 : _a.socialsharing;
15329
- this._weiboSDKPlugin = window === null || window === void 0 ? void 0 : window.WeiboSDK;
15330
- this._wecomPlugin = window === null || window === void 0 ? void 0 : window.WecomPlugin;
15331
- this._systemSharePlugin = window === null || window === void 0 ? void 0 : window.SystemSharePlugin;
15366
+ return (_a = window === null || window === void 0 ? void 0 : window.plugins) === null || _a === void 0 ? void 0 : _a.socialsharing;
15332
15367
  }
15368
+ ;
15369
+ get _weiboSDKPlugin() {
15370
+ return window === null || window === void 0 ? void 0 : window.WeiboSDK;
15371
+ }
15372
+ ;
15373
+ get _wecomPlugin() {
15374
+ return window === null || window === void 0 ? void 0 : window.WecomPlugin;
15375
+ }
15376
+ ;
15377
+ get _systemSharePlugin() {
15378
+ return window === null || window === void 0 ? void 0 : window.SystemSharePlugin;
15379
+ }
15380
+ ;
15333
15381
  get isSocialSharingAvailable() {
15334
15382
  return !!this._socialSharingPlugin;
15335
15383
  }
@@ -15443,9 +15491,10 @@ class CTYShare {
15443
15491
  const share = new CTYShare();
15444
15492
 
15445
15493
  class CTYStatusBar {
15446
- constructor() {
15447
- this._statusBarPlugin = window === null || window === void 0 ? void 0 : window.StatusBar;
15494
+ get _statusBarPlugin() {
15495
+ return window === null || window === void 0 ? void 0 : window.StatusBar;
15448
15496
  }
15497
+ ;
15449
15498
  toggleStatusBar(enable) {
15450
15499
  try {
15451
15500
  if (enable) {
@@ -15486,9 +15535,10 @@ class CTYStatusBar {
15486
15535
  const statusBar = new CTYStatusBar();
15487
15536
 
15488
15537
  class CTYVideoCapture {
15489
- constructor() {
15490
- this._videoCapturePlugin = window.CtyVideoCaptureCordova;
15538
+ get _videoCapturePlugin() {
15539
+ return window.CtyVideoCaptureCordova;
15491
15540
  }
15541
+ ;
15492
15542
  get isVideoCaptureAvailable() {
15493
15543
  return !!this._videoCapturePlugin;
15494
15544
  }
@@ -15544,10 +15594,11 @@ class CTYVideoCapture {
15544
15594
  const videoCapture = new CTYVideoCapture();
15545
15595
 
15546
15596
  class CTYVolumeControl {
15547
- constructor() {
15597
+ get _volumeControlPlugin() {
15548
15598
  var _a, _b;
15549
- this._volumeControlPlugin = (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.VolumeControl;
15599
+ return (_b = (_a = window === null || window === void 0 ? void 0 : window.cordova) === null || _a === void 0 ? void 0 : _a.plugins) === null || _b === void 0 ? void 0 : _b.VolumeControl;
15550
15600
  }
15601
+ ;
15551
15602
  get isAvailable() {
15552
15603
  return !!this._volumeControlPlugin;
15553
15604
  }
@@ -1,10 +1,11 @@
1
1
  import { f as fromEvent, m as merge } from './merge.js';
2
2
 
3
3
  class CTYNetwork {
4
- constructor() {
4
+ get _networkPlugin() {
5
5
  var _a;
6
- this._networkPlugin = (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.connection;
6
+ return (_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.connection;
7
7
  }
8
+ ;
8
9
  get type() {
9
10
  try {
10
11
  return this._networkPlugin.type;
@@ -24,9 +24,10 @@ function secondsToVehicle(value, hour = true) {
24
24
  }
25
25
 
26
26
  class CTYStatusBar {
27
- constructor() {
28
- this._statusBarPlugin = window === null || window === void 0 ? void 0 : window.StatusBar;
27
+ get _statusBarPlugin() {
28
+ return window === null || window === void 0 ? void 0 : window.StatusBar;
29
29
  }
30
+ ;
30
31
  toggleStatusBar(enable) {
31
32
  try {
32
33
  if (enable) {
@@ -63,19 +63,29 @@ const Swipe = /*@__PURE__*/ proxyCustomElement(class Swipe extends HTMLElement {
63
63
  this.stopAutoplay();
64
64
  }
65
65
  initialize(active = +this.initialSwipe) {
66
- const children = this.swipeItems = Array.from(this.el.children).filter(child => child.tagName.toLocaleLowerCase() === 'cty-swipe-item');
67
- this.count = children.length;
68
- this.size = this.el[this.vertical ? 'offsetHeight' : 'offsetWidth'];
69
- this.minOffset = this.count ? -this.size * (this.count - 1) : 0;
70
- this.maxCount = this.count ? this.count - 1 : this.count;
71
- this.trackSize = this.count * this.size;
72
- this.active = active;
73
- this.swiping = true;
74
- this.offset = this.getTargetOffset(active);
75
- children.forEach((swipeItem) => {
76
- swipeItem.setOffset(0);
77
- });
78
- this.autoplayFn();
66
+ const cb = () => {
67
+ const children = this.swipeItems = Array.from(this.el.children).filter(child => child.tagName.toLocaleLowerCase() === 'cty-swipe-item');
68
+ this.count = children.length;
69
+ this.size = this.el[this.vertical ? 'offsetHeight' : 'offsetWidth'];
70
+ this.minOffset = this.count ? -this.size * (this.count - 1) : 0;
71
+ this.maxCount = this.count ? this.count - 1 : this.count;
72
+ this.trackSize = this.count * this.size;
73
+ this.active = active;
74
+ this.swiping = true;
75
+ this.offset = this.getTargetOffset(active);
76
+ children.forEach((swipeItem) => {
77
+ swipeItem.setOffset(0);
78
+ });
79
+ this.autoplayFn();
80
+ };
81
+ if (!this.el.offsetParent) {
82
+ doubleRaf(() => {
83
+ cb();
84
+ });
85
+ }
86
+ else {
87
+ cb();
88
+ }
79
89
  }
80
90
  move({ pace = 0, offset = 0, emitChange }) {
81
91
  if (this.count <= 1) {
@@ -281,7 +291,7 @@ const Swipe = /*@__PURE__*/ proxyCustomElement(class Swipe extends HTMLElement {
281
291
  'transform': `translate${vertical ? 'Y' : 'X'}(${+offset.toFixed(2)}px)`,
282
292
  [vertical ? 'height' : 'width']: `${this.trackSize}px`,
283
293
  };
284
- return (h(Host, { key: '7ced7e62304002ef9fcc1c52dfaf7d496f1d395e', class: "cty-swipe" }, h("slot", { key: '079c8a3ac493e6b5b1cd33583c8600c6935023a0', name: "start" }), h("div", { key: '7ce3369d17eb9a4254b6beb514f076bb94689735', class: { 'cty-swipe__track': true, 'cty-swipe__track-vertical': this.vertical }, style: style, onTouchStart: (e) => this.onTouchStart(e), onTouchMove: (e) => this.onTouchMove(e), onTouchEnd: (e) => this.onTouchEnd(e), onTouchCancel: (e) => this.onTouchEnd(e), onMouseDown: (e) => this.onTouchStart(e), onMouseMove: (e) => this.onTouchMove(e), onMouseUp: (e) => this.onTouchEnd(e), onMouseLeave: (e) => this.onTouchEnd(e) }, h("slot", { key: '304192351733b32e92b14f95bfa838d1c2777f7c', onSlotchange: () => this.slotChanged() })), this.renderIndicator(), h("slot", { key: '910b4172ee69f7c34acc13c809845278ba6025c4', name: "end" })));
294
+ return (h(Host, { key: 'e1e1936de1403fe18765a80aee688aa11a648c0b', class: "cty-swipe" }, h("slot", { key: '514610f1f29490ac2cfb94ab1ce69e3e9fcd3573', name: "start" }), h("div", { key: '377a3bef5eddf88a64ef6fc944a94d009913a80d', class: { 'cty-swipe__track': true, 'cty-swipe__track-vertical': this.vertical }, style: style, onTouchStart: (e) => this.onTouchStart(e), onTouchMove: (e) => this.onTouchMove(e), onTouchEnd: (e) => this.onTouchEnd(e), onTouchCancel: (e) => this.onTouchEnd(e), onMouseDown: (e) => this.onTouchStart(e), onMouseMove: (e) => this.onTouchMove(e), onMouseUp: (e) => this.onTouchEnd(e), onMouseLeave: (e) => this.onTouchEnd(e) }, h("slot", { key: '243e2087229bef761a4b27cbd0a70a845f43f1cf', onSlotchange: () => this.slotChanged() })), this.renderIndicator(), h("slot", { key: '27a66c7a30c0260b52bd3d65171eb61101bc0290', name: "end" })));
285
295
  }
286
296
  get el() { return this; }
287
297
  static get style() { return CtySwipeStyle0; }