@creaditor/web-starterkit 1.0.36 → 1.0.40

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 (285) hide show
  1. package/dist/112.creaditor.bundle.js.gz +0 -0
  2. package/dist/1142.creaditor.bundle.js.gz +0 -0
  3. package/dist/1204.creaditor.bundle.js.gz +0 -0
  4. package/dist/1271.creaditor.bundle.js.gz +0 -0
  5. package/dist/1317.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  6. package/dist/1317.creaditor.bundle.js.gz +0 -0
  7. package/dist/1334.creaditor.bundle.js.gz +0 -0
  8. package/dist/1396.creaditor.bundle.js.gz +0 -0
  9. package/dist/1403.creaditor.bundle.js.gz +0 -0
  10. package/dist/1456.creaditor.bundle.js.gz +0 -0
  11. package/dist/1529.creaditor.bundle.js.gz +0 -0
  12. package/dist/168.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  13. package/dist/168.creaditor.bundle.js.gz +0 -0
  14. package/dist/170.creaditor.bundle.js.gz +0 -0
  15. package/dist/175.creaditor.bundle.js.gz +0 -0
  16. package/dist/1972.creaditor.bundle.js.gz +0 -0
  17. package/dist/2001.creaditor.bundle.js +16 -16
  18. package/dist/2001.creaditor.bundle.js.gz +0 -0
  19. package/dist/211.creaditor.bundle.js.gz +0 -0
  20. package/dist/2112.creaditor.bundle.js.gz +0 -0
  21. package/dist/2154.creaditor.bundle.js.gz +0 -0
  22. package/dist/2234.creaditor.bundle.js.gz +0 -0
  23. package/dist/2298.creaditor.bundle.js.gz +0 -0
  24. package/dist/235.creaditor.bundle.js.gz +0 -0
  25. package/dist/2350.creaditor.bundle.js.gz +0 -0
  26. package/dist/2377.creaditor.bundle.js.gz +0 -0
  27. package/dist/2384.creaditor.bundle.js.gz +0 -0
  28. package/dist/2397.creaditor.bundle.js.gz +0 -0
  29. package/dist/2409.creaditor.bundle.js.gz +0 -0
  30. package/dist/2547.creaditor.bundle.js.gz +0 -0
  31. package/dist/2550.creaditor.bundle.js.gz +0 -0
  32. package/dist/2590.creaditor.bundle.js.gz +0 -0
  33. package/dist/2682.creaditor.bundle.js +195 -0
  34. package/dist/{7051.creaditor.bundle.js.LICENSE.txt → 2682.creaditor.bundle.js.LICENSE.txt} +0 -6
  35. package/dist/{7051.creaditor.bundle.js.LICENSE.txt.gz → 2682.creaditor.bundle.js.LICENSE.txt.gz} +0 -0
  36. package/dist/2682.creaditor.bundle.js.gz +0 -0
  37. package/dist/2706.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  38. package/dist/2706.creaditor.bundle.js.gz +0 -0
  39. package/dist/271.creaditor.bundle.js.gz +0 -0
  40. package/dist/2717.creaditor.bundle.js.gz +0 -0
  41. package/dist/2765.creaditor.bundle.js.gz +0 -0
  42. package/dist/2773.creaditor.bundle.js.gz +0 -0
  43. package/dist/2833.creaditor.bundle.js.gz +0 -0
  44. package/dist/2837.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  45. package/dist/2837.creaditor.bundle.js.gz +0 -0
  46. package/dist/2956.creaditor.bundle.js.gz +0 -0
  47. package/dist/2963.creaditor.bundle.js.gz +0 -0
  48. package/dist/3105.creaditor.bundle.js.gz +0 -0
  49. package/dist/3233.creaditor.bundle.js.gz +0 -0
  50. package/dist/3418.creaditor.bundle.js.gz +0 -0
  51. package/dist/3521.creaditor.bundle.js.gz +0 -0
  52. package/dist/353.creaditor.bundle.js.gz +0 -0
  53. package/dist/3545.creaditor.bundle.js.gz +0 -0
  54. package/dist/3553.creaditor.bundle.js.gz +0 -0
  55. package/dist/3606.creaditor.bundle.js.gz +0 -0
  56. package/dist/3792.creaditor.bundle.js.gz +0 -0
  57. package/dist/380.creaditor.bundle.js.gz +0 -0
  58. package/dist/3827.creaditor.bundle.js.gz +0 -0
  59. package/dist/3847.creaditor.bundle.js +8 -6
  60. package/dist/3847.creaditor.bundle.js.gz +0 -0
  61. package/dist/3875.creaditor.bundle.js.gz +0 -0
  62. package/dist/3971.creaditor.bundle.js.gz +0 -0
  63. package/dist/4061.creaditor.bundle.js.gz +0 -0
  64. package/dist/407.creaditor.bundle.js.gz +0 -0
  65. package/dist/4074.creaditor.bundle.js.gz +0 -0
  66. package/dist/4100.creaditor.bundle.js.gz +0 -0
  67. package/dist/4109.creaditor.bundle.js.gz +0 -0
  68. package/dist/4114.creaditor.bundle.js.gz +0 -0
  69. package/dist/4161.creaditor.bundle.js.gz +0 -0
  70. package/dist/4186.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  71. package/dist/4186.creaditor.bundle.js.gz +0 -0
  72. package/dist/4288.creaditor.bundle.js.gz +0 -0
  73. package/dist/4413.creaditor.bundle.js.gz +0 -0
  74. package/dist/4475.creaditor.bundle.js.gz +0 -0
  75. package/dist/453.creaditor.bundle.js.gz +0 -0
  76. package/dist/4615.creaditor.bundle.js.gz +0 -0
  77. package/dist/4639.creaditor.bundle.js.gz +0 -0
  78. package/dist/467.creaditor.bundle.js.gz +0 -0
  79. package/dist/4762.creaditor.bundle.js.gz +0 -0
  80. package/dist/4770.creaditor.bundle.js.gz +0 -0
  81. package/dist/4819.creaditor.bundle.js +235 -198
  82. package/dist/4819.creaditor.bundle.js.gz +0 -0
  83. package/dist/4947.creaditor.bundle.js.gz +0 -0
  84. package/dist/4987.creaditor.bundle.js.gz +0 -0
  85. package/dist/4988.creaditor.bundle.js.gz +0 -0
  86. package/dist/5119.creaditor.bundle.js.gz +0 -0
  87. package/dist/5133.creaditor.bundle.js.gz +0 -0
  88. package/dist/5156.creaditor.bundle.js +1 -1
  89. package/dist/5156.creaditor.bundle.js.gz +0 -0
  90. package/dist/5284.creaditor.bundle.js.gz +0 -0
  91. package/dist/5379.creaditor.bundle.js.gz +0 -0
  92. package/dist/5391.creaditor.bundle.js.gz +0 -0
  93. package/dist/5411.creaditor.bundle.js.gz +0 -0
  94. package/dist/5501.creaditor.bundle.js.gz +0 -0
  95. package/dist/5530.creaditor.bundle.js.gz +0 -0
  96. package/dist/5666.creaditor.bundle.js.gz +0 -0
  97. package/dist/567.creaditor.bundle.js.gz +0 -0
  98. package/dist/5713.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  99. package/dist/5713.creaditor.bundle.js.gz +0 -0
  100. package/dist/574.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  101. package/dist/574.creaditor.bundle.js.gz +0 -0
  102. package/dist/578.creaditor.bundle.js.gz +0 -0
  103. package/dist/5791.creaditor.bundle.js.gz +0 -0
  104. package/dist/5839.creaditor.bundle.js.gz +0 -0
  105. package/dist/5849.creaditor.bundle.js.gz +0 -0
  106. package/dist/5850.creaditor.bundle.js.gz +0 -0
  107. package/dist/5884.creaditor.bundle.js.gz +0 -0
  108. package/dist/59.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  109. package/dist/59.creaditor.bundle.js.gz +0 -0
  110. package/dist/5909.creaditor.bundle.js +19 -19
  111. package/dist/5909.creaditor.bundle.js.gz +0 -0
  112. package/dist/5926.creaditor.bundle.js.gz +0 -0
  113. package/dist/6036.creaditor.bundle.js.gz +0 -0
  114. package/dist/6216.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  115. package/dist/6216.creaditor.bundle.js.gz +0 -0
  116. package/dist/638.creaditor.bundle.js.gz +0 -0
  117. package/dist/6442.creaditor.bundle.js.gz +0 -0
  118. package/dist/6496.creaditor.bundle.js.gz +0 -0
  119. package/dist/653.creaditor.bundle.js.gz +0 -0
  120. package/dist/6751.creaditor.bundle.js.gz +0 -0
  121. package/dist/6814.creaditor.bundle.js.gz +0 -0
  122. package/dist/6937.creaditor.bundle.js.gz +0 -0
  123. package/dist/7055.creaditor.bundle.js.gz +0 -0
  124. package/dist/715.creaditor.bundle.js +4 -4
  125. package/dist/715.creaditor.bundle.js.gz +0 -0
  126. package/dist/7155.creaditor.bundle.js.gz +0 -0
  127. package/dist/7209.creaditor.bundle.js +32 -30
  128. package/dist/7209.creaditor.bundle.js.gz +0 -0
  129. package/dist/7238.creaditor.bundle.js.gz +0 -0
  130. package/dist/7255.creaditor.bundle.js.gz +0 -0
  131. package/dist/738.creaditor.bundle.js.gz +0 -0
  132. package/dist/7380.creaditor.bundle.js.gz +0 -0
  133. package/dist/7463.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  134. package/dist/7463.creaditor.bundle.js.gz +0 -0
  135. package/dist/7466.creaditor.bundle.js.gz +0 -0
  136. package/dist/752.creaditor.bundle.js.gz +0 -0
  137. package/dist/7523.creaditor.bundle.js.gz +0 -0
  138. package/dist/7564.creaditor.bundle.js.gz +0 -0
  139. package/dist/7654.creaditor.bundle.js.gz +0 -0
  140. package/dist/767.creaditor.bundle.js +26 -70
  141. package/dist/767.creaditor.bundle.js.gz +0 -0
  142. package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  143. package/dist/7789.creaditor.bundle.js.gz +0 -0
  144. package/dist/7838.creaditor.bundle.js.gz +0 -0
  145. package/dist/7918.creaditor.bundle.js.gz +0 -0
  146. package/dist/7937.creaditor.bundle.js.gz +0 -0
  147. package/dist/7997.creaditor.bundle.js.gz +0 -0
  148. package/dist/8042.creaditor.bundle.js.gz +0 -0
  149. package/dist/8064.creaditor.bundle.js.gz +0 -0
  150. package/dist/8141.creaditor.bundle.js.gz +0 -0
  151. package/dist/8173.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  152. package/dist/8173.creaditor.bundle.js.gz +0 -0
  153. package/dist/8196.creaditor.bundle.js.gz +0 -0
  154. package/dist/823.creaditor.bundle.js.gz +0 -0
  155. package/dist/8250.creaditor.bundle.js.gz +0 -0
  156. package/dist/8251.creaditor.bundle.js.gz +0 -0
  157. package/dist/8299.creaditor.bundle.js.gz +0 -0
  158. package/dist/8315.creaditor.bundle.js.gz +0 -0
  159. package/dist/8443.creaditor.bundle.js.gz +0 -0
  160. package/dist/8516.creaditor.bundle.js.gz +0 -0
  161. package/dist/8533.creaditor.bundle.js.gz +0 -0
  162. package/dist/8547.creaditor.bundle.js.gz +0 -0
  163. package/dist/8570.creaditor.bundle.js.gz +0 -0
  164. package/dist/8646.creaditor.bundle.js +36 -37
  165. package/dist/8646.creaditor.bundle.js.gz +0 -0
  166. package/dist/8654.creaditor.bundle.js.gz +0 -0
  167. package/dist/8854.creaditor.bundle.js.gz +0 -0
  168. package/dist/8878.creaditor.bundle.js.gz +0 -0
  169. package/dist/8916.creaditor.bundle.js.gz +0 -0
  170. package/dist/8921.creaditor.bundle.js.gz +0 -0
  171. package/dist/898.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  172. package/dist/898.creaditor.bundle.js.gz +0 -0
  173. package/dist/8983.creaditor.bundle.js.gz +0 -0
  174. package/dist/9041.creaditor.bundle.js.gz +0 -0
  175. package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  176. package/dist/9158.creaditor.bundle.js.gz +0 -0
  177. package/dist/9250.creaditor.bundle.js.gz +0 -0
  178. package/dist/9386.creaditor.bundle.js.gz +0 -0
  179. package/dist/9431.creaditor.bundle.js.gz +0 -0
  180. package/dist/9453.creaditor.bundle.js.gz +0 -0
  181. package/dist/9570.creaditor.bundle.js.gz +0 -0
  182. package/dist/9694.creaditor.bundle.js.gz +0 -0
  183. package/dist/975.creaditor.bundle.js.gz +0 -0
  184. package/dist/976.creaditor.bundle.js.gz +0 -0
  185. package/dist/9986.creaditor.bundle.js.gz +0 -0
  186. package/dist/9990.creaditor.bundle.js.gz +0 -0
  187. package/dist/9994.creaditor.bundle.js.gz +0 -0
  188. package/dist/creaditor.bundle.js +203 -180
  189. package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
  190. package/dist/creaditor.bundle.js.gz +0 -0
  191. package/dist/index.html.gz +0 -0
  192. package/dist/service-worker.js +1 -1
  193. package/dist/service-worker.js.gz +0 -0
  194. package/dist/workbox-f3063069.js.gz +0 -0
  195. package/package.json +2 -2
  196. package/dist/1260.creaditor.bundle.js +0 -459
  197. package/dist/1260.creaditor.bundle.js.gz +0 -0
  198. package/dist/1393.creaditor.bundle.js +0 -1
  199. package/dist/1393.creaditor.bundle.js.gz +0 -0
  200. package/dist/1452.creaditor.bundle.js +0 -23
  201. package/dist/1452.creaditor.bundle.js.gz +0 -0
  202. package/dist/1565.creaditor.bundle.js +0 -1216
  203. package/dist/1565.creaditor.bundle.js.gz +0 -0
  204. package/dist/1756.creaditor.bundle.js +0 -1
  205. package/dist/1756.creaditor.bundle.js.gz +0 -0
  206. package/dist/1936.creaditor.bundle.js +0 -177
  207. package/dist/1936.creaditor.bundle.js.LICENSE.txt +0 -29
  208. package/dist/1936.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  209. package/dist/1936.creaditor.bundle.js.gz +0 -0
  210. package/dist/2438.creaditor.bundle.js +0 -67
  211. package/dist/2438.creaditor.bundle.js.gz +0 -0
  212. package/dist/2834.creaditor.bundle.js +0 -14
  213. package/dist/2834.creaditor.bundle.js.LICENSE.txt +0 -5
  214. package/dist/2834.creaditor.bundle.js.gz +0 -0
  215. package/dist/307.creaditor.bundle.js +0 -23
  216. package/dist/307.creaditor.bundle.js.gz +0 -0
  217. package/dist/3095.creaditor.bundle.js +0 -194
  218. package/dist/3095.creaditor.bundle.js.gz +0 -0
  219. package/dist/365.creaditor.bundle.js +0 -26
  220. package/dist/365.creaditor.bundle.js.gz +0 -0
  221. package/dist/3778.creaditor.bundle.js +0 -1
  222. package/dist/3778.creaditor.bundle.js.gz +0 -0
  223. package/dist/3932.creaditor.bundle.js +0 -30
  224. package/dist/3932.creaditor.bundle.js.gz +0 -0
  225. package/dist/4217.creaditor.bundle.js +0 -105
  226. package/dist/4217.creaditor.bundle.js.gz +0 -0
  227. package/dist/453.creaditor.bundle.js.LICENSE.txt +0 -5
  228. package/dist/4569.creaditor.bundle.js +0 -887
  229. package/dist/4569.creaditor.bundle.js.gz +0 -0
  230. package/dist/4739.creaditor.bundle.js +0 -1
  231. package/dist/4739.creaditor.bundle.js.gz +0 -0
  232. package/dist/4970.creaditor.bundle.js +0 -1316
  233. package/dist/4970.creaditor.bundle.js.gz +0 -0
  234. package/dist/5340.creaditor.bundle.js +0 -157
  235. package/dist/5340.creaditor.bundle.js.gz +0 -0
  236. package/dist/5428.creaditor.bundle.js +0 -23
  237. package/dist/5428.creaditor.bundle.js.gz +0 -0
  238. package/dist/5813.creaditor.bundle.js +0 -613
  239. package/dist/5813.creaditor.bundle.js.LICENSE.txt +0 -10
  240. package/dist/5813.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  241. package/dist/5813.creaditor.bundle.js.gz +0 -0
  242. package/dist/6151.creaditor.bundle.js +0 -1
  243. package/dist/6151.creaditor.bundle.js.gz +0 -0
  244. package/dist/6459.creaditor.bundle.js +0 -23
  245. package/dist/6459.creaditor.bundle.js.gz +0 -0
  246. package/dist/6713.creaditor.bundle.js +0 -151
  247. package/dist/6713.creaditor.bundle.js.gz +0 -0
  248. package/dist/7051.creaditor.bundle.js +0 -162
  249. package/dist/7051.creaditor.bundle.js.gz +0 -0
  250. package/dist/763.creaditor.bundle.js +0 -1
  251. package/dist/763.creaditor.bundle.js.gz +0 -0
  252. package/dist/7759.creaditor.bundle.js +0 -25
  253. package/dist/7759.creaditor.bundle.js.gz +0 -0
  254. package/dist/8141.creaditor.bundle.js.LICENSE.txt +0 -5
  255. package/dist/8303.creaditor.bundle.js +0 -57
  256. package/dist/8303.creaditor.bundle.js.LICENSE.txt +0 -10
  257. package/dist/8303.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  258. package/dist/8303.creaditor.bundle.js.gz +0 -0
  259. package/dist/8305.creaditor.bundle.js +0 -32
  260. package/dist/8305.creaditor.bundle.js.gz +0 -0
  261. package/dist/8386.creaditor.bundle.js +0 -1420
  262. package/dist/8386.creaditor.bundle.js.gz +0 -0
  263. package/dist/84702e107adede1a967468c78921d455.mp4 +0 -0
  264. package/dist/8478.creaditor.bundle.js +0 -1
  265. package/dist/8478.creaditor.bundle.js.gz +0 -0
  266. package/dist/8676.creaditor.bundle.js +0 -24
  267. package/dist/8676.creaditor.bundle.js.gz +0 -0
  268. package/dist/88.creaditor.bundle.js +0 -1
  269. package/dist/88.creaditor.bundle.js.gz +0 -0
  270. package/dist/8876.creaditor.bundle.js +0 -25
  271. package/dist/8876.creaditor.bundle.js.LICENSE.txt +0 -32
  272. package/dist/8876.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  273. package/dist/8876.creaditor.bundle.js.gz +0 -0
  274. package/dist/9089.creaditor.bundle.js +0 -21
  275. package/dist/9089.creaditor.bundle.js.gz +0 -0
  276. package/dist/9162.creaditor.bundle.js +0 -24
  277. package/dist/9162.creaditor.bundle.js.gz +0 -0
  278. package/dist/9184.creaditor.bundle.js +0 -23
  279. package/dist/9184.creaditor.bundle.js.gz +0 -0
  280. package/dist/9193.creaditor.bundle.js +0 -1
  281. package/dist/9193.creaditor.bundle.js.gz +0 -0
  282. package/dist/9338.creaditor.bundle.js +0 -1
  283. package/dist/9338.creaditor.bundle.js.gz +0 -0
  284. package/dist/951.creaditor.bundle.js +0 -1
  285. package/dist/951.creaditor.bundle.js.gz +0 -0
