@cling-se/widget 0.17.0 → 1.0.0-beta.2

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 (232) hide show
  1. package/dist/AddClientCallout-e8d19R3f.js +101 -0
  2. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  3. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  4. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  5. package/dist/BlockMedia-CW5wgipC.js +103 -0
  6. package/dist/CCallout-Cy2eeIYd.js +104 -0
  7. package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
  8. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  9. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  10. package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  11. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  12. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  13. package/dist/CSelect-DgnT07Hk.js +98 -0
  14. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  15. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  16. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  17. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  18. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  19. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  20. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  21. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  22. package/dist/DocDetails-CStEwWnU.js +448 -0
  23. package/dist/DocForm-BOoILf5E.js +6748 -0
  24. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  25. package/dist/DocLinks-BRX5QzNe.js +36 -0
  26. package/dist/DocModalBase-D72yWj-x.js +29 -0
  27. package/dist/DocPrint-BI1LXUPE.js +399 -0
  28. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  29. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  30. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  31. package/dist/DocTimeline-DCwofzuk.js +537 -0
  32. package/dist/DocumentClient-vJdxCB53.js +90 -0
  33. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  34. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  35. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  36. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  37. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  38. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  39. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  40. package/dist/Flag-BwTgCNHO.js +41 -0
  41. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  42. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  43. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  44. package/dist/Index-0_3ULrWX.js +126 -0
  45. package/dist/Index-4NPe0sfX.js +629 -0
  46. package/dist/Index-B1uA0FF6.js +4 -0
  47. package/dist/Index-BBkCYm2q.js +201 -0
  48. package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
  49. package/dist/Index-BEMlsYwJ.js +68 -0
  50. package/dist/Index-BRBhJ6kz.js +21 -0
  51. package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
  52. package/dist/Index-BcUNnxLC.js +1098 -0
  53. package/dist/Index-Bo6ExBUL.js +93 -0
  54. package/dist/Index-BvMPCgdH.js +102 -0
  55. package/dist/Index-Bx5TOI9k.js +74 -0
  56. package/dist/Index-C7GZS8EI.js +16 -0
  57. package/dist/Index-CNWhm07R.js +25 -0
  58. package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
  59. package/dist/Index-CRzsnIij.js +159 -0
  60. package/dist/Index-CeSG1C41.js +140 -0
  61. package/dist/Index-CjfjdZj5.js +52 -0
  62. package/dist/Index-CskKmZpd.js +363 -0
  63. package/dist/Index-D5qwbCo1.js +28 -0
  64. package/dist/Index-D8Ae1Txt.js +228 -0
  65. package/dist/Index-DE8aenDB.js +3452 -0
  66. package/dist/Index-DI5EB5Rt.js +39 -0
  67. package/dist/Index-DaV57YPP.js +163 -0
  68. package/dist/Index-DbwkmoyM.js +38 -0
  69. package/dist/Index-Df9skok6.js +70 -0
  70. package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
  71. package/dist/Index-Dw1CO5F9.js +76 -0
  72. package/dist/Index-PZXyOoVb.js +87 -0
  73. package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
  74. package/dist/Index-cjKGSiDi.js +136 -0
  75. package/dist/Index-m-goRuKD.js +49 -0
  76. package/dist/Index-rGeWbLcB.js +47 -0
  77. package/dist/Index-vrljNp6G.js +28 -0
  78. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  79. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  80. package/dist/ManualPopover-BONBJIUA.js +57 -0
  81. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  82. package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
  83. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  84. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  85. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  86. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  87. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  88. package/dist/SearchApi-B7lXgUY6.js +137 -0
  89. package/dist/SendForm-BcD0xSvB.js +7031 -0
  90. package/dist/Setup-C2qaYDei.js +47 -0
  91. package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
  92. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  93. package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
  94. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  95. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  96. package/dist/UploadModal-C_X2NjVY.js +134 -0
  97. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  98. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  99. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  100. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  101. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  102. package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
  103. package/dist/dom-CkTGWrfu.js +69 -0
  104. package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  105. package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
  106. package/dist/helpers-CPW--XIz.js +44 -0
  107. package/dist/index-BjiGCJPI.js +149 -0
  108. package/dist/index-CFNv6OvX.js +188 -0
  109. package/dist/index-Cx71On5Z.js +508 -0
  110. package/dist/index-DKMxIBz_.js +270 -0
  111. package/dist/index-DKf5SGLD.js +125 -0
  112. package/dist/index-E32WgUp9.js +3525 -0
  113. package/dist/index-kp-GC5I0.js +513 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +285 -1485
  116. package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
  117. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  118. package/dist/omit--YYr41Xp.js +31 -0
  119. package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
  120. package/dist/splitpanes-D-ThFkeR.js +342 -0
  121. package/dist/style.css +1 -4
  122. package/dist/template-BvaNnq-g.js +1493 -0
  123. package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
  124. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  125. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  126. package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
  127. package/dist/validation-DOcUOoMe.js +40 -0
  128. package/package.json +18 -21
  129. package/dist/AddClientCallout-BJzBdba1.js +0 -48
  130. package/dist/AnswerModal-frHq1g4s.js +0 -3874
  131. package/dist/AttachmentItem-BaN0OrEV.js +0 -85
  132. package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
  133. package/dist/BaseUpload-CY3lTcte.js +0 -1977
  134. package/dist/BlockMedia-Bb5wQIDg.js +0 -76
  135. package/dist/CCallout-5quI6yyk.js +0 -58
  136. package/dist/CDropdownItem-CaoSQX6X.js +0 -640
  137. package/dist/CFormField-Dd2Y71JG.js +0 -240
  138. package/dist/CPhoneInput-BU1t6eo_.js +0 -138
  139. package/dist/CPriceInput-pv2aIVkH.js +0 -116
  140. package/dist/CSelect-CrM45B7V.js +0 -91
  141. package/dist/CSkeleton-BkvONMqL.js +0 -55
  142. package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
  143. package/dist/ClientModal-CvHAptV2.js +0 -666
  144. package/dist/ColorPicker-RgoXRrud.js +0 -2879
  145. package/dist/CompanyModal-OL4bD9Gk.js +0 -147
  146. package/dist/ContentWrapper-8HduCnR4.js +0 -190
  147. package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
  148. package/dist/DocAnswer-DiyFfpT2.js +0 -36
  149. package/dist/DocDetails-BxNRfBnK.js +0 -263
  150. package/dist/DocForm-MGp-o0pu.js +0 -5017
  151. package/dist/DocFormSend-q_QuVCqh.js +0 -146
  152. package/dist/DocLinks-DGDdp30U.js +0 -38
  153. package/dist/DocModalBase-qG4RqwBn.js +0 -28
  154. package/dist/DocPrint-Cln3kt0g.js +0 -240
  155. package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
  156. package/dist/DocSendReminder-B3qdqduf.js +0 -140
  157. package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
  158. package/dist/DocTimeline-CgKHoDcG.js +0 -485
  159. package/dist/DocumentClient-UZlnIlz5.js +0 -136
  160. package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
  161. package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
  162. package/dist/DocumentVoided-BXYNrf_6.js +0 -25
  163. package/dist/EmbedInput-YRUrw3c6.js +0 -117
  164. package/dist/EmbedSettings-DvRreF7H.js +0 -74
  165. package/dist/ErrorCallout-DVknpLVY.js +0 -27
  166. package/dist/FilePreviewModal-DC56FaGy.js +0 -81
  167. package/dist/Flag-D5iZLESg.js +0 -46
  168. package/dist/HeaderSettings-DXZnZL7A.js +0 -440
  169. package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
  170. package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
  171. package/dist/Index-B1dJO6Bk.js +0 -54
  172. package/dist/Index-B3pz1coY.js +0 -150
  173. package/dist/Index-BHgW8EHW.js +0 -2446
  174. package/dist/Index-BNucs2O-.js +0 -154
  175. package/dist/Index-BW-EtZ1z.js +0 -55
  176. package/dist/Index-BjKACpun.js +0 -66
  177. package/dist/Index-C94BL4uU.js +0 -294
  178. package/dist/Index-CB57haU8.js +0 -58
  179. package/dist/Index-CP17iXT6.js +0 -25
  180. package/dist/Index-CUSbvjoD.js +0 -62
  181. package/dist/Index-CVnD6jo5.js +0 -25
  182. package/dist/Index-Ci5zdPeT.js +0 -28
  183. package/dist/Index-CikqSMjb.js +0 -41
  184. package/dist/Index-CxO4tJ3U.js +0 -26
  185. package/dist/Index-D4J4BpHd.js +0 -230
  186. package/dist/Index-DAQQQlut.js +0 -754
  187. package/dist/Index-DNxSR72J.js +0 -73
  188. package/dist/Index-DPuKRwmu.js +0 -41
  189. package/dist/Index-DSy8QG8T.js +0 -32
  190. package/dist/Index-DX6_D-J-.js +0 -77
  191. package/dist/Index-Dk0KaIKg.js +0 -643
  192. package/dist/Index-Hkzoh9QR.js +0 -24
  193. package/dist/Index-KsHJxWAa.js +0 -94
  194. package/dist/Index-TtItTuv6.js +0 -33
  195. package/dist/Index-YAD39Qvg.js +0 -146
  196. package/dist/Index-eh909lAz.js +0 -107
  197. package/dist/Index-otowKI_C.js +0 -56
  198. package/dist/Index-t_oVV8Rc.js +0 -84
  199. package/dist/Index-vG96oEXZ.js +0 -144
  200. package/dist/InputToggleRow-CcqJDguN.js +0 -57
  201. package/dist/ManualPopover-BE2IN-XU.js +0 -60
  202. package/dist/MediaWrapper-lnGUFiyc.js +0 -23
  203. package/dist/PackageGroup-BsmxOMLW.js +0 -704
  204. package/dist/PdfTerms-BgYwZoAZ.js +0 -31
  205. package/dist/PdfViewer-C0lDpjte.js +0 -383
  206. package/dist/PlainHtml-5YwYVj1v.js +0 -27
  207. package/dist/PriceHeader-CxqhpGS-.js +0 -338
  208. package/dist/SearchApi-BndaIbri.js +0 -161
  209. package/dist/SendForm-D7U9fG-5.js +0 -1023
  210. package/dist/Setup-CmAK2_ZT.js +0 -50
  211. package/dist/ThemeColorRow-BlnhzebY.js +0 -69
  212. package/dist/ToggleBinding-t_58JFya.js +0 -42
  213. package/dist/UploadModal-T-WpYNsN.js +0 -95
  214. package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
  215. package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
  216. package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
  217. package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
  218. package/dist/dom-CWsqMElk.js +0 -71
  219. package/dist/formValidationMixin-WZ2lGndu.js +0 -49
  220. package/dist/index-B2l57ilt.js +0 -102
  221. package/dist/index-COKDjmM2.js +0 -167
  222. package/dist/index-HtKGcIng.js +0 -2700
  223. package/dist/index-LQ7NztTt.js +0 -81
  224. package/dist/index-fx5gR8fM.js +0 -351
  225. package/dist/index-zXXJrTvv.js +0 -492
  226. package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
  227. package/dist/omit-ScS7B6c5.js +0 -31
  228. package/dist/simplebar.min-B0cB_p8g.js +0 -71
  229. package/dist/splitpanes-BHUVsCZF.js +0 -382
  230. package/dist/tippy.esm-CR89mtdY.js +0 -1805
  231. package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -0,0 +1,76 @@
