@budibase/server 1.0.105-alpha.1 → 1.0.105-alpha.4

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 (178) hide show
  1. package/builder/assets/{index.dcfe7af3.js → index.67350356.js} +5 -5
  2. package/builder/assets/{index.ea3718aa.css → index.e054afd8.css} +1 -1
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +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 +1 -1
  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 +1 -1
  150. package/coverage/lcov-report/threads/index.js.html +1 -1
  151. package/coverage/lcov-report/threads/query.js.html +1 -1
  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/dist/package.json +4 -4
  177. package/dist/tsconfig.tsbuildinfo +1 -1
  178. package/package.json +5 -5
@@ -18,7 +18,7 @@ var hS=Object.defineProperty,$S=Object.defineProperties;var bS=Object.getOwnProp
18
18
  ${o[2]?`font-weight:${o[2]};`:""}
19
19
  ${o[3]?`text-align:${o[3]};`:""}
20
20
  `))&&w(e,"style",t),(!i||a&1&&n!==(n="spectrum-Body spectrum-Body--size"+o[0]))&&w(e,"class",n),a&3&&oe(e,"spectrum-Body--serif",o[1])},i(o){i||(m(s,o),i=!0)},o(o){_(s,o),i=!1},d(o){o&&b(e),s&&s.d(o)}}}function wE(r,e,t){let{$$slots:n={},$$scope:i}=e,{size:l="M"}=e,{serif:s=!1}=e,{weight:o=null}=e,{textAlign:a=null}=e;return r.$$set=u=>{"size"in u&&t(0,l=u.size),"serif"in u&&t(1,s=u.serif),"weight"in u&&t(2,o=u.weight),"textAlign"in u&&t(3,a=u.textAlign),"$$scope"in u&&t(4,i=u.$$scope)},[l,s,o,a,i,n]}class Ke extends ie{constructor(e){super();le(this,e,wE,vE,re,{size:0,serif:1,weight:2,textAlign:3})}}function yE(r){let e,t,n,i;const l=r[4].default,s=bt(l,r,r[3],null);return{c(){e=D("h1"),s&&s.c(),w(e,"style",t=r[1]?`text-align:${r[1]}`:""),w(e,"class",n="spectrum-Heading spectrum-Heading--size"+r[0]),oe(e,"noPadding",r[2])},m(o,a){$(o,e,a),s&&s.m(e,null),i=!0},p(o,[a]){s&&s.p&&(!i||a&8)&&vt(s,l,o,o[3],i?yt(l,o[3],a,null):wt(o[3]),null),(!i||a&2&&t!==(t=o[1]?`text-align:${o[1]}`:""))&&w(e,"style",t),(!i||a&1&&n!==(n="spectrum-Heading spectrum-Heading--size"+o[0]))&&w(e,"class",n),a&5&&oe(e,"noPadding",o[2])},i(o){i||(m(s,o),i=!0)},o(o){_(s,o),i=!1},d(o){o&&b(e),s&&s.d(o)}}}function kE(r,e,t){let{$$slots:n={},$$scope:i}=e,{size:l="M"}=e,{textAlign:s}=e,{noPadding:o=!1}=e;return r.$$set=a=>{"size"in a&&t(0,l=a.size),"textAlign"in a&&t(1,s=a.textAlign),"noPadding"in a&&t(2,o=a.noPadding),"$$scope"in a&&t(3,i=a.$$scope)},[l,s,o,i,n]}class kt extends ie{constructor(e){super();le(this,e,kE,yE,re,{size:0,textAlign:1,noPadding:2})}}const CE=r=>({}),ch=r=>({}),SE=r=>({}),ph=r=>({}),AE=r=>({}),dh=r=>({});function mh(r){let e,t;return e=new Vs({props:{$$slots:{default:[IE]},$$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 EE(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 OE(r){let e;const t=r[6].description,n=bt(t,r,r[7],dh);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&128)&&vt(n,t,i,i[7],e?yt(t,i[7],l,AE):wt(i[7]),dh)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function TE(r){let e;return{c(){e=V("Cancel")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function IE(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;i=new kt({props:{size:"XS",$$slots:{default:[EE]},$$scope:{ctx:r}}}),s=new Ke({props:{size:"S",$$slots:{default:[OE]},$$scope:{ctx:r}}}),u=new ut({props:{secondary:!0,quiet:!0,$$slots:{default:[TE]},$$scope:{ctx:r}}}),u.$on("click",r[2]);const g=r[6].buttons,h=bt(g,r,r[7],ph),v=r[6].body,C=bt(v,r,r[7],ch);return{c(){e=D("section"),t=D("header"),n=D("div"),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),a=D("div"),S(u.$$.fragment),f=R(),h&&h.c(),c=R(),C&&C.c(),w(n,"class","text svelte-1qmvje2"),w(a,"class","buttons svelte-1qmvje2"),w(t,"class","svelte-1qmvje2"),w(e,"class","drawer svelte-1qmvje2"),oe(e,"fillWidth",r[1])},m(y,I){$(y,e,I),N(e,t),N(t,n),A(i,n,null),N(n,l),A(s,n,null),N(t,o),N(t,a),A(u,a,null),N(a,f),h&&h.m(a,null),N(e,c),C&&C.m(e,null),d=!0},p(y,I){const O={};I&129&&(O.$$scope={dirty:I,ctx:y}),i.$set(O);const T={};I&128&&(T.$$scope={dirty:I,ctx:y}),s.$set(T);const P={};I&128&&(P.$$scope={dirty:I,ctx:y}),u.$set(P),h&&h.p&&(!d||I&128)&&vt(h,g,y,y[7],d?yt(g,y[7],I,SE):wt(y[7]),ph),C&&C.p&&(!d||I&128)&&vt(C,v,y,y[7],d?yt(v,y[7],I,CE):wt(y[7]),ch),I&2&&oe(e,"fillWidth",y[1])},i(y){d||(m(i.$$.fragment,y),m(s.$$.fragment,y),m(u.$$.fragment,y),m(h,y),m(C,y),y&&fi(()=>{p||(p=Dr(e,r[4],{},!0)),p.run(1)}),d=!0)},o(y){_(i.$$.fragment,y),_(s.$$.fragment,y),_(u.$$.fragment,y),_(h,y),_(C,y),y&&(p||(p=Dr(e,r[4],{},!1)),p.run(0)),d=!1},d(y){y&&b(e),E(i),E(s),E(u),h&&h.d(y),C&&C.d(y),y&&p&&p.end()}}}function LE(r){let e,t,n=r[3]&&mh(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[3]?n?(n.p(i,l),l&8&&m(n,1)):(n=mh(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 PE(r,e,t){let{$$slots:n={},$$scope:i}=e,{title:l}=e,{fillWidth:s}=e,o=!1;function a(){o||t(3,o=!0)}function u(){!o||t(3,o=!1)}const f=p=>p<.5?2*p*p:1-Math.pow(-2*p+2,2)/2,c=()=>({duration:360,css:p=>`transform: translateY(${100-Math.round(f(p)*100)}%);`});return r.$$set=p=>{"title"in p&&t(0,l=p.title),"fillWidth"in p&&t(1,s=p.fillWidth),"$$scope"in p&&t(7,i=p.$$scope)},[l,s,u,o,c,a,n,i]}class Kr extends ie{constructor(e){super();le(this,e,PE,LE,re,{title:0,fillWidth:1,show:5,hide:2})}get show(){return this.$$.ctx[5]}get hide(){return this.$$.ctx[2]}}const NE=r=>({}),gh=r=>({});function _h(r){let e,t;const n=r[2].sidebar,i=bt(n,r,r[1],gh);return{c(){e=D("div"),i&&i.c(),w(e,"class","sidebar svelte-19qctap")},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,s){i&&i.p&&(!t||s&2)&&vt(i,n,l,l[1],t?yt(n,l[1],s,NE):wt(l[1]),gh)},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function RE(r){let e,t,n,i,l,s=r[0].sidebar&&_h(r);const o=r[2].default,a=bt(o,r,r[1],null);return{c(){e=D("div"),t=D("div"),s&&s.c(),n=R(),i=D("div"),a&&a.c(),w(i,"class","main svelte-19qctap"),w(t,"class","container svelte-19qctap"),oe(t,"no-sidebar",!r[0].sidebar),w(e,"class","drawer-contents svelte-19qctap")},m(u,f){$(u,e,f),N(e,t),s&&s.m(t,null),N(t,n),N(t,i),a&&a.m(i,null),l=!0},p(u,[f]){u[0].sidebar?s?(s.p(u,f),f&1&&m(s,1)):(s=_h(u),s.c(),m(s,1),s.m(t,n)):s&&(ee(),_(s,1,1,()=>{s=null}),te()),a&&a.p&&(!l||f&2)&&vt(a,o,u,u[1],l?yt(o,u[1],f,null):wt(u[1]),null),f&1&&oe(t,"no-sidebar",!u[0].sidebar)},i(u){l||(m(s),m(a,u),l=!0)},o(u){_(s),_(a,u),l=!1},d(u){u&&b(e),s&&s.d(),a&&a.d(u)}}}function ME(r,e,t){let{$$slots:n={},$$scope:i}=e;const l=Bo(n);return r.$$set=s=>{"$$scope"in s&&t(1,i=s.$$scope)},[l,i,n]}class Ai extends ie{constructor(e){super();le(this,e,ME,RE,re,{})}}function hh(r){let e,t;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href","#spectrum-css-icon-CornerTriangle100"),w(e,"class","spectrum-Icon spectrum-UIIcon-CornerTriangle100 spectrum-ActionButton-hold svelte-1ys8i7r"),w(e,"focusable","false"),w(e,"aria-hidden","true")},m(n,i){$(n,e,i),N(e,t)},d(n){n&&b(e)}}}function $h(r){let e,t,n,i;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href",n="#spectrum-icon-18-"+r[5]),w(e,"class",i="spectrum-Icon spectrum-Icon--size"+r[7]+" svelte-1ys8i7r"),w(e,"focusable","false"),w(e,"aria-hidden","true"),w(e,"aria-label",r[5])},m(l,s){$(l,e,s),N(e,t)},p(l,s){s&32&&n!==(n="#spectrum-icon-18-"+l[5])&&Gt(t,"xlink:href",n),s&128&&i!==(i="spectrum-Icon spectrum-Icon--size"+l[7]+" svelte-1ys8i7r")&&w(e,"class",i),s&32&&w(e,"aria-label",l[5])},d(l){l&&b(e)}}}function bh(r){let e,t;const n=r[13].default,i=bt(n,r,r[12],null);return{c(){e=D("span"),i&&i.c(),w(e,"class","spectrum-ActionButton-label svelte-1ys8i7r")},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,s){i&&i.p&&(!t||s&4096)&&vt(i,n,l,l[12],t?yt(n,l[12],s,null):wt(l[12]),null)},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function DE(r){let e,t,n,i,l,s,o,a=r[3]&&hh(),u=r[5]&&$h(r),f=r[11]&&bh(r);return{c(){e=D("button"),a&&a.c(),t=R(),u&&u.c(),n=R(),f&&f.c(),w(e,"data-cy",r[6]),w(e,"class",i="spectrum-ActionButton spectrum-ActionButton--size"+r[7]+" svelte-1ys8i7r"),e.disabled=r[4],oe(e,"spectrum-ActionButton--quiet",r[0]),oe(e,"spectrum-ActionButton--emphasized",r[1]),oe(e,"is-selected",r[2]),oe(e,"fullWidth",r[9]),oe(e,"active",r[8])},m(c,p){$(c,e,p),a&&a.m(e,null),N(e,t),u&&u.m(e,null),N(e,n),f&&f.m(e,null),l=!0,s||(o=[vr(r[10].call(null,e)),Pe(e,"longPress",r[14]),Pe(e,"click",Su(r[15]))],s=!0)},p(c,[p]){c[3]?a||(a=hh(),a.c(),a.m(e,t)):a&&(a.d(1),a=null),c[5]?u?u.p(c,p):(u=$h(c),u.c(),u.m(e,n)):u&&(u.d(1),u=null),c[11]?f?(f.p(c,p),p&2048&&m(f,1)):(f=bh(c),f.c(),m(f,1),f.m(e,null)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),(!l||p&64)&&w(e,"data-cy",c[6]),(!l||p&128&&i!==(i="spectrum-ActionButton spectrum-ActionButton--size"+c[7]+" svelte-1ys8i7r"))&&w(e,"class",i),(!l||p&16)&&(e.disabled=c[4]),p&129&&oe(e,"spectrum-ActionButton--quiet",c[0]),p&130&&oe(e,"spectrum-ActionButton--emphasized",c[1]),p&132&&oe(e,"is-selected",c[2]),p&640&&oe(e,"fullWidth",c[9]),p&384&&oe(e,"active",c[8])},i(c){l||(m(f),l=!0)},o(c){_(f),l=!1},d(c){c&&b(e),a&&a.d(),u&&u.d(),f&&f.d(),s=!1,Tn(o)}}}function jE(r,e,t){let{$$slots:n={},$$scope:i}=e;const l=Bo(n),s=ht();let{quiet:o=!1}=e,{emphasized:a=!1}=e,{selected:u=!1}=e,{longPressable:f=!1}=e,{disabled:c=!1}=e,{icon:p=""}=e,{dataCy:d=null}=e,{size:g="M"}=e,{active:h=!1}=e,{fullWidth:v=!1}=e;function C(O){if(!f)return;let T;const P=()=>{T=setTimeout(()=>{s("longpress")},700)};return O.addEventListener("pointerdown",P),{destroy(){clearTimeout(T),O.removeEventListener("pointerdown",C)}}}function y(O){dt.call(this,r,O)}function I(O){dt.call(this,r,O)}return r.$$set=O=>{"quiet"in O&&t(0,o=O.quiet),"emphasized"in O&&t(1,a=O.emphasized),"selected"in O&&t(2,u=O.selected),"longPressable"in O&&t(3,f=O.longPressable),"disabled"in O&&t(4,c=O.disabled),"icon"in O&&t(5,p=O.icon),"dataCy"in O&&t(6,d=O.dataCy),"size"in O&&t(7,g=O.size),"active"in O&&t(8,h=O.active),"fullWidth"in O&&t(9,v=O.fullWidth),"$$scope"in O&&t(12,i=O.$$scope)},[o,a,u,f,c,p,d,g,h,v,C,l,i,n,y,I]}class Yt extends ie{constructor(e){super();le(this,e,jE,DE,re,{quiet:0,emphasized:1,selected:2,longPressable:3,disabled:4,icon:5,dataCy:6,size:7,active:8,fullWidth:9})}}function BE(r){let e,t,n,i;const l=r[5].default,s=bt(l,r,r[4],null);return{c(){e=D("div"),s&&s.c(),w(e,"class","spectrum-ActionGroup"),oe(e,"spectrum-ActionGroup--vertical",r[0]),oe(e,"spectrum-ActionGroup--justified",r[1]),oe(e,"spectrum-ActionGroup--quiet",r[2]),oe(e,"spectrum-ActionGroup--compact",r[3])},m(o,a){$(o,e,a),s&&s.m(e,null),t=!0,n||(i=vr(zE.call(null,e)),n=!0)},p(o,[a]){s&&s.p&&(!t||a&16)&&vt(s,l,o,o[4],t?yt(l,o[4],a,null):wt(o[4]),null),a&1&&oe(e,"spectrum-ActionGroup--vertical",o[0]),a&2&&oe(e,"spectrum-ActionGroup--justified",o[1]),a&4&&oe(e,"spectrum-ActionGroup--quiet",o[2]),a&8&&oe(e,"spectrum-ActionGroup--compact",o[3])},i(o){t||(m(s,o),t=!0)},o(o){_(s,o),t=!1},d(o){o&&b(e),s&&s.d(o),n=!1,i()}}}function zE(r){Array.from(r.getElementsByTagName("button")).forEach(t=>{t.classList.add("spectrum-ActionGroup-item")})}function qE(r,e,t){let{$$slots:n={},$$scope:i}=e,{vertical:l=!1}=e,{justified:s=!1}=e,{quiet:o=!1}=e,{compact:a=!1}=e;return r.$$set=u=>{"vertical"in u&&t(0,l=u.vertical),"justified"in u&&t(1,s=u.justified),"quiet"in u&&t(2,o=u.quiet),"compact"in u&&t(3,a=u.compact),"$$scope"in u&&t(4,i=u.$$scope)},[l,s,o,a,i,n]}class yp extends ie{constructor(e){super();le(this,e,qE,BE,re,{vertical:0,justified:1,quiet:2,compact:3})}}function UE(r,{anchor:e,align:t}){let n="top",i=0,l=s();function s(){const{bottom:u,top:f,left:c,width:p}=e.getBoundingClientRect(),d=window.innerHeight-u,g=r.getBoundingClientRect();let h;return f>d?(n="bottom",i=f-20,h=window.innerHeight-f+5):(n="top",h=u+5,i=d-20),{[n]:h,left:c,width:p,containerWidth:g.width}}function o(){return t==="right"?l.left+l.width-l.containerWidth:l.left}r.style.position="absolute",r.style.zIndex="9999",r.style.minWidth=`${l.width}px`,r.style.maxHeight=`${i.toFixed(0)}px`,r.style.transformOrigin=`center ${n}`,r.style[n]=`${l[n]}px`,r.style.left=`${o().toFixed(0)}px`;const a=new ResizeObserver(u=>{u.forEach(()=>{l=s(),r.style[n]=`${l[n]}px`,r.style.left=`${o().toFixed(0)}px`})});return a.observe(e),a.observe(r),{destroy(){a.disconnect()}}}function vh(r){let e,t;return e=new Vs({props:{target:r[2],$$slots:{default:[FE]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.target=n[2]),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)}}}function FE(r){let e,t,n,i,l;const s=r[7].default,o=bt(s,r,r[8],null);return{c(){e=D("div"),o&&o.c(),w(e,"tabindex","0"),w(e,"class","spectrum-Popover is-open svelte-17ws8b8"),w(e,"role","presentation")},m(a,u){$(a,e,u),o&&o.m(e,null),n=!0,i||(l=[vr(t=UE.call(null,e,{anchor:r[0],align:r[1]})),vr(Ru.call(null,e,r[3])),Pe(e,"keydown",r[5])],i=!0)},p(a,u){o&&o.p&&(!n||u&256)&&vt(o,s,a,a[8],n?yt(s,a[8],u,null):wt(a[8]),null),t&&ct(t.update)&&u&3&&t.update.call(null,{anchor:a[0],align:a[1]})},i(a){n||(m(o,a),n=!0)},o(a){_(o,a),n=!1},d(a){a&&b(e),o&&o.d(a),i=!1,Tn(l)}}}function VE(r){let e,t,n=r[4]&&vh(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=vh(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 HE(r,e,t){let{$$slots:n={},$$scope:i}=e;const l=ht();let{anchor:s}=e,{align:o="right"}=e,{portalTarget:a}=e;const u=()=>{l("open"),t(4,c=!0)},f=()=>{l("close"),t(4,c=!1)};let c=null;function p(d){c&&d.key==="Escape"&&f()}return r.$$set=d=>{"anchor"in d&&t(0,s=d.anchor),"align"in d&&t(1,o=d.align),"portalTarget"in d&&t(2,a=d.portalTarget),"$$scope"in d&&t(8,i=d.$$scope)},[s,o,a,f,c,p,u,n,i]}class kp extends ie{constructor(e){super();le(this,e,HE,VE,re,{anchor:0,align:1,portalTarget:2,show:6,hide:3})}get show(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[3]}}function WE(r){let e,t;const n=r[1].default,i=bt(n,r,r[0],null);return{c(){e=D("ul"),i&&i.c(),w(e,"class","spectrum-Menu"),w(e,"role","menu")},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,[s]){i&&i.p&&(!t||s&1)&&vt(i,n,l,l[0],t?yt(n,l[0],s,null):wt(l[0]),null)},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function GE(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=l=>{"$$scope"in l&&t(0,i=l.$$scope)},[i,n]}class wh extends ie{constructor(e){super();le(this,e,GE,WE,re,{})}}const YE=r=>({}),yh=r=>({});function JE(r){let e;const t=r[9].default,n=bt(t,r,r[11],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&2048)&&vt(n,t,i,i[11],e?yt(t,i[11],l,null):wt(i[11]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function QE(r){let e,t;return e=new wh({props:{$$slots:{default:[JE]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2048&&(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 XE(r){let e,t,n,i,l,s;const o=r[9].control,a=bt(o,r,r[11],yh);let u={anchor:r[2],align:r[0],portalTarget:r[1],$$slots:{default:[QE]},$$scope:{ctx:r}};return n=new kp({props:u}),r[10](n),{c(){e=D("div"),a&&a.c(),t=R(),S(n.$$.fragment)},m(f,c){$(f,e,c),a&&a.m(e,null),$(f,t,c),A(n,f,c),i=!0,l||(s=[vr(r[4].call(null,e)),Pe(e,"click",r[5])],l=!0)},p(f,[c]){a&&a.p&&(!i||c&2048)&&vt(a,o,f,f[11],i?yt(o,f[11],c,YE):wt(f[11]),yh);const p={};c&4&&(p.anchor=f[2]),c&1&&(p.align=f[0]),c&2&&(p.portalTarget=f[1]),c&2048&&(p.$$scope={dirty:c,ctx:f}),n.$set(p)},i(f){i||(m(a,f),m(n.$$.fragment,f),i=!0)},o(f){_(a,f),_(n.$$.fragment,f),i=!1},d(f){f&&b(e),a&&a.d(f),f&&b(t),r[10](null),E(n,f),l=!1,Tn(s)}}}function KE(r,e,t){let{$$slots:n={},$$scope:i}=e,{disabled:l=!1}=e,{align:s="left"}=e,{portalTarget:o}=e,a,u;function f(h){t(2,a=h.firstChild)}const c=()=>{u.hide()},p=()=>{u.show()},d=h=>{l||(h.stopPropagation(),p())};zo("actionMenu",{show:p,hide:c});function g(h){Z[h?"unshift":"push"](()=>{u=h,t(3,u)})}return r.$$set=h=>{"disabled"in h&&t(6,l=h.disabled),"align"in h&&t(0,s=h.align),"portalTarget"in h&&t(1,o=h.portalTarget),"$$scope"in h&&t(11,i=h.$$scope)},[s,o,a,u,f,d,l,c,p,n,g,i]}class wr extends ie{constructor(e){super();le(this,e,KE,XE,re,{disabled:6,align:0,portalTarget:1,hide:7,show:8})}get hide(){return this.$$.ctx[7]}get show(){return this.$$.ctx[8]}}function ZE(r){let e,t,n,i,l;const s=r[4].default,o=bt(s,r,r[3],null);return{c(){e=D("div"),o&&o.c(),w(e,"class","spectrum-ButtonGroup"),w(e,"style",t=r[1]?`gap: ${r[1]};`:null),oe(e,"spectrum-ButtonGroup--vertical",r[0])},m(a,u){$(a,e,u),o&&o.m(e,null),n=!0,i||(l=vr(xE.call(null,e)),i=!0)},p(a,[u]){o&&o.p&&(!n||u&8)&&vt(o,s,a,a[3],n?yt(s,a[3],u,null):wt(a[3]),null),(!n||u&2&&t!==(t=a[1]?`gap: ${a[1]};`:null))&&w(e,"style",t),u&1&&oe(e,"spectrum-ButtonGroup--vertical",a[0])},i(a){n||(m(o,a),n=!0)},o(a){_(o,a),n=!1},d(a){a&&b(e),o&&o.d(a),i=!1,l()}}}function xE(r){Array.from(r.getElementsByTagName("button")).forEach(t=>{t.classList.add("spectrum-ButtonGroup-item")})}function eO(r,e,t){let n,{$$slots:i={},$$scope:l}=e,{vertical:s=!1}=e,{gap:o=""}=e;return r.$$set=a=>{"vertical"in a&&t(0,s=a.vertical),"gap"in a&&t(2,o=a.gap),"$$scope"in a&&t(3,l=a.$$scope)},r.$$.update=()=>{r.$$.dirty&4&&t(1,n=o==="L"?"var(--spacing-l)":o==="M"?"var(--spacing-m)":o==="S"?"var(--spacing-s)":null)},[s,n,o,l,i]}class kh extends ie{constructor(e){super();le(this,e,eO,ZE,re,{vertical:0,gap:2})}}function Ch(r){let e,t;return{c(){e=D("label"),t=V(r[2]),w(e,"class","spectrum-Switch-label"),w(e,"for",r[1])},m(n,i){$(n,e,i),N(e,t)},p(n,i){i&4&&Te(t,n[2]),i&2&&w(e,"for",n[1])},d(n){n&&b(e)}}}function tO(r){let e,t,n,i,l,s,o,a=r[2]&&Ch(r);return{c(){e=D("div"),t=D("input"),n=R(),i=D("span"),l=R(),a&&a.c(),w(t,"data-cy",r[4]),t.checked=r[0],t.disabled=r[3],w(t,"id",r[1]),w(t,"type","checkbox"),w(t,"class","spectrum-Switch-input svelte-4jr9qa"),w(i,"class","spectrum-Switch-switch"),w(e,"class","spectrum-Switch spectrum-Switch--emphasized")},m(u,f){$(u,e,f),N(e,t),N(e,n),N(e,i),N(e,l),a&&a.m(e,null),s||(o=Pe(t,"change",r[5]),s=!0)},p(u,[f]){f&16&&w(t,"data-cy",u[4]),f&1&&(t.checked=u[0]),f&8&&(t.disabled=u[3]),f&2&&w(t,"id",u[1]),u[2]?a?a.p(u,f):(a=Ch(u),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:Oe,o:Oe,d(u){u&&b(e),a&&a.d(),s=!1,o()}}}function nO(r,e,t){let{value:n=!1}=e,{id:i=null}=e,{text:l=null}=e,{disabled:s=!1}=e,{dataCy:o=null}=e;const a=ht(),u=f=>{a("change",f.target.checked)};return r.$$set=f=>{"value"in f&&t(0,n=f.value),"id"in f&&t(1,i=f.id),"text"in f&&t(2,l=f.text),"disabled"in f&&t(3,s=f.disabled),"dataCy"in f&&t(4,o=f.dataCy)},[n,i,l,s,o,u]}class rO extends ie{constructor(e){super();le(this,e,nO,tO,re,{value:0,id:1,text:2,disabled:3,dataCy:4})}}function iO(r){let e,t;return e=new rO({props:{dataCy:r[6],error:r[5],disabled:r[4],text:r[3],value:r[0]}}),e.$on("change",r[7]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&64&&(l.dataCy=n[6]),i&32&&(l.error=n[5]),i&16&&(l.disabled=n[4]),i&8&&(l.text=n[3]),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 lO(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[2],error:r[5],$$slots:{default:[iO]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&4&&(l.labelPosition=n[2]),i&32&&(l.error=n[5]),i&633&&(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 sO(r,e,t){let{value:n=null}=e,{label:i=null}=e,{labelPosition:l="above"}=e,{text:s=null}=e,{disabled:o=!1}=e,{error:a=null}=e,{dataCy:u=null}=e;const f=ht(),c=p=>{t(0,n=p.detail),f("change",p.detail)};return r.$$set=p=>{"value"in p&&t(0,n=p.value),"label"in p&&t(1,i=p.label),"labelPosition"in p&&t(2,l=p.labelPosition),"text"in p&&t(3,s=p.text),"disabled"in p&&t(4,o=p.disabled),"error"in p&&t(5,a=p.error),"dataCy"in p&&t(6,u=p.dataCy)},[n,i,l,s,o,a,u,c]}class Hn extends ie{constructor(e){super();le(this,e,sO,lO,re,{value:0,label:1,labelPosition:2,text:3,disabled:4,error:5,dataCy:6})}}function Sh(r,e,t){const n=r.slice();return n[11]=e[t],n}function Ah(r){let e,t=r[2],n=[];for(let i=0;i<t.length;i+=1)n[i]=Eh(Sh(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&253){t=i[2];let s;for(s=0;s<t.length;s+=1){const o=Sh(i,t,s);n[s]?n[s].p(o,l):(n[s]=Eh(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 Eh(r){let e,t,n,i,l,s,o,a=r[5](r[11])+"",u,f,c,p,d;return{c(){e=D("div"),t=D("input"),i=R(),l=D("span"),s=R(),o=D("label"),u=V(a),f=R(),t.__value=n=r[6](r[11]),t.value=t.__value,w(t,"type","radio"),w(t,"class","spectrum-Radio-input svelte-s1zsh"),t.disabled=r[4],r[9][0].push(t),w(l,"class","spectrum-Radio-button"),w(o,"for",""),w(o,"class","spectrum-Radio-label"),w(e,"title",c=r[5](r[11])),w(e,"class","spectrum-Radio spectrum-FieldGroup-item spectrum-Radio--emphasized"),oe(e,"is-invalid",!!r[3])},m(g,h){$(g,e,h),N(e,t),t.checked=t.__value===r[0],N(e,i),N(e,l),N(e,s),N(e,o),N(o,u),N(e,f),p||(d=[Pe(t,"change",r[7]),Pe(t,"change",r[8])],p=!0)},p(g,h){h&68&&n!==(n=g[6](g[11]))&&(t.__value=n,t.value=t.__value),h&16&&(t.disabled=g[4]),h&1&&(t.checked=t.__value===g[0]),h&36&&a!==(a=g[5](g[11])+"")&&Te(u,a),h&36&&c!==(c=g[5](g[11]))&&w(e,"title",c),h&8&&oe(e,"is-invalid",!!g[3])},d(g){g&&b(e),r[9][0].splice(r[9][0].indexOf(t),1),p=!1,Tn(d)}}}function oO(r){let e,t=r[2]&&Array.isArray(r[2]),n,i=t&&Ah(r);return{c(){e=D("div"),i&&i.c(),w(e,"class",n=""+(Vn(`spectrum-FieldGroup spectrum-FieldGroup--${r[1]}`)+" svelte-s1zsh"))},m(l,s){$(l,e,s),i&&i.m(e,null)},p(l,[s]){s&4&&(t=l[2]&&Array.isArray(l[2])),t?i?i.p(l,s):(i=Ah(l),i.c(),i.m(e,null)):i&&(i.d(1),i=null),s&2&&n!==(n=""+(Vn(`spectrum-FieldGroup spectrum-FieldGroup--${l[1]}`)+" svelte-s1zsh"))&&w(e,"class",n)},i:Oe,o:Oe,d(l){l&&b(e),i&&i.d()}}}function aO(r,e,t){let{direction:n="vertical"}=e,{value:i=null}=e,{options:l=[]}=e,{error:s=null}=e,{disabled:o=!1}=e,{getOptionLabel:a=g=>g}=e,{getOptionValue:u=g=>g}=e;const f=ht(),c=g=>f("change",g.target.value),p=[[]];function d(){i=this.__value,t(0,i)}return r.$$set=g=>{"direction"in g&&t(1,n=g.direction),"value"in g&&t(0,i=g.value),"options"in g&&t(2,l=g.options),"error"in g&&t(3,s=g.error),"disabled"in g&&t(4,o=g.disabled),"getOptionLabel"in g&&t(5,a=g.getOptionLabel),"getOptionValue"in g&&t(6,u=g.getOptionValue)},[i,n,l,s,o,a,u,c,d,p]}class uO extends ie{constructor(e){super();le(this,e,aO,oO,re,{direction:1,value:0,options:2,error:3,disabled:4,getOptionLabel:5,getOptionValue:6})}}function fO(r){let e,t;return e=new uO({props:{error:r[4],disabled:r[2],value:r[0],options:r[5],direction:r[6],getOptionLabel:r[7],getOptionValue:r[8]}}),e.$on("change",r[9]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.error=n[4]),i&4&&(l.disabled=n[2]),i&1&&(l.value=n[0]),i&32&&(l.options=n[5]),i&64&&(l.direction=n[6]),i&128&&(l.getOptionLabel=n[7]),i&256&&(l.getOptionValue=n[8]),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 cO(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[3],error:r[4],$$slots:{default:[fO]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&8&&(l.labelPosition=n[3]),i&16&&(l.error=n[4]),i&4597&&(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 pO(r,e,t){let{value:n=null}=e,{label:i=null}=e,{disabled:l=!1}=e,{labelPosition:s="above"}=e,{error:o=null}=e,{options:a=[]}=e,{direction:u="vertical"}=e,{getOptionLabel:f=h=>g(h,"label")}=e,{getOptionValue:c=h=>g(h,"value")}=e;const p=ht(),d=h=>{t(0,n=h.detail),p("change",h.detail)},g=(h,v)=>h&&typeof h=="object"?h[v]:h;return r.$$set=h=>{"value"in h&&t(0,n=h.value),"label"in h&&t(1,i=h.label),"disabled"in h&&t(2,l=h.disabled),"labelPosition"in h&&t(3,s=h.labelPosition),"error"in h&&t(4,o=h.error),"options"in h&&t(5,a=h.options),"direction"in h&&t(6,u=h.direction),"getOptionLabel"in h&&t(7,f=h.getOptionLabel),"getOptionValue"in h&&t(8,c=h.getOptionValue)},[n,i,l,s,o,a,u,f,c,d]}class Oh extends ie{constructor(e){super();le(this,e,pO,cO,re,{value:0,label:1,disabled:2,labelPosition:3,error:4,options:5,direction:6,getOptionLabel:7,getOptionValue:8})}}function Th(r){let e,t;return{c(){e=D("span"),t=V(r[3]),w(e,"class","spectrum-Checkbox-label")},m(n,i){$(n,e,i),N(e,t)},p(n,i){i&8&&Te(t,n[3])},d(n){n&&b(e)}}}function dO(r){let e,t,n,i,l,s,o,a,u=r[3]&&Th(r);return{c(){e=D("label"),t=D("input"),n=R(),i=D("span"),i.innerHTML=`<svg class="spectrum-Icon spectrum-UIIcon-Checkmark100 spectrum-Checkbox-checkmark svelte-u1bn8m" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Checkmark100"></use></svg>
21
- <svg class="spectrum-Icon spectrum-UIIcon-Dash100 spectrum-Checkbox-partialCheckmark" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Dash100"></use></svg>`,l=R(),u&&u.c(),t.checked=r[0],t.disabled=r[4],w(t,"type","checkbox"),w(t,"class","spectrum-Checkbox-input svelte-u1bn8m"),w(t,"id",r[2]),w(i,"class","spectrum-Checkbox-box"),w(e,"class",s="spectrum-Checkbox spectrum-Checkbox--emphasized "+r[5]+" svelte-u1bn8m"),oe(e,"is-invalid",!!r[1]),oe(e,"checked",r[0])},m(f,c){$(f,e,c),N(e,t),N(e,n),N(e,i),N(e,l),u&&u.m(e,null),o||(a=Pe(t,"change",r[6]),o=!0)},p(f,[c]){c&1&&(t.checked=f[0]),c&16&&(t.disabled=f[4]),c&4&&w(t,"id",f[2]),f[3]?u?u.p(f,c):(u=Th(f),u.c(),u.m(e,null)):u&&(u.d(1),u=null),c&32&&s!==(s="spectrum-Checkbox spectrum-Checkbox--emphasized "+f[5]+" svelte-u1bn8m")&&w(e,"class",s),c&34&&oe(e,"is-invalid",!!f[1]),c&33&&oe(e,"checked",f[0])},i:Oe,o:Oe,d(f){f&&b(e),u&&u.d(),o=!1,a()}}}function mO(r,e,t){let n,{value:i=!1}=e,{error:l=null}=e,{id:s=null}=e,{text:o=null}=e,{disabled:a=!1}=e,{size:u}=e;const f=ht(),c=p=>{f("change",p.target.checked)};return r.$$set=p=>{"value"in p&&t(0,i=p.value),"error"in p&&t(1,l=p.error),"id"in p&&t(2,s=p.id),"text"in p&&t(3,o=p.text),"disabled"in p&&t(4,a=p.disabled),"size"in p&&t(7,u=p.size)},r.$$.update=()=>{r.$$.dirty&128&&t(5,n=`spectrum-Checkbox--size${u||"M"}`)},[i,l,s,o,a,n,c,u]}class gO extends ie{constructor(e){super();le(this,e,mO,dO,re,{value:0,error:1,id:2,text:3,disabled:4,size:7})}}function _O(r){let e,t;return e=new gO({props:{error:r[5],disabled:r[4],text:r[3],value:r[0],size:r[6]}}),e.$on("change",r[7]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.error=n[5]),i&16&&(l.disabled=n[4]),i&8&&(l.text=n[3]),i&1&&(l.value=n[0]),i&64&&(l.size=n[6]),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 hO(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[2],error:r[5],$$slots:{default:[_O]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&4&&(l.labelPosition=n[2]),i&32&&(l.error=n[5]),i&633&&(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 $O(r,e,t){let{value:n=null}=e,{label:i=null}=e,{labelPosition:l="above"}=e,{text:s=null}=e,{disabled:o=!1}=e,{error:a=null}=e,{size:u="M"}=e;const f=ht(),c=p=>{t(0,n=p.detail),f("change",p.detail)};return r.$$set=p=>{"value"in p&&t(0,n=p.value),"label"in p&&t(1,i=p.label),"labelPosition"in p&&t(2,l=p.labelPosition),"text"in p&&t(3,s=p.text),"disabled"in p&&t(4,o=p.disabled),"error"in p&&t(5,a=p.error),"size"in p&&t(6,u=p.size)},[n,i,l,s,o,a,u,c]}class Zr extends ie{constructor(e){super();le(this,e,$O,hO,re,{value:0,label:1,labelPosition:2,text:3,disabled:4,error:5,size:6})}}function Ih(r){let e,t;return e=new gt({props:{size:"S",name:r[0]?"Remove":"Add"}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.name=n[0]?"Remove":"Add"),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 bO(r){let e,t,n,i,l,s,o,a,u,f,c=r[2]&&Ih(r);const p=r[5].default,d=bt(p,r,r[4],null);return{c(){e=D("div"),t=D("div"),n=D("div"),i=V(r[1]),l=R(),c&&c.c(),s=R(),o=D("div"),d&&d.c(),w(n,"class","name svelte-b94z2e"),w(t,"class","property-group-name svelte-b94z2e"),w(o,"class","property-panel svelte-b94z2e"),oe(o,"show",r[0]||!r[2]),w(e,"class","property-group-container svelte-b94z2e")},m(g,h){$(g,e,h),N(e,t),N(t,n),N(n,i),N(t,l),c&&c.m(t,null),N(e,s),N(e,o),d&&d.m(o,null),a=!0,u||(f=Pe(t,"click",r[3]),u=!0)},p(g,[h]){(!a||h&2)&&Te(i,g[1]),g[2]?c?(c.p(g,h),h&4&&m(c,1)):(c=Ih(g),c.c(),m(c,1),c.m(t,null)):c&&(ee(),_(c,1,1,()=>{c=null}),te()),d&&d.p&&(!a||h&16)&&vt(d,p,g,g[4],a?yt(p,g[4],h,null):wt(g[4]),null),h&5&&oe(o,"show",g[0]||!g[2])},i(g){a||(m(c),m(d,g),a=!0)},o(g){_(c),_(d,g),a=!1},d(g){g&&b(e),c&&c.d(),d&&d.d(g),u=!1,f()}}}function vO(r,e,t){let{$$slots:n={},$$scope:i}=e,{name:l}=e,{show:s=!1}=e,{collapsible:o=!0}=e;const a=ht(),u=()=>{!o||(t(0,s=!s),s&&a("open"))};return r.$$set=f=>{"name"in f&&t(1,l=f.name),"show"in f&&t(0,s=f.show),"collapsible"in f&&t(2,o=f.collapsible),"$$scope"in f&&t(4,i=f.$$scope)},[s,l,o,u,i,n]}class Go extends ie{constructor(e){super();le(this,e,vO,bO,re,{name:1,show:0,collapsible:2})}}function wO(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;return{c(){e=D("div"),t=D("div"),n=R(),i=D("div"),l=D("div"),s=D("div"),o=D("div"),a=R(),u=D("div"),f=D("div"),c=D("div"),w(t,"class","spectrum-ProgressCircle-track"),w(o,"class","spectrum-ProgressCircle-fill"),w(s,"class","spectrum-ProgressCircle-fillSubMask1"),w(s,"style",r[3]),w(l,"class","spectrum-ProgressCircle-fillMask1"),w(c,"class","spectrum-ProgressCircle-fill"),w(f,"class","spectrum-ProgressCircle-fillSubMask2"),w(f,"style",r[4]),w(u,"class","spectrum-ProgressCircle-fillMask2"),w(i,"class","spectrum-ProgressCircle-fills"),w(e,"class",p="spectrum-ProgressCircle spectrum-ProgressCircle--"+Lh(r[0])),oe(e,"spectrum-ProgressCircle--indeterminate",r[1]==null),oe(e,"spectrum-ProgressCircle--overBackground",r[2])},m(h,v){$(h,e,v),N(e,t),N(e,n),N(e,i),N(i,l),N(l,s),N(s,o),N(i,a),N(i,u),N(u,f),N(f,c),d||(g=Pe(e,"click",r[7]),d=!0)},p(h,[v]){v&8&&w(s,"style",h[3]),v&16&&w(f,"style",h[4]),v&1&&p!==(p="spectrum-ProgressCircle spectrum-ProgressCircle--"+Lh(h[0]))&&w(e,"class",p),v&3&&oe(e,"spectrum-ProgressCircle--indeterminate",h[1]==null),v&5&&oe(e,"spectrum-ProgressCircle--overBackground",h[2])},i:Oe,o:Oe,d(h){h&&b(e),d=!1,g()}}}function Lh(r){switch(r){case"S":return"small";case"L":return"large";default:return}}function yO(r,e,t){let{size:n="M"}=e,{value:i=null}=e,{minValue:l=0}=e,{maxValue:s=100}=e,o,a;function u(p){if(p){let d=(p-l)/(s-l)*100,g;d>0&&d<=50?(g=-180+d/50*180,t(3,o=`transform: rotate(${g}deg);`),t(4,a="transform: rotate(-180deg);")):d>50&&(g=-180+(d-50)/50*180,t(3,o="transform: rotate(0deg);"),t(4,a=`transform: rotate(${g}deg);`))}}let{overBackground:f}=e;function c(p){dt.call(this,r,p)}return r.$$set=p=>{"size"in p&&t(0,n=p.size),"value"in p&&t(1,i=p.value),"minValue"in p&&t(5,l=p.minValue),"maxValue"in p&&t(6,s=p.maxValue),"overBackground"in p&&t(2,f=p.overBackground)},r.$$.update=()=>{r.$$.dirty&2&&u(i)},[n,i,f,o,a,l,s,c]}class cs extends ie{constructor(e){super();le(this,e,yO,wO,re,{size:0,value:1,minValue:5,maxValue:6,overBackground:2})}}function kO(r){let e,t,n;const i=r[2].default,l=bt(i,r,r[3],null);return{c(){e=D("label"),l&&l.c(),w(e,"for",""),w(e,"class",t=""+(Vn(`spectrum-FieldLabel spectrum-FieldLabel--size${r[0]}`)+" svelte-jmijfr"))},m(s,o){$(s,e,o),l&&l.m(e,null),n=!0},p(s,o){l&&l.p&&(!n||o&8)&&vt(l,i,s,s[3],n?yt(i,s[3],o,null):wt(s[3]),null),(!n||o&1&&t!==(t=""+(Vn(`spectrum-FieldLabel spectrum-FieldLabel--size${s[0]}`)+" svelte-jmijfr")))&&w(e,"class",t)},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function CO(r){let e,t;return e=new k_({props:{tooltip:r[1],size:r[0],$$slots:{default:[kO]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.tooltip=n[1]),i&1&&(l.size=n[0]),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 SO(r,e,t){let{$$slots:n={},$$scope:i}=e,{size:l="M"}=e,{tooltip:s=""}=e;return r.$$set=o=>{"size"in o&&t(0,l=o.size),"tooltip"in o&&t(1,s=o.tooltip),"$$scope"in o&&t(3,i=o.$$scope)},[l,s,n,i]}class Ze extends ie{constructor(e){super();le(this,e,SO,CO,re,{size:0,tooltip:1})}}function AO(r){let e,t,n;const i=r[9].default,l=bt(i,r,r[8],null);return{c(){e=D("div"),l&&l.c(),Ht(e,"align-content",r[6]),Ht(e,"justify-items",r[7]),w(e,"class",t="container paddingX-"+(!r[3]&&r[1])+" paddingY-"+(!r[3]&&r[2])+" gap-"+(!r[5]&&r[4])+" svelte-gywbrg"),oe(e,"horizontal",r[0])},m(s,o){$(s,e,o),l&&l.m(e,null),n=!0},p(s,[o]){l&&l.p&&(!n||o&256)&&vt(l,i,s,s[8],n?yt(i,s[8],o,null):wt(s[8]),null),(!n||o&64)&&Ht(e,"align-content",s[6]),(!n||o&128)&&Ht(e,"justify-items",s[7]),(!n||o&62&&t!==(t="container paddingX-"+(!s[3]&&s[1])+" paddingY-"+(!s[3]&&s[2])+" gap-"+(!s[5]&&s[4])+" svelte-gywbrg"))&&w(e,"class",t),o&63&&oe(e,"horizontal",s[0])},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function EO(r,e,t){let{$$slots:n={},$$scope:i}=e,{horizontal:l=!1}=e,{paddingX:s="M"}=e,{paddingY:o="M"}=e,{noPadding:a=!1}=e,{gap:u="M"}=e,{noGap:f=!1}=e,{alignContent:c="normal"}=e,{justifyItems:p="stretch"}=e;return r.$$set=d=>{"horizontal"in d&&t(0,l=d.horizontal),"paddingX"in d&&t(1,s=d.paddingX),"paddingY"in d&&t(2,o=d.paddingY),"noPadding"in d&&t(3,a=d.noPadding),"gap"in d&&t(4,u=d.gap),"noGap"in d&&t(5,f=d.noGap),"alignContent"in d&&t(6,c=d.alignContent),"justifyItems"in d&&t(7,p=d.justifyItems),"$$scope"in d&&t(8,i=d.$$scope)},[l,s,o,a,u,f,c,p,i,n]}class Ye extends ie{constructor(e){super();le(this,e,EO,AO,re,{horizontal:0,paddingX:1,paddingY:2,noPadding:3,gap:4,noGap:5,alignContent:6,justifyItems:7})}}function OO(r){let e,t;const n=r[2].default,i=bt(n,r,r[1],null);return{c(){e=D("div"),i&&i.c(),w(e,"class","svelte-1hjm5n6"),oe(e,"wide",r[0])},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,[s]){i&&i.p&&(!t||s&2)&&vt(i,n,l,l[1],t?yt(n,l[1],s,null):wt(l[1]),null),s&1&&oe(e,"wide",l[0])},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function TO(r,e,t){let{$$slots:n={},$$scope:i}=e,{wide:l=!1}=e;return r.$$set=s=>{"wide"in s&&t(0,l=s.wide),"$$scope"in s&&t(1,i=s.$$scope)},[l,i,n]}class Ys extends ie{constructor(e){super();le(this,e,TO,OO,re,{wide:0})}}function Ph(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href",n="#spectrum-icon-18-"+r[1]),w(e,"class","spectrum-Icon spectrum-Icon--sizeS spectrum-Menu-itemIcon svelte-bnymn3"),w(e,"focusable","false"),w(e,"aria-hidden","true"),w(e,"aria-label",r[1])},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&2&&n!==(n="#spectrum-icon-18-"+i[1])&&Gt(t,"xlink:href",n),l&2&&w(e,"aria-label",i[1])},d(i){i&&b(e)}}}function IO(r){let e,t,n,i,l,s,o=r[1]&&Ph(r);const a=r[6].default,u=bt(a,r,r[5],null);return{c(){e=D("li"),o&&o.c(),t=R(),n=D("span"),u&&u.c(),w(n,"class","spectrum-Menu-itemLabel"),w(e,"data-cy",r[0]),w(e,"class","spectrum-Menu-item"),w(e,"role","menuitem"),w(e,"tabindex","0"),oe(e,"is-disabled",r[2])},m(f,c){$(f,e,c),o&&o.m(e,null),N(e,t),N(e,n),u&&u.m(n,null),i=!0,l||(s=Pe(e,"click",Su(function(){ct(r[2]?null:r[3])&&(r[2]?null:r[3]).apply(this,arguments)})),l=!0)},p(f,[c]){r=f,r[1]?o?o.p(r,c):(o=Ph(r),o.c(),o.m(e,t)):o&&(o.d(1),o=null),u&&u.p&&(!i||c&32)&&vt(u,a,r,r[5],i?yt(a,r[5],c,null):wt(r[5]),null),(!i||c&1)&&w(e,"data-cy",r[0]),c&4&&oe(e,"is-disabled",r[2])},i(f){i||(m(u,f),i=!0)},o(f){_(u,f),i=!1},d(f){f&&b(e),o&&o.d(),u&&u.d(f),l=!1,s()}}}function LO(r,e,t){let{$$slots:n={},$$scope:i}=e;const l=ht(),s=Hs("actionMenu");let{dataCy:o}=e,{icon:a=void 0}=e,{disabled:u=void 0}=e,{noClose:f=!1}=e;const c=()=>{s&&!f&&s.hide(),l("click")};return r.$$set=p=>{"dataCy"in p&&t(0,o=p.dataCy),"icon"in p&&t(1,a=p.icon),"disabled"in p&&t(2,u=p.disabled),"noClose"in p&&t(4,f=p.noClose),"$$scope"in p&&t(5,i=p.$$scope)},[o,a,u,c,f,i,n]}class Qt extends ie{constructor(e){super();le(this,e,LO,IO,re,{dataCy:0,icon:1,disabled:2,noClose:4})}}var Cp={Modal:"bbui-modal"};const PO=r=>({}),Nh=r=>({});function NO(r){let e,t;return e=new Vs({props:{target:".modal-container",$$slots:{default:[MO]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};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 RO(r){let e,t,n=r[2]&&Mh(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=Mh(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 Rh(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;const g=r[8].outside,h=bt(g,r,r[9],Nh),v=r[8].default,C=bt(v,r,r[9],null);return{c(){e=D("div"),t=D("div"),n=D("div"),h&&h.c(),i=R(),l=D("div"),C&&C.c(),w(l,"class","spectrum-Modal is-open svelte-usenf5"),w(n,"class","modal-inner-wrapper svelte-usenf5"),w(t,"class","modal-wrapper svelte-usenf5"),w(e,"class","spectrum-Underlay is-open svelte-usenf5")},m(y,I){$(y,e,I),N(e,t),N(t,n),h&&h.m(n,null),N(n,i),N(n,l),C&&C.m(l,null),c=!0,p||(d=[vr(s=r[4].call(null,l)),Pe(n,"mousedown",jo(r[1])),Pe(t,"mousedown",jo(r[1])),Pe(e,"mousedown",jo(r[1]))],p=!0)},p(y,I){h&&h.p&&(!c||I&512)&&vt(h,g,y,y[9],c?yt(g,y[9],I,PO):wt(y[9]),Nh),C&&C.p&&(!c||I&512)&&vt(C,v,y,y[9],c?yt(v,y[9],I,null):wt(y[9]),null)},i(y){c||(m(h,y),m(C,y),fi(()=>{a&&a.end(1),o=Au(l,Jr,{y:30,duration:200}),o.start()}),fi(()=>{f&&f.end(1),u=Au(e,qo,{duration:200}),u.start()}),c=!0)},o(y){_(h,y),_(C,y),o&&o.invalidate(),y&&(a=m_(l,Jr,{y:30,duration:200})),u&&u.invalidate(),y&&(f=m_(e,qo,{duration:200})),c=!1},d(y){y&&b(e),h&&h.d(y),C&&C.d(y),y&&a&&a.end(),y&&f&&f.end(),p=!1,Tn(d)}}}function MO(r){let e,t,n=r[2]&&Rh(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=Rh(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 Mh(r){let e,t,n,i,l;const s=r[8].default,o=bt(s,r,r[9],null);return{c(){e=D("div"),o&&o.c(),w(e,"class","spectrum-Modal inline is-open svelte-usenf5")},m(a,u){$(a,e,u),o&&o.m(e,null),n=!0,i||(l=vr(t=r[4].call(null,e)),i=!0)},p(a,u){o&&o.p&&(!n||u&512)&&vt(o,s,a,a[9],n?yt(s,a[9],u,null):wt(a[9]),null)},i(a){n||(m(o,a),n=!0)},o(a){_(o,a),n=!1},d(a){a&&b(e),o&&o.d(a),i=!1,l()}}}function DO(r){let e,t,n,i,l,s;const o=[RO,NO],a=[];function u(f,c){return f[0]?0:1}return e=u(r),t=a[e]=o[e](r),{c(){t.c(),n=Ee()},m(f,c){a[e].m(f,c),$(f,n,c),i=!0,l||(s=Pe(window,"keydown",r[3]),l=!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){i||(m(t),i=!0)},o(f){_(t),i=!1},d(f){a[e].d(f),f&&b(n),l=!1,s()}}}function jO(r,e,t){let{$$slots:n={},$$scope:i}=e,{fixed:l=!1}=e,{inline:s=!1}=e;const o=ht();let a=l||s;function u(){a||t(2,a=!0)}function f(){!a||l||s||t(2,a=!1)}function c(){!a||(o("cancel"),f())}function p(g){a&&g.key==="Escape"&&c()}async function d(g){const h=g.querySelectorAll("input");(h==null?void 0:h.length)&&(await Ws(),h[0].focus())}return zo(Cp.Modal,{show:u,hide:f,cancel:c}),r.$$set=g=>{"fixed"in g&&t(5,l=g.fixed),"inline"in g&&t(0,s=g.inline),"$$scope"in g&&t(9,i=g.$$scope)},r.$$.update=()=>{r.$$.dirty&4&&o(a?"show":"hide")},[s,c,a,p,d,l,u,f,n,i]}class At extends ie{constructor(e){super();le(this,e,jO,DO,re,{fixed:5,inline:0,show:6,hide:7,cancel:1})}get show(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get cancel(){return this.$$.ctx[1]}}function BO(r){let e,t;return{c(){e=D("hr"),w(e,"class",t="spectrum-Divider spectrum-Divider--"+(r[1]?"vertical":"horizontal")+" spectrum-Dialog-divider spectrum-Divider--size"+r[0]+" svelte-1qbek3m"),oe(e,"noMargin",r[2]),oe(e,"noGrid",r[3])},m(n,i){$(n,e,i)},p(n,[i]){i&3&&t!==(t="spectrum-Divider spectrum-Divider--"+(n[1]?"vertical":"horizontal")+" spectrum-Dialog-divider spectrum-Divider--size"+n[0]+" svelte-1qbek3m")&&w(e,"class",t),i&7&&oe(e,"noMargin",n[2]),i&11&&oe(e,"noGrid",n[3])},i:Oe,o:Oe,d(n){n&&b(e)}}}function zO(r,e,t){let{size:n="M"}=e,{vertical:i=!1}=e,{noMargin:l=!1}=e,{noGrid:s=!1}=e;return r.$$set=o=>{"size"in o&&t(0,n=o.size),"vertical"in o&&t(1,i=o.vertical),"noMargin"in o&&t(2,l=o.noMargin),"noGrid"in o&&t(3,s=o.noGrid)},[n,i,l,s]}class un extends ie{constructor(e){super();le(this,e,zO,BO,re,{size:0,vertical:1,noMargin:2,noGrid:3})}}const qO=r=>({}),Dh=r=>({}),UO=r=>({}),jh=r=>({});function Bh(r){let e,t,n,i,l,s;const o=r[23].header,a=bt(o,r,r[24],jh);let u=r[7]&&zh();return{c(){e=D("h1"),t=V(r[0]),n=R(),a&&a.c(),i=R(),u&&u.c(),l=Ee(),w(e,"class","spectrum-Dialog-heading spectrum-Dialog-heading--noHeader svelte-1ffn7mp"),oe(e,"noDivider",!r[7]),oe(e,"header-spacing",r[18].header)},m(f,c){$(f,e,c),N(e,t),N(e,n),a&&a.m(e,null),$(f,i,c),u&&u.m(f,c),$(f,l,c),s=!0},p(f,c){(!s||c&1)&&Te(t,f[0]),a&&a.p&&(!s||c&16777216)&&vt(a,o,f,f[24],s?yt(o,f[24],c,UO):wt(f[24]),jh),c&128&&oe(e,"noDivider",!f[7]),c&262144&&oe(e,"header-spacing",f[18].header),f[7]?u?c&128&&m(u,1):(u=zh(),u.c(),m(u,1),u.m(l.parentNode,l)):u&&(ee(),_(u,1,1,()=>{u=null}),te())},i(f){s||(m(a,f),m(u),s=!0)},o(f){_(a,f),_(u),s=!1},d(f){f&&b(e),a&&a.d(f),f&&b(i),u&&u.d(f),f&&b(l)}}}function zh(r){let e,t;return e=new un({props:{size:"M"}}),{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 qh(r){let e,t,n,i,l;const s=r[23].footer,o=bt(s,r,r[24],Dh);let a=r[8]&&r[9]&&r[10]&&Uh(r),u=r[4]&&Fh(r),f=r[5]&&Vh(r);return{c(){e=D("div"),o&&o.c(),t=R(),a&&a.c(),n=R(),u&&u.c(),i=R(),f&&f.c(),w(e,"class","spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter svelte-1ffn7mp")},m(c,p){$(c,e,p),o&&o.m(e,null),N(e,t),a&&a.m(e,null),N(e,n),u&&u.m(e,null),N(e,i),f&&f.m(e,null),l=!0},p(c,p){o&&o.p&&(!l||p&16777216)&&vt(o,s,c,c[24],l?yt(s,c[24],p,qO):wt(c[24]),Dh),c[8]&&c[9]&&c[10]?a?(a.p(c,p),p&1792&&m(a,1)):(a=Uh(c),a.c(),m(a,1),a.m(e,n)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),c[4]?u?(u.p(c,p),p&16&&m(u,1)):(u=Fh(c),u.c(),m(u,1),u.m(e,i)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),c[5]?f?(f.p(c,p),p&32&&m(f,1)):(f=Vh(c),f.c(),m(f,1),f.m(e,null)):f&&(ee(),_(f,1,1,()=>{f=null}),te())},i(c){l||(m(o,c),m(a),m(u),m(f),l=!0)},o(c){_(o,c),_(a),_(u),_(f),l=!1},d(c){c&&b(e),o&&o.d(c),a&&a.d(),u&&u.d(),f&&f.d()}}}function Uh(r){let e,t,n;return t=new ut({props:{group:!0,secondary:!0,warning:r[11],$$slots:{default:[FO]},$$scope:{ctx:r}}}),t.$on("click",r[15]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","secondary-action svelte-1ffn7mp")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&2048&&(s.warning=i[11]),l&16777728&&(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 FO(r){let e;return{c(){e=V(r[9])},m(t,n){$(t,e,n)},p(t,n){n&512&&Te(e,t[9])},d(t){t&&b(e)}}}function Fh(r){let e,t;return e=new ut({props:{group:!0,secondary:!0,$$slots:{default:[VO]},$$scope:{ctx:r}}}),e.$on("click",r[17]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16777220&&(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 VO(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 Vh(r){let e,t,n;const i=[{group:!0},{cta:!0},r[19],{disabled:r[13]}];let l={$$slots:{default:[HO]},$$scope:{ctx:r}};for(let s=0;s<i.length;s+=1)l=Ui(l,i[s]);return t=new ut({props:l}),t.$on("click",r[16]),{c(){e=D("span"),S(t.$$.fragment),w(e,"class","confirm-wrap svelte-1ffn7mp")},m(s,o){$(s,e,o),A(t,e,null),n=!0},p(s,o){const a=o&532480?Eu(i,[i[0],i[1],o&524288&&Ou(s[19]),o&8192&&{disabled:s[13]}]):{};o&16781320&&(a.$$scope={dirty:o,ctx:s}),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),E(t)}}}function Hh(r){let e,t;return e=new cs({props:{overBackground:!0,size:"S"}}),{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 Wh(r){let e;return{c(){e=V(r[3])},m(t,n){$(t,e,n)},p(t,n){n&8&&Te(e,t[3])},d(t){t&&b(e)}}}function HO(r){let e,t,n,i=r[12]&&Hh(),l=!r[12]&&Wh(r);return{c(){i&&i.c(),e=R(),l&&l.c(),t=Ee()},m(s,o){i&&i.m(s,o),$(s,e,o),l&&l.m(s,o),$(s,t,o),n=!0},p(s,o){s[12]?i?o&4096&&m(i,1):(i=Hh(),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(ee(),_(i,1,1,()=>{i=null}),te()),s[12]?l&&(l.d(1),l=null):l?l.p(s,o):(l=Wh(s),l.c(),l.m(t.parentNode,t))},i(s){n||(m(i),n=!0)},o(s){_(i),n=!1},d(s){i&&i.d(s),s&&b(e),l&&l.d(s),s&&b(t)}}}function Gh(r){let e,t,n;return t=new gt({props:{hoverable:!0,name:"Close"}}),t.$on("click",r[14]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","close-icon svelte-1ffn7mp")},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 WO(r){let e,t,n,i,l,s,o,a=r[0]&&Bh(r);const u=r[23].default,f=bt(u,r,r[24],null);let c=(r[4]||r[5])&&qh(r),p=r[6]&&Gh(r);return{c(){e=D("div"),t=D("div"),a&&a.c(),n=R(),i=D("section"),f&&f.c(),l=R(),c&&c.c(),s=R(),p&&p.c(),w(i,"class","spectrum-Dialog-content content-grid svelte-1ffn7mp"),w(t,"class","spectrum-Dialog-grid"),w(e,"class","spectrum-Dialog svelte-1ffn7mp"),Ht(e,"position","relative"),w(e,"role","dialog"),w(e,"tabindex","-1"),w(e,"aria-modal","true"),oe(e,"spectrum-Dialog--small",r[1]==="S"),oe(e,"spectrum-Dialog--medium",r[1]==="M"),oe(e,"spectrum-Dialog--large",r[1]==="L"),oe(e,"spectrum-Dialog--extraLarge",r[1]==="XL")},m(d,g){$(d,e,g),N(e,t),a&&a.m(t,null),N(t,n),N(t,i),f&&f.m(i,null),N(t,l),c&&c.m(t,null),N(t,s),p&&p.m(t,null),o=!0},p(d,[g]){d[0]?a?(a.p(d,g),g&1&&m(a,1)):(a=Bh(d),a.c(),m(a,1),a.m(t,n)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),f&&f.p&&(!o||g&16777216)&&vt(f,u,d,d[24],o?yt(u,d[24],g,null):wt(d[24]),null),d[4]||d[5]?c?(c.p(d,g),g&48&&m(c,1)):(c=qh(d),c.c(),m(c,1),c.m(t,s)):c&&(ee(),_(c,1,1,()=>{c=null}),te()),d[6]?p?(p.p(d,g),g&64&&m(p,1)):(p=Gh(d),p.c(),m(p,1),p.m(t,null)):p&&(ee(),_(p,1,1,()=>{p=null}),te()),g&2&&oe(e,"spectrum-Dialog--small",d[1]==="S"),g&2&&oe(e,"spectrum-Dialog--medium",d[1]==="M"),g&2&&oe(e,"spectrum-Dialog--large",d[1]==="L"),g&2&&oe(e,"spectrum-Dialog--extraLarge",d[1]==="XL")},i(d){o||(m(a),m(f,d),m(c),m(p),o=!0)},o(d){_(a),_(f,d),_(c),_(p),o=!1},d(d){d&&b(e),a&&a.d(),f&&f.d(d),c&&c.d(),p&&p.d()}}}function GO(r,e,t){let n;const i=["title","size","cancelText","confirmText","showCancelButton","showConfirmButton","showCloseIcon","onConfirm","onCancel","disabled","showDivider","showSecondaryButton","secondaryButtonText","secondaryAction","secondaryButtonWarning"];let l=Tu(e,i),{$$slots:s={},$$scope:o}=e;const a=Bo(s);let{title:u=void 0}=e,{size:f="S"}=e,{cancelText:c="Cancel"}=e,{confirmText:p="Confirm"}=e,{showCancelButton:d=!0}=e,{showConfirmButton:g=!0}=e,{showCloseIcon:h=!0}=e,{onConfirm:v=void 0}=e,{onCancel:C=void 0}=e,{disabled:y=!1}=e,{showDivider:I=!0}=e,{showSecondaryButton:O=!1}=e,{secondaryButtonText:T=void 0}=e,{secondaryAction:P=void 0}=e,{secondaryButtonWarning:M=!1}=e;const{hide:F,cancel:j}=Hs(Cp.Modal);let B=!1;async function q(){t(12,B=!0),(!P||await P()!==!1)&&F(),t(12,B=!1)}async function G(){t(12,B=!0),(!v||await v()!==!1)&&F(),t(12,B=!1)}async function Y(){t(12,B=!0),(!C||await C()!==!1)&&j(),t(12,B=!1)}return r.$$set=U=>{e=Ui(Ui({},e),Iu(U)),t(19,l=Tu(e,i)),"title"in U&&t(0,u=U.title),"size"in U&&t(1,f=U.size),"cancelText"in U&&t(2,c=U.cancelText),"confirmText"in U&&t(3,p=U.confirmText),"showCancelButton"in U&&t(4,d=U.showCancelButton),"showConfirmButton"in U&&t(5,g=U.showConfirmButton),"showCloseIcon"in U&&t(6,h=U.showCloseIcon),"onConfirm"in U&&t(20,v=U.onConfirm),"onCancel"in U&&t(21,C=U.onCancel),"disabled"in U&&t(22,y=U.disabled),"showDivider"in U&&t(7,I=U.showDivider),"showSecondaryButton"in U&&t(8,O=U.showSecondaryButton),"secondaryButtonText"in U&&t(9,T=U.secondaryButtonText),"secondaryAction"in U&&t(10,P=U.secondaryAction),"secondaryButtonWarning"in U&&t(11,M=U.secondaryButtonWarning),"$$scope"in U&&t(24,o=U.$$scope)},r.$$.update=()=>{r.$$.dirty&4198400&&t(13,n=y||B)},[u,f,c,p,d,g,h,I,O,T,P,M,B,n,j,q,G,Y,a,l,v,C,y,s,o]}class Bt extends ie{constructor(e){super();le(this,e,GO,WO,re,{title:0,size:1,cancelText:2,confirmText:3,showCancelButton:4,showConfirmButton:5,showCloseIcon:6,onConfirm:20,onCancel:21,disabled:22,showDivider:7,showSecondaryButton:8,secondaryButtonText:9,secondaryAction:10,secondaryButtonWarning:11})}}const YO=3e3,JO=()=>{const r=new Set,e=mn([],()=>()=>{r.forEach(o=>{clearTimeout(o)}),e.set([])});let t=!1;const n=(o=1e3)=>{t=!0,setTimeout(()=>t=!1,o)},i=(o,a="default",u="",f=!0)=>{if(t)return;let c=QO();if(e.update(p=>[...p,{id:c,type:a,message:o,icon:u,dismissable:!f}]),f){const p=setTimeout(()=>{l(c)},YO);r.add(p)}},l=o=>{e.update(a=>a.filter(u=>u.id!==o))},{subscribe:s}=e;return{subscribe:s,send:i,info:o=>i(o,"info","Info"),error:o=>i(o,"error","Alert",!1),warning:o=>i(o,"warning","Alert"),success:o=>i(o,"success","CheckmarkCircle"),blockNotifications:n,dismiss:l}};function QO(){return"_"+Math.random().toString(36).slice(2,9)}const ye=JO();function Yh(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href",n="#spectrum-icon-18-"+r[1]),w(e,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-Toast-typeIcon"),w(e,"focusable","false"),w(e,"aria-hidden","true")},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&2&&n!==(n="#spectrum-icon-18-"+i[1])&&Gt(t,"xlink:href",n)},d(i){i&&b(e)}}}function Jh(r){let e,t,n,i;return{c(){e=D("div"),t=D("button"),t.innerHTML='<div class="spectrum-ClearButton-fill"><svg class="spectrum-ClearButton-icon spectrum-Icon spectrum-UIIcon-Cross100" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Cross100"></use></svg></div>',w(t,"class","spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--sizeM"),w(e,"class","spectrum-Toast-buttons")},m(l,s){$(l,e,s),N(e,t),n||(i=Pe(t,"click",r[5]),n=!0)},p:Oe,d(l){l&&b(e),n=!1,i()}}}function XO(r){let e,t,n,i,l=(r[2]||"")+"",s,o,a,u=r[1]&&Yh(r),f=r[3]&&Jh(r);return{c(){e=D("div"),u&&u.c(),t=R(),n=D("div"),i=D("div"),s=V(l),o=R(),f&&f.c(),w(i,"class","spectrum-Toast-content"),w(n,"class","spectrum-Toast-body"),w(e,"class",a="spectrum-Toast spectrum-Toast--"+r[0]+" svelte-1uu20v3")},m(c,p){$(c,e,p),u&&u.m(e,null),N(e,t),N(e,n),N(n,i),N(i,s),N(e,o),f&&f.m(e,null)},p(c,[p]){c[1]?u?u.p(c,p):(u=Yh(c),u.c(),u.m(e,t)):u&&(u.d(1),u=null),p&4&&l!==(l=(c[2]||"")+"")&&Te(s,l),c[3]?f?f.p(c,p):(f=Jh(c),f.c(),f.m(e,null)):f&&(f.d(1),f=null),p&1&&a!==(a="spectrum-Toast spectrum-Toast--"+c[0]+" svelte-1uu20v3")&&w(e,"class",a)},i:Oe,o:Oe,d(c){c&&b(e),u&&u.d(),f&&f.d()}}}function KO(r,e,t){let{type:n="info"}=e,{icon:i="Info"}=e,{message:l=""}=e,{dismissable:s=!1}=e;const o=ht(),a=()=>o("dismiss");return r.$$set=u=>{"type"in u&&t(0,n=u.type),"icon"in u&&t(1,i=u.icon),"message"in u&&t(2,l=u.message),"dismissable"in u&&t(3,s=u.dismissable)},[n,i,l,s,o,a]}class ZO extends ie{constructor(e){super();le(this,e,KO,XO,re,{type:0,icon:1,message:2,dismissable:3})}}function Qh(r,e,t){const n=r.slice();return n[2]=e[t].type,n[3]=e[t].icon,n[4]=e[t].message,n[5]=e[t].id,n[6]=e[t].dismissable,n}function Xh(r,e){let t,n,i,l,s;function o(){return e[1](e[5])}return n=new ZO({props:{type:e[2],icon:e[3],message:e[4],dismissable:e[6]}}),n.$on("dismiss",o),{key:r,first:null,c(){t=D("div"),S(n.$$.fragment),i=R(),this.first=t},m(a,u){$(a,t,u),A(n,t,null),N(t,i),s=!0},p(a,u){e=a;const f={};u&1&&(f.type=e[2]),u&1&&(f.icon=e[3]),u&1&&(f.message=e[4]),u&1&&(f.dismissable=e[6]),n.$set(f)},i(a){s||(m(n.$$.fragment,a),fi(()=>{l||(l=Dr(t,Jr,{y:-30},!0)),l.run(1)}),s=!0)},o(a){_(n.$$.fragment,a),l||(l=Dr(t,Jr,{y:-30},!1)),l.run(0),s=!1},d(a){a&&b(t),E(n),a&&l&&l.end()}}}function xO(r){let e,t=[],n=new Map,i,l=r[0];const s=o=>o[5];for(let o=0;o<l.length;o+=1){let a=Qh(r,l,o),u=s(a);n.set(u,t[o]=Xh(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","notifications svelte-15qg7cd")},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&1&&(l=o[0],ee(),t=er(t,a,s,1,o,l,n,e,jr,Xh,null,Qh),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 eT(r){let e,t;return e=new Vs({props:{target:".modal-container",$$slots:{default:[xO]},$$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 tT(r,e,t){let n;return fe(r,ye,l=>t(0,n=l)),[n,l=>ye.dismiss(l)]}class nT extends ie{constructor(e){super();le(this,e,tT,eT,re,{})}}function rT(r){let e,t,n;const i=r[2].default,l=bt(i,r,r[1],null);return{c(){e=D("nav"),t=D("ul"),l&&l.c(),w(t,"class","spectrum-SideNav"),oe(t,"spectrum-SideNav--multiLevel",r[0])},m(s,o){$(s,e,o),N(e,t),l&&l.m(t,null),n=!0},p(s,[o]){l&&l.p&&(!n||o&2)&&vt(l,i,s,s[1],n?yt(i,s[1],o,null):wt(s[1]),null),o&1&&oe(t,"spectrum-SideNav--multiLevel",s[0])},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function iT(r,e,t){let{$$slots:n={},$$scope:i}=e,{multilevel:l=!1}=e;return zo("sidenav-type",l),r.$$set=s=>{"multilevel"in s&&t(0,l=s.multilevel),"$$scope"in s&&t(1,i=s.$$scope)},[l,i,n]}class lT extends ie{constructor(e){super();le(this,e,iT,rT,re,{multilevel:0})}}const sT=r=>({}),Kh=r=>({});function Zh(r){let e,t,n;return{c(){e=D("h2"),t=V(r[2]),w(e,"class","spectrum-SideNav-heading"),w(e,"id",n="nav-heading-"+r[2])},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&4&&Te(t,i[2]),l&4&&n!==(n="nav-heading-"+i[2])&&w(e,"id",n)},d(i){i&&b(e)}}}function xh(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href",n="#spectrum-icon-18-"+r[3]),w(e,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-SideNav-itemIcon"),w(e,"focusable","false"),w(e,"aria-hidden","true")},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&8&&n!==(n="#spectrum-icon-18-"+i[3])&&Gt(t,"xlink:href",n)},d(i){i&&b(e)}}}function e0(r){let e,t;const n=r[9].subnav,i=bt(n,r,r[8],Kh);return{c(){e=D("ul"),i&&i.c(),w(e,"class","spectrum-SideNav")},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,s){i&&i.p&&(!t||s&256)&&vt(i,n,l,l[8],t?yt(n,l[8],s,sT):wt(l[8]),Kh)},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function oT(r){let e,t,n,i,l,s,o,a,u,f=r[2]&&Zh(r),c=r[3]&&xh(r);const p=r[9].default,d=bt(p,r,r[8],null);let g=r[6]&&r[7].subnav&&e0(r);return{c(){e=D("li"),f&&f.c(),t=R(),n=D("a"),c&&c.c(),i=R(),d&&d.c(),s=R(),g&&g.c(),w(n,"target",l=r[1]?"_blank":""),w(n,"href",r[0]),w(n,"class","spectrum-SideNav-itemLink"),w(n,"aria-current","page"),w(e,"class","spectrum-SideNav-item"),oe(e,"is-selected",r[4]),oe(e,"is-disabled",r[5])},m(h,v){$(h,e,v),f&&f.m(e,null),N(e,t),N(e,n),c&&c.m(n,null),N(n,i),d&&d.m(n,null),N(e,s),g&&g.m(e,null),o=!0,a||(u=Pe(e,"click",r[10]),a=!0)},p(h,[v]){h[2]?f?f.p(h,v):(f=Zh(h),f.c(),f.m(e,t)):f&&(f.d(1),f=null),h[3]?c?c.p(h,v):(c=xh(h),c.c(),c.m(n,i)):c&&(c.d(1),c=null),d&&d.p&&(!o||v&256)&&vt(d,p,h,h[8],o?yt(p,h[8],v,null):wt(h[8]),null),(!o||v&2&&l!==(l=h[1]?"_blank":""))&&w(n,"target",l),(!o||v&1)&&w(n,"href",h[0]),h[6]&&h[7].subnav?g?(g.p(h,v),v&128&&m(g,1)):(g=e0(h),g.c(),m(g,1),g.m(e,null)):g&&(ee(),_(g,1,1,()=>{g=null}),te()),v&16&&oe(e,"is-selected",h[4]),v&32&&oe(e,"is-disabled",h[5])},i(h){o||(m(d,h),m(g),o=!0)},o(h){_(d,h),_(g),o=!1},d(h){h&&b(e),f&&f.d(),c&&c.d(),d&&d.d(h),g&&g.d(),a=!1,u()}}}function aT(r,e,t){let{$$slots:n={},$$scope:i}=e;const l=Bo(n),s=Hs("sidenav-type");let{href:o=""}=e,{external:a=!1}=e,{heading:u=""}=e,{icon:f=""}=e,{selected:c=!1}=e,{disabled:p=!1}=e;function d(g){dt.call(this,r,g)}return r.$$set=g=>{"href"in g&&t(0,o=g.href),"external"in g&&t(1,a=g.external),"heading"in g&&t(2,u=g.heading),"icon"in g&&t(3,f=g.icon),"selected"in g&&t(4,c=g.selected),"disabled"in g&&t(5,p=g.disabled),"$$scope"in g&&t(8,i=g.$$scope)},[o,a,u,f,c,p,s,l,i,n,d]}class uT extends ie{constructor(e){super();le(this,e,aT,oT,re,{href:0,external:1,heading:2,icon:3,selected:4,disabled:5})}}function t0(r){let e,t;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href","#spectrum-icon-18-Alert"),w(e,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-Textfield-validationIcon"),w(e,"focusable","false"),w(e,"aria-hidden","true")},m(n,i){$(n,e,i),N(e,t)},d(n){n&&b(e)}}}function fT(r){let e,t,n,i,l,s,o,a,u,f,c=!!r[2]&&t0();return{c(){e=D("div"),t=D("div"),c&&c.c(),n=R(),i=D("input"),l=R(),s=D("button"),o=me("svg"),a=me("use"),w(i,"data-input",""),w(i,"type","text"),i.disabled=r[1],w(i,"class","spectrum-Textfield-input spectrum-InputGroup-input svelte-1po8cj0"),w(i,"placeholder",r[4]),w(i,"id",r[0]),i.value=r[3],w(t,"class","spectrum-Textfield spectrum-InputGroup-textfield svelte-1po8cj0"),oe(t,"is-disabled",r[1]),oe(t,"is-invalid",!!r[2]),Gt(a,"xlink:href","#spectrum-icon-18-Calendar"),w(o,"class","spectrum-Icon spectrum-Icon--sizeM"),w(o,"focusable","false"),w(o,"aria-hidden","true"),w(o,"aria-label","Calendar"),w(s,"type","button"),w(s,"class","spectrum-Picker spectrum-Picker--sizeM spectrum-InputGroup-button"),w(s,"tabindex","-1"),s.disabled=r[1],oe(s,"is-invalid",!!r[2]),w(e,"id",r[9]),w(e,"class","flatpickr spectrum-InputGroup spectrum-Datepicker svelte-1po8cj0"),w(e,"aria-readonly","false"),w(e,"aria-required","false"),w(e,"aria-haspopup","true"),oe(e,"is-disabled",r[1]),oe(e,"is-invalid",!!r[2]),oe(e,"is-focused",r[6])},m(p,d){$(p,e,d),N(e,t),c&&c.m(t,null),N(t,n),N(t,i),N(e,l),N(e,s),N(s,o),N(o,a),u||(f=[Pe(t,"click",function(){var g,h;ct((g=r[7])==null?void 0:g.open)&&((h=r[7])==null||h.open.apply(this,arguments))}),Pe(s,"click",function(){var g,h;ct((g=r[7])==null?void 0:g.open)&&((h=r[7])==null||h.open.apply(this,arguments))})],u=!0)},p(p,d){r=p,r[2]?c||(c=t0(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),d&2&&(i.disabled=r[1]),d&16&&w(i,"placeholder",r[4]),d&1&&w(i,"id",r[0]),d&8&&i.value!==r[3]&&(i.value=r[3]),d&2&&oe(t,"is-disabled",r[1]),d&4&&oe(t,"is-invalid",!!r[2]),d&2&&(s.disabled=r[1]),d&4&&oe(s,"is-invalid",!!r[2]),d&2&&oe(e,"is-disabled",r[1]),d&4&&oe(e,"is-invalid",!!r[2]),d&64&&oe(e,"is-focused",r[6])},d(p){p&&b(e),c&&c.d(),u=!1,Tn(f)}}}function n0(r){let e,t,n;function i(s){r[17](s)}let l={value:r[13](r[3]),options:r[8],element:`#${r[9]}`,$$slots:{default:[fT]},$$scope:{ctx:r}};return r[7]!==void 0&&(l.flatpickr=r[7]),e=new yS({props:l}),Z.push(()=>ce(e,"flatpickr",i)),e.$on("open",r[11]),e.$on("close",r[12]),e.$on("change",r[10]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&8&&(a.value=s[13](s[3])),o&256&&(a.options=s[8]),o&1048799&&(a.$$scope={dirty:o,ctx:s}),!t&&o&128&&(t=!0,a.flatpickr=s[7],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 r0(r){let e,t,n;return{c(){e=D("div"),w(e,"class","overlay svelte-1po8cj0")},m(i,l){$(i,e,l),t||(n=Pe(e,"mousedown",jo(function(){var s,o;ct((s=r[7])==null?void 0:s.close)&&((o=r[7])==null||o.close.apply(this,arguments))})),t=!0)},p(i,l){r=i},d(i){i&&b(e),t=!1,n()}}}function cT(r){let e=r[5],t,n,i,l=n0(r),s=r[6]&&r0(r);return{c(){l.c(),t=R(),s&&s.c(),n=Ee()},m(o,a){l.m(o,a),$(o,t,a),s&&s.m(o,a),$(o,n,a),i=!0},p(o,[a]){a&32&&re(e,e=o[5])?(ee(),_(l,1,1,Oe),te(),l=n0(o),l.c(),m(l),l.m(t.parentNode,t)):l.p(o,a),o[6]?s?s.p(o,a):(s=r0(o),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(o){i||(m(l),i=!0)},o(o){_(l),i=!1},d(o){l.d(o),o&&b(t),s&&s.d(o),o&&b(n)}}}function pT(r,e,t){let{id:n=null}=e,{disabled:i=!1}=e,{error:l=null}=e,{enableTime:s=!0}=e,{value:o=null}=e,{placeholder:a=null}=e,{appendTo:u=void 0}=e,{timeOnly:f=!1}=e;const c=ht(),p=`${Fi()}-wrapper`;let d=!1,g,h,v;const C=M=>{const[F]=M.detail;let j=F[0];j&&(j=j.toISOString()),f&&(j=`${new Date().toISOString().split("T")[0]}T${j.split("T")[1]}`),c("change",j)},y=M=>{["Backspace","Clear","Delete"].includes(M.key)&&(c("change",null),g.close())},I=()=>{t(6,d=!0),document.addEventListener("keyup",y)},O=()=>{t(6,d=!1),document.removeEventListener("keyup",y),document.querySelectorAll(`#${p} input`).forEach(F=>F.blur())},T=M=>{if(!M)return null;let F,j=new Date(`0-${M}`);return f||typeof M=="string"&&!isNaN(j)?F=j:M instanceof Date?F=M:isNaN(M)?F=new Date(M):F=new Date(parseInt(M)),j=F.getTime(),isNaN(j)?null:new Date(Math.floor(j/1e3)*1e3)};function P(M){g=M,t(7,g)}return r.$$set=M=>{"id"in M&&t(0,n=M.id),"disabled"in M&&t(1,i=M.disabled),"error"in M&&t(2,l=M.error),"enableTime"in M&&t(14,s=M.enableTime),"value"in M&&t(3,o=M.value),"placeholder"in M&&t(4,a=M.placeholder),"appendTo"in M&&t(15,u=M.appendTo),"timeOnly"in M&&t(16,f=M.timeOnly)},r.$$.update=()=>{r.$$.dirty&65544&&t(5,v=!f&&o?!isNaN(new Date(`0-${o}`)):f),r.$$.dirty&49184&&t(8,h={element:`#${p}`,enableTime:v||s||!1,noCalendar:v||!1,altInput:!0,altFormat:v?"H:i":s?"F j Y, H:i":"F j, Y",wrap:!0,appendTo:u,disableMobile:"true"})},[n,i,l,o,a,v,d,g,h,p,C,I,O,T,s,u,f,P]}class dT extends ie{constructor(e){super();le(this,e,pT,cT,re,{id:0,disabled:1,error:2,enableTime:14,value:3,placeholder:4,appendTo:15,timeOnly:16})}}function mT(r){let e,t;return e=new dT({props:{error:r[4],disabled:r[3],value:r[0],placeholder:r[7],enableTime:r[5],timeOnly:r[6],appendTo:r[8]}}),e.$on("change",r[9]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.error=n[4]),i&8&&(l.disabled=n[3]),i&1&&(l.value=n[0]),i&128&&(l.placeholder=n[7]),i&32&&(l.enableTime=n[5]),i&64&&(l.timeOnly=n[6]),i&256&&(l.appendTo=n[8]),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 gT(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[2],error:r[4],$$slots:{default:[mT]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&4&&(l.labelPosition=n[2]),i&16&&(l.error=n[4]),i&2553&&(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 _T(r,e,t){let{value:n=null}=e,{label:i=null}=e,{labelPosition:l="above"}=e,{disabled:s=!1}=e,{error:o=null}=e,{enableTime:a=!0}=e,{timeOnly:u=!1}=e,{placeholder:f=null}=e,{appendTo:c=void 0}=e;const p=ht(),d=g=>{t(0,n=g.detail),p("change",g.detail)};return r.$$set=g=>{"value"in g&&t(0,n=g.value),"label"in g&&t(1,i=g.label),"labelPosition"in g&&t(2,l=g.labelPosition),"disabled"in g&&t(3,s=g.disabled),"error"in g&&t(4,o=g.error),"enableTime"in g&&t(5,a=g.enableTime),"timeOnly"in g&&t(6,u=g.timeOnly),"placeholder"in g&&t(7,f=g.placeholder),"appendTo"in g&&t(8,c=g.appendTo)},[n,i,l,s,o,a,u,f,c,d]}class Bl extends ie{constructor(e){super();le(this,e,_T,gT,re,{value:0,label:1,labelPosition:2,disabled:3,error:4,enableTime:5,timeOnly:6,placeholder:7,appendTo:8})}}function hT(r){var n;let e,t;return e=new q_({props:{id:r[1],error:r[3],disabled:r[2],readonly:r[7],fieldText:r[12],options:r[4],isPlaceholder:!((n=r[0])==null?void 0:n.length),autocomplete:r[8],isOptionSelected:r[11],getOptionLabel:r[5],getOptionValue:r[6],onSelectOption:r[10],sort:r[9]}}),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,[l]){var o;const s={};l&2&&(s.id=i[1]),l&8&&(s.error=i[3]),l&4&&(s.disabled=i[2]),l&128&&(s.readonly=i[7]),l&4096&&(s.fieldText=i[12]),l&16&&(s.options=i[4]),l&1&&(s.isPlaceholder=!((o=i[0])==null?void 0:o.length)),l&256&&(s.autocomplete=i[8]),l&2048&&(s.isOptionSelected=i[11]),l&32&&(s.getOptionLabel=i[5]),l&64&&(s.getOptionValue=i[6]),l&1024&&(s.onSelectOption=i[10]),l&512&&(s.sort=i[9]),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 $T(r,e,t){let n,i,l,s,o,{value:a=[]}=e,{id:u=null}=e,{placeholder:f=null}=e,{disabled:c=!1}=e,{error:p=null}=e,{options:d=[]}=e,{getOptionLabel:g=F=>F}=e,{getOptionValue:h=F=>F}=e,{readonly:v=!1}=e,{autocomplete:C=!1}=e,{sort:y=!1}=e;const I=ht(),O=(F,j,B)=>{if(F==null?void 0:F.length){if(!j)return"";const q=F.map(G=>j[G]||G).join(", ");return`(${F.length}) ${q}`}else return B||"Choose some options"},T=F=>{let j={};return(F==null?void 0:F.length)&&F.forEach(B=>{B&&(j[B]=!0)}),j},P=F=>{let j=null;return(F==null?void 0:F.length)&&(j={},F.forEach((B,q)=>{const G=h(B,q);G!=null&&(j[G]=g(B,q)||"")})),j},M=(F,j)=>B=>{if(F[B]){const q=j.filter(G=>G!==B);I("change",q)}else I("change",[...j,B])};return r.$$set=F=>{"value"in F&&t(0,a=F.value),"id"in F&&t(1,u=F.id),"placeholder"in F&&t(13,f=F.placeholder),"disabled"in F&&t(2,c=F.disabled),"error"in F&&t(3,p=F.error),"options"in F&&t(4,d=F.options),"getOptionLabel"in F&&t(5,g=F.getOptionLabel),"getOptionValue"in F&&t(6,h=F.getOptionValue),"readonly"in F&&t(7,v=F.readonly),"autocomplete"in F&&t(8,C=F.autocomplete),"sort"in F&&t(9,y=F.sort)},r.$$.update=()=>{r.$$.dirty&1&&t(14,n=T(a)),r.$$.dirty&16&&t(15,i=P(d)),r.$$.dirty&40961&&t(12,l=O(a,i,f)),r.$$.dirty&16384&&t(11,s=F=>n[F]===!0),r.$$.dirty&16385&&t(10,o=M(n,a))},[a,u,c,p,d,g,h,v,C,y,o,s,l,f,n,i]}class bT extends ie{constructor(e){super();le(this,e,$T,hT,re,{value:0,id:1,placeholder:13,disabled:2,error:3,options:4,getOptionLabel:5,getOptionValue:6,readonly:7,autocomplete:8,sort:9})}}function vT(r){let e,t;return e=new bT({props:{error:r[5],disabled:r[2],readonly:r[3],value:r[0],options:r[7],placeholder:r[6],sort:r[10],getOptionLabel:r[8],getOptionValue:r[9]}}),e.$on("change",r[11]),e.$on("click",r[12]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.error=n[5]),i&4&&(l.disabled=n[2]),i&8&&(l.readonly=n[3]),i&1&&(l.value=n[0]),i&128&&(l.options=n[7]),i&64&&(l.placeholder=n[6]),i&1024&&(l.sort=n[10]),i&256&&(l.getOptionLabel=n[8]),i&512&&(l.getOptionValue=n[9]),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 wT(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[4],error:r[5],$$slots:{default:[vT]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&16&&(l.labelPosition=n[4]),i&32&&(l.error=n[5]),i&18413&&(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 yT(r,e,t){let{value:n=[]}=e,{label:i=null}=e,{disabled:l=!1}=e,{readonly:s=!1}=e,{labelPosition:o="above"}=e,{error:a=null}=e,{placeholder:u=null}=e,{options:f=[]}=e,{getOptionLabel:c=C=>C}=e,{getOptionValue:p=C=>C}=e,{sort:d=!1}=e;const g=ht(),h=C=>{t(0,n=C.detail),g("change",C.detail)};function v(C){dt.call(this,r,C)}return r.$$set=C=>{"value"in C&&t(0,n=C.value),"label"in C&&t(1,i=C.label),"disabled"in C&&t(2,l=C.disabled),"readonly"in C&&t(3,s=C.readonly),"labelPosition"in C&&t(4,o=C.labelPosition),"error"in C&&t(5,a=C.error),"placeholder"in C&&t(6,u=C.placeholder),"options"in C&&t(7,f=C.options),"getOptionLabel"in C&&t(8,c=C.getOptionLabel),"getOptionValue"in C&&t(9,p=C.getOptionValue),"sort"in C&&t(10,d=C.sort)},[n,i,l,s,o,a,u,f,c,p,d,h,v]}class Yo extends ie{constructor(e){super();le(this,e,yT,wT,re,{value:0,label:1,disabled:2,readonly:3,labelPosition:4,error:5,placeholder:6,options:7,getOptionLabel:8,getOptionValue:9,sort:10})}}function kT(r){let e,t=(typeof r[0]=="object"?JSON.stringify(r[0]):r[0])+"",n;return{c(){e=D("div"),n=V(t),w(e,"class","svelte-186zidf")},m(i,l){$(i,e,l),N(e,n)},p(i,[l]){l&1&&t!==(t=(typeof i[0]=="object"?JSON.stringify(i[0]):i[0])+"")&&Te(n,t)},i:Oe,o:Oe,d(i){i&&b(e)}}}function CT(r,e,t){let{value:n}=e;return r.$$set=i=>{"value"in i&&t(0,n=i.value)},[n]}class Jo extends ie{constructor(e){super();le(this,e,CT,kT,re,{value:0})}}function ST(r){let e,t,n,i,l;return{c(){e=D("label"),t=D("input"),i=R(),l=D("span"),l.innerHTML=`<svg class="spectrum-Icon spectrum-UIIcon-Checkmark100 spectrum-Checkbox-checkmark" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Checkmark100"></use></svg>
21
+ <svg class="spectrum-Icon spectrum-UIIcon-Dash100 spectrum-Checkbox-partialCheckmark" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Dash100"></use></svg>`,l=R(),u&&u.c(),t.checked=r[0],t.disabled=r[4],w(t,"type","checkbox"),w(t,"class","spectrum-Checkbox-input svelte-u1bn8m"),w(t,"id",r[2]),w(i,"class","spectrum-Checkbox-box"),w(e,"class",s="spectrum-Checkbox spectrum-Checkbox--emphasized "+r[5]+" svelte-u1bn8m"),oe(e,"is-invalid",!!r[1]),oe(e,"checked",r[0])},m(f,c){$(f,e,c),N(e,t),N(e,n),N(e,i),N(e,l),u&&u.m(e,null),o||(a=Pe(t,"change",r[6]),o=!0)},p(f,[c]){c&1&&(t.checked=f[0]),c&16&&(t.disabled=f[4]),c&4&&w(t,"id",f[2]),f[3]?u?u.p(f,c):(u=Th(f),u.c(),u.m(e,null)):u&&(u.d(1),u=null),c&32&&s!==(s="spectrum-Checkbox spectrum-Checkbox--emphasized "+f[5]+" svelte-u1bn8m")&&w(e,"class",s),c&34&&oe(e,"is-invalid",!!f[1]),c&33&&oe(e,"checked",f[0])},i:Oe,o:Oe,d(f){f&&b(e),u&&u.d(),o=!1,a()}}}function mO(r,e,t){let n,{value:i=!1}=e,{error:l=null}=e,{id:s=null}=e,{text:o=null}=e,{disabled:a=!1}=e,{size:u}=e;const f=ht(),c=p=>{f("change",p.target.checked)};return r.$$set=p=>{"value"in p&&t(0,i=p.value),"error"in p&&t(1,l=p.error),"id"in p&&t(2,s=p.id),"text"in p&&t(3,o=p.text),"disabled"in p&&t(4,a=p.disabled),"size"in p&&t(7,u=p.size)},r.$$.update=()=>{r.$$.dirty&128&&t(5,n=`spectrum-Checkbox--size${u||"M"}`)},[i,l,s,o,a,n,c,u]}class gO extends ie{constructor(e){super();le(this,e,mO,dO,re,{value:0,error:1,id:2,text:3,disabled:4,size:7})}}function _O(r){let e,t;return e=new gO({props:{error:r[5],disabled:r[4],text:r[3],value:r[0],size:r[6]}}),e.$on("change",r[7]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.error=n[5]),i&16&&(l.disabled=n[4]),i&8&&(l.text=n[3]),i&1&&(l.value=n[0]),i&64&&(l.size=n[6]),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 hO(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[2],error:r[5],$$slots:{default:[_O]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&4&&(l.labelPosition=n[2]),i&32&&(l.error=n[5]),i&633&&(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 $O(r,e,t){let{value:n=null}=e,{label:i=null}=e,{labelPosition:l="above"}=e,{text:s=null}=e,{disabled:o=!1}=e,{error:a=null}=e,{size:u="M"}=e;const f=ht(),c=p=>{t(0,n=p.detail),f("change",p.detail)};return r.$$set=p=>{"value"in p&&t(0,n=p.value),"label"in p&&t(1,i=p.label),"labelPosition"in p&&t(2,l=p.labelPosition),"text"in p&&t(3,s=p.text),"disabled"in p&&t(4,o=p.disabled),"error"in p&&t(5,a=p.error),"size"in p&&t(6,u=p.size)},[n,i,l,s,o,a,u,c]}class Zr extends ie{constructor(e){super();le(this,e,$O,hO,re,{value:0,label:1,labelPosition:2,text:3,disabled:4,error:5,size:6})}}function Ih(r){let e,t;return e=new gt({props:{size:"S",name:r[0]?"Remove":"Add"}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.name=n[0]?"Remove":"Add"),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 bO(r){let e,t,n,i,l,s,o,a,u,f,c=r[2]&&Ih(r);const p=r[5].default,d=bt(p,r,r[4],null);return{c(){e=D("div"),t=D("div"),n=D("div"),i=V(r[1]),l=R(),c&&c.c(),s=R(),o=D("div"),d&&d.c(),w(n,"class","name svelte-b94z2e"),w(t,"class","property-group-name svelte-b94z2e"),w(o,"class","property-panel svelte-b94z2e"),oe(o,"show",r[0]||!r[2]),w(e,"class","property-group-container svelte-b94z2e")},m(g,h){$(g,e,h),N(e,t),N(t,n),N(n,i),N(t,l),c&&c.m(t,null),N(e,s),N(e,o),d&&d.m(o,null),a=!0,u||(f=Pe(t,"click",r[3]),u=!0)},p(g,[h]){(!a||h&2)&&Te(i,g[1]),g[2]?c?(c.p(g,h),h&4&&m(c,1)):(c=Ih(g),c.c(),m(c,1),c.m(t,null)):c&&(ee(),_(c,1,1,()=>{c=null}),te()),d&&d.p&&(!a||h&16)&&vt(d,p,g,g[4],a?yt(p,g[4],h,null):wt(g[4]),null),h&5&&oe(o,"show",g[0]||!g[2])},i(g){a||(m(c),m(d,g),a=!0)},o(g){_(c),_(d,g),a=!1},d(g){g&&b(e),c&&c.d(),d&&d.d(g),u=!1,f()}}}function vO(r,e,t){let{$$slots:n={},$$scope:i}=e,{name:l}=e,{show:s=!1}=e,{collapsible:o=!0}=e;const a=ht(),u=()=>{!o||(t(0,s=!s),s&&a("open"))};return r.$$set=f=>{"name"in f&&t(1,l=f.name),"show"in f&&t(0,s=f.show),"collapsible"in f&&t(2,o=f.collapsible),"$$scope"in f&&t(4,i=f.$$scope)},[s,l,o,u,i,n]}class Go extends ie{constructor(e){super();le(this,e,vO,bO,re,{name:1,show:0,collapsible:2})}}function wO(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;return{c(){e=D("div"),t=D("div"),n=R(),i=D("div"),l=D("div"),s=D("div"),o=D("div"),a=R(),u=D("div"),f=D("div"),c=D("div"),w(t,"class","spectrum-ProgressCircle-track"),w(o,"class","spectrum-ProgressCircle-fill"),w(s,"class","spectrum-ProgressCircle-fillSubMask1"),w(s,"style",r[3]),w(l,"class","spectrum-ProgressCircle-fillMask1"),w(c,"class","spectrum-ProgressCircle-fill"),w(f,"class","spectrum-ProgressCircle-fillSubMask2"),w(f,"style",r[4]),w(u,"class","spectrum-ProgressCircle-fillMask2"),w(i,"class","spectrum-ProgressCircle-fills"),w(e,"class",p="spectrum-ProgressCircle spectrum-ProgressCircle--"+Lh(r[0])),oe(e,"spectrum-ProgressCircle--indeterminate",r[1]==null),oe(e,"spectrum-ProgressCircle--overBackground",r[2])},m(h,v){$(h,e,v),N(e,t),N(e,n),N(e,i),N(i,l),N(l,s),N(s,o),N(i,a),N(i,u),N(u,f),N(f,c),d||(g=Pe(e,"click",r[7]),d=!0)},p(h,[v]){v&8&&w(s,"style",h[3]),v&16&&w(f,"style",h[4]),v&1&&p!==(p="spectrum-ProgressCircle spectrum-ProgressCircle--"+Lh(h[0]))&&w(e,"class",p),v&3&&oe(e,"spectrum-ProgressCircle--indeterminate",h[1]==null),v&5&&oe(e,"spectrum-ProgressCircle--overBackground",h[2])},i:Oe,o:Oe,d(h){h&&b(e),d=!1,g()}}}function Lh(r){switch(r){case"S":return"small";case"L":return"large";default:return}}function yO(r,e,t){let{size:n="M"}=e,{value:i=null}=e,{minValue:l=0}=e,{maxValue:s=100}=e,o,a;function u(p){if(p){let d=(p-l)/(s-l)*100,g;d>0&&d<=50?(g=-180+d/50*180,t(3,o=`transform: rotate(${g}deg);`),t(4,a="transform: rotate(-180deg);")):d>50&&(g=-180+(d-50)/50*180,t(3,o="transform: rotate(0deg);"),t(4,a=`transform: rotate(${g}deg);`))}}let{overBackground:f}=e;function c(p){dt.call(this,r,p)}return r.$$set=p=>{"size"in p&&t(0,n=p.size),"value"in p&&t(1,i=p.value),"minValue"in p&&t(5,l=p.minValue),"maxValue"in p&&t(6,s=p.maxValue),"overBackground"in p&&t(2,f=p.overBackground)},r.$$.update=()=>{r.$$.dirty&2&&u(i)},[n,i,f,o,a,l,s,c]}class cs extends ie{constructor(e){super();le(this,e,yO,wO,re,{size:0,value:1,minValue:5,maxValue:6,overBackground:2})}}function kO(r){let e,t,n;const i=r[2].default,l=bt(i,r,r[3],null);return{c(){e=D("label"),l&&l.c(),w(e,"for",""),w(e,"class",t=""+(Vn(`spectrum-FieldLabel spectrum-FieldLabel--size${r[0]}`)+" svelte-jmijfr"))},m(s,o){$(s,e,o),l&&l.m(e,null),n=!0},p(s,o){l&&l.p&&(!n||o&8)&&vt(l,i,s,s[3],n?yt(i,s[3],o,null):wt(s[3]),null),(!n||o&1&&t!==(t=""+(Vn(`spectrum-FieldLabel spectrum-FieldLabel--size${s[0]}`)+" svelte-jmijfr")))&&w(e,"class",t)},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function CO(r){let e,t;return e=new k_({props:{tooltip:r[1],size:r[0],$$slots:{default:[kO]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.tooltip=n[1]),i&1&&(l.size=n[0]),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 SO(r,e,t){let{$$slots:n={},$$scope:i}=e,{size:l="M"}=e,{tooltip:s=""}=e;return r.$$set=o=>{"size"in o&&t(0,l=o.size),"tooltip"in o&&t(1,s=o.tooltip),"$$scope"in o&&t(3,i=o.$$scope)},[l,s,n,i]}class Ze extends ie{constructor(e){super();le(this,e,SO,CO,re,{size:0,tooltip:1})}}function AO(r){let e,t,n;const i=r[9].default,l=bt(i,r,r[8],null);return{c(){e=D("div"),l&&l.c(),Ht(e,"align-content",r[6]),Ht(e,"justify-items",r[7]),w(e,"class",t="container paddingX-"+(!r[3]&&r[1])+" paddingY-"+(!r[3]&&r[2])+" gap-"+(!r[5]&&r[4])+" svelte-gywbrg"),oe(e,"horizontal",r[0])},m(s,o){$(s,e,o),l&&l.m(e,null),n=!0},p(s,[o]){l&&l.p&&(!n||o&256)&&vt(l,i,s,s[8],n?yt(i,s[8],o,null):wt(s[8]),null),(!n||o&64)&&Ht(e,"align-content",s[6]),(!n||o&128)&&Ht(e,"justify-items",s[7]),(!n||o&62&&t!==(t="container paddingX-"+(!s[3]&&s[1])+" paddingY-"+(!s[3]&&s[2])+" gap-"+(!s[5]&&s[4])+" svelte-gywbrg"))&&w(e,"class",t),o&63&&oe(e,"horizontal",s[0])},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function EO(r,e,t){let{$$slots:n={},$$scope:i}=e,{horizontal:l=!1}=e,{paddingX:s="M"}=e,{paddingY:o="M"}=e,{noPadding:a=!1}=e,{gap:u="M"}=e,{noGap:f=!1}=e,{alignContent:c="normal"}=e,{justifyItems:p="stretch"}=e;return r.$$set=d=>{"horizontal"in d&&t(0,l=d.horizontal),"paddingX"in d&&t(1,s=d.paddingX),"paddingY"in d&&t(2,o=d.paddingY),"noPadding"in d&&t(3,a=d.noPadding),"gap"in d&&t(4,u=d.gap),"noGap"in d&&t(5,f=d.noGap),"alignContent"in d&&t(6,c=d.alignContent),"justifyItems"in d&&t(7,p=d.justifyItems),"$$scope"in d&&t(8,i=d.$$scope)},[l,s,o,a,u,f,c,p,i,n]}class Ye extends ie{constructor(e){super();le(this,e,EO,AO,re,{horizontal:0,paddingX:1,paddingY:2,noPadding:3,gap:4,noGap:5,alignContent:6,justifyItems:7})}}function OO(r){let e,t;const n=r[2].default,i=bt(n,r,r[1],null);return{c(){e=D("div"),i&&i.c(),w(e,"class","svelte-1hjm5n6"),oe(e,"wide",r[0])},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,[s]){i&&i.p&&(!t||s&2)&&vt(i,n,l,l[1],t?yt(n,l[1],s,null):wt(l[1]),null),s&1&&oe(e,"wide",l[0])},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function TO(r,e,t){let{$$slots:n={},$$scope:i}=e,{wide:l=!1}=e;return r.$$set=s=>{"wide"in s&&t(0,l=s.wide),"$$scope"in s&&t(1,i=s.$$scope)},[l,i,n]}class Ys extends ie{constructor(e){super();le(this,e,TO,OO,re,{wide:0})}}function Ph(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href",n="#spectrum-icon-18-"+r[1]),w(e,"class","spectrum-Icon spectrum-Icon--sizeS spectrum-Menu-itemIcon svelte-bnymn3"),w(e,"focusable","false"),w(e,"aria-hidden","true"),w(e,"aria-label",r[1])},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&2&&n!==(n="#spectrum-icon-18-"+i[1])&&Gt(t,"xlink:href",n),l&2&&w(e,"aria-label",i[1])},d(i){i&&b(e)}}}function IO(r){let e,t,n,i,l,s,o=r[1]&&Ph(r);const a=r[6].default,u=bt(a,r,r[5],null);return{c(){e=D("li"),o&&o.c(),t=R(),n=D("span"),u&&u.c(),w(n,"class","spectrum-Menu-itemLabel"),w(e,"data-cy",r[0]),w(e,"class","spectrum-Menu-item"),w(e,"role","menuitem"),w(e,"tabindex","0"),oe(e,"is-disabled",r[2])},m(f,c){$(f,e,c),o&&o.m(e,null),N(e,t),N(e,n),u&&u.m(n,null),i=!0,l||(s=Pe(e,"click",Su(function(){ct(r[2]?null:r[3])&&(r[2]?null:r[3]).apply(this,arguments)})),l=!0)},p(f,[c]){r=f,r[1]?o?o.p(r,c):(o=Ph(r),o.c(),o.m(e,t)):o&&(o.d(1),o=null),u&&u.p&&(!i||c&32)&&vt(u,a,r,r[5],i?yt(a,r[5],c,null):wt(r[5]),null),(!i||c&1)&&w(e,"data-cy",r[0]),c&4&&oe(e,"is-disabled",r[2])},i(f){i||(m(u,f),i=!0)},o(f){_(u,f),i=!1},d(f){f&&b(e),o&&o.d(),u&&u.d(f),l=!1,s()}}}function LO(r,e,t){let{$$slots:n={},$$scope:i}=e;const l=ht(),s=Hs("actionMenu");let{dataCy:o}=e,{icon:a=void 0}=e,{disabled:u=void 0}=e,{noClose:f=!1}=e;const c=()=>{s&&!f&&s.hide(),l("click")};return r.$$set=p=>{"dataCy"in p&&t(0,o=p.dataCy),"icon"in p&&t(1,a=p.icon),"disabled"in p&&t(2,u=p.disabled),"noClose"in p&&t(4,f=p.noClose),"$$scope"in p&&t(5,i=p.$$scope)},[o,a,u,c,f,i,n]}class Qt extends ie{constructor(e){super();le(this,e,LO,IO,re,{dataCy:0,icon:1,disabled:2,noClose:4})}}var Cp={Modal:"bbui-modal"};const PO=r=>({}),Nh=r=>({});function NO(r){let e,t;return e=new Vs({props:{target:".modal-container",$$slots:{default:[MO]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};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 RO(r){let e,t,n=r[2]&&Mh(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=Mh(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 Rh(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;const g=r[8].outside,h=bt(g,r,r[9],Nh),v=r[8].default,C=bt(v,r,r[9],null);return{c(){e=D("div"),t=D("div"),n=D("div"),h&&h.c(),i=R(),l=D("div"),C&&C.c(),w(l,"class","spectrum-Modal is-open svelte-usenf5"),w(n,"class","modal-inner-wrapper svelte-usenf5"),w(t,"class","modal-wrapper svelte-usenf5"),w(e,"class","spectrum-Underlay is-open svelte-usenf5")},m(y,I){$(y,e,I),N(e,t),N(t,n),h&&h.m(n,null),N(n,i),N(n,l),C&&C.m(l,null),c=!0,p||(d=[vr(s=r[4].call(null,l)),Pe(n,"mousedown",jo(r[1])),Pe(t,"mousedown",jo(r[1])),Pe(e,"mousedown",jo(r[1]))],p=!0)},p(y,I){h&&h.p&&(!c||I&512)&&vt(h,g,y,y[9],c?yt(g,y[9],I,PO):wt(y[9]),Nh),C&&C.p&&(!c||I&512)&&vt(C,v,y,y[9],c?yt(v,y[9],I,null):wt(y[9]),null)},i(y){c||(m(h,y),m(C,y),fi(()=>{a&&a.end(1),o=Au(l,Jr,{y:30,duration:200}),o.start()}),fi(()=>{f&&f.end(1),u=Au(e,qo,{duration:200}),u.start()}),c=!0)},o(y){_(h,y),_(C,y),o&&o.invalidate(),y&&(a=m_(l,Jr,{y:30,duration:200})),u&&u.invalidate(),y&&(f=m_(e,qo,{duration:200})),c=!1},d(y){y&&b(e),h&&h.d(y),C&&C.d(y),y&&a&&a.end(),y&&f&&f.end(),p=!1,Tn(d)}}}function MO(r){let e,t,n=r[2]&&Rh(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=Rh(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 Mh(r){let e,t,n,i,l;const s=r[8].default,o=bt(s,r,r[9],null);return{c(){e=D("div"),o&&o.c(),w(e,"class","spectrum-Modal inline is-open svelte-usenf5")},m(a,u){$(a,e,u),o&&o.m(e,null),n=!0,i||(l=vr(t=r[4].call(null,e)),i=!0)},p(a,u){o&&o.p&&(!n||u&512)&&vt(o,s,a,a[9],n?yt(s,a[9],u,null):wt(a[9]),null)},i(a){n||(m(o,a),n=!0)},o(a){_(o,a),n=!1},d(a){a&&b(e),o&&o.d(a),i=!1,l()}}}function DO(r){let e,t,n,i,l,s;const o=[RO,NO],a=[];function u(f,c){return f[0]?0:1}return e=u(r),t=a[e]=o[e](r),{c(){t.c(),n=Ee()},m(f,c){a[e].m(f,c),$(f,n,c),i=!0,l||(s=Pe(window,"keydown",r[3]),l=!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){i||(m(t),i=!0)},o(f){_(t),i=!1},d(f){a[e].d(f),f&&b(n),l=!1,s()}}}function jO(r,e,t){let{$$slots:n={},$$scope:i}=e,{fixed:l=!1}=e,{inline:s=!1}=e;const o=ht();let a=l||s;function u(){a||t(2,a=!0)}function f(){!a||l||s||t(2,a=!1)}function c(){!a||(o("cancel"),f())}function p(g){a&&g.key==="Escape"&&c()}async function d(g){const h=g.querySelectorAll("input");(h==null?void 0:h.length)&&(await Ws(),h[0].focus())}return zo(Cp.Modal,{show:u,hide:f,cancel:c}),r.$$set=g=>{"fixed"in g&&t(5,l=g.fixed),"inline"in g&&t(0,s=g.inline),"$$scope"in g&&t(9,i=g.$$scope)},r.$$.update=()=>{r.$$.dirty&4&&o(a?"show":"hide")},[s,c,a,p,d,l,u,f,n,i]}class At extends ie{constructor(e){super();le(this,e,jO,DO,re,{fixed:5,inline:0,show:6,hide:7,cancel:1})}get show(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get cancel(){return this.$$.ctx[1]}}function BO(r){let e,t;return{c(){e=D("hr"),w(e,"class",t="spectrum-Divider spectrum-Divider--"+(r[1]?"vertical":"horizontal")+" spectrum-Dialog-divider spectrum-Divider--size"+r[0]+" svelte-1qbek3m"),oe(e,"noMargin",r[2]),oe(e,"noGrid",r[3])},m(n,i){$(n,e,i)},p(n,[i]){i&3&&t!==(t="spectrum-Divider spectrum-Divider--"+(n[1]?"vertical":"horizontal")+" spectrum-Dialog-divider spectrum-Divider--size"+n[0]+" svelte-1qbek3m")&&w(e,"class",t),i&7&&oe(e,"noMargin",n[2]),i&11&&oe(e,"noGrid",n[3])},i:Oe,o:Oe,d(n){n&&b(e)}}}function zO(r,e,t){let{size:n="M"}=e,{vertical:i=!1}=e,{noMargin:l=!1}=e,{noGrid:s=!1}=e;return r.$$set=o=>{"size"in o&&t(0,n=o.size),"vertical"in o&&t(1,i=o.vertical),"noMargin"in o&&t(2,l=o.noMargin),"noGrid"in o&&t(3,s=o.noGrid)},[n,i,l,s]}class un extends ie{constructor(e){super();le(this,e,zO,BO,re,{size:0,vertical:1,noMargin:2,noGrid:3})}}const qO=r=>({}),Dh=r=>({}),UO=r=>({}),jh=r=>({});function Bh(r){let e,t,n,i,l,s;const o=r[23].header,a=bt(o,r,r[24],jh);let u=r[7]&&zh();return{c(){e=D("h1"),t=V(r[0]),n=R(),a&&a.c(),i=R(),u&&u.c(),l=Ee(),w(e,"class","spectrum-Dialog-heading spectrum-Dialog-heading--noHeader svelte-1ffn7mp"),oe(e,"noDivider",!r[7]),oe(e,"header-spacing",r[18].header)},m(f,c){$(f,e,c),N(e,t),N(e,n),a&&a.m(e,null),$(f,i,c),u&&u.m(f,c),$(f,l,c),s=!0},p(f,c){(!s||c&1)&&Te(t,f[0]),a&&a.p&&(!s||c&16777216)&&vt(a,o,f,f[24],s?yt(o,f[24],c,UO):wt(f[24]),jh),c&128&&oe(e,"noDivider",!f[7]),c&262144&&oe(e,"header-spacing",f[18].header),f[7]?u?c&128&&m(u,1):(u=zh(),u.c(),m(u,1),u.m(l.parentNode,l)):u&&(ee(),_(u,1,1,()=>{u=null}),te())},i(f){s||(m(a,f),m(u),s=!0)},o(f){_(a,f),_(u),s=!1},d(f){f&&b(e),a&&a.d(f),f&&b(i),u&&u.d(f),f&&b(l)}}}function zh(r){let e,t;return e=new un({props:{size:"M"}}),{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 qh(r){let e,t,n,i,l;const s=r[23].footer,o=bt(s,r,r[24],Dh);let a=r[8]&&r[9]&&r[10]&&Uh(r),u=r[4]&&Fh(r),f=r[5]&&Vh(r);return{c(){e=D("div"),o&&o.c(),t=R(),a&&a.c(),n=R(),u&&u.c(),i=R(),f&&f.c(),w(e,"class","spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter svelte-1ffn7mp")},m(c,p){$(c,e,p),o&&o.m(e,null),N(e,t),a&&a.m(e,null),N(e,n),u&&u.m(e,null),N(e,i),f&&f.m(e,null),l=!0},p(c,p){o&&o.p&&(!l||p&16777216)&&vt(o,s,c,c[24],l?yt(s,c[24],p,qO):wt(c[24]),Dh),c[8]&&c[9]&&c[10]?a?(a.p(c,p),p&1792&&m(a,1)):(a=Uh(c),a.c(),m(a,1),a.m(e,n)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),c[4]?u?(u.p(c,p),p&16&&m(u,1)):(u=Fh(c),u.c(),m(u,1),u.m(e,i)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),c[5]?f?(f.p(c,p),p&32&&m(f,1)):(f=Vh(c),f.c(),m(f,1),f.m(e,null)):f&&(ee(),_(f,1,1,()=>{f=null}),te())},i(c){l||(m(o,c),m(a),m(u),m(f),l=!0)},o(c){_(o,c),_(a),_(u),_(f),l=!1},d(c){c&&b(e),o&&o.d(c),a&&a.d(),u&&u.d(),f&&f.d()}}}function Uh(r){let e,t,n;return t=new ut({props:{group:!0,secondary:!0,warning:r[11],$$slots:{default:[FO]},$$scope:{ctx:r}}}),t.$on("click",r[15]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","secondary-action svelte-1ffn7mp")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&2048&&(s.warning=i[11]),l&16777728&&(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 FO(r){let e;return{c(){e=V(r[9])},m(t,n){$(t,e,n)},p(t,n){n&512&&Te(e,t[9])},d(t){t&&b(e)}}}function Fh(r){let e,t;return e=new ut({props:{group:!0,secondary:!0,$$slots:{default:[VO]},$$scope:{ctx:r}}}),e.$on("click",r[17]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16777220&&(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 VO(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 Vh(r){let e,t,n;const i=[{group:!0},{cta:!0},r[19],{disabled:r[13]}];let l={$$slots:{default:[HO]},$$scope:{ctx:r}};for(let s=0;s<i.length;s+=1)l=Ui(l,i[s]);return t=new ut({props:l}),t.$on("click",r[16]),{c(){e=D("span"),S(t.$$.fragment),w(e,"class","confirm-wrap svelte-1ffn7mp")},m(s,o){$(s,e,o),A(t,e,null),n=!0},p(s,o){const a=o&532480?Eu(i,[i[0],i[1],o&524288&&Ou(s[19]),o&8192&&{disabled:s[13]}]):{};o&16781320&&(a.$$scope={dirty:o,ctx:s}),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),E(t)}}}function Hh(r){let e,t;return e=new cs({props:{overBackground:!0,size:"S"}}),{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 Wh(r){let e;return{c(){e=V(r[3])},m(t,n){$(t,e,n)},p(t,n){n&8&&Te(e,t[3])},d(t){t&&b(e)}}}function HO(r){let e,t,n,i=r[12]&&Hh(),l=!r[12]&&Wh(r);return{c(){i&&i.c(),e=R(),l&&l.c(),t=Ee()},m(s,o){i&&i.m(s,o),$(s,e,o),l&&l.m(s,o),$(s,t,o),n=!0},p(s,o){s[12]?i?o&4096&&m(i,1):(i=Hh(),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(ee(),_(i,1,1,()=>{i=null}),te()),s[12]?l&&(l.d(1),l=null):l?l.p(s,o):(l=Wh(s),l.c(),l.m(t.parentNode,t))},i(s){n||(m(i),n=!0)},o(s){_(i),n=!1},d(s){i&&i.d(s),s&&b(e),l&&l.d(s),s&&b(t)}}}function Gh(r){let e,t,n;return t=new gt({props:{hoverable:!0,name:"Close"}}),t.$on("click",r[14]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","close-icon svelte-1ffn7mp")},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 WO(r){let e,t,n,i,l,s,o,a=r[0]&&Bh(r);const u=r[23].default,f=bt(u,r,r[24],null);let c=(r[4]||r[5])&&qh(r),p=r[6]&&Gh(r);return{c(){e=D("div"),t=D("div"),a&&a.c(),n=R(),i=D("section"),f&&f.c(),l=R(),c&&c.c(),s=R(),p&&p.c(),w(i,"class","spectrum-Dialog-content content-grid svelte-1ffn7mp"),w(t,"class","spectrum-Dialog-grid"),w(e,"class","spectrum-Dialog svelte-1ffn7mp"),Ht(e,"position","relative"),w(e,"role","dialog"),w(e,"tabindex","-1"),w(e,"aria-modal","true"),oe(e,"spectrum-Dialog--small",r[1]==="S"),oe(e,"spectrum-Dialog--medium",r[1]==="M"),oe(e,"spectrum-Dialog--large",r[1]==="L"),oe(e,"spectrum-Dialog--extraLarge",r[1]==="XL")},m(d,g){$(d,e,g),N(e,t),a&&a.m(t,null),N(t,n),N(t,i),f&&f.m(i,null),N(t,l),c&&c.m(t,null),N(t,s),p&&p.m(t,null),o=!0},p(d,[g]){d[0]?a?(a.p(d,g),g&1&&m(a,1)):(a=Bh(d),a.c(),m(a,1),a.m(t,n)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),f&&f.p&&(!o||g&16777216)&&vt(f,u,d,d[24],o?yt(u,d[24],g,null):wt(d[24]),null),d[4]||d[5]?c?(c.p(d,g),g&48&&m(c,1)):(c=qh(d),c.c(),m(c,1),c.m(t,s)):c&&(ee(),_(c,1,1,()=>{c=null}),te()),d[6]?p?(p.p(d,g),g&64&&m(p,1)):(p=Gh(d),p.c(),m(p,1),p.m(t,null)):p&&(ee(),_(p,1,1,()=>{p=null}),te()),g&2&&oe(e,"spectrum-Dialog--small",d[1]==="S"),g&2&&oe(e,"spectrum-Dialog--medium",d[1]==="M"),g&2&&oe(e,"spectrum-Dialog--large",d[1]==="L"),g&2&&oe(e,"spectrum-Dialog--extraLarge",d[1]==="XL")},i(d){o||(m(a),m(f,d),m(c),m(p),o=!0)},o(d){_(a),_(f,d),_(c),_(p),o=!1},d(d){d&&b(e),a&&a.d(),f&&f.d(d),c&&c.d(),p&&p.d()}}}function GO(r,e,t){let n;const i=["title","size","cancelText","confirmText","showCancelButton","showConfirmButton","showCloseIcon","onConfirm","onCancel","disabled","showDivider","showSecondaryButton","secondaryButtonText","secondaryAction","secondaryButtonWarning"];let l=Tu(e,i),{$$slots:s={},$$scope:o}=e;const a=Bo(s);let{title:u=void 0}=e,{size:f="S"}=e,{cancelText:c="Cancel"}=e,{confirmText:p="Confirm"}=e,{showCancelButton:d=!0}=e,{showConfirmButton:g=!0}=e,{showCloseIcon:h=!0}=e,{onConfirm:v=void 0}=e,{onCancel:C=void 0}=e,{disabled:y=!1}=e,{showDivider:I=!0}=e,{showSecondaryButton:O=!1}=e,{secondaryButtonText:T=void 0}=e,{secondaryAction:P=void 0}=e,{secondaryButtonWarning:M=!1}=e;const{hide:F,cancel:j}=Hs(Cp.Modal);let B=!1;async function q(){t(12,B=!0),(!P||await P()!==!1)&&F(),t(12,B=!1)}async function G(){t(12,B=!0),(!v||await v()!==!1)&&F(),t(12,B=!1)}async function Y(){t(12,B=!0),(!C||await C()!==!1)&&j(),t(12,B=!1)}return r.$$set=U=>{e=Ui(Ui({},e),Iu(U)),t(19,l=Tu(e,i)),"title"in U&&t(0,u=U.title),"size"in U&&t(1,f=U.size),"cancelText"in U&&t(2,c=U.cancelText),"confirmText"in U&&t(3,p=U.confirmText),"showCancelButton"in U&&t(4,d=U.showCancelButton),"showConfirmButton"in U&&t(5,g=U.showConfirmButton),"showCloseIcon"in U&&t(6,h=U.showCloseIcon),"onConfirm"in U&&t(20,v=U.onConfirm),"onCancel"in U&&t(21,C=U.onCancel),"disabled"in U&&t(22,y=U.disabled),"showDivider"in U&&t(7,I=U.showDivider),"showSecondaryButton"in U&&t(8,O=U.showSecondaryButton),"secondaryButtonText"in U&&t(9,T=U.secondaryButtonText),"secondaryAction"in U&&t(10,P=U.secondaryAction),"secondaryButtonWarning"in U&&t(11,M=U.secondaryButtonWarning),"$$scope"in U&&t(24,o=U.$$scope)},r.$$.update=()=>{r.$$.dirty&4198400&&t(13,n=y||B)},[u,f,c,p,d,g,h,I,O,T,P,M,B,n,j,q,G,Y,a,l,v,C,y,s,o]}class Bt extends ie{constructor(e){super();le(this,e,GO,WO,re,{title:0,size:1,cancelText:2,confirmText:3,showCancelButton:4,showConfirmButton:5,showCloseIcon:6,onConfirm:20,onCancel:21,disabled:22,showDivider:7,showSecondaryButton:8,secondaryButtonText:9,secondaryAction:10,secondaryButtonWarning:11})}}const YO=3e3,JO=()=>{const r=new Set,e=mn([],()=>()=>{r.forEach(o=>{clearTimeout(o)}),e.set([])});let t=!1;const n=(o=1e3)=>{t=!0,setTimeout(()=>t=!1,o)},i=(o,a="default",u="",f=!0)=>{if(t)return;let c=QO();if(e.update(p=>[...p,{id:c,type:a,message:o,icon:u,dismissable:!f}]),f){const p=setTimeout(()=>{l(c)},YO);r.add(p)}},l=o=>{e.update(a=>a.filter(u=>u.id!==o))},{subscribe:s}=e;return{subscribe:s,send:i,info:o=>i(o,"info","Info"),error:o=>i(o,"error","Alert",!1),warning:o=>i(o,"warning","Alert"),success:o=>i(o,"success","CheckmarkCircle"),blockNotifications:n,dismiss:l}};function QO(){return"_"+Math.random().toString(36).slice(2,9)}const ye=JO();function Yh(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href",n="#spectrum-icon-18-"+r[1]),w(e,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-Toast-typeIcon"),w(e,"focusable","false"),w(e,"aria-hidden","true")},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&2&&n!==(n="#spectrum-icon-18-"+i[1])&&Gt(t,"xlink:href",n)},d(i){i&&b(e)}}}function Jh(r){let e,t,n,i;return{c(){e=D("div"),t=D("button"),t.innerHTML='<div class="spectrum-ClearButton-fill"><svg class="spectrum-ClearButton-icon spectrum-Icon spectrum-UIIcon-Cross100" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Cross100"></use></svg></div>',w(t,"class","spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--sizeM"),w(e,"class","spectrum-Toast-buttons")},m(l,s){$(l,e,s),N(e,t),n||(i=Pe(t,"click",r[5]),n=!0)},p:Oe,d(l){l&&b(e),n=!1,i()}}}function XO(r){let e,t,n,i,l=(r[2]||"")+"",s,o,a,u=r[1]&&Yh(r),f=r[3]&&Jh(r);return{c(){e=D("div"),u&&u.c(),t=R(),n=D("div"),i=D("div"),s=V(l),o=R(),f&&f.c(),w(i,"class","spectrum-Toast-content"),w(n,"class","spectrum-Toast-body"),w(e,"class",a="spectrum-Toast spectrum-Toast--"+r[0]+" svelte-1uu20v3")},m(c,p){$(c,e,p),u&&u.m(e,null),N(e,t),N(e,n),N(n,i),N(i,s),N(e,o),f&&f.m(e,null)},p(c,[p]){c[1]?u?u.p(c,p):(u=Yh(c),u.c(),u.m(e,t)):u&&(u.d(1),u=null),p&4&&l!==(l=(c[2]||"")+"")&&Te(s,l),c[3]?f?f.p(c,p):(f=Jh(c),f.c(),f.m(e,null)):f&&(f.d(1),f=null),p&1&&a!==(a="spectrum-Toast spectrum-Toast--"+c[0]+" svelte-1uu20v3")&&w(e,"class",a)},i:Oe,o:Oe,d(c){c&&b(e),u&&u.d(),f&&f.d()}}}function KO(r,e,t){let{type:n="info"}=e,{icon:i="Info"}=e,{message:l=""}=e,{dismissable:s=!1}=e;const o=ht(),a=()=>o("dismiss");return r.$$set=u=>{"type"in u&&t(0,n=u.type),"icon"in u&&t(1,i=u.icon),"message"in u&&t(2,l=u.message),"dismissable"in u&&t(3,s=u.dismissable)},[n,i,l,s,o,a]}class ZO extends ie{constructor(e){super();le(this,e,KO,XO,re,{type:0,icon:1,message:2,dismissable:3})}}function Qh(r,e,t){const n=r.slice();return n[2]=e[t].type,n[3]=e[t].icon,n[4]=e[t].message,n[5]=e[t].id,n[6]=e[t].dismissable,n}function Xh(r,e){let t,n,i,l,s;function o(){return e[1](e[5])}return n=new ZO({props:{type:e[2],icon:e[3],message:e[4],dismissable:e[6]}}),n.$on("dismiss",o),{key:r,first:null,c(){t=D("div"),S(n.$$.fragment),i=R(),this.first=t},m(a,u){$(a,t,u),A(n,t,null),N(t,i),s=!0},p(a,u){e=a;const f={};u&1&&(f.type=e[2]),u&1&&(f.icon=e[3]),u&1&&(f.message=e[4]),u&1&&(f.dismissable=e[6]),n.$set(f)},i(a){s||(m(n.$$.fragment,a),fi(()=>{l||(l=Dr(t,Jr,{y:-30},!0)),l.run(1)}),s=!0)},o(a){_(n.$$.fragment,a),l||(l=Dr(t,Jr,{y:-30},!1)),l.run(0),s=!1},d(a){a&&b(t),E(n),a&&l&&l.end()}}}function xO(r){let e,t=[],n=new Map,i,l=r[0];const s=o=>o[5];for(let o=0;o<l.length;o+=1){let a=Qh(r,l,o),u=s(a);n.set(u,t[o]=Xh(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();w(e,"class","notifications svelte-15qg7cd")},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&1&&(l=o[0],ee(),t=er(t,a,s,1,o,l,n,e,jr,Xh,null,Qh),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 eT(r){let e,t;return e=new Vs({props:{target:".modal-container",$$slots:{default:[xO]},$$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 tT(r,e,t){let n;return fe(r,ye,l=>t(0,n=l)),[n,l=>ye.dismiss(l)]}class nT extends ie{constructor(e){super();le(this,e,tT,eT,re,{})}}function rT(r){let e,t,n;const i=r[2].default,l=bt(i,r,r[1],null);return{c(){e=D("nav"),t=D("ul"),l&&l.c(),w(t,"class","spectrum-SideNav"),oe(t,"spectrum-SideNav--multiLevel",r[0])},m(s,o){$(s,e,o),N(e,t),l&&l.m(t,null),n=!0},p(s,[o]){l&&l.p&&(!n||o&2)&&vt(l,i,s,s[1],n?yt(i,s[1],o,null):wt(s[1]),null),o&1&&oe(t,"spectrum-SideNav--multiLevel",s[0])},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function iT(r,e,t){let{$$slots:n={},$$scope:i}=e,{multilevel:l=!1}=e;return zo("sidenav-type",l),r.$$set=s=>{"multilevel"in s&&t(0,l=s.multilevel),"$$scope"in s&&t(1,i=s.$$scope)},[l,i,n]}class lT extends ie{constructor(e){super();le(this,e,iT,rT,re,{multilevel:0})}}const sT=r=>({}),Kh=r=>({});function Zh(r){let e,t,n;return{c(){e=D("h2"),t=V(r[2]),w(e,"class","spectrum-SideNav-heading"),w(e,"id",n="nav-heading-"+r[2])},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&4&&Te(t,i[2]),l&4&&n!==(n="nav-heading-"+i[2])&&w(e,"id",n)},d(i){i&&b(e)}}}function xh(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href",n="#spectrum-icon-18-"+r[3]),w(e,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-SideNav-itemIcon"),w(e,"focusable","false"),w(e,"aria-hidden","true")},m(i,l){$(i,e,l),N(e,t)},p(i,l){l&8&&n!==(n="#spectrum-icon-18-"+i[3])&&Gt(t,"xlink:href",n)},d(i){i&&b(e)}}}function e0(r){let e,t;const n=r[9].subnav,i=bt(n,r,r[8],Kh);return{c(){e=D("ul"),i&&i.c(),w(e,"class","spectrum-SideNav")},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,s){i&&i.p&&(!t||s&256)&&vt(i,n,l,l[8],t?yt(n,l[8],s,sT):wt(l[8]),Kh)},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function oT(r){let e,t,n,i,l,s,o,a,u,f=r[2]&&Zh(r),c=r[3]&&xh(r);const p=r[9].default,d=bt(p,r,r[8],null);let g=r[6]&&r[7].subnav&&e0(r);return{c(){e=D("li"),f&&f.c(),t=R(),n=D("a"),c&&c.c(),i=R(),d&&d.c(),s=R(),g&&g.c(),w(n,"target",l=r[1]?"_blank":""),w(n,"href",r[0]),w(n,"class","spectrum-SideNav-itemLink"),w(n,"aria-current","page"),w(e,"class","spectrum-SideNav-item"),oe(e,"is-selected",r[4]),oe(e,"is-disabled",r[5])},m(h,v){$(h,e,v),f&&f.m(e,null),N(e,t),N(e,n),c&&c.m(n,null),N(n,i),d&&d.m(n,null),N(e,s),g&&g.m(e,null),o=!0,a||(u=Pe(e,"click",r[10]),a=!0)},p(h,[v]){h[2]?f?f.p(h,v):(f=Zh(h),f.c(),f.m(e,t)):f&&(f.d(1),f=null),h[3]?c?c.p(h,v):(c=xh(h),c.c(),c.m(n,i)):c&&(c.d(1),c=null),d&&d.p&&(!o||v&256)&&vt(d,p,h,h[8],o?yt(p,h[8],v,null):wt(h[8]),null),(!o||v&2&&l!==(l=h[1]?"_blank":""))&&w(n,"target",l),(!o||v&1)&&w(n,"href",h[0]),h[6]&&h[7].subnav?g?(g.p(h,v),v&128&&m(g,1)):(g=e0(h),g.c(),m(g,1),g.m(e,null)):g&&(ee(),_(g,1,1,()=>{g=null}),te()),v&16&&oe(e,"is-selected",h[4]),v&32&&oe(e,"is-disabled",h[5])},i(h){o||(m(d,h),m(g),o=!0)},o(h){_(d,h),_(g),o=!1},d(h){h&&b(e),f&&f.d(),c&&c.d(),d&&d.d(h),g&&g.d(),a=!1,u()}}}function aT(r,e,t){let{$$slots:n={},$$scope:i}=e;const l=Bo(n),s=Hs("sidenav-type");let{href:o=""}=e,{external:a=!1}=e,{heading:u=""}=e,{icon:f=""}=e,{selected:c=!1}=e,{disabled:p=!1}=e;function d(g){dt.call(this,r,g)}return r.$$set=g=>{"href"in g&&t(0,o=g.href),"external"in g&&t(1,a=g.external),"heading"in g&&t(2,u=g.heading),"icon"in g&&t(3,f=g.icon),"selected"in g&&t(4,c=g.selected),"disabled"in g&&t(5,p=g.disabled),"$$scope"in g&&t(8,i=g.$$scope)},[o,a,u,f,c,p,s,l,i,n,d]}class uT extends ie{constructor(e){super();le(this,e,aT,oT,re,{href:0,external:1,heading:2,icon:3,selected:4,disabled:5})}}function t0(r){let e,t;return{c(){e=me("svg"),t=me("use"),Gt(t,"xlink:href","#spectrum-icon-18-Alert"),w(e,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-Textfield-validationIcon"),w(e,"focusable","false"),w(e,"aria-hidden","true")},m(n,i){$(n,e,i),N(e,t)},d(n){n&&b(e)}}}function fT(r){let e,t,n,i,l,s,o,a,u,f,c=!!r[2]&&t0();return{c(){e=D("div"),t=D("div"),c&&c.c(),n=R(),i=D("input"),l=R(),s=D("button"),o=me("svg"),a=me("use"),w(i,"data-input",""),w(i,"type","text"),i.disabled=r[1],w(i,"class","spectrum-Textfield-input spectrum-InputGroup-input svelte-1po8cj0"),w(i,"placeholder",r[4]),w(i,"id",r[0]),i.value=r[3],w(t,"class","spectrum-Textfield spectrum-InputGroup-textfield svelte-1po8cj0"),oe(t,"is-disabled",r[1]),oe(t,"is-invalid",!!r[2]),Gt(a,"xlink:href","#spectrum-icon-18-Calendar"),w(o,"class","spectrum-Icon spectrum-Icon--sizeM"),w(o,"focusable","false"),w(o,"aria-hidden","true"),w(o,"aria-label","Calendar"),w(s,"type","button"),w(s,"class","spectrum-Picker spectrum-Picker--sizeM spectrum-InputGroup-button"),w(s,"tabindex","-1"),s.disabled=r[1],oe(s,"is-invalid",!!r[2]),w(e,"id",r[9]),w(e,"class","flatpickr spectrum-InputGroup spectrum-Datepicker svelte-1po8cj0"),w(e,"aria-readonly","false"),w(e,"aria-required","false"),w(e,"aria-haspopup","true"),oe(e,"is-disabled",r[1]),oe(e,"is-invalid",!!r[2]),oe(e,"is-focused",r[6])},m(p,d){$(p,e,d),N(e,t),c&&c.m(t,null),N(t,n),N(t,i),N(e,l),N(e,s),N(s,o),N(o,a),u||(f=[Pe(t,"click",function(){var g,h;ct((g=r[7])==null?void 0:g.open)&&((h=r[7])==null||h.open.apply(this,arguments))}),Pe(s,"click",function(){var g,h;ct((g=r[7])==null?void 0:g.open)&&((h=r[7])==null||h.open.apply(this,arguments))})],u=!0)},p(p,d){r=p,r[2]?c||(c=t0(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),d&2&&(i.disabled=r[1]),d&16&&w(i,"placeholder",r[4]),d&1&&w(i,"id",r[0]),d&8&&i.value!==r[3]&&(i.value=r[3]),d&2&&oe(t,"is-disabled",r[1]),d&4&&oe(t,"is-invalid",!!r[2]),d&2&&(s.disabled=r[1]),d&4&&oe(s,"is-invalid",!!r[2]),d&2&&oe(e,"is-disabled",r[1]),d&4&&oe(e,"is-invalid",!!r[2]),d&64&&oe(e,"is-focused",r[6])},d(p){p&&b(e),c&&c.d(),u=!1,Tn(f)}}}function n0(r){let e,t,n;function i(s){r[16](s)}let l={value:r[13](r[3]),options:r[8],element:`#${r[9]}`,$$slots:{default:[fT]},$$scope:{ctx:r}};return r[7]!==void 0&&(l.flatpickr=r[7]),e=new yS({props:l}),Z.push(()=>ce(e,"flatpickr",i)),e.$on("open",r[11]),e.$on("close",r[12]),e.$on("change",r[10]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&8&&(a.value=s[13](s[3])),o&256&&(a.options=s[8]),o&1048799&&(a.$$scope={dirty:o,ctx:s}),!t&&o&128&&(t=!0,a.flatpickr=s[7],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 r0(r){let e,t,n;return{c(){e=D("div"),w(e,"class","overlay svelte-1po8cj0")},m(i,l){$(i,e,l),t||(n=Pe(e,"mousedown",jo(function(){var s,o;ct((s=r[7])==null?void 0:s.close)&&((o=r[7])==null||o.close.apply(this,arguments))})),t=!0)},p(i,l){r=i},d(i){i&&b(e),t=!1,n()}}}function cT(r){let e=r[5],t,n,i,l=n0(r),s=r[6]&&r0(r);return{c(){l.c(),t=R(),s&&s.c(),n=Ee()},m(o,a){l.m(o,a),$(o,t,a),s&&s.m(o,a),$(o,n,a),i=!0},p(o,[a]){a&32&&re(e,e=o[5])?(ee(),_(l,1,1,Oe),te(),l=n0(o),l.c(),m(l),l.m(t.parentNode,t)):l.p(o,a),o[6]?s?s.p(o,a):(s=r0(o),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(o){i||(m(l),i=!0)},o(o){_(l),i=!1},d(o){l.d(o),o&&b(t),s&&s.d(o),o&&b(n)}}}function pT(r,e,t){let{id:n=null}=e,{disabled:i=!1}=e,{error:l=null}=e,{enableTime:s=!0}=e,{value:o=null}=e,{placeholder:a=null}=e,{appendTo:u=void 0}=e,{timeOnly:f=!1}=e;const c=ht(),p=`${Fi()}-wrapper`;let d=!1,g,h;const v=M=>{let F=new Date(`0-${M}`);return F instanceof Date&&!isNaN(F.getTime())?F:null},C=M=>{const[F]=M.detail;let j=F[0];j&&(j=j.toISOString()),f&&(j=`2000-01-01T${j.split("T")[1]}`),c("change",j)},y=M=>{["Backspace","Clear","Delete"].includes(M.key)&&(c("change",null),g.close())},I=()=>{t(6,d=!0),document.addEventListener("keyup",y)},O=()=>{t(6,d=!1),document.removeEventListener("keyup",y),document.querySelectorAll(`#${p} input`).forEach(F=>F.blur())},T=M=>{if(!M)return null;let F,j,B=v(M);return f&&B?F=B:M instanceof Date?F=M:isNaN(M)?F=new Date(M):F=new Date(parseInt(M)),j=F.getTime(),isNaN(j)?null:new Date(Math.floor(j/1e3)*1e3)};function P(M){g=M,t(7,g)}return r.$$set=M=>{"id"in M&&t(0,n=M.id),"disabled"in M&&t(1,i=M.disabled),"error"in M&&t(2,l=M.error),"enableTime"in M&&t(14,s=M.enableTime),"value"in M&&t(3,o=M.value),"placeholder"in M&&t(4,a=M.placeholder),"appendTo"in M&&t(15,u=M.appendTo),"timeOnly"in M&&t(5,f=M.timeOnly)},r.$$.update=()=>{r.$$.dirty&49192&&t(8,h={element:`#${p}`,enableTime:f||s||!1,noCalendar:f||!1,altInput:!0,altFormat:f?"H:i":s?"F j Y, H:i":"F j, Y",wrap:!0,appendTo:u,disableMobile:"true",onReady:()=>{let M=v(o);f&&M&&c("change",M.toISOString())}})},[n,i,l,o,a,f,d,g,h,p,C,I,O,T,s,u,P]}class dT extends ie{constructor(e){super();le(this,e,pT,cT,re,{id:0,disabled:1,error:2,enableTime:14,value:3,placeholder:4,appendTo:15,timeOnly:5})}}function mT(r){let e,t;return e=new dT({props:{error:r[4],disabled:r[3],value:r[0],placeholder:r[7],enableTime:r[5],timeOnly:r[6],appendTo:r[8]}}),e.$on("change",r[9]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.error=n[4]),i&8&&(l.disabled=n[3]),i&1&&(l.value=n[0]),i&128&&(l.placeholder=n[7]),i&32&&(l.enableTime=n[5]),i&64&&(l.timeOnly=n[6]),i&256&&(l.appendTo=n[8]),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 gT(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[2],error:r[4],$$slots:{default:[mT]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&4&&(l.labelPosition=n[2]),i&16&&(l.error=n[4]),i&2553&&(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 _T(r,e,t){let{value:n=null}=e,{label:i=null}=e,{labelPosition:l="above"}=e,{disabled:s=!1}=e,{error:o=null}=e,{enableTime:a=!0}=e,{timeOnly:u=!1}=e,{placeholder:f=null}=e,{appendTo:c=void 0}=e;const p=ht(),d=g=>{t(0,n=g.detail),p("change",g.detail)};return r.$$set=g=>{"value"in g&&t(0,n=g.value),"label"in g&&t(1,i=g.label),"labelPosition"in g&&t(2,l=g.labelPosition),"disabled"in g&&t(3,s=g.disabled),"error"in g&&t(4,o=g.error),"enableTime"in g&&t(5,a=g.enableTime),"timeOnly"in g&&t(6,u=g.timeOnly),"placeholder"in g&&t(7,f=g.placeholder),"appendTo"in g&&t(8,c=g.appendTo)},[n,i,l,s,o,a,u,f,c,d]}class Bl extends ie{constructor(e){super();le(this,e,_T,gT,re,{value:0,label:1,labelPosition:2,disabled:3,error:4,enableTime:5,timeOnly:6,placeholder:7,appendTo:8})}}function hT(r){var n;let e,t;return e=new q_({props:{id:r[1],error:r[3],disabled:r[2],readonly:r[7],fieldText:r[12],options:r[4],isPlaceholder:!((n=r[0])==null?void 0:n.length),autocomplete:r[8],isOptionSelected:r[11],getOptionLabel:r[5],getOptionValue:r[6],onSelectOption:r[10],sort:r[9]}}),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,[l]){var o;const s={};l&2&&(s.id=i[1]),l&8&&(s.error=i[3]),l&4&&(s.disabled=i[2]),l&128&&(s.readonly=i[7]),l&4096&&(s.fieldText=i[12]),l&16&&(s.options=i[4]),l&1&&(s.isPlaceholder=!((o=i[0])==null?void 0:o.length)),l&256&&(s.autocomplete=i[8]),l&2048&&(s.isOptionSelected=i[11]),l&32&&(s.getOptionLabel=i[5]),l&64&&(s.getOptionValue=i[6]),l&1024&&(s.onSelectOption=i[10]),l&512&&(s.sort=i[9]),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 $T(r,e,t){let n,i,l,s,o,{value:a=[]}=e,{id:u=null}=e,{placeholder:f=null}=e,{disabled:c=!1}=e,{error:p=null}=e,{options:d=[]}=e,{getOptionLabel:g=F=>F}=e,{getOptionValue:h=F=>F}=e,{readonly:v=!1}=e,{autocomplete:C=!1}=e,{sort:y=!1}=e;const I=ht(),O=(F,j,B)=>{if(F==null?void 0:F.length){if(!j)return"";const q=F.map(G=>j[G]||G).join(", ");return`(${F.length}) ${q}`}else return B||"Choose some options"},T=F=>{let j={};return(F==null?void 0:F.length)&&F.forEach(B=>{B&&(j[B]=!0)}),j},P=F=>{let j=null;return(F==null?void 0:F.length)&&(j={},F.forEach((B,q)=>{const G=h(B,q);G!=null&&(j[G]=g(B,q)||"")})),j},M=(F,j)=>B=>{if(F[B]){const q=j.filter(G=>G!==B);I("change",q)}else I("change",[...j,B])};return r.$$set=F=>{"value"in F&&t(0,a=F.value),"id"in F&&t(1,u=F.id),"placeholder"in F&&t(13,f=F.placeholder),"disabled"in F&&t(2,c=F.disabled),"error"in F&&t(3,p=F.error),"options"in F&&t(4,d=F.options),"getOptionLabel"in F&&t(5,g=F.getOptionLabel),"getOptionValue"in F&&t(6,h=F.getOptionValue),"readonly"in F&&t(7,v=F.readonly),"autocomplete"in F&&t(8,C=F.autocomplete),"sort"in F&&t(9,y=F.sort)},r.$$.update=()=>{r.$$.dirty&1&&t(14,n=T(a)),r.$$.dirty&16&&t(15,i=P(d)),r.$$.dirty&40961&&t(12,l=O(a,i,f)),r.$$.dirty&16384&&t(11,s=F=>n[F]===!0),r.$$.dirty&16385&&t(10,o=M(n,a))},[a,u,c,p,d,g,h,v,C,y,o,s,l,f,n,i]}class bT extends ie{constructor(e){super();le(this,e,$T,hT,re,{value:0,id:1,placeholder:13,disabled:2,error:3,options:4,getOptionLabel:5,getOptionValue:6,readonly:7,autocomplete:8,sort:9})}}function vT(r){let e,t;return e=new bT({props:{error:r[5],disabled:r[2],readonly:r[3],value:r[0],options:r[7],placeholder:r[6],sort:r[10],getOptionLabel:r[8],getOptionValue:r[9]}}),e.$on("change",r[11]),e.$on("click",r[12]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.error=n[5]),i&4&&(l.disabled=n[2]),i&8&&(l.readonly=n[3]),i&1&&(l.value=n[0]),i&128&&(l.options=n[7]),i&64&&(l.placeholder=n[6]),i&1024&&(l.sort=n[10]),i&256&&(l.getOptionLabel=n[8]),i&512&&(l.getOptionValue=n[9]),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 wT(r){let e,t;return e=new Xr({props:{label:r[1],labelPosition:r[4],error:r[5],$$slots:{default:[vT]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&16&&(l.labelPosition=n[4]),i&32&&(l.error=n[5]),i&18413&&(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 yT(r,e,t){let{value:n=[]}=e,{label:i=null}=e,{disabled:l=!1}=e,{readonly:s=!1}=e,{labelPosition:o="above"}=e,{error:a=null}=e,{placeholder:u=null}=e,{options:f=[]}=e,{getOptionLabel:c=C=>C}=e,{getOptionValue:p=C=>C}=e,{sort:d=!1}=e;const g=ht(),h=C=>{t(0,n=C.detail),g("change",C.detail)};function v(C){dt.call(this,r,C)}return r.$$set=C=>{"value"in C&&t(0,n=C.value),"label"in C&&t(1,i=C.label),"disabled"in C&&t(2,l=C.disabled),"readonly"in C&&t(3,s=C.readonly),"labelPosition"in C&&t(4,o=C.labelPosition),"error"in C&&t(5,a=C.error),"placeholder"in C&&t(6,u=C.placeholder),"options"in C&&t(7,f=C.options),"getOptionLabel"in C&&t(8,c=C.getOptionLabel),"getOptionValue"in C&&t(9,p=C.getOptionValue),"sort"in C&&t(10,d=C.sort)},[n,i,l,s,o,a,u,f,c,p,d,h,v]}class Yo extends ie{constructor(e){super();le(this,e,yT,wT,re,{value:0,label:1,disabled:2,readonly:3,labelPosition:4,error:5,placeholder:6,options:7,getOptionLabel:8,getOptionValue:9,sort:10})}}function kT(r){let e,t=(typeof r[0]=="object"?JSON.stringify(r[0]):r[0])+"",n;return{c(){e=D("div"),n=V(t),w(e,"class","svelte-186zidf")},m(i,l){$(i,e,l),N(e,n)},p(i,[l]){l&1&&t!==(t=(typeof i[0]=="object"?JSON.stringify(i[0]):i[0])+"")&&Te(n,t)},i:Oe,o:Oe,d(i){i&&b(e)}}}function CT(r,e,t){let{value:n}=e;return r.$$set=i=>{"value"in i&&t(0,n=i.value)},[n]}class Jo extends ie{constructor(e){super();le(this,e,CT,kT,re,{value:0})}}function ST(r){let e,t,n,i,l;return{c(){e=D("label"),t=D("input"),i=R(),l=D("span"),l.innerHTML=`<svg class="spectrum-Icon spectrum-UIIcon-Checkmark100 spectrum-Checkbox-checkmark" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Checkmark100"></use></svg>
22
22
  <svg class="spectrum-Icon spectrum-UIIcon-Dash100 spectrum-Checkbox-partialCheckmark" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Dash100"></use></svg>`,w(t,"type","checkbox"),w(t,"class","spectrum-Checkbox-input"),w(t,"id","checkbox-1"),t.disabled=!0,t.checked=n=!!r[0],w(l,"class","spectrum-Checkbox-box svelte-ww1lnr"),w(e,"class","spectrum-Checkbox spectrum-Checkbox--sizeM spectrum-Checkbox--emphasized svelte-ww1lnr")},m(s,o){$(s,e,o),N(e,t),N(e,i),N(e,l)},p(s,[o]){o&1&&n!==(n=!!s[0])&&(t.checked=n)},i:Oe,o:Oe,d(s){s&&b(e)}}}function AT(r,e,t){let{value:n}=e;return r.$$set=i=>{"value"in i&&t(0,n=i.value)},[n]}class ET extends ie{constructor(e){super();le(this,e,AT,ST,re,{value:0})}}function OT(r){let e,t=g_(r[2]?r[1]:r[0]).format(r[2]?"HH:mm:ss":"MMMM D YYYY, HH:mm")+"",n;return{c(){e=D("div"),n=V(t),w(e,"class","svelte-1abuiv5")},m(i,l){$(i,e,l),N(e,n)},p(i,[l]){l&7&&t!==(t=g_(i[2]?i[1]:i[0]).format(i[2]?"HH:mm:ss":"MMMM D YYYY, HH:mm")+"")&&Te(n,t)},i:Oe,o:Oe,d(i){i&&b(e)}}}function TT(r,e,t){let n,i,{value:l}=e;return r.$$set=s=>{"value"in s&&t(0,l=s.value)},r.$$.update=()=>{r.$$.dirty&1&&t(1,n=new Date(`0-${l}`)),r.$$.dirty&2&&t(2,i=!isNaN(n))},[l,n,i]}class IT extends ie{constructor(e){super();le(this,e,TT,OT,re,{value:0})}}function i0(r,e,t){const n=r.slice();return n[7]=e[t],n}function l0(r){let e,t=r[7].primaryDisplay+"",n,i,l;return{c(){e=D("span"),n=V(t),w(e,"class","spectrum-Label spectrum-Label--grey svelte-1auwst5")},m(s,o){$(s,e,o),N(e,n),i||(l=Pe(e,"click",r[2]),i=!0)},p(s,o){o&1&&t!==(t=s[7].primaryDisplay+"")&&Te(n,t)},d(s){s&&b(e),i=!1,l()}}}function s0(r){var n;let e,t=((n=r[7])==null?void 0:n.primaryDisplay)&&l0(r);return{c(){t&&t.c(),e=Ee()},m(i,l){t&&t.m(i,l),$(i,e,l)},p(i,l){var s;((s=i[7])==null?void 0:s.primaryDisplay)?t?t.p(i,l):(t=l0(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&b(e)}}}function o0(r){let e,t,n,i;return{c(){e=D("div"),t=V("+"),n=V(r[1]),i=V(" more")},m(l,s){$(l,e,s),N(e,t),N(e,n),N(e,i)},p(l,s){s&2&&Te(n,l[1])},d(l){l&&b(e)}}}function LT(r){let e,t,n=r[0],i=[];for(let s=0;s<n.length;s+=1)i[s]=s0(i0(r,n,s));let l=r[1]&&o0(r);return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=R(),l&&l.c(),t=Ee()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),l&&l.m(s,o),$(s,t,o)},p(s,[o]){if(o&5){n=s[0];let a;for(a=0;a<n.length;a+=1){const u=i0(s,n,a);i[a]?i[a].p(u,o):(i[a]=s0(u),i[a].c(),i[a].m(e.parentNode,e))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}s[1]?l?l.p(s,o):(l=o0(s),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},i:Oe,o:Oe,d(s){$t(i,s),s&&b(e),l&&l.d(s),s&&b(t)}}}const PT=5;function NT(r,e,t){let n,i,{row:l}=e,{value:s}=e,{schema:o}=e;const a=ht(),u=f=>{f.stopPropagation(),a("clickrelationship",{tableId:l.tableId,rowId:l._id,fieldName:o==null?void 0:o.name})};return r.$$set=f=>{"row"in f&&t(3,l=f.row),"value"in f&&t(4,s=f.value),"schema"in f&&t(5,o=f.schema)},r.$$.update=()=>{var f,c;r.$$.dirty&16&&t(0,n=(f=s==null?void 0:s.slice(0,PT))!=null?f:[]),r.$$.dirty&17&&t(1,i=((c=s==null?void 0:s.length)!=null?c:0)-n.length)},[n,i,u,l,s,o]}class RT extends ie{constructor(e){super();le(this,e,NT,LT,re,{row:3,value:4,schema:5})}}function a0(r,e,t){const n=r.slice();return n[5]=e[t],n}function MT(r){let e,t;return e=new Nu({props:{text:r[5].name,direction:"right",$$slots:{default:[BT]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.text=n[5].name),i&257&&(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 DT(r){let e,t;return e=new Mu({props:{quiet:!0,target:"_blank",href:r[5].url,$$slots:{default:[zT]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.href=n[5].url),i&257&&(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 jT(r){let e=r[5].extension+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[5].extension+"")&&Te(t,e)},d(n){n&&b(t)}}}function BT(r){let e,t,n;return t=new Mu({props:{quiet:!0,target:"_blank",href:r[5].url,$$slots:{default:[jT]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","file svelte-n96ac")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&1&&(s.href=i[5].url),l&257&&(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 zT(r){let e,t,n,i;return{c(){e=D("div"),t=D("img"),an(t.src,n=r[5].url)||w(t,"src",n),w(t,"alt",i=r[5].extension),w(t,"class","svelte-n96ac"),w(e,"class","center svelte-n96ac")},m(l,s){$(l,e,s),N(e,t)},p(l,s){s&1&&!an(t.src,n=l[5].url)&&w(t,"src",n),s&1&&i!==(i=l[5].extension)&&w(t,"alt",i)},d(l){l&&b(e)}}}function u0(r){let e,t,n,i,l;const s=[DT,MT],o=[];function a(u,f){return(e==null||f&1)&&(e=!!u[2](u[5].extension)),e?0:1}return t=a(r,-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 f0(r){let e,t,n,i;return{c(){e=D("div"),t=V("+"),n=V(r[1]),i=V(" more")},m(l,s){$(l,e,s),N(e,t),N(e,n),N(e,i)},p(l,s){s&2&&Te(n,l[1])},d(l){l&&b(e)}}}function qT(r){let e,t,n,i=r[0],l=[];for(let a=0;a<i.length;a+=1)l[a]=u0(a0(r,i,a));const s=a=>_(l[a],1,1,()=>{l[a]=null});let o=r[1]&&f0(r);return{c(){for(let a=0;a<l.length;a+=1)l[a].c();e=R(),o&&o.c(),t=Ee()},m(a,u){for(let f=0;f<l.length;f+=1)l[f].m(a,u);$(a,e,u),o&&o.m(a,u),$(a,t,u),n=!0},p(a,[u]){if(u&5){i=a[0];let f;for(f=0;f<i.length;f+=1){const c=a0(a,i,f);l[f]?(l[f].p(c,u),m(l[f],1)):(l[f]=u0(c),l[f].c(),m(l[f],1),l[f].m(e.parentNode,e))}for(ee(),f=i.length;f<l.length;f+=1)s(f);te()}a[1]?o?o.p(a,u):(o=f0(a),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null)},i(a){if(!n){for(let u=0;u<i.length;u+=1)m(l[u]);n=!0}},o(a){l=l.filter(Boolean);for(let u=0;u<l.length;u+=1)_(l[u]);n=!1},d(a){$t(l,a),a&&b(e),o&&o.d(a),a&&b(t)}}}const UT=5;function FT(r,e,t){let n,i,{value:l}=e;const s=["png","tiff","gif","raw","jpg","jpeg"],o=a=>s.includes(a==null?void 0:a.toLowerCase());return r.$$set=a=>{"value"in a&&t(3,l=a.value)},r.$$.update=()=>{var a,u;r.$$.dirty&8&&t(0,n=(a=l==null?void 0:l.slice(0,UT))!=null?a:[]),r.$$.dirty&9&&t(1,i=((u=l==null?void 0:l.length)!=null?u:0)-n.length)},[n,i,o,l]}class VT extends ie{constructor(e){super();le(this,e,FT,qT,re,{value:3})}}function HT(r){let e,t;const n=r[10].default,i=bt(n,r,r[9],null);return{c(){e=D("span"),i&&i.c(),w(e,"class","spectrum-Label"),oe(e,"spectrum-Label--small",r[0]==="S"),oe(e,"spectrum-Label--large",r[0]==="L"),oe(e,"spectrum-Label--grey",r[1]),oe(e,"spectrum-Label--red",r[2]),oe(e,"spectrum-Label--green",r[6]),oe(e,"spectrum-Label--orange",r[3]),oe(e,"spectrum-Label--yellow",r[4]),oe(e,"spectrum-Label--seafoam",r[5]),oe(e,"spectrum-Label--active",r[7]),oe(e,"spectrum-Label--inactive",r[8])},m(l,s){$(l,e,s),i&&i.m(e,null),t=!0},p(l,[s]){i&&i.p&&(!t||s&512)&&vt(i,n,l,l[9],t?yt(n,l[9],s,null):wt(l[9]),null),s&1&&oe(e,"spectrum-Label--small",l[0]==="S"),s&1&&oe(e,"spectrum-Label--large",l[0]==="L"),s&2&&oe(e,"spectrum-Label--grey",l[1]),s&4&&oe(e,"spectrum-Label--red",l[2]),s&64&&oe(e,"spectrum-Label--green",l[6]),s&8&&oe(e,"spectrum-Label--orange",l[3]),s&16&&oe(e,"spectrum-Label--yellow",l[4]),s&32&&oe(e,"spectrum-Label--seafoam",l[5]),s&128&&oe(e,"spectrum-Label--active",l[7]),s&256&&oe(e,"spectrum-Label--inactive",l[8])},i(l){t||(m(i,l),t=!0)},o(l){_(i,l),t=!1},d(l){l&&b(e),i&&i.d(l)}}}function WT(r,e,t){let{$$slots:n={},$$scope:i}=e,{size:l="M"}=e,{grey:s=!1}=e,{red:o=!1}=e,{orange:a=!1}=e,{yellow:u=!1}=e,{seafoam:f=!1}=e,{green:c=!1}=e,{active:p=!1}=e,{inactive:d=!1}=e;return r.$$set=g=>{"size"in g&&t(0,l=g.size),"grey"in g&&t(1,s=g.grey),"red"in g&&t(2,o=g.red),"orange"in g&&t(3,a=g.orange),"yellow"in g&&t(4,u=g.yellow),"seafoam"in g&&t(5,f=g.seafoam),"green"in g&&t(6,c=g.green),"active"in g&&t(7,p=g.active),"inactive"in g&&t(8,d=g.inactive),"$$scope"in g&&t(9,i=g.$$scope)},[l,s,o,a,u,f,c,p,d,i,n]}class ju extends ie{constructor(e){super();le(this,e,WT,HT,re,{size:0,grey:1,red:2,orange:3,yellow:4,seafoam:5,green:6,active:7,inactive:8})}}function c0(r,e,t){const n=r.slice();return n[3]=e[t],n}function GT(r){let e=r[3]+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[3]+"")&&Te(t,e)},d(n){n&&b(t)}}}function p0(r){let e,t;return e=new ju({props:{size:"S",grey:!0,$$slots:{default:[GT]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&65&&(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 d0(r){let e,t,n,i;return{c(){e=D("div"),t=V("+"),n=V(r[1]),i=V(" more")},m(l,s){$(l,e,s),N(e,t),N(e,n),N(e,i)},p(l,s){s&2&&Te(n,l[1])},d(l){l&&b(e)}}}function YT(r){let e,t,n,i=r[0],l=[];for(let a=0;a<i.length;a+=1)l[a]=p0(c0(r,i,a));const s=a=>_(l[a],1,1,()=>{l[a]=null});let o=r[1]&&d0(r);return{c(){for(let a=0;a<l.length;a+=1)l[a].c();e=R(),o&&o.c(),t=Ee()},m(a,u){for(let f=0;f<l.length;f+=1)l[f].m(a,u);$(a,e,u),o&&o.m(a,u),$(a,t,u),n=!0},p(a,[u]){if(u&1){i=a[0];let f;for(f=0;f<i.length;f+=1){const c=c0(a,i,f);l[f]?(l[f].p(c,u),m(l[f],1)):(l[f]=p0(c),l[f].c(),m(l[f],1),l[f].m(e.parentNode,e))}for(ee(),f=i.length;f<l.length;f+=1)s(f);te()}a[1]?o?o.p(a,u):(o=d0(a),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null)},i(a){if(!n){for(let u=0;u<i.length;u+=1)m(l[u]);n=!0}},o(a){l=l.filter(Boolean);for(let u=0;u<l.length;u+=1)_(l[u]);n=!1},d(a){$t(l,a),a&&b(e),o&&o.d(a),a&&b(t)}}}const JT=5;function QT(r,e,t){let n,i,{value:l}=e;return r.$$set=s=>{"value"in s&&t(2,l=s.value)},r.$$.update=()=>{var s,o;r.$$.dirty&4&&t(0,n=(s=l==null?void 0:l.slice(0,JT))!=null?s:[]),r.$$.dirty&5&&t(1,i=((o=l==null?void 0:l.length)!=null?o:0)-n.length)},[n,i,l]}class XT extends ie{constructor(e){super();le(this,e,QT,YT,re,{value:2})}}function KT(r){let e,t,n,i,l;return t=new gt({props:{size:"S",name:"Copy"}}),{c(){e=D("div"),S(t.$$.fragment)},m(s,o){$(s,e,o),A(t,e,null),n=!0,i||(l=Pe(e,"click",mp(r[0])),i=!0)},p:Oe,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 ZT(r,e,t){let{value:n}=e;const i=s=>{s.stopPropagation(),l(n)},l=s=>new Promise(o=>{if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(s).then(o);else{let a=document.createElement("textarea");a.value=s,a.style.position="fixed",a.style.left="-9999px",a.style.top="-9999px",document.body.appendChild(a),a.focus(),a.select(),document.execCommand("copy"),a.remove(),o()}}).then(()=>{ye.success("Copied to clipboard")}).catch(()=>{ye.error("Failed to copy to clipboard. Check the dev console for the value."),console.warn("Failed to copy the value",s)});return r.$$set=s=>{"value"in s&&t(1,n=s.value)},[i,n]}class xT extends ie{constructor(e){super();le(this,e,ZT,KT,re,{value:1})}}var Sp,di=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{};function Js(r){if(Object.keys)return Object.keys(r);var e=[];for(var t in r)e.push(t);return e}function Qs(r,e){if(r.forEach)return r.forEach(e);for(var t=0;t<r.length;t++)e(r[t],t,r)}function eI(){try{return Object.defineProperty({},"_",{}),function(r,e,t){Object.defineProperty(r,e,{writable:!0,enumerable:!1,configurable:!0,value:t})}}catch{return function(e,t,n){e[t]=n}}}var m0=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Bu(){}function Vi(r){if(!(this instanceof Vi))return new Vi(r);this.code=r}function g0(r){if(_0(r))return r;var e=new Bu;return typeof r=="object"&&Qs(Js(r),function(t){e[t]=r[t]}),e}function _0(r){return r instanceof Bu}Bu.prototype={},Vi.prototype.runInContext=function(r){if(!(r instanceof Bu))throw new TypeError("needs a 'context' argument.");if(di.document){var e=di.document.createElement("iframe");e.style||(e.style={}),e.style.display="none",di.document.body.appendChild(e);var t=e.contentWindow,n=t.eval,i=t.execScript;!n&&i&&(i.call(t,"null"),n=t.eval),Qs(Js(r),function(o){t[o]=r[o]}),Qs(m0,function(o){r[o]&&(t[o]=r[o])});var l=Js(t),s=n.call(t,this.code);return Qs(Js(t),function(o){(o in r||function(a,u){if(tI)return a.indexOf(u);for(var f=0;f<a.length;++f)if(a[f]===u)return f;return-1}(l,o)===-1)&&(r[o]=t[o])}),Qs(m0,function(o){o in r||function(a,u,f){typeof Sp!="function"&&(Sp=eI),Sp(a,u,f)}(r,o,t[o])}),di.document.body.removeChild(e),s}return function(o,a){var u=Js(di);return u.push("with (this.__ctx__){return eval(this.__code__)}"),Function.apply(null,u).apply({__code__:o,__ctx__:a})}(this.code,r)},Vi.prototype.runInThisContext=function(){return new Function("code","return eval(code);").call(di,this.code)},Vi.prototype.runInNewContext=function(r){var e=g0(r),t=this.runInContext(e);return r&&Qs(Js(e),function(n){r[n]=e[n]}),t};var h0={runInContext:function(r,e,t){return new Vi(r,t).runInContext(e,t)},isContext:_0,createContext:g0,createScript:function(r){return new Vi(r)},Script:Vi,runInThisContext:function(r,e){return new Vi(r,e).runInThisContext(e)},runInNewContext:function(r,e,t){return new Vi(r,t).runInNewContext(e,t)}},tI=[].indexOf,xr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Qo(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}function _t(r){var e={exports:{}};return r(e,e.exports),e.exports}function Ap(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}var gn=_t(function(r,e){e.__esModule=!0,e.extend=s,e.indexOf=function(f,c){for(var p=0,d=f.length;p<d;p++)if(f[p]===c)return p;return-1},e.escapeExpression=function(f){if(typeof f!="string"){if(f&&f.toHTML)return f.toHTML();if(f==null)return"";if(!f)return f+"";f=""+f}return i.test(f)?f.replace(n,l):f},e.isEmpty=function(f){return!f&&f!==0||!(!u(f)||f.length!==0)},e.createFrame=function(f){var c=s({},f);return c._parent=f,c},e.blockParams=function(f,c){return f.path=c,f},e.appendContextPath=function(f,c){return(f?f+".":"")+c};var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},n=/[&<>"'`=]/g,i=/[&<>"'`=]/;function l(f){return t[f]}function s(f){for(var c=1;c<arguments.length;c++)for(var p in arguments[c])Object.prototype.hasOwnProperty.call(arguments[c],p)&&(f[p]=arguments[c][p]);return f}var o=Object.prototype.toString;e.toString=o;var a=function(f){return typeof f=="function"};a(/x/)&&(e.isFunction=a=function(f){return typeof f=="function"&&o.call(f)==="[object Function]"}),e.isFunction=a;var u=Array.isArray||function(f){return!(!f||typeof f!="object")&&o.call(f)==="[object Array]"};e.isArray=u}),Ei=_t(function(r,e){e.__esModule=!0;var t=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function n(i,l){var s=l&&l.loc,o=void 0,a=void 0,u=void 0,f=void 0;s&&(o=s.start.line,a=s.end.line,u=s.start.column,f=s.end.column,i+=" - "+o+":"+u);for(var c=Error.prototype.constructor.call(this,i),p=0;p<t.length;p++)this[t[p]]=c[t[p]];Error.captureStackTrace&&Error.captureStackTrace(this,n);try{s&&(this.lineNumber=o,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:f,enumerable:!0})):(this.column=u,this.endColumn=f))}catch{}}n.prototype=new Error,e.default=n,r.exports=e.default}),nI=_t(function(r,e){e.__esModule=!0,e.default=function(t){t.registerHelper("blockHelperMissing",function(n,i){var l=i.inverse,s=i.fn;if(n===!0)return s(this);if(n===!1||n==null)return l(this);if(gn.isArray(n))return n.length>0?(i.ids&&(i.ids=[i.name]),t.helpers.each(n,i)):l(this);if(i.data&&i.ids){var o=gn.createFrame(i.data);o.contextPath=gn.appendContextPath(i.data.contextPath,i.name),i={data:o}}return s(n,i)})},r.exports=e.default}),rI=_t(function(r,e){e.__esModule=!0;var t,n=(t=Ei)&&t.__esModule?t:{default:t};e.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new n.default("Must pass iterator to #each");var o,a=s.fn,u=s.inverse,f=0,c="",p=void 0,d=void 0;function g(I,O,T){p&&(p.key=I,p.index=O,p.first=O===0,p.last=!!T,d&&(p.contextPath=d+I)),c+=a(l[I],{data:p,blockParams:gn.blockParams([l[I],I],[d+I,null])})}if(s.data&&s.ids&&(d=gn.appendContextPath(s.data.contextPath,s.ids[0])+"."),gn.isFunction(l)&&(l=l.call(this)),s.data&&(p=gn.createFrame(s.data)),l&&typeof l=="object")if(gn.isArray(l))for(var h=l.length;f<h;f++)f in l&&g(f,f,f===l.length-1);else if(xr.Symbol&&l[xr.Symbol.iterator]){for(var v=[],C=l[xr.Symbol.iterator](),y=C.next();!y.done;y=C.next())v.push(y.value);for(h=(l=v).length;f<h;f++)g(f,f,f===l.length-1)}else o=void 0,Object.keys(l).forEach(function(I){o!==void 0&&g(o,f-1),o=I,f++}),o!==void 0&&g(o,f-1,!0);return f===0&&(c=u(this)),c})},r.exports=e.default}),iI=_t(function(r,e){e.__esModule=!0;var t,n=(t=Ei)&&t.__esModule?t:{default:t};e.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new n.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},r.exports=e.default}),lI=_t(function(r,e){e.__esModule=!0;var t,n=(t=Ei)&&t.__esModule?t:{default:t};e.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new n.default("#if requires exactly one argument");return gn.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||gn.isEmpty(l)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new n.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},r.exports=e.default}),sI=_t(function(r,e){e.__esModule=!0,e.default=function(t){t.registerHelper("log",function(){for(var n=[void 0],i=arguments[arguments.length-1],l=0;l<arguments.length-1;l++)n.push(arguments[l]);var s=1;i.hash.level!=null?s=i.hash.level:i.data&&i.data.level!=null&&(s=i.data.level),n[0]=s,t.log.apply(t,n)})},r.exports=e.default}),oI=_t(function(r,e){e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(n,i,l){return n&&l.lookupProperty(n,i)})},r.exports=e.default}),aI=_t(function(r,e){e.__esModule=!0;var t,n=(t=Ei)&&t.__esModule?t:{default:t};e.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new n.default("#with requires exactly one argument");gn.isFunction(l)&&(l=l.call(this));var o=s.fn;if(gn.isEmpty(l))return s.inverse(this);var a=s.data;return s.data&&s.ids&&((a=gn.createFrame(s.data)).contextPath=gn.appendContextPath(s.data.contextPath,s.ids[0])),o(l,{data:a,blockParams:gn.blockParams([l],[a&&a.contextPath])})})},r.exports=e.default}),uI=function(r){cI.default(r),pI.default(r),dI.default(r),mI.default(r),gI.default(r),_I.default(r),hI.default(r)},fI=function(r,e,t){r.helpers[e]&&(r.hooks[e]=r.helpers[e],t||delete r.helpers[e])};function ps(r){return r&&r.__esModule?r:{default:r}}var cI=ps(nI),pI=ps(rI),dI=ps(iI),mI=ps(lI),gI=ps(sI),_I=ps(oI),hI=ps(aI),Ep=Object.defineProperty({registerDefaultHelpers:uI,moveHelperToHooks:fI},"__esModule",{value:!0}),$I=_t(function(r,e){e.__esModule=!0,e.default=function(t){t.registerDecorator("inline",function(n,i,l,s){var o=n;return i.partials||(i.partials={},o=function(a,u){var f=l.partials;l.partials=gn.extend({},f,i.partials);var c=n(a,u);return l.partials=f,c}),i.partials[s.args[0]]=s.fn,o})},r.exports=e.default}),bI=function(r){vI.default(r)},zu,vI=(zu=$I)&&zu.__esModule?zu:{default:zu},wI=Object.defineProperty({registerDefaultDecorators:bI},"__esModule",{value:!0}),$0=_t(function(r,e){e.__esModule=!0;var t={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(n){if(typeof n=="string"){var i=gn.indexOf(t.methodMap,n.toLowerCase());n=i>=0?i:parseInt(n,10)}return n},log:function(n){if(n=t.lookupLevel(n),typeof console!="undefined"&&t.lookupLevel(t.level)<=n){var i=t.methodMap[n];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),o=1;o<l;o++)s[o-1]=arguments[o];console[i].apply(console,s)}}};e.default=t,r.exports=e.default}),yI=function(){for(var r=arguments.length,e=Array(r),t=0;t<r;t++)e[t]=arguments[t];return gn.extend.apply(void 0,[Object.create(null)].concat(e))},b0=Object.defineProperty({createNewLookupObject:yI},"__esModule",{value:!0}),kI=function(r){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var t=Object.create(null);return t.__proto__=!1,{properties:{whitelist:b0.createNewLookupObject(t,r.allowedProtoProperties),defaultValue:r.allowProtoPropertiesByDefault},methods:{whitelist:b0.createNewLookupObject(e,r.allowedProtoMethods),defaultValue:r.allowProtoMethodsByDefault}}},CI=function(r,e,t){return EI(typeof r=="function"?e.methods:e.properties,t)},SI=function(){Object.keys(qu).forEach(function(r){delete qu[r]})},AI=function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}($0),qu=Object.create(null);function EI(r,e){return r.whitelist[e]!==void 0?r.whitelist[e]===!0:r.defaultValue!==void 0?r.defaultValue:(function(t){qu[t]!==!0&&(qu[t]=!0,AI.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent.
23
23
  You can add a runtime option to disable the check or this warning:
24
24
  See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}(e),!1)}var Op=Object.defineProperty({createProtoAccessControl:kI,resultIsAllowed:CI,resetLoggedProperties:SI},"__esModule",{value:!0}),OI=Ip;function v0(r){return r&&r.__esModule?r:{default:r}}var Tp=v0(Ei),Uu=v0($0),TI={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function Ip(r,e,t){this.helpers=r||{},this.partials=e||{},this.decorators=t||{},Ep.registerDefaultHelpers(this),wI.registerDefaultDecorators(this)}Ip.prototype={constructor:Ip,logger:Uu.default,log:Uu.default.log,registerHelper:function(r,e){if(gn.toString.call(r)==="[object Object]"){if(e)throw new Tp.default("Arg not supported with multiple helpers");gn.extend(this.helpers,r)}else this.helpers[r]=e},unregisterHelper:function(r){delete this.helpers[r]},registerPartial:function(r,e){if(gn.toString.call(r)==="[object Object]")gn.extend(this.partials,r);else{if(e===void 0)throw new Tp.default('Attempting to register a partial called "'+r+'" as undefined');this.partials[r]=e}},unregisterPartial:function(r){delete this.partials[r]},registerDecorator:function(r,e){if(gn.toString.call(r)==="[object Object]"){if(e)throw new Tp.default("Arg not supported with multiple decorators");gn.extend(this.decorators,r)}else this.decorators[r]=e},unregisterDecorator:function(r){delete this.decorators[r]},resetLoggedPropertyAccesses:function(){Op.resetLoggedProperties()}};var II=Uu.default.log,LI=gn.createFrame,PI=Uu.default,mi=Object.defineProperty({HandlebarsEnvironment:OI,VERSION:"4.7.7",COMPILER_REVISION:8,LAST_COMPATIBLE_COMPILER_REVISION:7,REVISION_CHANGES:TI,log:II,createFrame:LI,logger:PI},"__esModule",{value:!0}),NI=_t(function(r,e){function t(n){this.string=n}e.__esModule=!0,t.prototype.toString=t.prototype.toHTML=function(){return""+this.string},e.default=t,r.exports=e.default}),RI=function(r,e){return typeof r!="function"?r:function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),r.apply(this,arguments)}},MI=Object.defineProperty({wrapHelper:RI},"__esModule",{value:!0}),DI=function(r){var e=r&&r[0]||1,t=mi.COMPILER_REVISION;if(!(e>=mi.LAST_COMPATIBLE_COMPILER_REVISION&&e<=mi.COMPILER_REVISION)){if(e<mi.LAST_COMPATIBLE_COMPILER_REVISION){var n=mi.REVISION_CHANGES[t],i=mi.REVISION_CHANGES[e];throw new ml.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}throw new ml.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+r[1]+").")}},jI=function(r,e){if(!e)throw new ml.default("No environment passed to template");if(!r||!r.main)throw new ml.default("Unknown template object: "+typeof r);r.main.decorator=r.main_d,e.VM.checkRevision(r.compiler);var t=r.compiler&&r.compiler[0]===7,n={strict:function(l,s,o){if(!l||!(s in l))throw new ml.default('"'+s+'" not defined in '+l,{loc:o});return n.lookupProperty(l,s)},lookupProperty:function(l,s){var o=l[s];return o==null||Object.prototype.hasOwnProperty.call(l,s)||Op.resultIsAllowed(o,n.protoAccessControl,s)?o:void 0},lookup:function(l,s){for(var o=l.length,a=0;a<o;a++)if((l[a]&&n.lookupProperty(l[a],s))!=null)return l[a][s]},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:dl.escapeExpression,invokePartial:function(l,s,o){o.hash&&(s=dl.extend({},s,o.hash),o.ids&&(o.ids[0]=!0)),l=e.VM.resolvePartial.call(this,l,s,o);var a=dl.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),u=e.VM.invokePartial.call(this,l,s,a);if(u==null&&e.compile&&(o.partials[o.name]=e.compile(l,r.compilerOptions,e),u=o.partials[o.name](s,a)),u!=null){if(o.indent){for(var f=u.split(`
@@ -381,7 +381,7 @@ function print() { __p += __j.call(arguments, '') }
381
381
  `),n=V(t),i=V(`
382
382
  row`),s=V(l),o=V("?")},m(a,u){$(a,e,u),$(a,n,u),$(a,i,u),$(a,s,u),$(a,o,u)},p(a,u){u&1&&t!==(t=a[0].length+"")&&Te(n,t),u&1&&l!==(l=(a[0].length>1?"s":"")+"")&&Te(s,l)},d(a){a&&b(e),a&&b(n),a&&b(i),a&&b(s),a&&b(o)}}}function jz(r){let e,t,n,i;e=new ut({props:{icon:"Delete",size:"s",primary:!0,quiet:!0,$$slots:{default:[Mz]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={okText:"Delete",onOk:r[2],title:"Confirm Deletion",$$slots:{default:[Dz]},$$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]){r=s;const a={};o&65&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const u={};o&65&&(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 Bz(r,e,t){let{selectedRows:n}=e,{deleteRows:i}=e;const l=ht();let s;async function o(){await i(),s==null||s.hide(),l("updaterows")}function a(u){Z[u?"unshift":"push"](()=>{s=u,t(1,s)})}return r.$$set=u=>{"selectedRows"in u&&t(0,n=u.selectedRows),"deleteRows"in u&&t(3,i=u.deleteRows)},[n,s,o,i,a]}class zz extends ie{constructor(e){super();le(this,e,Bz,jz,re,{selectedRows:0,deleteRows:3})}}function qz(r){let e,t,n;const i=[{label:r[1]},r[4],{processFiles:r[3]},{handleFileTooLarge:r[2]}];function l(o){r[5](o)}let s={};for(let o=0;o<i.length;o+=1)s=Ui(s,i[o]);return r[0]!==void 0&&(s.value=r[0]),e=new Wo({props:s}),Z.push(()=>ce(e,"value",l)),{c(){S(e.$$.fragment)},m(o,a){A(e,o,a),n=!0},p(o,[a]){const u=a&30?Eu(i,[a&2&&{label:o[1]},a&16&&Ou(o[4]),a&8&&{processFiles:o[3]},a&4&&{handleFileTooLarge:o[2]}]):{};!t&&a&1&&(t=!0,u.value=o[0],pe(()=>t=!1)),e.$set(u)},i(o){n||(m(e.$$.fragment,o),n=!0)},o(o){_(e.$$.fragment,o),n=!1},d(o){E(e,o)}}}const Uz=1e6;function Fz(r,e,t){const n=["value","label"];let i=Tu(e,n),{value:l=[]}=e,{label:s}=e;function o(f){ye.error(`Files cannot exceed ${f/Uz}MB. Please try again with smaller files.`)}async function a(f){let c=new FormData;for(let p=0;p<f.length;p++)c.append("file",f[p]);try{return await xe.uploadBuilderAttachment(c)}catch{return ye.error("Failed to upload attachment"),[]}}function u(f){l=f,t(0,l)}return r.$$set=f=>{e=Ui(Ui({},e),Iu(f)),t(4,i=Tu(e,n)),"value"in f&&t(0,l=f.value),"label"in f&&t(1,s=f.label)},[l,s,o,a,i,u]}class Vz extends ie{constructor(e){super();le(this,e,Fz,qz,re,{value:0,label:1})}}function Hz(r){let e,t,n;function i(s){r[10](s)}let l={label:r[4],options:r[2],getOptionLabel:r[5],getOptionValue:Kz,sort:!0};return r[1]!==void 0&&(l.value=r[1]),e=new Yo({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&16&&(a.label=s[4]),o&4&&(a.options=s[2]),!t&&o&2&&(t=!0,a.value=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 Wz(r){var n;let e,t;return e=new Qe({props:{value:(n=r[1])==null?void 0:n[0],options:r[2],getOptionLabel:r[5],getOptionValue:Xz,label:r[4],sort:!0}}),e.$on("change",r[9]),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){var o;const s={};l&2&&(s.value=(o=i[1])==null?void 0:o[0]),l&4&&(s.options=i[2]),l&16&&(s.label=i[4]),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 Gz(r){let e,t,n,i;return e=new Ze({props:{extraSmall:!0,grey:!0,$$slots:{default:[Yz]},$$scope:{ctx:r}}}),n=new Ze({props:{small:!0,black:!0,$$slots:{default:[Jz]},$$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&4112&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&4104&&(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 Yz(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 Jz(r){let e,t,n=r[3].name+"",i,l;return{c(){e=V(`Please choose a display column for the
383
383
  `),t=D("b"),i=V(n),l=V(`
384
- table.`)},m(s,o){$(s,e,o),$(s,t,o),N(t,i),$(s,l,o)},p(s,o){o&8&&n!==(n=s[3].name+"")&&Te(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function Qz(r){let e,t,n,i;const l=[Gz,Wz,Hz],s=[];function o(a,u){return a[3].primaryDisplay==null?0:a[0].relationshipType==="one-to-many"?1:2}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)}}}const Xz=r=>r._id,Kz=r=>r._id;function Zz(r,e,t){var h;let n,i,l,s;fe(r,Ot,v=>t(8,s=v));let{schema:o}=e,{linkedRows:a=[]}=e,u=[],f=(h=a||[])==null?void 0:h.map(v=>(v==null?void 0:v._id)||v);async function c(v){try{t(2,u=await xe.fetchTableData(v))}catch{t(2,u=[])}}function p(v){return v[l.primaryDisplay||"_id"]}const d=v=>t(1,f=v.detail?[v.detail]:[]);function g(v){f=v,t(1,f)}return r.$$set=v=>{"schema"in v&&t(0,o=v.schema),"linkedRows"in v&&t(6,a=v.linkedRows)},r.$$.update=()=>{r.$$.dirty&2&&t(6,a=f),r.$$.dirty&1&&t(4,n=Sr(o.name)),r.$$.dirty&1&&t(7,i=o.tableId),r.$$.dirty&384&&t(3,l=s.list.find(v=>v._id===i)),r.$$.dirty&128&&c(i)},[o,f,u,l,n,p,a,i,s,d,g]}class cv extends ie{constructor(e){super();le(this,e,Zz,Qz,re,{schema:0,linkedRows:6})}}function xz(r){let e,t,n;function i(s){r[16](s)}let l={label:r[3],"data-cy":""+(r[1].name+"-input"),type:r[4],disabled:r[2]};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={};o&8&&(a.label=s[3]),o&2&&(a["data-cy"]=""+(s[1].name+"-input")),o&16&&(a.type=s[4]),o&4&&(a.disabled=s[2]),!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 eq(r){let e,t,n,i;return e=new Ze({props:{$$slots:{default:[aq]},$$scope:{ctx:r}}}),n=new Zl({props:{editorHeight:"250",mode:"json",value:r[5]}}),n.$on("change",r[15]),{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&131080&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&32&&(a.value=l[5]),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 tq(r){let e,t,n,i;const l=[fq,uq],s=[];function o(a,u){return a[1].useRichText?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 nq(r){let e,t,n;function i(s){r[12](s)}let l={schema:r[1]};return r[0]!==void 0&&(l.linkedRows=r[0]),e=new cv({props:l}),Z.push(()=>ce(e,"linkedRows",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.schema=s[1]),!t&&o&1&&(t=!0,a.linkedRows=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 rq(r){let e,t,n;function i(s){r[11](s)}let l={label:r[3],options:r[1].constraints.inclusion};return r[0]!==void 0&&(l.value=r[0]),e=new Yo({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&8&&(a.label=s[3]),o&2&&(a.options=s[1].constraints.inclusion),!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 iq(r){let e,t,n;function i(s){r[10](s)}let l={text:r[3],"data-cy":""+(r[1].name+"-input")};return r[0]!==void 0&&(l.value=r[0]),e=new Hn({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&8&&(a.text=s[3]),o&2&&(a["data-cy"]=""+(s[1].name+"-input")),!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 lq(r){let e,t,n;function i(s){r[9](s)}let l={label:r[3]};return r[0]!==void 0&&(l.value=r[0]),e=new Vz({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&8&&(a.label=s[3]),!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 sq(r){let e,t,n;function i(s){r[8](s)}let l={label:r[3]};return r[0]!==void 0&&(l.value=r[0]),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){const a={};o&8&&(a.label=s[3]),!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 oq(r){let e,t,n;function i(s){r[7](s)}let l={label:r[3],"data-cy":""+(r[1].name+"-select"),options:r[1].constraints.inclusion,sort:!0};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={};o&8&&(a.label=s[3]),o&2&&(a["data-cy"]=""+(s[1].name+"-select")),o&2&&(a.options=s[1].constraints.inclusion),!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;return{c(){e=V(r[3])},m(t,n){$(t,e,n)},p(t,n){n&8&&Te(e,t[3])},d(t){t&&b(e)}}}function uq(r){let e,t,n;function i(s){r[14](s)}let l={label:r[3],height:"150px"};return r[0]!==void 0&&(l.value=r[0]),e=new pi({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&8&&(a.label=s[3]),!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 fq(r){let e,t,n;function i(s){r[13](s)}let l={label:r[3],height:"150px"};return r[0]!==void 0&&(l.value=r[0]),e=new zD({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&8&&(a.label=s[3]),!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 cq(r){let e,t,n,i;const l=[oq,sq,lq,iq,rq,nq,tq,eq,xz],s=[];function o(a,u){return a[4]==="options"?0:a[4]==="datetime"?1:a[4]==="attachment"?2:a[4]==="boolean"?3:a[4]==="array"?4:a[4]==="link"?5:a[4]==="longform"?6:a[4]==="json"?7:8}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 pq(r,e,t){let n,i,l,{defaultValue:s}=e,{meta:o}=e,{value:a=s||(o.type==="boolean"?!1:"")}=e,{readonly:u}=e;function f(O){a=O,t(0,a)}function c(O){a=O,t(0,a)}function p(O){a=O,t(0,a)}function d(O){a=O,t(0,a)}function g(O){a=O,t(0,a)}function h(O){a=O,t(0,a)}function v(O){a=O,t(0,a)}function C(O){a=O,t(0,a)}const y=({detail:O})=>t(0,a=O.value);function I(O){a=O,t(0,a)}return r.$$set=O=>{"defaultValue"in O&&t(6,s=O.defaultValue),"meta"in O&&t(1,o=O.meta),"value"in O&&t(0,a=O.value),"readonly"in O&&t(2,u=O.readonly)},r.$$.update=()=>{r.$$.dirty&1&&t(5,n=typeof a=="object"?JSON.stringify(a,null,2):a),r.$$.dirty&2&&t(4,i=o==null?void 0:o.type),r.$$.dirty&2&&t(3,l=o.name?Sr(o.name):"")},[a,o,u,l,i,n,s,f,c,p,d,g,h,v,C,y,I]}class Ta extends ie{constructor(e){super();le(this,e,pq,cq,re,{defaultValue:6,meta:1,value:0,readonly:2})}}function pv(r,e,t){const n=r.slice();return n[2]=e[t],n}function dv(r){let e,t=r[0],n=[];for(let i=0;i<t.length;i+=1)n[i]=mv(pv(r,t,i));return{c(){e=D("div");for(let i=0;i<n.length;i+=1)n[i].c();w(e,"class","container svelte-xycztl")},m(i,l){$(i,e,l);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(i,l){if(l&1){t=i[0];let s;for(s=0;s<t.length;s+=1){const o=pv(i,t,s);n[s]?n[s].p(o,l):(n[s]=mv(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(i){i&&b(e),$t(n,i)}}}function mv(r){let e,t=(r[2].dataPath||"")+"",n,i,l=r[2].message+"",s;return{c(){e=D("div"),n=V(t),i=R(),s=V(l),w(e,"class","error svelte-xycztl")},m(o,a){$(o,e,a),N(e,n),N(e,i),N(e,s)},p(o,a){a&1&&t!==(t=(o[2].dataPath||"")+"")&&Te(n,t),a&1&&l!==(l=o[2].message+"")&&Te(s,l)},d(o){o&&b(e)}}}function dq(r){let e,t=r[1]&&dv(r);return{c(){t&&t.c(),e=Ee()},m(n,i){t&&t.m(n,i),$(n,e,i)},p(n,[i]){n[1]?t?t.p(n,i):(t=dv(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Oe,o:Oe,d(n){t&&t.d(n),n&&b(e)}}}function mq(r,e,t){let n,{errors:i=[]}=e;return r.$$set=l=>{"errors"in l&&t(0,i=l.errors)},r.$$.update=()=>{r.$$.dirty&1&&t(1,n=i.length>0)},[i,n]}class h1 extends ie{constructor(e){super();le(this,e,mq,dq,re,{errors:0})}}function gv(r,e,t){const n=r.slice();return n[10]=e[t][0],n[11]=e[t][1],n[12]=e,n[13]=t,n}function _v(r){let e,t,n,i,l;function s(a){r[8](a,r[10])}let o={meta:r[11]};return r[0][r[10]]!==void 0&&(o.value=r[0][r[10]]),t=new Ta({props:o}),Z.push(()=>ce(t,"value",s)),{c(){e=D("div"),S(t.$$.fragment),i=R(),w(e,"class","svelte-17qwzrs")},m(a,u){$(a,e,u),A(t,e,null),N(e,i),l=!0},p(a,u){r=a;const f={};u&4&&(f.meta=r[11]),!n&&u&5&&(n=!0,f.value=r[0][r[10]],pe(()=>n=!1)),t.$set(f)},i(a){l||(m(t.$$.fragment,a),l=!0)},o(a){_(t.$$.fragment,a),l=!1},d(a){a&&b(e),E(t)}}}function hv(r){let e,t,n=!r[11].autocolumn&&r[11].type!==r[4]&&_v(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[11].autocolumn&&i[11].type!==i[4]?n?(n.p(i,l),l&4&&m(n,1)):(n=_v(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 gq(r){let e,t,n,i;e=new h1({props:{errors:r[1]}});let l=r[2],s=[];for(let a=0;a<l.length;a+=1)s[a]=hv(gv(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){S(e.$$.fragment),t=R();for(let a=0;a<s.length;a+=1)s[a].c();n=Ee()},m(a,u){A(e,a,u),$(a,t,u);for(let f=0;f<s.length;f+=1)s[f].m(a,u);$(a,n,u),i=!0},p(a,u){const f={};if(u&2&&(f.errors=a[1]),e.$set(f),u&21){l=a[2];let c;for(c=0;c<l.length;c+=1){const p=gv(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=hv(p),s[c].c(),m(s[c],1),s[c].m(n.parentNode,n))}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),$t(s,a),a&&b(n)}}}function _q(r){let e,t;return e=new Bt({props:{title:r[3]?"Create Row":"Edit Row",confirmText:r[3]?"Create Row":"Save Row",onConfirm:r[5],$$slots:{default:[gq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&8&&(l.title=n[3]?"Create Row":"Edit Row"),i&8&&(l.confirmText=n[3]?"Create Row":"Save Row"),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 hq(r,e,t){let n,i,l,s;fe(r,Ot,d=>t(7,s=d));const o=zt.FORMULA.type;let{row:a={}}=e,u=[];const f=ht();async function c(){t(1,u=[]);try{await xe.saveRow(lt(Se({},a),{tableId:i._id})),ye.success("Row saved successfully"),I3.save(),f("updaterows")}catch(d){if(d.handled){const g=d.json;(g==null?void 0:g.errors)?t(1,u=Object.entries(g.errors).map(([h,v])=>({dataPath:h,message:v})).flat()):d.status===400&&(g==null?void 0:g.validationErrors)&&t(1,u=Object.keys(g.validationErrors).map(h=>({message:`${h} ${g.validationErrors[h][0]}`})))}else ye.error("Failed to save row");return!1}}function p(d,g){r.$$.not_equal(a[g],d)&&(a[g]=d,t(0,a))}return r.$$set=d=>{"row"in d&&t(0,a=d.row)},r.$$.update=()=>{var d;r.$$.dirty&1&&t(3,n=(a==null?void 0:a._id)==null),r.$$.dirty&129&&t(6,i=a.tableId?s.list.find(g=>g._id===(a==null?void 0:a.tableId)):s.selected),r.$$.dirty&64&&t(2,l=Object.entries((d=i==null?void 0:i.schema)!=null?d:{}))},[a,u,l,n,o,c,i,s,p]}class $1 extends ie{constructor(e){super();le(this,e,hq,_q,re,{row:0})}}function $v(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n[19]=e,n[20]=t,n}function bv(r){let e,t,n;function i(s){r[13](s,r[17])}let l={meta:r[18],creating:r[4]};return r[0][r[17]]!==void 0&&(l.value=r[0][r[17]]),e=new Ta({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&8&&(a.meta=r[18]),o&16&&(a.creating=r[4]),!t&&o&9&&(t=!0,a.value=r[0][r[17]],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 vv(r){let e,t,n=!r[18].autocolumn&&bv(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[18].autocolumn?n&&(ee(),_(n,1,1,()=>{n=null}),te()):n?(n.p(i,l),l&8&&m(n,1)):(n=bv(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 $q(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v;e=new h1({props:{errors:r[2]}});function C(G){r[9](G)}let y={meta:lt(Se({},r[1].email),{name:"Email"}),readonly:!r[4]};r[0].email!==void 0&&(y.value=r[0].email),n=new Ta({props:y}),Z.push(()=>ce(n,"value",C));function I(G){r[10](G)}let O={meta:lt(Se({},r[1].firstName),{name:"First Name"}),readonly:!r[4]};r[0].firstName!==void 0&&(O.value=r[0].firstName),s=new Ta({props:O}),Z.push(()=>ce(s,"value",I));function T(G){r[11](G)}let P={meta:lt(Se({},r[1].lastName),{name:"Last Name"}),readonly:!r[4]};r[0].lastName!==void 0&&(P.value=r[0].lastName),u=new Ta({props:P}),Z.push(()=>ce(u,"value",T));function M(G){r[12](G)}let F={label:"Role","data-cy":"roleId-select",options:r[5],getOptionLabel:vq,getOptionValue:wq,disabled:!r[4]};r[0].roleId!==void 0&&(F.value=r[0].roleId),p=new Qe({props:F}),Z.push(()=>ce(p,"value",M));let j=r[3],B=[];for(let G=0;G<j.length;G+=1)B[G]=vv($v(r,j,G));const q=G=>_(B[G],1,1,()=>{B[G]=null});return{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),l=R(),S(s.$$.fragment),a=R(),S(u.$$.fragment),c=R(),S(p.$$.fragment),g=R();for(let G=0;G<B.length;G+=1)B[G].c();h=Ee()},m(G,Y){A(e,G,Y),$(G,t,Y),A(n,G,Y),$(G,l,Y),A(s,G,Y),$(G,a,Y),A(u,G,Y),$(G,c,Y),A(p,G,Y),$(G,g,Y);for(let U=0;U<B.length;U+=1)B[U].m(G,Y);$(G,h,Y),v=!0},p(G,Y){const U={};Y&4&&(U.errors=G[2]),e.$set(U);const H={};Y&2&&(H.meta=lt(Se({},G[1].email),{name:"Email"})),Y&16&&(H.readonly=!G[4]),!i&&Y&1&&(i=!0,H.value=G[0].email,pe(()=>i=!1)),n.$set(H);const W={};Y&2&&(W.meta=lt(Se({},G[1].firstName),{name:"First Name"})),Y&16&&(W.readonly=!G[4]),!o&&Y&1&&(o=!0,W.value=G[0].firstName,pe(()=>o=!1)),s.$set(W);const Q={};Y&2&&(Q.meta=lt(Se({},G[1].lastName),{name:"Last Name"})),Y&16&&(Q.readonly=!G[4]),!f&&Y&1&&(f=!0,Q.value=G[0].lastName,pe(()=>f=!1)),u.$set(Q);const se={};if(Y&32&&(se.options=G[5]),Y&16&&(se.disabled=!G[4]),!d&&Y&1&&(d=!0,se.value=G[0].roleId,pe(()=>d=!1)),p.$set(se),Y&25){j=G[3];let K;for(K=0;K<j.length;K+=1){const ne=$v(G,j,K);B[K]?(B[K].p(ne,Y),m(B[K],1)):(B[K]=vv(ne),B[K].c(),m(B[K],1),B[K].m(h.parentNode,h))}for(ee(),K=j.length;K<B.length;K+=1)q(K);te()}},i(G){if(!v){m(e.$$.fragment,G),m(n.$$.fragment,G),m(s.$$.fragment,G),m(u.$$.fragment,G),m(p.$$.fragment,G);for(let Y=0;Y<j.length;Y+=1)m(B[Y]);v=!0}},o(G){_(e.$$.fragment,G),_(n.$$.fragment,G),_(s.$$.fragment,G),_(u.$$.fragment,G),_(p.$$.fragment,G),B=B.filter(Boolean);for(let Y=0;Y<B.length;Y+=1)_(B[Y]);v=!1},d(G){E(e,G),G&&b(t),E(n,G),G&&b(l),E(s,G),G&&b(a),E(u,G),G&&b(c),E(p,G),G&&b(g),$t(B,G),G&&b(h)}}}function bq(r){let e,t;return e=new Bt({props:{title:r[4]?"Create User":"Edit User",confirmText:r[4]?"Create User":"Save User",onConfirm:r[6],$$slots:{default:[$q]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&16&&(l.title=n[4]?"Create User":"Edit User"),i&16&&(l.confirmText=n[4]?"Create User":"Save User"),i&2097215&&(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 vq=r=>r.name,wq=r=>r._id;function yq(r,e,t){let n,i,l,s,o,a;fe(r,Ot,O=>t(8,o=O)),fe(r,Zi,O=>t(5,a=O));let{row:u={}}=e;const f=ht();let c=[];const p=O=>{var P;let T=(P=O==null?void 0:O.schema)!=null?P:{};return T.username&&(T.username.name="Username"),T},d=O=>{let T=Se({},O);return delete T.email,delete T.roleId,delete T.status,delete T.firstName,delete T.lastName,Object.entries(T)},g=async()=>{if(t(2,c=[]),u.email||t(2,c=[...c,{message:"Email is required"}]),u.roleId||t(2,c=[...c,{message:"Role is required"}]),c.length)return!1;try{await xe.saveRow(lt(Se({},u),{tableId:i._id})),ye.success("User saved successfully"),I3.save(),f("updaterows")}catch(O){if(O.handled){const T=O.json;(T==null?void 0:T.errors)?Array.isArray(T.errors)?t(2,c=T.errors.map(P=>({message:P}))):t(2,c=Object.entries(T.errors).map(([P,M])=>({dataPath:P,message:M})).flat()):O.status===400&&t(2,c=[{message:(T==null?void 0:T.message)||"Unknown error"}])}else ye.error("Error saving user");return!1}};function h(O){r.$$.not_equal(u.email,O)&&(u.email=O,t(0,u))}function v(O){r.$$.not_equal(u.firstName,O)&&(u.firstName=O,t(0,u))}function C(O){r.$$.not_equal(u.lastName,O)&&(u.lastName=O,t(0,u))}function y(O){r.$$.not_equal(u.roleId,O)&&(u.roleId=O,t(0,u))}function I(O,T){r.$$.not_equal(u[T],O)&&(u[T]=O,t(0,u))}return r.$$set=O=>{"row"in O&&t(0,u=O.row)},r.$$.update=()=>{r.$$.dirty&1&&(u.status||t(0,u.status="active",u)),r.$$.dirty&1&&t(4,n=(u==null?void 0:u._id)==null),r.$$.dirty&257&&t(7,i=u.tableId?o.list.find(O=>O._id===(u==null?void 0:u.tableId)):o.selected),r.$$.dirty&128&&t(1,l=p(i)),r.$$.dirty&2&&t(3,s=d(l))},[u,l,c,s,n,a,g,i,o,h,v,C,y,I]}class kq extends ie{constructor(e){super();le(this,e,yq,bq,re,{row:0})}}function wv(r=!0){let e={};for(let[t,n]of Object.entries(Ri))e[n]={enabled:r,name:Mj[t]};return e}function yv(r,e,t){let n,i;switch(t){case Ri.UPDATED_BY:case Ri.CREATED_BY:n=zt.LINK.type,i=zt.LINK.constraints;break;case Ri.AUTO_ID:n=zt.NUMBER.type,i=zt.NUMBER.constraints;break;case Ri.UPDATED_AT:case Ri.CREATED_AT:n=zt.DATETIME.type,i=zt.DATETIME.constraints;break;default:n=zt.STRING.type,i=zt.STRING.constraints;break}if(Object.values(Ri).indexOf(t)===-1)throw"Cannot build auto column with supplied subtype";const l={name:e,type:n,subtype:t,icon:"ri-magic-line",autocolumn:!0,constraints:i};return Dj(t)&&(l.tableId=Cl.USERS,l.fieldName=`${r}-${e}`),l}function Cq(r){let e,t,n;return t=new pi({props:{label:r[0],value:r[1],thin:!0}}),t.$on("change",r[2]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-1pg9lbe")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.label=i[0]),l&2&&(s.value=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 Sq(r,e,t){let n,{values:i}=e,{label:l}=e;const s=o=>{try{t(3,i=o.detail.split(`
384
+ table.`)},m(s,o){$(s,e,o),$(s,t,o),N(t,i),$(s,l,o)},p(s,o){o&8&&n!==(n=s[3].name+"")&&Te(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function Qz(r){let e,t,n,i;const l=[Gz,Wz,Hz],s=[];function o(a,u){return a[3].primaryDisplay==null?0:a[0].relationshipType==="one-to-many"?1:2}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)}}}const Xz=r=>r._id,Kz=r=>r._id;function Zz(r,e,t){var h;let n,i,l,s;fe(r,Ot,v=>t(8,s=v));let{schema:o}=e,{linkedRows:a=[]}=e,u=[],f=(h=a||[])==null?void 0:h.map(v=>(v==null?void 0:v._id)||v);async function c(v){try{t(2,u=await xe.fetchTableData(v))}catch{t(2,u=[])}}function p(v){return v[l.primaryDisplay||"_id"]}const d=v=>t(1,f=v.detail?[v.detail]:[]);function g(v){f=v,t(1,f)}return r.$$set=v=>{"schema"in v&&t(0,o=v.schema),"linkedRows"in v&&t(6,a=v.linkedRows)},r.$$.update=()=>{r.$$.dirty&2&&t(6,a=f),r.$$.dirty&1&&t(4,n=Sr(o.name)),r.$$.dirty&1&&t(7,i=o.tableId),r.$$.dirty&384&&t(3,l=s.list.find(v=>v._id===i)),r.$$.dirty&128&&c(i)},[o,f,u,l,n,p,a,i,s,d,g]}class cv extends ie{constructor(e){super();le(this,e,Zz,Qz,re,{schema:0,linkedRows:6})}}function xz(r){let e,t,n;function i(s){r[17](s)}let l={label:r[3],"data-cy":""+(r[1].name+"-input"),type:r[4],disabled:r[2]};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={};o&8&&(a.label=s[3]),o&2&&(a["data-cy"]=""+(s[1].name+"-input")),o&16&&(a.type=s[4]),o&4&&(a.disabled=s[2]),!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 eq(r){let e,t,n,i;return e=new Ze({props:{$$slots:{default:[aq]},$$scope:{ctx:r}}}),n=new Zl({props:{editorHeight:"250",mode:"json",value:r[5]}}),n.$on("change",r[16]),{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&1048584&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&32&&(a.value=l[5]),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 tq(r){let e,t,n,i;const l=[fq,uq],s=[];function o(a,u){return a[1].useRichText?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 nq(r){let e,t,n;function i(s){r[13](s)}let l={schema:r[1]};return r[0]!==void 0&&(l.linkedRows=r[0]),e=new cv({props:l}),Z.push(()=>ce(e,"linkedRows",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.schema=s[1]),!t&&o&1&&(t=!0,a.linkedRows=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 rq(r){let e,t,n;function i(s){r[12](s)}let l={label:r[3],options:r[1].constraints.inclusion};return r[0]!==void 0&&(l.value=r[0]),e=new Yo({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&8&&(a.label=s[3]),o&2&&(a.options=s[1].constraints.inclusion),!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 iq(r){let e,t,n;function i(s){r[11](s)}let l={text:r[3],"data-cy":""+(r[1].name+"-input")};return r[0]!==void 0&&(l.value=r[0]),e=new Hn({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&8&&(a.text=s[3]),o&2&&(a["data-cy"]=""+(s[1].name+"-input")),!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 lq(r){let e,t,n;function i(s){r[10](s)}let l={label:r[3]};return r[0]!==void 0&&(l.value=r[0]),e=new Vz({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&8&&(a.label=s[3]),!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 sq(r){let e,t,n;function i(s){r[9](s)}let l={label:r[3],timeOnly:r[6]};return r[0]!==void 0&&(l.value=r[0]),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){const a={};o&8&&(a.label=s[3]),!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 oq(r){let e,t,n;function i(s){r[8](s)}let l={label:r[3],"data-cy":""+(r[1].name+"-select"),options:r[1].constraints.inclusion,sort:!0};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={};o&8&&(a.label=s[3]),o&2&&(a["data-cy"]=""+(s[1].name+"-select")),o&2&&(a.options=s[1].constraints.inclusion),!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;return{c(){e=V(r[3])},m(t,n){$(t,e,n)},p(t,n){n&8&&Te(e,t[3])},d(t){t&&b(e)}}}function uq(r){let e,t,n;function i(s){r[15](s)}let l={label:r[3],height:"150px"};return r[0]!==void 0&&(l.value=r[0]),e=new pi({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&8&&(a.label=s[3]),!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 fq(r){let e,t,n;function i(s){r[14](s)}let l={label:r[3],height:"150px"};return r[0]!==void 0&&(l.value=r[0]),e=new zD({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&8&&(a.label=s[3]),!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 cq(r){let e,t,n,i;const l=[oq,sq,lq,iq,rq,nq,tq,eq,xz],s=[];function o(a,u){return a[4]==="options"?0:a[4]==="datetime"?1:a[4]==="attachment"?2:a[4]==="boolean"?3:a[4]==="array"?4:a[4]==="link"?5:a[4]==="longform"?6:a[4]==="json"?7:8}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 pq(r,e,t){let n,i,l,{defaultValue:s}=e,{meta:o}=e,{value:a=s||(o.type==="boolean"?!1:"")}=e,{readonly:u}=e;const p=!!(M=>{let F=new Date(`0-${M}`);return F instanceof Date&&!isNaN(F.getTime())?F:null})(a);function d(M){a=M,t(0,a)}function g(M){a=M,t(0,a)}function h(M){a=M,t(0,a)}function v(M){a=M,t(0,a)}function C(M){a=M,t(0,a)}function y(M){a=M,t(0,a)}function I(M){a=M,t(0,a)}function O(M){a=M,t(0,a)}const T=({detail:M})=>t(0,a=M.value);function P(M){a=M,t(0,a)}return r.$$set=M=>{"defaultValue"in M&&t(7,s=M.defaultValue),"meta"in M&&t(1,o=M.meta),"value"in M&&t(0,a=M.value),"readonly"in M&&t(2,u=M.readonly)},r.$$.update=()=>{r.$$.dirty&1&&t(5,n=typeof a=="object"?JSON.stringify(a,null,2):a),r.$$.dirty&2&&t(4,i=o==null?void 0:o.type),r.$$.dirty&2&&t(3,l=o.name?Sr(o.name):"")},[a,o,u,l,i,n,p,s,d,g,h,v,C,y,I,O,T,P]}class Ta extends ie{constructor(e){super();le(this,e,pq,cq,re,{defaultValue:7,meta:1,value:0,readonly:2})}}function pv(r,e,t){const n=r.slice();return n[2]=e[t],n}function dv(r){let e,t=r[0],n=[];for(let i=0;i<t.length;i+=1)n[i]=mv(pv(r,t,i));return{c(){e=D("div");for(let i=0;i<n.length;i+=1)n[i].c();w(e,"class","container svelte-xycztl")},m(i,l){$(i,e,l);for(let s=0;s<n.length;s+=1)n[s].m(e,null)},p(i,l){if(l&1){t=i[0];let s;for(s=0;s<t.length;s+=1){const o=pv(i,t,s);n[s]?n[s].p(o,l):(n[s]=mv(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(i){i&&b(e),$t(n,i)}}}function mv(r){let e,t=(r[2].dataPath||"")+"",n,i,l=r[2].message+"",s;return{c(){e=D("div"),n=V(t),i=R(),s=V(l),w(e,"class","error svelte-xycztl")},m(o,a){$(o,e,a),N(e,n),N(e,i),N(e,s)},p(o,a){a&1&&t!==(t=(o[2].dataPath||"")+"")&&Te(n,t),a&1&&l!==(l=o[2].message+"")&&Te(s,l)},d(o){o&&b(e)}}}function dq(r){let e,t=r[1]&&dv(r);return{c(){t&&t.c(),e=Ee()},m(n,i){t&&t.m(n,i),$(n,e,i)},p(n,[i]){n[1]?t?t.p(n,i):(t=dv(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Oe,o:Oe,d(n){t&&t.d(n),n&&b(e)}}}function mq(r,e,t){let n,{errors:i=[]}=e;return r.$$set=l=>{"errors"in l&&t(0,i=l.errors)},r.$$.update=()=>{r.$$.dirty&1&&t(1,n=i.length>0)},[i,n]}class h1 extends ie{constructor(e){super();le(this,e,mq,dq,re,{errors:0})}}function gv(r,e,t){const n=r.slice();return n[10]=e[t][0],n[11]=e[t][1],n[12]=e,n[13]=t,n}function _v(r){let e,t,n,i,l;function s(a){r[8](a,r[10])}let o={meta:r[11]};return r[0][r[10]]!==void 0&&(o.value=r[0][r[10]]),t=new Ta({props:o}),Z.push(()=>ce(t,"value",s)),{c(){e=D("div"),S(t.$$.fragment),i=R(),w(e,"class","svelte-17qwzrs")},m(a,u){$(a,e,u),A(t,e,null),N(e,i),l=!0},p(a,u){r=a;const f={};u&4&&(f.meta=r[11]),!n&&u&5&&(n=!0,f.value=r[0][r[10]],pe(()=>n=!1)),t.$set(f)},i(a){l||(m(t.$$.fragment,a),l=!0)},o(a){_(t.$$.fragment,a),l=!1},d(a){a&&b(e),E(t)}}}function hv(r){let e,t,n=!r[11].autocolumn&&r[11].type!==r[4]&&_v(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[11].autocolumn&&i[11].type!==i[4]?n?(n.p(i,l),l&4&&m(n,1)):(n=_v(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 gq(r){let e,t,n,i;e=new h1({props:{errors:r[1]}});let l=r[2],s=[];for(let a=0;a<l.length;a+=1)s[a]=hv(gv(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){S(e.$$.fragment),t=R();for(let a=0;a<s.length;a+=1)s[a].c();n=Ee()},m(a,u){A(e,a,u),$(a,t,u);for(let f=0;f<s.length;f+=1)s[f].m(a,u);$(a,n,u),i=!0},p(a,u){const f={};if(u&2&&(f.errors=a[1]),e.$set(f),u&21){l=a[2];let c;for(c=0;c<l.length;c+=1){const p=gv(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=hv(p),s[c].c(),m(s[c],1),s[c].m(n.parentNode,n))}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),$t(s,a),a&&b(n)}}}function _q(r){let e,t;return e=new Bt({props:{title:r[3]?"Create Row":"Edit Row",confirmText:r[3]?"Create Row":"Save Row",onConfirm:r[5],$$slots:{default:[gq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&8&&(l.title=n[3]?"Create Row":"Edit Row"),i&8&&(l.confirmText=n[3]?"Create Row":"Save Row"),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 hq(r,e,t){let n,i,l,s;fe(r,Ot,d=>t(7,s=d));const o=zt.FORMULA.type;let{row:a={}}=e,u=[];const f=ht();async function c(){t(1,u=[]);try{await xe.saveRow(lt(Se({},a),{tableId:i._id})),ye.success("Row saved successfully"),I3.save(),f("updaterows")}catch(d){if(d.handled){const g=d.json;(g==null?void 0:g.errors)?t(1,u=Object.entries(g.errors).map(([h,v])=>({dataPath:h,message:v})).flat()):d.status===400&&(g==null?void 0:g.validationErrors)&&t(1,u=Object.keys(g.validationErrors).map(h=>({message:`${h} ${g.validationErrors[h][0]}`})))}else ye.error("Failed to save row");return!1}}function p(d,g){r.$$.not_equal(a[g],d)&&(a[g]=d,t(0,a))}return r.$$set=d=>{"row"in d&&t(0,a=d.row)},r.$$.update=()=>{var d;r.$$.dirty&1&&t(3,n=(a==null?void 0:a._id)==null),r.$$.dirty&129&&t(6,i=a.tableId?s.list.find(g=>g._id===(a==null?void 0:a.tableId)):s.selected),r.$$.dirty&64&&t(2,l=Object.entries((d=i==null?void 0:i.schema)!=null?d:{}))},[a,u,l,n,o,c,i,s,p]}class $1 extends ie{constructor(e){super();le(this,e,hq,_q,re,{row:0})}}function $v(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n[19]=e,n[20]=t,n}function bv(r){let e,t,n;function i(s){r[13](s,r[17])}let l={meta:r[18],creating:r[4]};return r[0][r[17]]!==void 0&&(l.value=r[0][r[17]]),e=new Ta({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&8&&(a.meta=r[18]),o&16&&(a.creating=r[4]),!t&&o&9&&(t=!0,a.value=r[0][r[17]],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 vv(r){let e,t,n=!r[18].autocolumn&&bv(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[18].autocolumn?n&&(ee(),_(n,1,1,()=>{n=null}),te()):n?(n.p(i,l),l&8&&m(n,1)):(n=bv(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 $q(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v;e=new h1({props:{errors:r[2]}});function C(G){r[9](G)}let y={meta:lt(Se({},r[1].email),{name:"Email"}),readonly:!r[4]};r[0].email!==void 0&&(y.value=r[0].email),n=new Ta({props:y}),Z.push(()=>ce(n,"value",C));function I(G){r[10](G)}let O={meta:lt(Se({},r[1].firstName),{name:"First Name"}),readonly:!r[4]};r[0].firstName!==void 0&&(O.value=r[0].firstName),s=new Ta({props:O}),Z.push(()=>ce(s,"value",I));function T(G){r[11](G)}let P={meta:lt(Se({},r[1].lastName),{name:"Last Name"}),readonly:!r[4]};r[0].lastName!==void 0&&(P.value=r[0].lastName),u=new Ta({props:P}),Z.push(()=>ce(u,"value",T));function M(G){r[12](G)}let F={label:"Role","data-cy":"roleId-select",options:r[5],getOptionLabel:vq,getOptionValue:wq,disabled:!r[4]};r[0].roleId!==void 0&&(F.value=r[0].roleId),p=new Qe({props:F}),Z.push(()=>ce(p,"value",M));let j=r[3],B=[];for(let G=0;G<j.length;G+=1)B[G]=vv($v(r,j,G));const q=G=>_(B[G],1,1,()=>{B[G]=null});return{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),l=R(),S(s.$$.fragment),a=R(),S(u.$$.fragment),c=R(),S(p.$$.fragment),g=R();for(let G=0;G<B.length;G+=1)B[G].c();h=Ee()},m(G,Y){A(e,G,Y),$(G,t,Y),A(n,G,Y),$(G,l,Y),A(s,G,Y),$(G,a,Y),A(u,G,Y),$(G,c,Y),A(p,G,Y),$(G,g,Y);for(let U=0;U<B.length;U+=1)B[U].m(G,Y);$(G,h,Y),v=!0},p(G,Y){const U={};Y&4&&(U.errors=G[2]),e.$set(U);const H={};Y&2&&(H.meta=lt(Se({},G[1].email),{name:"Email"})),Y&16&&(H.readonly=!G[4]),!i&&Y&1&&(i=!0,H.value=G[0].email,pe(()=>i=!1)),n.$set(H);const W={};Y&2&&(W.meta=lt(Se({},G[1].firstName),{name:"First Name"})),Y&16&&(W.readonly=!G[4]),!o&&Y&1&&(o=!0,W.value=G[0].firstName,pe(()=>o=!1)),s.$set(W);const Q={};Y&2&&(Q.meta=lt(Se({},G[1].lastName),{name:"Last Name"})),Y&16&&(Q.readonly=!G[4]),!f&&Y&1&&(f=!0,Q.value=G[0].lastName,pe(()=>f=!1)),u.$set(Q);const se={};if(Y&32&&(se.options=G[5]),Y&16&&(se.disabled=!G[4]),!d&&Y&1&&(d=!0,se.value=G[0].roleId,pe(()=>d=!1)),p.$set(se),Y&25){j=G[3];let K;for(K=0;K<j.length;K+=1){const ne=$v(G,j,K);B[K]?(B[K].p(ne,Y),m(B[K],1)):(B[K]=vv(ne),B[K].c(),m(B[K],1),B[K].m(h.parentNode,h))}for(ee(),K=j.length;K<B.length;K+=1)q(K);te()}},i(G){if(!v){m(e.$$.fragment,G),m(n.$$.fragment,G),m(s.$$.fragment,G),m(u.$$.fragment,G),m(p.$$.fragment,G);for(let Y=0;Y<j.length;Y+=1)m(B[Y]);v=!0}},o(G){_(e.$$.fragment,G),_(n.$$.fragment,G),_(s.$$.fragment,G),_(u.$$.fragment,G),_(p.$$.fragment,G),B=B.filter(Boolean);for(let Y=0;Y<B.length;Y+=1)_(B[Y]);v=!1},d(G){E(e,G),G&&b(t),E(n,G),G&&b(l),E(s,G),G&&b(a),E(u,G),G&&b(c),E(p,G),G&&b(g),$t(B,G),G&&b(h)}}}function bq(r){let e,t;return e=new Bt({props:{title:r[4]?"Create User":"Edit User",confirmText:r[4]?"Create User":"Save User",onConfirm:r[6],$$slots:{default:[$q]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&16&&(l.title=n[4]?"Create User":"Edit User"),i&16&&(l.confirmText=n[4]?"Create User":"Save User"),i&2097215&&(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 vq=r=>r.name,wq=r=>r._id;function yq(r,e,t){let n,i,l,s,o,a;fe(r,Ot,O=>t(8,o=O)),fe(r,Zi,O=>t(5,a=O));let{row:u={}}=e;const f=ht();let c=[];const p=O=>{var P;let T=(P=O==null?void 0:O.schema)!=null?P:{};return T.username&&(T.username.name="Username"),T},d=O=>{let T=Se({},O);return delete T.email,delete T.roleId,delete T.status,delete T.firstName,delete T.lastName,Object.entries(T)},g=async()=>{if(t(2,c=[]),u.email||t(2,c=[...c,{message:"Email is required"}]),u.roleId||t(2,c=[...c,{message:"Role is required"}]),c.length)return!1;try{await xe.saveRow(lt(Se({},u),{tableId:i._id})),ye.success("User saved successfully"),I3.save(),f("updaterows")}catch(O){if(O.handled){const T=O.json;(T==null?void 0:T.errors)?Array.isArray(T.errors)?t(2,c=T.errors.map(P=>({message:P}))):t(2,c=Object.entries(T.errors).map(([P,M])=>({dataPath:P,message:M})).flat()):O.status===400&&t(2,c=[{message:(T==null?void 0:T.message)||"Unknown error"}])}else ye.error("Error saving user");return!1}};function h(O){r.$$.not_equal(u.email,O)&&(u.email=O,t(0,u))}function v(O){r.$$.not_equal(u.firstName,O)&&(u.firstName=O,t(0,u))}function C(O){r.$$.not_equal(u.lastName,O)&&(u.lastName=O,t(0,u))}function y(O){r.$$.not_equal(u.roleId,O)&&(u.roleId=O,t(0,u))}function I(O,T){r.$$.not_equal(u[T],O)&&(u[T]=O,t(0,u))}return r.$$set=O=>{"row"in O&&t(0,u=O.row)},r.$$.update=()=>{r.$$.dirty&1&&(u.status||t(0,u.status="active",u)),r.$$.dirty&1&&t(4,n=(u==null?void 0:u._id)==null),r.$$.dirty&257&&t(7,i=u.tableId?o.list.find(O=>O._id===(u==null?void 0:u.tableId)):o.selected),r.$$.dirty&128&&t(1,l=p(i)),r.$$.dirty&2&&t(3,s=d(l))},[u,l,c,s,n,a,g,i,o,h,v,C,y,I]}class kq extends ie{constructor(e){super();le(this,e,yq,bq,re,{row:0})}}function wv(r=!0){let e={};for(let[t,n]of Object.entries(Ri))e[n]={enabled:r,name:Mj[t]};return e}function yv(r,e,t){let n,i;switch(t){case Ri.UPDATED_BY:case Ri.CREATED_BY:n=zt.LINK.type,i=zt.LINK.constraints;break;case Ri.AUTO_ID:n=zt.NUMBER.type,i=zt.NUMBER.constraints;break;case Ri.UPDATED_AT:case Ri.CREATED_AT:n=zt.DATETIME.type,i=zt.DATETIME.constraints;break;default:n=zt.STRING.type,i=zt.STRING.constraints;break}if(Object.values(Ri).indexOf(t)===-1)throw"Cannot build auto column with supplied subtype";const l={name:e,type:n,subtype:t,icon:"ri-magic-line",autocolumn:!0,constraints:i};return Dj(t)&&(l.tableId=Cl.USERS,l.fieldName=`${r}-${e}`),l}function Cq(r){let e,t,n;return t=new pi({props:{label:r[0],value:r[1],thin:!0}}),t.$on("change",r[2]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","container svelte-1pg9lbe")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.label=i[0]),l&2&&(s.value=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 Sq(r,e,t){let n,{values:i}=e,{label:l}=e;const s=o=>{try{t(3,i=o.detail.split(`
385
385
  `))}catch{t(3,i=[])}};return r.$$set=o=>{"values"in o&&t(3,i=o.values),"label"in o&&t(0,l=o.label)},r.$$.update=()=>{r.$$.dirty&8&&t(1,n=vn.join(`
386
386
  `)(i))},[l,n,s,i]}class kv extends ie{constructor(e){super();le(this,e,Sq,Cq,re,{values:3,label:0})}}const Aq=[{name:"Save Row",component:"SaveRow",context:[{label:"Saved row",value:"row"}]},{name:"Duplicate Row",component:"DuplicateRow",context:[{label:"Duplicated row",value:"row"}]},{name:"Delete Row",component:"DeleteRow"},{name:"Navigate To",component:"NavigateTo"},{name:"Execute Query",component:"ExecuteQuery",context:[{label:"Query result",value:"result"}]},{name:"Trigger Automation",component:"TriggerAutomation"},{name:"Validate Form",component:"ValidateForm"},{name:"Log Out",component:"LogOut"},{name:"Clear Form",component:"ClearForm"},{name:"Close Screen Modal",component:"CloseScreenModal"},{name:"Change Form Step",component:"ChangeFormStep"},{name:"Refresh Data Provider",component:"RefreshDataProvider"},{name:"Update State",component:"UpdateState",dependsOnFeature:"state"},{name:"Upload File to S3",component:"S3Upload",context:[{label:"File URL",value:"publicUrl"}]},{name:"Export Data",component:"ExportData"},{name:"Continue if / Stop if",component:"ContinueIf",dependsOnFeature:"continueIfAction"}];var Cv={actions:Aq};const Eq=/{{([^}]+)}}/g,Oq=/\$\("([^")]+)"\)/g,Tq=(r,e)=>{const t=Lq(r,e),n=Pq(),i=Dq(r),l=Nq(),s=Mq(),o=Rq(r);return[...t,...i,...s,...n,...l,...o]},Iq=(r,e)=>{if(!r||!e)return[];const t=xi(r.props,e),n=He.actions.components.getDefinition(t==null?void 0:t._component);return(n==null?void 0:n.context)?Sv(r,t):[]},$o=(r,e,t)=>{if(!r||!e)return[];const n=Sl(r.props,e);return n.pop(),n.filter(i=>{const l=He.actions.components.getDefinition(i._component);return(l==null?void 0:l.context)?t?(Array.isArray(l.context)?l.context:[l.context]).find(o=>o.type===t)!=null:!0:!1})},Jf=(r,e,t)=>{if(!r||!e)return[];const n=Sl(r.props,e);return n.pop(),n.filter(i=>{var s;const l=He.actions.components.getDefinition(i._component);return(s=l==null?void 0:l.actions)==null?void 0:s.includes(t)})},El=(r,e)=>{const t=_o(e==null?void 0:e._component),n=t.find(s=>s.type==="dataProvider");if(n){const s=e[n.key],o=qq(s),a=xi(r==null?void 0:r.props,o);return El(r,a)}const i=["dataSource","table","schema"],l=t.find(s=>i.includes(s.type));return l?l.type==="table"?{tableId:e[l==null?void 0:l.key],type:"table"}:e[l==null?void 0:l.key]:null},Lq=(r,e)=>{const t=$o(r,e);return Sv(r,t)},Sv=(r,e)=>{if(!r||!e)return[];Array.isArray(e)||(e=[e]);let t=[];return e.forEach(n=>{const i=He.actions.components.getDefinition(n._component);(Array.isArray(i.context)?i.context:[i.context]).forEach(s=>{var g;if(!(s==null?void 0:s.type))return;let o,a,u,f=s.suffix;if(s.type==="form")o=Av(n),u="Fields";else if(s.type==="static")o={},(s.values||[]).forEach(v=>{o[v.key]={name:v.label,type:"string"}});else if(s.type==="schema"){const h=El(r,n);if(!h)return;const v=Di(r,h);if(o=v.schema,a=v.table,h.type==="jsonarray"){const C=h.label.split(".");u=C[C.length-1]}else u=(g=v.table)==null?void 0:g.name}if(!o)return;const c=Object.keys(o).sort();let p=n._id;f&&(p+=`-${f}`);const d=hn(p);c.forEach(h=>{const v=o[h],C=h.split(".").map(hn).join("."),y=`${d}.${C}`;let I=n._instanceName;u&&(I+=`.${u}`),I+=`.${v.name||h}`,t.push({type:"context",runtimeBinding:y,readableBinding:I,fieldSchema:v,providerId:p,tableId:a==null?void 0:a._id})})})}),t},Pq=()=>{let r=[];const{schema:e}=Qf(Cl.USERS),t=Object.keys(e).sort(),n=hn("user");return t.forEach(i=>{const l=e[i];r.push({type:"context",runtimeBinding:`${n}.${hn(i)}`,readableBinding:`Current User.${i}`,fieldSchema:l,providerId:"user"})}),r},Nq=()=>{var e;let r=[];if((e=it(He).clientFeatures)==null?void 0:e.deviceAwareness){const t=hn("device");r.push({type:"context",runtimeBinding:`${t}.${hn("mobile")}`,readableBinding:"Device.Mobile"}),r.push({type:"context",runtimeBinding:`${t}.${hn("tablet")}`,readableBinding:"Device.Tablet"})}return r},Rq=r=>{var t;let e=[];if((t=it(He).clientFeatures)==null?void 0:t.rowSelection){let n=Kl(r==null?void 0:r.props,s=>s._component.endsWith("table"));const i=hn("rowSelection");e=e.concat(n.map(s=>({type:"context",runtimeBinding:`${i}.${hn(s._id)}.${hn("selectedRows")}`,readableBinding:`${s._instanceName}.Selected rows`})));let l=Kl(r==null?void 0:r.props,s=>s._component.endsWith("tableblock"));e=e.concat(l.map(s=>({type:"context",runtimeBinding:`${i}.${hn(s._id+"-table")}.${hn("selectedRows")}`,readableBinding:`${s._instanceName}.Selected rows`})))}return e},Mq=()=>{var e;let r=[];if((e=it(He).clientFeatures)==null?void 0:e.state){const t=hn("state");r=Ev().map(n=>({type:"context",runtimeBinding:`${t}.${hn(n)}`,readableBinding:`State.${n}`}))}return r},Dq=r=>{var l,s;const t=((s=(l=r==null?void 0:r.routing)==null?void 0:l.route)!=null?s:"").split("/");let n=[];t.forEach(o=>{o.startsWith(":")&&o.length>1&&n.push(o.replace(/:/g,"").replace(/\?/g,""))});const i=hn("url");return n.map(o=>({type:"context",runtimeBinding:`${i}.${hn(o)}`,readableBinding:`URL.${o}`}))},jq=(r,e,t,n,i)=>{var c;let l=[];const s=xi(r.props,e),a=_o(s==null?void 0:s._component).find(p=>p.key===t);if(!a)return l;((c=a.context)==null?void 0:c.length)&&a.context.forEach(p=>{l.push({readableBinding:p.label,runtimeBinding:`${hn("eventContext")}.${hn(p.key)}`})});const u=n==null?void 0:n.findIndex(p=>p.id===i);return u==null||u===-1||n.slice(0,u).forEach((p,d)=>{const g=Cv.actions.find(h=>h.name===p["##eventHandlerType"]);g.context&&g.context.forEach(h=>{l.push({readableBinding:`Action ${d+1}.${h.label}`,runtimeBinding:`actions.${d}.${h.value}`})})}),l},Qf=(r,e)=>Di(null,{type:"table",tableId:r},e),Di=(r,e,t)=>{var l,s;t=t||{};let n,i;if(e){const{type:o}=e,a=it(Ot).list;if(o==="provider"){const g=xi(r==null?void 0:r.props,e.providerId),h=El(r,g);return Di(r,h,t)}else if(o==="query")i=it(kn).list.find(h=>h._id===e._id);else if(o==="field"){i={name:e.fieldName};const{fieldType:g}=e;g==="attachment"?n={url:{type:"string"},name:{type:"string"}}:g==="array"&&(n={value:{type:"string"}})}else if(o==="jsonarray"){i=a.find(h=>h._id===e.tableId);let g=i==null?void 0:i.schema;n=$3(g,e)}else i=a.find(g=>g._id===e.tableId);if(i&&!n&&(o==="view"?n=vn.cloneDeep((s=(l=i.views)==null?void 0:l[e.name])==null?void 0:s.schema):o==="query"&&(t.formSchema||t.searchableSchema)?(n={},(i.parameters||[]).forEach(h=>{(h==null?void 0:h.name)&&(n[h.name]=lt(Se({},h),{type:"string"}))})):n=vn.cloneDeep(i.schema)),n){let g={};Object.keys(n).forEach(h=>{const v=n[h];if((v==null?void 0:v.type)==="json"){const C=b3(v,{squashObjects:!0});Object.keys(C).forEach(y=>{g[`${h}.${y}`]={type:C[y].type,nestedJSON:!0}})}}),n=Se(Se({},n),g)}const u=i&&!i.sql,f=["table","link"].includes(e.type);let c=f,p=f&&u;t.formSchema?(c=!1,p=!1):t.searchableSchema&&(c=f&&u),n&&(c&&(n._id={type:"string"}),p&&(n._rev={type:"string"}));let d={};Object.entries(n||{}).forEach(([g,h])=>{typeof h=="string"?d[g]={type:h,name:g}:d[g]=lt(Se({},h),{name:g})}),n=d}return{schema:n,table:i}},Av=r=>{var i;let e={};if(!r)return e;const n=_o(r._component).find(l=>l.key==="field"&&l.type.startsWith("field/"));if(n&&r.field){const l=n.type.split("field/")[1];l&&(e[r.field]={type:l})}return(i=r._children)==null||i.forEach(l=>{const s=Av(l);e=Se(Se({},e),s)}),e},Ev=()=>{let r=[];Bq().forEach(t=>{Kl(t.props,n=>{_o(n._component).filter(l=>l.type==="event").forEach(l=>{r.push(n[l.key])})})});let e=new Set;return r.forEach(t=>{!Array.isArray(t)||t.forEach(n=>{var i,l,s;n["##eventHandlerType"]==="Update State"&&((i=n.parameters)==null?void 0:i.type)==="set"&&((l=n.parameters)==null?void 0:l.key)&&((s=n.parameters)==null?void 0:s.value)&&e.add(n.parameters.key)})}),Array.from(e)},Bq=()=>{let r=[];return r=r.concat(it(He).layouts||[]),r=r.concat(it(He).screens||[]),r},zq=(r,e,t)=>{if(!(r==null?void 0:r.includes(e)))return!1;if(t==="readableBinding")return!0;const n=r.replace(/\s+/g,""),i=e.replace(/\s+/g,"");return![`[${i}]`,`"${i}"`,`'${i}'`].find(s=>n==null?void 0:n.includes(s))},Ov=(r,e,t,n)=>r.substring(0,e)+n+r.substring(t),Tv=(r,e,t)=>{const n=Mf(e);n&&(e=Ca(e));const i=n?Oq:Eq,l=t==="runtimeBinding"?"readableBinding":"runtimeBinding";if(typeof e!="string")return e;const s=r.map(u=>u[l]).sort((u,f)=>f.length-u.length),o=e.match(i)||[];let a=e;for(let u of o){let f=u,c=f;for(let p of s)if(n||zq(f,p,t)){const d=r.find(h=>h[l]===p);let g;do if(g=c.indexOf(p),g!==-1){let h=g+p.length,v=Array(d[t].length+1).join("*");c=Ov(c,g,h,v),f=Ov(f,g,h,d[t])}while(g!==-1)}a=a.replace(u,f)}return n&&(a=Df(a)),a},qq=r=>{var e;return(e=r==null?void 0:r.match(/{{\s*literal\s*\[+([^\]]+)].*}}/))==null?void 0:e[1]},As=(r,e)=>Tv(r,e,"runtimeBinding"),bo=(r,e)=>Tv(r,e,"readableBinding");function Uq(){const r=RM();return Object.keys(r).flatMap(e=>Object.entries(r[e]).map(([t,n])=>({text:t,path:t,example:n.example,label:t,displayText:t,description:n.description})))}function Iv(r,e,t){t=typeof t=="string"?t:t.path,r=r==null?"":r;const n=(e==null?void 0:e.start)?r.substring(0,e.start):"",i=(e==null?void 0:e.end)?r.substring(e.end):"";return(!n.includes("{{")||!i.includes("}}"))&&(t=`{{ ${t} }}`),e.start?r=r.substring(0,e.start)+t+r.substring(e.end,r.length):r+=t,r}function Fq(r,e,t){return t=typeof t=="string"?t:t.path,r=r==null?"":r,t=`$("${t}")`,e.start?r=r.substring(0,e.start)+t+r.substring(e.end,r.length):r+=t,r}function Lv(r){let e,t,n;return t=new Ze({props:{small:!0,$$slots:{default:[Vq]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),Ht(e,"margin-bottom","var(--spacing-s)"),w(e,"class","svelte-35ttya")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&32776&&(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 Vq(r){let e;return{c(){e=V(r[3])},m(t,n){$(t,e,n)},p(t,n){n&8&&Te(e,t[3])},d(t){t&&b(e)}}}function Hq(r){let e,t,n,i,l,s=r[3]&&Lv(r);return{c(){s&&s.c(),e=R(),t=D("div"),n=D("textarea"),w(n,"tabindex","0"),n.readOnly=!0,n.value=r[0],w(t,"style",i=`--code-mirror-height: ${r[1]}px; --code-mirror-resize: ${r[2]}`),w(t,"class","svelte-35ttya")},m(o,a){s&&s.m(o,a),$(o,e,a),$(o,t,a),N(t,n),r[10](n),l=!0},p(o,[a]){o[3]?s?(s.p(o,a),a&8&&m(s,1)):(s=Lv(o),s.c(),m(s,1),s.m(e.parentNode,e)):s&&(ee(),_(s,1,1,()=>{s=null}),te()),(!l||a&1)&&(n.value=o[0]),(!l||a&6&&i!==(i=`--code-mirror-height: ${o[1]}px; --code-mirror-resize: ${o[2]}`))&&w(t,"style",i)},i(o){l||(m(s),l=!0)},o(o){_(s),l=!1},d(o){s&&s.d(o),o&&b(e),o&&b(t),r[10](null)}}}const Ia={JS:{name:"javascript",json:!1},JSON:{name:"javascript",json:!0},XML:{name:"xml"},SQL:{name:"sql"},Handlebars:{name:"handlebars",base:"text/html"},Text:{name:"text/html"}};function Wq(r,e,t){let n;fe(r,Ff,C=>t(12,n=C));let{mode:i=Ia.JS}=e,{value:l=""}=e,{height:s=300}=e,{resize:o="none"}=e,{readonly:a=!1}=e,{hints:u=[]}=e,{label:f}=e;const c=ht();let p,d;async function g(C,y){if(!Qr||!p)return;const I=n.theme.includes("light"),O={mode:C,value:y||"",readOnly:a,theme:I?"default":"tomorrow-night-eighties",lineNumbers:!0,lineWrapping:!0,indentWithTabs:!0,indentUnit:2,tabSize:2,extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:{nonEmpty:!0},autoCloseBrackets:!0,matchBrackets:!0};(u==null?void 0:u.length)&&(Qr.registerHelper("hint","dictionaryHint",function(T){const P=T.getCursor();return{list:u,from:Qr.Pos(P.line,P.ch),to:Qr.Pos(P.line,P.ch)}}),Qr.commands.autocomplete=function(T){Qr.showHint(T,Qr.hint.dictionaryHint)}),t(9,d=Qr.fromTextArea(p,O)),d.on("blur",T=>{c("change",T.getValue())})}const h=()=>{const C=d.getCursor();return{start:C.ch,end:C.ch}};Ft(()=>(g(i,l),()=>{d&&d.toTextArea()}));function v(C){Z[C?"unshift":"push"](()=>{p=C,t(4,p)})}return r.$$set=C=>{"mode"in C&&t(5,i=C.mode),"value"in C&&t(0,l=C.value),"height"in C&&t(1,s=C.height),"resize"in C&&t(2,o=C.resize),"readonly"in C&&t(6,a=C.readonly),"hints"in C&&t(7,u=C.hints),"label"in C&&t(3,f=C.label)},r.$$.update=()=>{r.$$.dirty&544&&(d==null||d.setOption("mode",i)),r.$$.dirty&513&&(d==null||d.setValue(l||""))},[l,s,o,f,p,i,a,u,h,d,v]}class Xf extends ie{constructor(e){super();le(this,e,Wq,Hq,re,{mode:5,value:0,height:1,resize:2,readonly:6,hints:7,label:3,getCaretPosition:8})}get getCaretPosition(){return this.$$.ctx[8]}}function Pv(r,e,t){const n=r.slice();return n[29]=e[t],n}function Nv(r,e,t){const n=r.slice();return n[32]=e[t],n}function Rv(r,e,t){const n=r.slice();return n[35]=e[t],n}function Mv(r){let e;return{c(){e=D("p"),e.innerHTML=`Current Handlebars syntax is invalid, please check the guide
387
387
  <a href="https://handlebarsjs.com/guide/" class="svelte-14vef82">here</a>
@@ -390,7 +390,7 @@ function print() { __p += __j.call(arguments, '') }
390
390
  schema.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function mU(r){let e,t,n,i;return e=new Ke({props:{size:"S",$$slots:{default:[dU]},$$scope:{ctx:r}}}),n=new Zl({props:{mode:"json",value:r[0]}}),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&1048576&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1&&(a.value=l[0]),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 gU(r){let e,t;return e=new Ye({props:{noPadding:!0,gap:"XS",$$slots:{default:[mU]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1048577&&(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 _U(r){let e,t,n,i;return e=new bn({props:{title:"Form",$$slots:{default:[pU]},$$scope:{ctx:r}}}),n=new bn({props:{title:"JSON",$$slots:{default:[gU]},$$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&1048590&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1048577&&(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 hU(r){let e,t;return e=new Vr({props:{selected:bU,noPadding:!0,$$slots:{default:[_U]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1048591&&(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 $U(r){let e,t,n;function i(s){r[14](s)}let l={title:"JSON Schema Editor",confirmText:"Save Column",onConfirm:r[7],size:"L",$$slots:{default:[hU]},$$scope:{ctx:r}};return r[4]!==void 0&&(l.disabled=r[4]),e=new Bt({props:l}),Z.push(()=>ce(e,"disabled",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};o&1048591&&(a.$$scope={dirty:o,ctx:s}),!t&&o&16&&(t=!0,a.disabled=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)}}}let bU="Form";const vU=r=>r.value,wU=r=>r.label;function yU(r,e,t){let{schema:n={}}=e,{json:i}=e,l=ht(),s=0,o=[],a=[],u=[{label:"String",value:zt.STRING.type},{label:"Number",value:zt.NUMBER.type},{label:"Boolean",value:zt.BOOLEAN.type},{label:"Object",value:zt.JSON.type},{label:"Array",value:zt.ARRAY.type}],f=!1;async function c({detail:O}){const T=O.value;t(0,i=T);try{let P=JSON.parse(T);t(9,n=fU(P)),p(),t(4,f=!1)}catch{t(4,f=!0)}}function p(){n||t(9,n={});const O=Object.entries(n).filter(([T])=>!o.includes(T));for(let[T,P]of O)o.push(T),a.push(P.type);t(1,s=o.length)}function d(){const O={};for(let[T,P]of o.entries())O[P]=lt(Se({},n[P]),{type:a[T]});l("save",{schema:O,json:i}),t(9,n=O)}function g(O){const T=o[O];if(o[O+1]!=null&&(t(2,o[O]=o[O+1],o),t(3,a[O]=a[O+1],a)),o.splice(O,1),a.splice(O,1),t(1,s--,s),i)try{const P=JSON.parse(i);delete P[T],t(0,i=JSON.stringify(P,null,2))}catch{}}Ft(()=>{p()});function h(O,T){r.$$.not_equal(o[T],O)&&(o[T]=O,t(2,o))}function v(O,T){r.$$.not_equal(a[T],O)&&(a[T]=O,t(3,a))}const C=O=>g(O),y=()=>t(1,s++,s);function I(O){f=O,t(4,f)}return r.$$set=O=>{"schema"in O&&t(9,n=O.schema),"json"in O&&t(0,i=O.json)},[i,s,o,a,f,u,c,d,g,n,h,v,C,y,I]}class kU extends ie{constructor(e){super();le(this,e,yU,$U,re,{schema:9,json:0})}}function Xv(r){let e,t,n,i=r[13]&&Kv(r),l=r[14]&&Zv(r);return{c(){e=D("div"),i&&i.c(),t=R(),l&&l.c()},m(s,o){$(s,e,o),i&&i.m(e,null),N(e,t),l&&l.m(e,null),n=!0},p(s,o){s[13]?i?(i.p(s,o),o[0]&8192&&m(i,1)):(i=Kv(s),i.c(),m(i,1),i.m(e,t)):i&&(ee(),_(i,1,1,()=>{i=null}),te()),s[14]?l?(l.p(s,o),o[0]&16384&&m(l,1)):(l=Zv(s),l.c(),m(l,1),l.m(e,null)):l&&(ee(),_(l,1,1,()=>{l=null}),te())},i(s){n||(m(i),m(l),n=!0)},o(s){_(i),_(l),n=!1},d(s){s&&b(e),i&&i.d(),l&&l.d()}}}function Kv(r){let e,t;return e=new Hn({props:{value:r[10],disabled:r[1],thin:!0,text:"Required"}}),e.$on("change",r[27]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&1024&&(l.value=n[10]),i[0]&2&&(l.disabled=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 Zv(r){let e,t,n;function i(s){r[38](s)}let l={thin:!0,text:"Use as table display column"};return r[1]!==void 0&&(l.value=r[1]),e=new Hn({props:l}),Z.push(()=>ce(e,"value",i)),e.$on("change",r[28]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};!t&&o[0]&2&&(t=!0,a.value=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 xv(r){let e,t,n,i,l,s,o;return t=new Ze({props:{$$slots:{default:[CU]},$$scope:{ctx:r}}}),i=new Hn({props:{value:r[4][0]===r[0].name,disabled:r[4][1]===r[0].name,text:"Primary"}}),i.$on("change",r[29]),s=new Hn({props:{value:r[4][1]===r[0].name,disabled:!r[4][0]||r[4][0]===r[0].name,text:"Secondary"}}),s.$on("change",r[30]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment)},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[2]&64&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const c={};u[0]&17&&(c.value=a[4][0]===a[0].name),u[0]&17&&(c.disabled=a[4][1]===a[0].name),i.$set(c);const p={};u[0]&17&&(p.value=a[4][1]===a[0].name),u[0]&17&&(p.disabled=!a[4][0]||a[4][0]===a[0].name),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 CU(r){let e;return{c(){e=V("Search Indexes")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function SU(r){let e,t;return e=new ut({props:{primary:!0,text:!0,$$slots:{default:[MU]},$$scope:{ctx:r}}}),e.$on("click",r[31]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[2]&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 AU(r){let e,t;return e=new Qe({props:{label:"Auto column type",value:r[0].subtype,options:Object.entries(wv()),getOptionLabel:ZU,getOptionValue:xU}}),e.$on("change",r[52]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&1&&(l.value=n[0].subtype),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 EU(r){let e,t,n,i=!r[22].sql&&DU(r);return t=new b1({props:{title:"Formula",label:"Formula",value:r[0].formula,bindings:Gv({table:r[22]}),allowJS:!0}}),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[22].sql||i.p(l,s);const o={};s[0]&1&&(o.value=l[0].formula),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 OU(r){let e,t,n,i,l,s,o;function a(d){r[47](d)}let u={label:"Table",disabled:r[21],options:r[9],getOptionLabel:GU,getOptionValue:YU};r[0].tableId!==void 0&&(u.value=r[0].tableId),e=new Qe({props:u}),Z.push(()=>ce(e,"value",a));let f=r[12]&&r[12].length>0&&e4(r);function c(d){r[49](d)}let p={disabled:r[21],label:"Column name in other table",error:r[3].relatedName};return r[0].fieldName!==void 0&&(p.value=r[0].fieldName),l=new tt({props:p}),Z.push(()=>ce(l,"value",c)),{c(){S(e.$$.fragment),n=R(),f&&f.c(),i=R(),S(l.$$.fragment)},m(d,g){A(e,d,g),$(d,n,g),f&&f.m(d,g),$(d,i,g),A(l,d,g),o=!0},p(d,g){const h={};g[0]&512&&(h.options=d[9]),!t&&g[0]&1&&(t=!0,h.value=d[0].tableId,pe(()=>t=!1)),e.$set(h),d[12]&&d[12].length>0?f?(f.p(d,g),g[0]&4096&&m(f,1)):(f=e4(d),f.c(),m(f,1),f.m(i.parentNode,i)):f&&(ee(),_(f,1,1,()=>{f=null}),te());const v={};g[0]&8&&(v.error=d[3].relatedName),!s&&g[0]&1&&(s=!0,v.value=d[0].fieldName,pe(()=>s=!1)),l.$set(v)},i(d){o||(m(e.$$.fragment,d),m(f),m(l.$$.fragment,d),o=!0)},o(d){_(e.$$.fragment,d),_(f),_(l.$$.fragment,d),o=!1},d(d){E(e,d),d&&b(n),f&&f.d(d),d&&b(i),E(l,d)}}}function TU(r){let e,t,n,i,l,s;function o(c){r[45](c)}let a={type:"number",label:"Min Value"};r[0].constraints.numericality.greaterThanOrEqualTo!==void 0&&(a.value=r[0].constraints.numericality.greaterThanOrEqualTo),e=new tt({props:a}),Z.push(()=>ce(e,"value",o));function u(c){r[46](c)}let f={type:"number",label:"Max Value"};return r[0].constraints.numericality.lessThanOrEqualTo!==void 0&&(f.value=r[0].constraints.numericality.lessThanOrEqualTo),i=new tt({props:f}),Z.push(()=>ce(i,"value",u)),{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[0]&1&&(t=!0,d.value=c[0].constraints.numericality.greaterThanOrEqualTo,pe(()=>t=!1)),e.$set(d);const g={};!l&&p[0]&1&&(l=!0,g.value=c[0].constraints.numericality.lessThanOrEqualTo,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 IU(r){let e,t,n,i,l,s;function o(c){r[43](c)}let a={label:"Earliest"};r[0].constraints.datetime.earliest!==void 0&&(a.value=r[0].constraints.datetime.earliest),e=new Bl({props:a}),Z.push(()=>ce(e,"value",o));function u(c){r[44](c)}let f={label:"Latest"};return r[0].constraints.datetime.latest!==void 0&&(f.value=r[0].constraints.datetime.latest),i=new Bl({props:f}),Z.push(()=>ce(i,"value",u)),{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[0]&1&&(t=!0,d.value=c[0].constraints.datetime.earliest,pe(()=>t=!1)),e.$set(d);const g={};!l&&p[0]&1&&(l=!0,g.value=c[0].constraints.datetime.latest,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 LU(r){let e,t,n;function i(s){r[42](s)}let l={label:"Options (one per line)"};return r[0].constraints.inclusion!==void 0&&(l.values=r[0].constraints.inclusion),e=new kv({props:l}),Z.push(()=>ce(e,"values",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.values=s[0].constraints.inclusion,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 PU(r){let e,t,n,i,l,s;t=new Ze({props:{size:"M",tooltip:"Rich text includes support for images, links, tables, lists and more",$$slots:{default:[jU]},$$scope:{ctx:r}}});function o(u){r[41](u)}let a={text:"Enable rich text support (markdown)"};return r[0].useRichText!==void 0&&(a.value=r[0].useRichText),i=new Hn({props:a}),Z.push(()=>ce(i,"value",o)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment)},m(u,f){$(u,e,f),A(t,e,null),N(e,n),A(i,e,null),s=!0},p(u,f){const c={};f[2]&64&&(c.$$scope={dirty:f,ctx:u}),t.$set(c);const p={};!l&&f[0]&1&&(l=!0,p.value=u[0].useRichText,pe(()=>l=!1)),i.$set(p)},i(u){s||(m(t.$$.fragment,u),m(i.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(i.$$.fragment,u),s=!1},d(u){u&&b(e),E(t),E(i)}}}function NU(r){let e,t,n;function i(s){r[40](s)}let l={label:"Options (one per line)"};return r[0].constraints.inclusion!==void 0&&(l.values=r[0].constraints.inclusion),e=new kv({props:l}),Z.push(()=>ce(e,"values",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.values=s[0].constraints.inclusion,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 RU(r){let e,t,n;function i(s){r[39](s)}let l={type:"number",label:"Max Length"};return r[0].constraints.length.maximum!==void 0&&(l.value=r[0].constraints.length.maximum),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].constraints.length.maximum,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 MU(r){let e;return{c(){e=V("Open schema editor")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function DU(r){let e,t,n;function i(s){r[50](s)}let l={label:"Formula type",options:[{label:"Dynamic",value:"dynamic"},{label:"Static",value:"static"}],getOptionLabel:XU,getOptionValue:KU,tooltip:`Dynamic formula are calculated when retrieved, but cannot be filtered,
391
391
  while static formula are calculated when the row is saved.`};return r[0].formulaType!==void 0&&(l.value=r[0].formulaType),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[0]&1&&(t=!0,a.value=s[0].formulaType,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 e4(r){let e,t,n;function i(s){r[48](s)}let l={disabled:r[21],label:"Define the relationship",options:r[12],getOptionLabel:JU,getOptionValue:QU};return r[0].relationshipType!==void 0&&(l.value=r[0].relationshipType),e=new Oh({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[0]&4096&&(a.options=s[12]),!t&&o[0]&1&&(t=!0,a.value=s[0].relationshipType,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 jU(r){let e;return{c(){e=V("Formatting")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function BU(r){var P;let e,t,n,i,l,s,o,a,u,f,c,p;function d(M){r[36](M)}let g={label:"Name",disabled:r[2]||r[21]&&r[0].type===r[18],error:(P=r[3])==null?void 0:P.name};r[0].name!==void 0&&(g.value=r[0].name),e=new tt({props:g}),Z.push(()=>ce(e,"value",d));function h(M){r[37](M)}let v={disabled:!r[11],label:"Type",options:r[34](),getOptionLabel:HU,getOptionValue:WU};r[0].type!==void 0&&(v.value=r[0].type),i=new Qe({props:v}),Z.push(()=>ce(i,"value",h)),i.$on("change",r[26]);let C=(r[13]||r[14])&&Xv(r),y=r[15]&&!r[8]&&xv(r);const I=[RU,NU,PU,LU,IU,TU,OU,EU,AU,SU],O=[];function T(M,F){return M[0].type==="string"?0:M[0].type==="options"?1:M[0].type==="longform"?2:M[0].type==="array"?3:M[0].type==="datetime"?4:M[0].type==="number"?5:M[0].type==="link"?6:M[0].type===M[17]?7:M[0].type===La?8:M[0].type===M[19]?9:-1}return~(u=T(r))&&(f=O[u]=I[u](r)),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment),s=R(),C&&C.c(),o=R(),y&&y.c(),a=R(),f&&f.c(),c=Ee()},m(M,F){A(e,M,F),$(M,n,F),A(i,M,F),$(M,s,F),C&&C.m(M,F),$(M,o,F),y&&y.m(M,F),$(M,a,F),~u&&O[u].m(M,F),$(M,c,F),p=!0},p(M,F){var G;const j={};F[0]&5&&(j.disabled=M[2]||M[21]&&M[0].type===M[18]),F[0]&8&&(j.error=(G=M[3])==null?void 0:G.name),!t&&F[0]&1&&(t=!0,j.value=M[0].name,pe(()=>t=!1)),e.$set(j);const B={};F[0]&2048&&(B.disabled=!M[11]),!l&&F[0]&1&&(l=!0,B.value=M[0].type,pe(()=>l=!1)),i.$set(B),M[13]||M[14]?C?(C.p(M,F),F[0]&24576&&m(C,1)):(C=Xv(M),C.c(),m(C,1),C.m(o.parentNode,o)):C&&(ee(),_(C,1,1,()=>{C=null}),te()),M[15]&&!M[8]?y?(y.p(M,F),F[0]&33024&&m(y,1)):(y=xv(M),y.c(),m(y,1),y.m(a.parentNode,a)):y&&(ee(),_(y,1,1,()=>{y=null}),te());let q=u;u=T(M),u===q?~u&&O[u].p(M,F):(f&&(ee(),_(O[q],1,1,()=>{O[q]=null}),te()),~u?(f=O[u],f?f.p(M,F):(f=O[u]=I[u](M),f.c()),m(f,1),f.m(c.parentNode,c)):f=null)},i(M){p||(m(e.$$.fragment,M),m(i.$$.fragment,M),m(C),m(y),m(f),p=!0)},o(M){_(e.$$.fragment,M),_(i.$$.fragment,M),_(C),_(y),_(f),p=!1},d(M){E(e,M),M&&b(n),E(i,M),M&&b(s),C&&C.d(M),M&&b(o),y&&y.d(M),M&&b(a),~u&&O[u].d(M),M&&b(c)}}}function t4(r){let e,t;return e=new ut({props:{warning:!0,text:!0,$$slots:{default:[zU]},$$scope:{ctx:r}}}),e.$on("click",r[32]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[2]&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 zU(r){let e;return{c(){e=V("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qU(r){let e,t,n=!r[2]&&r[20]!=null&&t4(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[2]&&i[20]!=null?n?(n.p(i,l),l[0]&4&&m(n,1)):(n=t4(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 UU(r){let e,t;return e=new kU({props:{schema:r[0].schema,json:r[0].json}}),e.$on("save",r[53]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&1&&(l.schema=n[0].schema),i[0]&1&&(l.json=n[0].json),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 FU(r){let e,t,n,i,l,s,o,a;function u(c){r[55](c)}let f={dataCy:"delete-column-confirm",placeholder:r[20]};return r[6]!==void 0&&(f.value=r[6]),s=new tt({props:f}),Z.push(()=>ce(s,"value",u)),{c(){e=D("p"),t=V("Are you sure you wish to delete the column "),n=D("b"),n.textContent=`${r[20]}?`,i=V(`
392
392
  Your data will be deleted and this action cannot be undone - enter the column
393
- name to confirm.`),l=R(),S(s.$$.fragment)},m(c,p){$(c,e,p),N(e,t),N(e,n),N(e,i),$(c,l,p),A(s,c,p),a=!0},p(c,p){const d={};!o&&p[0]&64&&(o=!0,d.value=c[6],pe(()=>o=!1)),s.$set(d)},i(c){a||(m(s.$$.fragment,c),a=!0)},o(c){_(s.$$.fragment,c),a=!1},d(c){c&&b(e),c&&b(l),E(s,c)}}}function VU(r){let e,t,n,i,l,s;e=new Bt({props:{title:r[20]?"Edit Column":"Create Column",confirmText:"Save Column",onConfirm:r[23],onCancel:r[24],disabled:r[16],$$slots:{footer:[qU],default:[BU]},$$scope:{ctx:r}}});let o={$$slots:{default:[UU]},$$scope:{ctx:r}};n=new At({props:o}),r[54](n);let a={okText:"Delete Column",onOk:r[25],onCancel:r[33],title:"Confirm Deletion",disabled:r[6]!==r[20],$$slots:{default:[FU]},$$scope:{ctx:r}};return l=new _r({props:a}),r[56](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[0]&65536&&(c.disabled=u[16]),f[0]&65311|f[2]&64&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f[0]&1|f[2]&64&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f[0]&64&&(d.disabled=u[6]!==u[20]),f[0]&64|f[2]&64&&(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[54](null),E(n,u),u&&b(i),r[56](null),E(l,u)}}}const La="auto",HU=r=>r.name,WU=r=>r.type,GU=r=>r.name,YU=r=>r._id,JU=r=>r.name,QU=r=>r.value,XU=r=>r.label,KU=r=>r.value,ZU=r=>r[1].name,xU=r=>r[0];function eF(r,e,t){let n,i,l,s,o,a,u,f,c,p,d,g;fe(r,Ot,Be=>t(35,g=Be));const h=zt.FORMULA.type,v=zt.LINK.type,C=zt.STRING.type,y=zt.NUMBER.type,I=zt.JSON.type,O=zt.DATETIME.type,T=ht(),P=["type","_id","_rev","tableId"],{hide:M}=Hs(Cp.Modal);let F=vn.cloneDeep(zt),{field:j={type:"string",constraints:F.STRING.constraints,fieldName:g.selected.name}}=e,B=j.name;const q=B!=null;let G=g.selected.primaryDisplay==null||g.selected.primaryDisplay===j.name,Y=g.selected,U=[...g.selected.indexes||[]],H,W,Q,se;async function K(){j.type===La&&t(0,j=yv(g.draft.name,j.name,j.subtype)),j.type!==v&&delete j.fieldName;try{await Ot.saveField({originalName:B,field:j,primaryDisplay:G,indexes:U}),T("updatecolumns")}catch{ye.error("Error saving column")}}function ne(){t(0,j.name=B,j)}function ae(){try{t(0,j.name=Q,j),j.name===g.selected.primaryDisplay?ye.error("You cannot delete the display column"):(Ot.deleteField(j),ye.success(`Column ${j.name} deleted.`),H.hide(),M(),W=!1,T("updatecolumns"))}catch{ye.error("Error deleting column")}}function _e(Be){var on;delete j.autocolumn,delete j.subtype,delete j.tableId,delete j.relationshipType,delete j.formulaType;const Dt=F[(on=Be.detail)==null?void 0:on.toUpperCase()];(Dt==null?void 0:Dt.constraints)&&t(0,j.constraints=Dt.constraints,j),j.type===v&&t(0,j.relationshipType=Lr.MANY_TO_MANY,j),j.type===h&&t(0,j.formulaType="dynamic",j)}function Me(Be){const Dt=Be.detail;t(0,j.constraints.presence=Dt?{allowEmpty:!1}:!1,j),t(10,n=Dt)}function we(Be){Be.detail&&t(0,j.constraints.presence={allowEmpty:!1},j)}function $e(Be){t(4,U=Be.detail?[j.name]:[])}function ge(Be){Be.detail?t(4,U[1]=j.name,U):t(4,U=U.slice(0,1))}function Ne(){se.show()}function Ue(){H.show(),W=!0}function ue(){H.hide(),t(6,Q=""),W=!1}function Ce(Be){if(!Be||!Be.tableId)return null;const Dt=p==null?void 0:p.find(Ar=>Ar._id===Be.tableId);if(!Dt)return null;const on=jl.exports.truncate(Y.name,{length:14}),Cn=jl.exports.truncate(Dt.name,{length:14});return[{name:`Many ${on} rows \u2192 many ${Cn} rows`,alt:`Many ${Y.name} rows \u2192 many ${Dt.name} rows`,value:Lr.MANY_TO_MANY},{name:`One ${Cn} row \u2192 many ${on} rows`,alt:`One ${Dt.name} rows \u2192 many ${Y.name} rows`,value:Lr.ONE_TO_MANY},{name:`One ${on} row \u2192 many ${Cn} rows`,alt:`One ${Y.name} rows \u2192 many ${Dt.name} rows`,value:Lr.MANY_TO_ONE}]}function ke(){return B&&k3.indexOf(j.type)!==-1?y3:B&&S3.indexOf(j.type)!==-1?C3:B&&E3.indexOf(j.type)!==-1?A3:c?[zt.STRING,zt.LONGFORM,zt.OPTIONS,zt.DATETIME,zt.NUMBER,zt.BOOLEAN,zt.ARRAY,zt.FORMULA,zt.LINK]:[...Object.values(F),{name:"Auto Column",type:La}]}function ze(Be){Be&&!Be.constraints&&(Be.constraints={}),Be.type===C&&!Be.constraints.length&&(Be.constraints.length={}),Be.type===y&&!Be.constraints.numericality&&(Be.constraints.numericality={}),Be.type===O&&!Be.constraints.datetime&&(Be.constraints.datetime={})}function be(Be){function Dt(Cn,Ar,yi=null){return Object.keys((Cn==null?void 0:Cn.schema)||{}).some(Ts=>Ts!==yi&&Ts===Ar)}const on={};if(P.some(Cn=>Be.name===Cn)?on.name=`${P.join(", ")} are not allowed as column names`:Dt(g.draft,Be.name,B)&&(on.name="Column name already in use."),Be.fieldName&&Be.tableId){const Cn=g.list.find(Ar=>Ar._id===Be.tableId);Dt(Cn,Be.fieldName)&&(on.relatedName=`Column name already in use in table ${Cn.name}`)}return on}Ft(()=>{G&&t(0,j.constraints.presence={allowEmpty:!1},j)});function he(Be){r.$$.not_equal(j.name,Be)&&(j.name=Be,t(0,j))}function Xe(Be){r.$$.not_equal(j.type,Be)&&(j.type=Be,t(0,j))}function Mt(Be){G=Be,t(1,G)}function qe(Be){r.$$.not_equal(j.constraints.length.maximum,Be)&&(j.constraints.length.maximum=Be,t(0,j))}function pt(Be){r.$$.not_equal(j.constraints.inclusion,Be)&&(j.constraints.inclusion=Be,t(0,j))}function It(Be){r.$$.not_equal(j.useRichText,Be)&&(j.useRichText=Be,t(0,j))}function Ie(Be){r.$$.not_equal(j.constraints.inclusion,Be)&&(j.constraints.inclusion=Be,t(0,j))}function Ge(Be){r.$$.not_equal(j.constraints.datetime.earliest,Be)&&(j.constraints.datetime.earliest=Be,t(0,j))}function Fe(Be){r.$$.not_equal(j.constraints.datetime.latest,Be)&&(j.constraints.datetime.latest=Be,t(0,j))}function at(Be){r.$$.not_equal(j.constraints.numericality.greaterThanOrEqualTo,Be)&&(j.constraints.numericality.greaterThanOrEqualTo=Be,t(0,j))}function Le(Be){r.$$.not_equal(j.constraints.numericality.lessThanOrEqualTo,Be)&&(j.constraints.numericality.lessThanOrEqualTo=Be,t(0,j))}function Lt(Be){r.$$.not_equal(j.tableId,Be)&&(j.tableId=Be,t(0,j))}function sn(Be){r.$$.not_equal(j.relationshipType,Be)&&(j.relationshipType=Be,t(0,j))}function dn(Be){r.$$.not_equal(j.fieldName,Be)&&(j.fieldName=Be,t(0,j))}function cn(Be){r.$$.not_equal(j.formulaType,Be)&&(j.formulaType=Be,t(0,j))}const hr=Be=>t(0,j.formula=Be.detail,j),In=Be=>t(0,j.subtype=Be.detail,j),ar=({detail:Be})=>{t(0,j.schema=Be.schema,j),t(0,j.json=Be.json,j)};function lr(Be){Z[Be?"unshift":"push"](()=>{se=Be,t(7,se)})}function rl(Be){Q=Be,t(6,Q)}function Ve(Be){Z[Be?"unshift":"push"](()=>{H=Be,t(5,H)})}return r.$$set=Be=>{"field"in Be&&t(0,j=Be.field)},r.$$.update=()=>{var Be,Dt;r.$$.dirty[0]&1&&ze(j),r.$$.dirty[0]&3&&t(10,n=!!((Be=j==null?void 0:j.constraints)==null?void 0:Be.presence)||G),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&t(2,i=((Dt=g.selected)==null?void 0:Dt._id)===Cl.USERS&&P3.includes(j.name)),r.$$.dirty[0]&1&&t(3,s=be(j)),r.$$.dirty[0]&9&&t(16,l=!j.name||j.type===v&&!j.tableId||Object.keys(s).length!==0),r.$$.dirty[0]&1&&t(15,o=j.type!==v&&j.type!==I&&j.subtype!==Ri.CREATED_BY&&j.subtype!==Ri.UPDATED_BY&&j.type!==h),r.$$.dirty[0]&1&&t(14,a=j.type!==v&&j.type!==La&&j.type!==I),r.$$.dirty[0]&5&&t(13,u=j.type!==v&&!i&&j.type!==La),r.$$.dirty[0]&1&&t(12,f=Ce(j)),r.$$.dirty[1]&16&&t(9,p=g.list.filter(on=>on._id!==g.draft._id&&on.type===Y.type&&Y.sourceId===on.sourceId)),r.$$.dirty[0]&1&&t(11,d=!B||B&&O3.indexOf(j.type)!==-1)},t(8,c=Y.type==="external"),[j,G,i,s,U,H,Q,se,c,p,n,d,f,u,a,o,l,h,v,I,B,q,Y,K,ne,ae,_e,Me,we,$e,ge,Ne,Ue,ue,ke,g,he,Xe,Mt,qe,pt,It,Ie,Ge,Fe,at,Le,Lt,sn,dn,cn,hr,In,ar,lr,rl,Ve]}class n4 extends ie{constructor(e){super();le(this,e,eF,VU,re,{field:0},null,[-1,-1,-1])}}function tF(r){let e;return{c(){e=V(r[0])},m(t,n){$(t,e,n)},p(t,[n]){n&1&&Te(e,t[0])},i:Oe,o:Oe,d(t){t&&b(e)}}}function nF(r,e,t){let n,i,l;fe(r,Zi,o=>t(3,l=o));let{value:s}=e;return r.$$set=o=>{"value"in o&&t(1,s=o.value)},r.$$.update=()=>{var o;r.$$.dirty&10&&t(2,n=l.find(a=>a._id===s)),r.$$.dirty&4&&t(0,i=(o=n==null?void 0:n.name)!=null?o:"Unknown role")},[i,s,n,l]}class rF extends ie{constructor(e){super();le(this,e,nF,tF,re,{value:1})}}function r4(r){let e,t,n,i;t=new kt({props:{size:"S",$$slots:{default:[iF]},$$scope:{ctx:r}}});let l=r[5]&&i4();return{c(){e=D("div"),S(t.$$.fragment),n=R(),l&&l.c(),w(e,"class","table-title svelte-8mw47k")},m(s,o){$(s,e,o),A(t,e,null),N(e,n),l&&l.m(e,null),i=!0},p(s,o){const a={};o[0]&8|o[1]&4&&(a.$$scope={dirty:o,ctx:s}),t.$set(a),s[5]?l?o[0]&32&&m(l,1):(l=i4(),l.c(),m(l,1),l.m(e,null)):l&&(ee(),_(l,1,1,()=>{l=null}),te())},i(s){i||(m(t.$$.fragment,s),m(l),i=!0)},o(s){_(t.$$.fragment,s),_(l),i=!1},d(s){s&&b(e),E(t),l&&l.d()}}}function iF(r){let e;return{c(){e=V(r[3])},m(t,n){$(t,e,n)},p(t,n){n[0]&8&&Te(e,t[3])},d(t){t&&b(e)}}}function i4(r){let e,t,n,i;return t=new fv({props:{size:"10"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","svelte-8mw47k")},m(l,s){$(l,e,s),A(t,e,null),i=!0},i(l){i||(m(t.$$.fragment,l),l&&fi(()=>{n||(n=Dr(e,qo,{},!0)),n.run(1)}),i=!0)},o(l){_(t.$$.fragment,l),l&&(n||(n=Dr(e,qo,{},!1)),n.run(0)),i=!1},d(l){l&&b(e),E(t),l&&n&&n.end()}}}function l4(r){let e,t;return e=new zz({props:{selectedRows:r[10],deleteRows:r[18]}}),e.$on("updaterows",r[23]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&1024&&(l.selectedRows=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 s4(r){let e,t,n,i;function l(o){r[24](o)}let s={data:r[1],schema:r[0],loading:r[5],customRenderers:r[15],rowCount:r[7],disableSorting:r[8],allowSelectRows:r[4]&&!r[9],allowEditRows:r[4],allowEditColumns:r[4],showAutoColumns:!r[6]};return r[10]!==void 0&&(s.selectedRows=r[10]),t=new Ni({props:s}),Z.push(()=>ce(t,"selectedRows",l)),t.$on("editcolumn",r[25]),t.$on("editrow",r[26]),t.$on("clickrelationship",r[27]),t.$on("sort",r[28]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","table-wrapper svelte-8mw47k")},m(o,a){$(o,e,a),A(t,e,null),i=!0},p(o,a){const u={};a[0]&2&&(u.data=o[1]),a[0]&1&&(u.schema=o[0]),a[0]&32&&(u.loading=o[5]),a[0]&32768&&(u.customRenderers=o[15]),a[0]&128&&(u.rowCount=o[7]),a[0]&256&&(u.disableSorting=o[8]),a[0]&528&&(u.allowSelectRows=o[4]&&!o[9]),a[0]&16&&(u.allowEditRows=o[4]),a[0]&16&&(u.allowEditColumns=o[4]),a[0]&64&&(u.showAutoColumns=!o[6]),!n&&a[0]&1024&&(n=!0,u.selectedRows=o[10],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 lF(r){let e,t,n,i,l,s=r[2],o,a,u=r[3]&&r4(r);const f=r[22].default,c=bt(f,r,r[33],null);let p=!r[9]&&r[10].length>0&&l4(r),d=s4(r);return{c(){e=D("div"),u&&u.c(),t=R(),n=D("div"),c&&c.c(),i=R(),p&&p.c(),l=R(),d.c(),o=Ee(),w(n,"class","popovers svelte-8mw47k")},m(g,h){$(g,e,h),u&&u.m(e,null),N(e,t),N(e,n),c&&c.m(n,null),N(n,i),p&&p.m(n,null),$(g,l,h),d.m(g,h),$(g,o,h),a=!0},p(g,h){g[3]?u?(u.p(g,h),h[0]&8&&m(u,1)):(u=r4(g),u.c(),m(u,1),u.m(e,t)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),c&&c.p&&(!a||h[1]&4)&&vt(c,f,g,g[33],a?yt(f,g[33],h,null):wt(g[33]),null),!g[9]&&g[10].length>0?p?(p.p(g,h),h[0]&1536&&m(p,1)):(p=l4(g),p.c(),m(p,1),p.m(n,null)):p&&(ee(),_(p,1,1,()=>{p=null}),te()),h[0]&4&&re(s,s=g[2])?(ee(),_(d,1,1,Oe),te(),d=s4(g),d.c(),m(d),d.m(o.parentNode,o)):d.p(g,h)},i(g){a||(m(u),m(c,g),m(p),m(d),a=!0)},o(g){_(u),_(c,g),_(p),_(d),a=!1},d(g){g&&b(e),u&&u.d(),c&&c.d(g),p&&p.d(),g&&b(l),g&&b(o),d.d(g)}}}function sF(r){let e,t,n;var i=r[16];function l(s){return{props:{row:s[12]}}}return i&&(e=new i(l(r)),e.$on("updaterows",r[29])),{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[0]&4096&&(a.row=s[12]),i!==(i=s[16])){if(e){ee();const u=e;_(u.$$.fragment,1,0,()=>{E(u,1)}),te()}i?(e=new i(l(s)),e.$on("updaterows",s[29]),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 oF(r){let e,t;return e=new n4({props:{field:r[11],onClosed:r[14].hide}}),e.$on("updatecolumns",r[31]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&2048&&(l.field=n[11]),i[0]&16384&&(l.onClosed=n[14].hide),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 aF(r){let e,t,n,i,l,s;e=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[lF]},$$scope:{ctx:r}}});let o={$$slots:{default:[sF]},$$scope:{ctx:r}};n=new At({props:o}),r[30](n);let a={$$slots:{default:[oF]},$$scope:{ctx:r}};return l=new At({props:a}),r[32](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[0]&34811|f[1]&4&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f[0]&69632|f[1]&4&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f[0]&18432|f[1]&4&&(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[30](null),E(n,u),u&&b(i),r[32](null),E(l,u)}}}function uF(r,e,t){let n,i,l,s;fe(r,tr,we=>t(35,l=we)),fe(r,jt,we=>t(36,s=we));let{$$slots:o={},$$scope:a}=e,{schema:u={}}=e,{data:f=[]}=e,{tableId:c}=e,{title:p}=e,{allowEditing:d=!1}=e,{loading:g=!1}=e,{hideAutocolumns:h}=e,{rowCount:v}=e,{type:C}=e,{disableSorting:y=!1}=e,I=[],O,T,P,M,F=[];const j=()=>{t(10,I=[])},B=({tableId:we,rowId:$e,fieldName:ge})=>{s(`/builder/app/${l.application}/data/table/${we}/relationship/${$e}/${ge}`)},q=async()=>{try{await xe.deleteRows({tableId:c,rows:I}),t(1,f=f.filter(we=>!I.includes(we))),ye.success(`Successfully deleted ${I.length} rows`),t(10,I=[])}catch{ye.error("Error deleting rows")}},G=we=>{t(12,T=we),we&&P.show()},Y=we=>{t(11,O=u==null?void 0:u[we]),O&&M.show()};function U(we){dt.call(this,r,we)}function H(we){I=we,t(10,I)}const W=we=>Y(we.detail),Q=we=>G(we.detail),se=we=>B(we.detail);function K(we){dt.call(this,r,we)}function ne(we){dt.call(this,r,we)}function ae(we){Z[we?"unshift":"push"](()=>{P=we,t(13,P)})}function _e(we){dt.call(this,r,we)}function Me(we){Z[we?"unshift":"push"](()=>{M=we,t(14,M)})}return r.$$set=we=>{"schema"in we&&t(0,u=we.schema),"data"in we&&t(1,f=we.data),"tableId"in we&&t(2,c=we.tableId),"title"in we&&t(3,p=we.title),"allowEditing"in we&&t(4,d=we.allowEditing),"loading"in we&&t(5,g=we.loading),"hideAutocolumns"in we&&t(6,h=we.hideAutocolumns),"rowCount"in we&&t(7,v=we.rowCount),"type"in we&&t(21,C=we.type),"disableSorting"in we&&t(8,y=we.disableSorting),"$$scope"in we&&t(33,a=we.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&2097152,r.$$.dirty[0]&4&&t(9,n=c===Cl.USERS),r.$$.dirty[0]&2&&f&&j(),r.$$.dirty[0]&512&&t(16,i=n?kq:$1),r.$$.dirty[0]&513&&n&&(t(15,F=[{column:"roleId",component:rF}]),P3.forEach(we=>{u[we]&&t(0,u[we].editable=!1,u)}),u.email&&t(0,u.email.displayName="Email",u),u.roleId&&t(0,u.roleId.displayName="Role",u),u.firstName&&t(0,u.firstName.displayName="First Name",u),u.lastName&&t(0,u.lastName.displayName="Last Name",u),u.status&&t(0,u.status.displayName="Status",u)),r.$$.dirty[0]&1&&Kj.forEach(we=>{Object.values(u||{}).forEach($e=>{$e.type===we&&($e.sortable=!1)})})},[u,f,c,p,d,g,h,v,y,n,I,O,T,P,M,F,i,B,q,G,Y,C,o,U,H,W,Q,se,K,ne,ae,_e,Me,a]}class Kf extends ie{constructor(e){super();le(this,e,uF,aF,re,{schema:0,data:1,tableId:2,title:3,allowEditing:4,loading:5,hideAutocolumns:6,rowCount:7,type:21,disableSorting:8},null,[-1,-1])}}function fF(r){let e,t,n;return t=new Kf({props:{schema:r[0].schema,data:r[1],loading:cF,type:pF,rowCount:5}}),{c(){e=R(),S(t.$$.fragment)},m(i,l){$(i,e,l),A(t,i,l),n=!0},p(i,[l]){const s={};l&1&&(s.schema=i[0].schema),l&2&&(s.data=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,i)}}}let cF=!1,pF="external";function dF(r,e,t){let{query:n={}}=e,{data:i=[]}=e;return r.$$set=l=>{"query"in l&&t(0,n=l.query),"data"in l&&t(1,i=l.data)},[n,i]}class mF extends ie{constructor(e){super();le(this,e,dF,fF,re,{query:0,data:1})}}function gF(r){let e,t,n;function i(s){r[5](s)}let l={bindings:r[3],value:r[1],allowJS:r[2]};return r[0]!==void 0&&(l.valid=r[0]),e=new Hv({props:l}),Z.push(()=>ce(e,"valid",i)),e.$on("change",r[6]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};o&8&&(a.bindings=s[3]),o&2&&(a.value=s[1]),o&4&&(a.allowJS=s[2]),!t&&o&1&&(t=!0,a.valid=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 _F(r,e,t){let n,{bindings:i=[]}=e,{valid:l}=e,{value:s=""}=e,{allowJS:o=!1}=e;const a=c=>(c==null?void 0:c.length)?c==null?void 0:c.map(p=>lt(Se({},p),{category:"Bindable Values",type:null})):c;function u(c){l=c,t(0,l)}function f(c){dt.call(this,r,c)}return r.$$set=c=>{"bindings"in c&&t(4,i=c.bindings),"valid"in c&&t(0,l=c.valid),"value"in c&&t(1,s=c.value),"allowJS"in c&&t(2,o=c.allowJS)},r.$$.update=()=>{r.$$.dirty&16&&t(3,n=a(i))},[l,s,o,n,i,u,f]}class w1 extends ie{constructor(e){super();le(this,e,_F,gF,re,{bindings:4,valid:0,value:1,allowJS:2})}}function o4(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-14cium")},m(s,o){$(s,e,o),A(t,e,null),n=!0,i||(l=Pe(e,"click",function(){ct(r[9].show)&&r[9].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 hF(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 $F(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function bF(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",disabled:!r[10],$$slots:{default:[$F]},$$scope:{ctx:r}}}),e.$on("click",r[13]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1024&&(l.disabled=!n[10]),i&2097152&&(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 vF(r){let e,t,n,i;function l(a){r[17](a)}var s=r[0];function o(a){let u={slot:"body",value:a[8],bindings:a[1],allowJS:a[7]};return a[10]!==void 0&&(u.valid=a[10]),{props:u}}return s&&(e=new s(o(r)),Z.push(()=>ce(e,"valid",l)),e.$on("change",r[18])),{c(){e&&S(e.$$.fragment),n=Ee()},m(a,u){e&&A(e,a,u),$(a,n,u),i=!0},p(a,u){const f={};if(u&256&&(f.value=a[8]),u&2&&(f.bindings=a[1]),u&128&&(f.allowJS=a[7]),!t&&u&1024&&(t=!0,f.valid=a[10],pe(()=>t=!1)),s!==(s=a[0])){if(e){ee();const c=e;_(c.$$.fragment,1,0,()=>{E(c,1)}),te()}s?(e=new s(o(a)),Z.push(()=>ce(e,"valid",l)),e.$on("change",a[18]),S(e.$$.fragment),m(e.$$.fragment,1),A(e,n.parentNode,n)):e=null}else s&&e.$set(f)},i(a){i||(e&&m(e.$$.fragment,a),i=!0)},o(a){e&&_(e.$$.fragment,a),i=!1},d(a){a&&b(n),e&&E(e,a)}}}function wF(r){let e,t,n,i,l,s;t=new tt({props:{label:r[4],disabled:r[5],readonly:r[12],value:r[12]?"(JavaScript function)":r[8],placeholder:r[3]}}),t.$on("change",r[16]);let o=!r[5]&&o4(r),a={fillWidth:r[6],title:r[2],$$slots:{body:[vF],buttons:[bF],description:[hF]},$$scope:{ctx:r}};return l=new Kr({props:a}),r[19](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),w(e,"class","control svelte-14cium")},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&4096&&(c.readonly=u[12]),f&4352&&(c.value=u[12]?"(JavaScript function)":u[8]),f&8&&(c.placeholder=u[3]),t.$set(c),u[5]?o&&(ee(),_(o,1,1,()=>{o=null}),te()):o?(o.p(u,f),f&32&&m(o,1)):(o=o4(u),o.c(),m(o,1),o.m(e,null));const p={};f&64&&(p.fillWidth=u[6]),f&4&&(p.title=u[2]),f&2100611&&(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[19](null),E(l,u)}}}function yF(r,e,t){let n,i,l,{panel:s=w1}=e,{value:o=""}=e,{bindings:a=[]}=e,{title:u="Bindings"}=e,{placeholder:f}=e,{label:c}=e,{disabled:p=!1}=e,{fillWidth:d}=e,{allowJS:g=!0}=e;const h=ht();let v,C=!0;const y=()=>{I(i),v.hide()},I=F=>{h("change",As(a,F))},O=F=>I(F.detail);function T(F){C=F,t(10,C)}const P=F=>t(11,i=F.detail);function M(F){Z[F?"unshift":"push"](()=>{v=F,t(9,v)})}return r.$$set=F=>{"panel"in F&&t(0,s=F.panel),"value"in F&&t(15,o=F.value),"bindings"in F&&t(1,a=F.bindings),"title"in F&&t(2,u=F.title),"placeholder"in F&&t(3,f=F.placeholder),"label"in F&&t(4,c=F.label),"disabled"in F&&t(5,p=F.disabled),"fillWidth"in F&&t(6,d=F.fillWidth),"allowJS"in F&&t(7,g=F.allowJS)},r.$$.update=()=>{r.$$.dirty&32770&&t(8,n=bo(a,o)),r.$$.dirty&256&&t(11,i=n),r.$$.dirty&32768&&t(12,l=Mf(o))},[s,a,u,f,c,p,d,g,n,v,C,i,l,y,I,o,O,T,P,M]}class jn extends ie{constructor(e){super();le(this,e,yF,wF,re,{panel:0,value:15,bindings:1,title:2,placeholder:3,label:4,disabled:5,fillWidth:6,allowJS:7})}}function a4(r,e,t){const n=r.slice();return n[11]=e[t],n[12]=e,n[13]=t,n}function kF(r){let e;return{c(){e=V("Bindings")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function u4(r){let e,t;return e=new ut({props:{secondary:!0,$$slots:{default:[CF]},$$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&16384&&(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 CF(r){let e;return{c(){e=V("Add Binding")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function SF(r){let e;return{c(){e=V(`Enter a value for each binding. The default values will be used for any
393
+ name to confirm.`),l=R(),S(s.$$.fragment)},m(c,p){$(c,e,p),N(e,t),N(e,n),N(e,i),$(c,l,p),A(s,c,p),a=!0},p(c,p){const d={};!o&&p[0]&64&&(o=!0,d.value=c[6],pe(()=>o=!1)),s.$set(d)},i(c){a||(m(s.$$.fragment,c),a=!0)},o(c){_(s.$$.fragment,c),a=!1},d(c){c&&b(e),c&&b(l),E(s,c)}}}function VU(r){let e,t,n,i,l,s;e=new Bt({props:{title:r[20]?"Edit Column":"Create Column",confirmText:"Save Column",onConfirm:r[23],onCancel:r[24],disabled:r[16],$$slots:{footer:[qU],default:[BU]},$$scope:{ctx:r}}});let o={$$slots:{default:[UU]},$$scope:{ctx:r}};n=new At({props:o}),r[54](n);let a={okText:"Delete Column",onOk:r[25],onCancel:r[33],title:"Confirm Deletion",disabled:r[6]!==r[20],$$slots:{default:[FU]},$$scope:{ctx:r}};return l=new _r({props:a}),r[56](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[0]&65536&&(c.disabled=u[16]),f[0]&65311|f[2]&64&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f[0]&1|f[2]&64&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f[0]&64&&(d.disabled=u[6]!==u[20]),f[0]&64|f[2]&64&&(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[54](null),E(n,u),u&&b(i),r[56](null),E(l,u)}}}const La="auto",HU=r=>r.name,WU=r=>r.type,GU=r=>r.name,YU=r=>r._id,JU=r=>r.name,QU=r=>r.value,XU=r=>r.label,KU=r=>r.value,ZU=r=>r[1].name,xU=r=>r[0];function eF(r,e,t){let n,i,l,s,o,a,u,f,c,p,d,g;fe(r,Ot,Be=>t(35,g=Be));const h=zt.FORMULA.type,v=zt.LINK.type,C=zt.STRING.type,y=zt.NUMBER.type,I=zt.JSON.type,O=zt.DATETIME.type,T=ht(),P=["type","_id","_rev","tableId"],{hide:M}=Hs(Cp.Modal);let F=vn.cloneDeep(zt),{field:j={type:"string",constraints:F.STRING.constraints,fieldName:g.selected.name}}=e,B=j.name;const q=B!=null;let G=g.selected.primaryDisplay==null||g.selected.primaryDisplay===j.name,Y=g.selected,U=[...g.selected.indexes||[]],H,W,Q,se;async function K(){j.type===La&&t(0,j=yv(g.draft.name,j.name,j.subtype)),j.type!==v&&delete j.fieldName;try{await Ot.saveField({originalName:B,field:j,primaryDisplay:G,indexes:U}),T("updatecolumns")}catch{ye.error("Error saving column")}}function ne(){t(0,j.name=B,j)}function ae(){try{t(0,j.name=Q,j),j.name===g.selected.primaryDisplay?ye.error("You cannot delete the display column"):(Ot.deleteField(j),ye.success(`Column ${j.name} deleted.`),H.hide(),M(),W=!1,T("updatecolumns"))}catch{ye.error("Error deleting column")}}function _e(Be){var on;delete j.autocolumn,delete j.subtype,delete j.tableId,delete j.relationshipType,delete j.formulaType;const Dt=F[(on=Be.detail)==null?void 0:on.toUpperCase()];(Dt==null?void 0:Dt.constraints)&&t(0,j.constraints=Dt.constraints,j),j.type===v&&t(0,j.relationshipType=Lr.MANY_TO_MANY,j),j.type===h&&t(0,j.formulaType="dynamic",j)}function Me(Be){const Dt=Be.detail;t(0,j.constraints.presence=Dt?{allowEmpty:!1}:!1,j),t(10,n=Dt)}function we(Be){Be.detail&&t(0,j.constraints.presence={allowEmpty:!1},j)}function $e(Be){t(4,U=Be.detail?[j.name]:[])}function ge(Be){Be.detail?t(4,U[1]=j.name,U):t(4,U=U.slice(0,1))}function Ne(){se.show()}function Ue(){H.show(),W=!0}function ue(){H.hide(),t(6,Q=""),W=!1}function Ce(Be){if(!Be||!Be.tableId)return null;const Dt=p==null?void 0:p.find(Ar=>Ar._id===Be.tableId);if(!Dt)return null;const on=jl.exports.truncate(Y.name,{length:14}),Cn=jl.exports.truncate(Dt.name,{length:14});return[{name:`Many ${on} rows \u2192 many ${Cn} rows`,alt:`Many ${Y.name} rows \u2192 many ${Dt.name} rows`,value:Lr.MANY_TO_MANY},{name:`One ${Cn} row \u2192 many ${on} rows`,alt:`One ${Dt.name} rows \u2192 many ${Y.name} rows`,value:Lr.ONE_TO_MANY},{name:`One ${on} row \u2192 many ${Cn} rows`,alt:`One ${Y.name} rows \u2192 many ${Dt.name} rows`,value:Lr.MANY_TO_ONE}]}function ke(){return B&&k3.indexOf(j.type)!==-1?y3:B&&S3.indexOf(j.type)!==-1?C3:B&&E3.indexOf(j.type)!==-1?A3:c?[zt.STRING,zt.LONGFORM,zt.OPTIONS,zt.DATETIME,zt.NUMBER,zt.BOOLEAN,zt.ARRAY,zt.FORMULA,zt.LINK]:[...Object.values(F),{name:"Auto Column",type:La}]}function ze(Be){Be&&!Be.constraints&&(Be.constraints={}),Be.type===C&&!Be.constraints.length&&(Be.constraints.length={}),Be.type===y&&!Be.constraints.numericality&&(Be.constraints.numericality={}),Be.type===O&&!Be.constraints.datetime&&(Be.constraints.datetime={})}function be(Be){function Dt(Cn,Ar,yi=null){return Object.keys((Cn==null?void 0:Cn.schema)||{}).some(Ts=>Ts!==yi&&Ts===Ar)}const on={};if(P.some(Cn=>Be.name===Cn)?on.name=`${P.join(", ")} are not allowed as column names`:Dt(g.draft,Be.name,B)&&(on.name="Column name already in use."),Be.fieldName&&Be.tableId){const Cn=g.list.find(Ar=>Ar._id===Be.tableId);Dt(Cn,Be.fieldName)&&(on.relatedName=`Column name already in use in table ${Cn.name}`)}return on}Ft(()=>{G&&t(0,j.constraints.presence={allowEmpty:!1},j)});function he(Be){r.$$.not_equal(j.name,Be)&&(j.name=Be,t(0,j))}function Xe(Be){r.$$.not_equal(j.type,Be)&&(j.type=Be,t(0,j))}function Mt(Be){G=Be,t(1,G)}function qe(Be){r.$$.not_equal(j.constraints.length.maximum,Be)&&(j.constraints.length.maximum=Be,t(0,j))}function pt(Be){r.$$.not_equal(j.constraints.inclusion,Be)&&(j.constraints.inclusion=Be,t(0,j))}function It(Be){r.$$.not_equal(j.useRichText,Be)&&(j.useRichText=Be,t(0,j))}function Ie(Be){r.$$.not_equal(j.constraints.inclusion,Be)&&(j.constraints.inclusion=Be,t(0,j))}function Ge(Be){r.$$.not_equal(j.constraints.datetime.earliest,Be)&&(j.constraints.datetime.earliest=Be,t(0,j))}function Fe(Be){r.$$.not_equal(j.constraints.datetime.latest,Be)&&(j.constraints.datetime.latest=Be,t(0,j))}function at(Be){r.$$.not_equal(j.constraints.numericality.greaterThanOrEqualTo,Be)&&(j.constraints.numericality.greaterThanOrEqualTo=Be,t(0,j))}function Le(Be){r.$$.not_equal(j.constraints.numericality.lessThanOrEqualTo,Be)&&(j.constraints.numericality.lessThanOrEqualTo=Be,t(0,j))}function Lt(Be){r.$$.not_equal(j.tableId,Be)&&(j.tableId=Be,t(0,j))}function sn(Be){r.$$.not_equal(j.relationshipType,Be)&&(j.relationshipType=Be,t(0,j))}function dn(Be){r.$$.not_equal(j.fieldName,Be)&&(j.fieldName=Be,t(0,j))}function cn(Be){r.$$.not_equal(j.formulaType,Be)&&(j.formulaType=Be,t(0,j))}const hr=Be=>t(0,j.formula=Be.detail,j),In=Be=>t(0,j.subtype=Be.detail,j),ar=({detail:Be})=>{t(0,j.schema=Be.schema,j),t(0,j.json=Be.json,j)};function lr(Be){Z[Be?"unshift":"push"](()=>{se=Be,t(7,se)})}function rl(Be){Q=Be,t(6,Q)}function Ve(Be){Z[Be?"unshift":"push"](()=>{H=Be,t(5,H)})}return r.$$set=Be=>{"field"in Be&&t(0,j=Be.field)},r.$$.update=()=>{var Be,Dt;r.$$.dirty[0]&1&&ze(j),r.$$.dirty[0]&3&&t(10,n=!!((Be=j==null?void 0:j.constraints)==null?void 0:Be.presence)||G),r.$$.dirty[0]&1|r.$$.dirty[1]&16&&t(2,i=((Dt=g.selected)==null?void 0:Dt._id)===Cl.USERS&&P3.includes(j.name)),r.$$.dirty[0]&1&&t(3,s=be(j)),r.$$.dirty[0]&9&&t(16,l=!j.name||j.type===v&&!j.tableId||Object.keys(s).length!==0),r.$$.dirty[0]&1&&t(15,o=j.type!==v&&j.type!==I&&j.subtype!==Ri.CREATED_BY&&j.subtype!==Ri.UPDATED_BY&&j.type!==h),r.$$.dirty[0]&1&&t(14,a=j.type!==v&&j.type!==La&&j.type!==I),r.$$.dirty[0]&5&&t(13,u=j.type!==v&&!i&&j.type!==La),r.$$.dirty[0]&1&&t(12,f=Ce(j)),r.$$.dirty[1]&16&&t(9,p=g.list.filter(on=>on._id!==g.draft._id&&on.type===Y.type&&Y.sourceId===on.sourceId)),r.$$.dirty[0]&1&&t(11,d=!B||B&&O3.indexOf(j.type)!==-1)},t(8,c=Y.type==="external"),[j,G,i,s,U,H,Q,se,c,p,n,d,f,u,a,o,l,h,v,I,B,q,Y,K,ne,ae,_e,Me,we,$e,ge,Ne,Ue,ue,ke,g,he,Xe,Mt,qe,pt,It,Ie,Ge,Fe,at,Le,Lt,sn,dn,cn,hr,In,ar,lr,rl,Ve]}class n4 extends ie{constructor(e){super();le(this,e,eF,VU,re,{field:0},null,[-1,-1,-1])}}function tF(r){let e;return{c(){e=V(r[0])},m(t,n){$(t,e,n)},p(t,[n]){n&1&&Te(e,t[0])},i:Oe,o:Oe,d(t){t&&b(e)}}}function nF(r,e,t){let n,i,l;fe(r,Zi,o=>t(3,l=o));let{value:s}=e;return r.$$set=o=>{"value"in o&&t(1,s=o.value)},r.$$.update=()=>{var o;r.$$.dirty&10&&t(2,n=l.find(a=>a._id===s)),r.$$.dirty&4&&t(0,i=(o=n==null?void 0:n.name)!=null?o:"Unknown role")},[i,s,n,l]}class rF extends ie{constructor(e){super();le(this,e,nF,tF,re,{value:1})}}function r4(r){let e,t,n,i;t=new kt({props:{size:"S",$$slots:{default:[iF]},$$scope:{ctx:r}}});let l=r[5]&&i4();return{c(){e=D("div"),S(t.$$.fragment),n=R(),l&&l.c(),w(e,"class","table-title svelte-8mw47k")},m(s,o){$(s,e,o),A(t,e,null),N(e,n),l&&l.m(e,null),i=!0},p(s,o){const a={};o[0]&8|o[1]&4&&(a.$$scope={dirty:o,ctx:s}),t.$set(a),s[5]?l?o[0]&32&&m(l,1):(l=i4(),l.c(),m(l,1),l.m(e,null)):l&&(ee(),_(l,1,1,()=>{l=null}),te())},i(s){i||(m(t.$$.fragment,s),m(l),i=!0)},o(s){_(t.$$.fragment,s),_(l),i=!1},d(s){s&&b(e),E(t),l&&l.d()}}}function iF(r){let e;return{c(){e=V(r[3])},m(t,n){$(t,e,n)},p(t,n){n[0]&8&&Te(e,t[3])},d(t){t&&b(e)}}}function i4(r){let e,t,n,i;return t=new fv({props:{size:"10"}}),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","svelte-8mw47k")},m(l,s){$(l,e,s),A(t,e,null),i=!0},i(l){i||(m(t.$$.fragment,l),l&&fi(()=>{n||(n=Dr(e,qo,{},!0)),n.run(1)}),i=!0)},o(l){_(t.$$.fragment,l),l&&(n||(n=Dr(e,qo,{},!1)),n.run(0)),i=!1},d(l){l&&b(e),E(t),l&&n&&n.end()}}}function l4(r){let e,t;return e=new zz({props:{selectedRows:r[10],deleteRows:r[18]}}),e.$on("updaterows",r[23]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&1024&&(l.selectedRows=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 s4(r){let e,t,n,i;function l(o){r[24](o)}let s={data:r[1],schema:r[0],loading:r[5],customRenderers:r[15],rowCount:r[7],disableSorting:r[8],allowSelectRows:r[4]&&!r[9],allowEditRows:r[4],allowEditColumns:r[4],showAutoColumns:!r[6]};return r[10]!==void 0&&(s.selectedRows=r[10]),t=new Ni({props:s}),Z.push(()=>ce(t,"selectedRows",l)),t.$on("editcolumn",r[25]),t.$on("editrow",r[26]),t.$on("clickrelationship",r[27]),t.$on("sort",r[28]),{c(){e=D("div"),S(t.$$.fragment),w(e,"class","table-wrapper svelte-8mw47k")},m(o,a){$(o,e,a),A(t,e,null),i=!0},p(o,a){const u={};a[0]&2&&(u.data=o[1]),a[0]&1&&(u.schema=o[0]),a[0]&32&&(u.loading=o[5]),a[0]&32768&&(u.customRenderers=o[15]),a[0]&128&&(u.rowCount=o[7]),a[0]&256&&(u.disableSorting=o[8]),a[0]&528&&(u.allowSelectRows=o[4]&&!o[9]),a[0]&16&&(u.allowEditRows=o[4]),a[0]&16&&(u.allowEditColumns=o[4]),a[0]&64&&(u.showAutoColumns=!o[6]),!n&&a[0]&1024&&(n=!0,u.selectedRows=o[10],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 lF(r){let e,t,n,i,l,s=r[2],o,a,u=r[3]&&r4(r);const f=r[22].default,c=bt(f,r,r[33],null);let p=!r[9]&&r[10].length>0&&l4(r),d=s4(r);return{c(){e=D("div"),u&&u.c(),t=R(),n=D("div"),c&&c.c(),i=R(),p&&p.c(),l=R(),d.c(),o=Ee(),w(n,"class","popovers svelte-8mw47k")},m(g,h){$(g,e,h),u&&u.m(e,null),N(e,t),N(e,n),c&&c.m(n,null),N(n,i),p&&p.m(n,null),$(g,l,h),d.m(g,h),$(g,o,h),a=!0},p(g,h){g[3]?u?(u.p(g,h),h[0]&8&&m(u,1)):(u=r4(g),u.c(),m(u,1),u.m(e,t)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),c&&c.p&&(!a||h[1]&4)&&vt(c,f,g,g[33],a?yt(f,g[33],h,null):wt(g[33]),null),!g[9]&&g[10].length>0?p?(p.p(g,h),h[0]&1536&&m(p,1)):(p=l4(g),p.c(),m(p,1),p.m(n,null)):p&&(ee(),_(p,1,1,()=>{p=null}),te()),h[0]&4&&re(s,s=g[2])?(ee(),_(d,1,1,Oe),te(),d=s4(g),d.c(),m(d),d.m(o.parentNode,o)):d.p(g,h)},i(g){a||(m(u),m(c,g),m(p),m(d),a=!0)},o(g){_(u),_(c,g),_(p),_(d),a=!1},d(g){g&&b(e),u&&u.d(),c&&c.d(g),p&&p.d(),g&&b(l),g&&b(o),d.d(g)}}}function sF(r){let e,t,n;var i=r[16];function l(s){return{props:{row:s[12]}}}return i&&(e=new i(l(r)),e.$on("updaterows",r[29])),{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[0]&4096&&(a.row=s[12]),i!==(i=s[16])){if(e){ee();const u=e;_(u.$$.fragment,1,0,()=>{E(u,1)}),te()}i?(e=new i(l(s)),e.$on("updaterows",s[29]),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 oF(r){let e,t;return e=new n4({props:{field:r[11],onClosed:r[14].hide}}),e.$on("updatecolumns",r[31]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&2048&&(l.field=n[11]),i[0]&16384&&(l.onClosed=n[14].hide),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 aF(r){let e,t,n,i,l,s;e=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[lF]},$$scope:{ctx:r}}});let o={$$slots:{default:[sF]},$$scope:{ctx:r}};n=new At({props:o}),r[30](n);let a={$$slots:{default:[oF]},$$scope:{ctx:r}};return l=new At({props:a}),r[32](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[0]&34811|f[1]&4&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f[0]&69632|f[1]&4&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f[0]&18432|f[1]&4&&(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[30](null),E(n,u),u&&b(i),r[32](null),E(l,u)}}}function uF(r,e,t){let n,i,l,s;fe(r,tr,we=>t(35,l=we)),fe(r,jt,we=>t(36,s=we));let{$$slots:o={},$$scope:a}=e,{schema:u={}}=e,{data:f=[]}=e,{tableId:c}=e,{title:p}=e,{allowEditing:d=!1}=e,{loading:g=!1}=e,{hideAutocolumns:h}=e,{rowCount:v}=e,{type:C}=e,{disableSorting:y=!1}=e,I=[],O,T,P,M,F=[];const j=()=>{t(10,I=[])},B=({tableId:we,rowId:$e,fieldName:ge})=>{s(`/builder/app/${l.application}/data/table/${we}/relationship/${$e}/${ge}`)},q=async()=>{try{await xe.deleteRows({tableId:c,rows:I}),t(1,f=f.filter(we=>!I.includes(we))),ye.success(`Successfully deleted ${I.length} rows`),t(10,I=[])}catch{ye.error("Error deleting rows")}},G=we=>{t(12,T=we),we&&P.show()},Y=we=>{t(11,O=u==null?void 0:u[we]),O&&M.show()};function U(we){dt.call(this,r,we)}function H(we){I=we,t(10,I)}const W=we=>Y(we.detail),Q=we=>G(we.detail),se=we=>B(we.detail);function K(we){dt.call(this,r,we)}function ne(we){dt.call(this,r,we)}function ae(we){Z[we?"unshift":"push"](()=>{P=we,t(13,P)})}function _e(we){dt.call(this,r,we)}function Me(we){Z[we?"unshift":"push"](()=>{M=we,t(14,M)})}return r.$$set=we=>{"schema"in we&&t(0,u=we.schema),"data"in we&&t(1,f=we.data),"tableId"in we&&t(2,c=we.tableId),"title"in we&&t(3,p=we.title),"allowEditing"in we&&t(4,d=we.allowEditing),"loading"in we&&t(5,g=we.loading),"hideAutocolumns"in we&&t(6,h=we.hideAutocolumns),"rowCount"in we&&t(7,v=we.rowCount),"type"in we&&t(21,C=we.type),"disableSorting"in we&&t(8,y=we.disableSorting),"$$scope"in we&&t(33,a=we.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&2097152,r.$$.dirty[0]&4&&t(9,n=c===Cl.USERS),r.$$.dirty[0]&2&&f&&j(),r.$$.dirty[0]&512&&t(16,i=n?kq:$1),r.$$.dirty[0]&513&&n&&(t(15,F=[{column:"roleId",component:rF}]),P3.forEach(we=>{u[we]&&t(0,u[we].editable=!1,u)}),u.email&&t(0,u.email.displayName="Email",u),u.roleId&&t(0,u.roleId.displayName="Role",u),u.firstName&&t(0,u.firstName.displayName="First Name",u),u.lastName&&t(0,u.lastName.displayName="Last Name",u),u.status&&t(0,u.status.displayName="Status",u)),r.$$.dirty[0]&1&&Kj.forEach(we=>{Object.values(u||{}).forEach($e=>{$e.type===we&&($e.sortable=!1)})})},[u,f,c,p,d,g,h,v,y,n,I,O,T,P,M,F,i,B,q,G,Y,C,o,U,H,W,Q,se,K,ne,ae,_e,Me,a]}class Kf extends ie{constructor(e){super();le(this,e,uF,aF,re,{schema:0,data:1,tableId:2,title:3,allowEditing:4,loading:5,hideAutocolumns:6,rowCount:7,type:21,disableSorting:8},null,[-1,-1])}}function fF(r){let e,t,n;return t=new Kf({props:{schema:r[0].schema,data:r[1],loading:cF,type:pF,rowCount:5}}),{c(){e=R(),S(t.$$.fragment)},m(i,l){$(i,e,l),A(t,i,l),n=!0},p(i,[l]){const s={};l&1&&(s.schema=i[0].schema),l&2&&(s.data=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,i)}}}let cF=!1,pF="external";function dF(r,e,t){let{query:n={}}=e,{data:i=[]}=e;return r.$$set=l=>{"query"in l&&t(0,n=l.query),"data"in l&&t(1,i=l.data)},[n,i]}class mF extends ie{constructor(e){super();le(this,e,dF,fF,re,{query:0,data:1})}}function gF(r){let e,t,n;function i(s){r[5](s)}let l={bindings:r[3],value:r[1],allowJS:r[2]};return r[0]!==void 0&&(l.valid=r[0]),e=new Hv({props:l}),Z.push(()=>ce(e,"valid",i)),e.$on("change",r[6]),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,[o]){const a={};o&8&&(a.bindings=s[3]),o&2&&(a.value=s[1]),o&4&&(a.allowJS=s[2]),!t&&o&1&&(t=!0,a.valid=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 _F(r,e,t){let n,{bindings:i=[]}=e,{valid:l}=e,{value:s=""}=e,{allowJS:o=!1}=e;const a=c=>(c==null?void 0:c.length)?c==null?void 0:c.map(p=>lt(Se({},p),{category:"Bindable Values",type:null})):c;function u(c){l=c,t(0,l)}function f(c){dt.call(this,r,c)}return r.$$set=c=>{"bindings"in c&&t(4,i=c.bindings),"valid"in c&&t(0,l=c.valid),"value"in c&&t(1,s=c.value),"allowJS"in c&&t(2,o=c.allowJS)},r.$$.update=()=>{r.$$.dirty&16&&t(3,n=a(i))},[l,s,o,n,i,u,f]}class w1 extends ie{constructor(e){super();le(this,e,_F,gF,re,{bindings:4,valid:0,value:1,allowJS:2})}}function o4(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-570cq4")},m(s,o){$(s,e,o),A(t,e,null),n=!0,i||(l=Pe(e,"click",function(){ct(r[9].show)&&r[9].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 hF(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 $F(r){let e;return{c(){e=V("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function bF(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",disabled:!r[10],$$slots:{default:[$F]},$$scope:{ctx:r}}}),e.$on("click",r[13]),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1024&&(l.disabled=!n[10]),i&2097152&&(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 vF(r){let e,t,n,i;function l(a){r[17](a)}var s=r[0];function o(a){let u={slot:"body",value:a[8],bindings:a[1],allowJS:a[7]};return a[10]!==void 0&&(u.valid=a[10]),{props:u}}return s&&(e=new s(o(r)),Z.push(()=>ce(e,"valid",l)),e.$on("change",r[18])),{c(){e&&S(e.$$.fragment),n=Ee()},m(a,u){e&&A(e,a,u),$(a,n,u),i=!0},p(a,u){const f={};if(u&256&&(f.value=a[8]),u&2&&(f.bindings=a[1]),u&128&&(f.allowJS=a[7]),!t&&u&1024&&(t=!0,f.valid=a[10],pe(()=>t=!1)),s!==(s=a[0])){if(e){ee();const c=e;_(c.$$.fragment,1,0,()=>{E(c,1)}),te()}s?(e=new s(o(a)),Z.push(()=>ce(e,"valid",l)),e.$on("change",a[18]),S(e.$$.fragment),m(e.$$.fragment,1),A(e,n.parentNode,n)):e=null}else s&&e.$set(f)},i(a){i||(e&&m(e.$$.fragment,a),i=!0)},o(a){e&&_(e.$$.fragment,a),i=!1},d(a){a&&b(n),e&&E(e,a)}}}function wF(r){let e,t,n,i,l,s;t=new tt({props:{label:r[4],disabled:r[5],readonly:r[12],value:r[12]?"(JavaScript function)":r[8],placeholder:r[3]}}),t.$on("change",r[16]);let o=!r[5]&&o4(r),a={fillWidth:r[6],title:r[2],$$slots:{body:[vF],buttons:[bF],description:[hF]},$$scope:{ctx:r}};return l=new Kr({props:a}),r[19](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),w(e,"class","control svelte-570cq4"),oe(e,"disabled",r[5])},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&4096&&(c.readonly=u[12]),f&4352&&(c.value=u[12]?"(JavaScript function)":u[8]),f&8&&(c.placeholder=u[3]),t.$set(c),u[5]?o&&(ee(),_(o,1,1,()=>{o=null}),te()):o?(o.p(u,f),f&32&&m(o,1)):(o=o4(u),o.c(),m(o,1),o.m(e,null)),f&32&&oe(e,"disabled",u[5]);const p={};f&64&&(p.fillWidth=u[6]),f&4&&(p.title=u[2]),f&2100611&&(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[19](null),E(l,u)}}}function yF(r,e,t){let n,i,l,{panel:s=w1}=e,{value:o=""}=e,{bindings:a=[]}=e,{title:u="Bindings"}=e,{placeholder:f}=e,{label:c}=e,{disabled:p=!1}=e,{fillWidth:d}=e,{allowJS:g=!0}=e;const h=ht();let v,C=!0;const y=()=>{I(i),v.hide()},I=F=>{h("change",As(a,F))},O=F=>I(F.detail);function T(F){C=F,t(10,C)}const P=F=>t(11,i=F.detail);function M(F){Z[F?"unshift":"push"](()=>{v=F,t(9,v)})}return r.$$set=F=>{"panel"in F&&t(0,s=F.panel),"value"in F&&t(15,o=F.value),"bindings"in F&&t(1,a=F.bindings),"title"in F&&t(2,u=F.title),"placeholder"in F&&t(3,f=F.placeholder),"label"in F&&t(4,c=F.label),"disabled"in F&&t(5,p=F.disabled),"fillWidth"in F&&t(6,d=F.fillWidth),"allowJS"in F&&t(7,g=F.allowJS)},r.$$.update=()=>{r.$$.dirty&32770&&t(8,n=bo(a,o)),r.$$.dirty&256&&t(11,i=n),r.$$.dirty&32768&&t(12,l=Mf(o))},[s,a,u,f,c,p,d,g,n,v,C,i,l,y,I,o,O,T,P,M]}class jn extends ie{constructor(e){super();le(this,e,yF,wF,re,{panel:0,value:15,bindings:1,title:2,placeholder:3,label:4,disabled:5,fillWidth:6,allowJS:7})}}function a4(r,e,t){const n=r.slice();return n[11]=e[t],n[12]=e,n[13]=t,n}function kF(r){let e;return{c(){e=V("Bindings")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function u4(r){let e,t;return e=new ut({props:{secondary:!0,$$slots:{default:[CF]},$$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&16384&&(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 CF(r){let e;return{c(){e=V("Add Binding")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function SF(r){let e;return{c(){e=V(`Enter a value for each binding. The default values will be used for any
394
394
  values left blank.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function AF(r){let e;return{c(){e=V(`Bindings come in two parts: the binding name, and a default/fallback
395
395
  value. These bindings can be used as Handlebars expressions throughout the
396
396
  query.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function EF(r){let e;function t(l,s){return l[2]?SF:AF}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 OF(r){let e,t;function n(){return r[10](r[13])}return e=new gt({props:{hoverable:!0,name:"Close"}}),e.$on("click",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function TF(r){var i;let e,t;function n(...l){return r[9](r[11],...l)}return e=new jn({props:{title:`Query binding "${r[11].name}"`,placeholder:"Value",thin:!0,value:bo(r[3],(i=r[1])==null?void 0:i[r[11].name]),bindings:r[3]}}),e.$on("change",n),{c(){S(e.$$.fragment)},m(l,s){A(e,l,s),t=!0},p(l,s){var a;r=l;const o={};s&1&&(o.title=`Query binding "${r[11].name}"`),s&11&&(o.value=bo(r[3],(a=r[1])==null?void 0:a[r[11].name])),s&8&&(o.bindings=r[3]),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 f4(r){let e,t,n,i,l,s,o,a,u,f;function c(y){r[7](y,r[11])}let p={placeholder:"Binding Name",thin:!0,disabled:r[2]};r[11].name!==void 0&&(p.value=r[11].name),e=new tt({props:p}),Z.push(()=>ce(e,"value",c));function d(y){r[8](y,r[11])}let g={placeholder:"Default",thin:!0,disabled:r[2]};r[11].default!==void 0&&(g.value=r[11].default),i=new tt({props:g}),Z.push(()=>ce(i,"value",d));const h=[TF,OF],v=[];function C(y,I){return y[2]?0:1}return o=C(r),a=v[o]=h[o](r),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment),s=R(),a.c(),u=Ee()},m(y,I){A(e,y,I),$(y,n,I),A(i,y,I),$(y,s,I),v[o].m(y,I),$(y,u,I),f=!0},p(y,I){r=y;const O={};I&4&&(O.disabled=r[2]),!t&&I&1&&(t=!0,O.value=r[11].name,pe(()=>t=!1)),e.$set(O);const T={};I&4&&(T.disabled=r[2]),!l&&I&1&&(l=!0,T.value=r[11].default,pe(()=>l=!1)),i.$set(T);let P=o;o=C(r),o===P?v[o].p(r,I):(ee(),_(v[P],1,1,()=>{v[P]=null}),te(),a=v[o],a?a.p(r,I):(a=v[o]=h[o](r),a.c()),m(a,1),a.m(u.parentNode,u))},i(y){f||(m(e.$$.fragment,y),m(i.$$.fragment,y),m(a),f=!0)},o(y){_(e.$$.fragment,y),_(i.$$.fragment,y),_(a),f=!1},d(y){E(e,y),y&&b(n),E(i,y),y&&b(s),v[o].d(y),y&&b(u)}}}function IF(r){let e,t,n,i,l,s,o,a;t=new kt({props:{size:"XS",$$slots:{default:[kF]},$$scope:{ctx:r}}});let u=!r[2]&&u4(r);l=new Ke({props:{size:"S",$$slots:{default:[EF]},$$scope:{ctx:r}}});let f=r[0],c=[];for(let d=0;d<f.length;d+=1)c[d]=f4(a4(r,f,d));const p=d=>_(c[d],1,1,()=>{c[d]=null});return{c(){e=D("div"),S(t.$$.fragment),n=R(),u&&u.c(),i=R(),S(l.$$.fragment),s=R(),o=D("div");for(let d=0;d<c.length;d+=1)c[d].c();w(e,"class","controls svelte-bpqao2"),oe(e,"height",!r[2]),w(o,"class","bindings svelte-bpqao2"),oe(o,"bindable",r[2])},m(d,g){$(d,e,g),A(t,e,null),N(e,n),u&&u.m(e,null),$(d,i,g),A(l,d,g),$(d,s,g),$(d,o,g);for(let h=0;h<c.length;h+=1)c[h].m(o,null);a=!0},p(d,g){const h={};g&16384&&(h.$$scope={dirty:g,ctx:d}),t.$set(h),d[2]?u&&(ee(),_(u,1,1,()=>{u=null}),te()):u?(u.p(d,g),g&4&&m(u,1)):(u=u4(d),u.c(),m(u,1),u.m(e,null)),g&4&&oe(e,"height",!d[2]);const v={};if(g&16388&&(v.$$scope={dirty:g,ctx:d}),l.$set(v),g&111){f=d[0];let C;for(C=0;C<f.length;C+=1){const y=a4(d,f,C);c[C]?(c[C].p(y,g),m(c[C],1)):(c[C]=f4(y),c[C].c(),m(c[C],1),c[C].m(o,null))}for(ee(),C=f.length;C<c.length;C+=1)p(C);te()}g&4&&oe(o,"bindable",d[2])},i(d){if(!a){m(t.$$.fragment,d),m(u),m(l.$$.fragment,d);for(let g=0;g<f.length;g+=1)m(c[g]);a=!0}},o(d){_(t.$$.fragment,d),_(u),_(l.$$.fragment,d),c=c.filter(Boolean);for(let g=0;g<c.length;g+=1)_(c[g]);a=!1},d(d){d&&b(e),E(t),u&&u.d(),d&&b(i),E(l,d),d&&b(s),d&&b(o),$t(c,d)}}}function LF(r){let e,t;return e=new Ye({props:{noPadding:r[2],gap:"S",$$slots:{default:[IF]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&4&&(l.noPadding=n[2]),i&16399&&(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 PF(r,e,t){let{bindable:n=!0}=e,{queryBindings:i=[]}=e,{bindings:l=[]}=e,{customParams:s={}}=e;function o(){t(0,i=[...i,{}])}function a(g){i.splice(g,1),t(0,i)}function u(g,h){t(1,s[g]=As(l,h),s)}function f(g,h){r.$$.not_equal(h.name,g)&&(h.name=g,t(0,i))}function c(g,h){r.$$.not_equal(h.default,g)&&(h.default=g,t(0,i))}const p=(g,h)=>u(g.name,h.detail),d=g=>a(g);return r.$$set=g=>{"bindable"in g&&t(2,n=g.bindable),"queryBindings"in g&&t(0,i=g.queryBindings),"bindings"in g&&t(3,l=g.bindings),"customParams"in g&&t(1,s=g.customParams)},[i,s,n,l,o,a,u,f,c,p,d]}class y1 extends ie{constructor(e){super();le(this,e,PF,LF,re,{bindable:2,queryBindings:0,bindings:3,customParams:1})}}function NF(r){let e,t;return e=new pi({props:{disabled:!0,value:r[2],height:r[0],minHeight:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&4&&(l.value=n[2]),i&1&&(l.height=n[0]),i&2&&(l.minHeight=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 RF(r,e,t){let n,{data:i}=e,{height:l}=e,{minHeight:s="120"}=e;return r.$$set=o=>{"data"in o&&t(3,i=o.data),"height"in o&&t(0,l=o.height),"minHeight"in o&&t(1,s=o.minHeight)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=JSON.stringify(i||{},null,2))},[l,s,n,i]}class c4 extends ie{constructor(e){super();le(this,e,RF,NF,re,{data:3,height:0,minHeight:1})}}function p4(r){const e={};if(r&&typeof r=="object")for(let[t,n]of Object.entries(r))e[t]=(n==null?void 0:n.type)||"string";return e}function d4(r){const e={};if(r&&typeof r=="object")for(let[t,n]of Object.entries(r))e[t]={name:t,type:n};return e}function MF(r){if(!r)return{};r.includes("?")&&(r=r.split("?")[1]);const e=r.split("&");let t={};for(let n of e){const i=n.split("=");t[i[0]]=i.slice(1).join("=")}return t}function DF(r){let e="";if(r)for(let[t,n]of Object.entries(r))!t||t===""||(e!==""&&(e+="&"),e+=`${t}=${n||""}`);return e}function jF(r){let e=[];if(r&&typeof r=="object")for(let[t,n]of Object.entries(r))e.push({name:t,default:n});return e}function BF(r){let e={};if(Array.isArray(r))for(let t of r)e[t.name]=t.default;return e}function m4(r,e){if(r.source===yn.REST)switch(e.queryVerb){case"create":return"POST";case"update":return"PUT";case"read":return"GET";case"delete":return"DEL";case"patch":return"PATCH"}}function g4(r,e){if(r.source===yn.REST)switch(e.queryVerb){case"create":return"#dcc339";case"update":return"#5197ec";case"read":return"#53a761";case"delete":return"#ea7d82";case"patch":default:return}}function _4(r,e){if(!e.name||r.source!==yn.REST)return e.name;let t=e.name;if(t.includes("//")&&(t=t.split("//")[1]),!t.includes("/"))return t;t.endsWith("/")&&(t=t.slice(0,-1));const n=t.split("/");return n[1]?`/${n.slice(1).join("/")}`:n[0]}function zF(r){if(!r)return{};const e={};return Object.entries(r).forEach(([t,n])=>{e[t]=!n}),e}var Ol={breakQueryString:MF,buildQueryString:DF,fieldsToSchema:d4,flipHeaderState:zF,keyValueToQueryParameters:jF,queryParametersToKeyValue:BF,schemaToFields:p4};function h4(r){let e,t,n,i=r[0]&&$4(r);return t=new Qe({props:{value:r[1],options:r[3],getOptionLabel:FF,getOptionValue:VF,autoWidth:!0}}),t.$on("change",r[6]),{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]?i?(i.p(l,s),s&1&&m(i,1)):(i=$4(l),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(ee(),_(i,1,1,()=>{i=null}),te());const o={};s&2&&(o.value=l[1]),s&8&&(o.options=l[3]),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 $4(r){let e,t;return e=new Ze({props:{$$slots:{default:[qF]},$$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 qF(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 UF(r){let e,t,n=r[2]&&h4(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=h4(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 FF=r=>r.name,VF=r=>r._id;function HF(r,e,t){let n;fe(r,Zi,p=>t(3,n=p));let{query:i}=e,{label:l}=e,s,o,a;async function u(p,d){try{t(1,s=p);const g=(i==null?void 0:i._id)||d;if(s&&g)for(let h of["read","write"])await mo.save({level:h,role:p,resource:g})}catch{ye.error("Error updating role")}}async function f(p){if((a==null?void 0:a._id)===(p==null?void 0:p._id)){t(2,o=!0);return}if(a=p,!p||!p._id){t(1,s=w3.BASIC),t(2,o=!0);return}try{t(1,s=(await mo.forResource(p._id)).read)}catch{t(1,s=w3.BASIC)}t(2,o=!0)}const c=p=>u(p.detail);return r.$$set=p=>{"query"in p&&t(5,i=p.query),"label"in p&&t(0,l=p.label)},r.$$.update=()=>{r.$$.dirty&32&&f(i)},[l,s,o,n,u,i,c]}class b4 extends ie{constructor(e){super();le(this,e,HF,UF,re,{query:5,label:0})}}function WF(r){var i;let e,t=((i=r[4])==null?void 0:i.friendlyName)+"",n;return{c(){e=V("Query "),n=V(t)},m(l,s){$(l,e,s),$(l,n,s)},p(l,s){var o;s&16&&t!==(t=((o=l[4])==null?void 0:o.friendlyName)+"")&&Te(n,t)},d(l){l&&b(e),l&&b(n)}}}function GF(r){let e;return{c(){e=V("Config")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function YF(r){let e;return{c(){e=V("Query Name")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function v4(r){var I;let e,t,n,i,l,s,o,a,u,f,c,p,d;t=new Ze({props:{$$slots:{default:[JF]},$$scope:{ctx:r}}});function g(O){r[20](O)}let h={options:Object.keys(r[3]),getOptionLabel:r[19]};r[0].queryVerb!==void 0&&(h.value=r[0].queryVerb),i=new Qe({props:h}),Z.push(()=>ce(i,"value",g)),i.$on("change",r[10]),a=new b4({props:{saveId:r[7],query:r[0],label:"Access Level"}});let v=((I=r[4])==null?void 0:I.extra)&&r[0].queryVerb&&w4(r);function C(O){r[21](O)}let y={bindable:!1};return r[0].parameters!==void 0&&(y.queryBindings=r[0].parameters),c=new y1({props:y}),Z.push(()=>ce(c,"queryBindings",C)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),o=D("div"),S(a.$$.fragment),u=R(),v&&v.c(),f=R(),S(c.$$.fragment),w(e,"class","config-field svelte-hcuv48"),w(o,"class","config-field svelte-hcuv48")},m(O,T){$(O,e,T),A(t,e,null),N(e,n),A(i,e,null),$(O,s,T),$(O,o,T),A(a,o,null),$(O,u,T),v&&v.m(O,T),$(O,f,T),A(c,O,T),d=!0},p(O,T){var B;const P={};T&134217728&&(P.$$scope={dirty:T,ctx:O}),t.$set(P);const M={};T&8&&(M.options=Object.keys(O[3])),T&8&&(M.getOptionLabel=O[19]),!l&&T&1&&(l=!0,M.value=O[0].queryVerb,pe(()=>l=!1)),i.$set(M);const F={};T&128&&(F.saveId=O[7]),T&1&&(F.query=O[0]),a.$set(F),((B=O[4])==null?void 0:B.extra)&&O[0].queryVerb?v?(v.p(O,T),T&17&&m(v,1)):(v=w4(O),v.c(),m(v,1),v.m(f.parentNode,f)):v&&(ee(),_(v,1,1,()=>{v=null}),te());const j={};!p&&T&1&&(p=!0,j.queryBindings=O[0].parameters,pe(()=>p=!1)),c.$set(j)},i(O){d||(m(t.$$.fragment,O),m(i.$$.fragment,O),m(a.$$.fragment,O),m(v),m(c.$$.fragment,O),d=!0)},o(O){_(t.$$.fragment,O),_(i.$$.fragment,O),_(a.$$.fragment,O),_(v),_(c.$$.fragment,O),d=!1},d(O){O&&b(e),E(t),E(i),O&&b(s),O&&b(o),E(a),O&&b(u),v&&v.d(O),O&&b(f),E(c,O)}}}function JF(r){let e;return{c(){e=V("Function")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function w4(r){let e,t;return e=new KB({props:{query:r[0],populateExtraQuery:r[11],config:r[4].extra}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.query=n[0]),i&16&&(l.config=n[4].extra),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 y4(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,U,H,W,Q;e=new un({}),i=new kt({props:{size:"S",$$slots:{default:[QF]},$$scope:{ctx:r}}}),s=new Ke({props:{size:"S",$$slots:{default:[XF]},$$scope:{ctx:r}}});function se(ae){r[22](ae)}let K={datasource:r[5],query:r[0],height:200,schema:r[3][r[0].queryVerb]};r[6]!==void 0&&(K.parameters=r[6]),a=new _1({props:K}),Z.push(()=>ce(a,"parameters",se)),c=new un({}),h=new kt({props:{size:"S",$$slots:{default:[KF]},$$scope:{ctx:r}}}),C=new gt({props:{hoverable:!0,name:"Help",size:"L"}}),C.$on("click",r[23]),I=new Ke({props:{size:"S",$$slots:{default:[ZF]},$$scope:{ctx:r}}}),T=new Xf({props:{height:200,label:"Transformer",value:r[0].transformer,resize:"vertical"}}),T.$on("change",r[24]),M=new un({}),B=new kt({props:{size:"S",$$slots:{default:[xF]},$$scope:{ctx:r}}}),G=new kh({props:{gap:"M",$$slots:{default:[nV]},$$scope:{ctx:r}}}),U=new Ke({props:{size:"S",$$slots:{default:[rV]},$$scope:{ctx:r}}});let ne=r[2]&&k4(r);return{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),f=R(),S(c.$$.fragment),p=R(),d=D("div"),g=D("div"),S(h.$$.fragment),v=R(),S(C.$$.fragment),y=R(),S(I.$$.fragment),O=R(),S(T.$$.fragment),P=R(),S(M.$$.fragment),F=R(),j=D("div"),S(B.$$.fragment),q=R(),S(G.$$.fragment),Y=R(),S(U.$$.fragment),H=R(),W=D("section"),ne&&ne.c(),w(n,"class","config svelte-hcuv48"),w(g,"class","help-heading svelte-hcuv48"),w(d,"class","config svelte-hcuv48"),w(j,"class","viewer-controls svelte-hcuv48"),w(W,"class","viewer svelte-hcuv48")},m(ae,_e){A(e,ae,_e),$(ae,t,_e),$(ae,n,_e),A(i,n,null),N(n,l),A(s,n,null),N(n,o),A(a,n,null),N(n,f),A(c,n,null),$(ae,p,_e),$(ae,d,_e),N(d,g),A(h,g,null),N(g,v),A(C,g,null),N(d,y),A(I,d,null),N(d,O),A(T,d,null),N(d,P),A(M,d,null),$(ae,F,_e),$(ae,j,_e),A(B,j,null),N(j,q),A(G,j,null),$(ae,Y,_e),A(U,ae,_e),$(ae,H,_e),$(ae,W,_e),ne&&ne.m(W,null),Q=!0},p(ae,_e){const Me={};_e&134217728&&(Me.$$scope={dirty:_e,ctx:ae}),i.$set(Me);const we={};_e&134217728&&(we.$$scope={dirty:_e,ctx:ae}),s.$set(we);const $e={};_e&32&&($e.datasource=ae[5]),_e&1&&($e.query=ae[0]),_e&9&&($e.schema=ae[3][ae[0].queryVerb]),!u&&_e&64&&(u=!0,$e.parameters=ae[6],pe(()=>u=!1)),a.$set($e);const ge={};_e&134217728&&(ge.$$scope={dirty:_e,ctx:ae}),h.$set(ge);const Ne={};_e&134217728&&(Ne.$$scope={dirty:_e,ctx:ae}),I.$set(Ne);const Ue={};_e&1&&(Ue.value=ae[0].transformer),T.$set(Ue);const ue={};_e&134217728&&(ue.$$scope={dirty:_e,ctx:ae}),B.$set(ue);const Ce={};_e&134217984&&(Ce.$$scope={dirty:_e,ctx:ae}),G.$set(Ce);const ke={};_e&134217728&&(ke.$$scope={dirty:_e,ctx:ae}),U.$set(ke),ae[2]?ne?(ne.p(ae,_e),_e&4&&m(ne,1)):(ne=k4(ae),ne.c(),m(ne,1),ne.m(W,null)):ne&&(ee(),_(ne,1,1,()=>{ne=null}),te())},i(ae){Q||(m(e.$$.fragment,ae),m(i.$$.fragment,ae),m(s.$$.fragment,ae),m(a.$$.fragment,ae),m(c.$$.fragment,ae),m(h.$$.fragment,ae),m(C.$$.fragment,ae),m(I.$$.fragment,ae),m(T.$$.fragment,ae),m(M.$$.fragment,ae),m(B.$$.fragment,ae),m(G.$$.fragment,ae),m(U.$$.fragment,ae),m(ne),Q=!0)},o(ae){_(e.$$.fragment,ae),_(i.$$.fragment,ae),_(s.$$.fragment,ae),_(a.$$.fragment,ae),_(c.$$.fragment,ae),_(h.$$.fragment,ae),_(C.$$.fragment,ae),_(I.$$.fragment,ae),_(T.$$.fragment,ae),_(M.$$.fragment,ae),_(B.$$.fragment,ae),_(G.$$.fragment,ae),_(U.$$.fragment,ae),_(ne),Q=!1},d(ae){E(e,ae),ae&&b(t),ae&&b(n),E(i),E(s),E(a),E(c),ae&&b(p),ae&&b(d),E(h),E(C),E(I),E(T),E(M),ae&&b(F),ae&&b(j),E(B),E(G),ae&&b(Y),E(U,ae),ae&&b(H),ae&&b(W),ne&&ne.d()}}}function QF(r){let e;return{c(){e=V("Fields")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function XF(r){let e;return{c(){e=V("Fill in the fields specific to this query.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function KF(r){let e;return{c(){e=V("Transformer")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ZF(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 xF(r){let e;return{c(){e=V("Results")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function eV(r){let e;return{c(){e=V("Save Query")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tV(r){let e;return{c(){e=V("Run Query")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function nV(r){let e,t,n,i;return e=new ut({props:{cta:!0,disabled:r[8],$$slots:{default:[eV]},$$scope:{ctx:r}}}),e.$on("click",r[13]),n=new ut({props:{secondary:!0,$$slots:{default:[tV]},$$scope:{ctx:r}}}),n.$on("click",r[12]),{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&256&&(o.disabled=l[8]),s&134217728&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&134217728&&(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 rV(r){let e;return{c(){e=V("Below, you can preview the results from your query and change the schema.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function k4(r){let e,t;return e=new Vr({props:{selected:"JSON",$$slots:{default:[oV]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&134217735&&(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 iV(r){let e,t;return e=new c4({props:{data:r[2][0],minHeight:"120"}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.data=n[2][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 lV(r){let e,t,n;function i(s){r[25](s)}let l={name:"field",headings:!0,options:T3};return r[1]!==void 0&&(l.object=r[1]),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&2&&(t=!0,a.object=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 sV(r){let e,t;return e=new mF({props:{query:r[0],data:r[2]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.query=n[0]),i&4&&(l.data=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 oV(r){let e,t,n,i,l,s;return e=new bn({props:{title:"JSON",$$slots:{default:[iV]},$$scope:{ctx:r}}}),n=new bn({props:{title:"Schema",$$slots:{default:[lV]},$$scope:{ctx:r}}}),l=new bn({props:{title:"Preview",$$slots:{default:[sV]},$$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&134217732&&(u.$$scope={dirty:a,ctx:o}),e.$set(u);const f={};a&134217730&&(f.$$scope={dirty:a,ctx:o}),n.$set(f);const c={};a&134217733&&(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 aV(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v;e=new kt({props:{size:"M",$$slots:{default:[WF]},$$scope:{ctx:r}}}),n=new un({}),l=new kt({props:{size:"S",$$slots:{default:[GF]},$$scope:{ctx:r}}}),u=new Ze({props:{$$slots:{default:[YF]},$$scope:{ctx:r}}});function C(T){r[18](T)}let y={};r[0].name!==void 0&&(y.value=r[0].name),c=new tt({props:y}),Z.push(()=>ce(c,"value",C));let I=r[3]&&v4(r),O=r[9]&&y4(r);return{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),o=D("div"),a=D("div"),S(u.$$.fragment),f=R(),S(c.$$.fragment),d=R(),I&&I.c(),g=R(),O&&O.c(),h=Ee(),w(a,"class","config-field svelte-hcuv48"),w(o,"class","config svelte-hcuv48")},m(T,P){A(e,T,P),$(T,t,P),A(n,T,P),$(T,i,P),A(l,T,P),$(T,s,P),$(T,o,P),N(o,a),A(u,a,null),N(a,f),A(c,a,null),N(o,d),I&&I.m(o,null),$(T,g,P),O&&O.m(T,P),$(T,h,P),v=!0},p(T,P){const M={};P&134217744&&(M.$$scope={dirty:P,ctx:T}),e.$set(M);const F={};P&134217728&&(F.$$scope={dirty:P,ctx:T}),l.$set(F);const j={};P&134217728&&(j.$$scope={dirty:P,ctx:T}),u.$set(j);const B={};!p&&P&1&&(p=!0,B.value=T[0].name,pe(()=>p=!1)),c.$set(B),T[3]?I?(I.p(T,P),P&8&&m(I,1)):(I=v4(T),I.c(),m(I,1),I.m(o,null)):I&&(ee(),_(I,1,1,()=>{I=null}),te()),T[9]?O?(O.p(T,P),P&512&&m(O,1)):(O=y4(T),O.c(),m(O,1),O.m(h.parentNode,h)):O&&(ee(),_(O,1,1,()=>{O=null}),te())},i(T){v||(m(e.$$.fragment,T),m(n.$$.fragment,T),m(l.$$.fragment,T),m(u.$$.fragment,T),m(c.$$.fragment,T),m(I),m(O),v=!0)},o(T){_(e.$$.fragment,T),_(n.$$.fragment,T),_(l.$$.fragment,T),_(u.$$.fragment,T),_(c.$$.fragment,T),_(I),_(O),v=!1},d(T){E(e,T),T&&b(t),E(n,T),T&&b(i),E(l,T),T&&b(s),T&&b(o),E(u),E(c),I&&I.d(),T&&b(g),O&&O.d(T),T&&b(h)}}}function uV(r){let e,t;return e=new Ye({props:{gap:"S",noPadding:!0,$$slots:{default:[aV]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&134218751&&(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 fV="https://docs.budibase.com/docs/transformers";function cV(r,e,t){let n,i,l,s,o,a,u,f,c,p;fe(r,jt,U=>t(26,f=U)),fe(r,Ql,U=>t(16,c=U)),fe(r,en,U=>t(17,p=U));let{query:d}=e,g=(d==null?void 0:d.schema)?p4(d.schema):[],h,v=[],C;d&&!d.transformer&&(d.transformer="return data");function y(){d.fields.extra&&t(0,d.fields.extra={},d)}function I(U){t(0,d.fields.extra=U,d)}async function O(){try{const U=await kn.preview(d);if(U.rows.length===0){ye.info("Query results empty. Please execute a query with results to create your schema.");return}t(2,v=U.rows),t(1,g=U.schema),ye.success("Query executed successfully")}catch{ye.error("Error previewing query")}}async function T(){try{const{_id:U}=await kn.save(d.datasourceId,d);t(7,C=U),ye.success("Query saved successfully."),f(`../${U}`)}catch{ye.error("Error creating query")}}function P(U){r.$$.not_equal(d.name,U)&&(d.name=U,t(0,d),t(1,g))}const M=U=>{var H;return((H=s[U])==null?void 0:H.displayName)||Sr(U)};function F(U){r.$$.not_equal(d.queryVerb,U)&&(d.queryVerb=U,t(0,d),t(1,g))}function j(U){r.$$.not_equal(d.parameters,U)&&(d.parameters=U,t(0,d),t(1,g))}function B(U){h=U,t(6,h)}const q=()=>window.open(fV),G=U=>t(0,d.transformer=U.detail,d);function Y(U){g=U,t(1,g)}return r.$$set=U=>{"query"in U&&t(0,d=U.query)},r.$$.update=()=>{r.$$.dirty&2&&t(0,d.schema=d4(g),d),r.$$.dirty&131073&&t(5,n=p.list.find(U=>U._id===d.datasourceId)),r.$$.dirty&32&&t(15,i=n==null?void 0:n.source),r.$$.dirty&98304&&t(4,l=i?c[i]:null),r.$$.dirty&16&&t(3,s=l==null?void 0:l.query),r.$$.dirty&9&&t(9,o=s&&d.queryVerb),r.$$.dirty&1&&t(14,a=d.queryVerb==="read"||d.readable),r.$$.dirty&16389&&t(8,u=!d.name||a&&v.length===0)},[d,g,v,s,l,n,h,C,u,o,y,I,O,T,a,i,c,p,P,M,F,j,B,q,G,Y]}class pV extends ie{constructor(e){super();le(this,e,cV,uV,re,{query:0})}}function C4(r){let e,t;return e=new pV({props:{query:r[0]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.query=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 dV(r){let e,t,n,i=r[1]._id&&r[0]&&C4(r);return{c(){e=D("section"),t=D("div"),i&&i.c(),w(t,"class","inner svelte-1cfdofs")},m(l,s){$(l,e,s),N(e,t),i&&i.m(t,null),n=!0},p(l,[s]){l[1]._id&&l[0]?i?(i.p(l,s),s&3&&m(i,1)):(i=C4(l),i.c(),m(i,1),i.m(t,null)):i&&(ee(),_(i,1,1,()=>{i=null}),te())},i(l){n||(m(i),n=!0)},o(l){_(i),n=!1},d(l){l&&b(e),i&&i.d()}}}function mV(r,e,t){let n,i,l,s,o;fe(r,tr,f=>t(3,n=f)),fe(r,jt,f=>t(4,i=f)),fe(r,en,f=>t(5,l=f)),fe(r,kn,f=>t(6,s=f)),fe(r,ks,f=>t(1,o=f));let a,u;return r.$$.update=()=>{r.$$.dirty&72&&t(0,a=s.list.find(f=>f._id===s.selected)||{datasourceId:n.selectedDatasource,parameters:[],fields:{},queryVerb:"read"}),r.$$.dirty&40&&t(2,u=l.list.find(f=>f._id===n.selectedDatasource)),r.$$.dirty&28&&(u==null?void 0:u.source)===yn.REST&&i(`../rest/${n.query}`)},[a,o,u,n,i,l,s]}class gV extends ie{constructor(e){super();le(this,e,mV,dV,re,{})}}function _V(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 hV(r,e,t){let n,i,l,s;fe(r,tr,c=>t(3,n=c)),fe(r,jt,c=>t(4,i=c)),fe(r,en,c=>t(5,l=c)),fe(r,kn,c=>t(6,s=c));let{$$slots:o={},$$scope:a}=e,u;if(n.query){const c=s.list.find(p=>p._id===n.query);c&&(kn.select(c),u=c.datasourceId)}const f=l.list.find(c=>c._id===l.selected||c._id===u);return(f==null?void 0:f.source)===yn.REST&&i(`../rest/${n.query}`),r.$$set=c=>{"$$scope"in c&&t(0,a=c.$$scope)},[a,o]}class $V extends ie{constructor(e){super();le(this,e,hV,_V,re,{})}}function S4(r,e,t){const n=r.slice();return n[18]=e[t],n[19]=e,n[20]=t,n}function A4(r){let e,t,n,i,l,s;t=new Ze({props:{$$slots:{default:[bV]},$$scope:{ctx:r}}});function o(u){r[7](u)}let a={};return r[0].name!==void 0&&(a.value=r[0].name),i=new tt({props:a}),Z.push(()=>ce(i,"value",o)),i.$on("change",r[8]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),w(e,"class","form-row svelte-13q83tn")},m(u,f){$(u,e,f),A(t,e,null),N(e,n),A(i,e,null),s=!0},p(u,f){const c={};f&2097152&&(c.$$scope={dirty:f,ctx:u}),t.$set(c);const p={};!l&&f&1&&(l=!0,p.value=u[0].name,pe(()=>l=!1)),i.$set(p)},i(u){s||(m(t.$$.fragment,u),m(i.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(i.$$.fragment,u),s=!1},d(u){u&&b(e),E(t),E(i)}}}function bV(r){let e;return{c(){e=V("Name")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function vV(r){let e,t,n,i,l,s,o;t=new Ze({props:{$$slots:{default:[CV]},$$scope:{ctx:r}}});function a(f){r[15](f,r[18])}let u={type:r[1][r[18]].type};return r[5][r[18]]!==void 0&&(u.value=r[5][r[18]]),i=new tt({props:u}),Z.push(()=>ce(i,"value",a)),i.$on("change",r[16]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),w(e,"class","form-row svelte-13q83tn")},m(f,c){$(f,e,c),A(t,e,null),N(e,n),A(i,e,null),N(e,s),o=!0},p(f,c){r=f;const p={};c&2097168&&(p.$$scope={dirty:c,ctx:r}),t.$set(p);const d={};c&18&&(d.type=r[1][r[18]].type),!l&&c&48&&(l=!0,d.value=r[5][r[18]],pe(()=>l=!1)),i.$set(d)},i(f){o||(m(t.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(t.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){f&&b(e),E(t),E(i)}}}function wV(r){let e,t,n,i,l,s,o;t=new Ze({props:{$$slots:{default:[SV]},$$scope:{ctx:r}}});function a(f){r[13](f,r[18])}let u={type:r[1][r[18]].type};return r[5][r[18]]!==void 0&&(u.value=r[5][r[18]]),i=new pi({props:u}),Z.push(()=>ce(i,"value",a)),i.$on("change",r[14]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),w(e,"class","form-row svelte-13q83tn")},m(f,c){$(f,e,c),A(t,e,null),N(e,n),A(i,e,null),N(e,s),o=!0},p(f,c){r=f;const p={};c&2097168&&(p.$$scope={dirty:c,ctx:r}),t.$set(p);const d={};c&18&&(d.type=r[1][r[18]].type),!l&&c&48&&(l=!0,d.value=r[5][r[18]],pe(()=>l=!1)),i.$set(d)},i(f){o||(m(t.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(t.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){f&&b(e),E(t),E(i)}}}function yV(r){let e,t,n,i,l,s,o;t=new Ze({props:{$$slots:{default:[AV]},$$scope:{ctx:r}}});function a(f){r[12](f,r[18])}let u={text:""};return r[5][r[18]]!==void 0&&(u.value=r[5][r[18]]),i=new Hn({props:u}),Z.push(()=>ce(i,"value",a)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),w(e,"class","form-row svelte-13q83tn")},m(f,c){$(f,e,c),A(t,e,null),N(e,n),A(i,e,null),N(e,s),o=!0},p(f,c){r=f;const p={};c&2097168&&(p.$$scope={dirty:c,ctx:r}),t.$set(p);const d={};!l&&c&48&&(l=!0,d.value=r[5][r[18]],pe(()=>l=!1)),i.$set(d)},i(f){o||(m(t.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(t.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){f&&b(e),E(t),E(i)}}}function kV(r){let e,t,n,i,l,s,o,a;t=new Ze({props:{$$slots:{default:[EV]},$$scope:{ctx:r}}}),i=new ut({props:{secondary:!0,thin:!0,outline:!0,$$slots:{default:[OV]},$$scope:{ctx:r}}}),i.$on("click",function(){ct(r[3].addEntry())&&r[3].addEntry().apply(this,arguments)});function u(c){r[10](c,r[18])}let f={defaults:r[1][r[18]].default,noAddButton:!0};return r[5][r[18]]!==void 0&&(f.object=r[5][r[18]]),s=new vi({props:f}),r[9](s),Z.push(()=>ce(s,"object",u)),s.$on("change",r[11]),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),w(e,"class","form-row ssl svelte-13q83tn")},m(c,p){$(c,e,p),A(t,e,null),N(e,n),A(i,e,null),$(c,l,p),A(s,c,p),a=!0},p(c,p){r=c;const d={};p&2097168&&(d.$$scope={dirty:p,ctx:r}),t.$set(d);const g={};p&2097152&&(g.$$scope={dirty:p,ctx:r}),i.$set(g);const h={};p&18&&(h.defaults=r[1][r[18]].default),!o&&p&48&&(o=!0,h.object=r[5][r[18]],pe(()=>o=!1)),s.$set(h)},i(c){a||(m(t.$$.fragment,c),m(i.$$.fragment,c),m(s.$$.fragment,c),a=!0)},o(c){_(t.$$.fragment,c),_(i.$$.fragment,c),_(s.$$.fragment,c),a=!1},d(c){c&&b(e),E(t),E(i),c&&b(l),r[9](null),E(s,c)}}}function CV(r){let e=r[6](r[18])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&16&&e!==(e=n[6](n[18])+"")&&Te(t,e)},d(n){n&&b(t)}}}function SV(r){let e=r[6](r[18])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&16&&e!==(e=n[6](n[18])+"")&&Te(t,e)},d(n){n&&b(t)}}}function AV(r){let e=r[6](r[18])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&16&&e!==(e=n[6](n[18])+"")&&Te(t,e)},d(n){n&&b(t)}}}function EV(r){let e=r[6](r[18])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,i){i&16&&e!==(e=n[6](n[18])+"")&&Te(t,e)},d(n){n&&b(t)}}}function OV(r){let e;return{c(){e=V("Add")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function E4(r){let e,t,n,i;const l=[kV,yV,wV,vV],s=[];function o(a,u){return a[1][a[18]].type==="object"?0:a[1][a[18]].type==="boolean"?1:a[1][a[18]].type==="longForm"?2:3}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 TV(r){let e,t,n,i=!r[2]&&A4(r),l=r[4],s=[];for(let a=0;a<l.length;a+=1)s[a]=E4(S4(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){i&&i.c(),e=R();for(let a=0;a<s.length;a+=1)s[a].c();t=Ee()},m(a,u){i&&i.m(a,u),$(a,e,u);for(let f=0;f<s.length;f+=1)s[f].m(a,u);$(a,t,u),n=!0},p(a,u){if(a[2]?i&&(ee(),_(i,1,1,()=>{i=null}),te()):i?(i.p(a,u),u&4&&m(i,1)):(i=A4(a),i.c(),m(i,1),i.m(e.parentNode,e)),u&122){l=a[4];let f;for(f=0;f<l.length;f+=1){const c=S4(a,l,f);s[f]?(s[f].p(c,u),m(s[f],1)):(s[f]=E4(c),s[f].c(),m(s[f],1),s[f].m(t.parentNode,t))}for(ee(),f=l.length;f<s.length;f+=1)o(f);te()}},i(a){if(!n){m(i);for(let u=0;u<l.length;u+=1)m(s[u]);n=!0}},o(a){_(i),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);n=!1},d(a){i&&i.d(a),a&&b(e),$t(s,a),a&&b(t)}}}function IV(r){let e,t,n;return t=new Ye({props:{noPadding:!0,gap:"S",$$slots:{default:[TV]},$$scope:{ctx:r}}}),{c(){e=D("form"),S(t.$$.fragment)},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,[l]){const s={};l&2097215&&(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 LV(r,e,t){let n,i,{datasource:l}=e,{schema:s}=e,{creating:o}=e;function a([T,P]){return P?!(l.source===yn.REST&&T==="defaultHeaders"||P.deprecated):!1}let u;function f(T){var M;let P;return((M=s[T])==null?void 0:M.display)?P=s[T].display:P=T,Sr(P)}function c(T){r.$$.not_equal(l.name,T)&&(l.name=T,t(0,l))}function p(T){dt.call(this,r,T)}function d(T){Z[T?"unshift":"push"](()=>{u=T,t(3,u)})}function g(T,P){r.$$.not_equal(n[P],T)&&(n[P]=T,t(5,n),t(0,l))}function h(T){dt.call(this,r,T)}function v(T,P){r.$$.not_equal(n[P],T)&&(n[P]=T,t(5,n),t(0,l))}function C(T,P){r.$$.not_equal(n[P],T)&&(n[P]=T,t(5,n),t(0,l))}function y(T){dt.call(this,r,T)}function I(T,P){r.$$.not_equal(n[P],T)&&(n[P]=T,t(5,n),t(0,l))}function O(T){dt.call(this,r,T)}return r.$$set=T=>{"datasource"in T&&t(0,l=T.datasource),"schema"in T&&t(1,s=T.schema),"creating"in T&&t(2,o=T.creating)},r.$$.update=()=>{r.$$.dirty&1&&t(5,n=l==null?void 0:l.config),r.$$.dirty&2&&t(4,i=Object.entries(s||{}).filter(T=>a(T)).map(([T])=>T))},[l,s,o,u,i,n,f,c,p,d,g,h,v,C,y,I,O]}class O4 extends ie{constructor(e){super();le(this,e,LV,IV,re,{datasource:0,schema:1,creating:2})}}const wi={BASIC:"basic",BEARER:"bearer"},T4=[{label:"Basic Auth",value:wi.BASIC},{label:"Bearer Token",value:wi.BEARER}];function PV(r){let e=r[1](r[0])+"",t;return{c(){t=V(e)},m(n,i){$(n,t,i)},p(n,[i]){i&1&&e!==(e=n[1](n[0])+"")&&Te(t,e)},i:Oe,o:Oe,d(n){n&&b(t)}}}function NV(r,e,t){let{value:n}=e;const i=l=>T4.filter(s=>s.value===l).map(s=>s.label);return r.$$set=l=>{"value"in l&&t(0,n=l.value)},[n,i]}class RV extends ie{constructor(e){super();le(this,e,NV,PV,re,{value:0})}}function MV(r){let e;return{c(){e=V(`The authorization header will be automatically generated when you send the
@@ -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;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-11tgeq8"),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-11tgeq8"),oe(e,"disabled",r[5])},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)),f&32&&oe(e,"disabled",u[5]);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.105-alpha.0",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.105-alpha.0","@budibase/frontend-core":"^1.0.105-alpha.0","@budibase/string-templates":"^1.0.105-alpha.0","@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.105-alpha.3",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.105-alpha.3","@budibase/frontend-core":"^1.0.105-alpha.3","@budibase/string-templates":"^1.0.105-alpha.3","@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