@@ -388,7 +388,7 @@
388
388
  margin-top: 0.75rem;
389
389
  padding-left: 1rem;
390
390
  }
391
- `;var a=i(21421);i(73095),i(70380);const l="260px",c=[{type:"https:",text:"link"},{type:"http:",text:"link"},{type:"mailto:",text:"sendEmail"},{type:"tel:",text:"tel"},{type:"sms:",text:"sendSms"},{type:"whatsapp:",text:"sendWhatsapp"},{type:"anchor:",text:"anchor"}],h="cdtrAdd",d="cdtrRemove",p="cdtrAutomation",u=[h,d,p];function m(t,e){t=t.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}const f="anchor",g="linkpicker:anchor";function y(){const t=new Set;return function(){const t=o.M.get("components");return Array.isArray(t)?t:t&&"object"==typeof t?Object.values(t).filter(t=>t&&"object"==typeof t):[]}().forEach(e=>{const i=e&&e.props;i&&(i.anchor&&i.anchor.name&&t.add(String(i.anchor.name)),e.type===f&&i.name&&t.add(String(i.name)))}),t}let b=null,v=null;const x="cdtr:anchor-attached";function w(){let{onCreated:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$();const e=function(){const t=y();let e=1;for(;t.has(`${f}-${e}`);)e++;return`${f}-${e}`}(),i={id:g,name:f,group:"elements",body:{type:f,props:{name:e,color:"#6b7280"}}},s=document.createElement("div");return s.setAttribute("data-id",g),s.setAttribute("data-group","elements"),s.setAttribute("data-placement",""),s.setAttribute("draggable-element","create:element"),s.setAttribute("draggable-direction","top,bottom,left,right"),s.classList.add("draggable-element-handle"),s.__template=i,window.__dragoned_selected_element=s,b=s,"function"==typeof t&&(v=function(t){let e=!1;const i=i=>{const s=i&&i.detail&&i.detail.name;!e&&s&&(e=!0,o(),v=null,t(s))},s=()=>{setTimeout(()=>{e||(o(),v=null)},0)};function o(){window.removeEventListener(x,i),document.removeEventListener("mouseup",s,!0)}return window.addEventListener(x,i),document.addEventListener("mouseup",s,!0),o}(t)),s}function $(){b&&window.__dragoned_selected_element===b&&delete window.__dragoned_selected_element,b=null,v&&(v(),v=null)}function A(t){let{onRequest:e,onChangeLink:i,onBlur:r}=t;return function(){const t=o.M.get("config","editor","configure","plugins");return!!Array.isArray(t)&&t.some(t=>t&&t.name===f)}()?s.qy`
391
+ `;var a=i(21421);i(73095),i(70380);const l="260px",c=[{type:"https:",text:"link"},{type:"http:",text:"link"},{type:"mailto:",text:"sendEmail"},{type:"tel:",text:"tel"},{type:"sms:",text:"sendSms"},{type:"whatsapp:",text:"sendWhatsapp"},{type:"anchor:",text:"anchor"}],h="cdtrAdd",d="cdtrRemove",p="cdtrAutomation",u=[h,d,p];function m(t,e){t=t.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}const f="anchor",g="linkpicker:anchor";function b(){const t=new Set;return function(){const t=o.M.get("components");return Array.isArray(t)?t:t&&"object"==typeof t?Object.values(t).filter(t=>t&&"object"==typeof t):[]}().forEach(e=>{const i=e&&e.props;i&&(i.anchor&&i.anchor.name&&t.add(String(i.anchor.name)),e.type===f&&i.name&&t.add(String(i.name)))}),t}let y=null,v=null;const x="cdtr:anchor-attached";function w(){let{onCreated:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$();const e=function(){const t=b();let e=1;for(;t.has(`${f}-${e}`);)e++;return`${f}-${e}`}(),i={id:g,name:f,group:"elements",body:{type:f,props:{name:e,color:"#6b7280"}}},s=document.createElement("div");return s.setAttribute("data-id",g),s.setAttribute("data-group","elements"),s.setAttribute("data-placement",""),s.setAttribute("draggable-element","create:element"),s.setAttribute("draggable-direction","top,bottom,left,right"),s.classList.add("draggable-element-handle"),s.__template=i,window.__dragoned_selected_element=s,y=s,"function"==typeof t&&(v=function(t){let e=!1;const i=i=>{const s=i&&i.detail&&i.detail.name;!e&&s&&(e=!0,o(),v=null,t(s))},s=()=>{setTimeout(()=>{e||(o(),v=null)},0)};function o(){window.removeEventListener(x,i),document.removeEventListener("mouseup",s,!0)}return window.addEventListener(x,i),document.addEventListener("mouseup",s,!0),o}(t)),s}function $(){y&&window.__dragoned_selected_element===y&&delete window.__dragoned_selected_element,y=null,v&&(v(),v=null)}function A(t){let{onRequest:e,onChangeLink:i,onBlur:r}=t;return function(){const t=o.M.get("config","editor","configure","plugins");return!!Array.isArray(t)&&t.some(t=>t&&t.name===f)}()?s.qy`
392
392
  <div class="anchor-create">
