@yoobic/yobi 7.7.74 → 7.7.78

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 (196) hide show
  1. package/dist/cjs/{document-2c1b83f3.js → document-b4cc3315.js} +1 -1
  2. package/dist/cjs/{draggable-dots-helpers-dd503fa7.js → draggable-dots-helpers-7b039be2.js} +1 -1
  3. package/dist/cjs/{entities-helpers-02c2a46e.js → entities-helpers-e377d30b.js} +1 -1
  4. package/dist/cjs/{entities-helpers-5f8ea634.js → entities-helpers-f38b1b38.js} +3 -3
  5. package/dist/cjs/{form-creator-helpers-886c1eaa.js → form-creator-helpers-ed0a88b0.js} +8 -5
  6. package/dist/cjs/{form-text-area-helpers-38e602ab.js → form-text-area-helpers-01944f5d.js} +1 -1
  7. package/dist/cjs/{grid-renderers-57c67811.js → grid-renderers-5830bf4a.js} +1 -1
  8. package/dist/cjs/{image-helpers-6775a987.js → image-helpers-9a455e5c.js} +2 -2
  9. package/dist/cjs/{index-4e809f23.js → index-203cb7c1.js} +1 -1
  10. package/dist/cjs/{index-fe1bb8cb.js → index-5d6b2f8d.js} +2 -2
  11. package/dist/cjs/{index-8be8549a.js → index-8f834b3c.js} +2 -2
  12. package/dist/cjs/index.cjs.js +8 -8
  13. package/dist/cjs/{swiper-3e18af65.js → swiper-1924e3c4.js} +13 -3
  14. package/dist/cjs/{url-helpers-a2498cb8.js → url-helpers-a53b3ff9.js} +1 -1
  15. package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +6 -6
  16. package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +10 -10
  17. package/dist/cjs/yoo-audio-recorder-dialog.cjs.entry.js +2 -2
  18. package/dist/cjs/yoo-avatar_5.cjs.entry.js +5 -5
  19. package/dist/cjs/yoo-camera-preview-dialog_7.cjs.entry.js +3 -3
  20. package/dist/cjs/yoo-card-header.cjs.entry.js +3 -3
  21. package/dist/cjs/yoo-card-incentive-rank.cjs.entry.js +3 -3
  22. package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +6 -7
  23. package/dist/cjs/yoo-chat-message-dialog.cjs.entry.js +3 -3
  24. package/dist/cjs/yoo-chat-message_3.cjs.entry.js +5 -5
  25. package/dist/cjs/yoo-chat.cjs.entry.js +5 -5
  26. package/dist/cjs/yoo-detail-bar.cjs.entry.js +5 -5
  27. package/dist/cjs/yoo-feed-detail.cjs.entry.js +4 -4
  28. package/dist/cjs/yoo-form-calendar-dialog_2.cjs.entry.js +3 -3
  29. package/dist/cjs/yoo-form-choice_4.cjs.entry.js +4 -4
  30. package/dist/cjs/yoo-form-conditions.cjs.entry.js +2 -2
  31. package/dist/cjs/yoo-form-connect.cjs.entry.js +2 -2
  32. package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +4 -4
  33. package/dist/cjs/yoo-form-creator-block-simple_4.cjs.entry.js +7 -7
  34. package/dist/cjs/yoo-form-creator-card_2.cjs.entry.js +4 -4
  35. package/dist/cjs/yoo-form-creator-field-selector_8.cjs.entry.js +4 -4
  36. package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +7 -6
  37. package/dist/cjs/yoo-form-creator.cjs.entry.js +5 -5
  38. package/dist/cjs/yoo-form-image-collection.cjs.entry.js +2 -2
  39. package/dist/cjs/yoo-form-image-tagging-creator.cjs.entry.js +3 -3
  40. package/dist/cjs/yoo-form-incentive-targets.cjs.entry.js +2 -2
  41. package/dist/cjs/yoo-form-missing-word.cjs.entry.js +1 -1
  42. package/dist/cjs/yoo-form-multi-input.cjs.entry.js +2 -2
  43. package/dist/cjs/yoo-form-reorder.cjs.entry.js +2 -2
  44. package/dist/cjs/yoo-form-stripe-card.cjs.entry.js +2 -2
  45. package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +2 -2
  46. package/dist/cjs/yoo-form-text-editor.cjs.entry.js +6 -6
  47. package/dist/cjs/yoo-form-todo-single.cjs.entry.js +3 -3
  48. package/dist/cjs/yoo-form-uploader.cjs.entry.js +2 -2
  49. package/dist/cjs/yoo-input-bar.cjs.entry.js +5 -5
  50. package/dist/cjs/yoo-lesson-question-result.cjs.entry.js +1 -1
  51. package/dist/cjs/yoo-location-heading.cjs.entry.js +2 -2
  52. package/dist/cjs/yoo-memo-list-dialog.cjs.entry.js +3 -3
  53. package/dist/cjs/yoo-memo-list.cjs.entry.js +3 -3
  54. package/dist/cjs/yoo-mission-heading_3.cjs.entry.js +3 -3
  55. package/dist/cjs/yoo-podium.cjs.entry.js +3 -3
  56. package/dist/cjs/yoo-profile-summary.cjs.entry.js +4 -4
  57. package/dist/cjs/yoo-slides-media.cjs.entry.js +6 -6
  58. package/dist/cjs/yoo-user-profile.cjs.entry.js +5 -5
  59. package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +2 -2
  60. package/dist/cjs/yoo-walkthrough.cjs.entry.js +3 -3
  61. package/dist/collection/components/1.atoms/img/img.css +4 -0
  62. package/dist/collection/components/1.atoms/img/img.js +1 -1
  63. package/dist/collection/components/core/zoom/zoom.js +0 -1
  64. package/dist/collection/components/form-creator/form-creator/form-creator.js +1 -1
  65. package/dist/collection/components/form-creator/form-creator-translate-dialog/form-creator-translate-dialog.js +3 -2
  66. package/dist/collection/utils/helpers/image-helpers.js +2 -2
  67. package/dist/design-system/design-system.esm.js +1 -1
  68. package/dist/design-system/index.esm.js +1 -1
  69. package/dist/design-system/{p-6cbf1f93.entry.js → p-0195a944.entry.js} +1 -1
  70. package/dist/design-system/{p-8314d907.entry.js → p-0bb29465.entry.js} +1 -1
  71. package/dist/design-system/{p-5818a954.entry.js → p-0e502a87.entry.js} +1 -1
  72. package/dist/design-system/{p-5b484eb7.js → p-15fd070c.js} +1 -1
  73. package/dist/design-system/{p-30682653.js → p-19a574ce.js} +1 -1
  74. package/dist/design-system/{p-564a1d7a.entry.js → p-19ced087.entry.js} +1 -1
  75. package/dist/design-system/{p-cbbb3c76.entry.js → p-19fa14b3.entry.js} +1 -1
  76. package/dist/design-system/{p-4c01270d.js → p-263c9bdb.js} +1 -1
  77. package/dist/design-system/{p-6381a5eb.entry.js → p-2ff2757f.entry.js} +1 -1
  78. package/dist/design-system/{p-04bbbbb7.entry.js → p-3c525d77.entry.js} +2 -2
  79. package/dist/design-system/{p-27cc1019.entry.js → p-49d34fa0.entry.js} +1 -1
  80. package/dist/design-system/{p-7c857da1.entry.js → p-4b5b0147.entry.js} +1 -1
  81. package/dist/design-system/{p-c2b98084.entry.js → p-4fcf3997.entry.js} +1 -1
  82. package/dist/design-system/{p-54dfd967.entry.js → p-52f6ebf1.entry.js} +1 -1
  83. package/dist/design-system/{p-f0a86769.entry.js → p-533ce09f.entry.js} +1 -1
  84. package/dist/design-system/{p-4c6f5827.entry.js → p-5d67f58e.entry.js} +1 -1
  85. package/dist/design-system/{p-a6fd99b3.entry.js → p-698e6ff2.entry.js} +1 -1
  86. package/dist/design-system/p-6d47311a.js +1 -0
  87. package/dist/design-system/{p-1f3e8ca3.entry.js → p-77376751.entry.js} +1 -1
  88. package/dist/design-system/{p-9114bbfb.entry.js → p-7d62f3fe.entry.js} +1 -1
  89. package/dist/design-system/p-7f8ddb27.js +1 -0
  90. package/dist/design-system/p-81ceff81.js +1 -0
  91. package/dist/design-system/{p-41091223.entry.js → p-874c9807.entry.js} +1 -1
  92. package/dist/design-system/{p-f5b53c4b.entry.js → p-87d146a4.entry.js} +1 -1
  93. package/dist/design-system/{p-83949711.entry.js → p-88639e39.entry.js} +1 -1
  94. package/dist/design-system/{p-615106af.entry.js → p-8c63a863.entry.js} +1 -1
  95. package/dist/design-system/{p-dbeaa143.js → p-8c8163b6.js} +1 -1
  96. package/dist/design-system/p-9229f5bb.js +1 -0
  97. package/dist/design-system/p-931c8de0.entry.js +1 -0
  98. package/dist/design-system/{p-1d62332f.js → p-9430559f.js} +1 -1
  99. package/dist/design-system/{p-49093436.entry.js → p-96bf4ad0.entry.js} +1 -1
  100. package/dist/design-system/{p-c8c0c227.js → p-9a039ee7.js} +1 -1
  101. package/dist/design-system/{p-a3da0322.entry.js → p-9d8da4a0.entry.js} +1 -1
  102. package/dist/design-system/{p-63ec070d.entry.js → p-9f170821.entry.js} +1 -1
  103. package/dist/design-system/{p-9794c5b2.entry.js → p-a1e6e5c2.entry.js} +1 -1
  104. package/dist/design-system/{p-c7f9f550.entry.js → p-a70e359c.entry.js} +1 -1
  105. package/dist/design-system/{p-33d7ca2c.entry.js → p-ab8304e5.entry.js} +1 -1
  106. package/dist/design-system/{p-2e5eccf3.entry.js → p-b14fa2a4.entry.js} +1 -1
  107. package/dist/design-system/{p-4f1f9e52.entry.js → p-b4bf0927.entry.js} +1 -1
  108. package/dist/design-system/{p-507fe4b9.entry.js → p-c60e5af0.entry.js} +1 -1
  109. package/dist/design-system/{p-3094364b.entry.js → p-c61d0b98.entry.js} +1 -1
  110. package/dist/design-system/p-cccb3658.entry.js +1 -0
  111. package/dist/design-system/{p-5c10a04c.entry.js → p-ce9c6894.entry.js} +1 -1
  112. package/dist/design-system/{p-21b42a17.entry.js → p-d54fe233.entry.js} +1 -1
  113. package/dist/design-system/{p-6c438880.entry.js → p-d614aaed.entry.js} +1 -1
  114. package/dist/design-system/{p-0afa4dc8.entry.js → p-dcdf128d.entry.js} +1 -1
  115. package/dist/design-system/{p-c0ea5dde.entry.js → p-de635023.entry.js} +1 -1
  116. package/dist/design-system/{p-007ca7fc.entry.js → p-e4481945.entry.js} +2 -2
  117. package/dist/design-system/{p-1a22cc23.entry.js → p-e954f42f.entry.js} +1 -1
  118. package/dist/design-system/{p-7eff0523.entry.js → p-ea80408e.entry.js} +1 -1
  119. package/dist/design-system/{p-c8bbe277.entry.js → p-ee458c27.entry.js} +1 -1
  120. package/dist/design-system/{p-f4867056.entry.js → p-ee705d84.entry.js} +1 -1
  121. package/dist/design-system/{p-6002e785.js → p-ee75ca05.js} +1 -1
  122. package/dist/design-system/p-efd4983d.js +1 -0
  123. package/dist/design-system/{p-14ee554e.entry.js → p-f4eb8b04.entry.js} +1 -1
  124. package/dist/design-system/{p-0f7581cf.entry.js → p-f7afffac.entry.js} +1 -1
  125. package/dist/design-system/{p-ef87b121.entry.js → p-f7b10ee1.entry.js} +1 -1
  126. package/dist/design-system/{p-2ca2318b.js → p-fd870eb7.js} +1 -1
  127. package/dist/design-system/{p-ce43263c.entry.js → p-ff385bd5.entry.js} +1 -1
  128. package/dist/esm/{document-7259d432.js → document-29cc0400.js} +1 -1
  129. package/dist/esm/{draggable-dots-helpers-f560866a.js → draggable-dots-helpers-c77468b6.js} +1 -1
  130. package/dist/esm/{entities-helpers-036ae4c5.js → entities-helpers-122c20c3.js} +1 -1
  131. package/dist/esm/{entities-helpers-689506d7.js → entities-helpers-5ef12ad3.js} +3 -3
  132. package/dist/esm/{form-creator-helpers-6372ee83.js → form-creator-helpers-e288d1e2.js} +8 -5
  133. package/dist/esm/{form-text-area-helpers-05d980a6.js → form-text-area-helpers-eff7814d.js} +1 -1
  134. package/dist/esm/{grid-renderers-4eff4ce9.js → grid-renderers-ad52eacd.js} +1 -1
  135. package/dist/esm/{image-helpers-e341f16c.js → image-helpers-6373847f.js} +2 -2
  136. package/dist/esm/{index-fe72e7b5.js → index-6499210c.js} +2 -2
  137. package/dist/esm/{index-5ebb419e.js → index-b1a3fcc3.js} +2 -2
  138. package/dist/esm/{index-227a9c06.js → index-f25c3fe6.js} +2 -2
  139. package/dist/esm/index.js +8 -8
  140. package/dist/esm/{swiper-7961589d.js → swiper-1b6d2ffa.js} +13 -3
  141. package/dist/esm/{url-helpers-5aa4360c.js → url-helpers-91100b28.js} +1 -1
  142. package/dist/esm/yoo-action-sheet-controller_15.entry.js +6 -6
  143. package/dist/esm/yoo-ag-grid_96.entry.js +10 -10
  144. package/dist/esm/yoo-audio-recorder-dialog.entry.js +2 -2
  145. package/dist/esm/yoo-avatar_5.entry.js +5 -5
  146. package/dist/esm/yoo-camera-preview-dialog_7.entry.js +3 -3
  147. package/dist/esm/yoo-card-header.entry.js +3 -3
  148. package/dist/esm/yoo-card-incentive-rank.entry.js +3 -3
  149. package/dist/esm/yoo-card-list-image_12.entry.js +6 -7
  150. package/dist/esm/yoo-chat-message-dialog.entry.js +3 -3
  151. package/dist/esm/yoo-chat-message_3.entry.js +5 -5
  152. package/dist/esm/yoo-chat.entry.js +5 -5
  153. package/dist/esm/yoo-detail-bar.entry.js +5 -5
  154. package/dist/esm/yoo-feed-detail.entry.js +4 -4
  155. package/dist/esm/yoo-form-calendar-dialog_2.entry.js +3 -3
  156. package/dist/esm/yoo-form-choice_4.entry.js +4 -4
  157. package/dist/esm/yoo-form-conditions.entry.js +2 -2
  158. package/dist/esm/yoo-form-connect.entry.js +2 -2
  159. package/dist/esm/yoo-form-creator-block-expandable.entry.js +4 -4
  160. package/dist/esm/yoo-form-creator-block-simple_4.entry.js +7 -7
  161. package/dist/esm/yoo-form-creator-card_2.entry.js +4 -4
  162. package/dist/esm/yoo-form-creator-field-selector_8.entry.js +4 -4
  163. package/dist/esm/yoo-form-creator-translate-dialog.entry.js +7 -6
  164. package/dist/esm/yoo-form-creator.entry.js +5 -5
  165. package/dist/esm/yoo-form-image-collection.entry.js +2 -2
  166. package/dist/esm/yoo-form-image-tagging-creator.entry.js +3 -3
  167. package/dist/esm/yoo-form-incentive-targets.entry.js +2 -2
  168. package/dist/esm/yoo-form-missing-word.entry.js +1 -1
  169. package/dist/esm/yoo-form-multi-input.entry.js +2 -2
  170. package/dist/esm/yoo-form-reorder.entry.js +2 -2
  171. package/dist/esm/yoo-form-stripe-card.entry.js +2 -2
  172. package/dist/esm/yoo-form-swipe-cards.entry.js +2 -2
  173. package/dist/esm/yoo-form-text-editor.entry.js +6 -6
  174. package/dist/esm/yoo-form-todo-single.entry.js +3 -3
  175. package/dist/esm/yoo-form-uploader.entry.js +2 -2
  176. package/dist/esm/yoo-input-bar.entry.js +5 -5
  177. package/dist/esm/yoo-lesson-question-result.entry.js +1 -1
  178. package/dist/esm/yoo-location-heading.entry.js +2 -2
  179. package/dist/esm/yoo-memo-list-dialog.entry.js +3 -3
  180. package/dist/esm/yoo-memo-list.entry.js +3 -3
  181. package/dist/esm/yoo-mission-heading_3.entry.js +3 -3
  182. package/dist/esm/yoo-podium.entry.js +3 -3
  183. package/dist/esm/yoo-profile-summary.entry.js +4 -4
  184. package/dist/esm/yoo-slides-media.entry.js +6 -6
  185. package/dist/esm/yoo-user-profile.entry.js +5 -5
  186. package/dist/esm/yoo-videoplayer-videojs.entry.js +2 -2
  187. package/dist/esm/yoo-walkthrough.entry.js +3 -3
  188. package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/utils/src/helpers/form-creator-helpers.d.ts +5 -2
  189. package/package.json +1 -1
  190. package/dist/design-system/p-1274ec04.js +0 -1
  191. package/dist/design-system/p-2fd172b9.js +0 -1
  192. package/dist/design-system/p-699be64f.js +0 -1
  193. package/dist/design-system/p-7909b332.js +0 -1
  194. package/dist/design-system/p-8b07fc6e.js +0 -1
  195. package/dist/design-system/p-e949b46e.entry.js +0 -1
  196. package/dist/design-system/p-f856ef03.entry.js +0 -1
