@budibase/server 1.0.113 → 1.0.114

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 (186) hide show
  1. package/builder/assets/{index.e3e5909b.js → index.4cdeec28.js} +4 -4
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +105 -150
  4. package/coverage/coverage-final.json +2 -2
  5. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/index.html +1 -1
  16. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/index.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  48. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  49. package/coverage/lcov-report/api/index.html +1 -1
  50. package/coverage/lcov-report/api/index.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/index.html +1 -1
  63. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  80. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  81. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  82. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  83. package/coverage/lcov-report/automations/actions.js.html +1 -1
  84. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  85. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  86. package/coverage/lcov-report/automations/index.html +1 -1
  87. package/coverage/lcov-report/automations/index.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/index.html +1 -1
  97. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  103. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  104. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  105. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  111. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  112. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  113. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  114. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  115. package/coverage/lcov-report/automations/utils.js.html +1 -1
  116. package/coverage/lcov-report/constants/index.html +1 -1
  117. package/coverage/lcov-report/constants/index.js.html +1 -1
  118. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  119. package/coverage/lcov-report/constants/screens.js.html +1 -1
  120. package/coverage/lcov-report/db/client.js.html +1 -1
  121. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  122. package/coverage/lcov-report/db/index.html +1 -1
  123. package/coverage/lcov-report/db/index.js.html +1 -1
  124. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  125. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  126. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  127. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  128. package/coverage/lcov-report/db/newid.js.html +1 -1
  129. package/coverage/lcov-report/db/utils.js.html +1 -1
  130. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  131. package/coverage/lcov-report/events/index.html +1 -1
  132. package/coverage/lcov-report/events/index.js.html +1 -1
  133. package/coverage/lcov-report/events/utils.js.html +1 -1
  134. package/coverage/lcov-report/index.html +20 -20
  135. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  136. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  137. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  138. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  139. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  140. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  141. package/coverage/lcov-report/middleware/index.html +1 -1
  142. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  143. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  144. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  145. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  146. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  147. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  148. package/coverage/lcov-report/threads/automation.js.html +1 -1
  149. package/coverage/lcov-report/threads/index.html +29 -29
  150. package/coverage/lcov-report/threads/index.js.html +27 -9
  151. package/coverage/lcov-report/threads/query.js.html +20 -356
  152. package/coverage/lcov-report/threads/utils.js.html +1 -1
  153. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  154. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  155. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  156. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  157. package/coverage/lcov-report/utilities/global.js.html +1 -1
  158. package/coverage/lcov-report/utilities/index.html +1 -1
  159. package/coverage/lcov-report/utilities/index.js.html +1 -1
  160. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  161. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  162. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  163. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  164. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  165. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  166. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  167. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  168. package/coverage/lcov-report/utilities/security.js.html +1 -1
  169. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  170. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  171. package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
  172. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  173. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  174. package/coverage/lcov-report/utilities/users.js.html +1 -1
  175. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  176. package/coverage/lcov.info +185 -263
  177. package/dist/integrations/queries/sql.js +108 -0
  178. package/dist/package.json +4 -4
  179. package/dist/threads/index.js +6 -1
  180. package/dist/threads/query.js +4 -103
  181. package/dist/tsconfig.tsbuildinfo +1 -1
  182. package/package.json +5 -5
  183. package/scripts/integrations/mysql/init.sql +1 -0
  184. package/src/integrations/queries/sql.ts +125 -0
  185. package/src/threads/index.js +7 -1
  186. package/src/threads/query.js +7 -119
@@ -1068,7 +1068,7 @@ function print() { __p += __j.call(arguments, '') }
1068
1068
  query is a request for data or information from a datasource, for
1069
1069
  example a database table.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function J4(r){let e,t,n;return t=new Ni({props:{schema:r[6],data:r[4],allowEditColumns:!1,allowEditRows:!1,allowSelectRows:!1,customRenderers:[{column:"queryVerb",component:xW}]}}),t.$on("click",r[18]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","query-list svelte-tcikq3")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&16&&(s.data=i[4]),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Q4(r){let e,t,n;function i(s){r[19](s)}let l={queries:r[4]};return r[0]!==void 0&&(l.datasource=r[0]),e=new gH({props:l}),Z.push(()=>ce(e,"datasource",i)),e.$on("change",r[7]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&16&&(a.queries=s[4]),!t&&o&1&&(t=!0,a.datasource=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function bG(r){var se,K;let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F,j,B,q;e=new Ye({props:{gap:"XS",noPadding:!0,$$slots:{default:[pG]},$$scope:{ctx:r}}}),n=new un({props:{size:"S"}}),s=new kt({props:{size:"S",$$slots:{default:[dG]},$$scope:{ctx:r}}}),a=new ut({props:{disabled:!r[2],cta:!0,$$slots:{default:[mG]},$$scope:{ctx:r}}}),a.$on("click",r[8]);function G(ne){r[14](ne)}let Y={schema:r[3].datasource};r[0]!==void 0&&(Y.datasource=r[0]),f=new O4({props:Y}),Z.push(()=>ce(f,"datasource",G)),f.$on("change",r[7]);let U=r[0].plus&&G4(r);g=new un({props:{size:"S"}}),C=new kt({props:{size:"S",$$slots:{default:[gG]},$$scope:{ctx:r}}});let H=((se=r[0])==null?void 0:se.source)===yn.REST&&Y4(r);T=new ut({props:{cta:!0,icon:"Add",$$slots:{default:[hG]},$$scope:{ctx:r}}}),T.$on("click",r[17]),M=new Ke({props:{size:"S",$$slots:{default:[$G]},$$scope:{ctx:r}}});let W=r[4]&&r[4].length>0&&J4(r),Q=((K=r[0])==null?void 0:K.source)===yn.REST&&Q4(r);return{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),l=D("div"),S(s.$$.fragment),o=R(),S(a.$$.fragment),u=R(),S(f.$$.fragment),p=R(),U&&U.c(),d=R(),S(g.$$.fragment),h=R(),v=D("div"),S(C.$$.fragment),y=R(),I=D("div"),H&&H.c(),O=R(),S(T.$$.fragment),P=R(),S(M.$$.fragment),F=R(),W&&W.c(),j=R(),Q&&Q.c(),B=Ee(),w(l,"class","config-header svelte-tcikq3"),w(I,"class","query-buttons svelte-tcikq3"),w(v,"class","query-header svelte-tcikq3")},m(ne,ae){A(e,ne,ae),$(ne,t,ae),A(n,ne,ae),$(ne,i,ae),$(ne,l,ae),A(s,l,null),N(l,o),A(a,l,null),$(ne,u,ae),A(f,ne,ae),$(ne,p,ae),U&&U.m(ne,ae),$(ne,d,ae),A(g,ne,ae),$(ne,h,ae),$(ne,v,ae),A(C,v,null),N(v,y),N(v,I),H&&H.m(I,null),N(I,O),A(T,I,null),$(ne,P,ae),A(M,ne,ae),$(ne,F,ae),W&&W.m(ne,ae),$(ne,j,ae),Q&&Q.m(ne,ae),$(ne,B,ae),q=!0},p(ne,ae){var ue,Ce;const _e={};ae&4194313&&(_e.$$scope={dirty:ae,ctx:ne}),e.$set(_e);const Me={};ae&4194304&&(Me.$$scope={dirty:ae,ctx:ne}),s.$set(Me);const we={};ae&4&&(we.disabled=!ne[2]),ae&4194304&&(we.$$scope={dirty:ae,ctx:ne}),a.$set(we);const $e={};ae&8&&($e.schema=ne[3].datasource),!c&&ae&1&&(c=!0,$e.datasource=ne[0],pe(()=>c=!1)),f.$set($e),ne[0].plus?U?(U.p(ne,ae),ae&1&&m(U,1)):(U=G4(ne),U.c(),m(U,1),U.m(d.parentNode,d)):U&&(ee(),_(U,1,1,()=>{U=null}),te());const ge={};ae&4194304&&(ge.$$scope={dirty:ae,ctx:ne}),C.$set(ge),((ue=ne[0])==null?void 0:ue.source)===yn.REST?H?(H.p(ne,ae),ae&1&&m(H,1)):(H=Y4(ne),H.c(),m(H,1),H.m(I,O)):H&&(ee(),_(H,1,1,()=>{H=null}),te());const Ne={};ae&4194304&&(Ne.$$scope={dirty:ae,ctx:ne}),T.$set(Ne);const Ue={};ae&4194304&&(Ue.$$scope={dirty:ae,ctx:ne}),M.$set(Ue),ne[4]&&ne[4].length>0?W?(W.p(ne,ae),ae&16&&m(W,1)):(W=J4(ne),W.c(),m(W,1),W.m(j.parentNode,j)):W&&(ee(),_(W,1,1,()=>{W=null}),te()),((Ce=ne[0])==null?void 0:Ce.source)===yn.REST?Q?(Q.p(ne,ae),ae&1&&m(Q,1)):(Q=Q4(ne),Q.c(),m(Q,1),Q.m(B.parentNode,B)):Q&&(ee(),_(Q,1,1,()=>{Q=null}),te())},i(ne){q||(m(e.$$.fragment,ne),m(n.$$.fragment,ne),m(s.$$.fragment,ne),m(a.$$.fragment,ne),m(f.$$.fragment,ne),m(U),m(g.$$.fragment,ne),m(C.$$.fragment,ne),m(H),m(T.$$.fragment,ne),m(M.$$.fragment,ne),m(W),m(Q),q=!0)},o(ne){_(e.$$.fragment,ne),_(n.$$.fragment,ne),_(s.$$.fragment,ne),_(a.$$.fragment,ne),_(f.$$.fragment,ne),_(U),_(g.$$.fragment,ne),_(C.$$.fragment,ne),_(H),_(T.$$.fragment,ne),_(M.$$.fragment,ne),_(W),_(Q),q=!1},d(ne){E(e,ne),ne&&b(t),E(n,ne),ne&&b(i),ne&&b(l),E(s),E(a),ne&&b(u),E(f,ne),ne&&b(p),U&&U.d(ne),ne&&b(d),E(g,ne),ne&&b(h),ne&&b(v),E(C),H&&H.d(),E(T),ne&&b(P),E(M,ne),ne&&b(F),W&&W.d(ne),ne&&b(j),Q&&Q.d(ne),ne&&b(B)}}}function vG(r){let e,t,n,i,l={$$slots:{default:[uG]},$$scope:{ctx:r}};e=new At({props:l}),r[13](e);let s=r[0]&&r[3]&&W4(r);return{c(){S(e.$$.fragment),t=R(),s&&s.c(),n=Ee()},m(o,a){A(e,o,a),$(o,t,a),s&&s.m(o,a),$(o,n,a),i=!0},p(o,[a]){const u={};a&4194305&&(u.$$scope={dirty:a,ctx:o}),e.$set(u),o[0]&&o[3]?s?(s.p(o,a),a&9&&m(s,1)):(s=W4(o),s.c(),m(s,1),s.m(n.parentNode,n)):s&&(ee(),_(s,1,1,()=>{s=null}),te())},i(o){i||(m(e.$$.fragment,o),m(s),i=!0)},o(o){_(e.$$.fragment,o),_(s),i=!1},d(o){r[13](null),E(e,o),o&&b(t),s&&s.d(o),o&&b(n)}}}function wG(r,e,t){let n,i,l,s;fe(r,Ql,j=>t(20,n=j)),fe(r,jt,j=>t(5,i=j)),fe(r,kn,j=>t(11,l=j)),fe(r,en,j=>t(12,s=j));let o,a,u,f,c,p;const d={name:{},queryVerb:{displayName:"Method"}};function g(j,B){j&&B&&t(2,a=!jl.exports.isEqual(j,B))}async function h(){try{await en.save(c),(c==null?void 0:c.plus)&&await Ot.fetch(),await en.fetch(),ye.success(`Datasource ${name} updated successfully.`),t(10,f=vn.cloneDeep(c))}catch(j){ye.error(`Error saving datasource: ${j}`)}}function v(j){kn.select(j),i(`./${j._id}`)}function C(j){j&&(t(0,c=vn.cloneDeep(j)),t(3,u=n[c.source]))}function y(j){Z[j?"unshift":"push"](()=>{o=j,t(1,o)})}function I(j){c=j,t(0,c)}function O(j){c=j,t(0,c)}const T=()=>o.show(),P=()=>i("./new"),M=({detail:j})=>v(j);function F(j){c=j,t(0,c)}return r.$$.update=()=>{r.$$.dirty&4096&&t(10,f=s.list.find(j=>j._id===s.selected)),r.$$.dirty&2049&&t(4,p=l.list.filter(j=>j.datasourceId===(c==null?void 0:c._id))),r.$$.dirty&1025&&g(f,c),r.$$.dirty&1024&&C(f)},[c,o,a,u,p,i,d,g,h,v,f,l,s,y,I,O,T,P,M,F]}class yG extends ie{constructor(e){super();le(this,e,wG,vG,re,{})}}function kG(r){let e,t,n,i,l,s;function o(u){r[8](u)}let a={placeholder:r[1]};return r[0]!==void 0&&(a.value=r[0]),t=new tt({props:a}),Z.push(()=>ce(t,"value",o)),t.$on("change",r[9]),l=new gt({props:{name:"SaveFloppy",hoverable:!0,size:"S"}}),l.$on("click",r[10]),{c(){e=D("div"),S(t.$$.fragment),i=R(),S(l.$$.fragment),w(e,"class","input svelte-1wbewzp")},m(u,f){$(u,e,f),A(t,e,null),$(u,i,f),A(l,u,f),s=!0},p(u,f){const c={};f&2&&(c.placeholder=u[1]),!n&&f&1&&(n=!0,c.value=u[0],pe(()=>n=!1)),t.$set(c)},i(u){s||(m(t.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){u&&b(e),E(t),u&&b(i),E(l,u)}}}function CG(r){let e,t,n,i,l,s;const o=[EG,AG,SG],a=[];function u(f,c){return f[2]==="heading"?0:f[2]==="body"?1:2}return e=u(r),t=a[e]=o[e](r),l=new gt({props:{name:"Edit",hoverable:!0,size:"S"}}),l.$on("click",r[7]),{c(){t.c(),n=R(),i=D("div"),S(l.$$.fragment),w(i,"class","hide svelte-1wbewzp")},m(f,c){a[e].m(f,c),$(f,n,c),$(f,i,c),A(l,i,null),s=!0},p(f,c){let p=e;e=u(f),e===p?a[e].p(f,c):(ee(),_(a[p],1,1,()=>{a[p]=null}),te(),t=a[e],t?t.p(f,c):(t=a[e]=o[e](f),t.c()),m(t,1),t.m(n.parentNode,n))},i(f){s||(m(t),m(l.$$.fragment,f),s=!0)},o(f){_(t),_(l.$$.fragment,f),s=!1},d(f){a[e].d(f),f&&b(n),f&&b(i),E(l)}}}function SG(r){let e,t;return e=new Ze({props:{size:r[3],$$slots:{default:[OG]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8&&(l.size=n[3]),i&4099&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function AG(r){let e,t;return e=new Ke({props:{size:r[3],$$slots:{default:[TG]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8&&(l.size=n[3]),i&4099&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function EG(r){let e,t;return e=new kt({props:{size:r[3],$$slots:{default:[IG]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8&&(l.size=n[3]),i&4099&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function OG(r){let e=(r[0]||r[1])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&3&&e!==(e=(n[0]||n[1])+"")&&Te(t,e)},d(n){n&&b(t)}}}function TG(r){let e=(r[0]||r[1])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&3&&e!==(e=(n[0]||n[1])+"")&&Te(t,e)},d(n){n&&b(t)}}}function IG(r){let e=(r[0]||r[1])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&3&&e!==(e=(n[0]||n[1])+"")&&Te(t,e)},d(n){n&&b(t)}}}function LG(r){let e,t,n,i;const l=[CG,kG],s=[];function o(a,u){return a[4]?1:0}return t=o(r),n=s[t]=l[t](r),{c(){e=D("div"),n.c(),w(e,"class","parent svelte-1wbewzp")},m(a,u){$(a,e,u),s[t].m(e,null),i=!0},p(a,[u]){let f=t;t=o(a),t===f?s[t].p(a,u):(ee(),_(s[f],1,1,()=>{s[f]=null}),te(),n=s[t],n?n.p(a,u):(n=s[t]=l[t](a),n.c()),m(n,1),n.m(e,null))},i(a){i||(m(n),i=!0)},o(a){_(n),i=!1},d(a){a&&b(e),s[t].d()}}}function PG(r,e,t){let n=ht(),{defaultValue:i=""}=e,{value:l}=e,{type:s="label"}=e,{size:o="M"}=e,a=!1;function u(h){t(4,a=h),a&&n("change")}function f(){n("save",l)}const c=()=>u(!0);function p(h){l=h,t(0,l)}function d(h){dt.call(this,r,h)}const g=()=>{u(!1),f()};return r.$$set=h=>{"defaultValue"in h&&t(1,i=h.defaultValue),"value"in h&&t(0,l=h.value),"type"in h&&t(2,s=h.type),"size"in h&&t(3,o=h.size)},[l,i,s,o,a,u,f,c,p,d,g]}class NG extends ie{constructor(e){super();le(this,e,PG,LG,re,{defaultValue:1,value:0,type:2,size:3})}}function RG(r){let e,t;return e=new Xf({props:{height:200,mode:r[6](r[1]),value:r[2],resize:"vertical"}}),e.$on("change",r[8]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.mode=n[6](n[1])),i&4&&(l.value=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function MG(r){let e,t,n;function i(s){r[7](s)}let l={name:"param",headings:!0};return r[3]!==void 0&&(l.object=r[3]),e=new vi({props:l}),Z.push(()=>ce(e,"object",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&8&&(t=!0,a.object=s[3],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function DG(r){let e,t,n;return t=new Ke({props:{size:"S",weight:"800",$$slots:{default:[jG]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","none svelte-ly64y9")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&2048&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function jG(r){let e;return{c(){e=V("THE REQUEST DOES NOT HAVE A BODY")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function BG(r){let e,t,n,i,l,s;const o=[DG,MG,RG],a=[];function u(f,c){return f[1]===$i.NONE?0:((t==null||c&2)&&(t=!!f[4].includes(f[1])),t?1:((n==null||c&2)&&(n=!!f[5].includes(f[1])),n?2:-1))}return~(i=u(r,-1))&&(l=a[i]=o[i](r)),{c(){e=D("div"),l&&l.c(),w(e,"class","margin svelte-ly64y9")},m(f,c){$(f,e,c),~i&&a[i].m(e,null),s=!0},p(f,[c]){let p=i;i=u(f,c),i===p?~i&&a[i].p(f,c):(l&&(ee(),_(a[p],1,1,()=>{a[p]=null}),te()),~i?(l=a[i],l?l.p(f,c):(l=a[i]=o[i](f),l.c()),m(l,1),l.m(e,null)):l=null)},i(f){s||(m(l),s=!0)},o(f){_(l),s=!1},d(f){f&&b(e),~i&&a[i].d()}}}function zG(r,e,t){const n=[$i.FORM,$i.ENCODED],i=[$i.JSON,$i.XML,$i.TEXT];let{query:l}=e,{bodyType:s}=e,o="",a="";function u(g){if(!s||!l)return;const h=typeof(l==null?void 0:l.fields.requestBody),v=n.includes(g);i.includes(g)&&h==="string"?t(2,o=l.fields.requestBody):v&&h==="object"&&t(3,a=l.fields.requestBody)}function f(g,h,v){g===$i.NONE?t(0,l.fields.requestBody=null,l):n.includes(g)?t(0,l.fields.requestBody=v,l):t(0,l.fields.requestBody=h,l)}function c(g){switch(g){case $i.JSON:return Ia.JSON;case $i.XML:return Ia.XML;default:case $i.TEXT:return Ia.Text}}function p(g){a=g,t(3,a)}const d=g=>t(0,l.fields.requestBody=g.detail,l);return r.$$set=g=>{"query"in g&&t(0,l=g.query),"bodyType"in g&&t(1,s=g.bodyType)},r.$$.update=()=>{r.$$.dirty&2&&u(s),r.$$.dirty&14&&f(s,o,a)},[l,s,o,a,n,i,c,p,d]}class qG extends ie{constructor(e){super();le(this,e,zG,BG,re,{query:0,bodyType:1})}}function UG(r){let e;return{c(){e=V(`Specify a name for your new dynamic variable, this must be unique across
1070
1070
  your datasource.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function FG(r){let e,t,n,i,l;e=new Ke({props:{size:"S",$$slots:{default:[UG]},$$scope:{ctx:r}}});function s(a){r[10](a)}let o={label:"Variable name",error:r[3]};return r[0]!==void 0&&(o.value=r[0]),n=new tt({props:o}),Z.push(()=>ce(n,"value",s)),n.$on("input",r[11]),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&32768&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};u&8&&(c.error=a[3]),!i&&u&1&&(i=!0,c.value=a[0],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function VG(r){let e,t;return e=new Bt({props:{title:"Add dynamic variable",confirmText:"Save",onConfirm:r[4],disabled:!r[1],$$slots:{default:[FG]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.disabled=!n[1]),i&32777&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function HG(r){let e,t,n={$$slots:{default:[VG]},$$scope:{ctx:r}};return e=new At({props:n}),r[12](e),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,[l]){const s={};l&32779&&(s.$$scope={dirty:l,ctx:i}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){r[12](null),E(e,i)}}}function WG(r,e,t){let n,{dynamicVariables:i}=e,{datasource:l}=e,{binding:s}=e,o,a,u,f;const c=()=>{a.show()},p=()=>{a.hide()};function d(y,I){return I?!f.find(O=>O.toLowerCase()===I.toLowerCase()):!1}async function g(){const y=o,I=s;t(0,o=null),t(6,s=null),t(5,i[y]=I,i)}function h(y){o=y,t(0,o)}function v(y){dt.call(this,r,y)}function C(y){Z[y?"unshift":"push"](()=>{a=y,t(2,a)})}return r.$$set=y=>{"dynamicVariables"in y&&t(5,i=y.dynamicVariables),"datasource"in y&&t(7,l=y.datasource),"binding"in y&&t(6,s=y.binding)},r.$$.update=()=>{var y;r.$$.dirty&33&&t(1,u=d(i,o)),r.$$.dirty&128&&(f=(((y=l==null?void 0:l.config)==null?void 0:y.dynamicVariables)||[]).map(I=>I.name)),r.$$.dirty&3&&t(3,n=o&&!u?"Variable name is already in use.":null)},[o,u,a,n,g,i,s,l,c,p,h,v,C]}class GG extends ie{constructor(e){super();le(this,e,WG,HG,re,{dynamicVariables:5,datasource:7,binding:6,show:8,hide:9})}get show(){return this.$$.ctx[8]}get hide(){return this.$$.ctx[9]}}var YG="/builder/assets/bb-spaceship.8f6e81e1.svg";function X4(r){let e,t,n,i,l,s,o;return n=new Ye({props:{gap:"S",$$slots:{default:[sY]},$$scope:{ctx:r}}}),s=new Ye({props:{paddingY:"S",gap:"S",$$slots:{default:[kY]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("div"),S(s.$$.fragment),w(t,"class","top svelte-1ba99n2"),w(l,"class","bottom svelte-1ba99n2"),w(e,"class","inner svelte-1ba99n2")},m(a,u){$(a,e,u),N(e,t),A(n,t,null),N(e,i),N(e,l),A(s,l,null),o=!0},p(a,u){const f={};u[0]&3972621|u[2]&32&&(f.$$scope={dirty:u,ctx:a}),n.$set(f);const c={};u[0]&197104|u[2]&32&&(c.$$scope={dirty:u,ctx:a}),s.$set(c)},i(a){o||(m(n.$$.fragment,a),m(s.$$.fragment,a),o=!0)},o(a){_(n.$$.fragment,a),_(s.$$.fragment,a),o=!1},d(a){a&&b(e),E(n),E(s)}}}function JG(r){let e;return{c(){e=V("Access level")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function QG(r){let e;return{c(){e=V("Send")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function XG(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function KG(r){let e,t,n;function i(s){r[37](s)}let l={tooltip:"Set the name of the binding which can be used in Handlebars statements throughout your query",name:"binding",headings:!0,keyPlaceholder:"Binding name",valuePlaceholder:"Default"};return r[9]!==void 0&&(l.object=r[9]),e=new vi({props:l}),Z.push(()=>ce(e,"object",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o[0]&512&&(t=!0,a.object=s[9],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function ZG(r){let e,t,n;function i(s){r[38](s)}let l={name:"param",headings:!0};return r[2]!==void 0&&(l.object=r[2]),e=new vi({props:l}),Z.push(()=>ce(e,"object",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o[0]&4&&(t=!0,a.object=s[2],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function xG(r){let e,t,n,i;function l(a){r[39](a)}function s(a){r[40](a)}let o={toggle:!0,name:"header",headings:!0};return r[0].fields.headers!==void 0&&(o.object=r[0].fields.headers),r[11]!==void 0&&(o.activity=r[11]),e=new vi({props:o}),Z.push(()=>ce(e,"object",l)),Z.push(()=>ce(e,"activity",s)),{c(){S(e.$$.fragment)},m(a,u){A(e,a,u),i=!0},p(a,u){const f={};!t&&u[0]&1&&(t=!0,f.object=a[0].fields.headers,pe(()=>t=!1)),!n&&u[0]&2048&&(n=!0,f.activity=a[11],pe(()=>n=!1)),e.$set(f)},i(a){i||(m(e.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),i=!1},d(a){E(e,a)}}}function eY(r){let e,t,n,i,l,s,o;function a(d){r[41](d)}let u={options:r[19]?[zf[0]]:zf,direction:"horizontal",getOptionLabel:AY,getOptionValue:EY};r[0].fields.bodyType!==void 0&&(u.value=r[0].fields.bodyType),e=new Oh({props:u}),Z.push(()=>ce(e,"value",a));function f(d){r[42](d)}function c(d){r[43](d)}let p={};return r[0].fields.bodyType!==void 0&&(p.bodyType=r[0].fields.bodyType),r[0]!==void 0&&(p.query=r[0]),i=new qG({props:p}),Z.push(()=>ce(i,"bodyType",f)),Z.push(()=>ce(i,"query",c)),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment)},m(d,g){A(e,d,g),$(d,n,g),A(i,d,g),o=!0},p(d,g){const h={};g[0]&524288&&(h.options=d[19]?[zf[0]]:zf),!t&&g[0]&1&&(t=!0,h.value=d[0].fields.bodyType,pe(()=>t=!1)),e.$set(h);const v={};!l&&g[0]&1&&(l=!0,v.bodyType=d[0].fields.bodyType,pe(()=>l=!1)),!s&&g[0]&1&&(s=!0,v.query=d[0],pe(()=>s=!1)),i.$set(v)},i(d){o||(m(e.$$.fragment,d),m(i.$$.fragment,d),o=!0)},o(d){_(e.$$.fragment,d),_(i.$$.fragment,d),o=!1},d(d){E(e,d),d&&b(n),E(i,d)}}}function K4(r){let e,t,n,i,l,s,o,a,u,f,c;function p(I){r[45](I)}let d={label:"Pagination parameters location",options:Bj,placeholer:"Choose where to send pagination parameters"};r[0].fields.pagination.location!==void 0&&(d.value=r[0].fields.pagination.location),e=new Qe({props:d}),Z.push(()=>ce(e,"value",p));function g(I){r[46](I)}let h={label:r[0].fields.pagination.type==="page"?"Page number parameter name ":"Request cursor parameter name"};r[0].fields.pagination.pageParam!==void 0&&(h.value=r[0].fields.pagination.pageParam),i=new tt({props:h}),Z.push(()=>ce(i,"value",g));function v(I){r[47](I)}let C={label:r[0].fields.pagination.type==="page"?"Page size parameter name":"Request limit parameter name"};r[0].fields.pagination.sizeParam!==void 0&&(C.value=r[0].fields.pagination.sizeParam),o=new tt({props:C}),Z.push(()=>ce(o,"value",v));let y=r[0].fields.pagination.type==="cursor"&&Z4(r);return{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment),s=R(),S(o.$$.fragment),u=R(),y&&y.c(),f=Ee()},m(I,O){A(e,I,O),$(I,n,O),A(i,I,O),$(I,s,O),A(o,I,O),$(I,u,O),y&&y.m(I,O),$(I,f,O),c=!0},p(I,O){const T={};!t&&O[0]&1&&(t=!0,T.value=I[0].fields.pagination.location,pe(()=>t=!1)),e.$set(T);const P={};O[0]&1&&(P.label=I[0].fields.pagination.type==="page"?"Page number parameter name ":"Request cursor parameter name"),!l&&O[0]&1&&(l=!0,P.value=I[0].fields.pagination.pageParam,pe(()=>l=!1)),i.$set(P);const M={};O[0]&1&&(M.label=I[0].fields.pagination.type==="page"?"Page size parameter name":"Request limit parameter name"),!a&&O[0]&1&&(a=!0,M.value=I[0].fields.pagination.sizeParam,pe(()=>a=!1)),o.$set(M),I[0].fields.pagination.type==="cursor"?y?(y.p(I,O),O[0]&1&&m(y,1)):(y=Z4(I),y.c(),m(y,1),y.m(f.parentNode,f)):y&&(ee(),_(y,1,1,()=>{y=null}),te())},i(I){c||(m(e.$$.fragment,I),m(i.$$.fragment,I),m(o.$$.fragment,I),m(y),c=!0)},o(I){_(e.$$.fragment,I),_(i.$$.fragment,I),_(o.$$.fragment,I),_(y),c=!1},d(I){E(e,I),I&&b(n),E(i,I),I&&b(s),E(o,I),I&&b(u),y&&y.d(I),I&&b(f)}}}function Z4(r){let e,t,n;function i(s){r[48](s)}let l={label:"Response body parameter name for cursor"};return r[0].fields.pagination.responseParam!==void 0&&(l.value=r[0].fields.pagination.responseParam),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o[0]&1&&(t=!0,a.value=s[0].fields.pagination.responseParam,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function tY(r){let e,t,n,i,l;function s(u){r[44](u)}let o={label:"Pagination type",options:jj,placeholder:"None"};r[0].fields.pagination.type!==void 0&&(o.value=r[0].fields.pagination.type),t=new Qe({props:o}),Z.push(()=>ce(t,"value",s));let a=r[0].fields.pagination.type&&K4(r);return{c(){e=D("div"),S(t.$$.fragment),i=R(),a&&a.c(),w(e,"class","pagination svelte-1ba99n2")},m(u,f){$(u,e,f),A(t,e,null),N(e,i),a&&a.m(e,null),l=!0},p(u,f){const c={};!n&&f[0]&1&&(n=!0,c.value=u[0].fields.pagination.type,pe(()=>n=!1)),t.$set(c),u[0].fields.pagination.type?a?(a.p(u,f),f[0]&1&&m(a,1)):(a=K4(u),a.c(),m(a,1),a.m(e,null)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(u){l||(m(t.$$.fragment,u),m(a),l=!0)},o(u){_(t.$$.fragment,u),_(a),l=!1},d(u){u&&b(e),E(t),a&&a.d()}}}function x4(r){let e,t;return e=new c3({props:{extraButtonText:"Learn more",extraButtonAction:r[49],$$slots:{default:[nY]},$$scope:{ctx:r}}}),e.$on("change",r[50]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function nY(r){let e;return{c(){e=V("Add a JavaScript function to transform the query result.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rY(r){let e,t,n,i=!r[21].queryTransformerBanner&&x4(r);return t=new Xf({props:{height:200,mode:Ia.JSON,value:r[0].transformer,resize:"vertical"}}),t.$on("change",r[51]),{c(){i&&i.c(),e=R(),S(t.$$.fragment)},m(l,s){i&&i.m(l,s),$(l,e,s),A(t,l,s),n=!0},p(l,s){l[21].queryTransformerBanner?i&&(ee(),_(i,1,1,()=>{i=null}),te()):i?(i.p(l,s),s[0]&2097152&&m(i,1)):(i=x4(l),i.c(),m(i,1),i.m(e.parentNode,e));const o={};s[0]&1&&(o.value=l[0].transformer),t.$set(o)},i(l){n||(m(i),m(t.$$.fragment,l),n=!0)},o(l){_(i),_(t.$$.fragment,l),n=!1},d(l){i&&i.d(l),l&&b(e),E(t,l)}}}function iY(r){let e,t;return e=new Ye({props:{noPadding:!0,$$slots:{default:[rY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&2097153|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function lY(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I;e=new bn({props:{title:"Bindings",$$slots:{default:[KG]},$$scope:{ctx:r}}}),n=new bn({props:{title:"Params",$$slots:{default:[ZG]},$$scope:{ctx:r}}}),l=new bn({props:{title:"Headers",$$slots:{default:[xG]},$$scope:{ctx:r}}}),o=new bn({props:{title:"Body",$$slots:{default:[eY]},$$scope:{ctx:r}}}),u=new bn({props:{title:"Pagination",$$slots:{default:[tY]},$$scope:{ctx:r}}}),c=new bn({props:{title:"Transformer",$$slots:{default:[iY]},$$scope:{ctx:r}}});function O(P){r[52](P)}let T={label:"Auth",labelPosition:"left",placeholder:"None",options:r[18]};return r[12]!==void 0&&(T.value=r[12]),C=new Qe({props:T}),Z.push(()=>ce(C,"value",O)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),f=R(),S(c.$$.fragment),p=R(),d=D("div"),g=D("div"),h=R(),v=D("div"),S(C.$$.fragment),w(v,"class","auth-select svelte-1ba99n2"),w(d,"class","auth-container svelte-1ba99n2")},m(P,M){A(e,P,M),$(P,t,M),A(n,P,M),$(P,i,M),A(l,P,M),$(P,s,M),A(o,P,M),$(P,a,M),A(u,P,M),$(P,f,M),A(c,P,M),$(P,p,M),$(P,d,M),N(d,g),N(d,h),N(d,v),A(C,v,null),I=!0},p(P,M){const F={};M[0]&512|M[2]&32&&(F.$$scope={dirty:M,ctx:P}),e.$set(F);const j={};M[0]&4|M[2]&32&&(j.$$scope={dirty:M,ctx:P}),n.$set(j);const B={};M[0]&2049|M[2]&32&&(B.$$scope={dirty:M,ctx:P}),l.$set(B);const q={};M[0]&524289|M[2]&32&&(q.$$scope={dirty:M,ctx:P}),o.$set(q);const G={};M[0]&1|M[2]&32&&(G.$$scope={dirty:M,ctx:P}),u.$set(G);const Y={};M[0]&2097153|M[2]&32&&(Y.$$scope={dirty:M,ctx:P}),c.$set(Y);const U={};M[0]&262144&&(U.options=P[18]),!y&&M[0]&4096&&(y=!0,U.value=P[12],pe(()=>y=!1)),C.$set(U)},i(P){I||(m(e.$$.fragment,P),m(n.$$.fragment,P),m(l.$$.fragment,P),m(o.$$.fragment,P),m(u.$$.fragment,P),m(c.$$.fragment,P),m(C.$$.fragment,P),I=!0)},o(P){_(e.$$.fragment,P),_(n.$$.fragment,P),_(l.$$.fragment,P),_(o.$$.fragment,P),_(u.$$.fragment,P),_(c.$$.fragment,P),_(C.$$.fragment,P),I=!1},d(P){E(e,P),P&&b(t),E(n,P),P&&b(i),E(l,P),P&&b(s),E(o,P),P&&b(a),E(u,P),P&&b(f),E(c,P),P&&b(p),P&&b(d),E(C)}}}function sY(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F;function j(H){r[32](H)}let B={type:"heading",defaultValue:"Untitled"};r[0].name!==void 0&&(B.value=r[0].name),t=new NG({props:B}),Z.push(()=>ce(t,"value",j)),t.$on("change",r[33]),t.$on("save",r[22]),s=new Ze({props:{$$slots:{default:[JG]},$$scope:{ctx:r}}}),a=new b4({props:{query:r[0],saveId:r[10]}});function q(H){r[35](H)}let G={options:Object.keys(r[20]),getOptionLabel:r[34]};r[0].queryVerb!==void 0&&(G.value=r[0].queryVerb),p=new Qe({props:G}),Z.push(()=>ce(p,"value",q)),p.$on("change",SY);function Y(H){r[36](H)}let U={placeholder:"http://www.api.com/endpoint"};return r[3]!==void 0&&(U.value=r[3]),v=new tt({props:U}),Z.push(()=>ce(v,"value",Y)),I=new ut({props:{primary:!0,disabled:!r[3],$$slots:{default:[QG]},$$scope:{ctx:r}}}),I.$on("click",r[23]),T=new ut({props:{disabled:!r[0].name,cta:!0,tooltip:r[15]?null:"Saving a query before sending will mean no schema is generated",$$slots:{default:[XG]},$$scope:{ctx:r}}}),T.$on("click",r[22]),M=new Vr({props:{selected:"Bindings",quiet:!0,noPadding:!0,noHorizPadding:!0,onTop:!0,$$slots:{default:[lY]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),i=R(),l=D("div"),S(s.$$.fragment),o=R(),S(a.$$.fragment),u=R(),f=D("div"),c=D("div"),S(p.$$.fragment),g=R(),h=D("div"),S(v.$$.fragment),y=R(),S(I.$$.fragment),O=R(),S(T.$$.fragment),P=R(),S(M.$$.fragment),w(l,"class","access svelte-1ba99n2"),w(e,"class","top-bar svelte-1ba99n2"),w(c,"class","verb svelte-1ba99n2"),w(h,"class","url svelte-1ba99n2"),w(f,"class","url-block svelte-1ba99n2")},m(H,W){$(H,e,W),A(t,e,null),N(e,i),N(e,l),A(s,l,null),N(l,o),A(a,l,null),$(H,u,W),$(H,f,W),N(f,c),A(p,c,null),N(f,g),N(f,h),A(v,h,null),N(f,y),A(I,f,null),N(f,O),A(T,f,null),$(H,P,W),A(M,H,W),F=!0},p(H,W){const Q={};!n&&W[0]&1&&(n=!0,Q.value=H[0].name,pe(()=>n=!1)),t.$set(Q);const se={};W[2]&32&&(se.$$scope={dirty:W,ctx:H}),s.$set(se);const K={};W[0]&1&&(K.query=H[0]),W[0]&1024&&(K.saveId=H[10]),a.$set(K);const ne={};W[0]&1048576&&(ne.options=Object.keys(H[20])),W[0]&1048576&&(ne.getOptionLabel=H[34]),!d&&W[0]&1&&(d=!0,ne.value=H[0].queryVerb,pe(()=>d=!1)),p.$set(ne);const ae={};!C&&W[0]&8&&(C=!0,ae.value=H[3],pe(()=>C=!1)),v.$set(ae);const _e={};W[0]&8&&(_e.disabled=!H[3]),W[2]&32&&(_e.$$scope={dirty:W,ctx:H}),I.$set(_e);const Me={};W[0]&1&&(Me.disabled=!H[0].name),W[0]&32768&&(Me.tooltip=H[15]?null:"Saving a query before sending will mean no schema is generated"),W[2]&32&&(Me.$$scope={dirty:W,ctx:H}),T.$set(Me);const we={};W[0]&2890245|W[2]&32&&(we.$$scope={dirty:W,ctx:H}),M.$set(we)},i(H){F||(m(t.$$.fragment,H),m(s.$$.fragment,H),m(a.$$.fragment,H),m(p.$$.fragment,H),m(v.$$.fragment,H),m(I.$$.fragment,H),m(T.$$.fragment,H),m(M.$$.fragment,H),F=!0)},o(H){_(t.$$.fragment,H),_(s.$$.fragment,H),_(a.$$.fragment,H),_(p.$$.fragment,H),_(v.$$.fragment,H),_(I.$$.fragment,H),_(T.$$.fragment,H),_(M.$$.fragment,H),F=!1},d(H){H&&b(e),E(t),E(s),E(a),H&&b(u),H&&b(f),E(p),E(v),E(I),E(T),H&&b(P),E(M,H)}}}function oY(r){let e,t;return e=new Vr({props:{selected:r[4]?"JSON":"Schema",quiet:!0,noPadding:!0,noHorizPadding:!0,$$slots:{default:[vY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&16&&(l.selected=n[4]?"JSON":"Schema"),i[0]&197104|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function aY(r){let e,t,n,i,l,s,o,a,u;return e=new kt({props:{size:"M",$$slots:{default:[wY]},$$scope:{ctx:r}}}),a=new Ke({props:{size:"XS",textAlign:"center",$$slots:{default:[yY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),n=D("div"),i=D("div"),l=D("img"),o=R(),S(a.$$.fragment),w(l,"alt","placeholder"),an(l.src,s=YG)||w(l,"src",s),w(i,"class","placeholder-internal svelte-1ba99n2"),w(n,"class","placeholder svelte-1ba99n2")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),N(n,i),N(i,l),N(i,o),A(a,i,null),u=!0},p(f,c){const p={};c[2]&32&&(p.$$scope={dirty:c,ctx:f}),e.$set(p);const d={};c[2]&32&&(d.$$scope={dirty:c,ctx:f}),a.$set(d)},i(f){u||(m(e.$$.fragment,f),m(a.$$.fragment,f),u=!0)},o(f){_(e.$$.fragment,f),_(a.$$.fragment,f),u=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(a)}}}function e5(r){let e,t;return e=new bn({props:{title:"JSON",$$slots:{default:[uY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&16|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function uY(r){let e,t,n;return t=new c4({props:{height:"300",data:r[4].rows[0]}}),{c(){e=D("div"),S(t.$$.fragment)},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&16&&(s.data=i[4].rows[0]),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function t5(r){let e,t;return e=new bn({props:{title:"Schema",$$slots:{default:[fY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&131104|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function fY(r){let e,t,n;function i(s){r[53](s)}let l={name:"schema",headings:!0,options:T3,menuItems:r[24],showMenu:!r[17],readOnly:r[17]};return r[5]!==void 0&&(l.object=r[5]),e=new vi({props:l}),Z.push(()=>ce(e,"object",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o[0]&131072&&(a.showMenu=!s[17]),o[0]&131072&&(a.readOnly=s[17]),!t&&o[0]&32&&(t=!0,a.object=s[5],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function n5(r){let e,t,n,i,l,s;return e=new bn({props:{title:"Raw",$$slots:{default:[cY]},$$scope:{ctx:r}}}),n=new bn({props:{title:"Headers",$$slots:{default:[pY]},$$scope:{ctx:r}}}),l=new bn({props:{title:"Preview",$$slots:{default:[dY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(o,a){A(e,o,a),$(o,t,a),A(n,o,a),$(o,i,a),A(l,o,a),s=!0},p(o,a){const u={};a[0]&16|a[2]&32&&(u.$$scope={dirty:a,ctx:o}),e.$set(u);const f={};a[0]&16|a[2]&32&&(f.$$scope={dirty:a,ctx:o}),n.$set(f);const c={};a[0]&16|a[2]&32&&(c.$$scope={dirty:a,ctx:o}),l.$set(c)},i(o){s||(m(e.$$.fragment,o),m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){E(e,o),o&&b(t),E(n,o),o&&b(i),E(l,o)}}}function cY(r){var n;let e,t;return e=new pi({props:{disabled:!0,value:(n=r[4].extra)==null?void 0:n.raw,height:"300"}}),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){var o;const s={};l[0]&16&&(s.value=(o=i[4].extra)==null?void 0:o.raw),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function pY(r){var n;let e,t;return e=new vi({props:{object:(n=r[4].extra)==null?void 0:n.headers,readOnly:!0,menuItems:r[25],showMenu:!0}}),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){var o;const s={};l[0]&16&&(s.object=(o=i[4].extra)==null?void 0:o.headers),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function r5(r){var n,i;let e,t;return e=new Ni({props:{schema:(n=r[4])==null?void 0:n.schema,data:(i=r[4])==null?void 0:i.rows,allowEditColumns:!1,allowEditRows:!1,allowSelectRows:!1}}),{c(){S(e.$$.fragment)},m(l,s){A(e,l,s),t=!0},p(l,s){var a,u;const o={};s[0]&16&&(o.schema=(a=l[4])==null?void 0:a.schema),s[0]&16&&(o.data=(u=l[4])==null?void 0:u.rows),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){_(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function dY(r){let e,t,n=r[4]&&r5(r);return{c(){e=D("div"),n&&n.c(),w(e,"class","table svelte-1ba99n2")},m(i,l){$(i,e,l),n&&n.m(e,null),t=!0},p(i,l){i[4]?n?(n.p(i,l),l[0]&16&&m(n,1)):(n=r5(i),n.c(),m(n,1),n.m(e,null)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){i&&b(e),n&&n.d()}}}function i5(r){let e,t;return e=new bn({props:{title:"Dynamic Variables",$$slots:{default:[_Y]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&192|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function mY(r){let e;return{c(){e=V(`Create dynamic variables based on response body or headers
1071
- from this query.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gY(r){let e,t,n,i,l;e=new Ke({props:{size:"S",$$slots:{default:[mY]},$$scope:{ctx:r}}});function s(a){r[54](a)}let o={name:"Variable",headings:!0,keyHeading:"Name",keyPlaceholder:"Variable name",valueHeading:"Value",valuePlaceholder:"{{ value }}",readOnly:r[7]};return r[6]!==void 0&&(o.object=r[6]),n=new vi({props:o}),Z.push(()=>ce(n,"object",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u[2]&32&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};u[0]&128&&(c.readOnly=a[7]),!i&&u[0]&64&&(i=!0,c.object=a[6],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function _Y(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[gY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&192|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function l5(r){let e,t,n,i,l,s,o;return t=new Ze({props:{size:"L",$$slots:{default:[hY]},$$scope:{ctx:r}}}),i=new Ze({props:{size:"L",$$slots:{default:[$Y]},$$scope:{ctx:r}}}),s=new Ze({props:{size:"L",$$slots:{default:[bY]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),w(e,"class","stats svelte-1ba99n2")},m(a,u){$(a,e,u),A(t,e,null),N(e,n),A(i,e,null),N(e,l),A(s,e,null),o=!0},p(a,u){const f={};u[0]&272|u[2]&32&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const c={};u[0]&272|u[2]&32&&(c.$$scope={dirty:u,ctx:a}),i.$set(c);const p={};u[0]&272|u[2]&32&&(p.$$scope={dirty:u,ctx:a}),s.$set(p)},i(a){o||(m(t.$$.fragment,a),m(i.$$.fragment,a),m(s.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),_(i.$$.fragment,a),_(s.$$.fragment,a),o=!1},d(a){a&&b(e),E(t),E(i),E(s)}}}function hY(r){var s;let e,t,n=((s=r[4])==null?void 0:s.info.code)+"",i,l;return{c(){e=V("Status: "),t=D("span"),i=V(n),w(t,"class",l=""+(Vn(r[8]?"green":"red")+" svelte-1ba99n2"))},m(o,a){$(o,e,a),$(o,t,a),N(t,i)},p(o,a){var u;a[0]&16&&n!==(n=((u=o[4])==null?void 0:u.info.code)+"")&&Te(i,n),a[0]&256&&l!==(l=""+(Vn(o[8]?"green":"red")+" svelte-1ba99n2"))&&w(t,"class",l)},d(o){o&&b(e),o&&b(t)}}}function $Y(r){var s;let e,t,n=((s=r[4])==null?void 0:s.info.time)+"",i,l;return{c(){e=V("Time: "),t=D("span"),i=V(n),w(t,"class",l=""+(Vn(r[8]?"green":"red")+" svelte-1ba99n2"))},m(o,a){$(o,e,a),$(o,t,a),N(t,i)},p(o,a){var u;a[0]&16&&n!==(n=((u=o[4])==null?void 0:u.info.time)+"")&&Te(i,n),a[0]&256&&l!==(l=""+(Vn(o[8]?"green":"red")+" svelte-1ba99n2"))&&w(t,"class",l)},d(o){o&&b(e),o&&b(t)}}}function bY(r){var s;let e,t,n=((s=r[4])==null?void 0:s.info.size)+"",i,l;return{c(){e=V("Size: "),t=D("span"),i=V(n),w(t,"class",l=""+(Vn(r[8]?"green":"red")+" svelte-1ba99n2"))},m(o,a){$(o,e,a),$(o,t,a),N(t,i)},p(o,a){var u;a[0]&16&&n!==(n=((u=o[4])==null?void 0:u.info.size)+"")&&Te(i,n),a[0]&256&&l!==(l=""+(Vn(o[8]?"green":"red")+" svelte-1ba99n2"))&&w(t,"class",l)},d(o){o&&b(e),o&&b(t)}}}function vY(r){let e,t,n,i,l,s,o=r[4]&&e5(r),a=(r[5]||r[4])&&t5(r),u=r[4]&&n5(r),f=r[16]&&i5(r),c=r[4]&&l5(r);return{c(){o&&o.c(),e=R(),a&&a.c(),t=R(),u&&u.c(),n=R(),f&&f.c(),i=R(),c&&c.c(),l=Ee()},m(p,d){o&&o.m(p,d),$(p,e,d),a&&a.m(p,d),$(p,t,d),u&&u.m(p,d),$(p,n,d),f&&f.m(p,d),$(p,i,d),c&&c.m(p,d),$(p,l,d),s=!0},p(p,d){p[4]?o?(o.p(p,d),d[0]&16&&m(o,1)):(o=e5(p),o.c(),m(o,1),o.m(e.parentNode,e)):o&&(ee(),_(o,1,1,()=>{o=null}),te()),p[5]||p[4]?a?(a.p(p,d),d[0]&48&&m(a,1)):(a=t5(p),a.c(),m(a,1),a.m(t.parentNode,t)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),p[4]?u?(u.p(p,d),d[0]&16&&m(u,1)):(u=n5(p),u.c(),m(u,1),u.m(n.parentNode,n)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),p[16]?f?(f.p(p,d),d[0]&65536&&m(f,1)):(f=i5(p),f.c(),m(f,1),f.m(i.parentNode,i)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),p[4]?c?(c.p(p,d),d[0]&16&&m(c,1)):(c=l5(p),c.c(),m(c,1),c.m(l.parentNode,l)):c&&(ee(),_(c,1,1,()=>{c=null}),te())},i(p){s||(m(o),m(a),m(u),m(f),m(c),s=!0)},o(p){_(o),_(a),_(u),_(f),_(c),s=!1},d(p){o&&o.d(p),p&&b(e),a&&a.d(p),p&&b(t),u&&u.d(p),p&&b(n),f&&f.d(p),p&&b(i),c&&c.d(p),p&&b(l)}}}function wY(r){let e;return{c(){e=V("Response")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yY(r){let e="enter a url in the textbox above and click send to get a response".toUpperCase()+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p:Oe,d(n){n&&b(t)}}}function kY(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}});const a=[aY,oY],u=[];function f(c,p){return(n==null||p[0]&48)&&(n=!c[4]&&Object.keys(c[5]).length===0),n?0:1}return i=f(r,[-1,-1,-1]),l=u[i]=a[i](r),{c(){S(e.$$.fragment),t=R(),l.c(),s=Ee()},m(c,p){A(e,c,p),$(c,t,p),u[i].m(c,p),$(c,s,p),o=!0},p(c,p){let d=i;i=f(c,p),i===d?u[i].p(c,p):(ee(),_(u[d],1,1,()=>{u[d]=null}),te(),l=u[i],l?l.p(c,p):(l=u[i]=a[i](c),l.c()),m(l,1),l.m(s.parentNode,s))},i(c){o||(m(e.$$.fragment,c),m(l),o=!0)},o(c){_(e.$$.fragment,c),_(l),o=!1},d(c){E(e,c),c&&b(t),u[i].d(c),c&&b(s)}}}function CY(r){let e,t,n,i,l;function s(u){r[30](u)}let o={datasource:r[1],dynamicVariables:r[6]};r[14]!==void 0&&(o.binding=r[14]),e=new GG({props:o}),Z.push(()=>ce(e,"binding",s)),r[31](e);let a=r[0]&&r[20]&&X4(r);return{c(){S(e.$$.fragment),n=R(),a&&a.c(),i=Ee()},m(u,f){A(e,u,f),$(u,n,f),a&&a.m(u,f),$(u,i,f),l=!0},p(u,f){const c={};f[0]&2&&(c.datasource=u[1]),f[0]&64&&(c.dynamicVariables=u[6]),!t&&f[0]&16384&&(t=!0,c.binding=u[14],pe(()=>t=!1)),e.$set(c),u[0]&&u[20]?a?(a.p(u,f),f[0]&1048577&&m(a,1)):(a=X4(u),a.c(),m(a,1),a.m(i.parentNode,i)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(u){l||(m(e.$$.fragment,u),m(a),l=!0)},o(u){_(e.$$.fragment,u),_(a),l=!1},d(u){r[31](null),E(e,u),u&&b(n),a&&a.d(u),u&&b(i)}}}const SY=()=>{},AY=r=>r.name,EY=r=>r.value;function OY(r,e,t){let n,i,l,s,o,a,u,f,c,p,d,g,h,v,C;fe(r,en,Ve=>t(55,d=Ve)),fe(r,tr,Ve=>t(56,g=Ve)),fe(r,kn,Ve=>t(57,h=Ve)),fe(r,Ql,Ve=>t(29,v=Ve)),fe(r,s1,Ve=>t(21,C=Ve));let y,I,O={},T={},P,M,F,j,B,q,G,Y,U;function H(){return vn.cloneDeep(h.list.find(Ve=>Ve._id===h.selected)||{datasourceId:g.selectedDatasource,parameters:[],fields:{disabledHeaders:{},headers:{}},queryVerb:"read"})}function W(Ve=null){y&&(!y.name||y.flags.urlName)&&(t(0,y.flags.urlName=!0,y),t(0,y.name=M||Ve,y))}function Q(Ve,Be){if(!Ve)return Ve;const Dt=Ol.buildQueryString(Be);let on=Ve;return Ve.includes("?")&&(on=Ve.split("?")[0]),Dt.length>0?`${on}?${Dt}`:on}function se(){const Ve=Se({},y),Be=Ol.buildQueryString(O);return Ve.fields.path=M.split("?")[0],Ve.fields.queryString=Be,Ve.fields.authConfigId=q,Ve.fields.disabledHeaders=Ol.flipHeaderState(B),Ve.schema=Ol.fieldsToSchema(j),Ve.parameters=Ol.keyValueToQueryParameters(T),Ve}async function K(){const Ve=se();try{const{_id:Be}=await kn.save(Ve.datasourceId,Ve);t(10,P=Be),t(0,y=H()),ye.success("Request saved successfully"),G&&(t(1,I.config.dynamicVariables=ge(P),I),t(1,I=await en.save(I)))}catch{ye.error("Error saving query")}}async function ne(){try{t(4,F=await kn.preview(se(y))),F.rows.length===0?ye.info("Request did not return any data"):(t(4,F.info=F.info||{code:200},F),t(5,j=F.schema),ye.success("Request sent successfully"))}catch{ye.error("Error running query")}}const ae=()=>{var Be,Dt;let Ve=y.fields.authConfigId;return Ve&&(((Dt=(Be=I==null?void 0:I.config)==null?void 0:Be.authConfigs)==null?void 0:Dt.filter(Cn=>Cn._id===Ve)[0])||(Ve=void 0)),Ve},_e=Ve=>{var Be;return((Be=Ve==null?void 0:Ve.config)==null?void 0:Be.authConfigs)?Ve.config.authConfigs.map(Dt=>({label:Dt.name,value:Dt._id})):[]},Me=[{text:"Create dynamic variable",onClick:Ve=>{t(14,U=`{{ data.0.[${Ve.name}] }}`),Y.show()}}],we=[{text:"Create dynamic variable",onClick:Ve=>{t(14,U=`{{ info.headers.[${Ve.name}] }}`),Y.show()}}],$e=(Ve,Be)=>{var on;const Dt=(on=Ve==null?void 0:Ve.config)==null?void 0:on.dynamicVariables;return Dt&&Dt.length>0?(Be?Dt.filter(Ar=>Ar.queryId===Be):Dt).reduce((Ar,yi)=>lt(Se({},Ar),{[yi.name]:yi.value}),{}):{}},ge=Ve=>{var on;let Be=[];G&&(Be=Object.entries(G).map(Cn=>({name:Cn[0],value:Cn[1],queryId:Ve})));let Dt=((on=I==null?void 0:I.config)==null?void 0:on.dynamicVariables)||[];return Dt=Dt.filter(Cn=>Cn.queryId!==Ve),[...Dt,...Be]},Ne=(Ve,Be)=>!!(Ve&&(!Be||Object.keys(Ve).length>0)),Ue=async(Ve,Be)=>{try{await s1.updateFlag(Ve,Be)}catch{ye.error("Error updating flag")}};Ft(async()=>{t(0,y=H());try{await en.init()}catch{ye.error("Error getting datasources")}t(1,I=d.list.find(on=>on._id===(y==null?void 0:y.datasourceId)));const Ve=I==null?void 0:I.config.url,Be=y==null?void 0:y.fields.queryString;t(2,O=Ol.breakQueryString(Be));const Dt=y.fields.path;Ve&&!(Dt==null?void 0:Dt.startsWith("http"))&&!(Dt==null?void 0:Dt.startsWith("{{"))&&t(0,y.fields.path=`${I.config.url}/${Dt||""}`,y),t(3,M=Q(y.fields.path,O)),t(5,j=Ol.schemaToFields(y.schema)),t(9,T=Ol.queryParametersToKeyValue(y.parameters)),t(12,q=ae()),y.fields.disabledHeaders||t(0,y.fields.disabledHeaders={},y);for(let on of Object.keys(y.fields.headers))y.fields.disabledHeaders[on]||t(0,y.fields.disabledHeaders[on]=!1,y);t(11,B=Ol.flipHeaderState(y.fields.disabledHeaders)),y&&!y.transformer&&t(0,y.transformer="return data",y),y&&!y.flags&&t(0,y.flags={urlName:!1},y),y&&!y.fields.bodyType&&(y.fields.requestBody?t(0,y.fields.bodyType=$i.JSON,y):t(0,y.fields.bodyType=$i.NONE,y)),y&&!y.fields.pagination&&t(0,y.fields.pagination={},y),t(6,G=$e(I,y._id))});function ue(Ve){U=Ve,t(14,U)}function Ce(Ve){Z[Ve?"unshift":"push"](()=>{Y=Ve,t(13,Y)})}function ke(Ve){r.$$.not_equal(y.name,Ve)&&(y.name=Ve,t(0,y))}const ze=()=>t(0,y.flags.urlName=!1,y),be=Ve=>{var Be;return((Be=l[Ve])==null?void 0:Be.displayName)||Sr(Ve)};function he(Ve){r.$$.not_equal(y.queryVerb,Ve)&&(y.queryVerb=Ve,t(0,y))}function Xe(Ve){M=Ve,t(3,M),t(2,O)}function Mt(Ve){T=Ve,t(9,T)}function qe(Ve){O=Ve,t(2,O)}function pt(Ve){r.$$.not_equal(y.fields.headers,Ve)&&(y.fields.headers=Ve,t(0,y))}function It(Ve){B=Ve,t(11,B)}function Ie(Ve){r.$$.not_equal(y.fields.bodyType,Ve)&&(y.fields.bodyType=Ve,t(0,y))}function Ge(Ve){r.$$.not_equal(y.fields.bodyType,Ve)&&(y.fields.bodyType=Ve,t(0,y))}function Fe(Ve){y=Ve,t(0,y)}function at(Ve){r.$$.not_equal(y.fields.pagination.type,Ve)&&(y.fields.pagination.type=Ve,t(0,y))}function Le(Ve){r.$$.not_equal(y.fields.pagination.location,Ve)&&(y.fields.pagination.location=Ve,t(0,y))}function Lt(Ve){r.$$.not_equal(y.fields.pagination.pageParam,Ve)&&(y.fields.pagination.pageParam=Ve,t(0,y))}function sn(Ve){r.$$.not_equal(y.fields.pagination.sizeParam,Ve)&&(y.fields.pagination.sizeParam=Ve,t(0,y))}function dn(Ve){r.$$.not_equal(y.fields.pagination.responseParam,Ve)&&(y.fields.pagination.responseParam=Ve,t(0,y))}const cn=()=>window.open("https://docs.budibase.com/docs/transformers"),hr=()=>Ue("queryTransformerBanner",!0),In=Ve=>t(0,y.transformer=Ve.detail,y);function ar(Ve){q=Ve,t(12,q)}function lr(Ve){j=Ve,t(5,j)}function rl(Ve){G=Ve,t(6,G)}return r.$$.update=()=>{var Ve,Be;r.$$.dirty[0]&2&&t(28,n=I==null?void 0:I.source),r.$$.dirty[0]&805306368&&t(27,i=v[n]),r.$$.dirty[0]&134217728&&t(20,l=i==null?void 0:i.query),r.$$.dirty[0]&12&&t(3,M=Q(M,O)),r.$$.dirty[0]&8&&W(M),r.$$.dirty[0]&16&&t(8,s=((Ve=F==null?void 0:F.info)==null?void 0:Ve.code)>=200&&((Be=F==null?void 0:F.info)==null?void 0:Be.code)<400),r.$$.dirty[0]&1&&t(19,o=(y==null?void 0:y.queryVerb)==="read"),r.$$.dirty[0]&2&&t(18,a=_e(I)),r.$$.dirty[0]&256&&t(17,u=!s),r.$$.dirty[0]&256&&t(7,f=!s),r.$$.dirty[0]&192&&t(16,c=Ne(G,f)),r.$$.dirty[0]&33&&t(15,p=Object.keys(j||{}).length!==0||Object.keys((y==null?void 0:y.schema)||{}).length!==0)},[y,I,O,M,F,j,G,f,s,T,P,B,q,Y,U,p,c,u,a,o,l,C,K,ne,Me,we,Ue,i,n,v,ue,Ce,ke,ze,be,he,Xe,Mt,qe,pt,It,Ie,Ge,Fe,at,Le,Lt,sn,dn,cn,hr,In,ar,lr,rl]}class TY extends ie{constructor(e){super();le(this,e,OY,CY,re,{},null,[-1,-1,-1])}}function IY(r){let e;const t=r[1].default,n=bt(t,r,r[0],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,[l]){n&&n.p&&(!e||l&1)&&vt(n,t,i,i[0],e?yt(t,i[0],l,null):wt(i[0]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function LY(r,e,t){let n,i;fe(r,tr,o=>t(2,n=o)),fe(r,kn,o=>t(3,i=o));let{$$slots:l={},$$scope:s}=e;if(n.query){const o=i.list.find(a=>a._id===n.query);o&&kn.select(o)}return r.$$set=o=>{"$$scope"in o&&t(0,s=o.$$scope)},[s,l]}class PY extends ie{constructor(e){super();le(this,e,LY,IY,re,{})}}function NY(r){let e;const t=r[1].default,n=bt(t,r,r[0],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,[l]){n&&n.p&&(!e||l&1)&&vt(n,t,i,i[0],e?yt(t,i[0],l,null):wt(i[0]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function RY(r,e,t){let n,i;fe(r,tr,o=>t(2,n=o)),fe(r,en,o=>t(3,i=o));let{$$slots:l={},$$scope:s}=e;if(n.selectedDatasource&&!n.query){const o=i.list.find(a=>a._id===n.selectedDatasource);o&&en.select(o._id)}return r.$$set=o=>{"$$scope"in o&&t(0,s=o.$$scope)},[s,l]}class MY extends ie{constructor(e){super();le(this,e,RY,NY,re,{})}}function s5(r,e,t){const n=r.slice();return n[21]=e[t],n[22]=e,n[23]=t,n}function DY(r){let e;return{c(){e=V("Upload")},m(t,n){$(t,e,n)},p:Oe,d(t){t&&b(e)}}}function jY(r){let e=r[0][0].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[0][0].name+"")&&Te(t,e)},d(n){n&&b(t)}}}function BY(r){let e,t,n,i;function l(o){r[17](o)}let s={header:"Invalid CSV",type:"error"};return r[6]!==void 0&&(s.message=r[6]),t=new i1({props:s}),Z.push(()=>ce(t,"message",l)),{c(){e=D("div"),S(t.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),i=!0},p(o,a){const u={};!n&&a&64&&(n=!0,u.message=o[6],pe(()=>n=!1)),t.$set(u)},i(o){i||(m(t.$$.fragment,o),i=!0)},o(o){_(t.$$.fragment,o),i=!1},d(o){o&&b(e),E(t)}}}function zY(r){let e,t,n,i,l=r[4],s=[];for(let u=0;u<l.length;u+=1)s[u]=o5(s5(r,l,u));const o=u=>_(s[u],1,1,()=>{s[u]=null});let a=!r[1]&&a5(r);return{c(){e=D("div");for(let u=0;u<s.length;u+=1)s[u].c();t=R(),a&&a.c(),n=Ee(),w(e,"class","schema-fields svelte-1rdzppm")},m(u,f){$(u,e,f);for(let c=0;c<s.length;c+=1)s[c].m(e,null);$(u,t,f),a&&a.m(u,f),$(u,n,f),i=!0},p(u,f){if(f&1818){l=u[4];let c;for(c=0;c<l.length;c+=1){const p=s5(u,l,c);s[c]?(s[c].p(p,f),m(s[c],1)):(s[c]=o5(p),s[c].c(),m(s[c],1),s[c].m(e,null))}for(ee(),c=l.length;c<s.length;c+=1)o(c);te()}u[1]?a&&(ee(),_(a,1,1,()=>{a=null}),te()):a?(a.p(u,f),f&2&&m(a,1)):(a=a5(u),a.c(),m(a,1),a.m(n.parentNode,n))},i(u){if(!i){for(let f=0;f<l.length;f+=1)m(s[f]);m(a),i=!0}},o(u){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)_(s[f]);_(a),i=!1},d(u){u&&b(e),$t(s,u),u&&b(t),a&&a.d(u),u&&b(n)}}}function o5(r){let e,t,n=r[21]+"",i,l,s,o,a,u,f=(r[3][r[21]].success?"Success":"Failure")+"",c,p,d,g,h,v,C;function y(T){r[14](T,r[21])}let I={options:r[10],placeholder:null,getOptionLabel:UY,getOptionValue:FY,disabled:!!r[1]};r[3][r[21]].type!==void 0&&(I.value=r[3][r[21]].type),s=new Qe({props:I}),Z.push(()=>ce(s,"value",y)),s.$on("change",function(){ct(r[9](r[21]))&&r[9](r[21]).apply(this,arguments)});function O(){return r[15](r[21])}return{c(){e=D("div"),t=D("span"),i=V(n),l=R(),S(s.$$.fragment),a=R(),u=D("span"),c=V(f),p=R(),d=D("i"),g=R(),w(u,"class","field-status svelte-1rdzppm"),oe(u,"error",!r[3][r[21]].success),w(d,"class","omit-button ri-close-circle-fill svelte-1rdzppm"),w(e,"class","field svelte-1rdzppm")},m(T,P){$(T,e,P),N(e,t),N(t,i),N(e,l),A(s,e,null),N(e,a),N(e,u),N(u,c),N(e,p),N(e,d),N(e,g),h=!0,v||(C=Pe(d,"click",O),v=!0)},p(T,P){r=T,(!h||P&16)&&n!==(n=r[21]+"")&&Te(i,n);const M={};P&2&&(M.disabled=!!r[1]),!o&&P&24&&(o=!0,M.value=r[3][r[21]].type,pe(()=>o=!1)),s.$set(M),(!h||P&24)&&f!==(f=(r[3][r[21]].success?"Success":"Failure")+"")&&Te(c,f),P&24&&oe(u,"error",!r[3][r[21]].success)},i(T){h||(m(s.$$.fragment,T),h=!0)},o(T){_(s.$$.fragment,T),h=!1},d(T){T&&b(e),E(s),v=!1,C()}}}function a5(r){let e,t,n,i;function l(o){r[16](o)}let s={label:"Display Column",options:r[4],sort:!0};return r[2]!==void 0&&(s.value=r[2]),t=new Qe({props:s}),Z.push(()=>ce(t,"value",l)),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","display-column svelte-1rdzppm")},m(o,a){$(o,e,a),A(t,e,null),i=!0},p(o,a){const u={};a&16&&(u.options=o[4]),!n&&a&4&&(n=!0,u.value=o[2],pe(()=>n=!1)),t.$set(u)},i(o){i||(m(t.$$.fragment,o),i=!0)},o(o){_(t.$$.fragment,o),i=!1},d(o){o&&b(e),E(t)}}}function qY(r){let e,t,n,i,l,s,o,a,u,f,c;function p(y,I){return y[0][0]?jY:DY}let d=p(r),g=d(r);const h=[zY,BY],v=[];function C(y,I){return y[4].length?0:y[5]?1:-1}return~(s=C(r))&&(o=v[s]=h[s](r)),{c(){e=D("div"),t=D("input"),n=R(),i=D("label"),g.c(),l=R(),o&&o.c(),a=Ee(),w(t,"id","file-upload"),w(t,"accept",".csv"),w(t,"type","file"),w(t,"class","svelte-1rdzppm"),w(i,"for","file-upload"),w(i,"class","svelte-1rdzppm"),oe(i,"uploaded",r[0][0]),w(e,"class","dropzone svelte-1rdzppm")},m(y,I){$(y,e,I),N(e,t),N(e,n),N(e,i),g.m(i,null),$(y,l,I),~s&&v[s].m(y,I),$(y,a,I),u=!0,f||(c=Pe(t,"change",r[7]),f=!0)},p(y,[I]){d===(d=p(y))&&g?g.p(y,I):(g.d(1),g=d(y),g&&(g.c(),g.m(i,null))),I&1&&oe(i,"uploaded",y[0][0]);let O=s;s=C(y),s===O?~s&&v[s].p(y,I):(o&&(ee(),_(v[O],1,1,()=>{v[O]=null}),te()),~s?(o=v[s],o?o.p(y,I):(o=v[s]=h[s](y),o.c()),m(o,1),o.m(a.parentNode,a)):o=null)},i(y){u||(m(o),u=!0)},o(y){_(o),u=!1},d(y){y&&b(e),g.d(),y&&b(l),~s&&v[s].d(y),y&&b(a),f=!1,c()}}}const u5=1e6,UY=r=>r.label,FY=r=>r.value;function VY(r,e,t){let n,i;const l=u5*5;let{files:s=[]}=e,{dataImport:o={valid:!0,schema:{}}}=e,{existingTableId:a}=e,u,f,c={},p=[],d=!1;function g(F){const j={};for(let B in F){const q=F[B].type;q!=="omit"&&(j[B]={name:B,type:q,constraints:zt[q.toUpperCase()].constraints})}return j}async function h(){try{const F=await xe.validateTableCSV({csvString:u,schema:c||{},tableId:a});t(3,c=F==null?void 0:F.schema),t(4,p=Object.keys(c||{}).filter(j=>c[j].type!=="omit")),(!f||p.indexOf(f)===-1)&&t(2,f=p[0]),t(5,d=!0)}catch{ye.error("CSV Invalid, please try another CSV file")}}async function v(F){const j=Array.from(F.target.files);if(j.some(q=>q.size>=l)){ye.error(`Files cannot exceed ${l/u5}MB. Please try again with smaller files.`);return}let B=new FileReader;B.addEventListener("load",function(q){t(12,u=q.target.result),t(0,s=j),h()}),B.readAsText(j[0])}async function C(F){t(3,c[F].type="omit",c),await h()}const y=F=>j=>{t(3,c[F].type=j.detail,c),h()},I=[{label:"Text",value:zt.STRING.type},{label:"Number",value:zt.NUMBER.type},{label:"Date",value:zt.DATETIME.type},{label:"Options",value:zt.OPTIONS.type},{label:"Multi-select",value:zt.ARRAY.type}];function O(F,j){r.$$.not_equal(c[j].type,F)&&(c[j].type=F,t(3,c))}const T=F=>C(F);function P(F){f=F,t(2,f)}function M(F){i=F,t(6,i),t(1,a)}return r.$$set=F=>{"files"in F&&t(0,s=F.files),"dataImport"in F&&t(11,o=F.dataImport),"existingTableId"in F&&t(1,a=F.existingTableId)},r.$$.update=()=>{r.$$.dirty&56&&t(13,n=!c||p.every(F=>c[F].success)&&(!d||Object.keys(c).length>0)),r.$$.dirty&12300&&t(11,o={valid:n,schema:g(c),csvString:u,primaryDisplay:f}),r.$$.dirty&2&&t(6,i=a?"No columns in CSV match existing table schema":"Could not find any columns to import")},[s,a,f,c,p,d,i,v,C,y,I,o,u,n,O,T,P,M]}class f5 extends ie{constructor(e){super();le(this,e,VY,qY,re,{files:0,dataImport:11,existingTableId:1})}}function HY(r){let e;return{c(){e=V("Auto Columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function WY(r){let e;return{c(){e=V("Create Table from CSV (Optional)")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function GY(r){let e,t,n,i,l;e=new Ze({props:{grey:!0,extraSmall:!0,$$slots:{default:[WY]},$$scope:{ctx:r}}});function s(a){r[13](a)}let o={};return r[1]!==void 0&&(o.dataImport=r[1]),n=new f5({props:o}),Z.push(()=>ce(n,"dataImport",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&262144&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};!i&&u&2&&(i=!0,c.dataImport=a[1],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function YY(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F,j,B,q,G,Y;function U(ge){r[7](ge)}let H={"data-cy":"table-name-input",thin:!0,label:"Table Name",error:r[2]};r[0]!==void 0&&(H.value=r[0]),e=new tt({props:H}),Z.push(()=>ce(e,"value",U)),e.$on("input",r[4]),l=new Ze({props:{extraSmall:!0,grey:!0,$$slots:{default:[HY]},$$scope:{ctx:r}}});function W(ge){r[8](ge)}let Q={text:"Created by"};r[3].createdBy.enabled!==void 0&&(Q.value=r[3].createdBy.enabled),u=new Hn({props:Q}),Z.push(()=>ce(u,"value",W));function se(ge){r[9](ge)}let K={text:"Created at"};r[3].createdAt.enabled!==void 0&&(K.value=r[3].createdAt.enabled),p=new Hn({props:K}),Z.push(()=>ce(p,"value",se));function ne(ge){r[10](ge)}let ae={text:"Auto ID"};r[3].autoID.enabled!==void 0&&(ae.value=r[3].autoID.enabled),h=new Hn({props:ae}),Z.push(()=>ce(h,"value",ne));function _e(ge){r[11](ge)}let Me={text:"Updated by"};r[3].updatedBy.enabled!==void 0&&(Me.value=r[3].updatedBy.enabled),I=new Hn({props:Me}),Z.push(()=>ce(I,"value",_e));function we(ge){r[12](ge)}let $e={text:"Updated at"};return r[3].updatedAt.enabled!==void 0&&($e.value=r[3].updatedAt.enabled),P=new Hn({props:$e}),Z.push(()=>ce(P,"value",we)),j=new un({}),G=new Ye({props:{gap:"XS",noPadding:!0,$$slots:{default:[GY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),s=R(),o=D("div"),a=D("div"),S(u.$$.fragment),c=R(),S(p.$$.fragment),g=R(),S(h.$$.fragment),C=R(),y=D("div"),S(I.$$.fragment),T=R(),S(P.$$.fragment),F=R(),S(j.$$.fragment),B=R(),q=D("div"),S(G.$$.fragment),w(a,"class","toggle-1 svelte-19e3t83"),w(y,"class","toggle-2 svelte-19e3t83"),w(o,"class","toggles svelte-19e3t83"),w(i,"class","autocolumns svelte-19e3t83")},m(ge,Ne){A(e,ge,Ne),$(ge,n,Ne),$(ge,i,Ne),A(l,i,null),N(i,s),N(i,o),N(o,a),A(u,a,null),N(a,c),A(p,a,null),N(a,g),A(h,a,null),N(o,C),N(o,y),A(I,y,null),N(y,T),A(P,y,null),N(i,F),A(j,i,null),$(ge,B,Ne),$(ge,q,Ne),A(G,q,null),Y=!0},p(ge,Ne){const Ue={};Ne&4&&(Ue.error=ge[2]),!t&&Ne&1&&(t=!0,Ue.value=ge[0],pe(()=>t=!1)),e.$set(Ue);const ue={};Ne&262144&&(ue.$$scope={dirty:Ne,ctx:ge}),l.$set(ue);const Ce={};!f&&Ne&8&&(f=!0,Ce.value=ge[3].createdBy.enabled,pe(()=>f=!1)),u.$set(Ce);const ke={};!d&&Ne&8&&(d=!0,ke.value=ge[3].createdAt.enabled,pe(()=>d=!1)),p.$set(ke);const ze={};!v&&Ne&8&&(v=!0,ze.value=ge[3].autoID.enabled,pe(()=>v=!1)),h.$set(ze);const be={};!O&&Ne&8&&(O=!0,be.value=ge[3].updatedBy.enabled,pe(()=>O=!1)),I.$set(be);const he={};!M&&Ne&8&&(M=!0,he.value=ge[3].updatedAt.enabled,pe(()=>M=!1)),P.$set(he);const Xe={};Ne&262146&&(Xe.$$scope={dirty:Ne,ctx:ge}),G.$set(Xe)},i(ge){Y||(m(e.$$.fragment,ge),m(l.$$.fragment,ge),m(u.$$.fragment,ge),m(p.$$.fragment,ge),m(h.$$.fragment,ge),m(I.$$.fragment,ge),m(P.$$.fragment,ge),m(j.$$.fragment,ge),m(G.$$.fragment,ge),Y=!0)},o(ge){_(e.$$.fragment,ge),_(l.$$.fragment,ge),_(u.$$.fragment,ge),_(p.$$.fragment,ge),_(h.$$.fragment,ge),_(I.$$.fragment,ge),_(P.$$.fragment,ge),_(j.$$.fragment,ge),_(G.$$.fragment,ge),Y=!1},d(ge){E(e,ge),ge&&b(n),ge&&b(i),E(l),E(u),E(p),E(h),E(I),E(P),E(j),ge&&b(B),ge&&b(q),E(G)}}}function JY(r){let e,t;return e=new Bt({props:{title:"Create Table",confirmText:"Create",onConfirm:r[5],disabled:r[2]||!r[0]||r[1]&&!r[1].valid,$$slots:{default:[YY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&7&&(l.disabled=n[2]||!n[0]||n[1]&&!n[1].valid),i&262159&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function QY(r,e,t){let n,i,l,s;fe(r,jt,T=>t(15,i=T)),fe(r,LS,T=>t(16,l=T)),fe(r,Ot,T=>t(6,s=T));let{name:o}=e,a,u="",f=wv();function c(T,P){for(let[M,F]of Object.entries(f))!F.enabled||(P[F.name]=yv(T,F.name,M));return P}function p(T){const P=T.target.value;if(n.includes(P)){t(2,u=`Table with name ${P} already exists. Please choose another name.`);return}t(2,u="")}async function d(){let T={name:o,schema:c(o,a.schema||{}),dataImport:a};a.primaryDisplay&&a.primaryDisplay.length&&(T.primaryDisplay=a.primaryDisplay);let P;try{P=await Ot.save(T),ye.success(`Table ${o} created successfully.`),Un.captureEvent(Jn.TABLE.CREATED,{name:o});const F=l().endsWith("data")?`./table/${P._id}`:`../../table/${P._id}`;i(F)}catch(M){ye.error(M),await Ot.fetch()}}function g(T){o=T,t(0,o)}function h(T){r.$$.not_equal(f.createdBy.enabled,T)&&(f.createdBy.enabled=T,t(3,f))}function v(T){r.$$.not_equal(f.createdAt.enabled,T)&&(f.createdAt.enabled=T,t(3,f))}function C(T){r.$$.not_equal(f.autoID.enabled,T)&&(f.autoID.enabled=T,t(3,f))}function y(T){r.$$.not_equal(f.updatedBy.enabled,T)&&(f.updatedBy.enabled=T,t(3,f))}function I(T){r.$$.not_equal(f.updatedAt.enabled,T)&&(f.updatedAt.enabled=T,t(3,f))}function O(T){a=T,t(1,a)}return r.$$set=T=>{"name"in T&&t(0,o=T.name)},r.$$.update=()=>{r.$$.dirty&64&&(n=s.list.map(T=>T.name))},[o,a,u,f,p,d,s,g,h,v,C,y,I,O]}class c5 extends ie{constructor(e){super();le(this,e,QY,JY,re,{name:0})}}function p5(r,e,t){const n=r.slice();return n[4]=e[t],n}function XY(r){let e,t;return e=new c5({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function KY(r){let e;return{c(){e=V("Budibase Internal")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ZY(r){let e;return{c(){e=V(`Budibase internal tables are part of your app, so the data will be
1071
+ from this query.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gY(r){let e,t,n,i,l;e=new Ke({props:{size:"S",$$slots:{default:[mY]},$$scope:{ctx:r}}});function s(a){r[54](a)}let o={name:"Variable",headings:!0,keyHeading:"Name",keyPlaceholder:"Variable name",valueHeading:"Value",valuePlaceholder:"{{ value }}",readOnly:r[7]};return r[6]!==void 0&&(o.object=r[6]),n=new vi({props:o}),Z.push(()=>ce(n,"object",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u[2]&32&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};u[0]&128&&(c.readOnly=a[7]),!i&&u[0]&64&&(i=!0,c.object=a[6],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function _Y(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[gY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&192|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function l5(r){let e,t,n,i,l,s,o;return t=new Ze({props:{size:"L",$$slots:{default:[hY]},$$scope:{ctx:r}}}),i=new Ze({props:{size:"L",$$slots:{default:[$Y]},$$scope:{ctx:r}}}),s=new Ze({props:{size:"L",$$slots:{default:[bY]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),w(e,"class","stats svelte-1ba99n2")},m(a,u){$(a,e,u),A(t,e,null),N(e,n),A(i,e,null),N(e,l),A(s,e,null),o=!0},p(a,u){const f={};u[0]&272|u[2]&32&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const c={};u[0]&272|u[2]&32&&(c.$$scope={dirty:u,ctx:a}),i.$set(c);const p={};u[0]&272|u[2]&32&&(p.$$scope={dirty:u,ctx:a}),s.$set(p)},i(a){o||(m(t.$$.fragment,a),m(i.$$.fragment,a),m(s.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),_(i.$$.fragment,a),_(s.$$.fragment,a),o=!1},d(a){a&&b(e),E(t),E(i),E(s)}}}function hY(r){var s;let e,t,n=((s=r[4])==null?void 0:s.info.code)+"",i,l;return{c(){e=V("Status: "),t=D("span"),i=V(n),w(t,"class",l=""+(Vn(r[8]?"green":"red")+" svelte-1ba99n2"))},m(o,a){$(o,e,a),$(o,t,a),N(t,i)},p(o,a){var u;a[0]&16&&n!==(n=((u=o[4])==null?void 0:u.info.code)+"")&&Te(i,n),a[0]&256&&l!==(l=""+(Vn(o[8]?"green":"red")+" svelte-1ba99n2"))&&w(t,"class",l)},d(o){o&&b(e),o&&b(t)}}}function $Y(r){var s;let e,t,n=((s=r[4])==null?void 0:s.info.time)+"",i,l;return{c(){e=V("Time: "),t=D("span"),i=V(n),w(t,"class",l=""+(Vn(r[8]?"green":"red")+" svelte-1ba99n2"))},m(o,a){$(o,e,a),$(o,t,a),N(t,i)},p(o,a){var u;a[0]&16&&n!==(n=((u=o[4])==null?void 0:u.info.time)+"")&&Te(i,n),a[0]&256&&l!==(l=""+(Vn(o[8]?"green":"red")+" svelte-1ba99n2"))&&w(t,"class",l)},d(o){o&&b(e),o&&b(t)}}}function bY(r){var s;let e,t,n=((s=r[4])==null?void 0:s.info.size)+"",i,l;return{c(){e=V("Size: "),t=D("span"),i=V(n),w(t,"class",l=""+(Vn(r[8]?"green":"red")+" svelte-1ba99n2"))},m(o,a){$(o,e,a),$(o,t,a),N(t,i)},p(o,a){var u;a[0]&16&&n!==(n=((u=o[4])==null?void 0:u.info.size)+"")&&Te(i,n),a[0]&256&&l!==(l=""+(Vn(o[8]?"green":"red")+" svelte-1ba99n2"))&&w(t,"class",l)},d(o){o&&b(e),o&&b(t)}}}function vY(r){let e,t,n,i,l,s,o=r[4]&&e5(r),a=(r[5]||r[4])&&t5(r),u=r[4]&&n5(r),f=r[16]&&i5(r),c=r[4]&&l5(r);return{c(){o&&o.c(),e=R(),a&&a.c(),t=R(),u&&u.c(),n=R(),f&&f.c(),i=R(),c&&c.c(),l=Ee()},m(p,d){o&&o.m(p,d),$(p,e,d),a&&a.m(p,d),$(p,t,d),u&&u.m(p,d),$(p,n,d),f&&f.m(p,d),$(p,i,d),c&&c.m(p,d),$(p,l,d),s=!0},p(p,d){p[4]?o?(o.p(p,d),d[0]&16&&m(o,1)):(o=e5(p),o.c(),m(o,1),o.m(e.parentNode,e)):o&&(ee(),_(o,1,1,()=>{o=null}),te()),p[5]||p[4]?a?(a.p(p,d),d[0]&48&&m(a,1)):(a=t5(p),a.c(),m(a,1),a.m(t.parentNode,t)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),p[4]?u?(u.p(p,d),d[0]&16&&m(u,1)):(u=n5(p),u.c(),m(u,1),u.m(n.parentNode,n)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),p[16]?f?(f.p(p,d),d[0]&65536&&m(f,1)):(f=i5(p),f.c(),m(f,1),f.m(i.parentNode,i)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),p[4]?c?(c.p(p,d),d[0]&16&&m(c,1)):(c=l5(p),c.c(),m(c,1),c.m(l.parentNode,l)):c&&(ee(),_(c,1,1,()=>{c=null}),te())},i(p){s||(m(o),m(a),m(u),m(f),m(c),s=!0)},o(p){_(o),_(a),_(u),_(f),_(c),s=!1},d(p){o&&o.d(p),p&&b(e),a&&a.d(p),p&&b(t),u&&u.d(p),p&&b(n),f&&f.d(p),p&&b(i),c&&c.d(p),p&&b(l)}}}function wY(r){let e;return{c(){e=V("Response")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yY(r){let e="enter a url in the textbox above and click send to get a response".toUpperCase()+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p:Oe,d(n){n&&b(t)}}}function kY(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}});const a=[aY,oY],u=[];function f(c,p){return(n==null||p[0]&48)&&(n=!c[4]&&Object.keys(c[5]).length===0),n?0:1}return i=f(r,[-1,-1,-1]),l=u[i]=a[i](r),{c(){S(e.$$.fragment),t=R(),l.c(),s=Ee()},m(c,p){A(e,c,p),$(c,t,p),u[i].m(c,p),$(c,s,p),o=!0},p(c,p){let d=i;i=f(c,p),i===d?u[i].p(c,p):(ee(),_(u[d],1,1,()=>{u[d]=null}),te(),l=u[i],l?l.p(c,p):(l=u[i]=a[i](c),l.c()),m(l,1),l.m(s.parentNode,s))},i(c){o||(m(e.$$.fragment,c),m(l),o=!0)},o(c){_(e.$$.fragment,c),_(l),o=!1},d(c){E(e,c),c&&b(t),u[i].d(c),c&&b(s)}}}function CY(r){let e,t,n,i,l;function s(u){r[30](u)}let o={datasource:r[1],dynamicVariables:r[6]};r[14]!==void 0&&(o.binding=r[14]),e=new GG({props:o}),Z.push(()=>ce(e,"binding",s)),r[31](e);let a=r[0]&&r[20]&&X4(r);return{c(){S(e.$$.fragment),n=R(),a&&a.c(),i=Ee()},m(u,f){A(e,u,f),$(u,n,f),a&&a.m(u,f),$(u,i,f),l=!0},p(u,f){const c={};f[0]&2&&(c.datasource=u[1]),f[0]&64&&(c.dynamicVariables=u[6]),!t&&f[0]&16384&&(t=!0,c.binding=u[14],pe(()=>t=!1)),e.$set(c),u[0]&&u[20]?a?(a.p(u,f),f[0]&1048577&&m(a,1)):(a=X4(u),a.c(),m(a,1),a.m(i.parentNode,i)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(u){l||(m(e.$$.fragment,u),m(a),l=!0)},o(u){_(e.$$.fragment,u),_(a),l=!1},d(u){r[31](null),E(e,u),u&&b(n),a&&a.d(u),u&&b(i)}}}const SY=()=>{},AY=r=>r.name,EY=r=>r.value;function OY(r,e,t){let n,i,l,s,o,a,u,f,c,p,d,g,h,v,C;fe(r,en,Ve=>t(55,d=Ve)),fe(r,tr,Ve=>t(56,g=Ve)),fe(r,kn,Ve=>t(57,h=Ve)),fe(r,Ql,Ve=>t(29,v=Ve)),fe(r,s1,Ve=>t(21,C=Ve));let y,I,O={},T={},P,M,F,j,B,q,G,Y,U;function H(){return vn.cloneDeep(h.list.find(Ve=>Ve._id===h.selected)||{datasourceId:g.selectedDatasource,parameters:[],fields:{disabledHeaders:{},headers:{}},queryVerb:"read"})}function W(Ve=null){y&&(!y.name||y.flags.urlName)&&(t(0,y.flags.urlName=!0,y),t(0,y.name=M||Ve,y))}function Q(Ve,Be){if(!Ve)return Ve;const Dt=Ol.buildQueryString(Be);let on=Ve;return Ve.includes("?")&&(on=Ve.split("?")[0]),Dt.length>0?`${on}?${Dt}`:on}function se(){const Ve=Se({},y),Be=Ol.buildQueryString(O);return Ve.fields.path=M.split("?")[0],Ve.fields.queryString=Be,Ve.fields.authConfigId=q,Ve.fields.disabledHeaders=Ol.flipHeaderState(B),Ve.schema=Ol.fieldsToSchema(j),Ve.parameters=Ol.keyValueToQueryParameters(T),Ve}async function K(){const Ve=se();try{const{_id:Be}=await kn.save(Ve.datasourceId,Ve);t(10,P=Be),t(0,y=H()),ye.success("Request saved successfully"),G&&(t(1,I.config.dynamicVariables=ge(P),I),t(1,I=await en.save(I)))}catch{ye.error("Error saving query")}}async function ne(){try{t(4,F=await kn.preview(se(y))),F.rows.length===0?ye.info("Request did not return any data"):(t(4,F.info=F.info||{code:200},F),t(5,j=F.schema),ye.success("Request sent successfully"))}catch(Ve){ye.error(`Query Error: ${Ve.message}`)}}const ae=()=>{var Be,Dt;let Ve=y.fields.authConfigId;return Ve&&(((Dt=(Be=I==null?void 0:I.config)==null?void 0:Be.authConfigs)==null?void 0:Dt.filter(Cn=>Cn._id===Ve)[0])||(Ve=void 0)),Ve},_e=Ve=>{var Be;return((Be=Ve==null?void 0:Ve.config)==null?void 0:Be.authConfigs)?Ve.config.authConfigs.map(Dt=>({label:Dt.name,value:Dt._id})):[]},Me=[{text:"Create dynamic variable",onClick:Ve=>{t(14,U=`{{ data.0.[${Ve.name}] }}`),Y.show()}}],we=[{text:"Create dynamic variable",onClick:Ve=>{t(14,U=`{{ info.headers.[${Ve.name}] }}`),Y.show()}}],$e=(Ve,Be)=>{var on;const Dt=(on=Ve==null?void 0:Ve.config)==null?void 0:on.dynamicVariables;return Dt&&Dt.length>0?(Be?Dt.filter(Ar=>Ar.queryId===Be):Dt).reduce((Ar,yi)=>lt(Se({},Ar),{[yi.name]:yi.value}),{}):{}},ge=Ve=>{var on;let Be=[];G&&(Be=Object.entries(G).map(Cn=>({name:Cn[0],value:Cn[1],queryId:Ve})));let Dt=((on=I==null?void 0:I.config)==null?void 0:on.dynamicVariables)||[];return Dt=Dt.filter(Cn=>Cn.queryId!==Ve),[...Dt,...Be]},Ne=(Ve,Be)=>!!(Ve&&(!Be||Object.keys(Ve).length>0)),Ue=async(Ve,Be)=>{try{await s1.updateFlag(Ve,Be)}catch{ye.error("Error updating flag")}};Ft(async()=>{t(0,y=H());try{await en.init()}catch{ye.error("Error getting datasources")}t(1,I=d.list.find(on=>on._id===(y==null?void 0:y.datasourceId)));const Ve=I==null?void 0:I.config.url,Be=y==null?void 0:y.fields.queryString;t(2,O=Ol.breakQueryString(Be));const Dt=y.fields.path;Ve&&!(Dt==null?void 0:Dt.startsWith("http"))&&!(Dt==null?void 0:Dt.startsWith("{{"))&&t(0,y.fields.path=`${I.config.url}/${Dt||""}`,y),t(3,M=Q(y.fields.path,O)),t(5,j=Ol.schemaToFields(y.schema)),t(9,T=Ol.queryParametersToKeyValue(y.parameters)),t(12,q=ae()),y.fields.disabledHeaders||t(0,y.fields.disabledHeaders={},y);for(let on of Object.keys(y.fields.headers))y.fields.disabledHeaders[on]||t(0,y.fields.disabledHeaders[on]=!1,y);t(11,B=Ol.flipHeaderState(y.fields.disabledHeaders)),y&&!y.transformer&&t(0,y.transformer="return data",y),y&&!y.flags&&t(0,y.flags={urlName:!1},y),y&&!y.fields.bodyType&&(y.fields.requestBody?t(0,y.fields.bodyType=$i.JSON,y):t(0,y.fields.bodyType=$i.NONE,y)),y&&!y.fields.pagination&&t(0,y.fields.pagination={},y),t(6,G=$e(I,y._id))});function ue(Ve){U=Ve,t(14,U)}function Ce(Ve){Z[Ve?"unshift":"push"](()=>{Y=Ve,t(13,Y)})}function ke(Ve){r.$$.not_equal(y.name,Ve)&&(y.name=Ve,t(0,y))}const ze=()=>t(0,y.flags.urlName=!1,y),be=Ve=>{var Be;return((Be=l[Ve])==null?void 0:Be.displayName)||Sr(Ve)};function he(Ve){r.$$.not_equal(y.queryVerb,Ve)&&(y.queryVerb=Ve,t(0,y))}function Xe(Ve){M=Ve,t(3,M),t(2,O)}function Mt(Ve){T=Ve,t(9,T)}function qe(Ve){O=Ve,t(2,O)}function pt(Ve){r.$$.not_equal(y.fields.headers,Ve)&&(y.fields.headers=Ve,t(0,y))}function It(Ve){B=Ve,t(11,B)}function Ie(Ve){r.$$.not_equal(y.fields.bodyType,Ve)&&(y.fields.bodyType=Ve,t(0,y))}function Ge(Ve){r.$$.not_equal(y.fields.bodyType,Ve)&&(y.fields.bodyType=Ve,t(0,y))}function Fe(Ve){y=Ve,t(0,y)}function at(Ve){r.$$.not_equal(y.fields.pagination.type,Ve)&&(y.fields.pagination.type=Ve,t(0,y))}function Le(Ve){r.$$.not_equal(y.fields.pagination.location,Ve)&&(y.fields.pagination.location=Ve,t(0,y))}function Lt(Ve){r.$$.not_equal(y.fields.pagination.pageParam,Ve)&&(y.fields.pagination.pageParam=Ve,t(0,y))}function sn(Ve){r.$$.not_equal(y.fields.pagination.sizeParam,Ve)&&(y.fields.pagination.sizeParam=Ve,t(0,y))}function dn(Ve){r.$$.not_equal(y.fields.pagination.responseParam,Ve)&&(y.fields.pagination.responseParam=Ve,t(0,y))}const cn=()=>window.open("https://docs.budibase.com/docs/transformers"),hr=()=>Ue("queryTransformerBanner",!0),In=Ve=>t(0,y.transformer=Ve.detail,y);function ar(Ve){q=Ve,t(12,q)}function lr(Ve){j=Ve,t(5,j)}function rl(Ve){G=Ve,t(6,G)}return r.$$.update=()=>{var Ve,Be;r.$$.dirty[0]&2&&t(28,n=I==null?void 0:I.source),r.$$.dirty[0]&805306368&&t(27,i=v[n]),r.$$.dirty[0]&134217728&&t(20,l=i==null?void 0:i.query),r.$$.dirty[0]&12&&t(3,M=Q(M,O)),r.$$.dirty[0]&8&&W(M),r.$$.dirty[0]&16&&t(8,s=((Ve=F==null?void 0:F.info)==null?void 0:Ve.code)>=200&&((Be=F==null?void 0:F.info)==null?void 0:Be.code)<400),r.$$.dirty[0]&1&&t(19,o=(y==null?void 0:y.queryVerb)==="read"),r.$$.dirty[0]&2&&t(18,a=_e(I)),r.$$.dirty[0]&256&&t(17,u=!s),r.$$.dirty[0]&256&&t(7,f=!s),r.$$.dirty[0]&192&&t(16,c=Ne(G,f)),r.$$.dirty[0]&33&&t(15,p=Object.keys(j||{}).length!==0||Object.keys((y==null?void 0:y.schema)||{}).length!==0)},[y,I,O,M,F,j,G,f,s,T,P,B,q,Y,U,p,c,u,a,o,l,C,K,ne,Me,we,Ue,i,n,v,ue,Ce,ke,ze,be,he,Xe,Mt,qe,pt,It,Ie,Ge,Fe,at,Le,Lt,sn,dn,cn,hr,In,ar,lr,rl]}class TY extends ie{constructor(e){super();le(this,e,OY,CY,re,{},null,[-1,-1,-1])}}function IY(r){let e;const t=r[1].default,n=bt(t,r,r[0],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,[l]){n&&n.p&&(!e||l&1)&&vt(n,t,i,i[0],e?yt(t,i[0],l,null):wt(i[0]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function LY(r,e,t){let n,i;fe(r,tr,o=>t(2,n=o)),fe(r,kn,o=>t(3,i=o));let{$$slots:l={},$$scope:s}=e;if(n.query){const o=i.list.find(a=>a._id===n.query);o&&kn.select(o)}return r.$$set=o=>{"$$scope"in o&&t(0,s=o.$$scope)},[s,l]}class PY extends ie{constructor(e){super();le(this,e,LY,IY,re,{})}}function NY(r){let e;const t=r[1].default,n=bt(t,r,r[0],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,[l]){n&&n.p&&(!e||l&1)&&vt(n,t,i,i[0],e?yt(t,i[0],l,null):wt(i[0]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function RY(r,e,t){let n,i;fe(r,tr,o=>t(2,n=o)),fe(r,en,o=>t(3,i=o));let{$$slots:l={},$$scope:s}=e;if(n.selectedDatasource&&!n.query){const o=i.list.find(a=>a._id===n.selectedDatasource);o&&en.select(o._id)}return r.$$set=o=>{"$$scope"in o&&t(0,s=o.$$scope)},[s,l]}class MY extends ie{constructor(e){super();le(this,e,RY,NY,re,{})}}function s5(r,e,t){const n=r.slice();return n[21]=e[t],n[22]=e,n[23]=t,n}function DY(r){let e;return{c(){e=V("Upload")},m(t,n){$(t,e,n)},p:Oe,d(t){t&&b(e)}}}function jY(r){let e=r[0][0].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[0][0].name+"")&&Te(t,e)},d(n){n&&b(t)}}}function BY(r){let e,t,n,i;function l(o){r[17](o)}let s={header:"Invalid CSV",type:"error"};return r[6]!==void 0&&(s.message=r[6]),t=new i1({props:s}),Z.push(()=>ce(t,"message",l)),{c(){e=D("div"),S(t.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),i=!0},p(o,a){const u={};!n&&a&64&&(n=!0,u.message=o[6],pe(()=>n=!1)),t.$set(u)},i(o){i||(m(t.$$.fragment,o),i=!0)},o(o){_(t.$$.fragment,o),i=!1},d(o){o&&b(e),E(t)}}}function zY(r){let e,t,n,i,l=r[4],s=[];for(let u=0;u<l.length;u+=1)s[u]=o5(s5(r,l,u));const o=u=>_(s[u],1,1,()=>{s[u]=null});let a=!r[1]&&a5(r);return{c(){e=D("div");for(let u=0;u<s.length;u+=1)s[u].c();t=R(),a&&a.c(),n=Ee(),w(e,"class","schema-fields svelte-1rdzppm")},m(u,f){$(u,e,f);for(let c=0;c<s.length;c+=1)s[c].m(e,null);$(u,t,f),a&&a.m(u,f),$(u,n,f),i=!0},p(u,f){if(f&1818){l=u[4];let c;for(c=0;c<l.length;c+=1){const p=s5(u,l,c);s[c]?(s[c].p(p,f),m(s[c],1)):(s[c]=o5(p),s[c].c(),m(s[c],1),s[c].m(e,null))}for(ee(),c=l.length;c<s.length;c+=1)o(c);te()}u[1]?a&&(ee(),_(a,1,1,()=>{a=null}),te()):a?(a.p(u,f),f&2&&m(a,1)):(a=a5(u),a.c(),m(a,1),a.m(n.parentNode,n))},i(u){if(!i){for(let f=0;f<l.length;f+=1)m(s[f]);m(a),i=!0}},o(u){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)_(s[f]);_(a),i=!1},d(u){u&&b(e),$t(s,u),u&&b(t),a&&a.d(u),u&&b(n)}}}function o5(r){let e,t,n=r[21]+"",i,l,s,o,a,u,f=(r[3][r[21]].success?"Success":"Failure")+"",c,p,d,g,h,v,C;function y(T){r[14](T,r[21])}let I={options:r[10],placeholder:null,getOptionLabel:UY,getOptionValue:FY,disabled:!!r[1]};r[3][r[21]].type!==void 0&&(I.value=r[3][r[21]].type),s=new Qe({props:I}),Z.push(()=>ce(s,"value",y)),s.$on("change",function(){ct(r[9](r[21]))&&r[9](r[21]).apply(this,arguments)});function O(){return r[15](r[21])}return{c(){e=D("div"),t=D("span"),i=V(n),l=R(),S(s.$$.fragment),a=R(),u=D("span"),c=V(f),p=R(),d=D("i"),g=R(),w(u,"class","field-status svelte-1rdzppm"),oe(u,"error",!r[3][r[21]].success),w(d,"class","omit-button ri-close-circle-fill svelte-1rdzppm"),w(e,"class","field svelte-1rdzppm")},m(T,P){$(T,e,P),N(e,t),N(t,i),N(e,l),A(s,e,null),N(e,a),N(e,u),N(u,c),N(e,p),N(e,d),N(e,g),h=!0,v||(C=Pe(d,"click",O),v=!0)},p(T,P){r=T,(!h||P&16)&&n!==(n=r[21]+"")&&Te(i,n);const M={};P&2&&(M.disabled=!!r[1]),!o&&P&24&&(o=!0,M.value=r[3][r[21]].type,pe(()=>o=!1)),s.$set(M),(!h||P&24)&&f!==(f=(r[3][r[21]].success?"Success":"Failure")+"")&&Te(c,f),P&24&&oe(u,"error",!r[3][r[21]].success)},i(T){h||(m(s.$$.fragment,T),h=!0)},o(T){_(s.$$.fragment,T),h=!1},d(T){T&&b(e),E(s),v=!1,C()}}}function a5(r){let e,t,n,i;function l(o){r[16](o)}let s={label:"Display Column",options:r[4],sort:!0};return r[2]!==void 0&&(s.value=r[2]),t=new Qe({props:s}),Z.push(()=>ce(t,"value",l)),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","display-column svelte-1rdzppm")},m(o,a){$(o,e,a),A(t,e,null),i=!0},p(o,a){const u={};a&16&&(u.options=o[4]),!n&&a&4&&(n=!0,u.value=o[2],pe(()=>n=!1)),t.$set(u)},i(o){i||(m(t.$$.fragment,o),i=!0)},o(o){_(t.$$.fragment,o),i=!1},d(o){o&&b(e),E(t)}}}function qY(r){let e,t,n,i,l,s,o,a,u,f,c;function p(y,I){return y[0][0]?jY:DY}let d=p(r),g=d(r);const h=[zY,BY],v=[];function C(y,I){return y[4].length?0:y[5]?1:-1}return~(s=C(r))&&(o=v[s]=h[s](r)),{c(){e=D("div"),t=D("input"),n=R(),i=D("label"),g.c(),l=R(),o&&o.c(),a=Ee(),w(t,"id","file-upload"),w(t,"accept",".csv"),w(t,"type","file"),w(t,"class","svelte-1rdzppm"),w(i,"for","file-upload"),w(i,"class","svelte-1rdzppm"),oe(i,"uploaded",r[0][0]),w(e,"class","dropzone svelte-1rdzppm")},m(y,I){$(y,e,I),N(e,t),N(e,n),N(e,i),g.m(i,null),$(y,l,I),~s&&v[s].m(y,I),$(y,a,I),u=!0,f||(c=Pe(t,"change",r[7]),f=!0)},p(y,[I]){d===(d=p(y))&&g?g.p(y,I):(g.d(1),g=d(y),g&&(g.c(),g.m(i,null))),I&1&&oe(i,"uploaded",y[0][0]);let O=s;s=C(y),s===O?~s&&v[s].p(y,I):(o&&(ee(),_(v[O],1,1,()=>{v[O]=null}),te()),~s?(o=v[s],o?o.p(y,I):(o=v[s]=h[s](y),o.c()),m(o,1),o.m(a.parentNode,a)):o=null)},i(y){u||(m(o),u=!0)},o(y){_(o),u=!1},d(y){y&&b(e),g.d(),y&&b(l),~s&&v[s].d(y),y&&b(a),f=!1,c()}}}const u5=1e6,UY=r=>r.label,FY=r=>r.value;function VY(r,e,t){let n,i;const l=u5*5;let{files:s=[]}=e,{dataImport:o={valid:!0,schema:{}}}=e,{existingTableId:a}=e,u,f,c={},p=[],d=!1;function g(F){const j={};for(let B in F){const q=F[B].type;q!=="omit"&&(j[B]={name:B,type:q,constraints:zt[q.toUpperCase()].constraints})}return j}async function h(){try{const F=await xe.validateTableCSV({csvString:u,schema:c||{},tableId:a});t(3,c=F==null?void 0:F.schema),t(4,p=Object.keys(c||{}).filter(j=>c[j].type!=="omit")),(!f||p.indexOf(f)===-1)&&t(2,f=p[0]),t(5,d=!0)}catch{ye.error("CSV Invalid, please try another CSV file")}}async function v(F){const j=Array.from(F.target.files);if(j.some(q=>q.size>=l)){ye.error(`Files cannot exceed ${l/u5}MB. Please try again with smaller files.`);return}let B=new FileReader;B.addEventListener("load",function(q){t(12,u=q.target.result),t(0,s=j),h()}),B.readAsText(j[0])}async function C(F){t(3,c[F].type="omit",c),await h()}const y=F=>j=>{t(3,c[F].type=j.detail,c),h()},I=[{label:"Text",value:zt.STRING.type},{label:"Number",value:zt.NUMBER.type},{label:"Date",value:zt.DATETIME.type},{label:"Options",value:zt.OPTIONS.type},{label:"Multi-select",value:zt.ARRAY.type}];function O(F,j){r.$$.not_equal(c[j].type,F)&&(c[j].type=F,t(3,c))}const T=F=>C(F);function P(F){f=F,t(2,f)}function M(F){i=F,t(6,i),t(1,a)}return r.$$set=F=>{"files"in F&&t(0,s=F.files),"dataImport"in F&&t(11,o=F.dataImport),"existingTableId"in F&&t(1,a=F.existingTableId)},r.$$.update=()=>{r.$$.dirty&56&&t(13,n=!c||p.every(F=>c[F].success)&&(!d||Object.keys(c).length>0)),r.$$.dirty&12300&&t(11,o={valid:n,schema:g(c),csvString:u,primaryDisplay:f}),r.$$.dirty&2&&t(6,i=a?"No columns in CSV match existing table schema":"Could not find any columns to import")},[s,a,f,c,p,d,i,v,C,y,I,o,u,n,O,T,P,M]}class f5 extends ie{constructor(e){super();le(this,e,VY,qY,re,{files:0,dataImport:11,existingTableId:1})}}function HY(r){let e;return{c(){e=V("Auto Columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function WY(r){let e;return{c(){e=V("Create Table from CSV (Optional)")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function GY(r){let e,t,n,i,l;e=new Ze({props:{grey:!0,extraSmall:!0,$$slots:{default:[WY]},$$scope:{ctx:r}}});function s(a){r[13](a)}let o={};return r[1]!==void 0&&(o.dataImport=r[1]),n=new f5({props:o}),Z.push(()=>ce(n,"dataImport",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&262144&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};!i&&u&2&&(i=!0,c.dataImport=a[1],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function YY(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F,j,B,q,G,Y;function U(ge){r[7](ge)}let H={"data-cy":"table-name-input",thin:!0,label:"Table Name",error:r[2]};r[0]!==void 0&&(H.value=r[0]),e=new tt({props:H}),Z.push(()=>ce(e,"value",U)),e.$on("input",r[4]),l=new Ze({props:{extraSmall:!0,grey:!0,$$slots:{default:[HY]},$$scope:{ctx:r}}});function W(ge){r[8](ge)}let Q={text:"Created by"};r[3].createdBy.enabled!==void 0&&(Q.value=r[3].createdBy.enabled),u=new Hn({props:Q}),Z.push(()=>ce(u,"value",W));function se(ge){r[9](ge)}let K={text:"Created at"};r[3].createdAt.enabled!==void 0&&(K.value=r[3].createdAt.enabled),p=new Hn({props:K}),Z.push(()=>ce(p,"value",se));function ne(ge){r[10](ge)}let ae={text:"Auto ID"};r[3].autoID.enabled!==void 0&&(ae.value=r[3].autoID.enabled),h=new Hn({props:ae}),Z.push(()=>ce(h,"value",ne));function _e(ge){r[11](ge)}let Me={text:"Updated by"};r[3].updatedBy.enabled!==void 0&&(Me.value=r[3].updatedBy.enabled),I=new Hn({props:Me}),Z.push(()=>ce(I,"value",_e));function we(ge){r[12](ge)}let $e={text:"Updated at"};return r[3].updatedAt.enabled!==void 0&&($e.value=r[3].updatedAt.enabled),P=new Hn({props:$e}),Z.push(()=>ce(P,"value",we)),j=new un({}),G=new Ye({props:{gap:"XS",noPadding:!0,$$slots:{default:[GY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),s=R(),o=D("div"),a=D("div"),S(u.$$.fragment),c=R(),S(p.$$.fragment),g=R(),S(h.$$.fragment),C=R(),y=D("div"),S(I.$$.fragment),T=R(),S(P.$$.fragment),F=R(),S(j.$$.fragment),B=R(),q=D("div"),S(G.$$.fragment),w(a,"class","toggle-1 svelte-19e3t83"),w(y,"class","toggle-2 svelte-19e3t83"),w(o,"class","toggles svelte-19e3t83"),w(i,"class","autocolumns svelte-19e3t83")},m(ge,Ne){A(e,ge,Ne),$(ge,n,Ne),$(ge,i,Ne),A(l,i,null),N(i,s),N(i,o),N(o,a),A(u,a,null),N(a,c),A(p,a,null),N(a,g),A(h,a,null),N(o,C),N(o,y),A(I,y,null),N(y,T),A(P,y,null),N(i,F),A(j,i,null),$(ge,B,Ne),$(ge,q,Ne),A(G,q,null),Y=!0},p(ge,Ne){const Ue={};Ne&4&&(Ue.error=ge[2]),!t&&Ne&1&&(t=!0,Ue.value=ge[0],pe(()=>t=!1)),e.$set(Ue);const ue={};Ne&262144&&(ue.$$scope={dirty:Ne,ctx:ge}),l.$set(ue);const Ce={};!f&&Ne&8&&(f=!0,Ce.value=ge[3].createdBy.enabled,pe(()=>f=!1)),u.$set(Ce);const ke={};!d&&Ne&8&&(d=!0,ke.value=ge[3].createdAt.enabled,pe(()=>d=!1)),p.$set(ke);const ze={};!v&&Ne&8&&(v=!0,ze.value=ge[3].autoID.enabled,pe(()=>v=!1)),h.$set(ze);const be={};!O&&Ne&8&&(O=!0,be.value=ge[3].updatedBy.enabled,pe(()=>O=!1)),I.$set(be);const he={};!M&&Ne&8&&(M=!0,he.value=ge[3].updatedAt.enabled,pe(()=>M=!1)),P.$set(he);const Xe={};Ne&262146&&(Xe.$$scope={dirty:Ne,ctx:ge}),G.$set(Xe)},i(ge){Y||(m(e.$$.fragment,ge),m(l.$$.fragment,ge),m(u.$$.fragment,ge),m(p.$$.fragment,ge),m(h.$$.fragment,ge),m(I.$$.fragment,ge),m(P.$$.fragment,ge),m(j.$$.fragment,ge),m(G.$$.fragment,ge),Y=!0)},o(ge){_(e.$$.fragment,ge),_(l.$$.fragment,ge),_(u.$$.fragment,ge),_(p.$$.fragment,ge),_(h.$$.fragment,ge),_(I.$$.fragment,ge),_(P.$$.fragment,ge),_(j.$$.fragment,ge),_(G.$$.fragment,ge),Y=!1},d(ge){E(e,ge),ge&&b(n),ge&&b(i),E(l),E(u),E(p),E(h),E(I),E(P),E(j),ge&&b(B),ge&&b(q),E(G)}}}function JY(r){let e,t;return e=new Bt({props:{title:"Create Table",confirmText:"Create",onConfirm:r[5],disabled:r[2]||!r[0]||r[1]&&!r[1].valid,$$slots:{default:[YY]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&7&&(l.disabled=n[2]||!n[0]||n[1]&&!n[1].valid),i&262159&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function QY(r,e,t){let n,i,l,s;fe(r,jt,T=>t(15,i=T)),fe(r,LS,T=>t(16,l=T)),fe(r,Ot,T=>t(6,s=T));let{name:o}=e,a,u="",f=wv();function c(T,P){for(let[M,F]of Object.entries(f))!F.enabled||(P[F.name]=yv(T,F.name,M));return P}function p(T){const P=T.target.value;if(n.includes(P)){t(2,u=`Table with name ${P} already exists. Please choose another name.`);return}t(2,u="")}async function d(){let T={name:o,schema:c(o,a.schema||{}),dataImport:a};a.primaryDisplay&&a.primaryDisplay.length&&(T.primaryDisplay=a.primaryDisplay);let P;try{P=await Ot.save(T),ye.success(`Table ${o} created successfully.`),Un.captureEvent(Jn.TABLE.CREATED,{name:o});const F=l().endsWith("data")?`./table/${P._id}`:`../../table/${P._id}`;i(F)}catch(M){ye.error(M),await Ot.fetch()}}function g(T){o=T,t(0,o)}function h(T){r.$$.not_equal(f.createdBy.enabled,T)&&(f.createdBy.enabled=T,t(3,f))}function v(T){r.$$.not_equal(f.createdAt.enabled,T)&&(f.createdAt.enabled=T,t(3,f))}function C(T){r.$$.not_equal(f.autoID.enabled,T)&&(f.autoID.enabled=T,t(3,f))}function y(T){r.$$.not_equal(f.updatedBy.enabled,T)&&(f.updatedBy.enabled=T,t(3,f))}function I(T){r.$$.not_equal(f.updatedAt.enabled,T)&&(f.updatedAt.enabled=T,t(3,f))}function O(T){a=T,t(1,a)}return r.$$set=T=>{"name"in T&&t(0,o=T.name)},r.$$.update=()=>{r.$$.dirty&64&&(n=s.list.map(T=>T.name))},[o,a,u,f,p,d,s,g,h,v,C,y,I,O]}class c5 extends ie{constructor(e){super();le(this,e,QY,JY,re,{name:0})}}function p5(r,e,t){const n=r.slice();return n[4]=e[t],n}function XY(r){let e,t;return e=new c5({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function KY(r){let e;return{c(){e=V("Budibase Internal")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ZY(r){let e;return{c(){e=V(`Budibase internal tables are part of your app, so the data will be
1072
1072
  stored in your apps context.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xY(r){let e,t,n,i,l,s,o;var a=tl.BUDIBASE;function u(f){return{props:{height:"26",width:"26"}}}return a&&(t=new a(u())),i=new kt({props:{size:"M",$$slots:{default:[KY]},$$scope:{ctx:r}}}),s=new Ke({props:{size:"M",$$slots:{default:[ZY]},$$scope:{ctx:r}}}),{c(){e=D("header"),t&&S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),w(e,"class","svelte-1q89mrt")},m(f,c){$(f,e,c),t&&A(t,e,null),N(e,n),A(i,e,null),$(f,l,c),A(s,f,c),o=!0},p(f,c){if(a!==(a=tl.BUDIBASE)){if(t){ee();const g=t;_(g.$$.fragment,1,0,()=>{E(g,1)}),te()}a?(t=new a(u()),S(t.$$.fragment),m(t.$$.fragment,1),A(t,e,n)):t=null}const p={};c&128&&(p.$$scope={dirty:c,ctx:f}),i.$set(p);const d={};c&128&&(d.$$scope={dirty:c,ctx:f}),s.$set(d)},i(f){o||(t&&m(t.$$.fragment,f),m(i.$$.fragment,f),m(s.$$.fragment,f),o=!0)},o(f){t&&_(t.$$.fragment,f),_(i.$$.fragment,f),_(s.$$.fragment,f),o=!1},d(f){f&&b(e),t&&E(t),E(i),f&&b(l),E(s,f)}}}function eJ(r){let e;return{c(){e=V("Tables")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tJ(r){let e=r[4].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&2&&e!==(e=n[4].name+"")&&Te(t,e)},d(n){n&&b(t)}}}function d5(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[nJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&130&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function nJ(r){let e,t=r[4].primaryDisplay+"",n;return{c(){e=V("Display column: "),n=V(t)},m(i,l){$(i,e,l),$(i,n,l)},p(i,l){l&2&&t!==(t=i[4].primaryDisplay+"")&&Te(n,t)},d(i){i&&b(e),i&&b(n)}}}function m5(r){let e,t,n,i,l,s,o;t=new Ke({props:{size:"S",$$slots:{default:[tJ]},$$scope:{ctx:r}}});let a=r[4].primaryDisplay&&d5(r);return{c(){e=D("div"),S(t.$$.fragment),n=R(),a&&a.c(),i=R(),w(e,"class","table-list-item svelte-1q89mrt")},m(u,f){$(u,e,f),A(t,e,null),N(e,n),a&&a.m(e,null),N(e,i),l=!0,s||(o=Pe(e,"click",function(){ct(r[2](`../../table/${r[4]._id}`))&&r[2](`../../table/${r[4]._id}`).apply(this,arguments)}),s=!0)},p(u,f){r=u;const c={};f&130&&(c.$$scope={dirty:f,ctx:r}),t.$set(c),r[4].primaryDisplay?a?(a.p(r,f),f&2&&m(a,1)):(a=d5(r),a.c(),m(a,1),a.m(e,i)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(u){l||(m(t.$$.fragment,u),m(a),l=!0)},o(u){_(t.$$.fragment,u),_(a),l=!1},d(u){u&&b(e),E(t),a&&a.d(),s=!1,o()}}}function rJ(r){let e;return{c(){e=V("Create new table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function iJ(r){let e,t,n,i,l,s,o,a,u,f,c;e=new Ye({props:{gap:"XS",noPadding:!0,$$slots:{default:[xY]},$$scope:{ctx:r}}}),n=new un({}),l=new kt({props:{size:"S",$$slots:{default:[eJ]},$$scope:{ctx:r}}});let p=r[1].list.filter(g5),d=[];for(let h=0;h<p.length;h+=1)d[h]=m5(p5(r,p,h));const g=h=>_(d[h],1,1,()=>{d[h]=null});return f=new ut({props:{cta:!0,$$slots:{default:[rJ]},$$scope:{ctx:r}}}),f.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),o=D("div");for(let h=0;h<d.length;h+=1)d[h].c();a=R(),u=D("div"),S(f.$$.fragment),w(o,"class","table-list svelte-1q89mrt")},m(h,v){A(e,h,v),$(h,t,v),A(n,h,v),$(h,i,v),A(l,h,v),$(h,s,v),$(h,o,v);for(let C=0;C<d.length;C+=1)d[C].m(o,null);$(h,a,v),$(h,u,v),A(f,u,null),c=!0},p(h,v){r=h;const C={};v&128&&(C.$$scope={dirty:v,ctx:r}),e.$set(C);const y={};if(v&128&&(y.$$scope={dirty:v,ctx:r}),l.$set(y),v&6){p=r[1].list.filter(g5);let O;for(O=0;O<p.length;O+=1){const T=p5(r,p,O);d[O]?(d[O].p(T,v),m(d[O],1)):(d[O]=m5(T),d[O].c(),m(d[O],1),d[O].m(o,null))}for(ee(),O=p.length;O<d.length;O+=1)g(O);te()}const I={};v&128&&(I.$$scope={dirty:v,ctx:r}),f.$set(I)},i(h){if(!c){m(e.$$.fragment,h),m(n.$$.fragment,h),m(l.$$.fragment,h);for(let v=0;v<p.length;v+=1)m(d[v]);m(f.$$.fragment,h),c=!0}},o(h){_(e.$$.fragment,h),_(n.$$.fragment,h),_(l.$$.fragment,h),d=d.filter(Boolean);for(let v=0;v<d.length;v+=1)_(d[v]);_(f.$$.fragment,h),c=!1},d(h){E(e,h),h&&b(t),E(n,h),h&&b(i),E(l,h),h&&b(s),h&&b(o),$t(d,h),h&&b(a),h&&b(u),E(f)}}}function lJ(r){let e,t,n,i,l,s={$$slots:{default:[XY]},$$scope:{ctx:r}};return e=new At({props:s}),r[3](e),i=new Ye({props:{$$slots:{default:[iJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),n=D("section"),S(i.$$.fragment),w(n,"class","svelte-1q89mrt")},m(o,a){A(e,o,a),$(o,t,a),$(o,n,a),A(i,n,null),l=!0},p(o,[a]){const u={};a&128&&(u.$$scope={dirty:a,ctx:o}),e.$set(u);const f={};a&135&&(f.$$scope={dirty:a,ctx:o}),i.$set(f)},i(o){l||(m(e.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(e.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){r[3](null),E(e,o),o&&b(t),o&&b(n),E(i)}}}const g5=r=>r.type!=="external";function sJ(r,e,t){let n,i;fe(r,Ot,o=>t(1,n=o)),fe(r,jt,o=>t(2,i=o));let l;function s(o){Z[o?"unshift":"push"](()=>{l=o,t(0,l)})}return[l,n,i,s]}class oJ extends ie{constructor(e){super();le(this,e,sJ,lJ,re,{})}}function aJ(r){let e;const t=r[1].default,n=bt(t,r,r[0],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,[l]){n&&n.p&&(!e||l&1)&&vt(n,t,i,i[0],e?yt(t,i[0],l,null):wt(i[0]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function uJ(r,e,t){let{$$slots:n={},$$scope:i}=e;return en.select("bb_internal"),r.$$set=l=>{"$$scope"in l&&t(0,i=l.$$scope)},[i,n]}class fJ extends ie{constructor(e){super();le(this,e,uJ,aJ,re,{})}}function cJ(r){let e;return{c(){e=D("i"),e.textContent="Select a datasource to edit",w(e,"class","svelte-o5phob")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pJ(r){let e;return{c(){e=D("i"),e.textContent="Connect your first datasource to start building.",w(e,"class","svelte-o5phob")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function dJ(r){let e;function t(l,s){return l[0].list.length===0?pJ:cJ}let n=t(r),i=n(r);return{c(){i.c(),e=Ee()},m(l,s){i.m(l,s),$(l,e,s)},p(l,[s]){n!==(n=t(l))&&(i.d(1),i=n(l),i&&(i.c(),i.m(e.parentNode,e)))},i:Oe,o:Oe,d(l){i.d(l),l&&b(e)}}}function mJ(r,e,t){let n,i;return fe(r,en,l=>t(0,n=l)),fe(r,jt,l=>t(1,i=l)),Ft(async()=>{n.list.length>0&&i(`./${n.list[0]._id}`)}),[n]}class gJ extends ie{constructor(e){super();le(this,e,mJ,dJ,re,{})}}function _J(r){let e;const t=r[1].default,n=bt(t,r,r[0],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,[l]){n&&n.p&&(!e||l&1)&&vt(n,t,i,i[0],e?yt(t,i[0],l,null):wt(i[0]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function hJ(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=l=>{"$$scope"in l&&t(0,i=l.$$scope)},[i,n]}class $J extends ie{constructor(e){super();le(this,e,hJ,_J,re,{})}}function bJ(r){let e={},t=it(en).list.filter(l=>l.source===r.type).length,n=Cs[r.type],i=t===0?n:`${n}-${t+1}`;return e.type="datasource",e.source=r.type,e.config=r.config,e.name=i,e.plus=r.plus,e}async function k1(r,e=!1){const t=bJ(r),n=await en.save(t,!e&&t.plus);return await Ot.fetch(),await en.select(n._id),Un.captureEvent(Jn.DATASOURCE.CREATED,{name:n.name,source:n.source}),n}async function vJ(r){const e=gp(r);return k1(e)}function wJ(r){let e;return{c(){e=V("Connect your database to Budibase using the config below.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yJ(r){let e,t;return e=new Ke({props:{size:"XS",$$slots:{default:[wJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1024&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function kJ(r){let e,t,n,i,l;e=new Ye({props:{noPadding:!0,$$slots:{default:[yJ]},$$scope:{ctx:r}}});function s(a){r[5](a)}let o={schema:r[1].schema,creating:!0};return r[1]!==void 0&&(o.datasource=r[1]),n=new O4({props:o}),Z.push(()=>ce(n,"datasource",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&1024&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};u&2&&(c.schema=a[1].schema),!i&&u&2&&(i=!0,c.datasource=a[1],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function CJ(r){let e,t;return e=new Bt({props:{title:`Connect to ${Cs[r[1].type]}`,onConfirm:r[6],onCancel:r[7],confirmText:r[1].plus?"Save and fetch tables":"Save and continue to query",cancelText:"Back",showSecondaryButton:r[1].plus,secondaryButtonText:r[1].plus?"Skip table fetch":void 0,secondaryAction:r[8],size:"L",$$slots:{default:[kJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.title=`Connect to ${Cs[n[1].type]}`),i&1&&(l.onCancel=n[7]),i&2&&(l.confirmText=n[1].plus?"Save and fetch tables":"Save and continue to query"),i&2&&(l.showSecondaryButton=n[1].plus),i&2&&(l.secondaryButtonText=n[1].plus?"Skip table fetch":void 0),i&4&&(l.secondaryAction=n[8]),i&1026&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function SJ(r,e,t){let n;fe(r,jt,d=>t(9,n=d));let{integration:i}=e,{modal:l}=e,s=gp(i),o=!1;async function a(){var d;try{const g=await k1(s,o);n(`./datasource/${g._id}`),ye.success("Datasource updated successfully.")}catch(g){return ye.error((d=g==null?void 0:g.message)!=null?d:"Error saving datasource"),!1}}Ft(()=>{t(2,o=!1)});function u(d){s=d,t(1,s)}const f=()=>a(),c=()=>l.show(),p=()=>(t(2,o=!0),a(),!0);return r.$$set=d=>{"integration"in d&&t(4,i=d.integration),"modal"in d&&t(0,l=d.modal)},[l,s,o,a,i,u,f,c,p]}class AJ extends ie{constructor(e){super();le(this,e,SJ,CJ,re,{integration:4,modal:0})}}function EJ(r){let e,t=Cs[r[1].type]+"",n,i;return{c(){e=V("Authenticate with your google account to use the "),n=V(t),i=V(" integration.")},m(l,s){$(l,e,s),$(l,n,s),$(l,i,s)},p:Oe,d(l){l&&b(e),l&&b(n),l&&b(i)}}}function OJ(r){let e,t;return e=new Ke({props:{size:"XS",$$slots:{default:[EJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function TJ(r){let e,t,n,i;return e=new Ye({props:{noPadding:!0,$$slots:{default:[OJ]},$$scope:{ctx:r}}}),n=new z4({props:{preAuthStep:r[3]}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&32&&(o.$$scope={dirty:s,ctx:l}),e.$set(o)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function IJ(r){let e,t;return e=new Bt({props:{title:`Connect to ${Cs[r[1].type]}`,onCancel:r[4],cancelText:"Back",size:"L",$$slots:{default:[TJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.onCancel=n[4]),i&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function LJ(r,e,t){let{integration:n}=e,{modal:i}=e,l=gp(n);const s=()=>k1(l,!0),o=()=>i.show();return r.$$set=a=>{"integration"in a&&t(2,n=a.integration),"modal"in a&&t(0,i=a.modal)},[i,l,n,s,o]}class PJ extends ie{constructor(e){super();le(this,e,LJ,IJ,re,{integration:2,modal:0})}}function _5(r,e,t){const n=r.slice();return n[23]=e[t][0],n[24]=e[t][1],n}function NJ(r){let e,t;return e=new c5({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function RJ(r){let e,t;return e=new AJ({props:{integration:r[2],modal:r[0]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.integration=n[2]),i&1&&(l.modal=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function MJ(r){let e,t;return e=new PJ({props:{integration:r[2],modal:r[0]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.integration=n[2]),i&1&&(l.modal=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function DJ(r){let e,t,n,i;const l=[MJ,RJ],s=[];function o(a,u){var f,c;return((c=(f=a[2])==null?void 0:f.auth)==null?void 0:c.type)==="google"?0:1}return e=o(r),t=s[e]=l[e](r),{c(){t.c(),n=Ee()},m(a,u){s[e].m(a,u),$(a,n,u),i=!0},p(a,u){let f=e;e=o(a),e===f?s[e].p(a,u):(ee(),_(s[f],1,1,()=>{s[f]=null}),te(),t=s[e],t?t.p(a,u):(t=s[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){i||(m(t),i=!0)},o(a){_(t),i=!1},d(a){s[e].d(a),a&&b(n)}}}function h5(r){let e,t;return e=new V4({props:{navigateDatasource:!0,createDatasource:!0,onCancel:r[12]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.onCancel=n[12]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function jJ(r){let e,t,n=r[2].type==="REST"&&h5(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,l){i[2].type==="REST"?n?(n.p(i,l),l&4&&m(n,1)):(n=h5(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function BJ(r){let e;return{c(){e=V(`All apps need data. You can connect to a data source below, or add data
1073
1073
  to your app using Budibase's built-in database.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function zJ(r){let e;return{c(){e=V("Budibase DB")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qJ(r){let e,t,n,i,l,s,o,a,u,f,c;e=new Ke({props:{size:"S",$$slots:{default:[BJ]},$$scope:{ctx:r}}});var p=tl.BUDIBASE;function d(g){return{props:{height:"18",width:"18"}}}return p&&(l=new p(d())),a=new Ke({props:{size:"S",$$slots:{default:[zJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),n=D("div"),i=D("div"),l&&S(l.$$.fragment),s=R(),o=D("span"),S(a.$$.fragment),w(o,"class","icon-spacing svelte-1akvwnp"),w(i,"class","item-body svelte-1akvwnp"),w(n,"class","item hoverable svelte-1akvwnp"),oe(n,"selected",r[2].type===yn.INTERNAL)},m(g,h){A(e,g,h),$(g,t,h),$(g,n,h),N(n,i),l&&A(l,i,null),N(i,s),N(i,o),A(a,o,null),u=!0,f||(c=Pe(n,"click",r[14]),f=!0)},p(g,h){const v={};if(h&134217728&&(v.$$scope={dirty:h,ctx:g}),e.$set(v),p!==(p=tl.BUDIBASE)){if(l){ee();const y=l;_(y.$$.fragment,1,0,()=>{E(y,1)}),te()}p?(l=new p(d()),S(l.$$.fragment),m(l.$$.fragment,1),A(l,i,s)):l=null}const C={};h&134217728&&(C.$$scope={dirty:h,ctx:g}),a.$set(C),h&4&&oe(n,"selected",g[2].type===yn.INTERNAL)},i(g){u||(m(e.$$.fragment,g),l&&m(l.$$.fragment,g),m(a.$$.fragment,g),u=!0)},o(g){_(e.$$.fragment,g),l&&_(l.$$.fragment,g),_(a.$$.fragment,g),u=!1},d(g){E(e,g),g&&b(t),g&&b(n),l&&E(l),E(a),f=!1,c()}}}function UJ(r){let e;return{c(){e=V("Connect to data source")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function FJ(r){let e=(r[24].name||Cs[r[23]])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&2&&e!==(e=(n[24].name||Cs[n[23]])+"")&&Te(t,e)},d(n){n&&b(t)}}}function $5(r){let e,t,n,i,l,s,o,a,u,f;var c=tl[r[23]];function p(g){return{props:{height:"18",width:"18"}}}c&&(n=new c(p())),s=new Ke({props:{size:"S",$$slots:{default:[FJ]},$$scope:{ctx:r}}});function d(){return r[16](r[23])}return{c(){e=D("div"),t=D("div"),n&&S(n.$$.fragment),i=R(),l=D("span"),S(s.$$.fragment),o=R(),w(l,"class","icon-spacing svelte-1akvwnp"),w(t,"class","item-body svelte-1akvwnp"),w(e,"class","item hoverable svelte-1akvwnp"),oe(e,"selected",r[2].type===r[23])},m(g,h){$(g,e,h),N(e,t),n&&A(n,t,null),N(t,i),N(t,l),A(s,l,null),N(e,o),a=!0,u||(f=Pe(e,"click",d),u=!0)},p(g,h){if(r=g,c!==(c=tl[r[23]])){if(n){ee();const C=n;_(C.$$.fragment,1,0,()=>{E(C,1)}),te()}c?(n=new c(p()),S(n.$$.fragment),m(n.$$.fragment,1),A(n,t,i)):n=null}const v={};h&134217730&&(v.$$scope={dirty:h,ctx:r}),s.$set(v),h&6&&oe(e,"selected",r[2].type===r[23])},i(g){a||(n&&m(n.$$.fragment,g),m(s.$$.fragment,g),a=!0)},o(g){n&&_(n.$$.fragment,g),_(s.$$.fragment,g),a=!1},d(g){g&&b(e),n&&E(n),E(s),u=!1,f()}}}function VJ(r){let e,t,n,i,l;t=new kr({props:{size:"S",$$slots:{default:[UJ]},$$scope:{ctx:r}}});let s=Object.entries(r[1]).filter(r[15]),o=[];for(let u=0;u<s.length;u+=1)o[u]=$5(_5(r,s,u));const a=u=>_(o[u],1,1,()=>{o[u]=null});return{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div");for(let u=0;u<o.length;u+=1)o[u].c();w(e,"class","title-spacing"),w(i,"class","item-list svelte-1akvwnp")},m(u,f){$(u,e,f),A(t,e,null),$(u,n,f),$(u,i,f);for(let c=0;c<o.length;c+=1)o[c].m(i,null);l=!0},p(u,f){const c={};if(f&134217728&&(c.$$scope={dirty:f,ctx:u}),t.$set(c),f&134){s=Object.entries(u[1]).filter(u[15]);let p;for(p=0;p<s.length;p+=1){const d=_5(u,s,p);o[p]?(o[p].p(d,f),m(o[p],1)):(o[p]=$5(d),o[p].c(),m(o[p],1),o[p].m(i,null))}for(ee(),p=s.length;p<o.length;p+=1)a(p);te()}},i(u){if(!l){m(t.$$.fragment,u);for(let f=0;f<s.length;f+=1)m(o[f]);l=!0}},o(u){_(t.$$.fragment,u),o=o.filter(Boolean);for(let f=0;f<o.length;f+=1)_(o[f]);l=!1},d(u){u&&b(e),E(t),u&&b(n),u&&b(i),$t(o,u)}}}function HJ(r){let e,t,n,i;return e=new Ye({props:{noPadding:!0,$$slots:{default:[qJ]},$$scope:{ctx:r}}}),n=new Ye({props:{gap:"XS",noPadding:!0,$$slots:{default:[VJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&134217732&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&134217734&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function WJ(r){let e,t;return e=new Bt({props:{disabled:!Object.keys(r[2]).length,title:"Data",confirmText:"Continue",showSecondaryButton:r[6],secondaryButtonText:"Import",secondaryAction:r[17],showCancelButton:!1,size:"M",onConfirm:r[18],$$slots:{default:[HJ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.disabled=!Object.keys(n[2]).length),i&64&&(l.showSecondaryButton=n[6]),i&134217734&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function GJ(r){let e,t,n,i,l,s,o,a,u={$$slots:{default:[NJ]},$$scope:{ctx:r}};e=new At({props:u}),r[10](e);let f={$$slots:{default:[DJ]},$$scope:{ctx:r}};n=new At({props:f}),r[11](n);let c={$$slots:{default:[jJ]},$$scope:{ctx:r}};l=new At({props:c}),r[13](l);let p={$$slots:{default:[WJ]},$$scope:{ctx:r}};return o=new At({props:p}),r[19](o),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),S(o.$$.fragment)},m(d,g){A(e,d,g),$(d,t,g),A(n,d,g),$(d,i,g),A(l,d,g),$(d,s,g),A(o,d,g),a=!0},p(d,[g]){const h={};g&134217728&&(h.$$scope={dirty:g,ctx:d}),e.$set(h);const v={};g&134217733&&(v.$$scope={dirty:g,ctx:d}),n.$set(v);const C={};g&134217733&&(C.$$scope={dirty:g,ctx:d}),l.$set(C);const y={};g&134217798&&(y.$$scope={dirty:g,ctx:d}),o.$set(y)},i(d){a||(m(e.$$.fragment,d),m(n.$$.fragment,d),m(l.$$.fragment,d),m(o.$$.fragment,d),a=!0)},o(d){_(e.$$.fragment,d),_(n.$$.fragment,d),_(l.$$.fragment,d),_(o.$$.fragment,d),a=!1},d(d){r[10](null),E(e,d),d&&b(t),r[11](null),E(n,d),d&&b(i),r[13](null),E(l,d),d&&b(s),r[19](null),E(o,d)}}}function YJ(r,e,t){let n,i;fe(r,jt,B=>t(20,i=B));let{modal:l}=e,s={},o={},a,u,f;p(),Ft(()=>{h()});function c(B){const q=s[B],G={};for(let Y of Object.keys(q.datasource))G[Y]=q.datasource[Y].default;t(2,o={type:B,plus:q.plus,config:G,schema:q.datasource,auth:q.auth}),p()}function p(){t(6,n=o.type==="REST")}function d(){f.show()}async function g(){if(o.type===yn.INTERNAL)u.hide(),a.show();else if(o.type===yn.REST)try{const B=await vJ(o);i(`./datasource/${B._id}`)}catch{ye.error("Error creating datasource")}else u.show()}async function h(){let B={[yn.INTERNAL]:{datasource:{},name:"INTERNAL/CSV"}};try{const q=await xe.getIntegrations();B=Se(Se({},B),q)}catch{ye.error("Error fetching integrations")}t(1,s=B)}function v(B){Z[B?"unshift":"push"](()=>{a=B,t(3,a)})}function C(B){Z[B?"unshift":"push"](()=>{u=B,t(4,u)})}const y=()=>l.show();function I(B){Z[B?"unshift":"push"](()=>{f=B,t(5,f)})}const O=()=>c(yn.INTERNAL),T=([B])=>B!==yn.INTERNAL,P=B=>c(B),M=()=>d(),F=()=>{g()};function j(B){Z[B?"unshift":"push"](()=>{l=B,t(0,l)})}return r.$$set=B=>{"modal"in B&&t(0,l=B.modal)},t(6,n=!1),[l,s,o,a,u,f,n,c,d,g,v,C,y,I,O,T,P,M,F,j]}class b5 extends ie{constructor(e){super();le(this,e,YJ,GJ,re,{modal:0})}}function JJ(r){let e,t,n;function i(s){r[2](s)}let l={};return r[0]!==void 0&&(l.modal=r[0]),e=new b5({props:l}),Z.push(()=>ce(e,"modal",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};!t&&o&1&&(t=!0,a.modal=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function QJ(r,e,t){let n,i,l,s;fe(r,jt,u=>t(4,i=u)),fe(r,An,u=>t(5,l=u)),fe(r,en,u=>t(1,s=u));let o;Ft(()=>{!n&&!l.isDev?o.show():i("./table")});function a(u){o=u,t(0,o)}return r.$$.update=()=>{var u;r.$$.dirty&2&&(n=((u=s.list.find(f=>f._id="bb_internal"))==null?void 0:u.entities.length)>1||s.list.length>1)},[o,s,a]}class XJ extends ie{constructor(e){super();le(this,e,QJ,JJ,re,{})}}function KJ(r){let e;return{c(){e=V(r[1])},m(t,n){$(t,e,n)},p(t,n){n&2&&Te(e,t[1])},d(t){t&&b(e)}}}function ZJ(r){let e,t,n;var i=r[0];function l(s){return{}}return i&&(e=new i(l()),e.$on("updaterows",r[3])),{c(){e&&S(e.$$.fragment),t=Ee()},m(s,o){e&&A(e,s,o),$(s,t,o),n=!0},p(s,o){if(i!==(i=s[0])){if(e){ee();const a=e;_(a.$$.fragment,1,0,()=>{E(a,1)}),te()}i?(e=new i(l()),e.$on("updaterows",s[3]),S(e.$$.fragment),m(e.$$.fragment,1),A(e,t.parentNode,t)):e=null}},i(s){n||(e&&m(e.$$.fragment,s),n=!0)},o(s){e&&_(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&E(e,s)}}}function xJ(r){let e,t,n,i;e=new Yt({props:{icon:"TableRowAddBottom",size:"S",quiet:!0,$$slots:{default:[KJ]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[2].show)&&r[2].show.apply(this,arguments)});let l={$$slots:{default:[ZJ]},$$scope:{ctx:r}};return n=new At({props:l}),r[4](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&34&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&33&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[4](null),E(n,s)}}}function eQ(r,e,t){let{modalContentComponent:n=$1}=e,{title:i="Create row"}=e,l;function s(a){dt.call(this,r,a)}function o(a){Z[a?"unshift":"push"](()=>{l=a,t(2,l)})}return r.$$set=a=>{"modalContentComponent"in a&&t(0,n=a.modalContentComponent),"title"in a&&t(1,i=a.title)},[n,i,l,s,o]}class tQ extends ie{constructor(e){super();le(this,e,eQ,xJ,re,{modalContentComponent:0,title:1})}}function nQ(r){let e;return{c(){e=V("Create column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rQ(r){let e,t;return e=new n4({}),e.$on("updatecolumns",r[1]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function iQ(r){let e,t,n,i;e=new Yt({props:{icon:"TableColumnAddRight",quiet:!0,size:"S",$$slots:{default:[nQ]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let l={$$slots:{default:[rQ]},$$scope:{ctx:r}};return n=new At({props:l}),r[2](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&8&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&8&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[2](null),E(n,s)}}}function lQ(r,e,t){let n;function i(s){dt.call(this,r,s)}function l(s){Z[s?"unshift":"push"](()=>{n=s,t(0,n)})}return[n,i,l]}class sQ extends ie{constructor(e){super();le(this,e,lQ,iQ,re,{})}}function oQ(r){let e,t,n;function i(s){r[3](s)}let l={label:"View Name",thin:!0};return r[0]!==void 0&&(l.value=r[0]),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&1&&(t=!0,a.value=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function aQ(r){let e,t;return e=new Bt({props:{title:"Create View",confirmText:"Create View",onConfirm:r[1],$$slots:{default:[oQ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&129&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function uQ(r,e,t){let n,i,l;fe(r,jt,f=>t(5,i=f)),fe(r,Ot,f=>t(2,l=f));let s,o;function a(){if(n.includes(s)){ye.error(`View exists with name ${s}`);return}try{mr.save({name:s,tableId:l.selected._id,field:o}),ye.success(`View ${s} created`),Un.captureEvent(Jn.VIEW.CREATED,{name:s}),i(`../../view/${s}`)}catch{ye.error("Error creating view")}}function u(f){s=f,t(0,s)}return r.$$.update=()=>{r.$$.dirty&4&&(n=l.list.flatMap(f=>Object.keys(f.views||{})))},[s,a,l,u]}class fQ extends ie{constructor(e){super();le(this,e,uQ,aQ,re,{})}}function cQ(r){let e;return{c(){e=V("Create view")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pQ(r){let e,t;return e=new fQ({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dQ(r){let e,t,n,i;e=new Yt({props:{icon:"CollectionAdd",size:"S",quiet:!0,$$slots:{default:[cQ]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let l={$$slots:{default:[pQ]},$$scope:{ctx:r}};return n=new At({props:l}),r[1](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&4&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&4&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[1](null),E(n,s)}}}function mQ(r,e,t){let n;function i(l){Z[l?"unshift":"push"](()=>{n=l,t(0,n)})}return[n,i]}class gQ extends ie{constructor(e){super();le(this,e,mQ,dQ,re,{})}}function v5(r){let e,t,n,i,l;t=new Yt({props:{icon:"DataCorrelated",primary:!0,size:"S",quiet:!0,$$slots:{default:[_Q]},$$scope:{ctx:r}}}),t.$on("click",function(){ct(r[2].show)&&r[2].show.apply(this,arguments)});let s={$$slots:{default:[hQ]},$$scope:{ctx:r}};return i=new At({props:s}),r[6](i),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),$(o,n,a),A(i,o,a),l=!0},p(o,a){r=o;const u={};a&256&&(u.$$scope={dirty:a,ctx:r}),t.$set(u);const f={};a&271&&(f.$$scope={dirty:a,ctx:r}),i.$set(f)},i(o){l||(m(t.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(t.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){o&&b(e),E(t),o&&b(n),r[6](null),E(i,o)}}}function _Q(r){let e;return{c(){e=V("Define existing relationship")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hQ(r){let e,t;return e=new j4({props:{datasource:r[1],save:r[4],close:r[2].hide,plusTables:r[3],selectedFromTable:r[0]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.datasource=n[1]),i&4&&(l.close=n[2].hide),i&8&&(l.plusTables=n[3]),i&1&&(l.selectedFromTable=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function $Q(r){let e,t,n=r[0].sourceId&&v5(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,[l]){i[0].sourceId?n?(n.p(i,l),l&1&&m(n,1)):(n=v5(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function bQ(r,e,t){let n,i,l;fe(r,en,c=>t(5,l=c));let{table:s}=e;const o=ht();let a;async function u(){try{await en.save(i),ye.success("Relationship information saved.");const c=await Ot.fetch();await Ot.select(c.find(p=>p._id===s._id)),o("updatecolumns")}catch(c){ye.error(`Error saving relationship info: ${c}`)}}function f(c){Z[c?"unshift":"push"](()=>{a=c,t(2,a)})}return r.$$set=c=>{"table"in c&&t(0,s=c.table)},r.$$.update=()=>{r.$$.dirty&33&&t(1,i=l.list.find(c=>c._id===(s==null?void 0:s.sourceId))),r.$$.dirty&2&&t(3,n=(i==null?void 0:i.plus)?Object.values((i==null?void 0:i.entities)||{}):[])},[s,i,a,n,u,l,f]}class vQ extends ie{constructor(e){super();le(this,e,bQ,$Q,re,{table:0})}}function wQ(r){let e,t,n;function i(s){r[4](s)}let l={label:"Format",options:r[1],placeholder:null,getOptionLabel:kQ,getOptionValue:CQ};return r[0]!==void 0&&(l.value=r[0]),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&1&&(t=!0,a.value=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function yQ(r){let e,t;return e=new Bt({props:{title:"Export Data",confirmText:"Export",onConfirm:r[2],$$slots:{default:[wQ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&33&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const kQ=r=>r.name,CQ=r=>r.key;function SQ(r,e,t){const n=[{name:"CSV",key:"csv"},{name:"JSON",key:"json"}];let{view:i}=e,l=n[0].key;async function s(){try{const a=await xe.exportView({viewName:i,format:l});__(a,`export.${l}`)}catch{ye.error(`Unable to export ${l.toUpperCase()} data`)}}function o(a){l=a,t(0,l)}return r.$$set=a=>{"view"in a&&t(3,i=a.view)},[l,n,s,i,o]}class AQ extends ie{constructor(e){super();le(this,e,SQ,yQ,re,{view:3})}}function EQ(r){let e;return{c(){e=V("Export")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function OQ(r){let e,t;return e=new AQ({props:{view:r[0]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.view=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function TQ(r){let e,t,n,i;e=new Yt({props:{icon:"DataDownload",size:"S",quiet:!0,$$slots:{default:[EQ]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[OQ]},$$scope:{ctx:r}};return n=new At({props:l}),r[2](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&8&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&9&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[2](null),E(n,s)}}}function IQ(r,e,t){let{view:n}=e,i;function l(s){Z[s?"unshift":"push"](()=>{i=s,t(1,i)})}return r.$$set=s=>{"view"in s&&t(0,n=s.view)},[n,i,l]}class w5 extends ie{constructor(e){super();le(this,e,IQ,TQ,re,{view:0})}}function LQ(r){let e;return{c(){e=V(`Import rows to an existing table from a CSV. Only columns from the CSV which
1074
1074
  exist in the table will be imported.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function PQ(r){let e;return{c(){e=V("CSV to import")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function NQ(r){let e,t,n,i,l,s;e=new Ze({props:{grey:!0,extraSmall:!0,$$slots:{default:[PQ]},$$scope:{ctx:r}}});function o(f){r[4](f)}function a(f){r[5](f)}let u={};return r[1]!==void 0&&(u.dataImport=r[1]),r[0]!==void 0&&(u.existingTableId=r[0]),n=new f5({props:u}),Z.push(()=>ce(n,"dataImport",o)),Z.push(()=>ce(n,"existingTableId",a)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(f,c){A(e,f,c),$(f,t,c),A(n,f,c),s=!0},p(f,c){const p={};c&128&&(p.$$scope={dirty:c,ctx:f}),e.$set(p);const d={};!i&&c&2&&(i=!0,d.dataImport=f[1],pe(()=>i=!1)),!l&&c&1&&(l=!0,d.existingTableId=f[0],pe(()=>l=!1)),n.$set(d)},i(f){s||(m(e.$$.fragment,f),m(n.$$.fragment,f),s=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),s=!1},d(f){E(e,f),f&&b(t),E(n,f)}}}function RQ(r){let e,t,n,i;return e=new Ke({props:{size:"S",$$slots:{default:[LQ]},$$scope:{ctx:r}}}),n=new Ye({props:{gap:"XS",noPadding:!0,$$slots:{default:[NQ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&131&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function MQ(r){let e,t;return e=new Bt({props:{title:"Import Data",confirmText:"Import",onConfirm:r[3],disabled:!r[2],$$slots:{default:[RQ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&4&&(l.disabled=!n[2]),i&131&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function DQ(r,e,t){let n;const i=ht();let{tableId:l}=e,s;async function o(){try{await xe.importTableData({tableId:l,data:s}),ye.success("Rows successfully imported")}catch{ye.error("Unable to import data")}i("updaterows")}function a(f){s=f,t(1,s)}function u(f){l=f,t(0,l)}return r.$$set=f=>{"tableId"in f&&t(0,l=f.tableId)},r.$$.update=()=>{r.$$.dirty&2&&t(2,n=(s==null?void 0:s.csvString)!=null&&(s==null?void 0:s.valid))},[l,s,n,o,a,u]}class jQ extends ie{constructor(e){super();le(this,e,DQ,MQ,re,{tableId:0})}}function BQ(r){let e;return{c(){e=V("Import")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function zQ(r){let e,t;return e=new jQ({props:{tableId:r[0]}}),e.$on("updaterows",r[2]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.tableId=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function qQ(r){let e,t,n,i;e=new Yt({props:{icon:"DataUpload",size:"S",quiet:!0,$$slots:{default:[BQ]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[zQ]},$$scope:{ctx:r}};return n=new At({props:l}),r[3](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&16&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&17&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[3](null),E(n,s)}}}function UQ(r,e,t){let{tableId:n}=e,i;function l(o){dt.call(this,r,o)}function s(o){Z[o?"unshift":"push"](()=>{i=o,t(1,i)})}return r.$$set=o=>{"tableId"in o&&t(0,n=o.tableId)},[n,i,l,s]}class FQ extends ie{constructor(e){super();le(this,e,UQ,qQ,re,{tableId:0})}}function y5(r){let e,t;return e=new h1({props:{errors:r[4]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.errors=n[4]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function k5(r){let e,t,n,i,l,s,o,a,u;function f(v){r[13](v)}let c={label:"Name",disabled:r[8].includes(r[0].name)};r[0].name!==void 0&&(c.value=r[0].name),e=new tt({props:c}),Z.push(()=>ce(e,"value",f));function p(v){r[14](v)}let d={label:"Inherits Role",options:r[7],getOptionValue:QQ,getOptionLabel:XQ,disabled:r[8].includes(r[0].name)};r[0].inherits!==void 0&&(d.value=r[0].inherits),i=new Qe({props:d}),Z.push(()=>ce(i,"value",p));function g(v){r[15](v)}let h={label:"Base Permissions",options:r[3],getOptionValue:KQ,getOptionLabel:ZQ,disabled:r[8].includes(r[0].name)};return r[0].permissionId!==void 0&&(h.value=r[0].permissionId),o=new Qe({props:h}),Z.push(()=>ce(o,"value",g)),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment),s=R(),S(o.$$.fragment)},m(v,C){A(e,v,C),$(v,n,C),A(i,v,C),$(v,s,C),A(o,v,C),u=!0},p(v,C){const y={};C&1&&(y.disabled=v[8].includes(v[0].name)),!t&&C&1&&(t=!0,y.value=v[0].name,pe(()=>t=!1)),e.$set(y);const I={};C&128&&(I.options=v[7]),C&1&&(I.disabled=v[8].includes(v[0].name)),!l&&C&1&&(l=!0,I.value=v[0].inherits,pe(()=>l=!1)),i.$set(I);const O={};C&8&&(O.options=v[3]),C&1&&(O.disabled=v[8].includes(v[0].name)),!a&&C&1&&(a=!0,O.value=v[0].permissionId,pe(()=>a=!1)),o.$set(O)},i(v){u||(m(e.$$.fragment,v),m(i.$$.fragment,v),m(o.$$.fragment,v),u=!0)},o(v){_(e.$$.fragment,v),_(i.$$.fragment,v),_(o.$$.fragment,v),u=!1},d(v){E(e,v),v&&b(n),E(i,v),v&&b(s),E(o,v)}}}function VQ(r){let e,t,n,i,l,s=r[4].length&&y5(r);t=new Qe({props:{thin:!0,secondary:!0,label:"Role",value:r[1],options:r[2],placeholder:"Create new role",getOptionValue:YQ,getOptionLabel:JQ}}),t.$on("change",r[9]);let o=r[0]&&k5(r);return{c(){s&&s.c(),e=R(),S(t.$$.fragment),n=R(),o&&o.c(),i=Ee()},m(a,u){s&&s.m(a,u),$(a,e,u),A(t,a,u),$(a,n,u),o&&o.m(a,u),$(a,i,u),l=!0},p(a,u){a[4].length?s?(s.p(a,u),u&16&&m(s,1)):(s=y5(a),s.c(),m(s,1),s.m(e.parentNode,e)):s&&(ee(),_(s,1,1,()=>{s=null}),te());const f={};u&2&&(f.value=a[1]),u&4&&(f.options=a[2]),t.$set(f),a[0]?o?(o.p(a,u),u&1&&m(o,1)):(o=k5(a),o.c(),m(o,1),o.m(i.parentNode,i)):o&&(ee(),_(o,1,1,()=>{o=null}),te())},i(a){l||(m(s),m(t.$$.fragment,a),m(o),l=!0)},o(a){_(s),_(t.$$.fragment,a),_(o),l=!1},d(a){s&&s.d(a),a&&b(e),E(t,a),a&&b(n),o&&o.d(a),a&&b(i)}}}function C5(r){let e,t;return e=new ut({props:{warning:!0,$$slots:{default:[HQ]},$$scope:{ctx:r}}}),e.$on("click",r[11]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&262144&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function HQ(r){let e;return{c(){e=V("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function WQ(r){let e,t,n=!r[6]&&C5(r);return{c(){e=D("div"),n&&n.c(),w(e,"slot","footer")},m(i,l){$(i,e,l),n&&n.m(e,null),t=!0},p(i,l){i[6]?n&&(ee(),_(n,1,1,()=>{n=null}),te()):n?(n.p(i,l),l&64&&m(n,1)):(n=C5(i),n.c(),m(n,1),n.m(e,null))},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){i&&b(e),n&&n.d()}}}function GQ(r){let e,t;return e=new Bt({props:{title:"Edit Roles",confirmText:r[6]?"Create":"Save",onConfirm:r[10],disabled:!r[5],$$slots:{footer:[WQ],default:[VQ]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&64&&(l.confirmText=n[6]?"Create":"Save"),i&32&&(l.disabled=!n[5]),i&262367&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const YQ=r=>r._id,JQ=r=>r.name,QQ=r=>r._id,XQ=r=>r.name,KQ=r=>r._id,ZQ=r=>r.name;function xQ(r,e,t){let n,i,l,s,o,a;fe(r,Zi,T=>t(12,a=T));const u={_id:"",inherits:"BASIC",permissionId:"write"};let f=[],c=u,p=[],d=["Admin","Power","Basic","Public"];const g=async()=>{try{t(3,f=await xe.getBasePermissions())}catch{ye.error("Error fetching base permission options"),t(3,f=[])}},h=T=>{var F,j;const P=T==null?void 0:T.detail,M=a.find(B=>B._id===P);M?t(0,c=lt(Se({},M),{inherits:(F=M.inherits)!=null?F:"",permissionId:(j=M.permissionId)!=null?j:""})):t(0,c=u),t(4,p=[])},v=async()=>{if(t(4,p=[]),["_id","inherits","permissionId"].forEach(P=>{c[P]===""&&delete c[P]}),(!c.name||c.name.trim()==="")&&p.push({message:"Please enter a role name"}),c.permissionId||p.push({message:"Please choose permissions"}),p.length)return!1;try{await Zi.save(c),ye.success("Role saved successfully")}catch{return ye.error("Error saving role"),!1}},C=async()=>{try{await Zi.delete(c),h(),ye.success("Role deleted successfully")}catch{ye.error("Error deleting role")}};Ft(g);function y(T){r.$$.not_equal(c.name,T)&&(c.name=T,t(0,c))}function I(T){r.$$.not_equal(c.inherits,T)&&(c.inherits=T,t(0,c))}function O(T){r.$$.not_equal(c.permissionId,T)&&(c.permissionId=T,t(0,c))}return r.$$.update=()=>{r.$$.dirty&4096&&t(2,n=a.filter(T=>T._id!=="PUBLIC")),r.$$.dirty&1&&t(1,i=c._id),r.$$.dirty&6&&t(7,l=n.filter(T=>T._id!==i)),r.$$.dirty&2&&t(6,s=i==null||i===""),r.$$.dirty&1&&t(5,o=c.name&&c.inherits&&c.permissionId&&!d.includes(c.name))},[c,i,n,f,p,o,s,l,d,h,v,C,a,y,I,O]}class eX extends ie{constructor(e){super();le(this,e,xQ,GQ,re,{})}}function tX(r){let e;return{c(){e=V("Edit roles")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function nX(r){let e,t;return e=new eX({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function rX(r){let e,t,n,i,l;t=new ut({props:{icon:"UsersLock",primary:!0,size:"S",quiet:!0,$$slots:{default:[tX]},$$scope:{ctx:r}}}),t.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let s={$$slots:{default:[nX]},$$scope:{ctx:r}};return i=new At({props:s}),r[1](i),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),$(o,n,a),A(i,o,a),l=!0},p(o,[a]){r=o;const u={};a&4&&(u.$$scope={dirty:a,ctx:r}),t.$set(u);const f={};a&4&&(f.$$scope={dirty:a,ctx:r}),i.$set(f)},i(o){l||(m(t.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(t.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){o&&b(e),E(t),o&&b(n),r[1](null),E(i,o)}}}function iX(r,e,t){let n;function i(l){Z[l?"unshift":"push"](()=>{n=l,t(0,n)})}return[n,i]}class lX extends ie{constructor(e){super();le(this,e,iX,rX,re,{})}}function S5(r,e,t){const n=r.slice();return n[5]=e[t],n}function sX(r){let e;return{c(){e=V("Specify the minimum access level role for this data.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function oX(r){let e;return{c(){e=V("Level")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function aX(r){let e;return{c(){e=V("Role")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function A5(r){let e,t,n,i;e=new tt({props:{value:Sr(r[5]),disabled:!0}});function l(...s){return r[4](r[5],...s)}return n=new Qe({props:{value:r[0][r[5]],options:r[1],getOptionLabel:cX,getOptionValue:pX}}),n.$on("change",l),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,o){r=s;const a={};o&1&&(a.value=Sr(r[5])),e.$set(a);const u={};o&1&&(u.value=r[0][r[5]]),o&2&&(u.options=r[1]),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),E(n,s)}}}function uX(r){let e,t,n,i,l,s,o,a;e=new Ke({props:{size:"S",$$slots:{default:[sX]},$$scope:{ctx:r}}}),i=new Ze({props:{extraSmall:!0,grey:!0,$$slots:{default:[oX]},$$scope:{ctx:r}}}),s=new Ze({props:{extraSmall:!0,grey:!0,$$slots:{default:[aX]},$$scope:{ctx:r}}});let u=Object.keys(r[0]),f=[];for(let p=0;p<u.length;p+=1)f[p]=A5(S5(r,u,p));const c=p=>_(f[p],1,1,()=>{f[p]=null});return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R();for(let p=0;p<f.length;p+=1)f[p].c();w(n,"class","row svelte-txil9n")},m(p,d){A(e,p,d),$(p,t,d),$(p,n,d),A(i,n,null),N(n,l),A(s,n,null),N(n,o);for(let g=0;g<f.length;g+=1)f[g].m(n,null);a=!0},p(p,d){const g={};d&256&&(g.$$scope={dirty:d,ctx:p}),e.$set(g);const h={};d&256&&(h.$$scope={dirty:d,ctx:p}),i.$set(h);const v={};if(d&256&&(v.$$scope={dirty:d,ctx:p}),s.$set(v),d&7){u=Object.keys(p[0]);let C;for(C=0;C<u.length;C+=1){const y=S5(p,u,C);f[C]?(f[C].p(y,d),m(f[C],1)):(f[C]=A5(y),f[C].c(),m(f[C],1),f[C].m(n,null))}for(ee(),C=u.length;C<f.length;C+=1)c(C);te()}},i(p){if(!a){m(e.$$.fragment,p),m(i.$$.fragment,p),m(s.$$.fragment,p);for(let d=0;d<u.length;d+=1)m(f[d]);a=!0}},o(p){_(e.$$.fragment,p),_(i.$$.fragment,p),_(s.$$.fragment,p),f=f.filter(Boolean);for(let d=0;d<f.length;d+=1)_(f[d]);a=!1},d(p){E(e,p),p&&b(t),p&&b(n),E(i),E(s),$t(f,p)}}}function fX(r){let e,t;return e=new Bt({props:{title:"Manage Access",showCancelButton:!1,confirmText:"Done",$$slots:{default:[uX]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&259&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const cX=r=>r.name,pX=r=>r._id;function dX(r,e,t){let n;fe(r,Zi,a=>t(1,n=a));let{resourceId:i}=e,{permissions:l}=e;async function s(a,u){try{await mo.save({level:a,role:u,resource:i}),t(0,l=await mo.forResource(i)),ye.success("Updated permissions")}catch{ye.error("Error updating permissions")}}const o=(a,u)=>s(a,u.detail);return r.$$set=a=>{"resourceId"in a&&t(3,i=a.resourceId),"permissions"in a&&t(0,l=a.permissions)},[l,n,s,i,o]}class mX extends ie{constructor(e){super();le(this,e,dX,fX,re,{resourceId:3,permissions:0})}}function gX(r){let e;return{c(){e=V("Manage access")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function _X(r){let e,t;return e=new mX({props:{resourceId:r[0],levels:r[3],permissions:r[2]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.resourceId=n[0]),i&8&&(l.levels=n[3]),i&4&&(l.permissions=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function hX(r){let e,t,n,i;e=new Yt({props:{icon:"LockClosed",size:"S",quiet:!0,$$slots:{default:[gX]},$$scope:{ctx:r}}}),e.$on("click",r[4]);let l={$$slots:{default:[_X]},$$scope:{ctx:r}};return n=new At({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&64&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&77&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function $X(r,e,t){let n;fe(r,mo,u=>t(3,n=u));let{resourceId:i}=e,l,s;async function o(){t(2,s=await mo.forResource(i)),l.show()}function a(u){Z[u?"unshift":"push"](()=>{l=u,t(1,l)})}return r.$$set=u=>{"resourceId"in u&&t(0,i=u.resourceId)},[i,l,s,n,o,a]}class E5 extends ie{constructor(e){super();le(this,e,$X,hX,re,{resourceId:0})}}function bX(r){let e;return{c(){e=V("Hide auto columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function vX(r){let e;return{c(){e=V("Show auto columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function wX(r){let e;function t(l,s){return l[0]?vX:bX}let n=t(r),i=n(r);return{c(){i.c(),e=Ee()},m(l,s){i.m(l,s),$(l,e,s)},p(l,s){n!==(n=t(l))&&(i.d(1),i=n(l),i&&(i.c(),i.m(e.parentNode,e)))},d(l){i.d(l),l&&b(e)}}}function yX(r){let e,t;return e=new Yt({props:{icon:"MagicWand",primary:!0,size:"S",quiet:!0,$$slots:{default:[wX]},$$scope:{ctx:r}}}),e.$on("click",r[1]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&5&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function kX(r,e,t){let{hideAutocolumns:n}=e;function i(){t(0,n=!n)}return r.$$set=l=>{"hideAutocolumns"in l&&t(0,n=l.hideAutocolumns)},[n,i]}class O5 extends ie{constructor(e){super();le(this,e,kX,yX,re,{hideAutocolumns:0})}}function CX(r){const e=it(Ot).list.find(n=>n._id===r.tableId);return!e||!e.sql?[]:C1(Object.values(e.schema),{allowLinks:!1}).map(n=>lt(Se({},n),{name:`${e.name}.${n.name}`}))}function C1(r,{allowLinks:e}={allowLinks:!0}){let t=r.filter(i=>!zj.includes(i.type));if(e){const i=r.filter(l=>l.type==="link");for(let l of i)t=t.concat(CX(l))}const n=r.filter(i=>i.type==="formula"&&i.formulaType==="static");return t.concat(n)}function T5(r,e,t){const n=r.slice();return n[26]=e[t],n[27]=e,n[28]=t,n}function SX(r){let e;return{c(){e=V(`Results are filtered to only those which match all of the following
@@ -1212,7 +1212,7 @@ function print() { __p += __j.call(arguments, '') }
1212
1212
  </g>
1213
1213
  </g>
1214
1214
  </svg>
1215
- `;function Gx(r){let e,t,n;return t=new Ye({props:{justifyItems:"center",gap:"S",$$slots:{default:[Xx]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","center error svelte-byn9z3")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&8388624&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Yx(r){let e,t,n;return t=new cs({}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","center svelte-byn9z3")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Oe,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Jx(r){let e;return{c(){e=V("App preview failed to load")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qx(r){let e;return{c(){e=V(r[4])},m(t,n){$(t,e,n)},p(t,n){n&16&&Te(e,t[4])},d(t){t&&b(e)}}}function Xx(r){let e,t,n,i,l,s;return n=new kt({props:{size:"L",$$slots:{default:[Jx]},$$scope:{ctx:r}}}),l=new Ke({props:{size:"S",$$slots:{default:[Qx]},$$scope:{ctx:r}}}),{c(){e=new PS,t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),e.a=t},m(o,a){e.m(Wx,o,a),$(o,t,a),A(n,o,a),$(o,i,a),A(l,o,a),s=!0},p(o,a){const u={};a&8388608&&(u.$$scope={dirty:a,ctx:o}),n.$set(u);const f={};a&8388624&&(f.$$scope={dirty:a,ctx:o}),l.$set(f)},i(o){s||(m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&e.d(),o&&b(t),E(n,o),o&&b(i),E(l,o)}}}function Kx(r){let e,t,n,i,l,s,o,a;const u=[Yx,Gx],f=[];function c(d,g){return d[3]?0:d[4]?1:-1}~(t=c(r))&&(n=f[t]=u[t](r));let p={title:"Confirm Deletion",body:"Are you sure you want to delete this component?",okText:"Delete component",onOk:r[6],onCancel:r[7]};return o=new _r({props:p}),r[15](o),{c(){e=D("div"),n&&n.c(),i=R(),l=D("iframe"),s=R(),S(o.$$.fragment),w(l,"title","componentPreview"),w(l,"srcdoc",r[5]),w(l,"class","svelte-byn9z3"),oe(l,"hidden",r[3]||r[4]),oe(l,"tablet",r[0].previewDevice==="tablet"),oe(l,"mobile",r[0].previewDevice==="mobile"),w(e,"class","component-container svelte-byn9z3")},m(d,g){$(d,e,g),~t&&f[t].m(e,null),N(e,i),N(e,l),r[14](l),$(d,s,g),A(o,d,g),a=!0},p(d,[g]){let h=t;t=c(d),t===h?~t&&f[t].p(d,g):(n&&(ee(),_(f[h],1,1,()=>{f[h]=null}),te()),~t?(n=f[t],n?n.p(d,g):(n=f[t]=u[t](d),n.c()),m(n,1),n.m(e,i)):n=null),(!a||g&32)&&w(l,"srcdoc",d[5]),g&24&&oe(l,"hidden",d[3]||d[4]),g&1&&oe(l,"tablet",d[0].previewDevice==="tablet"),g&1&&oe(l,"mobile",d[0].previewDevice==="mobile");const v={};o.$set(v)},i(d){a||(m(n),m(o.$$.fragment,d),a=!0)},o(d){_(n),_(o.$$.fragment,d),a=!1},d(d){d&&b(e),~t&&f[t].d(),r[14](null),d&&b(s),r[15](null),E(o,d)}}}function Zx(r,e,t){let n,i,l,s,o,a;fe(r,He,B=>t(0,o=B)),fe(r,fn,B=>t(13,a=B));let u,f,c,p,d,g=!0,h;const v=new Pa().name("Screen Placeholder").route("*").component("@budibase/standard-components/screenslot").instanceName("Content Placeholder").json(),C={READY:"ready",ERROR:"error",BUDIBASE:"type"},y=B=>{u&&u.contentWindow.postMessage(B)};function I(B){({[C.READY]:()=>{o.clientFeatures.messagePassing&&!g||(o.clientFeatures.intelligentLoading||t(3,g=!1),y(s))},[C.ERROR]:Y=>{t(3,g=!1),t(4,h=Y.error||"An unknown error occurred")}}[B.data.type]||O)(B)}Ft(()=>{window.addEventListener("message",I),o.clientFeatures.messagePassing||(u.contentWindow.addEventListener("ready",()=>{I({data:{type:C.READY}})},{once:!0}),u.contentWindow.addEventListener("error",B=>{I({data:{type:C.ERROR,error:B.detail}})},{once:!0}),u.contentWindow.addEventListener("bb-event",O))}),_p(()=>{window.removeEventListener("message",I),u.contentWindow&&(o.clientFeatures.messagePassing||u.contentWindow.removeEventListener("bb-event",O))});const O=async B=>{const{type:q,data:G}=B.data||B.detail;if(!!q)try{if(q==="select-component"&&G.id)He.actions.components.select({_id:G.id});else if(q==="update-prop")await He.actions.components.updateProp(G.prop,G.value);else if(q==="delete-component"&&G.id)T(G.id);else if(q==="duplicate-component"&&G.id){const Y=it(fn).props,U=xi(Y,G.id);He.actions.components.copy(U),await He.actions.components.paste(U)}else if(q==="preview-loaded")t(3,g=!1);else if(q==="move-component"){const{componentId:Y,destinationComponentId:U}=G,H=it(fn).props,W=xi(H,Y),Q=xi(H,U);if(Sl(W,U).map(ne=>ne._id).includes(G.destinationComponentId))return;W&&Q&&(He.actions.components.copy(W,!0),await He.actions.components.paste(Q,G.mode))}else console.warn(`Client sent unknown event type: ${q}`)}catch(Y){console.warn(Y),ye.error("Error handling event from app preview")}},T=B=>{d=B,p.show()},P=async()=>{try{await He.actions.components.delete({_id:d})}catch{ye.error("Error deleting component")}d=null},M=()=>{d=null};function F(B){Z[B?"unshift":"push"](()=>{u=B,t(1,u)})}function j(B){Z[B?"unshift":"push"](()=>{p=B,t(2,p)})}return r.$$.update=()=>{var B;r.$$.dirty&1&&t(5,n=Hx.replace(/\{\{ CLIENT_LIB_PATH }}/,o.clientLibPath)),r.$$.dirty&8705&&(o.currentFrontEndType===Kn.LAYOUT?(t(8,f=a),t(9,c=v)):(t(9,c=a),t(8,f=o.layouts.find(q=>q._id===(c==null?void 0:c.layoutId))))),r.$$.dirty&1&&t(12,i=(B=o.selectedComponentId)!=null?B:""),r.$$.dirty&4865&&t(11,l={appId:o.appId,layout:f,screen:c,selectedComponentId:i,previewType:o.currentFrontEndType,theme:o.theme,customTheme:o.customTheme,previewDevice:o.previewDevice,messagePassing:o.clientFeatures.messagePassing,isBudibaseEvent:!0}),r.$$.dirty&2048&&t(10,s=JSON.stringify(l)),r.$$.dirty&1024&&y(s)},[o,u,p,g,h,n,P,M,f,c,s,l,i,a,F,j]}class xx extends ie{constructor(e){super();le(this,e,Zx,Kx,re,{})}}function c6(r){let e,t,n;return t=new Ze({props:{$$slots:{default:[eee]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","label svelte-3rofj0")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&262145&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function eee(r){let e;return{c(){e=V(r[0])},m(t,n){$(t,e,n)},p(t,n){n&1&&Te(e,t[0])},d(t){t&&b(e)}}}function tee(r){let e,t,n,i,l,s,o,a=r[4]!=="boolean"&&r[0]&&c6(r);const u=[{componentInstance:r[1]},{value:r[7]},{updateOnChange:!1},{onChange:r[8]},{bindings:r[6]},{name:r[3]},{text:r[0]},{key:r[3]},{type:r[4]},r[5]];var f=r[2];function c(p){let d={};for(let g=0;g<u.length;g+=1)d=Ui(d,u[g]);return{props:d}}return f&&(i=new f(c()),i.$on("change",r[8])),{c(){e=D("div"),a&&a.c(),t=R(),n=D("div"),i&&S(i.$$.fragment),w(n,"data-cy",l=`${r[3]}-prop-control`),w(n,"class","control svelte-3rofj0"),w(e,"class","property-control svelte-3rofj0"),w(e,"data-cy",s=`setting-${r[3]}`)},m(p,d){$(p,e,d),a&&a.m(e,null),N(e,t),N(e,n),i&&A(i,n,null),o=!0},p(p,[d]){p[4]!=="boolean"&&p[0]?a?(a.p(p,d),d&17&&m(a,1)):(a=c6(p),a.c(),m(a,1),a.m(e,t)):a&&(ee(),_(a,1,1,()=>{a=null}),te());const g=d&507?Eu(u,[d&2&&{componentInstance:p[1]},d&128&&{value:p[7]},u[2],d&256&&{onChange:p[8]},d&64&&{bindings:p[6]},d&8&&{name:p[3]},d&1&&{text:p[0]},d&8&&{key:p[3]},d&16&&{type:p[4]},d&32&&Ou(p[5])]):{};if(f!==(f=p[2])){if(i){ee();const h=i;_(h.$$.fragment,1,0,()=>{E(h,1)}),te()}f?(i=new f(c()),i.$on("change",p[8]),S(i.$$.fragment),m(i.$$.fragment,1),A(i,n,null)):i=null}else f&&i.$set(g);(!o||d&8&&l!==(l=`${p[3]}-prop-control`))&&w(n,"data-cy",l),(!o||d&8&&s!==(s=`setting-${p[3]}`))&&w(e,"data-cy",s)},i(p){o||(m(a),i&&m(i.$$.fragment,p),o=!0)},o(p){_(a),i&&_(i.$$.fragment,p),o=!1},d(p){p&&b(e),a&&a.d(),i&&E(i)}}}function nee(r,e,t){let n,i,l,{label:s=""}=e,{componentInstance:o={}}=e,{control:a=null}=e,{key:u=""}=e,{type:f=""}=e,{value:c=null}=e,{props:p={}}=e,{onChange:d=()=>{}}=e,{bindings:g=[]}=e,{componentBindings:h=[]}=e,{nested:v=!1}=e;const C=(O,T,P)=>P?[...T||[],...O||[]]:O,y=O=>{let T=O;O&&typeof O=="object"&&("detail"in O?T=O.detail:"target"in O&&(T=O.target.value)),f==="number"&&(T=parseInt(T)),d(typeof T=="string"?l(T):T)},I=(O,T,P)=>{const M=bo(P,O);return M==null&&T!==void 0?T:M};return r.$$set=O=>{"label"in O&&t(0,s=O.label),"componentInstance"in O&&t(1,o=O.componentInstance),"control"in O&&t(2,a=O.control),"key"in O&&t(3,u=O.key),"type"in O&&t(4,f=O.type),"value"in O&&t(9,c=O.value),"props"in O&&t(5,p=O.props),"onChange"in O&&t(10,d=O.onChange),"bindings"in O&&t(11,g=O.bindings),"componentBindings"in O&&t(12,h=O.componentBindings),"nested"in O&&t(13,v=O.nested)},r.$$.update=()=>{r.$$.dirty&14336&&t(6,n=C(g,h,v)),r.$$.dirty&608&&t(7,i=I(c,p.defaultValue,n)),r.$$.dirty&128,r.$$.dirty&64&&(l=O=>As(n,O))},[s,o,a,u,f,p,n,i,y,c,d,g,h,v]}class Na extends ie{constructor(e){super();le(this,e,nee,tee,re,{label:0,componentInstance:1,control:2,key:3,type:4,value:9,props:5,onChange:10,bindings:11,componentBindings:12,nested:13})}}function ree(r){let e,t,n;function i(s){r[2](s)}let l={options:r[1].layouts,getOptionLabel:iee,getOptionValue:lee};return r[0]!==void 0&&(l.value=r[0]),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};o&2&&(a.options=s[1].layouts),!t&&o&1&&(t=!0,a.value=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}const iee=r=>r.name,lee=r=>r._id;function see(r,e,t){let n;fe(r,He,o=>t(1,n=o));let{value:i}=e;function l(o){i=o,t(0,i)}function s(o){dt.call(this,r,o)}return r.$$set=o=>{"value"in o&&t(0,i=o.value)},[i,n,l,s]}class oee extends ie{constructor(e){super();le(this,e,see,ree,re,{value:0})}}function aee(r){let e,t,n;function i(s){r[2](s)}let l={options:r[1],getOptionLabel:uee,getOptionValue:fee};return r[0]!==void 0&&(l.value=r[0]),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};o&2&&(a.options=s[1]),!t&&o&1&&(t=!0,a.value=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}const uee=r=>r.name,fee=r=>r._id;function cee(r,e,t){let n;fe(r,Zi,o=>t(1,n=o));let{value:i}=e;function l(o){i=o,t(0,i)}function s(o){dt.call(this,r,o)}return r.$$set=o=>{"value"in o&&t(0,i=o.value)},[i,n,l,s]}class pee extends ie{constructor(e){super();le(this,e,cee,aee,re,{value:0})}}function Es(r){return r.split("/").map(e=>e.startsWith(":")?e:encodeURIComponent(e.replace(/ /g,"-"))).join("/").toLowerCase()}function p6(r,e,t){const n=r.slice();return n[7]=e[t],n}function d6(r){let e,t;return e=new Go({props:{name:"Screen",collapsible:!1,$$slots:{default:[dee]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1034&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function m6(r,e){let t,n,i;function l(...s){return e[6](e[7],...s)}return n=new Na({props:{control:e[7].control,label:e[7].label,key:e[7].key,value:jl.exports.get(e[3],e[7].key),onChange:l,bindings:e[1]}}),{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),this.first=t},m(s,o){$(s,t,o),A(n,s,o),i=!0},p(s,o){e=s;const a={};o&8&&(a.value=jl.exports.get(e[3],e[7].key)),o&2&&(a.bindings=e[1]),n.$set(a)},i(s){i||(m(n.$$.fragment,s),i=!0)},o(s){_(n.$$.fragment,s),i=!1},d(s){s&&b(t),E(n,s)}}}function dee(r){let e=[],t=new Map,n,i,l=r[5];const s=o=>`${o[0]._id}-${o[7].key}`;for(let o=0;o<l.length;o+=1){let a=p6(r,l,o),u=s(a);t.set(u,e[o]=m6(u,a))}return{c(){for(let o=0;o<e.length;o+=1)e[o].c();n=Ee()},m(o,a){for(let u=0;u<e.length;u+=1)e[u].m(o,a);$(o,n,a),i=!0},p(o,a){a&59&&(l=o[5],ee(),e=er(e,a,s,1,o,l,t,n.parentNode,jr,m6,n,p6),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(e[a]);i=!0}},o(o){for(let a=0;a<e.length;a+=1)_(e[a]);i=!1},d(o){for(let a=0;a<e.length;a+=1)e[a].d(o);o&&b(n)}}}function mee(r){let e,t,n=r[2].currentView!=="component"&&r[3]&&r[2].currentFrontEndType===Kn.SCREEN&&d6(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,[l]){i[2].currentView!=="component"&&i[3]&&i[2].currentFrontEndType===Kn.SCREEN?n?(n.p(i,l),l&12&&m(n,1)):(n=d6(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function gee(r,e,t){let n,i;fe(r,He,f=>t(2,n=f)),fe(r,fn,f=>t(3,i=f));let{componentInstance:l}=e,{bindings:s}=e;function o(f,c,p){p&&typeof p=="function"&&(c=p(c));const d=it(fn);He.update(g=>(f==="_instanceName"&&g.currentFrontEndType===Kn.SCREEN?d.props._instanceName=c:jl.exports.setWith(d,f.split("."),c,Object),g));try{He.actions.preview.saveSelected()}catch{ye.error("Error saving settings")}}const a=[{key:"routing.route",label:"Route",control:tt,parser:f=>(f.startsWith("/")||(f="/"+f),Es(f))},{key:"routing.roleId",label:"Access",control:pee},{key:"layoutId",label:"Layout",control:oee}],u=(f,c)=>o(f.key,c,f.parser);return r.$$set=f=>{"componentInstance"in f&&t(0,l=f.componentInstance),"bindings"in f&&t(1,s=f.bindings)},[l,s,n,i,o,a,u]}class _ee extends ie{constructor(e){super();le(this,e,gee,mee,re,{componentInstance:0,bindings:1})}}class Qn extends f6{constructor(e){super(!1);this._children=[],this._json={_id:Fi(),_component:e,_styles:{normal:{},hover:{},active:{},selected:{}},_instanceName:"",_children:[]}}normalStyle(e){return this._json._styles.normal=e,this}hoverStyle(e){return this._json._styles.hover=e,this}customStyle(e){return this._json._styles.custom=e,this}instanceName(e){return this._json._instanceName=e,this}type(e){return this._json.type=e,this}text(e){return this._json.text=e,this}}function hee(r){return r.map(e=>({name:`${e.name} - New`,create:()=>vee(e),id:$ee,table:e.name}))}const g6=r=>Es(`/${r.name}/new/row`),$ee="NEW_ROW_TEMPLATE";function bee(r,e){return b6("New Row").addChild($6(r,e))}const vee=r=>{const e=new Pa().instanceName(`${r.name} - New`).customProps({hAlign:"center"}).route(g6(r)),t=_6().instanceName("Form").customProps({actionType:"Create",dataSource:{label:r.name,tableId:r._id,type:"table"},size:"spectrum--medium"}),n=new Qn("@budibase/standard-components/fieldgroup").instanceName("Field Group").customProps({labelPosition:"left"}),i={type:"table",tableId:r._id};E1(i).forEach(s=>{n.addChild(s)});const l=t._json._id;return t.addChild(h6(r.name,"New")).addChild(bee(r,l)).addChild(n),e.addChild(t).json()};function wee(r){return r.map(e=>({name:`${e.name} - List`,create:()=>Cee(e),id:yee,table:e.name}))}const yee="ROW_LIST_TEMPLATE",Zf=r=>Es(`/${r.name}`);function kee(r){const e=new Qn("@budibase/standard-components/button").text("Create New").customProps({size:"M",type:"primary",onClick:[{parameters:{url:g6(r)},"##eventHandlerType":"Navigate To"}]}).instanceName("New Button"),t=new Qn("@budibase/standard-components/heading").instanceName("Title").text(r.name).customProps({size:"M",align:"left"});return new Qn("@budibase/standard-components/container").customProps({direction:"row",hAlign:"stretch",vAlign:"middle",size:"shrink",gap:"M"}).instanceName("Title Container").addChild(t).addChild(e)}const Cee=r=>{const e=new Qn("@budibase/standard-components/dataprovider").instanceName("Data Provider").customProps({dataSource:{label:r.name,name:r._id,tableId:r._id,type:"table"},size:"spectrum--medium",paginate:!0,limit:8}),t=new Qn("@budibase/standard-components/table").customProps({dataProvider:`{{ literal ${hn(e._json._id)} }}`,showAutoColumns:!1,quiet:!1,rowCount:8}).instanceName(`${r.name} Table`),n=hn(t._json._id),i=hn("_id"),l=new Qn("@budibase/standard-components/link").customProps({text:"View",url:`${Zf(r)}/{{ ${n}.${i} }}`,size:"S",color:"var(--spectrum-global-color-gray-600)",align:"left"}).normalStyle({["margin-left"]:"16px",["margin-right"]:"16px"}).instanceName("View Link");return t.addChild(l),e.addChild(t),new Pa().route(Zf(r)).instanceName(`${r.name} - List`).addChild(kee(r)).addChild(e).json()};function A1(r){return`var(--spectrum-global-color-gray-${r})`}function See(r){return new Qn("@budibase/standard-components/link").text(r).customProps({url:`/${r.toLowerCase()}`,openInNewTab:!1,color:A1(700),size:"S",align:"left"})}function _6(){return new Qn("@budibase/standard-components/form").normalStyle({width:"600px"}).instanceName("Form")}function h6(r,e){const t=See(r).instanceName("Back Link"),n=new Qn("@budibase/standard-components/text").type("none").normalStyle({"margin-right":"4px","margin-left":"4px"}).text(">").instanceName("Arrow").customProps({color:A1(700),size:"S",align:"left"}),i=new Qn("@budibase/standard-components/text").text(e).instanceName("Identifier").customProps({color:A1(700),size:"S",align:"left"});return new Qn("@budibase/standard-components/container").customProps({gap:"N",direction:"row",hAlign:"left",vAlign:"middle",size:"shrink"}).instanceName("Breadcrumbs").addChild(t).addChild(n).addChild(i)}function $6(r,e){return new Qn("@budibase/standard-components/button").text("Save").customProps({type:"primary",size:"M",onClick:[{"##eventHandlerType":"Validate Form",parameters:{componentId:e}},{parameters:{providerId:e,tableId:r._id},"##eventHandlerType":"Save Row"},{parameters:{url:Zf(r)},"##eventHandlerType":"Navigate To"}]}).instanceName("Save Button")}function b6(r){const e=new Qn("@budibase/standard-components/heading").instanceName("Title").text(r).customProps({size:"M",align:"left"});return new Qn("@budibase/standard-components/container").normalStyle({"margin-top":"32px","margin-bottom":"32px"}).customProps({direction:"row",hAlign:"stretch",vAlign:"middle",size:"shrink",gap:"M"}).instanceName("Title Container").addChild(e)}const Aee={string:"stringfield",number:"numberfield",options:"optionsfield",array:"multifieldselect",boolean:"booleanfield",longform:"longformfield",datetime:"datetimefield",attachment:"attachmentfield",link:"relationshipfield",json:"jsonfield"};function E1(r){const{schema:e}=Di(null,r,{formSchema:!0});let t=[];return Object.keys(e||{}).forEach(i=>{const l=e[i];if(l.autocolumn||l.nestedJSON)return;const s=typeof l=="object"?l.type:l,o=Aee[s],a=`@budibase/standard-components/${o}`;if(o){const u=new Qn(a).instanceName(i).customProps({field:i,label:i,placeholder:i});if(s==="options"&&u.customProps({placeholder:"Choose an option",optionsType:"select",optionsSource:"schema"}),s==="longform"&&u.customProps({format:"auto"}),s==="array"&&u.customProps({placeholder:"Choose an option",optionsSource:"schema"}),s==="link"){let f=l.relationshipType==="one-to-many"?"Choose an option":"Choose some options";u.customProps({placeholder:f})}s==="boolean"&&u.customProps({text:i,label:""}),t.push(u)}}),t}function Eee(r){let e;return{c(){e=V("Update form fields")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Oee(r){let e,t,n,i,l;t=new Yt({props:{secondary:!0,wide:!0,$$slots:{default:[Eee]},$$scope:{ctx:r}}}),t.$on("click",r[3]);let s={body:"All components inside this group will be deleted and replaced with fields to match the schema. Are you sure you want to update this Field Group?",okText:"Update",onOk:r[1],title:"Confirm Form Field Update"};return i=new _r({props:s}),r[4](i),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),$(o,n,a),A(i,o,a),l=!0},p(o,[a]){const u={};a&64&&(u.$$scope={dirty:a,ctx:o}),t.$set(u);const f={};i.$set(f)},i(o){l||(m(t.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(t.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){o&&b(e),E(t),o&&b(n),r[4](null),E(i,o)}}}function Tee(r,e,t){let n;fe(r,fn,u=>t(5,n=u));let{componentInstance:i}=e,l;const s=async()=>{const u=Uf(n==null?void 0:n.props,i._id,p=>p._component.endsWith("/form")),f=u==null?void 0:u.dataSource,c=E1(f);try{await He.actions.components.updateProp("_children",c.map(p=>p.json()))}catch{ye.error("Error resetting form fields")}},o=()=>l==null?void 0:l.show();function a(u){Z[u?"unshift":"push"](()=>{l=u,t(0,l)})}return r.$$set=u=>{"componentInstance"in u&&t(2,i=u.componentInstance)},[l,s,i,o,a]}class Iee extends ie{constructor(e){super();le(this,e,Tee,Oee,re,{componentInstance:2})}}function v6(r,e,t){const n=r.slice();return n[44]=e[t],n}function w6(r,e,t){const n=r.slice();return n[47]=e[t],n}function y6(r,e,t){const n=r.slice();return n[50]=e[t],n}function k6(r,e,t){const n=r.slice();return n[50]=e[t],n}function C6(r,e,t){const n=r.slice();return n[55]=e[t],n}function S6(r,e,t){const n=r.slice();return n[58]=e[t],n}function A6(r,e,t){const n=r.slice();return n[61]=e[t],n}function E6(r,e,t){const n=r.slice();return n[64]=e[t],n}function O6(r){let e,t,n,i,l,s,o={title:"Query Bindings",$$slots:{body:[Mee],buttons:[Pee]},$$scope:{ctx:r}};return n=new Kr({props:o}),r[29](n),{c(){e=D("i"),t=R(),S(n.$$.fragment),w(e,"class","ri-settings-5-line svelte-xmd5g6")},m(a,u){$(a,e,u),$(a,t,u),A(n,a,u),i=!0,l||(s=Pe(e,"click",r[19]),l=!0)},p(a,u){const f={};u[0]&67|u[2]&32&&(f.$$scope={dirty:u,ctx:a}),n.$set(f)},i(a){i||(m(n.$$.fragment,a),i=!0)},o(a){_(n.$$.fragment,a),i=!1},d(a){a&&b(e),a&&b(t),r[29](null),E(n,a),l=!1,s()}}}function Lee(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Pee(r){let e,t;return e=new ut({props:{slot:"buttons",cta:!0,$$slots:{default:[Lee]},$$scope:{ctx:r}}}),e.$on("click",r[20]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function T6(r){let e,t,n,i;function l(a){r[27](a)}function s(a){r[28](a)}let o={queryBindings:r[17](r[1])};return r[6]!==void 0&&(o.customParams=r[6]),r[0]!==void 0&&(o.bindings=r[0]),e=new y1({props:o}),Z.push(()=>ce(e,"customParams",l)),Z.push(()=>ce(e,"bindings",s)),{c(){S(e.$$.fragment)},m(a,u){A(e,a,u),i=!0},p(a,u){const f={};u[0]&2&&(f.queryBindings=a[17](a[1])),!t&&u[0]&64&&(t=!0,f.customParams=a[6],pe(()=>t=!1)),!n&&u[0]&1&&(n=!0,f.bindings=a[0],pe(()=>n=!1)),e.$set(f)},i(a){i||(m(e.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),i=!1},d(a){E(e,a)}}}function Nee(r){let e=r[17](r[1]).length>0,t,n,i,l=e&&T6(r);return n=new _1({props:{height:200,query:r[1],schema:r[16](r[1]),datasource:r[18](r[1]),editable:!1}}),{c(){l&&l.c(),t=R(),S(n.$$.fragment)},m(s,o){l&&l.m(s,o),$(s,t,o),A(n,s,o),i=!0},p(s,o){o[0]&2&&(e=s[17](s[1]).length>0),e?l?(l.p(s,o),o[0]&2&&m(l,1)):(l=T6(s),l.c(),m(l,1),l.m(t.parentNode,t)):l&&(ee(),_(l,1,1,()=>{l=null}),te());const a={};o[0]&2&&(a.query=s[1]),o[0]&2&&(a.schema=s[16](s[1])),o[0]&2&&(a.datasource=s[18](s[1])),n.$set(a)},i(s){i||(m(l),m(n.$$.fragment,s),i=!0)},o(s){_(l),_(n.$$.fragment,s),i=!1},d(s){l&&l.d(s),s&&b(t),E(n,s)}}}function Ree(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[Nee]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&67|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Mee(r){let e,t;return e=new Ai({props:{slot:"body",$$slots:{default:[Ree]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&67|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Dee(r){let e;return{c(){e=V("Tables")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function I6(r){let e,t=r[64].label+"",n,i,l;function s(){return r[31](r[64])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&8192&&t!==(t=r[64].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function L6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[jee]},$$scope:{ctx:r}}});let a=r[12],u=[];for(let f=0;f<a.length;f+=1)u[f]=P6(A6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&36864){a=f[12];let d;for(d=0;d<a.length;d+=1){const g=A6(f,a,d);u[d]?u[d].p(g,c):(u[d]=P6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function jee(r){let e;return{c(){e=V("Views")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function P6(r){let e,t=r[61].label+"",n,i,l;function s(){return r[32](r[61])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&4096&&t!==(t=r[61].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function N6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Bee]},$$scope:{ctx:r}}});let a=r[11],u=[];for(let f=0;f<a.length;f+=1)u[f]=R6(S6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&34818){a=f[11];let d;for(d=0;d<a.length;d+=1){const g=S6(f,a,d);u[d]?u[d].p(g,c):(u[d]=R6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Bee(r){let e;return{c(){e=V("Queries")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function R6(r){let e,t=r[58].label+"",n,i,l,s;function o(){return r[33](r[58])}return{c(){e=D("li"),n=V(t),i=R(),w(e,"class","svelte-xmd5g6"),oe(e,"selected",r[1]===r[58])},m(a,u){$(a,e,u),N(e,n),N(e,i),l||(s=Pe(e,"click",o),l=!0)},p(a,u){r=a,u[0]&2048&&t!==(t=r[58].label+"")&&Te(n,t),u[0]&2050&&oe(e,"selected",r[1]===r[58])},d(a){a&&b(e),l=!1,s()}}}function M6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[zee]},$$scope:{ctx:r}}});let a=r[9],u=[];for(let f=0;f<a.length;f+=1)u[f]=D6(C6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&33280){a=f[9];let d;for(d=0;d<a.length;d+=1){const g=C6(f,a,d);u[d]?u[d].p(g,c):(u[d]=D6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function zee(r){let e;return{c(){e=V("Relationships")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function D6(r){let e,t=r[55].label+"",n,i,l;function s(){return r[34](r[55])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&512&&t!==(t=r[55].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function j6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[qee]},$$scope:{ctx:r}}});let a=r[8],u=[];for(let f=0;f<a.length;f+=1)u[f]=B6(k6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&33024){a=f[8];let d;for(d=0;d<a.length;d+=1){const g=k6(f,a,d);u[d]?u[d].p(g,c):(u[d]=B6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function qee(r){let e;return{c(){e=V("Fields")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function B6(r){let e,t=r[50].label+"",n,i,l;function s(){return r[35](r[50])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&256&&t!==(t=r[50].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function z6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Uee]},$$scope:{ctx:r}}});let a=r[7],u=[];for(let f=0;f<a.length;f+=1)u[f]=q6(y6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&32896){a=f[7];let d;for(d=0;d<a.length;d+=1){const g=y6(f,a,d);u[d]?u[d].p(g,c):(u[d]=q6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Uee(r){let e;return{c(){e=V("JSON Arrays")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function q6(r){let e,t=r[50].label+"",n,i,l;function s(){return r[36](r[50])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&128&&t!==(t=r[50].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function U6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Fee]},$$scope:{ctx:r}}});let a=r[10],u=[];for(let f=0;f<a.length;f+=1)u[f]=F6(w6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&33794){a=f[10];let d;for(d=0;d<a.length;d+=1){const g=w6(f,a,d);u[d]?u[d].p(g,c):(u[d]=F6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Fee(r){let e;return{c(){e=V("Data Providers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function F6(r){let e,t=r[47].label+"",n,i,l,s;function o(){return r[37](r[47])}return{c(){e=D("li"),n=V(t),i=R(),w(e,"class","svelte-xmd5g6"),oe(e,"selected",r[1]===r[47])},m(a,u){$(a,e,u),N(e,n),N(e,i),l||(s=Pe(e,"click",o),l=!0)},p(a,u){r=a,u[0]&1024&&t!==(t=r[47].label+"")&&Te(n,t),u[0]&1026&&oe(e,"selected",r[1]===r[47])},d(a){a&&b(e),l=!1,s()}}}function V6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Vee]},$$scope:{ctx:r}}});let a=r[2],u=[];for(let f=0;f<a.length;f+=1)u[f]=H6(v6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&32772){a=f[2];let d;for(d=0;d<a.length;d+=1){const g=v6(f,a,d);u[d]?u[d].p(g,c):(u[d]=H6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Vee(r){let e;return{c(){e=V("Other")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function H6(r){let e,t=r[44].label+"",n,i,l;function s(){return r[38](r[44])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&4&&t!==(t=r[44].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function Hee(r){var M,F,j,B,q,G,Y;let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new kt({props:{size:"XS",$$slots:{default:[Dee]},$$scope:{ctx:r}}});let g=r[13],h=[];for(let U=0;U<g.length;U+=1)h[U]=I6(E6(r,g,U));let v=((M=r[12])==null?void 0:M.length)&&L6(r),C=((F=r[11])==null?void 0:F.length)&&N6(r),y=((j=r[9])==null?void 0:j.length)&&M6(r),I=((B=r[8])==null?void 0:B.length)&&j6(r),O=((q=r[7])==null?void 0:q.length)&&z6(r),T=((G=r[10])==null?void 0:G.length)&&U6(r),P=((Y=r[2])==null?void 0:Y.length)&&V6(r);return{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("ul");for(let U=0;U<h.length;U+=1)h[U].c();s=R(),v&&v.c(),o=R(),C&&C.c(),a=R(),y&&y.c(),u=R(),I&&I.c(),f=R(),O&&O.c(),c=R(),T&&T.c(),p=R(),P&&P.c(),w(t,"class","title svelte-xmd5g6"),w(l,"class","svelte-xmd5g6"),w(e,"class","dropdown svelte-xmd5g6")},m(U,H){$(U,e,H),N(e,t),A(n,t,null),N(e,i),N(e,l);for(let W=0;W<h.length;W+=1)h[W].m(l,null);N(e,s),v&&v.m(e,null),N(e,o),C&&C.m(e,null),N(e,a),y&&y.m(e,null),N(e,u),I&&I.m(e,null),N(e,f),O&&O.m(e,null),N(e,c),T&&T.m(e,null),N(e,p),P&&P.m(e,null),d=!0},p(U,H){var Q,se,K,ne,ae,_e,Me;const W={};if(H[2]&32&&(W.$$scope={dirty:H,ctx:U}),n.$set(W),H[0]&40960){g=U[13];let we;for(we=0;we<g.length;we+=1){const $e=E6(U,g,we);h[we]?h[we].p($e,H):(h[we]=I6($e),h[we].c(),h[we].m(l,null))}for(;we<h.length;we+=1)h[we].d(1);h.length=g.length}((Q=U[12])==null?void 0:Q.length)?v?(v.p(U,H),H[0]&4096&&m(v,1)):(v=L6(U),v.c(),m(v,1),v.m(e,o)):v&&(ee(),_(v,1,1,()=>{v=null}),te()),((se=U[11])==null?void 0:se.length)?C?(C.p(U,H),H[0]&2048&&m(C,1)):(C=N6(U),C.c(),m(C,1),C.m(e,a)):C&&(ee(),_(C,1,1,()=>{C=null}),te()),((K=U[9])==null?void 0:K.length)?y?(y.p(U,H),H[0]&512&&m(y,1)):(y=M6(U),y.c(),m(y,1),y.m(e,u)):y&&(ee(),_(y,1,1,()=>{y=null}),te()),((ne=U[8])==null?void 0:ne.length)?I?(I.p(U,H),H[0]&256&&m(I,1)):(I=j6(U),I.c(),m(I,1),I.m(e,f)):I&&(ee(),_(I,1,1,()=>{I=null}),te()),((ae=U[7])==null?void 0:ae.length)?O?(O.p(U,H),H[0]&128&&m(O,1)):(O=z6(U),O.c(),m(O,1),O.m(e,c)):O&&(ee(),_(O,1,1,()=>{O=null}),te()),((_e=U[10])==null?void 0:_e.length)?T?(T.p(U,H),H[0]&1024&&m(T,1)):(T=U6(U),T.c(),m(T,1),T.m(e,p)):T&&(ee(),_(T,1,1,()=>{T=null}),te()),((Me=U[2])==null?void 0:Me.length)?P?(P.p(U,H),H[0]&4&&m(P,1)):(P=V6(U),P.c(),m(P,1),P.m(e,null)):P&&(ee(),_(P,1,1,()=>{P=null}),te())},i(U){d||(m(n.$$.fragment,U),m(v),m(C),m(y),m(I),m(O),m(T),m(P),d=!0)},o(U){_(n.$$.fragment,U),_(v),_(C),_(y),_(I),_(O),_(T),_(P),d=!1},d(U){U&&b(e),E(n),$t(h,U),v&&v.d(),C&&C.d(),y&&y.d(),I&&I.d(),O&&O.d(),T&&T.d(),P&&P.d()}}}function Wee(r){var u;let e,t,n,i,l,s;t=new Qe({props:{readonly:!0,value:r[14],options:[r[14]]}}),t.$on("click",function(){ct(r[4].show)&&r[4].show.apply(this,arguments)});let o=((u=r[1])==null?void 0:u.type)==="query"&&O6(r),a={anchor:r[3],$$slots:{default:[Hee]},$$scope:{ctx:r}};return l=new kp({props:a}),r[39](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),w(e,"class","container svelte-xmd5g6")},m(f,c){$(f,e,c),A(t,e,null),N(e,n),o&&o.m(e,null),r[30](e),$(f,i,c),A(l,f,c),s=!0},p(f,c){var g;r=f;const p={};c[0]&16384&&(p.value=r[14]),c[0]&16384&&(p.options=[r[14]]),t.$set(p),((g=r[1])==null?void 0:g.type)==="query"?o?(o.p(r,c),c[0]&2&&m(o,1)):(o=O6(r),o.c(),m(o,1),o.m(e,null)):o&&(ee(),_(o,1,1,()=>{o=null}),te());const d={};c[0]&8&&(d.anchor=r[3]),c[0]&16262|c[2]&32&&(d.$$scope={dirty:c,ctx:r}),l.$set(d)},i(f){s||(m(t.$$.fragment,f),m(o),m(l.$$.fragment,f),s=!0)},o(f){_(t.$$.fragment,f),_(o),_(l.$$.fragment,f),s=!1},d(f){f&&b(e),E(t),o&&o.d(),r[30](null),f&&b(i),r[39](null),E(l,f)}}}function Gee(r,e,t){let n,i,l,s,o,a,u,f,c,p,d,g,h,v,C;fe(r,en,ke=>t(40,p=ke)),fe(r,kn,ke=>t(23,d=ke)),fe(r,Ql,ke=>t(41,g=ke)),fe(r,He,ke=>t(24,h=ke)),fe(r,fn,ke=>t(25,v=ke)),fe(r,Ot,ke=>t(26,C=ke));let{value:y={}}=e,{otherSources:I}=e,{showAllQueries:O}=e,{bindings:T=[]}=e;const P=ht(),M=["attachment","array"];let F,j,B,q;const G=ke=>{P("change",ke),j.hide()},Y=ke=>{const ze=p.list.find(be=>be._id===ke.datasourceId).source;return g[ze].query[ke.queryVerb]},U=ke=>{var ze;return((ze=d.list.find(be=>be._id===(ke==null?void 0:ke._id)))==null?void 0:ze.parameters)||[]},H=ke=>p.list.find(ze=>ze._id===(ke==null?void 0:ke.datasourceId)),W=()=>{t(6,q=y.queryParams),B.show()},Q=()=>{G(lt(Se({},y),{queryParams:q})),B.hide()};function se(ke){q=ke,t(6,q)}function K(ke){T=ke,t(0,T)}function ne(ke){Z[ke?"unshift":"push"](()=>{B=ke,t(5,B)})}function ae(ke){Z[ke?"unshift":"push"](()=>{F=ke,t(3,F)})}const _e=ke=>G(ke),Me=ke=>G(ke),we=ke=>G(ke),$e=ke=>G(ke),ge=ke=>G(ke),Ne=ke=>G(ke),Ue=ke=>G(ke),ue=ke=>G(ke);function Ce(ke){Z[ke?"unshift":"push"](()=>{j=ke,t(4,j)})}return r.$$set=ke=>{"value"in ke&&t(1,y=ke.value),"otherSources"in ke&&t(2,I=ke.otherSources),"showAllQueries"in ke&&t(21,O=ke.showAllQueries),"bindings"in ke&&t(0,T=ke.bindings)},r.$$.update=()=>{var ke;r.$$.dirty[0]&2&&t(14,n=(ke=y==null?void 0:y.label)!=null?ke:"Choose an option"),r.$$.dirty[0]&67108864&&t(13,i=C.list.map(ze=>({label:ze.name,tableId:ze._id,type:"table"}))),r.$$.dirty[0]&67108864&&t(12,l=C.list.reduce((ze,be)=>{let he=Object.entries(be.views||{}).map(([Xe,Mt])=>lt(Se({label:Xe,name:Xe},Mt),{type:"view"}));return[...ze,...he]},[])),r.$$.dirty[0]&10485760&&t(11,s=d.list.filter(ze=>O||ze.queryVerb==="read"||ze.readable).map(ze=>lt(Se({label:ze.name,name:ze.name,tableId:ze._id},ze),{type:"query"}))),r.$$.dirty[0]&50331648&&t(22,o=$o(v,h.selectedComponentId)),r.$$.dirty[0]&4194304&&t(10,a=o.filter(ze=>{var be;return(be=ze._component)==null?void 0:be.endsWith("/dataprovider")}).map(ze=>({label:ze._instanceName,name:ze._instanceName,providerId:ze._id,value:`{{ literal ${hn(ze._id)} }}`,type:"provider"}))),r.$$.dirty[0]&1&&t(9,u=T.filter(ze=>{var be;return((be=ze.fieldSchema)==null?void 0:be.type)==="link"}).map(ze=>{const{providerId:be,readableBinding:he,fieldSchema:Xe}=ze||{},{name:Mt,tableId:qe}=Xe||{},pt=hn(be);return{providerId:be,label:he,fieldName:Mt,tableId:qe,type:"link",rowId:`{{ ${pt}.${hn("_id")} }}`,rowTableId:`{{ ${pt}.${hn("tableId")} }}`}})),r.$$.dirty[0]&1&&t(8,f=T.filter(ze=>{var be;return M.includes((be=ze.fieldSchema)==null?void 0:be.type)}).map(ze=>{const{providerId:be,readableBinding:he,runtimeBinding:Xe}=ze,{name:Mt,type:qe,tableId:pt}=ze.fieldSchema;return{providerId:be,label:he,fieldName:Mt,fieldType:qe,tableId:pt,type:"field",value:`{{ literal ${Xe} }}`}})),r.$$.dirty[0]&1&&t(7,c=T.filter(ze=>{var be;return((be=ze.fieldSchema)==null?void 0:be.type)==="jsonarray"}).map(ze=>{const{providerId:be,readableBinding:he,runtimeBinding:Xe,tableId:Mt}=ze,{name:qe,type:pt,prefixKeys:It}=ze.fieldSchema;return{providerId:be,label:he,fieldName:qe,fieldType:pt,tableId:Mt,prefixKeys:It,type:"jsonarray",value:`{{ literal ${Xe} }}`}}))},[T,y,I,F,j,B,q,c,f,u,a,s,l,i,n,G,Y,U,H,W,Q,O,o,d,h,v,C,se,K,ne,ae,_e,Me,we,$e,ge,Ne,Ue,ue,Ce]}class W6 extends ie{constructor(e){super();le(this,e,Gee,Wee,re,{value:1,otherSources:2,showAllQueries:21,bindings:0},null,[-1,-1,-1])}}function Yee(r){let e,t;return e=new Qe({props:{options:r[1],value:r[0]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.options=n[1]),i&1&&(l.value=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Jee(r,e,t){let n,i;fe(r,en,o=>t(2,i=o));let{value:l=null}=e;function s(o){dt.call(this,r,o)}return r.$$set=o=>{"value"in o&&t(0,l=o.value)},r.$$.update=()=>{r.$$.dirty&4&&t(1,n=i.list.filter(o=>{var a;return o.source==="S3"&&!((a=o.config)==null?void 0:a.endpoint)}).map(o=>({label:o.name,value:o._id})))},[l,n,i,s]}class Qee extends ie{constructor(e){super();le(this,e,Jee,Yee,re,{value:0})}}function Xee(r){let e,t;return e=new Qe({props:{value:r[0],placeholder:null,options:r[1],getOptionLabel:Kee,getOptionValue:r[2]}}),e.$on("change",r[6]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const Kee=r=>r._instanceName;function Zee(r,e,t){let n,i,l,s;fe(r,He,c=>t(4,l=c)),fe(r,fn,c=>t(5,s=c));let{value:o}=e;const a=ht(),u=c=>`{{ literal ${hn(c._id)} }}`;Ft(()=>{!(o&&i.find(p=>u(p)===o)!=null)&&i.length&&a("change",u(i[i.length-1]))});function f(c){dt.call(this,r,c)}return r.$$set=c=>{"value"in c&&t(0,o=c.value)},r.$$.update=()=>{r.$$.dirty&48&&t(3,n=Sl(s==null?void 0:s.props,l.selectedComponentId)),r.$$.dirty&8&&t(1,i=n.filter(c=>{var p;return(p=c._component)==null?void 0:p.endsWith("/dataprovider")}))},[o,i,u,n,l,s,f]}class xee extends ie{constructor(e){super();le(this,e,Zee,Xee,re,{value:0})}}function ete(r){let e;return{c(){e=V("Screen")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tte(r){let e,t,n,i,l,s,o,a,u,f;t=new Ze({props:{small:!0,$$slots:{default:[ete]},$$scope:{ctx:r}}}),i=new jn({props:{title:"Destination URL",placeholder:"/screen",value:r[0].url,bindings:r[1]}}),i.$on("change",r[2]);function c(d){r[3](d)}let p={text:"Open screen in modal"};return r[0].peek!==void 0&&(p.value=r[0].peek),a=new Zr({props:p}),Z.push(()=>ce(a,"value",c)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),s=D("div"),o=R(),S(a.$$.fragment),w(e,"class","root svelte-15fuuda")},m(d,g){$(d,e,g),A(t,e,null),N(e,n),A(i,e,null),N(e,l),N(e,s),N(e,o),A(a,e,null),f=!0},p(d,[g]){const h={};g&16&&(h.$$scope={dirty:g,ctx:d}),t.$set(h);const v={};g&1&&(v.value=d[0].url),g&2&&(v.bindings=d[1]),i.$set(v);const C={};!u&&g&1&&(u=!0,C.value=d[0].peek,pe(()=>u=!1)),a.$set(C)},i(d){f||(m(t.$$.fragment,d),m(i.$$.fragment,d),m(a.$$.fragment,d),f=!0)},o(d){_(t.$$.fragment,d),_(i.$$.fragment,d),_(a.$$.fragment,d),f=!1},d(d){d&&b(e),E(t),E(i),E(a)}}}function nte(r,e,t){let{parameters:n}=e,{bindings:i=[]}=e;const l=o=>t(0,n.url=o.detail,n);function s(o){r.$$.not_equal(n.peek,o)&&(n.peek=o,t(0,n))}return r.$$set=o=>{"parameters"in o&&t(0,n=o.parameters),"bindings"in o&&t(1,i=o.bindings)},[n,i,l,s]}class rte extends ie{constructor(e){super();le(this,e,nte,tte,re,{parameters:0,bindings:1})}}function G6(r,e,t){const n=r.slice();return n[16]=e[t],n[18]=t,n}function Y6(r){let e,t,n,i,l=r[4],s=[];for(let a=0;a<l.length;a+=1)s[a]=J6(G6(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return n=new ut({props:{icon:"AddCircle",secondary:!0,$$slots:{default:[ate]},$$scope:{ctx:r}}}),n.$on("click",r[5]),{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=R(),t=D("div"),S(n.$$.fragment),Ht(t,"margin-top","10px")},m(a,u){for(let f=0;f<s.length;f+=1)s[f].m(a,u);$(a,e,u),$(a,t,u),A(n,t,null),i=!0},p(a,u){if(u&479){l=a[4];let c;for(c=0;c<l.length;c+=1){const p=G6(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=J6(p),s[c].c(),m(s[c],1),s[c].m(e.parentNode,e))}for(ee(),c=l.length;c<s.length;c+=1)o(c);te()}const f={};u&524290&&(f.$$scope={dirty:u,ctx:a}),n.$set(f)},i(a){if(!i){for(let u=0;u<l.length;u+=1)m(s[u]);m(n.$$.fragment,a),i=!0}},o(a){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);_(n.$$.fragment,a),i=!1},d(a){$t(s,a),a&&b(e),a&&b(t),E(n)}}}function ite(r){let e;return{c(){e=V(r[1])},m(t,n){$(t,e,n)},p(t,n){n&2&&Te(e,t[1])},d(t){t&&b(e)}}}function lte(r){let e,t;function n(...i){return r[11](r[18],...i)}return e=new tt({props:{thin:!0,secondary:!0,value:r[16][0]}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&16&&(s.value=r[16][0]),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function ste(r){let e,t;function n(...i){return r[10](r[18],...i)}return e=new Qe({props:{value:r[16][0],options:r[0].map(Q6)}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&16&&(s.value=r[16][0]),l&1&&(s.options=r[0].map(Q6)),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function ote(r){let e;return{c(){e=V(r[2])},m(t,n){$(t,e,n)},p(t,n){n&4&&Te(e,t[2])},d(t){t&&b(e)}}}function J6(r){let e,t,n,i,l,s,o,a,u,f,c;e=new Ze({props:{small:!0,$$slots:{default:[ite]},$$scope:{ctx:r}}});const p=[ste,lte],d=[];function g(C,y){return C[0]?0:1}n=g(r),i=d[n]=p[n](r),s=new Ze({props:{small:!0,$$slots:{default:[ote]},$$scope:{ctx:r}}});function h(...C){return r[12](r[18],...C)}a=new jn({props:{title:`Value for "${r[16][0]}"`,value:r[16][1],bindings:r[3]}}),a.$on("change",h);function v(){return r[13](r[16])}return f=new Yt({props:{size:"S",quiet:!0,icon:"Delete"}}),f.$on("click",v),{c(){S(e.$$.fragment),t=R(),i.c(),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),u=R(),S(f.$$.fragment)},m(C,y){A(e,C,y),$(C,t,y),d[n].m(C,y),$(C,l,y),A(s,C,y),$(C,o,y),A(a,C,y),$(C,u,y),A(f,C,y),c=!0},p(C,y){r=C;const I={};y&524290&&(I.$$scope={dirty:y,ctx:r}),e.$set(I);let O=n;n=g(r),n===O?d[n].p(r,y):(ee(),_(d[O],1,1,()=>{d[O]=null}),te(),i=d[n],i?i.p(r,y):(i=d[n]=p[n](r),i.c()),m(i,1),i.m(l.parentNode,l));const T={};y&524292&&(T.$$scope={dirty:y,ctx:r}),s.$set(T);const P={};y&16&&(P.title=`Value for "${r[16][0]}"`),y&16&&(P.value=r[16][1]),y&8&&(P.bindings=r[3]),a.$set(P)},i(C){c||(m(e.$$.fragment,C),m(i),m(s.$$.fragment,C),m(a.$$.fragment,C),m(f.$$.fragment,C),c=!0)},o(C){_(e.$$.fragment,C),_(i),_(s.$$.fragment,C),_(a.$$.fragment,C),_(f.$$.fragment,C),c=!1},d(C){E(e,C),C&&b(t),d[n].d(C),C&&b(l),E(s,C),C&&b(o),E(a,C),C&&b(u),E(f,C)}}}function ate(r){let e,t;return{c(){e=V(`Add
1215
+ `;function Gx(r){let e,t,n;return t=new Ye({props:{justifyItems:"center",gap:"S",$$slots:{default:[Xx]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","center error svelte-byn9z3")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&8388624&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Yx(r){let e,t,n;return t=new cs({}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","center svelte-byn9z3")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Oe,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Jx(r){let e;return{c(){e=V("App preview failed to load")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qx(r){let e;return{c(){e=V(r[4])},m(t,n){$(t,e,n)},p(t,n){n&16&&Te(e,t[4])},d(t){t&&b(e)}}}function Xx(r){let e,t,n,i,l,s;return n=new kt({props:{size:"L",$$slots:{default:[Jx]},$$scope:{ctx:r}}}),l=new Ke({props:{size:"S",$$slots:{default:[Qx]},$$scope:{ctx:r}}}),{c(){e=new PS,t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),e.a=t},m(o,a){e.m(Wx,o,a),$(o,t,a),A(n,o,a),$(o,i,a),A(l,o,a),s=!0},p(o,a){const u={};a&8388608&&(u.$$scope={dirty:a,ctx:o}),n.$set(u);const f={};a&8388624&&(f.$$scope={dirty:a,ctx:o}),l.$set(f)},i(o){s||(m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&e.d(),o&&b(t),E(n,o),o&&b(i),E(l,o)}}}function Kx(r){let e,t,n,i,l,s,o,a;const u=[Yx,Gx],f=[];function c(d,g){return d[3]?0:d[4]?1:-1}~(t=c(r))&&(n=f[t]=u[t](r));let p={title:"Confirm Deletion",body:"Are you sure you want to delete this component?",okText:"Delete component",onOk:r[6],onCancel:r[7]};return o=new _r({props:p}),r[15](o),{c(){e=D("div"),n&&n.c(),i=R(),l=D("iframe"),s=R(),S(o.$$.fragment),w(l,"title","componentPreview"),w(l,"srcdoc",r[5]),w(l,"class","svelte-byn9z3"),oe(l,"hidden",r[3]||r[4]),oe(l,"tablet",r[0].previewDevice==="tablet"),oe(l,"mobile",r[0].previewDevice==="mobile"),w(e,"class","component-container svelte-byn9z3")},m(d,g){$(d,e,g),~t&&f[t].m(e,null),N(e,i),N(e,l),r[14](l),$(d,s,g),A(o,d,g),a=!0},p(d,[g]){let h=t;t=c(d),t===h?~t&&f[t].p(d,g):(n&&(ee(),_(f[h],1,1,()=>{f[h]=null}),te()),~t?(n=f[t],n?n.p(d,g):(n=f[t]=u[t](d),n.c()),m(n,1),n.m(e,i)):n=null),(!a||g&32)&&w(l,"srcdoc",d[5]),g&24&&oe(l,"hidden",d[3]||d[4]),g&1&&oe(l,"tablet",d[0].previewDevice==="tablet"),g&1&&oe(l,"mobile",d[0].previewDevice==="mobile");const v={};o.$set(v)},i(d){a||(m(n),m(o.$$.fragment,d),a=!0)},o(d){_(n),_(o.$$.fragment,d),a=!1},d(d){d&&b(e),~t&&f[t].d(),r[14](null),d&&b(s),r[15](null),E(o,d)}}}function Zx(r,e,t){let n,i,l,s,o,a;fe(r,He,B=>t(0,o=B)),fe(r,fn,B=>t(13,a=B));let u,f,c,p,d,g=!0,h;const v=new Pa().name("Screen Placeholder").route("*").component("@budibase/standard-components/screenslot").instanceName("Content Placeholder").json(),C={READY:"ready",ERROR:"error",BUDIBASE:"type"},y=B=>{u&&u.contentWindow.postMessage(B)};function I(B){({[C.READY]:()=>{o.clientFeatures.messagePassing&&!g||(o.clientFeatures.intelligentLoading||t(3,g=!1),y(s))},[C.ERROR]:Y=>{t(3,g=!1),t(4,h=Y.error||"An unknown error occurred")}}[B.data.type]||O)(B)}Ft(()=>{window.addEventListener("message",I),o.clientFeatures.messagePassing||(u.contentWindow.addEventListener("ready",()=>{I({data:{type:C.READY}})},{once:!0}),u.contentWindow.addEventListener("error",B=>{I({data:{type:C.ERROR,error:B.detail}})},{once:!0}),u.contentWindow.addEventListener("bb-event",O))}),_p(()=>{window.removeEventListener("message",I),u.contentWindow&&(o.clientFeatures.messagePassing||u.contentWindow.removeEventListener("bb-event",O))});const O=async B=>{const{type:q,data:G}=B.data||B.detail;if(!!q)try{if(q==="select-component"&&G.id)He.actions.components.select({_id:G.id});else if(q==="update-prop")await He.actions.components.updateProp(G.prop,G.value);else if(q==="delete-component"&&G.id)T(G.id);else if(q==="duplicate-component"&&G.id){const Y=it(fn).props,U=xi(Y,G.id);He.actions.components.copy(U),await He.actions.components.paste(U)}else if(q==="preview-loaded")t(3,g=!1);else if(q==="move-component"){const{componentId:Y,destinationComponentId:U}=G,H=it(fn).props,W=xi(H,Y),Q=xi(H,U);if(Sl(W,U).map(ne=>ne._id).includes(G.destinationComponentId))return;W&&Q&&(He.actions.components.copy(W,!0),await He.actions.components.paste(Q,G.mode))}else console.warn(`Client sent unknown event type: ${q}`)}catch(Y){console.warn(Y),ye.error("Error handling event from app preview")}},T=B=>{d=B,p.show()},P=async()=>{try{await He.actions.components.delete({_id:d})}catch{ye.error("Error deleting component")}d=null},M=()=>{d=null};function F(B){Z[B?"unshift":"push"](()=>{u=B,t(1,u)})}function j(B){Z[B?"unshift":"push"](()=>{p=B,t(2,p)})}return r.$$.update=()=>{var B;r.$$.dirty&1&&t(5,n=Hx.replace(/\{\{ CLIENT_LIB_PATH }}/,o.clientLibPath)),r.$$.dirty&8705&&(o.currentFrontEndType===Kn.LAYOUT?(t(8,f=a),t(9,c=v)):(t(9,c=a),t(8,f=o.layouts.find(q=>q._id===(c==null?void 0:c.layoutId))))),r.$$.dirty&1&&t(12,i=(B=o.selectedComponentId)!=null?B:""),r.$$.dirty&4865&&t(11,l={appId:o.appId,layout:f,screen:c,selectedComponentId:i,previewType:o.currentFrontEndType,theme:o.theme,customTheme:o.customTheme,previewDevice:o.previewDevice,messagePassing:o.clientFeatures.messagePassing,isBudibaseEvent:!0}),r.$$.dirty&2048&&t(10,s=JSON.stringify(l)),r.$$.dirty&1024&&y(s)},[o,u,p,g,h,n,P,M,f,c,s,l,i,a,F,j]}class xx extends ie{constructor(e){super();le(this,e,Zx,Kx,re,{})}}function c6(r){let e,t,n;return t=new Ze({props:{$$slots:{default:[eee]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","label svelte-3rofj0")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&262145&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function eee(r){let e;return{c(){e=V(r[0])},m(t,n){$(t,e,n)},p(t,n){n&1&&Te(e,t[0])},d(t){t&&b(e)}}}function tee(r){let e,t,n,i,l,s,o,a=r[4]!=="boolean"&&r[0]&&c6(r);const u=[{componentInstance:r[1]},{value:r[7]},{updateOnChange:!1},{onChange:r[8]},{bindings:r[6]},{name:r[3]},{text:r[0]},{key:r[3]},{type:r[4]},r[5]];var f=r[2];function c(p){let d={};for(let g=0;g<u.length;g+=1)d=Ui(d,u[g]);return{props:d}}return f&&(i=new f(c()),i.$on("change",r[8])),{c(){e=D("div"),a&&a.c(),t=R(),n=D("div"),i&&S(i.$$.fragment),w(n,"data-cy",l=`${r[3]}-prop-control`),w(n,"class","control svelte-3rofj0"),w(e,"class","property-control svelte-3rofj0"),w(e,"data-cy",s=`setting-${r[3]}`)},m(p,d){$(p,e,d),a&&a.m(e,null),N(e,t),N(e,n),i&&A(i,n,null),o=!0},p(p,[d]){p[4]!=="boolean"&&p[0]?a?(a.p(p,d),d&17&&m(a,1)):(a=c6(p),a.c(),m(a,1),a.m(e,t)):a&&(ee(),_(a,1,1,()=>{a=null}),te());const g=d&507?Eu(u,[d&2&&{componentInstance:p[1]},d&128&&{value:p[7]},u[2],d&256&&{onChange:p[8]},d&64&&{bindings:p[6]},d&8&&{name:p[3]},d&1&&{text:p[0]},d&8&&{key:p[3]},d&16&&{type:p[4]},d&32&&Ou(p[5])]):{};if(f!==(f=p[2])){if(i){ee();const h=i;_(h.$$.fragment,1,0,()=>{E(h,1)}),te()}f?(i=new f(c()),i.$on("change",p[8]),S(i.$$.fragment),m(i.$$.fragment,1),A(i,n,null)):i=null}else f&&i.$set(g);(!o||d&8&&l!==(l=`${p[3]}-prop-control`))&&w(n,"data-cy",l),(!o||d&8&&s!==(s=`setting-${p[3]}`))&&w(e,"data-cy",s)},i(p){o||(m(a),i&&m(i.$$.fragment,p),o=!0)},o(p){_(a),i&&_(i.$$.fragment,p),o=!1},d(p){p&&b(e),a&&a.d(),i&&E(i)}}}function nee(r,e,t){let n,i,l,{label:s=""}=e,{componentInstance:o={}}=e,{control:a=null}=e,{key:u=""}=e,{type:f=""}=e,{value:c=null}=e,{props:p={}}=e,{onChange:d=()=>{}}=e,{bindings:g=[]}=e,{componentBindings:h=[]}=e,{nested:v=!1}=e;const C=(O,T,P)=>P?[...T||[],...O||[]]:O,y=O=>{let T=O;O&&typeof O=="object"&&("detail"in O?T=O.detail:"target"in O&&(T=O.target.value)),f==="number"&&(T=parseInt(T)),d(typeof T=="string"?l(T):T)},I=(O,T,P)=>{const M=bo(P,O);return M==null&&T!==void 0?T:M};return r.$$set=O=>{"label"in O&&t(0,s=O.label),"componentInstance"in O&&t(1,o=O.componentInstance),"control"in O&&t(2,a=O.control),"key"in O&&t(3,u=O.key),"type"in O&&t(4,f=O.type),"value"in O&&t(9,c=O.value),"props"in O&&t(5,p=O.props),"onChange"in O&&t(10,d=O.onChange),"bindings"in O&&t(11,g=O.bindings),"componentBindings"in O&&t(12,h=O.componentBindings),"nested"in O&&t(13,v=O.nested)},r.$$.update=()=>{r.$$.dirty&14336&&t(6,n=C(g,h,v)),r.$$.dirty&608&&t(7,i=I(c,p.defaultValue,n)),r.$$.dirty&128,r.$$.dirty&64&&(l=O=>As(n,O))},[s,o,a,u,f,p,n,i,y,c,d,g,h,v]}class Na extends ie{constructor(e){super();le(this,e,nee,tee,re,{label:0,componentInstance:1,control:2,key:3,type:4,value:9,props:5,onChange:10,bindings:11,componentBindings:12,nested:13})}}function ree(r){let e,t,n;function i(s){r[2](s)}let l={options:r[1].layouts,getOptionLabel:iee,getOptionValue:lee};return r[0]!==void 0&&(l.value=r[0]),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};o&2&&(a.options=s[1].layouts),!t&&o&1&&(t=!0,a.value=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}const iee=r=>r.name,lee=r=>r._id;function see(r,e,t){let n;fe(r,He,o=>t(1,n=o));let{value:i}=e;function l(o){i=o,t(0,i)}function s(o){dt.call(this,r,o)}return r.$$set=o=>{"value"in o&&t(0,i=o.value)},[i,n,l,s]}class oee extends ie{constructor(e){super();le(this,e,see,ree,re,{value:0})}}function aee(r){let e,t,n;function i(s){r[2](s)}let l={options:r[1],getOptionLabel:uee,getOptionValue:fee};return r[0]!==void 0&&(l.value=r[0]),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};o&2&&(a.options=s[1]),!t&&o&1&&(t=!0,a.value=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}const uee=r=>r.name,fee=r=>r._id;function cee(r,e,t){let n;fe(r,Zi,o=>t(1,n=o));let{value:i}=e;function l(o){i=o,t(0,i)}function s(o){dt.call(this,r,o)}return r.$$set=o=>{"value"in o&&t(0,i=o.value)},[i,n,l,s]}class pee extends ie{constructor(e){super();le(this,e,cee,aee,re,{value:0})}}function Es(r){return r.split("/").map(e=>e.startsWith(":")?e:encodeURIComponent(e.replace(/ /g,"-"))).join("/").toLowerCase()}function p6(r,e,t){const n=r.slice();return n[7]=e[t],n}function d6(r){let e,t;return e=new Go({props:{name:"Screen",collapsible:!1,$$slots:{default:[dee]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1034&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function m6(r,e){let t,n,i;function l(...s){return e[6](e[7],...s)}return n=new Na({props:{control:e[7].control,label:e[7].label,key:e[7].key,value:jl.exports.get(e[3],e[7].key),onChange:l,bindings:e[1]}}),{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),this.first=t},m(s,o){$(s,t,o),A(n,s,o),i=!0},p(s,o){e=s;const a={};o&8&&(a.value=jl.exports.get(e[3],e[7].key)),o&2&&(a.bindings=e[1]),n.$set(a)},i(s){i||(m(n.$$.fragment,s),i=!0)},o(s){_(n.$$.fragment,s),i=!1},d(s){s&&b(t),E(n,s)}}}function dee(r){let e=[],t=new Map,n,i,l=r[5];const s=o=>`${o[0]._id}-${o[7].key}`;for(let o=0;o<l.length;o+=1){let a=p6(r,l,o),u=s(a);t.set(u,e[o]=m6(u,a))}return{c(){for(let o=0;o<e.length;o+=1)e[o].c();n=Ee()},m(o,a){for(let u=0;u<e.length;u+=1)e[u].m(o,a);$(o,n,a),i=!0},p(o,a){a&59&&(l=o[5],ee(),e=er(e,a,s,1,o,l,t,n.parentNode,jr,m6,n,p6),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(e[a]);i=!0}},o(o){for(let a=0;a<e.length;a+=1)_(e[a]);i=!1},d(o){for(let a=0;a<e.length;a+=1)e[a].d(o);o&&b(n)}}}function mee(r){let e,t,n=r[2].currentView!=="component"&&r[3]&&r[2].currentFrontEndType===Kn.SCREEN&&d6(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,[l]){i[2].currentView!=="component"&&i[3]&&i[2].currentFrontEndType===Kn.SCREEN?n?(n.p(i,l),l&12&&m(n,1)):(n=d6(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function gee(r,e,t){let n,i;fe(r,He,f=>t(2,n=f)),fe(r,fn,f=>t(3,i=f));let{componentInstance:l}=e,{bindings:s}=e;function o(f,c,p){p&&typeof p=="function"&&(c=p(c));const d=it(fn);He.update(g=>(f==="_instanceName"&&g.currentFrontEndType===Kn.SCREEN?d.props._instanceName=c:jl.exports.setWith(d,f.split("."),c,Object),g));try{He.actions.preview.saveSelected()}catch{ye.error("Error saving settings")}}const a=[{key:"routing.route",label:"Route",control:tt,parser:f=>(f.startsWith("/")||(f="/"+f),Es(f))},{key:"routing.roleId",label:"Access",control:pee},{key:"layoutId",label:"Layout",control:oee}],u=(f,c)=>o(f.key,c,f.parser);return r.$$set=f=>{"componentInstance"in f&&t(0,l=f.componentInstance),"bindings"in f&&t(1,s=f.bindings)},[l,s,n,i,o,a,u]}class _ee extends ie{constructor(e){super();le(this,e,gee,mee,re,{componentInstance:0,bindings:1})}}class Qn extends f6{constructor(e){super(!1);this._children=[],this._json={_id:Fi(),_component:e,_styles:{normal:{},hover:{},active:{},selected:{}},_instanceName:"",_children:[]}}normalStyle(e){return this._json._styles.normal=e,this}hoverStyle(e){return this._json._styles.hover=e,this}customStyle(e){return this._json._styles.custom=e,this}instanceName(e){return this._json._instanceName=e,this}type(e){return this._json.type=e,this}text(e){return this._json.text=e,this}}function hee(r){return r.map(e=>({name:`${e.name} - New`,create:()=>vee(e),id:$ee,table:e.name}))}const g6=r=>Es(`/${r.name}/new/row`),$ee="NEW_ROW_TEMPLATE";function bee(r,e){return b6("New Row").addChild($6(r,e))}const vee=r=>{const e=new Pa().instanceName(`${r.name} - New`).customProps({hAlign:"center"}).route(g6(r)),t=_6().instanceName("Form").customProps({actionType:"Create",dataSource:{label:r.name,tableId:r._id,type:"table"},size:"spectrum--medium"}),n=new Qn("@budibase/standard-components/fieldgroup").instanceName("Field Group").customProps({labelPosition:"left"}),i={type:"table",tableId:r._id};E1(i).forEach(s=>{n.addChild(s)});const l=t._json._id;return t.addChild(h6(r.name,"New")).addChild(bee(r,l)).addChild(n),e.addChild(t).json()};function wee(r){return r.map(e=>({name:`${e.name} - List`,create:()=>Cee(e),id:yee,table:e.name}))}const yee="ROW_LIST_TEMPLATE",Zf=r=>Es(`/${r.name}`);function kee(r){const e=new Qn("@budibase/standard-components/button").text("Create New").customProps({size:"M",type:"primary",onClick:[{parameters:{url:g6(r)},"##eventHandlerType":"Navigate To"}]}).instanceName("New Button"),t=new Qn("@budibase/standard-components/heading").instanceName("Title").text(r.name).customProps({size:"M",align:"left"});return new Qn("@budibase/standard-components/container").customProps({direction:"row",hAlign:"stretch",vAlign:"middle",size:"shrink",gap:"M"}).instanceName("Title Container").addChild(t).addChild(e)}const Cee=r=>{const e=new Qn("@budibase/standard-components/dataprovider").instanceName("Data Provider").customProps({dataSource:{label:r.name,name:r._id,tableId:r._id,type:"table"},size:"spectrum--medium",paginate:!0,limit:8}),t=new Qn("@budibase/standard-components/table").customProps({dataProvider:`{{ literal ${hn(e._json._id)} }}`,showAutoColumns:!1,quiet:!1,rowCount:8}).instanceName(`${r.name} Table`),n=hn(t._json._id),i=hn("_id"),l=new Qn("@budibase/standard-components/link").customProps({text:"View",url:`${Zf(r)}/{{ ${n}.${i} }}`,size:"S",color:"var(--spectrum-global-color-gray-600)",align:"left"}).normalStyle({["margin-left"]:"16px",["margin-right"]:"16px"}).instanceName("View Link");return t.addChild(l),e.addChild(t),new Pa().route(Zf(r)).instanceName(`${r.name} - List`).addChild(kee(r)).addChild(e).json()};function A1(r){return`var(--spectrum-global-color-gray-${r})`}function See(r){return new Qn("@budibase/standard-components/link").text(r).customProps({url:`/${r.toLowerCase()}`,openInNewTab:!1,color:A1(700),size:"S",align:"left"})}function _6(){return new Qn("@budibase/standard-components/form").normalStyle({width:"600px"}).instanceName("Form")}function h6(r,e){const t=See(r).instanceName("Back Link"),n=new Qn("@budibase/standard-components/text").type("none").normalStyle({"margin-right":"4px","margin-left":"4px"}).text(">").instanceName("Arrow").customProps({color:A1(700),size:"S",align:"left"}),i=new Qn("@budibase/standard-components/text").text(e).instanceName("Identifier").customProps({color:A1(700),size:"S",align:"left"});return new Qn("@budibase/standard-components/container").customProps({gap:"N",direction:"row",hAlign:"left",vAlign:"middle",size:"shrink"}).instanceName("Breadcrumbs").addChild(t).addChild(n).addChild(i)}function $6(r,e){return new Qn("@budibase/standard-components/button").text("Save").customProps({type:"primary",size:"M",onClick:[{"##eventHandlerType":"Validate Form",parameters:{componentId:e}},{parameters:{providerId:e,tableId:r._id},"##eventHandlerType":"Save Row"},{parameters:{url:Zf(r)},"##eventHandlerType":"Navigate To"}]}).instanceName("Save Button")}function b6(r){const e=new Qn("@budibase/standard-components/heading").instanceName("Title").text(r).customProps({size:"M",align:"left"});return new Qn("@budibase/standard-components/container").normalStyle({"margin-top":"32px","margin-bottom":"32px"}).customProps({direction:"row",hAlign:"stretch",vAlign:"middle",size:"shrink",gap:"M"}).instanceName("Title Container").addChild(e)}const Aee={string:"stringfield",number:"numberfield",options:"optionsfield",array:"multifieldselect",boolean:"booleanfield",longform:"longformfield",datetime:"datetimefield",attachment:"attachmentfield",link:"relationshipfield",json:"jsonfield"};function E1(r){const{schema:e}=Di(null,r,{formSchema:!0});let t=[];return Object.keys(e||{}).forEach(i=>{const l=e[i];if(l.autocolumn||l.nestedJSON)return;const s=typeof l=="object"?l.type:l,o=Aee[s],a=`@budibase/standard-components/${o}`;if(o){const u=new Qn(a).instanceName(i).customProps({field:i,label:i,placeholder:i});if(s==="options"&&u.customProps({placeholder:"Choose an option",optionsType:"select",optionsSource:"schema"}),s==="longform"&&u.customProps({format:"auto"}),s==="array"&&u.customProps({placeholder:"Choose an option",optionsSource:"schema"}),s==="link"){let f=l.relationshipType==="one-to-many"?"Choose an option":"Choose some options";u.customProps({placeholder:f})}s==="boolean"&&u.customProps({text:i,label:""}),t.push(u)}}),t}function Eee(r){let e;return{c(){e=V("Update form fields")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Oee(r){let e,t,n,i,l;t=new Yt({props:{secondary:!0,wide:!0,$$slots:{default:[Eee]},$$scope:{ctx:r}}}),t.$on("click",r[3]);let s={body:"All components inside this group will be deleted and replaced with fields to match the schema. Are you sure you want to update this Field Group?",okText:"Update",onOk:r[1],title:"Confirm Form Field Update"};return i=new _r({props:s}),r[4](i),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),$(o,n,a),A(i,o,a),l=!0},p(o,[a]){const u={};a&64&&(u.$$scope={dirty:a,ctx:o}),t.$set(u);const f={};i.$set(f)},i(o){l||(m(t.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(t.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){o&&b(e),E(t),o&&b(n),r[4](null),E(i,o)}}}function Tee(r,e,t){let n;fe(r,fn,u=>t(5,n=u));let{componentInstance:i}=e,l;const s=async()=>{const u=Uf(n==null?void 0:n.props,i._id,p=>p._component.endsWith("/form")),f=u==null?void 0:u.dataSource,c=E1(f);try{await He.actions.components.updateProp("_children",c.map(p=>p.json()))}catch{ye.error("Error resetting form fields")}},o=()=>l==null?void 0:l.show();function a(u){Z[u?"unshift":"push"](()=>{l=u,t(0,l)})}return r.$$set=u=>{"componentInstance"in u&&t(2,i=u.componentInstance)},[l,s,i,o,a]}class Iee extends ie{constructor(e){super();le(this,e,Tee,Oee,re,{componentInstance:2})}}function v6(r,e,t){const n=r.slice();return n[44]=e[t],n}function w6(r,e,t){const n=r.slice();return n[47]=e[t],n}function y6(r,e,t){const n=r.slice();return n[50]=e[t],n}function k6(r,e,t){const n=r.slice();return n[50]=e[t],n}function C6(r,e,t){const n=r.slice();return n[55]=e[t],n}function S6(r,e,t){const n=r.slice();return n[58]=e[t],n}function A6(r,e,t){const n=r.slice();return n[61]=e[t],n}function E6(r,e,t){const n=r.slice();return n[64]=e[t],n}function O6(r){let e,t,n,i,l,s,o={title:"Query Bindings",$$slots:{body:[Mee],buttons:[Pee]},$$scope:{ctx:r}};return n=new Kr({props:o}),r[29](n),{c(){e=D("i"),t=R(),S(n.$$.fragment),w(e,"class","ri-settings-5-line svelte-xmd5g6")},m(a,u){$(a,e,u),$(a,t,u),A(n,a,u),i=!0,l||(s=Pe(e,"click",r[19]),l=!0)},p(a,u){const f={};u[0]&67|u[2]&32&&(f.$$scope={dirty:u,ctx:a}),n.$set(f)},i(a){i||(m(n.$$.fragment,a),i=!0)},o(a){_(n.$$.fragment,a),i=!1},d(a){a&&b(e),a&&b(t),r[29](null),E(n,a),l=!1,s()}}}function Lee(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Pee(r){let e,t;return e=new ut({props:{slot:"buttons",cta:!0,$$slots:{default:[Lee]},$$scope:{ctx:r}}}),e.$on("click",r[20]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function T6(r){let e,t,n,i;function l(a){r[27](a)}function s(a){r[28](a)}let o={queryBindings:r[17](r[1])};return r[6]!==void 0&&(o.customParams=r[6]),r[0]!==void 0&&(o.bindings=r[0]),e=new y1({props:o}),Z.push(()=>ce(e,"customParams",l)),Z.push(()=>ce(e,"bindings",s)),{c(){S(e.$$.fragment)},m(a,u){A(e,a,u),i=!0},p(a,u){const f={};u[0]&2&&(f.queryBindings=a[17](a[1])),!t&&u[0]&64&&(t=!0,f.customParams=a[6],pe(()=>t=!1)),!n&&u[0]&1&&(n=!0,f.bindings=a[0],pe(()=>n=!1)),e.$set(f)},i(a){i||(m(e.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),i=!1},d(a){E(e,a)}}}function Nee(r){let e=r[17](r[1]).length>0,t,n,i,l=e&&T6(r);return n=new _1({props:{height:200,query:r[1],schema:r[16](r[1]),datasource:r[18](r[1]),editable:!1}}),{c(){l&&l.c(),t=R(),S(n.$$.fragment)},m(s,o){l&&l.m(s,o),$(s,t,o),A(n,s,o),i=!0},p(s,o){o[0]&2&&(e=s[17](s[1]).length>0),e?l?(l.p(s,o),o[0]&2&&m(l,1)):(l=T6(s),l.c(),m(l,1),l.m(t.parentNode,t)):l&&(ee(),_(l,1,1,()=>{l=null}),te());const a={};o[0]&2&&(a.query=s[1]),o[0]&2&&(a.schema=s[16](s[1])),o[0]&2&&(a.datasource=s[18](s[1])),n.$set(a)},i(s){i||(m(l),m(n.$$.fragment,s),i=!0)},o(s){_(l),_(n.$$.fragment,s),i=!1},d(s){l&&l.d(s),s&&b(t),E(n,s)}}}function Ree(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[Nee]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&67|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Mee(r){let e,t;return e=new Ai({props:{slot:"body",$$slots:{default:[Ree]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&67|i[2]&32&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Dee(r){let e;return{c(){e=V("Tables")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function I6(r){let e,t=r[64].label+"",n,i,l;function s(){return r[31](r[64])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&8192&&t!==(t=r[64].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function L6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[jee]},$$scope:{ctx:r}}});let a=r[12],u=[];for(let f=0;f<a.length;f+=1)u[f]=P6(A6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&36864){a=f[12];let d;for(d=0;d<a.length;d+=1){const g=A6(f,a,d);u[d]?u[d].p(g,c):(u[d]=P6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function jee(r){let e;return{c(){e=V("Views")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function P6(r){let e,t=r[61].label+"",n,i,l;function s(){return r[32](r[61])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&4096&&t!==(t=r[61].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function N6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Bee]},$$scope:{ctx:r}}});let a=r[11],u=[];for(let f=0;f<a.length;f+=1)u[f]=R6(S6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&34818){a=f[11];let d;for(d=0;d<a.length;d+=1){const g=S6(f,a,d);u[d]?u[d].p(g,c):(u[d]=R6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Bee(r){let e;return{c(){e=V("Queries")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function R6(r){let e,t=r[58].label+"",n,i,l,s;function o(){return r[33](r[58])}return{c(){e=D("li"),n=V(t),i=R(),w(e,"class","svelte-xmd5g6"),oe(e,"selected",r[1]===r[58])},m(a,u){$(a,e,u),N(e,n),N(e,i),l||(s=Pe(e,"click",o),l=!0)},p(a,u){r=a,u[0]&2048&&t!==(t=r[58].label+"")&&Te(n,t),u[0]&2050&&oe(e,"selected",r[1]===r[58])},d(a){a&&b(e),l=!1,s()}}}function M6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[zee]},$$scope:{ctx:r}}});let a=r[9],u=[];for(let f=0;f<a.length;f+=1)u[f]=D6(C6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&33280){a=f[9];let d;for(d=0;d<a.length;d+=1){const g=C6(f,a,d);u[d]?u[d].p(g,c):(u[d]=D6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function zee(r){let e;return{c(){e=V("Relationships")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function D6(r){let e,t=r[55].label+"",n,i,l;function s(){return r[34](r[55])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&512&&t!==(t=r[55].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function j6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[qee]},$$scope:{ctx:r}}});let a=r[8],u=[];for(let f=0;f<a.length;f+=1)u[f]=B6(k6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&33024){a=f[8];let d;for(d=0;d<a.length;d+=1){const g=k6(f,a,d);u[d]?u[d].p(g,c):(u[d]=B6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function qee(r){let e;return{c(){e=V("Fields")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function B6(r){let e,t=r[50].label+"",n,i,l;function s(){return r[35](r[50])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&256&&t!==(t=r[50].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function z6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Uee]},$$scope:{ctx:r}}});let a=r[7],u=[];for(let f=0;f<a.length;f+=1)u[f]=q6(y6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&32896){a=f[7];let d;for(d=0;d<a.length;d+=1){const g=y6(f,a,d);u[d]?u[d].p(g,c):(u[d]=q6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Uee(r){let e;return{c(){e=V("JSON Arrays")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function q6(r){let e,t=r[50].label+"",n,i,l;function s(){return r[36](r[50])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&128&&t!==(t=r[50].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function U6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Fee]},$$scope:{ctx:r}}});let a=r[10],u=[];for(let f=0;f<a.length;f+=1)u[f]=F6(w6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&33794){a=f[10];let d;for(d=0;d<a.length;d+=1){const g=w6(f,a,d);u[d]?u[d].p(g,c):(u[d]=F6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Fee(r){let e;return{c(){e=V("Data Providers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function F6(r){let e,t=r[47].label+"",n,i,l,s;function o(){return r[37](r[47])}return{c(){e=D("li"),n=V(t),i=R(),w(e,"class","svelte-xmd5g6"),oe(e,"selected",r[1]===r[47])},m(a,u){$(a,e,u),N(e,n),N(e,i),l||(s=Pe(e,"click",o),l=!0)},p(a,u){r=a,u[0]&1024&&t!==(t=r[47].label+"")&&Te(n,t),u[0]&1026&&oe(e,"selected",r[1]===r[47])},d(a){a&&b(e),l=!1,s()}}}function V6(r){let e,t,n,i,l,s,o;e=new un({props:{size:"S"}}),i=new kt({props:{size:"XS",$$slots:{default:[Vee]},$$scope:{ctx:r}}});let a=r[2],u=[];for(let f=0;f<a.length;f+=1)u[f]=H6(v6(r,a,f));return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),s=D("ul");for(let f=0;f<u.length;f+=1)u[f].c();w(n,"class","title svelte-xmd5g6"),w(s,"class","svelte-xmd5g6")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),A(i,n,null),$(f,l,c),$(f,s,c);for(let p=0;p<u.length;p+=1)u[p].m(s,null);o=!0},p(f,c){const p={};if(c[2]&32&&(p.$$scope={dirty:c,ctx:f}),i.$set(p),c[0]&32772){a=f[2];let d;for(d=0;d<a.length;d+=1){const g=v6(f,a,d);u[d]?u[d].p(g,c):(u[d]=H6(g),u[d].c(),u[d].m(s,null))}for(;d<u.length;d+=1)u[d].d(1);u.length=a.length}},i(f){o||(m(e.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(e.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){E(e,f),f&&b(t),f&&b(n),E(i),f&&b(l),f&&b(s),$t(u,f)}}}function Vee(r){let e;return{c(){e=V("Other")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function H6(r){let e,t=r[44].label+"",n,i,l;function s(){return r[38](r[44])}return{c(){e=D("li"),n=V(t),w(e,"class","svelte-xmd5g6")},m(o,a){$(o,e,a),N(e,n),i||(l=Pe(e,"click",s),i=!0)},p(o,a){r=o,a[0]&4&&t!==(t=r[44].label+"")&&Te(n,t)},d(o){o&&b(e),i=!1,l()}}}function Hee(r){var M,F,j,B,q,G,Y;let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new kt({props:{size:"XS",$$slots:{default:[Dee]},$$scope:{ctx:r}}});let g=r[13],h=[];for(let U=0;U<g.length;U+=1)h[U]=I6(E6(r,g,U));let v=((M=r[12])==null?void 0:M.length)&&L6(r),C=((F=r[11])==null?void 0:F.length)&&N6(r),y=((j=r[9])==null?void 0:j.length)&&M6(r),I=((B=r[8])==null?void 0:B.length)&&j6(r),O=((q=r[7])==null?void 0:q.length)&&z6(r),T=((G=r[10])==null?void 0:G.length)&&U6(r),P=((Y=r[2])==null?void 0:Y.length)&&V6(r);return{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("ul");for(let U=0;U<h.length;U+=1)h[U].c();s=R(),v&&v.c(),o=R(),C&&C.c(),a=R(),y&&y.c(),u=R(),I&&I.c(),f=R(),O&&O.c(),c=R(),T&&T.c(),p=R(),P&&P.c(),w(t,"class","title svelte-xmd5g6"),w(l,"class","svelte-xmd5g6"),w(e,"class","dropdown svelte-xmd5g6")},m(U,H){$(U,e,H),N(e,t),A(n,t,null),N(e,i),N(e,l);for(let W=0;W<h.length;W+=1)h[W].m(l,null);N(e,s),v&&v.m(e,null),N(e,o),C&&C.m(e,null),N(e,a),y&&y.m(e,null),N(e,u),I&&I.m(e,null),N(e,f),O&&O.m(e,null),N(e,c),T&&T.m(e,null),N(e,p),P&&P.m(e,null),d=!0},p(U,H){var Q,se,K,ne,ae,_e,Me;const W={};if(H[2]&32&&(W.$$scope={dirty:H,ctx:U}),n.$set(W),H[0]&40960){g=U[13];let we;for(we=0;we<g.length;we+=1){const $e=E6(U,g,we);h[we]?h[we].p($e,H):(h[we]=I6($e),h[we].c(),h[we].m(l,null))}for(;we<h.length;we+=1)h[we].d(1);h.length=g.length}((Q=U[12])==null?void 0:Q.length)?v?(v.p(U,H),H[0]&4096&&m(v,1)):(v=L6(U),v.c(),m(v,1),v.m(e,o)):v&&(ee(),_(v,1,1,()=>{v=null}),te()),((se=U[11])==null?void 0:se.length)?C?(C.p(U,H),H[0]&2048&&m(C,1)):(C=N6(U),C.c(),m(C,1),C.m(e,a)):C&&(ee(),_(C,1,1,()=>{C=null}),te()),((K=U[9])==null?void 0:K.length)?y?(y.p(U,H),H[0]&512&&m(y,1)):(y=M6(U),y.c(),m(y,1),y.m(e,u)):y&&(ee(),_(y,1,1,()=>{y=null}),te()),((ne=U[8])==null?void 0:ne.length)?I?(I.p(U,H),H[0]&256&&m(I,1)):(I=j6(U),I.c(),m(I,1),I.m(e,f)):I&&(ee(),_(I,1,1,()=>{I=null}),te()),((ae=U[7])==null?void 0:ae.length)?O?(O.p(U,H),H[0]&128&&m(O,1)):(O=z6(U),O.c(),m(O,1),O.m(e,c)):O&&(ee(),_(O,1,1,()=>{O=null}),te()),((_e=U[10])==null?void 0:_e.length)?T?(T.p(U,H),H[0]&1024&&m(T,1)):(T=U6(U),T.c(),m(T,1),T.m(e,p)):T&&(ee(),_(T,1,1,()=>{T=null}),te()),((Me=U[2])==null?void 0:Me.length)?P?(P.p(U,H),H[0]&4&&m(P,1)):(P=V6(U),P.c(),m(P,1),P.m(e,null)):P&&(ee(),_(P,1,1,()=>{P=null}),te())},i(U){d||(m(n.$$.fragment,U),m(v),m(C),m(y),m(I),m(O),m(T),m(P),d=!0)},o(U){_(n.$$.fragment,U),_(v),_(C),_(y),_(I),_(O),_(T),_(P),d=!1},d(U){U&&b(e),E(n),$t(h,U),v&&v.d(),C&&C.d(),y&&y.d(),I&&I.d(),O&&O.d(),T&&T.d(),P&&P.d()}}}function Wee(r){var u;let e,t,n,i,l,s;t=new Qe({props:{readonly:!0,value:r[14],options:[r[14]]}}),t.$on("click",function(){ct(r[4].show)&&r[4].show.apply(this,arguments)});let o=((u=r[1])==null?void 0:u.type)==="query"&&O6(r),a={anchor:r[3],$$slots:{default:[Hee]},$$scope:{ctx:r}};return l=new kp({props:a}),r[39](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),w(e,"class","container svelte-xmd5g6")},m(f,c){$(f,e,c),A(t,e,null),N(e,n),o&&o.m(e,null),r[30](e),$(f,i,c),A(l,f,c),s=!0},p(f,c){var g;r=f;const p={};c[0]&16384&&(p.value=r[14]),c[0]&16384&&(p.options=[r[14]]),t.$set(p),((g=r[1])==null?void 0:g.type)==="query"?o?(o.p(r,c),c[0]&2&&m(o,1)):(o=O6(r),o.c(),m(o,1),o.m(e,null)):o&&(ee(),_(o,1,1,()=>{o=null}),te());const d={};c[0]&8&&(d.anchor=r[3]),c[0]&16262|c[2]&32&&(d.$$scope={dirty:c,ctx:r}),l.$set(d)},i(f){s||(m(t.$$.fragment,f),m(o),m(l.$$.fragment,f),s=!0)},o(f){_(t.$$.fragment,f),_(o),_(l.$$.fragment,f),s=!1},d(f){f&&b(e),E(t),o&&o.d(),r[30](null),f&&b(i),r[39](null),E(l,f)}}}function Gee(r,e,t){let n,i,l,s,o,a,u,f,c,p,d,g,h,v,C;fe(r,en,ke=>t(40,p=ke)),fe(r,kn,ke=>t(23,d=ke)),fe(r,Ql,ke=>t(41,g=ke)),fe(r,He,ke=>t(24,h=ke)),fe(r,fn,ke=>t(25,v=ke)),fe(r,Ot,ke=>t(26,C=ke));let{value:y={}}=e,{otherSources:I}=e,{showAllQueries:O}=e,{bindings:T=[]}=e;const P=ht(),M=["attachment","array"];let F,j,B,q;const G=ke=>{P("change",ke),j.hide()},Y=ke=>{const ze=p.list.find(be=>be._id===ke.datasourceId).source;return g[ze].query[ke.queryVerb]},U=ke=>{var ze;return((ze=d.list.find(be=>be._id===(ke==null?void 0:ke._id)))==null?void 0:ze.parameters)||[]},H=ke=>p.list.find(ze=>ze._id===(ke==null?void 0:ke.datasourceId)),W=()=>{t(6,q=y.queryParams),B.show()},Q=()=>{G(lt(Se({},y),{queryParams:q})),B.hide()};function se(ke){q=ke,t(6,q)}function K(ke){T=ke,t(0,T)}function ne(ke){Z[ke?"unshift":"push"](()=>{B=ke,t(5,B)})}function ae(ke){Z[ke?"unshift":"push"](()=>{F=ke,t(3,F)})}const _e=ke=>G(ke),Me=ke=>G(ke),we=ke=>G(ke),$e=ke=>G(ke),ge=ke=>G(ke),Ne=ke=>G(ke),Ue=ke=>G(ke),ue=ke=>G(ke);function Ce(ke){Z[ke?"unshift":"push"](()=>{j=ke,t(4,j)})}return r.$$set=ke=>{"value"in ke&&t(1,y=ke.value),"otherSources"in ke&&t(2,I=ke.otherSources),"showAllQueries"in ke&&t(21,O=ke.showAllQueries),"bindings"in ke&&t(0,T=ke.bindings)},r.$$.update=()=>{var ke;r.$$.dirty[0]&2&&t(14,n=(ke=y==null?void 0:y.label)!=null?ke:"Choose an option"),r.$$.dirty[0]&67108864&&t(13,i=C.list.map(ze=>({label:ze.name,tableId:ze._id,type:"table"}))),r.$$.dirty[0]&67108864&&t(12,l=C.list.reduce((ze,be)=>{let he=Object.entries(be.views||{}).map(([Xe,Mt])=>lt(Se({label:Xe,name:Xe},Mt),{type:"view"}));return[...ze,...he]},[])),r.$$.dirty[0]&10485760&&t(11,s=d.list.filter(ze=>O||ze.queryVerb==="read"||ze.readable).map(ze=>lt(Se({label:ze.name,name:ze.name},ze),{type:"query"}))),r.$$.dirty[0]&50331648&&t(22,o=$o(v,h.selectedComponentId)),r.$$.dirty[0]&4194304&&t(10,a=o.filter(ze=>{var be;return(be=ze._component)==null?void 0:be.endsWith("/dataprovider")}).map(ze=>({label:ze._instanceName,name:ze._instanceName,providerId:ze._id,value:`{{ literal ${hn(ze._id)} }}`,type:"provider"}))),r.$$.dirty[0]&1&&t(9,u=T.filter(ze=>{var be;return((be=ze.fieldSchema)==null?void 0:be.type)==="link"}).map(ze=>{const{providerId:be,readableBinding:he,fieldSchema:Xe}=ze||{},{name:Mt,tableId:qe}=Xe||{},pt=hn(be);return{providerId:be,label:he,fieldName:Mt,tableId:qe,type:"link",rowId:`{{ ${pt}.${hn("_id")} }}`,rowTableId:`{{ ${pt}.${hn("tableId")} }}`}})),r.$$.dirty[0]&1&&t(8,f=T.filter(ze=>{var be;return M.includes((be=ze.fieldSchema)==null?void 0:be.type)}).map(ze=>{const{providerId:be,readableBinding:he,runtimeBinding:Xe}=ze,{name:Mt,type:qe,tableId:pt}=ze.fieldSchema;return{providerId:be,label:he,fieldName:Mt,fieldType:qe,tableId:pt,type:"field",value:`{{ literal ${Xe} }}`}})),r.$$.dirty[0]&1&&t(7,c=T.filter(ze=>{var be;return((be=ze.fieldSchema)==null?void 0:be.type)==="jsonarray"}).map(ze=>{const{providerId:be,readableBinding:he,runtimeBinding:Xe,tableId:Mt}=ze,{name:qe,type:pt,prefixKeys:It}=ze.fieldSchema;return{providerId:be,label:he,fieldName:qe,fieldType:pt,tableId:Mt,prefixKeys:It,type:"jsonarray",value:`{{ literal ${Xe} }}`}}))},[T,y,I,F,j,B,q,c,f,u,a,s,l,i,n,G,Y,U,H,W,Q,O,o,d,h,v,C,se,K,ne,ae,_e,Me,we,$e,ge,Ne,Ue,ue,Ce]}class W6 extends ie{constructor(e){super();le(this,e,Gee,Wee,re,{value:1,otherSources:2,showAllQueries:21,bindings:0},null,[-1,-1,-1])}}function Yee(r){let e,t;return e=new Qe({props:{options:r[1],value:r[0]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.options=n[1]),i&1&&(l.value=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Jee(r,e,t){let n,i;fe(r,en,o=>t(2,i=o));let{value:l=null}=e;function s(o){dt.call(this,r,o)}return r.$$set=o=>{"value"in o&&t(0,l=o.value)},r.$$.update=()=>{r.$$.dirty&4&&t(1,n=i.list.filter(o=>{var a;return o.source==="S3"&&!((a=o.config)==null?void 0:a.endpoint)}).map(o=>({label:o.name,value:o._id})))},[l,n,i,s]}class Qee extends ie{constructor(e){super();le(this,e,Jee,Yee,re,{value:0})}}function Xee(r){let e,t;return e=new Qe({props:{value:r[0],placeholder:null,options:r[1],getOptionLabel:Kee,getOptionValue:r[2]}}),e.$on("change",r[6]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const Kee=r=>r._instanceName;function Zee(r,e,t){let n,i,l,s;fe(r,He,c=>t(4,l=c)),fe(r,fn,c=>t(5,s=c));let{value:o}=e;const a=ht(),u=c=>`{{ literal ${hn(c._id)} }}`;Ft(()=>{!(o&&i.find(p=>u(p)===o)!=null)&&i.length&&a("change",u(i[i.length-1]))});function f(c){dt.call(this,r,c)}return r.$$set=c=>{"value"in c&&t(0,o=c.value)},r.$$.update=()=>{r.$$.dirty&48&&t(3,n=Sl(s==null?void 0:s.props,l.selectedComponentId)),r.$$.dirty&8&&t(1,i=n.filter(c=>{var p;return(p=c._component)==null?void 0:p.endsWith("/dataprovider")}))},[o,i,u,n,l,s,f]}class xee extends ie{constructor(e){super();le(this,e,Zee,Xee,re,{value:0})}}function ete(r){let e;return{c(){e=V("Screen")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tte(r){let e,t,n,i,l,s,o,a,u,f;t=new Ze({props:{small:!0,$$slots:{default:[ete]},$$scope:{ctx:r}}}),i=new jn({props:{title:"Destination URL",placeholder:"/screen",value:r[0].url,bindings:r[1]}}),i.$on("change",r[2]);function c(d){r[3](d)}let p={text:"Open screen in modal"};return r[0].peek!==void 0&&(p.value=r[0].peek),a=new Zr({props:p}),Z.push(()=>ce(a,"value",c)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),s=D("div"),o=R(),S(a.$$.fragment),w(e,"class","root svelte-15fuuda")},m(d,g){$(d,e,g),A(t,e,null),N(e,n),A(i,e,null),N(e,l),N(e,s),N(e,o),A(a,e,null),f=!0},p(d,[g]){const h={};g&16&&(h.$$scope={dirty:g,ctx:d}),t.$set(h);const v={};g&1&&(v.value=d[0].url),g&2&&(v.bindings=d[1]),i.$set(v);const C={};!u&&g&1&&(u=!0,C.value=d[0].peek,pe(()=>u=!1)),a.$set(C)},i(d){f||(m(t.$$.fragment,d),m(i.$$.fragment,d),m(a.$$.fragment,d),f=!0)},o(d){_(t.$$.fragment,d),_(i.$$.fragment,d),_(a.$$.fragment,d),f=!1},d(d){d&&b(e),E(t),E(i),E(a)}}}function nte(r,e,t){let{parameters:n}=e,{bindings:i=[]}=e;const l=o=>t(0,n.url=o.detail,n);function s(o){r.$$.not_equal(n.peek,o)&&(n.peek=o,t(0,n))}return r.$$set=o=>{"parameters"in o&&t(0,n=o.parameters),"bindings"in o&&t(1,i=o.bindings)},[n,i,l,s]}class rte extends ie{constructor(e){super();le(this,e,nte,tte,re,{parameters:0,bindings:1})}}function G6(r,e,t){const n=r.slice();return n[16]=e[t],n[18]=t,n}function Y6(r){let e,t,n,i,l=r[4],s=[];for(let a=0;a<l.length;a+=1)s[a]=J6(G6(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return n=new ut({props:{icon:"AddCircle",secondary:!0,$$slots:{default:[ate]},$$scope:{ctx:r}}}),n.$on("click",r[5]),{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=R(),t=D("div"),S(n.$$.fragment),Ht(t,"margin-top","10px")},m(a,u){for(let f=0;f<s.length;f+=1)s[f].m(a,u);$(a,e,u),$(a,t,u),A(n,t,null),i=!0},p(a,u){if(u&479){l=a[4];let c;for(c=0;c<l.length;c+=1){const p=G6(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=J6(p),s[c].c(),m(s[c],1),s[c].m(e.parentNode,e))}for(ee(),c=l.length;c<s.length;c+=1)o(c);te()}const f={};u&524290&&(f.$$scope={dirty:u,ctx:a}),n.$set(f)},i(a){if(!i){for(let u=0;u<l.length;u+=1)m(s[u]);m(n.$$.fragment,a),i=!0}},o(a){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);_(n.$$.fragment,a),i=!1},d(a){$t(s,a),a&&b(e),a&&b(t),E(n)}}}function ite(r){let e;return{c(){e=V(r[1])},m(t,n){$(t,e,n)},p(t,n){n&2&&Te(e,t[1])},d(t){t&&b(e)}}}function lte(r){let e,t;function n(...i){return r[11](r[18],...i)}return e=new tt({props:{thin:!0,secondary:!0,value:r[16][0]}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&16&&(s.value=r[16][0]),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function ste(r){let e,t;function n(...i){return r[10](r[18],...i)}return e=new Qe({props:{value:r[16][0],options:r[0].map(Q6)}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&16&&(s.value=r[16][0]),l&1&&(s.options=r[0].map(Q6)),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function ote(r){let e;return{c(){e=V(r[2])},m(t,n){$(t,e,n)},p(t,n){n&4&&Te(e,t[2])},d(t){t&&b(e)}}}function J6(r){let e,t,n,i,l,s,o,a,u,f,c;e=new Ze({props:{small:!0,$$slots:{default:[ite]},$$scope:{ctx:r}}});const p=[ste,lte],d=[];function g(C,y){return C[0]?0:1}n=g(r),i=d[n]=p[n](r),s=new Ze({props:{small:!0,$$slots:{default:[ote]},$$scope:{ctx:r}}});function h(...C){return r[12](r[18],...C)}a=new jn({props:{title:`Value for "${r[16][0]}"`,value:r[16][1],bindings:r[3]}}),a.$on("change",h);function v(){return r[13](r[16])}return f=new Yt({props:{size:"S",quiet:!0,icon:"Delete"}}),f.$on("click",v),{c(){S(e.$$.fragment),t=R(),i.c(),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),u=R(),S(f.$$.fragment)},m(C,y){A(e,C,y),$(C,t,y),d[n].m(C,y),$(C,l,y),A(s,C,y),$(C,o,y),A(a,C,y),$(C,u,y),A(f,C,y),c=!0},p(C,y){r=C;const I={};y&524290&&(I.$$scope={dirty:y,ctx:r}),e.$set(I);let O=n;n=g(r),n===O?d[n].p(r,y):(ee(),_(d[O],1,1,()=>{d[O]=null}),te(),i=d[n],i?i.p(r,y):(i=d[n]=p[n](r),i.c()),m(i,1),i.m(l.parentNode,l));const T={};y&524292&&(T.$$scope={dirty:y,ctx:r}),s.$set(T);const P={};y&16&&(P.title=`Value for "${r[16][0]}"`),y&16&&(P.value=r[16][1]),y&8&&(P.bindings=r[3]),a.$set(P)},i(C){c||(m(e.$$.fragment,C),m(i),m(s.$$.fragment,C),m(a.$$.fragment,C),m(f.$$.fragment,C),c=!0)},o(C){_(e.$$.fragment,C),_(i),_(s.$$.fragment,C),_(a.$$.fragment,C),_(f.$$.fragment,C),c=!1},d(C){E(e,C),C&&b(t),d[n].d(C),C&&b(l),E(s,C),C&&b(o),E(a,C),C&&b(u),E(f,C)}}}function ate(r){let e,t;return{c(){e=V(`Add
1216
1216
  `),t=V(r[1])},m(n,i){$(n,e,i),$(n,t,i)},p(n,i){i&2&&Te(t,n[1])},d(n){n&&b(e),n&&b(t)}}}function ute(r){let e,t,n=r[4]&&Y6(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,[l]){i[4]?n?(n.p(i,l),l&16&&m(n,1)):(n=Y6(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}const Q6=r=>r.name;function fte(r,e,t){const n=ht();let{parameterFields:i}=e,{schemaFields:l}=e,{fieldLabel:s="Column"}=e,{valueLabel:o="Value"}=e,{bindings:a=[]}=e,u=Object.entries(i||{});const f=()=>{t(4,u=[...u.filter(I=>I[0]),["",""]])},c=I=>{t(4,u=u.filter(O=>O[0]!==I))},p=(I,O)=>{t(4,u[I][1]=O,u),t(4,u)},d=(I,O)=>{t(4,u[I][0]=O,u),t(4,u)},g=I=>{const O={};I.filter(T=>T[0]).forEach(([T,P])=>{O[T]=P}),n("change",O)},h=(I,O)=>d(I,O.detail),v=(I,O)=>d(I,O.detail),C=(I,O)=>p(I,O.detail),y=I=>c(I[0]);return r.$$set=I=>{"parameterFields"in I&&t(9,i=I.parameterFields),"schemaFields"in I&&t(0,l=I.schemaFields),"fieldLabel"in I&&t(1,s=I.fieldLabel),"valueLabel"in I&&t(2,o=I.valueLabel),"bindings"in I&&t(3,a=I.bindings)},r.$$.update=()=>{r.$$.dirty&16&&g(u)},[l,s,o,a,u,f,c,p,d,i,h,v,C,y]}class O1 extends ie{constructor(e){super();le(this,e,fte,ute,re,{parameterFields:9,schemaFields:0,fieldLabel:1,valueLabel:2,bindings:3})}}function cte(r){let e,t,n;return{c(){e=V(`Choosing a Data Source will automatically use the data it provides, but it's
1217
1217
  optional.`),t=D("br"),n=V(`
1218
1218
  You can always add or override fields manually.`)},m(i,l){$(i,e,l),$(i,t,l),$(i,n,l)},d(i){i&&b(e),i&&b(t),i&&b(n)}}}function pte(r){let e;return{c(){e=V("Data Source")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function dte(r){let e;return{c(){e=V("Table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function X6(r){let e,t,n,i,l;e=new Ze({props:{small:!0,$$slots:{default:[mte]},$$scope:{ctx:r}}});function s(a){r[14](a)}let o={placeholder:"Are you sure you want to save this row?"};return r[0].confirmText!==void 0&&(o.value=r[0].confirmText),n=new tt({props:o}),Z.push(()=>ce(n,"value",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&262144&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};!i&&u&1&&(i=!0,c.value=a[0].confirmText,pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function mte(r){let e;return{c(){e=V("Confirm text")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function K6(r){let e,t,n;return t=new O1({props:{parameterFields:r[0].fields,schemaFields:r[3],bindings:r[1]}}),t.$on("change",r[5]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","fields svelte-2gvxnz")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&1&&(s.parameterFields=i[0].fields),l&8&&(s.schemaFields=i[3]),l&2&&(s.bindings=i[1]),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function gte(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T;t=new Ke({props:{size:"S",$$slots:{default:[cte]},$$scope:{ctx:r}}}),l=new Ze({props:{small:!0,$$slots:{default:[pte]},$$scope:{ctx:r}}});function P(U){r[11](U)}let M={options:r[4],placeholder:"None"};r[0].providerId!==void 0&&(M.value=r[0].providerId),o=new Qe({props:M}),Z.push(()=>ce(o,"value",P)),f=new Ze({props:{small:!0,$$slots:{default:[dte]},$$scope:{ctx:r}}});function F(U){r[12](U)}let j={options:r[2],getOptionLabel:_te,getOptionValue:hte};r[0].tableId!==void 0&&(j.value=r[0].tableId),p=new Qe({props:j}),Z.push(()=>ce(p,"value",F)),h=new Ze({props:{small:!0}});function B(U){r[13](U)}let q={text:"Require confirmation"};r[0].confirm!==void 0&&(q.value=r[0].confirm),C=new Zr({props:q}),Z.push(()=>ce(C,"value",B));let G=r[0].confirm&&X6(r),Y=r[0].tableId&&K6(r);return{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),s=R(),S(o.$$.fragment),u=R(),S(f.$$.fragment),c=R(),S(p.$$.fragment),g=R(),S(h.$$.fragment),v=R(),S(C.$$.fragment),I=R(),G&&G.c(),O=R(),Y&&Y.c(),w(i,"class","params svelte-2gvxnz"),w(e,"class","root svelte-2gvxnz")},m(U,H){$(U,e,H),A(t,e,null),N(e,n),N(e,i),A(l,i,null),N(i,s),A(o,i,null),N(i,u),A(f,i,null),N(i,c),A(p,i,null),N(i,g),A(h,i,null),N(i,v),A(C,i,null),N(i,I),G&&G.m(i,null),N(e,O),Y&&Y.m(e,null),T=!0},p(U,[H]){const W={};H&262144&&(W.$$scope={dirty:H,ctx:U}),t.$set(W);const Q={};H&262144&&(Q.$$scope={dirty:H,ctx:U}),l.$set(Q);const se={};H&16&&(se.options=U[4]),!a&&H&1&&(a=!0,se.value=U[0].providerId,pe(()=>a=!1)),o.$set(se);const K={};H&262144&&(K.$$scope={dirty:H,ctx:U}),f.$set(K);const ne={};H&4&&(ne.options=U[2]),!d&&H&1&&(d=!0,ne.value=U[0].tableId,pe(()=>d=!1)),p.$set(ne);const ae={};!y&&H&1&&(y=!0,ae.value=U[0].confirm,pe(()=>y=!1)),C.$set(ae),U[0].confirm?G?(G.p(U,H),H&1&&m(G,1)):(G=X6(U),G.c(),m(G,1),G.m(i,null)):G&&(ee(),_(G,1,1,()=>{G=null}),te()),U[0].tableId?Y?(Y.p(U,H),H&1&&m(Y,1)):(Y=K6(U),Y.c(),m(Y,1),Y.m(e,null)):Y&&(ee(),_(Y,1,1,()=>{Y=null}),te())},i(U){T||(m(t.$$.fragment,U),m(l.$$.fragment,U),m(o.$$.fragment,U),m(f.$$.fragment,U),m(p.$$.fragment,U),m(h.$$.fragment,U),m(C.$$.fragment,U),m(G),m(Y),T=!0)},o(U){_(t.$$.fragment,U),_(l.$$.fragment,U),_(o.$$.fragment,U),_(f.$$.fragment,U),_(p.$$.fragment,U),_(h.$$.fragment,U),_(C.$$.fragment,U),_(G),_(Y),T=!1},d(U){U&&b(e),E(t),E(l),E(o),E(f),E(p),E(h),E(C),G&&G.d(),Y&&Y.d()}}}const _te=r=>r.name,hte=r=>r._id;function $te(r,e,t){let n,i,l,s,o,a,u,f;fe(r,Ot,T=>t(8,a=T)),fe(r,fn,T=>t(9,u=T)),fe(r,He,T=>t(10,f=T));let{parameters:c}=e,{bindings:p=[]}=e;const d=(T,P)=>{const M=He.actions.components.getDefinition(T==null?void 0:T._component);return M?(Array.isArray(M.context)?M.context:[M.context]).find(j=>(j==null?void 0:j.type)===P):null},g=(T,P)=>{const M=T.map(B=>({component:B,context:d(B,"form")})),F=P.map(B=>({component:B,context:d(B,"schema")}));return M.concat(F).map(({component:B,context:q})=>{let G=B._id;return q.suffix&&(G+=`-${q.suffix}`),{label:B._instanceName,value:G}})},h=(T,P)=>{const{schema:M}=Qf(P);return Object.values(M||{})},v=T=>{t(0,c.fields=T.detail,c)};function C(T){r.$$.not_equal(c.providerId,T)&&(c.providerId=T,t(0,c))}function y(T){r.$$.not_equal(c.tableId,T)&&(c.tableId=T,t(0,c))}function I(T){r.$$.not_equal(c.confirm,T)&&(c.confirm=T,t(0,c))}function O(T){r.$$.not_equal(c.confirmText,T)&&(c.confirmText=T,t(0,c))}return r.$$set=T=>{"parameters"in T&&t(0,c=T.parameters),"bindings"in T&&t(1,p=T.bindings)},r.$$.update=()=>{r.$$.dirty&1536&&t(7,n=$o(u,f.selectedComponentId,"form")),r.$$.dirty&1536&&t(6,i=$o(u,f.selectedComponentId,"schema")),r.$$.dirty&192&&t(4,l=g(n,i)),r.$$.dirty&513&&t(3,s=h(u,c==null?void 0:c.tableId)),r.$$.dirty&256&&t(2,o=a.list||[])},[c,p,o,s,l,v,i,n,a,u,f,C,y,I,O]}class bte extends ie{constructor(e){super();le(this,e,$te,gte,re,{parameters:0,bindings:1})}}function vte(r){let e;return{c(){e=V("Table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function wte(r){let e;return{c(){e=V("Row ID")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yte(r){let e;return{c(){e=V("Row Rev")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Z6(r){let e,t,n,i,l;e=new Ze({props:{small:!0,$$slots:{default:[kte]},$$scope:{ctx:r}}});function s(a){r[8](a)}let o={placeholder:"Are you sure you want to delete this row?"};return r[0].confirmText!==void 0&&(o.value=r[0].confirmText),n=new tt({props:o}),Z.push(()=>ce(n,"value",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&512&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};!i&&u&1&&(i=!0,c.value=a[0].confirmText,pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function kte(r){let e;return{c(){e=V("Confirm text")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cte(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O;t=new Ze({props:{$$slots:{default:[vte]},$$scope:{ctx:r}}});function T(B){r[4](B)}let P={options:r[2],getOptionLabel:Ste,getOptionValue:Ate};r[0].tableId!==void 0&&(P.value=r[0].tableId),i=new Qe({props:P}),Z.push(()=>ce(i,"value",T)),o=new Ze({props:{small:!0,$$slots:{default:[wte]},$$scope:{ctx:r}}}),u=new jn({props:{bindings:r[1],title:"Row ID to delete",value:r[0].rowId}}),u.$on("change",r[5]),c=new Ze({props:{small:!0,$$slots:{default:[yte]},$$scope:{ctx:r}}}),d=new jn({props:{bindings:r[1],title:"Row rev to delete",value:r[0].revId}}),d.$on("change",r[6]),h=new Ze({props:{small:!0}});function M(B){r[7](B)}let F={text:"Require confirmation"};r[0].confirm!==void 0&&(F.value=r[0].confirm),C=new Zr({props:F}),Z.push(()=>ce(C,"value",M));let j=r[0].confirm&&Z6(r);return{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),f=R(),S(c.$$.fragment),p=R(),S(d.$$.fragment),g=R(),S(h.$$.fragment),v=R(),S(C.$$.fragment),I=R(),j&&j.c(),w(e,"class","root svelte-dlpmjc")},m(B,q){$(B,e,q),A(t,e,null),N(e,n),A(i,e,null),N(e,s),A(o,e,null),N(e,a),A(u,e,null),N(e,f),A(c,e,null),N(e,p),A(d,e,null),N(e,g),A(h,e,null),N(e,v),A(C,e,null),N(e,I),j&&j.m(e,null),O=!0},p(B,[q]){const G={};q&512&&(G.$$scope={dirty:q,ctx:B}),t.$set(G);const Y={};q&4&&(Y.options=B[2]),!l&&q&1&&(l=!0,Y.value=B[0].tableId,pe(()=>l=!1)),i.$set(Y);const U={};q&512&&(U.$$scope={dirty:q,ctx:B}),o.$set(U);const H={};q&2&&(H.bindings=B[1]),q&1&&(H.value=B[0].rowId),u.$set(H);const W={};q&512&&(W.$$scope={dirty:q,ctx:B}),c.$set(W);const Q={};q&2&&(Q.bindings=B[1]),q&1&&(Q.value=B[0].revId),d.$set(Q);const se={};!y&&q&1&&(y=!0,se.value=B[0].confirm,pe(()=>y=!1)),C.$set(se),B[0].confirm?j?(j.p(B,q),q&1&&m(j,1)):(j=Z6(B),j.c(),m(j,1),j.m(e,null)):j&&(ee(),_(j,1,1,()=>{j=null}),te())},i(B){O||(m(t.$$.fragment,B),m(i.$$.fragment,B),m(o.$$.fragment,B),m(u.$$.fragment,B),m(c.$$.fragment,B),m(d.$$.fragment,B),m(h.$$.fragment,B),m(C.$$.fragment,B),m(j),O=!0)},o(B){_(t.$$.fragment,B),_(i.$$.fragment,B),_(o.$$.fragment,B),_(u.$$.fragment,B),_(c.$$.fragment,B),_(d.$$.fragment,B),_(h.$$.fragment,B),_(C.$$.fragment,B),_(j),O=!1},d(B){B&&b(e),E(t),E(i),E(o),E(u),E(c),E(d),E(h),E(C),j&&j.d()}}}const Ste=r=>r.name,Ate=r=>r._id;function Ete(r,e,t){let n,i;fe(r,Ot,p=>t(3,i=p));let{parameters:l}=e,{bindings:s=[]}=e;function o(p){r.$$.not_equal(l.tableId,p)&&(l.tableId=p,t(0,l))}const a=p=>t(0,l.rowId=p.detail,l),u=p=>t(0,l.revId=p.detail,l);function f(p){r.$$.not_equal(l.confirm,p)&&(l.confirm=p,t(0,l))}function c(p){r.$$.not_equal(l.confirmText,p)&&(l.confirmText=p,t(0,l))}return r.$$set=p=>{"parameters"in p&&t(0,l=p.parameters),"bindings"in p&&t(1,s=p.bindings)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=i.list||[])},[l,s,n,i,o,a,u,f,c]}class Ote extends ie{constructor(e){super();le(this,e,Ete,Cte,re,{parameters:0,bindings:1})}}function x6(r){let e,t,n,i,l;function s(u){r[9](u)}let o={label:"Query",options:r[3].list.filter(r[8]),getOptionLabel:Nte,getOptionValue:Rte};r[0].queryId!==void 0&&(o.value=r[0].queryId),e=new Qe({props:o}),Z.push(()=>ce(e,"value",s));let a=r[0].queryId&&ew(r);return{c(){S(e.$$.fragment),n=R(),a&&a.c(),i=Ee()},m(u,f){A(e,u,f),$(u,n,f),a&&a.m(u,f),$(u,i,f),l=!0},p(u,f){const c={};f&24&&(c.options=u[3].list.filter(u[8])),!t&&f&1&&(t=!0,c.value=u[0].queryId,pe(()=>t=!1)),e.$set(c),u[0].queryId?a?(a.p(u,f),f&1&&m(a,1)):(a=ew(u),a.c(),m(a,1),a.m(i.parentNode,i)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(u){l||(m(e.$$.fragment,u),m(a),l=!0)},o(u){_(e.$$.fragment,u),_(a),l=!1},d(u){E(e,u),u&&b(n),a&&a.d(u),u&&b(i)}}}function ew(r){var c,p;let e,t,n,i,l,s;function o(d){r[10](d)}let a={text:"Require confirmation"};r[0].confirm!==void 0&&(a.value=r[0].confirm),e=new Zr({props:a}),Z.push(()=>ce(e,"value",o));let u=r[0].confirm&&tw(r),f=((p=(c=r[5])==null?void 0:c.parameters)==null?void 0:p.length)>0&&nw(r);return{c(){S(e.$$.fragment),n=R(),u&&u.c(),i=R(),f&&f.c(),l=Ee()},m(d,g){A(e,d,g),$(d,n,g),u&&u.m(d,g),$(d,i,g),f&&f.m(d,g),$(d,l,g),s=!0},p(d,g){var v,C;const h={};!t&&g&1&&(t=!0,h.value=d[0].confirm,pe(()=>t=!1)),e.$set(h),d[0].confirm?u?(u.p(d,g),g&1&&m(u,1)):(u=tw(d),u.c(),m(u,1),u.m(i.parentNode,i)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),((C=(v=d[5])==null?void 0:v.parameters)==null?void 0:C.length)>0?f?(f.p(d,g),g&32&&m(f,1)):(f=nw(d),f.c(),m(f,1),f.m(l.parentNode,l)):f&&(ee(),_(f,1,1,()=>{f=null}),te())},i(d){s||(m(e.$$.fragment,d),m(u),m(f),s=!0)},o(d){_(e.$$.fragment,d),_(u),_(f),s=!1},d(d){E(e,d),d&&b(n),u&&u.d(d),d&&b(i),f&&f.d(d),d&&b(l)}}}function tw(r){let e,t,n;function i(s){r[11](s)}let l={label:"Confirm text",placeholder:"Are you sure you want to execute this query?"};return r[0].confirmText!==void 0&&(l.value=r[0].confirmText),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&1&&(t=!0,a.value=s[0].confirmText,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function nw(r){let e,t,n,i,l,s,o;function a(c){r[12](c)}function u(c){r[13](c)}let f={queryBindings:r[5].parameters};return r[0].queryParams!==void 0&&(f.customParams=r[0].queryParams),r[1]!==void 0&&(f.bindings=r[1]),t=new y1({props:f}),Z.push(()=>ce(t,"customParams",a)),Z.push(()=>ce(t,"bindings",u)),s=new _1({props:{height:200,query:r[5],schema:r[6](r[5]),editable:!1,datasource:r[4]}}),{c(){e=D("div"),S(t.$$.fragment),l=R(),S(s.$$.fragment),w(e,"class","params svelte-s3zryk")},m(c,p){$(c,e,p),A(t,e,null),N(e,l),A(s,e,null),o=!0},p(c,p){const d={};p&32&&(d.queryBindings=c[5].parameters),!n&&p&1&&(n=!0,d.customParams=c[0].queryParams,pe(()=>n=!1)),!i&&p&2&&(i=!0,d.bindings=c[1],pe(()=>i=!1)),t.$set(d);const g={};p&32&&(g.query=c[5]),p&32&&(g.schema=c[6](c[5])),p&16&&(g.datasource=c[4]),s.$set(g)},i(c){o||(m(t.$$.fragment,c),m(s.$$.fragment,c),o=!0)},o(c){_(t.$$.fragment,c),_(s.$$.fragment,c),o=!1},d(c){c&&b(e),E(t),E(s)}}}function Tte(r){let e,t,n,i,l;function s(u){r[7](u)}let o={label:"Datasource",options:r[2].list,getOptionLabel:Lte,getOptionValue:Pte};r[0].datasourceId!==void 0&&(o.value=r[0].datasourceId),e=new Qe({props:o}),Z.push(()=>ce(e,"value",s));let a=r[0].datasourceId&&x6(r);return{c(){S(e.$$.fragment),n=R(),a&&a.c(),i=Ee()},m(u,f){A(e,u,f),$(u,n,f),a&&a.m(u,f),$(u,i,f),l=!0},p(u,f){const c={};f&4&&(c.options=u[2].list),!t&&f&1&&(t=!0,c.value=u[0].datasourceId,pe(()=>t=!1)),e.$set(c),u[0].datasourceId?a?(a.p(u,f),f&1&&m(a,1)):(a=x6(u),a.c(),m(a,1),a.m(i.parentNode,i)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(u){l||(m(e.$$.fragment,u),m(a),l=!0)},o(u){_(e.$$.fragment,u),_(a),l=!1},d(u){E(e,u),u&&b(n),a&&a.d(u),u&&b(i)}}}function Ite(r){let e,t;return e=new Ye({props:{gap:"XS",noPadding:!0,$$slots:{default:[Tte]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&32831&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const Lte=r=>r.name,Pte=r=>r._id,Nte=r=>r.name,Rte=r=>r._id;function Mte(r,e,t){let n,i,l,s,o;fe(r,Ql,y=>t(14,l=y)),fe(r,en,y=>t(2,s=y)),fe(r,kn,y=>t(3,o=y));let{parameters:a}=e,{bindings:u=[]}=e;function f(y){const I=s.list.find(O=>O._id===y.datasourceId).source;return l[I].query[y.queryVerb]}function c(y){r.$$.not_equal(a.datasourceId,y)&&(a.datasourceId=y,t(0,a))}const p=y=>y.datasourceId===i._id;function d(y){r.$$.not_equal(a.queryId,y)&&(a.queryId=y,t(0,a))}function g(y){r.$$.not_equal(a.confirm,y)&&(a.confirm=y,t(0,a))}function h(y){r.$$.not_equal(a.confirmText,y)&&(a.confirmText=y,t(0,a))}function v(y){r.$$.not_equal(a.queryParams,y)&&(a.queryParams=y,t(0,a))}function C(y){u=y,t(1,u)}return r.$$set=y=>{"parameters"in y&&t(0,a=y.parameters),"bindings"in y&&t(1,u=y.bindings)},r.$$.update=()=>{r.$$.dirty&9&&t(5,n=o.list.find(y=>y._id===a.queryId)),r.$$.dirty&5&&t(4,i=s.list.find(y=>y._id===a.datasourceId))},[a,u,s,o,i,n,f,c,p,d,g,h,v,C]}class Dte extends ie{constructor(e){super();le(this,e,Mte,Ite,re,{parameters:0,bindings:1})}}function jte(r){let e;return{c(){e=V("Create a new automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Bte(r){let e;return{c(){e=V("Use an existing automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function zte(r){let e;return{c(){e=V("Automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qte(r){let e,t,n;function i(s){r[16](s)}let l={placeholder:"Enter automation name"};return r[0].newAutomationName!==void 0&&(l.value=r[0].newAutomationName),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&1&&(t=!0,a.value=s[0].newAutomationName,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Ute(r){let e,t,n;function i(s){r[15](s)}let l={placeholder:"Choose automation",options:r[2],getOptionLabel:Hte,getOptionValue:Wte};return r[0].automationId!==void 0&&(l.value=r[0].automationId),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&4&&(a.options=s[2]),!t&&o&1&&(t=!0,a.value=s[0].automationId,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function rw(r){let e,t,n,i,l;e=new Ze({props:{small:!0,$$slots:{default:[Fte]},$$scope:{ctx:r}}});function s(a){r[18](a)}let o={placeholder:"Are you sure you want to trigger this automation?"};return r[0].confirmText!==void 0&&(o.value=r[0].confirmText),n=new tt({props:o}),Z.push(()=>ce(n,"value",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&524288&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};!i&&u&1&&(i=!0,c.value=a[0].confirmText,pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function Fte(r){let e;return{c(){e=V("Confirm text")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function iw(r){let e,t;return e=new O1({props:{schemaFields:r[4],parameterFields:r[0].fields,fieldLabel:"Field",bindings:r[1]}}),e.$on("change",r[7]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.schemaFields=n[4]),i&1&&(l.parameterFields=n[0].fields),i&2&&(l.bindings=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Vte(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F,j,B,q=r[0].automationId,G,Y,U;s=new Ze({props:{small:!0,$$slots:{default:[jte]},$$scope:{ctx:r}}}),p=new Ze({props:{small:!0,grey:!r[5],$$slots:{default:[Bte]},$$scope:{ctx:r}}}),h=new Ze({props:{small:!0,$$slots:{default:[zte]},$$scope:{ctx:r}}});const H=[Ute,qte],W=[];function Q(_e,Me){return _e[3]===_e[6].EXISTING?0:1}C=Q(r),y=W[C]=H[C](r),O=new Ze({props:{small:!0}});function se(_e){r[17](_e)}let K={text:"Require confirmation"};r[0].confirm!==void 0&&(K.value=r[0].confirm),P=new Zr({props:K}),Z.push(()=>ce(P,"value",se));let ne=r[0].confirm&&rw(r),ae=iw(r);return{c(){e=D("div"),t=D("div"),n=D("div"),i=D("input"),l=R(),S(s.$$.fragment),o=R(),a=D("div"),u=D("input"),c=R(),S(p.$$.fragment),d=R(),g=D("div"),S(h.$$.fragment),v=R(),y.c(),I=R(),S(O.$$.fragment),T=R(),S(P.$$.fragment),F=R(),ne&&ne.c(),j=R(),B=D("div"),ae.c(),w(i,"type","radio"),i.__value=r[6].NEW,i.value=i.__value,w(i,"class","svelte-zdxuks"),r[13][0].push(i),w(n,"class","radio-container svelte-zdxuks"),w(u,"type","radio"),u.__value=r[6].EXISTING,u.value=u.__value,u.disabled=f=!r[5],w(u,"class","svelte-zdxuks"),r[13][0].push(u),w(a,"class","radio-container svelte-zdxuks"),w(t,"class","radios svelte-zdxuks"),w(g,"class","params svelte-zdxuks"),w(B,"class","fields svelte-zdxuks"),w(e,"class","root svelte-zdxuks")},m(_e,Me){$(_e,e,Me),N(e,t),N(t,n),N(n,i),i.checked=i.__value===r[3],N(n,l),A(s,n,null),N(t,o),N(t,a),N(a,u),u.checked=u.__value===r[3],N(a,c),A(p,a,null),N(e,d),N(e,g),A(h,g,null),N(g,v),W[C].m(g,null),N(g,I),A(O,g,null),N(g,T),A(P,g,null),N(g,F),ne&&ne.m(g,null),N(e,j),N(e,B),ae.m(B,null),G=!0,Y||(U=[Pe(i,"change",r[12]),Pe(n,"click",r[8]),Pe(u,"change",r[14]),Pe(a,"click",function(){ct(r[5]?r[9]:null)&&(r[5]?r[9]:null).apply(this,arguments)})],Y=!0)},p(_e,[Me]){r=_e,Me&8&&(i.checked=i.__value===r[3]);const we={};Me&524288&&(we.$$scope={dirty:Me,ctx:r}),s.$set(we),(!G||Me&32&&f!==(f=!r[5]))&&(u.disabled=f),Me&8&&(u.checked=u.__value===r[3]);const $e={};Me&32&&($e.grey=!r[5]),Me&524288&&($e.$$scope={dirty:Me,ctx:r}),p.$set($e);const ge={};Me&524288&&(ge.$$scope={dirty:Me,ctx:r}),h.$set(ge);let Ne=C;C=Q(r),C===Ne?W[C].p(r,Me):(ee(),_(W[Ne],1,1,()=>{W[Ne]=null}),te(),y=W[C],y?y.p(r,Me):(y=W[C]=H[C](r),y.c()),m(y,1),y.m(g,I));const Ue={};!M&&Me&1&&(M=!0,Ue.value=r[0].confirm,pe(()=>M=!1)),P.$set(Ue),r[0].confirm?ne?(ne.p(r,Me),Me&1&&m(ne,1)):(ne=rw(r),ne.c(),m(ne,1),ne.m(g,null)):ne&&(ee(),_(ne,1,1,()=>{ne=null}),te()),Me&1&&re(q,q=r[0].automationId)?(ee(),_(ae,1,1,Oe),te(),ae=iw(r),ae.c(),m(ae),ae.m(B,null)):ae.p(r,Me)},i(_e){G||(m(s.$$.fragment,_e),m(p.$$.fragment,_e),m(h.$$.fragment,_e),m(y),m(O.$$.fragment,_e),m(P.$$.fragment,_e),m(ne),m(ae),G=!0)},o(_e){_(s.$$.fragment,_e),_(p.$$.fragment,_e),_(h.$$.fragment,_e),_(y),_(O.$$.fragment,_e),_(P.$$.fragment,_e),_(ne),_(ae),G=!1},d(_e){_e&&b(e),r[13][0].splice(r[13][0].indexOf(i),1),E(s),r[13][0].splice(r[13][0].indexOf(u),1),E(p),E(h),W[C].d(),E(O),E(P),ne&&ne.d(),ae.d(_e),Y=!1,Tn(U)}}}const Hte=r=>r.name,Wte=r=>r._id;function Gte(r,e,t){let n,i,l,s,o;fe(r,Zt,P=>t(11,o=P));let{parameters:a={}}=e,{bindings:u=[]}=e;const f={NEW:"new",EXISTING:"existing"};let c=a.automationId?f.EXISTING:f.NEW;const p=P=>{t(0,a.fields=P.detail,a)},d=()=>{t(3,c=f.NEW),t(0,a.automationId=void 0,a),t(0,a.fields={},a)},g=()=>{var P;t(3,c=f.EXISTING),t(0,a.newAutomationName="",a),t(0,a.fields={},a),t(0,a.automationId=(P=n[0])==null?void 0:P._id,a)},h=[[]];function v(){c=this.__value,t(3,c)}function C(){c=this.__value,t(3,c)}function y(P){r.$$.not_equal(a.automationId,P)&&(a.automationId=P,t(0,a))}function I(P){r.$$.not_equal(a.newAutomationName,P)&&(a.newAutomationName=P,t(0,a))}function O(P){r.$$.not_equal(a.confirm,P)&&(a.confirm=P,t(0,a))}function T(P){r.$$.not_equal(a.confirmText,P)&&(a.confirmText=P,t(0,a))}return r.$$set=P=>{"parameters"in P&&t(0,a=P.parameters),"bindings"in P&&t(1,u=P.bindings)},r.$$.update=()=>{r.$$.dirty&2048&&t(2,n=o.automations.filter(P=>{var M;return((M=P.definition.trigger)==null?void 0:M.stepId)==="APP"}).map(P=>{const M=Object.entries(P.definition.trigger.inputs.fields).map(([F,j])=>({name:F,type:j}));return{name:P.name,_id:P._id,schema:M}})),r.$$.dirty&4&&t(5,i=n&&n.length>0),r.$$.dirty&5&&t(10,l=n==null?void 0:n.find(P=>P._id===(a==null?void 0:a.automationId))),r.$$.dirty&1024&&t(4,s=l==null?void 0:l.schema)},[a,u,n,c,s,i,f,p,d,g,l,o,v,h,C,y,I,O,T]}class Yte extends ie{constructor(e){super();le(this,e,Gte,Vte,re,{parameters:0,bindings:1})}}function Jte(r){let e;return{c(){e=V("Form")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qte(r){let e,t,n,i,l,s,o,a,u,f,c;t=new Ze({props:{small:!0,$$slots:{default:[Jte]},$$scope:{ctx:r}}});function p(v){r[4](v)}let d={options:r[1],getOptionLabel:Xte,getOptionValue:Kte};r[0].componentId!==void 0&&(d.value=r[0].componentId),i=new Qe({props:d}),Z.push(()=>ce(i,"value",p));function g(v){r[5](v)}let h={text:"Validate only current step"};return r[0].onlyCurrentStep!==void 0&&(h.value=r[0].onlyCurrentStep),u=new Zr({props:h}),Z.push(()=>ce(u,"value",g)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),o=D("div"),a=R(),S(u.$$.fragment),w(e,"class","root svelte-ss4wgk")},m(v,C){$(v,e,C),A(t,e,null),N(e,n),A(i,e,null),N(e,s),N(e,o),N(e,a),A(u,e,null),c=!0},p(v,[C]){const y={};C&64&&(y.$$scope={dirty:C,ctx:v}),t.$set(y);const I={};C&2&&(I.options=v[1]),!l&&C&1&&(l=!0,I.value=v[0].componentId,pe(()=>l=!1)),i.$set(I);const O={};!f&&C&1&&(f=!0,O.value=v[0].onlyCurrentStep,pe(()=>f=!1)),u.$set(O)},i(v){c||(m(t.$$.fragment,v),m(i.$$.fragment,v),m(u.$$.fragment,v),c=!0)},o(v){_(t.$$.fragment,v),_(i.$$.fragment,v),_(u.$$.fragment,v),c=!1},d(v){v&&b(e),E(t),E(i),E(u)}}}const Xte=r=>r._instanceName,Kte=r=>r._id;function Zte(r,e,t){let n,i,l;fe(r,He,u=>t(2,i=u)),fe(r,fn,u=>t(3,l=u));let{parameters:s}=e;function o(u){r.$$.not_equal(s.componentId,u)&&(s.componentId=u,t(0,s))}function a(u){r.$$.not_equal(s.onlyCurrentStep,u)&&(s.onlyCurrentStep=u,t(0,s))}return r.$$set=u=>{"parameters"in u&&t(0,s=u.parameters)},r.$$.update=()=>{r.$$.dirty&12&&t(1,n=Jf(l,i.selectedComponentId,"ValidateForm"))},[s,n,i,l,o,a]}class xte extends ie{constructor(e){super();le(this,e,Zte,Qte,re,{parameters:0})}}function ene(r){let e;return{c(){e=V(`Please enter the URL you would like to be redirected to after logging out.
@@ -1223,7 +1223,7 @@ function print() { __p += __j.call(arguments, '') }
1223
1223
  from.
1224
1224
  `),t=D("br"),n=V(`
1225
1225
  Please ensure you have enabled row selection in the table settings.`)},m(i,l){$(i,e,l),$(i,t,l),$(i,n,l)},d(i){i&&b(e),i&&b(t),i&&b(n)}}}function xne(r){let e;return{c(){e=V("Table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ere(r){let e;return{c(){e=V("Export as")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tre(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;t=new Ke({props:{size:"S",$$slots:{default:[Zne]},$$scope:{ctx:r}}}),l=new Ze({props:{small:!0,$$slots:{default:[xne]},$$scope:{ctx:r}}});function h(I){r[6](I)}let v={options:r[1]};r[0].tableComponentId!==void 0&&(v.value=r[0].tableComponentId),o=new Qe({props:v}),Z.push(()=>ce(o,"value",h)),f=new Ze({props:{small:!0,$$slots:{default:[ere]},$$scope:{ctx:r}}});function C(I){r[7](I)}let y={options:r[2]};return r[0].type!==void 0&&(y.value=r[0].type),p=new Qe({props:y}),Z.push(()=>ce(p,"value",C)),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),s=R(),S(o.$$.fragment),u=R(),S(f.$$.fragment),c=R(),S(p.$$.fragment),w(i,"class","params svelte-zlqv5b"),w(e,"class","root svelte-zlqv5b")},m(I,O){$(I,e,O),A(t,e,null),N(e,n),N(e,i),A(l,i,null),N(i,s),A(o,i,null),N(i,u),A(f,i,null),N(i,c),A(p,i,null),g=!0},p(I,[O]){const T={};O&256&&(T.$$scope={dirty:O,ctx:I}),t.$set(T);const P={};O&256&&(P.$$scope={dirty:O,ctx:I}),l.$set(P);const M={};O&2&&(M.options=I[1]),!a&&O&1&&(a=!0,M.value=I[0].tableComponentId,pe(()=>a=!1)),o.$set(M);const F={};O&256&&(F.$$scope={dirty:O,ctx:I}),f.$set(F);const j={};!d&&O&1&&(d=!0,j.value=I[0].type,pe(()=>d=!1)),p.$set(j)},i(I){g||(m(t.$$.fragment,I),m(l.$$.fragment,I),m(o.$$.fragment,I),m(f.$$.fragment,I),m(p.$$.fragment,I),g=!0)},o(I){_(t.$$.fragment,I),_(l.$$.fragment,I),_(o.$$.fragment,I),_(f.$$.fragment,I),_(p.$$.fragment,I),g=!1},d(I){I&&b(e),E(t),E(l),E(o),E(f),E(p)}}}function nre(r,e,t){let n,i,l,s;fe(r,fn,c=>t(5,s=c));let{parameters:o}=e;const a=[{label:"CSV",value:"csv"},{label:"JSON",value:"json"}];Ft(()=>{o.type||t(0,o.type="csv",o)});function u(c){r.$$.not_equal(o.tableComponentId,c)&&(o.tableComponentId=c,t(0,o))}function f(c){r.$$.not_equal(o.type,c)&&(o.type=c,t(0,o))}return r.$$set=c=>{"parameters"in c&&t(0,o=c.parameters)},r.$$.update=()=>{r.$$.dirty&32&&t(4,n=Kl(s==null?void 0:s.props,c=>c._component.endsWith("table")).map(c=>({label:c._instanceName,value:c._id}))),r.$$.dirty&32&&t(3,i=Kl(s==null?void 0:s.props,c=>c._component.endsWith("tableblock")).map(c=>({label:c._instanceName,value:`${c._id}-table`}))),r.$$.dirty&24&&t(1,l=n.concat(i))},[o,l,a,i,n,s,u,f]}class rre extends ie{constructor(e){super();le(this,e,nre,tre,re,{parameters:0})}}function ire(r){let e;return{c(){e=V(`Configure a condition to be evaluated which can stop further actions from
1226
- being executed.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function lre(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;t=new Ke({props:{size:"S",$$slots:{default:[ire]},$$scope:{ctx:r}}});function h(T){r[4](T)}let v={options:r[2],placeholder:null};r[0].type!==void 0&&(v.value=r[0].type),i=new Qe({props:v}),Z.push(()=>ce(i,"value",h)),o=new jn({props:{placeholder:"Value",value:r[0].value,bindings:r[1]}}),o.$on("change",r[5]);function C(T){r[6](T)}let y={options:r[3],placeholder:null};r[0].operator!==void 0&&(y.value=r[0].operator),u=new Qe({props:y}),Z.push(()=>ce(u,"value",C));function I(T){r[7](T)}let O={placeholder:"Reference value",bindings:r[1]};return r[0].referenceValue!==void 0&&(O.value=r[0].referenceValue),p=new jn({props:O}),Z.push(()=>ce(p,"value",I)),p.$on("change",r[8]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),c=R(),S(p.$$.fragment),w(e,"class","root svelte-1yfkfsp")},m(T,P){$(T,e,P),A(t,e,null),N(e,n),A(i,e,null),N(e,s),A(o,e,null),N(e,a),A(u,e,null),N(e,c),A(p,e,null),g=!0},p(T,[P]){const M={};P&512&&(M.$$scope={dirty:P,ctx:T}),t.$set(M);const F={};!l&&P&1&&(l=!0,F.value=T[0].type,pe(()=>l=!1)),i.$set(F);const j={};P&1&&(j.value=T[0].value),P&2&&(j.bindings=T[1]),o.$set(j);const B={};!f&&P&1&&(f=!0,B.value=T[0].operator,pe(()=>f=!1)),u.$set(B);const q={};P&2&&(q.bindings=T[1]),!d&&P&1&&(d=!0,q.value=T[0].referenceValue,pe(()=>d=!1)),p.$set(q)},i(T){g||(m(t.$$.fragment,T),m(i.$$.fragment,T),m(o.$$.fragment,T),m(u.$$.fragment,T),m(p.$$.fragment,T),g=!0)},o(T){_(t.$$.fragment,T),_(i.$$.fragment,T),_(o.$$.fragment,T),_(u.$$.fragment,T),_(p.$$.fragment,T),g=!1},d(T){T&&b(e),E(t),E(i),E(o),E(u),E(p)}}}function sre(r,e,t){let{parameters:n}=e,{bindings:i}=e;const l=[{label:"Continue if",value:"continue"},{label:"Stop if",value:"stop"}],s=[{label:"Equals",value:"equal"},{label:"Not equals",value:"notEqual"}];Ft(()=>{n.type||t(0,n.type="continue",n),n.operator||t(0,n.operator="equal",n)});function o(p){r.$$.not_equal(n.type,p)&&(n.type=p,t(0,n))}const a=p=>t(0,n.value=p.detail,n);function u(p){r.$$.not_equal(n.operator,p)&&(n.operator=p,t(0,n))}function f(p){r.$$.not_equal(n.referenceValue,p)&&(n.referenceValue=p,t(0,n))}const c=p=>t(0,n.referenceValue=p.detail,n);return r.$$set=p=>{"parameters"in p&&t(0,n=p.parameters),"bindings"in p&&t(1,i=p.bindings)},[n,i,l,s,o,a,u,f,c]}class ore extends ie{constructor(e){super();le(this,e,sre,lre,re,{parameters:0,bindings:1})}}var are=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",NavigateTo:rte,SaveRow:bte,DeleteRow:Ote,ExecuteQuery:Dte,TriggerAutomation:Yte,ValidateForm:xte,LogOut:lne,ClearForm:cne,CloseScreenModal:gne,ChangeFormStep:kne,UpdateState:Ine,RefreshDataProvider:Dne,DuplicateRow:Wne,S3Upload:Kne,ExportData:rre,ContinueIf:ore});const ure=(r=!1)=>Cv.actions.filter(e=>{var t;return r||!e.dependsOnFeature?!0:((t=it(He).clientFeatures)==null?void 0:t[e.dependsOnFeature])===!0}).map(e=>lt(Se({},e),{component:are[e.component]})).filter(e=>e.component!=null);function uw(r,e,t){const n=r.slice();return n[16]=e[t],n}function fw(r,e,t){const n=r.slice();return n[19]=e[t],n[21]=t,n}function cw(r){let e=r[1].id,t,n,i=pw(r);return{c(){i.c(),t=Ee()},m(l,s){i.m(l,s),$(l,t,s),n=!0},p(l,s){s&2&&re(e,e=l[1].id)?(ee(),_(i,1,1,Oe),te(),i=pw(l),i.c(),m(i),i.m(t.parentNode,t)):i.p(l,s)},i(l){n||(m(i),n=!0)},o(l){_(i),n=!1},d(l){l&&b(t),i.d(l)}}}function pw(r){let e,t,n;var i=r[2];function l(s){return{props:{parameters:s[1].parameters,bindings:s[3]}}}return i&&(t=new i(l(r))),{c(){e=D("div"),t&&S(t.$$.fragment),w(e,"class","selected-action-container")},m(s,o){$(s,e,o),t&&A(t,e,null),n=!0},p(s,o){const a={};if(o&2&&(a.parameters=s[1].parameters),o&8&&(a.bindings=s[3]),i!==(i=s[2])){if(t){ee();const u=t;_(u.$$.fragment,1,0,()=>{E(u,1)}),te()}i?(t=new i(l(s)),S(t.$$.fragment),m(t.$$.fragment,1),A(t,e,null)):t=null}else i&&t.$set(a)},i(s){n||(t&&m(t.$$.fragment,s),n=!0)},o(s){t&&_(t.$$.fragment,s),n=!1},d(s){s&&b(e),t&&E(t)}}}function fre(r){let e,t,n=r[2]&&cw(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,l){i[2]?n?(n.p(i,l),l&4&&m(n,1)):(n=cw(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function cre(r){let e,t;return e=new Ye({props:{noPadding:!0,$$slots:{default:[fre]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194318&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dw(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[19].id;for(let f=0;f<a.length;f+=1){let c=fw(r,a,f),p=u(c);n.set(p,t[f]=mw(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();w(e,"class","actions svelte-1dgx8bt")},m(f,c){$(f,e,c);for(let p=0;p<t.length;p+=1)t[p].m(e,null);l=!0,s||(o=[vr(i=Pu.call(null,e,{items:r[0],flipDurationMs:T1,dropTargetStyle:{outline:"none"}})),Pe(e,"consider",r[8]),Pe(e,"finalize",r[9])],s=!0)},p(f,c){if(c&163){a=f[0],ee();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,Uo,mw,null,fw);for(let p=0;p<t.length;p+=1)t[p].a();te()}i&&ct(i.update)&&c&1&&i.update.call(null,{items:f[0],flipDurationMs:T1,dropTargetStyle:{outline:"none"}})},i(f){if(!l){for(let c=0;c<a.length;c+=1)m(t[c]);l=!0}},o(f){for(let c=0;c<t.length;c+=1)_(t[c]);l=!1},d(f){f&&b(e);for(let c=0;c<t.length;c+=1)t[c].d();s=!1,Tn(o)}}}function mw(r,e){let t,n,i,l,s=e[21]+1+"",o,a,u=e[19][xf]+"",f,c,p,d,g,h=Oe,v,C,y;n=new gt({props:{name:"DragHandle",size:"XL"}});function I(){return e[15](e[21])}return p=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),p.$on("click",I),{key:r,first:null,c(){t=D("div"),S(n.$$.fragment),i=R(),l=D("div"),o=V(s),a=V(".\xA0"),f=V(u),c=R(),S(p.$$.fragment),d=R(),w(l,"class","action-header svelte-1dgx8bt"),w(t,"class","action-container svelte-1dgx8bt"),oe(t,"selected",e[19]===e[1]),this.first=t},m(O,T){$(O,t,T),A(n,t,null),N(t,i),N(t,l),N(l,o),N(l,a),N(l,f),N(t,c),A(p,t,null),N(t,d),v=!0,C||(y=Pe(t,"click",function(){ct(e[7](e[19]))&&e[7](e[19]).apply(this,arguments)}),C=!0)},p(O,T){e=O,(!v||T&1)&&s!==(s=e[21]+1+"")&&Te(o,s),(!v||T&1)&&u!==(u=e[19][xf]+"")&&Te(f,u),T&3&&oe(t,"selected",e[19]===e[1])},r(){g=t.getBoundingClientRect()},f(){Fo(t),h()},a(){h(),h=Vo(t,g,Ho,{duration:T1})},i(O){v||(m(n.$$.fragment,O),m(p.$$.fragment,O),v=!0)},o(O){_(n.$$.fragment,O),_(p.$$.fragment,O),v=!1},d(O){O&&b(t),E(n),E(p),C=!1,y()}}}function pre(r){let e=r[16].name+"",t,n;return{c(){t=V(e),n=R()},m(i,l){$(i,t,l),$(i,n,l)},p:Oe,d(i){i&&b(t),i&&b(n)}}}function gw(r){let e,t;return e=new Qt({props:{$$slots:{default:[pre]},$$scope:{ctx:r}}}),e.$on("click",r[6](r[16])),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194304&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dre(r){let e,t,n=r[4],i=[];for(let s=0;s<n.length;s+=1)i[s]=gw(uw(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=Ee()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o&80){n=s[4];let a;for(a=0;a<n.length;a+=1){const u=uw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=gw(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){$t(i,s),s&&b(e)}}}function mre(r){let e;return{c(){e=V("Add Action")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gre(r){let e,t;return e=new ut({props:{slot:"control",secondary:!0,$$slots:{default:[mre]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194304&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function _re(r){let e,t,n,i=r[0]&&r[0].length>0&&dw(r);return t=new wr({props:{$$slots:{control:[gre],default:[dre]},$$scope:{ctx:r}}}),{c(){i&&i.c(),e=R(),S(t.$$.fragment)},m(l,s){i&&i.m(l,s),$(l,e,s),A(t,l,s),n=!0},p(l,s){l[0]&&l[0].length>0?i?(i.p(l,s),s&1&&m(i,1)):(i=dw(l),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(ee(),_(i,1,1,()=>{i=null}),te());const o={};s&4194304&&(o.$$scope={dirty:s,ctx:l}),t.$set(o)},i(l){n||(m(i),m(t.$$.fragment,l),n=!0)},o(l){_(i),_(t.$$.fragment,l),n=!1},d(l){i&&i.d(l),l&&b(e),E(t,l)}}}function hre(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[_re]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194307&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function $re(r){let e,t;return e=new Ai({props:{$$slots:{sidebar:[hre],default:[cre]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&4194319&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const T1=150,xf="##eventHandlerType";function bre(r,e,t){let n,i,l,s,o;fe(r,He,I=>t(13,s=I)),fe(r,fn,I=>t(14,o=I));const a=ure();let{key:u}=e,{actions:f}=e,{bindings:c=[]}=e,p=(f==null?void 0:f.length)?f[0]:null;const d=I=>{f.splice(I,1),t(0,f)},g=I=>()=>{const O={parameters:{},[xf]:I.name,id:Br.generate()};f||t(0,f=[]),t(0,f=[...f,O]),t(1,p=O)},h=I=>()=>{t(1,p=I)};function v(I){t(0,f=I.detail.items)}function C(I){t(0,f=I.detail.items)}const y=I=>d(I);return r.$$set=I=>{"key"in I&&t(10,u=I.key),"actions"in I&&t(0,f=I.actions),"bindings"in I&&t(11,c=I.bindings)},r.$$.update=()=>{var I;r.$$.dirty&3&&p&&!(f==null?void 0:f.includes(p))&&t(1,p=f==null?void 0:f[0]),r.$$.dirty&25603&&t(12,n=jq(o,s.selectedComponentId,u,f,p==null?void 0:p.id)),r.$$.dirty&6144&&t(3,i=n.concat(c)),r.$$.dirty&1&&f&&f.forEach(O=>{O.id||(O.id=Br.generate())}),r.$$.dirty&2&&t(2,l=p&&((I=a.find(O=>O.name===p[xf]))==null?void 0:I.component))},[f,p,l,i,a,d,g,h,v,C,u,c,n,s,o,y]}class vre extends ie{constructor(e){super();le(this,e,bre,$re,re,{key:10,actions:0,bindings:11})}}function wre(r){let e;return{c(){e=V("Define actions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yre(r){let e;return{c(){e=V("Define what actions to run.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function kre(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cre(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[kre]},$$scope:{ctx:r}}}),e.$on("click",r[6]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8192&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Sre(r){let e,t,n;function i(s){r[8](s)}let l={slot:"body",eventType:r[1],bindings:r[2],key:r[0]};return r[4]!==void 0&&(l.actions=r[4]),e=new vre({props:l}),Z.push(()=>ce(e,"actions",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.eventType=s[1]),o&4&&(a.bindings=s[2]),o&1&&(a.key=s[0]),!t&&o&16&&(t=!0,a.actions=s[4],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Are(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[wre]},$$scope:{ctx:r}}}),e.$on("click",r[5]);let l={title:"Actions",$$slots:{body:[Sre],buttons:[Cre],description:[yre]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[9](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&8192&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&8215&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[9](null),E(n,s)}}}function Ere(r,e,t){let n;fe(r,Zt,v=>t(10,n=v));const i=ht();let{key:l}=e,{value:s=[]}=e,{name:o}=e,{bindings:a}=e,u,f;const c=()=>{t(4,f=vn.cloneDeep(s)),u.show()},p=async()=>{const v=f.filter(C=>C["##eventHandlerType"]==="Trigger Automation");for(let C of v)await d(C.parameters);i("change",f),ye.success("Component actions saved."),u.hide()},d=async v=>{var C;if(!(v.automationId||!v.newAutomationName))try{await Zt.actions.create({name:v.newAutomationName});const y=n.blockDefinitions.TRIGGER.APP,I=n.selectedAutomation.constructBlock("TRIGGER","APP",y);I.inputs={fields:Object.keys(v.fields).reduce((O,T)=>(O[T]="string",O),{})},Zt.actions.addBlockToAutomation(I),await Zt.actions.save((C=n.selectedAutomation)==null?void 0:C.automation),v.automationId=n.selectedAutomation.automation._id,delete v.newAutomationName}catch{ye.error("Error creating automation")}};function g(v){f=v,t(4,f)}function h(v){Z[v?"unshift":"push"](()=>{u=v,t(3,u)})}return r.$$set=v=>{"key"in v&&t(0,l=v.key),"value"in v&&t(7,s=v.value),"name"in v&&t(1,o=v.name),"bindings"in v&&t(2,a=v.bindings)},[l,o,a,u,f,c,p,s,g,h]}class Ore extends ie{constructor(e){super();le(this,e,Ere,Are,re,{key:0,value:7,name:1,bindings:2})}}function _w(r,e,t){const n=r.slice();return n[3]=e[t],n}function hw(r){let e,t=r[3].name+"",n,i;return{c(){e=D("option"),n=V(t),e.__value=i=r[3]._id,e.value=e.__value},m(l,s){$(l,e,s),N(e,n)},p(l,s){s&2&&t!==(t=l[3].name+"")&&Te(n,t),s&2&&i!==(i=l[3]._id)&&(e.__value=i,e.value=e.__value)},d(l){l&&b(e)}}}function Tre(r){let e,t,n,i=r[1].list,l=[];for(let s=0;s<i.length;s+=1)l[s]=hw(_w(r,i,s));return{c(){e=D("option"),e.textContent="Choose a table",t=R();for(let s=0;s<l.length;s+=1)l[s].c();n=Ee(),e.__value="",e.value=e.__value},m(s,o){$(s,e,o),$(s,t,o);for(let a=0;a<l.length;a+=1)l[a].m(s,o);$(s,n,o)},p(s,o){if(o&2){i=s[1].list;let a;for(a=0;a<i.length;a+=1){const u=_w(s,i,a);l[a]?l[a].p(u,o):(l[a]=hw(u),l[a].c(),l[a].m(n.parentNode,n))}for(;a<l.length;a+=1)l[a].d(1);l.length=i.length}},d(s){s&&b(e),s&&b(t),$t(l,s),s&&b(n)}}}function Ire(r){let e,t,n;return t=new Qe({props:{extraThin:!0,secondary:!0,wide:!0,value:r[0],$$slots:{default:[Tre]},$$scope:{ctx:r}}}),t.$on("change",r[2]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","svelte-16jzcsd")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.value=i[0]),l&66&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Lre(r,e,t){let n;fe(r,Ot,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class Pre extends ie{constructor(e){super();le(this,e,Lre,Ire,re,{value:0})}}function Nre(r){let e,t;return e=new Jl({props:{value:r[0],spectrumTheme:r[1].theme}}),e.$on("change",r[2]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.spectrumTheme=n[1].theme),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Rre(r,e,t){let n;fe(r,He,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class I1 extends ie{constructor(e){super();le(this,e,Rre,Nre,re,{value:0})}}var $w={Buildings:{home:["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-2":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-3":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-4":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-5":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-6":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-7":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-8":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-gear":["house","\u623F\u5B50","\u5DE5\u5382"],"home-wifi":["smart home","\u623F\u5B50","\u5BB6\u5177","\u667A\u80FD\u5BB6\u5C45"],"home-smile":["house","smart home","smile","\u623F\u5B50","\u667A\u80FD\u5BB6\u5C45","\u5FAE\u7B11"],"home-smile-2":["house","smart home","smile","\u623F\u5B50","\u667A\u80FD\u5BB6\u5C45","\u5FAE\u7B11"],"home-heart":["house","\u5FC3","\u623F\u5B50","\u5BB6","\u4E3B\u9875","\u5B64\u513F\u9662"],building:["city","office","enterprise","\u5EFA\u7B51","\u57CE\u5E02","\u697C","\u529E\u516C\u697C","\u5199\u5B57\u697C","\u4F01\u4E1A"],"building-2":["city","office","construction","enterprise","\u57CE\u5E02","\u5EFA\u7B51","\u697C","\u4F01\u4E1A"],"building-3":["factory","plant","enterprise","\u5DE5\u5382","\u5EFA\u7B51","\u697C","\u4F01\u4E1A"],"building-4":["city","office","enterprise","\u5EFA\u7B51","\u57CE\u5E02","\u697C","\u529E\u516C\u697C","\u5199\u5B57\u697C","\u4F01\u4E1A"],hotel:["building","hotel","office","enterprise","tavern","\u5EFA\u7B51","\u9152\u5E97","\u697C","\u529E\u516C\u697C","\u5199\u5B57\u697C","\u4F01\u4E1A"],community:["building","hotel","\u793E\u533A","\u5EFA\u7B51","\u9152\u5E97"],government:["building","\u653F\u5E9C","\u5EFA\u7B51","\u5927\u4F1A\u5802"],bank:["bank","finance","savings","banking","\u94F6\u884C","\u4EA4\u6613\u6240"],store:["shop","mall","supermarket","\u5546\u5E97","\u8D85\u5E02","\u5E97\u94FA","\u5546\u5BB6"],"store-2":["shop","mall","supermarket","\u5546\u5E97","\u8D85\u5E02","\u5E97\u94FA","\u5546\u5BB6"],"store-3":["shop","mall","supermarket","\u5546\u5E97","\u8D85\u5E02","\u5E97\u94FA","\u5546\u5BB6"],hospital:["medical","health","\u533B\u9662"],"ancient-gate":["historical","genre","scenic","trip","travel","\u65C5\u884C","\u65C5\u6E38","\u57CE\u95E8","\u53E4\u4EE3","\u5386\u53F2","\u666F\u533A"],"ancient-pavilion":["historical","genre","scenic","trip","travel","\u65C5\u884C","\u65C5\u6E38","\u51C9\u4EAD","\u53E4\u4EE3","\u5386\u53F2","\u666F\u533A"]},Business:{mail:["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u4EF6\u7BB1"],"mail-open":["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u4EF6\u7BB1"],"mail-send":["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u53D1\u9001","\u53D1\u4EF6\u7BB1"],"mail-unread":["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u672A\u8BFB"],"mail-add":["envelope","email","inbox","add","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u65B0\u589E","\u6DFB\u52A0"],"mail-check":["envelope","email","inbox","read","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u5DF2\u8BFB"],"mail-close":["envelope","email","inbox","failed","x","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u5931\u8D25"],"mail-download":["envelope","email","inbox","download","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u4E0B\u8F7D"],"mail-forbid":["envelope","email","inbox","privacy","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u7981\u6B62"],"mail-lock":["envelope","email","inbox","lock","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u52A0\u5BC6"],"mail-settings":["envelope","email","inbox","settings","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u8BBE\u7F6E"],"mail-star":["envelope","email","inbox","favorite","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u85CF","\u559C\u6B22"],"mail-volume":["envelope","email","inbox","promotional email","email campaign","subscription","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u4EF6\u7BB1","\u63A8\u5E7F","\u8BA2\u9605"],inbox:["\u6536\u4EF6\u7BB1"],"inbox-archive":["\u6536\u4EF6\u7BB1","\u5F52\u6863","\u6536\u7EB3"],"inbox-unarchive":["unzip","unpack","extract","\u6536\u4EF6\u7BB1","\u53D6\u6D88\u5F52\u6863","\u8FD8\u539F","\u89E3\u538B\u7F29"],cloud:["weather","\u4E91\u7AEF"],"cloud-off":["offline-mode","connection-fail","slash","weather","\u4E91\u7AEF","\u65AD\u7F51","\u65E0\u4FE1\u53F7","\u8FDE\u63A5\u5931\u8D25"],attachment:["annex","paperclip","\u9644\u4EF6","\u66F2\u522B\u9488"],profile:["id","\u6863\u6848","\u8D44\u6599","\u8EAB\u4EFD\u8BC1","\u8BC1\u4EF6"],archive:["box","\u6536\u7EB3","\u5F52\u6863","\u5B58\u6863","\u76D2\u5B50","\u7EB8\u7BB1"],"archive-drawer":["night table","\u6536\u7EB3","\u62BD\u5C49","\u5F52\u6863","\u5B58\u6863","\u5E8A\u5934\u67DC"],at:["@","mention","\u63D0\u5230","\u5728"],award:["medal","achievement","badge","\u6210\u5C31","\u5956\u724C","\u91D1\u724C","\u52CB\u7AE0"],medal:["award","achievement","badge","\u6210\u5C31","\u5956\u724C","\u91D1\u724C","\u52CB\u7AE0"],"medal-2":["award","achievement","badge","\u6210\u5C31","\u5956\u724C","\u91D1\u724C","\u52CB\u7AE0"],"bar-chart":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u97F5\u5F8B","\u8282\u594F"],"bar-chart-horizontal":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u97F5\u5F8B","\u8282\u594F"],"bar-chart-2":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u6392\u884C","\u8282\u594F"],"bar-chart-box":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u8282\u594F"],"bar-chart-grouped":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u5206\u7EC4"],"bubble-chart":["data","analysis","statistics","\u6C14\u6CE1\u56FE","\u7EDF\u8BA1"],"pie-chart":["data","analysis","\u997C\u56FE","\u997C\u72B6\u56FE","\u6570\u636E","\u5206\u6790"],"pie-chart-2":["data","analysis","\u997C\u56FE","\u997C\u72B6\u56FE","\u6570\u636E","\u5206\u6790"],"pie-chart-box":["data","analysis","\u997C\u56FE","\u997C\u72B6\u56FE","\u6570\u636E","\u5206\u6790"],"donut-chart":["data","analysis","\u73AF\u5F62\u56FE","\u6570\u636E","\u5206\u6790"],"line-chart":["data","analysis","stats","\u6298\u7EBF\u56FE","\u6570\u636E","\u5206\u6790"],bookmark:["tag","\u4E66\u7B7E","\u6807\u8BB0"],"bookmark-2":["tag","\u4E66\u7B7E","\u6807\u8BB0"],"bookmark-3":["tag","\u4E66\u7B7E","\u6807\u8BB0","\u8363\u8A89"],briefcase:["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-2":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-3":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-4":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-5":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],calculator:["\u8BA1\u7B97\u5668","\u8BA1\u7B97\u673A"],calendar:["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-2":["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-event":["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-todo":["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-check":["date","plan","schedule","agenda","check-in","punch","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868","\u7B7E\u5230","\u6253\u5361"],"customer-service":["headset","\u5BA2\u670D","\u552E\u540E","\u8033\u673A","\u8033\u9EA6"],"customer-service-2":["headset","\u5BA2\u670D","\u552E\u540E","\u8033\u673A","\u8033\u9EA6"],flag:["banner","pin","\u65D7\u5E1C","\u65D7\u5B50","\u56FD\u65D7","\u6807\u8BB0"],"flag-2":["banner","pin","\u65D7\u5E1C","\u65D7\u5B50","\u56FD\u65D7","\u6807\u8BB0"],global:["earth","union","world","language","\u5730\u7403","\u8054\u5408","\u4E16\u754C","\u5168\u7403","\u8BED\u8A00"],honour:["honor","glory","\u9526\u65D7","\u8363\u8A89","\u8363\u8000","\u519B\u8854"],links:["connection","address","\u8054\u7CFB","\u94FE\u63A5","\u5730\u5740"],printer:["\u6253\u5370\u673A"],"printer-cloud":["\u6253\u5370\u673A","\u4E91\u6253\u5370"],"record-mail":["voice mail","tape","\u5F55\u97F3","\u7559\u8A00","\u8BED\u97F3\u4FE1\u7BB1","\u78C1\u5E26"],reply:["forward","\u56DE\u590D\u5168\u90E8","\u56DE\u590D\u6240\u6709"],"reply-all":["forward","\u56DE\u590D","\u7B54\u590D","\u7559\u8A00","\u8F6C\u53D1"],"send-plane":["\u53D1\u9001","\u7EB8\u98DE\u673A"],"send-plane-2":["\u53D1\u9001","\u7EB8\u98DE\u673A"],projector:["projection","meeting","\u6295\u5F71\u4EEA","\u4F1A\u8BAE\u5BA4"],"projector-2":["projection","meeting","\u6295\u5F71\u4EEA","\u4F1A\u8BAE\u5BA4","\u6781\u7C73"],slideshow:["presentation","meeting","PPT","keynote","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],"slideshow-2":["presentation","meeting","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],"slideshow-3":["presentation","meeting","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u89C6\u9891\u4F1A\u8BAE","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],"slideshow-4":["presentation","meeting","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u53EF\u89C6\u5BF9\u8BB2","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],window:["browser","program","web","\u7A97\u53E3","\u6D4F\u89C8\u5668","\u7A0B\u5E8F","\u7F51\u7AD9"],"window-2":["browser","program","web","\u7A97\u53E3","\u6D4F\u89C8\u5668","\u7A0B\u5E8F","\u7F51\u7AD9"],stack:["layers","\u56FE\u5C42","\u53E0\u52A0","\u5806\u6808"],service:["heart","handshake","cooperation","\u670D\u52A1","\u63E1\u624B","\u5FC3","\u5408\u4F5C"],registered:["\u6CE8\u518C","\u5546\u6807"],trademark:["\u6CE8\u518C","\u5546\u6807"],advertisement:["ad","\u5E7F\u544A","\u63A8\u5E7F"],copyleft:["\u8457\u4F50\u6743"],copyright:["\u7248\u6743"],"creative-commons":["\u77E5\u8BC6\u5171\u4EAB"],"creative-commons-by":["attribution","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u7F72\u540D"],"creative-commons-nc":["noncommercial","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u975E\u5546\u4E1A\u7528\u9014"],"creative-commons-nd":["no derivative works","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u7981\u6B62\u6F14\u7ECE"],"creative-commons-sa":["share alike","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u76F8\u540C\u65B9\u5F0F\u5171\u4EAB"],"creative-commons-zero":["cc0","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB"]},Communication:{"chat-1":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-2":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-3":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-4":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],message:["chat","comment","reply","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"message-2":["chat","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"message-3":["chat","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-check":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u5DF2\u9605"],"chat-delete":["message","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u6E05\u9664","\u5220\u9664"],"chat-forward":["message","comment","\u6D88\u606F","\u804A\u5929","\u8F6C\u53D1"],"chat-upload":["message","comment","\u6D88\u606F","\u804A\u5929","\u4E0A\u4F20"],"chat-download":["message","comment","\u6D88\u606F","\u4E0B\u8F7D"],"chat-new":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-settings":["message","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BBE\u7F6E"],"chat-smile":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-smile-2":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-smile-3":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-heart":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u5FC3","\u70B9\u8D5E","\u6536\u85CF"],"chat-off":["message","reply","comment","slash","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u7981\u6B62","\u5173\u95ED"],feedback:["message","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u53CD\u9988"],discuss:["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BA8\u8BBA","\u7FA4\u804A"],"question-answer":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BA8\u8BBA","\u7FA4\u804A"],questionnaire:["message","comment","help","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BA8\u8BBA","\u8C03\u67E5\u95EE\u5377","\u5E2E\u52A9"],"video-chat":["message","comment","\u6D88\u606F","\u89C6\u9891\u804A\u5929"],"chat-voice":["message","comment","\u6D88\u606F","\u8BED\u97F3\u6D88\u606F"],"chat-quote":["message","reply","comment","\u6D88\u606F","\u5F15\u7528\u56DE\u590D"],"chat-follow-up":["message","reply","comment","\u6D88\u606F","+1","\u8DDF\u5E16"],"chat-poll":["message","vote","questionnaire","\u6D88\u606F","\u6295\u7968","\u95EE\u5377\u8C03\u67E5"],"chat-history":["message","\u5386\u53F2\u6D88\u606F","\u6D88\u606F\u8BB0\u5F55"],"chat-private":["message","\u79C1\u5BC6\u6D88\u606F","\u5BC6\u804A"]},Design:{pencil:["edit","\u94C5\u7B14","\u7F16\u8F91"],edit:["pencil","\u94C5\u7B14","\u7F16\u8F91"],"edit-2":["pencil","\u94C5\u7B14","\u7F16\u8F91"],"ball-pen":["\u5706\u73E0\u7B14"],"quill-pen":["\u7FBD\u6BDB\u7B14","\u94A2\u7B14","\u7F16\u8F91"],"pen-nib":["\u94A2\u7B14","\u7B14\u5C16"],"ink-bottle":["\u58A8\u6C34\u74F6"],"mark-pen":["\u9A6C\u514B\u7B14"],markup:["\u6807\u8BB0","\u9A6C\u514B"],"edit-box":["\u7F16\u8F91"],"edit-circle":["\u7F16\u8F91"],sip:["\u5438\u7BA1","\u53D6\u8272\u5668"],brush:["\u7B14\u5237","\u753B\u7B14","\u5237\u5B50"],"brush-2":["\u5237\u5B50"],"brush-3":["\u5237\u5B50"],"brush-4":["\u5237\u5B50"],"paint-brush":["\u586B\u8272","\u586B\u5145","\u5237\u5B50"],contrast:["brightness","tonalit","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03"],"contrast-2":["moon","dark","brightness","tonalit","\u6708\u4EAE","\u591C\u95F4","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03"],drop:["water","blur","\u6A21\u7CCA","\u6C34","\u6EF4"],"blur-off":["water","drop","slash","\u6A21\u7CCA","\u6C34","\u6EF4","\u7981\u6B62","\u5173\u95ED"],"contrast-drop":["water","brightness","tonalit","\u6C34","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03","\u6EF4"],"contrast-drop-2":["water","brightness","tonalit","\u6C34","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03","\u6EF4"],compasses:["\u5706\u89C4"],"compasses-2":["\u5706\u89C4"],scissors:["\u526A\u5200","\u88C1\u526A"],"scissors-cut":["\u526A\u5200","\u88C1\u526A"],"scissors-2":["\u526A\u5200","\u88C1\u526A","\u622A\u5C4F"],slice:["knife","\u5207\u56FE","\u5207\u7247","\u5200"],eraser:["remove formatting","\u6A61\u76AE","\u64E6\u9664","\u6E05\u9664\u683C\u5F0F"],ruler:["\u5C3A\u5B50"],"ruler-2":["\u5C3A\u5B50"],"pencil-ruler":["design","\u94C5\u7B14","\u5C3A\u5B50","\u6587\u5177","\u8BBE\u8BA1"],"pencil-ruler-2":["design","\u94C5\u7B14","\u5C3A\u5B50","\u6587\u5177","\u8BBE\u8BA1"],"t-box":["\u6587\u5B57","\u5B57\u4F53","\u5B57\u53F7"],"input-method":["\u8F93\u5165\u6CD5","\u6587\u5B57"],artboard:["grid","crop","\u753B\u677F","\u88C1\u5207"],"artboard-2":["\u753B\u677F"],crop:["\u88C1\u5207"],"crop-2":["\u88C1\u5207"],screenshot:["capture","\u5C4F\u5E55\u622A\u56FE","\u622A\u5C4F"],"screenshot-2":["capture","\u5C4F\u5E55\u622A\u56FE","\u622A\u5C4F"],"drag-move":["arrow","\u62D6\u62FD","\u79FB\u52A8","\u7BAD\u5934"],"drag-move-2":["arrow","\u62D6\u62FD","\u79FB\u52A8","\u7BAD\u5934"],focus:["aim","target","\u7126\u70B9","\u805A\u7126","\u76EE\u6807","\u9776\u5FC3"],"focus-2":["aim","target","bullseye","\u7126\u70B9","\u805A\u7126","\u76EE\u6807","\u9776\u5FC3"],"focus-3":["aim","target","bullseye","\u7126\u70B9","\u805A\u7126","\u76EE\u6807","\u9776\u5FC3"],paint:["\u586B\u8272","\u586B\u5145","\u6CB9\u6F06\u6876"],palette:["\u8C03\u8272\u76D8","\u8272\u677F"],pantone:["\u8272\u677F","\u6F58\u901A\u8272","\u8272\u53F7"],shape:["border","\u5F62\u72B6","\u63CF\u8FB9","\u8FB9\u6846"],"shape-2":["border","\u5F62\u72B6","\u63CF\u8FB9","\u8FB9\u6846"],magic:["fantasy","magic stick","beautify","\u9B54\u6CD5\u68D2","\u7F8E\u5316","\u5E7B\u60F3","\u9B54\u5E7B"],anticlockwise:["rotate","left","\u5DE6\u7FFB\u8F6C","\u5DE6\u65CB\u8F6C"],"anticlockwise-2":["rotate","left","\u5DE6\u7FFB\u8F6C","\u5DE6\u65CB\u8F6C"],clockwise:["rotate","right","\u53F3\u7FFB\u8F6C","\u53F3\u65CB\u8F6C"],"clockwise-2":["rotate","right","\u53F3\u7FFB\u8F6C","\u53F3\u65CB\u8F6C"],hammer:["\u9524\u5B50"],tools:["settings","\u5DE5\u5177","\u8BBE\u7F6E"],"drag-drop":["drag and drop","mouse","\u62D6\u62FD","\u9F20\u6807"],table:["\u8868\u683C"],"table-alt":["\u8868\u683C"],layout:["\u5E03\u5C40"],"layout-2":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-3":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-4":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-5":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-6":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-column":["\u5DE6\u53F3\u5E03\u5C40"],"layout-row":["\u4E0A\u4E0B\u5E03\u5C40"],"layout-top":["\u9876\u90E8\u5E03\u5C40","\u9876\u90E8\u5BFC\u822A"],"layout-right":["\u53F3\u4FA7\u5E03\u5C40","\u53F3\u4FA7\u5BFC\u822A"],"layout-bottom":["\u5E95\u90E8\u5E03\u5C40","\u5E95\u90E8\u5BFC\u822A"],"layout-left":["\u5DE6\u4FA7\u5E03\u5C40","\u5DE6\u4FA7\u5BFC\u822A"],"layout-top-2":["\u9876\u90E8\u5E03\u5C40","\u9876\u90E8\u5BFC\u822A"],"layout-right-2":["\u53F3\u4FA7\u5E03\u5C40","\u53F3\u4FA7\u5BFC\u822A"],"layout-bottom-2":["\u5E95\u90E8\u5E03\u5C40","\u5E95\u90E8\u5BFC\u822A"],"layout-left-2":["\u5DE6\u4FA7\u5E03\u5C40","\u5DE6\u4FA7\u5BFC\u822A"],"layout-grid":["\u5361\u7247\u5E03\u5C40","\u7F51\u683C"],"layout-masonry":["collage","\u7011\u5E03\u6D41\u5E03\u5C40","\u62FC\u8D34\u753B"],collage:["\u7011\u5E03\u6D41\u5E03\u5C40","\u62FC\u8D34\u753B"],grid:["table","\u7F51\u683C","\u8868\u683C"]},Development:{bug:["\u866B\u5B50"],"bug-2":["\u866B\u5B50"],code:["\u4EE3\u7801","\u7F16\u7A0B"],"code-s":["\u4EE3\u7801","\u7F16\u7A0B"],"code-s-slash":["\u4EE3\u7801","\u7F16\u7A0B"],"code-box":["\u4EE3\u7801","\u7F16\u7A0B"],"terminal-box":["code","command line","\u7EC8\u7AEF","\u4EE3\u7801","\u547D\u4EE4\u884C"],terminal:["code","command line","\u7EC8\u7AEF","\u4EE3\u7801","\u547D\u4EE4\u884C"],"terminal-window":["code","command line","\u7EC8\u7AEF","\u4EE3\u7801","\u547D\u4EE4\u884C"],parentheses:["code","math","\u5C0F\u62EC\u53F7"],brackets:["code","math","\u4E2D\u62EC\u53F7"],braces:["code","math","\u5927\u62EC\u53F7","\u82B1\u62EC\u53F7"],command:["apple key","\u82B1\u952E","\u82F9\u679C\u952E"],cursor:["mouse","\u6307\u9488","\u9F20\u6807"],"git-commit":["node","\u63D0\u4EA4"],"git-pull-request":["\u5408\u5E76\u7533\u8BF7"],"git-merge":["\u5408\u5E76"],"git-branch":["\u5206\u652F"],"git-repository":["\u4ED3\u5E93"],"git-repository-commits":["\u4ED3\u5E93","\u63D0\u4EA4"],"git-repository-private":["\u79C1\u5BC6\u4ED3\u5E93","\u79C1\u4EBA\u4ED3\u5E93"],html5:["html","h5"],css3:["css"]},Device:{tv:["\u7535\u89C6"],"tv-2":["monitor","\u7535\u89C6","\u663E\u793A\u5668"],computer:["monitor","\u7535\u8111","\u663E\u793A\u5668"],mac:["monitor","\u663E\u793A\u5668"],macbook:["laptop","\u7B14\u8BB0\u672C"],cellphone:["\u624B\u673A","\u7535\u8BDD"],smartphone:["mobile","\u624B\u673A"],tablet:["\u5E73\u677F\u7535\u8111"],device:["\u8BBE\u5907"],phone:["\u7535\u8BDD"],database:["storage","\u6570\u636E\u5E93","\u5B58\u50A8"],"database-2":["storage","\u6570\u636E\u5E93","\u5B58\u50A8"],server:["\u670D\u52A1\u5668"],"hard-drive":["disc","storage","\u786C\u76D8","\u5B58\u50A8"],"hard-drive-2":["disc","server","storage","\u786C\u76D8","\u670D\u52A1\u5668","\u5B58\u50A8"],install:["\u5B89\u88C5"],uninstall:["\u5378\u8F7D"],save:["floppy","\u4FDD\u5B58","\u8F6F\u76D8"],"save-2":["floppy","\u4FDD\u5B58","\u8F6F\u76D8"],"save-3":["floppy","\u4FDD\u5B58","\u8F6F\u76D8"],"sd-card":["\u5185\u5B58\u5361"],"sd-card-mini":["\u5185\u5B58\u5361"],"sim-card":["\u7535\u8BDD\u5361"],"sim-card-2":["\u7535\u8BDD\u5361"],"dual-sim-1":["sim card","\u7535\u8BDD\u5361","\u5361\u69FD","\u53CC\u5361\u53CC\u5F85"],"dual-sim-2":["sim card","\u7535\u8BDD\u5361","\u5361\u69FD","\u53CC\u5361\u53CC\u5F85"],"u-disk":["U\u76D8","\u4F18\u76D8"],battery:["\u7535\u6C60"],"battery-charge":["\u7535\u6C60","\u5145\u7535"],"battery-low":["\u7535\u6C60","\u4F4E\u7535\u91CF"],"battery-2":["\u7535\u6C60"],"battery-2-charge":["\u7535\u6C60","\u5145\u7535"],"battery-saver":["\u7535\u6C60","\u7701\u7535\u6A21\u5F0F"],"battery-share":["\u7535\u6C60\u5171\u4EAB","\u5171\u4EAB\u7535\u91CF"],cast:["mirroring","\u6295\u5C4F","\u65E0\u7EBF","\u5E7F\u64AD"],airplay:["mirroring","\u6295\u5C4F","\u65E0\u7EBF"],cpu:["\u4E2D\u592E\u5904\u7406\u5668"],gradienter:["\u6C34\u5E73\u4EEA"],keyboard:["input","\u952E\u76D8","\u8F93\u5165"],"keyboard-box":["input","\u952E\u76D8","\u8F93\u5165"],mouse:["\u9F20\u6807"],sensor:["capacitor","\u4F20\u611F\u5668","\u7535\u5BB9\u5668"],router:["wifi","signal tower","radio","station","\u8DEF\u7531\u5668","\u4FE1\u53F7\u5854","\u5E7F\u64AD","\u57FA\u7AD9","\u6D41\u91CF"],radar:["satellite receiver","\u96F7\u8FBE","\u536B\u661F\u63A5\u6536\u5668","\u9505"],gamepad:["consoles","controller","\u6E38\u620F\u624B\u67C4"],"remote-control":["controller","\u9065\u63A7\u5668"],"remote-control-2":["controller","\u9065\u63A7\u5668"],"device-recover":["\u6062\u590D\u51FA\u5382\u8BBE\u7F6E"],hotspot:["\u624B\u673A\u70ED\u70B9"],"phone-find":["\u627E\u56DE\u624B\u673A"],"phone-lock":["\u9501\u5B9A\u624B\u673A"],"rotate-lock":["\u9501\u5B9A\u65CB\u8F6C\u5C4F\u5E55"],restart:["reload","refresh","\u91CD\u542F"],"shut-down":["power off","\u5173\u673A"],fingerprint:["\u6307\u7EB9"],"fingerprint-2":["\u6307\u7EB9"],barcode:["scan","\u626B\u7801","\u6761\u5F62\u7801","\u6761\u7801"],"barcode-box":["scan","\u626B\u7801","\u6761\u5F62\u7801","\u6761\u7801"],"qr-code":["\u4E8C\u7EF4\u7801"],"qr-scan":["\u4E8C\u7EF4\u7801","\u626B\u63CF"],"qr-scan-2":["\u4E8C\u7EF4\u7801","\u626B\u63CF"],scan:["\u626B\u63CF"],"scan-2":["\u626B\u63CF"],rss:["feed","subscribe","\u8BA2\u9605"],gps:["signal","\u5B9A\u4F4D","\u4FE1\u53F7"],"base-station":["wifi","signal tower","router","cast","\u57FA\u7AD9","\u4FE1\u53F7\u5854","\u8DEF\u7531\u5668","\u5E7F\u64AD","\u6D41\u91CF"],bluetooth:["wireless","\u84DD\u7259","\u65E0\u7EBF"],"bluetooth-connect":["wireless","\u84DD\u7259","\u8FDE\u63A5","\u65E0\u7EBF"],wifi:["\u65E0\u7EBF\u7F51"],"wifi-off":["slash","offline","connection-fail","\u65E0\u7EBF\u7F51","\u5173\u95ED","\u65AD\u7F51","\u94FE\u63A5\u5931\u8D25"],"signal-wifi":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-1":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-2":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-3":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-error":["cellular","offline","connection-fail","\u65E0\u7EBF\u7F51","\u65AD\u7F51","\u94FE\u63A5\u5931\u8D25","\u65E0\u4FE1\u53F7"],"signal-wifi-off":["cellular","slash","offline","connection-fail","\u65E0\u7EBF\u7F51","\u5173\u95ED","\u65AD\u7F51","\u94FE\u63A5\u5931\u8D25"],"wireless-charging":["power","flash","\u65E0\u7EBF\u5145\u7535","\u95EA\u5145"],"dashboard-2":["\u4EEA\u8868\u76D8"],"dashboard-3":["\u4EEA\u8868\u76D8"],usb:["\u4F18\u76D8"]},Document:{file:["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-2":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-3":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-4":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"sticky-note":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA","\u4FBF\u7B7E\u7EB8","\u4FBF\u5229\u8D34"],"sticky-note-2":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA","\u4FBF\u7B7E\u7EB8","\u4FBF\u5229\u8D34"],"file-edit":["\u6587\u4EF6","\u6587\u6863","\u7F16\u8F91"],draft:["\u8349\u7A3F\u7BB1","\u6587\u4EF6","\u6587\u6863","\u7F16\u8F91"],"file-paper":["\u6587\u4EF6","\u6587\u6863","\u7EB8","\u8C31"],"file-paper-2":["\u6587\u4EF6","\u6587\u6863","\u7EB8","\u8C31"],"file-text":["\u6587\u4EF6","\u6587\u6863","\u6587\u672C"],"file-list":["\u6E05\u5355","\u5217\u8868"],"file-list-2":["\u6E05\u5355","\u5217\u8868"],"file-list-3":["newspaper","\u6E05\u5355","\u5217\u8868","\u62A5\u7EB8"],bill:["\u8D26\u5355"],"file-copy":["duplicate","clone","\u590D\u5236","\u514B\u9686"],"file-copy-2":["duplicate","clone","\u590D\u5236","\u514B\u9686"],clipboard:["copy","\u590D\u5236","\u526A\u5207\u677F"],survey:["research","questionnaire","\u8C03\u67E5","\u95EE\u5377","\u8C03\u7814"],article:["newspaper","\u6587\u7AE0","\u62A5\u7EB8"],newspaper:["\u62A5\u7EB8"],"file-zip":["7z","rar","\u538B\u7F29\u5305"],"file-mark":["\u6587\u4EF6","\u6587\u6863","\u6807\u8BB0"],task:["todo","\u4EFB\u52A1","\u5F85\u529E"],todo:["\u5F85\u529E"],book:["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50"],"book-mark":["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50","\u4E66\u7B7E"],"book-2":["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50"],"book-3":["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50"],"book-open":["read","booklet","magazine","\u4E66","\u9605\u8BFB","\u5C0F\u518C\u5B50","\u6742\u5FD7"],"book-read":["booklet","magazine","\u4E66","\u9605\u8BFB","\u5C0F\u518C\u5B50","\u6742\u5FD7"],"contacts-book":["\u901A\u8BAF\u5F55","\u8054\u7CFB\u4EBA"],"contacts-book-2":["\u901A\u8BAF\u5F55","\u8054\u7CFB\u4EBA"],"contacts-book-upload":["upload","\u901A\u8BAF\u5F55","\u8054\u7CFB\u4EBA","\u4E0A\u4F20"],booklet:["notebook","\u624B\u518C","\u7B14\u8BB0\u672C","\u5C0F\u518C\u5B50"],"file-code":["config","\u6587\u4EF6","\u6587\u6863","\u4EE3\u7801","\u811A\u672C","\u914D\u7F6E\u6587\u4EF6"],"file-pdf":["\u6587\u4EF6","\u6587\u6863"],"file-word":["\u6587\u6863"],"file-ppt":["\u6587\u4EF6","\u6587\u6863"],"file-excel":["\u6587\u6863","\u8868\u5355"],"file-word-2":["\u6587\u6863"],"file-ppt-2":["\u6587\u4EF6","\u6587\u6863"],"file-excel-2":["\u6587\u6863","\u8868\u5355"],"file-hwp":["\u6587\u4EF6","\u6587\u6863","hangul word processor"],keynote:["\u6F14\u793A\u6587\u7A3F","\u5E7B\u706F\u7247","\u8BB2\u6F14"],numbers:["\u8868\u683C"],pages:["\u6587\u7A3F"],"file-search":["\u6587\u4EF6","\u6587\u6863","\u641C\u7D22"],"file-add":["new","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-reduce":["\u6587\u4EF6","\u6587\u6863","\u51CF"],"file-settings":["\u6587\u4EF6","\u6587\u6863","\u8BBE\u7F6E"],"file-upload":["\u6587\u4EF6","\u6587\u6863","\u4E0A\u4F20"],"file-transfer":["\u6587\u4EF6","\u6587\u6863","\u4F20\u8F93"],"file-download":["\u6587\u4EF6","\u6587\u6863","\u4E0B\u8F7D"],"file-lock":["\u6587\u4EF6","\u6587\u6863","\u9501"],"file-chart":["report","\u6587\u4EF6","\u6587\u6863","\u67F1\u72B6\u56FE","\u62A5\u8868"],"file-chart-2":["report","\u6587\u4EF6","\u6587\u6863","\u997C\u56FE","\u62A5\u8868"],"file-music":["\u6587\u4EF6","\u6587\u6863","\u97F3\u4E50"],"file-gif":["\u6587\u4EF6","\u6587\u6863","\u52A8\u56FE"],"file-forbid":["\u6587\u4EF6","\u6587\u6863","\u7981\u7528"],"file-info":["\u6587\u4EF6","\u6587\u6863","\u4FE1\u606F"],"file-warning":["alert","\u6587\u4EF6","\u6587\u6863","\u8B66\u544A","\u63D0\u9192"],"file-unknow":["\u6587\u4EF6","\u6587\u6863","\u672A\u77E5","\u95EE\u53F7"],"file-user":["\u6587\u4EF6","\u6587\u6863","\u7528\u6237"],"file-shield":["protected","secured","\u6587\u4EF6","\u6587\u6863","\u76FE\u724C","\u4FDD\u62A4","\u5B89\u5168"],"file-shield-2":["protected","secured","\u6587\u4EF6","\u6587\u6863","\u76FE\u724C","\u4FDD\u62A4","\u5B89\u5168"],"file-damage":["breakdown","broken","\u6587\u4EF6","\u6587\u6863","\u635F\u574F","\u7834\u635F","\u7834\u88C2"],"file-history":["record","\u6587\u4EF6","\u6587\u6863","\u8BB0\u5F55","\u5386\u53F2"],"file-shred":["shredder","shred","destroy","cut","\u6587\u6863","\u9500\u6BC1","\u788E\u7EB8\u673A","\u7834\u88C2","\u7C89\u788E"],"file-cloud":["\u6587\u4EF6","\u6587\u6863","\u4E91"],folder:["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-2":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-3":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-4":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-5":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],folders:["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6279\u91CF"],"folder-add":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6DFB\u52A0"],"folder-reduce":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u51CF"],"folder-settings":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u8BBE\u7F6E"],"folder-upload":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4E0A\u4F20"],"folder-transfer":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4F20\u8F93"],"folder-download":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4E0B\u8F7D"],"folder-lock":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u9501"],"folder-chart":["report","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u67F1\u72B6\u56FE","\u62A5\u8868"],"folder-chart-2":["report","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u997C\u56FE","\u62A5\u8868"],"folder-music":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u97F3\u4E50"],"folder-forbid":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u7981\u7528"],"folder-info":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4FE1\u606F"],"folder-warning":["alert","directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u8B66\u544A","\u63D0\u9192"],"folder-unknow":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u672A\u77E5"],"folder-user":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u7528\u6237"],"folder-shield":["directory","file","protected","secured","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4FDD\u62A4","\u76FE\u724C","\u5B89\u5168"],"folder-shield-2":["directory","file","protected","secured","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4FDD\u62A4","\u76FE\u724C","\u5B89\u5168"],"folder-shared":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u5206\u4EAB"],"folder-received":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u63A5\u6536"],"folder-open":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6253\u5F00"],"folder-keyhole":["directory","encryption","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6253\u5F00","\u52A0\u5BC6\u6587\u6863"],"folder-zip":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6253\u5F00","\u538B\u7F29"],"folder-history":["directory","file","record","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u8BB0\u5F55","\u5386\u53F2"],markdown:["arrow","\u7BAD\u5934","\u4E0B"]},Editor:{bold:["\u52A0\u7C97"],italic:["\u659C\u4F53"],heading:["\u6807\u9898"],text:["\u5B57\u4F53"],"font-color":["\u6587\u5B57\u8272"],"font-size":["\u5B57\u53F7","\u5B57\u4F53\u5927\u5C0F"],"font-size-2":["\u5B57\u53F7","\u5B57\u4F53\u5927\u5C0F"],underline:["\u4E0B\u5212\u7EBF"],emphasis:["\u7740\u91CD\u53F7"],"emphasis-cn":["\u7740\u91CD\u53F7"],strikethrough:["remove formatting","\u5220\u9664\u7EBF"],"strikethrough-2":["remove formatting","\u5220\u9664\u7EBF"],"format-clear":["remove formatting","\u6E05\u9664\u683C\u5F0F"],"align-left":["\u5DE6\u5BF9\u9F50"],"align-center":["\u5C45\u4E2D\u5BF9\u9F50"],"align-right":["\u53F3\u5BF9\u9F50"],"align-justify":["\u6392\u5217\u5BF9\u9F50"],"align-top":["\u9876\u90E8\u5BF9\u9F50"],"align-vertically":["\u5782\u76F4\u5BF9\u9F50"],"align-bottom":["\u5E95\u90E8\u5BF9\u9F50"],"list-check":["check list","\u6E05\u5355\u5217\u8868"],"list-check-2":["check list","\u6E05\u5355\u5217\u8868"],"list-ordered":["number list","\u6709\u5E8F\u5217\u8868"],"list-unordered":["bullet list","\u65E0\u5E8F\u5217\u8868"],"indent-decrease":["indent more","\u7F29\u8FDB"],"indent-increase":["indent less","\u7F29\u8FDB"],"line-height":["\u884C\u9AD8"],"text-spacing":["\u5B57\u95F4\u8DDD"],"text-wrap":["\u6587\u672C\u6362\u884C"],"attachment-2":["annex","paperclip","\u9644\u4EF6","\u66F2\u522B\u9488"],link:["connection","address","\u8054\u7CFB","\u94FE\u63A5","\u5730\u5740"],"link-unlink":["connection","remove address","\u53BB\u9664\u94FE\u63A5"],"link-m":["connection","address","\u8054\u7CFB","\u94FE\u63A5","\u5730\u5740"],"link-unlink-m":["connection","remove address","\u53BB\u9664\u94FE\u63A5"],separator:["\u5206\u5272\u7EBF"],space:["\u7A7A\u683C"],"page-separator":["insert","\u5206\u9875\u7B26","\u63D2\u5165"],"code-view":["\u4EE3\u7801\u89C6\u56FE"],"double-quotes-l":["left","quotation marks","\u53CC\u5F15\u53F7"],"double-quotes-r":["right","quotation marks","\u53CC\u5F15\u53F7"],"single-quotes-l":["left","quotation marks","\u5355\u5F15\u53F7"],"single-quotes-r":["right","quotation marks","\u5355\u5F15\u53F7"],"table-2":["\u8868\u683C"],subscript:["\u89D2\u6807","\u4E0B\u6807","\u811A\u6CE8"],"subscript-2":["\u89D2\u6807","\u4E0B\u6807","\u811A\u6CE8"],superscript:["\u89D2\u6807","\u4E0A\u6807"],"superscript-2":["\u89D2\u6807","\u4E0A\u6807"],paragraph:["\u6BB5\u843D"],"text-direction-l":["\u6587\u672C\u5DE6\u5BF9\u9F50"],"text-direction-r":["\u6587\u672C\u5DE6\u5BF9\u9F50"],functions:["\u529F\u80FD"],omega:["\u03A9","\u7279\u6B8A\u7B26\u53F7"],hashtag:["#","\u4E95\u53F7"],asterisk:["*","\u661F\u53F7"],"question-mark":["\u95EE\u53F7"],translate:["translator","\u7FFB\u8BD1"],"translate-2":["translator","\u7FFB\u8BD1"],"a-b":["a/b testing","ab testing","ab\u6D4B\u8BD5"],"english-input":["\u82F1\u6587\u8F93\u5165\u6CD5"],"pinyin-input":["\u62FC\u97F3\u8F93\u5165\u6CD5"],"wubi-input":["\u4E94\u7B14\u8F93\u5165\u6CD5"],"input-cursor-move":["\u79FB\u52A8\u8F93\u5165\u5149\u6807"],"number-1":["1","\u4E00","\u6570\u5B57"],"number-2":["2","\u4E8C","\u6570\u5B57"],"number-3":["3","\u4E09","\u6570\u5B57"],"number-4":["4","\u56DB","\u6570\u5B57"],"number-5":["5","\u4E94","\u6570\u5B57"],"number-6":["6","\u516D","\u6570\u5B57"],"number-7":["7","\u4E03","\u6570\u5B57"],"number-8":["8","\u516B","\u6570\u5B57"],"number-9":["9","\u4E5D","\u6570\u5B57"],"number-0":["0","\u96F6","\u6570\u5B57"],"sort-asc":["ranking","ordering","sorting","ascending","descending","\u5347\u5E8F\u6392\u5217","\u6392\u5E8F"],"sort-desc":["ranking","ordering","\u964D\u5E8F\u6392\u5217","\u6392\u5E8F"],"bring-forward":["arrange","\u5C42\u7EA7","\u5411\u4E0A\u4E00\u5C42"],"send-backward":["arrange","\u5C42\u7EA7","\u5411\u4E0B\u4E00\u5C42"],"bring-to-front":["arrange","\u5C42\u7EA7","\u79FB\u5230\u6700\u524D\u9762"],"send-to-back":["arrange","\u5C42\u7EA7","\u79FB\u5230\u6700\u540E\u9762"],"h-1":["heading","\u4E00\u7EA7\u6807\u9898"],"h-2":["heading","\u4E00\u7EA7\u6807\u9898"],"h-3":["heading","\u4E00\u7EA7\u6807\u9898"],"h-4":["heading","\u4E00\u7EA7\u6807\u9898"],"h-5":["heading","\u4E00\u7EA7\u6807\u9898"],"h-6":["heading","\u4E00\u7EA7\u6807\u9898"],"insert-column-left":["\u6DFB\u52A0\u5217","\u5DE6\u4FA7"],"insert-column-right":["\u6DFB\u52A0\u5217","\u53F3\u4FA7"],"insert-row-top":["\u6DFB\u52A0\u884C","\u9876\u90E8"],"insert-row-bottom":["\u6DFB\u52A0\u884C","\u5E95\u90E8"],"delete-column":["\u5220\u9664\u5217","\u5E95\u90E8"],"delete-row":["\u6DFB\u52A0\u884C","\u5E95\u90E8"],"merge-cells-horizontal":["\u5408\u5E76\u5355\u5143\u683C"],"merge-cells-vertical":["\u5408\u5E76\u5355\u5143\u683C"],"split-cells-horizontal":["\u62C6\u5206\u5355\u5143\u683C"],"split-cells-vertical":["\u62C6\u5206\u5355\u5143\u683C"],"flow-chart":["\u6D41\u7A0B\u56FE"],"mind-map":["mindmap","\u8111\u56FE","\u601D\u7EF4\u5BFC\u56FE"],"node-tree":["\u8282\u70B9","\u5C42\u7EA7\u5173\u7CFB\u56FE"],"organization-chart":["\u7EC4\u7EC7\u67B6\u6784\u56FE","\u5C40\u57DF\u7F51"],"rounded-corner":["\u5706\u89D2"]},Finance:{wallet:["\u94B1\u5305","\u5361\u5305"],"wallet-2":["\u94B1\u5305","\u5361\u5305"],"wallet-3":["\u94B1\u5305","\u5361\u5305"],"bank-card":["credit","purchase","payment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361","\u8D2D\u4E70","\u6D88\u8D39","\u652F\u4ED8"],"bank-card-2":["credit","purchase","payment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361","\u8D2D\u4E70","\u6D88\u8D39","\u652F\u4ED8"],"secure-payment":["credit","purchase","payment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361","\u8D2D\u4E70","\u6D88\u8D39","\u652F\u4ED8","\u5B89\u5168"],refund:["credit card","repayment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361\u8FD8\u6B3E"],"refund-2":["credit card","repayment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361\u8FD8\u6B3E"],safe:["\u4FDD\u9669\u67DC","\u4FDD\u9669\u7BB1"],"safe-2":["\u4FDD\u9669\u67DC","\u4FDD\u9669\u7BB1"],"price-tag":["label","\u6807\u7B7E","\u4EF7\u7B7E"],"price-tag-2":["label","\u6807\u7B7E","\u4EF7\u7B7E"],"price-tag-3":["label","\u6807\u7B7E","\u4EF7\u7B7E"],ticket:["coupon","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"ticket-2":["coupon","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],coupon:["ticket","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-2":["ticket","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-3":["ticket","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-4":["\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-5":["\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"shopping-bag":["purse","\u8D2D\u7269\u888B","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-bag-2":["\u8D2D\u7269\u888B","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-bag-3":["\u8D2D\u7269\u888B","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-basket":["\u8D2D\u7269\u7BEE","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-basket-2":["\u8D2D\u7269\u7BEE","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-cart":["\u8D2D\u7269\u8F66","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-cart-2":["\u8D2D\u7269\u8F66","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],vip:["\u4F1A\u5458"],"vip-crown":["king","queen","\u7687\u51A0","\u4F1A\u5458","\u56FD\u738B","\u5973\u738B","\u738B\u540E"],"vip-crown-2":["king","queen","\u7687\u51A0","\u4F1A\u5458","\u56FD\u738B","\u5973\u738B","\u738B\u540E"],"vip-diamond":["\u94BB\u77F3","\u4F1A\u5458"],trophy:["\u5956\u54C1","\u5956\u676F","\u91D1\u676F"],exchange:["swap","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"exchange-box":["swap","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],swap:["exchange","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"swap-box":["exchange","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"exchange-dollar":["swap","transfer","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362","\u7F8E\u5143","\u8F6C\u8D26"],"exchange-cny":["swap","transfer","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362","\u4EBA\u6C11\u5E01","\u8F6C\u8D26"],"exchange-funds":["swap","transfer","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362","\u57FA\u91D1","\u80A1\u7968","\u8F6C\u8D26"],"increase-decrease":["\u8BA1\u7B97\u5668"],percent:["\u767E\u5206\u4E4B","\u767E\u5206\u6BD4"],"copper-coin":["currency","payment","\u94DC\u5E01","\u786C\u5E01","\u8D27\u5E01","\u94B1","\u652F\u4ED8"],"copper-diamond":["currency","coins","\u91D1\u5E01","\u94BB\u77F3","\u8D27\u5E01","\u94B1","\u652F\u4ED8"],"money-cny-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u4EBA\u6C11\u5E01"],"money-cny-circle":["currency","coins","\u91D1\u5E01","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u4EBA\u6C11\u5E01"],"money-dollar-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u7F8E\u5143"],"money-dollar-circle":["currency","coins","\u91D1\u5E01","payment","cent","penny","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u7F8E\u5143","\u7F8E\u5206","\u4FBF\u58EB"],"money-euro-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u6B27\u5143"],"money-euro-circle":["currency","coins","\u91D1\u5E01","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u6B27\u5143"],"money-pound-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u82F1\u9551"],"money-pound-circle":["currency","coins","\u91D1\u5E01","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u82F1\u9551"],"bit-coin":["currency","payment","\u8D27\u5E01","\u94B1","\u6BD4\u7279\u5E01"],coin:["\u91D1\u5E01","\u786C\u5E01"],coins:["\u91D1\u5E01","\u786C\u5E01"],currency:["cash","payment","\u8D27\u5E01","\u94B1"],funds:["foundation","stock","\u57FA\u91D1","\u80A1\u7968"],"funds-box":["foundation","stock","\u57FA\u91D1","\u80A1\u7968"],"red-packet":["\u7EA2\u5305"],"water-flash":["\u6C34\u7535\u8D39"],stock:["\u80A1\u7968"],auction:["hammer","\u62CD\u5356","\u9524\u5B50"],gift:["present","\u793C\u7269"],"gift-2":["present","\u793C\u7269"],"hand-coin":["donate","business","\u6350\u8D60"],"hand-heart":["help","donate","volunteer","welfare","\u5E2E\u52A9","\u7231\u5FC3","\u6350\u8D60","\u5FD7\u613F\u8005","\u516C\u76CA"],"24-hours":["last","24\u5C0F\u65F6\u8425\u4E1A"]},"Health & Medical":{heart:["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],"heart-2":["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],"heart-3":["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],"heart-add":["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],dislike:["like","love","remove favorite","\u5FC3","\u4E0D\u559C\u6B22","\u53D6\u6D88\u6536\u85CF"],hearts:["romance","\u7231\u60C5","\u6D6A\u6F2B","\u5FC3"],"heart-pulse":["heart rate","\u8109\u640F","\u5FC3\u7387"],pulse:["wave","heart rate","\u8109\u640F","\u5FC3\u7387","\u6CE2"],empathize:["care","heart","\u540C\u7406\u5FC3","\u5173\u7231","\u5FC3"],nurse:["doctors","\u533B\u751F","\u62A4\u58EB"],dossier:["\u75C5\u4F8B"],"health-book":["\u5065\u5EB7\u624B\u518C","\u533B\u7597\u624B\u518C"],"first-aid-kit":["case","\u6025\u6551\u7BB1"],capsule:["medicine"," \u80F6\u56CA","\u836F"],"medicine-bottle":["\u836F\u74F6"],flask:["testing","experimental","experiment","\u70E7\u74F6","\u5B9E\u9A8C","\u8BD5\u9A8C"],"test-tube":["testing","experimental","experiment","\u8BD5\u7BA1","\u5B9E\u9A8C","\u8BD5\u9A8C"],microscope:["testing","experimental","experiment","\u663E\u5FAE\u955C","\u5B9E\u9A8C","\u8BD5\u9A8C"],"hand-sanitizer":["alcohol","\u9152\u7CBE\u6D88\u6BD2\u6D17\u624B\u6DB2"],"mental-health":["\u5FC3\u7406\u5065\u5EB7"],psychotherapy:["\u5FC3\u7406\u6CBB\u7597"],stethoscope:["\u542C\u8BCA\u5668"],syringe:["\u6CE8\u5C04\u5668"],thermometer:["\u4F53\u6E29\u8BA1"],"infrared-thermometer":["\u7EA2\u5916\u7EBF\u4F53\u6E29\u8BA1","\u4F53\u6E29\u67AA"],"surgical-mask":["\u5916\u79D1\u533B\u7528\u53E3\u7F69"],virus:["\u75C5\u6BD2"],lungs:["\u80BA\u90E8"],"rest-time":["close","\u4F11\u606F\u65F6\u95F4","\u6253\u70CA"],zzz:["\u7761\u89C9"]},Logos:{alipay:["zhifubao","\u652F\u4ED8\u5B9D"],amazon:["\u4E9A\u9A6C\u900A"],android:["applications","\u5B89\u5353","\u5E94\u7528"],angularjs:["angular","programming framework"],"app-store":["applications","\u82F9\u679C\u5E94\u7528\u5546\u5E97"],apple:["\u82F9\u679C"],baidu:["du","claw","\u767E\u5EA6","\u722A"],behance:["behance"],bilibili:["\u54D4\u54E9\u54D4\u54E9"],centos:["linux","system","\u7CFB\u7EDF"],chrome:["\u8C37\u6B4C\u6D4F\u89C8\u5668"],codepen:["\u4EE3\u7801\u7B14"],coreos:["linux","system","\u7CFB\u7EDF"],dingding:["\u9489\u9489"],discord:["game","chat"],disqus:["comments"],douban:["\u8C46\u74E3"],dribbble:["\u8FFD\u6CE2"],drive:["google drive","\u8C37\u6B4C\u4E91\u7AEF\u786C\u76D8"],dropbox:["\u591A\u5B9D\u7BB1"],edge:["microsoft edge","edge\u6D4F\u89C8\u5668"],evernote:["\u5370\u8C61\u7B14\u8BB0"],facebook:["\u8138\u4E66"],"facebook-circle":["\u8138\u4E66"],"facebook-box":["\u8138\u4E66"],finder:["macintosh","\u4EFF\u8FBE"],firefox:["\u706B\u72D0\u6D4F\u89C8\u5668"],flutter:["google"],gatsby:["gatsby"],github:["github"],gitlab:["gitlab"],google:["\u8C37\u6B4C"],"google-play":["applications","\u8C37\u6B4C\u5E94\u7528\u5546\u5E97"],"honor-of-kings":["game","\u738B\u8005\u8363\u8000"],ie:["internet explorer","\u6D4F\u89C8\u5668"],instagram:["\u7167\u7247\u5899"],invision:["invision"],"kakao-talk":["kakao talk","chat"],line:["\u8FDE\u6211"],linkedin:["\u9886\u82F1"],"linkedin-box":["\u9886\u82F1"],mastercard:["bank card","\u94F6\u884C\u5361"],mastodon:["mastodon","\u957F\u6BDB\u8C61"],medium:["\u5A92\u4F53"],messenger:["facebook","\u8138\u4E66","\u4FE1\u4F7F"],microsoft:["windows","\u7A97\u6237","\u5FAE\u8F6F"],"mini-program":["\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F"],"netease-cloud-music":["netease cloud music","\u7F51\u6613\u4E91\u97F3\u4E50"],netflix:["\u7F51\u98DE"],npmjs:["npm","nodejs"],"open-source":["opensource","\u5F00\u6E90"],opera:["\u6B27\u670B\u6D4F\u89C8\u5668"],patreon:["donate","money","\u6350\u8D60","\u6253\u8D4F"],paypal:["\u8D1D\u5B9D"],pinterest:["\u62FC\u8DA3"],pixelfed:["photography","pixelfed"],playstation:["ps"],"product-hunt":["product hunt"],qq:["penguin","tencent","\u817E\u8BAF","\u4F01\u9E45"],reactjs:["react","programming framework","facebook"],reddit:["reddit"],remixicon:["remix icon","\u56FE\u6807"],safari:["safari\u6D4F\u89C8\u5668"],skype:["skype"],slack:["slack"],snapchat:["ghost","\u8272\u62C9\u5E03","\u5E7D\u7075"],soundcloud:["\u58F0\u4E91"],spectrum:["spectrum"],spotify:["music","\u97F3\u4E50"],"stack-overflow":["stack overflow"],stackshare:["share","\u5206\u4EAB","\u6280\u672F\u6808"],steam:["game","store"],switch:["nintendo","\u4EFB\u5929\u5802"],taobao:["\u6DD8\u5B9D"],telegram:["telegram"],trello:["trello"],tumblr:["\u6C64\u535A\u4E50"],twitch:["twitch"],twitter:["\u63A8\u7279"],ubuntu:["linux","system","\u7CFB\u7EDF"],unsplash:["photos"],vimeo:["\u89C6\u9891"],visa:["bank card","\u94F6\u884C\u5361"],vuejs:["vue","programming framework"],wechat:["\u5FAE\u4FE1"],"wechat-2":["\u5FAE\u4FE1"],"wechat-pay":["\u5FAE\u4FE1\u652F\u4ED8"],weibo:["\u65B0\u6D6A\u5FAE\u535A"],whatsapp:["\u74E6\u6B21\u827E\u666E"],windows:["microsoft","\u7A97\u6237","\u5FAE\u8F6F"],xbox:["xbox"],xing:["xing"],youtube:["\u4F18\u5154","\u6CB9\u7BA1"],zcool:["zcool","\u7AD9\u9177"],zhihu:["\u77E5\u4E4E"]},Map:{"map-pin":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-2":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-3":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-4":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-5":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-add":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u65B0\u589E","\u6DFB\u52A0"],"map-pin-range":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u8303\u56F4"],"map-pin-time":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u65F6\u95F4"],"map-pin-user":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u7528\u6237"],"pin-distance":["\u5750\u6807","\u8DDD\u79BB"],pushpin:["\u56FE\u9489"],"pushpin-2":["\u56FE\u9489"],compass:["navigation","safari","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-2":["navigation","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-3":["navigation","safari","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-4":["navigation","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-discover":["navigation","direction","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],anchor:["\u951A"],"china-railway":["\u4E2D\u94C1","\u94C1\u8DEF","\u706B\u8F66"],"space-ship":["\u592A\u7A7A\u98DE\u8239"],rocket:["\u706B\u7BAD"],"rocket-2":["space ship","\u706B\u7BAD","\u592A\u7A7A\u98DE\u8239"],map:["navigation","travel","\u5730\u56FE","\u5BFC\u822A","\u65C5\u884C"],"map-2":["location","navigation","travel","\u5730\u56FE","\u5B9A\u4F4D","\u5BFC\u822A","\u65C5\u884C"],"treasure-map":["thriller","adventure","\u5730\u56FE","\u85CF\u5B9D\u56FE"],"road-map":["navigation","travel","\u5730\u56FE","\u5BFC\u822A","\u65C5\u884C"],earth:["global","union","world","language","\u5730\u7403","\u5168\u7403","\u8054\u5408","\u4E16\u754C","\u8BED\u8A00"],globe:["earth","\u5730\u7403\u4EEA"],parking:["\u505C\u8F66\u573A"],"parking-box":["\u505C\u8F66\u573A"],route:["path","\u8DEF\u7EBF"],guide:["path","\u6307\u5F15","\u8DEF\u7EBF"],"gas-station":["\u52A0\u6C14\u7AD9","\u52A0\u6CB9\u7AD9"],"charging-pile":["\u5145\u7535\u6869"],"charging-pile-2":["\u5145\u7535\u6869"],car:["\u6C7D\u8F66"],"car-washing":["\u6C7D\u8F66","\u6D17\u8F66"],roadster:["car","\u6C7D\u8F66","\u8DD1\u8F66"],taxi:["car","\u51FA\u79DF\u8F66","\u6C7D\u8F66"],"taxi-wifi":["car","\u51FA\u79DF\u8F66","\u6C7D\u8F66"],"police-car":["\u6C7D\u8F66","\u8B66\u8F66"],bus:["\u5927\u5DF4","\u5DF4\u58EB"],"bus-2":["\u5927\u5DF4","\u5DF4\u58EB"],"bus-wifi":["\u5927\u5DF4","\u5DF4\u58EB"],truck:["van","delivery","\u5361\u8F66","\u8D27\u8F66","\u8FD0\u8F93"],train:["\u706B\u8F66"],"train-wifi":["\u706B\u8F66"],subway:["\u5730\u94C1"],"subway-wifi":["\u5730\u94C1"],"flight-takeoff":["airplane","plane","origin","\u8D77\u98DE","\u51FA\u53D1","\u59CB\u53D1","\u8D77\u70B9","\u98DE\u673A"],"flight-land":["airplane","plane","destination","\u7740\u9646","\u5230\u8FBE","\u62B5\u8FBE","\u7EC8\u70B9","\u98DE\u673A"],plane:["fight","\u98DE\u673A","\u822A\u73ED"],sailboat:["\u5E06\u8239"],ship:["\u8F6E\u8239","\u822A\u6D77","\u6D77\u8FD0"],"ship-2":["\u8F6E\u8239"],bike:["\u81EA\u884C\u8F66"],"e-bike":["take out","takeaway","\u7535\u52A8\u8F66","\u5916\u5356"],"e-bike-2":["take out","takeaway","\u7535\u52A8\u8F66","\u5916\u5356"],takeaway:["take out","takeaway","\u7535\u52A8\u8F66","\u5916\u5356"],motorbike:["\u6469\u6258\u8F66"],caravan:["\u623F\u8F66"],walk:["\u6B65\u884C"],run:["\u5954\u8DD1","\u8DD1\u6B65"],riding:["bike","\u9A91\u884C","\u81EA\u884C\u8F66"],barricade:["\u8DEF\u969C"],footprint:["\u811A\u5370","\u8DB3\u8FF9"],"traffic-light":["\u4EA4\u901A","\u4FE1\u53F7\u706F"],"signal-tower":["base station","antenna","\u4FE1\u53F7\u5854","\u57FA\u7AD9","\u5929\u7EBF"],restaurant:["\u9910\u5385","\u996D\u5E97"],"restaurant-2":["\u9910\u5385","\u996D\u5E97"],cup:["tea","coffee","\u676F\u5B50","\u5496\u5561","\u8336"],goblet:["cup","wine glass","\u9AD8\u811A\u676F","\u9152\u676F"],"hotel-bed":["\u9152\u5E97","\u5E8A"],navigation:["gps","\u5BFC\u822A"],oil:["\u6C7D\u6CB9","\u673A\u6CB9"],direction:["right","\u65B9\u5411","\u53F3\u8F6C"],steering:["drive","\u65B9\u5411\u76D8","\u9A7E\u8F66"],"steering-2":["drive","\u65B9\u5411\u76D8","\u9A7E\u8F66"],lifebuoy:["life ring","\u6551\u751F\u5708"],passport:["passports","\u62A4\u7167"],suitcase:["travel","\u65C5\u884C","\u884C\u674E\u7BB1"],"suitcase-2":["travel","\u65C5\u884C","\u884C\u674E\u7BB1","\u62C9\u6746\u7BB1"],"suitcase-3":["travel","\u65C5\u884C","boarding case","\u884C\u674E\u7BB1","\u62C9\u6746\u7BB1","\u767B\u673A\u7BB1"],"luggage-deposit":["consignment","\u884C\u674E\u7BB1","\u884C\u674E\u5BC4\u5B58","\u6258\u8FD0"],"luggage-cart":["\u884C\u674E\u8F66"]},Media:{image:["picture","photo","\u56FE\u7247","\u7167\u7247"],"image-2":["picture","photo","\u56FE\u7247","\u7167\u7247"],"image-add":["picture","photo","\u56FE\u7247","\u7167\u7247","\u6DFB\u52A0"],"image-edit":["picture","photo","\u56FE\u7247","\u7167\u7247","\u7F16\u8F91"],landscape:["picture","image","photo","\u56FE\u7247","\u7167\u7247"],gallery:["picture","image","\u56FE\u7247","\u76F8\u518C"],"gallery-upload":["picture","image","\u56FE\u7247","\u76F8\u518C","\u4E0A\u4F20"],video:["\u89C6\u9891"],movie:["film","video","\u7535\u5F71","\u786C\u76D8","\u89C6\u9891"],"movie-2":["film","video","\u7535\u5F71","\u786C\u76D8","\u89C6\u9891"],film:["movie","video","\u5F71\u7247","\u7535\u5F71","\u89C6\u9891"],clapperboard:["movie","film","\u573A\u8BB0\u677F","\u7535\u5F71"],vidicon:["video","camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891"],"vidicon-2":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A"],live:["video","camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u76F4\u64AD"],"video-add":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u6DFB\u52A0"],"video-upload":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u4E0A\u4F20"],"video-download":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u4E0B\u8F7D"],dv:["vidicon","camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A"],camera:["photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247"],"camera-off":["photo","slash","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247","\u7981\u6B62","\u5173\u95ED"],"camera-2":["photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247"],"camera-3":["photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247"],"camera-lens":["aperture","photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247","\u670B\u53CB\u5708"],"camera-switch":["\u7167\u76F8\u673A","\u62CD\u7167","\u7FFB\u8F6C"],polaroid:["camera","\u76F8\u673A","\u5B9D\u4E3D\u6765"],"polaroid-2":["camera","\u76F8\u673A","\u5B9D\u4E3D\u6765"],"phone-camera":["\u624B\u673A\u76F8\u673A","\u624B\u673A\u6444\u50CF\u5934"],webcam:["\u6444\u50CF\u5934"],mv:["music video","\u97F3\u4E50"],music:["\u97F3\u4E50"],"music-2":["\u97F3\u4E50"],disc:["music","album","\u97F3\u4E50","\u5531\u7247"],album:["music","\u5531\u7247","\u97F3\u4E50"],dvd:["cd","dvd","record","\u5149\u76D8","\u523B\u5F55"],headphone:["music","headset","\u8033\u673A","\u97F3\u4E50"],radio:["\u6536\u97F3\u673A","\u7535\u53F0"],"radio-2":["\u6536\u97F3\u673A","\u7535\u53F0"],tape:["\u5F55\u97F3","\u78C1\u5E26"],mic:["record","voice","\u8BDD\u7B52","\u8BED\u97F3","\u5F55\u97F3","\u58F0\u97F3"],"mic-2":["record","voice","\u8BDD\u7B52","\u8BED\u97F3","\u5F55\u97F3","\u58F0\u97F3"],"mic-off":["record","voice","slash","\u5173\u95ED\u8BDD\u7B52","\u5173\u95ED\u8BED\u97F3","\u5F55\u97F3","\u5173\u95ED\u58F0\u97F3","\u9759\u97F3","\u7981\u6B62"],"volume-down":["trumpet","sound","speaker","\u97F3\u91CF\u4F4E","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668"],"volume-mute":["trumpet","sound","off","\u97F3\u91CF\u4F4E","\u5587\u53ED","\u58F0\u97F3","\u9759\u97F3"],"volume-up":["trumpet","sound","speaker","\u97F3\u91CF\u9AD8","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668"],"volume-vibrate":["trumpet","sound","speaker","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668","\u9707\u52A8\u6A21\u5F0F"],"volume-off-vibrate":["trumpet","sound","speaker","\u9759\u97F3","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668","\u9759\u97F3\u6A21\u5F0F"],speaker:["\u97F3\u54CD"],"speaker-2":["\u97F3\u54CD"],"speaker-3":["\u97F3\u54CD"],"surround-sound":["\u73AF\u7ED5\u7ACB\u4F53\u58F0"],broadcast:["\u5E7F\u64AD"],notification:["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-2":["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-3":["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-4":["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-off":["bell","alarm","silent","slash","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192","\u514D\u6253\u6270","\u9759\u97F3","\u5173\u95ED","\u7981\u6B62"],"play-circle":["start","\u64AD\u653E","\u5F00\u59CB"],"pause-circle":["\u6682\u505C"],"record-circle":["\u5F55\u97F3"],"stop-circle":["\u505C\u6B62"],eject:["\u63A8\u51FA"],play:["start","\u64AD\u653E","\u5F00\u59CB"],pause:["\u6682\u505C"],stop:["\u505C\u6B62"],rewind:["fast","\u5FEB\u9000"],speed:["fast","\u5FEB\u8FDB"],"skip-back":["\u4E0A\u4E00\u66F2"],"skip-forward":["\u4E0B\u4E00\u66F2"],"play-mini":["\u64AD\u653E"],"pause-mini":["\u6682\u505C"],"stop-mini":["\u505C\u6B62"],"rewind-mini":["fast","\u5FEB\u9000"],"speed-mini":["fast","\u5FEB\u8FDB"],"skip-back-mini":["\u4E0A\u4E00\u66F2"],"skip-forward-mini":["\u4E0B\u4E00\u66F2"],repeat:["\u5FAA\u73AF\u64AD\u653E"],"repeat-2":["\u5FAA\u73AF\u64AD\u653E"],"repeat-one":["\u5355\u66F2\u5FAA\u73AF"],"order-play":["\u987A\u5E8F\u64AD\u653E"],shuffle:["\u968F\u673A\u64AD\u653E"],"play-list":["\u64AD\u653E\u5217\u8868"],"play-list-2":["\u64AD\u653E\u5217\u8868"],"play-list-add":["\u5217\u8868","\u6DFB\u52A0"],fullscreen:["maximize","\u5168\u5C4F","\u6700\u5927\u5316"],"fullscreen-exit":["minimize","\u9000\u51FA\u5168\u5C4F","\u6700\u5C0F\u5316"],equalizer:["sliders","controls","settings","filter","\u5747\u8861\u5668","\u63A7\u5236\u5668","\u8BBE\u7F6E","\u7B5B\u9009"],"sound-module":["sliders","controls","settings","filter","\u5747\u8861\u5668","\u63A7\u5236\u5668","\u8BBE\u7F6E","\u7B5B\u9009"],rhythm:["\u8282\u594F","\u97F5\u5F8B"],voiceprint:["\u58F0\u7EB9"],hq:["high quality","\u9AD8\u8D28\u91CF","\u9AD8\u54C1\u8D28"],hd:["high definition","\u9AD8\u6E05\u6670\u5EA6"],"4k":["high definition","high quality","\u9AD8\u6E05\u6670\u5EA6","\u9AD8\u54C1\u8D28","\u8D85\u6E05"],"closed-captioning":["\u9690\u85CF\u5B57\u5E55"],"aspect-ratio":["\u5BBD\u9AD8\u6BD4","\u6BD4\u4F8B"],"picture-in-picture":["\u753B\u4E2D\u753B","\u5C0F\u7A97"],"picture-in-picture-2":["\u753B\u4E2D\u753B","\u5C0F\u7A97"],"picture-in-picture-exit":["\u9000\u51FA\u753B\u4E2D\u753B","\u9000\u51FA\u5C0F\u7A97"]},System:{apps:["\u5E94\u7528"],"apps-2":["\u5E94\u7528"],function:["layout","\u529F\u80FD","\u5E94\u7528","\u5361\u7247\u5E03\u5C40"],dashboard:["\u4EEA\u8868\u76D8"],menu:["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-2":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-3":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-4":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-5":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-add":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305","\u6DFB\u52A0"],"menu-fold":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305","\u5C55\u5F00"],more:["ellipsis","\u66F4\u591A","\u7701\u7565"],"more-2":["ellipsis","\u66F4\u591A","\u7701\u7565"],star:["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22"],"star-s":["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22","\u534A\u661F"],"star-half":["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22"],"star-half-s":["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22","\u534A\u661F"],settings:["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-2":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-3":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-4":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-5":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-6":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"list-settings":["\u5217\u8868","\u8BBE\u7F6E"],forbid:["slash","ban","\u7981\u6B62","\u7981\u7528"],"forbid-2":["slash","ban","\u7981\u6B62","\u7981\u7528"],information:["\u4FE1\u606F"],"error-warning":["alert","\u8B66\u544A","\u9519\u8BEF"],question:["help","\u95EE\u53F7","\u5E2E\u52A9"],alert:["\u63D0\u9192","\u8B66\u544A"],spam:["alert","\u5783\u573E\u90AE\u4EF6","\u8B66\u544A"],"spam-2":["alert","\u5783\u573E\u90AE\u4EF6","\u8B66\u544A"],"spam-3":["alert","\u5783\u573E\u90AE\u4EF6","\u8B66\u544A"],"checkbox-blank":["\u590D\u9009\u6846","\u7A7A"],checkbox:["\u590D\u9009\u6846"],"checkbox-indeterminate":["\u590D\u9009\u6846"],"add-box":["plus","new","\u590D\u9009\u6846","\u6DFB\u52A0","\u52A0\u53F7","\u65B0\u589E"],"checkbox-blank-circle":["\u590D\u9009\u6846","\u7A7A"],"checkbox-circle":["\u590D\u9009\u6846"],"indeterminate-circle":["slash","ban","\u590D\u9009\u6846","\u7981"],"add-circle":["plus","new","\u590D\u9009\u6846","\u6DFB\u52A0","\u52A0\u53F7","\u65B0\u589E"],"close-circle":["cancel","remove","delete","empty","x","\u5173\u95ED","\u53D6\u6D88","\u79FB\u9664","\u5220\u9664","\u6E05\u7A7A"],"radio-button":["\u5355\u9009\u6846"],"checkbox-multiple-blank":["\u590D\u9009\u6846","\u7A7A"],"checkbox-multiple":["\u590D\u9009\u6846","\u7A7A"],check:["\u5BF9\u52FE"],"check-double":["read","done","double-tick","\u53CC\u5BF9\u52FE","\u5DF2\u8BFB"],close:["cancel","remove","delete","empty","x","\u5173\u95ED","\u53D6\u6D88","\u79FB\u9664","\u5220\u9664","\u6E05\u7A7A"],add:["plus","new","\u6DFB\u52A0","\u65B0\u589E","\u52A0\u53F7"],subtract:["\u51CF"],divide:["\u9664\u4EE5"],"arrow-left-up":["corner","\u5DE6\u4E0A"],"arrow-up":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-right-up":["corner","\u53F3\u4E0A"],"arrow-right":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-right-down":["corner","\u53F3\u4E0B"],"arrow-down":["\u7BAD\u5934","\u5411\u4E0B"],"arrow-left-down":["corner","\u7BAD\u5934","\u5DE6\u4E0B"],"arrow-left":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-up-circle":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-right-circle":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-down-circle":["\u7BAD\u5934","\u5411\u4E0B","\u4E0B\u8F7D"],"arrow-left-circle":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-up-s":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-down-s":["\u7BAD\u5934","\u5411\u4E0B"],"arrow-right-s":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-left-s":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-drop-up":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-drop-right":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-drop-down":["\u7BAD\u5934","\u5411\u4E0B"],"arrow-drop-left":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-left-right":["exchange","swap","\u7BAD\u5934","\u5DE6\u53F3","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"arrow-up-down":["exchange","swap","\u7BAD\u5934","\u4E0A\u4E0B","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"arrow-go-back":["undo","\u7BAD\u5934","\u8FD4\u56DE","\u64A4\u9500","\u64A4\u56DE"],"arrow-go-forward":["redo","\u7BAD\u5934","\u91CD\u505A","\u64A4\u56DE"],download:["\u4E0B\u8F7D"],upload:["\u4E0A\u4F20"],"download-2":["\u4E0B\u8F7D"],"upload-2":["\u4E0A\u4F20"],"download-cloud":["\u4E0B\u8F7D","\u4E91"],"download-cloud-2":["\u4E0B\u8F7D","\u4E91"],"upload-cloud":["\u4E0A\u4F20","\u4E91"],"upload-cloud-2":["\u4E0A\u4F20","\u4E91"],"login-box":["sign in","\u767B\u5F55"],"logout-box":["sign out","\u767B\u51FA","\u6CE8\u9500"],"logout-box-r":["sign out","\u767B\u51FA","\u6CE8\u9500"],"login-circle":["sign in","\u767B\u5F55"],"logout-circle":["sign out","\u767B\u51FA","\u6CE8\u9500"],"logout-circle-r":["sign out","\u767B\u51FA","\u6CE8\u9500"],refresh:["synchronization","reload","restart","spinner","loader","ajax","update","\u5237\u65B0","\u540C\u6B65"],shield:["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1"],"shield-cross":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u95EA\u7535"],"shield-flash":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1"],"shield-star":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u661F\u661F"],"shield-user":["safety","protect","user protected","guarantor","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u7528\u6237"],"shield-keyhole":["safety","protect","guarantor","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u94A5\u5319\u5B54"],"shield-check":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1"],"delete-back":["backspace","\u5220\u9664","\u9000\u683C"],"delete-back-2":["backspace","\u5220\u9664","\u9000\u683C"],"delete-bin":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-2":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-3":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-4":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-5":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-6":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-7":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],lock:["security","password","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],"lock-2":["security","password","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],"lock-password":["security","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],"lock-unlock":["security","password","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],eye:["watch","view","\u773C\u775B","\u67E5\u770B"],"eye-off":["slash","\u773C\u775B","\u4E0D\u53EF\u89C1","\u5173\u95ED","\u7981\u6B62"],"eye-2":["watch","view","\u773C\u775B","\u67E5\u770B"],"eye-close":["x","\u95ED\u773C"],search:["\u641C\u7D22","\u653E\u5927\u955C"],"search-2":["\u641C\u7D22","\u653E\u5927\u955C"],"search-eye":["\u641C\u7D22","\u653E\u5927\u955C","\u773C\u775B"],"zoom-in":["\u653E\u5927","\u653E\u5927\u955C"],"zoom-out":["\u7F29\u5C0F","\u653E\u5927\u955C"],"find-replace":["\u67E5\u627E","\u641C\u7D22","\u66FF\u6362"],share:["\u5206\u4EAB","\u8F6C\u53D1"],"share-box":["\u5206\u4EAB","\u8F6C\u53D1"],"share-circle":["\u5206\u4EAB","\u8F6C\u53D1"],"share-forward":["\u5206\u4EAB","\u8F6C\u53D1"],"share-forward-2":["\u5206\u4EAB","\u8F6C\u53D1"],"share-forward-box":["\u5206\u4EAB","\u8F6C\u53D1"],"side-bar":["\u4FA7\u8FB9\u680F"],time:["clock","\u65F6\u95F4","\u65F6\u949F","\u949F\u8868"],timer:["chronograph","stopwatch","\u79D2\u8868","\u8BA1\u65F6\u5668"],"timer-2":["chronograph","stopwatch","\u79D2\u8868","\u8BA1\u65F6\u5668"],"timer-flash":["chronograph","stopwatch","\u79D2\u8868","\u8BA1\u65F6\u5668","\u95EA\u7535"],alarm:["\u95F9\u949F"],history:["record","recent","time machine","\u5386\u53F2\u8BB0\u5F55","\u6700\u8FD1"],"thumb-down":["dislike","bad","\u4E0D\u559C\u6B22","\u4E0D\u597D"],"thumb-up":["like","good","\u559C\u6B22","\u597D"],"alarm-warning":["alert","report","police light","\u544A\u8B66","\u4E3E\u62A5","\u8B66\u706F"],"notification-badge":["red dot","\u901A\u77E5","\u5C0F\u7EA2\u70B9"],toggle:["switch","\u5F00\u5173","\u89E6\u53D1\u5668"],filter:["filtration","\u7B5B\u9009","\u8FC7\u6EE4"],"filter-2":["filtration","\u7B5B\u9009","\u8FC7\u6EE4"],"filter-3":["filtration","\u7B5B\u9009","\u8FC7\u6EE4"],"filter-off":["filtration","clear-filter","\u7B5B\u9009","\u8FC7\u6EE4"],loader:["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-2":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-3":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-4":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-5":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"external-link":["\u5916\u94FE"]},"User & Faces":{user:["\u7528\u6237"],"user-2":["\u7528\u6237"],"user-3":["\u7528\u6237"],"user-4":["\u7528\u6237"],"user-5":["\u7528\u6237"],"user-6":["\u7528\u6237"],"user-smile":["\u7528\u6237","\u5FAE\u7B11"],"account-box":["\u7528\u6237","\u8D26\u6237"],"account-circle":["\u7528\u6237","\u8D26\u6237"],"account-pin-box":["\u7528\u6237","\u8D26\u6237"],"account-pin-circle":["\u7528\u6237","\u8D26\u6237"],"user-add":["\u7528\u6237","\u6DFB\u52A0","\u65B0\u589E"],"user-follow":["\u5173\u6CE8"],"user-unfollow":["\u7528\u6237","\u53D6\u6D88\u5173\u6CE8"],"user-shared":["transfer","\u7528\u6237","\u6211\u5206\u4EAB\u7684","\u53D1\u9001"],"user-shared-2":["transfer","\u7528\u6237","\u6211\u5206\u4EAB\u7684","\u53D1\u9001"],"user-received":["\u7528\u6237","\u6211\u63A5\u6536\u7684","\u6536\u53D6"],"user-received-2":["\u7528\u6237","\u6211\u63A5\u6536\u7684","\u6536\u53D6"],"user-location":["\u7528\u6237","\u5B9A\u4F4D"],"user-search":["\u7528\u6237","\u67E5\u627E"],"user-settings":["admin","\u7528\u6237","\u8BBE\u7F6E","\u7BA1\u7406\u5458"],"user-star":["\u7528\u6237","\u5173\u6CE8"],"user-heart":["\u7528\u6237","\u5173\u6CE8"],admin:["admin","\u7528\u6237","\u7BA1\u7406\u5458"],contacts:["\u8054\u7CFB\u4EBA"],group:["team","\u56E2\u961F","\u7FA4\u7EC4"],"group-2":["team","\u56E2\u961F","\u7FA4\u7EC4"],team:["\u56E2\u961F","\u5C0F\u7EC4","\u7FA4\u4E3B"],"user-voice":["\u7528\u6237","\u5F55\u97F3","\u6F14\u8BB2"],emotion:["\u8868\u60C5","\u7B11\u8138"],"emotion-2":["\u8868\u60C5","\u7B11\u8138"],"emotion-happy":["\u8868\u60C5","\u5F00\u5FC3"],"emotion-normal":["\u8868\u60C5","\u4E00\u822C"],"emotion-unhappy":["\u8868\u60C5","\u4E0D\u5F00\u5FC3"],"emotion-laugh":["comedy","happy","\u8868\u60C5","\u5927\u7B11","\u7B11\u8138","\u5F00\u5FC3","\u559C\u5267"],"emotion-sad":["drama","tears","\u60B2\u5267","\u54ED\u6CE3","\u6CEA"],skull:["ghost","\u9AB7\u9AC5","\u9B3C\u602A"],"skull-2":["ghost","horror","thriller","\u9AB7\u9AC5","\u9B3C\u602A","\u6050\u60E7","\u6050\u6016"],men:["gender","man","male","\u7537\u4EBA","\u7537\u6027"],women:["gender","woman","female","\u5973\u4EBA","\u5973\u6027"],travesti:["\u5973\u4EBA","\u5973\u6027"],genderless:["\u5973\u4EBA","\u5973\u6027"],"open-arm":["\u5F20\u5F00\u53CC\u81C2"],"body-scan":["gesture recognition","body","\u626B\u63CF\u8EAB\u4F53","\u4F53\u6001\u8BC6\u522B","\u52A8\u4F5C\u4E4B\u522B","\u624B\u52BF\u8BC6\u522B"],parent:["patriarch","\u7236\u6BCD","\u4EB2\u5B50","\u5BB6\u957F"],robot:["mechanic","\u673A\u5668\u4EBA"],aliens:["science fiction","ET","\u5916\u661F\u4EBA","\u79D1\u5E7B\u5C0F\u8BF4"],"bear-smile":["cartoon","anime","cartoon","\u5C0F\u718A","\u5FAE\u7B11","\u513F\u7AE5","\u52A8\u753B\u7247","\u5361\u901A","\u52A8\u6F2B"],mickey:["cartoon","disney","\u8FEA\u58EB\u5C3C","\u7C73\u8001\u9F20","\u5FAE\u7B11","\u513F\u7AE5","\u52A8\u753B\u7247"],criminal:["horror","thriller","\u7F6A\u72AF","\u72AF\u7F6A","\u6050\u6016"],ghost:["horror","thriller","\u9B3C\u602A","\u6050\u6016","\u6050\u60E7"],"ghost-2":["horror","\u9B3C\u602A","\u6050\u6016","\u6050\u60E7"],"ghost-smile":["\u9B3C\u602A","\u7B11"],"star-smile":["animation","\u52A8\u753B","\u5FAE\u7B11","\u661F\u661F"],spy:["incognito mode","detective","secret","\u95F4\u8C0D","\u4FA6\u63A2","\u65E0\u75D5\u6A21\u5F0F","\u9690\u79C1\u6A21\u5F0F"]},Weather:{sun:["light mode","sunny","\u592A\u9633","\u767D\u5929\u6A21\u5F0F","\u6674\u5929"],moon:["dark mode","night","\u6708\u4EAE","\u591C\u95F4\u6A21\u5F0F","\u6708\u7259"],flashlight:["\u95EA\u7535"],cloudy:["\u591A\u4E91"],"cloudy-2":["\u591A\u4E91"],mist:["\u96FE\u6C14","\u96FE\u973E"],foggy:["\u5927\u96FE"],"cloud-windy":["\u98CE"],windy:["\u5927\u98CE","\u522E\u98CE"],rainy:["\u4E0B\u96E8","\u96E8\u5929"],drizzle:["\u5C0F\u96E8"],showers:["\u4E2D\u96E8"],"heavy-showers":["\u5927\u96E8"],thunderstorms:["\u96F7\u66B4","\u96F7\u9635\u96E8"],hail:["\u51B0\u96F9"],snowy:["\u4E0B\u96EA","\u96EA\u5929"],"sun-cloudy":["\u6674\u8F6C\u591A\u4E91"],"moon-cloudy":["\u591C\u95F4\u591A\u4E91"],tornado:["\u9F99\u5377\u98CE"],typhoon:["cyclone","tornado","\u9F99\u5377\u98CE","\u65CB\u98CE","\u53F0\u98CE"],haze:["\u9634\u973E","\u8584\u96FE"],"haze-2":["\u9634\u973E","\u8584\u96FE"],"sun-foggy":["\u8584\u96FE"],"moon-foggy":["\u8584\u96FE"],"moon-clear":["\u591C\u95F4\u6A21\u5F0F","\u591C\u95F4\u65E0\u4E91"],"temp-hot":["temperature","\u6E29\u5EA6","\u9AD8\u6E29","\u70ED"],"temp-cold":["temperature","\u6E29\u5EA6","\u4F4E\u6E29","\u51B7"],celsius:["temperature","\u6E29\u5EA6","\u6444\u6C0F\u5EA6"],fahrenheit:["temperature","\u6E29\u5EA6","\u534E\u6C0F\u5EA6"],fire:["hot","\u706B","\u70ED\u95E8"],blaze:["\u706B\u707E"],earthquake:["\u5730\u9707"],flood:["\u6D2A\u6C34"],meteor:["\u6D41\u661F","\u9668\u77F3"],rainbow:["\u5F69\u8679"]},Others:{basketball:["sports","\u8FD0\u52A8","\u7BEE\u7403"],bell:["cartoon","anime","doraemon","\u94C3\u94DB","\u54C6\u5566A\u68A6","\u5361\u901A","\u52A8\u6F2B"],billiards:["sports","\u8FD0\u52A8","\u53F0\u7403","8"],boxing:["sports","\u8FD0\u52A8","\u62F3\u51FB"],cake:["anniversary","\u86CB\u7CD5"],"cake-2":["anniversary","\u86CB\u7CD5"],"cake-3":["\u86CB\u7CD5"],"door-lock":["\u95E8\u9501"],"door-lock-box":["\u95E8\u9501"],football:["sports","\u8FD0\u52A8","\u8DB3\u7403"],game:["pac man","\u6E38\u620F","\u5403\u8C46\u4EBA"],handbag:["fashion","\u65F6\u5C1A","\u624B\u63D0\u5305","\u5973\u5305"],key:["password","\u94A5\u5319","\u5BC6\u7801"],"key-2":["password","\u94A5\u5319","\u5BC6\u7801"],knife:["\u5200"],"knife-blood":["crime","\u5200","\u72AF\u7F6A","\u8840","\u6740\u4EBA"],lightbulb:["energy","creativity","\u706F\u6CE1","\u80FD\u6E90"],"lightbulb-flash":["energy","creativity","\u706F\u6CE1","\u80FD\u6E90","\u95EA\u7535"],outlet:["\u63D2\u5EA7"],"outlet-2":["\u63D2\u5EA7"],"ping-pong":["sports","table tennis","\u8FD0\u52A8","\u4E52\u4E53\u7403"],plug:["\u4E8C\u811A\u63D2\u5934"],"plug-2":["\u4E09\u811A\u63D2\u5934"],reserved:["\u5DF2\u9884\u5B9A"],shirt:["clothes","\u886C\u886B","\u8863\u670D"],sword:["war","\u5200\u5251","\u6218\u4E89","\u6218\u6597","\u7384\u5E7B"],"t-shirt":["skin","theme","T\u6064","\u76AE\u80A4","\u4E3B\u9898"],"t-shirt-2":["skin","theme","T\u6064","\u76AE\u80A4","\u4E3B\u9898"],"t-shirt-air":["dry","T\u6064","\u98CE\u5E72","\u70D8\u5E72"],umbrella:["protect","\u96E8\u4F1E","\u4FDD\u62A4"],"character-recognition":["ocr","\u6587\u5B57\u8BC6\u522B"],"voice-recognition":["asr","\u8BED\u97F3\u8BC6\u522B"],leaf:["energy","ecology","\u6811\u53F6","\u8282\u80FD","\u73AF\u4FDD","\u8BED\u97F3\u8BC6\u522B"],plant:["\u690D\u7269"],seedling:["\u6811\u82D7","\u690D\u7269"],recycle:["recyclable","\u53EF\u56DE\u6536"],scales:["balance","\u79F0","\u5929\u5E73","\u5929\u79E4"],"scales-2":["\u53A8\u623F\u79F0"],"scales-3":["balance","\u79F0","\u5929\u5E73","\u5929\u79E4"],fridge:["refrigerator","\u7535\u51B0\u7BB1"],wheelchair:["accessbility","\u8F6E\u6905","\u53EF\u8BBF\u95EE\u6027","\u8F85\u52A9\u529F\u80FD"],cactus:["desertr","\u4ED9\u4EBA\u638C","\u6C99\u6F20"],door:["\u95E8"],"door-open":["\u5F00\u95E8"],"door-closed":["\u5173\u95E8"]}};function bw(r,e,t){const n=r.slice();return n[29]=e[t],n}function vw(r,e,t){const n=r.slice();return n[32]=e[t],n[34]=t,n}function Mre(r){let e;return{c(){e=V(r[8])},m(t,n){$(t,e,n)},p(t,n){n[0]&256&&Te(e,t[8])},d(t){t&&b(e)}}}function Dre(r){let e;return{c(){e=D("span"),e.textContent="-"},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ww(r){let e,t=r[32]+"",n,i,l,s,o;function a(){return r[20](r[32])}let u=r[34]!==r[9].length-1&&Dre();return{c(){e=D("span"),n=V(t),i=R(),u&&u.c(),l=Ee(),w(e,"class","letter svelte-vhpvzd"),oe(e,"letter-selected",r[32]===r[2])},m(f,c){$(f,e,c),N(e,n),$(f,i,c),u&&u.m(f,c),$(f,l,c),s||(o=Pe(e,"click",a),s=!0)},p(f,c){r=f,c[0]&516&&oe(e,"letter-selected",r[32]===r[2])},d(f){f&&b(e),f&&b(i),u&&u.d(f),f&&b(l),s=!1,o()}}}function jre(r){let e;return{c(){e=V("Search")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Bre(r){let e,t,n=`There is no icons for this ${r[1]?"search":"page"}`,i;return{c(){e=D("div"),t=D("h5"),i=V(n),w(e,"class","no-icons svelte-vhpvzd")},m(l,s){$(l,e,s),N(e,t),N(t,i)},p(l,s){s[0]&2&&n!==(n=`There is no icons for this ${l[1]?"search":"page"}`)&&Te(i,n)},d(l){l&&b(e)}}}function zre(r){let e,t=!r[5]&&yw(r);return{c(){e=D("div"),t&&t.c(),w(e,"class","icon-area svelte-vhpvzd")},m(n,i){$(n,e,i),t&&t.m(e,null)},p(n,i){n[5]?t&&(t.d(1),t=null):t?t.p(n,i):(t=yw(n),t.c(),t.m(e,null))},d(n){n&&b(e),t&&t.d()}}}function yw(r){let e,t=r[7],n=[];for(let i=0;i<t.length;i+=1)n[i]=kw(bw(r,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();e=Ee()},m(i,l){for(let s=0;s<n.length;s+=1)n[s].m(i,l);$(i,e,l)},p(i,l){if(l[0]&129){t=i[7];let s;for(s=0;s<t.length;s+=1){const o=bw(i,t,s);n[s]?n[s].p(o,l):(n[s]=kw(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(i){$t(n,i),i&&b(e)}}}function kw(r){let e,t,n,i,l,s,o=r[29]+"",a,u,f,c,p,d,g,h,v,C=r[29]+"",y,I,O,T,P;function M(){return r[24](r[29])}function F(){return r[25](r[29])}return{c(){e=D("div"),t=D("div"),n=D("i"),l=R(),s=D("div"),a=V(o),u=V("-fill"),f=R(),c=D("div"),p=D("div"),d=D("i"),h=R(),v=D("div"),y=V(C),I=V("-line"),O=R(),w(n,"class",i=""+(Vn(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd")),w(t,"class","icon-preview svelte-vhpvzd"),w(s,"class","icon-label svelte-vhpvzd"),w(e,"class","icon-container svelte-vhpvzd"),oe(e,"selected",r[0]===`ri-${r[29]}-fill`),w(d,"class",g=""+(Vn(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd")),w(p,"class","icon-preview svelte-vhpvzd"),w(v,"class","icon-label svelte-vhpvzd"),w(c,"class","icon-container svelte-vhpvzd"),oe(c,"selected",r[0]===`ri-${r[29]}-line`)},m(j,B){$(j,e,B),N(e,t),N(t,n),N(e,l),N(e,s),N(s,a),N(s,u),$(j,f,B),$(j,c,B),N(c,p),N(p,d),N(c,h),N(c,v),N(v,y),N(v,I),N(c,O),T||(P=[Pe(e,"click",M),Pe(c,"click",F)],T=!0)},p(j,B){r=j,B[0]&128&&i!==(i=""+(Vn(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd"))&&w(n,"class",i),B[0]&128&&o!==(o=r[29]+"")&&Te(a,o),B[0]&129&&oe(e,"selected",r[0]===`ri-${r[29]}-fill`),B[0]&128&&g!==(g=""+(Vn(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd"))&&w(d,"class",g),B[0]&128&&C!==(C=r[29]+"")&&Te(y,C),B[0]&129&&oe(c,"selected",r[0]===`ri-${r[29]}-line`)},d(j){j&&b(e),j&&b(f),j&&b(c),T=!1,Tn(P)}}}function qre(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F=r[9],j=[];for(let H=0;H<F.length;H+=1)j[H]=ww(vw(r,F,H));function B(H){r[21](H)}let q={thin:!0,placeholder:"Search Icon"};r[1]!==void 0&&(q.value=r[1]),o=new tt({props:q}),Z.push(()=>ce(o,"value",B)),f=new ut({props:{secondary:!0,$$slots:{default:[jre]},$$scope:{ctx:r}}}),f.$on("click",r[13]);function G(H,W){return H[7].length>0?zre:Bre}let Y=G(r),U=Y(r);return{c(){e=D("div"),t=D("div"),n=D("div");for(let H=0;H<j.length;H+=1)j[H].c();i=R(),l=D("div"),s=D("div"),S(o.$$.fragment),u=R(),S(f.$$.fragment),c=R(),p=D("div"),d=D("div"),g=D("span"),g.innerHTML='<i class="page-btn ri-arrow-left-line ri-sm svelte-vhpvzd"></i>',h=R(),v=D("span"),C=V(r[6]),y=R(),I=D("span"),I.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',O=R(),U.c(),w(n,"class","alphabet-area svelte-vhpvzd"),w(s,"class","input-wrapper svelte-vhpvzd"),w(l,"class","search-input svelte-vhpvzd"),w(d,"class","pager"),w(p,"class","page-area svelte-vhpvzd"),w(t,"class","search-area svelte-vhpvzd"),w(e,"class","container svelte-vhpvzd")},m(H,W){$(H,e,W),N(e,t),N(t,n);for(let Q=0;Q<j.length;Q+=1)j[Q].m(n,null);N(t,i),N(t,l),N(l,s),A(o,s,null),N(l,u),A(f,l,null),N(t,c),N(t,p),N(p,d),N(d,g),N(d,h),N(d,v),N(v,C),N(d,y),N(d,I),N(e,O),U.m(e,null),T=!0,P||(M=[Pe(g,"click",r[22]),Pe(I,"click",r[23])],P=!0)},p(H,W){if(W[0]&1540){F=H[9];let K;for(K=0;K<F.length;K+=1){const ne=vw(H,F,K);j[K]?j[K].p(ne,W):(j[K]=ww(ne),j[K].c(),j[K].m(n,null))}for(;K<j.length;K+=1)j[K].d(1);j.length=F.length}const Q={};!a&&W[0]&2&&(a=!0,Q.value=H[1],pe(()=>a=!1)),o.$set(Q);const se={};W[1]&16&&(se.$$scope={dirty:W,ctx:H}),f.$set(se),(!T||W[0]&64)&&Te(C,H[6]),Y===(Y=G(H))&&U?U.p(H,W):(U.d(1),U=Y(H),U&&(U.c(),U.m(e,null)))},i(H){T||(m(o.$$.fragment,H),m(f.$$.fragment,H),T=!0)},o(H){_(o.$$.fragment,H),_(f.$$.fragment,H),T=!1},d(H){H&&b(e),$t(j,H),E(o),E(f),U.d(),P=!1,Tn(M)}}}function Ure(r){let e,t,n,i,l;t=new Yt({props:{$$slots:{default:[Mre]},$$scope:{ctx:r}}}),t.$on("click",function(){ct(r[4].show)&&r[4].show.apply(this,arguments)});let s={anchor:r[3],$$slots:{default:[qre]},$$scope:{ctx:r}};return i=new kp({props:s}),r[26](i),i.$on("open",r[11]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),r[19](e),$(o,n,a),A(i,o,a),l=!0},p(o,a){r=o;const u={};a[0]&256|a[1]&16&&(u.$$scope={dirty:a,ctx:r}),t.$set(u);const f={};a[0]&8&&(f.anchor=r[3]),a[0]&231|a[1]&16&&(f.$$scope={dirty:a,ctx:r}),i.$set(f)},i(o){l||(m(t.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(t.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){o&&b(e),E(t),r[19](null),o&&b(n),r[26](null),E(i,o)}}}const Fre=Object.keys($w).reduce((r,e)=>[...r,...Object.keys($w[e])],[]);function L1(r){const e=new RegExp(`^${r}`,"i");return Fre.filter(t=>e.test(t))}function Vre(r,e,t){let n,i,l,s,o;const a=ht();let{value:u=""}=e,{maxIconsPerPage:f=30}=e,c="",p="A",d=1,g=L1(p);const h=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];let v,C,y=!1;async function I(W){t(15,d=1),t(1,c=""),t(5,y=!0),t(2,p=W),t(16,g=L1(W)),await Ws(),t(5,y=!1)}async function O(){t(5,y=!0);const W=g.findIndex(Q=>Q.value===u);W!==-1&&t(15,d=Math.ceil(W/f)),await Ws(),t(5,y=!1)}async function T(){if(u){const W=n.substring(0,1);await I(W),await O()}}async function P(W){t(5,y=!0),W&&d<i?t(15,d++,d):!W&&d>1&&t(15,d--,d),await Ws(),t(5,y=!1)}async function M(){t(15,d=1),t(5,y=!0),t(16,g=L1(c)),await Ws(),t(5,y=!1)}function F(W){Z[W?"unshift":"push"](()=>{v=W,t(3,v)})}const j=W=>I(W);function B(W){c=W,t(1,c)}const q=()=>P(!1),G=()=>P(!0),Y=W=>t(0,u=`ri-${W}-fill`),U=W=>t(0,u=`ri-${W}-line`);function H(W){Z[W?"unshift":"push"](()=>{C=W,t(4,C)})}return r.$$set=W=>{"value"in W&&t(0,u=W.value),"maxIconsPerPage"in W&&t(14,f=W.maxIconsPerPage)},r.$$.update=()=>{r.$$.dirty[0]&1&&a("change",u),r.$$.dirty[0]&1&&t(8,n=u?u.substring(3):"Pick icon"),r.$$.dirty[0]&81920&&t(17,i=Math.ceil(g.length/f)),r.$$.dirty[0]&49152&&t(18,l=f*d),r.$$.dirty[0]&344064&&t(7,s=g.slice(l-f,l)),r.$$.dirty[0]&163840&&t(6,o=`Page ${d} of ${i}`)},[u,c,p,v,C,y,o,s,n,h,I,T,P,M,f,d,g,i,l,F,j,B,q,G,Y,U,H]}class Hre extends ie{constructor(e){super();le(this,e,Vre,Ure,re,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function Wre(r){let e,t;return e=new Qe({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.placeholder=n[0]),i&4&&(l.value=n[2]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Gre(r,e,t){let n,i,l,s,o;fe(r,fn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=ht(),p=(g,h)=>!Array.isArray(h)||h.indexOf(g)===-1?null:g,d=g=>{t(2,s=p(g.detail,l)),c("change",s)};return r.$$set=g=>{"componentInstance"in g&&t(4,a=g.componentInstance),"value"in g&&t(5,u=g.value),"placeholder"in g&&t(0,f=g.placeholder)},r.$$.update=()=>{r.$$.dirty&272&&t(7,n=El(o,a)),r.$$.dirty&384&&t(6,i=Di(o,n).schema),r.$$.dirty&64&&t(1,l=Object.keys(i||{})),r.$$.dirty&34&&t(2,s=p(u,l))},[f,l,s,d,a,u,i,n,o]}class Yre extends ie{constructor(e){super();le(this,e,Gre,Wre,re,{componentInstance:4,value:5,placeholder:0})}}function Jre(r){let e,t;return e=new Yo({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.placeholder=n[0]),i&4&&(l.value=n[2]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Qre(r,e,t){let n,i,l,s,o;fe(r,fn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=ht(),p=(g,h)=>(Array.isArray(g)||(g=[]),g.filter(v=>h.indexOf(v)!==-1)),d=g=>{t(2,s=p(g.detail,l)),c("change",s)};return r.$$set=g=>{"componentInstance"in g&&t(4,a=g.componentInstance),"value"in g&&t(5,u=g.value),"placeholder"in g&&t(0,f=g.placeholder)},r.$$.update=()=>{r.$$.dirty&272&&t(7,n=El(o,a)),r.$$.dirty&384&&t(6,i=Di(o,n).schema),r.$$.dirty&64&&t(1,l=Object.keys(i||{})),r.$$.dirty&34&&t(2,s=p(u,l))},[f,l,s,d,a,u,i,n,o]}class Xre extends ie{constructor(e){super();le(this,e,Qre,Jre,re,{componentInstance:4,value:5,placeholder:0})}}function Kre(r){let e,t;return e=new Yo({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.placeholder=n[0]),i&4&&(l.value=n[2]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Cw(r,e){return Array.isArray(r)||(r=[]),r.filter(t=>e.indexOf(t)!==-1)}function Zre(r,e,t){let n,i,l,s,o,a;fe(r,Ot,h=>t(9,o=h)),fe(r,fn,h=>t(8,a=h));let{componentInstance:u={}}=e,{value:f=""}=e,{placeholder:c}=e;const p=ht();function d(h,v){let C=Object.values(v);if(!(h==null?void 0:h.tableId))return C;const y=o.list.find(I=>I._id===h.tableId);return C1(C,{allowLinks:y==null?void 0:y.sql}).map(I=>I.name)}const g=h=>{t(2,s=Cw(h.detail,l)),p("change",s)};return r.$$set=h=>{"componentInstance"in h&&t(4,u=h.componentInstance),"value"in h&&t(5,f=h.value),"placeholder"in h&&t(0,c=h.placeholder)},r.$$.update=()=>{r.$$.dirty&272&&t(7,n=El(a,u)),r.$$.dirty&384&&t(6,i=Di(a,n,{searchableSchema:!0}).schema),r.$$.dirty&192&&t(1,l=d(n,i||{})),r.$$.dirty&34&&t(2,s=Cw(f,l))},[c,l,s,g,u,f,i,n,a]}class xre extends ie{constructor(e){super();le(this,e,Zre,Kre,re,{componentInstance:4,value:5,placeholder:0})}}function eie(r){let e,t;const n=[r[1],{showAllQueries:!0},{otherSources:r[0]}];let i={};for(let l=0;l<n.length;l+=1)i=Ui(i,n[l]);return e=new W6({props:i}),e.$on("change",r[2]),{c(){S(e.$$.fragment)},m(l,s){A(e,l,s),t=!0},p(l,[s]){const o=s&3?Eu(n,[s&2&&Ou(l[1]),n[1],s&1&&{otherSources:l[0]}]):{};e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){_(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function tie(r,e,t){const n=[{name:"Custom",label:"Custom"}];function i(l){dt.call(this,r,l)}return r.$$set=l=>{t(1,e=Ui(Ui({},e),Iu(l)))},e=Iu(e),[n,e,i]}class nie extends ie{constructor(e){super();le(this,e,tie,eie,re,{})}}function Sw(r,e,t){const n=r.slice();return n[8]=e[t][0],n[0]=e[t][1],n}function rie(r){let e=r[4][r[0]].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[4][n[0]].name+"")&&Te(t,e)},d(n){n&&b(t)}}}function iie(r){let e=r[0].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p:Oe,d(n){n&&b(t)}}}function Aw(r){let e,t,n,i,l,s,o,a;t=new gt({props:{color:"white",size:"L",name:r[0].icon}}),i=new Ke({props:{size:"XS",$$slots:{default:[iie]},$$scope:{ctx:r}}});function u(){return r[5](r[8])}return{c(){e=D("button"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),w(e,"class","layout svelte-dl48fo"),oe(e,"selected",r[1]===r[8])},m(f,c){$(f,e,c),A(t,e,null),N(e,n),A(i,e,null),N(e,l),s=!0,o||(a=Pe(e,"click",u),o=!0)},p(f,c){r=f;const p={};c&2048&&(p.$$scope={dirty:c,ctx:r}),i.$set(p),c&18&&oe(e,"selected",r[1]===r[8])},i(f){s||(m(t.$$.fragment,f),m(i.$$.fragment,f),s=!0)},o(f){_(t.$$.fragment,f),_(i.$$.fragment,f),s=!1},d(f){f&&b(e),E(t),E(i),o=!1,a()}}}function lie(r){let e,t,n=Object.entries(r[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Aw(Sw(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","container svelte-dl48fo")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,o){if(o&18){n=Object.entries(s[4]);let a;for(a=0;a<n.length;a+=1){const u=Sw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Aw(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),$t(i,s)}}}function sie(r){let e,t;return e=new Bt({props:{onConfirm:r[6],size:"L",title:"Select layout",$$slots:{default:[lie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.onConfirm=n[6]),i&2050&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function oie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[rie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[2].show)&&r[2].show.apply(this,arguments)});let l={$$slots:{default:[sie]},$$scope:{ctx:r}};return n=new At({props:l}),r[7](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&2049&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&2050&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[7](null),E(n,s)}}}function aie(r,e,t){const n=ht();let{value:i=""}=e,l=i,s,o={mainSidebar:{name:"Main with Sidebar",icon:"ColumnTwoB"},sidebarMain:{name:"Sidebar with Main",icon:"ColumnTwoC"},twoColumns:{name:"Two columns",icon:"ColumnTwoA"},threeColumns:{name:"Three columns",icon:"ViewColumn"}};const a=c=>t(1,l=c),u=()=>n("change",l);function f(c){Z[c?"unshift":"push"](()=>{s=c,t(2,s)})}return r.$$set=c=>{"value"in c&&t(0,i=c.value)},[i,l,s,n,o,a,u,f]}class uie extends ie{constructor(e){super();le(this,e,aie,oie,re,{value:0})}}function Ew(r,e,t){const n=r.slice();return n[12]=e[t],n[13]=e,n[14]=t,n}function Ow(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[12].id;for(let f=0;f<a.length;f+=1){let c=Ew(r,a,f),p=u(c);n.set(p,t[f]=Tw(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();w(e,"class","links svelte-1mnha07")},m(f,c){$(f,e,c);for(let p=0;p<t.length;p+=1)t[p].m(e,null);l=!0,s||(o=[vr(i=Pu.call(null,e,{items:r[0],flipDurationMs:P1,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Pe(e,"finalize",r[6]),Pe(e,"consider",r[5])],s=!0)},p(f,c){if(c&23){a=f[0],ee();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,Uo,Tw,null,Ew);for(let p=0;p<t.length;p+=1)t[p].a();te()}i&&ct(i.update)&&c&3&&i.update.call(null,{items:f[0],flipDurationMs:P1,dropTargetStyle:{outline:"none"},dragDisabled:f[1]})},i(f){if(!l){for(let c=0;c<a.length;c+=1)m(t[c]);l=!0}},o(f){for(let c=0;c<t.length;c+=1)_(t[c]);l=!1},d(f){f&&b(e);for(let c=0;c<t.length;c+=1)t[c].d();s=!1,Tn(o)}}}function Tw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v=Oe,C,y,I;i=new gt({props:{name:"DragHandle",size:"XL"}});function O(j){e[9](j,e[12])}let T={placeholder:"Text"};e[12].text!==void 0&&(T.value=e[12].text),o=new tt({props:T}),Z.push(()=>ce(o,"value",O));function P(j){e[10](j,e[12])}let M={placeholder:"URL",options:e[2]};e[12].url!==void 0&&(M.value=e[12].url),f=new Gs({props:M}),Z.push(()=>ce(f,"value",P));function F(){return e[11](e[12])}return d=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),d.$on("click",F),{key:r,first:null,c(){t=D("div"),n=D("div"),S(i.$$.fragment),s=R(),S(o.$$.fragment),u=R(),S(f.$$.fragment),p=R(),S(d.$$.fragment),g=R(),w(n,"class","handle svelte-1mnha07"),w(n,"aria-label","drag-handle"),w(n,"style",l=e[1]?"cursor: grab":"cursor: grabbing"),w(t,"class","link svelte-1mnha07"),this.first=t},m(j,B){$(j,t,B),N(t,n),A(i,n,null),N(t,s),A(o,t,null),N(t,u),A(f,t,null),N(t,p),A(d,t,null),N(t,g),C=!0,y||(I=Pe(n,"mousedown",e[8]),y=!0)},p(j,B){e=j,(!C||B&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&w(n,"style",l);const q={};!a&&B&1&&(a=!0,q.value=e[12].text,pe(()=>a=!1)),o.$set(q);const G={};B&4&&(G.options=e[2]),!c&&B&1&&(c=!0,G.value=e[12].url,pe(()=>c=!1)),f.$set(G)},r(){h=t.getBoundingClientRect()},f(){Fo(t),v()},a(){v(),v=Vo(t,h,Ho,{duration:P1})},i(j){C||(m(i.$$.fragment,j),m(o.$$.fragment,j),m(f.$$.fragment,j),m(d.$$.fragment,j),C=!0)},o(j){_(i.$$.fragment,j),_(o.$$.fragment,j),_(f.$$.fragment,j),_(d.$$.fragment,j),C=!1},d(j){j&&b(t),E(i),E(o),E(f),E(d),y=!1,I()}}}function fie(r){let e;return{c(){e=V("Add Link")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cie(r){var s;let e,t,n,i,l=((s=r[0])==null?void 0:s.length)&&Ow(r);return n=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[fie]},$$scope:{ctx:r}}}),n.$on("click",r[3]),{c(){l&&l.c(),e=R(),t=D("div"),S(n.$$.fragment)},m(o,a){l&&l.m(o,a),$(o,e,a),$(o,t,a),A(n,t,null),i=!0},p(o,a){var f;((f=o[0])==null?void 0:f.length)?l?(l.p(o,a),a&1&&m(l,1)):(l=Ow(o),l.c(),m(l,1),l.m(e.parentNode,e)):l&&(ee(),_(l,1,1,()=>{l=null}),te());const u={};a&32768&&(u.$$scope={dirty:a,ctx:o}),n.$set(u)},i(o){i||(m(l),m(n.$$.fragment,o),i=!0)},o(o){_(l),_(n.$$.fragment,o),i=!1},d(o){l&&l.d(o),o&&b(e),o&&b(t),E(n)}}}function pie(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[cie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-1mnha07")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&32775&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function die(r){let e,t;return e=new Ai({props:{$$slots:{default:[pie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&32775&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const P1=150;function mie(r,e,t){let n,i;fe(r,He,h=>t(7,i=h));let{links:l=[]}=e,s=!0;const o=()=>{t(0,l=[...l,{}])},a=h=>{t(0,l=l.filter(v=>v.id!==h))},u=h=>{t(0,l=h.detail.items)},f=h=>{u(h),t(1,s=!0)},c=()=>t(1,s=!1);function p(h,v){r.$$.not_equal(v.text,h)&&(v.text=h,t(0,l))}function d(h,v){r.$$.not_equal(v.url,h)&&(v.url=h,t(0,l))}const g=h=>a(h.id);return r.$$set=h=>{"links"in h&&t(0,l=h.links)},r.$$.update=()=>{r.$$.dirty&1&&l.forEach(h=>{h.id||(h.id=Br.generate())}),r.$$.dirty&128&&t(2,n=i.screens.map(h=>{var v;return(v=h.routing)==null?void 0:v.route}).filter(h=>h!=null))},[l,s,n,o,a,u,f,i,c,p,d,g]}class gie extends ie{constructor(e){super();le(this,e,mie,die,re,{links:0})}}function _ie(r){let e;return{c(){e=V("Configure links")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hie(r){let e;return{c(){e=V("Configure the links in your navigation bar.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $ie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function bie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[$ie]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&128&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function vie(r){let e,t,n;function i(s){r[4](s)}let l={slot:"body"};return r[1]!==void 0&&(l.links=r[1]),e=new gie({props:l}),Z.push(()=>ce(e,"links",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&2&&(t=!0,a.links=s[1],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function wie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[_ie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Navigation Links",$$slots:{body:[vie],buttons:[bie],description:[hie]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&128&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&130&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function yie(r,e,t){let{value:n=[]}=e,i,l=vn.cloneDeep(n||[]);const s=ht(),o=()=>{s("change",l),i.hide()};function a(f){l=f,t(1,l)}function u(f){Z[f?"unshift":"push"](()=>{i=f,t(0,i)})}return r.$$set=f=>{"value"in f&&t(3,n=f.value)},[i,l,o,n,a,u]}class kie extends ie{constructor(e){super();le(this,e,yie,wie,re,{value:3})}}function Cie(r){let e;return{c(){e=V("Define filters")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Aie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Sie]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8192&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Eie(r){let e,t,n;function i(s){r[10](s)}let l={slot:"body",bindings:r[0],schemaFields:r[3]};return r[2]!==void 0&&(l.filters=r[2]),e=new S1({props:l}),Z.push(()=>ce(e,"filters",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&1&&(a.bindings=s[0]),o&8&&(a.schemaFields=s[3]),!t&&o&4&&(t=!0,a.filters=s[2],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Oie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Cie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={title:"Filtering",$$slots:{body:[Eie],buttons:[Aie]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[11](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&8192&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&8205&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[11](null),E(n,s)}}}function Tie(r,e,t){let n,i,l,s;fe(r,fn,v=>t(9,s=v));const o=ht();let{value:a=[]}=e,{componentInstance:u}=e,{bindings:f=[]}=e,c,p=a||[];const d=async()=>{o("change",p),ye.success("Filters saved."),c.hide()};function g(v){p=v,t(2,p)}function h(v){Z[v?"unshift":"push"](()=>{c=v,t(1,c)})}return r.$$set=v=>{"value"in v&&t(5,a=v.value),"componentInstance"in v&&t(6,u=v.componentInstance),"bindings"in v&&t(0,f=v.bindings)},r.$$.update=()=>{var v;r.$$.dirty&576&&t(8,n=El(s,u)),r.$$.dirty&768&&t(7,i=(v=Di(s,n))==null?void 0:v.schema),r.$$.dirty&128&&t(3,l=Object.values(i||{}))},[f,c,p,l,d,a,u,i,n,s,g,h]}class Iie extends ie{constructor(e){super();le(this,e,Tie,Oie,re,{value:5,componentInstance:6,bindings:0})}}function Iw(r){let e,t,n,i,l;return t=new gt({props:{size:"S",name:"FlashOn"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","icon svelte-1q3yltm"),w(e,"data-cy","text-binding-button")},m(s,o){$(s,e,o),A(t,e,null),n=!0,i||(l=Pe(e,"click",function(){ct(r[8].show)&&r[8].show.apply(this,arguments)}),i=!0)},p(s,o){r=s},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),E(t),i=!1,l()}}}function Lie(r){let e;return{c(){e=V("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Pie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Pie]},$$scope:{ctx:r}}}),e.$on("click",r[12]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8388608&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Rie(r){let e,t,n;var i=r[0];function l(s){return{props:{slot:"body",value:s[7],close:s[12],bindings:s[1],allowJS:s[6]}}}return i&&(e=new i(l(r)),e.$on("change",r[19])),{c(){e&&S(e.$$.fragment),t=Ee()},m(s,o){e&&A(e,s,o),$(s,t,o),n=!0},p(s,o){const a={};if(o&128&&(a.value=s[7]),o&2&&(a.bindings=s[1]),o&64&&(a.allowJS=s[6]),i!==(i=s[0])){if(e){ee();const u=e;_(u.$$.fragment,1,0,()=>{E(u,1)}),te()}i?(e=new i(l(s)),e.$on("change",s[19]),S(e.$$.fragment),m(e.$$.fragment,1),A(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(s){n||(e&&m(e.$$.fragment,s),n=!0)},o(s){e&&_(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&E(e,s)}}}function Mie(r){let e,t,n,i,l,s;t=new Gs({props:{label:r[4],disabled:r[5],readonly:r[11],value:r[11]?"(JavaScript function)":r[7],placeholder:r[3],options:r[10]}}),t.$on("type",r[17]),t.$on("pick",r[18]);let o=!r[5]&&Iw(r),a={title:r[2],$$slots:{body:[Rie],buttons:[Nie],description:[Lie]},$$scope:{ctx:r}};return l=new Kr({props:a}),r[20](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),w(e,"class","control svelte-1q3yltm")},m(u,f){$(u,e,f),A(t,e,null),N(e,n),o&&o.m(e,null),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){const c={};f&16&&(c.label=u[4]),f&32&&(c.disabled=u[5]),f&2048&&(c.readonly=u[11]),f&2176&&(c.value=u[11]?"(JavaScript function)":u[7]),f&8&&(c.placeholder=u[3]),f&1024&&(c.options=u[10]),t.$set(c),u[5]?o&&(ee(),_(o,1,1,()=>{o=null}),te()):o?(o.p(u,f),f&32&&m(o,1)):(o=Iw(u),o.c(),m(o,1),o.m(e,null));const p={};f&4&&(p.title=u[2]),f&8389315&&(p.$$scope={dirty:f,ctx:u}),l.$set(p)},i(u){s||(m(t.$$.fragment,u),m(o),m(l.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(o),_(l.$$.fragment,u),s=!1},d(u){u&&b(e),E(t),o&&o.d(),u&&b(i),r[20](null),E(l,u)}}}function Die(r,e,t){let n,i,l,s,{panel:o=w1}=e,{value:a=""}=e,{bindings:u=[]}=e,{title:f="Bindings"}=e,{placeholder:c}=e,{label:p}=e,{disabled:d=!1}=e,{options:g}=e,{allowJS:h=!0}=e,{appendBindingsAsOptions:v=!0}=e;const C=ht();let y;const I=()=>{O(i),y.hide()},O=(B,q)=>{q&&!(g==null?void 0:g.includes(B))&&(B=`{{ ${B} }}`),C("change",As(u,B))},T=(B,q,G)=>G?[].concat(B||[]).concat((q==null?void 0:q.map(Y=>Y.readableBinding))||[]):B,P=B=>O(B.detail,!1),M=B=>O(B.detail,!0),F=B=>t(9,i=B.detail);function j(B){Z[B?"unshift":"push"](()=>{y=B,t(8,y)})}return r.$$set=B=>{"panel"in B&&t(0,o=B.panel),"value"in B&&t(14,a=B.value),"bindings"in B&&t(1,u=B.bindings),"title"in B&&t(2,f=B.title),"placeholder"in B&&t(3,c=B.placeholder),"label"in B&&t(4,p=B.label),"disabled"in B&&t(5,d=B.disabled),"options"in B&&t(15,g=B.options),"allowJS"in B&&t(6,h=B.allowJS),"appendBindingsAsOptions"in B&&t(16,v=B.appendBindingsAsOptions)},r.$$.update=()=>{r.$$.dirty&16386&&t(7,n=bo(u,a)),r.$$.dirty&128&&t(9,i=n),r.$$.dirty&16384&&t(11,l=Mf(a)),r.$$.dirty&98306&&t(10,s=T(g,u,v))},[o,u,f,c,p,d,h,n,y,i,s,l,I,O,a,g,v,P,M,F,j]}class Lw extends ie{constructor(e){super();le(this,e,Die,Mie,re,{panel:0,value:14,bindings:1,title:2,placeholder:3,label:4,disabled:5,options:15,allowJS:6,appendBindingsAsOptions:16})}}function jie(r){let e,t;return e=new Lw({props:{value:r[0],bindings:r[1],options:r[2],appendBindingsAsOptions:!1}}),e.$on("change",r[4]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.bindings=n[1]),i&4&&(l.options=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Bie(r,e,t){let n,i;fe(r,He,a=>t(3,i=a));let{value:l}=e,{bindings:s}=e;function o(a){dt.call(this,r,a)}return r.$$set=a=>{"value"in a&&t(0,l=a.value),"bindings"in a&&t(1,s=a.bindings)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=i.screens.map(a=>{var u;return(u=a.routing)==null?void 0:u.route}).filter(a=>a!=null))},[l,s,n,i,o]}class zie extends ie{constructor(e){super();le(this,e,Bie,jie,re,{value:0,bindings:1})}}function Pw(r,e,t){const n=r.slice();return n[6]=e[t],n[7]=e,n[8]=t,n}function Nw(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[qie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function qie(r){let e;return{c(){e=V("Add an option to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Rw(r){let e,t=[],n=new Map,i,l=r[0];const s=o=>o[6].id;for(let o=0;o<l.length;o+=1){let a=Pw(r,l,o),u=s(a);n.set(u,t[o]=Mw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","options svelte-12ls1u")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,a){a&3&&(l=o[0],ee(),t=er(t,a,s,1,o,l,n,e,jr,Mw,null,Pw),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function Mw(r,e){let t,n,i,l,s,o,a,u,f;function c(v){e[3](v,e[6])}let p={placeholder:"Label",label:"Label",labelPosition:"left"};e[6].label!==void 0&&(p.value=e[6].label),n=new tt({props:p}),Z.push(()=>ce(n,"value",c));function d(v){e[4](v,e[6])}let g={placeholder:"Value",label:"Value",labelPosition:"left"};e[6].value!==void 0&&(g.value=e[6].value),s=new tt({props:g}),Z.push(()=>ce(s,"value",d));function h(){return e[5](e[6])}return u=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),u.$on("click",h),{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),l=R(),S(s.$$.fragment),a=R(),S(u.$$.fragment),this.first=t},m(v,C){$(v,t,C),A(n,v,C),$(v,l,C),A(s,v,C),$(v,a,C),A(u,v,C),f=!0},p(v,C){e=v;const y={};!i&&C&1&&(i=!0,y.value=e[6].label,pe(()=>i=!1)),n.$set(y);const I={};!o&&C&1&&(o=!0,I.value=e[6].value,pe(()=>o=!1)),s.$set(I)},i(v){f||(m(n.$$.fragment,v),m(s.$$.fragment,v),m(u.$$.fragment,v),f=!0)},o(v){_(n.$$.fragment,v),_(s.$$.fragment,v),_(u.$$.fragment,v),f=!1},d(v){v&&b(t),E(n,v),v&&b(l),E(s,v),v&&b(a),E(u,v)}}}function Uie(r){let e;return{c(){e=V("Add Option")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Fie(r){var a;let e,t,n,i,l,s=!r[0].length&&Nw(r),o=((a=r[0])==null?void 0:a.length)&&Rw(r);return i=new ut({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[Uie]},$$scope:{ctx:r}}}),i.$on("click",r[2]),{c(){s&&s.c(),e=R(),o&&o.c(),t=R(),n=D("div"),S(i.$$.fragment)},m(u,f){s&&s.m(u,f),$(u,e,f),o&&o.m(u,f),$(u,t,f),$(u,n,f),A(i,n,null),l=!0},p(u,f){var p;u[0].length?s&&(ee(),_(s,1,1,()=>{s=null}),te()):s?f&1&&m(s,1):(s=Nw(u),s.c(),m(s,1),s.m(e.parentNode,e)),((p=u[0])==null?void 0:p.length)?o?(o.p(u,f),f&1&&m(o,1)):(o=Rw(u),o.c(),m(o,1),o.m(t.parentNode,t)):o&&(ee(),_(o,1,1,()=>{o=null}),te());const c={};f&512&&(c.$$scope={dirty:f,ctx:u}),i.$set(c)},i(u){l||(m(s),m(o),m(i.$$.fragment,u),l=!0)},o(u){_(s),_(o),_(i.$$.fragment,u),l=!1},d(u){s&&s.d(u),u&&b(e),o&&o.d(u),u&&b(t),u&&b(n),E(i)}}}function Vie(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[Fie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-12ls1u")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&513&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Hie(r){let e,t;return e=new Ai({props:{$$slots:{default:[Vie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Wie(r,e,t){let{options:n=[]}=e;const i=u=>{t(0,n=n.filter(f=>f.id!==u))},l=()=>{t(0,n=[...n,{id:Br.generate(),label:null,value:null}])};function s(u,f){r.$$.not_equal(f.label,u)&&(f.label=u,t(0,n))}function o(u,f){r.$$.not_equal(f.value,u)&&(f.value=u,t(0,n))}const a=u=>i(u.id);return r.$$set=u=>{"options"in u&&t(0,n=u.options)},[n,i,l,s,o,a]}class Gie extends ie{constructor(e){super();le(this,e,Wie,Hie,re,{options:0})}}function Yie(r){let e;return{c(){e=V("Define Options")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jie(r){let e;return{c(){e=V("Define the options for this picker.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Qie]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&128&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Kie(r){let e,t,n;function i(s){r[4](s)}let l={slot:"body"};return r[1]!==void 0&&(l.options=r[1]),e=new Gie({props:l}),Z.push(()=>ce(e,"options",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&2&&(t=!0,a.options=s[1],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Zie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Yie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Options",$$slots:{body:[Kie],buttons:[Xie],description:[Jie]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&128&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&130&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function xie(r,e,t){const n=ht();let{value:i}=e,l,s=i||[];const o=async()=>{t(1,s=s.filter(f=>f.value&&f.label)),n("change",s),l.hide()};function a(f){s=f,t(1,s)}function u(f){Z[f?"unshift":"push"](()=>{l=f,t(0,l)})}return r.$$set=f=>{"value"in f&&t(3,i=f.value)},[l,s,o,i,a,u]}class ele extends ie{constructor(e){super();le(this,e,xie,Zie,re,{value:3})}}function tle(r){let e,t;return e=new Gs({props:{value:r[0],options:r[1]}}),e.$on("change",r[8]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function nle(r,e,t){let n,i,l,s,o;fe(r,fn,d=>t(7,o=d));let{componentInstance:a}=e,{value:u}=e,{type:f}=e;const c=(d,g)=>{let h=Object.entries(d!=null?d:{}),v=[];return g==="field/options"?v=[g,"field/string"]:v=[g],v=v.map(C=>C.split("/")[1]),h=h.filter(C=>v.includes(C[1].type)),h.map(C=>C[0])};function p(d){dt.call(this,r,d)}return r.$$set=d=>{"componentInstance"in d&&t(2,a=d.componentInstance),"value"in d&&t(0,u=d.value),"type"in d&&t(3,f=d.type)},r.$$.update=()=>{r.$$.dirty&132&&t(6,n=Uf(o==null?void 0:o.props,a._id,d=>d._component==="@budibase/standard-components/form")),r.$$.dirty&192&&t(5,i=El(o,n)),r.$$.dirty&160&&t(4,l=Di(o,i,{formSchema:!0}).schema),r.$$.dirty&24&&t(1,s=c(l,f))},[u,s,a,f,l,i,n,o,p]}class nl extends ie{constructor(e){super();le(this,e,nle,tle,re,{componentInstance:2,value:0,type:3})}}function Dw(r,e,t){const n=r.slice();return n[29]=e[t],n[30]=e,n[31]=t,n}function jw(r,e,t){const n=r.slice();return n[29]=e[t],n}function rle(r){let e;return{c(){e=V("Schema validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ile(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[sle]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[1]&8&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function lle(r){let e,t,n=r[5],i=[];for(let s=0;s<n.length;s+=1)i[s]=Bw(jw(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","links svelte-lcp0nr")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,o){if(o[0]&50){n=s[5];let a;for(a=0;a<n.length;a+=1){const u=jw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Bw(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),$t(i,s)}}}function sle(r){let e;return{c(){e=V("There are no built-in validation rules from the schema.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Bw(r){let e,t,n,i,l,s,o,a,u,f,c,p;return t=new Qe({props:{placeholder:"Constraint",value:r[29].constraint,options:r[4],disabled:!0}}),i=new Qe({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),s=new jn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:!0}}),a=new jn({props:{placeholder:"Error message",value:r[29].error,bindings:r[1],disabled:!0}}),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),u=R(),f=D("div"),c=R(),w(e,"class","rule schema svelte-lcp0nr")},m(d,g){$(d,e,g),A(t,e,null),N(e,n),A(i,e,null),N(e,l),A(s,e,null),N(e,o),A(a,e,null),N(e,u),N(e,f),N(e,c),p=!0},p(d,g){const h={};g[0]&32&&(h.value=d[29].constraint),g[0]&16&&(h.options=d[4]),t.$set(h);const v={};g[0]&32&&(v.value=d[29].value),g[0]&2&&(v.bindings=d[1]),s.$set(v);const C={};g[0]&32&&(C.value=d[29].error),g[0]&2&&(C.bindings=d[1]),a.$set(C)},i(d){p||(m(t.$$.fragment,d),m(i.$$.fragment,d),m(s.$$.fragment,d),m(a.$$.fragment,d),p=!0)},o(d){_(t.$$.fragment,d),_(i.$$.fragment,d),_(s.$$.fragment,d),_(a.$$.fragment,d),p=!1},d(d){d&&b(e),E(t),E(i),E(s),E(a)}}}function ole(r){let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[rle]},$$scope:{ctx:r}}});const o=[lle,ile],a=[];function u(f,c){var p;return((p=f[5])==null?void 0:p.length)?0:1}return n=u(r),i=a[n]=o[n](r),{c(){S(e.$$.fragment),t=R(),i.c(),l=Ee()},m(f,c){A(e,f,c),$(f,t,c),a[n].m(f,c),$(f,l,c),s=!0},p(f,c){const p={};c[1]&8&&(p.$$scope={dirty:c,ctx:f}),e.$set(p);let d=n;n=u(f),n===d?a[n].p(f,c):(ee(),_(a[d],1,1,()=>{a[d]=null}),te(),i=a[n],i?i.p(f,c):(i=a[n]=o[n](f),i.c()),m(i,1),i.m(l.parentNode,l))},i(f){s||(m(e.$$.fragment,f),m(i),s=!0)},o(f){_(e.$$.fragment,f),_(i),s=!1},d(f){E(e,f),f&&b(t),a[n].d(f),f&&b(l)}}}function ale(r){let e;return{c(){e=V("Custom validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function zw(r){let e,t=[],n=new Map,i,l=r[0];const s=o=>o[29].id;for(let o=0;o<l.length;o+=1){let a=Dw(r,l,o),u=s(a);n.set(u,t[o]=qw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","links svelte-lcp0nr")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,a){a[0]&415&&(l=o[0],ee(),t=er(t,a,s,1,o,l,n,e,jr,qw,null,Dw),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function ule(r){let e,t,n,i,l;const s=[_le,gle,mle,dle,ple],o=[];function a(u,f){return(e==null||f[0]&1)&&(e=!!["string","number","options","longform"].includes(u[29].type)),e?0:u[29].type==="array"?1:u[29].type==="boolean"?2:u[29].type==="datetime"?3:4}return t=a(r,[-1,-1]),n=o[t]=s[t](r),{c(){n.c(),i=Ee()},m(u,f){o[t].m(u,f),$(u,i,f),l=!0},p(u,f){let c=t;t=a(u,f),t===c?o[t].p(u,f):(ee(),_(o[c],1,1,()=>{o[c]=null}),te(),n=o[t],n?n.p(u,f):(n=o[t]=s[t](u),n.c()),m(n,1),n.m(i.parentNode,i))},i(u){l||(m(n),l=!0)},o(u){_(n),l=!1},d(u){o[t].d(u),u&&b(i)}}}function fle(r){let e,t,n;function i(s){r[16](s,r[29])}let l={placeholder:"Constraint value"};return r[29].value!==void 0&&(l.value=r[29].value),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function cle(r){let e,t;function n(...i){return r[15](r[29],r[30],r[31],...i)}return e=new jn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:r[29].constraint==="required"}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l[0]&1&&(s.value=r[29].value),l[0]&2&&(s.bindings=r[1]),l[0]&1&&(s.disabled=r[29].constraint==="required"),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function ple(r){let e,t;return e=new jn({props:{disabled:!0}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Oe,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dle(r){let e,t,n;function i(s){r[19](s,r[29])}let l={enableTime:!1,disabled:r[29].constraint==="required"};return r[29].value!==void 0&&(l.value=r[29].value),e=new Bl({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[29].constraint==="required"),!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function mle(r){let e,t,n;function i(s){r[18](s,r[29])}let l={disabled:r[29].constraint==="required",options:[{label:"True",value:"true"},{label:"False",value:"false"}]};return r[29].value!==void 0&&(l.value=r[29].value),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[29].constraint==="required"),!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function gle(r){let e,t;return e=new Qe({props:{disabled:r[29].constraint==="required",options:r[2].schema[r[3]].constraints.inclusion,getOptionLabel:yle,getOptionValue:kle,value:r[29].value}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&1&&(l.disabled=n[29].constraint==="required"),i[0]&12&&(l.options=n[2].schema[n[3]].constraints.inclusion),i[0]&1&&(l.value=n[29].value),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function _le(r){let e,t,n;function i(s){r[17](s,r[29])}let l={disabled:r[29].constraint==="required",placeholder:"Constraint value"};return r[29].value!==void 0&&(l.value=r[29].value),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[29].constraint==="required"),!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function qw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I;function O(U){e[13](U,e[29])}let T={options:e[4],placeholder:"Constraint"};e[29].constraint!==void 0&&(T.value=e[29].constraint),n=new Qe({props:T}),Z.push(()=>ce(n,"value",O));function P(U){e[14](U,e[29])}let M={disabled:e[29].constraint==="required",placeholder:null,options:["Binding","Value"]};e[29].valueType!==void 0&&(M.value=e[29].valueType),s=new Qe({props:M}),Z.push(()=>ce(s,"value",P));const F=[cle,fle,ule],j=[];function B(U,H){return U[29].valueType==="Binding"?0:((u==null||H[0]&1)&&(u=!!(U[29].type!=="array"&&["maxLength","minLength","regex","notRegex","contains","notContains"].includes(U[29].constraint))),u?1:2)}f=B(e,[-1,-1]),c=j[f]=F[f](e);function q(...U){return e[20](e[29],e[30],e[31],...U)}d=new jn({props:{placeholder:"Error message",value:e[29].error,bindings:e[1]}}),d.$on("change",q);function G(){return e[21](e[29])}h=new gt({props:{name:"Duplicate",hoverable:!0,size:"S"}}),h.$on("click",G);function Y(){return e[22](e[29])}return C=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),C.$on("click",Y),{key:r,first:null,c(){t=D("div"),S(n.$$.fragment),l=R(),S(s.$$.fragment),a=R(),c.c(),p=R(),S(d.$$.fragment),g=R(),S(h.$$.fragment),v=R(),S(C.$$.fragment),y=R(),w(t,"class","rule svelte-lcp0nr"),this.first=t},m(U,H){$(U,t,H),A(n,t,null),N(t,l),A(s,t,null),N(t,a),j[f].m(t,null),N(t,p),A(d,t,null),N(t,g),A(h,t,null),N(t,v),A(C,t,null),N(t,y),I=!0},p(U,H){e=U;const W={};H[0]&16&&(W.options=e[4]),!i&&H[0]&1&&(i=!0,W.value=e[29].constraint,pe(()=>i=!1)),n.$set(W);const Q={};H[0]&1&&(Q.disabled=e[29].constraint==="required"),!o&&H[0]&1&&(o=!0,Q.value=e[29].valueType,pe(()=>o=!1)),s.$set(Q);let se=f;f=B(e,H),f===se?j[f].p(e,H):(ee(),_(j[se],1,1,()=>{j[se]=null}),te(),c=j[f],c?c.p(e,H):(c=j[f]=F[f](e),c.c()),m(c,1),c.m(t,p));const K={};H[0]&1&&(K.value=e[29].error),H[0]&2&&(K.bindings=e[1]),d.$set(K)},i(U){I||(m(n.$$.fragment,U),m(s.$$.fragment,U),m(c),m(d.$$.fragment,U),m(h.$$.fragment,U),m(C.$$.fragment,U),I=!0)},o(U){_(n.$$.fragment,U),_(s.$$.fragment,U),_(c),_(d.$$.fragment,U),_(h.$$.fragment,U),_(C.$$.fragment,U),I=!1},d(U){U&&b(t),E(n),E(s),j[f].d(),E(d),E(h),E(C)}}}function hle(r){let e;return{c(){e=V("Add Rule")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $le(r){var a;let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[ale]},$$scope:{ctx:r}}});let o=((a=r[0])==null?void 0:a.length)&&zw(r);return l=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[hle]},$$scope:{ctx:r}}}),l.$on("click",r[6]),{c(){S(e.$$.fragment),t=R(),o&&o.c(),n=R(),i=D("div"),S(l.$$.fragment),w(i,"class","button")},m(u,f){A(e,u,f),$(u,t,f),o&&o.m(u,f),$(u,n,f),$(u,i,f),A(l,i,null),s=!0},p(u,f){var d;const c={};f[1]&8&&(c.$$scope={dirty:f,ctx:u}),e.$set(c),((d=u[0])==null?void 0:d.length)?o?(o.p(u,f),f[0]&1&&m(o,1)):(o=zw(u),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(ee(),_(o,1,1,()=>{o=null}),te());const p={};f[1]&8&&(p.$$scope={dirty:f,ctx:u}),l.$set(p)},i(u){s||(m(e.$$.fragment,u),m(o),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(o),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),o&&o.d(u),u&&b(n),u&&b(i),E(l)}}}function ble(r){var l;let e,t,n,i;return e=new Ye({props:{noPadding:!0,gap:((l=r[5])==null?void 0:l.length)?"S":"XS",$$slots:{default:[ole]},$$scope:{ctx:r}}}),n=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[$le]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,o){var f;const a={};o[0]&32&&(a.gap=((f=s[5])==null?void 0:f.length)?"S":"XS"),o[0]&50|o[1]&8&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o[0]&31|o[1]&8&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),E(n,s)}}}function vle(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"M",$$slots:{default:[ble]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-lcp0nr")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&63|l[1]&8&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function wle(r){let e,t;return e=new Ai({props:{$$slots:{default:[vle]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&63|i[1]&8&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const yle=r=>r,kle=r=>r;function Cle(r,e,t){let n,i,l,s,o,a,u;fe(r,ri,W=>t(11,a=W)),fe(r,fn,W=>t(12,u=W));let{rules:f=[]}=e,{bindings:c=[]}=e,{type:p}=e;const d={Required:{label:"Required",value:"required"},MinLength:{label:"Min length",value:"minLength"},MaxLength:{label:"Max length",value:"maxLength"},MaxValue:{label:"Max value",value:"maxValue"},MinValue:{label:"Min value",value:"minValue"},Equal:{label:"Must equal",value:"equal"},NotEqual:{label:"Must not equal",value:"notEqual"},Regex:{label:"Must match regex",value:"regex"},NotRegex:{label:"Must not match regex",value:"notRegex"},Contains:{label:"Must contain",value:"contains"},NotContains:{label:"Must not contain",value:"notContains"}},g={string:[d.Required,d.MaxLength,d.Equal,d.NotEqual,d.Regex,d.NotRegex],number:[d.Required,d.MaxValue,d.MinValue,d.Equal,d.NotEqual],boolean:[d.Required,d.Equal,d.NotEqual],datetime:[d.Required,d.MaxValue,d.MinValue,d.Equal,d.NotEqual],attachment:[d.Required],link:[d.Required,d.Contains,d.NotContains,d.MinLength,d.MaxLength],array:[d.Required,d.MinLength,d.MaxLength,d.Contains,d.NotContains]},h=W=>g[W],v=(W,Q)=>{if(!W||!Q)return null;const se=Uf(W.props,Q._id,K=>K._component.endsWith("/form"));return Di(W,se==null?void 0:se.dataSource)},C=(W,Q)=>{var ae,_e,Me,we,$e,ge;if(!W||!Q)return[];const se=(ae=Q.schema)==null?void 0:ae[W],K=se==null?void 0:se.constraints;if(!K)return[];let ne=[];if((W===((_e=Q==null?void 0:Q.table)==null?void 0:_e.primaryDisplay)||((Me=K.presence)==null?void 0:Me.allowEmpty)===!1)&&ne.push({constraint:"required",error:"Required field"}),y((we=K.length)==null?void 0:we.maximum)){const Ne=K.length.maximum;ne.push({constraint:"maxLength",value:Ne,error:`Maximum ${Ne} characters`})}if(y(($e=K.numericality)==null?void 0:$e.greaterThanOrEqualTo)){const Ne=K.numericality.greaterThanOrEqualTo;ne.push({constraint:"minValue",value:Ne,error:`Minimum value is ${Ne}`})}if(y((ge=K.numericality)==null?void 0:ge.lessThanOrEqualTo)){const Ne=K.numericality.lessThanOrEqualTo;ne.push({constraint:"maxValue",value:Ne,error:`Maximum value is ${Ne}`})}return ne},y=W=>W!=null&&W!=="",I=()=>{t(0,f=[...f||[],{valueType:"Binding",type:s,id:Br.generate(),value:s=="array"?[]:null}])},O=W=>{t(0,f=f.filter(Q=>Q.id!==W))},T=W=>{const Q=f.find(K=>K.id===W),se=lt(Se({},Q),{id:Br.generate()});t(0,f=[...f,se])};function P(W,Q){r.$$.not_equal(Q.constraint,W)&&(Q.constraint=W,t(0,f))}function M(W,Q){r.$$.not_equal(Q.valueType,W)&&(Q.valueType=W,t(0,f))}const F=(W,Q,se,K)=>t(0,Q[se].value=K.detail,f);function j(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}function B(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}function q(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}function G(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}const Y=(W,Q,se,K)=>t(0,Q[se].error=K.detail,f),U=W=>T(W.id),H=W=>O(W.id);return r.$$set=W=>{"rules"in W&&t(0,f=W.rules),"bindings"in W&&t(1,c=W.bindings),"type"in W&&t(9,p=W.type)},r.$$.update=()=>{r.$$.dirty[0]&6144&&t(2,n=v(u,a)),r.$$.dirty[0]&2048&&t(3,i=a==null?void 0:a.field),r.$$.dirty[0]&12&&t(5,l=C(i,n||{})),r.$$.dirty[0]&512&&t(10,s=(p==null?void 0:p.split("/")[1])||"string"),r.$$.dirty[0]&1024&&t(4,o=h(s))},[f,c,n,i,o,l,I,O,T,p,s,a,u,P,M,F,j,B,q,G,Y,U,H]}class Sle extends ie{constructor(e){super();le(this,e,Cle,wle,re,{rules:0,bindings:1,type:9},null,[-1,-1])}}function Ale(r){let e;return{c(){e=V("Configure validation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ele(r){let e;return{c(){e=V("Configure validation rules for this field.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ole(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Tle(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Ole]},$$scope:{ctx:r}}}),e.$on("click",r[5]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&512&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Ile(r){let e,t,n;function i(s){r[6](s)}let l={slot:"body",type:r[3],bindings:r[1],componentDefinition:r[2]};return r[0]!==void 0&&(l.rules=r[0]),e=new Sle({props:l}),Z.push(()=>ce(e,"rules",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&8&&(a.type=s[3]),o&2&&(a.bindings=s[1]),o&4&&(a.componentDefinition=s[2]),!t&&o&1&&(t=!0,a.rules=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Lle(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Ale]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[4].show)&&r[4].show.apply(this,arguments)});let l={title:"Validation Rules",$$slots:{body:[Ile],buttons:[Tle],description:[Ele]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[7](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&512&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&527&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[7](null),E(n,s)}}}function Ple(r,e,t){let{value:n=[]}=e,{bindings:i=[]}=e,{componentDefinition:l}=e,{type:s}=e,o;const a=ht(),u=()=>{a("change",n),o.hide()};function f(p){n=p,t(0,n)}function c(p){Z[p?"unshift":"push"](()=>{o=p,t(4,o)})}return r.$$set=p=>{"value"in p&&t(0,n=p.value),"bindings"in p&&t(1,i=p.bindings),"componentDefinition"in p&&t(2,l=p.componentDefinition),"type"in p&&t(3,s=p.type)},[n,i,l,s,o,u,f,c]}class Os extends ie{constructor(e){super();le(this,e,Ple,Lle,re,{value:0,bindings:1,componentDefinition:2,type:3})}}function Nle(r){let e;return{c(){e=V("Background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Rle(r){let e,t,n,i;return e=new Ze({props:{$$slots:{default:[Nle]},$$scope:{ctx:r}}}),n=new Jl({props:{value:r[0].background,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[5]),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1&&(a.value=l[0].background),s&2&&(a.spectrumTheme=l[1].theme),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function Mle(r){let e;return{c(){e=V("Text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Dle(r){let e,t,n,i;return e=new Ze({props:{$$slots:{default:[Mle]},$$scope:{ctx:r}}}),n=new Jl({props:{value:r[0].color,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[6]),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1&&(a.value=l[0].color),s&2&&(a.spectrumTheme=l[1].theme),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function jle(r){let e,t,n,i,l,s,o,a,u,f,c,p;function d(C){r[2](C)}let g={label:"Width",placeholder:"Auto"};r[0].width!==void 0&&(g.value=r[0].width),e=new tt({props:g}),Z.push(()=>ce(e,"value",d));function h(C){r[3](C)}let v={label:"Alignment",options:["Left","Center","Right"],placeholder:"Default"};return r[0].align!==void 0&&(v.value=r[0].align),i=new Qe({props:v}),Z.push(()=>ce(i,"value",h)),o=new jn({props:{label:"Value",value:r[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]"}]}}),o.$on("change",r[4]),u=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[Rle]},$$scope:{ctx:r}}}),c=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[Dle]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),f=R(),S(c.$$.fragment)},m(C,y){A(e,C,y),$(C,n,y),A(i,C,y),$(C,s,y),A(o,C,y),$(C,a,y),A(u,C,y),$(C,f,y),A(c,C,y),p=!0},p(C,y){const I={};!t&&y&1&&(t=!0,I.value=C[0].width,pe(()=>t=!1)),e.$set(I);const O={};!l&&y&1&&(l=!0,O.value=C[0].align,pe(()=>l=!1)),i.$set(O);const T={};y&1&&(T.value=C[0].template),o.$set(T);const P={};y&131&&(P.$$scope={dirty:y,ctx:C}),u.$set(P);const M={};y&131&&(M.$$scope={dirty:y,ctx:C}),c.$set(M)},i(C){p||(m(e.$$.fragment,C),m(i.$$.fragment,C),m(o.$$.fragment,C),m(u.$$.fragment,C),m(c.$$.fragment,C),p=!0)},o(C){_(e.$$.fragment,C),_(i.$$.fragment,C),_(o.$$.fragment,C),_(u.$$.fragment,C),_(c.$$.fragment,C),p=!1},d(C){E(e,C),C&&b(n),E(i,C),C&&b(s),E(o,C),C&&b(a),E(u,C),C&&b(f),E(c,C)}}}function Ble(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[jle]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-4eq5in")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&131&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function zle(r){let e,t;return e=new Ai({props:{$$slots:{default:[Ble]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&131&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function qle(r,e,t){let n;fe(r,He,f=>t(1,n=f));let{column:i}=e;function l(f){r.$$.not_equal(i.width,f)&&(i.width=f,t(0,i))}function s(f){r.$$.not_equal(i.align,f)&&(i.align=f,t(0,i))}const o=f=>t(0,i.template=f.detail,i),a=f=>t(0,i.background=f.detail,i),u=f=>t(0,i.color=f.detail,i);return r.$$set=f=>{"column"in f&&t(0,i=f.column)},[i,n,l,s,o,a,u]}class Ule extends ie{constructor(e){super();le(this,e,qle,zle,re,{column:0})}}function Fle(r){let e,t=r[0].name+"",n,i;return{c(){e=V('"'),n=V(t),i=V('" column settings')},m(l,s){$(l,e,s),$(l,n,s),$(l,i,s)},p(l,s){s&1&&t!==(t=l[0].name+"")&&Te(n,t)},d(l){l&&b(e),l&&b(n),l&&b(i)}}}function Vle(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hle(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Vle]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&256&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Wle(r){let e,t,n;function i(s){r[5](s)}let l={slot:"body"};return r[1]!==void 0&&(l.column=r[1]),e=new Ule({props:l}),Z.push(()=>ce(e,"column",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&2&&(t=!0,a.column=s[1],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Gle(r){let e,t,n,i;e=new gt({props:{name:"Settings",hoverable:!0,size:"S"}}),e.$on("click",r[3]);let l={title:"Table Columns",$$slots:{body:[Wle],buttons:[Hle],description:[Fle]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[6](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&259&&(a.$$scope={dirty:o,ctx:s}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[6](null),E(n,s)}}}function Yle(r,e,t){let{column:n}=e,i,l;const s=c=>{t(1,i=Se({},c))},o=()=>{s(n),l.show()},a=()=>{t(0,n=i),l.hide()};function u(c){i=c,t(1,i)}function f(c){Z[c?"unshift":"push"](()=>{l=c,t(2,l)})}return r.$$set=c=>{"column"in c&&t(0,n=c.column)},r.$$.update=()=>{r.$$.dirty&1&&s(n)},[n,i,l,o,a,u,f]}class Jle extends ie{constructor(e){super();le(this,e,Yle,Gle,re,{column:0})}}function Uw(r,e,t){const n=r.slice();return n[19]=e[t],n[20]=e,n[21]=t,n}function Qle(r){let e,t,n,i;return n=new Ke({props:{size:"S",$$slots:{default:[Kle]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),w(t,"class","wide svelte-r88m8w"),w(e,"class","column svelte-r88m8w")},m(l,s){$(l,e,s),N(e,t),A(n,t,null),i=!0},p(l,s){const o={};s&4194304&&(o.$$scope={dirty:s,ctx:l}),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(e),E(n)}}}function Xle(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[ese]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194307&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Kle(r){let e,t,n;return{c(){e=V(`By default, all table columns will automatically be shown.
1226
+ being executed.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function lre(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;t=new Ke({props:{size:"S",$$slots:{default:[ire]},$$scope:{ctx:r}}});function h(T){r[4](T)}let v={options:r[2],placeholder:null};r[0].type!==void 0&&(v.value=r[0].type),i=new Qe({props:v}),Z.push(()=>ce(i,"value",h)),o=new jn({props:{placeholder:"Value",value:r[0].value,bindings:r[1]}}),o.$on("change",r[5]);function C(T){r[6](T)}let y={options:r[3],placeholder:null};r[0].operator!==void 0&&(y.value=r[0].operator),u=new Qe({props:y}),Z.push(()=>ce(u,"value",C));function I(T){r[7](T)}let O={placeholder:"Reference value",bindings:r[1]};return r[0].referenceValue!==void 0&&(O.value=r[0].referenceValue),p=new jn({props:O}),Z.push(()=>ce(p,"value",I)),p.$on("change",r[8]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),c=R(),S(p.$$.fragment),w(e,"class","root svelte-1yfkfsp")},m(T,P){$(T,e,P),A(t,e,null),N(e,n),A(i,e,null),N(e,s),A(o,e,null),N(e,a),A(u,e,null),N(e,c),A(p,e,null),g=!0},p(T,[P]){const M={};P&512&&(M.$$scope={dirty:P,ctx:T}),t.$set(M);const F={};!l&&P&1&&(l=!0,F.value=T[0].type,pe(()=>l=!1)),i.$set(F);const j={};P&1&&(j.value=T[0].value),P&2&&(j.bindings=T[1]),o.$set(j);const B={};!f&&P&1&&(f=!0,B.value=T[0].operator,pe(()=>f=!1)),u.$set(B);const q={};P&2&&(q.bindings=T[1]),!d&&P&1&&(d=!0,q.value=T[0].referenceValue,pe(()=>d=!1)),p.$set(q)},i(T){g||(m(t.$$.fragment,T),m(i.$$.fragment,T),m(o.$$.fragment,T),m(u.$$.fragment,T),m(p.$$.fragment,T),g=!0)},o(T){_(t.$$.fragment,T),_(i.$$.fragment,T),_(o.$$.fragment,T),_(u.$$.fragment,T),_(p.$$.fragment,T),g=!1},d(T){T&&b(e),E(t),E(i),E(o),E(u),E(p)}}}function sre(r,e,t){let{parameters:n}=e,{bindings:i}=e;const l=[{label:"Continue if",value:"continue"},{label:"Stop if",value:"stop"}],s=[{label:"Equals",value:"equal"},{label:"Not equals",value:"notEqual"}];Ft(()=>{n.type||t(0,n.type="continue",n),n.operator||t(0,n.operator="equal",n)});function o(p){r.$$.not_equal(n.type,p)&&(n.type=p,t(0,n))}const a=p=>t(0,n.value=p.detail,n);function u(p){r.$$.not_equal(n.operator,p)&&(n.operator=p,t(0,n))}function f(p){r.$$.not_equal(n.referenceValue,p)&&(n.referenceValue=p,t(0,n))}const c=p=>t(0,n.referenceValue=p.detail,n);return r.$$set=p=>{"parameters"in p&&t(0,n=p.parameters),"bindings"in p&&t(1,i=p.bindings)},[n,i,l,s,o,a,u,f,c]}class ore extends ie{constructor(e){super();le(this,e,sre,lre,re,{parameters:0,bindings:1})}}var are=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",NavigateTo:rte,SaveRow:bte,DeleteRow:Ote,ExecuteQuery:Dte,TriggerAutomation:Yte,ValidateForm:xte,LogOut:lne,ClearForm:cne,CloseScreenModal:gne,ChangeFormStep:kne,UpdateState:Ine,RefreshDataProvider:Dne,DuplicateRow:Wne,S3Upload:Kne,ExportData:rre,ContinueIf:ore});const ure=(r=!1)=>Cv.actions.filter(e=>{var t;return r||!e.dependsOnFeature?!0:((t=it(He).clientFeatures)==null?void 0:t[e.dependsOnFeature])===!0}).map(e=>lt(Se({},e),{component:are[e.component]})).filter(e=>e.component!=null);function uw(r,e,t){const n=r.slice();return n[16]=e[t],n}function fw(r,e,t){const n=r.slice();return n[19]=e[t],n[21]=t,n}function cw(r){let e=r[1].id,t,n,i=pw(r);return{c(){i.c(),t=Ee()},m(l,s){i.m(l,s),$(l,t,s),n=!0},p(l,s){s&2&&re(e,e=l[1].id)?(ee(),_(i,1,1,Oe),te(),i=pw(l),i.c(),m(i),i.m(t.parentNode,t)):i.p(l,s)},i(l){n||(m(i),n=!0)},o(l){_(i),n=!1},d(l){l&&b(t),i.d(l)}}}function pw(r){let e,t,n;var i=r[2];function l(s){return{props:{parameters:s[1].parameters,bindings:s[3]}}}return i&&(t=new i(l(r))),{c(){e=D("div"),t&&S(t.$$.fragment),w(e,"class","selected-action-container")},m(s,o){$(s,e,o),t&&A(t,e,null),n=!0},p(s,o){const a={};if(o&2&&(a.parameters=s[1].parameters),o&8&&(a.bindings=s[3]),i!==(i=s[2])){if(t){ee();const u=t;_(u.$$.fragment,1,0,()=>{E(u,1)}),te()}i?(t=new i(l(s)),S(t.$$.fragment),m(t.$$.fragment,1),A(t,e,null)):t=null}else i&&t.$set(a)},i(s){n||(t&&m(t.$$.fragment,s),n=!0)},o(s){t&&_(t.$$.fragment,s),n=!1},d(s){s&&b(e),t&&E(t)}}}function fre(r){let e,t,n=r[2]&&cw(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,l){i[2]?n?(n.p(i,l),l&4&&m(n,1)):(n=cw(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function cre(r){let e,t;return e=new Ye({props:{noPadding:!0,$$slots:{default:[fre]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194318&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dw(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[19].id;for(let f=0;f<a.length;f+=1){let c=fw(r,a,f),p=u(c);n.set(p,t[f]=mw(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();w(e,"class","actions svelte-1dgx8bt")},m(f,c){$(f,e,c);for(let p=0;p<t.length;p+=1)t[p].m(e,null);l=!0,s||(o=[vr(i=Pu.call(null,e,{items:r[0],flipDurationMs:T1,dropTargetStyle:{outline:"none"}})),Pe(e,"consider",r[8]),Pe(e,"finalize",r[9])],s=!0)},p(f,c){if(c&163){a=f[0],ee();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,Uo,mw,null,fw);for(let p=0;p<t.length;p+=1)t[p].a();te()}i&&ct(i.update)&&c&1&&i.update.call(null,{items:f[0],flipDurationMs:T1,dropTargetStyle:{outline:"none"}})},i(f){if(!l){for(let c=0;c<a.length;c+=1)m(t[c]);l=!0}},o(f){for(let c=0;c<t.length;c+=1)_(t[c]);l=!1},d(f){f&&b(e);for(let c=0;c<t.length;c+=1)t[c].d();s=!1,Tn(o)}}}function mw(r,e){let t,n,i,l,s=e[21]+1+"",o,a,u=e[19][xf]+"",f,c,p,d,g,h=Oe,v,C,y;n=new gt({props:{name:"DragHandle",size:"XL"}});function I(){return e[15](e[21])}return p=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),p.$on("click",I),{key:r,first:null,c(){t=D("div"),S(n.$$.fragment),i=R(),l=D("div"),o=V(s),a=V(".\xA0"),f=V(u),c=R(),S(p.$$.fragment),d=R(),w(l,"class","action-header svelte-1dgx8bt"),w(t,"class","action-container svelte-1dgx8bt"),oe(t,"selected",e[19]===e[1]),this.first=t},m(O,T){$(O,t,T),A(n,t,null),N(t,i),N(t,l),N(l,o),N(l,a),N(l,f),N(t,c),A(p,t,null),N(t,d),v=!0,C||(y=Pe(t,"click",function(){ct(e[7](e[19]))&&e[7](e[19]).apply(this,arguments)}),C=!0)},p(O,T){e=O,(!v||T&1)&&s!==(s=e[21]+1+"")&&Te(o,s),(!v||T&1)&&u!==(u=e[19][xf]+"")&&Te(f,u),T&3&&oe(t,"selected",e[19]===e[1])},r(){g=t.getBoundingClientRect()},f(){Fo(t),h()},a(){h(),h=Vo(t,g,Ho,{duration:T1})},i(O){v||(m(n.$$.fragment,O),m(p.$$.fragment,O),v=!0)},o(O){_(n.$$.fragment,O),_(p.$$.fragment,O),v=!1},d(O){O&&b(t),E(n),E(p),C=!1,y()}}}function pre(r){let e=r[16].name+"",t,n;return{c(){t=V(e),n=R()},m(i,l){$(i,t,l),$(i,n,l)},p:Oe,d(i){i&&b(t),i&&b(n)}}}function gw(r){let e,t;return e=new Qt({props:{$$slots:{default:[pre]},$$scope:{ctx:r}}}),e.$on("click",r[6](r[16])),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194304&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dre(r){let e,t,n=r[4],i=[];for(let s=0;s<n.length;s+=1)i[s]=gw(uw(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=Ee()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o&80){n=s[4];let a;for(a=0;a<n.length;a+=1){const u=uw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=gw(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){$t(i,s),s&&b(e)}}}function mre(r){let e;return{c(){e=V("Add Action")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gre(r){let e,t;return e=new ut({props:{slot:"control",secondary:!0,$$slots:{default:[mre]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194304&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function _re(r){let e,t,n,i=r[0]&&r[0].length>0&&dw(r);return t=new wr({props:{$$slots:{control:[gre],default:[dre]},$$scope:{ctx:r}}}),{c(){i&&i.c(),e=R(),S(t.$$.fragment)},m(l,s){i&&i.m(l,s),$(l,e,s),A(t,l,s),n=!0},p(l,s){l[0]&&l[0].length>0?i?(i.p(l,s),s&1&&m(i,1)):(i=dw(l),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(ee(),_(i,1,1,()=>{i=null}),te());const o={};s&4194304&&(o.$$scope={dirty:s,ctx:l}),t.$set(o)},i(l){n||(m(i),m(t.$$.fragment,l),n=!0)},o(l){_(i),_(t.$$.fragment,l),n=!1},d(l){i&&i.d(l),l&&b(e),E(t,l)}}}function hre(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[_re]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194307&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function $re(r){let e,t;return e=new Ai({props:{$$slots:{sidebar:[hre],default:[cre]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&4194319&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const T1=150,xf="##eventHandlerType";function bre(r,e,t){let n,i,l,s,o;fe(r,He,I=>t(13,s=I)),fe(r,fn,I=>t(14,o=I));const a=ure();let{key:u}=e,{actions:f}=e,{bindings:c=[]}=e,p=(f==null?void 0:f.length)?f[0]:null;const d=I=>{f.splice(I,1),t(0,f)},g=I=>()=>{const O={parameters:{},[xf]:I.name,id:Br.generate()};f||t(0,f=[]),t(0,f=[...f,O]),t(1,p=O)},h=I=>()=>{t(1,p=I)};function v(I){t(0,f=I.detail.items)}function C(I){t(0,f=I.detail.items)}const y=I=>d(I);return r.$$set=I=>{"key"in I&&t(10,u=I.key),"actions"in I&&t(0,f=I.actions),"bindings"in I&&t(11,c=I.bindings)},r.$$.update=()=>{var I;r.$$.dirty&3&&p&&!(f==null?void 0:f.includes(p))&&t(1,p=f==null?void 0:f[0]),r.$$.dirty&25603&&t(12,n=jq(o,s.selectedComponentId,u,f,p==null?void 0:p.id)),r.$$.dirty&6144&&t(3,i=n.concat(c)),r.$$.dirty&1&&f&&f.forEach(O=>{O.id||(O.id=Br.generate())}),r.$$.dirty&2&&t(2,l=p&&((I=a.find(O=>O.name===p[xf]))==null?void 0:I.component))},[f,p,l,i,a,d,g,h,v,C,u,c,n,s,o,y]}class vre extends ie{constructor(e){super();le(this,e,bre,$re,re,{key:10,actions:0,bindings:11})}}function wre(r){let e;return{c(){e=V("Define actions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yre(r){let e;return{c(){e=V("Define what actions to run.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function kre(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cre(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[kre]},$$scope:{ctx:r}}}),e.$on("click",r[6]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8192&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Sre(r){let e,t,n;function i(s){r[8](s)}let l={slot:"body",eventType:r[1],bindings:r[2],key:r[0]};return r[4]!==void 0&&(l.actions=r[4]),e=new vre({props:l}),Z.push(()=>ce(e,"actions",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.eventType=s[1]),o&4&&(a.bindings=s[2]),o&1&&(a.key=s[0]),!t&&o&16&&(t=!0,a.actions=s[4],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Are(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[wre]},$$scope:{ctx:r}}}),e.$on("click",r[5]);let l={title:"Actions",$$slots:{body:[Sre],buttons:[Cre],description:[yre]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[9](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&8192&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&8215&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[9](null),E(n,s)}}}function Ere(r,e,t){let n;fe(r,Zt,v=>t(10,n=v));const i=ht();let{key:l}=e,{value:s=[]}=e,{name:o}=e,{bindings:a}=e,u,f;const c=()=>{t(4,f=vn.cloneDeep(s)),u.show()},p=async()=>{const v=f.filter(C=>C["##eventHandlerType"]==="Trigger Automation");for(let C of v)await d(C.parameters);i("change",f),ye.success("Component actions saved."),u.hide()},d=async v=>{var C;if(!(v.automationId||!v.newAutomationName))try{await Zt.actions.create({name:v.newAutomationName});const y=n.blockDefinitions.TRIGGER.APP,I=n.selectedAutomation.constructBlock("TRIGGER","APP",y);I.inputs={fields:Object.keys(v.fields).reduce((O,T)=>(O[T]="string",O),{})},Zt.actions.addBlockToAutomation(I),await Zt.actions.save((C=n.selectedAutomation)==null?void 0:C.automation),v.automationId=n.selectedAutomation.automation._id,delete v.newAutomationName}catch{ye.error("Error creating automation")}};function g(v){f=v,t(4,f)}function h(v){Z[v?"unshift":"push"](()=>{u=v,t(3,u)})}return r.$$set=v=>{"key"in v&&t(0,l=v.key),"value"in v&&t(7,s=v.value),"name"in v&&t(1,o=v.name),"bindings"in v&&t(2,a=v.bindings)},[l,o,a,u,f,c,p,s,g,h]}class Ore extends ie{constructor(e){super();le(this,e,Ere,Are,re,{key:0,value:7,name:1,bindings:2})}}function _w(r,e,t){const n=r.slice();return n[3]=e[t],n}function hw(r){let e,t=r[3].name+"",n,i;return{c(){e=D("option"),n=V(t),e.__value=i=r[3]._id,e.value=e.__value},m(l,s){$(l,e,s),N(e,n)},p(l,s){s&2&&t!==(t=l[3].name+"")&&Te(n,t),s&2&&i!==(i=l[3]._id)&&(e.__value=i,e.value=e.__value)},d(l){l&&b(e)}}}function Tre(r){let e,t,n,i=r[1].list,l=[];for(let s=0;s<i.length;s+=1)l[s]=hw(_w(r,i,s));return{c(){e=D("option"),e.textContent="Choose a table",t=R();for(let s=0;s<l.length;s+=1)l[s].c();n=Ee(),e.__value="",e.value=e.__value},m(s,o){$(s,e,o),$(s,t,o);for(let a=0;a<l.length;a+=1)l[a].m(s,o);$(s,n,o)},p(s,o){if(o&2){i=s[1].list;let a;for(a=0;a<i.length;a+=1){const u=_w(s,i,a);l[a]?l[a].p(u,o):(l[a]=hw(u),l[a].c(),l[a].m(n.parentNode,n))}for(;a<l.length;a+=1)l[a].d(1);l.length=i.length}},d(s){s&&b(e),s&&b(t),$t(l,s),s&&b(n)}}}function Ire(r){let e,t,n;return t=new Qe({props:{extraThin:!0,secondary:!0,wide:!0,value:r[0],$$slots:{default:[Tre]},$$scope:{ctx:r}}}),t.$on("change",r[2]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","svelte-16jzcsd")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.value=i[0]),l&66&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Lre(r,e,t){let n;fe(r,Ot,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class Pre extends ie{constructor(e){super();le(this,e,Lre,Ire,re,{value:0})}}function Nre(r){let e,t;return e=new Jl({props:{value:r[0],spectrumTheme:r[1].theme}}),e.$on("change",r[2]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.spectrumTheme=n[1].theme),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Rre(r,e,t){let n;fe(r,He,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class I1 extends ie{constructor(e){super();le(this,e,Rre,Nre,re,{value:0})}}var $w={Buildings:{home:["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-2":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-3":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-4":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-5":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-6":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-7":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-8":["house","\u623F\u5B50","\u5BB6","\u4E3B\u9875"],"home-gear":["house","\u623F\u5B50","\u5DE5\u5382"],"home-wifi":["smart home","\u623F\u5B50","\u5BB6\u5177","\u667A\u80FD\u5BB6\u5C45"],"home-smile":["house","smart home","smile","\u623F\u5B50","\u667A\u80FD\u5BB6\u5C45","\u5FAE\u7B11"],"home-smile-2":["house","smart home","smile","\u623F\u5B50","\u667A\u80FD\u5BB6\u5C45","\u5FAE\u7B11"],"home-heart":["house","\u5FC3","\u623F\u5B50","\u5BB6","\u4E3B\u9875","\u5B64\u513F\u9662"],building:["city","office","enterprise","\u5EFA\u7B51","\u57CE\u5E02","\u697C","\u529E\u516C\u697C","\u5199\u5B57\u697C","\u4F01\u4E1A"],"building-2":["city","office","construction","enterprise","\u57CE\u5E02","\u5EFA\u7B51","\u697C","\u4F01\u4E1A"],"building-3":["factory","plant","enterprise","\u5DE5\u5382","\u5EFA\u7B51","\u697C","\u4F01\u4E1A"],"building-4":["city","office","enterprise","\u5EFA\u7B51","\u57CE\u5E02","\u697C","\u529E\u516C\u697C","\u5199\u5B57\u697C","\u4F01\u4E1A"],hotel:["building","hotel","office","enterprise","tavern","\u5EFA\u7B51","\u9152\u5E97","\u697C","\u529E\u516C\u697C","\u5199\u5B57\u697C","\u4F01\u4E1A"],community:["building","hotel","\u793E\u533A","\u5EFA\u7B51","\u9152\u5E97"],government:["building","\u653F\u5E9C","\u5EFA\u7B51","\u5927\u4F1A\u5802"],bank:["bank","finance","savings","banking","\u94F6\u884C","\u4EA4\u6613\u6240"],store:["shop","mall","supermarket","\u5546\u5E97","\u8D85\u5E02","\u5E97\u94FA","\u5546\u5BB6"],"store-2":["shop","mall","supermarket","\u5546\u5E97","\u8D85\u5E02","\u5E97\u94FA","\u5546\u5BB6"],"store-3":["shop","mall","supermarket","\u5546\u5E97","\u8D85\u5E02","\u5E97\u94FA","\u5546\u5BB6"],hospital:["medical","health","\u533B\u9662"],"ancient-gate":["historical","genre","scenic","trip","travel","\u65C5\u884C","\u65C5\u6E38","\u57CE\u95E8","\u53E4\u4EE3","\u5386\u53F2","\u666F\u533A"],"ancient-pavilion":["historical","genre","scenic","trip","travel","\u65C5\u884C","\u65C5\u6E38","\u51C9\u4EAD","\u53E4\u4EE3","\u5386\u53F2","\u666F\u533A"]},Business:{mail:["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u4EF6\u7BB1"],"mail-open":["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u4EF6\u7BB1"],"mail-send":["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u53D1\u9001","\u53D1\u4EF6\u7BB1"],"mail-unread":["envelope","email","inbox","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u672A\u8BFB"],"mail-add":["envelope","email","inbox","add","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u65B0\u589E","\u6DFB\u52A0"],"mail-check":["envelope","email","inbox","read","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u5DF2\u8BFB"],"mail-close":["envelope","email","inbox","failed","x","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u5931\u8D25"],"mail-download":["envelope","email","inbox","download","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u4E0B\u8F7D"],"mail-forbid":["envelope","email","inbox","privacy","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u7981\u6B62"],"mail-lock":["envelope","email","inbox","lock","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u52A0\u5BC6"],"mail-settings":["envelope","email","inbox","settings","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u8BBE\u7F6E"],"mail-star":["envelope","email","inbox","favorite","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u85CF","\u559C\u6B22"],"mail-volume":["envelope","email","inbox","promotional email","email campaign","subscription","\u4FE1\u5C01","\u90AE\u7BB1","\u90AE\u4EF6","\u6536\u4EF6\u7BB1","\u63A8\u5E7F","\u8BA2\u9605"],inbox:["\u6536\u4EF6\u7BB1"],"inbox-archive":["\u6536\u4EF6\u7BB1","\u5F52\u6863","\u6536\u7EB3"],"inbox-unarchive":["unzip","unpack","extract","\u6536\u4EF6\u7BB1","\u53D6\u6D88\u5F52\u6863","\u8FD8\u539F","\u89E3\u538B\u7F29"],cloud:["weather","\u4E91\u7AEF"],"cloud-off":["offline-mode","connection-fail","slash","weather","\u4E91\u7AEF","\u65AD\u7F51","\u65E0\u4FE1\u53F7","\u8FDE\u63A5\u5931\u8D25"],attachment:["annex","paperclip","\u9644\u4EF6","\u66F2\u522B\u9488"],profile:["id","\u6863\u6848","\u8D44\u6599","\u8EAB\u4EFD\u8BC1","\u8BC1\u4EF6"],archive:["box","\u6536\u7EB3","\u5F52\u6863","\u5B58\u6863","\u76D2\u5B50","\u7EB8\u7BB1"],"archive-drawer":["night table","\u6536\u7EB3","\u62BD\u5C49","\u5F52\u6863","\u5B58\u6863","\u5E8A\u5934\u67DC"],at:["@","mention","\u63D0\u5230","\u5728"],award:["medal","achievement","badge","\u6210\u5C31","\u5956\u724C","\u91D1\u724C","\u52CB\u7AE0"],medal:["award","achievement","badge","\u6210\u5C31","\u5956\u724C","\u91D1\u724C","\u52CB\u7AE0"],"medal-2":["award","achievement","badge","\u6210\u5C31","\u5956\u724C","\u91D1\u724C","\u52CB\u7AE0"],"bar-chart":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u97F5\u5F8B","\u8282\u594F"],"bar-chart-horizontal":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u97F5\u5F8B","\u8282\u594F"],"bar-chart-2":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u6392\u884C","\u8282\u594F"],"bar-chart-box":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u8282\u594F"],"bar-chart-grouped":["statistics","rhythm","\u67F1\u72B6\u56FE","\u7EDF\u8BA1","\u5206\u7EC4"],"bubble-chart":["data","analysis","statistics","\u6C14\u6CE1\u56FE","\u7EDF\u8BA1"],"pie-chart":["data","analysis","\u997C\u56FE","\u997C\u72B6\u56FE","\u6570\u636E","\u5206\u6790"],"pie-chart-2":["data","analysis","\u997C\u56FE","\u997C\u72B6\u56FE","\u6570\u636E","\u5206\u6790"],"pie-chart-box":["data","analysis","\u997C\u56FE","\u997C\u72B6\u56FE","\u6570\u636E","\u5206\u6790"],"donut-chart":["data","analysis","\u73AF\u5F62\u56FE","\u6570\u636E","\u5206\u6790"],"line-chart":["data","analysis","stats","\u6298\u7EBF\u56FE","\u6570\u636E","\u5206\u6790"],bookmark:["tag","\u4E66\u7B7E","\u6807\u8BB0"],"bookmark-2":["tag","\u4E66\u7B7E","\u6807\u8BB0"],"bookmark-3":["tag","\u4E66\u7B7E","\u6807\u8BB0","\u8363\u8A89"],briefcase:["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-2":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-3":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-4":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],"briefcase-5":["bag","baggage","\u516C\u6587\u5305","\u884C\u674E\u7BB1","\u65C5\u884C\u7BB1","\u76AE\u5305"],calculator:["\u8BA1\u7B97\u5668","\u8BA1\u7B97\u673A"],calendar:["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-2":["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-event":["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-todo":["date","plan","schedule","agenda","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868"],"calendar-check":["date","plan","schedule","agenda","check-in","punch","\u65E5\u5386","\u65E5\u671F","\u6708\u4EFD","\u8BA1\u5212","\u65E5\u7A0B","\u65F6\u95F4\u8868","\u7B7E\u5230","\u6253\u5361"],"customer-service":["headset","\u5BA2\u670D","\u552E\u540E","\u8033\u673A","\u8033\u9EA6"],"customer-service-2":["headset","\u5BA2\u670D","\u552E\u540E","\u8033\u673A","\u8033\u9EA6"],flag:["banner","pin","\u65D7\u5E1C","\u65D7\u5B50","\u56FD\u65D7","\u6807\u8BB0"],"flag-2":["banner","pin","\u65D7\u5E1C","\u65D7\u5B50","\u56FD\u65D7","\u6807\u8BB0"],global:["earth","union","world","language","\u5730\u7403","\u8054\u5408","\u4E16\u754C","\u5168\u7403","\u8BED\u8A00"],honour:["honor","glory","\u9526\u65D7","\u8363\u8A89","\u8363\u8000","\u519B\u8854"],links:["connection","address","\u8054\u7CFB","\u94FE\u63A5","\u5730\u5740"],printer:["\u6253\u5370\u673A"],"printer-cloud":["\u6253\u5370\u673A","\u4E91\u6253\u5370"],"record-mail":["voice mail","tape","\u5F55\u97F3","\u7559\u8A00","\u8BED\u97F3\u4FE1\u7BB1","\u78C1\u5E26"],reply:["forward","\u56DE\u590D\u5168\u90E8","\u56DE\u590D\u6240\u6709"],"reply-all":["forward","\u56DE\u590D","\u7B54\u590D","\u7559\u8A00","\u8F6C\u53D1"],"send-plane":["\u53D1\u9001","\u7EB8\u98DE\u673A"],"send-plane-2":["\u53D1\u9001","\u7EB8\u98DE\u673A"],projector:["projection","meeting","\u6295\u5F71\u4EEA","\u4F1A\u8BAE\u5BA4"],"projector-2":["projection","meeting","\u6295\u5F71\u4EEA","\u4F1A\u8BAE\u5BA4","\u6781\u7C73"],slideshow:["presentation","meeting","PPT","keynote","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],"slideshow-2":["presentation","meeting","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],"slideshow-3":["presentation","meeting","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u89C6\u9891\u4F1A\u8BAE","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],"slideshow-4":["presentation","meeting","\u6295\u5F71","\u653E\u6620","\u6F14\u793A","\u6F14\u8BB2","\u53EF\u89C6\u5BF9\u8BB2","\u5E7B\u706F\u7247","\u4F1A\u8BAE\u5BA4"],window:["browser","program","web","\u7A97\u53E3","\u6D4F\u89C8\u5668","\u7A0B\u5E8F","\u7F51\u7AD9"],"window-2":["browser","program","web","\u7A97\u53E3","\u6D4F\u89C8\u5668","\u7A0B\u5E8F","\u7F51\u7AD9"],stack:["layers","\u56FE\u5C42","\u53E0\u52A0","\u5806\u6808"],service:["heart","handshake","cooperation","\u670D\u52A1","\u63E1\u624B","\u5FC3","\u5408\u4F5C"],registered:["\u6CE8\u518C","\u5546\u6807"],trademark:["\u6CE8\u518C","\u5546\u6807"],advertisement:["ad","\u5E7F\u544A","\u63A8\u5E7F"],copyleft:["\u8457\u4F50\u6743"],copyright:["\u7248\u6743"],"creative-commons":["\u77E5\u8BC6\u5171\u4EAB"],"creative-commons-by":["attribution","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u7F72\u540D"],"creative-commons-nc":["noncommercial","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u975E\u5546\u4E1A\u7528\u9014"],"creative-commons-nd":["no derivative works","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u7981\u6B62\u6F14\u7ECE"],"creative-commons-sa":["share alike","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB","\u76F8\u540C\u65B9\u5F0F\u5171\u4EAB"],"creative-commons-zero":["cc0","copyright","\u7248\u6743","\u77E5\u8BC6\u5171\u4EAB"]},Communication:{"chat-1":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-2":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-3":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-4":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],message:["chat","comment","reply","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"message-2":["chat","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"message-3":["chat","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-check":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u5DF2\u9605"],"chat-delete":["message","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u6E05\u9664","\u5220\u9664"],"chat-forward":["message","comment","\u6D88\u606F","\u804A\u5929","\u8F6C\u53D1"],"chat-upload":["message","comment","\u6D88\u606F","\u804A\u5929","\u4E0A\u4F20"],"chat-download":["message","comment","\u6D88\u606F","\u4E0B\u8F7D"],"chat-new":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-settings":["message","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BBE\u7F6E"],"chat-smile":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-smile-2":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-smile-3":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA"],"chat-heart":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u5FC3","\u70B9\u8D5E","\u6536\u85CF"],"chat-off":["message","reply","comment","slash","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u7981\u6B62","\u5173\u95ED"],feedback:["message","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u53CD\u9988"],discuss:["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BA8\u8BBA","\u7FA4\u804A"],"question-answer":["message","reply","comment","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BA8\u8BBA","\u7FA4\u804A"],questionnaire:["message","comment","help","\u6D88\u606F","\u804A\u5929","\u56DE\u590D","\u8BC4\u8BBA","\u8BA8\u8BBA","\u8C03\u67E5\u95EE\u5377","\u5E2E\u52A9"],"video-chat":["message","comment","\u6D88\u606F","\u89C6\u9891\u804A\u5929"],"chat-voice":["message","comment","\u6D88\u606F","\u8BED\u97F3\u6D88\u606F"],"chat-quote":["message","reply","comment","\u6D88\u606F","\u5F15\u7528\u56DE\u590D"],"chat-follow-up":["message","reply","comment","\u6D88\u606F","+1","\u8DDF\u5E16"],"chat-poll":["message","vote","questionnaire","\u6D88\u606F","\u6295\u7968","\u95EE\u5377\u8C03\u67E5"],"chat-history":["message","\u5386\u53F2\u6D88\u606F","\u6D88\u606F\u8BB0\u5F55"],"chat-private":["message","\u79C1\u5BC6\u6D88\u606F","\u5BC6\u804A"]},Design:{pencil:["edit","\u94C5\u7B14","\u7F16\u8F91"],edit:["pencil","\u94C5\u7B14","\u7F16\u8F91"],"edit-2":["pencil","\u94C5\u7B14","\u7F16\u8F91"],"ball-pen":["\u5706\u73E0\u7B14"],"quill-pen":["\u7FBD\u6BDB\u7B14","\u94A2\u7B14","\u7F16\u8F91"],"pen-nib":["\u94A2\u7B14","\u7B14\u5C16"],"ink-bottle":["\u58A8\u6C34\u74F6"],"mark-pen":["\u9A6C\u514B\u7B14"],markup:["\u6807\u8BB0","\u9A6C\u514B"],"edit-box":["\u7F16\u8F91"],"edit-circle":["\u7F16\u8F91"],sip:["\u5438\u7BA1","\u53D6\u8272\u5668"],brush:["\u7B14\u5237","\u753B\u7B14","\u5237\u5B50"],"brush-2":["\u5237\u5B50"],"brush-3":["\u5237\u5B50"],"brush-4":["\u5237\u5B50"],"paint-brush":["\u586B\u8272","\u586B\u5145","\u5237\u5B50"],contrast:["brightness","tonalit","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03"],"contrast-2":["moon","dark","brightness","tonalit","\u6708\u4EAE","\u591C\u95F4","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03"],drop:["water","blur","\u6A21\u7CCA","\u6C34","\u6EF4"],"blur-off":["water","drop","slash","\u6A21\u7CCA","\u6C34","\u6EF4","\u7981\u6B62","\u5173\u95ED"],"contrast-drop":["water","brightness","tonalit","\u6C34","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03","\u6EF4"],"contrast-drop-2":["water","brightness","tonalit","\u6C34","\u5BF9\u6BD4\u5EA6","\u4EAE\u5EA6","\u8272\u8C03","\u6EF4"],compasses:["\u5706\u89C4"],"compasses-2":["\u5706\u89C4"],scissors:["\u526A\u5200","\u88C1\u526A"],"scissors-cut":["\u526A\u5200","\u88C1\u526A"],"scissors-2":["\u526A\u5200","\u88C1\u526A","\u622A\u5C4F"],slice:["knife","\u5207\u56FE","\u5207\u7247","\u5200"],eraser:["remove formatting","\u6A61\u76AE","\u64E6\u9664","\u6E05\u9664\u683C\u5F0F"],ruler:["\u5C3A\u5B50"],"ruler-2":["\u5C3A\u5B50"],"pencil-ruler":["design","\u94C5\u7B14","\u5C3A\u5B50","\u6587\u5177","\u8BBE\u8BA1"],"pencil-ruler-2":["design","\u94C5\u7B14","\u5C3A\u5B50","\u6587\u5177","\u8BBE\u8BA1"],"t-box":["\u6587\u5B57","\u5B57\u4F53","\u5B57\u53F7"],"input-method":["\u8F93\u5165\u6CD5","\u6587\u5B57"],artboard:["grid","crop","\u753B\u677F","\u88C1\u5207"],"artboard-2":["\u753B\u677F"],crop:["\u88C1\u5207"],"crop-2":["\u88C1\u5207"],screenshot:["capture","\u5C4F\u5E55\u622A\u56FE","\u622A\u5C4F"],"screenshot-2":["capture","\u5C4F\u5E55\u622A\u56FE","\u622A\u5C4F"],"drag-move":["arrow","\u62D6\u62FD","\u79FB\u52A8","\u7BAD\u5934"],"drag-move-2":["arrow","\u62D6\u62FD","\u79FB\u52A8","\u7BAD\u5934"],focus:["aim","target","\u7126\u70B9","\u805A\u7126","\u76EE\u6807","\u9776\u5FC3"],"focus-2":["aim","target","bullseye","\u7126\u70B9","\u805A\u7126","\u76EE\u6807","\u9776\u5FC3"],"focus-3":["aim","target","bullseye","\u7126\u70B9","\u805A\u7126","\u76EE\u6807","\u9776\u5FC3"],paint:["\u586B\u8272","\u586B\u5145","\u6CB9\u6F06\u6876"],palette:["\u8C03\u8272\u76D8","\u8272\u677F"],pantone:["\u8272\u677F","\u6F58\u901A\u8272","\u8272\u53F7"],shape:["border","\u5F62\u72B6","\u63CF\u8FB9","\u8FB9\u6846"],"shape-2":["border","\u5F62\u72B6","\u63CF\u8FB9","\u8FB9\u6846"],magic:["fantasy","magic stick","beautify","\u9B54\u6CD5\u68D2","\u7F8E\u5316","\u5E7B\u60F3","\u9B54\u5E7B"],anticlockwise:["rotate","left","\u5DE6\u7FFB\u8F6C","\u5DE6\u65CB\u8F6C"],"anticlockwise-2":["rotate","left","\u5DE6\u7FFB\u8F6C","\u5DE6\u65CB\u8F6C"],clockwise:["rotate","right","\u53F3\u7FFB\u8F6C","\u53F3\u65CB\u8F6C"],"clockwise-2":["rotate","right","\u53F3\u7FFB\u8F6C","\u53F3\u65CB\u8F6C"],hammer:["\u9524\u5B50"],tools:["settings","\u5DE5\u5177","\u8BBE\u7F6E"],"drag-drop":["drag and drop","mouse","\u62D6\u62FD","\u9F20\u6807"],table:["\u8868\u683C"],"table-alt":["\u8868\u683C"],layout:["\u5E03\u5C40"],"layout-2":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-3":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-4":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-5":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-6":["collage","\u5E03\u5C40","\u62FC\u8D34\u753B"],"layout-column":["\u5DE6\u53F3\u5E03\u5C40"],"layout-row":["\u4E0A\u4E0B\u5E03\u5C40"],"layout-top":["\u9876\u90E8\u5E03\u5C40","\u9876\u90E8\u5BFC\u822A"],"layout-right":["\u53F3\u4FA7\u5E03\u5C40","\u53F3\u4FA7\u5BFC\u822A"],"layout-bottom":["\u5E95\u90E8\u5E03\u5C40","\u5E95\u90E8\u5BFC\u822A"],"layout-left":["\u5DE6\u4FA7\u5E03\u5C40","\u5DE6\u4FA7\u5BFC\u822A"],"layout-top-2":["\u9876\u90E8\u5E03\u5C40","\u9876\u90E8\u5BFC\u822A"],"layout-right-2":["\u53F3\u4FA7\u5E03\u5C40","\u53F3\u4FA7\u5BFC\u822A"],"layout-bottom-2":["\u5E95\u90E8\u5E03\u5C40","\u5E95\u90E8\u5BFC\u822A"],"layout-left-2":["\u5DE6\u4FA7\u5E03\u5C40","\u5DE6\u4FA7\u5BFC\u822A"],"layout-grid":["\u5361\u7247\u5E03\u5C40","\u7F51\u683C"],"layout-masonry":["collage","\u7011\u5E03\u6D41\u5E03\u5C40","\u62FC\u8D34\u753B"],collage:["\u7011\u5E03\u6D41\u5E03\u5C40","\u62FC\u8D34\u753B"],grid:["table","\u7F51\u683C","\u8868\u683C"]},Development:{bug:["\u866B\u5B50"],"bug-2":["\u866B\u5B50"],code:["\u4EE3\u7801","\u7F16\u7A0B"],"code-s":["\u4EE3\u7801","\u7F16\u7A0B"],"code-s-slash":["\u4EE3\u7801","\u7F16\u7A0B"],"code-box":["\u4EE3\u7801","\u7F16\u7A0B"],"terminal-box":["code","command line","\u7EC8\u7AEF","\u4EE3\u7801","\u547D\u4EE4\u884C"],terminal:["code","command line","\u7EC8\u7AEF","\u4EE3\u7801","\u547D\u4EE4\u884C"],"terminal-window":["code","command line","\u7EC8\u7AEF","\u4EE3\u7801","\u547D\u4EE4\u884C"],parentheses:["code","math","\u5C0F\u62EC\u53F7"],brackets:["code","math","\u4E2D\u62EC\u53F7"],braces:["code","math","\u5927\u62EC\u53F7","\u82B1\u62EC\u53F7"],command:["apple key","\u82B1\u952E","\u82F9\u679C\u952E"],cursor:["mouse","\u6307\u9488","\u9F20\u6807"],"git-commit":["node","\u63D0\u4EA4"],"git-pull-request":["\u5408\u5E76\u7533\u8BF7"],"git-merge":["\u5408\u5E76"],"git-branch":["\u5206\u652F"],"git-repository":["\u4ED3\u5E93"],"git-repository-commits":["\u4ED3\u5E93","\u63D0\u4EA4"],"git-repository-private":["\u79C1\u5BC6\u4ED3\u5E93","\u79C1\u4EBA\u4ED3\u5E93"],html5:["html","h5"],css3:["css"]},Device:{tv:["\u7535\u89C6"],"tv-2":["monitor","\u7535\u89C6","\u663E\u793A\u5668"],computer:["monitor","\u7535\u8111","\u663E\u793A\u5668"],mac:["monitor","\u663E\u793A\u5668"],macbook:["laptop","\u7B14\u8BB0\u672C"],cellphone:["\u624B\u673A","\u7535\u8BDD"],smartphone:["mobile","\u624B\u673A"],tablet:["\u5E73\u677F\u7535\u8111"],device:["\u8BBE\u5907"],phone:["\u7535\u8BDD"],database:["storage","\u6570\u636E\u5E93","\u5B58\u50A8"],"database-2":["storage","\u6570\u636E\u5E93","\u5B58\u50A8"],server:["\u670D\u52A1\u5668"],"hard-drive":["disc","storage","\u786C\u76D8","\u5B58\u50A8"],"hard-drive-2":["disc","server","storage","\u786C\u76D8","\u670D\u52A1\u5668","\u5B58\u50A8"],install:["\u5B89\u88C5"],uninstall:["\u5378\u8F7D"],save:["floppy","\u4FDD\u5B58","\u8F6F\u76D8"],"save-2":["floppy","\u4FDD\u5B58","\u8F6F\u76D8"],"save-3":["floppy","\u4FDD\u5B58","\u8F6F\u76D8"],"sd-card":["\u5185\u5B58\u5361"],"sd-card-mini":["\u5185\u5B58\u5361"],"sim-card":["\u7535\u8BDD\u5361"],"sim-card-2":["\u7535\u8BDD\u5361"],"dual-sim-1":["sim card","\u7535\u8BDD\u5361","\u5361\u69FD","\u53CC\u5361\u53CC\u5F85"],"dual-sim-2":["sim card","\u7535\u8BDD\u5361","\u5361\u69FD","\u53CC\u5361\u53CC\u5F85"],"u-disk":["U\u76D8","\u4F18\u76D8"],battery:["\u7535\u6C60"],"battery-charge":["\u7535\u6C60","\u5145\u7535"],"battery-low":["\u7535\u6C60","\u4F4E\u7535\u91CF"],"battery-2":["\u7535\u6C60"],"battery-2-charge":["\u7535\u6C60","\u5145\u7535"],"battery-saver":["\u7535\u6C60","\u7701\u7535\u6A21\u5F0F"],"battery-share":["\u7535\u6C60\u5171\u4EAB","\u5171\u4EAB\u7535\u91CF"],cast:["mirroring","\u6295\u5C4F","\u65E0\u7EBF","\u5E7F\u64AD"],airplay:["mirroring","\u6295\u5C4F","\u65E0\u7EBF"],cpu:["\u4E2D\u592E\u5904\u7406\u5668"],gradienter:["\u6C34\u5E73\u4EEA"],keyboard:["input","\u952E\u76D8","\u8F93\u5165"],"keyboard-box":["input","\u952E\u76D8","\u8F93\u5165"],mouse:["\u9F20\u6807"],sensor:["capacitor","\u4F20\u611F\u5668","\u7535\u5BB9\u5668"],router:["wifi","signal tower","radio","station","\u8DEF\u7531\u5668","\u4FE1\u53F7\u5854","\u5E7F\u64AD","\u57FA\u7AD9","\u6D41\u91CF"],radar:["satellite receiver","\u96F7\u8FBE","\u536B\u661F\u63A5\u6536\u5668","\u9505"],gamepad:["consoles","controller","\u6E38\u620F\u624B\u67C4"],"remote-control":["controller","\u9065\u63A7\u5668"],"remote-control-2":["controller","\u9065\u63A7\u5668"],"device-recover":["\u6062\u590D\u51FA\u5382\u8BBE\u7F6E"],hotspot:["\u624B\u673A\u70ED\u70B9"],"phone-find":["\u627E\u56DE\u624B\u673A"],"phone-lock":["\u9501\u5B9A\u624B\u673A"],"rotate-lock":["\u9501\u5B9A\u65CB\u8F6C\u5C4F\u5E55"],restart:["reload","refresh","\u91CD\u542F"],"shut-down":["power off","\u5173\u673A"],fingerprint:["\u6307\u7EB9"],"fingerprint-2":["\u6307\u7EB9"],barcode:["scan","\u626B\u7801","\u6761\u5F62\u7801","\u6761\u7801"],"barcode-box":["scan","\u626B\u7801","\u6761\u5F62\u7801","\u6761\u7801"],"qr-code":["\u4E8C\u7EF4\u7801"],"qr-scan":["\u4E8C\u7EF4\u7801","\u626B\u63CF"],"qr-scan-2":["\u4E8C\u7EF4\u7801","\u626B\u63CF"],scan:["\u626B\u63CF"],"scan-2":["\u626B\u63CF"],rss:["feed","subscribe","\u8BA2\u9605"],gps:["signal","\u5B9A\u4F4D","\u4FE1\u53F7"],"base-station":["wifi","signal tower","router","cast","\u57FA\u7AD9","\u4FE1\u53F7\u5854","\u8DEF\u7531\u5668","\u5E7F\u64AD","\u6D41\u91CF"],bluetooth:["wireless","\u84DD\u7259","\u65E0\u7EBF"],"bluetooth-connect":["wireless","\u84DD\u7259","\u8FDE\u63A5","\u65E0\u7EBF"],wifi:["\u65E0\u7EBF\u7F51"],"wifi-off":["slash","offline","connection-fail","\u65E0\u7EBF\u7F51","\u5173\u95ED","\u65AD\u7F51","\u94FE\u63A5\u5931\u8D25"],"signal-wifi":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-1":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-2":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-3":["cellular","strength","\u65E0\u7EBF\u7F51","\u4FE1\u53F7"],"signal-wifi-error":["cellular","offline","connection-fail","\u65E0\u7EBF\u7F51","\u65AD\u7F51","\u94FE\u63A5\u5931\u8D25","\u65E0\u4FE1\u53F7"],"signal-wifi-off":["cellular","slash","offline","connection-fail","\u65E0\u7EBF\u7F51","\u5173\u95ED","\u65AD\u7F51","\u94FE\u63A5\u5931\u8D25"],"wireless-charging":["power","flash","\u65E0\u7EBF\u5145\u7535","\u95EA\u5145"],"dashboard-2":["\u4EEA\u8868\u76D8"],"dashboard-3":["\u4EEA\u8868\u76D8"],usb:["\u4F18\u76D8"]},Document:{file:["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-2":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-3":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-4":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"sticky-note":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA","\u4FBF\u7B7E\u7EB8","\u4FBF\u5229\u8D34"],"sticky-note-2":["new","paper","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA","\u4FBF\u7B7E\u7EB8","\u4FBF\u5229\u8D34"],"file-edit":["\u6587\u4EF6","\u6587\u6863","\u7F16\u8F91"],draft:["\u8349\u7A3F\u7BB1","\u6587\u4EF6","\u6587\u6863","\u7F16\u8F91"],"file-paper":["\u6587\u4EF6","\u6587\u6863","\u7EB8","\u8C31"],"file-paper-2":["\u6587\u4EF6","\u6587\u6863","\u7EB8","\u8C31"],"file-text":["\u6587\u4EF6","\u6587\u6863","\u6587\u672C"],"file-list":["\u6E05\u5355","\u5217\u8868"],"file-list-2":["\u6E05\u5355","\u5217\u8868"],"file-list-3":["newspaper","\u6E05\u5355","\u5217\u8868","\u62A5\u7EB8"],bill:["\u8D26\u5355"],"file-copy":["duplicate","clone","\u590D\u5236","\u514B\u9686"],"file-copy-2":["duplicate","clone","\u590D\u5236","\u514B\u9686"],clipboard:["copy","\u590D\u5236","\u526A\u5207\u677F"],survey:["research","questionnaire","\u8C03\u67E5","\u95EE\u5377","\u8C03\u7814"],article:["newspaper","\u6587\u7AE0","\u62A5\u7EB8"],newspaper:["\u62A5\u7EB8"],"file-zip":["7z","rar","\u538B\u7F29\u5305"],"file-mark":["\u6587\u4EF6","\u6587\u6863","\u6807\u8BB0"],task:["todo","\u4EFB\u52A1","\u5F85\u529E"],todo:["\u5F85\u529E"],book:["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50"],"book-mark":["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50","\u4E66\u7B7E"],"book-2":["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50"],"book-3":["read","dictionary","booklet","\u4E66","\u9605\u8BFB","\u5B57\u5178","\u5C0F\u518C\u5B50"],"book-open":["read","booklet","magazine","\u4E66","\u9605\u8BFB","\u5C0F\u518C\u5B50","\u6742\u5FD7"],"book-read":["booklet","magazine","\u4E66","\u9605\u8BFB","\u5C0F\u518C\u5B50","\u6742\u5FD7"],"contacts-book":["\u901A\u8BAF\u5F55","\u8054\u7CFB\u4EBA"],"contacts-book-2":["\u901A\u8BAF\u5F55","\u8054\u7CFB\u4EBA"],"contacts-book-upload":["upload","\u901A\u8BAF\u5F55","\u8054\u7CFB\u4EBA","\u4E0A\u4F20"],booklet:["notebook","\u624B\u518C","\u7B14\u8BB0\u672C","\u5C0F\u518C\u5B50"],"file-code":["config","\u6587\u4EF6","\u6587\u6863","\u4EE3\u7801","\u811A\u672C","\u914D\u7F6E\u6587\u4EF6"],"file-pdf":["\u6587\u4EF6","\u6587\u6863"],"file-word":["\u6587\u6863"],"file-ppt":["\u6587\u4EF6","\u6587\u6863"],"file-excel":["\u6587\u6863","\u8868\u5355"],"file-word-2":["\u6587\u6863"],"file-ppt-2":["\u6587\u4EF6","\u6587\u6863"],"file-excel-2":["\u6587\u6863","\u8868\u5355"],"file-hwp":["\u6587\u4EF6","\u6587\u6863","hangul word processor"],keynote:["\u6F14\u793A\u6587\u7A3F","\u5E7B\u706F\u7247","\u8BB2\u6F14"],numbers:["\u8868\u683C"],pages:["\u6587\u7A3F"],"file-search":["\u6587\u4EF6","\u6587\u6863","\u641C\u7D22"],"file-add":["new","\u6587\u4EF6","\u6587\u6863","\u65B0\u5EFA"],"file-reduce":["\u6587\u4EF6","\u6587\u6863","\u51CF"],"file-settings":["\u6587\u4EF6","\u6587\u6863","\u8BBE\u7F6E"],"file-upload":["\u6587\u4EF6","\u6587\u6863","\u4E0A\u4F20"],"file-transfer":["\u6587\u4EF6","\u6587\u6863","\u4F20\u8F93"],"file-download":["\u6587\u4EF6","\u6587\u6863","\u4E0B\u8F7D"],"file-lock":["\u6587\u4EF6","\u6587\u6863","\u9501"],"file-chart":["report","\u6587\u4EF6","\u6587\u6863","\u67F1\u72B6\u56FE","\u62A5\u8868"],"file-chart-2":["report","\u6587\u4EF6","\u6587\u6863","\u997C\u56FE","\u62A5\u8868"],"file-music":["\u6587\u4EF6","\u6587\u6863","\u97F3\u4E50"],"file-gif":["\u6587\u4EF6","\u6587\u6863","\u52A8\u56FE"],"file-forbid":["\u6587\u4EF6","\u6587\u6863","\u7981\u7528"],"file-info":["\u6587\u4EF6","\u6587\u6863","\u4FE1\u606F"],"file-warning":["alert","\u6587\u4EF6","\u6587\u6863","\u8B66\u544A","\u63D0\u9192"],"file-unknow":["\u6587\u4EF6","\u6587\u6863","\u672A\u77E5","\u95EE\u53F7"],"file-user":["\u6587\u4EF6","\u6587\u6863","\u7528\u6237"],"file-shield":["protected","secured","\u6587\u4EF6","\u6587\u6863","\u76FE\u724C","\u4FDD\u62A4","\u5B89\u5168"],"file-shield-2":["protected","secured","\u6587\u4EF6","\u6587\u6863","\u76FE\u724C","\u4FDD\u62A4","\u5B89\u5168"],"file-damage":["breakdown","broken","\u6587\u4EF6","\u6587\u6863","\u635F\u574F","\u7834\u635F","\u7834\u88C2"],"file-history":["record","\u6587\u4EF6","\u6587\u6863","\u8BB0\u5F55","\u5386\u53F2"],"file-shred":["shredder","shred","destroy","cut","\u6587\u6863","\u9500\u6BC1","\u788E\u7EB8\u673A","\u7834\u88C2","\u7C89\u788E"],"file-cloud":["\u6587\u4EF6","\u6587\u6863","\u4E91"],folder:["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-2":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-3":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-4":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],"folder-5":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863"],folders:["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6279\u91CF"],"folder-add":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6DFB\u52A0"],"folder-reduce":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u51CF"],"folder-settings":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u8BBE\u7F6E"],"folder-upload":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4E0A\u4F20"],"folder-transfer":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4F20\u8F93"],"folder-download":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4E0B\u8F7D"],"folder-lock":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u9501"],"folder-chart":["report","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u67F1\u72B6\u56FE","\u62A5\u8868"],"folder-chart-2":["report","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u997C\u56FE","\u62A5\u8868"],"folder-music":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u97F3\u4E50"],"folder-forbid":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u7981\u7528"],"folder-info":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4FE1\u606F"],"folder-warning":["alert","directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u8B66\u544A","\u63D0\u9192"],"folder-unknow":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u672A\u77E5"],"folder-user":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u7528\u6237"],"folder-shield":["directory","file","protected","secured","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4FDD\u62A4","\u76FE\u724C","\u5B89\u5168"],"folder-shield-2":["directory","file","protected","secured","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u4FDD\u62A4","\u76FE\u724C","\u5B89\u5168"],"folder-shared":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u5206\u4EAB"],"folder-received":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u63A5\u6536"],"folder-open":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6253\u5F00"],"folder-keyhole":["directory","encryption","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6253\u5F00","\u52A0\u5BC6\u6587\u6863"],"folder-zip":["directory","file","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u6253\u5F00","\u538B\u7F29"],"folder-history":["directory","file","record","\u6587\u4EF6\u5939","\u76EE\u5F55","\u6587\u6863","\u8BB0\u5F55","\u5386\u53F2"],markdown:["arrow","\u7BAD\u5934","\u4E0B"]},Editor:{bold:["\u52A0\u7C97"],italic:["\u659C\u4F53"],heading:["\u6807\u9898"],text:["\u5B57\u4F53"],"font-color":["\u6587\u5B57\u8272"],"font-size":["\u5B57\u53F7","\u5B57\u4F53\u5927\u5C0F"],"font-size-2":["\u5B57\u53F7","\u5B57\u4F53\u5927\u5C0F"],underline:["\u4E0B\u5212\u7EBF"],emphasis:["\u7740\u91CD\u53F7"],"emphasis-cn":["\u7740\u91CD\u53F7"],strikethrough:["remove formatting","\u5220\u9664\u7EBF"],"strikethrough-2":["remove formatting","\u5220\u9664\u7EBF"],"format-clear":["remove formatting","\u6E05\u9664\u683C\u5F0F"],"align-left":["\u5DE6\u5BF9\u9F50"],"align-center":["\u5C45\u4E2D\u5BF9\u9F50"],"align-right":["\u53F3\u5BF9\u9F50"],"align-justify":["\u6392\u5217\u5BF9\u9F50"],"align-top":["\u9876\u90E8\u5BF9\u9F50"],"align-vertically":["\u5782\u76F4\u5BF9\u9F50"],"align-bottom":["\u5E95\u90E8\u5BF9\u9F50"],"list-check":["check list","\u6E05\u5355\u5217\u8868"],"list-check-2":["check list","\u6E05\u5355\u5217\u8868"],"list-ordered":["number list","\u6709\u5E8F\u5217\u8868"],"list-unordered":["bullet list","\u65E0\u5E8F\u5217\u8868"],"indent-decrease":["indent more","\u7F29\u8FDB"],"indent-increase":["indent less","\u7F29\u8FDB"],"line-height":["\u884C\u9AD8"],"text-spacing":["\u5B57\u95F4\u8DDD"],"text-wrap":["\u6587\u672C\u6362\u884C"],"attachment-2":["annex","paperclip","\u9644\u4EF6","\u66F2\u522B\u9488"],link:["connection","address","\u8054\u7CFB","\u94FE\u63A5","\u5730\u5740"],"link-unlink":["connection","remove address","\u53BB\u9664\u94FE\u63A5"],"link-m":["connection","address","\u8054\u7CFB","\u94FE\u63A5","\u5730\u5740"],"link-unlink-m":["connection","remove address","\u53BB\u9664\u94FE\u63A5"],separator:["\u5206\u5272\u7EBF"],space:["\u7A7A\u683C"],"page-separator":["insert","\u5206\u9875\u7B26","\u63D2\u5165"],"code-view":["\u4EE3\u7801\u89C6\u56FE"],"double-quotes-l":["left","quotation marks","\u53CC\u5F15\u53F7"],"double-quotes-r":["right","quotation marks","\u53CC\u5F15\u53F7"],"single-quotes-l":["left","quotation marks","\u5355\u5F15\u53F7"],"single-quotes-r":["right","quotation marks","\u5355\u5F15\u53F7"],"table-2":["\u8868\u683C"],subscript:["\u89D2\u6807","\u4E0B\u6807","\u811A\u6CE8"],"subscript-2":["\u89D2\u6807","\u4E0B\u6807","\u811A\u6CE8"],superscript:["\u89D2\u6807","\u4E0A\u6807"],"superscript-2":["\u89D2\u6807","\u4E0A\u6807"],paragraph:["\u6BB5\u843D"],"text-direction-l":["\u6587\u672C\u5DE6\u5BF9\u9F50"],"text-direction-r":["\u6587\u672C\u5DE6\u5BF9\u9F50"],functions:["\u529F\u80FD"],omega:["\u03A9","\u7279\u6B8A\u7B26\u53F7"],hashtag:["#","\u4E95\u53F7"],asterisk:["*","\u661F\u53F7"],"question-mark":["\u95EE\u53F7"],translate:["translator","\u7FFB\u8BD1"],"translate-2":["translator","\u7FFB\u8BD1"],"a-b":["a/b testing","ab testing","ab\u6D4B\u8BD5"],"english-input":["\u82F1\u6587\u8F93\u5165\u6CD5"],"pinyin-input":["\u62FC\u97F3\u8F93\u5165\u6CD5"],"wubi-input":["\u4E94\u7B14\u8F93\u5165\u6CD5"],"input-cursor-move":["\u79FB\u52A8\u8F93\u5165\u5149\u6807"],"number-1":["1","\u4E00","\u6570\u5B57"],"number-2":["2","\u4E8C","\u6570\u5B57"],"number-3":["3","\u4E09","\u6570\u5B57"],"number-4":["4","\u56DB","\u6570\u5B57"],"number-5":["5","\u4E94","\u6570\u5B57"],"number-6":["6","\u516D","\u6570\u5B57"],"number-7":["7","\u4E03","\u6570\u5B57"],"number-8":["8","\u516B","\u6570\u5B57"],"number-9":["9","\u4E5D","\u6570\u5B57"],"number-0":["0","\u96F6","\u6570\u5B57"],"sort-asc":["ranking","ordering","sorting","ascending","descending","\u5347\u5E8F\u6392\u5217","\u6392\u5E8F"],"sort-desc":["ranking","ordering","\u964D\u5E8F\u6392\u5217","\u6392\u5E8F"],"bring-forward":["arrange","\u5C42\u7EA7","\u5411\u4E0A\u4E00\u5C42"],"send-backward":["arrange","\u5C42\u7EA7","\u5411\u4E0B\u4E00\u5C42"],"bring-to-front":["arrange","\u5C42\u7EA7","\u79FB\u5230\u6700\u524D\u9762"],"send-to-back":["arrange","\u5C42\u7EA7","\u79FB\u5230\u6700\u540E\u9762"],"h-1":["heading","\u4E00\u7EA7\u6807\u9898"],"h-2":["heading","\u4E00\u7EA7\u6807\u9898"],"h-3":["heading","\u4E00\u7EA7\u6807\u9898"],"h-4":["heading","\u4E00\u7EA7\u6807\u9898"],"h-5":["heading","\u4E00\u7EA7\u6807\u9898"],"h-6":["heading","\u4E00\u7EA7\u6807\u9898"],"insert-column-left":["\u6DFB\u52A0\u5217","\u5DE6\u4FA7"],"insert-column-right":["\u6DFB\u52A0\u5217","\u53F3\u4FA7"],"insert-row-top":["\u6DFB\u52A0\u884C","\u9876\u90E8"],"insert-row-bottom":["\u6DFB\u52A0\u884C","\u5E95\u90E8"],"delete-column":["\u5220\u9664\u5217","\u5E95\u90E8"],"delete-row":["\u6DFB\u52A0\u884C","\u5E95\u90E8"],"merge-cells-horizontal":["\u5408\u5E76\u5355\u5143\u683C"],"merge-cells-vertical":["\u5408\u5E76\u5355\u5143\u683C"],"split-cells-horizontal":["\u62C6\u5206\u5355\u5143\u683C"],"split-cells-vertical":["\u62C6\u5206\u5355\u5143\u683C"],"flow-chart":["\u6D41\u7A0B\u56FE"],"mind-map":["mindmap","\u8111\u56FE","\u601D\u7EF4\u5BFC\u56FE"],"node-tree":["\u8282\u70B9","\u5C42\u7EA7\u5173\u7CFB\u56FE"],"organization-chart":["\u7EC4\u7EC7\u67B6\u6784\u56FE","\u5C40\u57DF\u7F51"],"rounded-corner":["\u5706\u89D2"]},Finance:{wallet:["\u94B1\u5305","\u5361\u5305"],"wallet-2":["\u94B1\u5305","\u5361\u5305"],"wallet-3":["\u94B1\u5305","\u5361\u5305"],"bank-card":["credit","purchase","payment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361","\u8D2D\u4E70","\u6D88\u8D39","\u652F\u4ED8"],"bank-card-2":["credit","purchase","payment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361","\u8D2D\u4E70","\u6D88\u8D39","\u652F\u4ED8"],"secure-payment":["credit","purchase","payment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361","\u8D2D\u4E70","\u6D88\u8D39","\u652F\u4ED8","\u5B89\u5168"],refund:["credit card","repayment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361\u8FD8\u6B3E"],"refund-2":["credit card","repayment","cc","\u94F6\u884C\u5361","\u4FE1\u7528\u5361\u8FD8\u6B3E"],safe:["\u4FDD\u9669\u67DC","\u4FDD\u9669\u7BB1"],"safe-2":["\u4FDD\u9669\u67DC","\u4FDD\u9669\u7BB1"],"price-tag":["label","\u6807\u7B7E","\u4EF7\u7B7E"],"price-tag-2":["label","\u6807\u7B7E","\u4EF7\u7B7E"],"price-tag-3":["label","\u6807\u7B7E","\u4EF7\u7B7E"],ticket:["coupon","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"ticket-2":["coupon","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],coupon:["ticket","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-2":["ticket","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-3":["ticket","\u7968","\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-4":["\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"coupon-5":["\u4F18\u60E0\u5238","\u4EE3\u91D1\u5238"],"shopping-bag":["purse","\u8D2D\u7269\u888B","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-bag-2":["\u8D2D\u7269\u888B","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-bag-3":["\u8D2D\u7269\u888B","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-basket":["\u8D2D\u7269\u7BEE","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-basket-2":["\u8D2D\u7269\u7BEE","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-cart":["\u8D2D\u7269\u8F66","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],"shopping-cart-2":["\u8D2D\u7269\u8F66","\u8D2D\u4E70","\u6D88\u8D39","\u5546\u57CE"],vip:["\u4F1A\u5458"],"vip-crown":["king","queen","\u7687\u51A0","\u4F1A\u5458","\u56FD\u738B","\u5973\u738B","\u738B\u540E"],"vip-crown-2":["king","queen","\u7687\u51A0","\u4F1A\u5458","\u56FD\u738B","\u5973\u738B","\u738B\u540E"],"vip-diamond":["\u94BB\u77F3","\u4F1A\u5458"],trophy:["\u5956\u54C1","\u5956\u676F","\u91D1\u676F"],exchange:["swap","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"exchange-box":["swap","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],swap:["exchange","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"swap-box":["exchange","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"exchange-dollar":["swap","transfer","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362","\u7F8E\u5143","\u8F6C\u8D26"],"exchange-cny":["swap","transfer","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362","\u4EBA\u6C11\u5E01","\u8F6C\u8D26"],"exchange-funds":["swap","transfer","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362","\u57FA\u91D1","\u80A1\u7968","\u8F6C\u8D26"],"increase-decrease":["\u8BA1\u7B97\u5668"],percent:["\u767E\u5206\u4E4B","\u767E\u5206\u6BD4"],"copper-coin":["currency","payment","\u94DC\u5E01","\u786C\u5E01","\u8D27\u5E01","\u94B1","\u652F\u4ED8"],"copper-diamond":["currency","coins","\u91D1\u5E01","\u94BB\u77F3","\u8D27\u5E01","\u94B1","\u652F\u4ED8"],"money-cny-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u4EBA\u6C11\u5E01"],"money-cny-circle":["currency","coins","\u91D1\u5E01","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u4EBA\u6C11\u5E01"],"money-dollar-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u7F8E\u5143"],"money-dollar-circle":["currency","coins","\u91D1\u5E01","payment","cent","penny","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u7F8E\u5143","\u7F8E\u5206","\u4FBF\u58EB"],"money-euro-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u6B27\u5143"],"money-euro-circle":["currency","coins","\u91D1\u5E01","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u6B27\u5143"],"money-pound-box":["currency","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u82F1\u9551"],"money-pound-circle":["currency","coins","\u91D1\u5E01","payment","\u8D27\u5E01","\u94B1","\u652F\u4ED8","\u82F1\u9551"],"bit-coin":["currency","payment","\u8D27\u5E01","\u94B1","\u6BD4\u7279\u5E01"],coin:["\u91D1\u5E01","\u786C\u5E01"],coins:["\u91D1\u5E01","\u786C\u5E01"],currency:["cash","payment","\u8D27\u5E01","\u94B1"],funds:["foundation","stock","\u57FA\u91D1","\u80A1\u7968"],"funds-box":["foundation","stock","\u57FA\u91D1","\u80A1\u7968"],"red-packet":["\u7EA2\u5305"],"water-flash":["\u6C34\u7535\u8D39"],stock:["\u80A1\u7968"],auction:["hammer","\u62CD\u5356","\u9524\u5B50"],gift:["present","\u793C\u7269"],"gift-2":["present","\u793C\u7269"],"hand-coin":["donate","business","\u6350\u8D60"],"hand-heart":["help","donate","volunteer","welfare","\u5E2E\u52A9","\u7231\u5FC3","\u6350\u8D60","\u5FD7\u613F\u8005","\u516C\u76CA"],"24-hours":["last","24\u5C0F\u65F6\u8425\u4E1A"]},"Health & Medical":{heart:["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],"heart-2":["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],"heart-3":["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],"heart-add":["like","love","favorite","\u5FC3","\u559C\u6B22","\u7231","\u6536\u85CF"],dislike:["like","love","remove favorite","\u5FC3","\u4E0D\u559C\u6B22","\u53D6\u6D88\u6536\u85CF"],hearts:["romance","\u7231\u60C5","\u6D6A\u6F2B","\u5FC3"],"heart-pulse":["heart rate","\u8109\u640F","\u5FC3\u7387"],pulse:["wave","heart rate","\u8109\u640F","\u5FC3\u7387","\u6CE2"],empathize:["care","heart","\u540C\u7406\u5FC3","\u5173\u7231","\u5FC3"],nurse:["doctors","\u533B\u751F","\u62A4\u58EB"],dossier:["\u75C5\u4F8B"],"health-book":["\u5065\u5EB7\u624B\u518C","\u533B\u7597\u624B\u518C"],"first-aid-kit":["case","\u6025\u6551\u7BB1"],capsule:["medicine"," \u80F6\u56CA","\u836F"],"medicine-bottle":["\u836F\u74F6"],flask:["testing","experimental","experiment","\u70E7\u74F6","\u5B9E\u9A8C","\u8BD5\u9A8C"],"test-tube":["testing","experimental","experiment","\u8BD5\u7BA1","\u5B9E\u9A8C","\u8BD5\u9A8C"],microscope:["testing","experimental","experiment","\u663E\u5FAE\u955C","\u5B9E\u9A8C","\u8BD5\u9A8C"],"hand-sanitizer":["alcohol","\u9152\u7CBE\u6D88\u6BD2\u6D17\u624B\u6DB2"],"mental-health":["\u5FC3\u7406\u5065\u5EB7"],psychotherapy:["\u5FC3\u7406\u6CBB\u7597"],stethoscope:["\u542C\u8BCA\u5668"],syringe:["\u6CE8\u5C04\u5668"],thermometer:["\u4F53\u6E29\u8BA1"],"infrared-thermometer":["\u7EA2\u5916\u7EBF\u4F53\u6E29\u8BA1","\u4F53\u6E29\u67AA"],"surgical-mask":["\u5916\u79D1\u533B\u7528\u53E3\u7F69"],virus:["\u75C5\u6BD2"],lungs:["\u80BA\u90E8"],"rest-time":["close","\u4F11\u606F\u65F6\u95F4","\u6253\u70CA"],zzz:["\u7761\u89C9"]},Logos:{alipay:["zhifubao","\u652F\u4ED8\u5B9D"],amazon:["\u4E9A\u9A6C\u900A"],android:["applications","\u5B89\u5353","\u5E94\u7528"],angularjs:["angular","programming framework"],"app-store":["applications","\u82F9\u679C\u5E94\u7528\u5546\u5E97"],apple:["\u82F9\u679C"],baidu:["du","claw","\u767E\u5EA6","\u722A"],behance:["behance"],bilibili:["\u54D4\u54E9\u54D4\u54E9"],centos:["linux","system","\u7CFB\u7EDF"],chrome:["\u8C37\u6B4C\u6D4F\u89C8\u5668"],codepen:["\u4EE3\u7801\u7B14"],coreos:["linux","system","\u7CFB\u7EDF"],dingding:["\u9489\u9489"],discord:["game","chat"],disqus:["comments"],douban:["\u8C46\u74E3"],dribbble:["\u8FFD\u6CE2"],drive:["google drive","\u8C37\u6B4C\u4E91\u7AEF\u786C\u76D8"],dropbox:["\u591A\u5B9D\u7BB1"],edge:["microsoft edge","edge\u6D4F\u89C8\u5668"],evernote:["\u5370\u8C61\u7B14\u8BB0"],facebook:["\u8138\u4E66"],"facebook-circle":["\u8138\u4E66"],"facebook-box":["\u8138\u4E66"],finder:["macintosh","\u4EFF\u8FBE"],firefox:["\u706B\u72D0\u6D4F\u89C8\u5668"],flutter:["google"],gatsby:["gatsby"],github:["github"],gitlab:["gitlab"],google:["\u8C37\u6B4C"],"google-play":["applications","\u8C37\u6B4C\u5E94\u7528\u5546\u5E97"],"honor-of-kings":["game","\u738B\u8005\u8363\u8000"],ie:["internet explorer","\u6D4F\u89C8\u5668"],instagram:["\u7167\u7247\u5899"],invision:["invision"],"kakao-talk":["kakao talk","chat"],line:["\u8FDE\u6211"],linkedin:["\u9886\u82F1"],"linkedin-box":["\u9886\u82F1"],mastercard:["bank card","\u94F6\u884C\u5361"],mastodon:["mastodon","\u957F\u6BDB\u8C61"],medium:["\u5A92\u4F53"],messenger:["facebook","\u8138\u4E66","\u4FE1\u4F7F"],microsoft:["windows","\u7A97\u6237","\u5FAE\u8F6F"],"mini-program":["\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F"],"netease-cloud-music":["netease cloud music","\u7F51\u6613\u4E91\u97F3\u4E50"],netflix:["\u7F51\u98DE"],npmjs:["npm","nodejs"],"open-source":["opensource","\u5F00\u6E90"],opera:["\u6B27\u670B\u6D4F\u89C8\u5668"],patreon:["donate","money","\u6350\u8D60","\u6253\u8D4F"],paypal:["\u8D1D\u5B9D"],pinterest:["\u62FC\u8DA3"],pixelfed:["photography","pixelfed"],playstation:["ps"],"product-hunt":["product hunt"],qq:["penguin","tencent","\u817E\u8BAF","\u4F01\u9E45"],reactjs:["react","programming framework","facebook"],reddit:["reddit"],remixicon:["remix icon","\u56FE\u6807"],safari:["safari\u6D4F\u89C8\u5668"],skype:["skype"],slack:["slack"],snapchat:["ghost","\u8272\u62C9\u5E03","\u5E7D\u7075"],soundcloud:["\u58F0\u4E91"],spectrum:["spectrum"],spotify:["music","\u97F3\u4E50"],"stack-overflow":["stack overflow"],stackshare:["share","\u5206\u4EAB","\u6280\u672F\u6808"],steam:["game","store"],switch:["nintendo","\u4EFB\u5929\u5802"],taobao:["\u6DD8\u5B9D"],telegram:["telegram"],trello:["trello"],tumblr:["\u6C64\u535A\u4E50"],twitch:["twitch"],twitter:["\u63A8\u7279"],ubuntu:["linux","system","\u7CFB\u7EDF"],unsplash:["photos"],vimeo:["\u89C6\u9891"],visa:["bank card","\u94F6\u884C\u5361"],vuejs:["vue","programming framework"],wechat:["\u5FAE\u4FE1"],"wechat-2":["\u5FAE\u4FE1"],"wechat-pay":["\u5FAE\u4FE1\u652F\u4ED8"],weibo:["\u65B0\u6D6A\u5FAE\u535A"],whatsapp:["\u74E6\u6B21\u827E\u666E"],windows:["microsoft","\u7A97\u6237","\u5FAE\u8F6F"],xbox:["xbox"],xing:["xing"],youtube:["\u4F18\u5154","\u6CB9\u7BA1"],zcool:["zcool","\u7AD9\u9177"],zhihu:["\u77E5\u4E4E"]},Map:{"map-pin":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-2":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-3":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-4":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-5":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E"],"map-pin-add":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u65B0\u589E","\u6DFB\u52A0"],"map-pin-range":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u8303\u56F4"],"map-pin-time":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u65F6\u95F4"],"map-pin-user":["location","navigation","\u5730\u56FE","\u5750\u6807","\u5B9A\u4F4D","\u5BFC\u822A","\u4F4D\u7F6E","\u7528\u6237"],"pin-distance":["\u5750\u6807","\u8DDD\u79BB"],pushpin:["\u56FE\u9489"],"pushpin-2":["\u56FE\u9489"],compass:["navigation","safari","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-2":["navigation","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-3":["navigation","safari","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-4":["navigation","direction","discover","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],"compass-discover":["navigation","direction","\u6307\u5357\u9488","\u5BFC\u822A","\u65B9\u5411","\u53D1\u73B0","\u63A2\u7D22"],anchor:["\u951A"],"china-railway":["\u4E2D\u94C1","\u94C1\u8DEF","\u706B\u8F66"],"space-ship":["\u592A\u7A7A\u98DE\u8239"],rocket:["\u706B\u7BAD"],"rocket-2":["space ship","\u706B\u7BAD","\u592A\u7A7A\u98DE\u8239"],map:["navigation","travel","\u5730\u56FE","\u5BFC\u822A","\u65C5\u884C"],"map-2":["location","navigation","travel","\u5730\u56FE","\u5B9A\u4F4D","\u5BFC\u822A","\u65C5\u884C"],"treasure-map":["thriller","adventure","\u5730\u56FE","\u85CF\u5B9D\u56FE"],"road-map":["navigation","travel","\u5730\u56FE","\u5BFC\u822A","\u65C5\u884C"],earth:["global","union","world","language","\u5730\u7403","\u5168\u7403","\u8054\u5408","\u4E16\u754C","\u8BED\u8A00"],globe:["earth","\u5730\u7403\u4EEA"],parking:["\u505C\u8F66\u573A"],"parking-box":["\u505C\u8F66\u573A"],route:["path","\u8DEF\u7EBF"],guide:["path","\u6307\u5F15","\u8DEF\u7EBF"],"gas-station":["\u52A0\u6C14\u7AD9","\u52A0\u6CB9\u7AD9"],"charging-pile":["\u5145\u7535\u6869"],"charging-pile-2":["\u5145\u7535\u6869"],car:["\u6C7D\u8F66"],"car-washing":["\u6C7D\u8F66","\u6D17\u8F66"],roadster:["car","\u6C7D\u8F66","\u8DD1\u8F66"],taxi:["car","\u51FA\u79DF\u8F66","\u6C7D\u8F66"],"taxi-wifi":["car","\u51FA\u79DF\u8F66","\u6C7D\u8F66"],"police-car":["\u6C7D\u8F66","\u8B66\u8F66"],bus:["\u5927\u5DF4","\u5DF4\u58EB"],"bus-2":["\u5927\u5DF4","\u5DF4\u58EB"],"bus-wifi":["\u5927\u5DF4","\u5DF4\u58EB"],truck:["van","delivery","\u5361\u8F66","\u8D27\u8F66","\u8FD0\u8F93"],train:["\u706B\u8F66"],"train-wifi":["\u706B\u8F66"],subway:["\u5730\u94C1"],"subway-wifi":["\u5730\u94C1"],"flight-takeoff":["airplane","plane","origin","\u8D77\u98DE","\u51FA\u53D1","\u59CB\u53D1","\u8D77\u70B9","\u98DE\u673A"],"flight-land":["airplane","plane","destination","\u7740\u9646","\u5230\u8FBE","\u62B5\u8FBE","\u7EC8\u70B9","\u98DE\u673A"],plane:["fight","\u98DE\u673A","\u822A\u73ED"],sailboat:["\u5E06\u8239"],ship:["\u8F6E\u8239","\u822A\u6D77","\u6D77\u8FD0"],"ship-2":["\u8F6E\u8239"],bike:["\u81EA\u884C\u8F66"],"e-bike":["take out","takeaway","\u7535\u52A8\u8F66","\u5916\u5356"],"e-bike-2":["take out","takeaway","\u7535\u52A8\u8F66","\u5916\u5356"],takeaway:["take out","takeaway","\u7535\u52A8\u8F66","\u5916\u5356"],motorbike:["\u6469\u6258\u8F66"],caravan:["\u623F\u8F66"],walk:["\u6B65\u884C"],run:["\u5954\u8DD1","\u8DD1\u6B65"],riding:["bike","\u9A91\u884C","\u81EA\u884C\u8F66"],barricade:["\u8DEF\u969C"],footprint:["\u811A\u5370","\u8DB3\u8FF9"],"traffic-light":["\u4EA4\u901A","\u4FE1\u53F7\u706F"],"signal-tower":["base station","antenna","\u4FE1\u53F7\u5854","\u57FA\u7AD9","\u5929\u7EBF"],restaurant:["\u9910\u5385","\u996D\u5E97"],"restaurant-2":["\u9910\u5385","\u996D\u5E97"],cup:["tea","coffee","\u676F\u5B50","\u5496\u5561","\u8336"],goblet:["cup","wine glass","\u9AD8\u811A\u676F","\u9152\u676F"],"hotel-bed":["\u9152\u5E97","\u5E8A"],navigation:["gps","\u5BFC\u822A"],oil:["\u6C7D\u6CB9","\u673A\u6CB9"],direction:["right","\u65B9\u5411","\u53F3\u8F6C"],steering:["drive","\u65B9\u5411\u76D8","\u9A7E\u8F66"],"steering-2":["drive","\u65B9\u5411\u76D8","\u9A7E\u8F66"],lifebuoy:["life ring","\u6551\u751F\u5708"],passport:["passports","\u62A4\u7167"],suitcase:["travel","\u65C5\u884C","\u884C\u674E\u7BB1"],"suitcase-2":["travel","\u65C5\u884C","\u884C\u674E\u7BB1","\u62C9\u6746\u7BB1"],"suitcase-3":["travel","\u65C5\u884C","boarding case","\u884C\u674E\u7BB1","\u62C9\u6746\u7BB1","\u767B\u673A\u7BB1"],"luggage-deposit":["consignment","\u884C\u674E\u7BB1","\u884C\u674E\u5BC4\u5B58","\u6258\u8FD0"],"luggage-cart":["\u884C\u674E\u8F66"]},Media:{image:["picture","photo","\u56FE\u7247","\u7167\u7247"],"image-2":["picture","photo","\u56FE\u7247","\u7167\u7247"],"image-add":["picture","photo","\u56FE\u7247","\u7167\u7247","\u6DFB\u52A0"],"image-edit":["picture","photo","\u56FE\u7247","\u7167\u7247","\u7F16\u8F91"],landscape:["picture","image","photo","\u56FE\u7247","\u7167\u7247"],gallery:["picture","image","\u56FE\u7247","\u76F8\u518C"],"gallery-upload":["picture","image","\u56FE\u7247","\u76F8\u518C","\u4E0A\u4F20"],video:["\u89C6\u9891"],movie:["film","video","\u7535\u5F71","\u786C\u76D8","\u89C6\u9891"],"movie-2":["film","video","\u7535\u5F71","\u786C\u76D8","\u89C6\u9891"],film:["movie","video","\u5F71\u7247","\u7535\u5F71","\u89C6\u9891"],clapperboard:["movie","film","\u573A\u8BB0\u677F","\u7535\u5F71"],vidicon:["video","camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891"],"vidicon-2":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A"],live:["video","camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u76F4\u64AD"],"video-add":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u6DFB\u52A0"],"video-upload":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u4E0A\u4F20"],"video-download":["camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A","\u89C6\u9891","\u4E0B\u8F7D"],dv:["vidicon","camera","\u6444\u50CF\u673A","\u6444\u5F71\u673A"],camera:["photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247"],"camera-off":["photo","slash","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247","\u7981\u6B62","\u5173\u95ED"],"camera-2":["photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247"],"camera-3":["photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247"],"camera-lens":["aperture","photo","\u7167\u76F8\u673A","\u62CD\u7167","\u7167\u7247","\u670B\u53CB\u5708"],"camera-switch":["\u7167\u76F8\u673A","\u62CD\u7167","\u7FFB\u8F6C"],polaroid:["camera","\u76F8\u673A","\u5B9D\u4E3D\u6765"],"polaroid-2":["camera","\u76F8\u673A","\u5B9D\u4E3D\u6765"],"phone-camera":["\u624B\u673A\u76F8\u673A","\u624B\u673A\u6444\u50CF\u5934"],webcam:["\u6444\u50CF\u5934"],mv:["music video","\u97F3\u4E50"],music:["\u97F3\u4E50"],"music-2":["\u97F3\u4E50"],disc:["music","album","\u97F3\u4E50","\u5531\u7247"],album:["music","\u5531\u7247","\u97F3\u4E50"],dvd:["cd","dvd","record","\u5149\u76D8","\u523B\u5F55"],headphone:["music","headset","\u8033\u673A","\u97F3\u4E50"],radio:["\u6536\u97F3\u673A","\u7535\u53F0"],"radio-2":["\u6536\u97F3\u673A","\u7535\u53F0"],tape:["\u5F55\u97F3","\u78C1\u5E26"],mic:["record","voice","\u8BDD\u7B52","\u8BED\u97F3","\u5F55\u97F3","\u58F0\u97F3"],"mic-2":["record","voice","\u8BDD\u7B52","\u8BED\u97F3","\u5F55\u97F3","\u58F0\u97F3"],"mic-off":["record","voice","slash","\u5173\u95ED\u8BDD\u7B52","\u5173\u95ED\u8BED\u97F3","\u5F55\u97F3","\u5173\u95ED\u58F0\u97F3","\u9759\u97F3","\u7981\u6B62"],"volume-down":["trumpet","sound","speaker","\u97F3\u91CF\u4F4E","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668"],"volume-mute":["trumpet","sound","off","\u97F3\u91CF\u4F4E","\u5587\u53ED","\u58F0\u97F3","\u9759\u97F3"],"volume-up":["trumpet","sound","speaker","\u97F3\u91CF\u9AD8","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668"],"volume-vibrate":["trumpet","sound","speaker","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668","\u9707\u52A8\u6A21\u5F0F"],"volume-off-vibrate":["trumpet","sound","speaker","\u9759\u97F3","\u5587\u53ED","\u58F0\u97F3","\u626C\u58F0\u5668","\u9759\u97F3\u6A21\u5F0F"],speaker:["\u97F3\u54CD"],"speaker-2":["\u97F3\u54CD"],"speaker-3":["\u97F3\u54CD"],"surround-sound":["\u73AF\u7ED5\u7ACB\u4F53\u58F0"],broadcast:["\u5E7F\u64AD"],notification:["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-2":["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-3":["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-4":["bell","alarm","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192"],"notification-off":["bell","alarm","silent","slash","\u901A\u77E5","\u94C3\u94DB","\u63D0\u9192","\u514D\u6253\u6270","\u9759\u97F3","\u5173\u95ED","\u7981\u6B62"],"play-circle":["start","\u64AD\u653E","\u5F00\u59CB"],"pause-circle":["\u6682\u505C"],"record-circle":["\u5F55\u97F3"],"stop-circle":["\u505C\u6B62"],eject:["\u63A8\u51FA"],play:["start","\u64AD\u653E","\u5F00\u59CB"],pause:["\u6682\u505C"],stop:["\u505C\u6B62"],rewind:["fast","\u5FEB\u9000"],speed:["fast","\u5FEB\u8FDB"],"skip-back":["\u4E0A\u4E00\u66F2"],"skip-forward":["\u4E0B\u4E00\u66F2"],"play-mini":["\u64AD\u653E"],"pause-mini":["\u6682\u505C"],"stop-mini":["\u505C\u6B62"],"rewind-mini":["fast","\u5FEB\u9000"],"speed-mini":["fast","\u5FEB\u8FDB"],"skip-back-mini":["\u4E0A\u4E00\u66F2"],"skip-forward-mini":["\u4E0B\u4E00\u66F2"],repeat:["\u5FAA\u73AF\u64AD\u653E"],"repeat-2":["\u5FAA\u73AF\u64AD\u653E"],"repeat-one":["\u5355\u66F2\u5FAA\u73AF"],"order-play":["\u987A\u5E8F\u64AD\u653E"],shuffle:["\u968F\u673A\u64AD\u653E"],"play-list":["\u64AD\u653E\u5217\u8868"],"play-list-2":["\u64AD\u653E\u5217\u8868"],"play-list-add":["\u5217\u8868","\u6DFB\u52A0"],fullscreen:["maximize","\u5168\u5C4F","\u6700\u5927\u5316"],"fullscreen-exit":["minimize","\u9000\u51FA\u5168\u5C4F","\u6700\u5C0F\u5316"],equalizer:["sliders","controls","settings","filter","\u5747\u8861\u5668","\u63A7\u5236\u5668","\u8BBE\u7F6E","\u7B5B\u9009"],"sound-module":["sliders","controls","settings","filter","\u5747\u8861\u5668","\u63A7\u5236\u5668","\u8BBE\u7F6E","\u7B5B\u9009"],rhythm:["\u8282\u594F","\u97F5\u5F8B"],voiceprint:["\u58F0\u7EB9"],hq:["high quality","\u9AD8\u8D28\u91CF","\u9AD8\u54C1\u8D28"],hd:["high definition","\u9AD8\u6E05\u6670\u5EA6"],"4k":["high definition","high quality","\u9AD8\u6E05\u6670\u5EA6","\u9AD8\u54C1\u8D28","\u8D85\u6E05"],"closed-captioning":["\u9690\u85CF\u5B57\u5E55"],"aspect-ratio":["\u5BBD\u9AD8\u6BD4","\u6BD4\u4F8B"],"picture-in-picture":["\u753B\u4E2D\u753B","\u5C0F\u7A97"],"picture-in-picture-2":["\u753B\u4E2D\u753B","\u5C0F\u7A97"],"picture-in-picture-exit":["\u9000\u51FA\u753B\u4E2D\u753B","\u9000\u51FA\u5C0F\u7A97"]},System:{apps:["\u5E94\u7528"],"apps-2":["\u5E94\u7528"],function:["layout","\u529F\u80FD","\u5E94\u7528","\u5361\u7247\u5E03\u5C40"],dashboard:["\u4EEA\u8868\u76D8"],menu:["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-2":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-3":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-4":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-5":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305"],"menu-add":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305","\u6DFB\u52A0"],"menu-fold":["navigation","hamburger","\u5BFC\u822A","\u83DC\u5355","\u6C49\u5821\u5305","\u5C55\u5F00"],more:["ellipsis","\u66F4\u591A","\u7701\u7565"],"more-2":["ellipsis","\u66F4\u591A","\u7701\u7565"],star:["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22"],"star-s":["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22","\u534A\u661F"],"star-half":["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22"],"star-half-s":["favorite","like","mark","\u661F\u661F","\u661F\u6807","\u559C\u6B22","\u534A\u661F"],settings:["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-2":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-3":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-4":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-5":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"settings-6":["edit","gear","preferences","\u504F\u597D\u8BBE\u7F6E","\u7F16\u8F91","\u9F7F\u8F6E"],"list-settings":["\u5217\u8868","\u8BBE\u7F6E"],forbid:["slash","ban","\u7981\u6B62","\u7981\u7528"],"forbid-2":["slash","ban","\u7981\u6B62","\u7981\u7528"],information:["\u4FE1\u606F"],"error-warning":["alert","\u8B66\u544A","\u9519\u8BEF"],question:["help","\u95EE\u53F7","\u5E2E\u52A9"],alert:["\u63D0\u9192","\u8B66\u544A"],spam:["alert","\u5783\u573E\u90AE\u4EF6","\u8B66\u544A"],"spam-2":["alert","\u5783\u573E\u90AE\u4EF6","\u8B66\u544A"],"spam-3":["alert","\u5783\u573E\u90AE\u4EF6","\u8B66\u544A"],"checkbox-blank":["\u590D\u9009\u6846","\u7A7A"],checkbox:["\u590D\u9009\u6846"],"checkbox-indeterminate":["\u590D\u9009\u6846"],"add-box":["plus","new","\u590D\u9009\u6846","\u6DFB\u52A0","\u52A0\u53F7","\u65B0\u589E"],"checkbox-blank-circle":["\u590D\u9009\u6846","\u7A7A"],"checkbox-circle":["\u590D\u9009\u6846"],"indeterminate-circle":["slash","ban","\u590D\u9009\u6846","\u7981"],"add-circle":["plus","new","\u590D\u9009\u6846","\u6DFB\u52A0","\u52A0\u53F7","\u65B0\u589E"],"close-circle":["cancel","remove","delete","empty","x","\u5173\u95ED","\u53D6\u6D88","\u79FB\u9664","\u5220\u9664","\u6E05\u7A7A"],"radio-button":["\u5355\u9009\u6846"],"checkbox-multiple-blank":["\u590D\u9009\u6846","\u7A7A"],"checkbox-multiple":["\u590D\u9009\u6846","\u7A7A"],check:["\u5BF9\u52FE"],"check-double":["read","done","double-tick","\u53CC\u5BF9\u52FE","\u5DF2\u8BFB"],close:["cancel","remove","delete","empty","x","\u5173\u95ED","\u53D6\u6D88","\u79FB\u9664","\u5220\u9664","\u6E05\u7A7A"],add:["plus","new","\u6DFB\u52A0","\u65B0\u589E","\u52A0\u53F7"],subtract:["\u51CF"],divide:["\u9664\u4EE5"],"arrow-left-up":["corner","\u5DE6\u4E0A"],"arrow-up":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-right-up":["corner","\u53F3\u4E0A"],"arrow-right":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-right-down":["corner","\u53F3\u4E0B"],"arrow-down":["\u7BAD\u5934","\u5411\u4E0B"],"arrow-left-down":["corner","\u7BAD\u5934","\u5DE6\u4E0B"],"arrow-left":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-up-circle":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-right-circle":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-down-circle":["\u7BAD\u5934","\u5411\u4E0B","\u4E0B\u8F7D"],"arrow-left-circle":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-up-s":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-down-s":["\u7BAD\u5934","\u5411\u4E0B"],"arrow-right-s":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-left-s":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-drop-up":["\u7BAD\u5934","\u5411\u4E0A"],"arrow-drop-right":["forward","\u7BAD\u5934","\u5411\u53F3"],"arrow-drop-down":["\u7BAD\u5934","\u5411\u4E0B"],"arrow-drop-left":["backward","\u7BAD\u5934","\u5411\u5DE6","\u8FD4\u56DE"],"arrow-left-right":["exchange","swap","\u7BAD\u5934","\u5DE6\u53F3","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"arrow-up-down":["exchange","swap","\u7BAD\u5934","\u4E0A\u4E0B","\u4EA4\u6362","\u6362\u7B97","\u5151\u6362"],"arrow-go-back":["undo","\u7BAD\u5934","\u8FD4\u56DE","\u64A4\u9500","\u64A4\u56DE"],"arrow-go-forward":["redo","\u7BAD\u5934","\u91CD\u505A","\u64A4\u56DE"],download:["\u4E0B\u8F7D"],upload:["\u4E0A\u4F20"],"download-2":["\u4E0B\u8F7D"],"upload-2":["\u4E0A\u4F20"],"download-cloud":["\u4E0B\u8F7D","\u4E91"],"download-cloud-2":["\u4E0B\u8F7D","\u4E91"],"upload-cloud":["\u4E0A\u4F20","\u4E91"],"upload-cloud-2":["\u4E0A\u4F20","\u4E91"],"login-box":["sign in","\u767B\u5F55"],"logout-box":["sign out","\u767B\u51FA","\u6CE8\u9500"],"logout-box-r":["sign out","\u767B\u51FA","\u6CE8\u9500"],"login-circle":["sign in","\u767B\u5F55"],"logout-circle":["sign out","\u767B\u51FA","\u6CE8\u9500"],"logout-circle-r":["sign out","\u767B\u51FA","\u6CE8\u9500"],refresh:["synchronization","reload","restart","spinner","loader","ajax","update","\u5237\u65B0","\u540C\u6B65"],shield:["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1"],"shield-cross":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u95EA\u7535"],"shield-flash":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1"],"shield-star":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u661F\u661F"],"shield-user":["safety","protect","user protected","guarantor","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u7528\u6237"],"shield-keyhole":["safety","protect","guarantor","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1","\u94A5\u5319\u5B54"],"shield-check":["safety","protect","\u76FE\u724C","\u536B\u58EB","\u5B89\u5168","\u9632\u5FA1"],"delete-back":["backspace","\u5220\u9664","\u9000\u683C"],"delete-back-2":["backspace","\u5220\u9664","\u9000\u683C"],"delete-bin":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-2":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-3":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-4":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-5":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-6":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],"delete-bin-7":["trash","remove","ash-bin","garbage","dustbin","uninstall","\u5378\u8F7D","\u5220\u9664","\u5783\u573E\u6876"],lock:["security","password","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],"lock-2":["security","password","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],"lock-password":["security","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],"lock-unlock":["security","password","\u9501\u5B50","\u5B89\u5168","\u5BC6\u7801"],eye:["watch","view","\u773C\u775B","\u67E5\u770B"],"eye-off":["slash","\u773C\u775B","\u4E0D\u53EF\u89C1","\u5173\u95ED","\u7981\u6B62"],"eye-2":["watch","view","\u773C\u775B","\u67E5\u770B"],"eye-close":["x","\u95ED\u773C"],search:["\u641C\u7D22","\u653E\u5927\u955C"],"search-2":["\u641C\u7D22","\u653E\u5927\u955C"],"search-eye":["\u641C\u7D22","\u653E\u5927\u955C","\u773C\u775B"],"zoom-in":["\u653E\u5927","\u653E\u5927\u955C"],"zoom-out":["\u7F29\u5C0F","\u653E\u5927\u955C"],"find-replace":["\u67E5\u627E","\u641C\u7D22","\u66FF\u6362"],share:["\u5206\u4EAB","\u8F6C\u53D1"],"share-box":["\u5206\u4EAB","\u8F6C\u53D1"],"share-circle":["\u5206\u4EAB","\u8F6C\u53D1"],"share-forward":["\u5206\u4EAB","\u8F6C\u53D1"],"share-forward-2":["\u5206\u4EAB","\u8F6C\u53D1"],"share-forward-box":["\u5206\u4EAB","\u8F6C\u53D1"],"side-bar":["\u4FA7\u8FB9\u680F"],time:["clock","\u65F6\u95F4","\u65F6\u949F","\u949F\u8868"],timer:["chronograph","stopwatch","\u79D2\u8868","\u8BA1\u65F6\u5668"],"timer-2":["chronograph","stopwatch","\u79D2\u8868","\u8BA1\u65F6\u5668"],"timer-flash":["chronograph","stopwatch","\u79D2\u8868","\u8BA1\u65F6\u5668","\u95EA\u7535"],alarm:["\u95F9\u949F"],history:["record","recent","time machine","\u5386\u53F2\u8BB0\u5F55","\u6700\u8FD1"],"thumb-down":["dislike","bad","\u4E0D\u559C\u6B22","\u4E0D\u597D"],"thumb-up":["like","good","\u559C\u6B22","\u597D"],"alarm-warning":["alert","report","police light","\u544A\u8B66","\u4E3E\u62A5","\u8B66\u706F"],"notification-badge":["red dot","\u901A\u77E5","\u5C0F\u7EA2\u70B9"],toggle:["switch","\u5F00\u5173","\u89E6\u53D1\u5668"],filter:["filtration","\u7B5B\u9009","\u8FC7\u6EE4"],"filter-2":["filtration","\u7B5B\u9009","\u8FC7\u6EE4"],"filter-3":["filtration","\u7B5B\u9009","\u8FC7\u6EE4"],"filter-off":["filtration","clear-filter","\u7B5B\u9009","\u8FC7\u6EE4"],loader:["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-2":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-3":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-4":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"loader-5":["loader","spinner","ajax","waiting","delay","\u52A0\u8F7D\u4E2D","\u8F7D\u5165\u4E2D","\u6B63\u5728\u52A0\u8F7D"],"external-link":["\u5916\u94FE"]},"User & Faces":{user:["\u7528\u6237"],"user-2":["\u7528\u6237"],"user-3":["\u7528\u6237"],"user-4":["\u7528\u6237"],"user-5":["\u7528\u6237"],"user-6":["\u7528\u6237"],"user-smile":["\u7528\u6237","\u5FAE\u7B11"],"account-box":["\u7528\u6237","\u8D26\u6237"],"account-circle":["\u7528\u6237","\u8D26\u6237"],"account-pin-box":["\u7528\u6237","\u8D26\u6237"],"account-pin-circle":["\u7528\u6237","\u8D26\u6237"],"user-add":["\u7528\u6237","\u6DFB\u52A0","\u65B0\u589E"],"user-follow":["\u5173\u6CE8"],"user-unfollow":["\u7528\u6237","\u53D6\u6D88\u5173\u6CE8"],"user-shared":["transfer","\u7528\u6237","\u6211\u5206\u4EAB\u7684","\u53D1\u9001"],"user-shared-2":["transfer","\u7528\u6237","\u6211\u5206\u4EAB\u7684","\u53D1\u9001"],"user-received":["\u7528\u6237","\u6211\u63A5\u6536\u7684","\u6536\u53D6"],"user-received-2":["\u7528\u6237","\u6211\u63A5\u6536\u7684","\u6536\u53D6"],"user-location":["\u7528\u6237","\u5B9A\u4F4D"],"user-search":["\u7528\u6237","\u67E5\u627E"],"user-settings":["admin","\u7528\u6237","\u8BBE\u7F6E","\u7BA1\u7406\u5458"],"user-star":["\u7528\u6237","\u5173\u6CE8"],"user-heart":["\u7528\u6237","\u5173\u6CE8"],admin:["admin","\u7528\u6237","\u7BA1\u7406\u5458"],contacts:["\u8054\u7CFB\u4EBA"],group:["team","\u56E2\u961F","\u7FA4\u7EC4"],"group-2":["team","\u56E2\u961F","\u7FA4\u7EC4"],team:["\u56E2\u961F","\u5C0F\u7EC4","\u7FA4\u4E3B"],"user-voice":["\u7528\u6237","\u5F55\u97F3","\u6F14\u8BB2"],emotion:["\u8868\u60C5","\u7B11\u8138"],"emotion-2":["\u8868\u60C5","\u7B11\u8138"],"emotion-happy":["\u8868\u60C5","\u5F00\u5FC3"],"emotion-normal":["\u8868\u60C5","\u4E00\u822C"],"emotion-unhappy":["\u8868\u60C5","\u4E0D\u5F00\u5FC3"],"emotion-laugh":["comedy","happy","\u8868\u60C5","\u5927\u7B11","\u7B11\u8138","\u5F00\u5FC3","\u559C\u5267"],"emotion-sad":["drama","tears","\u60B2\u5267","\u54ED\u6CE3","\u6CEA"],skull:["ghost","\u9AB7\u9AC5","\u9B3C\u602A"],"skull-2":["ghost","horror","thriller","\u9AB7\u9AC5","\u9B3C\u602A","\u6050\u60E7","\u6050\u6016"],men:["gender","man","male","\u7537\u4EBA","\u7537\u6027"],women:["gender","woman","female","\u5973\u4EBA","\u5973\u6027"],travesti:["\u5973\u4EBA","\u5973\u6027"],genderless:["\u5973\u4EBA","\u5973\u6027"],"open-arm":["\u5F20\u5F00\u53CC\u81C2"],"body-scan":["gesture recognition","body","\u626B\u63CF\u8EAB\u4F53","\u4F53\u6001\u8BC6\u522B","\u52A8\u4F5C\u4E4B\u522B","\u624B\u52BF\u8BC6\u522B"],parent:["patriarch","\u7236\u6BCD","\u4EB2\u5B50","\u5BB6\u957F"],robot:["mechanic","\u673A\u5668\u4EBA"],aliens:["science fiction","ET","\u5916\u661F\u4EBA","\u79D1\u5E7B\u5C0F\u8BF4"],"bear-smile":["cartoon","anime","cartoon","\u5C0F\u718A","\u5FAE\u7B11","\u513F\u7AE5","\u52A8\u753B\u7247","\u5361\u901A","\u52A8\u6F2B"],mickey:["cartoon","disney","\u8FEA\u58EB\u5C3C","\u7C73\u8001\u9F20","\u5FAE\u7B11","\u513F\u7AE5","\u52A8\u753B\u7247"],criminal:["horror","thriller","\u7F6A\u72AF","\u72AF\u7F6A","\u6050\u6016"],ghost:["horror","thriller","\u9B3C\u602A","\u6050\u6016","\u6050\u60E7"],"ghost-2":["horror","\u9B3C\u602A","\u6050\u6016","\u6050\u60E7"],"ghost-smile":["\u9B3C\u602A","\u7B11"],"star-smile":["animation","\u52A8\u753B","\u5FAE\u7B11","\u661F\u661F"],spy:["incognito mode","detective","secret","\u95F4\u8C0D","\u4FA6\u63A2","\u65E0\u75D5\u6A21\u5F0F","\u9690\u79C1\u6A21\u5F0F"]},Weather:{sun:["light mode","sunny","\u592A\u9633","\u767D\u5929\u6A21\u5F0F","\u6674\u5929"],moon:["dark mode","night","\u6708\u4EAE","\u591C\u95F4\u6A21\u5F0F","\u6708\u7259"],flashlight:["\u95EA\u7535"],cloudy:["\u591A\u4E91"],"cloudy-2":["\u591A\u4E91"],mist:["\u96FE\u6C14","\u96FE\u973E"],foggy:["\u5927\u96FE"],"cloud-windy":["\u98CE"],windy:["\u5927\u98CE","\u522E\u98CE"],rainy:["\u4E0B\u96E8","\u96E8\u5929"],drizzle:["\u5C0F\u96E8"],showers:["\u4E2D\u96E8"],"heavy-showers":["\u5927\u96E8"],thunderstorms:["\u96F7\u66B4","\u96F7\u9635\u96E8"],hail:["\u51B0\u96F9"],snowy:["\u4E0B\u96EA","\u96EA\u5929"],"sun-cloudy":["\u6674\u8F6C\u591A\u4E91"],"moon-cloudy":["\u591C\u95F4\u591A\u4E91"],tornado:["\u9F99\u5377\u98CE"],typhoon:["cyclone","tornado","\u9F99\u5377\u98CE","\u65CB\u98CE","\u53F0\u98CE"],haze:["\u9634\u973E","\u8584\u96FE"],"haze-2":["\u9634\u973E","\u8584\u96FE"],"sun-foggy":["\u8584\u96FE"],"moon-foggy":["\u8584\u96FE"],"moon-clear":["\u591C\u95F4\u6A21\u5F0F","\u591C\u95F4\u65E0\u4E91"],"temp-hot":["temperature","\u6E29\u5EA6","\u9AD8\u6E29","\u70ED"],"temp-cold":["temperature","\u6E29\u5EA6","\u4F4E\u6E29","\u51B7"],celsius:["temperature","\u6E29\u5EA6","\u6444\u6C0F\u5EA6"],fahrenheit:["temperature","\u6E29\u5EA6","\u534E\u6C0F\u5EA6"],fire:["hot","\u706B","\u70ED\u95E8"],blaze:["\u706B\u707E"],earthquake:["\u5730\u9707"],flood:["\u6D2A\u6C34"],meteor:["\u6D41\u661F","\u9668\u77F3"],rainbow:["\u5F69\u8679"]},Others:{basketball:["sports","\u8FD0\u52A8","\u7BEE\u7403"],bell:["cartoon","anime","doraemon","\u94C3\u94DB","\u54C6\u5566A\u68A6","\u5361\u901A","\u52A8\u6F2B"],billiards:["sports","\u8FD0\u52A8","\u53F0\u7403","8"],boxing:["sports","\u8FD0\u52A8","\u62F3\u51FB"],cake:["anniversary","\u86CB\u7CD5"],"cake-2":["anniversary","\u86CB\u7CD5"],"cake-3":["\u86CB\u7CD5"],"door-lock":["\u95E8\u9501"],"door-lock-box":["\u95E8\u9501"],football:["sports","\u8FD0\u52A8","\u8DB3\u7403"],game:["pac man","\u6E38\u620F","\u5403\u8C46\u4EBA"],handbag:["fashion","\u65F6\u5C1A","\u624B\u63D0\u5305","\u5973\u5305"],key:["password","\u94A5\u5319","\u5BC6\u7801"],"key-2":["password","\u94A5\u5319","\u5BC6\u7801"],knife:["\u5200"],"knife-blood":["crime","\u5200","\u72AF\u7F6A","\u8840","\u6740\u4EBA"],lightbulb:["energy","creativity","\u706F\u6CE1","\u80FD\u6E90"],"lightbulb-flash":["energy","creativity","\u706F\u6CE1","\u80FD\u6E90","\u95EA\u7535"],outlet:["\u63D2\u5EA7"],"outlet-2":["\u63D2\u5EA7"],"ping-pong":["sports","table tennis","\u8FD0\u52A8","\u4E52\u4E53\u7403"],plug:["\u4E8C\u811A\u63D2\u5934"],"plug-2":["\u4E09\u811A\u63D2\u5934"],reserved:["\u5DF2\u9884\u5B9A"],shirt:["clothes","\u886C\u886B","\u8863\u670D"],sword:["war","\u5200\u5251","\u6218\u4E89","\u6218\u6597","\u7384\u5E7B"],"t-shirt":["skin","theme","T\u6064","\u76AE\u80A4","\u4E3B\u9898"],"t-shirt-2":["skin","theme","T\u6064","\u76AE\u80A4","\u4E3B\u9898"],"t-shirt-air":["dry","T\u6064","\u98CE\u5E72","\u70D8\u5E72"],umbrella:["protect","\u96E8\u4F1E","\u4FDD\u62A4"],"character-recognition":["ocr","\u6587\u5B57\u8BC6\u522B"],"voice-recognition":["asr","\u8BED\u97F3\u8BC6\u522B"],leaf:["energy","ecology","\u6811\u53F6","\u8282\u80FD","\u73AF\u4FDD","\u8BED\u97F3\u8BC6\u522B"],plant:["\u690D\u7269"],seedling:["\u6811\u82D7","\u690D\u7269"],recycle:["recyclable","\u53EF\u56DE\u6536"],scales:["balance","\u79F0","\u5929\u5E73","\u5929\u79E4"],"scales-2":["\u53A8\u623F\u79F0"],"scales-3":["balance","\u79F0","\u5929\u5E73","\u5929\u79E4"],fridge:["refrigerator","\u7535\u51B0\u7BB1"],wheelchair:["accessbility","\u8F6E\u6905","\u53EF\u8BBF\u95EE\u6027","\u8F85\u52A9\u529F\u80FD"],cactus:["desertr","\u4ED9\u4EBA\u638C","\u6C99\u6F20"],door:["\u95E8"],"door-open":["\u5F00\u95E8"],"door-closed":["\u5173\u95E8"]}};function bw(r,e,t){const n=r.slice();return n[29]=e[t],n}function vw(r,e,t){const n=r.slice();return n[32]=e[t],n[34]=t,n}function Mre(r){let e;return{c(){e=V(r[8])},m(t,n){$(t,e,n)},p(t,n){n[0]&256&&Te(e,t[8])},d(t){t&&b(e)}}}function Dre(r){let e;return{c(){e=D("span"),e.textContent="-"},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ww(r){let e,t=r[32]+"",n,i,l,s,o;function a(){return r[20](r[32])}let u=r[34]!==r[9].length-1&&Dre();return{c(){e=D("span"),n=V(t),i=R(),u&&u.c(),l=Ee(),w(e,"class","letter svelte-vhpvzd"),oe(e,"letter-selected",r[32]===r[2])},m(f,c){$(f,e,c),N(e,n),$(f,i,c),u&&u.m(f,c),$(f,l,c),s||(o=Pe(e,"click",a),s=!0)},p(f,c){r=f,c[0]&516&&oe(e,"letter-selected",r[32]===r[2])},d(f){f&&b(e),f&&b(i),u&&u.d(f),f&&b(l),s=!1,o()}}}function jre(r){let e;return{c(){e=V("Search")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Bre(r){let e,t,n=`There is no icons for this ${r[1]?"search":"page"}`,i;return{c(){e=D("div"),t=D("h5"),i=V(n),w(e,"class","no-icons svelte-vhpvzd")},m(l,s){$(l,e,s),N(e,t),N(t,i)},p(l,s){s[0]&2&&n!==(n=`There is no icons for this ${l[1]?"search":"page"}`)&&Te(i,n)},d(l){l&&b(e)}}}function zre(r){let e,t=!r[5]&&yw(r);return{c(){e=D("div"),t&&t.c(),w(e,"class","icon-area svelte-vhpvzd")},m(n,i){$(n,e,i),t&&t.m(e,null)},p(n,i){n[5]?t&&(t.d(1),t=null):t?t.p(n,i):(t=yw(n),t.c(),t.m(e,null))},d(n){n&&b(e),t&&t.d()}}}function yw(r){let e,t=r[7],n=[];for(let i=0;i<t.length;i+=1)n[i]=kw(bw(r,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();e=Ee()},m(i,l){for(let s=0;s<n.length;s+=1)n[s].m(i,l);$(i,e,l)},p(i,l){if(l[0]&129){t=i[7];let s;for(s=0;s<t.length;s+=1){const o=bw(i,t,s);n[s]?n[s].p(o,l):(n[s]=kw(o),n[s].c(),n[s].m(e.parentNode,e))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(i){$t(n,i),i&&b(e)}}}function kw(r){let e,t,n,i,l,s,o=r[29]+"",a,u,f,c,p,d,g,h,v,C=r[29]+"",y,I,O,T,P;function M(){return r[24](r[29])}function F(){return r[25](r[29])}return{c(){e=D("div"),t=D("div"),n=D("i"),l=R(),s=D("div"),a=V(o),u=V("-fill"),f=R(),c=D("div"),p=D("div"),d=D("i"),h=R(),v=D("div"),y=V(C),I=V("-line"),O=R(),w(n,"class",i=""+(Vn(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd")),w(t,"class","icon-preview svelte-vhpvzd"),w(s,"class","icon-label svelte-vhpvzd"),w(e,"class","icon-container svelte-vhpvzd"),oe(e,"selected",r[0]===`ri-${r[29]}-fill`),w(d,"class",g=""+(Vn(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd")),w(p,"class","icon-preview svelte-vhpvzd"),w(v,"class","icon-label svelte-vhpvzd"),w(c,"class","icon-container svelte-vhpvzd"),oe(c,"selected",r[0]===`ri-${r[29]}-line`)},m(j,B){$(j,e,B),N(e,t),N(t,n),N(e,l),N(e,s),N(s,a),N(s,u),$(j,f,B),$(j,c,B),N(c,p),N(p,d),N(c,h),N(c,v),N(v,y),N(v,I),N(c,O),T||(P=[Pe(e,"click",M),Pe(c,"click",F)],T=!0)},p(j,B){r=j,B[0]&128&&i!==(i=""+(Vn(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd"))&&w(n,"class",i),B[0]&128&&o!==(o=r[29]+"")&&Te(a,o),B[0]&129&&oe(e,"selected",r[0]===`ri-${r[29]}-fill`),B[0]&128&&g!==(g=""+(Vn(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd"))&&w(d,"class",g),B[0]&128&&C!==(C=r[29]+"")&&Te(y,C),B[0]&129&&oe(c,"selected",r[0]===`ri-${r[29]}-line`)},d(j){j&&b(e),j&&b(f),j&&b(c),T=!1,Tn(P)}}}function qre(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F=r[9],j=[];for(let H=0;H<F.length;H+=1)j[H]=ww(vw(r,F,H));function B(H){r[21](H)}let q={thin:!0,placeholder:"Search Icon"};r[1]!==void 0&&(q.value=r[1]),o=new tt({props:q}),Z.push(()=>ce(o,"value",B)),f=new ut({props:{secondary:!0,$$slots:{default:[jre]},$$scope:{ctx:r}}}),f.$on("click",r[13]);function G(H,W){return H[7].length>0?zre:Bre}let Y=G(r),U=Y(r);return{c(){e=D("div"),t=D("div"),n=D("div");for(let H=0;H<j.length;H+=1)j[H].c();i=R(),l=D("div"),s=D("div"),S(o.$$.fragment),u=R(),S(f.$$.fragment),c=R(),p=D("div"),d=D("div"),g=D("span"),g.innerHTML='<i class="page-btn ri-arrow-left-line ri-sm svelte-vhpvzd"></i>',h=R(),v=D("span"),C=V(r[6]),y=R(),I=D("span"),I.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',O=R(),U.c(),w(n,"class","alphabet-area svelte-vhpvzd"),w(s,"class","input-wrapper svelte-vhpvzd"),w(l,"class","search-input svelte-vhpvzd"),w(d,"class","pager"),w(p,"class","page-area svelte-vhpvzd"),w(t,"class","search-area svelte-vhpvzd"),w(e,"class","container svelte-vhpvzd")},m(H,W){$(H,e,W),N(e,t),N(t,n);for(let Q=0;Q<j.length;Q+=1)j[Q].m(n,null);N(t,i),N(t,l),N(l,s),A(o,s,null),N(l,u),A(f,l,null),N(t,c),N(t,p),N(p,d),N(d,g),N(d,h),N(d,v),N(v,C),N(d,y),N(d,I),N(e,O),U.m(e,null),T=!0,P||(M=[Pe(g,"click",r[22]),Pe(I,"click",r[23])],P=!0)},p(H,W){if(W[0]&1540){F=H[9];let K;for(K=0;K<F.length;K+=1){const ne=vw(H,F,K);j[K]?j[K].p(ne,W):(j[K]=ww(ne),j[K].c(),j[K].m(n,null))}for(;K<j.length;K+=1)j[K].d(1);j.length=F.length}const Q={};!a&&W[0]&2&&(a=!0,Q.value=H[1],pe(()=>a=!1)),o.$set(Q);const se={};W[1]&16&&(se.$$scope={dirty:W,ctx:H}),f.$set(se),(!T||W[0]&64)&&Te(C,H[6]),Y===(Y=G(H))&&U?U.p(H,W):(U.d(1),U=Y(H),U&&(U.c(),U.m(e,null)))},i(H){T||(m(o.$$.fragment,H),m(f.$$.fragment,H),T=!0)},o(H){_(o.$$.fragment,H),_(f.$$.fragment,H),T=!1},d(H){H&&b(e),$t(j,H),E(o),E(f),U.d(),P=!1,Tn(M)}}}function Ure(r){let e,t,n,i,l;t=new Yt({props:{$$slots:{default:[Mre]},$$scope:{ctx:r}}}),t.$on("click",function(){ct(r[4].show)&&r[4].show.apply(this,arguments)});let s={anchor:r[3],$$slots:{default:[qre]},$$scope:{ctx:r}};return i=new kp({props:s}),r[26](i),i.$on("open",r[11]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment)},m(o,a){$(o,e,a),A(t,e,null),r[19](e),$(o,n,a),A(i,o,a),l=!0},p(o,a){r=o;const u={};a[0]&256|a[1]&16&&(u.$$scope={dirty:a,ctx:r}),t.$set(u);const f={};a[0]&8&&(f.anchor=r[3]),a[0]&231|a[1]&16&&(f.$$scope={dirty:a,ctx:r}),i.$set(f)},i(o){l||(m(t.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(t.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){o&&b(e),E(t),r[19](null),o&&b(n),r[26](null),E(i,o)}}}const Fre=Object.keys($w).reduce((r,e)=>[...r,...Object.keys($w[e])],[]);function L1(r){const e=new RegExp(`^${r}`,"i");return Fre.filter(t=>e.test(t))}function Vre(r,e,t){let n,i,l,s,o;const a=ht();let{value:u=""}=e,{maxIconsPerPage:f=30}=e,c="",p="A",d=1,g=L1(p);const h=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];let v,C,y=!1;async function I(W){t(15,d=1),t(1,c=""),t(5,y=!0),t(2,p=W),t(16,g=L1(W)),await Ws(),t(5,y=!1)}async function O(){t(5,y=!0);const W=g.findIndex(Q=>Q.value===u);W!==-1&&t(15,d=Math.ceil(W/f)),await Ws(),t(5,y=!1)}async function T(){if(u){const W=n.substring(0,1);await I(W),await O()}}async function P(W){t(5,y=!0),W&&d<i?t(15,d++,d):!W&&d>1&&t(15,d--,d),await Ws(),t(5,y=!1)}async function M(){t(15,d=1),t(5,y=!0),t(16,g=L1(c)),await Ws(),t(5,y=!1)}function F(W){Z[W?"unshift":"push"](()=>{v=W,t(3,v)})}const j=W=>I(W);function B(W){c=W,t(1,c)}const q=()=>P(!1),G=()=>P(!0),Y=W=>t(0,u=`ri-${W}-fill`),U=W=>t(0,u=`ri-${W}-line`);function H(W){Z[W?"unshift":"push"](()=>{C=W,t(4,C)})}return r.$$set=W=>{"value"in W&&t(0,u=W.value),"maxIconsPerPage"in W&&t(14,f=W.maxIconsPerPage)},r.$$.update=()=>{r.$$.dirty[0]&1&&a("change",u),r.$$.dirty[0]&1&&t(8,n=u?u.substring(3):"Pick icon"),r.$$.dirty[0]&81920&&t(17,i=Math.ceil(g.length/f)),r.$$.dirty[0]&49152&&t(18,l=f*d),r.$$.dirty[0]&344064&&t(7,s=g.slice(l-f,l)),r.$$.dirty[0]&163840&&t(6,o=`Page ${d} of ${i}`)},[u,c,p,v,C,y,o,s,n,h,I,T,P,M,f,d,g,i,l,F,j,B,q,G,Y,U,H]}class Hre extends ie{constructor(e){super();le(this,e,Vre,Ure,re,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function Wre(r){let e,t;return e=new Qe({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.placeholder=n[0]),i&4&&(l.value=n[2]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Gre(r,e,t){let n,i,l,s,o;fe(r,fn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=ht(),p=(g,h)=>!Array.isArray(h)||h.indexOf(g)===-1?null:g,d=g=>{t(2,s=p(g.detail,l)),c("change",s)};return r.$$set=g=>{"componentInstance"in g&&t(4,a=g.componentInstance),"value"in g&&t(5,u=g.value),"placeholder"in g&&t(0,f=g.placeholder)},r.$$.update=()=>{r.$$.dirty&272&&t(7,n=El(o,a)),r.$$.dirty&384&&t(6,i=Di(o,n).schema),r.$$.dirty&64&&t(1,l=Object.keys(i||{})),r.$$.dirty&34&&t(2,s=p(u,l))},[f,l,s,d,a,u,i,n,o]}class Yre extends ie{constructor(e){super();le(this,e,Gre,Wre,re,{componentInstance:4,value:5,placeholder:0})}}function Jre(r){let e,t;return e=new Yo({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.placeholder=n[0]),i&4&&(l.value=n[2]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Qre(r,e,t){let n,i,l,s,o;fe(r,fn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=ht(),p=(g,h)=>(Array.isArray(g)||(g=[]),g.filter(v=>h.indexOf(v)!==-1)),d=g=>{t(2,s=p(g.detail,l)),c("change",s)};return r.$$set=g=>{"componentInstance"in g&&t(4,a=g.componentInstance),"value"in g&&t(5,u=g.value),"placeholder"in g&&t(0,f=g.placeholder)},r.$$.update=()=>{r.$$.dirty&272&&t(7,n=El(o,a)),r.$$.dirty&384&&t(6,i=Di(o,n).schema),r.$$.dirty&64&&t(1,l=Object.keys(i||{})),r.$$.dirty&34&&t(2,s=p(u,l))},[f,l,s,d,a,u,i,n,o]}class Xre extends ie{constructor(e){super();le(this,e,Qre,Jre,re,{componentInstance:4,value:5,placeholder:0})}}function Kre(r){let e,t;return e=new Yo({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.placeholder=n[0]),i&4&&(l.value=n[2]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Cw(r,e){return Array.isArray(r)||(r=[]),r.filter(t=>e.indexOf(t)!==-1)}function Zre(r,e,t){let n,i,l,s,o,a;fe(r,Ot,h=>t(9,o=h)),fe(r,fn,h=>t(8,a=h));let{componentInstance:u={}}=e,{value:f=""}=e,{placeholder:c}=e;const p=ht();function d(h,v){let C=Object.values(v);if(!(h==null?void 0:h.tableId))return C.map(I=>I.name);const y=o.list.find(I=>I._id===h.tableId);return C1(C,{allowLinks:y==null?void 0:y.sql}).map(I=>I.name)}const g=h=>{t(2,s=Cw(h.detail,l)),p("change",s)};return r.$$set=h=>{"componentInstance"in h&&t(4,u=h.componentInstance),"value"in h&&t(5,f=h.value),"placeholder"in h&&t(0,c=h.placeholder)},r.$$.update=()=>{r.$$.dirty&272&&t(7,n=El(a,u)),r.$$.dirty&384&&t(6,i=Di(a,n).schema),r.$$.dirty&192&&t(1,l=d(n,i||{})),r.$$.dirty&34&&t(2,s=Cw(f,l))},[c,l,s,g,u,f,i,n,a]}class xre extends ie{constructor(e){super();le(this,e,Zre,Kre,re,{componentInstance:4,value:5,placeholder:0})}}function eie(r){let e,t;const n=[r[1],{showAllQueries:!0},{otherSources:r[0]}];let i={};for(let l=0;l<n.length;l+=1)i=Ui(i,n[l]);return e=new W6({props:i}),e.$on("change",r[2]),{c(){S(e.$$.fragment)},m(l,s){A(e,l,s),t=!0},p(l,[s]){const o=s&3?Eu(n,[s&2&&Ou(l[1]),n[1],s&1&&{otherSources:l[0]}]):{};e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){_(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function tie(r,e,t){const n=[{name:"Custom",label:"Custom"}];function i(l){dt.call(this,r,l)}return r.$$set=l=>{t(1,e=Ui(Ui({},e),Iu(l)))},e=Iu(e),[n,e,i]}class nie extends ie{constructor(e){super();le(this,e,tie,eie,re,{})}}function Sw(r,e,t){const n=r.slice();return n[8]=e[t][0],n[0]=e[t][1],n}function rie(r){let e=r[4][r[0]].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[4][n[0]].name+"")&&Te(t,e)},d(n){n&&b(t)}}}function iie(r){let e=r[0].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p:Oe,d(n){n&&b(t)}}}function Aw(r){let e,t,n,i,l,s,o,a;t=new gt({props:{color:"white",size:"L",name:r[0].icon}}),i=new Ke({props:{size:"XS",$$slots:{default:[iie]},$$scope:{ctx:r}}});function u(){return r[5](r[8])}return{c(){e=D("button"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),w(e,"class","layout svelte-dl48fo"),oe(e,"selected",r[1]===r[8])},m(f,c){$(f,e,c),A(t,e,null),N(e,n),A(i,e,null),N(e,l),s=!0,o||(a=Pe(e,"click",u),o=!0)},p(f,c){r=f;const p={};c&2048&&(p.$$scope={dirty:c,ctx:r}),i.$set(p),c&18&&oe(e,"selected",r[1]===r[8])},i(f){s||(m(t.$$.fragment,f),m(i.$$.fragment,f),s=!0)},o(f){_(t.$$.fragment,f),_(i.$$.fragment,f),s=!1},d(f){f&&b(e),E(t),E(i),o=!1,a()}}}function lie(r){let e,t,n=Object.entries(r[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Aw(Sw(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","container svelte-dl48fo")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,o){if(o&18){n=Object.entries(s[4]);let a;for(a=0;a<n.length;a+=1){const u=Sw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Aw(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),$t(i,s)}}}function sie(r){let e,t;return e=new Bt({props:{onConfirm:r[6],size:"L",title:"Select layout",$$slots:{default:[lie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.onConfirm=n[6]),i&2050&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function oie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[rie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[2].show)&&r[2].show.apply(this,arguments)});let l={$$slots:{default:[sie]},$$scope:{ctx:r}};return n=new At({props:l}),r[7](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&2049&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&2050&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[7](null),E(n,s)}}}function aie(r,e,t){const n=ht();let{value:i=""}=e,l=i,s,o={mainSidebar:{name:"Main with Sidebar",icon:"ColumnTwoB"},sidebarMain:{name:"Sidebar with Main",icon:"ColumnTwoC"},twoColumns:{name:"Two columns",icon:"ColumnTwoA"},threeColumns:{name:"Three columns",icon:"ViewColumn"}};const a=c=>t(1,l=c),u=()=>n("change",l);function f(c){Z[c?"unshift":"push"](()=>{s=c,t(2,s)})}return r.$$set=c=>{"value"in c&&t(0,i=c.value)},[i,l,s,n,o,a,u,f]}class uie extends ie{constructor(e){super();le(this,e,aie,oie,re,{value:0})}}function Ew(r,e,t){const n=r.slice();return n[12]=e[t],n[13]=e,n[14]=t,n}function Ow(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[12].id;for(let f=0;f<a.length;f+=1){let c=Ew(r,a,f),p=u(c);n.set(p,t[f]=Tw(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();w(e,"class","links svelte-1mnha07")},m(f,c){$(f,e,c);for(let p=0;p<t.length;p+=1)t[p].m(e,null);l=!0,s||(o=[vr(i=Pu.call(null,e,{items:r[0],flipDurationMs:P1,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Pe(e,"finalize",r[6]),Pe(e,"consider",r[5])],s=!0)},p(f,c){if(c&23){a=f[0],ee();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,Uo,Tw,null,Ew);for(let p=0;p<t.length;p+=1)t[p].a();te()}i&&ct(i.update)&&c&3&&i.update.call(null,{items:f[0],flipDurationMs:P1,dropTargetStyle:{outline:"none"},dragDisabled:f[1]})},i(f){if(!l){for(let c=0;c<a.length;c+=1)m(t[c]);l=!0}},o(f){for(let c=0;c<t.length;c+=1)_(t[c]);l=!1},d(f){f&&b(e);for(let c=0;c<t.length;c+=1)t[c].d();s=!1,Tn(o)}}}function Tw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v=Oe,C,y,I;i=new gt({props:{name:"DragHandle",size:"XL"}});function O(j){e[9](j,e[12])}let T={placeholder:"Text"};e[12].text!==void 0&&(T.value=e[12].text),o=new tt({props:T}),Z.push(()=>ce(o,"value",O));function P(j){e[10](j,e[12])}let M={placeholder:"URL",options:e[2]};e[12].url!==void 0&&(M.value=e[12].url),f=new Gs({props:M}),Z.push(()=>ce(f,"value",P));function F(){return e[11](e[12])}return d=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),d.$on("click",F),{key:r,first:null,c(){t=D("div"),n=D("div"),S(i.$$.fragment),s=R(),S(o.$$.fragment),u=R(),S(f.$$.fragment),p=R(),S(d.$$.fragment),g=R(),w(n,"class","handle svelte-1mnha07"),w(n,"aria-label","drag-handle"),w(n,"style",l=e[1]?"cursor: grab":"cursor: grabbing"),w(t,"class","link svelte-1mnha07"),this.first=t},m(j,B){$(j,t,B),N(t,n),A(i,n,null),N(t,s),A(o,t,null),N(t,u),A(f,t,null),N(t,p),A(d,t,null),N(t,g),C=!0,y||(I=Pe(n,"mousedown",e[8]),y=!0)},p(j,B){e=j,(!C||B&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&w(n,"style",l);const q={};!a&&B&1&&(a=!0,q.value=e[12].text,pe(()=>a=!1)),o.$set(q);const G={};B&4&&(G.options=e[2]),!c&&B&1&&(c=!0,G.value=e[12].url,pe(()=>c=!1)),f.$set(G)},r(){h=t.getBoundingClientRect()},f(){Fo(t),v()},a(){v(),v=Vo(t,h,Ho,{duration:P1})},i(j){C||(m(i.$$.fragment,j),m(o.$$.fragment,j),m(f.$$.fragment,j),m(d.$$.fragment,j),C=!0)},o(j){_(i.$$.fragment,j),_(o.$$.fragment,j),_(f.$$.fragment,j),_(d.$$.fragment,j),C=!1},d(j){j&&b(t),E(i),E(o),E(f),E(d),y=!1,I()}}}function fie(r){let e;return{c(){e=V("Add Link")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cie(r){var s;let e,t,n,i,l=((s=r[0])==null?void 0:s.length)&&Ow(r);return n=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[fie]},$$scope:{ctx:r}}}),n.$on("click",r[3]),{c(){l&&l.c(),e=R(),t=D("div"),S(n.$$.fragment)},m(o,a){l&&l.m(o,a),$(o,e,a),$(o,t,a),A(n,t,null),i=!0},p(o,a){var f;((f=o[0])==null?void 0:f.length)?l?(l.p(o,a),a&1&&m(l,1)):(l=Ow(o),l.c(),m(l,1),l.m(e.parentNode,e)):l&&(ee(),_(l,1,1,()=>{l=null}),te());const u={};a&32768&&(u.$$scope={dirty:a,ctx:o}),n.$set(u)},i(o){i||(m(l),m(n.$$.fragment,o),i=!0)},o(o){_(l),_(n.$$.fragment,o),i=!1},d(o){l&&l.d(o),o&&b(e),o&&b(t),E(n)}}}function pie(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[cie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-1mnha07")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&32775&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function die(r){let e,t;return e=new Ai({props:{$$slots:{default:[pie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&32775&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const P1=150;function mie(r,e,t){let n,i;fe(r,He,h=>t(7,i=h));let{links:l=[]}=e,s=!0;const o=()=>{t(0,l=[...l,{}])},a=h=>{t(0,l=l.filter(v=>v.id!==h))},u=h=>{t(0,l=h.detail.items)},f=h=>{u(h),t(1,s=!0)},c=()=>t(1,s=!1);function p(h,v){r.$$.not_equal(v.text,h)&&(v.text=h,t(0,l))}function d(h,v){r.$$.not_equal(v.url,h)&&(v.url=h,t(0,l))}const g=h=>a(h.id);return r.$$set=h=>{"links"in h&&t(0,l=h.links)},r.$$.update=()=>{r.$$.dirty&1&&l.forEach(h=>{h.id||(h.id=Br.generate())}),r.$$.dirty&128&&t(2,n=i.screens.map(h=>{var v;return(v=h.routing)==null?void 0:v.route}).filter(h=>h!=null))},[l,s,n,o,a,u,f,i,c,p,d,g]}class gie extends ie{constructor(e){super();le(this,e,mie,die,re,{links:0})}}function _ie(r){let e;return{c(){e=V("Configure links")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hie(r){let e;return{c(){e=V("Configure the links in your navigation bar.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $ie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function bie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[$ie]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&128&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function vie(r){let e,t,n;function i(s){r[4](s)}let l={slot:"body"};return r[1]!==void 0&&(l.links=r[1]),e=new gie({props:l}),Z.push(()=>ce(e,"links",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&2&&(t=!0,a.links=s[1],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function wie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[_ie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Navigation Links",$$slots:{body:[vie],buttons:[bie],description:[hie]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&128&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&130&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function yie(r,e,t){let{value:n=[]}=e,i,l=vn.cloneDeep(n||[]);const s=ht(),o=()=>{s("change",l),i.hide()};function a(f){l=f,t(1,l)}function u(f){Z[f?"unshift":"push"](()=>{i=f,t(0,i)})}return r.$$set=f=>{"value"in f&&t(3,n=f.value)},[i,l,o,n,a,u]}class kie extends ie{constructor(e){super();le(this,e,yie,wie,re,{value:3})}}function Cie(r){let e;return{c(){e=V("Define filters")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Aie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Sie]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8192&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Eie(r){let e,t,n;function i(s){r[10](s)}let l={slot:"body",bindings:r[0],schemaFields:r[3]};return r[2]!==void 0&&(l.filters=r[2]),e=new S1({props:l}),Z.push(()=>ce(e,"filters",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&1&&(a.bindings=s[0]),o&8&&(a.schemaFields=s[3]),!t&&o&4&&(t=!0,a.filters=s[2],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Oie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Cie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={title:"Filtering",$$slots:{body:[Eie],buttons:[Aie]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[11](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&8192&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&8205&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[11](null),E(n,s)}}}function Tie(r,e,t){let n,i,l,s;fe(r,fn,v=>t(9,s=v));const o=ht();let{value:a=[]}=e,{componentInstance:u}=e,{bindings:f=[]}=e,c,p=a||[];const d=async()=>{o("change",p),ye.success("Filters saved."),c.hide()};function g(v){p=v,t(2,p)}function h(v){Z[v?"unshift":"push"](()=>{c=v,t(1,c)})}return r.$$set=v=>{"value"in v&&t(5,a=v.value),"componentInstance"in v&&t(6,u=v.componentInstance),"bindings"in v&&t(0,f=v.bindings)},r.$$.update=()=>{var v;r.$$.dirty&576&&t(8,n=El(s,u)),r.$$.dirty&768&&t(7,i=(v=Di(s,n))==null?void 0:v.schema),r.$$.dirty&128&&t(3,l=Object.values(i||{}))},[f,c,p,l,d,a,u,i,n,s,g,h]}class Iie extends ie{constructor(e){super();le(this,e,Tie,Oie,re,{value:5,componentInstance:6,bindings:0})}}function Iw(r){let e,t,n,i,l;return t=new gt({props:{size:"S",name:"FlashOn"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","icon svelte-1q3yltm"),w(e,"data-cy","text-binding-button")},m(s,o){$(s,e,o),A(t,e,null),n=!0,i||(l=Pe(e,"click",function(){ct(r[8].show)&&r[8].show.apply(this,arguments)}),i=!0)},p(s,o){r=s},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),E(t),i=!1,l()}}}function Lie(r){let e;return{c(){e=V("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Pie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Pie]},$$scope:{ctx:r}}}),e.$on("click",r[12]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&8388608&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Rie(r){let e,t,n;var i=r[0];function l(s){return{props:{slot:"body",value:s[7],close:s[12],bindings:s[1],allowJS:s[6]}}}return i&&(e=new i(l(r)),e.$on("change",r[19])),{c(){e&&S(e.$$.fragment),t=Ee()},m(s,o){e&&A(e,s,o),$(s,t,o),n=!0},p(s,o){const a={};if(o&128&&(a.value=s[7]),o&2&&(a.bindings=s[1]),o&64&&(a.allowJS=s[6]),i!==(i=s[0])){if(e){ee();const u=e;_(u.$$.fragment,1,0,()=>{E(u,1)}),te()}i?(e=new i(l(s)),e.$on("change",s[19]),S(e.$$.fragment),m(e.$$.fragment,1),A(e,t.parentNode,t)):e=null}else i&&e.$set(a)},i(s){n||(e&&m(e.$$.fragment,s),n=!0)},o(s){e&&_(e.$$.fragment,s),n=!1},d(s){s&&b(t),e&&E(e,s)}}}function Mie(r){let e,t,n,i,l,s;t=new Gs({props:{label:r[4],disabled:r[5],readonly:r[11],value:r[11]?"(JavaScript function)":r[7],placeholder:r[3],options:r[10]}}),t.$on("type",r[17]),t.$on("pick",r[18]);let o=!r[5]&&Iw(r),a={title:r[2],$$slots:{body:[Rie],buttons:[Nie],description:[Lie]},$$scope:{ctx:r}};return l=new Kr({props:a}),r[20](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),w(e,"class","control svelte-1q3yltm")},m(u,f){$(u,e,f),A(t,e,null),N(e,n),o&&o.m(e,null),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){const c={};f&16&&(c.label=u[4]),f&32&&(c.disabled=u[5]),f&2048&&(c.readonly=u[11]),f&2176&&(c.value=u[11]?"(JavaScript function)":u[7]),f&8&&(c.placeholder=u[3]),f&1024&&(c.options=u[10]),t.$set(c),u[5]?o&&(ee(),_(o,1,1,()=>{o=null}),te()):o?(o.p(u,f),f&32&&m(o,1)):(o=Iw(u),o.c(),m(o,1),o.m(e,null));const p={};f&4&&(p.title=u[2]),f&8389315&&(p.$$scope={dirty:f,ctx:u}),l.$set(p)},i(u){s||(m(t.$$.fragment,u),m(o),m(l.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(o),_(l.$$.fragment,u),s=!1},d(u){u&&b(e),E(t),o&&o.d(),u&&b(i),r[20](null),E(l,u)}}}function Die(r,e,t){let n,i,l,s,{panel:o=w1}=e,{value:a=""}=e,{bindings:u=[]}=e,{title:f="Bindings"}=e,{placeholder:c}=e,{label:p}=e,{disabled:d=!1}=e,{options:g}=e,{allowJS:h=!0}=e,{appendBindingsAsOptions:v=!0}=e;const C=ht();let y;const I=()=>{O(i),y.hide()},O=(B,q)=>{q&&!(g==null?void 0:g.includes(B))&&(B=`{{ ${B} }}`),C("change",As(u,B))},T=(B,q,G)=>G?[].concat(B||[]).concat((q==null?void 0:q.map(Y=>Y.readableBinding))||[]):B,P=B=>O(B.detail,!1),M=B=>O(B.detail,!0),F=B=>t(9,i=B.detail);function j(B){Z[B?"unshift":"push"](()=>{y=B,t(8,y)})}return r.$$set=B=>{"panel"in B&&t(0,o=B.panel),"value"in B&&t(14,a=B.value),"bindings"in B&&t(1,u=B.bindings),"title"in B&&t(2,f=B.title),"placeholder"in B&&t(3,c=B.placeholder),"label"in B&&t(4,p=B.label),"disabled"in B&&t(5,d=B.disabled),"options"in B&&t(15,g=B.options),"allowJS"in B&&t(6,h=B.allowJS),"appendBindingsAsOptions"in B&&t(16,v=B.appendBindingsAsOptions)},r.$$.update=()=>{r.$$.dirty&16386&&t(7,n=bo(u,a)),r.$$.dirty&128&&t(9,i=n),r.$$.dirty&16384&&t(11,l=Mf(a)),r.$$.dirty&98306&&t(10,s=T(g,u,v))},[o,u,f,c,p,d,h,n,y,i,s,l,I,O,a,g,v,P,M,F,j]}class Lw extends ie{constructor(e){super();le(this,e,Die,Mie,re,{panel:0,value:14,bindings:1,title:2,placeholder:3,label:4,disabled:5,options:15,allowJS:6,appendBindingsAsOptions:16})}}function jie(r){let e,t;return e=new Lw({props:{value:r[0],bindings:r[1],options:r[2],appendBindingsAsOptions:!1}}),e.$on("change",r[4]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.bindings=n[1]),i&4&&(l.options=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Bie(r,e,t){let n,i;fe(r,He,a=>t(3,i=a));let{value:l}=e,{bindings:s}=e;function o(a){dt.call(this,r,a)}return r.$$set=a=>{"value"in a&&t(0,l=a.value),"bindings"in a&&t(1,s=a.bindings)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=i.screens.map(a=>{var u;return(u=a.routing)==null?void 0:u.route}).filter(a=>a!=null))},[l,s,n,i,o]}class zie extends ie{constructor(e){super();le(this,e,Bie,jie,re,{value:0,bindings:1})}}function Pw(r,e,t){const n=r.slice();return n[6]=e[t],n[7]=e,n[8]=t,n}function Nw(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[qie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function qie(r){let e;return{c(){e=V("Add an option to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Rw(r){let e,t=[],n=new Map,i,l=r[0];const s=o=>o[6].id;for(let o=0;o<l.length;o+=1){let a=Pw(r,l,o),u=s(a);n.set(u,t[o]=Mw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","options svelte-12ls1u")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,a){a&3&&(l=o[0],ee(),t=er(t,a,s,1,o,l,n,e,jr,Mw,null,Pw),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function Mw(r,e){let t,n,i,l,s,o,a,u,f;function c(v){e[3](v,e[6])}let p={placeholder:"Label",label:"Label",labelPosition:"left"};e[6].label!==void 0&&(p.value=e[6].label),n=new tt({props:p}),Z.push(()=>ce(n,"value",c));function d(v){e[4](v,e[6])}let g={placeholder:"Value",label:"Value",labelPosition:"left"};e[6].value!==void 0&&(g.value=e[6].value),s=new tt({props:g}),Z.push(()=>ce(s,"value",d));function h(){return e[5](e[6])}return u=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),u.$on("click",h),{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),l=R(),S(s.$$.fragment),a=R(),S(u.$$.fragment),this.first=t},m(v,C){$(v,t,C),A(n,v,C),$(v,l,C),A(s,v,C),$(v,a,C),A(u,v,C),f=!0},p(v,C){e=v;const y={};!i&&C&1&&(i=!0,y.value=e[6].label,pe(()=>i=!1)),n.$set(y);const I={};!o&&C&1&&(o=!0,I.value=e[6].value,pe(()=>o=!1)),s.$set(I)},i(v){f||(m(n.$$.fragment,v),m(s.$$.fragment,v),m(u.$$.fragment,v),f=!0)},o(v){_(n.$$.fragment,v),_(s.$$.fragment,v),_(u.$$.fragment,v),f=!1},d(v){v&&b(t),E(n,v),v&&b(l),E(s,v),v&&b(a),E(u,v)}}}function Uie(r){let e;return{c(){e=V("Add Option")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Fie(r){var a;let e,t,n,i,l,s=!r[0].length&&Nw(r),o=((a=r[0])==null?void 0:a.length)&&Rw(r);return i=new ut({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[Uie]},$$scope:{ctx:r}}}),i.$on("click",r[2]),{c(){s&&s.c(),e=R(),o&&o.c(),t=R(),n=D("div"),S(i.$$.fragment)},m(u,f){s&&s.m(u,f),$(u,e,f),o&&o.m(u,f),$(u,t,f),$(u,n,f),A(i,n,null),l=!0},p(u,f){var p;u[0].length?s&&(ee(),_(s,1,1,()=>{s=null}),te()):s?f&1&&m(s,1):(s=Nw(u),s.c(),m(s,1),s.m(e.parentNode,e)),((p=u[0])==null?void 0:p.length)?o?(o.p(u,f),f&1&&m(o,1)):(o=Rw(u),o.c(),m(o,1),o.m(t.parentNode,t)):o&&(ee(),_(o,1,1,()=>{o=null}),te());const c={};f&512&&(c.$$scope={dirty:f,ctx:u}),i.$set(c)},i(u){l||(m(s),m(o),m(i.$$.fragment,u),l=!0)},o(u){_(s),_(o),_(i.$$.fragment,u),l=!1},d(u){s&&s.d(u),u&&b(e),o&&o.d(u),u&&b(t),u&&b(n),E(i)}}}function Vie(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[Fie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-12ls1u")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&513&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Hie(r){let e,t;return e=new Ai({props:{$$slots:{default:[Vie]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Wie(r,e,t){let{options:n=[]}=e;const i=u=>{t(0,n=n.filter(f=>f.id!==u))},l=()=>{t(0,n=[...n,{id:Br.generate(),label:null,value:null}])};function s(u,f){r.$$.not_equal(f.label,u)&&(f.label=u,t(0,n))}function o(u,f){r.$$.not_equal(f.value,u)&&(f.value=u,t(0,n))}const a=u=>i(u.id);return r.$$set=u=>{"options"in u&&t(0,n=u.options)},[n,i,l,s,o,a]}class Gie extends ie{constructor(e){super();le(this,e,Wie,Hie,re,{options:0})}}function Yie(r){let e;return{c(){e=V("Define Options")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jie(r){let e;return{c(){e=V("Define the options for this picker.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qie(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Qie]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&128&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Kie(r){let e,t,n;function i(s){r[4](s)}let l={slot:"body"};return r[1]!==void 0&&(l.options=r[1]),e=new Gie({props:l}),Z.push(()=>ce(e,"options",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&2&&(t=!0,a.options=s[1],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Zie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Yie]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Options",$$slots:{body:[Kie],buttons:[Xie],description:[Jie]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&128&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&130&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function xie(r,e,t){const n=ht();let{value:i}=e,l,s=i||[];const o=async()=>{t(1,s=s.filter(f=>f.value&&f.label)),n("change",s),l.hide()};function a(f){s=f,t(1,s)}function u(f){Z[f?"unshift":"push"](()=>{l=f,t(0,l)})}return r.$$set=f=>{"value"in f&&t(3,i=f.value)},[l,s,o,i,a,u]}class ele extends ie{constructor(e){super();le(this,e,xie,Zie,re,{value:3})}}function tle(r){let e,t;return e=new Gs({props:{value:r[0],options:r[1]}}),e.$on("change",r[8]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=n[0]),i&2&&(l.options=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function nle(r,e,t){let n,i,l,s,o;fe(r,fn,d=>t(7,o=d));let{componentInstance:a}=e,{value:u}=e,{type:f}=e;const c=(d,g)=>{let h=Object.entries(d!=null?d:{}),v=[];return g==="field/options"?v=[g,"field/string"]:v=[g],v=v.map(C=>C.split("/")[1]),h=h.filter(C=>v.includes(C[1].type)),h.map(C=>C[0])};function p(d){dt.call(this,r,d)}return r.$$set=d=>{"componentInstance"in d&&t(2,a=d.componentInstance),"value"in d&&t(0,u=d.value),"type"in d&&t(3,f=d.type)},r.$$.update=()=>{r.$$.dirty&132&&t(6,n=Uf(o==null?void 0:o.props,a._id,d=>d._component==="@budibase/standard-components/form")),r.$$.dirty&192&&t(5,i=El(o,n)),r.$$.dirty&160&&t(4,l=Di(o,i,{formSchema:!0}).schema),r.$$.dirty&24&&t(1,s=c(l,f))},[u,s,a,f,l,i,n,o,p]}class nl extends ie{constructor(e){super();le(this,e,nle,tle,re,{componentInstance:2,value:0,type:3})}}function Dw(r,e,t){const n=r.slice();return n[29]=e[t],n[30]=e,n[31]=t,n}function jw(r,e,t){const n=r.slice();return n[29]=e[t],n}function rle(r){let e;return{c(){e=V("Schema validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ile(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[sle]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[1]&8&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function lle(r){let e,t,n=r[5],i=[];for(let s=0;s<n.length;s+=1)i[s]=Bw(jw(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","links svelte-lcp0nr")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,o){if(o[0]&50){n=s[5];let a;for(a=0;a<n.length;a+=1){const u=jw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Bw(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),$t(i,s)}}}function sle(r){let e;return{c(){e=V("There are no built-in validation rules from the schema.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Bw(r){let e,t,n,i,l,s,o,a,u,f,c,p;return t=new Qe({props:{placeholder:"Constraint",value:r[29].constraint,options:r[4],disabled:!0}}),i=new Qe({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),s=new jn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:!0}}),a=new jn({props:{placeholder:"Error message",value:r[29].error,bindings:r[1],disabled:!0}}),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),u=R(),f=D("div"),c=R(),w(e,"class","rule schema svelte-lcp0nr")},m(d,g){$(d,e,g),A(t,e,null),N(e,n),A(i,e,null),N(e,l),A(s,e,null),N(e,o),A(a,e,null),N(e,u),N(e,f),N(e,c),p=!0},p(d,g){const h={};g[0]&32&&(h.value=d[29].constraint),g[0]&16&&(h.options=d[4]),t.$set(h);const v={};g[0]&32&&(v.value=d[29].value),g[0]&2&&(v.bindings=d[1]),s.$set(v);const C={};g[0]&32&&(C.value=d[29].error),g[0]&2&&(C.bindings=d[1]),a.$set(C)},i(d){p||(m(t.$$.fragment,d),m(i.$$.fragment,d),m(s.$$.fragment,d),m(a.$$.fragment,d),p=!0)},o(d){_(t.$$.fragment,d),_(i.$$.fragment,d),_(s.$$.fragment,d),_(a.$$.fragment,d),p=!1},d(d){d&&b(e),E(t),E(i),E(s),E(a)}}}function ole(r){let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[rle]},$$scope:{ctx:r}}});const o=[lle,ile],a=[];function u(f,c){var p;return((p=f[5])==null?void 0:p.length)?0:1}return n=u(r),i=a[n]=o[n](r),{c(){S(e.$$.fragment),t=R(),i.c(),l=Ee()},m(f,c){A(e,f,c),$(f,t,c),a[n].m(f,c),$(f,l,c),s=!0},p(f,c){const p={};c[1]&8&&(p.$$scope={dirty:c,ctx:f}),e.$set(p);let d=n;n=u(f),n===d?a[n].p(f,c):(ee(),_(a[d],1,1,()=>{a[d]=null}),te(),i=a[n],i?i.p(f,c):(i=a[n]=o[n](f),i.c()),m(i,1),i.m(l.parentNode,l))},i(f){s||(m(e.$$.fragment,f),m(i),s=!0)},o(f){_(e.$$.fragment,f),_(i),s=!1},d(f){E(e,f),f&&b(t),a[n].d(f),f&&b(l)}}}function ale(r){let e;return{c(){e=V("Custom validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function zw(r){let e,t=[],n=new Map,i,l=r[0];const s=o=>o[29].id;for(let o=0;o<l.length;o+=1){let a=Dw(r,l,o),u=s(a);n.set(u,t[o]=qw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","links svelte-lcp0nr")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,a){a[0]&415&&(l=o[0],ee(),t=er(t,a,s,1,o,l,n,e,jr,qw,null,Dw),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function ule(r){let e,t,n,i,l;const s=[_le,gle,mle,dle,ple],o=[];function a(u,f){return(e==null||f[0]&1)&&(e=!!["string","number","options","longform"].includes(u[29].type)),e?0:u[29].type==="array"?1:u[29].type==="boolean"?2:u[29].type==="datetime"?3:4}return t=a(r,[-1,-1]),n=o[t]=s[t](r),{c(){n.c(),i=Ee()},m(u,f){o[t].m(u,f),$(u,i,f),l=!0},p(u,f){let c=t;t=a(u,f),t===c?o[t].p(u,f):(ee(),_(o[c],1,1,()=>{o[c]=null}),te(),n=o[t],n?n.p(u,f):(n=o[t]=s[t](u),n.c()),m(n,1),n.m(i.parentNode,i))},i(u){l||(m(n),l=!0)},o(u){_(n),l=!1},d(u){o[t].d(u),u&&b(i)}}}function fle(r){let e,t,n;function i(s){r[16](s,r[29])}let l={placeholder:"Constraint value"};return r[29].value!==void 0&&(l.value=r[29].value),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function cle(r){let e,t;function n(...i){return r[15](r[29],r[30],r[31],...i)}return e=new jn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:r[29].constraint==="required"}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l[0]&1&&(s.value=r[29].value),l[0]&2&&(s.bindings=r[1]),l[0]&1&&(s.disabled=r[29].constraint==="required"),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function ple(r){let e,t;return e=new jn({props:{disabled:!0}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Oe,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dle(r){let e,t,n;function i(s){r[19](s,r[29])}let l={enableTime:!1,disabled:r[29].constraint==="required"};return r[29].value!==void 0&&(l.value=r[29].value),e=new Bl({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[29].constraint==="required"),!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function mle(r){let e,t,n;function i(s){r[18](s,r[29])}let l={disabled:r[29].constraint==="required",options:[{label:"True",value:"true"},{label:"False",value:"false"}]};return r[29].value!==void 0&&(l.value=r[29].value),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[29].constraint==="required"),!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function gle(r){let e,t;return e=new Qe({props:{disabled:r[29].constraint==="required",options:r[2].schema[r[3]].constraints.inclusion,getOptionLabel:yle,getOptionValue:kle,value:r[29].value}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&1&&(l.disabled=n[29].constraint==="required"),i[0]&12&&(l.options=n[2].schema[n[3]].constraints.inclusion),i[0]&1&&(l.value=n[29].value),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function _le(r){let e,t,n;function i(s){r[17](s,r[29])}let l={disabled:r[29].constraint==="required",placeholder:"Constraint value"};return r[29].value!==void 0&&(l.value=r[29].value),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[29].constraint==="required"),!t&&o[0]&1&&(t=!0,a.value=r[29].value,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function qw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I;function O(U){e[13](U,e[29])}let T={options:e[4],placeholder:"Constraint"};e[29].constraint!==void 0&&(T.value=e[29].constraint),n=new Qe({props:T}),Z.push(()=>ce(n,"value",O));function P(U){e[14](U,e[29])}let M={disabled:e[29].constraint==="required",placeholder:null,options:["Binding","Value"]};e[29].valueType!==void 0&&(M.value=e[29].valueType),s=new Qe({props:M}),Z.push(()=>ce(s,"value",P));const F=[cle,fle,ule],j=[];function B(U,H){return U[29].valueType==="Binding"?0:((u==null||H[0]&1)&&(u=!!(U[29].type!=="array"&&["maxLength","minLength","regex","notRegex","contains","notContains"].includes(U[29].constraint))),u?1:2)}f=B(e,[-1,-1]),c=j[f]=F[f](e);function q(...U){return e[20](e[29],e[30],e[31],...U)}d=new jn({props:{placeholder:"Error message",value:e[29].error,bindings:e[1]}}),d.$on("change",q);function G(){return e[21](e[29])}h=new gt({props:{name:"Duplicate",hoverable:!0,size:"S"}}),h.$on("click",G);function Y(){return e[22](e[29])}return C=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),C.$on("click",Y),{key:r,first:null,c(){t=D("div"),S(n.$$.fragment),l=R(),S(s.$$.fragment),a=R(),c.c(),p=R(),S(d.$$.fragment),g=R(),S(h.$$.fragment),v=R(),S(C.$$.fragment),y=R(),w(t,"class","rule svelte-lcp0nr"),this.first=t},m(U,H){$(U,t,H),A(n,t,null),N(t,l),A(s,t,null),N(t,a),j[f].m(t,null),N(t,p),A(d,t,null),N(t,g),A(h,t,null),N(t,v),A(C,t,null),N(t,y),I=!0},p(U,H){e=U;const W={};H[0]&16&&(W.options=e[4]),!i&&H[0]&1&&(i=!0,W.value=e[29].constraint,pe(()=>i=!1)),n.$set(W);const Q={};H[0]&1&&(Q.disabled=e[29].constraint==="required"),!o&&H[0]&1&&(o=!0,Q.value=e[29].valueType,pe(()=>o=!1)),s.$set(Q);let se=f;f=B(e,H),f===se?j[f].p(e,H):(ee(),_(j[se],1,1,()=>{j[se]=null}),te(),c=j[f],c?c.p(e,H):(c=j[f]=F[f](e),c.c()),m(c,1),c.m(t,p));const K={};H[0]&1&&(K.value=e[29].error),H[0]&2&&(K.bindings=e[1]),d.$set(K)},i(U){I||(m(n.$$.fragment,U),m(s.$$.fragment,U),m(c),m(d.$$.fragment,U),m(h.$$.fragment,U),m(C.$$.fragment,U),I=!0)},o(U){_(n.$$.fragment,U),_(s.$$.fragment,U),_(c),_(d.$$.fragment,U),_(h.$$.fragment,U),_(C.$$.fragment,U),I=!1},d(U){U&&b(t),E(n),E(s),j[f].d(),E(d),E(h),E(C)}}}function hle(r){let e;return{c(){e=V("Add Rule")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $le(r){var a;let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[ale]},$$scope:{ctx:r}}});let o=((a=r[0])==null?void 0:a.length)&&zw(r);return l=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[hle]},$$scope:{ctx:r}}}),l.$on("click",r[6]),{c(){S(e.$$.fragment),t=R(),o&&o.c(),n=R(),i=D("div"),S(l.$$.fragment),w(i,"class","button")},m(u,f){A(e,u,f),$(u,t,f),o&&o.m(u,f),$(u,n,f),$(u,i,f),A(l,i,null),s=!0},p(u,f){var d;const c={};f[1]&8&&(c.$$scope={dirty:f,ctx:u}),e.$set(c),((d=u[0])==null?void 0:d.length)?o?(o.p(u,f),f[0]&1&&m(o,1)):(o=zw(u),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(ee(),_(o,1,1,()=>{o=null}),te());const p={};f[1]&8&&(p.$$scope={dirty:f,ctx:u}),l.$set(p)},i(u){s||(m(e.$$.fragment,u),m(o),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(o),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),o&&o.d(u),u&&b(n),u&&b(i),E(l)}}}function ble(r){var l;let e,t,n,i;return e=new Ye({props:{noPadding:!0,gap:((l=r[5])==null?void 0:l.length)?"S":"XS",$$slots:{default:[ole]},$$scope:{ctx:r}}}),n=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[$le]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,o){var f;const a={};o[0]&32&&(a.gap=((f=s[5])==null?void 0:f.length)?"S":"XS"),o[0]&50|o[1]&8&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o[0]&31|o[1]&8&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),E(n,s)}}}function vle(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"M",$$slots:{default:[ble]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-lcp0nr")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&63|l[1]&8&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function wle(r){let e,t;return e=new Ai({props:{$$slots:{default:[vle]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&63|i[1]&8&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const yle=r=>r,kle=r=>r;function Cle(r,e,t){let n,i,l,s,o,a,u;fe(r,ri,W=>t(11,a=W)),fe(r,fn,W=>t(12,u=W));let{rules:f=[]}=e,{bindings:c=[]}=e,{type:p}=e;const d={Required:{label:"Required",value:"required"},MinLength:{label:"Min length",value:"minLength"},MaxLength:{label:"Max length",value:"maxLength"},MaxValue:{label:"Max value",value:"maxValue"},MinValue:{label:"Min value",value:"minValue"},Equal:{label:"Must equal",value:"equal"},NotEqual:{label:"Must not equal",value:"notEqual"},Regex:{label:"Must match regex",value:"regex"},NotRegex:{label:"Must not match regex",value:"notRegex"},Contains:{label:"Must contain",value:"contains"},NotContains:{label:"Must not contain",value:"notContains"}},g={string:[d.Required,d.MaxLength,d.Equal,d.NotEqual,d.Regex,d.NotRegex],number:[d.Required,d.MaxValue,d.MinValue,d.Equal,d.NotEqual],boolean:[d.Required,d.Equal,d.NotEqual],datetime:[d.Required,d.MaxValue,d.MinValue,d.Equal,d.NotEqual],attachment:[d.Required],link:[d.Required,d.Contains,d.NotContains,d.MinLength,d.MaxLength],array:[d.Required,d.MinLength,d.MaxLength,d.Contains,d.NotContains]},h=W=>g[W],v=(W,Q)=>{if(!W||!Q)return null;const se=Uf(W.props,Q._id,K=>K._component.endsWith("/form"));return Di(W,se==null?void 0:se.dataSource)},C=(W,Q)=>{var ae,_e,Me,we,$e,ge;if(!W||!Q)return[];const se=(ae=Q.schema)==null?void 0:ae[W],K=se==null?void 0:se.constraints;if(!K)return[];let ne=[];if((W===((_e=Q==null?void 0:Q.table)==null?void 0:_e.primaryDisplay)||((Me=K.presence)==null?void 0:Me.allowEmpty)===!1)&&ne.push({constraint:"required",error:"Required field"}),y((we=K.length)==null?void 0:we.maximum)){const Ne=K.length.maximum;ne.push({constraint:"maxLength",value:Ne,error:`Maximum ${Ne} characters`})}if(y(($e=K.numericality)==null?void 0:$e.greaterThanOrEqualTo)){const Ne=K.numericality.greaterThanOrEqualTo;ne.push({constraint:"minValue",value:Ne,error:`Minimum value is ${Ne}`})}if(y((ge=K.numericality)==null?void 0:ge.lessThanOrEqualTo)){const Ne=K.numericality.lessThanOrEqualTo;ne.push({constraint:"maxValue",value:Ne,error:`Maximum value is ${Ne}`})}return ne},y=W=>W!=null&&W!=="",I=()=>{t(0,f=[...f||[],{valueType:"Binding",type:s,id:Br.generate(),value:s=="array"?[]:null}])},O=W=>{t(0,f=f.filter(Q=>Q.id!==W))},T=W=>{const Q=f.find(K=>K.id===W),se=lt(Se({},Q),{id:Br.generate()});t(0,f=[...f,se])};function P(W,Q){r.$$.not_equal(Q.constraint,W)&&(Q.constraint=W,t(0,f))}function M(W,Q){r.$$.not_equal(Q.valueType,W)&&(Q.valueType=W,t(0,f))}const F=(W,Q,se,K)=>t(0,Q[se].value=K.detail,f);function j(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}function B(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}function q(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}function G(W,Q){r.$$.not_equal(Q.value,W)&&(Q.value=W,t(0,f))}const Y=(W,Q,se,K)=>t(0,Q[se].error=K.detail,f),U=W=>T(W.id),H=W=>O(W.id);return r.$$set=W=>{"rules"in W&&t(0,f=W.rules),"bindings"in W&&t(1,c=W.bindings),"type"in W&&t(9,p=W.type)},r.$$.update=()=>{r.$$.dirty[0]&6144&&t(2,n=v(u,a)),r.$$.dirty[0]&2048&&t(3,i=a==null?void 0:a.field),r.$$.dirty[0]&12&&t(5,l=C(i,n||{})),r.$$.dirty[0]&512&&t(10,s=(p==null?void 0:p.split("/")[1])||"string"),r.$$.dirty[0]&1024&&t(4,o=h(s))},[f,c,n,i,o,l,I,O,T,p,s,a,u,P,M,F,j,B,q,G,Y,U,H]}class Sle extends ie{constructor(e){super();le(this,e,Cle,wle,re,{rules:0,bindings:1,type:9},null,[-1,-1])}}function Ale(r){let e;return{c(){e=V("Configure validation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ele(r){let e;return{c(){e=V("Configure validation rules for this field.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ole(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Tle(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Ole]},$$scope:{ctx:r}}}),e.$on("click",r[5]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&512&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Ile(r){let e,t,n;function i(s){r[6](s)}let l={slot:"body",type:r[3],bindings:r[1],componentDefinition:r[2]};return r[0]!==void 0&&(l.rules=r[0]),e=new Sle({props:l}),Z.push(()=>ce(e,"rules",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&8&&(a.type=s[3]),o&2&&(a.bindings=s[1]),o&4&&(a.componentDefinition=s[2]),!t&&o&1&&(t=!0,a.rules=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Lle(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Ale]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[4].show)&&r[4].show.apply(this,arguments)});let l={title:"Validation Rules",$$slots:{body:[Ile],buttons:[Tle],description:[Ele]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[7](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&512&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&527&&(u.$$scope={dirty:o,ctx:r}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[7](null),E(n,s)}}}function Ple(r,e,t){let{value:n=[]}=e,{bindings:i=[]}=e,{componentDefinition:l}=e,{type:s}=e,o;const a=ht(),u=()=>{a("change",n),o.hide()};function f(p){n=p,t(0,n)}function c(p){Z[p?"unshift":"push"](()=>{o=p,t(4,o)})}return r.$$set=p=>{"value"in p&&t(0,n=p.value),"bindings"in p&&t(1,i=p.bindings),"componentDefinition"in p&&t(2,l=p.componentDefinition),"type"in p&&t(3,s=p.type)},[n,i,l,s,o,u,f,c]}class Os extends ie{constructor(e){super();le(this,e,Ple,Lle,re,{value:0,bindings:1,componentDefinition:2,type:3})}}function Nle(r){let e;return{c(){e=V("Background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Rle(r){let e,t,n,i;return e=new Ze({props:{$$slots:{default:[Nle]},$$scope:{ctx:r}}}),n=new Jl({props:{value:r[0].background,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[5]),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1&&(a.value=l[0].background),s&2&&(a.spectrumTheme=l[1].theme),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function Mle(r){let e;return{c(){e=V("Text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Dle(r){let e,t,n,i;return e=new Ze({props:{$$slots:{default:[Mle]},$$scope:{ctx:r}}}),n=new Jl({props:{value:r[0].color,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[6]),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1&&(a.value=l[0].color),s&2&&(a.spectrumTheme=l[1].theme),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function jle(r){let e,t,n,i,l,s,o,a,u,f,c,p;function d(C){r[2](C)}let g={label:"Width",placeholder:"Auto"};r[0].width!==void 0&&(g.value=r[0].width),e=new tt({props:g}),Z.push(()=>ce(e,"value",d));function h(C){r[3](C)}let v={label:"Alignment",options:["Left","Center","Right"],placeholder:"Default"};return r[0].align!==void 0&&(v.value=r[0].align),i=new Qe({props:v}),Z.push(()=>ce(i,"value",h)),o=new jn({props:{label:"Value",value:r[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]"}]}}),o.$on("change",r[4]),u=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[Rle]},$$scope:{ctx:r}}}),c=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[Dle]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),f=R(),S(c.$$.fragment)},m(C,y){A(e,C,y),$(C,n,y),A(i,C,y),$(C,s,y),A(o,C,y),$(C,a,y),A(u,C,y),$(C,f,y),A(c,C,y),p=!0},p(C,y){const I={};!t&&y&1&&(t=!0,I.value=C[0].width,pe(()=>t=!1)),e.$set(I);const O={};!l&&y&1&&(l=!0,O.value=C[0].align,pe(()=>l=!1)),i.$set(O);const T={};y&1&&(T.value=C[0].template),o.$set(T);const P={};y&131&&(P.$$scope={dirty:y,ctx:C}),u.$set(P);const M={};y&131&&(M.$$scope={dirty:y,ctx:C}),c.$set(M)},i(C){p||(m(e.$$.fragment,C),m(i.$$.fragment,C),m(o.$$.fragment,C),m(u.$$.fragment,C),m(c.$$.fragment,C),p=!0)},o(C){_(e.$$.fragment,C),_(i.$$.fragment,C),_(o.$$.fragment,C),_(u.$$.fragment,C),_(c.$$.fragment,C),p=!1},d(C){E(e,C),C&&b(n),E(i,C),C&&b(s),E(o,C),C&&b(a),E(u,C),C&&b(f),E(c,C)}}}function Ble(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[jle]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-4eq5in")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&131&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function zle(r){let e,t;return e=new Ai({props:{$$slots:{default:[Ble]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&131&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function qle(r,e,t){let n;fe(r,He,f=>t(1,n=f));let{column:i}=e;function l(f){r.$$.not_equal(i.width,f)&&(i.width=f,t(0,i))}function s(f){r.$$.not_equal(i.align,f)&&(i.align=f,t(0,i))}const o=f=>t(0,i.template=f.detail,i),a=f=>t(0,i.background=f.detail,i),u=f=>t(0,i.color=f.detail,i);return r.$$set=f=>{"column"in f&&t(0,i=f.column)},[i,n,l,s,o,a,u]}class Ule extends ie{constructor(e){super();le(this,e,qle,zle,re,{column:0})}}function Fle(r){let e,t=r[0].name+"",n,i;return{c(){e=V('"'),n=V(t),i=V('" column settings')},m(l,s){$(l,e,s),$(l,n,s),$(l,i,s)},p(l,s){s&1&&t!==(t=l[0].name+"")&&Te(n,t)},d(l){l&&b(e),l&&b(n),l&&b(i)}}}function Vle(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hle(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Vle]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&256&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Wle(r){let e,t,n;function i(s){r[5](s)}let l={slot:"body"};return r[1]!==void 0&&(l.column=r[1]),e=new Ule({props:l}),Z.push(()=>ce(e,"column",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&2&&(t=!0,a.column=s[1],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Gle(r){let e,t,n,i;e=new gt({props:{name:"Settings",hoverable:!0,size:"S"}}),e.$on("click",r[3]);let l={title:"Table Columns",$$slots:{body:[Wle],buttons:[Hle],description:[Fle]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[6](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&259&&(a.$$scope={dirty:o,ctx:s}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[6](null),E(n,s)}}}function Yle(r,e,t){let{column:n}=e,i,l;const s=c=>{t(1,i=Se({},c))},o=()=>{s(n),l.show()},a=()=>{t(0,n=i),l.hide()};function u(c){i=c,t(1,i)}function f(c){Z[c?"unshift":"push"](()=>{l=c,t(2,l)})}return r.$$set=c=>{"column"in c&&t(0,n=c.column)},r.$$.update=()=>{r.$$.dirty&1&&s(n)},[n,i,l,o,a,u,f]}class Jle extends ie{constructor(e){super();le(this,e,Yle,Gle,re,{column:0})}}function Uw(r,e,t){const n=r.slice();return n[19]=e[t],n[20]=e,n[21]=t,n}function Qle(r){let e,t,n,i;return n=new Ke({props:{size:"S",$$slots:{default:[Kle]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),w(t,"class","wide svelte-r88m8w"),w(e,"class","column svelte-r88m8w")},m(l,s){$(l,e,s),N(e,t),A(n,t,null),i=!0},p(l,s){const o={};s&4194304&&(o.$$scope={dirty:s,ctx:l}),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(e),E(n)}}}function Xle(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[ese]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194307&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Kle(r){let e,t,n;return{c(){e=V(`By default, all table columns will automatically be shown.
1227
1227
  `),t=D("br"),n=V(`
1228
1228
  You can manually control which columns are included in your table,
1229
1229
  and their appearance, by adding them below.`)},m(i,l){$(i,e,l),$(i,t,l),$(i,n,l)},d(i){i&&b(e),i&&b(t),i&&b(n)}}}function Zle(r){let e;return{c(){e=V("Column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xle(r){let e;return{c(){e=V("Label")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Fw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I=Oe,O,T,P;i=new gt({props:{name:"DragHandle",size:"XL"}});function M(H){e[12](H,e[19])}function F(...H){return e[13](e[19],e[20],e[21],...H)}let j={placeholder:"Column",options:e[2](e[19].name)};e[19].name!==void 0&&(j.value=e[19].name),o=new Qe({props:j}),Z.push(()=>ce(o,"value",M)),o.$on("change",F);function B(H){e[14](H,e[19])}let q={placeholder:"Label"};e[19].displayName!==void 0&&(q.value=e[19].displayName),f=new tt({props:q}),Z.push(()=>ce(f,"value",B));function G(H){e[15](H,e[19],e[20],e[21])}let Y={};e[19]!==void 0&&(Y.column=e[19]),d=new Jle({props:Y}),Z.push(()=>ce(d,"column",G));function U(){return e[16](e[19])}return v=new gt({props:{name:"Close",hoverable:!0,size:"S",disabled:e[0].length===1}}),v.$on("click",U),{key:r,first:null,c(){t=D("div"),n=D("div"),S(i.$$.fragment),s=R(),S(o.$$.fragment),u=R(),S(f.$$.fragment),p=R(),S(d.$$.fragment),h=R(),S(v.$$.fragment),C=R(),w(n,"class","handle svelte-r88m8w"),w(n,"aria-label","drag-handle"),w(n,"style",l=e[1]?"cursor: grab":"cursor: grabbing"),w(t,"class","column svelte-r88m8w"),this.first=t},m(H,W){$(H,t,W),N(t,n),A(i,n,null),N(t,s),A(o,t,null),N(t,u),A(f,t,null),N(t,p),A(d,t,null),N(t,h),A(v,t,null),N(t,C),O=!0,T||(P=Pe(n,"mousedown",e[11]),T=!0)},p(H,W){e=H,(!O||W&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&w(n,"style",l);const Q={};W&1&&(Q.options=e[2](e[19].name)),!a&&W&1&&(a=!0,Q.value=e[19].name,pe(()=>a=!1)),o.$set(Q);const se={};!c&&W&1&&(c=!0,se.value=e[19].displayName,pe(()=>c=!1)),f.$set(se);const K={};!g&&W&1&&(g=!0,K.column=e[19],pe(()=>g=!1)),d.$set(K);const ne={};W&1&&(ne.disabled=e[0].length===1),v.$set(ne)},r(){y=t.getBoundingClientRect()},f(){Fo(t),I()},a(){I(),I=Vo(t,y,Ho,{duration:N1})},i(H){O||(m(i.$$.fragment,H),m(o.$$.fragment,H),m(f.$$.fragment,H),m(d.$$.fragment,H),m(v.$$.fragment,H),O=!0)},o(H){_(i.$$.fragment,H),_(o.$$.fragment,H),_(f.$$.fragment,H),_(d.$$.fragment,H),_(v.$$.fragment,H),O=!1},d(H){H&&b(t),E(i),E(o),E(f),E(d),E(v),T=!1,P()}}}function ese(r){let e,t,n,i,l,s,o,a,u,f,c,p,d=[],g=new Map,h,v,C,y;i=new Ze({props:{size:"L",$$slots:{default:[Zle]},$$scope:{ctx:r}}}),s=new Ze({props:{size:"L",$$slots:{default:[xle]},$$scope:{ctx:r}}});let I=r[0];const O=T=>T[19].id;for(let T=0;T<I.length;T+=1){let P=Uw(r,I,T),M=O(P);g.set(M,d[T]=Fw(M,P))}return{c(){e=D("div"),t=D("div"),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),a=D("div"),u=R(),f=D("div"),c=R(),p=D("div");for(let T=0;T<d.length;T+=1)d[T].c();w(e,"class","column svelte-r88m8w"),w(p,"class","columns svelte-r88m8w")},m(T,P){$(T,e,P),N(e,t),N(e,n),A(i,e,null),N(e,l),A(s,e,null),N(e,o),N(e,a),N(e,u),N(e,f),$(T,c,P),$(T,p,P);for(let M=0;M<d.length;M+=1)d[M].m(p,null);v=!0,C||(y=[vr(h=Pu.call(null,p,{items:r[0],flipDurationMs:N1,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Pe(p,"finalize",r[6]),Pe(p,"consider",r[5])],C=!0)},p(T,P){const M={};P&4194304&&(M.$$scope={dirty:P,ctx:T}),i.$set(M);const F={};if(P&4194304&&(F.$$scope={dirty:P,ctx:T}),s.$set(F),P&23){I=T[0],ee();for(let j=0;j<d.length;j+=1)d[j].r();d=er(d,P,O,1,T,I,g,p,Uo,Fw,null,Uw);for(let j=0;j<d.length;j+=1)d[j].a();te()}h&&ct(h.update)&&P&3&&h.update.call(null,{items:T[0],flipDurationMs:N1,dropTargetStyle:{outline:"none"},dragDisabled:T[1]})},i(T){if(!v){m(i.$$.fragment,T),m(s.$$.fragment,T);for(let P=0;P<I.length;P+=1)m(d[P]);v=!0}},o(T){_(i.$$.fragment,T),_(s.$$.fragment,T);for(let P=0;P<d.length;P+=1)_(d[P]);v=!1},d(T){T&&b(e),E(i),E(s),T&&b(c),T&&b(p);for(let P=0;P<d.length;P+=1)d[P].d();C=!1,Tn(y)}}}function tse(r){let e;return{c(){e=V("Add column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function nse(r){let e;return{c(){e=V("Add all columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Vw(r){let e,t;return e=new ut({props:{secondary:!0,quiet:!0,$$slots:{default:[rse]},$$scope:{ctx:r}}}),e.$on("click",r[8]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4194304&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function rse(r){let e;return{c(){e=V("Reset columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ise(r){var h;let e,t,n,i,l,s,o,a,u,f;const c=[Xle,Qle],p=[];function d(v,C){var y;return((y=v[0])==null?void 0:y.length)?0:1}e=d(r),t=p[e]=c[e](r),s=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[tse]},$$scope:{ctx:r}}}),s.$on("click",r[3]),a=new ut({props:{secondary:!0,quiet:!0,$$slots:{default:[nse]},$$scope:{ctx:r}}}),a.$on("click",r[7]);let g=((h=r[0])==null?void 0:h.length)&&Vw(r);return{c(){t.c(),n=R(),i=D("div"),l=D("div"),S(s.$$.fragment),o=R(),S(a.$$.fragment),u=R(),g&&g.c(),w(l,"class","buttons wide svelte-r88m8w"),w(i,"class","column svelte-r88m8w")},m(v,C){p[e].m(v,C),$(v,n,C),$(v,i,C),N(i,l),A(s,l,null),N(l,o),A(a,l,null),N(l,u),g&&g.m(l,null),f=!0},p(v,C){var T;let y=e;e=d(v),e===y?p[e].p(v,C):(ee(),_(p[y],1,1,()=>{p[y]=null}),te(),t=p[e],t?t.p(v,C):(t=p[e]=c[e](v),t.c()),m(t,1),t.m(n.parentNode,n));const I={};C&4194304&&(I.$$scope={dirty:C,ctx:v}),s.$set(I);const O={};C&4194304&&(O.$$scope={dirty:C,ctx:v}),a.$set(O),((T=v[0])==null?void 0:T.length)?g?(g.p(v,C),C&1&&m(g,1)):(g=Vw(v),g.c(),m(g,1),g.m(l,null)):g&&(ee(),_(g,1,1,()=>{g=null}),te())},i(v){f||(m(t),m(s.$$.fragment,v),m(a.$$.fragment,v),m(g),f=!0)},o(v){_(t),_(s.$$.fragment,v),_(a.$$.fragment,v),_(g),f=!1},d(v){p[e].d(v),v&&b(n),v&&b(i),E(s),E(a),g&&g.d()}}}function lse(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[ise]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-r88m8w")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&4194307&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function sse(r){let e,t;return e=new Ai({props:{$$slots:{default:[lse]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&4194307&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const N1=150;function ose(r,e,t){let n,{columns:i=[]}=e,{options:l=[]}=e,{schema:s={}}=e,o=!0;const a=(P,M)=>{let F={};return P.forEach(j=>{F[j]=!0}),M==null||M.forEach(j=>{delete F[j.name]}),Object.keys(F)},u=P=>!P||n.includes(P)?n:[P,...n],f=()=>{t(0,i=[...i,{}])},c=P=>{t(0,i=i.filter(M=>M.id!==P))},p=P=>{t(0,i=P.detail.items)},d=P=>{p(P),t(1,o=!0)},g=()=>{let P=i||[];l.forEach(M=>{const F=s[M],j=i&&i.findIndex(B=>B.name===M)!==-1;!(F==null?void 0:F.autocolumn)&&!j&&P.push({name:M,displayName:M})}),t(0,i=P)},h=()=>{t(0,i=[])},v=()=>t(1,o=!1);function C(P,M){r.$$.not_equal(M.name,P)&&(M.name=P,t(0,i))}const y=(P,M,F,j)=>t(0,M[F].displayName=j.detail,i);function I(P,M){r.$$.not_equal(M.displayName,P)&&(M.displayName=P,t(0,i))}function O(P,M,F,j){F[j]=P,t(0,i)}const T=P=>c(P.id);return r.$$set=P=>{"columns"in P&&t(0,i=P.columns),"options"in P&&t(9,l=P.options),"schema"in P&&t(10,s=P.schema)},r.$$.update=()=>{r.$$.dirty&513&&(n=a(l,i)),r.$$.dirty&1&&i.forEach(P=>{P.id||(P.id=Br.generate())})},[i,o,u,f,c,p,d,g,h,l,s,v,C,y,I,O,T]}class ase extends ie{constructor(e){super();le(this,e,ose,sse,re,{columns:0,options:9,schema:10})}}function use(r){let e;return{c(){e=V("Configure columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function fse(r){let e;return{c(){e=V("Configure the columns in your table.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cse(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pse(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[cse]},$$scope:{ctx:r}}}),e.$on("click",r[5]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&131072&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dse(r){let e,t,n;function i(s){r[11](s)}let l={slot:"body",options:r[0],schema:r[1]};return r[3]!==void 0&&(l.columns=r[3]),e=new ase({props:l}),Z.push(()=>ce(e,"columns",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&1&&(a.options=s[0]),o&2&&(a.schema=s[1]),!t&&o&8&&(t=!0,a.columns=s[3],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function mse(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[use]},$$scope:{ctx:r}}}),e.$on("click",r[4]);let l={title:"Table Columns",$$slots:{body:[dse],buttons:[pse],description:[fse]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[12](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&131072&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&131083&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[12](null),E(n,s)}}}function gse(r,e,t){let n,i,l,s,o;fe(r,fn,O=>t(10,o=O));let{componentInstance:a}=e,{value:u=[]}=e;const f=ht();let c,p;const d=(O,T)=>{const P=Di(O,T).schema;return P&&(delete P._id,delete P._rev),P},g=O=>{t(3,p=vn.cloneDeep(O))},h=(O,T)=>!Array.isArray(O)||!O.length?[]:(typeof O[0]=="string"&&(O=O.map(P=>({name:P,displayName:P}))),O.filter(P=>T.includes(P.name))),v=()=>{g(s),c.show()},C=()=>{f("change",h(p,l)),c.hide()};function y(O){p=O,t(3,p)}function I(O){Z[O?"unshift":"push"](()=>{c=O,t(2,c)})}return r.$$set=O=>{"componentInstance"in O&&t(6,a=O.componentInstance),"value"in O&&t(7,u=O.value)},r.$$.update=()=>{r.$$.dirty&1088&&t(9,n=El(o,a)),r.$$.dirty&1536&&t(1,i=d(o,n)),r.$$.dirty&2&&t(0,l=Object.keys(i||{})),r.$$.dirty&129&&t(8,s=h(u,l)),r.$$.dirty&256&&g(s)},[l,i,c,p,v,C,a,u,s,n,o,y,I]}class _se extends ie{constructor(e){super();le(this,e,gse,mse,re,{componentInstance:6,value:7})}}const hse={text:Lw,select:Qe,dataSource:W6,"dataSource/s3":Qee,dataProvider:xee,boolean:Zr,number:O_,event:Ore,table:Pre,color:I1,icon:Hre,field:Yre,multifield:Xre,searchfield:xre,options:ele,schema:nie,section:uie,navigation:kie,filter:Iie,url:zie,columns:_se,"field/string":nl,"field/number":nl,"field/options":nl,"field/boolean":nl,"field/longform":nl,"field/datetime":nl,"field/attachment":nl,"field/link":nl,"field/array":nl,"field/json":nl,"validation/string":Os,"validation/array":Os,"validation/number":Os,"validation/boolean":Os,"validation/datetime":Os,"validation/attachment":Os,"validation/link":Os},ec=r=>hse[r];function Hw(r,e,t){const n=r.slice();return n[15]=e[t],n[17]=t,n}function Ww(r,e,t){const n=r.slice();return n[18]=e[t],n}function Gw(r){let e,t;return e=new Na({props:{control:tt,label:"Name",key:"_instanceName",value:r[1]._instanceName,onChange:r[9]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.value=n[1]._instanceName),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Yw(r){var i,l;let e,t;function n(...s){return r[10](r[18],...s)}return e=new Na({props:{type:r[18].type,control:ec(r[18].type),label:r[18].label,key:r[18].key,value:(l=r[1][r[18].key])!=null?l:(i=r[1][r[18].key])==null?void 0:i.defaultValue,nested:r[18].nested,onChange:n,props:{options:r[18].options||[],placeholder:r[18].placeholder||null,min:r[18].min||null,max:r[18].max||null},bindings:r[2],componentBindings:r[3],componentInstance:r[1],componentDefinition:r[0]}}),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),t=!0},p(s,o){var u,f;r=s;const a={};o&16&&(a.type=r[18].type),o&16&&(a.control=ec(r[18].type)),o&16&&(a.label=r[18].label),o&16&&(a.key=r[18].key),o&18&&(a.value=(f=r[1][r[18].key])!=null?f:(u=r[1][r[18].key])==null?void 0:u.defaultValue),o&16&&(a.nested=r[18].nested),o&16&&(a.onChange=n),o&16&&(a.props={options:r[18].options||[],placeholder:r[18].placeholder||null,min:r[18].min||null,max:r[18].max||null}),o&4&&(a.bindings=r[2]),o&8&&(a.componentBindings=r[3]),o&2&&(a.componentInstance=r[1]),o&1&&(a.componentDefinition=r[0]),e.$set(a)},i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function Jw(r,e){let t,n=e[6](e[18]),i,l,s=n&&Yw(e);return{key:r,first:null,c(){t=Ee(),s&&s.c(),i=Ee(),this.first=t},m(o,a){$(o,t,a),s&&s.m(o,a),$(o,i,a),l=!0},p(o,a){e=o,a&16&&(n=e[6](e[18])),n?s?(s.p(e,a),a&16&&m(s,1)):(s=Yw(e),s.c(),m(s,1),s.m(i.parentNode,i)):s&&(ee(),_(s,1,1,()=>{s=null}),te())},i(o){l||(m(s),l=!0)},o(o){_(s),l=!1},d(o){o&&b(t),s&&s.d(o),o&&b(i)}}}function Qw(r){let e,t;return e=new Iee({props:{componentInstance:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.componentInstance=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Xw(r){let e,t=r[15].info+"";return{c(){e=D("div"),w(e,"class","text svelte-1hyi8iv")},m(n,i){$(n,e,i),e.innerHTML=t},p(n,i){i&16&&t!==(t=n[15].info+"")&&(e.innerHTML=t)},d(n){n&&b(e)}}}function $se(r){var h,v,C;let e=r[17]===0&&!r[1]._component.endsWith("/layout"),t,n=[],i=new Map,l,s=r[17]===0&&((v=(h=r[0])==null?void 0:h.component)==null?void 0:v.endsWith("/fieldgroup")),o,a,u,f=e&&Gw(r),c=r[15].settings;const p=y=>y[18].key;for(let y=0;y<c.length;y+=1){let I=Ww(r,c,y),O=p(I);i.set(O,n[y]=Jw(O,I))}let d=s&&Qw(r),g=((C=r[15])==null?void 0:C.info)&&Xw(r);return{c(){f&&f.c(),t=R();for(let y=0;y<n.length;y+=1)n[y].c();l=R(),d&&d.c(),o=R(),g&&g.c(),a=R()},m(y,I){f&&f.m(y,I),$(y,t,I);for(let O=0;O<n.length;O+=1)n[O].m(y,I);$(y,l,I),d&&d.m(y,I),$(y,o,I),g&&g.m(y,I),$(y,a,I),u=!0},p(y,I){var O,T,P;I&18&&(e=y[17]===0&&!y[1]._component.endsWith("/layout")),e?f?(f.p(y,I),I&18&&m(f,1)):(f=Gw(y),f.c(),m(f,1),f.m(t.parentNode,t)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),I&127&&(c=y[15].settings,ee(),n=er(n,I,p,1,y,c,i,l.parentNode,jr,Jw,l,Ww),te()),I&17&&(s=y[17]===0&&((T=(O=y[0])==null?void 0:O.component)==null?void 0:T.endsWith("/fieldgroup"))),s?d?(d.p(y,I),I&17&&m(d,1)):(d=Qw(y),d.c(),m(d,1),d.m(o.parentNode,o)):d&&(ee(),_(d,1,1,()=>{d=null}),te()),((P=y[15])==null?void 0:P.info)?g?g.p(y,I):(g=Xw(y),g.c(),g.m(a.parentNode,a)):g&&(g.d(1),g=null)},i(y){if(!u){m(f);for(let I=0;I<c.length;I+=1)m(n[I]);m(d),u=!0}},o(y){_(f);for(let I=0;I<n.length;I+=1)_(n[I]);_(d),u=!1},d(y){f&&f.d(y),y&&b(t);for(let I=0;I<n.length;I+=1)n[I].d(y);y&&b(l),d&&d.d(y),y&&b(o),g&&g.d(y),y&&b(a)}}}function Kw(r,e){let t,n,i;return n=new Go({props:{name:e[15].name,collapsible:!1,$$slots:{default:[$se]},$$scope:{ctx:e}}}),{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),A(n,l,s),i=!0},p(l,s){e=l;const o={};s&16&&(o.name=e[15].name),s&2097183&&(o.$$scope={dirty:s,ctx:e}),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(t),E(n,l)}}}function bse(r){let e=[],t=new Map,n,i,l=r[4];const s=o=>o[15].name;for(let o=0;o<l.length;o+=1){let a=Hw(r,l,o),u=s(a);t.set(u,e[o]=Kw(u,a))}return{c(){for(let o=0;o<e.length;o+=1)e[o].c();n=Ee()},m(o,a){for(let u=0;u<e.length;u+=1)e[u].m(o,a);$(o,n,a),i=!0},p(o,[a]){a&127&&(l=o[4],ee(),e=er(e,a,s,1,o,l,t,n.parentNode,jr,Kw,n,Hw),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(e[a]);i=!0}},o(o){for(let a=0;a<e.length;a+=1)_(e[a]);i=!1},d(o){for(let a=0;a<e.length;a+=1)e[a].d(o);o&&b(n)}}}function vse(r,e,t){let n,i,{componentDefinition:l}=e,{componentInstance:s}=e,{assetInstance:o}=e,{bindings:a}=e,{componentBindings:u}=e;const f=h=>{var I;const v=(I=h==null?void 0:h.settings)!=null?I:[],C=v.filter(O=>!O.section),y=v.filter(O=>O.section);return[{name:(l==null?void 0:l.name)||"General",info:l==null?void 0:l.info,settings:C},...y||[]]},c=Rj(async(h,v)=>{try{await He.actions.components.updateProp(h,v)}catch{ye.error("Error updating component prop")}}),p=h=>{if(!ec(h==null?void 0:h.type))return!1;if(h.dependsOn){let C=h.dependsOn,y=null;if(typeof h.dependsOn=="object"&&(C=h.dependsOn.setting,y=h.dependsOn.value),!C)return!1;if(y==null){const I=s[C];return I===!1?!1:I===!0?!0:!vn.isEmpty(I)}return s[C]===y}return!0},d=h=>c("_instanceName",h),g=(h,v)=>c(h.key,v);return r.$$set=h=>{"componentDefinition"in h&&t(0,l=h.componentDefinition),"componentInstance"in h&&t(1,s=h.componentInstance),"assetInstance"in h&&t(7,o=h.assetInstance),"bindings"in h&&t(2,a=h.bindings),"componentBindings"in h&&t(3,u=h.componentBindings)},r.$$.update=()=>{r.$$.dirty&1&&t(4,n=f(l)),r.$$.dirty&128&&t(8,i=o&&o.favicon),r.$$.dirty&256},[l,s,a,u,n,c,p,o,i,d,g]}class wse extends ie{constructor(e){super();le(this,e,vse,bse,re,{componentDefinition:0,componentInstance:1,assetInstance:7,bindings:2,componentBindings:3})}}function Zw(r,e,t){const n=r.slice();return n[11]=e[t],n}function xw(r,e){let t,n,i,l;function s(...o){return e[10](e[11],...o)}return n=new Na({props:{label:`${e[11].label}${e[7](e[5],e[11])?" *":""}`,control:e[11].control,key:e[11].key,value:e[5][e[11].key],onChange:s,props:e[8](e[11]),bindings:e[4]}}),{key:r,first:null,c(){t=D("div"),S(n.$$.fragment),i=R(),Ht(t,"grid-column",e[11].column||"auto"),this.first=t},m(o,a){$(o,t,a),A(n,t,null),N(t,i),l=!0},p(o,a){e=o;const u={};a&36&&(u.label=`${e[11].label}${e[7](e[5],e[11])?" *":""}`),a&4&&(u.control=e[11].control),a&4&&(u.key=e[11].key),a&36&&(u.value=e[5][e[11].key]),a&4&&(u.onChange=s),a&4&&(u.props=e[8](e[11])),a&16&&(u.bindings=e[4]),n.$set(u),(!l||a&4)&&Ht(t,"grid-column",e[11].column||"auto")},i(o){l||(m(n.$$.fragment,o),l=!0)},o(o){_(n.$$.fragment,o),l=!1},d(o){o&&b(t),E(n)}}}function yse(r){let e,t=[],n=new Map,i,l=r[2];const s=o=>`${o[3]._id}-${o[11].key}-${o[11].label}`;for(let o=0;o<l.length;o+=1){let a=Zw(r,l,o),u=s(a);n.set(u,t[o]=xw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","group-content svelte-1u21n8y"),Ht(e,"grid-template-columns",r[1]||"1fr")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,a){a&956&&(l=o[2],ee(),t=er(t,a,s,1,o,l,n,e,jr,xw,null,Zw),te()),(!i||a&2)&&Ht(e,"grid-template-columns",o[1]||"1fr")},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function kse(r){let e,t;return e=new Go({props:{collapsible:!1,name:`${r[0]}${r[6]?" *":""}`,$$slots:{default:[yse]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&65&&(l.name=`${n[0]}${n[6]?" *":""}`),i&16438&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Cse(r,e,t){let n,i,{name:l}=e,{columns:s}=e,{properties:o}=e,{componentInstance:a}=e,{bindings:u=[]}=e;const f=(g,h)=>g[h.key]!=null&&g[h.key]!=="",c=g=>{let h=Se({},g||{});return delete h.label,delete h.key,delete h.control,h},p=async(g,h)=>{try{await He.actions.components.updateStyle(g,h)}catch{ye.error("Error updating style")}},d=(g,h)=>p(g.key,h);return r.$$set=g=>{"name"in g&&t(0,l=g.name),"columns"in g&&t(1,s=g.columns),"properties"in g&&t(2,o=g.properties),"componentInstance"in g&&t(3,a=g.componentInstance),"bindings"in g&&t(4,u=g.bindings)},r.$$.update=()=>{var g;r.$$.dirty&8&&t(5,n=a._styles.normal||{}),r.$$.dirty&36&&t(6,i=(g=o==null?void 0:o.some(h=>f(n,h)))!=null?g:!1)},[l,s,o,a,u,n,i,f,c,p,d]}class Sse extends ie{constructor(e){super();le(this,e,Cse,kse,re,{name:0,columns:1,properties:2,componentInstance:3,bindings:4})}}const e8={label:"Margin",columns:"1fr 1fr",settings:[{label:"Top",key:"margin-top",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]},{label:"Right",key:"margin-right",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]},{label:"Bottom",key:"margin-bottom",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]},{label:"Left",key:"margin-left",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]}]},Ase={label:"Padding",columns:"1fr 1fr",settings:[{label:"Top",key:"padding-top",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]},{label:"Right",key:"padding-right",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]},{label:"Bottom",key:"padding-bottom",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]},{label:"Left",key:"padding-left",control:Qe,placeholder:"None",options:[{label:"4px",value:"4px"},{label:"8px",value:"8px"},{label:"12px",value:"12px"},{label:"16px",value:"16px"},{label:"20px",value:"20px"},{label:"32px",value:"32px"},{label:"48px",value:"48px"},{label:"64px",value:"64px"},{label:"128px",value:"128px"},{label:"256px",value:"256px"},{label:"Auto",value:"auto"},{label:"100%",value:"100%"}]}]},Ese={label:"Size",columns:"1fr 1fr",settings:[{label:"Width",key:"width",control:tt,placeholder:"Auto"},{label:"Height",key:"height",control:tt,placeholder:"Auto"}]},Ose={label:"Background",columns:"auto 1fr",settings:[{label:"Color",key:"background",control:I1},{label:"Gradient",key:"background-image",control:Qe,options:[{label:"Warm Flame",value:"linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);"},{label:"Night Fade",value:"linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);"},{label:"Spring Warmth",value:"linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);"},{label:"Sunny Morning",value:"linear-gradient(120deg, #f6d365 0%, #fda085 100%);"},{label:"Winter Neva",value:"linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);"},{label:"Tempting Azure",value:"linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);"},{label:"Heavy Rain",value:"linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);"},{label:"Deep Blue",value:"linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);"},{label:"Near Moon",value:"linear-gradient(to top, #5ee7df 0%, #b490ca 100%);"},{label:"Wild Apple",value:"linear-gradient(to top, #d299c2 0%, #fef9d7 100%);"},{label:"Plum Plate",value:"linear-gradient(135deg, #667eea 0%, #764ba2 100%);"},{label:"Peach Kiss",value:"radial-gradient(circle farthest-corner at 50% 100%,rgba(255,173,138,.50), rgba(255,248,247,1) 100%);"},{label:"Flamingo Sunrise",value:"-webkit-radial-gradient(center top, rgb(255, 250, 245), rgb(255, 242, 242))"},{label:"Budi Mist",value:"radial-gradient(circle, rgba(252,215,212,1) 0%, rgba(255,227,214,1) 50%, rgba(207,218,255,1) 100%);"},{label:"Ballet Slipper",value:"linear-gradient(135deg, rgba(252,215,212,1) 20%, rgba(207,218,255,1) 100%);"},{label:"Black Noir",value:"linear-gradient(312deg, rgba(60,60,60,1) 0%, rgba(42,42,42,1) 100%);"}]}]},Tse={label:"Border",columns:"1fr 1fr",settings:[{label:"Color",key:"border-color",control:I1},{label:"Width",key:"border-width",control:Qe,column:"1 / 2",placeholder:"None",options:[{label:"Small",value:"1px"},{label:"Medium",value:"2px"},{label:"Large",value:"4px"}]},{label:"Style",key:"border-style",control:Qe,column:"2 / 3",placeholder:"None",options:[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}]},{label:"Radius",key:"border-radius",control:Qe,placeholder:"None",options:[{label:"Small",value:"0.25rem"},{label:"Medium",value:"0.5rem"},{label:"Large",value:"1rem"},{label:"Round",value:"100%"}]},{label:"Shadow",key:"box-shadow",control:Qe,placeholder:"None",options:[{label:"Small",value:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"},{label:"Medium",value:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"},{label:"Large",value:"0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"}]}]},R1=[e8];var t8=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",margin:e8,padding:Ase,size:Ese,background:Ose,border:Tse,all:R1});function n8(r,e,t){const n=r.slice();return n[5]=e[t],n}function r8(r){let e,t,n=r[2],i=[];for(let s=0;s<n.length;s+=1)i[s]=i8(n8(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=Ee()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o&7){n=s[2];let a;for(a=0;a<n.length;a+=1){const u=n8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=i8(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){$t(i,s),s&&b(e)}}}function i8(r){let e,t;return e=new Sse({props:{style:r[5],name:r[5].label,columns:r[5].columns,properties:r[5].settings,componentInstance:r[0],bindings:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.style=n[5]),i&4&&(l.name=n[5].label),i&4&&(l.columns=n[5].columns),i&4&&(l.properties=n[5].settings),i&1&&(l.componentInstance=n[0]),i&2&&(l.bindings=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Ise(r){var i;let e,t,n=((i=r[2])==null?void 0:i.length)>0&&r8(r);return{c(){n&&n.c(),e=Ee()},m(l,s){n&&n.m(l,s),$(l,e,s),t=!0},p(l,[s]){var o;((o=l[2])==null?void 0:o.length)>0?n?(n.p(l,s),s&4&&m(n,1)):(n=r8(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(l){t||(m(n),t=!0)},o(l){_(n),t=!1},d(l){n&&n.d(l),l&&b(e)}}}function Lse(r,e,t){let n,{componentDefinition:i}=e,{componentInstance:l}=e,{bindings:s}=e;const o=a=>{var f;if(!((f=a==null?void 0:a.styles)==null?void 0:f.length))return[...R1];let u=[...R1];return a.styles.forEach(c=>{t8[c]&&u.push(t8[c])}),u};return r.$$set=a=>{"componentDefinition"in a&&t(3,i=a.componentDefinition),"componentInstance"in a&&t(0,l=a.componentInstance),"bindings"in a&&t(1,s=a.bindings)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=o(i))},[l,s,n,i]}class Pse extends ie{constructor(e){super();le(this,e,Lse,Ise,re,{componentDefinition:3,componentInstance:0,bindings:1})}}function Nse(r){let e;return{c(){e=V("Edit custom CSS")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Rse(r){let e,t,n;return t=new Yt({props:{$$slots:{default:[Nse]},$$scope:{ctx:r}}}),t.$on("click",r[3]),{c(){e=D("div"),S(t.$$.fragment)},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&128&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Mse(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Dse(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Mse]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&128&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function jse(r){let e;return{c(){e=V("Custom CSS overrides all other component styles.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Bse(r){let e,t,n,i,l;e=new Ke({props:{size:"S",$$slots:{default:[jse]},$$scope:{ctx:r}}});function s(a){r[5](a)}let o={placeholder:"Enter some CSS..."};return r[1]!==void 0&&(o.value=r[1]),n=new pi({props:o}),Z.push(()=>ce(n,"value",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&128&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};!i&&u&2&&(i=!0,c.value=a[1],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function zse(r){let e,t,n;return t=new Ye({props:{gap:"S",noPadding:!0,$$slots:{default:[Bse]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","content svelte-ernmz2")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&130&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function qse(r){let e,t;return e=new Ai({props:{slot:"body",$$slots:{default:[zse]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&130&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function l8(r){let e,t,n={title:"Custom CSS",$$slots:{body:[qse],buttons:[Dse]},$$scope:{ctx:r}};return e=new Kr({props:n}),r[6](e),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){const s={};l&130&&(s.$$scope={dirty:l,ctx:i}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){r[6](null),E(e,i)}}}function Use(r){var o,a,u;let e,t,n=(o=r[0])==null?void 0:o._id,i,l;e=new Go({props:{name:`Custom CSS${((u=(a=r[0])==null?void 0:a._styles)==null?void 0:u.custom)?" *":""}`,collapsible:!1,$$slots:{default:[Rse]},$$scope:{ctx:r}}});let s=l8(r);return{c(){S(e.$$.fragment),t=R(),s.c(),i=Ee()},m(f,c){A(e,f,c),$(f,t,c),s.m(f,c),$(f,i,c),l=!0},p(f,[c]){var d,g,h;const p={};c&1&&(p.name=`Custom CSS${((g=(d=f[0])==null?void 0:d._styles)==null?void 0:g.custom)?" *":""}`),c&128&&(p.$$scope={dirty:c,ctx:f}),e.$set(p),c&1&&re(n,n=(h=f[0])==null?void 0:h._id)?(ee(),_(s,1,1,Oe),te(),s=l8(f),s.c(),m(s),s.m(i.parentNode,i)):s.p(f,c)},i(f){l||(m(e.$$.fragment,f),m(s),l=!0)},o(f){_(e.$$.fragment,f),_(s),l=!1},d(f){E(e,f),f&&b(t),f&&b(i),s.d(f)}}}function Fse(r,e,t){let{componentInstance:n}=e,i,l;const s=()=>{var f;t(1,i=(f=n==null?void 0:n._styles)==null?void 0:f.custom),l.show()},o=async()=>{try{await He.actions.components.updateCustomStyle(i)}catch{ye.error("Error updating custom style")}l.hide()};function a(f){i=f,t(1,i)}function u(f){Z[f?"unshift":"push"](()=>{l=f,t(2,l)})}return r.$$set=f=>{"componentInstance"in f&&t(0,n=f.componentInstance)},[n,i,l,s,o,a,u]}class Vse extends ie{constructor(e){super();le(this,e,Fse,Use,re,{componentInstance:0})}}function s8(r,e,t){const n=r.slice();return n[32]=e[t],n[33]=e,n[34]=t,n}function Hse(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[Gse]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[1]&16&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Wse(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[32].id;for(let f=0;f<a.length;f+=1){let c=s8(r,a,f),p=u(c);n.set(p,t[f]=a8(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();w(e,"class","conditions svelte-1vod3ll")},m(f,c){$(f,e,c);for(let p=0;p<t.length;p+=1)t[p].m(e,null);l=!0,s||(o=[vr(i=Pu.call(null,e,{items:r[0],flipDurationMs:M1,dropTargetStyle:{outline:"none"},dragDisabled:r[3]})),Pe(e,"finalize",r[12]),Pe(e,"consider",r[13])],s=!0)},p(f,c){if(c[0]&118271){a=f[0],ee();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,Uo,a8,null,s8);for(let p=0;p<t.length;p+=1)t[p].a();te()}i&&ct(i.update)&&c[0]&9&&i.update.call(null,{items:f[0],flipDurationMs:M1,dropTargetStyle:{outline:"none"},dragDisabled:f[3]})},i(f){if(!l){for(let c=0;c<a.length;c+=1)m(t[c]);l=!0}},o(f){for(let c=0;c<t.length;c+=1)_(t[c]);l=!1},d(f){f&&b(e);for(let c=0;c<t.length;c+=1)t[c].d();s=!1,Tn(o)}}}function Gse(r){let e;return{c(){e=V("Add your first condition to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function o8(r){let e,t,n,i,l,s,o,a,u,f;function c(v){r[20](v,r[32])}let p={options:r[4]};r[32].setting!==void 0&&(p.value=r[32].setting),e=new Qe({props:p}),Z.push(()=>ce(e,"value",c));const d=[Jse,Yse],g=[];function h(v,C){return(s==null||C[0]&1)&&(s=!!v[7](v[32].setting)),s?0:1}return o=h(r,[-1,-1]),a=g[o]=d[o](r),{c(){S(e.$$.fragment),n=R(),i=D("div"),i.textContent="TO",l=R(),a.c(),u=Ee()},m(v,C){A(e,v,C),$(v,n,C),$(v,i,C),$(v,l,C),g[o].m(v,C),$(v,u,C),f=!0},p(v,C){r=v;const y={};C[0]&16&&(y.options=r[4]),!t&&C[0]&1&&(t=!0,y.value=r[32].setting,pe(()=>t=!1)),e.$set(y);let I=o;o=h(r,C),o===I?g[o].p(r,C):(ee(),_(g[I],1,1,()=>{g[I]=null}),te(),a=g[o],a?a.p(r,C):(a=g[o]=d[o](r),a.c()),m(a,1),a.m(u.parentNode,u))},i(v){f||(m(e.$$.fragment,v),m(a),f=!0)},o(v){_(e.$$.fragment,v),_(a),f=!1},d(v){E(e,v),v&&b(n),v&&b(i),v&&b(l),g[o].d(v),v&&b(u)}}}function Yse(r){let e,t;return e=new Qe({props:{disabled:!0,placeholder:" "}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Oe,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Jse(r){let e,t;function n(...i){return r[21](r[32],r[33],r[34],...i)}return e=new Na({props:{type:r[7](r[32].setting).type,control:r[8](r[32].setting),key:r[7](r[32].setting).key,value:r[32].settingValue,componentInstance:r[2],onChange:n,props:{options:r[7](r[32].setting).options,placeholder:r[7](r[32].setting).placeholder},bindings:r[1]}}),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l[0]&1&&(s.type=r[7](r[32].setting).type),l[0]&1&&(s.control=r[8](r[32].setting)),l[0]&1&&(s.key=r[7](r[32].setting).key),l[0]&1&&(s.value=r[32].settingValue),l[0]&4&&(s.componentInstance=r[2]),l[0]&1&&(s.onChange=n),l[0]&1&&(s.props={options:r[7](r[32].setting).options,placeholder:r[7](r[32].setting).placeholder}),l[0]&2&&(s.bindings=r[1]),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Qse(r){let e,t,n;function i(s){r[29](s,r[32])}let l={placeholder:"Value",disabled:r[32].noValue,options:["True","False"]};return r[32].referenceValue!==void 0&&(l.value=r[32].referenceValue),e=new Qe({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[32].noValue),!t&&o[0]&1&&(t=!0,a.value=r[32].referenceValue,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Xse(r){let e,t,n;function i(s){r[28](s,r[32])}let l={placeholder:"Value",disabled:r[32].noValue};return r[32].referenceValue!==void 0&&(l.value=r[32].referenceValue),e=new Bl({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){r=s;const a={};o[0]&1&&(a.disabled=r[32].noValue),!t&&o[0]&1&&(t=!0,a.value=r[32].referenceValue,pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Kse(r){let e,t;function n(...i){return r[27](r[32],r[33],r[34],...i)}return e=new jn({props:{disabled:r[32].noValue,bindings:r[1],placeholder:"Value",value:r[32].referenceValue}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l[0]&1&&(s.disabled=r[32].noValue),l[0]&2&&(s.bindings=r[1]),l[0]&1&&(s.value=r[32].referenceValue),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function a8(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F,j,B,q,G,Y,U=Oe,H,W,Q;i=new gt({props:{name:"DragHandle",size:"XL"}});function se(be){e[19](be,e[32])}let K={placeholder:null,options:e[5]};e[32].action!==void 0&&(K.value=e[32].action),o=new Qe({props:K}),Z.push(()=>ce(o,"value",se));let ne=e[32].action==="update"&&o8(e);function ae(...be){return e[22](e[32],e[33],e[34],...be)}d=new jn({props:{bindings:e[1],placeholder:"Value",value:e[32].newValue}}),d.$on("change",ae);function _e(be){e[23](be,e[32])}function Me(...be){return e[24](e[32],...be)}let we={placeholder:null,options:e[14](e[32])};e[32].operator!==void 0&&(we.value=e[32].operator),h=new Qe({props:we}),Z.push(()=>ce(h,"value",_e)),h.$on("change",Me);function $e(be){e[25](be,e[32])}function ge(...be){return e[26](e[32],...be)}let Ne={disabled:e[32].noValue,options:e[6],placeholder:null};e[32].valueType!==void 0&&(Ne.value=e[32].valueType),y=new Qe({props:Ne}),Z.push(()=>ce(y,"value",$e)),y.$on("change",ge);const Ue=[Kse,Xse,Qse],ue=[];function Ce(be,he){return(T==null||he[0]&1)&&(T=!!["string","number"].includes(be[32].valueType)),T?0:be[32].valueType==="datetime"?1:be[32].valueType==="boolean"?2:-1}~(P=Ce(e,[-1,-1]))&&(M=ue[P]=Ue[P](e));function ke(){return e[30](e[32])}j=new gt({props:{name:"Duplicate",hoverable:!0,size:"S"}}),j.$on("click",ke);function ze(){return e[31](e[32])}return q=new gt({props:{name:"Close",hoverable:!0,size:"S"}}),q.$on("click",ze),{key:r,first:null,c(){t=D("div"),n=D("div"),S(i.$$.fragment),s=R(),S(o.$$.fragment),u=R(),ne&&ne.c(),f=R(),c=D("div"),c.textContent="IF",p=R(),S(d.$$.fragment),g=R(),S(h.$$.fragment),C=R(),S(y.$$.fragment),O=R(),M&&M.c(),F=R(),S(j.$$.fragment),B=R(),S(q.$$.fragment),G=R(),w(n,"class","handle svelte-1vod3ll"),w(n,"aria-label","drag-handle"),w(n,"style",l=e[3]?"cursor: grab":"cursor: grabbing"),w(t,"class","condition svelte-1vod3ll"),oe(t,"update",e[32].action==="update"),this.first=t},m(be,he){$(be,t,he),N(t,n),A(i,n,null),N(t,s),A(o,t,null),N(t,u),ne&&ne.m(t,null),N(t,f),N(t,c),N(t,p),A(d,t,null),N(t,g),A(h,t,null),N(t,C),A(y,t,null),N(t,O),~P&&ue[P].m(t,null),N(t,F),A(j,t,null),N(t,B),A(q,t,null),N(t,G),H=!0,W||(Q=Pe(n,"mousedown",e[18]),W=!0)},p(be,he){e=be,(!H||he[0]&8&&l!==(l=e[3]?"cursor: grab":"cursor: grabbing"))&&w(n,"style",l);const Xe={};!a&&he[0]&1&&(a=!0,Xe.value=e[32].action,pe(()=>a=!1)),o.$set(Xe),e[32].action==="update"?ne?(ne.p(e,he),he[0]&1&&m(ne,1)):(ne=o8(e),ne.c(),m(ne,1),ne.m(t,f)):ne&&(ee(),_(ne,1,1,()=>{ne=null}),te());const Mt={};he[0]&2&&(Mt.bindings=e[1]),he[0]&1&&(Mt.value=e[32].newValue),d.$set(Mt);const qe={};he[0]&1&&(qe.options=e[14](e[32])),!v&&he[0]&1&&(v=!0,qe.value=e[32].operator,pe(()=>v=!1)),h.$set(qe);const pt={};he[0]&1&&(pt.disabled=e[32].noValue),!I&&he[0]&1&&(I=!0,pt.value=e[32].valueType,pe(()=>I=!1)),y.$set(pt);let It=P;P=Ce(e,he),P===It?~P&&ue[P].p(e,he):(M&&(ee(),_(ue[It],1,1,()=>{ue[It]=null}),te()),~P?(M=ue[P],M?M.p(e,he):(M=ue[P]=Ue[P](e),M.c()),m(M,1),M.m(t,F)):M=null),he[0]&1&&oe(t,"update",e[32].action==="update")},r(){Y=t.getBoundingClientRect()},f(){Fo(t),U()},a(){U(),U=Vo(t,Y,Ho,{duration:M1})},i(be){H||(m(i.$$.fragment,be),m(o.$$.fragment,be),m(ne),m(d.$$.fragment,be),m(h.$$.fragment,be),m(y.$$.fragment,be),m(M),m(j.$$.fragment,be),m(q.$$.fragment,be),H=!0)},o(be){_(i.$$.fragment,be),_(o.$$.fragment,be),_(ne),_(d.$$.fragment,be),_(h.$$.fragment,be),_(y.$$.fragment,be),_(M),_(j.$$.fragment,be),_(q.$$.fragment,be),H=!1},d(be){be&&b(t),E(i),E(o),ne&&ne.d(),E(d),E(h),E(y),~P&&ue[P].d(),E(j),E(q),W=!1,Q()}}}function Zse(r){let e;return{c(){e=V("Add condition")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xse(r){let e,t,n,i,l,s;const o=[Wse,Hse],a=[];function u(f,c){var p;return((p=f[0])==null?void 0:p.length)?0:1}return e=u(r),t=a[e]=o[e](r),l=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[Zse]},$$scope:{ctx:r}}}),l.$on("click",r[9]),{c(){t.c(),n=R(),i=D("div"),S(l.$$.fragment)},m(f,c){a[e].m(f,c),$(f,n,c),$(f,i,c),A(l,i,null),s=!0},p(f,c){let p=e;e=u(f),e===p?a[e].p(f,c):(ee(),_(a[p],1,1,()=>{a[p]=null}),te(),t=a[e],t?t.p(f,c):(t=a[e]=o[e](f),t.c()),m(t,1),t.m(n.parentNode,n));const d={};c[1]&16&&(d.$$scope={dirty:c,ctx:f}),l.$set(d)},i(f){s||(m(t),m(l.$$.fragment,f),s=!0)},o(f){_(t),_(l.$$.fragment,f),s=!1},d(f){a[e].d(f),f&&b(n),f&&b(i),E(l)}}}function eoe(r){let e,t,n;return t=new Ye({props:{noPadding:!0,$$slots:{default:[xse]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-1vod3ll")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&31|l[1]&16&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function toe(r){let e,t;return e=new Ai({props:{$$slots:{default:[eoe]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&31|i[1]&16&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}const M1=150;function noe(r,e,t){let n,i,l;fe(r,ri,K=>t(2,l=K));let{conditions:s=[]}=e,{bindings:o=[]}=e;const a=[{label:"Hide component",value:"hide"},{label:"Show component",value:"show"},{label:"Update setting",value:"update"}],u=[{value:"string",label:"Binding"},{value:"number",label:"Number"},{value:"datetime",label:"Date"},{value:"boolean",label:"Boolean"}];let f=!0;const c=K=>n.find(ne=>ne.key===K),p=K=>{const ne=c(K);return ec((ne==null?void 0:ne.type)||"text")},d=()=>{t(0,s=[...s,{valueType:"string",id:Br.generate(),action:"hide",operator:Ir.Equals.value}])},g=K=>{t(0,s=s.filter(ne=>ne.id!==K))},h=K=>{const ne=s.find(_e=>_e.id===K),ae=lt(Se({},ne),{id:Br.generate()});t(0,s=[...s,ae])},v=K=>{C(K),t(3,f=!0)},C=K=>{t(0,s=K.detail.items)},y=K=>Ea(K.valueType),I=(K,ne)=>{const ae=[Ir.Empty.value,Ir.NotEmpty.value];K.noValue=ae.includes(ne),K.noValue&&(K.referenceValue=null,K.valueType="string")},O=(K,ne)=>{var _e;K.referenceValue=null;const ae=Ea(ne).map(Me=>Me.value);ae.includes(K.operator)||(K.operator=(_e=ae[0])!=null?_e:Ir.Equals.value,I(K,K.operator))},T=()=>t(3,f=!1);function P(K,ne){r.$$.not_equal(ne.action,K)&&(ne.action=K,t(0,s))}function M(K,ne){r.$$.not_equal(ne.setting,K)&&(ne.setting=K,t(0,s))}const F=(K,ne,ae,_e)=>t(0,ne[ae].settingValue=_e,s),j=(K,ne,ae,_e)=>t(0,ne[ae].newValue=_e.detail,s);function B(K,ne){r.$$.not_equal(ne.operator,K)&&(ne.operator=K,t(0,s))}const q=(K,ne)=>I(K,ne.detail);function G(K,ne){r.$$.not_equal(ne.valueType,K)&&(ne.valueType=K,t(0,s))}const Y=(K,ne)=>O(K,ne.detail),U=(K,ne,ae,_e)=>t(0,ne[ae].referenceValue=_e.detail,s);function H(K,ne){r.$$.not_equal(ne.referenceValue,K)&&(ne.referenceValue=K,t(0,s))}function W(K,ne){r.$$.not_equal(ne.referenceValue,K)&&(ne.referenceValue=K,t(0,s))}const Q=K=>h(K.id),se=K=>g(K.id);return r.$$set=K=>{"conditions"in K&&t(0,s=K.conditions),"bindings"in K&&t(1,o=K.bindings)},r.$$.update=()=>{r.$$.dirty[0]&4&&t(17,n=_o(l==null?void 0:l._component)),r.$$.dirty[0]&131072&&t(4,i=n.map(K=>({label:K.label,value:K.key}))),r.$$.dirty[0]&1&&s.forEach(K=>{K.id||(K.id=Br.generate())})},[s,o,l,f,i,a,u,c,p,d,g,h,v,C,y,I,O,n,T,P,M,F,j,B,q,G,Y,U,H,W,Q,se]}class roe extends ie{constructor(e){super();le(this,e,noe,toe,re,{conditions:0,bindings:1},null,[-1,-1])}}function ioe(r){let e;return{c(){e=V("Configure conditions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function loe(r){let e,t,n;return t=new Yt({props:{$$slots:{default:[ioe]},$$scope:{ctx:r}}}),t.$on("click",r[4]),{c(){e=D("div"),S(t.$$.fragment)},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&512&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function soe(r){let e;return{c(){e=V("Show, hide and update components in response to conditions being met.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ooe(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function aoe(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[ooe]},$$scope:{ctx:r}}}),e.$on("click",r[7]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&512&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function uoe(r){let e,t,n;function i(s){r[6](s)}let l={slot:"body",bindings:r[1]};return r[2]!==void 0&&(l.conditions=r[2]),e=new roe({props:l}),Z.push(()=>ce(e,"conditions",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.bindings=s[1]),!t&&o&4&&(t=!0,a.conditions=s[2],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function foe(r){var s;let e,t,n,i;e=new Go({props:{name:`Conditions${((s=r[0])==null?void 0:s._conditions)?" *":""}`,collapsible:!1,$$slots:{default:[loe]},$$scope:{ctx:r}}});let l={title:"Conditions",$$slots:{body:[uoe],buttons:[aoe],description:[soe]},$$scope:{ctx:r}};return n=new Kr({props:l}),r[8](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(o,a){A(e,o,a),$(o,t,a),A(n,o,a),i=!0},p(o,[a]){var c;const u={};a&1&&(u.name=`Conditions${((c=o[0])==null?void 0:c._conditions)?" *":""}`),a&512&&(u.$$scope={dirty:a,ctx:o}),e.$set(u);const f={};a&518&&(f.$$scope={dirty:a,ctx:o}),n.$set(f)},i(o){i||(m(e.$$.fragment,o),m(n.$$.fragment,o),i=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),i=!1},d(o){E(e,o),o&&b(t),r[8](null),E(n,o)}}}function coe(r,e,t){let{componentInstance:n}=e,{bindings:i}=e,l,s;const o=()=>{var p;t(2,l=JSON.parse(JSON.stringify((p=n==null?void 0:n._conditions)!=null?p:[]))),s.show()},a=async()=>{try{await He.actions.components.updateConditions(l)}catch{ye.error("Error updating conditions")}s.hide()};function u(p){l=p,t(2,l)}const f=()=>a();function c(p){Z[p?"unshift":"push"](()=>{s=p,t(3,s)})}return r.$$set=p=>{"componentInstance"in p&&t(0,n=p.componentInstance),"bindings"in p&&t(1,i=p.bindings)},[n,i,l,s,o,a,u,f,c]}class poe extends ie{constructor(e){super();le(this,e,coe,foe,re,{componentInstance:0,bindings:1})}}function u8(r){let e,t,n,i,l,s,o,a,u,f;return e=new _ee({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),n=new wse({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1],componentBindings:r[0]}}),l=new Pse({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),o=new Vse({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),u=new poe({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment)},m(c,p){A(e,c,p),$(c,t,p),A(n,c,p),$(c,i,p),A(l,c,p),$(c,s,p),A(o,c,p),$(c,a,p),A(u,c,p),f=!0},p(c,p){const d={};p&8&&(d.componentInstance=c[3]),p&4&&(d.componentDefinition=c[2]),p&2&&(d.bindings=c[1]),e.$set(d);const g={};p&8&&(g.componentInstance=c[3]),p&4&&(g.componentDefinition=c[2]),p&2&&(g.bindings=c[1]),p&1&&(g.componentBindings=c[0]),n.$set(g);const h={};p&8&&(h.componentInstance=c[3]),p&4&&(h.componentDefinition=c[2]),p&2&&(h.bindings=c[1]),l.$set(h);const v={};p&8&&(v.componentInstance=c[3]),p&4&&(v.componentDefinition=c[2]),p&2&&(v.bindings=c[1]),o.$set(v);const C={};p&8&&(C.componentInstance=c[3]),p&4&&(C.componentDefinition=c[2]),p&2&&(C.bindings=c[1]),u.$set(C)},i(c){f||(m(e.$$.fragment,c),m(n.$$.fragment,c),m(l.$$.fragment,c),m(o.$$.fragment,c),m(u.$$.fragment,c),f=!0)},o(c){_(e.$$.fragment,c),_(n.$$.fragment,c),_(l.$$.fragment,c),_(o.$$.fragment,c),_(u.$$.fragment,c),f=!1},d(c){E(e,c),c&&b(t),E(n,c),c&&b(i),E(l,c),c&&b(s),E(o,c),c&&b(a),E(u,c)}}}function doe(r){var l;let e,t=(l=r[3])==null?void 0:l._id,n,i=u8(r);return{c(){e=D("div"),i.c(),w(e,"class","container svelte-1n3t1jx")},m(s,o){$(s,e,o),i.m(e,null),n=!0},p(s,o){var a;o&8&&re(t,t=(a=s[3])==null?void 0:a._id)?(ee(),_(i,1,1,Oe),te(),i=u8(s),i.c(),m(i),i.m(e,null)):i.p(s,o)},i(s){n||(m(i),n=!0)},o(s){_(i),n=!1},d(s){s&&b(e),i.d(s)}}}function moe(r){let e,t;return e=new bn({props:{title:"Settings",$$slots:{default:[doe]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&143&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function goe(r){let e,t;return e=new Vr({props:{selected:"Settings",noPadding:!0,$$slots:{default:[moe]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&143&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function _oe(r,e,t){let n,i,l,s,o,a,u;return fe(r,He,f=>t(4,o=f)),fe(r,fn,f=>t(5,a=f)),fe(r,ri,f=>t(6,u=f)),r.$$.update=()=>{r.$$.dirty&64&&t(3,n=u),r.$$.dirty&64&&t(2,i=He.actions.components.getDefinition(u==null?void 0:u._component)),r.$$.dirty&48&&t(1,l=Tq(a,o.selectedComponentId)),r.$$.dirty&48&&t(0,s=Iq(a,o.selectedComponentId))},[s,l,i,n,o,a,u]}class hoe extends ie{constructor(e){super();le(this,e,_oe,goe,re,{})}}var $oe=[{name:"Blocks",icon:"Article",children:["tableblock","cardsblock","repeaterblock"]},{name:"Layout",icon:"ClassicGridView",children:["container","section"]},{name:"Data",icon:"Data",children:["dataprovider","repeater","table","dynamicfilter"]},{name:"Form",icon:"Form",children:["form","formstep","fieldgroup","stringfield","numberfield","passwordfield","optionsfield","booleanfield","longformfield","datetimefield","attachmentfield","relationshipfield","daterangepicker","multifieldselect","jsonfield","s3upload"]},{name:"Card",icon:"Card",children:["spectrumcard","cardstat"]},{name:"Chart",icon:"GraphBarVertical",children:["bar","line","area","pie","donut","candlestick"]},{name:"Elements",icon:"TextParagraph",children:["heading","text","button","tag","divider","image","backgroundimage","link","icon","embed","markdownviewer","embeddedmap"]}];function f8(r,e,t){const n=r.slice();return n[9]=e[t],n}function c8(r,e,t){const n=r.slice();return n[9]=e[t],n}function p8(r){let e,t;function n(){return r[7](r[9])}return e=new Qt({props:{dataCy:`component-${r[9].name}`,icon:r[9].icon,disabled:r[3](r[9],r[1]),$$slots:{default:[boe]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&1&&(s.dataCy=`component-${r[9].name}`),l&1&&(s.icon=r[9].icon),l&3&&(s.disabled=r[3](r[9],r[1])),l&16385&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function boe(r){let e=r[9].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[9].name+"")&&Te(t,e)},d(n){n&&b(t)}}}function d8(r){let e=!r[9].showOnAsset||r[9].showOnAsset.includes(r[2]),t,n,i=e&&p8(r);return{c(){i&&i.c(),t=Ee()},m(l,s){i&&i.m(l,s),$(l,t,s),n=!0},p(l,s){s&5&&(e=!l[9].showOnAsset||l[9].showOnAsset.includes(l[2])),e?i?(i.p(l,s),s&5&&m(i,1)):(i=p8(l),i.c(),m(i,1),i.m(t.parentNode,t)):i&&(ee(),_(i,1,1,()=>{i=null}),te())},i(l){n||(m(i),n=!0)},o(l){_(i),n=!1},d(l){i&&i.d(l),l&&b(t)}}}function voe(r){let e,t,n=r[9].children||[],i=[];for(let s=0;s<n.length;s+=1)i[s]=d8(c8(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=R()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o&31){n=s[9].children||[];let a;for(a=0;a<n.length;a+=1){const u=c8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=d8(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){$t(i,s),s&&b(e)}}}function m8(r){let e,t;return e=new gt({props:{size:"S",name:"ChevronDown"}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function woe(r){let e,t=r[9].name+"",n,i,l,s,o=r[9].isCategory&&m8();return{c(){e=D("div"),n=V(t),i=R(),o&&o.c(),l=R(),w(e,"class","buttonContent svelte-15cdrfq")},m(a,u){$(a,e,u),N(e,n),N(e,i),o&&o.m(e,null),$(a,l,u),s=!0},p(a,u){(!s||u&1)&&t!==(t=a[9].name+"")&&Te(n,t),a[9].isCategory?o?u&1&&m(o,1):(o=m8(),o.c(),m(o,1),o.m(e,null)):o&&(ee(),_(o,1,1,()=>{o=null}),te())},i(a){s||(m(o),s=!0)},o(a){_(o),s=!1},d(a){a&&b(e),o&&o.d(),a&&b(l)}}}function yoe(r){let e,t;function n(){return r[6](r[9])}return e=new Yt({props:{icon:r[9].icon,disabled:!r[9].isCategory&&r[3](r[9],r[1]),quiet:!0,size:"S",slot:"control",dataCy:`category-${r[9].name}`,$$slots:{default:[woe]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&1&&(s.icon=r[9].icon),l&3&&(s.disabled=!r[9].isCategory&&r[3](r[9],r[1])),l&1&&(s.dataCy=`category-${r[9].name}`),l&16385&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function g8(r){let e,t;return e=new wr({props:{disabled:!r[9].isCategory,$$slots:{control:[yoe],default:[voe]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.disabled=!n[9].isCategory),i&16391&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function koe(r){let e,t,n=r[0],i=[];for(let s=0;s<n.length;s+=1)i[s]=g8(f8(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","components svelte-15cdrfq")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,[o]){if(o&31){n=s[0];let a;for(a=0;a<n.length;a+=1){const u=f8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=g8(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),$t(i,s)}}}function Coe(r,e,t){let n,i,l,s;fe(r,He,p=>t(5,i=p)),fe(r,ri,p=>t(1,l=p)),fe(r,cB,p=>t(2,s=p));const o=({name:p},d)=>{var h;const g=He.actions.components.getDefinition(d==null?void 0:d._component);return(h=g==null?void 0:g.illegalChildren)==null?void 0:h.includes(p.toLowerCase())},a=(p,d)=>{let g=[];return p.forEach(h=>{if(typeof h=="string"){const v=d[`@budibase/standard-components/${h}`];v&&g.push(lt(Se({},v),{isCategory:!1}))}else g.push(lt(Se({},h),{isCategory:!0,children:a(h.children||[],d)}))}),g},u=async p=>{if(!p.isCategory)try{await He.actions.components.create(p.component)}catch{ye.error("Error creating component")}},f=p=>u(p),c=p=>u(p);return r.$$.update=()=>{r.$$.dirty&32&&t(0,n=a($oe,i.components))},[n,l,s,o,u,i,f,c]}class Soe extends ie{constructor(e){super();le(this,e,Coe,koe,re,{})}}const _8={MOVE:"move",COPY:"copy"},Hr={ABOVE:"above",BELOW:"below",INSIDE:"inside"};function h8(){const r=mn({});return r.actions={dragstart:e=>{r.update(t=>(t.dragged=e,t))},dragover:({component:e,index:t,canHaveChildrenButIsEmpty:n,mousePosition:i})=>{r.update(l=>(l.targetComponent=e,n&&t===0?(i<.4&&(l.dropPosition=Hr.ABOVE),i>.8&&(l.dropPosition=Hr.BELOW),i>.4&&i<.8&&(l.dropPosition=Hr.INSIDE),l):(i>.5?l.dropPosition=Hr.BELOW:l.dropPosition=n?Hr.INSIDE:Hr.ABOVE,l)))},reset:()=>{r.update(e=>(e.dropPosition="",e.targetComponent=null,e.dragged=null,e))},drop:async()=>{const e=it(r);e.targetComponent===e.dragged||!e.targetComponent||!e.dragged||Sl(e.dragged,e.targetComponent._id).map(i=>i._id).includes(e.targetComponent._id)||(He.actions.components.copy(e.dragged,!0),await He.actions.components.paste(e.targetComponent,e.dropPosition),r.actions.reset())}},r}function $8(r){var s;let e,t,n,i;e=new wr({props:{$$slots:{control:[Doe],default:[Moe]},$$scope:{ctx:r}}});let l={title:"Confirm Deletion",body:`Are you sure you wish to delete this '${(s=r[0])==null?void 0:s.name}' component?`,okText:"Delete Component",onOk:r[8]};return n=new _r({props:l}),r[18](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(o,a){A(e,o,a),$(o,t,a),A(n,o,a),i=!0},p(o,a){var c;const u={};a&524314&&(u.$$scope={dirty:a,ctx:o}),e.$set(u);const f={};a&1&&(f.body=`Are you sure you wish to delete this '${(c=o[0])==null?void 0:c.name}' component?`),n.$set(f)},i(o){i||(m(e.$$.fragment,o),m(n.$$.fragment,o),i=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),i=!1},d(o){E(e,o),o&&b(t),r[18](null),E(n,o)}}}function Aoe(r){let e;return{c(){e=V("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Eoe(r){let e;return{c(){e=V("Move up")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ooe(r){let e;return{c(){e=V("Move down")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Toe(r){let e;return{c(){e=V("Duplicate")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ioe(r){let e;return{c(){e=V("Cut")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Loe(r){let e;return{c(){e=V("Copy")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Poe(r){let e;return{c(){e=V("Paste above")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Noe(r){let e;return{c(){e=V("Paste below")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Roe(r){let e;return{c(){e=V("Paste inside")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Moe(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y;return e=new Qt({props:{icon:"Delete",$$slots:{default:[Aoe]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)}),n=new Qt({props:{noClose:!0,icon:"ChevronUp",$$slots:{default:[Eoe]},$$scope:{ctx:r}}}),n.$on("click",r[5]),l=new Qt({props:{noClose:!0,icon:"ChevronDown",$$slots:{default:[Ooe]},$$scope:{ctx:r}}}),l.$on("click",r[6]),o=new Qt({props:{noClose:!0,icon:"Duplicate",$$slots:{default:[Toe]},$$scope:{ctx:r}}}),o.$on("click",r[7]),u=new Qt({props:{icon:"Cut",$$slots:{default:[Ioe]},$$scope:{ctx:r}}}),u.$on("click",r[13]),c=new Qt({props:{icon:"Copy",$$slots:{default:[Loe]},$$scope:{ctx:r}}}),c.$on("click",r[14]),d=new Qt({props:{icon:"LayersBringToFront",disabled:r[3],$$slots:{default:[Poe]},$$scope:{ctx:r}}}),d.$on("click",r[15]),h=new Qt({props:{icon:"LayersSendToBack",disabled:r[3],$$slots:{default:[Noe]},$$scope:{ctx:r}}}),h.$on("click",r[16]),C=new Qt({props:{icon:"ShowOneLayer",disabled:r[3]||r[4],$$slots:{default:[Roe]},$$scope:{ctx:r}}}),C.$on("click",r[17]),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),f=R(),S(c.$$.fragment),p=R(),S(d.$$.fragment),g=R(),S(h.$$.fragment),v=R(),S(C.$$.fragment)},m(I,O){A(e,I,O),$(I,t,O),A(n,I,O),$(I,i,O),A(l,I,O),$(I,s,O),A(o,I,O),$(I,a,O),A(u,I,O),$(I,f,O),A(c,I,O),$(I,p,O),A(d,I,O),$(I,g,O),A(h,I,O),$(I,v,O),A(C,I,O),y=!0},p(I,O){r=I;const T={};O&524288&&(T.$$scope={dirty:O,ctx:r}),e.$set(T);const P={};O&524288&&(P.$$scope={dirty:O,ctx:r}),n.$set(P);const M={};O&524288&&(M.$$scope={dirty:O,ctx:r}),l.$set(M);const F={};O&524288&&(F.$$scope={dirty:O,ctx:r}),o.$set(F);const j={};O&524288&&(j.$$scope={dirty:O,ctx:r}),u.$set(j);const B={};O&524288&&(B.$$scope={dirty:O,ctx:r}),c.$set(B);const q={};O&8&&(q.disabled=r[3]),O&524288&&(q.$$scope={dirty:O,ctx:r}),d.$set(q);const G={};O&8&&(G.disabled=r[3]),O&524288&&(G.$$scope={dirty:O,ctx:r}),h.$set(G);const Y={};O&24&&(Y.disabled=r[3]||r[4]),O&524288&&(Y.$$scope={dirty:O,ctx:r}),C.$set(Y)},i(I){y||(m(e.$$.fragment,I),m(n.$$.fragment,I),m(l.$$.fragment,I),m(o.$$.fragment,I),m(u.$$.fragment,I),m(c.$$.fragment,I),m(d.$$.fragment,I),m(h.$$.fragment,I),m(C.$$.fragment,I),y=!0)},o(I){_(e.$$.fragment,I),_(n.$$.fragment,I),_(l.$$.fragment,I),_(o.$$.fragment,I),_(u.$$.fragment,I),_(c.$$.fragment,I),_(d.$$.fragment,I),_(h.$$.fragment,I),_(C.$$.fragment,I),y=!1},d(I){E(e,I),I&&b(t),E(n,I),I&&b(i),E(l,I),I&&b(s),E(o,I),I&&b(a),E(u,I),I&&b(f),E(c,I),I&&b(p),E(d,I),I&&b(g),E(h,I),I&&b(v),E(C,I)}}}function Doe(r){let e,t,n;return t=new gt({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"slot","control"),w(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Oe,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function joe(r){let e,t,n=r[2]&&$8(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,[l]){i[2]?n?(n.p(i,l),l&4&&m(n,1)):(n=$8(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function Boe(r,e,t){let n,i,l,s,o;fe(r,He,P=>t(12,o=P));let{component:a}=e,u;const f=()=>{const P=it(fn),M=Xl(P==null?void 0:P.props,a._id);if(!M)return;const F=M._children.indexOf(a);if(F!==0)try{const j=M._children.filter(B=>B!==a);j.splice(F-1,0,a),M._children=j,He.actions.preview.saveSelected()}catch{ye.error("Error saving screen")}},c=()=>{const P=it(fn),M=Xl(P==null?void 0:P.props,a._id);if(!M)return;const F=M._children.indexOf(a);if(F!==M._children.length-1)try{const j=M._children.filter(B=>B!==a);j.splice(F+1,0,a),M._children=j,He.actions.preview.saveSelected()}catch{ye.error("Error saving screen")}},p=()=>{g(!1),h("below")},d=async()=>{try{await He.actions.components.delete(a)}catch{ye.error("Error deleting component")}},g=(P=!1)=>{He.actions.components.copy(a,P)},h=P=>{try{He.actions.components.paste(a,P)}catch{ye.error("Error saving component")}},v=()=>g(!0),C=()=>g(!1),y=()=>h("above"),I=()=>h("below"),O=()=>h("inside");function T(P){Z[P?"unshift":"push"](()=>{u=P,t(1,u)})}return r.$$set=P=>{"component"in P&&t(11,a=P.component)},r.$$.update=()=>{r.$$.dirty&2048&&t(0,n=He.actions.components.getDefinition(a==null?void 0:a._component)),r.$$.dirty&2049&&t(4,i=!a||!(n==null?void 0:n.hasChildren)),r.$$.dirty&4096&&t(3,l=!o.componentToPaste),r.$$.dirty&1&&t(2,s=(n==null?void 0:n.editable)!==!1&&(n==null?void 0:n.static)!==!0)},[n,u,s,l,i,f,c,p,d,g,h,a,o,v,C,y,I,O,T]}class zoe extends ie{constructor(e){super();le(this,e,Boe,joe,re,{component:11})}}function b8(r,e,t){const n=r.slice();return n[18]=e[t],n[20]=t,n}function v8(r){let e,t,n;return{c(){e=D("div"),w(e,"ondragover","return false"),w(e,"ondragenter","return false"),w(e,"class","drop-item svelte-1wboluz"),Ht(e,"margin-left",(r[3]+1)*16+"px")},m(i,l){$(i,e,l),t||(n=Pe(e,"drop",r[14]),t=!0)},p(i,l){l&8&&Ht(e,"margin-left",(i[3]+1)*16+"px")},d(i){i&&b(e),t=!1,n()}}}function qoe(r){let e,t;return e=new zoe({props:{component:r[18]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.component=n[18]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function w8(r){let e,t;return e=new D1({props:{components:r[18]._children,currentComponent:r[1],onSelect:r[2],dragDropStore:r[4],level:r[3]+1}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.components=n[18]._children),i&2&&(l.currentComponent=n[1]),i&4&&(l.onSelect=n[2]),i&16&&(l.dragDropStore=n[4]),i&8&&(l.level=n[3]+1),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function y8(r){let e,t,n;return{c(){e=D("div"),w(e,"ondragover","return false"),w(e,"ondragenter","return false"),w(e,"class","drop-item svelte-1wboluz"),Ht(e,"margin-left",(r[3]+(r[6].dropPosition===Hr.INSIDE?3:1))*16+"px")},m(i,l){$(i,e,l),t||(n=Pe(e,"drop",r[14]),t=!0)},p(i,l){l&72&&Ht(e,"margin-left",(i[3]+(i[6].dropPosition===Hr.INSIDE?3:1))*16+"px")},d(i){i&&b(e),t=!1,n()}}}function k8(r,e){var C,y;let t,n,i,l,s=e[15](e[18],e[8],e[5]),o,a,u,f,c,p=((C=e[6])==null?void 0:C.targetComponent)===e[18]&&e[6].dropPosition===Hr.ABOVE&&v8(e);function d(){return e[16](e[18])}i=new Tl({props:{draggable:!0,text:e[12](e[18]),withArrow:!0,indentLevel:e[3]+1,selected:e[7].selectedComponentId===e[18]._id,opened:e[15](e[18],e[8],e[5]),$$slots:{default:[qoe]},$$scope:{ctx:e}}}),i.$on("dragend",function(){ct(e[4].actions.reset)&&e[4].actions.reset.apply(this,arguments)}),i.$on("dragstart",function(){ct(e[10](e[18]))&&e[10](e[18]).apply(this,arguments)}),i.$on("dragover",function(){ct(e[11](e[18],e[20]))&&e[11](e[18],e[20]).apply(this,arguments)}),i.$on("iconClick",d),i.$on("drop",e[14]);let g=s&&w8(e),h=((y=e[6])==null?void 0:y.targetComponent)===e[18]&&(e[6].dropPosition===Hr.INSIDE||e[6].dropPosition===Hr.BELOW)&&y8(e);function v(){return e[17](e[18])}return{key:r,first:null,c(){t=D("li"),p&&p.c(),n=R(),S(i.$$.fragment),l=R(),g&&g.c(),o=R(),h&&h.c(),a=R(),w(t,"class","svelte-1wboluz"),this.first=t},m(I,O){$(I,t,O),p&&p.m(t,null),N(t,n),A(i,t,null),N(t,l),g&&g.m(t,null),N(t,o),h&&h.m(t,null),N(t,a),u=!0,f||(c=Pe(t,"click",mp(v)),f=!0)},p(I,O){var P,M;e=I,((P=e[6])==null?void 0:P.targetComponent)===e[18]&&e[6].dropPosition===Hr.ABOVE?p?p.p(e,O):(p=v8(e),p.c(),p.m(t,n)):p&&(p.d(1),p=null);const T={};O&1&&(T.text=e[12](e[18])),O&8&&(T.indentLevel=e[3]+1),O&129&&(T.selected=e[7].selectedComponentId===e[18]._id),O&289&&(T.opened=e[15](e[18],e[8],e[5])),O&2097153&&(T.$$scope={dirty:O,ctx:e}),i.$set(T),O&289&&(s=e[15](e[18],e[8],e[5])),s?g?(g.p(e,O),O&289&&m(g,1)):(g=w8(e),g.c(),m(g,1),g.m(t,o)):g&&(ee(),_(g,1,1,()=>{g=null}),te()),((M=e[6])==null?void 0:M.targetComponent)===e[18]&&(e[6].dropPosition===Hr.INSIDE||e[6].dropPosition===Hr.BELOW)?h?h.p(e,O):(h=y8(e),h.c(),h.m(t,a)):h&&(h.d(1),h=null)},i(I){u||(m(i.$$.fragment,I),m(g),u=!0)},o(I){_(i.$$.fragment,I),_(g),u=!1},d(I){I&&b(t),p&&p.d(),E(i),g&&g.d(),h&&h.d(),f=!1,c()}}}function Uoe(r){let e,t=[],n=new Map,i,l=r[0]||[];const s=o=>o[18]._id;for(let o=0;o<l.length;o+=1){let a=b8(r,l,o),u=s(a);n.set(u,t[o]=k8(u,a))}return{c(){e=D("ul");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","svelte-1wboluz")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,[a]){a&65535&&(l=o[0]||[],ee(),t=er(t,a,s,1,o,l,n,e,jr,k8,null,b8),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function Foe(r,e,t){let n,i=Oe,l=()=>(i(),i=h_(p,M=>t(6,n=M)),p),s,o;fe(r,He,M=>t(7,s=M)),fe(r,fB,M=>t(8,o=M)),r.$$.on_destroy.push(()=>i());let{components:a=[]}=e,{currentComponent:u}=e,{onSelect:f=()=>{}}=e,{level:c=0}=e,{dragDropStore:p}=e;l();let d={};const g=M=>{He.actions.components.select(M)},h=M=>F=>{F.dataTransfer.dropEffect=_8.MOVE,p.actions.dragstart(M)},v=(M,F)=>j=>{var Y;const B=He.actions.components.getDefinition(M._component),q=(B==null?void 0:B.hasChildren)&&!((Y=M._children)==null?void 0:Y.length);j.dataTransfer.dropEffect=_8.COPY;const G=j.offsetY/j.currentTarget.offsetHeight;return p.actions.dragover({component:M,index:F,canHaveChildrenButIsEmpty:q,mousePosition:G}),!1},C=M=>{if(M._instanceName)return M._instanceName;const F=M._component.replace("@budibase/standard-components/","")||"component";return Sr(F)};function y(M){d[M]?delete d[M]:t(5,d[M]=!0,d),t(5,d)}const I=async()=>{try{await p.actions.drop()}catch{ye.error("Error saving component")}},O=(M,F,j)=>{var B;return((B=M==null?void 0:M._children)==null?void 0:B.length)?F.includes(M._id)?!0:!j[M._id]:!1},T=M=>y(M._id),P=M=>g(M);return r.$$set=M=>{"components"in M&&t(0,a=M.components),"currentComponent"in M&&t(1,u=M.currentComponent),"onSelect"in M&&t(2,f=M.onSelect),"level"in M&&t(3,c=M.level),"dragDropStore"in M&&l(t(4,p=M.dragDropStore))},[a,u,f,c,p,d,n,s,o,g,h,v,C,y,I,O,T,P]}class D1 extends ie{constructor(e){super();le(this,e,Foe,Uoe,re,{components:0,currentComponent:1,onSelect:2,level:3,dragDropStore:4})}}function C8(r,e,t){const n=r.slice();return n[6]=e[t],n}function Voe(r){let e;return{c(){e=V("Delete all screens")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hoe(r){let e,t;return e=new Qt({props:{icon:"Delete",$$slots:{default:[Voe]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[2].show)&&r[2].show.apply(this,arguments)}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){r=n;const l={};i&512&&(l.$$scope={dirty:i,ctx:r}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Woe(r){let e,t,n;return t=new gt({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"slot","control"),w(e,"class","icon svelte-xzl76s")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Oe,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function S8(r){let e,t=r[6].route+"",n;return{c(){e=D("div"),n=V(t)},m(i,l){$(i,e,l),N(e,n)},p(i,l){l&2&&t!==(t=i[6].route+"")&&Te(n,t)},d(i){i&&b(e)}}}function Goe(r){let e,t,n,i,l,s,o,a,u,f=r[1],c=[];for(let p=0;p<f.length;p+=1)c[p]=S8(C8(r,f,p));return{c(){e=D("div"),t=V("Are you sure you want to delete all screens under the "),n=D("b"),i=V(r[0]),l=V(" route?"),s=R(),o=D("div"),o.textContent="The following screens will be deleted:",a=R(),u=D("div");for(let p=0;p<c.length;p+=1)c[p].c();w(u,"class","to-delete svelte-xzl76s")},m(p,d){$(p,e,d),N(e,t),N(e,n),N(n,i),N(e,l),$(p,s,d),$(p,o,d),$(p,a,d),$(p,u,d);for(let g=0;g<c.length;g+=1)c[g].m(u,null)},p(p,d){if(d&1&&Te(i,p[0]),d&2){f=p[1];let g;for(g=0;g<f.length;g+=1){const h=C8(p,f,g);c[g]?c[g].p(h,d):(c[g]=S8(h),c[g].c(),c[g].m(u,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=f.length}},d(p){p&&b(e),p&&b(s),p&&b(o),p&&b(a),p&&b(u),$t(c,p)}}}function Yoe(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[Goe]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&515&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Joe(r){let e,t,n,i;e=new wr({props:{$$slots:{control:[Woe],default:[Hoe]},$$scope:{ctx:r}}});let l={title:"Confirm Deletion",okText:"Delete screens",onOk:r[3],$$slots:{default:[Yoe]},$$scope:{ctx:r}};return n=new _r({props:l}),r[4](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&516&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&515&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[4](null),E(n,s)}}}function Qoe(r,e,t){let n;fe(r,jt,u=>t(5,n=u));let{path:i}=e,{screens:l}=e,s;const o=async()=>{if(!!(l==null?void 0:l.length))try{for(let{id:u}of l){const f=it(He).screens.find(c=>c._id===u);!f||await He.actions.screens.delete(f)}ye.success("Screens deleted successfully"),n("../")}catch{ye.error("Error deleting screens")}};function a(u){Z[u?"unshift":"push"](()=>{s=u,t(2,s)})}return r.$$set=u=>{"path"in u&&t(0,i=u.path),"screens"in u&&t(1,l=u.screens)},[i,l,s,o,a]}class Xoe extends ie{constructor(e){super();le(this,e,Qoe,Joe,re,{path:0,screens:1})}}function Koe(r){let e,t,n,i,l,s;function o(c){r[10](c)}let a={label:"Name"};r[0]!==void 0&&(a.value=r[0]),e=new tt({props:a}),Z.push(()=>ce(e,"value",o));function u(c){r[11](c)}let f={label:"URL",error:r[5]};return r[1]!==void 0&&(f.value=r[1]),i=new tt({props:f}),Z.push(()=>ce(i,"value",u)),i.$on("change",r[7]),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment)},m(c,p){A(e,c,p),$(c,n,p),A(i,c,p),s=!0},p(c,p){const d={};!t&&p&1&&(t=!0,d.value=c[0],pe(()=>t=!1)),e.$set(d);const g={};p&32&&(g.error=c[5]),!l&&p&2&&(l=!0,g.value=c[1],pe(()=>l=!1)),i.$set(g)},i(c){s||(m(e.$$.fragment,c),m(i.$$.fragment,c),s=!0)},o(c){_(e.$$.fragment,c),_(i.$$.fragment,c),s=!1},d(c){E(e,c),c&&b(n),E(i,c)}}}function A8(r){let e,t,n;return t=new cs({props:{size:"S"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","footer-progress svelte-19rzw36")},m(i,l){$(i,e,l),A(t,e,null),n=!0},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Zoe(r){let e,t,n=r[3]&&A8();return{c(){e=D("div"),n&&n.c(),w(e,"slot","footer")},m(i,l){$(i,e,l),n&&n.m(e,null),t=!0},p(i,l){i[3]?n?l&8&&m(n,1):(n=A8(),n.c(),m(n,1),n.m(e,null)):n&&(ee(),_(n,1,1,()=>{n=null}),te())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){i&&b(e),n&&n.d()}}}function xoe(r){let e,t;return e=new Bt({props:{size:"M",title:"Enter details",confirmText:r[4],onConfirm:r[8],onCancel:r[2],cancelText:"Back",disabled:!r[0]||!r[1]||r[5]||!r[6],$$slots:{footer:[Zoe],default:[Koe]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&16&&(l.confirmText=n[4]),i&4&&(l.onCancel=n[2]),i&99&&(l.disabled=!n[0]||!n[1]||n[5]||!n[6]),i&8235&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function eae(r,e,t){let{onConfirm:n}=e,{onCancel:i}=e,{showProgressCircle:l=!1}=e,{screenName:s}=e,{screenUrl:o}=e,{confirmText:a="Continue"}=e,u,f=!1;const c=v=>{v.detail.startsWith("/")||t(1,o="/"+v.detail),t(6,f=!0),t(1,o=Es(o)),p(o)?t(5,u="This URL is already taken for this access role"):t(5,u=null)},p=v=>{const C=it(Al)||"BASIC";return it(Ss).some(y=>y.routing.route.toLowerCase()===v.toLowerCase()&&y.routing.roleId===C)},d=async()=>{await n({screenName:s,screenUrl:o})};function g(v){s=v,t(0,s)}function h(v){o=v,t(1,o)}return r.$$set=v=>{"onConfirm"in v&&t(9,n=v.onConfirm),"onCancel"in v&&t(2,i=v.onCancel),"showProgressCircle"in v&&t(3,l=v.showProgressCircle),"screenName"in v&&t(0,s=v.screenName),"screenUrl"in v&&t(1,o=v.screenUrl),"confirmText"in v&&t(4,a=v.confirmText)},[s,o,i,l,a,u,f,c,d,n,g,h]}class E8 extends ie{constructor(e){super();le(this,e,eae,xoe,re,{onConfirm:9,onCancel:2,showProgressCircle:3,screenName:0,screenUrl:1,confirmText:4})}}function tae(r){let e;return{c(){e=V("Duplicate")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function nae(r){let e;return{c(){e=V("Paste inside")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rae(r){let e;return{c(){e=V("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function iae(r){let e,t,n,i,l,s;return e=new Qt({props:{icon:"Duplicate",$$slots:{default:[tae]},$$scope:{ctx:r}}}),e.$on("click",r[4]),n=new Qt({props:{icon:"ShowOneLayer",disabled:!r[3].componentToPaste,$$slots:{default:[nae]},$$scope:{ctx:r}}}),n.$on("click",r[10]),l=new Qt({props:{icon:"Delete",$$slots:{default:[rae]},$$scope:{ctx:r}}}),l.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(o,a){A(e,o,a),$(o,t,a),A(n,o,a),$(o,i,a),A(l,o,a),s=!0},p(o,a){r=o;const u={};a&16384&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a&8&&(f.disabled=!r[3].componentToPaste),a&16384&&(f.$$scope={dirty:a,ctx:r}),n.$set(f);const c={};a&16384&&(c.$$scope={dirty:a,ctx:r}),l.$set(c)},i(o){s||(m(e.$$.fragment,o),m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){E(e,o),o&&b(t),E(n,o),o&&b(i),E(l,o)}}}function lae(r){let e,t,n;return t=new gt({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"slot","control"),w(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Oe,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function sae(r){var n,i;let e,t;return e=new E8({props:{onConfirm:r[5],screenName:(n=r[0])==null?void 0:n.props._instanceName,screenUrl:(i=r[0])==null?void 0:i.routing.route,confirmText:"Duplicate"}}),{c(){S(e.$$.fragment)},m(l,s){A(e,l,s),t=!0},p(l,s){var a,u;const o={};s&1&&(o.screenName=(a=l[0])==null?void 0:a.props._instanceName),s&1&&(o.screenUrl=(u=l[0])==null?void 0:u.routing.route),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){_(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function oae(r){let e,t,n,i,l,s;e=new wr({props:{$$slots:{control:[lae],default:[iae]},$$scope:{ctx:r}}});let o={title:"Confirm Deletion",body:"Are you sure you wish to delete this screen?",okText:"Delete screen",onOk:r[6]};n=new _r({props:o}),r[11](n);let a={$$slots:{default:[sae]},$$scope:{ctx:r}};return l=new At({props:a}),r[12](l),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){const c={};f&16394&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};n.$set(p);const d={};f&16385&&(d.$$scope={dirty:f,ctx:u}),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),r[11](null),E(n,u),u&&b(i),r[12](null),E(l,u)}}}function aae(r,e,t){let n,i,l,s;fe(r,jt,C=>t(13,i=C)),fe(r,Ss,C=>t(9,l=C)),fe(r,He,C=>t(3,s=C));let{screenId:o}=e,a,u;const f=()=>{u.show()},c=async({screenName:C,screenUrl:y})=>{let I=bp(n);delete I._id,delete I._rev,p1(I.props),I.routing.route=Es(y),I.props._instanceName=C;try{await He.actions.screens.save(I),n.template&&Un.captureEvent(Jn.SCREEN.CREATED,{template:"createFromScratch"})}catch(O){ye.error("Error duplicating screen"),console.log(O)}},p=async()=>{try{await He.actions.screens.delete(n),i("../"),ye.success("Deleted screen successfully.")}catch{ye.error("Error deleting screen")}},d=C=>{try{He.actions.components.paste(n==null?void 0:n.props,C)}catch{ye.error("Error saving component")}},g=()=>d("inside");function h(C){Z[C?"unshift":"push"](()=>{a=C,t(1,a)})}function v(C){Z[C?"unshift":"push"](()=>{u=C,t(2,u)})}return r.$$set=C=>{"screenId"in C&&t(8,o=C.screenId)},r.$$.update=()=>{r.$$.dirty&768&&t(0,n=l.find(C=>C._id===o))},[n,a,u,s,f,c,p,d,o,l,g,h,v]}class uae extends ie{constructor(e){super();le(this,e,aae,oae,re,{screenId:8})}}function O8(r,e,t){const n=r.slice();return n[23]=e[t],n}function T8(r){let e,t,n,i;e=new Tl({props:{icon:"FolderOutline",text:r[1],opened:r[7],border:r[3],withArrow:r[0].subpaths,$$slots:{default:[fae]},$$scope:{ctx:r}}}),e.$on("click",r[14]);let l=r[7]&&I8(r);return{c(){S(e.$$.fragment),t=R(),l&&l.c(),n=Ee()},m(s,o){A(e,s,o),$(s,t,o),l&&l.m(s,o),$(s,n,o),i=!0},p(s,o){const a={};o&2&&(a.text=s[1]),o&128&&(a.opened=s[7]),o&8&&(a.border=s[3]),o&1&&(a.withArrow=s[0].subpaths),o&67108930&&(a.$$scope={dirty:o,ctx:s}),e.$set(a),s[7]?l?(l.p(s,o),o&128&&m(l,1)):(l=I8(s),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(ee(),_(l,1,1,()=>{l=null}),te())},i(s){i||(m(e.$$.fragment,s),m(l),i=!0)},o(s){_(e.$$.fragment,s),_(l),i=!1},d(s){E(e,s),s&&b(t),l&&l.d(s),s&&b(n)}}}function fae(r){let e,t;return e=new Xoe({props:{screens:r[6],path:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&64&&(l.screens=n[6]),i&2&&(l.path=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function I8(r){let e=[],t=new Map,n,i,l=r[5];const s=o=>o[23].id;for(let o=0;o<l.length;o+=1){let a=O8(r,l,o),u=s(a);t.set(u,e[o]=P8(u,a))}return{c(){for(let o=0;o<e.length;o+=1)e[o].c();n=Ee()},m(o,a){for(let u=0;u<e.length;u+=1)e[u].m(o,a);$(o,n,a),i=!0},p(o,a){a&15925&&(l=o[5],ee(),e=er(e,a,s,1,o,l,t,n.parentNode,jr,P8,n,O8),te())},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(e[a]);i=!0}},o(o){for(let a=0;a<e.length;a+=1)_(e[a]);i=!1},d(o){for(let a=0;a<e.length;a+=1)e[a].d(o);o&&b(n)}}}function cae(r){let e,t;return e=new uae({props:{screenId:r[23].id}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.screenId=n[23].id),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function L8(r){let e,t;return e=new D1({props:{level:1,components:r[4].props._children,currentComponent:r[10],dragDropStore:r[12]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.components=n[4].props._children),i&1024&&(l.currentComponent=n[10]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function P8(r,e){var u,f;let t,n,i,l,s;function o(){return e[20](e[23])}n=new Tl({props:{icon:"WebPage",indentLevel:e[2]||1,selected:e[9].selectedScreenId===e[23].id&&e[9].currentView==="detail",opened:e[9].selectedScreenId===e[23].id,text:((u=e[11][e[23].route])==null?void 0:u[e[23].role])||e[23].route,withArrow:e[0].subpaths,$$slots:{default:[cae]},$$scope:{ctx:e}}}),n.$on("click",o);let a=((f=e[4])==null?void 0:f._id)===e[23].id&&L8(e);return{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),i=R(),a&&a.c(),l=Ee(),this.first=t},m(c,p){$(c,t,p),A(n,c,p),$(c,i,p),a&&a.m(c,p),$(c,l,p),s=!0},p(c,p){var g,h;e=c;const d={};p&4&&(d.indentLevel=e[2]||1),p&544&&(d.selected=e[9].selectedScreenId===e[23].id&&e[9].currentView==="detail"),p&544&&(d.opened=e[9].selectedScreenId===e[23].id),p&32&&(d.text=((g=e[11][e[23].route])==null?void 0:g[e[23].role])||e[23].route),p&1&&(d.withArrow=e[0].subpaths),p&67108896&&(d.$$scope={dirty:p,ctx:e}),n.$set(d),((h=e[4])==null?void 0:h._id)===e[23].id?a?(a.p(e,p),p&48&&m(a,1)):(a=L8(e),a.c(),m(a,1),a.m(l.parentNode,l)):a&&(ee(),_(a,1,1,()=>{a=null}),te())},i(c){s||(m(n.$$.fragment,c),m(a),s=!0)},o(c){_(n.$$.fragment,c),_(a),s=!1},d(c){c&&b(t),E(n,c),c&&b(i),a&&a.d(c),c&&b(l)}}}function pae(r){let e,t,n=!r[8]&&T8(r);return{c(){n&&n.c(),e=Ee()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,[l]){i[8]?n&&(ee(),_(n,1,1,()=>{n=null}),te()):n?(n.p(i,l),l&256&&m(n,1)):(n=T8(i),n.c(),m(n,1),n.m(e.parentNode,e))},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function dae(r,e,t){let n,i,l,s,o,a,u,f,c,p,d;fe(r,Hf,B=>t(18,f=B)),fe(r,fn,B=>t(19,c=B)),fe(r,He,B=>t(9,p=B)),fe(r,ri,B=>t(10,d=B));const g={"/":{BASIC:"Home",PUBLIC:"Home",ADMIN:"Home",POWER:"Home"}},h=h8();let{route:v}=e,{path:C}=e,{indent:y}=e,{border:I}=e,O=!1;const T=B=>{He.actions.screens.select(B)},P=B=>{let q=[];return Object.entries(B.subpaths).forEach(([G,Y])=>{Object.entries(Y.screens).forEach(([U,H])=>{q.push({id:H,route:G,role:U})})}),q},M=(B,q)=>B.filter(G=>!q||G.route.includes(q)),F=()=>{it(Hf)||t(15,O=!O)},j=B=>T(B.id);return r.$$set=B=>{"route"in B&&t(0,v=B.route),"path"in B&&t(1,C=B.path),"indent"in B&&t(2,y=B.indent),"border"in B&&t(3,I=B.border)},r.$$.update=()=>{var B;r.$$.dirty&524288&&t(4,n=c),r.$$.dirty&1&&t(6,i=P(v)),r.$$.dirty&262208&&t(5,l=M(i,f)),r.$$.dirty&262176&&t(16,s=f&&l.length>0),r.$$.dirty&262176&&t(8,o=f&&!l.length),r.$$.dirty&17&&t(17,a=v.subpaths[(B=n==null?void 0:n.routing)==null?void 0:B.route]!==void 0),r.$$.dirty&229376&&t(7,u=O||a||s)},[v,C,y,I,n,l,i,u,o,p,d,g,h,T,F,O,s,a,f,c,j]}class mae extends ie{constructor(e){super();le(this,e,dae,pae,re,{route:0,path:1,indent:2,border:3})}}function N8(r,e,t){const n=r.slice();return n[4]=e[t],n[6]=t,n}function R8(r,e){let t,n,i;return n=new mae({props:{border:e[6]>0,path:e[4],route:e[0][e[4]]}}),{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),A(n,l,s),i=!0},p(l,s){e=l;const o={};s&2&&(o.border=e[6]>0),s&2&&(o.path=e[4]),s&3&&(o.route=e[0][e[4]]),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(t),E(n,l)}}}function M8(r){let e;return{c(){e=D("div"),e.textContent="There aren't any screens configured with this access role.",w(e,"class","empty svelte-1xoqjkm")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gae(r){let e,t=[],n=new Map,i,l,s=r[1];const o=u=>u[4];for(let u=0;u<s.length;u+=1){let f=N8(r,s,u),c=o(f);n.set(c,t[u]=R8(c,f))}let a=!r[1].length&&M8();return{c(){var u;e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();i=R(),a&&a.c(),w(e,"class","root svelte-1xoqjkm"),oe(e,"has-screens",!!((u=r[1])==null?void 0:u.length))},m(u,f){$(u,e,f);for(let c=0;c<t.length;c+=1)t[c].m(e,null);N(e,i),a&&a.m(e,null),l=!0},p(u,[f]){var c;f&3&&(s=u[1],ee(),t=er(t,f,o,1,u,s,n,e,jr,R8,i,N8),te()),u[1].length?a&&(a.d(1),a=null):a||(a=M8(),a.c(),a.m(e,null)),f&2&&oe(e,"has-screens",!!((c=u[1])==null?void 0:c.length))},i(u){if(!l){for(let f=0;f<s.length;f+=1)m(t[f]);l=!0}},o(u){for(let f=0;f<t.length;f+=1)_(t[f]);l=!1},d(u){u&&b(e);for(let f=0;f<t.length;f+=1)t[f].d();a&&a.d()}}}function _ae(r,e,t){let n,i,l;fe(r,He,o=>t(2,i=o)),fe(r,Al,o=>t(3,l=o));let s={};return r.$$.update=()=>{if(r.$$.dirty&12){const o=i.routes,a=Object.keys(o||{}).sort(),u=l,f=i.selectedScreenId;let c=!1,p,d={},g;a.forEach(h=>{const v=o[h];Object.entries(v.subpaths).forEach(([C,y])=>{Object.entries(y.screens).forEach(([I,O])=>{O===f&&(g=I,c=I===u),I===u&&(p||(p=O),d[h]||(d[h]={subpaths:{}}),d[h].subpaths[C]={screens:{[u]:O}})})})}),t(0,s=d),!c&&g?Al.set(g):!c&&p&&He.actions.screens.select(p)}r.$$.dirty&1&&t(1,n=Object.keys(s||{}).sort())},[s,n,i,l]}class hae extends ie{constructor(e){super();le(this,e,_ae,gae,re,{})}}function $ae(r){let e;return{c(){e=V("Edit")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function bae(r){let e;return{c(){e=V("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function vae(r){let e,t,n,i;return e=new Qt({props:{icon:"Edit",$$slots:{default:[$ae]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)}),n=new Qt({props:{icon:"Delete",$$slots:{default:[bae]},$$scope:{ctx:r}}}),n.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){r=l;const o={};s&512&&(o.$$scope={dirty:s,ctx:r}),e.$set(o);const a={};s&512&&(a.$$scope={dirty:s,ctx:r}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function wae(r){let e,t,n;return t=new gt({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"slot","control"),w(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Oe,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function yae(r){let e,t,n;function i(s){r[7](s)}let l={thin:!0,type:"text",label:"Name"};return r[2]!==void 0&&(l.value=r[2]),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&4&&(t=!0,a.value=s[2],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function kae(r){let e,t;return e=new Bt({props:{title:"Edit Layout Name",confirmText:"Save",onConfirm:r[4],disabled:!r[2],$$slots:{default:[yae]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.disabled=!n[2]),i&516&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Cae(r){let e,t,n,i,l,s;e=new wr({props:{$$slots:{control:[wae],default:[vae]},$$scope:{ctx:r}}});let o={title:"Confirm Deletion",body:"Are you sure you wish to delete this layout?",okText:"Delete layout",onOk:r[3]};n=new _r({props:o}),r[6](n);let a={$$slots:{default:[kae]},$$scope:{ctx:r}};return l=new At({props:a}),r[8](l),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){const c={};f&515&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};n.$set(p);const d={};f&516&&(d.$$scope={dirty:f,ctx:u}),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),r[6](null),E(n,u),u&&b(i),r[8](null),E(l,u)}}}function Sae(r,e,t){let{layout:n}=e,i,l,s=n.name;const o=async()=>{try{await He.actions.layouts.delete(n),ye.success("Layout deleted successfully")}catch{ye.error("Error deleting layout")}},a=async()=>{try{const p=vn.cloneDeep(n);p.name=s,await He.actions.layouts.save(p),ye.success("Layout saved successfully")}catch{ye.error("Error saving layout")}};function u(p){Z[p?"unshift":"push"](()=>{i=p,t(0,i)})}function f(p){s=p,t(2,s)}function c(p){Z[p?"unshift":"push"](()=>{l=p,t(1,l)})}return r.$$set=p=>{"layout"in p&&t(5,n=p.layout)},[i,l,s,o,a,n,u,f,c]}class Aae extends ie{constructor(e){super();le(this,e,Sae,Cae,re,{layout:5})}}function Eae(r){let e,t;return e=new Aae({props:{layout:r[0]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.layout=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function D8(r){let e,t;return e=new D1({props:{components:r[0].props._children,currentComponent:r[3],dragDropStore:r[4]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.components=n[0].props._children),i&8&&(l.currentComponent=n[3]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Oae(r){var s;let e,t,n,i;e=new Tl({props:{border:r[1],icon:"ClassicGridView",text:r[0].name,withArrow:!0,selected:r[2].selectedLayoutId===r[0]._id,opened:r[2].selectedLayoutId===r[0]._id,$$slots:{default:[Eae]},$$scope:{ctx:r}}}),e.$on("click",r[5]);let l=r[2].selectedLayoutId===r[0]._id&&((s=r[0].props)==null?void 0:s._children)&&D8(r);return{c(){S(e.$$.fragment),t=R(),l&&l.c(),n=Ee()},m(o,a){A(e,o,a),$(o,t,a),l&&l.m(o,a),$(o,n,a),i=!0},p(o,[a]){var f;const u={};a&2&&(u.border=o[1]),a&1&&(u.text=o[0].name),a&5&&(u.selected=o[2].selectedLayoutId===o[0]._id),a&5&&(u.opened=o[2].selectedLayoutId===o[0]._id),a&65&&(u.$$scope={dirty:a,ctx:o}),e.$set(u),o[2].selectedLayoutId===o[0]._id&&((f=o[0].props)==null?void 0:f._children)?l?(l.p(o,a),a&5&&m(l,1)):(l=D8(o),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(ee(),_(l,1,1,()=>{l=null}),te())},i(o){i||(m(e.$$.fragment,o),m(l),i=!0)},o(o){_(e.$$.fragment,o),_(l),i=!1},d(o){E(e,o),o&&b(t),l&&l.d(o),o&&b(n)}}}function Tae(r,e,t){let n,i;fe(r,He,u=>t(2,n=u)),fe(r,ri,u=>t(3,i=u));let{layout:l}=e,{border:s}=e;const o=h8(),a=()=>{He.actions.layouts.select(l._id)};return r.$$set=u=>{"layout"in u&&t(0,l=u.layout),"border"in u&&t(1,s=u.border)},[l,s,n,i,o,a]}class Iae extends ie{constructor(e){super();le(this,e,Tae,Oae,re,{layout:0,border:1})}}function Lae(r){let e,t,n;function i(s){r[2](s)}let l={thin:!0,label:"Name"};return r[0]!==void 0&&(l.value=r[0]),e=new tt({props:l}),Z.push(()=>ce(e,"value",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o&1&&(t=!0,a.value=s[0],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){E(e,s)}}}function Pae(r){let e,t;return e=new Bt({props:{title:"Create Layout",confirmText:"Create",onConfirm:r[1],$$slots:{default:[Lae]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&9&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Nae(r,e,t){let n="";async function i(){try{await He.actions.layouts.save({name:n}),ye.success(`Layout ${n} created successfully`)}catch{ye.error("Error creating layout")}}function l(s){n=s,t(0,n)}return[n,i,l]}class Rae extends ie{constructor(e){super();le(this,e,Nae,Pae,re,{})}}function j8(r,e,t){const n=r.slice();return n[19]=e[t],n[21]=t,n}function Mae(r){let e,t,n,i,l;e=new Qe({props:{value:r[4],label:"Filter by Access",getOptionLabel:Uae,getOptionValue:Fae,options:r[5]}}),e.$on("change",r[9]);function s(a){r[11](a)}let o={placeholder:"Enter a route to search",label:"Search Screens"};return r[6]!==void 0&&(o.value=r[6]),n=new jf({props:o}),Z.push(()=>ce(n,"value",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&16&&(f.value=a[4]),u&32&&(f.options=a[5]),e.$set(f);const c={};!i&&u&64&&(i=!0,c.value=a[6],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function Dae(r){let e,t,n,i,l,s;return t=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[Mae]},$$scope:{ctx:r}}}),l=new hae({}),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),w(i,"class","nav-items-container svelte-1laltek"),w(e,"class","tab-content-padding svelte-1laltek")},m(o,a){$(o,e,a),A(t,e,null),N(e,n),N(e,i),A(l,i,null),r[12](i),s=!0},p(o,a){const u={};a&4194416&&(u.$$scope={dirty:a,ctx:o}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),E(t),E(l),r[12](null)}}}function B8(r,e){let t,n,i;return n=new Iae({props:{layout:e[19],border:e[21]>0}}),{key:r,first:null,c(){t=Ee(),S(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),A(n,l,s),i=!0},p(l,s){e=l;const o={};s&128&&(o.layout=e[19]),s&128&&(o.border=e[21]>0),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(t),E(n,l)}}}function jae(r){let e,t;return e=new Rae({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Bae(r){let e,t,n,i=[],l=new Map,s,o,a,u=r[7].layouts;const f=p=>p[19]._id;for(let p=0;p<u.length;p+=1){let d=j8(r,u,p),g=f(d);l.set(g,i[p]=B8(g,d))}let c={$$slots:{default:[jae]},$$scope:{ctx:r}};return o=new At({props:c}),r[14](o),{c(){e=D("div"),t=D("div"),n=D("div");for(let p=0;p<i.length;p+=1)i[p].c();s=R(),S(o.$$.fragment),w(n,"class","layouts-container svelte-1laltek"),w(t,"class","nav-items-container nav-items-container--layouts svelte-1laltek"),w(e,"class","tab-content-padding svelte-1laltek")},m(p,d){$(p,e,d),N(e,t),N(t,n);for(let g=0;g<i.length;g+=1)i[g].m(n,null);r[13](t),N(e,s),A(o,e,null),a=!0},p(p,d){d&128&&(u=p[7].layouts,ee(),i=er(i,d,f,1,p,u,l,n,jr,B8,null,j8),te());const g={};d&4194304&&(g.$$scope={dirty:d,ctx:p}),o.$set(g)},i(p){if(!a){for(let d=0;d<u.length;d+=1)m(i[d]);m(o.$$.fragment,p),a=!0}},o(p){for(let d=0;d<i.length;d+=1)_(i[d]);_(o.$$.fragment,p),a=!1},d(p){p&&b(e);for(let d=0;d<i.length;d+=1)i[d].d();r[13](null),r[14](null),E(o)}}}function zae(r){let e,t,n,i;return e=new bn({props:{title:"Screens",$$slots:{default:[Dae]},$$scope:{ctx:r}}}),n=new bn({props:{title:"Layouts",$$slots:{default:[Bae]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&4194418&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&4194438&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function qae(r){let e,t,n,i,l,s;return t=new Vr({props:{selected:r[3],$$slots:{default:[zae]},$$scope:{ctx:r}}}),t.$on("select",r[8]),l=new gt({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ct(r[3]==="Layouts"?r[2].show():r[0]())&&(r[3]==="Layouts"?r[2].show():r[0]()).apply(this,arguments)}),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),w(i,"class","add-button svelte-1laltek"),w(e,"class","title svelte-1laltek")},m(o,a){$(o,e,a),A(t,e,null),N(e,n),N(e,i),A(l,i,null),s=!0},p(o,[a]){r=o;const u={};a&8&&(u.selected=r[3]),a&4194550&&(u.$$scope={dirty:a,ctx:r}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),E(t),E(l)}}}const Uae=r=>r.name,Fae=r=>r._id;function Vae(r,e,t){let n,i,l,s,o,a,u,f;fe(r,Ss,P=>t(15,i=P)),fe(r,jt,P=>t(16,l=P)),fe(r,tr,P=>t(10,s=P)),fe(r,Al,P=>t(4,o=P)),fe(r,Zi,P=>t(5,a=P)),fe(r,Hf,P=>t(6,u=P)),fe(r,He,P=>t(7,f=P));let{showModal:c}=e,p;zo("scroll",{scrollTo:P=>{if(!P)return;const M=259,F=32,{scrollLeft:j,scrollTop:B,offsetHeight:q}=p;let G=p.getBoundingClientRect(),Y={};const U=P.left+P.width+j+20;U>M?Y.left=U-M:Y.left=0,Y.left===j&&delete Y.left;const H=P.top-(G==null?void 0:G.top)+B;H>B+q-2*F?Y.top=H-q+2*F:H<B+F?Y.top=H-F:delete Y.top,!(Y.left==null&&Y.top==null)&&p.scroll(lt(Se({},Y),{behavior:"smooth"}))}});const g=[{title:"Screens",key:"screen"},{title:"Layouts",key:"layout"}];let h;const v=({detail:P})=>{const{key:M}=g.find(F=>F.title===P);l(`../${M}`)},C=P=>{var j;const M=P.detail,F=(j=i.find(B=>B.routing.roleId===M))==null?void 0:j._id;F?He.actions.screens.select(F):He.update(B=>(B.selectedScreenId=null,B)),Al.set(M)};Ft(async()=>{try{await He.actions.routing.fetch()}catch{ye.error("Error fetching routes")}});function y(P){u=P,Hf.set(u)}function I(P){Z[P?"unshift":"push"](()=>{p=P,t(1,p)})}function O(P){Z[P?"unshift":"push"](()=>{p=P,t(1,p)})}function T(P){Z[P?"unshift":"push"](()=>{h=P,t(2,h)})}return r.$$set=P=>{"showModal"in P&&t(0,c=P.showModal)},r.$$.update=()=>{var P;r.$$.dirty&1024&&t(3,n=((P=g.find(M=>M.key===s.assetType))==null?void 0:P.title)||"Screens")},[c,p,h,n,o,a,u,f,v,C,s,y,I,O,T]}class Hae extends ie{constructor(e){super();le(this,e,Vae,qae,re,{showModal:0})}}function Wae(r){let e,t,n;return t=new Qe({props:{value:r[0].theme,options:r[1],placeholder:null}}),t.$on("change",r[3]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","svelte-12k7lrs")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.value=i[0].theme),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Gae(r,e,t){let n;fe(r,He,o=>t(0,n=o));const i=[{label:"Lightest",value:"spectrum--lightest"},{label:"Light",value:"spectrum--light"},{label:"Dark",value:"spectrum--dark"},{label:"Darkest",value:"spectrum--darkest"}],l=async o=>{try{await He.actions.theme.save(o),await He.actions.customTheme.save(lt(Se({},it(He).customTheme),{navBackground:o==="spectrum--light"?"var(--spectrum-global-color-gray-50)":"var(--spectrum-global-color-gray-100)"}))}catch{ye.error("Error updating theme")}};return[n,i,l,o=>l(o.detail)]}class z8 extends ie{constructor(e){super();le(this,e,Gae,Wae,re,{})}}function Yae(r){let e;return{c(){e=V("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jae(r){let e;return{c(){e=V("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qae(r){let e;return{c(){e=V("Button roundness")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xae(r){let e;return{c(){e=V("Accent color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Kae(r){let e;return{c(){e=V("Accent color (hover)")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Zae(r){let e;return{c(){e=V("Navigation bar background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xae(r){let e;return{c(){e=V("Navigation bar text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function eue(r){var W,Q,se,K,ne;let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,y,I,O,T,P,M,F,j,B,q,G,Y,U,H;return t=new Ze({props:{size:"L",$$slots:{default:[Jae]},$$scope:{ctx:r}}}),i=new z8({}),o=new Ze({props:{size:"L",$$slots:{default:[Qae]},$$scope:{ctx:r}}}),f=new Qe({props:{placeholder:null,value:((W=r[1].customTheme)==null?void 0:W.buttonBorderRadius)||r[2].buttonBorderRadius,options:r[3]}}),f.$on("change",r[4]("buttonBorderRadius")),d=new Ze({props:{size:"L",$$slots:{default:[Xae]},$$scope:{ctx:r}}}),h=new Jl({props:{spectrumTheme:r[1].theme,value:((Q=r[1].customTheme)==null?void 0:Q.primaryColor)||r[2].primaryColor}}),h.$on("change",r[4]("primaryColor")),y=new Ze({props:{size:"L",$$slots:{default:[Kae]},$$scope:{ctx:r}}}),O=new Jl({props:{spectrumTheme:r[1].theme,value:((se=r[1].customTheme)==null?void 0:se.primaryColorHover)||r[2].primaryColorHover}}),O.$on("change",r[4]("primaryColorHover")),M=new Ze({props:{size:"L",$$slots:{default:[Zae]},$$scope:{ctx:r}}}),j=new Jl({props:{spectrumTheme:r[1].theme,value:((K=r[1].customTheme)==null?void 0:K.navBackground)||r[2].navBackground}}),j.$on("change",r[4]("navBackground")),G=new Ze({props:{size:"L",$$slots:{default:[xae]},$$scope:{ctx:r}}}),U=new Jl({props:{spectrumTheme:r[1].theme,value:((ne=r[1].customTheme)==null?void 0:ne.navTextColor)||r[2].navTextColor}}),U.$on("change",r[4]("navTextColor")),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),s=D("div"),S(o.$$.fragment),a=R(),u=D("div"),S(f.$$.fragment),c=R(),p=D("div"),S(d.$$.fragment),g=R(),S(h.$$.fragment),v=R(),C=D("div"),S(y.$$.fragment),I=R(),S(O.$$.fragment),T=R(),P=D("div"),S(M.$$.fragment),F=R(),S(j.$$.fragment),B=R(),q=D("div"),S(G.$$.fragment),Y=R(),S(U.$$.fragment),w(e,"class","setting svelte-16s1p8l"),w(u,"class","select-wrapper svelte-16s1p8l"),w(s,"class","setting svelte-16s1p8l"),w(p,"class","setting svelte-16s1p8l"),w(C,"class","setting svelte-16s1p8l"),w(P,"class","setting svelte-16s1p8l"),w(q,"class","setting svelte-16s1p8l")},m(ae,_e){$(ae,e,_e),A(t,e,null),N(e,n),A(i,e,null),$(ae,l,_e),$(ae,s,_e),A(o,s,null),N(s,a),N(s,u),A(f,u,null),$(ae,c,_e),$(ae,p,_e),A(d,p,null),N(p,g),A(h,p,null),$(ae,v,_e),$(ae,C,_e),A(y,C,null),N(C,I),A(O,C,null),$(ae,T,_e),$(ae,P,_e),A(M,P,null),N(P,F),A(j,P,null),$(ae,B,_e),$(ae,q,_e),A(G,q,null),N(q,Y),A(U,q,null),H=!0},p(ae,_e){var he,Xe,Mt,qe,pt;const Me={};_e&128&&(Me.$$scope={dirty:_e,ctx:ae}),t.$set(Me);const we={};_e&128&&(we.$$scope={dirty:_e,ctx:ae}),o.$set(we);const $e={};_e&2&&($e.value=((he=ae[1].customTheme)==null?void 0:he.buttonBorderRadius)||ae[2].buttonBorderRadius),f.$set($e);const ge={};_e&128&&(ge.$$scope={dirty:_e,ctx:ae}),d.$set(ge);const Ne={};_e&2&&(Ne.spectrumTheme=ae[1].theme),_e&2&&(Ne.value=((Xe=ae[1].customTheme)==null?void 0:Xe.primaryColor)||ae[2].primaryColor),h.$set(Ne);const Ue={};_e&128&&(Ue.$$scope={dirty:_e,ctx:ae}),y.$set(Ue);const ue={};_e&2&&(ue.spectrumTheme=ae[1].theme),_e&2&&(ue.value=((Mt=ae[1].customTheme)==null?void 0:Mt.primaryColorHover)||ae[2].primaryColorHover),O.$set(ue);const Ce={};_e&128&&(Ce.$$scope={dirty:_e,ctx:ae}),M.$set(Ce);const ke={};_e&2&&(ke.spectrumTheme=ae[1].theme),_e&2&&(ke.value=((qe=ae[1].customTheme)==null?void 0:qe.navBackground)||ae[2].navBackground),j.$set(ke);const ze={};_e&128&&(ze.$$scope={dirty:_e,ctx:ae}),G.$set(ze);const be={};_e&2&&(be.spectrumTheme=ae[1].theme),_e&2&&(be.value=((pt=ae[1].customTheme)==null?void 0:pt.navTextColor)||ae[2].navTextColor),U.$set(be)},i(ae){H||(m(t.$$.fragment,ae),m(i.$$.fragment,ae),m(o.$$.fragment,ae),m(f.$$.fragment,ae),m(d.$$.fragment,ae),m(h.$$.fragment,ae),m(y.$$.fragment,ae),m(O.$$.fragment,ae),m(M.$$.fragment,ae),m(j.$$.fragment,ae),m(G.$$.fragment,ae),m(U.$$.fragment,ae),H=!0)},o(ae){_(t.$$.fragment,ae),_(i.$$.fragment,ae),_(o.$$.fragment,ae),_(f.$$.fragment,ae),_(d.$$.fragment,ae),_(h.$$.fragment,ae),_(y.$$.fragment,ae),_(O.$$.fragment,ae),_(M.$$.fragment,ae),_(j.$$.fragment,ae),_(G.$$.fragment,ae),_(U.$$.fragment,ae),H=!1},d(ae){ae&&b(e),E(t),E(i),ae&&b(l),ae&&b(s),E(o),E(f),ae&&b(c),ae&&b(p),E(d),E(h),ae&&b(v),ae&&b(C),E(y),E(O),ae&&b(T),ae&&b(P),E(M),E(j),ae&&b(B),ae&&b(q),E(G),E(U)}}}function tue(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[eue]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&130&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function nue(r){let e;return{c(){e=V("Reset")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rue(r){let e,t,n;return t=new ut({props:{secondary:!0,quiet:!0,$$slots:{default:[nue]},$$scope:{ctx:r}}}),t.$on("click",r[5]),{c(){e=D("div"),S(t.$$.fragment),w(e,"slot","footer")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&128&&(s.$$scope={dirty:l,ctx:i}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function iue(r){let e,t;return e=new Bt({props:{showConfirmButton:!1,cancelText:"View changes",showCloseIcon:!1,title:"Theme settings",$$slots:{footer:[rue],default:[tue]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&130&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function lue(r){let e,t,n,i,l;t=new Yt({props:{icon:"Brush",$$slots:{default:[Yae]},$$scope:{ctx:r}}}),t.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)});let s={$$slots:{default:[iue]},$$scope:{ctx:r}};return i=new At({props:s}),r[6](i),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),w(e,"class","container svelte-16s1p8l")},m(o,a){$(o,e,a),A(t,e,null),$(o,n,a),A(i,o,a),l=!0},p(o,[a]){r=o;const u={};a&128&&(u.$$scope={dirty:a,ctx:r}),t.$set(u);const f={};a&130&&(f.$$scope={dirty:a,ctx:r}),i.$set(f)},i(o){l||(m(t.$$.fragment,o),m(i.$$.fragment,o),l=!0)},o(o){_(t.$$.fragment,o),_(i.$$.fragment,o),l=!1},d(o){o&&b(e),E(t),o&&b(n),r[6](null),E(i,o)}}}function sue(r,e,t){let n;fe(r,He,f=>t(1,n=f));let i;const l={primaryColor:"var(--spectrum-global-color-blue-600)",primaryColorHover:"var(--spectrum-global-color-blue-500)",buttonBorderRadius:"16px",navBackground:"var(--spectrum-global-color-gray-50)",navTextColor:"var(--spectrum-global-color-gray-800)"},s=[{label:"None",value:"0"},{label:"Small",value:"4px"},{label:"Medium",value:"8px"},{label:"Large",value:"16px"}],o=f=>async c=>{try{He.actions.customTheme.save(lt(Se({},it(He).customTheme),{[f]:c.detail}))}catch{ye.error("Error updating custom theme")}},a=()=>{try{const f=it(He).theme;He.actions.customTheme.save(lt(Se({},l),{navBackground:f==="spectrum--light"?"var(--spectrum-global-color-gray-50)":"var(--spectrum-global-color-gray-100)"}))}catch{ye.error("Error saving custom theme")}};function u(f){Z[f?"unshift":"push"](()=>{i=f,t(0,i)})}return[i,n,l,s,o,a,u]}class oue extends ie{constructor(e){super();le(this,e,sue,lue,re,{})}}function aue(r){let e,t,n,i,l,s;return e=new Yt({props:{icon:"DeviceDesktop",selected:r[0].previewDevice==="desktop"}}),e.$on("click",r[1]),n=new Yt({props:{icon:"DeviceTablet",selected:r[0].previewDevice==="tablet"}}),n.$on("click",r[2]),l=new Yt({props:{icon:"DevicePhone",selected:r[0].previewDevice==="mobile"}}),l.$on("click",r[3]),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(o,a){A(e,o,a),$(o,t,a),A(n,o,a),$(o,i,a),A(l,o,a),s=!0},p(o,a){const u={};a&1&&(u.selected=o[0].previewDevice==="desktop"),e.$set(u);const f={};a&1&&(f.selected=o[0].previewDevice==="tablet"),n.$set(f);const c={};a&1&&(c.selected=o[0].previewDevice==="mobile"),l.$set(c)},i(o){s||(m(e.$$.fragment,o),m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){E(e,o),o&&b(t),E(n,o),o&&b(i),E(l,o)}}}function uue(r){let e,t;return e=new yp({props:{compact:!0,$$slots:{default:[aue]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&17&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function fue(r,e,t){let n;return fe(r,He,o=>t(0,n=o)),[n,()=>He.actions.preview.setDevice("desktop"),()=>He.actions.preview.setDevice("tablet"),()=>He.actions.preview.setDevice("mobile")]}class cue extends ie{constructor(e){super();le(this,e,fue,uue,re,{})}}var j1="/builder/assets/bb-space-man.5be51a45.svg";function pue(r){return r.map(e=>({name:`${e.name} - Detail`,create:()=>_ue(e),id:due,table:e.name}))}const due="ROW_DETAIL_TEMPLATE",mue=r=>Es(`/${r.name}/:id`);function gue(r,e,t,n){const i=$6(r,t),l=new Qn("@budibase/standard-components/button").text("Delete").customProps({type:"secondary",quiet:!0,size:"M",onClick:[{parameters:{tableId:r._id,rowId:`{{ ${hn(n)}.${hn("_id")} }}`,revId:`{{ ${hn(n)}.${hn("_rev")} }}`,confirm:!0},"##eventHandlerType":"Delete Row"},{parameters:{url:Zf(r)},"##eventHandlerType":"Navigate To"}]}).instanceName("Delete Button"),s=new Qn("@budibase/standard-components/container").instanceName("Button Container").customProps({direction:"row",hAlign:"right",vAlign:"middle",size:"shrink",gap:"M"}).addChild(l).addChild(i);return b6(e).addChild(s)}const _ue=r=>{const e=new Qn("@budibase/standard-components/dataprovider").instanceName("Data Provider").customProps({dataSource:{label:r.name,name:r._id,tableId:r._id,type:"table"},filter:[{field:"_id",operator:"equal",type:"string",value:`{{ ${hn("url")}.${hn("id")} }}`,valueType:"Binding"}],limit:1,paginate:!1}),t=new Qn("@budibase/standard-components/repeater").instanceName("Repeater").customProps({dataProvider:`{{ literal ${hn(e._json._id)} }}`,noRowsMessage:"We couldn't find a row to display"}),n=_6().instanceName("Form").customProps({actionType:"Update",size:"spectrum--medium",dataSource:{label:r.name,tableId:r._id,type:"table"}}),i=new Qn("@budibase/standard-components/fieldgroup").instanceName("Field Group").customProps({labelPosition:"left"}),l={type:"table",tableId:r._id};E1(l).forEach(u=>{i.addChild(u)});const s=n._json._id,o=t._json._id,a=r.primaryDisplay?`{{ ${hn(o)}.${hn(r.primaryDisplay)} }}`:null;return n.addChild(h6(r.name,a||"Edit")).addChild(gue(r,a||"Edit Row",s,o)).addChild(i),t.addChild(n),e.addChild(t),new Pa().instanceName(`${r.name} - Detail`).route(mue(r)).customProps({hAlign:"center"}).addChild(e).json()};var hue={name:"Create from scratch",id:"createFromScratch",create:()=>$ue(),table:"Create from scratch"};const $ue=()=>new Pa().instanceName("New Screen").json(),bue=r=>[...hee(r),...pue(r),...wee(r)],vue=(r,e)=>()=>{const t=e.create();return t.name=t.props._id,t.routing.route=t.routing.route.toLowerCase(),t.template=e.id,t};var q8=(r,e)=>{const t=l=>lt(Se({},l),{create:vue(r,l)}),n=t(hue),i=bue(e).map(t);return[n,...i.sort((l,s)=>l.name>s.name?1:-1)]};function U8(r,e,t){const n=r.slice();return n[17]=e[t],n}function wue(r){let e;return{c(){e=V(`Please select the screens you would like to add to your application.
@@ -1242,7 +1242,7 @@ function print() { __p += __j.call(arguments, '') }
1242
1242
  This action cannot be undone.`)},m(o,a){$(o,e,a),$(o,t,a),N(t,i),N(t,l),$(o,s,a)},p(o,a){a&1&&n!==(n=o[0].name+"")&&Te(i,n)},d(o){o&&b(e),o&&b(t),o&&b(s)}}}function ade(r){let e,t,n,i,l,s;e=new wr({props:{$$slots:{control:[sde],default:[lde]},$$scope:{ctx:r}}});let o={okText:"Delete Automation",onOk:r[3],title:"Confirm Deletion",$$slots:{default:[ode]},$$scope:{ctx:r}};n=new _r({props:o}),r[4](n);let a={automation:r[0]};return l=new nde({props:a}),r[5](l),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){const c={};f&134&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f&129&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f&1&&(d.automation=u[0]),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),r[4](null),E(n,u),u&&b(i),r[5](null),E(l,u)}}}function ude(r,e,t){let n;fe(r,jt,f=>t(6,n=f));let{automation:i}=e,l,s;async function o(){try{await Zt.actions.delete(i),ye.success("Automation deleted successfully"),n("../automate")}catch{ye.error("Error deleting automation")}}function a(f){Z[f?"unshift":"push"](()=>{l=f,t(1,l)})}function u(f){Z[f?"unshift":"push"](()=>{s=f,t(2,s)})}return r.$$set=f=>{"automation"in f&&t(0,i=f.automation)},[i,l,s,o,a,u]}class fde extends ie{constructor(e){super();le(this,e,ude,ade,re,{automation:0})}}function jy(r,e,t){const n=r.slice();return n[5]=e[t],n[7]=t,n}function cde(r){let e,t,n;return e=new fde({props:{automation:r[5]}}),{c(){S(e.$$.fragment),t=R()},m(i,l){A(e,i,l),$(i,t,l),n=!0},p(i,l){const s={};l&1&&(s.automation=i[5]),e.$set(s)},i(i){n||(m(e.$$.fragment,i),n=!0)},o(i){_(e.$$.fragment,i),n=!1},d(i){E(e,i),i&&b(t)}}}function By(r){let e,t;function n(){return r[3](r[5])}return e=new Tl({props:{border:r[7]>0,icon:"ShareAndroid",text:r[5].name,selected:r[5]._id===r[1],$$slots:{default:[cde]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&1&&(s.text=r[5].name),l&3&&(s.selected=r[5]._id===r[1]),l&257&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function pde(r){let e,t,n=r[0].automations,i=[];for(let s=0;s<n.length;s+=1)i[s]=By(jy(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","automations-list svelte-g64vb")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,[o]){if(o&7){n=s[0].automations;let a;for(a=0;a<n.length;a+=1){const u=jy(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=By(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(ee(),a=n.length;a<i.length;a+=1)l(a);te()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),$t(i,s)}}}function dde(r,e,t){let n,i,l;fe(r,jt,a=>t(4,i=a)),fe(r,Zt,a=>t(0,l=a)),Ft(async()=>{try{await Zt.actions.fetch()}catch{ye.error("Error getting automations list")}});function s(a){Zt.actions.select(a),i(`./${a._id}`)}const o=a=>s(a);return r.$$.update=()=>{var a,u;r.$$.dirty&1&&t(1,n=(u=(a=l.selectedAutomation)==null?void 0:a.automation)==null?void 0:u._id)},[l,n,s,o]}class mde extends ie{constructor(e){super();le(this,e,dde,pde,re,{})}}function zy(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n}function gde(r){let e;return{c(){e=V(`Please name your automation, then select a trigger. Every automation must
1243
1243
  start with a trigger.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function _de(r){let e;return{c(){e=V("Triggers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hde(r){let e=r[18].name+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&8&&e!==(e=n[18].name+"")&&Te(t,e)},d(n){n&&b(t)}}}function qy(r){let e,t,n,i,l,s,o,a,u,f;n=new gt({props:{name:r[18].icon}}),s=new Ke({props:{size:"S",$$slots:{default:[hde]},$$scope:{ctx:r}}});function c(){return r[13](r[18])}return{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("span"),S(s.$$.fragment),o=R(),w(l,"class","icon-spacing svelte-d3iboa"),w(t,"class","item-body svelte-d3iboa"),w(e,"class","item svelte-d3iboa"),oe(e,"selected",r[2]===r[18].name)},m(p,d){$(p,e,d),N(e,t),A(n,t,null),N(t,i),N(t,l),A(s,l,null),N(e,o),a=!0,u||(f=Pe(e,"click",c),u=!0)},p(p,d){r=p;const g={};d&8&&(g.name=r[18].icon),n.$set(g);const h={};d&2097160&&(h.$$scope={dirty:d,ctx:r}),s.$set(h),d&12&&oe(e,"selected",r[2]===r[18].name)},i(p){a||(m(n.$$.fragment,p),m(s.$$.fragment,p),a=!0)},o(p){_(n.$$.fragment,p),_(s.$$.fragment,p),a=!1},d(p){p&&b(e),E(n),E(s),u=!1,f()}}}function $de(r){let e,t,n,i;e=new Ke({props:{size:"S",$$slots:{default:[_de]},$$scope:{ctx:r}}});let l=r[3],s=[];for(let a=0;a<l.length;a+=1)s[a]=qy(zy(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){S(e.$$.fragment),t=R(),n=D("div");for(let a=0;a<s.length;a+=1)s[a].c();w(n,"class","item-list svelte-d3iboa")},m(a,u){A(e,a,u),$(a,t,u),$(a,n,u);for(let f=0;f<s.length;f+=1)s[f].m(n,null);i=!0},p(a,u){const f={};if(u&2097152&&(f.$$scope={dirty:u,ctx:a}),e.$set(f),u&76){l=a[3];let c;for(c=0;c<l.length;c+=1){const p=zy(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=qy(p),s[c].c(),m(s[c],1),s[c].m(n,null))}for(ee(),c=l.length;c<s.length;c+=1)o(c);te()}},i(a){if(!i){m(e.$$.fragment,a);for(let u=0;u<l.length;u+=1)m(s[u]);i=!0}},o(a){_(e.$$.fragment,a),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);i=!1},d(a){E(e,a),a&&b(t),a&&b(n),$t(s,a)}}}function bde(r){let e,t,n,i,l,s,o,a,u,f;e=new i1({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),n=new Ke({props:{size:"XS",$$slots:{default:[gde]},$$scope:{ctx:r}}});function c(g){r[10](g)}function p(g){r[11](g)}let d={label:"Name"};return r[0]!==void 0&&(d.value=r[0]),r[4]!==void 0&&(d.error=r[4]),l=new tt({props:d}),Z.push(()=>ce(l,"value",c)),Z.push(()=>ce(l,"error",p)),l.$on("change",r[12]),u=new Ye({props:{noPadding:!0,$$slots:{default:[$de]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),a=R(),S(u.$$.fragment)},m(g,h){A(e,g,h),$(g,t,h),A(n,g,h),$(g,i,h),A(l,g,h),$(g,a,h),A(u,g,h),f=!0},p(g,h){const v={};h&2097152&&(v.$$scope={dirty:h,ctx:g}),n.$set(v);const C={};!s&&h&1&&(s=!0,C.value=g[0],pe(()=>s=!1)),!o&&h&16&&(o=!0,C.error=g[4],pe(()=>o=!1)),l.$set(C);const y={};h&2097164&&(y.$$scope={dirty:h,ctx:g}),u.$set(y)},i(g){f||(m(e.$$.fragment,g),m(n.$$.fragment,g),m(l.$$.fragment,g),m(u.$$.fragment,g),f=!0)},o(g){_(e.$$.fragment,g),_(n.$$.fragment,g),_(l.$$.fragment,g),_(u.$$.fragment,g),f=!1},d(g){E(e,g),g&&b(t),E(n,g),g&&b(i),E(l,g),g&&b(a),E(u,g)}}}function vde(r){let e,t;return e=new Bt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:r[5],disabled:!r[2]||!r[0],$$slots:{default:[bde]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&5&&(l.disabled=!n[2]||!n[0]),i&2097183&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function wde(r,e,t){let n,i,l,s,o,a;fe(r,Zt,O=>t(8,s=O)),fe(r,jt,O=>t(16,o=O)),fe(r,ks,O=>t(9,a=O));let u,f,c=!1,p,{webhookModal:d}=e;async function g(){var O;try{await Zt.actions.create({name:u,instanceId:n});const T=s.selectedAutomation.constructBlock("TRIGGER",p.stepId,p);Zt.actions.addBlockToAutomation(T),p.stepId==="WEBHOOK"&&d.show,await Zt.actions.save((O=s.selectedAutomation)==null?void 0:O.automation),ye.success(`Automation ${u} created`),o(`./${s.selectedAutomation.automation._id}`),Un.captureEvent(Jn.AUTOMATION.CREATED,{name:u})}catch{ye.error("Error creating automation")}}const h=O=>{p=O,t(2,f=O.name)};function v(O){u=O,t(0,u)}function C(O){i=O,t(4,i),t(1,c),t(0,u)}const y=()=>t(1,c=!0),I=O=>h(O);return r.$$set=O=>{"webhookModal"in O&&t(7,d=O.webhookModal)},r.$$.update=()=>{r.$$.dirty&512&&(n=a._id),r.$$.dirty&3&&t(4,i=c&&!u?"Please specify a name for the automation.":null),r.$$.dirty&256&&t(3,l=Object.entries(s.blockDefinitions.TRIGGER))},[u,c,f,l,i,g,h,d,s,a,v,C,y,I]}class Uy extends ie{constructor(e){super();le(this,e,wde,vde,re,{webhookModal:7})}}function yde(r){let e,t;return e=new Uy({props:{webhookModal:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.webhookModal=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function kde(r){let e,t,n,i;e=new mde({});let l={$$slots:{default:[yde]},$$scope:{ctx:r}};return n=new At({props:l}),r[2](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,o){const a={};o&10&&(a.$$scope={dirty:o,ctx:s}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[2](null),E(n,s)}}}function Cde(r){let e,t;return e=new bn({props:{title:"Automations",$$slots:{default:[kde]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&11&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Sde(r){let e,t,n,i,l,s;return t=new Vr({props:{selected:"Automations",$$slots:{default:[Cde]},$$scope:{ctx:r}}}),l=new gt({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),w(i,"class","add-button svelte-mcmub4"),w(i,"data-cy","new-screen"),w(e,"class","title svelte-mcmub4")},m(o,a){$(o,e,a),A(t,e,null),N(e,n),N(e,i),A(l,i,null),s=!0},p(o,[a]){r=o;const u={};a&11&&(u.$$scope={dirty:a,ctx:r}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),E(t),E(l)}}}function Ade(r,e,t){let{modal:n}=e,{webhookModal:i}=e;function l(s){Z[s?"unshift":"push"](()=>{n=s,t(0,n)})}return r.$$set=s=>{"modal"in s&&t(0,n=s.modal),"webhookModal"in s&&t(1,i=s.webhookModal)},[n,i,l]}class Ede extends ie{constructor(e){super();le(this,e,Ade,Sde,re,{modal:0,webhookModal:1})}}function Ode(r){let e,t,n,i;return n=new Ye({props:{gap:"S",justifyItems:"center",$$slots:{default:[Nde]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),w(t,"class","main svelte-16gumu0"),w(e,"class","centered svelte-16gumu0")},m(l,s){$(l,e,s),N(e,t),A(n,t,null),i=!0},p(l,s){const o={};s&257&&(o.$$scope={dirty:s,ctx:l}),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(e),E(n)}}}function Tde(r){let e;const t=r[4].default,n=bt(t,r,r[8],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&256)&&vt(n,t,i,i[8],e?yt(t,i[8],l,null):wt(i[8]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function Ide(r){let e;return{c(){e=V("You have no automations")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lde(r){let e;return{c(){e=V("Let's fix that. Call the bots!")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Pde(r){let e;return{c(){e=V("Create automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nde(r){let e,t,n,i,l,s,o,a,u;return i=new kt({props:{size:"M",$$slots:{default:[Ide]},$$scope:{ctx:r}}}),s=new Ke({props:{size:"M",$$slots:{default:[Lde]},$$scope:{ctx:r}}}),a=new ut({props:{size:"M",cta:!0,$$slots:{default:[Pde]},$$scope:{ctx:r}}}),a.$on("click",r[5]),{c(){e=me("svg"),t=me("use"),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),Gt(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),w(e,"width","60px"),w(e,"height","60px"),w(e,"class","spectrum-Icon"),w(e,"focusable","false")},m(f,c){$(f,e,c),N(e,t),$(f,n,c),A(i,f,c),$(f,l,c),A(s,f,c),$(f,o,c),A(a,f,c),u=!0},p(f,c){const p={};c&256&&(p.$$scope={dirty:c,ctx:f}),i.$set(p);const d={};c&256&&(d.$$scope={dirty:c,ctx:f}),s.$set(d);const g={};c&256&&(g.$$scope={dirty:c,ctx:f}),a.$set(g)},i(f){u||(m(i.$$.fragment,f),m(s.$$.fragment,f),m(a.$$.fragment,f),u=!0)},o(f){_(i.$$.fragment,f),_(s.$$.fragment,f),_(a.$$.fragment,f),u=!1},d(f){f&&b(e),f&&b(n),E(i,f),f&&b(l),E(s,f),f&&b(o),E(a,f)}}}function Rde(r){let e,t;return e=new Uy({props:{webhookModal:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.webhookModal=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Mde(r){let e,t;return e=new z1({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Dde(r){let e,t,n,i,l,s,o,a,u,f,c,p;n=new Ede({props:{modal:r[0],webhookModal:r[1]}});const d=[Tde,Ode],g=[];function h(y,I){return y[2]?0:1}s=h(r),o=g[s]=d[s](r);let v={$$slots:{default:[Rde]},$$scope:{ctx:r}};u=new At({props:v}),r[6](u);let C={width:"30%",$$slots:{default:[Mde]},$$scope:{ctx:r}};return c=new At({props:C}),r[7](c),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("div"),o.c(),a=R(),S(u.$$.fragment),f=R(),S(c.$$.fragment),w(t,"class","nav svelte-16gumu0"),w(l,"class","content svelte-16gumu0"),w(e,"class","root svelte-16gumu0")},m(y,I){$(y,e,I),N(e,t),A(n,t,null),N(e,i),N(e,l),g[s].m(l,null),N(e,a),A(u,e,null),N(e,f),A(c,e,null),p=!0},p(y,[I]){const O={};I&1&&(O.modal=y[0]),I&2&&(O.webhookModal=y[1]),n.$set(O);let T=s;s=h(y),s===T?g[s].p(y,I):(ee(),_(g[T],1,1,()=>{g[T]=null}),te(),o=g[s],o?o.p(y,I):(o=g[s]=d[s](y),o.c()),m(o,1),o.m(l,null));const P={};I&258&&(P.$$scope={dirty:I,ctx:y}),u.$set(P);const M={};I&256&&(M.$$scope={dirty:I,ctx:y}),c.$set(M)},i(y){p||(m(n.$$.fragment,y),m(o),m(u.$$.fragment,y),m(c.$$.fragment,y),p=!0)},o(y){_(n.$$.fragment,y),_(o),_(u.$$.fragment,y),_(c.$$.fragment,y),p=!1},d(y){y&&b(e),E(n),g[s].d(),r[6](null),E(u),r[7](null),E(c)}}}function jde(r,e,t){let n,i;fe(r,Zt,p=>t(3,i=p));let{$$slots:l={},$$scope:s}=e,o,a;const u=()=>o.show();function f(p){Z[p?"unshift":"push"](()=>{o=p,t(0,o)})}function c(p){Z[p?"unshift":"push"](()=>{a=p,t(1,a)})}return r.$$set=p=>{"$$scope"in p&&t(8,s=p.$$scope)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=i.automations[0])},[o,a,n,i,l,u,f,c,s]}class Bde extends ie{constructor(e){super();le(this,e,jde,Dde,re,{})}}function zde(r){let e;return{c(){e=V("Publish")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qde(r){let e,t;return e=new Bt({props:{title:"Enjoying Budibase?",size:"L",showConfirmButton:!1,showCancelButton:!1}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Oe,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Ude(r){let e;return{c(){e=D("span"),e.textContent=`The changes you have made will be published to the production version of
1244
1244
  the application.`},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Fde(r){let e,t;return e=new Bt({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:r[2],$$slots:{default:[Ude]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&64&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Vde(r){let e,t,n,i,l,s;e=new ut({props:{secondary:!0,$$slots:{default:[zde]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let o={$$slots:{default:[qde]},$$scope:{ctx:r}};n=new At({props:o}),r[3](n);let a={$$slots:{default:[Fde]},$$scope:{ctx:r}};return l=new At({props:a}),r[4](l),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){r=u;const c={};f&64&&(c.$$scope={dirty:f,ctx:r}),e.$set(c);const p={};f&64&&(p.$$scope={dirty:f,ctx:r}),n.$set(p);const d={};f&64&&(d.$$scope={dirty:f,ctx:r}),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),r[3](null),E(n,u),u&&b(i),r[4](null),E(l,u)}}}function Hde(r,e,t){let n;fe(r,He,u=>t(5,n=u));let i,l;async function s(){try{await xe.deployAppChanges(),Un.captureEvent(Jn.APP.PUBLISHED,{appId:n.appId}),ye.success("Application published successfully")}catch(u){Un.captureException(u),ye.error("Error publishing app")}}function o(u){Z[u?"unshift":"push"](()=>{i=u,t(0,i)})}function a(u){Z[u?"unshift":"push"](()=>{l=u,t(1,l)})}return[i,l,s,o,a]}class Wde extends ie{constructor(e){super();le(this,e,Hde,Vde,re,{})}}function Gde(r){let e,t,n,i,l,s,o;function a(f){r[4](f)}let u={};return r[2]!==void 0&&(u.value=r[2]),l=new tt({props:u}),Z.push(()=>ce(l,"value",a)),{c(){e=D("span"),e.textContent=`The changes you have made will be deleted and the application reverted
1245
- back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),S(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),A(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],pe(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),E(l,f)}}}function Yde(r){let e,t;return e=new Bt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[Gde]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Jde(r){let e,t,n,i;e=new gt({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[Yde]},$$scope:{ctx:r}};return n=new At({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function Qde(r,e,t){let n,i;fe(r,He,f=>t(0,i=f));let l,s;const o=async()=>{try{await xe.revertAppChanges(n);const f=await xe.fetchAppPackage(n);await He.actions.initialise(f),ye.info("Changes reverted successfully")}catch(f){ye.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){Z[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class Xde extends ie{constructor(e){super();le(this,e,Qde,Jde,re,{})}}const Kde="@budibase/client",Zde="1.0.112",xde="MPL-2.0",e1e="dist/budibase-client.js",t1e="dist/budibase-client.js",n1e="module",r1e="src/index.js",i1e={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},l1e={build:"rollup -c","dev:builder":"rollup -cw"},s1e={"@budibase/bbui":"^1.0.112","@budibase/frontend-core":"^1.0.112","@budibase/string-templates":"^1.0.112","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},o1e={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},a1e="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var q1={name:Kde,version:Zde,license:xde,module:e1e,main:t1e,type:n1e,svelte:r1e,exports:i1e,scripts:l1e,dependencies:s1e,devDependencies:o1e,gitHead:a1e};function u1e(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[c1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function f1e(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[p1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function c1e(r){let e,t,n=r[0].version+"",i,l;return{c(){e=V("This app is currently using version "),t=D("b"),i=V(n),l=V(` which is the
1245
+ back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),S(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),A(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],pe(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),E(l,f)}}}function Yde(r){let e,t;return e=new Bt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[Gde]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Jde(r){let e,t,n,i;e=new gt({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[Yde]},$$scope:{ctx:r}};return n=new At({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function Qde(r,e,t){let n,i;fe(r,He,f=>t(0,i=f));let l,s;const o=async()=>{try{await xe.revertAppChanges(n);const f=await xe.fetchAppPackage(n);await He.actions.initialise(f),ye.info("Changes reverted successfully")}catch(f){ye.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){Z[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class Xde extends ie{constructor(e){super();le(this,e,Qde,Jde,re,{})}}const Kde="@budibase/client",Zde="1.0.113",xde="MPL-2.0",e1e="dist/budibase-client.js",t1e="dist/budibase-client.js",n1e="module",r1e="src/index.js",i1e={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},l1e={build:"rollup -c","dev:builder":"rollup -cw"},s1e={"@budibase/bbui":"^1.0.113","@budibase/frontend-core":"^1.0.113","@budibase/string-templates":"^1.0.113","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},o1e={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},a1e="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var q1={name:Kde,version:Zde,license:xde,module:e1e,main:t1e,type:n1e,svelte:r1e,exports:i1e,scripts:l1e,dependencies:s1e,devDependencies:o1e,gitHead:a1e};function u1e(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[c1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function f1e(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[p1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function c1e(r){let e,t,n=r[0].version+"",i,l;return{c(){e=V("This app is currently using version "),t=D("b"),i=V(n),l=V(` which is the
1246
1246
  latest version available.`)},m(s,o){$(s,e,o),$(s,t,o),N(t,i),$(s,l,o)},p(s,o){o&1&&n!==(n=s[0].version+"")&&Te(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function p1e(r){let e,t,n=r[0].version+"",i,l,s,o;return{c(){e=V("This app is currently using version "),t=D("b"),i=V(n),l=V(`, but version
1247
1247
  `),s=D("b"),s.textContent=`${q1.version}`,o=V(` is available. Updates can contain new features,
1248
1248
  performance improvements and bug fixes.`)},m(a,u){$(a,e,u),$(a,t,u),N(t,i),$(a,l,u),$(a,s,u),$(a,o,u)},p(a,u){u&1&&n!==(n=a[0].version+"")&&Te(i,n)},d(a){a&&b(e),a&&b(t),a&&b(l),a&&b(s),a&&b(o)}}}function Fy(r){let e,t;return e=new Ke({props:{size:"S",$$slots:{default:[d1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function d1e(r){let e,t,n=r[0].revertableVersion+"",i,l;return{c(){e=V(`You can revert this app to version