1
+ import { m as a } from "./mapFormMixin-D3BihYWW.js";
2
+ import { I as u } from "./InputToggleRow-v6qAWPg6.js";
3
+ import { C as f } from "./CSelect-DgnT07Hk.js";
4
+ import { _ as T, b as l, o as c, c as U, w as m, e as s, s as n, v as i } from "./main-Cb-nyil1.js";
5
+ const h = {
6
+ i18nOptions: {
7
+ namespaces: "estimatedTimeToCompleteText",
8
+ messages: {
9
+ en: {
10
+ label: "Time to complete work",
11
+ placeholder: "Time unit"
12
+ },
13
+ sv: {
14
+ label: "Tid för att klargöra arbetet",
15
+ placeholder: "Tidsenhet"
16
+ }
17
+ }
18
+ },
19
+ name: "EstimatedTimeToCompleteEdit",
20
+ components: {
21
+ InputToggleRow: u,
22
+ CSelect: f
23
+ },
24
+ mixins: [
25
+ a(["timeUnit"]),
26
+ a(["noOfTimeUnits"], { type: "number" })
27
+ ],
28
+ created() {
29
+ this.timeUnit || (this.timeUnit = "day");
30
+ }
31
+ }, $ = { value: "hour" }, w = { value: "day" }, v = { value: "week" }, b = { value: "month" };
32
+ function y(e, o, C, _, g, O) {
33
+ const p = l("CSelect"), r = l("CInput"), d = l("InputToggleRow");
34
+ return c(), U(d, {
35
+ "display-value": e.noOfTimeUnits && e.timeUnit ? `${e.noOfTimeUnits} ${e.$t(`_common:${e.timeUnit}`, {
36
+ count: e.noOfTimeUnits
37
+ })}` : e.$t("_common:add"),
38
+ label: e.$t("label"),
39
+ "show-clear": !!(e.noOfTimeUnits && e.timeUnit),
40
+ onRemove: o[2] || (o[2] = (t) => e.noOfTimeUnits = null)
41
+ }, {
42
+ default: m(() => [
43
+ s(r, {
44
+ modelValue: e.noOfTimeUnits,
45
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => e.noOfTimeUnits = t),
46
+ modelModifiers: { number: !0 },
47
+ type: "number",
48
+ style: { width: "calc(15 * var(--rem))" }
49
+ }, {
50
+ suffix: m(() => [
51
+ s(p, {
52
+ modelValue: e.timeUnit,
53
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => e.timeUnit = t),
54
+ placeholder: e.$t("placeholder"),
55
+ class: "select-width plain",
56
+ style: { width: "120px" }
57
+ }, {
58
+ default: m(() => [
59
+ n("option", $, i(e.$t("_common:hour_plural")), 1),
60
+ n("option", w, i(e.$t("_common:day_plural")), 1),
61
+ n("option", v, i(e.$t("_common:week_plural")), 1),
62
+ n("option", b, i(e.$t("_common:month_plural")), 1)
63
+ ]),
64
+ _: 1
65
+ }, 8, ["modelValue", "placeholder"])
66
+ ]),
67
+ _: 1
68
+ }, 8, ["modelValue"])
69
+ ]),
70
+ _: 1
71
+ }, 8, ["display-value", "label", "show-clear"]);
72
+ }
73
+ const S = /* @__PURE__ */ T(h, [["render", y]]);
74
+ export {
75
+ S as default
76
+ };
@@ -0,0 +1,87 @@
1
+ import { m as T } from "./mapFormMixin-D3BihYWW.js";
2
+ import { f as w } from "./focusDrawerMixin-BwcErMDY.js";
3
+ import { _ as k, z as l, b as s, a3 as C, o as n, d as p, e as u, F as g, E as F, c as d, f as r, w as S } from "./main-Cb-nyil1.js";
4
+ const _ = {
5
+ name: "Terms",
6
+ i18nOptions: {
7
+ namespaces: "terms",
8
+ messages: {
9
+ en: {
10
+ noneSelected: "No terms selected"
11
+ },
12
+ sv: {
13
+ noneSelected: "Inga villkor valda"
14
+ }
15
+ }
16
+ },
17
+ components: {
18
+ Read: l(() => import("./Index-CjfjdZj5.js")),
19
+ TermsSettings: l(() => import("./TermsSettings-BOCONyM4.js"))
20
+ },
21
+ emits: ["input"],
22
+ mixins: [
23
+ T(["href", "termType", "file", "text"]),
24
+ w
25
+ ],
26
+ data() {
27
+ return {
28
+ showControls: !1
29
+ };
30
+ },
31
+ computed: {
32
+ hasTerms() {
33
+ const e = ["href", "file"].includes(this.termType) && this.href, t = this.termType === "text" && this.text, i = this.termType === "file" && this.file;
34
+ return e || t || i;
35
+ }
36
+ }
37
+ };
38
+ function B(e, t, i, D, m, a) {
39
+ const c = s("Read"), f = s("CButton"), v = s("TermsSettings"), h = s("portal"), y = C("tooltip");
40
+ return e.isForm || a.hasTerms ? (n(), p("div", {
41
+ key: 0,
42
+ onMouseoverPassive: t[2] || (t[2] = (o) => m.showControls = !0),
43
+ onMouseleavePassive: t[3] || (t[3] = (o) => m.showControls = !1),
44
+ class: "px-7 py-5"
45
+ }, [
46
+ u(c, {
47
+ _document: e._document,
48
+ href: e.href,
49
+ "term-type": e.termType,
50
+ file: e.file,
51
+ text: e.text,
52
+ onInput: t[0] || (t[0] = (o) => e.$emit("input", o))
53
+ }, null, 8, ["_document", "href", "term-type", "file", "text"]),
54
+ e.isForm ? (n(), p(g, { key: 0 }, [
55
+ a.hasTerms ? r("", !0) : F((n(), d(f, {
56
+ key: 0,
57
+ "icon-props": { size: 18 },
58
+ pattern: "secondary",
59
+ icon: "info",
60
+ circle: "",
61
+ size: "small",
62
+ type: "danger",
63
+ style: { position: "absolute", left: "calc(1 * var(--rem))", top: "calc(1 * var(--rem))", width: "2em", height: "2em" },
64
+ onClick: e.openDrawer
65
+ }, null, 8, ["onClick"])), [
66
+ [y, e.$t("noneSelected")]
67
+ ]),
68
+ e.showDrawer ? (n(), d(h, {
69
+ key: 1,
70
+ to: "drawer-content"
71
+ }, {
72
+ default: S(() => [
73
+ u(v, {
74
+ _document: e._document,
75
+ _value: { term: "data.terms" },
76
+ onInput: t[1] || (t[1] = (o) => e.$emit("input", o))
77
+ }, null, 8, ["_document"])
78
+ ]),
79
+ _: 1
80
+ })) : r("", !0)
81
+ ], 64)) : r("", !0)
82
+ ], 32)) : r("", !0);
83
+ }
84
+ const x = /* @__PURE__ */ k(_, [["render", B]]);
85
+ export {
86
+ x as default
87
+ };
@@ -1,6 +1,6 @@
1
- import { P as r } from "./PlainHtml-5YwYVj1v.js";
2
- import { n as o } from "./main-BgzLHIoo.js";
3
- const s = {
1
+ import { _ as o } from "./PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js";
2
+ import { e, B as t } from "./main-Cb-nyil1.js";
3
+ const d = {
4
4
  name: "ExtraWorkTimeImpactTextRead",
5
5
  props: {
6
6
  workStartAt: {
@@ -39,23 +39,15 @@ const s = {
39
39
  description4: " by"
40
40
  }
41
41
  },
42
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
43
- render(t) {
44
- const e = this.$formatDate(this.workStartAt), n = this.$formatDate(this.workEndAt), i = this.$tc(`_common:${this.timeUnit}`, {
42
+ render() {
43
+ const i = this.$formatDate(this.workStartAt), n = this.$formatDate(this.workEndAt), r = this.$tc(`_common:${this.timeUnit}`, {
45
44
  count: this.noOfTimeUnits
46
45
  });
47
- return t(r, [this.$t("description1"), " ", t("strong", [e]), " ", this.$t("description2"), t("strong", [n]), ".", this.$t("description3"), " ", t("strong", [this.$t(`_common:${this.timeDeltaDirection}`)]), this.$t("description4"), " ", t("strong", [i]), "."]);
46
+ return e(o, null, {
47
+ default: () => [this.$t("description1"), t(" "), e("strong", null, [i]), t(" "), this.$t("description2"), e("strong", null, [n]), t("."), this.$t("description3"), t(" "), e("strong", null, [this.$t(`_common:${this.timeDeltaDirection}`)]), this.$t("description4"), t(" "), e("strong", null, [r]), t(".")]
48
+ });
48
49
  }
49
- }, a = null, c = null;
50
- var d = /* @__PURE__ */ o(
51
- s,
52
- a,
53
- c,
54
- !1,
55
- null,
56
- null
57
- );
58
- const p = d.exports;
50
+ };
59
51
  export {
60
- p as default
52
+ d as default
61
53
  };
@@ -0,0 +1,136 @@
1
+ import { m as f } from "./mapFormMixin-D3BihYWW.js";
2
+ import { f as y } from "./focusDrawerMixin-BwcErMDY.js";
3
+ import { g as z } from "./utils-CBPcYdLv.js";
4
+ import { _ as V, z as m, b as l, o as i, d as a, s as r, l as _, v as g, e as u, n as w, F as P, c as S, w as k, f as c } from "./main-Cb-nyil1.js";
5
+ const C = {
6
+ name: "VideoPlayer",
7
+ i18nOptions: {
8
+ namespaces: "components",
9
+ keyPrefix: "document.videoPlayer"
10
+ },
11
+ components: {
12
+ VideoPlayerSettings: m(
13
+ () => import("./VideoPlayerSettings-BXMmxaZQ.js")
14
+ ),
15
+ VideoPlayerInput: m(
16
+ () => import("./VideoPlayerInput-BsUcmpl4.js")
17
+ )
18
+ },
19
+ mixins: [f(["videoPlayer"]), y],
20
+ data() {
21
+ return {
22
+ showControls: !1,
23
+ aspectRatio: null,
24
+ sizes: {
25
+ small: 600,
26
+ medium: 1e3,
27
+ large: 1e3
28
+ },
29
+ // defaults to 16:9 aspect ratio
30
+ videoSize: {
31
+ width: 480,
32
+ height: 270
33
+ }
34
+ };
35
+ },
36
+ computed: {
37
+ video() {
38
+ var e;
39
+ return ((e = this.videoPlayer) == null ? void 0 : e.video) || {};
40
+ },
41
+ size() {
42
+ var e;
43
+ return ((e = this.videoPlayer) == null ? void 0 : e.size) || "medium";
44
+ }
45
+ },
46
+ watch: {
47
+ video: {
48
+ immediate: !0,
49
+ async handler(e) {
50
+ if (!e || !e.url) return;
51
+ let { width: t, height: s } = e;
52
+ (!t || !s) && ({ width: t, height: s } = await z(e.url) || {}), this.videoSize = { width: t, height: s }, this.setAspectRatio();
53
+ }
54
+ },
55
+ size() {
56
+ this.setAspectRatio();
57
+ }
58
+ },
59
+ methods: {
60
+ setValue({ key: e, value: t }) {
61
+ this.videoPlayer = {
62
+ ...this.videoPlayer,
63
+ [e]: t
64
+ };
65
+ },
66
+ setAspectRatio() {
67
+ !this.videoSize.width || !this.videoSize.height || (this.aspectRatio = `${Math.round(
68
+ 100 * this.videoSize.height / this.videoSize.width
69
+ )}%`);
70
+ },
71
+ onAdd() {
72
+ var e;
73
+ this._isNodeRecentlyAdded() && ((e = this.$refs.input) == null || e.focus());
74
+ }
75
+ }
76
+ }, A = {
77
+ key: 0,
78
+ class: "video-element"
79
+ }, I = { class: "is-placeholder" }, M = { class: "text-gray-600" }, R = ["src"];
80
+ function b(e, t, s, x, d, o) {
81
+ const v = l("VideoPlayerInput"), p = l("VideoPlayerSettings"), h = l("portal");
82
+ return i(), a("div", {
83
+ class: "video-root font-inter",
84
+ onMouseoverPassive: t[1] || (t[1] = (n) => d.showControls = !0),
85
+ onMouseleavePassive: t[2] || (t[2] = (n) => d.showControls = !1)
86
+ }, [
87
+ r("div", {
88
+ class: w([[`video-is-${o.size}`], "no-drag"])
89
+ }, [
90
+ r("div", {
91
+ style: _({ paddingTop: d.aspectRatio }),
92
+ class: "video-container"
93
+ }, [
94
+ !o.video.url && e.canEdit ? (i(), a("div", A, [
95
+ r("div", I, [
96
+ r("div", M, g(e.$t("subTitle")), 1),
97
+ u(v, {
98
+ ref: "input",
99
+ "model-value": o.video,
100
+ style: { "padding-top": "1em" },
101
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => o.setValue({ key: "video", value: n })),
102
+ onVnodeMounted: o.onAdd
103
+ }, null, 8, ["model-value", "onVnodeMounted"])
104
+ ])
105
+ ])) : (i(), a("iframe", {
106
+ key: 1,
107
+ ref: "iframe",
108
+ title: "Video",
109
+ src: o.video.url,
110
+ frameborder: "0",
111
+ allowfullscreen: "",
112
+ class: "video-element"
113
+ }, null, 8, R))
114
+ ], 4)
115
+ ], 2),
116
+ e.isForm ? (i(), a(P, { key: 0 }, [
117
+ e.showDrawer ? (i(), S(h, {
118
+ key: 0,
119
+ to: "drawer-content"
120
+ }, {
121
+ default: k(() => [
122
+ u(p, {
123
+ video: o.video,
124
+ size: o.size,
125
+ onInput: o.setValue
126
+ }, null, 8, ["video", "size", "onInput"])
127
+ ]),
128
+ _: 1
129
+ })) : c("", !0)
130
+ ], 64)) : c("", !0)
131
+ ], 32);
132
+ }
133
+ const E = /* @__PURE__ */ V(C, [["render", b], ["__scopeId", "data-v-2bb8500e"]]);
134
+ export {
135
+ E as default
136
+ };
@@ -0,0 +1,49 @@
1
+ import { h as f, i as n, b as h, o as c, d as r, s as i, c as k, af as y, v as b, f as d, S as B, P as E, _ as g } from "./main-Cb-nyil1.js";
2
+ const w = {
3
+ key: 0,
4
+ class: "sub-chapter"
5
+ }, C = { class: "sub-chapter-title" }, F = { key: 1 }, I = { class: "sub-chapter-content" }, S = /* @__PURE__ */ f({
6
+ __name: "Index",
7
+ props: {
8
+ title: {},
9
+ hideFromEdit: { type: Boolean, default: !1 },
10
+ _value: { default: () => ({
11
+ title: ""
12
+ }) }
13
+ },
14
+ setup(u) {
15
+ const o = u, t = E("viewSettings", { canEdit: !1 }), p = n(
16
+ () => o.hideFromEdit && t.canEdit
17
+ ), v = n(() => t.canEdit), s = n(() => o.title || ""), m = (l) => {
18
+ var a;
19
+ const e = l.target;
20
+ t.setFormValue && t.setFormValue({
21
+ key: (a = o._value) == null ? void 0 : a.title,
22
+ value: (e == null ? void 0 : e.value) || ""
23
+ });
24
+ };
25
+ return (l, e) => {
26
+ const a = h("CInput");
27
+ return p.value ? d("", !0) : (c(), r("div", w, [
28
+ i("div", C, [
29
+ e[1] || (e[1] = i("span", { class: "sub-chapter-counter primary-pseudo-background" }, null, -1)),
30
+ v.value && s.value ? (c(), k(a, {
31
+ key: 0,
32
+ "model-value": s.value,
33
+ spellcheck: !1,
34
+ static: "",
35
+ class: "preview-title-input",
36
+ onKeydown: e[0] || (e[0] = y((_) => _.target.blur(), ["enter"])),
37
+ onBlur: m
38
+ }, null, 8, ["model-value"])) : s.value ? (c(), r("div", F, b(s.value), 1)) : d("", !0)
39
+ ]),
40
+ i("div", I, [
41
+ B(l.$slots, "default", {}, void 0, !0)
42
+ ])
43
+ ]));
44
+ };
45
+ }
46
+ }), V = /* @__PURE__ */ g(S, [["__scopeId", "data-v-1a63c96c"]]);
47
+ export {
48
+ V as default
49
+ };
@@ -0,0 +1,47 @@
1
+ import { m as a } from "./mapFormMixin-D3BihYWW.js";
2
+ import { T as m } from "./DocTextEditor-Dm-cTZpA.js";
3
+ import { _ as c, ab as r, ac as d, ad as i, b as l, o as p, d as u, e as _ } from "./main-Cb-nyil1.js";
4
+ const x = {
5
+ name: "TextContent",
6
+ components: {
7
+ TextEditor: m
8
+ },
9
+ mixins: [a(["content"])],
10
+ computed: {
11
+ value: {
12
+ get() {
13
+ return this.canEdit ? r(
14
+ this.content,
15
+ this._document.textTemplateMap,
16
+ this._document._doc
17
+ ) : d(this.content, this._document._doc);
18
+ },
19
+ set(t) {
20
+ this.content = i(t);
21
+ }
22
+ }
23
+ }
24
+ }, f = {
25
+ class: "quill-format",
26
+ style: { "font-size": "16px" }
27
+ };
28
+ function h(t, e, T, v, E, o) {
29
+ const n = l("TextEditor");
30
+ return p(), u("div", f, [
31
+ _(n, {
32
+ ref: "textEditor",
33
+ modelValue: o.value,
34
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => o.value = s),
35
+ placeholder: t.$t("components:account.documentForm.titleAndText.text"),
36
+ mentions: () => t._document.textTemplateItems,
37
+ snippets: !0,
38
+ "is-absolute": !0,
39
+ class: "text-editor",
40
+ style: { "margin-bottom": "1em" }
41
+ }, null, 8, ["modelValue", "placeholder", "mentions"])
42
+ ]);
43
+ }
44
+ const I = /* @__PURE__ */ c(x, [["render", h], ["__scopeId", "data-v-7d13b0c4"]]);
45
+ export {
46
+ I as default
47
+ };
@@ -0,0 +1,28 @@
1
+ import { m as i } from "./mapFormMixin-D3BihYWW.js";
2
+ import { _ as p, z as e, b as o, o as a, c as s } from "./main-Cb-nyil1.js";
3
+ const u = {
4
+ name: "EstimatedWorkStartAndEndAtText",
5
+ components: {
6
+ Read: e(() => import("./Index-CQpznMKV.js")),
7
+ Edit: e(() => import("./Index-Df9skok6.js"))
8
+ },
9
+ emits: ["input"],
10
+ mixins: [i(["startAt", "endAt"])]
11
+ };
12
+ function c(t, n, l, _, f, A) {
13
+ const r = o("Edit"), d = o("Read");
14
+ return t.canEdit ? (a(), s(r, {
15
+ key: 0,
16
+ _document: t._document,
17
+ _value: t._value,
18
+ onInput: n[0] || (n[0] = (m) => t.$emit("input", m))
19
+ }, null, 8, ["_document", "_value"])) : (a(), s(d, {
20
+ key: 1,
21
+ "start-at": t.startAt,
22
+ "end-at": t.endAt
23
+ }, null, 8, ["start-at", "end-at"]));
24
+ }
25
+ const $ = /* @__PURE__ */ p(u, [["render", c]]);
26
+ export {
27
+ $ as default
28
+ };