393
393
  <div
394
394
  class="anchor-drag draggable-element-handle"
@@ -422,7 +422,9 @@
422
422
  class=" dropdown-button"
423
423
  slot="trigger"
424
424
  >
425
- ${l?s.qy`<span class="anchor-dd-value">${l}</span>`:s.qy`<lang-text
425
+ ${l?s.qy`<span class="anchor-dd-value"
426
+ >${(t=>{const e=i.find(e=>e.name===t);return e&&e.label||t})(l)}</span
427
+ >`:s.qy`<lang-text
426
428
  text=${i.length?"select_anchor":"no_anchors_yet"}
427
429
  ></lang-text>`}
428
430
  </cdtr-dropdown-button>
@@ -431,7 +433,7 @@
431
433
  value="${t.name}"
432
434
  .selected=${t.name===l}
433
435
  .focused=${t.name===l}
434
- >${t.name}
436
+ >${t.label||t.name}
435
437
  </cdtr-dropdown-item>`)}
436
438
  </div>
437
439
  </cdtr-dropdown>
@@ -482,7 +484,7 @@
482
484
  @change=${t=>{let{target:e}=t;r(e.value),o()}}
483
485
  ></cdtr-input>
484
486
  </cdtr-row>
485
- `}(e);default:return""}}function _(t,e,i,s,o,n){if(!t)return null;const a="string"==typeof t?new r.A({href:t,protocol:e,params:i}):new r.A(t);return t?"whatsapp:"===e||"whatsapp:"===a.protocol?function(t,e,i,s,o){const n="string"==typeof t?new r.A({href:t,protocol:e,params:i}):new r.A(t),a=(n.params&&(n.params.phone||function(t){try{const e=/whatsapp:([^?]+)/,i=t.match(e);return i?i[1]:""}catch(t){return""}}(n.fullHref))||m("phone",n.href||"")||n.url||"").replace(/\D+/g,"");if(!a)return null;const l=s||n.params&&(n.params.text||n.params.body)||"",c=l?encodeURIComponent(l):"";let h=`https://wa.me/${a}`;c&&(h+=`?text=${c}`);const d=new r.A(h);return d.target=o||d.target||"_blank",{url:d,params:d.params,protocol:"whatsapp:"}}(t,e,i,s,n):(a.isEmail?function(t,e,i){let s=!1;e?t.addParam("subject",e):t.params&&"subject"in t.params&&(delete t.params.subject,s=!0),i?t.addParam("body",i):t.params&&"body"in t.params&&(delete t.params.body,s=!0),s&&(t.href=t.getUrlWithParams())}(a,o,s):s?a.addParam("body",s):a.params&&"body"in a.params&&(delete a.params.body,a.href=a.getUrlWithParams()),a.target=n||a.target||"_blank",{url:a,params:a.params,protocol:a.protocol}):null}function S(t,e,i){if(!t)return{href:{},protocol:null,body:"",subject:""};if(t.startsWith("http")&&!t.startsWith("http://")&&!t.startsWith("https://"))return null;const s=r.A.getProtocol(t);let o=e;s&&(o=s+":");const n=new r.A({href:t,protocol:o||null});console.log("output",n);const a=(i instanceof r.A?i:new r.A(i)).url!==n.url;return{href:n,protocol:n.protocol,shouldBlur:n.isValid,clearParams:a}}function R(){const t=o.M.get("components"),e=Array.isArray(t)?t:t&&"object"==typeof t?Object.values(t):[],i=function(t){const e=new Map;t.forEach(t=>{const i=t&&(t.id||t._id);i&&e.set(i,t)});const i=t.find(t=>t&&"root"===t.type),s=i&&(i.id||i._id);if(!s)return null;const o=new Set,r=t=>{if(!t||o.has(t))return;o.add(t);const i=e.get(t);i&&[].concat(Array.isArray(i.children)?i.children:[]).concat(Array.isArray(i.elements)?i.elements:[]).forEach(t=>r((t=>t?"string"==typeof t?t:t.id||t.dataset&&t.dataset.id||null:null)(t)))};return r(s),o}(e),s=i?e.filter(t=>t&&i.has(t.id||t._id)):e,r=new Set,n=[],a=(t,e)=>{e&&!r.has(e)&&(r.add(e),n.push({id:t,name:e}))};return s.forEach(t=>{const e=t&&t.props;e&&(e.anchor&&e.anchor.name?a(t.id,e.anchor.name):"anchor"===t.type&&e.name?a(t.id,e.name):e.element_ID&&a(t.id,e.element_ID))}),n}function L(t){const{value:e="",inputRef:i,autofocus:o=!1,onChange:r,onBlur:n,onFocus:c,onKeyDown:h,placeholder:d="",inputStyle:p="",style:u="width:260px;",width:m=l}=t,f=t=>{r&&r(t),n&&n()},g=(()=>{if(null==e||""===e)return"";try{return decodeURI(String(e))||""}catch{return String(e)}})();return s.qy`
487
+ `}(e);default:return""}}function _(t,e,i,s,o,n){if(!t)return null;const a="string"==typeof t?new r.A({href:t,protocol:e,params:i}):new r.A(t);return t?"whatsapp:"===e||"whatsapp:"===a.protocol?function(t,e,i,s,o){const n="string"==typeof t?new r.A({href:t,protocol:e,params:i}):new r.A(t),a=(n.params&&(n.params.phone||function(t){try{const e=/whatsapp:([^?]+)/,i=t.match(e);return i?i[1]:""}catch(t){return""}}(n.fullHref))||m("phone",n.href||"")||n.url||"").replace(/\D+/g,"");if(!a)return null;const l=s||n.params&&(n.params.text||n.params.body)||"",c=l?encodeURIComponent(l):"";let h=`https://wa.me/${a}`;c&&(h+=`?text=${c}`);const d=new r.A(h);return d.target=o||d.target||"_blank",{url:d,params:d.params,protocol:"whatsapp:"}}(t,e,i,s,n):(a.isEmail?function(t,e,i){let s=!1;e?t.addParam("subject",e):t.params&&"subject"in t.params&&(delete t.params.subject,s=!0),i?t.addParam("body",i):t.params&&"body"in t.params&&(delete t.params.body,s=!0),s&&(t.href=t.getUrlWithParams())}(a,o,s):s?a.addParam("body",s):a.params&&"body"in a.params&&(delete a.params.body,a.href=a.getUrlWithParams()),a.target=n||a.target||"_blank",{url:a,params:a.params,protocol:a.protocol}):null}function S(t,e,i){if(!t)return{href:{},protocol:null,body:"",subject:""};if(t.startsWith("http")&&!t.startsWith("http://")&&!t.startsWith("https://"))return null;const s=r.A.getProtocol(t);let o=e;s&&(o=s+":");const n=new r.A({href:t,protocol:o||null});console.log("output",n);const a=(i instanceof r.A?i:new r.A(i)).url!==n.url;return{href:n,protocol:n.protocol,shouldBlur:n.isValid,clearParams:a}}function R(){const t=o.M.get("components"),e=Array.isArray(t)?t:t&&"object"==typeof t?Object.values(t):[],i=function(t){const e=new Map;t.forEach(t=>{const i=t&&(t.id||t._id);i&&e.set(i,t)});const i=t.find(t=>t&&"root"===t.type),s=i&&(i.id||i._id);if(!s)return null;const o=new Set,r=t=>{if(!t||o.has(t))return;o.add(t);const i=e.get(t);i&&[].concat(Array.isArray(i.children)?i.children:[]).concat(Array.isArray(i.elements)?i.elements:[]).forEach(t=>r((t=>t?"string"==typeof t?t:t.id||t.dataset&&t.dataset.id||null:null)(t)))};return r(s),o}(e),s=i?e.filter(t=>t&&i.has(t.id||t._id)):e,r=new Set,n=[],a=(t,e,i)=>{e&&!r.has(e)&&(r.add(e),n.push({id:t,name:e,label:i||e}))};return s.forEach(t=>{const e=t&&t.props;e&&(e.anchor&&e.anchor.name?a(t.id,e.anchor.name,e.anchor.label):"anchor"===t.type&&e.name?a(t.id,e.name):e.element_ID&&a(t.id,e.element_ID))}),n}function L(t){const{value:e="",inputRef:i,autofocus:o=!1,onChange:r,onBlur:n,onFocus:c,onKeyDown:h,placeholder:d="",inputStyle:p="",style:u="width:260px;",width:m=l}=t,f=t=>{r&&r(t),n&&n()},g=(()=>{if(null==e||""===e)return"";try{return decodeURI(String(e))||""}catch{return String(e)}})();return s.qy`
486
488
  <cdtr-row style="position:relative;" spacing="5">