@@ -1 +1 @@
1
- import{Q as n,E as t,R as o,S as e,T as l,U as i,j as r,V as u,s}from"./p-a966475f.js";import"./p-4d956bd4.js";import"./p-b5241164.js";import{b as a,g as d,j as c,i as v,a as f}from"./p-9de400aa.js";import{g as p}from"./p-5b484eb7.js";import{v as b}from"./p-33b2d3a2.js";import{i as m}from"./p-6b61583e.js";const x={typeTool:"type-tool",brush:"brush",dot:"dot",rubber:"rubber",align:{left:"align-left",center:"align-center",right:"align-right"},background:{on:"background-on",off:"background-off"},close:{cross:"close",left:"left"},predefinedText:"text-predefined",save:"validate",done:"done",cancel:"cancel",undo:"undo",redo:"redo"},y=n()?0:.35,g=18,h=500,O={x:0,y:0},j={text:{min:10,max:35,default:20},draw:{min:1,max:12,default:4}},F={tools:{start:[],end:["brush","dot","type-tool"].map((n=>({icon:n})))},text:{start:["align-center","background-off","text-predefined"].map((n=>({icon:n}))),end:[{text:"YOOBICDONE"}]},draw:{start:["undo","redo"].map((n=>({icon:n}))),end:[{text:"YOOBICDONE"}]},annotate:{start:[{text:"CANCEL"},{icon:"text-predefined"}],end:[{text:"YOOBICDONE"}]}},w={menu:{fill:"transparent",color:"light",size:"medium"},delete:{actionType:"delete",icon:"delete",fill:"solid",color:"danger",size:"large",shape:"square"},validate:{actionType:"validate",fill:"solid",color:"success",size:"large",shape:"rectangular"}};function C(n){return"x"===n?"width":"height"}function k(n,t){const o=o=>t[C(o)]*(parseFloat(n.style["x"===o?"left":"top"])||0)/100;return{top:o("y"),left:o("x")}}function P(n){return null==n?void 0:n.getBoundingClientRect()}function Y(n,t){return null==t?void 0:t.find((t=>(null==t?void 0:t._id)===n))}function $(n,t){const o=n instanceof Node?n:d(n._id,t);return i.get(o)}function E(n,t,o){const e=null==t?void 0:t.getBoundingClientRect();return n&&e?Math.abs((e[o]-n[o])/n[C(o)]*100):0}function T(n,t){if(n&&t){const o=t.getBoundingClientRect(),e=d(n._id,t);if(e&&t.contains(e))return n.isNewVersion=!0,"coords"in n||(n.coords={percentX:0,percentY:0}),n.coords.percentX=E(o,e,"x"),n.coords.percentY=E(o,e,"y"),"text"===n.type&&(n.styles=Object.assign(Object.assign({},n.styles),{responsive:!0})),"percentX"in n&&(delete n.percentX,delete n.percentY),"percent_x"in n&&(delete n.percent_x,delete n.percent_y),"width_height_ratio"in n&&delete n.width_height_ratio,"width"in(null==n?void 0:n.styles)&&delete n.styles.width,n}return null}function N(n,t){return(null==n?void 0:n.map((n=>T(n,t))))||[]}function _(n){return(n||[]).filter((n=>a(n))).map((n=>{var o;delete n._local;const e=(null===(o=null==n?void 0:n.styles)||void 0===o?void 0:o.backgroundColor)||("dot"===n.type?"success":"light");return Object.assign(Object.assign({},n),{_id:(null==n?void 0:n._id)||p(),styles:Object.assign(Object.assign({},n.styles||{}),{backgroundColor:t(e,e)})})}))}function z(n){return(null==n?void 0:n.map((n=>((null==n?void 0:n._local)&&delete n._local,n))))||[]}function A(n,t){if(n&&t){const o=n.getBoundingClientRect(),e=e=>t[C(e)]/2-(o[C(e)]/2+k(n,t)["x"===e?"left":"top"]);return{x:e("x"),y:e("y")}}return{x:0,y:0}}function I(n,t){const o=(null==n?void 0:n.getBoundingClientRect())||{height:46,width:16},e=n=>t[C(n)]/2-o[C(n)]/2;return{left:e("x"),top:e("y")}}function X(n){if("string"==typeof n){const t=n.includes("rem")?16:1;return parseFloat(n)*t}return e(n)?n:20}function D(n){return{_id:p(),isNewVersion:!0,type:n,text:"",styles:{},_local:{},coords:{percentX:0,percentY:0}}}function B(n){var t;return n&&(b(n)?["rgb(255, 255, 255)","#ffffff","#fff","#FFFFFF","#FFF","#fed05b","rgb(254, 208, 91)"].includes(n):null===(t=["var(--light)","var(--energized)"].find((t=>t.includes(n))))||void 0===t?void 0:t.length)?"black":"white"}function L(n,t){return Object.assign(Object.assign({},c(n,t.imageSize)),"text"===n.type&&function(n,t){const o=(null==n?void 0:n.fontSize)?"string"==typeof n.fontSize?n.fontSize:`${n.fontSize}px`:j.text.default.toString(),e=(null==n?void 0:n.backgroundColor)||"light";return{fontSize:(null==t?void 0:t.isScaledUp)&&parseFloat(o)>=15?"15px":o,color:"transparent"===e?(null==n?void 0:n.textColor)||"light":B(e),textAlign:(null==n?void 0:n.textAlignment)||"center",backgroundColor:e}}(n.styles,t))}function M(n,t){const o={};return["minX","maxX","minY","maxY"].map((e=>{const l=e.substr(0,3),i=e.substr(3,4).toLocaleLowerCase();o[e]=function(n,t,o){const e=null==n?void 0:n.getBoundingClientRect(),l="min"===o,i=n=>(e[n]+e[C(n)]/2)/t[C(n)],r=n=>e?(l?(n=>e[C(n)]/2-t[C(n)]*i(n))(n)+("y"===n?44:0):(n=>t[C(n)]-(t[C(n)]*i(n)+e[C(n)]/2))(n)-("y"===n?56:0))+t[n]:0;return{x:r("x"),y:r("y")}}(n,t,l)[i]})),o}function S(n,t){if(n&&t){const{top:o,left:e}=k(n,t),i=P(n),r=n=>"x"===n?e:o,u=t=>{var o;return(null===(o=$(n))||void 0===o?void 0:o[t])||0},s=n=>[0-r(n),t[C(n)]-i[C(n)]-r(n)],a=n=>s(n).sort(((t,o)=>Math.abs(t-u(n))-Math.abs(o-u(n))))[0],d=n=>m(u(n),s(n)[0],s(n)[1])?u(n):a(n),c={x:d("x"),y:d("y")};return l(n,y,Object.assign({},c)).then((()=>c))}}function q(n,t){var o,e,i;if(n){const r="dot"===n.type,u=d(n._id,t),s=(null===(e=null===(o=n._local)||void 0===o?void 0:o.transform)||void 0===e?void 0:e.previous)||O;return(null===(i=n._local)||void 0===i?void 0:i.isFocusing)&&"dot"===n.type&&Z(rn(u),!1),u?new Promise((t=>{l(u,y,{x:s.x,y:s.y}).then((()=>{var o;u.classList.remove("focused"),r&&en(u,!1),n=H(n,{isFocusing:!1,transform:{current:s}}),null===(o=$(u))||void 0===o||o.enable(),"text"===n.type&&u.blur(),t()}))})):Promise.resolve()}return Promise.resolve()}function H(n,t){return n?((null==n?void 0:n._local)||Object.assign(n,{_local:{}}),(null==n?void 0:n._local.transform)||Object.assign(n._local,{transform:{}}),n._local.transform&&Object.assign(n._local.transform,t.transform),delete t.transform,n._local=Object.assign(n._local,t),n):null}function V(n,t,e){const i=function(n){return(null==n?void 0:n.length)&&n.find((n=>{var t;return null===(t=null==n?void 0:n._local)||void 0===t?void 0:t.isFocusing}))}(t);return(i&&(null==i?void 0:i._id)!==n._id?q(i,e):Promise.resolve()).then((()=>(n?function(n,t){var o,e;if(n){const i="dot"===(n=H(n,{transform:{previous:(null===(e=null===(o=null==n?void 0:n._local)||void 0===o?void 0:o.transform)||void 0===e?void 0:e.current)||{x:0,y:0}}})).type,r=d(n._id,t),u=t.getBoundingClientRect(),s=r.getBoundingClientRect(),a=n=>{const t="x"===n;return $(r)[n]+u[t?"width":"height"]/2+u[n]-(s[n]+s[t?"width":"height"]/2)},c={x:a("x"),y:a("y")};return r?new Promise((t=>{l(r,y,Object.assign({},c)).then((()=>{var o;r.classList.add("focused"),i&&en(r),n=H(n,{isFocusing:!0,transform:{current:c}}),null===(o=$(r))||void 0===o||o.disable(),t()}))})):Promise.resolve()}return Promise.resolve()}(n,e):Promise.resolve()).then((()=>o(d(null==n?void 0:n._id,e))))))}function G(n){var t;return!(null===(t=null==n?void 0:n.getContext("2d").getImageData(0,0,(null==n?void 0:n.width)||0,(null==n?void 0:n.height)||0))||void 0===t?void 0:t.data.some((n=>n)))}async function J(n,t,o){const e=t=>n?`fade${t}Animation`:`slideY${t}Animation`;var l,i;o=(null==o?void 0:o.length)?o:(null===(i=null===(l=r())||void 0===l?void 0:l.photoAnnotationTranslations)||void 0===i?void 0:i.map((n=>n[u()]||[])))||[];const a=document.createElement("yoo-form-autocomplete-dialog"),d=Object.assign({overlayId:22001},n&&{width:350,height:"small"}),c="hidden-overflow ".concat(n?"abs-center":"");Object.assign(a,{multiple:!0,displayType:"card-list",openFullscreen:!0,showHeaderWeb:!0,values:o}),a.style.width="100%";const v=await s(a,d,c,e("Enter"),e("Leave"),!0);return function(n,t){let o="";return null==n||n.forEach(((t,e)=>{o+=e===n.length-1?t:`${t}\n`})),`${t}${t?"\n":""}${o}`}(null==v?void 0:v.data,t.textContent||"")}function K(n,t){const o=n&&d(n._id,t);return n&&(n._local?n._local.isDeleted=!0:n._local={isDeleted:!0}),o?l(o,.25,{scale:0,onComplete(){o&&t&&t.contains(o)&&t.removeChild(o)}}):Promise.resolve()}function Q(n,t){null==n||n.forEach((n=>K(n,t)))}function R(n,t,o=[]){var e;const{x:i,y:r}=ln(n,t),u=null==o?void 0:o.filter((n=>v(n)&&!f(n)));if(null==t?void 0:t.containerElement.contains(d(null===(e=null==u?void 0:u[0])||void 0===e?void 0:e._id,t.containerElement))){const n=u[0],o=d(n._id,t.containerElement);return o&&(t.moveToTarget?l(o,.25,{left:`${i}%`,top:`${r}%`,onComplete(){n.coords.percentX=i,n.coords.percentY=r}}):K(n,null==t?void 0:t.containerElement)),null}return Object.assign(Object.assign({},D("dot")),{coords:{percentX:i,percentY:r},styles:{backgroundColor:t.color}})}function U(n,t){null==n||n.forEach((n=>!(null==n?void 0:n.text)&&K(n,t)))}function W(n,t){var e;null===(e=null==n?void 0:n.filter((n=>{var t;return(null==n?void 0:n.text)&&!(null===(t=n._local)||void 0===t?void 0:t.isDeleted)})))||void 0===e||e.forEach(((n,e)=>{if(n){const l=d(n._id,t);if(l){const n=l.style.transform;o(l).then((()=>{l.style.transform=n;const t=(e+1).toString(),o=un(l);!o||o.textContent&&t===o.textContent||(o.textContent=t)}))}}}))}async function Z(n,t=!0){if("YOO-TOOLTIP"===(null==n?void 0:n.tagName)){const o=await n.getInstance();o&&!o.state.isDestroyed&&o[(null!=t?t:!o.state.isVisible)?"show":"hide"]()}}function nn(n){null==n||n.forEach((n=>{(null==n?void 0:n.firstElementChild)&&Z(n.firstElementChild,!1)}))}function tn(n,t){const o=rn(t);null==n||n.forEach((n=>{var t;if(null==n?void 0:n.firstElementChild){const e=(null==n?void 0:n.firstElementChild)===o&&!(null===(t=null==o?void 0:o._tippy)||void 0===t?void 0:t.state.isVisible);Z(n.firstElementChild,e)}}))}function on(n,t){if((null==n?void 0:n.detail)&&t){const e=n.detail.value,l=n.detail.refTooltip,i=l.parentElement,r=i.style.transform;return l.content=e,t.text=e,o(i).then((()=>{const n=un(i),o=(u=i.parentElement,"dot",Array.from((null==u?void 0:u.querySelectorAll(".dot"))||[]));var u;return n&&!n.textContent&&o.length&&e&&(n.textContent=o.length.toString()),l.forceEditable=!1,i.style.transform=r,t}))}return Promise.resolve(null)}function en(n,t=!0,o=t){if(n){const e=rn(n);e&&Object.assign(e,{hideOnClick:!t,hoverable:!t,clickable:t,forceEditable:o,editable:t})}}function ln(n,t){if(n&&(null==t?void 0:t.containerElement)){const o=t.containerElement.getBoundingClientRect(),e=e=>n[`client${e.toUpperCase()}`]-(o[e]+t.radius),l=n=>parseFloat((e(n)/(o["x"===n?"width":"height"]+t.radius)*100).toFixed(4));return{x:l("x"),y:l("y")}}}function rn(n){return null==n?void 0:n.querySelector("yoo-tooltip")}function un(n){var t;return null===(t=rn(n))||void 0===t?void 0:t.firstElementChild}function sn(n){null==n||n.forEach(((n,t)=>{var o;un(n)&&(null===(o=rn(n))||void 0===o?void 0:o.content)&&(un(n).textContent=(t+1).toString())}))}export{y as A,w as B,J as C,g as D,H as E,D as F,z as G,x as H,N as I,q as J,O as K,h as L,F as M,S as N,j as S,Q as a,U as b,R as c,K as d,tn as e,on as f,en as g,nn as h,ln as i,rn as j,un as k,sn as l,T as m,Y as n,B as o,L as p,P as q,W as r,Z as s,G as t,_ as u,V as v,M as w,X as x,I as y,A as z}
1
+ import{Q as n,E as t,R as o,S as e,T as l,U as i,j as r,V as u,s}from"./p-a966475f.js";import"./p-4d956bd4.js";import"./p-b5241164.js";import{b as d,g as a,j as c,i as v,a as f}from"./p-9de400aa.js";import{g as p}from"./p-15fd070c.js";import{v as b}from"./p-33b2d3a2.js";import{i as m}from"./p-6b61583e.js";const x={typeTool:"type-tool",brush:"brush",dot:"dot",rubber:"rubber",align:{left:"align-left",center:"align-center",right:"align-right"},background:{on:"background-on",off:"background-off"},close:{cross:"close",left:"left"},predefinedText:"text-predefined",save:"validate",done:"done",cancel:"cancel",undo:"undo",redo:"redo"},y=n()?0:.35,g=18,h=500,O={x:0,y:0},j={text:{min:10,max:35,default:20},draw:{min:1,max:12,default:4}},F={tools:{start:[],end:["brush","dot","type-tool"].map((n=>({icon:n})))},text:{start:["align-center","background-off","text-predefined"].map((n=>({icon:n}))),end:[{text:"YOOBICDONE"}]},draw:{start:["undo","redo"].map((n=>({icon:n}))),end:[{text:"YOOBICDONE"}]},annotate:{start:[{text:"CANCEL"},{icon:"text-predefined"}],end:[{text:"YOOBICDONE"}]}},w={menu:{fill:"transparent",color:"light",size:"medium"},delete:{actionType:"delete",icon:"delete",fill:"solid",color:"danger",size:"large",shape:"square"},validate:{actionType:"validate",fill:"solid",color:"success",size:"large",shape:"rectangular"}};function C(n){return"x"===n?"width":"height"}function k(n,t){const o=o=>t[C(o)]*(parseFloat(n.style["x"===o?"left":"top"])||0)/100;return{top:o("y"),left:o("x")}}function P(n){return null==n?void 0:n.getBoundingClientRect()}function Y(n,t){return null==t?void 0:t.find((t=>(null==t?void 0:t._id)===n))}function $(n,t){const o=n instanceof Node?n:a(n._id,t);return i.get(o)}function E(n,t,o){const e=null==t?void 0:t.getBoundingClientRect();return n&&e?Math.abs((e[o]-n[o])/n[C(o)]*100):0}function T(n,t){if(n&&t){const o=t.getBoundingClientRect(),e=a(n._id,t);if(e&&t.contains(e))return n.isNewVersion=!0,"coords"in n||(n.coords={percentX:0,percentY:0}),n.coords.percentX=E(o,e,"x"),n.coords.percentY=E(o,e,"y"),"text"===n.type&&(n.styles=Object.assign(Object.assign({},n.styles),{responsive:!0})),"percentX"in n&&(delete n.percentX,delete n.percentY),"percent_x"in n&&(delete n.percent_x,delete n.percent_y),"width_height_ratio"in n&&delete n.width_height_ratio,"width"in(null==n?void 0:n.styles)&&delete n.styles.width,n}return null}function N(n,t){return(null==n?void 0:n.map((n=>T(n,t))))||[]}function _(n){return(n||[]).filter((n=>d(n))).map((n=>{var o;delete n._local;const e=(null===(o=null==n?void 0:n.styles)||void 0===o?void 0:o.backgroundColor)||("dot"===n.type?"success":"light");return Object.assign(Object.assign({},n),{_id:(null==n?void 0:n._id)||p(),styles:Object.assign(Object.assign({},n.styles||{}),{backgroundColor:t(e,e)})})}))}function z(n){return(null==n?void 0:n.map((n=>((null==n?void 0:n._local)&&delete n._local,n))))||[]}function A(n,t){if(n&&t){const o=n.getBoundingClientRect(),e=e=>t[C(e)]/2-(o[C(e)]/2+k(n,t)["x"===e?"left":"top"]);return{x:e("x"),y:e("y")}}return{x:0,y:0}}function I(n,t){const o=(null==n?void 0:n.getBoundingClientRect())||{height:46,width:16},e=n=>t[C(n)]/2-o[C(n)]/2;return{left:e("x"),top:e("y")}}function X(n){if("string"==typeof n){const t=n.includes("rem")?16:1;return parseFloat(n)*t}return e(n)?n:20}function D(n){return{_id:p(),isNewVersion:!0,type:n,text:"",styles:{},_local:{},coords:{percentX:0,percentY:0}}}function B(n){var t;return n&&(b(n)?["rgb(255, 255, 255)","#ffffff","#fff","#FFFFFF","#FFF","#fed05b","rgb(254, 208, 91)"].includes(n):null===(t=["var(--light)","var(--energized)"].find((t=>t.includes(n))))||void 0===t?void 0:t.length)?"black":"white"}function L(n,t){return Object.assign(Object.assign({},c(n,t.imageSize)),"text"===n.type&&function(n,t){const o=(null==n?void 0:n.fontSize)?"string"==typeof n.fontSize?n.fontSize:`${n.fontSize}px`:j.text.default.toString(),e=(null==n?void 0:n.backgroundColor)||"light";return{fontSize:(null==t?void 0:t.isScaledUp)&&parseFloat(o)>=15?"15px":o,color:"transparent"===e?(null==n?void 0:n.textColor)||"light":B(e),textAlign:(null==n?void 0:n.textAlignment)||"center",backgroundColor:e}}(n.styles,t))}function M(n,t){const o={};return["minX","maxX","minY","maxY"].map((e=>{const l=e.substr(0,3),i=e.substr(3,4).toLocaleLowerCase();o[e]=function(n,t,o){const e=null==n?void 0:n.getBoundingClientRect(),l="min"===o,i=n=>(e[n]+e[C(n)]/2)/t[C(n)],r=n=>e?(l?(n=>e[C(n)]/2-t[C(n)]*i(n))(n)+("y"===n?44:0):(n=>t[C(n)]-(t[C(n)]*i(n)+e[C(n)]/2))(n)-("y"===n?56:0))+t[n]:0;return{x:r("x"),y:r("y")}}(n,t,l)[i]})),o}function S(n,t){if(n&&t){const{top:o,left:e}=k(n,t),i=P(n),r=n=>"x"===n?e:o,u=t=>{var o;return(null===(o=$(n))||void 0===o?void 0:o[t])||0},s=n=>[0-r(n),t[C(n)]-i[C(n)]-r(n)],d=n=>s(n).sort(((t,o)=>Math.abs(t-u(n))-Math.abs(o-u(n))))[0],a=n=>m(u(n),s(n)[0],s(n)[1])?u(n):d(n),c={x:a("x"),y:a("y")};return l(n,y,Object.assign({},c)).then((()=>c))}}function q(n,t){var o,e,i;if(n){const r="dot"===n.type,u=a(n._id,t),s=(null===(e=null===(o=n._local)||void 0===o?void 0:o.transform)||void 0===e?void 0:e.previous)||O;return(null===(i=n._local)||void 0===i?void 0:i.isFocusing)&&"dot"===n.type&&Z(rn(u),!1),u?new Promise((t=>{l(u,y,{x:s.x,y:s.y}).then((()=>{var o;u.classList.remove("focused"),r&&en(u,!1),n=H(n,{isFocusing:!1,transform:{current:s}}),null===(o=$(u))||void 0===o||o.enable(),"text"===n.type&&u.blur(),t()}))})):Promise.resolve()}return Promise.resolve()}function H(n,t){return n?((null==n?void 0:n._local)||Object.assign(n,{_local:{}}),(null==n?void 0:n._local.transform)||Object.assign(n._local,{transform:{}}),n._local.transform&&Object.assign(n._local.transform,t.transform),delete t.transform,n._local=Object.assign(n._local,t),n):null}function V(n,t,e){const i=function(n){return(null==n?void 0:n.length)&&n.find((n=>{var t;return null===(t=null==n?void 0:n._local)||void 0===t?void 0:t.isFocusing}))}(t);return(i&&(null==i?void 0:i._id)!==n._id?q(i,e):Promise.resolve()).then((()=>(n?function(n,t){var o,e;if(n){const i="dot"===(n=H(n,{transform:{previous:(null===(e=null===(o=null==n?void 0:n._local)||void 0===o?void 0:o.transform)||void 0===e?void 0:e.current)||{x:0,y:0}}})).type,r=a(n._id,t),u=t.getBoundingClientRect(),s=r.getBoundingClientRect(),d=n=>{const t="x"===n;return $(r)[n]+u[t?"width":"height"]/2+u[n]-(s[n]+s[t?"width":"height"]/2)},c={x:d("x"),y:d("y")};return r?new Promise((t=>{l(r,y,Object.assign({},c)).then((()=>{var o;r.classList.add("focused"),i&&en(r),n=H(n,{isFocusing:!0,transform:{current:c}}),null===(o=$(r))||void 0===o||o.disable(),t()}))})):Promise.resolve()}return Promise.resolve()}(n,e):Promise.resolve()).then((()=>o(a(null==n?void 0:n._id,e))))))}function G(n){var t;return!(null===(t=null==n?void 0:n.getContext("2d").getImageData(0,0,(null==n?void 0:n.width)||0,(null==n?void 0:n.height)||0))||void 0===t?void 0:t.data.some((n=>n)))}async function J(n,t,o){const e=t=>n?`fade${t}Animation`:`slideY${t}Animation`;var l,i;o=(null==o?void 0:o.length)?o:(null===(i=null===(l=r())||void 0===l?void 0:l.photoAnnotationTranslations)||void 0===i?void 0:i.map((n=>n[u()]||[])))||[];const d=document.createElement("yoo-form-autocomplete-dialog"),a=Object.assign({overlayId:22001},n&&{width:350,height:"small"}),c="hidden-overflow ".concat(n?"abs-center":"");Object.assign(d,{multiple:!0,displayType:"card-list",openFullscreen:!0,showHeaderWeb:!0,values:o}),d.style.width="100%";const v=await s(d,a,c,e("Enter"),e("Leave"),!0);return function(n,t){let o="";return null==n||n.forEach(((t,e)=>{o+=e===n.length-1?t:`${t}\n`})),`${t}${t?"\n":""}${o}`}(null==v?void 0:v.data,t.textContent||"")}function K(n,t){const o=n&&a(n._id,t);return n&&(n._local?n._local.isDeleted=!0:n._local={isDeleted:!0}),o?l(o,.25,{scale:0,onComplete(){o&&t&&t.contains(o)&&t.removeChild(o)}}):Promise.resolve()}function Q(n,t){null==n||n.forEach((n=>K(n,t)))}function R(n,t,o=[]){var e;const{x:i,y:r}=ln(n,t),u=null==o?void 0:o.filter((n=>v(n)&&!f(n)));if(null==t?void 0:t.containerElement.contains(a(null===(e=null==u?void 0:u[0])||void 0===e?void 0:e._id,t.containerElement))){const n=u[0],o=a(n._id,t.containerElement);return o&&(t.moveToTarget?l(o,.25,{left:`${i}%`,top:`${r}%`,onComplete(){n.coords.percentX=i,n.coords.percentY=r}}):K(n,null==t?void 0:t.containerElement)),null}return Object.assign(Object.assign({},D("dot")),{coords:{percentX:i,percentY:r},styles:{backgroundColor:t.color}})}function U(n,t){null==n||n.forEach((n=>!(null==n?void 0:n.text)&&K(n,t)))}function W(n,t){var e;null===(e=null==n?void 0:n.filter((n=>{var t;return(null==n?void 0:n.text)&&!(null===(t=n._local)||void 0===t?void 0:t.isDeleted)})))||void 0===e||e.forEach(((n,e)=>{if(n){const l=a(n._id,t);if(l){const n=l.style.transform;o(l).then((()=>{l.style.transform=n;const t=(e+1).toString(),o=un(l);!o||o.textContent&&t===o.textContent||(o.textContent=t)}))}}}))}async function Z(n,t=!0){if("YOO-TOOLTIP"===(null==n?void 0:n.tagName)){const o=await n.getInstance();o&&!o.state.isDestroyed&&o[(null!=t?t:!o.state.isVisible)?"show":"hide"]()}}function nn(n){null==n||n.forEach((n=>{(null==n?void 0:n.firstElementChild)&&Z(n.firstElementChild,!1)}))}function tn(n,t){const o=rn(t);null==n||n.forEach((n=>{var t;if(null==n?void 0:n.firstElementChild){const e=(null==n?void 0:n.firstElementChild)===o&&!(null===(t=null==o?void 0:o._tippy)||void 0===t?void 0:t.state.isVisible);Z(n.firstElementChild,e)}}))}function on(n,t){if((null==n?void 0:n.detail)&&t){const e=n.detail.value,l=n.detail.refTooltip,i=l.parentElement,r=i.style.transform;return l.content=e,t.text=e,o(i).then((()=>{const n=un(i),o=(u=i.parentElement,"dot",Array.from((null==u?void 0:u.querySelectorAll(".dot"))||[]));var u;return n&&!n.textContent&&o.length&&e&&(n.textContent=o.length.toString()),l.forceEditable=!1,i.style.transform=r,t}))}return Promise.resolve(null)}function en(n,t=!0,o=t){if(n){const e=rn(n);e&&Object.assign(e,{hideOnClick:!t,hoverable:!t,clickable:t,forceEditable:o,editable:t})}}function ln(n,t){if(n&&(null==t?void 0:t.containerElement)){const o=t.containerElement.getBoundingClientRect(),e=e=>n[`client${e.toUpperCase()}`]-(o[e]+t.radius),l=n=>parseFloat((e(n)/(o["x"===n?"width":"height"]+t.radius)*100).toFixed(4));return{x:l("x"),y:l("y")}}}function rn(n){return null==n?void 0:n.querySelector("yoo-tooltip")}function un(n){var t;return null===(t=rn(n))||void 0===t?void 0:t.firstElementChild}function sn(n){null==n||n.forEach(((n,t)=>{var o;un(n)&&(null===(o=rn(n))||void 0===o?void 0:o.content)&&(un(n).textContent=(t+1).toString())}))}export{y as A,w as B,J as C,g as D,H as E,D as F,z as G,x as H,N as I,q as J,O as K,h as L,F as M,S as N,j as S,Q as a,U as b,R as c,K as d,tn as e,on as f,en as g,nn as h,ln as i,rn as j,un as k,sn as l,T as m,Y as n,B as o,L as p,P as q,W as r,Z as s,G as t,_ as u,V as v,M as w,X as x,I as y,A as z}
@@ -1,4 +1,4 @@
1
- import{r as e,c as r,h as o,g as t}from"./p-c26cc6ff.js";import{c as a,d as i,K as n,bd as l,j as d,bV as s,a1 as c,_ as f,t as p,s as m,b as u,bo as h,bX as g,bY as b,V as v}from"./p-a966475f.js";import"./p-4d956bd4.js";import{g as k,y as x}from"./p-5b484eb7.js";import{r as y}from"./p-1d62332f.js";import{c as w,a as C}from"./p-dbeaa143.js";import"./p-b5241164.js";import{z as L}from"./p-33b2d3a2.js";import{s as z}from"./p-699be64f.js";import{b as A}from"./p-432e8458.js";import{d as T,b as S,i as E,s as F,c as I,a as R}from"./p-30682653.js";import{f as M,v as D,a as B}from"./p-8b07fc6e.js";import"./p-e0d6fbed.js";import"./p-ca8f9900.js";import"./p-cf2b3a56.js";import"./p-935fbfac.js";import"./p-2043b4c7.js";import"./p-0dae56e6.js";import"./p-0bb947fc.js";import"./p-4ae61297.js";import"./p-bdb9f4f1.js";import"./p-12bedee1.js";import"./p-e1378940.js";import"./p-43f71ef3.js";import"./p-a1142cd3.js";import"./p-b5ba03fd.js";import"./p-56bcc009.js";import"./p-baaa30cf.js";import"./p-c5108113.js";import"./p-e3093327.js";import"./p-179b66ff.js";import"./p-ba705441.js";import"./p-cfca4271.js";import"./p-bd19a341.js";import"./p-967f6f1d.js";import"./p-6b61583e.js";var H=a((function(e){
1
+ import{r as e,c as r,h as o,g as t}from"./p-c26cc6ff.js";import{c as a,d as i,K as n,bd as l,j as d,bV as s,a1 as c,_ as f,t as p,s as m,b as u,bo as h,bX as g,bY as b,V as v}from"./p-a966475f.js";import"./p-4d956bd4.js";import{g as k,y as x}from"./p-15fd070c.js";import{r as y}from"./p-9430559f.js";import{c as w,a as C}from"./p-8c8163b6.js";import"./p-b5241164.js";import{z as L}from"./p-33b2d3a2.js";import{s as z}from"./p-7f8ddb27.js";import{b as A}from"./p-432e8458.js";import{d as T,b as S,i as E,s as F,c as I,a as R}from"./p-19a574ce.js";import{f as M,v as D,a as B}from"./p-9229f5bb.js";import"./p-e0d6fbed.js";import"./p-ca8f9900.js";import"./p-cf2b3a56.js";import"./p-935fbfac.js";import"./p-2043b4c7.js";import"./p-0dae56e6.js";import"./p-0bb947fc.js";import"./p-4ae61297.js";import"./p-bdb9f4f1.js";import"./p-12bedee1.js";import"./p-e1378940.js";import"./p-43f71ef3.js";import"./p-a1142cd3.js";import"./p-b5ba03fd.js";import"./p-56bcc009.js";import"./p-baaa30cf.js";import"./p-c5108113.js";import"./p-e3093327.js";import"./p-179b66ff.js";import"./p-ba705441.js";import"./p-cfca4271.js";import"./p-bd19a341.js";import"./p-967f6f1d.js";import"./p-6b61583e.js";var H=a((function(e){
2
2
  /*!
3
3
  * froala_editor v3.2.7 (https://www.froala.com/wysiwyg-editor)
4
4
  * License https://froala.com/wysiwyg-editor/terms/
@@ -1,6 +1,6 @@
1
1
  const videos = ['mp4', 'avi', 'mov', 'm4v', '3gp', '3gpp', 'flv', 'quicktime'];
2
2
  const audios = ['mp3', 'wav', 'm4a', 'aac'];
3
- const images = ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'];
3
+ const images = ['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg', 'tif', 'tiff', 'webp'];
4
4
  const documents = ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'pdf', 'csv', 'txt'];
5
5
  function getExtension(file) {
6
6
  if (file) {
@@ -2,7 +2,7 @@ import { Q as isAnimationsDisabled, E as getCssColor, R as scaleUpAnimation, S a
2
2
  import './input-bar.interface-4e956599.js';
3
3
  import './ResizeObserver.es-a8772c31.js';
4
4
  import { b as isAnnotationValid, g as getElement, j as getAnnotationPositionStyle, i as isAnnotationEmpty, a as isAnnotationDeleted } from './annotations-helpers-d026cd25.js';
5
- import { g as getUUID } from './index-5ebb419e.js';
5
+ import { g as getUUID } from './index-b1a3fcc3.js';
6
6
  import { v as isHexaOrRGBColor } from './common-helpers-f3296dd7.js';
7
7
  import { i as inRange } from './inRange-4b32e66e.js';
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { E as EventType, b as FeedPostType } from './input-bar.interface-4e956599.js';
2
2
  import { t as translate, Y as translateMulti, a1 as compact, aq as dispatchCustomEvent, at as getPermissions, j as getSession, a9 as dateFormat, V as getCurrentLanguage, K as getAsyncExtraData, b as isWeb, E as getCssColor } from './rrule-5a2de9bb.js';
3
3
  import { p as pipes } from './pipe-e40e660a.js';
4
- import { r as replaceAllLinks } from './url-helpers-5aa4360c.js';
4
+ import { r as replaceAllLinks } from './url-helpers-91100b28.js';
5
5
  import { i as isString } from './isString-1673d591.js';
6
6
 
7
7
  const MAX_FORM_TRANSLATE_VALUE = 5000; // Maximum size allow for translating value inside form
@@ -1,10 +1,10 @@
1
1
  import { M as MessageType } from './input-bar.interface-4e956599.js';
2
2
  import { _ as isCloudinaryLink, V as getCurrentLanguage, K as getAsyncExtraData, $ as parseMarkDown, j as getSession, Y as translateMulti, a0 as toDate, t as translate, a1 as compact, a2 as isPhotoEdited } from './rrule-5a2de9bb.js';
3
- import { c as changeExtension, i as isGif } from './index-5ebb419e.js';
3
+ import { c as changeExtension, i as isGif } from './index-b1a3fcc3.js';
4
4
  import { t as toButton } from './button-helpers-72e796f6.js';
5
- import { g as getUserDisplayName, r as replaceAtTagToMentionTag, c as capitalizeFirstLetter } from './entities-helpers-036ae4c5.js';
5
+ import { g as getUserDisplayName, r as replaceAtTagToMentionTag, c as capitalizeFirstLetter } from './entities-helpers-122c20c3.js';
6
6
  import { p as pipes } from './pipe-e40e660a.js';
7
- import { r as replaceAllLinks } from './url-helpers-5aa4360c.js';
7
+ import { r as replaceAllLinks } from './url-helpers-91100b28.js';
8
8
  import { i as isNumber } from './isNumber-5a14c4d5.js';
9
9
 
10
10
  const mentionRegex = /<yoo-mention-tag[^>]*>([\s\S]*?)<\/yoo-mention-tag>/g;
@@ -412,9 +412,9 @@ function checkIfKeyIsInMissionDescription(key, missionDescription, updateKey, is
412
412
  }
413
413
  if (!isKeyPresent || updateKey) {
414
414
  (_a = missionDescription === null || missionDescription === void 0 ? void 0 : missionDescription.slides) === null || _a === void 0 ? void 0 : _a.forEach((slide) => {
415
- isKeyPresent = checkIfKeyIsInPage(fieldNameUpdated, isKeyPresent, key, slide, updateKey, extraKeyCheck);
415
+ ({ fieldNameUpdated, isKeyPresent } = checkIfKeyIsInPage(fieldNameUpdated, isKeyPresent, key, slide, updateKey, extraKeyCheck));
416
416
  });
417
- if (((_b = missionDescription === null || missionDescription === void 0 ? void 0 : missionDescription.scoring) === null || _b === void 0 ? void 0 : _b.length) > 0 && (isScoring) && updateKey) {
417
+ if (((_b = missionDescription === null || missionDescription === void 0 ? void 0 : missionDescription.scoring) === null || _b === void 0 ? void 0 : _b.length) > 0 && (fieldNameUpdated || isScoring) && updateKey) {
418
418
  missionDescription.scoring = missionDescription.scoring.map((score) => {
419
419
  if (key.includes(score.title)) {
420
420
  score.title = updateKey.replace(/%/g, '');
@@ -435,12 +435,15 @@ function checkIfKeyIsInPage(fieldNameUpdated, isKeyPresent, key, slide, updateKe
435
435
  }
436
436
  if (!isKeyPresent || updateKey) {
437
437
  (_a = slide === null || slide === void 0 ? void 0 : slide.items) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
438
- isKeyPresent = checkIfKeyIsInField(fieldNameUpdated, isKeyPresent, key, item, updateKey, extraKeyCheck);
438
+ isKeyPresent = checkIfKeyIsInField(isKeyPresent, key, item, updateKey, extraKeyCheck);
439
+ if (isKeyPresent && !fieldNameUpdated) {
440
+ fieldNameUpdated = item.name;
441
+ }
439
442
  });
440
443
  }
441
- return isKeyPresent;
444
+ return { fieldNameUpdated, isKeyPresent };
442
445
  }
443
- function checkIfKeyIsInField(fieldNameUpdated, isKeyPresent, key, item, updateKey, extraKeyCheck) {
446
+ function checkIfKeyIsInField(isKeyPresent, key, item, updateKey, extraKeyCheck) {
444
447
  var _a, _b, _c, _d, _e, _f, _g;
445
448
  isKeyPresent = isKeyInObject(isKeyPresent, key, TRANSLATABLE_FORM_FIELD_ATTRIBUTES, item, { key: updateKey, blockRemoveSymbol: true });
446
449
  if (!isKeyPresent && extraKeyCheck) {
@@ -1,6 +1,6 @@
1
1
  import { E as getCssColor, ad as getRange } from './rrule-5a2de9bb.js';
2
2
  import './input-bar.interface-4e956599.js';
3
- import { g as getUserDisplayName } from './entities-helpers-036ae4c5.js';
3
+ import { g as getUserDisplayName } from './entities-helpers-122c20c3.js';
4
4
  import { i as inRange } from './inRange-4b32e66e.js';
5
5
 
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { d as IncentiveStatus, a as IncentivePartType, e as IncentiveType } from './input-bar.interface-4e956599.js';
2
2
  import { E as getCssColor, u as isArray, aZ as getContrastColor, as as isFunction, a1 as compact, Y as translateMulti, t as translate, a9 as dateFormat, bi as dateParse, a0 as toDate, aq as dispatchCustomEvent, aG as dateDiff, aH as toHours, bj as utc, a4 as isObject } from './rrule-5a2de9bb.js';
3
3
  import { t as toButton } from './button-helpers-72e796f6.js';
4
- import { e as groupsResolver, i as aclRolesResolver, g as getUserDisplayName } from './entities-helpers-036ae4c5.js';
4
+ import { e as groupsResolver, i as aclRolesResolver, g as getUserDisplayName } from './entities-helpers-122c20c3.js';
5
5
  import { p as pipes, r as round } from './pipe-e40e660a.js';
6
6
  import { s as salesAIGetColorFromPattern, a as salesAIFormatDemand } from './salesai-helpers-82535622.js';
7
7
  import './ResizeObserver.es-a8772c31.js';
@@ -1,10 +1,10 @@
1
1
  import { _ as isCloudinaryLink, P as Cloudinary, M as cleanupWKWebViewImagePath, E as getCssColor } from './rrule-5a2de9bb.js';
2
2
  import './input-bar.interface-4e956599.js';
3
- import { a as isImageUrl } from './index-5ebb419e.js';
3
+ import { a as isImageUrl, b as isBase64 } from './index-b1a3fcc3.js';
4
4
 
5
5
  async function getImageSize(src, onErr) {
6
6
  const img = new Image();
7
- if (src && isImageUrl(src)) {
7
+ if (src && (isImageUrl(src) || isBase64(src))) {
8
8
  img.src = isCloudinaryLink(src) ? new Cloudinary(src).quality('low').getUrl() : src;
9
9
  await new Promise((resolve, reject) => {
10
10
  img.onload = () => resolve(img.width);
@@ -1,7 +1,7 @@
1
1
  import { M as MessageType } from './input-bar.interface-4e956599.js';
2
2
  import { aj as isUnsplashUrl, i as isNativeMobile, M as cleanupWKWebViewImagePath } from './rrule-5a2de9bb.js';
3
- import { e as isMedia, n as isBase64 } from './index-5ebb419e.js';
4
- import { a as isVideo, b as isAudio, e as isDocument, i as isImage } from './document-7259d432.js';
3
+ import { f as isMedia, b as isBase64 } from './index-b1a3fcc3.js';
4
+ import { a as isVideo, b as isAudio, e as isDocument, i as isImage } from './document-29cc0400.js';
5
5
 
6
6
  /**
7
7
  * If type of is a media or not
@@ -1,5 +1,5 @@
1
1
  import { aj as isUnsplashUrl, af as showActionSheet, t as translate, ak as DocumentViewer, al as File$1, _ as isCloudinaryLink, P as Cloudinary, M as cleanupWKWebViewImagePath, i as isNativeMobile, m as isIOS, am as isSamsung, an as showToast, ao as FileTransfer, ap as PhotoLibrary, a3 as isNullOrUndefined, b as isWeb, aq as dispatchCustomEvent, ar as FileOpener, K as getAsyncExtraData, r as isFile } from './rrule-5a2de9bb.js';
2
- import { i as isImage, a as isVideo, b as isAudio, g as getExtension, c as isPdf } from './document-7259d432.js';
2
+ import { i as isImage, a as isVideo, b as isAudio, g as getExtension, c as isPdf } from './document-29cc0400.js';
3
3
  import { v as validate } from './validate-691c9af1.js';
4
4
  import { i as isString } from './isString-1673d591.js';
5
5
 
@@ -1125,4 +1125,4 @@ function removeFileAtPath(path) {
1125
1125
  });
1126
1126
  }
1127
1127
 
1128
- export { updatePathSessionId as A, hasLargeFile as B, isDocumentDownloadSupported as C, openBase64File as D, isDocumentEmailSupported as E, showPdfOnDevice as F, getNativeDirectory as G, fileNativeCheckFile as H, downloadFileToDevice as I, urlToBlob as J, isImageUrl as a, getIconName as b, changeExtension as c, getIconColor as d, isMedia as e, fileHasIcon as f, getUUID as g, getRandomFileName as h, isGif as i, isValid as j, removeFileAtPath as k, saveToLocalFile as l, downloadFile as m, isBase64 as n, blobToBase64 as o, getMimeType as p, read as q, resizeImage as r, showDocumentDownloadOptions as s, toPng as t, urlToFileBlob as u, moveToImageDirectory as v, getDownloadAction as w, b64ToFile as x, getVideoPoster as y, getFormCapturedFileSize as z };
1128
+ export { updatePathSessionId as A, hasLargeFile as B, isDocumentDownloadSupported as C, openBase64File as D, isDocumentEmailSupported as E, showPdfOnDevice as F, getNativeDirectory as G, fileNativeCheckFile as H, downloadFileToDevice as I, urlToBlob as J, isImageUrl as a, isBase64 as b, changeExtension as c, getIconName as d, getIconColor as e, isMedia as f, getUUID as g, fileHasIcon as h, isGif as i, getRandomFileName as j, isValid as k, removeFileAtPath as l, saveToLocalFile as m, downloadFile as n, blobToBase64 as o, getMimeType as p, read as q, resizeImage as r, showDocumentDownloadOptions as s, toPng as t, urlToFileBlob as u, moveToImageDirectory as v, getDownloadAction as w, b64ToFile as x, getVideoPoster as y, getFormCapturedFileSize as z };
@@ -1,7 +1,7 @@
1
1
  import { i as FormCreatorOptions, F as FormFieldType, S as ScoringCategory, A as ALL_MOBILE_FORM_FIELDS } from './input-bar.interface-4e956599.js';
2
2
  import { u as isArray, a3 as isNullOrUndefined, t as translate, Y as translateMulti, a1 as compact } from './rrule-5a2de9bb.js';
3
- import { g as getUUID } from './index-5ebb419e.js';
4
- import { m as getCustomName, f as findField, n as isValueALegacyTranslationKey } from './form-creator-helpers-6372ee83.js';
3
+ import { g as getUUID } from './index-b1a3fcc3.js';
4
+ import { m as getCustomName, f as findField, n as isValueALegacyTranslationKey } from './form-creator-helpers-e288d1e2.js';
5
5
  import { m as generateUniqueKey, n as isTranslationKey } from './form-helpers-1b9c9641.js';
6
6
  import './ResizeObserver.es-a8772c31.js';
7
7
  import { i as isAnnotationEmpty } from './annotations-helpers-d026cd25.js';
package/dist/esm/index.js CHANGED
@@ -11,14 +11,14 @@ export { g as getMediaImageDimensions, p as parseMediaMessageForPhotoEditors, s
11
11
  export { c as changeRgbOpacity } from './color-helpers-03a5e1b1.js';
12
12
  export { A as cloudinary, t as dateRangeState, d as debounceEvent, c as decreaseMaxHeight, e as execHandlerAndStopEvent, p as filterDuplicateItems, k as getActiveElementShadow, f as getAppContext, x as getConfig, h as getNextValueInArray, r as getNotificationIcon, b as getScreenHeight, g as getScreenWidth, w as getSizeModal, j as getWindowHeightRatio, n as hideShowSearchBar, o as hideShowTabbar, v as isHexaOrRGBColor, m as lifecycleEvents, l as loadScript, i as lockSwipes, y as querySelectorAllDeep, z as querySelectorDeep, u as sanitizeHTML, q as setColorSVG, s as showPhotoEditor, a as showSlidesMedia } from './common-helpers-f3296dd7.js';
13
13
  export { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
14
- export { c as createDot, d as deleteDot, a as deleteDots, b as deleteEmptyDots, i as getDotCoordsFromEvent, k as getDotInnerElement, j as getDotToolTipElement, h as hideAllDotTooltips, e as hideAllUnFocusedTooltips, r as reorderDotIndexes, f as saveTooltipContent, g as setDotEditable, l as setDotIndexes, s as showDotTooltip } from './draggable-dots-helpers-f560866a.js';
14
+ export { c as createDot, d as deleteDot, a as deleteDots, b as deleteEmptyDots, i as getDotCoordsFromEvent, k as getDotInnerElement, j as getDotToolTipElement, h as hideAllDotTooltips, e as hideAllUnFocusedTooltips, r as reorderDotIndexes, f as saveTooltipContent, g as setDotEditable, l as setDotIndexes, s as showDotTooltip } from './draggable-dots-helpers-c77468b6.js';
15
15
  export { q as animateTags, d as checkArray, t as dropToZone, f as filterDuplicateEntries, j as getDroppedTagsValues, g as getDuplicatedValue, b as getNewValue, k as getTagZone, e as getTagsValues, i as hasDropZones, a as hasDuplicates, h as hasValuesChanged, p as initTags, u as initZones, n as isDropZoneFull, o as isTagInZone, m as isTagOverlapping, l as isTagsZone, r as resetTags, s as setDynamicTagZoneHeight, c as showWarningAlert } from './draggable-tags-helpers-a104cef1.js';
16
- export { g as groupsFullResolver, o as onUserClick, p as parseEntityCommentsForCardList, b as parseEntityForCardListChat, a as parseEntityForCardMedia, s as sanitizeMentionTag } from './entities-helpers-689506d7.js';
16
+ export { g as groupsFullResolver, o as onUserClick, p as parseEntityCommentsForCardList, b as parseEntityForCardListChat, a as parseEntityForCardMedia, s as sanitizeMentionTag } from './entities-helpers-5ef12ad3.js';
17
17
  export { d as generateLabel, e as getDynamicProperty, f as getJSONHighlighted, g as getTypeValidation, h as initArrayValue, i as isCreationAllowed, c as isDisabled, b as isReadonly, a as isRequired, s as setFieldData, u as updateFormulas } from './form-helpers-63173698.js';
18
18
  export { c as blurActiveElement, d as convertValueForInputType, f as focusContentEditable, e as formatMinMaxDate, i as getFormBottomPosition, g as getTimeDisplayValue, n as initNumber, k as onFocus, h as onIconClicked, m as onInputBlurred, o as onInputClear, l as onInputFocused, j as onValidityChanged, s as setValidator, a as setValueAndResetInputValidity, b as setValueAndValidateInput, t as taskStyle, v as validate } from './form-input-helpers-da854059.js';
19
- export { f as fixParagraphRandomEl, e as fuzzySearch, d as getInsertElementProp, g as getSelection, c as getTagHTML, i as isMentionTag, r as restoreCursorPosition, s as safeInsert, a as safeInsertElements, b as safeReplaceElement } from './form-text-area-helpers-05d980a6.js';
19
+ export { f as fixParagraphRandomEl, e as fuzzySearch, d as getInsertElementProp, g as getSelection, c as getTagHTML, i as isMentionTag, r as restoreCursorPosition, s as safeInsert, a as safeInsertElements, b as safeReplaceElement } from './form-text-area-helpers-eff7814d.js';
20
20
  export { f as formatDistance, g as getGeolocation } from './geolocation-helpers-84299bd6.js';
21
- export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-e341f16c.js';
21
+ export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-6373847f.js';
22
22
  export { g as getIncentiveStatusBadgeSettings, c as getParticipant, a as getPositionText, b as getProgressText, e as getTotalSalesBreakdown, d as getUserScore } from './incentive-helpers-30a3bd55.js';
23
23
  export { g as generateFilterGroups, b as getMapCSSClasses, h as hasSameMarkers, i as isMarkersLayer, a as isSelectedMarkersLayer, c as isWebGLSupported, l as layersFromKeys, s as showDirectionsActionSheet } from './map-helpers-50f15184.js';
24
24
  export { a as intersectionObserve, i as isIntersectionObserverSupported, r as resizeObserve } from './observer-helpers-2c5c0591.js';
@@ -48,8 +48,8 @@ import './_baseGet-b09185bc.js';
48
48
  import './isUndefined-11cbe419.js';
49
49
  import './isNumber-5a14c4d5.js';
50
50
  import './get-3cbd3bd6.js';
51
- import './index-5ebb419e.js';
52
- import './document-7259d432.js';
51
+ import './index-b1a3fcc3.js';
52
+ import './document-29cc0400.js';
53
53
  import './validate-691c9af1.js';
54
54
  import './isString-1673d591.js';
55
55
  import './inRange-4b32e66e.js';
@@ -62,12 +62,12 @@ import './_baseIteratee-4e3745ee.js';
62
62
  import './_baseIsEqual-b74e0d4d.js';
63
63
  import './identity-db011338.js';
64
64
  import './button-helpers-72e796f6.js';
65
- import './entities-helpers-036ae4c5.js';
65
+ import './entities-helpers-122c20c3.js';
66
66
  import './pipe-e40e660a.js';
67
67
  import './toInteger-9e62a9cd.js';
68
68
  import './orderBy-c365859b.js';
69
69
  import './_baseOrderBy-8cdf0a8b.js';
70
- import './url-helpers-5aa4360c.js';
70
+ import './url-helpers-91100b28.js';
71
71
  import './form-helpers-1b9c9641.js';
72
72
  import './video-player-helpers-abeb792d.js';
73
73
  import './_baseFlatten-c79e3f06.js';
@@ -3453,9 +3453,19 @@ function closestElement(selector, base) {
3453
3453
 
3454
3454
  function __closestFrom(el) {
3455
3455
  if (!el || el === getDocument() || el === getWindow()) return null;
3456
+
3457
+ if (el.closest && el.closest(selector)) {
3458
+ return el;
3459
+ }
3460
+
3456
3461
  if (el.assignedSlot) el = el.assignedSlot;
3457
- var found = el.closest(selector) || [];
3458
- return found[0] || __closestFrom(el.getRootNode().host);
3462
+ var found = el.closest(selector);
3463
+
3464
+ if (!found && !el.getRootNode) {
3465
+ return null;
3466
+ }
3467
+
3468
+ return found || __closestFrom(el.getRootNode().host);
3459
3469
  }
3460
3470
 
3461
3471
  return __closestFrom(base);
@@ -3496,7 +3506,7 @@ function onTouchStart(event) {
3496
3506
  var noSwipingSelector = params.noSwipingSelector ? params.noSwipingSelector : "." + params.noSwipingClass;
3497
3507
  var isTargetShadow = !!(e.target && e.target.shadowRoot); // use closestElement for shadow root element to get the actual closest for nested shadow root element
3498
3508
 
3499
- if (params.noSwiping && (isTargetShadow ? closestElement(noSwipingSelector, $targetEl) : $targetEl.closest(noSwipingSelector)[0])) {
3509
+ if (params.noSwiping && (isTargetShadow ? closestElement(noSwipingSelector, $targetEl[0]) : $targetEl.closest(noSwipingSelector)[0])) {
3500
3510
  swiper.allowClick = true;
3501
3511
  return;
3502
3512
  }
@@ -1,5 +1,5 @@
1
1
  import { i as isNativeMobile } from './rrule-5a2de9bb.js';
2
- import { i as isImage, a as isVideo } from './document-7259d432.js';
2
+ import { i as isImage, a as isVideo } from './document-29cc0400.js';
3
3
 
4
4
  const urlDomainRegex = /((https?|ftps?):\/\/[^"<\s)]+)(?![^<>]*>|[^"]*?<\/\\a)/gi;
5
5
  const urlRegex = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
@@ -5,26 +5,26 @@ import { S as ScreenOrientation } from './ResizeObserver.es-a8772c31.js';
5
5
  import { r as removeLastOverlay, c as createOverlay, d as dismissOverlay, g as getTopOverlay } from './overlays-e088e41d.js';
6
6
  import { f as getAppContext, r as getNotificationIcon, e as execHandlerAndStopEvent, z as querySelectorDeep, x as getConfig, y as querySelectorAllDeep } from './common-helpers-f3296dd7.js';
7
7
  import { t as toggleElementTapped } from './card-list-helpers-4e01192d.js';
8
- import { t as toPng, b as getIconName, d as getIconColor, e as isMedia, f as fileHasIcon, h as getRandomFileName, j as isValid, r as resizeImage, s as showDocumentDownloadOptions } from './index-5ebb419e.js';
8
+ import { t as toPng, d as getIconName, e as getIconColor, f as isMedia, h as fileHasIcon, j as getRandomFileName, k as isValid, r as resizeImage, s as showDocumentDownloadOptions } from './index-b1a3fcc3.js';
9
9
  import { i as isPlanInFuture, g as getLessonTypeIcon, a as getPlanDueDate } from './boost-helpers-ae1115e2.js';
10
10
  import { t as toButton } from './button-helpers-72e796f6.js';
11
- import { g as getUserDisplayName, a as getMediaSrcAndType, b as getCardFeedEntryFromFeed, d as getCardFeedEntryFromQuestion, e as groupsResolver, f as getEventConfigsFromEvent, r as replaceAtTagToMentionTag, h as getRoleTitle } from './entities-helpers-036ae4c5.js';
11
+ import { g as getUserDisplayName, a as getMediaSrcAndType, b as getCardFeedEntryFromFeed, d as getCardFeedEntryFromQuestion, e as groupsResolver, f as getEventConfigsFromEvent, r as replaceAtTagToMentionTag, h as getRoleTitle } from './entities-helpers-122c20c3.js';
12
12
  import { j as getMobileFieldIcon, k as isFieldWithNoValue } from './form-helpers-1b9c9641.js';
13
13
  import { p as pipes } from './pipe-e40e660a.js';
14
14
  import { b as getWorkflowProgress, c as getUserTags, d as getDashboardTags } from './operation-helpers-0af202b3.js';
15
- import { r as replaceAllLinks, g as getURLs } from './url-helpers-5aa4360c.js';
16
- import { b as parseEntityForCardListChat, p as parseEntityCommentsForCardList, a as parseEntityForCardMedia, o as onUserClick } from './entities-helpers-689506d7.js';
15
+ import { r as replaceAllLinks, g as getURLs } from './url-helpers-91100b28.js';
16
+ import { b as parseEntityForCardListChat, p as parseEntityCommentsForCardList, a as parseEntityForCardMedia, o as onUserClick } from './entities-helpers-5ef12ad3.js';
17
17
  import { g as getIncentiveStatusBadgeSettings } from './incentive-helpers-30a3bd55.js';
18
18
  import { a as getMissionStateTags, c as getMissionUniqueKey, m as getCampaignStateTags, g as getCampaignTemplateTags, e as getMissionDataStateTags, j as getWaitlistVisitTags, f as getProductBatchDateTag, i as getProductBatchProgressColor } from './operation-helpers-d3996895.js';
19
19
  import { c as createThemedClasses } from './theme-a67283b7.js';
20
20
  import { k as keys } from './keys-ec469112.js';
21
21
  import { i as isNumber } from './isNumber-5a14c4d5.js';
22
- import { d as getType, a as isVideo, i as isImage, c as isPdf } from './document-7259d432.js';
22
+ import { d as getType, a as isVideo, i as isImage, c as isPdf } from './document-29cc0400.js';
23
23
  import { i as isString } from './isString-1673d591.js';
24
24
  import { c as createAggregator } from './_createAggregator-8d09e764.js';
25
25
  import { g as get } from './get-3cbd3bd6.js';
26
26
  import { s as setValidator, i as getFormBottomPosition, b as setValueAndValidateInput, v as validate, n as initNumber, d as convertValueForInputType, h as onIconClicked, o as onInputClear, m as onInputBlurred, l as onInputFocused } from './form-input-helpers-da854059.js';
27
- import { g as getRenderer } from './grid-renderers-4eff4ce9.js';
27
+ import { g as getRenderer } from './grid-renderers-ad52eacd.js';
28
28
  import { g as getFromLocalForage, b as getKeyToCache } from './localForage-fb0baf03.js';
29
29
  import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
30
30
  import './isUndefined-11cbe419.js';
@@ -3,7 +3,7 @@ import { aJ as eq, u as isArray$1, a4 as isObject$2, as as isFunction$2, aO as b
3
3
  import { E as EventType, x as TLessonState, F as FormFieldType, a as IncentivePartType, y as FormFilterAutocompleteOperator, W as WaitlistAPIDateFormat } from './input-bar.interface-4e956599.js';
4
4
  import { i as isLessonCompleted, c as canBeRetried, S as ScreenOrientation } from './ResizeObserver.es-a8772c31.js';
5
5
  import { f as getAppContext, l as loadScript, z as querySelectorDeep, B as setAnimation, e as execHandlerAndStopEvent, s as showPhotoEditor, q as setColorSVG, E as EMPTYSTATE_MAP, y as querySelectorAllDeep, i as lockSwipes, k as getActiveElementShadow, o as hideShowTabbar, u as sanitizeHTML, n as hideShowSearchBar, h as getNextValueInArray, D as EMPTYSTATE_TEXT_MAP, F as EMPTYSTATE_TITLE_MAP, p as filterDuplicateItems, C as animations, A as cloudinary, m as lifecycleEvents } from './common-helpers-f3296dd7.js';
6
- import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-4eff4ce9.js';
6
+ import { a as getKeyTemplate, p as progressValue, v as validationProgressValue, c as conformityProgressValue, b as conformityRelativeProgressValue, g as getRenderer } from './grid-renderers-ad52eacd.js';
7
7
  import { i as identity$4 } from './identity-db011338.js';
8
8
  import { i as isNumber$1 } from './isNumber-5a14c4d5.js';
9
9
  import { j as baseSum, a as isRequired, g as getTypeValidation, b as isReadonly, s as setFieldData, u as updateFormulas, e as getDynamicProperty, c as isDisabled, d as generateLabel, i as isCreationAllowed } from './form-helpers-63173698.js';
@@ -16,18 +16,18 @@ import { g as get$1 } from './get-3cbd3bd6.js';
16
16
  import { i as isPlainObject$1, o as omit } from './omit-9704f658.js';
17
17
  import { i as isString$1 } from './isString-1673d591.js';
18
18
  import { h as hasSameMarkers, g as generateFilterGroups, l as layersFromKeys, s as showDirectionsActionSheet, c as isWebGLSupported, b as getMapCSSClasses, i as isMarkersLayer, a as isSelectedMarkersLayer } from './map-helpers-50f15184.js';
19
- import { c as changeExtension, g as getUUID, e as isMedia, m as downloadFile, i as isGif, w as getDownloadAction, C as isDocumentDownloadSupported, s as showDocumentDownloadOptions, n as isBase64, D as openBase64File, t as toPng, b as getIconName, d as getIconColor, E as isDocumentEmailSupported, F as showPdfOnDevice, G as getNativeDirectory, H as fileNativeCheckFile, I as downloadFileToDevice, J as urlToBlob, y as getVideoPoster } from './index-5ebb419e.js';
19
+ import { c as changeExtension, g as getUUID, f as isMedia, n as downloadFile, i as isGif, w as getDownloadAction, C as isDocumentDownloadSupported, s as showDocumentDownloadOptions, b as isBase64, D as openBase64File, t as toPng, d as getIconName, e as getIconColor, E as isDocumentEmailSupported, F as showPdfOnDevice, G as getNativeDirectory, H as fileNativeCheckFile, I as downloadFileToDevice, J as urlToBlob, y as getVideoPoster } from './index-b1a3fcc3.js';
20
20
  import { a as getFromOfflineStorage, g as getFromLocalForage, b as getKeyToCache } from './localForage-fb0baf03.js';
21
- import { g as getUserDisplayName, r as replaceAtTagToMentionTag, k as hasAttachment, c as capitalizeFirstLetter$1 } from './entities-helpers-036ae4c5.js';
21
+ import { g as getUserDisplayName, r as replaceAtTagToMentionTag, k as hasAttachment, c as capitalizeFirstLetter$1 } from './entities-helpers-122c20c3.js';
22
22
  import { p as pipes } from './pipe-e40e660a.js';
23
23
  import { a as getPlanDueDate, h as getPlanStartDate, i as isPlanInFuture, j as isPlanRatingEnabled, s as showRatingDialog, b as isContentOnly, g as getLessonTypeIcon, f as isQuiz, k as isTimedQuiz, l as isConfidenceAssesment } from './boost-helpers-ae1115e2.js';
24
24
  import { k as isFieldWithNoValue, b as getFieldValue, s as slenderizeObject, q as isVisible$1, r as hasValue, u as updateDatasetFilters, o as answerIsValid, c as getFieldReplacement, e as evalInContext } from './form-helpers-1b9c9641.js';
25
- import { r as replaceAllLinks, c as containsUrls, a as replaceAndGetAllLinks, g as getURLs, i as isDeeplink } from './url-helpers-5aa4360c.js';
25
+ import { r as replaceAllLinks, c as containsUrls, a as replaceAndGetAllLinks, g as getURLs, i as isDeeplink } from './url-helpers-91100b28.js';
26
26
  import { i as isIntersectionObserverSupported, a as intersectionObserve, r as resizeObserve } from './observer-helpers-2c5c0591.js';
27
27
  import { g as getButton } from './button.factory-c764da60.js';
28
28
  import { i as isEmpty } from './isEmpty-7879f636.js';
29
29
  import { t as toggleElementTapped, a as addTapped, r as removeTapped } from './card-list-helpers-4e01192d.js';
30
- import { a as isVideo, i as isImage$1, d as getType, e as isDocument, g as getExtension, b as isAudio } from './document-7259d432.js';
30
+ import { a as isVideo, i as isImage$1, d as getType, e as isDocument, g as getExtension, b as isAudio } from './document-29cc0400.js';
31
31
  import { S as Stack } from './_Uint8Array-9144b14c.js';
32
32
  import { b as baseAssignValue } from './_baseAssignValue-312f346a.js';
33
33
  import { c as copyObject, k as keysIn, e as cloneBuffer, f as cloneTypedArray, i as initCloneObject } from './_baseClone-e5fd6937.js';
@@ -46,7 +46,7 @@ import { d as difference } from './difference-f1f65a93.js';
46
46
  import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
47
47
  import { T as TodoListMode, I as ItemSlidingType } from './card-video.interface-5de361ba.js';
48
48
  import { d as isPhotoOrMultiPhotosField, e as isListField, f as filterListByText, g as isMapField, a as isDateTimeField } from './filters-helpers-51aea915.js';
49
- import { f as findField } from './form-creator-helpers-6372ee83.js';
49
+ import { f as findField } from './form-creator-helpers-e288d1e2.js';
50
50
  import { h as getMissionStatusIconName, d as getMissionColor } from './operation-helpers-d3996895.js';
51
51
  import { c as castPath, t as toKey } from './_baseGet-b09185bc.js';
52
52
  import { t as toInteger } from './toInteger-9e62a9cd.js';
@@ -57,15 +57,15 @@ import { p as pick } from './pick-c336cea6.js';
57
57
  import { t as toButton } from './button-helpers-72e796f6.js';
58
58
  import { a as getNextRecurrences } from './index-984bb99a.js';
59
59
  import { r as remove } from './remove-ecc59e7c.js';
60
- import { d as getInsertElementProp, s as safeInsert, r as restoreCursorPosition, f as fixParagraphRandomEl, b as safeReplaceElement, i as isMentionTag, c as getTagHTML, a as safeInsertElements } from './form-text-area-helpers-05d980a6.js';
60
+ import { d as getInsertElementProp, s as safeInsert, r as restoreCursorPosition, f as fixParagraphRandomEl, b as safeReplaceElement, i as isMentionTag, c as getTagHTML, a as safeInsertElements } from './form-text-area-helpers-eff7814d.js';
61
61
  import { T as TapticEngine } from './index-c8ac157e.js';
62
62
  import { S as Sortable } from './sortable.esm-e5d5ca49.js';
63
63
  import { m as map$1 } from './map-55451e6b.js';
64
64
  import { i as isBoolean } from './isBoolean-80d45d8d.js';
65
65
  import { c as createThemedClasses, a as createColorClasses, h as hostContext } from './theme-a67283b7.js';
66
- import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-e341f16c.js';
66
+ import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-6373847f.js';
67
67
  import { a as isAnnotationDeleted, b as isAnnotationValid, g as getElement$1, c as isAnnotationFocused, i as isAnnotationEmpty, k as isElementInsideContainer, d as getPointerCoordinates } from './annotations-helpers-d026cd25.js';
68
- import { o as getDefaultAnnotationTextColor, f as saveTooltipContent, p as getAnnotationStyle, B as BUTTONS_CONFIG, A as ANIMATION_DELAY, q as getBoundingClient, t as isCanvasBlank, M as MENU_ITEMS, j as getDotToolTipElement, k as getDotInnerElement, S as SLIDER_THRESHOLD, L as LOADING_DELAY, u as prepareAnnotationsData, l as setDotIndexes, v as focusAnnotation, w as getAnnotationDraggableBounds, x as getFormattedAnnotationSize, y as getAbsoluteCenter, z as getRelativeCenter, C as showPredefinedTextsDialog, c as createDot, D as DOT_RADIUS, E as updateAnnotationLocal, F as createBaseAnnotation, G as removeLocalsFromAnnotations, H as EEditorActions, s as showDotTooltip, I as formatAnnotationsForExport, h as hideAllDotTooltips, J as deCenterAnnotation, n as getAnnotation, K as INIT_COORDS, N as setAnnotationPositionToClosestEdge } from './draggable-dots-helpers-f560866a.js';
68
+ import { o as getDefaultAnnotationTextColor, f as saveTooltipContent, p as getAnnotationStyle, B as BUTTONS_CONFIG, A as ANIMATION_DELAY, q as getBoundingClient, t as isCanvasBlank, M as MENU_ITEMS, j as getDotToolTipElement, k as getDotInnerElement, S as SLIDER_THRESHOLD, L as LOADING_DELAY, u as prepareAnnotationsData, l as setDotIndexes, v as focusAnnotation, w as getAnnotationDraggableBounds, x as getFormattedAnnotationSize, y as getAbsoluteCenter, z as getRelativeCenter, C as showPredefinedTextsDialog, c as createDot, D as DOT_RADIUS, E as updateAnnotationLocal, F as createBaseAnnotation, G as removeLocalsFromAnnotations, H as EEditorActions, s as showDotTooltip, I as formatAnnotationsForExport, h as hideAllDotTooltips, J as deCenterAnnotation, n as getAnnotation, K as INIT_COORDS, N as setAnnotationPositionToClosestEdge } from './draggable-dots-helpers-c77468b6.js';
69
69
  import { i as inRange } from './inRange-4b32e66e.js';
70
70
  import { s as setupHammer, h as hammerTypes, b as isBottomSwipe, i as isTopSwipe, c as isRightSwipe, d as isLeftSwipe, a as hammerDirections } from './hammer-gestures-3023c759.js';
71
71
  import { p as present, d as dismiss } from './overlays-798eeacc.js';
@@ -189607,7 +189607,7 @@ const YooIonSlidesComponent = class {
189607
189607
  async initSwiper() {
189608
189608
  const finalOptions = this.normalizeOptions();
189609
189609
  // init swiper core
189610
- const { Swiper } = await import('./swiper-7961589d.js');
189610
+ const { Swiper } = await import('./swiper-1b6d2ffa.js');
189611
189611
  this.waitForSlidesLoaded && await waitForSlides(this.el);
189612
189612
  const swiper = new Swiper(this.el, finalOptions);
189613
189613
  this.swiperReady = true;
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-27314512.js';
2
2
  import { bn as keepAwake, i as isNativeMobile, bo as closeModal, t as translate, o as getMediaDevices } from './rrule-5a2de9bb.js';
3
3
  import './input-bar.interface-4e956599.js';
4
- import { k as removeFileAtPath, l as saveToLocalFile } from './index-5ebb419e.js';
4
+ import { l as removeFileAtPath, m as saveToLocalFile } from './index-b1a3fcc3.js';
5
5
  import { p as pipes } from './pipe-e40e660a.js';
6
6
  import './ResizeObserver.es-a8772c31.js';
7
7
  import { f as getAppContext } from './common-helpers-f3296dd7.js';
8
- import './document-7259d432.js';
8
+ import './document-29cc0400.js';
9
9
  import './validate-691c9af1.js';
10
10
  import './isString-1673d591.js';
11
11
  import './toInteger-9e62a9cd.js';