487
489
  <span style="display:none;" aria-hidden="true">${e}</span>
488
490
  <cdtr-input
@@ -865,7 +867,7 @@
865
867
  </cdtr-row>
866
868
  </div>
867
869
  </div>
868
- `}}}customElements.get("paper-button")||Promise.resolve().then(i.bind(i,39239)),customElements.get("cdtr-emoji-picker")||i.e(3105).then(i.t.bind(i,63105,23));class C extends(U(s.WF)){constructor(){super(),this.inputRef=(0,a._)(),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.urlInputFocused=!1,this._urlInputRawValue="",this._lastSyncedMyHref=void 0,this._lastBodySyncHref=void 0,this.lastUrl=void 0,this.target="_blank",this.anchors=[],this.event=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0}),this.options=c,this.body="",this.subject="",this.name=o.M.get("lang",c[0].text),this.initAutomations()}onDispatch(){const t=function(t){const{href:e,protocol:i,params:s,body:o,subject:r,target:n,dispatchEvent:a,event:l}=t;if(!e)return a(l),{dispatched:!0};const c=_(e,i,s,o,r,n);return c?{dispatched:!0,href:c.url,protocol:c.protocol,params:c.params,value:c.url,link:c.url,lastUrl:c.url}:{dispatched:!1}}({href:this.href,protocol:this.protocol,params:this.params,body:this.body,subject:this.subject,target:this.target,dispatchEvent:this.dispatchEvent.bind(this),event:this.event});if(t.dispatched){if(t.href){this.href=t.href,this.protocol=t.protocol,this.params=t.params?{...t.params}:{},this.value=t.value,this.link=t.link,this.lastUrl=t.lastUrl;const e="string"==typeof t.href?t.href:t.href?.href;this._urlInputRawValue=null!=e&&""!==e?String(e):""}this.dispatchEvent(this.event)}}onChangeLink(t){const e=t.target.value;this._urlInputRawValue=e;const i=S(e,this.protocol,this.href);null!==i?(this.href=i.href,this.protocol=i.protocol,i.clearParams&&(this.body="",this.subject=""),void 0!==i.body&&(this.body=i.body),void 0!==i.subject&&(this.subject=i.subject),i.shouldBlur&&this.onBlur()):this.href=e}onKeyDown(t){if("submit"===t.type){const t=this.inputRef?.value;void 0!==t?.value&&this.onChangeLink({target:{value:t.value}}),t&&"function"==typeof t.success&&t.success(),this.onDispatch()}}onUrlInputFocus(){const t=this.inputRef?.value?.value;null!=t&&(this._urlInputRawValue=t),this.urlInputFocused=!0}onUrlInputBlur(){this.urlInputFocused=!1,this.hasButton||this.onDispatch()}onBlur(){this.hasButton||this.onDispatch()}onClickOk(){this.onDispatch()}onChangeTarget(t){const e={target:t.target.value};this.target=e.target,t.stopPropagation(),!this.hasButton&&this.href&&this.onBlur()}resolveAnchors(){this.anchors=R()}onChangeType(t){const e=function(t,e,i,s){const o=e.find(e=>e.type===t);if(!o)return{forceProtocolChange:!1};const r="anchor"===o.text,n=s!==o.type;return setTimeout(()=>{i&&i.value&&i.value.focus()},500),{protocol:o.type,forceProtocolChange:!0,shouldResolveAnchors:r,clearParams:n}}(t,this.options,this.inputRef,this.protocol);if(e.shouldResolveAnchors&&this.resolveAnchors(),this.protocol=e.protocol,this.forceProtocolChange=e.forceProtocolChange,e.clearParams&&(this.body="",this.subject=""),e.forceProtocolChange){const t=new r.A(this.href,{protocol:this.protocol});t.protocol=this.protocol,this.href=t,this.onBlur()}}connectedCallback(){super.connectedCallback(),this.href=new r.A(this.href);const t=String(this.href?.href||"").match(/^\[\[([^\]]+)\]\]\?/),e=this.href&&this.href.params&&this.href.params[p];(t||e)&&this.parseAutomationLink(this.href)}render(){const t=o.M.get("config","editor","configure","editorProps","linkPicker","savedVariables");this.resolveAnchors();const e=this.lastUrl!==this.href,i=new r.A(this.href,{protocol:e?null:this.protocol});this.protocol&&!e?i.protocol=this.protocol:i.protocol&&(this.protocol=i.protocol);const n=String(this.href?.href||this.href||"");if(this._lastBodySyncHref!==n){this._lastBodySyncHref=n,i.params?(this.body=i.params.text||i.params.body||"",this.subject=i.params.subject||""):(this.body="",this.subject="");n.match(/^\[\[([^\]]+)\]\]\?/)||i.params&&i.params[p]?(this.selectedAutomation=null,this.activeAutomationId=null,this.selectedMailingLists=[],this.selectedMailingListsForAdd=[],this.selectedMailingListsForRemove=[],this.automationAction=null,this.showAutomations=!0,this.parseAutomationLink(this.href)):(this.showAutomations=!1,this.selectedAutomation=null,this.activeAutomationId=null,this.selectedMailingLists=[],this.selectedMailingListsForAdd=[],this.selectedMailingListsForRemove=[],this.automationAction=null)}const l=function(t,e,i){let s=[];return t.isEmail?s=[]:t.isPhone?s=i.filter(t=>("tel:"===t.type||"sms:"===t.type||"whatsapp:"===t.type)&&t.type!==e):-1!==t.href.indexOf("http://")&&"https:"!==e&&(s=[{type:"https:",text:o.M.get("lang","is_user_wants_https"),reccomanded:!0}]),"anchor:"===e&&(s=[]),s}(i,this.protocol,this.options);let c=i.href;const h=String(i.href||""),d=h.match(/^\[\[([^\]]+)\]\]\?/),m=i.params&&i.params[p];if(d)c=h;else if(m){const t=u,e=[];i.params&&Object.keys(i.params).forEach(s=>{if(!t.includes(s)){const t=i.params[s];e.push(`${s}=${encodeURIComponent(t).replace(/%24/g,"$")}`)}});const s=i.url||"";c=i.protocol?"http:"===i.protocol||"https:"===i.protocol?`${i.protocol}//${s}`:`${i.protocol}${s}`:s,e.length>0&&(c+=`?${e.join("&")}`)}const f=function(t){switch(t){case"mailto:":return"what_the_email_address";case"tel:":return"what_the_phone_number";case"sms:":case"whatsapp:":return"what_the_phone_number_to_send_msg";case"anchor:":return"what_the_anchor_name";case"file:":return"what_the_file_name";default:return"what_the_url_address"}}(this.protocol),g=[...this.options],y=g.findIndex(t=>"http:"===t.type);y>-1&&g.splice(y,1);const b=o.M.get("config","editor","configure","editorProps","automations"),v={url:i,href:this.href,protocol:this.protocol,anchors:this.anchors,body:this.body,subject:this.subject,onChangeLink:this.onChangeLink.bind(this),onBlur:this.onBlur.bind(this),onRequest:this.onRequest,updateBody:t=>{this.body=t},updateSubject:t=>{this.subject=t}},x=null!=c&&""!==c?String(c):"",w=this._urlInputRawValue!==x,$=void 0!==this._lastSyncedMyHref&&x!==this._lastSyncedMyHref,A=this.urlInputFocused&&this._urlInputRawValue&&x&&!$;w&&!A?(this._urlInputRawValue=x,this._lastSyncedMyHref=x):w||(this._lastSyncedMyHref=x);const _=this.urlInputFocused&&void 0!==this._urlInputRawValue?this._urlInputRawValue:c,S={protocol:this.protocol,url:i,autofocus:this.autofocus,inputRef:(0,a.K)(this.inputRef),onChangeLink:this.onChangeLink.bind(this),onBlur:this.onUrlInputBlur.bind(this),onFocus:this.onUrlInputFocus.bind(this),onKeyDown:this.onKeyDown.bind(this),myHref:_};return this.showAutomations?s.qy` <div class="root">${this.renderAutomationsView()}</div>`:s.qy` <div class="root">
870
+ `}}}customElements.get("paper-button")||Promise.resolve().then(i.bind(i,39239)),customElements.get("cdtr-emoji-picker")||i.e(3105).then(i.t.bind(i,63105,23));class C extends(U(s.WF)){constructor(){super(),this.inputRef=(0,a._)(),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.urlInputFocused=!1,this._urlInputRawValue="",this._lastSyncedMyHref=void 0,this._lastBodySyncHref=void 0,this.lastUrl=void 0,this.target="_blank",this.anchors=[],this.event=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0}),this.options=c,this.body="",this.subject="",this.name=o.M.get("lang",c[0].text),this.initAutomations()}onDispatch(){const t=function(t){const{href:e,protocol:i,params:s,body:o,subject:r,target:n,dispatchEvent:a,event:l}=t;if(!e)return a(l),{dispatched:!0};const c=_(e,i,s,o,r,n);return c?{dispatched:!0,href:c.url,protocol:c.protocol,params:c.params,value:c.url,link:c.url,lastUrl:c.url}:{dispatched:!1}}({href:this.href,protocol:this.protocol,params:this.params,body:this.body,subject:this.subject,target:this.target,dispatchEvent:this.dispatchEvent.bind(this),event:this.event});if(t.dispatched){if(t.href){this.href=t.href,this.protocol=t.protocol,this.params=t.params?{...t.params}:{},this.value=t.value,this.link=t.link,this.lastUrl=t.lastUrl;const e="string"==typeof t.href?t.href:t.href?.href;this._urlInputRawValue=null!=e&&""!==e?String(e):""}this.dispatchEvent(this.event)}}onChangeLink(t){const e=t.target.value;this._urlInputRawValue=e;const i=S(e,this.protocol,this.href);null!==i?(this.href=i.href,this.protocol=i.protocol,i.clearParams&&(this.body="",this.subject=""),void 0!==i.body&&(this.body=i.body),void 0!==i.subject&&(this.subject=i.subject),i.shouldBlur&&this.onBlur()):this.href=e}onKeyDown(t){if("submit"===t.type){const t=this.inputRef?.value;void 0!==t?.value&&this.onChangeLink({target:{value:t.value}}),t&&"function"==typeof t.success&&t.success(),this.onDispatch()}}onUrlInputFocus(){const t=this.inputRef?.value?.value;null!=t&&(this._urlInputRawValue=t),this.urlInputFocused=!0}onUrlInputBlur(){this.urlInputFocused=!1,this.hasButton||this.onDispatch()}onBlur(){this.hasButton||this.onDispatch()}onClickOk(){this.onDispatch()}onChangeTarget(t){const e={target:t.target.value};this.target=e.target,t.stopPropagation(),!this.hasButton&&this.href&&this.onBlur()}resolveAnchors(){this.anchors=R()}onChangeType(t){const e=function(t,e,i,s){const o=e.find(e=>e.type===t);if(!o)return{forceProtocolChange:!1};const r="anchor"===o.text,n=s!==o.type;return setTimeout(()=>{i&&i.value&&i.value.focus()},500),{protocol:o.type,forceProtocolChange:!0,shouldResolveAnchors:r,clearParams:n}}(t,this.options,this.inputRef,this.protocol);if(e.shouldResolveAnchors&&this.resolveAnchors(),this.protocol=e.protocol,this.forceProtocolChange=e.forceProtocolChange,e.clearParams&&(this.body="",this.subject=""),e.forceProtocolChange){const t=new r.A(this.href,{protocol:this.protocol});t.protocol=this.protocol,this.href=t,this.onBlur()}}connectedCallback(){super.connectedCallback(),this.href=new r.A(this.href);const t=String(this.href?.href||"").match(/^\[\[([^\]]+)\]\]\?/),e=this.href&&this.href.params&&this.href.params[p];(t||e)&&this.parseAutomationLink(this.href)}render(){const t=o.M.get("config","editor","configure","editorProps","linkPicker","savedVariables");this.resolveAnchors();const e=this.lastUrl!==this.href,i=new r.A(this.href,{protocol:e?null:this.protocol});this.protocol&&!e?i.protocol=this.protocol:i.protocol&&(this.protocol=i.protocol);const n=String(this.href?.href||this.href||"");if(this._lastBodySyncHref!==n){this._lastBodySyncHref=n,i.params?(this.body=i.params.text||i.params.body||"",this.subject=i.params.subject||""):(this.body="",this.subject="");n.match(/^\[\[([^\]]+)\]\]\?/)||i.params&&i.params[p]?(this.selectedAutomation=null,this.activeAutomationId=null,this.selectedMailingLists=[],this.selectedMailingListsForAdd=[],this.selectedMailingListsForRemove=[],this.automationAction=null,this.showAutomations=!0,this.parseAutomationLink(this.href)):(this.showAutomations=!1,this.selectedAutomation=null,this.activeAutomationId=null,this.selectedMailingLists=[],this.selectedMailingListsForAdd=[],this.selectedMailingListsForRemove=[],this.automationAction=null)}const l=function(t,e,i){let s=[];return t.isEmail?s=[]:t.isPhone?s=i.filter(t=>("tel:"===t.type||"sms:"===t.type||"whatsapp:"===t.type)&&t.type!==e):-1!==t.href.indexOf("http://")&&"https:"!==e&&(s=[{type:"https:",text:o.M.get("lang","is_user_wants_https"),reccomanded:!0}]),"anchor:"===e&&(s=[]),s}(i,this.protocol,this.options);let c=i.href;const h=String(i.href||""),d=h.match(/^\[\[([^\]]+)\]\]\?/),m=i.params&&i.params[p];if(d)c=h;else if(m){const t=u,e=[];i.params&&Object.keys(i.params).forEach(s=>{if(!t.includes(s)){const t=i.params[s];e.push(`${s}=${encodeURIComponent(t).replace(/%24/g,"$")}`)}});const s=i.url||"";c=i.protocol?"http:"===i.protocol||"https:"===i.protocol?`${i.protocol}//${s}`:`${i.protocol}${s}`:s,e.length>0&&(c+=`?${e.join("&")}`)}const f=function(t){switch(t){case"mailto:":return"what_the_email_address";case"tel:":return"what_the_phone_number";case"sms:":case"whatsapp:":return"what_the_phone_number_to_send_msg";case"anchor:":return"what_the_anchor_name";case"file:":return"what_the_file_name";default:return"what_the_url_address"}}(this.protocol),g=[...this.options],b=g.findIndex(t=>"http:"===t.type);b>-1&&g.splice(b,1);const y=o.M.get("config","editor","configure","editorProps","automations"),v={url:i,href:this.href,protocol:this.protocol,anchors:this.anchors,body:this.body,subject:this.subject,onChangeLink:this.onChangeLink.bind(this),onBlur:this.onBlur.bind(this),onRequest:this.onRequest,updateBody:t=>{this.body=t},updateSubject:t=>{this.subject=t}},x=null!=c&&""!==c?String(c):"",w=this._urlInputRawValue!==x,$=void 0!==this._lastSyncedMyHref&&x!==this._lastSyncedMyHref,A=this.urlInputFocused&&this._urlInputRawValue&&x&&!$;w&&!A?(this._urlInputRawValue=x,this._lastSyncedMyHref=x):w||(this._lastSyncedMyHref=x);const _=this.urlInputFocused&&void 0!==this._urlInputRawValue?this._urlInputRawValue:c,S={protocol:this.protocol,url:i,autofocus:this.autofocus,inputRef:(0,a.K)(this.inputRef),onChangeLink:this.onChangeLink.bind(this),onBlur:this.onUrlInputBlur.bind(this),onFocus:this.onUrlInputFocus.bind(this),onKeyDown:this.onKeyDown.bind(this),myHref:_};return this.showAutomations?s.qy` <div class="root">${this.renderAutomationsView()}</div>`:s.qy` <div class="root">
869
871
  ${F=this.label,F?s.qy`<cdtr-title
870
872
  style="font-weight: 700;
871
873
  font-size: 14.4px;
@@ -931,7 +933,7 @@
931
933
  ></cdtr-title>
932
934
  ${function(t){const{protocol:e,url:i,autofocus:s,inputRef:o,onChangeLink:r,onBlur:n,onFocus:a,onKeyDown:l,myHref:c}=t;return"anchor:"===e?null:L({value:c,inputRef:o,autofocus:s,onChange:r,onBlur:n,onFocus:a,onKeyDown:l})}(S)}
933
935
  ${k(this.protocol,v)}
934
- ${b?s.qy` <cdtr-divider></cdtr-divider>
936
+ ${y?s.qy` <cdtr-divider></cdtr-divider>
935
937
  <cdtr-row justify="flex-start" mt="1">
936
938
  <cdtr-title class="explain-title"
937
939
  ><lang-text
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file