@budibase/server 1.0.91-alpha.3 → 1.0.91-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.
- package/builder/assets/{index.fc731251.js → index.14394d60.js} +5 -5
- package/builder/assets/{index.7c8961b4.css → index.56e26fdf.css} +1 -1
- package/builder/index.html +2 -2
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/application.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/application.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/row.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/static.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/automations/utils.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/client.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/authorized.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/index.js.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/dist/package.json +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -384,9 +384,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
384
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+"")&&Le(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function Uz(r){let e,t,n,i;const l=[zz,Bz,jz],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=Oe()},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):(te(),_(s[f],1,1,()=>{s[f]=null}),ne(),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 Vz=r=>r._id,Hz=r=>r._id;function Wz(r,e,t){var h;let n,i,l,s;ue(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 Ze.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=kr(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 dv extends ie{constructor(e){super();le(this,e,Wz,Uz,re,{schema:0,linkedRows:6})}}function Gz(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 et({props:l}),K.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 Yz(r){let e,t,n,i;return e=new Ke({props:{$$slots:{default:[tq]},$$scope:{ctx:r}}}),n=new xl({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 Jz(r){let e,t,n,i;const l=[rq,nq],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=Oe()},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):(te(),_(s[f],1,1,()=>{s[f]=null}),ne(),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 Qz(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 dv({props:l}),K.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 Xz(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 Wo({props:l}),K.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 Kz(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 Vn({props:l}),K.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 Zz(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 Dz({props:l}),K.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 xz(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 Ml({props:l}),K.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 eq(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 Je({props:l}),K.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 tq(r){let e;return{c(){e=U(r[3])},m(t,n){$(t,e,n)},p(t,n){n&8&&Le(e,t[3])},d(t){t&&b(e)}}}function nq(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 Zr({props:l}),K.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 rq(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 hD({props:l}),K.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 iq(r){let e,t,n,i;const l=[eq,xz,Zz,Kz,Xz,Qz,Jz,Yz,Gz],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=Oe()},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):(te(),_(s[f],1,1,()=>{s[f]=null}),ne(),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 lq(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(T){a=T,t(0,a)}function c(T){a=T,t(0,a)}function p(T){a=T,t(0,a)}function d(T){a=T,t(0,a)}function g(T){a=T,t(0,a)}function h(T){a=T,t(0,a)}function v(T){a=T,t(0,a)}function C(T){a=T,t(0,a)}const w=({detail:T})=>t(0,a=T.value);function I(T){a=T,t(0,a)}return r.$$set=T=>{"defaultValue"in T&&t(6,s=T.defaultValue),"meta"in T&&t(1,o=T.meta),"value"in T&&t(0,a=T.value),"readonly"in T&&t(2,u=T.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?kr(o.name):"")},[a,o,u,l,i,n,s,f,c,p,d,g,h,v,C,w,I]}class Ea extends ie{constructor(e){super();le(this,e,lq,iq,re,{defaultValue:6,meta:1,value:0,readonly:2})}}function mv(r,e,t){const n=r.slice();return n[2]=e[t],n}function gv(r){let e,t=r[0],n=[];for(let i=0;i<t.length;i+=1)n[i]=_v(mv(r,t,i));return{c(){e=D("div");for(let i=0;i<n.length;i+=1)n[i].c();y(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=mv(i,t,s);n[s]?n[s].p(o,l):(n[s]=_v(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 _v(r){let e,t=(r[2].dataPath||"")+"",n,i,l=r[2].message+"",s;return{c(){e=D("div"),n=U(t),i=R(),s=U(l),y(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||"")+"")&&Le(n,t),a&1&&l!==(l=o[2].message+"")&&Le(s,l)},d(o){o&&b(e)}}}function sq(r){let e,t=r[1]&&gv(r);return{c(){t&&t.c(),e=Oe()},m(n,i){t&&t.m(n,i),$(n,e,i)},p(n,[i]){n[1]?t?t.p(n,i):(t=gv(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Te,o:Te,d(n){t&&t.d(n),n&&b(e)}}}function oq(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 _1 extends ie{constructor(e){super();le(this,e,oq,sq,re,{errors:0})}}function hv(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 Ea({props:o}),K.push(()=>ce(t,"value",s)),{c(){e=D("div"),S(t.$$.fragment),i=R(),y(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 bv(r){let e,t,n=!r[11].autocolumn&&r[11].type!==r[4]&&$v(r);return{c(){n&&n.c(),e=Oe()},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&&(te(),_(n,1,1,()=>{n=null}),ne())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function aq(r){let e,t,n,i;e=new _1({props:{errors:r[1]}});let l=r[2],s=[];for(let a=0;a<l.length;a+=1)s[a]=bv(hv(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=Oe()},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=hv(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=bv(p),s[c].c(),m(s[c],1),s[c].m(n.parentNode,n))}for(te(),c=l.length;c<s.length;c+=1)o(c);ne()}},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 uq(r){let e,t;return e=new Dt({props:{title:r[3]?"Create Row":"Edit Row",confirmText:r[3]?"Create Row":"Save Row",onConfirm:r[5],$$slots:{default:[aq]},$$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 fq(r,e,t){let n,i,l,s;ue(r,Ot,d=>t(7,s=d));const o=jt.FORMULA.type;let{row:a={}}=e,u=[];const f=_t();async function c(){t(1,u=[]);try{await Ze.saveRow(rt(Ae({},a),{tableId:i._id})),we.success("Row saved successfully"),C3.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 we.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 h1 extends ie{constructor(e){super();le(this,e,fq,uq,re,{row:0})}}function vv(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 wv(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 Ea({props:l}),K.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 yv(r){let e,t,n=!r[18].autocolumn&&wv(r);return{c(){n&&n.c(),e=Oe()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,l){i[18].autocolumn?n&&(te(),_(n,1,1,()=>{n=null}),ne()):n?(n.p(i,l),l&8&&m(n,1)):(n=wv(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 cq(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v;e=new _1({props:{errors:r[2]}});function C(V){r[9](V)}let w={meta:rt(Ae({},r[1].email),{name:"Email"}),readonly:!r[4]};r[0].email!==void 0&&(w.value=r[0].email),n=new Ea({props:w}),K.push(()=>ce(n,"value",C));function I(V){r[10](V)}let T={meta:rt(Ae({},r[1].firstName),{name:"First Name"}),readonly:!r[4]};r[0].firstName!==void 0&&(T.value=r[0].firstName),s=new Ea({props:T}),K.push(()=>ce(s,"value",I));function O(V){r[11](V)}let P={meta:rt(Ae({},r[1].lastName),{name:"Last Name"}),readonly:!r[4]};r[0].lastName!==void 0&&(P.value=r[0].lastName),u=new Ea({props:P}),K.push(()=>ce(u,"value",O));function M(V){r[12](V)}let H={label:"Role","data-cy":"roleId-select",options:r[5],getOptionLabel:dq,getOptionValue:mq,disabled:!r[4]};r[0].roleId!==void 0&&(H.value=r[0].roleId),p=new Je({props:H}),K.push(()=>ce(p,"value",M));let j=r[3],z=[];for(let V=0;V<j.length;V+=1)z[V]=yv(vv(r,j,V));const q=V=>_(z[V],1,1,()=>{z[V]=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 V=0;V<z.length;V+=1)z[V].c();h=Oe()},m(V,Y){A(e,V,Y),$(V,t,Y),A(n,V,Y),$(V,l,Y),A(s,V,Y),$(V,a,Y),A(u,V,Y),$(V,c,Y),A(p,V,Y),$(V,g,Y);for(let F=0;F<z.length;F+=1)z[F].m(V,Y);$(V,h,Y),v=!0},p(V,Y){const F={};Y&4&&(F.errors=V[2]),e.$set(F);const W={};Y&2&&(W.meta=rt(Ae({},V[1].email),{name:"Email"})),Y&16&&(W.readonly=!V[4]),!i&&Y&1&&(i=!0,W.value=V[0].email,pe(()=>i=!1)),n.$set(W);const G={};Y&2&&(G.meta=rt(Ae({},V[1].firstName),{name:"First Name"})),Y&16&&(G.readonly=!V[4]),!o&&Y&1&&(o=!0,G.value=V[0].firstName,pe(()=>o=!1)),s.$set(G);const Q={};Y&2&&(Q.meta=rt(Ae({},V[1].lastName),{name:"Last Name"})),Y&16&&(Q.readonly=!V[4]),!f&&Y&1&&(f=!0,Q.value=V[0].lastName,pe(()=>f=!1)),u.$set(Q);const fe={};if(Y&32&&(fe.options=V[5]),Y&16&&(fe.disabled=!V[4]),!d&&Y&1&&(d=!0,fe.value=V[0].roleId,pe(()=>d=!1)),p.$set(fe),Y&25){j=V[3];let Z;for(Z=0;Z<j.length;Z+=1){const ee=vv(V,j,Z);z[Z]?(z[Z].p(ee,Y),m(z[Z],1)):(z[Z]=yv(ee),z[Z].c(),m(z[Z],1),z[Z].m(h.parentNode,h))}for(te(),Z=j.length;Z<z.length;Z+=1)q(Z);ne()}},i(V){if(!v){m(e.$$.fragment,V),m(n.$$.fragment,V),m(s.$$.fragment,V),m(u.$$.fragment,V),m(p.$$.fragment,V);for(let Y=0;Y<j.length;Y+=1)m(z[Y]);v=!0}},o(V){_(e.$$.fragment,V),_(n.$$.fragment,V),_(s.$$.fragment,V),_(u.$$.fragment,V),_(p.$$.fragment,V),z=z.filter(Boolean);for(let Y=0;Y<z.length;Y+=1)_(z[Y]);v=!1},d(V){E(e,V),V&&b(t),E(n,V),V&&b(l),E(s,V),V&&b(a),E(u,V),V&&b(c),E(p,V),V&&b(g),$t(z,V),V&&b(h)}}}function pq(r){let e,t;return e=new Dt({props:{title:r[4]?"Create User":"Edit User",confirmText:r[4]?"Create User":"Save User",onConfirm:r[6],$$slots:{default:[cq]},$$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 dq=r=>r.name,mq=r=>r._id;function gq(r,e,t){let n,i,l,s,o,a;ue(r,Ot,T=>t(8,o=T)),ue(r,Zi,T=>t(5,a=T));let{row:u={}}=e;const f=_t();let c=[];const p=T=>{var P;let O=(P=T==null?void 0:T.schema)!=null?P:{};return O.username&&(O.username.name="Username"),O},d=T=>{let O=Ae({},T);return delete O.email,delete O.roleId,delete O.status,delete O.firstName,delete O.lastName,Object.entries(O)},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 Ze.saveRow(rt(Ae({},u),{tableId:i._id})),we.success("User saved successfully"),C3.save(),f("updaterows")}catch(T){if(T.handled){const O=T.json;(O==null?void 0:O.errors)?Array.isArray(O.errors)?t(2,c=O.errors.map(P=>({message:P}))):t(2,c=Object.entries(O.errors).map(([P,M])=>({dataPath:P,message:M})).flat()):T.status===400&&t(2,c=[{message:(O==null?void 0:O.message)||"Unknown error"}])}else we.error("Error saving user");return!1}};function h(T){r.$$.not_equal(u.email,T)&&(u.email=T,t(0,u))}function v(T){r.$$.not_equal(u.firstName,T)&&(u.firstName=T,t(0,u))}function C(T){r.$$.not_equal(u.lastName,T)&&(u.lastName=T,t(0,u))}function w(T){r.$$.not_equal(u.roleId,T)&&(u.roleId=T,t(0,u))}function I(T,O){r.$$.not_equal(u[O],T)&&(u[O]=T,t(0,u))}return r.$$set=T=>{"row"in T&&t(0,u=T.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(T=>T._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,w,I]}class _q extends ie{constructor(e){super();le(this,e,gq,pq,re,{row:0})}}function kv(r=!0){let e={};for(let[t,n]of Object.entries(Ni))e[n]={enabled:r,name:dj[t]};return e}function Cv(r,e,t){let n,i;switch(t){case Ni.UPDATED_BY:case Ni.CREATED_BY:n=jt.LINK.type,i=jt.LINK.constraints;break;case Ni.AUTO_ID:n=jt.NUMBER.type,i=jt.NUMBER.constraints;break;case Ni.UPDATED_AT:case Ni.CREATED_AT:n=jt.DATETIME.type,i=jt.DATETIME.constraints;break;default:n=jt.STRING.type,i=jt.STRING.constraints;break}if(Object.values(Ni).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 mj(t)&&(l.tableId=kl.USERS,l.fieldName=`${r}-${e}`),l}function hq(r){let e,t,n;return t=new Zr({props:{label:r[0],value:r[1],thin:!0}}),t.$on("change",r[2]),{c(){e=D("div"),S(t.$$.fragment),y(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 $q(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=bn.join(`
|
|
386
386
|
`)(i))},[l,n,s,i]}class Sv extends ie{constructor(e){super();le(this,e,$q,hq,re,{values:3,label:0})}}function bq(){const r=dM();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 Av(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 vq(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 Ev(r){let e,t,n;return t=new Ke({props:{small:!0,$$slots:{default:[wq]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),Bt(e,"margin-bottom","var(--spacing-s)"),y(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 wq(r){let e;return{c(){e=U(r[3])},m(t,n){$(t,e,n)},p(t,n){n&8&&Le(e,t[3])},d(t){t&&b(e)}}}function yq(r){let e,t,n,i,l,s=r[3]&&Ev(r);return{c(){s&&s.c(),e=R(),t=D("div"),n=D("textarea"),y(n,"tabindex","0"),n.readOnly=!0,n.value=r[0],y(t,"style",i=`--code-mirror-height: ${r[1]}px; --code-mirror-resize: ${r[2]}`),y(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=Ev(o),s.c(),m(s,1),s.m(e.parentNode,e)):s&&(te(),_(s,1,1,()=>{s=null}),ne()),(!l||a&1)&&(n.value=o[0]),(!l||a&6&&i!==(i=`--code-mirror-height: ${o[1]}px; --code-mirror-resize: ${o[2]}`))&&y(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 Oa={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 kq(r,e,t){let n;ue(r,Wf,C=>t(12,n=C));let{mode:i=Oa.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=_t();let p,d;async function g(C,w){if(!Xr||!p)return;const I=n.theme.includes("light"),T={mode:C,value:w||"",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)&&(Xr.registerHelper("hint","dictionaryHint",function(O){const P=O.getCursor();return{list:u,from:Xr.Pos(P.line,P.ch),to:Xr.Pos(P.line,P.ch)}}),Xr.commands.autocomplete=function(O){Xr.showHint(O,Xr.hint.dictionaryHint)}),t(9,d=Xr.fromTextArea(p,T)),d.on("blur",O=>{c("change",O.getValue())})}const h=()=>{const C=d.getCursor();return{start:C.ch,end:C.ch}};Gt(()=>(g(i,l),()=>{d&&d.toTextArea()}));function v(C){K[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 Kf extends ie{constructor(e){super();le(this,e,kq,yq,re,{mode:5,value:0,height:1,resize:2,readonly:6,hints:7,label:3,getCaretPosition:8})}get getCaretPosition(){return this.$$.ctx[8]}}function Ov(r,e,t){const n=r.slice();return n[29]=e[t],n}function Tv(r,e,t){const n=r.slice();return n[32]=e[t],n}function Iv(r,e,t){const n=r.slice();return n[35]=e[t],n}function Lv(r){let e;return{c(){e=D("p"),e.innerHTML=`Current Handlebars syntax is invalid, please check the guide
|
|
387
|
-
<a href="https://handlebarsjs.com/guide/" class="svelte-
|
|
388
|
-
for more details.`,y(e,"class","syntax-error svelte-
|
|
389
|
-
your expression returns a value.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Aq(r){let e,t,n,i,l;function s(a){r[24](a)}let o={height:200,value:jf(r[5]),hints:r[8]};return r[4]!==void 0&&(o.getCaretPosition=r[4]),e=new Kf({props:o}),K.push(()=>ce(e,"getCaretPosition",s)),e.$on("change",r[15]),i=new Qe({props:{size:"S",$$slots:{default:[Sq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment)},m(a,u){A(e,a,u),$(a,n,u),A(i,a,u),l=!0},p(a,u){const f={};u[0]&32&&(f.value=jf(a[5])),u[0]&256&&(f.hints=a[8]),!t&&u[0]&16&&(t=!0,f.getCaretPosition=a[4],pe(()=>t=!1)),e.$set(f);const c={};u[1]&128&&(c.$$scope={dirty:u,ctx:a}),i.$set(c)},i(a){l||(m(e.$$.fragment,a),m(i.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(i.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(n),E(i,a)}}}function Eq(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[Aq]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(e,"class","main-content svelte-1o92bu6")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&304|l[1]&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 Oq(r){let e,t,n,i;e=new $n({props:{title:"Handlebars",$$slots:{default:[Cq]},$$scope:{ctx:r}}});let l=r[1]&&Pv(r);return{c(){S(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},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[0]&81|o[1]&128&&(a.$$scope={dirty:o,ctx:s}),e.$set(a),s[1]?l?(l.p(s,o),o[0]&2&&m(l,1)):(l=Pv(s),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(te(),_(l,1,1,()=>{l=null}),ne())},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 Tq(r){let e,t,n;return t=new Wr({props:{selected:r[3],$$slots:{default:[Oq]},$$scope:{ctx:r}}}),t.$on("select",r[13]),{c(){e=D("div"),S(t.$$.fragment),y(e,"class","main svelte-1o92bu6")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&8&&(s.selected=i[3]),l[0]&371|l[1]&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 Nv(r){let e,t,n=r[32].name+"",i,l,s,o=r[32].bindings,a=[];for(let u=0;u<o.length;u+=1)a[u]=Dv(Iv(r,o,u));return{c(){e=D("section"),t=D("div"),i=U(n),l=R(),s=D("ul");for(let u=0;u<a.length;u+=1)a[u].c();y(t,"class","heading svelte-1o92bu6"),y(s,"class","svelte-1o92bu6"),y(e,"class","svelte-1o92bu6")},m(u,f){$(u,e,f),N(e,t),N(t,i),N(e,l),N(e,s);for(let c=0;c<a.length;c+=1)a[c].m(s,null)},p(u,f){if(f[0]&1024&&n!==(n=u[32].name+"")&&Le(i,n),f[0]&5120){o=u[32].bindings;let c;for(c=0;c<o.length;c+=1){const p=Iv(u,o,c);a[c]?a[c].p(p,f):(a[c]=Dv(p),a[c].c(),a[c].m(s,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=o.length}},d(u){u&&b(e),$t(a,u)}}}function Rv(r){let e,t=r[35].type+"",n;return{c(){e=D("span"),n=U(t),y(e,"class","binding__type svelte-1o92bu6")},m(i,l){$(i,e,l),N(e,n)},p(i,l){l[0]&1024&&t!==(t=i[35].type+"")&&Le(n,t)},d(i){i&&b(e)}}}function Mv(r){let e,t,n,i=(r[35].description||"")+"",l;return{c(){e=D("br"),t=R(),n=D("div"),l=U(i),y(n,"class","binding__description svelte-1o92bu6")},m(s,o){$(s,e,o),$(s,t,o),$(s,n,o),N(n,l)},p(s,o){o[0]&1024&&i!==(i=(s[35].description||"")+"")&&Le(l,i)},d(s){s&&b(e),s&&b(t),s&&b(n)}}}function Dv(r){let e,t,n=r[35].readableBinding+"",i,l,s,o,a,u=r[35].type&&Rv(r),f=r[35].description&&Mv(r);function c(){return r[21](r[35])}return{c(){e=D("li"),t=D("span"),i=U(n),l=R(),u&&u.c(),s=R(),f&&f.c(),y(t,"class","binding__label svelte-1o92bu6"),y(e,"class","svelte-1o92bu6")},m(p,d){$(p,e,d),N(e,t),N(t,i),N(e,l),u&&u.m(e,null),N(e,s),f&&f.m(e,null),o||(a=Pe(e,"click",c),o=!0)},p(p,d){r=p,d[0]&1024&&n!==(n=r[35].readableBinding+"")&&Le(i,n),r[35].type?u?u.p(r,d):(u=Rv(r),u.c(),u.m(e,s)):u&&(u.d(1),u=null),r[35].description?f?f.p(r,d):(f=Mv(r),f.c(),f.m(e,null)):f&&(f.d(1),f=null)},d(p){p&&b(e),u&&u.d(),f&&f.d(),o=!1,a()}}}function jv(r){var n;let e,t=((n=r[32].bindings)==null?void 0:n.length)&&Nv(r);return{c(){t&&t.c(),e=Oe()},m(i,l){t&&t.m(i,l),$(i,e,l)},p(i,l){var s;((s=i[32].bindings)==null?void 0:s.length)?t?t.p(i,l):(t=Nv(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&b(e)}}}function Bv(r){let e,t,n,i,l=r[9],s=[];for(let o=0;o<l.length;o+=1)s[o]=zv(Ov(r,l,o));return{c(){e=D("section"),t=D("div"),t.textContent="Helpers",n=R(),i=D("ul");for(let o=0;o<s.length;o+=1)s[o].c();y(t,"class","heading svelte-1o92bu6"),y(i,"class","svelte-1o92bu6"),y(e,"class","svelte-1o92bu6")},m(o,a){$(o,e,a),N(e,t),N(e,n),N(e,i);for(let u=0;u<s.length;u+=1)s[u].m(i,null)},p(o,a){if(a[0]&2560){l=o[9];let u;for(u=0;u<l.length;u+=1){const f=Ov(o,l,u);s[u]?s[u].p(f,a):(s[u]=zv(f),s[u].c(),s[u].m(i,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=l.length}},d(o){o&&b(e),$t(s,o)}}}function zv(r){let e,t,n,i=r[29].displayText+"",l,s,o,a=r[29].description+"",u,f,c=(r[29].example||"")+"",p,d,g,h;function v(){return r[22](r[29])}return{c(){e=D("li"),t=D("div"),n=D("div"),l=U(i),s=R(),o=D("div"),u=R(),f=D("pre"),p=U(c),d=R(),y(n,"class","helper__name svelte-1o92bu6"),y(o,"class","helper__description svelte-1o92bu6"),y(f,"class","helper__example svelte-1o92bu6"),y(t,"class","helper svelte-1o92bu6"),y(e,"class","svelte-1o92bu6")},m(C,w){$(C,e,w),N(e,t),N(t,n),N(n,l),N(t,s),N(t,o),o.innerHTML=a,N(t,u),N(t,f),N(f,p),N(e,d),g||(h=Pe(e,"click",v),g=!0)},p(C,w){r=C,w[0]&512&&i!==(i=r[29].displayText+"")&&Le(l,i),w[0]&512&&a!==(a=r[29].description+"")&&(o.innerHTML=a),w[0]&512&&c!==(c=(r[29].example||"")+"")&&Le(p,c)},d(C){C&&b(e),g=!1,h()}}}function Iq(r){var h;let e,t,n,i,l,s,o,a,u;function f(v){r[20](v)}let c={placeholder:"Search"};r[2]!==void 0&&(c.value=r[2]),l=new Bf({props:c}),K.push(()=>ce(l,"value",f));let p=r[10],d=[];for(let v=0;v<p.length;v+=1)d[v]=jv(Tv(r,p,v));let g=((h=r[9])==null?void 0:h.length)&&!r[7]&&Bv(r);return{c(){e=D("div"),t=D("section"),n=D("div"),n.textContent="Search",i=R(),S(l.$$.fragment),o=R();for(let v=0;v<d.length;v+=1)d[v].c();a=R(),g&&g.c(),y(n,"class","heading svelte-1o92bu6"),y(t,"class","svelte-1o92bu6"),y(e,"class","container svelte-1o92bu6")},m(v,C){$(v,e,C),N(e,t),N(t,n),N(t,i),A(l,t,null),N(e,o);for(let w=0;w<d.length;w+=1)d[w].m(e,null);N(e,a),g&&g.m(e,null),u=!0},p(v,C){var I;const w={};if(!s&&C[0]&4&&(s=!0,w.value=v[2],pe(()=>s=!1)),l.$set(w),C[0]&5120){p=v[10];let T;for(T=0;T<p.length;T+=1){const O=Tv(v,p,T);d[T]?d[T].p(O,C):(d[T]=jv(O),d[T].c(),d[T].m(e,a))}for(;T<d.length;T+=1)d[T].d(1);d.length=p.length}((I=v[9])==null?void 0:I.length)&&!v[7]?g?g.p(v,C):(g=Bv(v),g.c(),g.m(e,null)):g&&(g.d(1),g=null)},i(v){u||(m(l.$$.fragment,v),u=!0)},o(v){_(l.$$.fragment,v),u=!1},d(v){v&&b(e),E(l),$t(d,v),g&&g.d()}}}function Lq(r){let e,t;return e=new Si({props:{$$slots:{sidebar:[Iq],default:[Tq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&2047|i[1]&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 Pq(r,e,t){let n,i,l,s,o,a;const u=_t();let{bindings:f}=e,{value:c=""}=e,{valid:p}=e,{allowJS:d=!1}=e,g=bq(),h,v="",C=c==null?void 0:c.startsWith("{{ js "),w=C?"JavaScript":"Handlebars",I=C?c:null,T=C?null:c;const O=G=>{t(0,p=Tb(As(f,G))),p&&u("change",G)},P=G=>{t(6,T=Av(T,h(),G.text)),O(T)},M=G=>{if(n){let Q=jf(I);Q=vq(Q,h(),G.readableBinding),t(5,I=t1(Q)),O(I)}else t(6,T=Av(T,h(),G.readableBinding)),O(T)},H=G=>{t(3,w=G.detail),O(w==="JavaScript"?I:T)},j=G=>{t(6,T=G.detail),O(T)},z=G=>{t(5,I=t1(G.detail)),O(I)};Gt(()=>{t(0,p=Tb(As(f,c)))});function q(G){v=G,t(2,v)}const V=G=>M(G),Y=G=>P(G);function F(G){h=G,t(4,h)}function W(G){h=G,t(4,h)}return r.$$set=G=>{"bindings"in G&&t(16,f=G.bindings),"value"in G&&t(17,c=G.value),"valid"in G&&t(0,p=G.valid),"allowJS"in G&&t(1,d=G.allowJS)},r.$$.update=()=>{r.$$.dirty[0]&8&&t(7,n=w==="JavaScript"),r.$$.dirty[0]&4&&t(18,i=new RegExp(v,"ig")),r.$$.dirty[0]&65536&&t(19,l=Object.entries(fS("category",f))),r.$$.dirty[0]&786432&&t(10,s=l.map(([G,Q])=>({name:G,bindings:Q==null?void 0:Q.filter(fe=>fe.readableBinding.match(i))})).filter(G=>{var Q;return((Q=G.bindings)==null?void 0:Q.length)>0})),r.$$.dirty[0]&262144&&t(9,o=g==null?void 0:g.filter(G=>G.label.match(i)||G.description.match(i))),r.$$.dirty[0]&65536&&t(8,a=f==null?void 0:f.map(G=>`$("${G.readableBinding}")`))},[p,d,v,w,h,I,T,n,a,o,s,P,M,H,j,z,f,c,i,l,q,V,Y,F,W]}class qv extends ie{constructor(e){super();le(this,e,Pq,Lq,re,{bindings:16,value:17,valid:0,allowJS:1},null,[-1,-1])}}function Nq(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 qv({props:l}),K.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 Rq(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.map(p=>rt(Ae({},p),{readableBinding:p.label||p.readableBinding,runtimeBinding:p.path||p.runtimeBinding}));function u(c){l=c,t(0,l)}function f(c){ft.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 xi extends ie{constructor(e){super();le(this,e,Rq,Nq,re,{bindings:4,valid:0,value:1,allowJS:2})}}function Mq(r){let e;return{c(){e=U("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Dq(r){let e,t,n,i,l,s;e=new Qe({props:{extraSmall:!0,grey:!0,$$slots:{default:[Mq]},$$scope:{ctx:r}}});function o(f){r[15](f)}var a=r[0];function u(f){let c={serverSide:!0,value:f[6],bindings:f[1],allowJS:f[5]};return f[8]!==void 0&&(c.valid=f[8]),{props:c}}return a&&(i=new a(u(r)),K.push(()=>ce(i,"valid",o)),i.$on("change",r[16])),{c(){S(e.$$.fragment),t=R(),n=D("div"),i&&S(i.$$.fragment),y(n,"class","panel-wrapper svelte-hfpg62")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),i&&A(i,n,null),s=!0},p(f,c){const p={};c&524288&&(p.$$scope={dirty:c,ctx:f}),e.$set(p);const d={};if(c&64&&(d.value=f[6]),c&2&&(d.bindings=f[1]),c&32&&(d.allowJS=f[5]),!l&&c&256&&(l=!0,d.valid=f[8],pe(()=>l=!1)),a!==(a=f[0])){if(i){te();const g=i;_(g.$$.fragment,1,0,()=>{E(g,1)}),ne()}a?(i=new a(u(f)),K.push(()=>ce(i,"valid",o)),i.$on("change",f[16]),S(i.$$.fragment),m(i.$$.fragment,1),A(i,n,null)):i=null}else a&&i.$set(d)},i(f){s||(m(e.$$.fragment,f),i&&m(i.$$.fragment,f),s=!0)},o(f){_(e.$$.fragment,f),i&&_(i.$$.fragment,f),s=!1},d(f){E(e,f),f&&b(t),f&&b(n),i&&E(i)}}}function jq(r){let e,t;return e=new Dt({props:{title:r[2],onConfirm:r[11],disabled:!r[8],size:"XL",$$slots:{default:[Dq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.title=n[2]),i&256&&(l.disabled=!n[8]),i&525155&&(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 Bq(r){let e,t,n,i,l,s,o,a,u,f;t=new et({props:{label:r[4],readonly:r[10],value:r[10]?"(JavaScript function)":r[6],placeholder:r[3]}}),t.$on("change",r[14]),l=new ct({props:{size:"S",name:"FlashOn"}});let c={$$slots:{default:[jq]},$$scope:{ctx:r}};return o=new Et({props:c}),r[17](o),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),s=R(),S(o.$$.fragment),y(i,"class","icon svelte-hfpg62"),y(e,"class","control svelte-hfpg62")},m(p,d){$(p,e,d),A(t,e,null),N(e,n),N(e,i),A(l,i,null),$(p,s,d),A(o,p,d),a=!0,u||(f=Pe(i,"click",function(){mt(r[7].show)&&r[7].show.apply(this,arguments)}),u=!0)},p(p,[d]){r=p;const g={};d&16&&(g.label=r[4]),d&1024&&(g.readonly=r[10]),d&1088&&(g.value=r[10]?"(JavaScript function)":r[6]),d&8&&(g.placeholder=r[3]),t.$set(g);const h={};d&525159&&(h.$$scope={dirty:d,ctx:r}),o.$set(h)},i(p){a||(m(t.$$.fragment,p),m(l.$$.fragment,p),m(o.$$.fragment,p),a=!0)},o(p){_(t.$$.fragment,p),_(l.$$.fragment,p),_(o.$$.fragment,p),a=!1},d(p){p&&b(e),E(t),E(l),p&&b(s),r[17](null),E(o,p),u=!1,f()}}}function zq(r,e,t){let n,i,l,{panel:s=xi}=e,{value:o=""}=e,{bindings:a=[]}=e,{title:u="Bindings"}=e,{placeholder:f}=e,{label:c}=e,{allowJS:p=!1}=e;const d=_t();let g,h=!0;const v=()=>{C(i),g.hide()},C=P=>{d("change",As(a,P))},w=P=>C(P.detail);function I(P){h=P,t(8,h)}const T=P=>t(9,i=P.detail);function O(P){K[P?"unshift":"push"](()=>{g=P,t(7,g)})}return r.$$set=P=>{"panel"in P&&t(0,s=P.panel),"value"in P&&t(13,o=P.value),"bindings"in P&&t(1,a=P.bindings),"title"in P&&t(2,u=P.title),"placeholder"in P&&t(3,f=P.placeholder),"label"in P&&t(4,c=P.label),"allowJS"in P&&t(5,p=P.allowJS)},r.$$.update=()=>{r.$$.dirty&8194&&t(6,n=_o(a,o)),r.$$.dirty&64&&t(9,i=n),r.$$.dirty&8192&&t(10,l=Df(o))},[s,a,u,f,c,p,n,g,h,i,l,v,C,o,w,I,T,O]}class $1 extends ie{constructor(e){super();le(this,e,zq,Bq,re,{panel:0,value:13,bindings:1,title:2,placeholder:3,label:4,allowJS:5})}}const Fv=1,qq="internal",Fq=[jt.FORMULA.type,jt.LONGFORM.type,jt.ATTACHMENT.type,qq];function Uv({table:r,path:e=null,category:t=null,depth:n=0}){let i=[];if(!r)return i;for(let[l,s]of Object.entries(r.schema)){const o=s.type===jt.LINK.type;if(Fq.includes(s.type)||o&&n>=Fv)continue;if(t=t==null?`${r.name} Fields`:t,o&&n<Fv){const c=lt(Ot).list.find(d=>d._id===s.tableId),p=i.concat(Uv({table:c,path:l,category:`${l} Relationships`,depth:n+1}));i=i.concat(p.filter(d=>!i.find(g=>g.path===d.path)))}const a=Object.values(jt).find(c=>c.type===s.type),u=e==null?l:`${e}.0.${l}`,f=e==null?void 0:'Update the "0" with the index of relationships or use array helpers';i.push({label:u,type:a.name===jt.LINK.name?"Array":a.name,category:t,path:u,description:f,readableBinding:l,runtimeBinding:`[${l}]`})}return i}function Vv(r){if(r==="string")return{type:jt.STRING.type};if(r==="boolean")return{type:jt.BOOLEAN.type};if(r==="number")return{type:jt.NUMBER.type}}function b1(r={},e){if(!e)return null;const t=typeof e;if(t!=="object")return Vv(t);for(let[n,i]of Object.entries(e)){const l=typeof i;if(Array.isArray(i)){const s=b1(r[n],i[0]);s&&(r[n]={type:jt.ARRAY.type,schema:s})}else if(l==="object"){const s=b1(r[n],e[n]);s&&(r[n]=s)}else r[n]=Vv(l)}return r.type?r:{type:jt.JSON.type,schema:r}}function Uq(r){return b1({},r).schema}function Hv(r,e,t){const n=r.slice();return n[17]=e[t],n[18]=e,n[19]=t,n}function Wv(r){let e,t,n,i,l,s,o,a,u;function f(h){r[10](h,r[19])}let c={outline:!0,label:"Key"};r[2][r[19]]!==void 0&&(c.value=r[2][r[19]]),t=new et({props:c}),K.push(()=>ce(t,"value",f));function p(h){r[11](h,r[19])}let d={label:"Type",options:r[5],getOptionValue:Zq,getOptionLabel:xq};r[3][r[19]]!==void 0&&(d.value=r[3][r[19]]),l=new Je({props:d}),K.push(()=>ce(l,"value",p));function g(){return r[12](r[19])}return a=new Yt({props:{icon:"Close",quiet:!0}}),a.$on("click",g),{c(){e=D("div"),S(t.$$.fragment),i=R(),S(l.$$.fragment),o=R(),S(a.$$.fragment),y(e,"class","horizontal svelte-1foeviw")},m(h,v){$(h,e,v),A(t,e,null),N(e,i),A(l,e,null),N(e,o),A(a,e,null),u=!0},p(h,v){r=h;const C={};!n&&v&4&&(n=!0,C.value=r[2][r[19]],pe(()=>n=!1)),t.$set(C);const w={};!s&&v&8&&(s=!0,w.value=r[3][r[19]],pe(()=>s=!1)),l.$set(w)},i(h){u||(m(t.$$.fragment,h),m(l.$$.fragment,h),m(a.$$.fragment,h),u=!0)},o(h){_(t.$$.fragment,h),_(l.$$.fragment,h),_(a.$$.fragment,h),u=!1},d(h){h&&b(e),E(t),E(l),E(a)}}}function Vq(r){let e;return{c(){e=U("Add Field")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hq(r){let e,t,n,i,l=Array(r[1]),s=[];for(let a=0;a<l.length;a+=1)s[a]=Wv(Hv(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return n=new ut({props:{primary:!0,text:!0,$$slots:{default:[Vq]},$$scope:{ctx:r}}}),n.$on("click",r[13]),{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=R(),t=D("div"),S(n.$$.fragment),y(t,"class","svelte-1foeviw"),oe(t,"add-field-btn",r[1]!==0)},m(a,u){for(let f=0;f<s.length;f+=1)s[f].m(a,u);$(a,e,u),$(a,t,u),A(n,t,null),i=!0},p(a,u){if(u&302){l=Array(a[1]);let c;for(c=0;c<l.length;c+=1){const p=Hv(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=Wv(p),s[c].c(),m(s[c],1),s[c].m(e.parentNode,e))}for(te(),c=l.length;c<s.length;c+=1)o(c);ne()}const f={};u&1048576&&(f.$$scope={dirty:u,ctx:a}),n.$set(f),u&2&&oe(t,"add-field-btn",a[1]!==0)},i(a){if(!i){for(let u=0;u<l.length;u+=1)m(s[u]);m(n.$$.fragment,a),i=!0}},o(a){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);_(n.$$.fragment,a),i=!1},d(a){$t(s,a),a&&b(e),a&&b(t),E(n)}}}function Wq(r){let e;return{c(){e=U(`Provide a sample JSON blob here to automatically determine your
|
|
387
|
+
<a href="https://handlebarsjs.com/guide/" class="svelte-14vef82">here</a>
|
|
388
|
+
for more details.`,y(e,"class","syntax-error svelte-14vef82")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cq(r){let e,t,n,i,l;function s(u){r[23](u)}let o={value:r[6],placeholder:"Add text, or click the objects on the left to add them to the textbox."};r[4]!==void 0&&(o.getCaretPosition=r[4]),t=new Zr({props:o}),K.push(()=>ce(t,"getCaretPosition",s)),t.$on("change",r[14]);let a=!r[0]&&Lv();return{c(){e=D("div"),S(t.$$.fragment),i=R(),a&&a.c(),y(e,"class","main-content svelte-14vef82")},m(u,f){$(u,e,f),A(t,e,null),N(e,i),a&&a.m(e,null),l=!0},p(u,f){const c={};f[0]&64&&(c.value=u[6]),!n&&f[0]&16&&(n=!0,c.getCaretPosition=u[4],pe(()=>n=!1)),t.$set(c),u[0]?a&&(a.d(1),a=null):a||(a=Lv(),a.c(),a.m(e,null))},i(u){l||(m(t.$$.fragment,u),l=!0)},o(u){_(t.$$.fragment,u),l=!1},d(u){u&&b(e),E(t),a&&a.d()}}}function Pv(r){let e,t;return e=new $n({props:{title:"JavaScript",$$slots:{default:[Eq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&304|i[1]&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 Sq(r){let e;return{c(){e=U(`JavaScript expressions are executed as functions, so ensure that
|
|
389
|
+
your expression returns a value.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Aq(r){let e,t,n,i,l;function s(a){r[24](a)}let o={height:200,value:jf(r[5]),hints:r[8]};return r[4]!==void 0&&(o.getCaretPosition=r[4]),e=new Kf({props:o}),K.push(()=>ce(e,"getCaretPosition",s)),e.$on("change",r[15]),i=new Qe({props:{size:"S",$$slots:{default:[Sq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment)},m(a,u){A(e,a,u),$(a,n,u),A(i,a,u),l=!0},p(a,u){const f={};u[0]&32&&(f.value=jf(a[5])),u[0]&256&&(f.hints=a[8]),!t&&u[0]&16&&(t=!0,f.getCaretPosition=a[4],pe(()=>t=!1)),e.$set(f);const c={};u[1]&128&&(c.$$scope={dirty:u,ctx:a}),i.$set(c)},i(a){l||(m(e.$$.fragment,a),m(i.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(i.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(n),E(i,a)}}}function Eq(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[Aq]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(e,"class","main-content svelte-14vef82")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&304|l[1]&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 Oq(r){let e,t,n,i;e=new $n({props:{title:"Handlebars",$$slots:{default:[Cq]},$$scope:{ctx:r}}});let l=r[1]&&Pv(r);return{c(){S(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},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[0]&81|o[1]&128&&(a.$$scope={dirty:o,ctx:s}),e.$set(a),s[1]?l?(l.p(s,o),o[0]&2&&m(l,1)):(l=Pv(s),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(te(),_(l,1,1,()=>{l=null}),ne())},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 Tq(r){let e,t,n;return t=new Wr({props:{selected:r[3],$$slots:{default:[Oq]},$$scope:{ctx:r}}}),t.$on("select",r[13]),{c(){e=D("div"),S(t.$$.fragment),y(e,"class","main svelte-14vef82")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l[0]&8&&(s.selected=i[3]),l[0]&371|l[1]&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 Nv(r){let e,t,n=r[32].name+"",i,l,s,o=r[32].bindings,a=[];for(let u=0;u<o.length;u+=1)a[u]=Dv(Iv(r,o,u));return{c(){e=D("section"),t=D("div"),i=U(n),l=R(),s=D("ul");for(let u=0;u<a.length;u+=1)a[u].c();y(t,"class","heading svelte-14vef82"),y(s,"class","svelte-14vef82"),y(e,"class","svelte-14vef82")},m(u,f){$(u,e,f),N(e,t),N(t,i),N(e,l),N(e,s);for(let c=0;c<a.length;c+=1)a[c].m(s,null)},p(u,f){if(f[0]&1024&&n!==(n=u[32].name+"")&&Le(i,n),f[0]&5120){o=u[32].bindings;let c;for(c=0;c<o.length;c+=1){const p=Iv(u,o,c);a[c]?a[c].p(p,f):(a[c]=Dv(p),a[c].c(),a[c].m(s,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=o.length}},d(u){u&&b(e),$t(a,u)}}}function Rv(r){let e,t=r[35].type+"",n;return{c(){e=D("span"),n=U(t),y(e,"class","binding__type svelte-14vef82")},m(i,l){$(i,e,l),N(e,n)},p(i,l){l[0]&1024&&t!==(t=i[35].type+"")&&Le(n,t)},d(i){i&&b(e)}}}function Mv(r){let e,t,n,i=(r[35].description||"")+"",l;return{c(){e=D("br"),t=R(),n=D("div"),l=U(i),y(n,"class","binding__description svelte-14vef82")},m(s,o){$(s,e,o),$(s,t,o),$(s,n,o),N(n,l)},p(s,o){o[0]&1024&&i!==(i=(s[35].description||"")+"")&&Le(l,i)},d(s){s&&b(e),s&&b(t),s&&b(n)}}}function Dv(r){let e,t,n=r[35].readableBinding+"",i,l,s,o,a,u=r[35].type&&Rv(r),f=r[35].description&&Mv(r);function c(){return r[21](r[35])}return{c(){e=D("li"),t=D("span"),i=U(n),l=R(),u&&u.c(),s=R(),f&&f.c(),y(t,"class","binding__label svelte-14vef82"),y(e,"class","svelte-14vef82")},m(p,d){$(p,e,d),N(e,t),N(t,i),N(e,l),u&&u.m(e,null),N(e,s),f&&f.m(e,null),o||(a=Pe(e,"click",c),o=!0)},p(p,d){r=p,d[0]&1024&&n!==(n=r[35].readableBinding+"")&&Le(i,n),r[35].type?u?u.p(r,d):(u=Rv(r),u.c(),u.m(e,s)):u&&(u.d(1),u=null),r[35].description?f?f.p(r,d):(f=Mv(r),f.c(),f.m(e,null)):f&&(f.d(1),f=null)},d(p){p&&b(e),u&&u.d(),f&&f.d(),o=!1,a()}}}function jv(r){var n;let e,t=((n=r[32].bindings)==null?void 0:n.length)&&Nv(r);return{c(){t&&t.c(),e=Oe()},m(i,l){t&&t.m(i,l),$(i,e,l)},p(i,l){var s;((s=i[32].bindings)==null?void 0:s.length)?t?t.p(i,l):(t=Nv(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&b(e)}}}function Bv(r){let e,t,n,i,l=r[9],s=[];for(let o=0;o<l.length;o+=1)s[o]=zv(Ov(r,l,o));return{c(){e=D("section"),t=D("div"),t.textContent="Helpers",n=R(),i=D("ul");for(let o=0;o<s.length;o+=1)s[o].c();y(t,"class","heading svelte-14vef82"),y(i,"class","svelte-14vef82"),y(e,"class","svelte-14vef82")},m(o,a){$(o,e,a),N(e,t),N(e,n),N(e,i);for(let u=0;u<s.length;u+=1)s[u].m(i,null)},p(o,a){if(a[0]&2560){l=o[9];let u;for(u=0;u<l.length;u+=1){const f=Ov(o,l,u);s[u]?s[u].p(f,a):(s[u]=zv(f),s[u].c(),s[u].m(i,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=l.length}},d(o){o&&b(e),$t(s,o)}}}function zv(r){let e,t,n,i=r[29].displayText+"",l,s,o,a=r[29].description+"",u,f,c=(r[29].example||"")+"",p,d,g,h;function v(){return r[22](r[29])}return{c(){e=D("li"),t=D("div"),n=D("div"),l=U(i),s=R(),o=D("div"),u=R(),f=D("pre"),p=U(c),d=R(),y(n,"class","helper__name svelte-14vef82"),y(o,"class","helper__description svelte-14vef82"),y(f,"class","helper__example svelte-14vef82"),y(t,"class","helper svelte-14vef82"),y(e,"class","svelte-14vef82")},m(C,w){$(C,e,w),N(e,t),N(t,n),N(n,l),N(t,s),N(t,o),o.innerHTML=a,N(t,u),N(t,f),N(f,p),N(e,d),g||(h=Pe(e,"click",v),g=!0)},p(C,w){r=C,w[0]&512&&i!==(i=r[29].displayText+"")&&Le(l,i),w[0]&512&&a!==(a=r[29].description+"")&&(o.innerHTML=a),w[0]&512&&c!==(c=(r[29].example||"")+"")&&Le(p,c)},d(C){C&&b(e),g=!1,h()}}}function Iq(r){var h;let e,t,n,i,l,s,o,a,u;function f(v){r[20](v)}let c={placeholder:"Search"};r[2]!==void 0&&(c.value=r[2]),l=new Bf({props:c}),K.push(()=>ce(l,"value",f));let p=r[10],d=[];for(let v=0;v<p.length;v+=1)d[v]=jv(Tv(r,p,v));let g=((h=r[9])==null?void 0:h.length)&&!r[7]&&Bv(r);return{c(){e=D("div"),t=D("section"),n=D("div"),n.textContent="Search",i=R(),S(l.$$.fragment),o=R();for(let v=0;v<d.length;v+=1)d[v].c();a=R(),g&&g.c(),y(n,"class","heading svelte-14vef82"),y(t,"class","svelte-14vef82"),y(e,"class","container svelte-14vef82")},m(v,C){$(v,e,C),N(e,t),N(t,n),N(t,i),A(l,t,null),N(e,o);for(let w=0;w<d.length;w+=1)d[w].m(e,null);N(e,a),g&&g.m(e,null),u=!0},p(v,C){var I;const w={};if(!s&&C[0]&4&&(s=!0,w.value=v[2],pe(()=>s=!1)),l.$set(w),C[0]&5120){p=v[10];let T;for(T=0;T<p.length;T+=1){const O=Tv(v,p,T);d[T]?d[T].p(O,C):(d[T]=jv(O),d[T].c(),d[T].m(e,a))}for(;T<d.length;T+=1)d[T].d(1);d.length=p.length}((I=v[9])==null?void 0:I.length)&&!v[7]?g?g.p(v,C):(g=Bv(v),g.c(),g.m(e,null)):g&&(g.d(1),g=null)},i(v){u||(m(l.$$.fragment,v),u=!0)},o(v){_(l.$$.fragment,v),u=!1},d(v){v&&b(e),E(l),$t(d,v),g&&g.d()}}}function Lq(r){let e,t;return e=new Si({props:{$$slots:{sidebar:[Iq],default:[Tq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&2047|i[1]&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 Pq(r,e,t){let n,i,l,s,o,a;const u=_t();let{bindings:f}=e,{value:c=""}=e,{valid:p}=e,{allowJS:d=!1}=e,g=bq(),h,v="",C=c==null?void 0:c.startsWith("{{ js "),w=C?"JavaScript":"Handlebars",I=C?c:null,T=C?null:c;const O=G=>{t(0,p=Tb(As(f,G))),p&&u("change",G)},P=G=>{t(6,T=Av(T,h(),G.text)),O(T)},M=G=>{if(n){let Q=jf(I);Q=vq(Q,h(),G.readableBinding),t(5,I=t1(Q)),O(I)}else t(6,T=Av(T,h(),G.readableBinding)),O(T)},H=G=>{t(3,w=G.detail),O(w==="JavaScript"?I:T)},j=G=>{t(6,T=G.detail),O(T)},z=G=>{t(5,I=t1(G.detail)),O(I)};Gt(()=>{t(0,p=Tb(As(f,c)))});function q(G){v=G,t(2,v)}const V=G=>M(G),Y=G=>P(G);function F(G){h=G,t(4,h)}function W(G){h=G,t(4,h)}return r.$$set=G=>{"bindings"in G&&t(16,f=G.bindings),"value"in G&&t(17,c=G.value),"valid"in G&&t(0,p=G.valid),"allowJS"in G&&t(1,d=G.allowJS)},r.$$.update=()=>{r.$$.dirty[0]&8&&t(7,n=w==="JavaScript"),r.$$.dirty[0]&4&&t(18,i=new RegExp(v,"ig")),r.$$.dirty[0]&65536&&t(19,l=Object.entries(fS("category",f))),r.$$.dirty[0]&786432&&t(10,s=l.map(([G,Q])=>({name:G,bindings:Q==null?void 0:Q.filter(fe=>fe.readableBinding.match(i))})).filter(G=>{var Q;return((Q=G.bindings)==null?void 0:Q.length)>0})),r.$$.dirty[0]&262144&&t(9,o=g==null?void 0:g.filter(G=>G.label.match(i)||G.description.match(i))),r.$$.dirty[0]&65536&&t(8,a=f==null?void 0:f.map(G=>`$("${G.readableBinding}")`))},[p,d,v,w,h,I,T,n,a,o,s,P,M,H,j,z,f,c,i,l,q,V,Y,F,W]}class qv extends ie{constructor(e){super();le(this,e,Pq,Lq,re,{bindings:16,value:17,valid:0,allowJS:1},null,[-1,-1])}}function Nq(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 qv({props:l}),K.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 Rq(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.map(p=>rt(Ae({},p),{readableBinding:p.label||p.readableBinding,runtimeBinding:p.path||p.runtimeBinding}));function u(c){l=c,t(0,l)}function f(c){ft.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 xi extends ie{constructor(e){super();le(this,e,Rq,Nq,re,{bindings:4,valid:0,value:1,allowJS:2})}}function Mq(r){let e;return{c(){e=U("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Dq(r){let e,t,n,i,l,s;e=new Qe({props:{extraSmall:!0,grey:!0,$$slots:{default:[Mq]},$$scope:{ctx:r}}});function o(f){r[15](f)}var a=r[0];function u(f){let c={serverSide:!0,value:f[6],bindings:f[1],allowJS:f[5]};return f[8]!==void 0&&(c.valid=f[8]),{props:c}}return a&&(i=new a(u(r)),K.push(()=>ce(i,"valid",o)),i.$on("change",r[16])),{c(){S(e.$$.fragment),t=R(),n=D("div"),i&&S(i.$$.fragment),y(n,"class","panel-wrapper svelte-hfpg62")},m(f,c){A(e,f,c),$(f,t,c),$(f,n,c),i&&A(i,n,null),s=!0},p(f,c){const p={};c&524288&&(p.$$scope={dirty:c,ctx:f}),e.$set(p);const d={};if(c&64&&(d.value=f[6]),c&2&&(d.bindings=f[1]),c&32&&(d.allowJS=f[5]),!l&&c&256&&(l=!0,d.valid=f[8],pe(()=>l=!1)),a!==(a=f[0])){if(i){te();const g=i;_(g.$$.fragment,1,0,()=>{E(g,1)}),ne()}a?(i=new a(u(f)),K.push(()=>ce(i,"valid",o)),i.$on("change",f[16]),S(i.$$.fragment),m(i.$$.fragment,1),A(i,n,null)):i=null}else a&&i.$set(d)},i(f){s||(m(e.$$.fragment,f),i&&m(i.$$.fragment,f),s=!0)},o(f){_(e.$$.fragment,f),i&&_(i.$$.fragment,f),s=!1},d(f){E(e,f),f&&b(t),f&&b(n),i&&E(i)}}}function jq(r){let e,t;return e=new Dt({props:{title:r[2],onConfirm:r[11],disabled:!r[8],size:"XL",$$slots:{default:[Dq]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.title=n[2]),i&256&&(l.disabled=!n[8]),i&525155&&(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 Bq(r){let e,t,n,i,l,s,o,a,u,f;t=new et({props:{label:r[4],readonly:r[10],value:r[10]?"(JavaScript function)":r[6],placeholder:r[3]}}),t.$on("change",r[14]),l=new ct({props:{size:"S",name:"FlashOn"}});let c={$$slots:{default:[jq]},$$scope:{ctx:r}};return o=new Et({props:c}),r[17](o),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),s=R(),S(o.$$.fragment),y(i,"class","icon svelte-hfpg62"),y(e,"class","control svelte-hfpg62")},m(p,d){$(p,e,d),A(t,e,null),N(e,n),N(e,i),A(l,i,null),$(p,s,d),A(o,p,d),a=!0,u||(f=Pe(i,"click",function(){mt(r[7].show)&&r[7].show.apply(this,arguments)}),u=!0)},p(p,[d]){r=p;const g={};d&16&&(g.label=r[4]),d&1024&&(g.readonly=r[10]),d&1088&&(g.value=r[10]?"(JavaScript function)":r[6]),d&8&&(g.placeholder=r[3]),t.$set(g);const h={};d&525159&&(h.$$scope={dirty:d,ctx:r}),o.$set(h)},i(p){a||(m(t.$$.fragment,p),m(l.$$.fragment,p),m(o.$$.fragment,p),a=!0)},o(p){_(t.$$.fragment,p),_(l.$$.fragment,p),_(o.$$.fragment,p),a=!1},d(p){p&&b(e),E(t),E(l),p&&b(s),r[17](null),E(o,p),u=!1,f()}}}function zq(r,e,t){let n,i,l,{panel:s=xi}=e,{value:o=""}=e,{bindings:a=[]}=e,{title:u="Bindings"}=e,{placeholder:f}=e,{label:c}=e,{allowJS:p=!1}=e;const d=_t();let g,h=!0;const v=()=>{C(i),g.hide()},C=P=>{d("change",As(a,P))},w=P=>C(P.detail);function I(P){h=P,t(8,h)}const T=P=>t(9,i=P.detail);function O(P){K[P?"unshift":"push"](()=>{g=P,t(7,g)})}return r.$$set=P=>{"panel"in P&&t(0,s=P.panel),"value"in P&&t(13,o=P.value),"bindings"in P&&t(1,a=P.bindings),"title"in P&&t(2,u=P.title),"placeholder"in P&&t(3,f=P.placeholder),"label"in P&&t(4,c=P.label),"allowJS"in P&&t(5,p=P.allowJS)},r.$$.update=()=>{r.$$.dirty&8194&&t(6,n=_o(a,o)),r.$$.dirty&64&&t(9,i=n),r.$$.dirty&8192&&t(10,l=Df(o))},[s,a,u,f,c,p,n,g,h,i,l,v,C,o,w,I,T,O]}class $1 extends ie{constructor(e){super();le(this,e,zq,Bq,re,{panel:0,value:13,bindings:1,title:2,placeholder:3,label:4,allowJS:5})}}const Fv=1,qq="internal",Fq=[jt.FORMULA.type,jt.LONGFORM.type,jt.ATTACHMENT.type,qq];function Uv({table:r,path:e=null,category:t=null,depth:n=0}){let i=[];if(!r)return i;for(let[l,s]of Object.entries(r.schema)){const o=s.type===jt.LINK.type;if(Fq.includes(s.type)||o&&n>=Fv)continue;if(t=t==null?`${r.name} Fields`:t,o&&n<Fv){const c=lt(Ot).list.find(d=>d._id===s.tableId),p=i.concat(Uv({table:c,path:l,category:`${l} Relationships`,depth:n+1}));i=i.concat(p.filter(d=>!i.find(g=>g.path===d.path)))}const a=Object.values(jt).find(c=>c.type===s.type),u=e==null?l:`${e}.0.${l}`,f=e==null?void 0:'Update the "0" with the index of relationships or use array helpers';i.push({label:u,type:a.name===jt.LINK.name?"Array":a.name,category:t,path:u,description:f,readableBinding:l,runtimeBinding:`[${l}]`})}return i}function Vv(r){if(r==="string")return{type:jt.STRING.type};if(r==="boolean")return{type:jt.BOOLEAN.type};if(r==="number")return{type:jt.NUMBER.type}}function b1(r={},e){if(!e)return null;const t=typeof e;if(t!=="object")return Vv(t);for(let[n,i]of Object.entries(e)){const l=typeof i;if(Array.isArray(i)){const s=b1(r[n],i[0]);s&&(r[n]={type:jt.ARRAY.type,schema:s})}else if(l==="object"){const s=b1(r[n],e[n]);s&&(r[n]=s)}else r[n]=Vv(l)}return r.type?r:{type:jt.JSON.type,schema:r}}function Uq(r){return b1({},r).schema}function Hv(r,e,t){const n=r.slice();return n[17]=e[t],n[18]=e,n[19]=t,n}function Wv(r){let e,t,n,i,l,s,o,a,u;function f(h){r[10](h,r[19])}let c={outline:!0,label:"Key"};r[2][r[19]]!==void 0&&(c.value=r[2][r[19]]),t=new et({props:c}),K.push(()=>ce(t,"value",f));function p(h){r[11](h,r[19])}let d={label:"Type",options:r[5],getOptionValue:Zq,getOptionLabel:xq};r[3][r[19]]!==void 0&&(d.value=r[3][r[19]]),l=new Je({props:d}),K.push(()=>ce(l,"value",p));function g(){return r[12](r[19])}return a=new Yt({props:{icon:"Close",quiet:!0}}),a.$on("click",g),{c(){e=D("div"),S(t.$$.fragment),i=R(),S(l.$$.fragment),o=R(),S(a.$$.fragment),y(e,"class","horizontal svelte-1foeviw")},m(h,v){$(h,e,v),A(t,e,null),N(e,i),A(l,e,null),N(e,o),A(a,e,null),u=!0},p(h,v){r=h;const C={};!n&&v&4&&(n=!0,C.value=r[2][r[19]],pe(()=>n=!1)),t.$set(C);const w={};!s&&v&8&&(s=!0,w.value=r[3][r[19]],pe(()=>s=!1)),l.$set(w)},i(h){u||(m(t.$$.fragment,h),m(l.$$.fragment,h),m(a.$$.fragment,h),u=!0)},o(h){_(t.$$.fragment,h),_(l.$$.fragment,h),_(a.$$.fragment,h),u=!1},d(h){h&&b(e),E(t),E(l),E(a)}}}function Vq(r){let e;return{c(){e=U("Add Field")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hq(r){let e,t,n,i,l=Array(r[1]),s=[];for(let a=0;a<l.length;a+=1)s[a]=Wv(Hv(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return n=new ut({props:{primary:!0,text:!0,$$slots:{default:[Vq]},$$scope:{ctx:r}}}),n.$on("click",r[13]),{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=R(),t=D("div"),S(n.$$.fragment),y(t,"class","svelte-1foeviw"),oe(t,"add-field-btn",r[1]!==0)},m(a,u){for(let f=0;f<s.length;f+=1)s[f].m(a,u);$(a,e,u),$(a,t,u),A(n,t,null),i=!0},p(a,u){if(u&302){l=Array(a[1]);let c;for(c=0;c<l.length;c+=1){const p=Hv(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=Wv(p),s[c].c(),m(s[c],1),s[c].m(e.parentNode,e))}for(te(),c=l.length;c<s.length;c+=1)o(c);ne()}const f={};u&1048576&&(f.$$scope={dirty:u,ctx:a}),n.$set(f),u&2&&oe(t,"add-field-btn",a[1]!==0)},i(a){if(!i){for(let u=0;u<l.length;u+=1)m(s[u]);m(n.$$.fragment,a),i=!0}},o(a){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);_(n.$$.fragment,a),i=!1},d(a){$t(s,a),a&&b(e),a&&b(t),E(n)}}}function Wq(r){let e;return{c(){e=U(`Provide a sample JSON blob here to automatically determine your
|
|
390
390
|
schema.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Gq(r){let e,t,n,i;return e=new Qe({props:{size:"S",$$slots:{default:[Wq]},$$scope:{ctx:r}}}),n=new xl({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 Yq(r){let e,t;return e=new Xe({props:{noPadding:!0,gap:"XS",$$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&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 Jq(r){let e,t,n,i;return e=new $n({props:{title:"Form",$$slots:{default:[Hq]},$$scope:{ctx:r}}}),n=new $n({props:{title:"JSON",$$slots:{default:[Yq]},$$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 Qq(r){let e,t;return e=new Wr({props:{selected:Kq,noPadding:!0,$$slots:{default:[Jq]},$$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 Xq(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:[Qq]},$$scope:{ctx:r}};return r[4]!==void 0&&(l.disabled=r[4]),e=new Dt({props:l}),K.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 Kq="Form";const Zq=r=>r.value,xq=r=>r.label;function eF(r,e,t){let{schema:n={}}=e,{json:i}=e,l=_t(),s=0,o=[],a=[],u=[{label:"String",value:jt.STRING.type},{label:"Number",value:jt.NUMBER.type},{label:"Boolean",value:jt.BOOLEAN.type},{label:"Object",value:jt.JSON.type},{label:"Array",value:jt.ARRAY.type}],f=!1;async function c({detail:T}){const O=T.value;t(0,i=O);try{let P=JSON.parse(O);t(9,n=Uq(P)),p(),t(4,f=!1)}catch{t(4,f=!0)}}function p(){n||t(9,n={});const T=Object.entries(n).filter(([O])=>!o.includes(O));for(let[O,P]of T)o.push(O),a.push(P.type);t(1,s=o.length)}function d(){const T={};for(let[O,P]of o.entries())T[P]=rt(Ae({},n[P]),{type:a[O]});l("save",{schema:T,json:i}),t(9,n=T)}function g(T){const O=o[T];if(o[T+1]!=null&&(t(2,o[T]=o[T+1],o),t(3,a[T]=a[T+1],a)),o.splice(T,1),a.splice(T,1),t(1,s--,s),i)try{const P=JSON.parse(i);delete P[O],t(0,i=JSON.stringify(P,null,2))}catch{}}Gt(()=>{p()});function h(T,O){r.$$.not_equal(o[O],T)&&(o[O]=T,t(2,o))}function v(T,O){r.$$.not_equal(a[O],T)&&(a[O]=T,t(3,a))}const C=T=>g(T),w=()=>t(1,s++,s);function I(T){f=T,t(4,f)}return r.$$set=T=>{"schema"in T&&t(9,n=T.schema),"json"in T&&t(0,i=T.json)},[i,s,o,a,f,u,c,d,g,n,h,v,C,w,I]}class tF extends ie{constructor(e){super();le(this,e,eF,Xq,re,{schema:9,json:0})}}function Gv(r){let e,t,n,i=r[13]&&Yv(r),l=r[14]&&Jv(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=Yv(s),i.c(),m(i,1),i.m(e,t)):i&&(te(),_(i,1,1,()=>{i=null}),ne()),s[14]?l?(l.p(s,o),o[0]&16384&&m(l,1)):(l=Jv(s),l.c(),m(l,1),l.m(e,null)):l&&(te(),_(l,1,1,()=>{l=null}),ne())},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 Yv(r){let e,t;return e=new Vn({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 Jv(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 Vn({props:l}),K.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 Qv(r){let e,t,n,i,l,s,o;return t=new Ke({props:{$$slots:{default:[nF]},$$scope:{ctx:r}}}),i=new Vn({props:{value:r[4][0]===r[0].name,disabled:r[4][1]===r[0].name,text:"Primary"}}),i.$on("change",r[29]),s=new Vn({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 nF(r){let e;return{c(){e=U("Search Indexes")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rF(r){let e,t;return e=new ut({props:{primary:!0,text:!0,$$slots:{default:[dF]},$$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 iF(r){let e,t;return e=new Je({props:{label:"Auto column type",value:r[0].subtype,options:Object.entries(kv()),getOptionLabel:IF,getOptionValue:LF}}),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 lF(r){let e,t,n,i=!r[22].sql&&mF(r);return t=new $1({props:{title:"Formula",label:"Formula",value:r[0].formula,bindings:Uv({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 sF(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:CF,getOptionValue:SF};r[0].tableId!==void 0&&(u.value=r[0].tableId),e=new Je({props:u}),K.push(()=>ce(e,"value",a));let f=r[12]&&r[12].length>0&&Xv(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 et({props:p}),K.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=Xv(d),f.c(),m(f,1),f.m(i.parentNode,i)):f&&(te(),_(f,1,1,()=>{f=null}),ne());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 oF(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 et({props:a}),K.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 et({props:f}),K.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 aF(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 Ml({props:a}),K.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 Ml({props:f}),K.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 uF(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 Sv({props:l}),K.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 fF(r){let e,t,n,i,l,s;t=new Ke({props:{size:"M",tooltip:"Rich text includes support for images, links, tables, lists and more",$$slots:{default:[gF]},$$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 Vn({props:a}),K.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 cF(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 Sv({props:l}),K.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 pF(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 et({props:l}),K.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 dF(r){let e;return{c(){e=U("Open schema editor")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function mF(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:OF,getOptionValue:TF,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 Je({props:l}),K.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 Xv(r){let e,t,n;function i(s){r[48](s)}let l={disabled:r[21],label:"Define the relationship",options:r[12],getOptionLabel:AF,getOptionValue:EF};return r[0].relationshipType!==void 0&&(l.value=r[0].relationshipType),e=new yp({props:l}),K.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 gF(r){let e;return{c(){e=U("Formatting")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function _F(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 et({props:g}),K.push(()=>ce(e,"value",d));function h(M){r[37](M)}let v={disabled:!r[11],label:"Type",options:r[34](),getOptionLabel:yF,getOptionValue:kF};r[0].type!==void 0&&(v.value=r[0].type),i=new Je({props:v}),K.push(()=>ce(i,"value",h)),i.$on("change",r[26]);let C=(r[13]||r[14])&&Gv(r),w=r[15]&&!r[8]&&Qv(r);const I=[pF,cF,fF,uF,aF,oF,sF,lF,iF,rF],T=[];function O(M,H){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===Ta?8:M[0].type===M[19]?9:-1}return~(u=O(r))&&(f=T[u]=I[u](r)),{c(){S(e.$$.fragment),n=R(),S(i.$$.fragment),s=R(),C&&C.c(),o=R(),w&&w.c(),a=R(),f&&f.c(),c=Oe()},m(M,H){A(e,M,H),$(M,n,H),A(i,M,H),$(M,s,H),C&&C.m(M,H),$(M,o,H),w&&w.m(M,H),$(M,a,H),~u&&T[u].m(M,H),$(M,c,H),p=!0},p(M,H){var V;const j={};H[0]&5&&(j.disabled=M[2]||M[21]&&M[0].type===M[18]),H[0]&8&&(j.error=(V=M[3])==null?void 0:V.name),!t&&H[0]&1&&(t=!0,j.value=M[0].name,pe(()=>t=!1)),e.$set(j);const z={};H[0]&2048&&(z.disabled=!M[11]),!l&&H[0]&1&&(l=!0,z.value=M[0].type,pe(()=>l=!1)),i.$set(z),M[13]||M[14]?C?(C.p(M,H),H[0]&24576&&m(C,1)):(C=Gv(M),C.c(),m(C,1),C.m(o.parentNode,o)):C&&(te(),_(C,1,1,()=>{C=null}),ne()),M[15]&&!M[8]?w?(w.p(M,H),H[0]&33024&&m(w,1)):(w=Qv(M),w.c(),m(w,1),w.m(a.parentNode,a)):w&&(te(),_(w,1,1,()=>{w=null}),ne());let q=u;u=O(M),u===q?~u&&T[u].p(M,H):(f&&(te(),_(T[q],1,1,()=>{T[q]=null}),ne()),~u?(f=T[u],f?f.p(M,H):(f=T[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(w),m(f),p=!0)},o(M){_(e.$$.fragment,M),_(i.$$.fragment,M),_(C),_(w),_(f),p=!1},d(M){E(e,M),M&&b(n),E(i,M),M&&b(s),C&&C.d(M),M&&b(o),w&&w.d(M),M&&b(a),~u&&T[u].d(M),M&&b(c)}}}function Kv(r){let e,t;return e=new ut({props:{warning:!0,text:!0,$$slots:{default:[hF]},$$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 hF(r){let e;return{c(){e=U("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $F(r){let e,t,n=!r[2]&&r[20]!=null&&Kv(r);return{c(){e=D("div"),n&&n.c(),y(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=Kv(i),n.c(),m(n,1),n.m(e,null)):n&&(te(),_(n,1,1,()=>{n=null}),ne())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){i&&b(e),n&&n.d()}}}function bF(r){let e,t;return e=new tF({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 vF(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 et({props:f}),K.push(()=>ce(s,"value",u)),{c(){e=D("p"),t=U("Are you sure you wish to delete the column "),n=D("b"),n.textContent=`${r[20]}?`,i=U(`
|
|
392
392
|
Your data will be deleted and this action cannot be undone - enter the column
|
|
@@ -1222,7 +1222,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1222
1222
|
You can always add or override fields manually.`)},m(i,l){$(i,e,l),$(i,t,l),$(i,n,l)},d(i){i&&b(e),i&&b(t),i&&b(n)}}}function hne(r){let e;return{c(){e=U("Data Source")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $ne(r){let e;return{c(){e=U("Duplicate to Table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ew(r){let e,t,n,i,l;e=new Ke({props:{small:!0,$$slots:{default:[bne]},$$scope:{ctx:r}}});function s(a){r[14](a)}let o={placeholder:"Are you sure you want to duplicate this row?"};return r[0].confirmText!==void 0&&(o.value=r[0].confirmText),n=new et({props:o}),K.push(()=>ce(n,"value",s)),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(a,u){A(e,a,u),$(a,t,u),A(n,a,u),l=!0},p(a,u){const f={};u&262144&&(f.$$scope={dirty:u,ctx:a}),e.$set(f);const c={};!i&&u&1&&(i=!0,c.value=a[0].confirmText,pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){E(e,a),a&&b(t),E(n,a)}}}function bne(r){let e;return{c(){e=U("Confirm text")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tw(r){let e,t,n;return t=new E1({props:{parameterFields:r[0].fields,schemaFields:r[3],bindings:r[1]}}),t.$on("change",r[5]),{c(){e=D("div"),S(t.$$.fragment),y(e,"class","fields svelte-1wlyndf")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p(i,l){const s={};l&1&&(s.parameterFields=i[0].fields),l&8&&(s.schemaFields=i[3]),l&2&&(s.bindings=i[1]),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function vne(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I,T,O;t=new Qe({props:{size:"S",$$slots:{default:[_ne]},$$scope:{ctx:r}}}),l=new Ke({props:{small:!0,$$slots:{default:[hne]},$$scope:{ctx:r}}});function P(F){r[11](F)}let M={options:r[4],placeholder:"None"};r[0].providerId!==void 0&&(M.value=r[0].providerId),o=new Je({props:M}),K.push(()=>ce(o,"value",P)),f=new Ke({props:{small:!0,$$slots:{default:[$ne]},$$scope:{ctx:r}}});function H(F){r[12](F)}let j={options:r[2],getOptionLabel:wne,getOptionValue:yne};r[0].tableId!==void 0&&(j.value=r[0].tableId),p=new Je({props:j}),K.push(()=>ce(p,"value",H)),h=new Ke({props:{small:!0}});function z(F){r[13](F)}let q={text:"Require confirmation"};r[0].confirm!==void 0&&(q.value=r[0].confirm),C=new ei({props:q}),K.push(()=>ce(C,"value",z));let V=r[0].confirm&&ew(r),Y=r[0].tableId&&tw(r);return{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),s=R(),S(o.$$.fragment),u=R(),S(f.$$.fragment),c=R(),S(p.$$.fragment),g=R(),S(h.$$.fragment),v=R(),S(C.$$.fragment),I=R(),V&&V.c(),T=R(),Y&&Y.c(),y(i,"class","params svelte-1wlyndf"),y(e,"class","root svelte-1wlyndf")},m(F,W){$(F,e,W),A(t,e,null),N(e,n),N(e,i),A(l,i,null),N(i,s),A(o,i,null),N(i,u),A(f,i,null),N(i,c),A(p,i,null),N(i,g),A(h,i,null),N(i,v),A(C,i,null),N(i,I),V&&V.m(i,null),N(e,T),Y&&Y.m(e,null),O=!0},p(F,[W]){const G={};W&262144&&(G.$$scope={dirty:W,ctx:F}),t.$set(G);const Q={};W&262144&&(Q.$$scope={dirty:W,ctx:F}),l.$set(Q);const fe={};W&16&&(fe.options=F[4]),!a&&W&1&&(a=!0,fe.value=F[0].providerId,pe(()=>a=!1)),o.$set(fe);const Z={};W&262144&&(Z.$$scope={dirty:W,ctx:F}),f.$set(Z);const ee={};W&4&&(ee.options=F[2]),!d&&W&1&&(d=!0,ee.value=F[0].tableId,pe(()=>d=!1)),p.$set(ee);const ae={};!w&&W&1&&(w=!0,ae.value=F[0].confirm,pe(()=>w=!1)),C.$set(ae),F[0].confirm?V?(V.p(F,W),W&1&&m(V,1)):(V=ew(F),V.c(),m(V,1),V.m(i,null)):V&&(te(),_(V,1,1,()=>{V=null}),ne()),F[0].tableId?Y?(Y.p(F,W),W&1&&m(Y,1)):(Y=tw(F),Y.c(),m(Y,1),Y.m(e,null)):Y&&(te(),_(Y,1,1,()=>{Y=null}),ne())},i(F){O||(m(t.$$.fragment,F),m(l.$$.fragment,F),m(o.$$.fragment,F),m(f.$$.fragment,F),m(p.$$.fragment,F),m(h.$$.fragment,F),m(C.$$.fragment,F),m(V),m(Y),O=!0)},o(F){_(t.$$.fragment,F),_(l.$$.fragment,F),_(o.$$.fragment,F),_(f.$$.fragment,F),_(p.$$.fragment,F),_(h.$$.fragment,F),_(C.$$.fragment,F),_(V),_(Y),O=!1},d(F){F&&b(e),E(t),E(l),E(o),E(f),E(p),E(h),E(C),V&&V.d(),Y&&Y.d()}}}const wne=r=>r.name,yne=r=>r._id;function kne(r,e,t){let n,i,l,s,o,a,u,f;ue(r,Ot,O=>t(8,a=O)),ue(r,mn,O=>t(9,u=O)),ue(r,Ge,O=>t(10,f=O));let{parameters:c}=e,{bindings:p=[]}=e;const d=(O,P)=>{const M=Ge.actions.components.getDefinition(O==null?void 0:O._component);return M?(Array.isArray(M.context)?M.context:[M.context]).find(j=>(j==null?void 0:j.type)===P):null},g=(O,P)=>{const M=O.map(z=>({component:z,context:d(z,"form")})),H=P.map(z=>({component:z,context:d(z,"schema")}));return M.concat(H).map(({component:z,context:q})=>{let V=z._id;return q.suffix&&(V+=`-${q.suffix}`),{label:z._instanceName,value:V}})},h=(O,P)=>{const{schema:M}=Hf(P);return delete M._id,delete M._rev,Object.values(M||{})},v=O=>{t(0,c.fields=O.detail,c)};function C(O){r.$$.not_equal(c.providerId,O)&&(c.providerId=O,t(0,c))}function w(O){r.$$.not_equal(c.tableId,O)&&(c.tableId=O,t(0,c))}function I(O){r.$$.not_equal(c.confirm,O)&&(c.confirm=O,t(0,c))}function T(O){r.$$.not_equal(c.confirmText,O)&&(c.confirmText=O,t(0,c))}return r.$$set=O=>{"parameters"in O&&t(0,c=O.parameters),"bindings"in O&&t(1,p=O.bindings)},r.$$.update=()=>{r.$$.dirty&1536&&t(7,n=go(u,f.selectedComponentId,"form")),r.$$.dirty&1536&&t(6,i=go(u,f.selectedComponentId,"schema")),r.$$.dirty&192&&t(4,l=g(n,i)),r.$$.dirty&513&&t(3,s=h(u,c==null?void 0:c.tableId)),r.$$.dirty&256&&t(2,o=a.list||[])},[c,p,o,s,l,v,i,n,a,u,f,C,w,I,T]}class Cne extends ie{constructor(e){super();le(this,e,kne,vne,re,{parameters:0,bindings:1})}}function Sne(r){let e;return{c(){e=U("S3 Upload Component")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ane(r){let e,t,n,i,l,s;t=new Ke({props:{small:!0,$$slots:{default:[Sne]},$$scope:{ctx:r}}});function o(u){r[3](u)}let a={options:r[1],getOptionLabel:Ene,getOptionValue:One};return r[0].componentId!==void 0&&(a.value=r[0].componentId),i=new Je({props:a}),K.push(()=>ce(i,"value",o)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),y(e,"class","root svelte-omr0ht")},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&16&&(c.$$scope={dirty:f,ctx:u}),t.$set(c);const p={};f&2&&(p.options=u[1]),!l&&f&1&&(l=!0,p.value=u[0].componentId,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)}}}const Ene=r=>r._instanceName,One=r=>r._id;function Tne(r,e,t){let n,i;ue(r,mn,o=>t(2,i=o));let{parameters:l}=e;function s(o){r.$$.not_equal(l.componentId,o)&&(l.componentId=o,t(0,l))}return r.$$set=o=>{"parameters"in o&&t(0,l=o.parameters)},r.$$.update=()=>{r.$$.dirty&4&&t(1,n=Xl(i.props,o=>o._component.endsWith("s3upload")))},[l,n,i,s]}class Ine extends ie{constructor(e){super();le(this,e,Tne,Ane,re,{parameters:0})}}function Lne(r){let e,t,n;return{c(){e=U(`Choose the table component that you would like to export your row selection
|
|
1223
1223
|
from.
|
|
1224
1224
|
`),t=D("br"),n=U(`
|
|
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 Pne(r){let e;return{c(){e=U("Table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nne(r){let e;return{c(){e=U("Export as")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Rne(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;t=new Qe({props:{size:"S",$$slots:{default:[Lne]},$$scope:{ctx:r}}}),l=new Ke({props:{small:!0,$$slots:{default:[Pne]},$$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 Je({props:v}),K.push(()=>ce(o,"value",h)),f=new Ke({props:{small:!0,$$slots:{default:[Nne]},$$scope:{ctx:r}}});function C(I){r[7](I)}let w={options:r[2]};return r[0].type!==void 0&&(w.value=r[0].type),p=new Je({props:w}),K.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),y(i,"class","params svelte-zlqv5b"),y(e,"class","root svelte-zlqv5b")},m(I,T){$(I,e,T),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,[T]){const O={};T&256&&(O.$$scope={dirty:T,ctx:I}),t.$set(O);const P={};T&256&&(P.$$scope={dirty:T,ctx:I}),l.$set(P);const M={};T&2&&(M.options=I[1]),!a&&T&1&&(a=!0,M.value=I[0].tableComponentId,pe(()=>a=!1)),o.$set(M);const H={};T&256&&(H.$$scope={dirty:T,ctx:I}),f.$set(H);const j={};!d&&T&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 Mne(r,e,t){let n,i,l,s;ue(r,mn,c=>t(5,s=c));let{parameters:o}=e;const a=[{label:"CSV",value:"csv"},{label:"JSON",value:"json"}];Gt(()=>{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=Xl(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=Xl(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 Dne extends ie{constructor(e){super();le(this,e,Mne,Rne,re,{parameters:0})}}var jne=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",NavigateTo:Dee,SaveRow:Zee,DeleteRow:ote,ExecuteQuery:gte,TriggerAutomation:Ate,ValidateForm:Pte,LogOut:Bte,ClearForm:Hte,CloseScreenModal:Jte,ChangeFormStep:nne,UpdateState:une,RefreshDataProvider:gne,DuplicateRow:Cne,S3Upload:Ine,ExportData:Dne});const Bne=(r=!1)=>E3.actions.filter(e=>{var t;return r||!e.dependsOnFeature?!0:((t=lt(Ge).clientFeatures)==null?void 0:t[e.dependsOnFeature])===!0}).map(e=>rt(Ae({},e),{component:jne[e.component]})).filter(e=>e.component!=null);function nw(r,e,t){const n=r.slice();return n[13]=e[t],n}function rw(r,e,t){const n=r.slice();return n[16]=e[t],n[18]=t,n}function iw(r){let e=r[1].id,t,n,i=lw(r);return{c(){i.c(),t=Oe()},m(l,s){i.m(l,s),$(l,t,s),n=!0},p(l,s){s&2&&re(e,e=l[1].id)?(te(),_(i,1,1,Te),ne(),i=lw(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 lw(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),y(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){te();const u=t;_(u.$$.fragment,1,0,()=>{E(u,1)}),ne()}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 zne(r){let e,t,n=r[2]&&iw(r);return{c(){n&&n.c(),e=Oe()},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=iw(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(te(),_(n,1,1,()=>{n=null}),ne())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function qne(r){let e,t;return e=new Xe({props:{noPadding:!0,$$slots:{default:[zne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524302&&(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 sw(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[16].id;for(let f=0;f<a.length;f+=1){let c=rw(r,a,f),p=u(c);n.set(p,t[f]=ow(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();y(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=Lu.call(null,e,{items:r[0],flipDurationMs:O1,dropTargetStyle:{outline:"none"}})),Pe(e,"consider",r[8]),Pe(e,"finalize",r[9])],s=!0)},p(f,c){if(c&163){a=f[0],te();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,zo,ow,null,rw);for(let p=0;p<t.length;p+=1)t[p].a();ne()}i&&mt(i.update)&&c&1&&i.update.call(null,{items:f[0],flipDurationMs:O1,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 ow(r,e){let t,n,i,l,s=e[18]+1+"",o,a,u=e[16][ec]+"",f,c,p,d,g,h=Te,v,C,w;n=new ct({props:{name:"DragHandle",size:"XL"}});function I(){return e[12](e[18])}return p=new ct({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=U(s),a=U(".\xA0"),f=U(u),c=R(),S(p.$$.fragment),d=R(),y(l,"class","action-header svelte-1dgx8bt"),y(t,"class","action-container svelte-1dgx8bt"),oe(t,"selected",e[16]===e[1]),this.first=t},m(T,O){$(T,t,O),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||(w=Pe(t,"click",function(){mt(e[7](e[16]))&&e[7](e[16]).apply(this,arguments)}),C=!0)},p(T,O){e=T,(!v||O&1)&&s!==(s=e[18]+1+"")&&Le(o,s),(!v||O&1)&&u!==(u=e[16][ec]+"")&&Le(f,u),O&3&&oe(t,"selected",e[16]===e[1])},r(){g=t.getBoundingClientRect()},f(){qo(t),h()},a(){h(),h=Fo(t,g,Uo,{duration:O1})},i(T){v||(m(n.$$.fragment,T),m(p.$$.fragment,T),v=!0)},o(T){_(n.$$.fragment,T),_(p.$$.fragment,T),v=!1},d(T){T&&b(t),E(n),E(p),C=!1,w()}}}function Fne(r){let e=r[13].name+"",t,n;return{c(){t=U(e),n=R()},m(i,l){$(i,t,l),$(i,n,l)},p:Te,d(i){i&&b(t),i&&b(n)}}}function aw(r){let e,t;return e=new Zt({props:{$$slots:{default:[Fne]},$$scope:{ctx:r}}}),e.$on("click",r[6](r[13])),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524288&&(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 Une(r){let e,t,n=r[4],i=[];for(let s=0;s<n.length;s+=1)i[s]=aw(nw(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=Oe()},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=nw(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.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Vne(r){let e;return{c(){e=U("Add Action")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hne(r){let e,t;return e=new ut({props:{slot:"control",secondary:!0,$$slots:{default:[Vne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524288&&(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 Wne(r){let e,t,n,i=r[0]&&r[0].length>0&&sw(r);return t=new Tr({props:{$$slots:{control:[Hne],default:[Une]},$$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=sw(l),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(te(),_(i,1,1,()=>{i=null}),ne());const o={};s&524288&&(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 Gne(r){let e,t;return e=new Xe({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[Wne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524291&&(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 Yne(r){let e,t;return e=new Si({props:{$$slots:{sidebar:[Gne],default:[qne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&524303&&(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 O1=150,ec="##eventHandlerType";function Jne(r,e,t){let n,i,l;const s=Bne();let{actions:o}=e,{bindings:a=[]}=e,u=(o==null?void 0:o.length)?o[0]:null;const f=v=>{o.splice(v,1),t(0,o)},c=v=>()=>{const C={parameters:{},[ec]:v.name,id:qr.generate()};o||t(0,o=[]),t(0,o=[...o,C]),t(1,u=C)},p=v=>()=>{t(1,u=v)};function d(v){t(0,o=v.detail.items)}function g(v){t(0,o=v.detail.items)}const h=v=>f(v);return r.$$set=v=>{"actions"in v&&t(0,o=v.actions),"bindings"in v&&t(10,a=v.bindings)},r.$$.update=()=>{var v;r.$$.dirty&3&&u&&!(o==null?void 0:o.includes(u))&&t(1,u=o==null?void 0:o[0]),r.$$.dirty&3&&t(11,n=Qj(o,u==null?void 0:u.id)),r.$$.dirty&3072&&t(3,i=n.concat(a)),r.$$.dirty&1&&o&&o.forEach(C=>{C.id||(C.id=qr.generate())}),r.$$.dirty&2&&t(2,l=u&&((v=s.find(C=>C.name===u[ec]))==null?void 0:v.component))},[o,u,l,i,s,f,c,p,d,g,a,n,h]}class Qne extends ie{constructor(e){super();le(this,e,Jne,Yne,re,{actions:0,bindings:10})}}function Xne(r){let e;return{c(){e=U("Define actions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Kne(r){let e;return{c(){e=U("Define what actions to run.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Zne(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xne(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Zne]},$$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&4096&&(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 ere(r){let e,t,n;function i(s){r[7](s)}let l={slot:"body",eventType:r[0],bindings:r[1]};return r[3]!==void 0&&(l.actions=r[3]),e=new Qne({props:l}),K.push(()=>ce(e,"actions",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&1&&(a.eventType=s[0]),o&2&&(a.bindings=s[1]),!t&&o&8&&(t=!0,a.actions=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 tre(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Xne]},$$scope:{ctx:r}}}),e.$on("click",r[4]);let l={title:"Actions",$$slots:{body:[ere],buttons:[xne],description:[Kne]},$$scope:{ctx:r}};return n=new xr({props:l}),r[8](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&4096&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&4107&&(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[8](null),E(n,s)}}}function nre(r,e,t){let n;ue(r,Xt,h=>t(9,n=h));const i=_t();let{value:l=[]}=e,{name:s}=e,{bindings:o}=e,a,u;const f=()=>{t(3,u=bn.cloneDeep(l)),a.show()},c=async()=>{const h=u.filter(v=>v["##eventHandlerType"]==="Trigger Automation");for(let v of h)await p(v.parameters);i("change",u),we.success("Component actions saved."),a.hide()},p=async h=>{var v;if(!(h.automationId||!h.newAutomationName))try{await Xt.actions.create({name:h.newAutomationName});const C=n.blockDefinitions.TRIGGER.APP,w=n.selectedAutomation.constructBlock("TRIGGER","APP",C);w.inputs={fields:Object.keys(h.fields).reduce((I,T)=>(I[T]="string",I),{})},Xt.actions.addBlockToAutomation(w),await Xt.actions.save((v=n.selectedAutomation)==null?void 0:v.automation),h.automationId=n.selectedAutomation.automation._id,delete h.newAutomationName}catch{we.error("Error creating automation")}};function d(h){u=h,t(3,u)}function g(h){K[h?"unshift":"push"](()=>{a=h,t(2,a)})}return r.$$set=h=>{"value"in h&&t(6,l=h.value),"name"in h&&t(0,s=h.name),"bindings"in h&&t(1,o=h.bindings)},[s,o,a,u,f,c,l,d,g]}class rre extends ie{constructor(e){super();le(this,e,nre,tre,re,{value:6,name:0,bindings:1})}}function uw(r,e,t){const n=r.slice();return n[3]=e[t],n}function fw(r){let e,t=r[3].name+"",n,i;return{c(){e=D("option"),n=U(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+"")&&Le(n,t),s&2&&i!==(i=l[3]._id)&&(e.__value=i,e.value=e.__value)},d(l){l&&b(e)}}}function ire(r){let e,t,n,i=r[1].list,l=[];for(let s=0;s<i.length;s+=1)l[s]=fw(uw(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=Oe(),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=uw(s,i,a);l[a]?l[a].p(u,o):(l[a]=fw(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 lre(r){let e,t,n;return t=new Je({props:{extraThin:!0,secondary:!0,wide:!0,value:r[0],$$slots:{default:[ire]},$$scope:{ctx:r}}}),t.$on("change",r[2]),{c(){e=D("div"),S(t.$$.fragment),y(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 sre(r,e,t){let n;ue(r,Ot,s=>t(1,n=s));let{value:i}=e;function l(s){ft.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class ore extends ie{constructor(e){super();le(this,e,sre,lre,re,{value:0})}}function are(r){let e,t;return e=new Wl({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 ure(r,e,t){let n;ue(r,Ge,s=>t(1,n=s));let{value:i}=e;function l(s){ft.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class T1 extends ie{constructor(e){super();le(this,e,ure,are,re,{value:0})}}var cw={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 pw(r,e,t){const n=r.slice();return n[29]=e[t],n}function dw(r,e,t){const n=r.slice();return n[32]=e[t],n[34]=t,n}function fre(r){let e;return{c(){e=U(r[8])},m(t,n){$(t,e,n)},p(t,n){n[0]&256&&Le(e,t[8])},d(t){t&&b(e)}}}function cre(r){let e;return{c(){e=D("span"),e.textContent="-"},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function mw(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&&cre();return{c(){e=D("span"),n=U(t),i=R(),u&&u.c(),l=Oe(),y(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 pre(r){let e;return{c(){e=U("Search")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function dre(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=U(n),y(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"}`)&&Le(i,n)},d(l){l&&b(e)}}}function mre(r){let e,t=!r[5]&&gw(r);return{c(){e=D("div"),t&&t.c(),y(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=gw(n),t.c(),t.m(e,null))},d(n){n&&b(e),t&&t.d()}}}function gw(r){let e,t=r[7],n=[];for(let i=0;i<t.length;i+=1)n[i]=_w(pw(r,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();e=Oe()},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=pw(i,t,s);n[s]?n[s].p(o,l):(n[s]=_w(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 _w(r){let e,t,n,i,l,s,o=r[29]+"",a,u,f,c,p,d,g,h,v,C=r[29]+"",w,I,T,O,P;function M(){return r[24](r[29])}function H(){return r[25](r[29])}return{c(){e=D("div"),t=D("div"),n=D("i"),l=R(),s=D("div"),a=U(o),u=U("-fill"),f=R(),c=D("div"),p=D("div"),d=D("i"),h=R(),v=D("div"),w=U(C),I=U("-line"),T=R(),y(n,"class",i=""+(sr(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd")),y(t,"class","icon-preview svelte-vhpvzd"),y(s,"class","icon-label svelte-vhpvzd"),y(e,"class","icon-container svelte-vhpvzd"),oe(e,"selected",r[0]===`ri-${r[29]}-fill`),y(d,"class",g=""+(sr(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd")),y(p,"class","icon-preview svelte-vhpvzd"),y(v,"class","icon-label svelte-vhpvzd"),y(c,"class","icon-container svelte-vhpvzd"),oe(c,"selected",r[0]===`ri-${r[29]}-line`)},m(j,z){$(j,e,z),N(e,t),N(t,n),N(e,l),N(e,s),N(s,a),N(s,u),$(j,f,z),$(j,c,z),N(c,p),N(p,d),N(c,h),N(c,v),N(v,w),N(v,I),N(c,T),O||(P=[Pe(e,"click",M),Pe(c,"click",H)],O=!0)},p(j,z){r=j,z[0]&128&&i!==(i=""+(sr(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd"))&&y(n,"class",i),z[0]&128&&o!==(o=r[29]+"")&&Le(a,o),z[0]&129&&oe(e,"selected",r[0]===`ri-${r[29]}-fill`),z[0]&128&&g!==(g=""+(sr(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd"))&&y(d,"class",g),z[0]&128&&C!==(C=r[29]+"")&&Le(w,C),z[0]&129&&oe(c,"selected",r[0]===`ri-${r[29]}-line`)},d(j){j&&b(e),j&&b(f),j&&b(c),O=!1,Tn(P)}}}function gre(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I,T,O,P,M,H=r[9],j=[];for(let W=0;W<H.length;W+=1)j[W]=mw(dw(r,H,W));function z(W){r[21](W)}let q={thin:!0,placeholder:"Search Icon"};r[1]!==void 0&&(q.value=r[1]),o=new et({props:q}),K.push(()=>ce(o,"value",z)),f=new ut({props:{secondary:!0,$$slots:{default:[pre]},$$scope:{ctx:r}}}),f.$on("click",r[13]);function V(W,G){return W[7].length>0?mre:dre}let Y=V(r),F=Y(r);return{c(){e=D("div"),t=D("div"),n=D("div");for(let W=0;W<j.length;W+=1)j[W].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=U(r[6]),w=R(),I=D("span"),I.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',T=R(),F.c(),y(n,"class","alphabet-area svelte-vhpvzd"),y(s,"class","input-wrapper svelte-vhpvzd"),y(l,"class","search-input svelte-vhpvzd"),y(d,"class","pager"),y(p,"class","page-area svelte-vhpvzd"),y(t,"class","search-area svelte-vhpvzd"),y(e,"class","container svelte-vhpvzd")},m(W,G){$(W,e,G),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,w),N(d,I),N(e,T),F.m(e,null),O=!0,P||(M=[Pe(g,"click",r[22]),Pe(I,"click",r[23])],P=!0)},p(W,G){if(G[0]&1540){H=W[9];let Z;for(Z=0;Z<H.length;Z+=1){const ee=dw(W,H,Z);j[Z]?j[Z].p(ee,G):(j[Z]=mw(ee),j[Z].c(),j[Z].m(n,null))}for(;Z<j.length;Z+=1)j[Z].d(1);j.length=H.length}const Q={};!a&&G[0]&2&&(a=!0,Q.value=W[1],pe(()=>a=!1)),o.$set(Q);const fe={};G[1]&16&&(fe.$$scope={dirty:G,ctx:W}),f.$set(fe),(!O||G[0]&64)&&Le(C,W[6]),Y===(Y=V(W))&&F?F.p(W,G):(F.d(1),F=Y(W),F&&(F.c(),F.m(e,null)))},i(W){O||(m(o.$$.fragment,W),m(f.$$.fragment,W),O=!0)},o(W){_(o.$$.fragment,W),_(f.$$.fragment,W),O=!1},d(W){W&&b(e),$t(j,W),E(o),E(f),F.d(),P=!1,Tn(M)}}}function _re(r){let e,t,n,i,l;t=new Yt({props:{$$slots:{default:[fre]},$$scope:{ctx:r}}}),t.$on("click",function(){mt(r[4].show)&&r[4].show.apply(this,arguments)});let s={anchor:r[3],$$slots:{default:[gre]},$$scope:{ctx:r}};return i=new wp({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 hre=Object.keys(cw).reduce((r,e)=>[...r,...Object.keys(cw[e])],[]);function I1(r){const e=new RegExp(`^${r}`,"i");return hre.filter(t=>e.test(t))}function $re(r,e,t){let n,i,l,s,o;const a=_t();let{value:u=""}=e,{maxIconsPerPage:f=30}=e,c="",p="A",d=1,g=I1(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,w=!1;async function I(G){t(15,d=1),t(1,c=""),t(5,w=!0),t(2,p=G),t(16,g=I1(G)),await Vs(),t(5,w=!1)}async function T(){t(5,w=!0);const G=g.findIndex(Q=>Q.value===u);G!==-1&&t(15,d=Math.ceil(G/f)),await Vs(),t(5,w=!1)}async function O(){if(u){const G=n.substring(0,1);await I(G),await T()}}async function P(G){t(5,w=!0),G&&d<i?t(15,d++,d):!G&&d>1&&t(15,d--,d),await Vs(),t(5,w=!1)}async function M(){t(15,d=1),t(5,w=!0),t(16,g=I1(c)),await Vs(),t(5,w=!1)}function H(G){K[G?"unshift":"push"](()=>{v=G,t(3,v)})}const j=G=>I(G);function z(G){c=G,t(1,c)}const q=()=>P(!1),V=()=>P(!0),Y=G=>t(0,u=`ri-${G}-fill`),F=G=>t(0,u=`ri-${G}-line`);function W(G){K[G?"unshift":"push"](()=>{C=G,t(4,C)})}return r.$$set=G=>{"value"in G&&t(0,u=G.value),"maxIconsPerPage"in G&&t(14,f=G.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,w,o,s,n,h,I,O,P,M,f,d,g,i,l,H,j,z,q,V,Y,F,W]}class bre extends ie{constructor(e){super();le(this,e,$re,_re,re,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function vre(r){let e,t;return e=new Je({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 wre(r,e,t){let n,i,l,s,o;ue(r,mn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=_t(),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=Cl(o,a)),r.$$.dirty&384&&t(6,i=Ri(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,wre,vre,re,{componentInstance:4,value:5,placeholder:0})}}function kre(r){let e,t;return e=new Wo({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 Cre(r,e,t){let n,i,l,s,o;ue(r,mn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=_t(),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=Cl(o,a)),r.$$.dirty&384&&t(6,i=Ri(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 Sre extends ie{constructor(e){super();le(this,e,Cre,kre,re,{componentInstance:4,value:5,placeholder:0})}}function Are(r){let e,t;return e=new Wo({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 hw(r,e){return Array.isArray(r)||(r=[]),r.filter(t=>e.indexOf(t)!==-1)}function Ere(r,e,t){let n,i,l,s,o,a;ue(r,Ot,h=>t(9,o=h)),ue(r,mn,h=>t(8,a=h));let{componentInstance:u={}}=e,{value:f=""}=e,{placeholder:c}=e;const p=_t();function d(h,v){let C=Object.values(v);if(!(h==null?void 0:h.tableId))return C;const w=o.list.find(I=>I._id===h.tableId);return k1(C,{allowLinks:w==null?void 0:w.sql}).map(I=>I.name)}const g=h=>{t(2,s=hw(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=Cl(a,u)),r.$$.dirty&384&&t(6,i=Ri(a,n,{searchableSchema:!0}).schema),r.$$.dirty&192&&t(1,l=d(n,i||{})),r.$$.dirty&34&&t(2,s=hw(f,l))},[c,l,s,g,u,f,i,n,a]}class Ore extends ie{constructor(e){super();le(this,e,Ere,Are,re,{componentInstance:4,value:5,placeholder:0})}}function Tre(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=qi(i,n[l]);return e=new B6({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?Au(n,[s&2&&Eu(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 Ire(r,e,t){const n=[{name:"Custom",label:"Custom"}];function i(l){ft.call(this,r,l)}return r.$$set=l=>{t(1,e=qi(qi({},e),Tu(l)))},e=Tu(e),[n,e,i]}class Lre extends ie{constructor(e){super();le(this,e,Ire,Tre,re,{})}}function $w(r,e,t){const n=r.slice();return n[8]=e[t][0],n[0]=e[t][1],n}function Pre(r){let e=r[4][r[0]].name+"",t;return{c(){t=U(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[4][n[0]].name+"")&&Le(t,e)},d(n){n&&b(t)}}}function Nre(r){let e=r[0].name+"",t;return{c(){t=U(e)},m(n,i){$(n,t,i)},p:Te,d(n){n&&b(t)}}}function bw(r){let e,t,n,i,l,s,o,a;t=new ct({props:{color:"white",size:"L",name:r[0].icon}}),i=new Qe({props:{size:"XS",$$slots:{default:[Nre]},$$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(),y(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 Rre(r){let e,t,n=Object.entries(r[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=bw($w(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();y(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=$w(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(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Mre(r){let e,t;return e=new Dt({props:{onConfirm:r[6],size:"L",title:"Select layout",$$slots:{default:[Rre]},$$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 Dre(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Pre]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[2].show)&&r[2].show.apply(this,arguments)});let l={$$slots:{default:[Mre]},$$scope:{ctx:r}};return n=new Et({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 jre(r,e,t){const n=_t();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){K[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 Bre extends ie{constructor(e){super();le(this,e,jre,Dre,re,{value:0})}}function vw(r,e,t){const n=r.slice();return n[12]=e[t],n[13]=e,n[14]=t,n}function ww(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=vw(r,a,f),p=u(c);n.set(p,t[f]=yw(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();y(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=Lu.call(null,e,{items:r[0],flipDurationMs:L1,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],te();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,zo,yw,null,vw);for(let p=0;p<t.length;p+=1)t[p].a();ne()}i&&mt(i.update)&&c&3&&i.update.call(null,{items:f[0],flipDurationMs:L1,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 yw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v=Te,C,w,I;i=new ct({props:{name:"DragHandle",size:"XL"}});function T(j){e[9](j,e[12])}let O={placeholder:"Text"};e[12].text!==void 0&&(O.value=e[12].text),o=new et({props:O}),K.push(()=>ce(o,"value",T));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 Ws({props:M}),K.push(()=>ce(f,"value",P));function H(){return e[11](e[12])}return d=new ct({props:{name:"Close",hoverable:!0,size:"S"}}),d.$on("click",H),{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(),y(n,"class","handle svelte-1mnha07"),y(n,"aria-label","drag-handle"),y(n,"style",l=e[1]?"cursor: grab":"cursor: grabbing"),y(t,"class","link svelte-1mnha07"),this.first=t},m(j,z){$(j,t,z),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,w||(I=Pe(n,"mousedown",e[8]),w=!0)},p(j,z){e=j,(!C||z&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const q={};!a&&z&1&&(a=!0,q.value=e[12].text,pe(()=>a=!1)),o.$set(q);const V={};z&4&&(V.options=e[2]),!c&&z&1&&(c=!0,V.value=e[12].url,pe(()=>c=!1)),f.$set(V)},r(){h=t.getBoundingClientRect()},f(){qo(t),v()},a(){v(),v=Fo(t,h,Uo,{duration:L1})},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),w=!1,I()}}}function zre(r){let e;return{c(){e=U("Add Link")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qre(r){var s;let e,t,n,i,l=((s=r[0])==null?void 0:s.length)&&ww(r);return n=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[zre]},$$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=ww(o),l.c(),m(l,1),l.m(e.parentNode,e)):l&&(te(),_(l,1,1,()=>{l=null}),ne());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 Fre(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[qre]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 Ure(r){let e,t;return e=new Si({props:{$$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&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 L1=150;function Vre(r,e,t){let n,i;ue(r,Ge,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=qr.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 Hre extends ie{constructor(e){super();le(this,e,Vre,Ure,re,{links:0})}}function Wre(r){let e;return{c(){e=U("Configure links")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Gre(r){let e;return{c(){e=U("Configure the links in your navigation bar.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Yre(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jre(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Yre]},$$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 Qre(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 Hre({props:l}),K.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 Xre(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Wre]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Navigation Links",$$slots:{body:[Qre],buttons:[Jre],description:[Gre]},$$scope:{ctx:r}};return n=new xr({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 Kre(r,e,t){let{value:n=[]}=e,i,l=bn.cloneDeep(n||[]);const s=_t(),o=()=>{s("change",l),i.hide()};function a(f){l=f,t(1,l)}function u(f){K[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 Zre extends ie{constructor(e){super();le(this,e,Kre,Xre,re,{value:3})}}function xre(r){let e;return{c(){e=U("Define filters")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function eie(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[eie]},$$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 nie(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 C1({props:l}),K.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 rie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[xre]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[1].show)&&r[1].show.apply(this,arguments)});let l={title:"Filtering",$$slots:{body:[nie],buttons:[tie]},$$scope:{ctx:r}};return n=new xr({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 iie(r,e,t){let n,i,l,s;ue(r,mn,v=>t(9,s=v));const o=_t();let{value:a=[]}=e,{componentInstance:u}=e,{bindings:f=[]}=e,c,p=a||[];const d=async()=>{o("change",p),we.success("Filters saved."),c.hide()};function g(v){p=v,t(2,p)}function h(v){K[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=Cl(s,u)),r.$$.dirty&768&&t(7,i=(v=Ri(s,n,{searchableSchema:!0}))==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 lie extends ie{constructor(e){super();le(this,e,iie,rie,re,{value:5,componentInstance:6,bindings:0})}}function kw(r){let e,t,n,i,l;return t=new ct({props:{size:"S",name:"FlashOn"}}),{c(){e=D("div"),S(t.$$.fragment),y(e,"class","icon svelte-1q3yltm"),y(e,"data-cy","text-binding-button")},m(s,o){$(s,e,o),A(t,e,null),n=!0,i||(l=Pe(e,"click",function(){mt(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 sie(r){let e;return{c(){e=U("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function oie(r){let e;return{c(){e=U("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:[oie]},$$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 uie(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=Oe()},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){te();const u=e;_(u.$$.fragment,1,0,()=>{E(u,1)}),ne()}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 fie(r){let e,t,n,i,l,s;t=new Ws({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]&&kw(r),a={title:r[2],$$slots:{body:[uie],buttons:[aie],description:[sie]},$$scope:{ctx:r}};return l=new xr({props:a}),r[20](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),y(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&&(te(),_(o,1,1,()=>{o=null}),ne()):o?(o.p(u,f),f&32&&m(o,1)):(o=kw(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 cie(r,e,t){let n,i,l,s,{panel:o=v1}=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=_t();let w;const I=()=>{T(i),w.hide()},T=(z,q)=>{q&&!(g==null?void 0:g.includes(z))&&(z=`{{ ${z} }}`),C("change",As(u,z))},O=(z,q,V)=>V?[].concat(z||[]).concat((q==null?void 0:q.map(Y=>Y.readableBinding))||[]):z,P=z=>T(z.detail,!1),M=z=>T(z.detail,!0),H=z=>t(9,i=z.detail);function j(z){K[z?"unshift":"push"](()=>{w=z,t(8,w)})}return r.$$set=z=>{"panel"in z&&t(0,o=z.panel),"value"in z&&t(14,a=z.value),"bindings"in z&&t(1,u=z.bindings),"title"in z&&t(2,f=z.title),"placeholder"in z&&t(3,c=z.placeholder),"label"in z&&t(4,p=z.label),"disabled"in z&&t(5,d=z.disabled),"options"in z&&t(15,g=z.options),"allowJS"in z&&t(6,h=z.allowJS),"appendBindingsAsOptions"in z&&t(16,v=z.appendBindingsAsOptions)},r.$$.update=()=>{r.$$.dirty&16386&&t(7,n=_o(u,a)),r.$$.dirty&128&&t(9,i=n),r.$$.dirty&16384&&t(11,l=Df(a)),r.$$.dirty&98306&&t(10,s=O(g,u,v))},[o,u,f,c,p,d,h,n,w,i,s,l,I,T,a,g,v,P,M,H,j]}class Cw extends ie{constructor(e){super();le(this,e,cie,fie,re,{panel:0,value:14,bindings:1,title:2,placeholder:3,label:4,disabled:5,options:15,allowJS:6,appendBindingsAsOptions:16})}}function pie(r){let e,t;return e=new Cw({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 die(r,e,t){let n,i;ue(r,Ge,a=>t(3,i=a));let{value:l}=e,{bindings:s}=e;function o(a){ft.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 mie extends ie{constructor(e){super();le(this,e,die,pie,re,{value:0,bindings:1})}}function Sw(r,e,t){const n=r.slice();return n[6]=e[t],n[7]=e,n[8]=t,n}function Aw(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[gie]},$$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 gie(r){let e;return{c(){e=U("Add an option to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ew(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=Sw(r,l,o),u=s(a);n.set(u,t[o]=Ow(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();y(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],te(),t=er(t,a,s,1,o,l,n,e,zr,Ow,null,Sw),ne())},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 Ow(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 et({props:p}),K.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 et({props:g}),K.push(()=>ce(s,"value",d));function h(){return e[5](e[6])}return u=new ct({props:{name:"Close",hoverable:!0,size:"S"}}),u.$on("click",h),{key:r,first:null,c(){t=Oe(),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 w={};!i&&C&1&&(i=!0,w.value=e[6].label,pe(()=>i=!1)),n.$set(w);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 _ie(r){let e;return{c(){e=U("Add Option")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hie(r){var a;let e,t,n,i,l,s=!r[0].length&&Aw(r),o=((a=r[0])==null?void 0:a.length)&&Ew(r);return i=new ut({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[_ie]},$$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&&(te(),_(s,1,1,()=>{s=null}),ne()):s?f&1&&m(s,1):(s=Aw(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=Ew(u),o.c(),m(o,1),o.m(t.parentNode,t)):o&&(te(),_(o,1,1,()=>{o=null}),ne());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 $ie(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[hie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 bie(r){let e,t;return e=new Si({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&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 vie(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:qr.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 wie extends ie{constructor(e){super();le(this,e,vie,bie,re,{options:0})}}function yie(r){let e;return{c(){e=U("Define Options")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function kie(r){let e;return{c(){e=U("Define the options for this picker.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cie(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Cie]},$$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 Aie(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 wie({props:l}),K.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 Eie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[yie]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Options",$$slots:{body:[Aie],buttons:[Sie],description:[kie]},$$scope:{ctx:r}};return n=new xr({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 Oie(r,e,t){const n=_t();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){K[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 Tie extends ie{constructor(e){super();le(this,e,Oie,Eie,re,{value:3})}}function Iie(r){let e,t;return e=new Ws({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 Lie(r,e,t){let n,i,l,s,o;ue(r,mn,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){ft.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.props,a._id,d=>d._component==="@budibase/standard-components/form")),r.$$.dirty&192&&t(5,i=Cl(o,n)),r.$$.dirty&160&&t(4,l=Ri(o,i,{formSchema:!0}).schema),r.$$.dirty&24&&t(1,s=c(l,f))},[u,s,a,f,l,i,n,o,p]}class tl extends ie{constructor(e){super();le(this,e,Lie,Iie,re,{componentInstance:2,value:0,type:3})}}function Tw(r,e,t){const n=r.slice();return n[29]=e[t],n[30]=e,n[31]=t,n}function Iw(r,e,t){const n=r.slice();return n[29]=e[t],n}function Pie(r){let e;return{c(){e=U("Schema validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nie(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[Mie]},$$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 Rie(r){let e,t,n=r[5],i=[];for(let s=0;s<n.length;s+=1)i[s]=Lw(Iw(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();y(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=Iw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Lw(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Mie(r){let e;return{c(){e=U("There are no built-in validation rules from the schema.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lw(r){let e,t,n,i,l,s,o,a,u,f,c,p;return t=new Je({props:{placeholder:"Constraint",value:r[29].constraint,options:r[4],disabled:!0}}),i=new Je({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),s=new Fn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:!0}}),a=new Fn({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(),y(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 Die(r){let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[Pie]},$$scope:{ctx:r}}});const o=[Rie,Nie],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=Oe()},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):(te(),_(a[d],1,1,()=>{a[d]=null}),ne(),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 jie(r){let e;return{c(){e=U("Custom validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Pw(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=Tw(r,l,o),u=s(a);n.set(u,t[o]=Nw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();y(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],te(),t=er(t,a,s,1,o,l,n,e,zr,Nw,null,Tw),ne())},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 Bie(r){let e,t,n,i,l;const s=[Wie,Hie,Vie,Uie,Fie],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=Oe()},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):(te(),_(o[c],1,1,()=>{o[c]=null}),ne(),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 zie(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 et({props:l}),K.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 qie(r){let e,t;function n(...i){return r[15](r[29],r[30],r[31],...i)}return e=new Fn({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 Fie(r){let e,t;return e=new Fn({props:{disabled:!0}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Te,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Uie(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 Ml({props:l}),K.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 Vie(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 Je({props:l}),K.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 Hie(r){let e,t;return e=new Je({props:{disabled:r[29].constraint==="required",options:r[2].schema[r[3]].constraints.inclusion,getOptionLabel:Kie,getOptionValue:Zie,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 Wie(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 et({props:l}),K.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 Nw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I;function T(F){e[13](F,e[29])}let O={options:e[4],placeholder:"Constraint"};e[29].constraint!==void 0&&(O.value=e[29].constraint),n=new Je({props:O}),K.push(()=>ce(n,"value",T));function P(F){e[14](F,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 Je({props:M}),K.push(()=>ce(s,"value",P));const H=[qie,zie,Bie],j=[];function z(F,W){return F[29].valueType==="Binding"?0:((u==null||W[0]&1)&&(u=!!(F[29].type!=="array"&&["maxLength","minLength","regex","notRegex","contains","notContains"].includes(F[29].constraint))),u?1:2)}f=z(e,[-1,-1]),c=j[f]=H[f](e);function q(...F){return e[20](e[29],e[30],e[31],...F)}d=new Fn({props:{placeholder:"Error message",value:e[29].error,bindings:e[1]}}),d.$on("change",q);function V(){return e[21](e[29])}h=new ct({props:{name:"Duplicate",hoverable:!0,size:"S"}}),h.$on("click",V);function Y(){return e[22](e[29])}return C=new ct({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),w=R(),y(t,"class","rule svelte-lcp0nr"),this.first=t},m(F,W){$(F,t,W),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,w),I=!0},p(F,W){e=F;const G={};W[0]&16&&(G.options=e[4]),!i&&W[0]&1&&(i=!0,G.value=e[29].constraint,pe(()=>i=!1)),n.$set(G);const Q={};W[0]&1&&(Q.disabled=e[29].constraint==="required"),!o&&W[0]&1&&(o=!0,Q.value=e[29].valueType,pe(()=>o=!1)),s.$set(Q);let fe=f;f=z(e,W),f===fe?j[f].p(e,W):(te(),_(j[fe],1,1,()=>{j[fe]=null}),ne(),c=j[f],c?c.p(e,W):(c=j[f]=H[f](e),c.c()),m(c,1),c.m(t,p));const Z={};W[0]&1&&(Z.value=e[29].error),W[0]&2&&(Z.bindings=e[1]),d.$set(Z)},i(F){I||(m(n.$$.fragment,F),m(s.$$.fragment,F),m(c),m(d.$$.fragment,F),m(h.$$.fragment,F),m(C.$$.fragment,F),I=!0)},o(F){_(n.$$.fragment,F),_(s.$$.fragment,F),_(c),_(d.$$.fragment,F),_(h.$$.fragment,F),_(C.$$.fragment,F),I=!1},d(F){F&&b(t),E(n),E(s),j[f].d(),E(d),E(h),E(C)}}}function Gie(r){let e;return{c(){e=U("Add Rule")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Yie(r){var a;let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[jie]},$$scope:{ctx:r}}});let o=((a=r[0])==null?void 0:a.length)&&Pw(r);return l=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[Gie]},$$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),y(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=Pw(u),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(te(),_(o,1,1,()=>{o=null}),ne());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 Jie(r){var l;let e,t,n,i;return e=new Xe({props:{noPadding:!0,gap:((l=r[5])==null?void 0:l.length)?"S":"XS",$$slots:{default:[Die]},$$scope:{ctx:r}}}),n=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[Yie]},$$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 Qie(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"M",$$slots:{default:[Jie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 Xie(r){let e,t;return e=new Si({props:{$$slots:{default:[Qie]},$$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 Kie=r=>r,Zie=r=>r;function xie(r,e,t){let n,i,l,s,o,a,u;ue(r,li,G=>t(11,a=G)),ue(r,mn,G=>t(12,u=G));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=G=>g[G],v=(G,Q)=>{if(!G||!Q)return null;const fe=Uf(G.props,Q._id,Z=>Z._component.endsWith("/form"));return Ri(G,fe==null?void 0:fe.dataSource)},C=(G,Q)=>{var ae,he,Re,$e,be,_e;if(!G||!Q)return[];const fe=(ae=Q.schema)==null?void 0:ae[G],Z=fe==null?void 0:fe.constraints;if(!Z)return[];let ee=[];if((G===((he=Q==null?void 0:Q.table)==null?void 0:he.primaryDisplay)||((Re=Z.presence)==null?void 0:Re.allowEmpty)===!1)&&ee.push({constraint:"required",error:"Required field"}),w(($e=Z.length)==null?void 0:$e.maximum)){const Ne=Z.length.maximum;ee.push({constraint:"maxLength",value:Ne,error:`Maximum ${Ne} characters`})}if(w((be=Z.numericality)==null?void 0:be.greaterThanOrEqualTo)){const Ne=Z.numericality.greaterThanOrEqualTo;ee.push({constraint:"minValue",value:Ne,error:`Minimum value is ${Ne}`})}if(w((_e=Z.numericality)==null?void 0:_e.lessThanOrEqualTo)){const Ne=Z.numericality.lessThanOrEqualTo;ee.push({constraint:"maxValue",value:Ne,error:`Maximum value is ${Ne}`})}return ee},w=G=>G!=null&&G!=="",I=()=>{t(0,f=[...f||[],{valueType:"Binding",type:s,id:qr.generate(),value:s=="array"?[]:null}])},T=G=>{t(0,f=f.filter(Q=>Q.id!==G))},O=G=>{const Q=f.find(Z=>Z.id===G),fe=rt(Ae({},Q),{id:qr.generate()});t(0,f=[...f,fe])};function P(G,Q){r.$$.not_equal(Q.constraint,G)&&(Q.constraint=G,t(0,f))}function M(G,Q){r.$$.not_equal(Q.valueType,G)&&(Q.valueType=G,t(0,f))}const H=(G,Q,fe,Z)=>t(0,Q[fe].value=Z.detail,f);function j(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}function z(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}function q(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}function V(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}const Y=(G,Q,fe,Z)=>t(0,Q[fe].error=Z.detail,f),F=G=>O(G.id),W=G=>T(G.id);return r.$$set=G=>{"rules"in G&&t(0,f=G.rules),"bindings"in G&&t(1,c=G.bindings),"type"in G&&t(9,p=G.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,T,O,p,s,a,u,P,M,H,j,z,q,V,Y,F,W]}class ele extends ie{constructor(e){super();le(this,e,xie,Xie,re,{rules:0,bindings:1,type:9},null,[-1,-1])}}function tle(r){let e;return{c(){e=U("Configure validation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function nle(r){let e;return{c(){e=U("Configure validation rules for this field.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rle(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ile(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[rle]},$$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 lle(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 ele({props:l}),K.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 sle(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[tle]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[4].show)&&r[4].show.apply(this,arguments)});let l={title:"Validation Rules",$$slots:{body:[lle],buttons:[ile],description:[nle]},$$scope:{ctx:r}};return n=new xr({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 ole(r,e,t){let{value:n=[]}=e,{bindings:i=[]}=e,{componentDefinition:l}=e,{type:s}=e,o;const a=_t(),u=()=>{a("change",n),o.hide()};function f(p){n=p,t(0,n)}function c(p){K[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 Es extends ie{constructor(e){super();le(this,e,ole,sle,re,{value:0,bindings:1,componentDefinition:2,type:3})}}function ale(r){let e;return{c(){e=U("Background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ule(r){let e,t,n,i;return e=new Ke({props:{$$slots:{default:[ale]},$$scope:{ctx:r}}}),n=new Wl({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 fle(r){let e;return{c(){e=U("Text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cle(r){let e,t,n,i;return e=new Ke({props:{$$slots:{default:[fle]},$$scope:{ctx:r}}}),n=new Wl({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 ple(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 et({props:g}),K.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 Je({props:v}),K.push(()=>ce(i,"value",h)),o=new Fn({props:{label:"Value",value:r[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]"}]}}),o.$on("change",r[4]),u=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[ule]},$$scope:{ctx:r}}}),c=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[cle]},$$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,w){A(e,C,w),$(C,n,w),A(i,C,w),$(C,s,w),A(o,C,w),$(C,a,w),A(u,C,w),$(C,f,w),A(c,C,w),p=!0},p(C,w){const I={};!t&&w&1&&(t=!0,I.value=C[0].width,pe(()=>t=!1)),e.$set(I);const T={};!l&&w&1&&(l=!0,T.value=C[0].align,pe(()=>l=!1)),i.$set(T);const O={};w&1&&(O.value=C[0].template),o.$set(O);const P={};w&131&&(P.$$scope={dirty:w,ctx:C}),u.$set(P);const M={};w&131&&(M.$$scope={dirty:w,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 dle(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[ple]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 mle(r){let e,t;return e=new Si({props:{$$slots:{default:[dle]},$$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 gle(r,e,t){let n;ue(r,Ge,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 _le extends ie{constructor(e){super();le(this,e,gle,mle,re,{column:0})}}function hle(r){let e,t=r[0].name+"",n,i;return{c(){e=U('"'),n=U(t),i=U('" column settings')},m(l,s){$(l,e,s),$(l,n,s),$(l,i,s)},p(l,s){s&1&&t!==(t=l[0].name+"")&&Le(n,t)},d(l){l&&b(e),l&&b(n),l&&b(i)}}}function $le(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ble(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[$le]},$$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 vle(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 _le({props:l}),K.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 wle(r){let e,t,n,i;e=new ct({props:{name:"Settings",hoverable:!0,size:"S"}}),e.$on("click",r[3]);let l={title:"Table Columns",$$slots:{body:[vle],buttons:[ble],description:[hle]},$$scope:{ctx:r}};return n=new xr({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=Ae({},c))},o=()=>{s(n),l.show()},a=()=>{t(0,n=i),l.hide()};function u(c){i=c,t(1,i)}function f(c){K[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 kle extends ie{constructor(e){super();le(this,e,yle,wle,re,{column:0})}}function Rw(r,e,t){const n=r.slice();return n[19]=e[t],n[20]=e,n[21]=t,n}function Cle(r){let e,t,n,i;return n=new Qe({props:{size:"S",$$slots:{default:[Ale]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),y(t,"class","wide svelte-r88m8w"),y(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 Sle(r){let e,t;return e=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[Tle]},$$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 Ale(r){let e,t,n;return{c(){e=U(`By default, all table columns will automatically be shown.
|
|
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 Pne(r){let e;return{c(){e=U("Table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nne(r){let e;return{c(){e=U("Export as")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Rne(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;t=new Qe({props:{size:"S",$$slots:{default:[Lne]},$$scope:{ctx:r}}}),l=new Ke({props:{small:!0,$$slots:{default:[Pne]},$$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 Je({props:v}),K.push(()=>ce(o,"value",h)),f=new Ke({props:{small:!0,$$slots:{default:[Nne]},$$scope:{ctx:r}}});function C(I){r[7](I)}let w={options:r[2]};return r[0].type!==void 0&&(w.value=r[0].type),p=new Je({props:w}),K.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),y(i,"class","params svelte-zlqv5b"),y(e,"class","root svelte-zlqv5b")},m(I,T){$(I,e,T),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,[T]){const O={};T&256&&(O.$$scope={dirty:T,ctx:I}),t.$set(O);const P={};T&256&&(P.$$scope={dirty:T,ctx:I}),l.$set(P);const M={};T&2&&(M.options=I[1]),!a&&T&1&&(a=!0,M.value=I[0].tableComponentId,pe(()=>a=!1)),o.$set(M);const H={};T&256&&(H.$$scope={dirty:T,ctx:I}),f.$set(H);const j={};!d&&T&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 Mne(r,e,t){let n,i,l,s;ue(r,mn,c=>t(5,s=c));let{parameters:o}=e;const a=[{label:"CSV",value:"csv"},{label:"JSON",value:"json"}];Gt(()=>{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=Xl(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=Xl(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 Dne extends ie{constructor(e){super();le(this,e,Mne,Rne,re,{parameters:0})}}var jne=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",NavigateTo:Dee,SaveRow:Zee,DeleteRow:ote,ExecuteQuery:gte,TriggerAutomation:Ate,ValidateForm:Pte,LogOut:Bte,ClearForm:Hte,CloseScreenModal:Jte,ChangeFormStep:nne,UpdateState:une,RefreshDataProvider:gne,DuplicateRow:Cne,S3Upload:Ine,ExportData:Dne});const Bne=(r=!1)=>E3.actions.filter(e=>{var t;return r||!e.dependsOnFeature?!0:((t=lt(Ge).clientFeatures)==null?void 0:t[e.dependsOnFeature])===!0}).map(e=>rt(Ae({},e),{component:jne[e.component]})).filter(e=>e.component!=null);function nw(r,e,t){const n=r.slice();return n[13]=e[t],n}function rw(r,e,t){const n=r.slice();return n[16]=e[t],n[18]=t,n}function iw(r){let e=r[1].id,t,n,i=lw(r);return{c(){i.c(),t=Oe()},m(l,s){i.m(l,s),$(l,t,s),n=!0},p(l,s){s&2&&re(e,e=l[1].id)?(te(),_(i,1,1,Te),ne(),i=lw(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 lw(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),y(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){te();const u=t;_(u.$$.fragment,1,0,()=>{E(u,1)}),ne()}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 zne(r){let e,t,n=r[2]&&iw(r);return{c(){n&&n.c(),e=Oe()},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=iw(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(te(),_(n,1,1,()=>{n=null}),ne())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function qne(r){let e,t;return e=new Xe({props:{noPadding:!0,$$slots:{default:[zne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524302&&(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 sw(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[16].id;for(let f=0;f<a.length;f+=1){let c=rw(r,a,f),p=u(c);n.set(p,t[f]=ow(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();y(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=Lu.call(null,e,{items:r[0],flipDurationMs:O1,dropTargetStyle:{outline:"none"}})),Pe(e,"consider",r[8]),Pe(e,"finalize",r[9])],s=!0)},p(f,c){if(c&163){a=f[0],te();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,zo,ow,null,rw);for(let p=0;p<t.length;p+=1)t[p].a();ne()}i&&mt(i.update)&&c&1&&i.update.call(null,{items:f[0],flipDurationMs:O1,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 ow(r,e){let t,n,i,l,s=e[18]+1+"",o,a,u=e[16][ec]+"",f,c,p,d,g,h=Te,v,C,w;n=new ct({props:{name:"DragHandle",size:"XL"}});function I(){return e[12](e[18])}return p=new ct({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=U(s),a=U(".\xA0"),f=U(u),c=R(),S(p.$$.fragment),d=R(),y(l,"class","action-header svelte-1dgx8bt"),y(t,"class","action-container svelte-1dgx8bt"),oe(t,"selected",e[16]===e[1]),this.first=t},m(T,O){$(T,t,O),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||(w=Pe(t,"click",function(){mt(e[7](e[16]))&&e[7](e[16]).apply(this,arguments)}),C=!0)},p(T,O){e=T,(!v||O&1)&&s!==(s=e[18]+1+"")&&Le(o,s),(!v||O&1)&&u!==(u=e[16][ec]+"")&&Le(f,u),O&3&&oe(t,"selected",e[16]===e[1])},r(){g=t.getBoundingClientRect()},f(){qo(t),h()},a(){h(),h=Fo(t,g,Uo,{duration:O1})},i(T){v||(m(n.$$.fragment,T),m(p.$$.fragment,T),v=!0)},o(T){_(n.$$.fragment,T),_(p.$$.fragment,T),v=!1},d(T){T&&b(t),E(n),E(p),C=!1,w()}}}function Fne(r){let e=r[13].name+"",t,n;return{c(){t=U(e),n=R()},m(i,l){$(i,t,l),$(i,n,l)},p:Te,d(i){i&&b(t),i&&b(n)}}}function aw(r){let e,t;return e=new Zt({props:{$$slots:{default:[Fne]},$$scope:{ctx:r}}}),e.$on("click",r[6](r[13])),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524288&&(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 Une(r){let e,t,n=r[4],i=[];for(let s=0;s<n.length;s+=1)i[s]=aw(nw(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=Oe()},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=nw(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.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Vne(r){let e;return{c(){e=U("Add Action")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hne(r){let e,t;return e=new ut({props:{slot:"control",secondary:!0,$$slots:{default:[Vne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524288&&(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 Wne(r){let e,t,n,i=r[0]&&r[0].length>0&&sw(r);return t=new Tr({props:{$$slots:{control:[Hne],default:[Une]},$$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=sw(l),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(te(),_(i,1,1,()=>{i=null}),ne());const o={};s&524288&&(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 Gne(r){let e,t;return e=new Xe({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[Wne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&524291&&(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 Yne(r){let e,t;return e=new Si({props:{$$slots:{sidebar:[Gne],default:[qne]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&524303&&(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 O1=150,ec="##eventHandlerType";function Jne(r,e,t){let n,i,l;const s=Bne();let{actions:o}=e,{bindings:a=[]}=e,u=(o==null?void 0:o.length)?o[0]:null;const f=v=>{o.splice(v,1),t(0,o)},c=v=>()=>{const C={parameters:{},[ec]:v.name,id:qr.generate()};o||t(0,o=[]),t(0,o=[...o,C]),t(1,u=C)},p=v=>()=>{t(1,u=v)};function d(v){t(0,o=v.detail.items)}function g(v){t(0,o=v.detail.items)}const h=v=>f(v);return r.$$set=v=>{"actions"in v&&t(0,o=v.actions),"bindings"in v&&t(10,a=v.bindings)},r.$$.update=()=>{var v;r.$$.dirty&3&&u&&!(o==null?void 0:o.includes(u))&&t(1,u=o==null?void 0:o[0]),r.$$.dirty&3&&t(11,n=Qj(o,u==null?void 0:u.id)),r.$$.dirty&3072&&t(3,i=n.concat(a)),r.$$.dirty&1&&o&&o.forEach(C=>{C.id||(C.id=qr.generate())}),r.$$.dirty&2&&t(2,l=u&&((v=s.find(C=>C.name===u[ec]))==null?void 0:v.component))},[o,u,l,i,s,f,c,p,d,g,a,n,h]}class Qne extends ie{constructor(e){super();le(this,e,Jne,Yne,re,{actions:0,bindings:10})}}function Xne(r){let e;return{c(){e=U("Define actions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Kne(r){let e;return{c(){e=U("Define what actions to run.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Zne(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xne(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Zne]},$$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&4096&&(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 ere(r){let e,t,n;function i(s){r[7](s)}let l={slot:"body",eventType:r[0],bindings:r[1]};return r[3]!==void 0&&(l.actions=r[3]),e=new Qne({props:l}),K.push(()=>ce(e,"actions",i)),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),n=!0},p(s,o){const a={};o&1&&(a.eventType=s[0]),o&2&&(a.bindings=s[1]),!t&&o&8&&(t=!0,a.actions=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 tre(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Xne]},$$scope:{ctx:r}}}),e.$on("click",r[4]);let l={title:"Actions",$$slots:{body:[ere],buttons:[xne],description:[Kne]},$$scope:{ctx:r}};return n=new xr({props:l}),r[8](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&4096&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&4107&&(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[8](null),E(n,s)}}}function nre(r,e,t){let n;ue(r,Xt,h=>t(9,n=h));const i=_t();let{value:l=[]}=e,{name:s}=e,{bindings:o}=e,a,u;const f=()=>{t(3,u=bn.cloneDeep(l)),a.show()},c=async()=>{const h=u.filter(v=>v["##eventHandlerType"]==="Trigger Automation");for(let v of h)await p(v.parameters);i("change",u),we.success("Component actions saved."),a.hide()},p=async h=>{var v;if(!(h.automationId||!h.newAutomationName))try{await Xt.actions.create({name:h.newAutomationName});const C=n.blockDefinitions.TRIGGER.APP,w=n.selectedAutomation.constructBlock("TRIGGER","APP",C);w.inputs={fields:Object.keys(h.fields).reduce((I,T)=>(I[T]="string",I),{})},Xt.actions.addBlockToAutomation(w),await Xt.actions.save((v=n.selectedAutomation)==null?void 0:v.automation),h.automationId=n.selectedAutomation.automation._id,delete h.newAutomationName}catch{we.error("Error creating automation")}};function d(h){u=h,t(3,u)}function g(h){K[h?"unshift":"push"](()=>{a=h,t(2,a)})}return r.$$set=h=>{"value"in h&&t(6,l=h.value),"name"in h&&t(0,s=h.name),"bindings"in h&&t(1,o=h.bindings)},[s,o,a,u,f,c,l,d,g]}class rre extends ie{constructor(e){super();le(this,e,nre,tre,re,{value:6,name:0,bindings:1})}}function uw(r,e,t){const n=r.slice();return n[3]=e[t],n}function fw(r){let e,t=r[3].name+"",n,i;return{c(){e=D("option"),n=U(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+"")&&Le(n,t),s&2&&i!==(i=l[3]._id)&&(e.__value=i,e.value=e.__value)},d(l){l&&b(e)}}}function ire(r){let e,t,n,i=r[1].list,l=[];for(let s=0;s<i.length;s+=1)l[s]=fw(uw(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=Oe(),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=uw(s,i,a);l[a]?l[a].p(u,o):(l[a]=fw(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 lre(r){let e,t,n;return t=new Je({props:{extraThin:!0,secondary:!0,wide:!0,value:r[0],$$slots:{default:[ire]},$$scope:{ctx:r}}}),t.$on("change",r[2]),{c(){e=D("div"),S(t.$$.fragment),y(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 sre(r,e,t){let n;ue(r,Ot,s=>t(1,n=s));let{value:i}=e;function l(s){ft.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class ore extends ie{constructor(e){super();le(this,e,sre,lre,re,{value:0})}}function are(r){let e,t;return e=new Wl({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 ure(r,e,t){let n;ue(r,Ge,s=>t(1,n=s));let{value:i}=e;function l(s){ft.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class T1 extends ie{constructor(e){super();le(this,e,ure,are,re,{value:0})}}var cw={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 pw(r,e,t){const n=r.slice();return n[29]=e[t],n}function dw(r,e,t){const n=r.slice();return n[32]=e[t],n[34]=t,n}function fre(r){let e;return{c(){e=U(r[8])},m(t,n){$(t,e,n)},p(t,n){n[0]&256&&Le(e,t[8])},d(t){t&&b(e)}}}function cre(r){let e;return{c(){e=D("span"),e.textContent="-"},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function mw(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&&cre();return{c(){e=D("span"),n=U(t),i=R(),u&&u.c(),l=Oe(),y(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 pre(r){let e;return{c(){e=U("Search")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function dre(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=U(n),y(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"}`)&&Le(i,n)},d(l){l&&b(e)}}}function mre(r){let e,t=!r[5]&&gw(r);return{c(){e=D("div"),t&&t.c(),y(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=gw(n),t.c(),t.m(e,null))},d(n){n&&b(e),t&&t.d()}}}function gw(r){let e,t=r[7],n=[];for(let i=0;i<t.length;i+=1)n[i]=_w(pw(r,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();e=Oe()},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=pw(i,t,s);n[s]?n[s].p(o,l):(n[s]=_w(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 _w(r){let e,t,n,i,l,s,o=r[29]+"",a,u,f,c,p,d,g,h,v,C=r[29]+"",w,I,T,O,P;function M(){return r[24](r[29])}function H(){return r[25](r[29])}return{c(){e=D("div"),t=D("div"),n=D("i"),l=R(),s=D("div"),a=U(o),u=U("-fill"),f=R(),c=D("div"),p=D("div"),d=D("i"),h=R(),v=D("div"),w=U(C),I=U("-line"),T=R(),y(n,"class",i=""+(sr(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd")),y(t,"class","icon-preview svelte-vhpvzd"),y(s,"class","icon-label svelte-vhpvzd"),y(e,"class","icon-container svelte-vhpvzd"),oe(e,"selected",r[0]===`ri-${r[29]}-fill`),y(d,"class",g=""+(sr(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd")),y(p,"class","icon-preview svelte-vhpvzd"),y(v,"class","icon-label svelte-vhpvzd"),y(c,"class","icon-container svelte-vhpvzd"),oe(c,"selected",r[0]===`ri-${r[29]}-line`)},m(j,z){$(j,e,z),N(e,t),N(t,n),N(e,l),N(e,s),N(s,a),N(s,u),$(j,f,z),$(j,c,z),N(c,p),N(p,d),N(c,h),N(c,v),N(v,w),N(v,I),N(c,T),O||(P=[Pe(e,"click",M),Pe(c,"click",H)],O=!0)},p(j,z){r=j,z[0]&128&&i!==(i=""+(sr(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd"))&&y(n,"class",i),z[0]&128&&o!==(o=r[29]+"")&&Le(a,o),z[0]&129&&oe(e,"selected",r[0]===`ri-${r[29]}-fill`),z[0]&128&&g!==(g=""+(sr(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd"))&&y(d,"class",g),z[0]&128&&C!==(C=r[29]+"")&&Le(w,C),z[0]&129&&oe(c,"selected",r[0]===`ri-${r[29]}-line`)},d(j){j&&b(e),j&&b(f),j&&b(c),O=!1,Tn(P)}}}function gre(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I,T,O,P,M,H=r[9],j=[];for(let W=0;W<H.length;W+=1)j[W]=mw(dw(r,H,W));function z(W){r[21](W)}let q={thin:!0,placeholder:"Search Icon"};r[1]!==void 0&&(q.value=r[1]),o=new et({props:q}),K.push(()=>ce(o,"value",z)),f=new ut({props:{secondary:!0,$$slots:{default:[pre]},$$scope:{ctx:r}}}),f.$on("click",r[13]);function V(W,G){return W[7].length>0?mre:dre}let Y=V(r),F=Y(r);return{c(){e=D("div"),t=D("div"),n=D("div");for(let W=0;W<j.length;W+=1)j[W].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=U(r[6]),w=R(),I=D("span"),I.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',T=R(),F.c(),y(n,"class","alphabet-area svelte-vhpvzd"),y(s,"class","input-wrapper svelte-vhpvzd"),y(l,"class","search-input svelte-vhpvzd"),y(d,"class","pager"),y(p,"class","page-area svelte-vhpvzd"),y(t,"class","search-area svelte-vhpvzd"),y(e,"class","container svelte-vhpvzd")},m(W,G){$(W,e,G),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,w),N(d,I),N(e,T),F.m(e,null),O=!0,P||(M=[Pe(g,"click",r[22]),Pe(I,"click",r[23])],P=!0)},p(W,G){if(G[0]&1540){H=W[9];let Z;for(Z=0;Z<H.length;Z+=1){const ee=dw(W,H,Z);j[Z]?j[Z].p(ee,G):(j[Z]=mw(ee),j[Z].c(),j[Z].m(n,null))}for(;Z<j.length;Z+=1)j[Z].d(1);j.length=H.length}const Q={};!a&&G[0]&2&&(a=!0,Q.value=W[1],pe(()=>a=!1)),o.$set(Q);const fe={};G[1]&16&&(fe.$$scope={dirty:G,ctx:W}),f.$set(fe),(!O||G[0]&64)&&Le(C,W[6]),Y===(Y=V(W))&&F?F.p(W,G):(F.d(1),F=Y(W),F&&(F.c(),F.m(e,null)))},i(W){O||(m(o.$$.fragment,W),m(f.$$.fragment,W),O=!0)},o(W){_(o.$$.fragment,W),_(f.$$.fragment,W),O=!1},d(W){W&&b(e),$t(j,W),E(o),E(f),F.d(),P=!1,Tn(M)}}}function _re(r){let e,t,n,i,l;t=new Yt({props:{$$slots:{default:[fre]},$$scope:{ctx:r}}}),t.$on("click",function(){mt(r[4].show)&&r[4].show.apply(this,arguments)});let s={anchor:r[3],$$slots:{default:[gre]},$$scope:{ctx:r}};return i=new wp({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 hre=Object.keys(cw).reduce((r,e)=>[...r,...Object.keys(cw[e])],[]);function I1(r){const e=new RegExp(`^${r}`,"i");return hre.filter(t=>e.test(t))}function $re(r,e,t){let n,i,l,s,o;const a=_t();let{value:u=""}=e,{maxIconsPerPage:f=30}=e,c="",p="A",d=1,g=I1(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,w=!1;async function I(G){t(15,d=1),t(1,c=""),t(5,w=!0),t(2,p=G),t(16,g=I1(G)),await Vs(),t(5,w=!1)}async function T(){t(5,w=!0);const G=g.findIndex(Q=>Q.value===u);G!==-1&&t(15,d=Math.ceil(G/f)),await Vs(),t(5,w=!1)}async function O(){if(u){const G=n.substring(0,1);await I(G),await T()}}async function P(G){t(5,w=!0),G&&d<i?t(15,d++,d):!G&&d>1&&t(15,d--,d),await Vs(),t(5,w=!1)}async function M(){t(15,d=1),t(5,w=!0),t(16,g=I1(c)),await Vs(),t(5,w=!1)}function H(G){K[G?"unshift":"push"](()=>{v=G,t(3,v)})}const j=G=>I(G);function z(G){c=G,t(1,c)}const q=()=>P(!1),V=()=>P(!0),Y=G=>t(0,u=`ri-${G}-fill`),F=G=>t(0,u=`ri-${G}-line`);function W(G){K[G?"unshift":"push"](()=>{C=G,t(4,C)})}return r.$$set=G=>{"value"in G&&t(0,u=G.value),"maxIconsPerPage"in G&&t(14,f=G.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,w,o,s,n,h,I,O,P,M,f,d,g,i,l,H,j,z,q,V,Y,F,W]}class bre extends ie{constructor(e){super();le(this,e,$re,_re,re,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function vre(r){let e,t;return e=new Je({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 wre(r,e,t){let n,i,l,s,o;ue(r,mn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=_t(),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=Cl(o,a)),r.$$.dirty&384&&t(6,i=Ri(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,wre,vre,re,{componentInstance:4,value:5,placeholder:0})}}function kre(r){let e,t;return e=new Wo({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 Cre(r,e,t){let n,i,l,s,o;ue(r,mn,g=>t(8,o=g));let{componentInstance:a={}}=e,{value:u=""}=e,{placeholder:f}=e;const c=_t(),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=Cl(o,a)),r.$$.dirty&384&&t(6,i=Ri(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 Sre extends ie{constructor(e){super();le(this,e,Cre,kre,re,{componentInstance:4,value:5,placeholder:0})}}function Are(r){let e,t;return e=new Wo({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 hw(r,e){return Array.isArray(r)||(r=[]),r.filter(t=>e.indexOf(t)!==-1)}function Ere(r,e,t){let n,i,l,s,o,a;ue(r,Ot,h=>t(9,o=h)),ue(r,mn,h=>t(8,a=h));let{componentInstance:u={}}=e,{value:f=""}=e,{placeholder:c}=e;const p=_t();function d(h,v){let C=Object.values(v);if(!(h==null?void 0:h.tableId))return C;const w=o.list.find(I=>I._id===h.tableId);return k1(C,{allowLinks:w==null?void 0:w.sql}).map(I=>I.name)}const g=h=>{t(2,s=hw(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=Cl(a,u)),r.$$.dirty&384&&t(6,i=Ri(a,n,{searchableSchema:!0}).schema),r.$$.dirty&192&&t(1,l=d(n,i||{})),r.$$.dirty&34&&t(2,s=hw(f,l))},[c,l,s,g,u,f,i,n,a]}class Ore extends ie{constructor(e){super();le(this,e,Ere,Are,re,{componentInstance:4,value:5,placeholder:0})}}function Tre(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=qi(i,n[l]);return e=new B6({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?Au(n,[s&2&&Eu(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 Ire(r,e,t){const n=[{name:"Custom",label:"Custom"}];function i(l){ft.call(this,r,l)}return r.$$set=l=>{t(1,e=qi(qi({},e),Tu(l)))},e=Tu(e),[n,e,i]}class Lre extends ie{constructor(e){super();le(this,e,Ire,Tre,re,{})}}function $w(r,e,t){const n=r.slice();return n[8]=e[t][0],n[0]=e[t][1],n}function Pre(r){let e=r[4][r[0]].name+"",t;return{c(){t=U(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[4][n[0]].name+"")&&Le(t,e)},d(n){n&&b(t)}}}function Nre(r){let e=r[0].name+"",t;return{c(){t=U(e)},m(n,i){$(n,t,i)},p:Te,d(n){n&&b(t)}}}function bw(r){let e,t,n,i,l,s,o,a;t=new ct({props:{color:"white",size:"L",name:r[0].icon}}),i=new Qe({props:{size:"XS",$$slots:{default:[Nre]},$$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(),y(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 Rre(r){let e,t,n=Object.entries(r[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=bw($w(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();y(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=$w(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(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Mre(r){let e,t;return e=new Dt({props:{onConfirm:r[6],size:"L",title:"Select layout",$$slots:{default:[Rre]},$$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 Dre(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Pre]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[2].show)&&r[2].show.apply(this,arguments)});let l={$$slots:{default:[Mre]},$$scope:{ctx:r}};return n=new Et({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 jre(r,e,t){const n=_t();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){K[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 Bre extends ie{constructor(e){super();le(this,e,jre,Dre,re,{value:0})}}function vw(r,e,t){const n=r.slice();return n[12]=e[t],n[13]=e,n[14]=t,n}function ww(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=vw(r,a,f),p=u(c);n.set(p,t[f]=yw(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();y(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=Lu.call(null,e,{items:r[0],flipDurationMs:L1,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],te();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,zo,yw,null,vw);for(let p=0;p<t.length;p+=1)t[p].a();ne()}i&&mt(i.update)&&c&3&&i.update.call(null,{items:f[0],flipDurationMs:L1,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 yw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v=Te,C,w,I;i=new ct({props:{name:"DragHandle",size:"XL"}});function T(j){e[9](j,e[12])}let O={placeholder:"Text"};e[12].text!==void 0&&(O.value=e[12].text),o=new et({props:O}),K.push(()=>ce(o,"value",T));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 Ws({props:M}),K.push(()=>ce(f,"value",P));function H(){return e[11](e[12])}return d=new ct({props:{name:"Close",hoverable:!0,size:"S"}}),d.$on("click",H),{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(),y(n,"class","handle svelte-1mnha07"),y(n,"aria-label","drag-handle"),y(n,"style",l=e[1]?"cursor: grab":"cursor: grabbing"),y(t,"class","link svelte-1mnha07"),this.first=t},m(j,z){$(j,t,z),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,w||(I=Pe(n,"mousedown",e[8]),w=!0)},p(j,z){e=j,(!C||z&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const q={};!a&&z&1&&(a=!0,q.value=e[12].text,pe(()=>a=!1)),o.$set(q);const V={};z&4&&(V.options=e[2]),!c&&z&1&&(c=!0,V.value=e[12].url,pe(()=>c=!1)),f.$set(V)},r(){h=t.getBoundingClientRect()},f(){qo(t),v()},a(){v(),v=Fo(t,h,Uo,{duration:L1})},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),w=!1,I()}}}function zre(r){let e;return{c(){e=U("Add Link")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qre(r){var s;let e,t,n,i,l=((s=r[0])==null?void 0:s.length)&&ww(r);return n=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[zre]},$$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=ww(o),l.c(),m(l,1),l.m(e.parentNode,e)):l&&(te(),_(l,1,1,()=>{l=null}),ne());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 Fre(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[qre]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 Ure(r){let e,t;return e=new Si({props:{$$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&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 L1=150;function Vre(r,e,t){let n,i;ue(r,Ge,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=qr.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 Hre extends ie{constructor(e){super();le(this,e,Vre,Ure,re,{links:0})}}function Wre(r){let e;return{c(){e=U("Configure links")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Gre(r){let e;return{c(){e=U("Configure the links in your navigation bar.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Yre(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jre(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Yre]},$$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 Qre(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 Hre({props:l}),K.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 Xre(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Wre]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Navigation Links",$$slots:{body:[Qre],buttons:[Jre],description:[Gre]},$$scope:{ctx:r}};return n=new xr({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 Kre(r,e,t){let{value:n=[]}=e,i,l=bn.cloneDeep(n||[]);const s=_t(),o=()=>{s("change",l),i.hide()};function a(f){l=f,t(1,l)}function u(f){K[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 Zre extends ie{constructor(e){super();le(this,e,Kre,Xre,re,{value:3})}}function xre(r){let e;return{c(){e=U("Define filters")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function eie(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[eie]},$$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 nie(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 C1({props:l}),K.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 rie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[xre]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[1].show)&&r[1].show.apply(this,arguments)});let l={title:"Filtering",$$slots:{body:[nie],buttons:[tie]},$$scope:{ctx:r}};return n=new xr({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 iie(r,e,t){let n,i,l,s;ue(r,mn,v=>t(9,s=v));const o=_t();let{value:a=[]}=e,{componentInstance:u}=e,{bindings:f=[]}=e,c,p=a||[];const d=async()=>{o("change",p),we.success("Filters saved."),c.hide()};function g(v){p=v,t(2,p)}function h(v){K[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=Cl(s,u)),r.$$.dirty&768&&t(7,i=(v=Ri(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 lie extends ie{constructor(e){super();le(this,e,iie,rie,re,{value:5,componentInstance:6,bindings:0})}}function kw(r){let e,t,n,i,l;return t=new ct({props:{size:"S",name:"FlashOn"}}),{c(){e=D("div"),S(t.$$.fragment),y(e,"class","icon svelte-1q3yltm"),y(e,"data-cy","text-binding-button")},m(s,o){$(s,e,o),A(t,e,null),n=!0,i||(l=Pe(e,"click",function(){mt(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 sie(r){let e;return{c(){e=U("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function oie(r){let e;return{c(){e=U("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:[oie]},$$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 uie(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=Oe()},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){te();const u=e;_(u.$$.fragment,1,0,()=>{E(u,1)}),ne()}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 fie(r){let e,t,n,i,l,s;t=new Ws({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]&&kw(r),a={title:r[2],$$slots:{body:[uie],buttons:[aie],description:[sie]},$$scope:{ctx:r}};return l=new xr({props:a}),r[20](l),{c(){e=D("div"),S(t.$$.fragment),n=R(),o&&o.c(),i=R(),S(l.$$.fragment),y(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&&(te(),_(o,1,1,()=>{o=null}),ne()):o?(o.p(u,f),f&32&&m(o,1)):(o=kw(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 cie(r,e,t){let n,i,l,s,{panel:o=v1}=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=_t();let w;const I=()=>{T(i),w.hide()},T=(z,q)=>{q&&!(g==null?void 0:g.includes(z))&&(z=`{{ ${z} }}`),C("change",As(u,z))},O=(z,q,V)=>V?[].concat(z||[]).concat((q==null?void 0:q.map(Y=>Y.readableBinding))||[]):z,P=z=>T(z.detail,!1),M=z=>T(z.detail,!0),H=z=>t(9,i=z.detail);function j(z){K[z?"unshift":"push"](()=>{w=z,t(8,w)})}return r.$$set=z=>{"panel"in z&&t(0,o=z.panel),"value"in z&&t(14,a=z.value),"bindings"in z&&t(1,u=z.bindings),"title"in z&&t(2,f=z.title),"placeholder"in z&&t(3,c=z.placeholder),"label"in z&&t(4,p=z.label),"disabled"in z&&t(5,d=z.disabled),"options"in z&&t(15,g=z.options),"allowJS"in z&&t(6,h=z.allowJS),"appendBindingsAsOptions"in z&&t(16,v=z.appendBindingsAsOptions)},r.$$.update=()=>{r.$$.dirty&16386&&t(7,n=_o(u,a)),r.$$.dirty&128&&t(9,i=n),r.$$.dirty&16384&&t(11,l=Df(a)),r.$$.dirty&98306&&t(10,s=O(g,u,v))},[o,u,f,c,p,d,h,n,w,i,s,l,I,T,a,g,v,P,M,H,j]}class Cw extends ie{constructor(e){super();le(this,e,cie,fie,re,{panel:0,value:14,bindings:1,title:2,placeholder:3,label:4,disabled:5,options:15,allowJS:6,appendBindingsAsOptions:16})}}function pie(r){let e,t;return e=new Cw({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 die(r,e,t){let n,i;ue(r,Ge,a=>t(3,i=a));let{value:l}=e,{bindings:s}=e;function o(a){ft.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 mie extends ie{constructor(e){super();le(this,e,die,pie,re,{value:0,bindings:1})}}function Sw(r,e,t){const n=r.slice();return n[6]=e[t],n[7]=e,n[8]=t,n}function Aw(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[gie]},$$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 gie(r){let e;return{c(){e=U("Add an option to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ew(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=Sw(r,l,o),u=s(a);n.set(u,t[o]=Ow(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();y(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],te(),t=er(t,a,s,1,o,l,n,e,zr,Ow,null,Sw),ne())},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 Ow(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 et({props:p}),K.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 et({props:g}),K.push(()=>ce(s,"value",d));function h(){return e[5](e[6])}return u=new ct({props:{name:"Close",hoverable:!0,size:"S"}}),u.$on("click",h),{key:r,first:null,c(){t=Oe(),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 w={};!i&&C&1&&(i=!0,w.value=e[6].label,pe(()=>i=!1)),n.$set(w);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 _ie(r){let e;return{c(){e=U("Add Option")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hie(r){var a;let e,t,n,i,l,s=!r[0].length&&Aw(r),o=((a=r[0])==null?void 0:a.length)&&Ew(r);return i=new ut({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[_ie]},$$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&&(te(),_(s,1,1,()=>{s=null}),ne()):s?f&1&&m(s,1):(s=Aw(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=Ew(u),o.c(),m(o,1),o.m(t.parentNode,t)):o&&(te(),_(o,1,1,()=>{o=null}),ne());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 $ie(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[hie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 bie(r){let e,t;return e=new Si({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&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 vie(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:qr.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 wie extends ie{constructor(e){super();le(this,e,vie,bie,re,{options:0})}}function yie(r){let e;return{c(){e=U("Define Options")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function kie(r){let e;return{c(){e=U("Define the options for this picker.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cie(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sie(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Cie]},$$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 Aie(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 wie({props:l}),K.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 Eie(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[yie]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Options",$$slots:{body:[Aie],buttons:[Sie],description:[kie]},$$scope:{ctx:r}};return n=new xr({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 Oie(r,e,t){const n=_t();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){K[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 Tie extends ie{constructor(e){super();le(this,e,Oie,Eie,re,{value:3})}}function Iie(r){let e,t;return e=new Ws({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 Lie(r,e,t){let n,i,l,s,o;ue(r,mn,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){ft.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.props,a._id,d=>d._component==="@budibase/standard-components/form")),r.$$.dirty&192&&t(5,i=Cl(o,n)),r.$$.dirty&160&&t(4,l=Ri(o,i,{formSchema:!0}).schema),r.$$.dirty&24&&t(1,s=c(l,f))},[u,s,a,f,l,i,n,o,p]}class tl extends ie{constructor(e){super();le(this,e,Lie,Iie,re,{componentInstance:2,value:0,type:3})}}function Tw(r,e,t){const n=r.slice();return n[29]=e[t],n[30]=e,n[31]=t,n}function Iw(r,e,t){const n=r.slice();return n[29]=e[t],n}function Pie(r){let e;return{c(){e=U("Schema validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nie(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[Mie]},$$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 Rie(r){let e,t,n=r[5],i=[];for(let s=0;s<n.length;s+=1)i[s]=Lw(Iw(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();y(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=Iw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Lw(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Mie(r){let e;return{c(){e=U("There are no built-in validation rules from the schema.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lw(r){let e,t,n,i,l,s,o,a,u,f,c,p;return t=new Je({props:{placeholder:"Constraint",value:r[29].constraint,options:r[4],disabled:!0}}),i=new Je({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),s=new Fn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:!0}}),a=new Fn({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(),y(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 Die(r){let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[Pie]},$$scope:{ctx:r}}});const o=[Rie,Nie],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=Oe()},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):(te(),_(a[d],1,1,()=>{a[d]=null}),ne(),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 jie(r){let e;return{c(){e=U("Custom validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Pw(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=Tw(r,l,o),u=s(a);n.set(u,t[o]=Nw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();y(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],te(),t=er(t,a,s,1,o,l,n,e,zr,Nw,null,Tw),ne())},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 Bie(r){let e,t,n,i,l;const s=[Wie,Hie,Vie,Uie,Fie],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=Oe()},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):(te(),_(o[c],1,1,()=>{o[c]=null}),ne(),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 zie(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 et({props:l}),K.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 qie(r){let e,t;function n(...i){return r[15](r[29],r[30],r[31],...i)}return e=new Fn({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 Fie(r){let e,t;return e=new Fn({props:{disabled:!0}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Te,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function Uie(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 Ml({props:l}),K.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 Vie(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 Je({props:l}),K.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 Hie(r){let e,t;return e=new Je({props:{disabled:r[29].constraint==="required",options:r[2].schema[r[3]].constraints.inclusion,getOptionLabel:Kie,getOptionValue:Zie,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 Wie(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 et({props:l}),K.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 Nw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I;function T(F){e[13](F,e[29])}let O={options:e[4],placeholder:"Constraint"};e[29].constraint!==void 0&&(O.value=e[29].constraint),n=new Je({props:O}),K.push(()=>ce(n,"value",T));function P(F){e[14](F,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 Je({props:M}),K.push(()=>ce(s,"value",P));const H=[qie,zie,Bie],j=[];function z(F,W){return F[29].valueType==="Binding"?0:((u==null||W[0]&1)&&(u=!!(F[29].type!=="array"&&["maxLength","minLength","regex","notRegex","contains","notContains"].includes(F[29].constraint))),u?1:2)}f=z(e,[-1,-1]),c=j[f]=H[f](e);function q(...F){return e[20](e[29],e[30],e[31],...F)}d=new Fn({props:{placeholder:"Error message",value:e[29].error,bindings:e[1]}}),d.$on("change",q);function V(){return e[21](e[29])}h=new ct({props:{name:"Duplicate",hoverable:!0,size:"S"}}),h.$on("click",V);function Y(){return e[22](e[29])}return C=new ct({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),w=R(),y(t,"class","rule svelte-lcp0nr"),this.first=t},m(F,W){$(F,t,W),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,w),I=!0},p(F,W){e=F;const G={};W[0]&16&&(G.options=e[4]),!i&&W[0]&1&&(i=!0,G.value=e[29].constraint,pe(()=>i=!1)),n.$set(G);const Q={};W[0]&1&&(Q.disabled=e[29].constraint==="required"),!o&&W[0]&1&&(o=!0,Q.value=e[29].valueType,pe(()=>o=!1)),s.$set(Q);let fe=f;f=z(e,W),f===fe?j[f].p(e,W):(te(),_(j[fe],1,1,()=>{j[fe]=null}),ne(),c=j[f],c?c.p(e,W):(c=j[f]=H[f](e),c.c()),m(c,1),c.m(t,p));const Z={};W[0]&1&&(Z.value=e[29].error),W[0]&2&&(Z.bindings=e[1]),d.$set(Z)},i(F){I||(m(n.$$.fragment,F),m(s.$$.fragment,F),m(c),m(d.$$.fragment,F),m(h.$$.fragment,F),m(C.$$.fragment,F),I=!0)},o(F){_(n.$$.fragment,F),_(s.$$.fragment,F),_(c),_(d.$$.fragment,F),_(h.$$.fragment,F),_(C.$$.fragment,F),I=!1},d(F){F&&b(t),E(n),E(s),j[f].d(),E(d),E(h),E(C)}}}function Gie(r){let e;return{c(){e=U("Add Rule")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Yie(r){var a;let e,t,n,i,l,s;e=new kt({props:{size:"XS",$$slots:{default:[jie]},$$scope:{ctx:r}}});let o=((a=r[0])==null?void 0:a.length)&&Pw(r);return l=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[Gie]},$$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),y(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=Pw(u),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(te(),_(o,1,1,()=>{o=null}),ne());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 Jie(r){var l;let e,t,n,i;return e=new Xe({props:{noPadding:!0,gap:((l=r[5])==null?void 0:l.length)?"S":"XS",$$slots:{default:[Die]},$$scope:{ctx:r}}}),n=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[Yie]},$$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 Qie(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"M",$$slots:{default:[Jie]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 Xie(r){let e,t;return e=new Si({props:{$$slots:{default:[Qie]},$$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 Kie=r=>r,Zie=r=>r;function xie(r,e,t){let n,i,l,s,o,a,u;ue(r,li,G=>t(11,a=G)),ue(r,mn,G=>t(12,u=G));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=G=>g[G],v=(G,Q)=>{if(!G||!Q)return null;const fe=Uf(G.props,Q._id,Z=>Z._component.endsWith("/form"));return Ri(G,fe==null?void 0:fe.dataSource)},C=(G,Q)=>{var ae,he,Re,$e,be,_e;if(!G||!Q)return[];const fe=(ae=Q.schema)==null?void 0:ae[G],Z=fe==null?void 0:fe.constraints;if(!Z)return[];let ee=[];if((G===((he=Q==null?void 0:Q.table)==null?void 0:he.primaryDisplay)||((Re=Z.presence)==null?void 0:Re.allowEmpty)===!1)&&ee.push({constraint:"required",error:"Required field"}),w(($e=Z.length)==null?void 0:$e.maximum)){const Ne=Z.length.maximum;ee.push({constraint:"maxLength",value:Ne,error:`Maximum ${Ne} characters`})}if(w((be=Z.numericality)==null?void 0:be.greaterThanOrEqualTo)){const Ne=Z.numericality.greaterThanOrEqualTo;ee.push({constraint:"minValue",value:Ne,error:`Minimum value is ${Ne}`})}if(w((_e=Z.numericality)==null?void 0:_e.lessThanOrEqualTo)){const Ne=Z.numericality.lessThanOrEqualTo;ee.push({constraint:"maxValue",value:Ne,error:`Maximum value is ${Ne}`})}return ee},w=G=>G!=null&&G!=="",I=()=>{t(0,f=[...f||[],{valueType:"Binding",type:s,id:qr.generate(),value:s=="array"?[]:null}])},T=G=>{t(0,f=f.filter(Q=>Q.id!==G))},O=G=>{const Q=f.find(Z=>Z.id===G),fe=rt(Ae({},Q),{id:qr.generate()});t(0,f=[...f,fe])};function P(G,Q){r.$$.not_equal(Q.constraint,G)&&(Q.constraint=G,t(0,f))}function M(G,Q){r.$$.not_equal(Q.valueType,G)&&(Q.valueType=G,t(0,f))}const H=(G,Q,fe,Z)=>t(0,Q[fe].value=Z.detail,f);function j(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}function z(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}function q(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}function V(G,Q){r.$$.not_equal(Q.value,G)&&(Q.value=G,t(0,f))}const Y=(G,Q,fe,Z)=>t(0,Q[fe].error=Z.detail,f),F=G=>O(G.id),W=G=>T(G.id);return r.$$set=G=>{"rules"in G&&t(0,f=G.rules),"bindings"in G&&t(1,c=G.bindings),"type"in G&&t(9,p=G.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,T,O,p,s,a,u,P,M,H,j,z,q,V,Y,F,W]}class ele extends ie{constructor(e){super();le(this,e,xie,Xie,re,{rules:0,bindings:1,type:9},null,[-1,-1])}}function tle(r){let e;return{c(){e=U("Configure validation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function nle(r){let e;return{c(){e=U("Configure validation rules for this field.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rle(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ile(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[rle]},$$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 lle(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 ele({props:l}),K.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 sle(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[tle]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[4].show)&&r[4].show.apply(this,arguments)});let l={title:"Validation Rules",$$slots:{body:[lle],buttons:[ile],description:[nle]},$$scope:{ctx:r}};return n=new xr({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 ole(r,e,t){let{value:n=[]}=e,{bindings:i=[]}=e,{componentDefinition:l}=e,{type:s}=e,o;const a=_t(),u=()=>{a("change",n),o.hide()};function f(p){n=p,t(0,n)}function c(p){K[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 Es extends ie{constructor(e){super();le(this,e,ole,sle,re,{value:0,bindings:1,componentDefinition:2,type:3})}}function ale(r){let e;return{c(){e=U("Background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ule(r){let e,t,n,i;return e=new Ke({props:{$$slots:{default:[ale]},$$scope:{ctx:r}}}),n=new Wl({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 fle(r){let e;return{c(){e=U("Text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cle(r){let e,t,n,i;return e=new Ke({props:{$$slots:{default:[fle]},$$scope:{ctx:r}}}),n=new Wl({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 ple(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 et({props:g}),K.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 Je({props:v}),K.push(()=>ce(i,"value",h)),o=new Fn({props:{label:"Value",value:r[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]"}]}}),o.$on("change",r[4]),u=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[ule]},$$scope:{ctx:r}}}),c=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[cle]},$$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,w){A(e,C,w),$(C,n,w),A(i,C,w),$(C,s,w),A(o,C,w),$(C,a,w),A(u,C,w),$(C,f,w),A(c,C,w),p=!0},p(C,w){const I={};!t&&w&1&&(t=!0,I.value=C[0].width,pe(()=>t=!1)),e.$set(I);const T={};!l&&w&1&&(l=!0,T.value=C[0].align,pe(()=>l=!1)),i.$set(T);const O={};w&1&&(O.value=C[0].template),o.$set(O);const P={};w&131&&(P.$$scope={dirty:w,ctx:C}),u.$set(P);const M={};w&131&&(M.$$scope={dirty:w,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 dle(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[ple]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 mle(r){let e,t;return e=new Si({props:{$$slots:{default:[dle]},$$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 gle(r,e,t){let n;ue(r,Ge,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 _le extends ie{constructor(e){super();le(this,e,gle,mle,re,{column:0})}}function hle(r){let e,t=r[0].name+"",n,i;return{c(){e=U('"'),n=U(t),i=U('" column settings')},m(l,s){$(l,e,s),$(l,n,s),$(l,i,s)},p(l,s){s&1&&t!==(t=l[0].name+"")&&Le(n,t)},d(l){l&&b(e),l&&b(n),l&&b(i)}}}function $le(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ble(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[$le]},$$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 vle(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 _le({props:l}),K.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 wle(r){let e,t,n,i;e=new ct({props:{name:"Settings",hoverable:!0,size:"S"}}),e.$on("click",r[3]);let l={title:"Table Columns",$$slots:{body:[vle],buttons:[ble],description:[hle]},$$scope:{ctx:r}};return n=new xr({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=Ae({},c))},o=()=>{s(n),l.show()},a=()=>{t(0,n=i),l.hide()};function u(c){i=c,t(1,i)}function f(c){K[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 kle extends ie{constructor(e){super();le(this,e,yle,wle,re,{column:0})}}function Rw(r,e,t){const n=r.slice();return n[19]=e[t],n[20]=e,n[21]=t,n}function Cle(r){let e,t,n,i;return n=new Qe({props:{size:"S",$$slots:{default:[Ale]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),y(t,"class","wide svelte-r88m8w"),y(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 Sle(r){let e,t;return e=new Xe({props:{noPadding:!0,gap:"XS",$$slots:{default:[Tle]},$$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 Ale(r){let e,t,n;return{c(){e=U(`By default, all table columns will automatically be shown.
|
|
1226
1226
|
`),t=D("br"),n=U(`
|
|
1227
1227
|
You can manually control which columns are included in your table,
|
|
1228
1228
|
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 Ele(r){let e;return{c(){e=U("Column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ole(r){let e;return{c(){e=U("Label")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Mw(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I=Te,T,O,P;i=new ct({props:{name:"DragHandle",size:"XL"}});function M(W){e[12](W,e[19])}function H(...W){return e[13](e[19],e[20],e[21],...W)}let j={placeholder:"Column",options:e[2](e[19].name)};e[19].name!==void 0&&(j.value=e[19].name),o=new Je({props:j}),K.push(()=>ce(o,"value",M)),o.$on("change",H);function z(W){e[14](W,e[19])}let q={placeholder:"Label"};e[19].displayName!==void 0&&(q.value=e[19].displayName),f=new et({props:q}),K.push(()=>ce(f,"value",z));function V(W){e[15](W,e[19],e[20],e[21])}let Y={};e[19]!==void 0&&(Y.column=e[19]),d=new kle({props:Y}),K.push(()=>ce(d,"column",V));function F(){return e[16](e[19])}return v=new ct({props:{name:"Close",hoverable:!0,size:"S",disabled:e[0].length===1}}),v.$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),h=R(),S(v.$$.fragment),C=R(),y(n,"class","handle svelte-r88m8w"),y(n,"aria-label","drag-handle"),y(n,"style",l=e[1]?"cursor: grab":"cursor: grabbing"),y(t,"class","column svelte-r88m8w"),this.first=t},m(W,G){$(W,t,G),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),T=!0,O||(P=Pe(n,"mousedown",e[11]),O=!0)},p(W,G){e=W,(!T||G&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const Q={};G&1&&(Q.options=e[2](e[19].name)),!a&&G&1&&(a=!0,Q.value=e[19].name,pe(()=>a=!1)),o.$set(Q);const fe={};!c&&G&1&&(c=!0,fe.value=e[19].displayName,pe(()=>c=!1)),f.$set(fe);const Z={};!g&&G&1&&(g=!0,Z.column=e[19],pe(()=>g=!1)),d.$set(Z);const ee={};G&1&&(ee.disabled=e[0].length===1),v.$set(ee)},r(){w=t.getBoundingClientRect()},f(){qo(t),I()},a(){I(),I=Fo(t,w,Uo,{duration:P1})},i(W){T||(m(i.$$.fragment,W),m(o.$$.fragment,W),m(f.$$.fragment,W),m(d.$$.fragment,W),m(v.$$.fragment,W),T=!0)},o(W){_(i.$$.fragment,W),_(o.$$.fragment,W),_(f.$$.fragment,W),_(d.$$.fragment,W),_(v.$$.fragment,W),T=!1},d(W){W&&b(t),E(i),E(o),E(f),E(d),E(v),O=!1,P()}}}function Tle(r){let e,t,n,i,l,s,o,a,u,f,c,p,d=[],g=new Map,h,v,C,w;i=new Ke({props:{size:"L",$$slots:{default:[Ele]},$$scope:{ctx:r}}}),s=new Ke({props:{size:"L",$$slots:{default:[Ole]},$$scope:{ctx:r}}});let I=r[0];const T=O=>O[19].id;for(let O=0;O<I.length;O+=1){let P=Rw(r,I,O),M=T(P);g.set(M,d[O]=Mw(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 O=0;O<d.length;O+=1)d[O].c();y(e,"class","column svelte-r88m8w"),y(p,"class","columns svelte-r88m8w")},m(O,P){$(O,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),$(O,c,P),$(O,p,P);for(let M=0;M<d.length;M+=1)d[M].m(p,null);v=!0,C||(w=[vr(h=Lu.call(null,p,{items:r[0],flipDurationMs:P1,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Pe(p,"finalize",r[6]),Pe(p,"consider",r[5])],C=!0)},p(O,P){const M={};P&4194304&&(M.$$scope={dirty:P,ctx:O}),i.$set(M);const H={};if(P&4194304&&(H.$$scope={dirty:P,ctx:O}),s.$set(H),P&23){I=O[0],te();for(let j=0;j<d.length;j+=1)d[j].r();d=er(d,P,T,1,O,I,g,p,zo,Mw,null,Rw);for(let j=0;j<d.length;j+=1)d[j].a();ne()}h&&mt(h.update)&&P&3&&h.update.call(null,{items:O[0],flipDurationMs:P1,dropTargetStyle:{outline:"none"},dragDisabled:O[1]})},i(O){if(!v){m(i.$$.fragment,O),m(s.$$.fragment,O);for(let P=0;P<I.length;P+=1)m(d[P]);v=!0}},o(O){_(i.$$.fragment,O),_(s.$$.fragment,O);for(let P=0;P<d.length;P+=1)_(d[P]);v=!1},d(O){O&&b(e),E(i),E(s),O&&b(c),O&&b(p);for(let P=0;P<d.length;P+=1)d[P].d();C=!1,Tn(w)}}}function Ile(r){let e;return{c(){e=U("Add column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lle(r){let e;return{c(){e=U("Add all columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Dw(r){let e,t;return e=new ut({props:{secondary:!0,quiet:!0,$$slots:{default:[Ple]},$$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 Ple(r){let e;return{c(){e=U("Reset columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Nle(r){var h;let e,t,n,i,l,s,o,a,u,f;const c=[Sle,Cle],p=[];function d(v,C){var w;return((w=v[0])==null?void 0:w.length)?0:1}e=d(r),t=p[e]=c[e](r),s=new ut({props:{secondary:!0,icon:"Add",$$slots:{default:[Ile]},$$scope:{ctx:r}}}),s.$on("click",r[3]),a=new ut({props:{secondary:!0,quiet:!0,$$slots:{default:[Lle]},$$scope:{ctx:r}}}),a.$on("click",r[7]);let g=((h=r[0])==null?void 0:h.length)&&Dw(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(),y(l,"class","buttons wide svelte-r88m8w"),y(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 O;let w=e;e=d(v),e===w?p[e].p(v,C):(te(),_(p[w],1,1,()=>{p[w]=null}),ne(),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 T={};C&4194304&&(T.$$scope={dirty:C,ctx:v}),a.$set(T),((O=v[0])==null?void 0:O.length)?g?(g.p(v,C),C&1&&m(g,1)):(g=Dw(v),g.c(),m(g,1),g.m(l,null)):g&&(te(),_(g,1,1,()=>{g=null}),ne())},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 Rle(r){let e,t,n;return t=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[Nle]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 Mle(r){let e,t;return e=new Si({props:{$$slots:{default:[Rle]},$$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 P1=150;function Dle(r,e,t){let n,{columns:i=[]}=e,{options:l=[]}=e,{schema:s={}}=e,o=!0;const a=(P,M)=>{let H={};return P.forEach(j=>{H[j]=!0}),M==null||M.forEach(j=>{delete H[j.name]}),Object.keys(H)},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 H=s[M],j=i&&i.findIndex(z=>z.name===M)!==-1;!(H==null?void 0:H.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 w=(P,M,H,j)=>t(0,M[H].displayName=j.detail,i);function I(P,M){r.$$.not_equal(M.displayName,P)&&(M.displayName=P,t(0,i))}function T(P,M,H,j){H[j]=P,t(0,i)}const O=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=qr.generate())})},[i,o,u,f,c,p,d,g,h,l,s,v,C,w,I,T,O]}class jle extends ie{constructor(e){super();le(this,e,Dle,Mle,re,{columns:0,options:9,schema:10})}}function Ble(r){let e;return{c(){e=U("Configure columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function zle(r){let e;return{c(){e=U("Configure the columns in your table.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qle(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Fle(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[qle]},$$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 Ule(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 jle({props:l}),K.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 Vle(r){let e,t,n,i;e=new Yt({props:{$$slots:{default:[Ble]},$$scope:{ctx:r}}}),e.$on("click",r[4]);let l={title:"Table Columns",$$slots:{body:[Ule],buttons:[Fle],description:[zle]},$$scope:{ctx:r}};return n=new xr({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 Hle(r,e,t){let n,i,l,s,o;ue(r,mn,T=>t(10,o=T));let{componentInstance:a}=e,{value:u=[]}=e;const f=_t();let c,p;const d=(T,O)=>{const P=Ri(T,O).schema;return P&&(delete P._id,delete P._rev),P},g=T=>{t(3,p=bn.cloneDeep(T))},h=(T,O)=>!Array.isArray(T)||!T.length?[]:(typeof T[0]=="string"&&(T=T.map(P=>({name:P,displayName:P}))),T.filter(P=>O.includes(P.name))),v=()=>{g(s),c.show()},C=()=>{f("change",h(p,l)),c.hide()};function w(T){p=T,t(3,p)}function I(T){K[T?"unshift":"push"](()=>{c=T,t(2,c)})}return r.$$set=T=>{"componentInstance"in T&&t(6,a=T.componentInstance),"value"in T&&t(7,u=T.value)},r.$$.update=()=>{r.$$.dirty&1088&&t(9,n=Cl(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,w,I]}class Wle extends ie{constructor(e){super();le(this,e,Hle,Vle,re,{componentInstance:6,value:7})}}const Gle={text:Cw,select:Je,dataSource:B6,"dataSource/s3":Oee,dataProvider:Pee,boolean:ei,number:k_,event:rre,table:ore,color:T1,icon:bre,field:yre,multifield:Sre,searchfield:Ore,options:Tie,schema:Lre,section:Bre,navigation:Zre,filter:lie,url:mie,columns:Wle,"field/string":tl,"field/number":tl,"field/options":tl,"field/boolean":tl,"field/longform":tl,"field/datetime":tl,"field/attachment":tl,"field/link":tl,"field/array":tl,"field/json":tl,"validation/string":Es,"validation/array":Es,"validation/number":Es,"validation/boolean":Es,"validation/datetime":Es,"validation/attachment":Es,"validation/link":Es},tc=r=>Gle[r];function jw(r,e,t){const n=r.slice();return n[15]=e[t],n[17]=t,n}function Bw(r,e,t){const n=r.slice();return n[18]=e[t],n}function zw(r){let e,t;return e=new La({props:{control:et,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 qw(r){var i,l;let e,t;function n(...s){return r[10](r[18],...s)}return e=new La({props:{type:r[18].type,control:tc(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=tc(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 Fw(r,e){let t,n=e[6](e[18]),i,l,s=n&&qw(e);return{key:r,first:null,c(){t=Oe(),s&&s.c(),i=Oe(),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=qw(e),s.c(),m(s,1),s.m(i.parentNode,i)):s&&(te(),_(s,1,1,()=>{s=null}),ne())},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 Uw(r){let e,t;return e=new uee({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 Vw(r){let e,t=r[15].info+"";return{c(){e=D("div"),y(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 Yle(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&&zw(r),c=r[15].settings;const p=w=>w[18].key;for(let w=0;w<c.length;w+=1){let I=Bw(r,c,w),T=p(I);i.set(T,n[w]=Fw(T,I))}let d=s&&Uw(r),g=((C=r[15])==null?void 0:C.info)&&Vw(r);return{c(){f&&f.c(),t=R();for(let w=0;w<n.length;w+=1)n[w].c();l=R(),d&&d.c(),o=R(),g&&g.c(),a=R()},m(w,I){f&&f.m(w,I),$(w,t,I);for(let T=0;T<n.length;T+=1)n[T].m(w,I);$(w,l,I),d&&d.m(w,I),$(w,o,I),g&&g.m(w,I),$(w,a,I),u=!0},p(w,I){var T,O,P;I&18&&(e=w[17]===0&&!w[1]._component.endsWith("/layout")),e?f?(f.p(w,I),I&18&&m(f,1)):(f=zw(w),f.c(),m(f,1),f.m(t.parentNode,t)):f&&(te(),_(f,1,1,()=>{f=null}),ne()),I&127&&(c=w[15].settings,te(),n=er(n,I,p,1,w,c,i,l.parentNode,zr,Fw,l,Bw),ne()),I&17&&(s=w[17]===0&&((O=(T=w[0])==null?void 0:T.component)==null?void 0:O.endsWith("/fieldgroup"))),s?d?(d.p(w,I),I&17&&m(d,1)):(d=Uw(w),d.c(),m(d,1),d.m(o.parentNode,o)):d&&(te(),_(d,1,1,()=>{d=null}),ne()),((P=w[15])==null?void 0:P.info)?g?g.p(w,I):(g=Vw(w),g.c(),g.m(a.parentNode,a)):g&&(g.d(1),g=null)},i(w){if(!u){m(f);for(let I=0;I<c.length;I+=1)m(n[I]);m(d),u=!0}},o(w){_(f);for(let I=0;I<n.length;I+=1)_(n[I]);_(d),u=!1},d(w){f&&f.d(w),w&&b(t);for(let I=0;I<n.length;I+=1)n[I].d(w);w&&b(l),d&&d.d(w),w&&b(o),g&&g.d(w),w&&b(a)}}}function Hw(r,e){let t,n,i;return n=new Ho({props:{name:e[15].name,collapsible:!1,$$slots:{default:[Yle]},$$scope:{ctx:e}}}),{key:r,first:null,c(){t=Oe(),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 Jle(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=jw(r,l,o),u=s(a);t.set(u,e[o]=Hw(u,a))}return{c(){for(let o=0;o<e.length;o+=1)e[o].c();n=Oe()},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],te(),e=er(e,a,s,1,o,l,t,n.parentNode,zr,Hw,n,jw),ne())},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 Qle(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(T=>!T.section),w=v.filter(T=>T.section);return[{name:"General",info:l==null?void 0:l.info,settings:C},...w||[]]},c=pj(async(h,v)=>{try{await Ge.actions.components.updateProp(h,v)}catch{we.error("Error updating component prop")}}),p=h=>{if(!tc(h==null?void 0:h.type))return!1;if(h.dependsOn){let C=h.dependsOn,w=null;if(typeof h.dependsOn=="object"&&(C=h.dependsOn.setting,w=h.dependsOn.value),!C)return!1;if(w==null){const I=s[C];return I===!1?!1:I===!0?!0:!bn.isEmpty(I)}return s[C]===w}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 Xle extends ie{constructor(e){super();le(this,e,Qle,Jle,re,{componentDefinition:0,componentInstance:1,assetInstance:7,bindings:2,componentBindings:3})}}function Ww(r,e,t){const n=r.slice();return n[11]=e[t],n}function Gw(r,e){let t,n,i,l;function s(...o){return e[10](e[11],...o)}return n=new La({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(),Bt(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)&&Bt(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 Kle(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=Ww(r,l,o),u=s(a);n.set(u,t[o]=Gw(u,a))}return{c(){e=D("div");for(let o=0;o<t.length;o+=1)t[o].c();y(e,"class","group-content svelte-1u21n8y"),Bt(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],te(),t=er(t,a,s,1,o,l,n,e,zr,Gw,null,Ww),ne()),(!i||a&2)&&Bt(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 Zle(r){let e,t;return e=new Ho({props:{collapsible:!1,name:`${r[0]}${r[6]?" *":""}`,$$slots:{default:[Kle]},$$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 xle(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=Ae({},g||{});return delete h.label,delete h.key,delete h.control,h},p=async(g,h)=>{try{await Ge.actions.components.updateStyle(g,h)}catch{we.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 ese extends ie{constructor(e){super();le(this,e,xle,Zle,re,{name:0,columns:1,properties:2,componentInstance:3,bindings:4})}}const Yw={label:"Margin",columns:"1fr 1fr",settings:[{label:"Top",key:"margin-top",control:Je,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:Je,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:Je,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:Je,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%"}]}]},tse={label:"Padding",columns:"1fr 1fr",settings:[{label:"Top",key:"padding-top",control:Je,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:Je,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:Je,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:Je,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%"}]}]},nse={label:"Size",columns:"1fr 1fr",settings:[{label:"Width",key:"width",control:et,placeholder:"Auto"},{label:"Height",key:"height",control:et,placeholder:"Auto"}]},rse={label:"Background",columns:"auto 1fr",settings:[{label:"Color",key:"background",control:T1},{label:"Gradient",key:"background-image",control:Je,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%);"}]}]},ise={label:"Border",columns:"1fr 1fr",settings:[{label:"Color",key:"border-color",control:T1},{label:"Width",key:"border-width",control:Je,column:"1 / 2",placeholder:"None",options:[{label:"Small",value:"1px"},{label:"Medium",value:"2px"},{label:"Large",value:"4px"}]},{label:"Style",key:"border-style",control:Je,column:"2 / 3",placeholder:"None",options:[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}]},{label:"Radius",key:"border-radius",control:Je,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:Je,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)"}]}]},N1=[Yw];var Jw=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",margin:Yw,padding:tse,size:nse,background:rse,border:ise,all:N1});function Qw(r,e,t){const n=r.slice();return n[5]=e[t],n}function Xw(r){let e,t,n=r[2],i=[];for(let s=0;s<n.length;s+=1)i[s]=Kw(Qw(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=Oe()},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=Qw(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Kw(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Kw(r){let e,t;return e=new ese({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 lse(r){var i;let e,t,n=((i=r[2])==null?void 0:i.length)>0&&Xw(r);return{c(){n&&n.c(),e=Oe()},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=Xw(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(te(),_(n,1,1,()=>{n=null}),ne())},i(l){t||(m(n),t=!0)},o(l){_(n),t=!1},d(l){n&&n.d(l),l&&b(e)}}}function sse(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[...N1];let u=[...N1];return a.styles.forEach(c=>{Jw[c]&&u.push(Jw[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 ose extends ie{constructor(e){super();le(this,e,sse,lse,re,{componentDefinition:3,componentInstance:0,bindings:1})}}function ase(r){let e;return{c(){e=U("Edit custom CSS")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function use(r){let e,t,n;return t=new Yt({props:{$$slots:{default:[ase]},$$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 fse(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cse(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[fse]},$$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 pse(r){let e;return{c(){e=U("Custom CSS overrides all other component styles.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function dse(r){let e,t,n,i,l;e=new Qe({props:{size:"S",$$slots:{default:[pse]},$$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 Zr({props:o}),K.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 mse(r){let e,t,n;return t=new Xe({props:{gap:"S",noPadding:!0,$$slots:{default:[dse]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 gse(r){let e,t;return e=new Si({props:{slot:"body",$$slots:{default:[mse]},$$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 Zw(r){let e,t,n={title:"Custom CSS",$$slots:{body:[gse],buttons:[cse]},$$scope:{ctx:r}};return e=new xr({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 _se(r){var o,a,u;let e,t,n=(o=r[0])==null?void 0:o._id,i,l;e=new Ho({props:{name:`Custom CSS${((u=(a=r[0])==null?void 0:a._styles)==null?void 0:u.custom)?" *":""}`,collapsible:!1,$$slots:{default:[use]},$$scope:{ctx:r}}});let s=Zw(r);return{c(){S(e.$$.fragment),t=R(),s.c(),i=Oe()},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)?(te(),_(s,1,1,Te),ne(),s=Zw(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 hse(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 Ge.actions.components.updateCustomStyle(i)}catch{we.error("Error updating custom style")}l.hide()};function a(f){i=f,t(1,i)}function u(f){K[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 $se extends ie{constructor(e){super();le(this,e,hse,_se,re,{componentInstance:0})}}function xw(r,e,t){const n=r.slice();return n[32]=e[t],n[33]=e,n[34]=t,n}function bse(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[wse]},$$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 vse(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=xw(r,a,f),p=u(c);n.set(p,t[f]=t8(p,c))}return{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();y(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=Lu.call(null,e,{items:r[0],flipDurationMs:R1,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],te();for(let p=0;p<t.length;p+=1)t[p].r();t=er(t,c,u,1,f,a,n,e,zo,t8,null,xw);for(let p=0;p<t.length;p+=1)t[p].a();ne()}i&&mt(i.update)&&c[0]&9&&i.update.call(null,{items:f[0],flipDurationMs:R1,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 wse(r){let e;return{c(){e=U("Add your first condition to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function e8(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 Je({props:p}),K.push(()=>ce(e,"value",c));const d=[kse,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=Oe()},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 w={};C[0]&16&&(w.options=r[4]),!t&&C[0]&1&&(t=!0,w.value=r[32].setting,pe(()=>t=!1)),e.$set(w);let I=o;o=h(r,C),o===I?g[o].p(r,C):(te(),_(g[I],1,1,()=>{g[I]=null}),ne(),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 Je({props:{disabled:!0,placeholder:" "}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Te,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function kse(r){let e,t;function n(...i){return r[21](r[32],r[33],r[34],...i)}return e=new La({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 Cse(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 Je({props:l}),K.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 Sse(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 Ml({props:l}),K.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 Ase(r){let e,t;function n(...i){return r[27](r[32],r[33],r[34],...i)}return e=new Fn({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 t8(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I,T,O,P,M,H,j,z,q,V,Y,F=Te,W,G,Q;i=new ct({props:{name:"DragHandle",size:"XL"}});function fe(qe){e[19](qe,e[32])}let Z={placeholder:null,options:e[5]};e[32].action!==void 0&&(Z.value=e[32].action),o=new Je({props:Z}),K.push(()=>ce(o,"value",fe));let ee=e[32].action==="update"&&e8(e);function ae(...qe){return e[22](e[32],e[33],e[34],...qe)}d=new Fn({props:{bindings:e[1],placeholder:"Value",value:e[32].newValue}}),d.$on("change",ae);function he(qe){e[23](qe,e[32])}function Re(...qe){return e[24](e[32],...qe)}let $e={placeholder:null,options:e[14](e[32])};e[32].operator!==void 0&&($e.value=e[32].operator),h=new Je({props:$e}),K.push(()=>ce(h,"value",he)),h.$on("change",Re);function be(qe){e[25](qe,e[32])}function _e(...qe){return e[26](e[32],...qe)}let Ne={disabled:e[32].noValue,options:e[6],placeholder:null};e[32].valueType!==void 0&&(Ne.value=e[32].valueType),w=new Je({props:Ne}),K.push(()=>ce(w,"value",be)),w.$on("change",_e);const Ue=[Ase,Sse,Cse],se=[];function Se(qe,ke){return(O==null||ke[0]&1)&&(O=!!["string","number"].includes(qe[32].valueType)),O?0:qe[32].valueType==="datetime"?1:qe[32].valueType==="boolean"?2:-1}~(P=Se(e,[-1,-1]))&&(M=se[P]=Ue[P](e));function me(){return e[30](e[32])}j=new ct({props:{name:"Duplicate",hoverable:!0,size:"S"}}),j.$on("click",me);function Ce(){return e[31](e[32])}return q=new ct({props:{name:"Close",hoverable:!0,size:"S"}}),q.$on("click",Ce),{key:r,first:null,c(){t=D("div"),n=D("div"),S(i.$$.fragment),s=R(),S(o.$$.fragment),u=R(),ee&&ee.c(),f=R(),c=D("div"),c.textContent="IF",p=R(),S(d.$$.fragment),g=R(),S(h.$$.fragment),C=R(),S(w.$$.fragment),T=R(),M&&M.c(),H=R(),S(j.$$.fragment),z=R(),S(q.$$.fragment),V=R(),y(n,"class","handle svelte-1vod3ll"),y(n,"aria-label","drag-handle"),y(n,"style",l=e[3]?"cursor: grab":"cursor: grabbing"),y(t,"class","condition svelte-1vod3ll"),oe(t,"update",e[32].action==="update"),this.first=t},m(qe,ke){$(qe,t,ke),N(t,n),A(i,n,null),N(t,s),A(o,t,null),N(t,u),ee&&ee.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(w,t,null),N(t,T),~P&&se[P].m(t,null),N(t,H),A(j,t,null),N(t,z),A(q,t,null),N(t,V),W=!0,G||(Q=Pe(n,"mousedown",e[18]),G=!0)},p(qe,ke){e=qe,(!W||ke[0]&8&&l!==(l=e[3]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const Ye={};!a&&ke[0]&1&&(a=!0,Ye.value=e[32].action,pe(()=>a=!1)),o.$set(Ye),e[32].action==="update"?ee?(ee.p(e,ke),ke[0]&1&&m(ee,1)):(ee=e8(e),ee.c(),m(ee,1),ee.m(t,f)):ee&&(te(),_(ee,1,1,()=>{ee=null}),ne());const Nt={};ke[0]&2&&(Nt.bindings=e[1]),ke[0]&1&&(Nt.value=e[32].newValue),d.$set(Nt);const Fe={};ke[0]&1&&(Fe.options=e[14](e[32])),!v&&ke[0]&1&&(v=!0,Fe.value=e[32].operator,pe(()=>v=!1)),h.$set(Fe);const pt={};ke[0]&1&&(pt.disabled=e[32].noValue),!I&&ke[0]&1&&(I=!0,pt.value=e[32].valueType,pe(()=>I=!1)),w.$set(pt);let Rt=P;P=Se(e,ke),P===Rt?~P&&se[P].p(e,ke):(M&&(te(),_(se[Rt],1,1,()=>{se[Rt]=null}),ne()),~P?(M=se[P],M?M.p(e,ke):(M=se[P]=Ue[P](e),M.c()),m(M,1),M.m(t,H)):M=null),ke[0]&1&&oe(t,"update",e[32].action==="update")},r(){Y=t.getBoundingClientRect()},f(){qo(t),F()},a(){F(),F=Fo(t,Y,Uo,{duration:R1})},i(qe){W||(m(i.$$.fragment,qe),m(o.$$.fragment,qe),m(ee),m(d.$$.fragment,qe),m(h.$$.fragment,qe),m(w.$$.fragment,qe),m(M),m(j.$$.fragment,qe),m(q.$$.fragment,qe),W=!0)},o(qe){_(i.$$.fragment,qe),_(o.$$.fragment,qe),_(ee),_(d.$$.fragment,qe),_(h.$$.fragment,qe),_(w.$$.fragment,qe),_(M),_(j.$$.fragment,qe),_(q.$$.fragment,qe),W=!1},d(qe){qe&&b(t),E(i),E(o),ee&&ee.d(),E(d),E(h),E(w),~P&&se[P].d(),E(j),E(q),G=!1,Q()}}}function Ese(r){let e;return{c(){e=U("Add condition")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ose(r){let e,t,n,i,l,s;const o=[vse,bse],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:[Ese]},$$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):(te(),_(a[p],1,1,()=>{a[p]=null}),ne(),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 Tse(r){let e,t,n;return t=new Xe({props:{noPadding:!0,$$slots:{default:[Ose]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),y(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 Ise(r){let e,t;return e=new Si({props:{$$slots:{default:[Tse]},$$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 R1=150;function Lse(r,e,t){let n,i,l;ue(r,li,Z=>t(2,l=Z));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=Z=>n.find(ee=>ee.key===Z),p=Z=>{const ee=c(Z);return tc((ee==null?void 0:ee.type)||"text")},d=()=>{t(0,s=[...s,{valueType:"string",id:qr.generate(),action:"hide",operator:Lr.Equals.value}])},g=Z=>{t(0,s=s.filter(ee=>ee.id!==Z))},h=Z=>{const ee=s.find(he=>he.id===Z),ae=rt(Ae({},ee),{id:qr.generate()});t(0,s=[...s,ae])},v=Z=>{C(Z),t(3,f=!0)},C=Z=>{t(0,s=Z.detail.items)},w=Z=>Ca(Z.valueType),I=(Z,ee)=>{const ae=[Lr.Empty.value,Lr.NotEmpty.value];Z.noValue=ae.includes(ee),Z.noValue&&(Z.referenceValue=null,Z.valueType="string")},T=(Z,ee)=>{var he;Z.referenceValue=null;const ae=Ca(ee).map(Re=>Re.value);ae.includes(Z.operator)||(Z.operator=(he=ae[0])!=null?he:Lr.Equals.value,I(Z,Z.operator))},O=()=>t(3,f=!1);function P(Z,ee){r.$$.not_equal(ee.action,Z)&&(ee.action=Z,t(0,s))}function M(Z,ee){r.$$.not_equal(ee.setting,Z)&&(ee.setting=Z,t(0,s))}const H=(Z,ee,ae,he)=>t(0,ee[ae].settingValue=he,s),j=(Z,ee,ae,he)=>t(0,ee[ae].newValue=he.detail,s);function z(Z,ee){r.$$.not_equal(ee.operator,Z)&&(ee.operator=Z,t(0,s))}const q=(Z,ee)=>I(Z,ee.detail);function V(Z,ee){r.$$.not_equal(ee.valueType,Z)&&(ee.valueType=Z,t(0,s))}const Y=(Z,ee)=>T(Z,ee.detail),F=(Z,ee,ae,he)=>t(0,ee[ae].referenceValue=he.detail,s);function W(Z,ee){r.$$.not_equal(ee.referenceValue,Z)&&(ee.referenceValue=Z,t(0,s))}function G(Z,ee){r.$$.not_equal(ee.referenceValue,Z)&&(ee.referenceValue=Z,t(0,s))}const Q=Z=>h(Z.id),fe=Z=>g(Z.id);return r.$$set=Z=>{"conditions"in Z&&t(0,s=Z.conditions),"bindings"in Z&&t(1,o=Z.bindings)},r.$$.update=()=>{r.$$.dirty[0]&4&&t(17,n=Aa(l==null?void 0:l._component)),r.$$.dirty[0]&131072&&t(4,i=n.map(Z=>({label:Z.label,value:Z.key}))),r.$$.dirty[0]&1&&s.forEach(Z=>{Z.id||(Z.id=qr.generate())})},[s,o,l,f,i,a,u,c,p,d,g,h,v,C,w,I,T,n,O,P,M,H,j,z,q,V,Y,F,W,G,Q,fe]}class Pse extends ie{constructor(e){super();le(this,e,Lse,Ise,re,{conditions:0,bindings:1},null,[-1,-1])}}function Nse(r){let e;return{c(){e=U("Configure conditions")},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[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 Mse(r){let e;return{c(){e=U("Show, hide and update components in response to conditions being met.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Dse(r){let e;return{c(){e=U("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function jse(r){let e,t;return e=new ut({props:{cta:!0,slot:"buttons",$$slots:{default:[Dse]},$$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 Bse(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 Pse({props:l}),K.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 zse(r){var s;let e,t,n,i;e=new Ho({props:{name:`Conditions${((s=r[0])==null?void 0:s._conditions)?" *":""}`,collapsible:!1,$$slots:{default:[Rse]},$$scope:{ctx:r}}});let l={title:"Conditions",$$slots:{body:[Bse],buttons:[jse],description:[Mse]},$$scope:{ctx:r}};return n=new xr({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 qse(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 Ge.actions.components.updateConditions(l)}catch{we.error("Error updating conditions")}s.hide()};function u(p){l=p,t(2,l)}const f=()=>a();function c(p){K[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 Fse extends ie{constructor(e){super();le(this,e,qse,zse,re,{componentInstance:0,bindings:1})}}function n8(r){let e,t,n,i,l,s,o,a,u,f;return e=new Qx({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),n=new Xle({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1],componentBindings:r[0]}}),l=new ose({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),o=new $se({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),u=new Fse({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 Use(r){var l;let e,t=(l=r[3])==null?void 0:l._id,n,i=n8(r);return{c(){e=D("div"),i.c(),y(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)?(te(),_(i,1,1,Te),ne(),i=n8(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 Vse(r){let e,t;return e=new $n({props:{title:"Settings",$$slots:{default:[Use]},$$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 Hse(r){let e,t;return e=new Wr({props:{selected:"Settings",noPadding:!0,$$slots:{default:[Vse]},$$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 Wse(r,e,t){let n,i,l,s,o,a,u;return ue(r,Ge,f=>t(4,o=f)),ue(r,mn,f=>t(5,a=f)),ue(r,li,f=>t(6,u=f)),r.$$.update=()=>{r.$$.dirty&64&&t(3,n=u),r.$$.dirty&64&&t(2,i=Ge.actions.components.getDefinition(u==null?void 0:u._component)),r.$$.dirty&48&&t(1,l=Fj(a,o.selectedComponentId)),r.$$.dirty&48&&t(0,s=Uj(a,o.selectedComponentId))},[s,l,i,n,o,a,u]}class Gse extends ie{constructor(e){super();le(this,e,Wse,Hse,re,{})}}var Yse=[{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"]}];function r8(r,e,t){const n=r.slice();return n[9]=e[t],n}function i8(r,e,t){const n=r.slice();return n[9]=e[t],n}function l8(r){let e,t;function n(){return r[7](r[9])}return e=new Zt({props:{dataCy:`component-${r[9].name}`,icon:r[9].icon,disabled:r[3](r[9],r[1]),$$slots:{default:[Jse]},$$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 Jse(r){let e=r[9].name+"",t;return{c(){t=U(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[9].name+"")&&Le(t,e)},d(n){n&&b(t)}}}function s8(r){let e=!r[9].showOnAsset||r[9].showOnAsset.includes(r[2]),t,n,i=e&&l8(r);return{c(){i&&i.c(),t=Oe()},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=l8(l),i.c(),m(i,1),i.m(t.parentNode,t)):i&&(te(),_(i,1,1,()=>{i=null}),ne())},i(l){n||(m(i),n=!0)},o(l){_(i),n=!1},d(l){i&&i.d(l),l&&b(t)}}}function Qse(r){let e,t,n=r[9].children||[],i=[];for(let s=0;s<n.length;s+=1)i[s]=s8(i8(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=i8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=s8(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 o8(r){let e,t;return e=new ct({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 Xse(r){let e,t=r[9].name+"",n,i,l,s,o=r[9].isCategory&&o8();return{c(){e=D("div"),n=U(t),i=R(),o&&o.c(),l=R(),y(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+"")&&Le(n,t),a[9].isCategory?o?u&1&&m(o,1):(o=o8(),o.c(),m(o,1),o.m(e,null)):o&&(te(),_(o,1,1,()=>{o=null}),ne())},i(a){s||(m(o),s=!0)},o(a){_(o),s=!1},d(a){a&&b(e),o&&o.d(),a&&b(l)}}}function Kse(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:[Xse]},$$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 a8(r){let e,t;return e=new Tr({props:{disabled:!r[9].isCategory,$$slots:{control:[Kse],default:[Qse]},$$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 Zse(r){let e,t,n=r[0],i=[];for(let s=0;s<n.length;s+=1)i[s]=a8(r8(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();y(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=r8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=a8(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 xse(r,e,t){let n,i,l,s;ue(r,Ge,p=>t(5,i=p)),ue(r,li,p=>t(1,l=p)),ue(r,iB,p=>t(2,s=p));const o=({name:p},d)=>{var h;const g=Ge.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(rt(Ae({},v),{isCategory:!1}))}else g.push(rt(Ae({},h),{isCategory:!0,children:a(h.children||[],d)}))}),g},u=async p=>{if(!p.isCategory)try{await Ge.actions.components.create(p.component)}catch{we.error("Error creating component")}},f=p=>u(p),c=p=>u(p);return r.$$.update=()=>{r.$$.dirty&32&&t(0,n=a(Yse,i.components))},[n,l,s,o,u,i,f,c]}class eoe extends ie{constructor(e){super();le(this,e,xse,Zse,re,{})}}const u8={MOVE:"move",COPY:"copy"},Gr={ABOVE:"above",BELOW:"below",INSIDE:"inside"};function f8(){const r=cn({});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=Gr.ABOVE),i>.8&&(l.dropPosition=Gr.BELOW),i>.4&&i<.8&&(l.dropPosition=Gr.INSIDE),l):(i>.5?l.dropPosition=Gr.BELOW:l.dropPosition=n?Gr.INSIDE:Gr.ABOVE,l)))},reset:()=>{r.update(e=>(e.dropPosition="",e.targetComponent=null,e.dragged=null,e))},drop:async()=>{const e=lt(r);e.targetComponent===e.dragged||!e.targetComponent||!e.dragged||Ql(e.dragged,e.targetComponent._id).map(i=>i._id).includes(e.targetComponent._id)||(Ge.actions.components.copy(e.dragged,!0),await Ge.actions.components.paste(e.targetComponent,e.dropPosition),r.actions.reset())}},r}function c8(r){var s;let e,t,n,i;e=new Tr({props:{$$slots:{control:[coe],default:[foe]},$$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 Cr({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 toe(r){let e;return{c(){e=U("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function noe(r){let e;return{c(){e=U("Move up")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function roe(r){let e;return{c(){e=U("Move down")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ioe(r){let e;return{c(){e=U("Duplicate")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function loe(r){let e;return{c(){e=U("Cut")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function soe(r){let e;return{c(){e=U("Copy")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ooe(r){let e;return{c(){e=U("Paste above")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function aoe(r){let e;return{c(){e=U("Paste below")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function uoe(r){let e;return{c(){e=U("Paste inside")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function foe(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w;return e=new Zt({props:{icon:"Delete",$$slots:{default:[toe]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[1].show)&&r[1].show.apply(this,arguments)}),n=new Zt({props:{noClose:!0,icon:"ChevronUp",$$slots:{default:[noe]},$$scope:{ctx:r}}}),n.$on("click",r[5]),l=new Zt({props:{noClose:!0,icon:"ChevronDown",$$slots:{default:[roe]},$$scope:{ctx:r}}}),l.$on("click",r[6]),o=new Zt({props:{noClose:!0,icon:"Duplicate",$$slots:{default:[ioe]},$$scope:{ctx:r}}}),o.$on("click",r[7]),u=new Zt({props:{icon:"Cut",$$slots:{default:[loe]},$$scope:{ctx:r}}}),u.$on("click",r[13]),c=new Zt({props:{icon:"Copy",$$slots:{default:[soe]},$$scope:{ctx:r}}}),c.$on("click",r[14]),d=new Zt({props:{icon:"LayersBringToFront",disabled:r[3],$$slots:{default:[ooe]},$$scope:{ctx:r}}}),d.$on("click",r[15]),h=new Zt({props:{icon:"LayersSendToBack",disabled:r[3],$$slots:{default:[aoe]},$$scope:{ctx:r}}}),h.$on("click",r[16]),C=new Zt({props:{icon:"ShowOneLayer",disabled:r[3]||r[4],$$slots:{default:[uoe]},$$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,T){A(e,I,T),$(I,t,T),A(n,I,T),$(I,i,T),A(l,I,T),$(I,s,T),A(o,I,T),$(I,a,T),A(u,I,T),$(I,f,T),A(c,I,T),$(I,p,T),A(d,I,T),$(I,g,T),A(h,I,T),$(I,v,T),A(C,I,T),w=!0},p(I,T){r=I;const O={};T&524288&&(O.$$scope={dirty:T,ctx:r}),e.$set(O);const P={};T&524288&&(P.$$scope={dirty:T,ctx:r}),n.$set(P);const M={};T&524288&&(M.$$scope={dirty:T,ctx:r}),l.$set(M);const H={};T&524288&&(H.$$scope={dirty:T,ctx:r}),o.$set(H);const j={};T&524288&&(j.$$scope={dirty:T,ctx:r}),u.$set(j);const z={};T&524288&&(z.$$scope={dirty:T,ctx:r}),c.$set(z);const q={};T&8&&(q.disabled=r[3]),T&524288&&(q.$$scope={dirty:T,ctx:r}),d.$set(q);const V={};T&8&&(V.disabled=r[3]),T&524288&&(V.$$scope={dirty:T,ctx:r}),h.$set(V);const Y={};T&24&&(Y.disabled=r[3]||r[4]),T&524288&&(Y.$$scope={dirty:T,ctx:r}),C.$set(Y)},i(I){w||(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),w=!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),w=!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 coe(r){let e,t,n;return t=new ct({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),S(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Te,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function poe(r){let e,t,n=r[2]&&c8(r);return{c(){n&&n.c(),e=Oe()},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=c8(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(te(),_(n,1,1,()=>{n=null}),ne())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function doe(r,e,t){let n,i,l,s,o;ue(r,Ge,P=>t(12,o=P));let{component:a}=e,u;const f=()=>{const P=lt(mn),M=Jl(P.props,a._id);if(!M)return;const H=M._children.indexOf(a);if(H!==0)try{const j=M._children.filter(z=>z!==a);j.splice(H-1,0,a),M._children=j,Ge.actions.preview.saveSelected()}catch{we.error("Error saving screen")}},c=()=>{const P=lt(mn),M=Jl(P.props,a._id);if(!M)return;const H=M._children.indexOf(a);if(H!==M._children.length-1)try{const j=M._children.filter(z=>z!==a);j.splice(H+1,0,a),M._children=j,Ge.actions.preview.saveSelected()}catch{we.error("Error saving screen")}},p=()=>{g(!1),h("below",!0)},d=async()=>{try{await Ge.actions.components.delete(a)}catch{we.error("Error deleting component")}},g=(P=!1)=>{Ge.actions.components.copy(a,P)},h=(P,M=!1)=>{try{Ge.actions.components.paste(a,P,M)}catch{we.error("Error saving component")}},v=()=>g(!0),C=()=>g(!1),w=()=>h("above"),I=()=>h("below"),T=()=>h("inside");function O(P){K[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=Ge.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,w,I,T,O]}class moe extends ie{constructor(e){super();le(this,e,doe,poe,re,{component:11})}}function p8(r,e,t){const n=r.slice();return n[16]=e[t],n[18]=t,n}function d8(r){let e,t,n;return{c(){e=D("div"),y(e,"ondragover","return false"),y(e,"ondragenter","return false"),y(e,"class","drop-item svelte-1kt57h3"),Bt(e,"margin-left",(r[3]+1)*16+"px")},m(i,l){$(i,e,l),t||(n=Pe(e,"drop",r[13]),t=!0)},p(i,l){l&8&&Bt(e,"margin-left",(i[3]+1)*16+"px")},d(i){i&&b(e),t=!1,n()}}}function goe(r){let e,t;return e=new moe({props:{component:r[16]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.component=n[16]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function m8(r){let e,t;return e=new M1({props:{components:r[16]._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[16]._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 g8(r){let e,t,n;return{c(){e=D("div"),y(e,"ondragover","return false"),y(e,"ondragenter","return false"),y(e,"class","drop-item svelte-1kt57h3"),Bt(e,"margin-left",(r[3]+(r[6].dropPosition===Gr.INSIDE?3:1))*16+"px")},m(i,l){$(i,e,l),t||(n=Pe(e,"drop",r[13]),t=!0)},p(i,l){l&72&&Bt(e,"margin-left",(i[3]+(i[6].dropPosition===Gr.INSIDE?3:1))*16+"px")},d(i){i&&b(e),t=!1,n()}}}function _8(r,e){var v,C,w,I;let t,n,i,l,s,o,a,u,f,c=((v=e[6])==null?void 0:v.targetComponent)===e[16]&&e[6].dropPosition===Gr.ABOVE&&d8(e);function p(){return e[14](e[16])}i=new Al({props:{draggable:!0,text:e[11](e[16]),withArrow:!0,indentLevel:e[3]+1,selected:e[7].selectedComponentId===e[16]._id,opened:!e[5][e[16]._id]&&((w=(C=e[16])==null?void 0:C._children)==null?void 0:w.length),$$slots:{default:[goe]},$$scope:{ctx:e}}}),i.$on("dragend",function(){mt(e[4].actions.reset)&&e[4].actions.reset.apply(this,arguments)}),i.$on("dragstart",function(){mt(e[9](e[16]))&&e[9](e[16]).apply(this,arguments)}),i.$on("dragover",function(){mt(e[10](e[16],e[18]))&&e[10](e[16],e[18]).apply(this,arguments)}),i.$on("iconClick",p),i.$on("drop",e[13]);let d=e[16]._children&&!e[5][e[16]._id]&&m8(e),g=((I=e[6])==null?void 0:I.targetComponent)===e[16]&&(e[6].dropPosition===Gr.INSIDE||e[6].dropPosition===Gr.BELOW)&&g8(e);function h(){return e[15](e[16])}return{key:r,first:null,c(){t=D("li"),c&&c.c(),n=R(),S(i.$$.fragment),l=R(),d&&d.c(),s=R(),g&&g.c(),o=R(),this.first=t},m(T,O){$(T,t,O),c&&c.m(t,null),N(t,n),A(i,t,null),N(t,l),d&&d.m(t,null),N(t,s),g&&g.m(t,null),N(t,o),a=!0,u||(f=Pe(t,"click",gp(h)),u=!0)},p(T,O){var M,H,j,z;e=T,((M=e[6])==null?void 0:M.targetComponent)===e[16]&&e[6].dropPosition===Gr.ABOVE?c?c.p(e,O):(c=d8(e),c.c(),c.m(t,n)):c&&(c.d(1),c=null);const P={};O&1&&(P.text=e[11](e[16])),O&8&&(P.indentLevel=e[3]+1),O&129&&(P.selected=e[7].selectedComponentId===e[16]._id),O&33&&(P.opened=!e[5][e[16]._id]&&((j=(H=e[16])==null?void 0:H._children)==null?void 0:j.length)),O&524289&&(P.$$scope={dirty:O,ctx:e}),i.$set(P),e[16]._children&&!e[5][e[16]._id]?d?(d.p(e,O),O&33&&m(d,1)):(d=m8(e),d.c(),m(d,1),d.m(t,s)):d&&(te(),_(d,1,1,()=>{d=null}),ne()),((z=e[6])==null?void 0:z.targetComponent)===e[16]&&(e[6].dropPosition===Gr.INSIDE||e[6].dropPosition===Gr.BELOW)?g?g.p(e,O):(g=g8(e),g.c(),g.m(t,o)):g&&(g.d(1),g=null)},i(T){a||(m(i.$$.fragment,T),m(d),a=!0)},o(T){_(i.$$.fragment,T),_(d),a=!1},d(T){T&&b(t),c&&c.d(),E(i),d&&d.d(),g&&g.d(),u=!1,f()}}}function _oe(r){let e,t=[],n=new Map,i,l=r[0];const s=o=>o[16]._id;for(let o=0;o<l.length;o+=1){let a=p8(r,l,o),u=s(a);n.set(u,t[o]=_8(u,a))}return{c(){e=D("ul");for(let o=0;o<t.length;o+=1)t[o].c();y(e,"class","svelte-1kt57h3")},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&16383&&(l=o[0],te(),t=er(t,a,s,1,o,l,n,e,zr,_8,null,p8),ne())},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 hoe(r,e,t){let n,i=Te,l=()=>(i(),i=p_(c,O=>t(6,n=O)),c),s;ue(r,Ge,O=>t(7,s=O)),r.$$.on_destroy.push(()=>i());let{components:o=[]}=e,{currentComponent:a}=e,{onSelect:u=()=>{}}=e,{level:f=0}=e,{dragDropStore:c}=e;l();let p={};const d=O=>{Ge.actions.components.select(O)},g=O=>P=>{P.dataTransfer.dropEffect=u8.MOVE,c.actions.dragstart(O)},h=(O,P)=>M=>{var q;const H=Ge.actions.components.getDefinition(O._component),j=(H==null?void 0:H.hasChildren)&&!((q=O._children)==null?void 0:q.length);M.dataTransfer.dropEffect=u8.COPY;const z=M.offsetY/M.currentTarget.offsetHeight;return c.actions.dragover({component:O,index:P,canHaveChildrenButIsEmpty:j,mousePosition:z}),!1},v=O=>{if(O._instanceName)return O._instanceName;const P=O._component.replace("@budibase/standard-components/","")||"component";return kr(P)};function C(O){p[O]?delete p[O]:t(5,p[O]=!0,p),t(5,p)}const w=async()=>{try{await c.actions.drop()}catch{we.error("Error saving component")}},I=O=>C(O._id),T=O=>d(O);return r.$$set=O=>{"components"in O&&t(0,o=O.components),"currentComponent"in O&&t(1,a=O.currentComponent),"onSelect"in O&&t(2,u=O.onSelect),"level"in O&&t(3,f=O.level),"dragDropStore"in O&&l(t(4,c=O.dragDropStore))},[o,a,u,f,c,p,n,s,d,g,h,v,C,w,I,T]}class M1 extends ie{constructor(e){super();le(this,e,hoe,_oe,re,{components:0,currentComponent:1,onSelect:2,level:3,dragDropStore:4})}}function $oe(r){let e;return{c(){e=U("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function boe(r){let e,t;return e=new Zt({props:{icon:"Delete",$$slots:{default:[$oe]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[0].show)&&r[0].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&128&&(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 voe(r){let e,t,n;return t=new ct({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),S(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Te,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function woe(r){let e,t,n,i;e=new Tr({props:{$$slots:{control:[voe],default:[boe]},$$scope:{ctx:r}}});let l={title:"Confirm Deletion",body:"Are you sure you wish to delete this screen?",okText:"Delete Screen",onOk:r[1]};return n=new Cr({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){const a={};o&129&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};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 yoe(r,e,t){let n,i,l;ue(r,qt,f=>t(6,i=f)),ue(r,Kl,f=>t(4,l=f));let{screenId:s}=e,o;const a=async()=>{try{await Ge.actions.screens.delete(n),i("../"),we.success("Deleted screen successfully.")}catch{we.error("Error deleting screen")}};function u(f){K[f?"unshift":"push"](()=>{o=f,t(0,o)})}return r.$$set=f=>{"screenId"in f&&t(2,s=f.screenId)},r.$$.update=()=>{r.$$.dirty&20&&t(3,n=l.find(f=>f._id===s))},[o,a,s,n,l,u]}class koe extends ie{constructor(e){super();le(this,e,yoe,woe,re,{screenId:2})}}function h8(r,e,t){const n=r.slice();return n[23]=e[t],n}function $8(r){let e,t,n,i;e=new Al({props:{icon:"FolderOutline",text:r[1],opened:r[6],border:r[3],withArrow:r[0].subpaths}}),e.$on("click",r[13]);let l=r[6]&&b8(r);return{c(){S(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},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&64&&(a.opened=s[6]),o&8&&(a.border=s[3]),o&1&&(a.withArrow=s[0].subpaths),e.$set(a),s[6]?l?(l.p(s,o),o&64&&m(l,1)):(l=b8(s),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(te(),_(l,1,1,()=>{l=null}),ne())},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 b8(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=h8(r,l,o),u=s(a);t.set(u,e[o]=w8(u,a))}return{c(){for(let o=0;o<e.length;o+=1)e[o].c();n=Oe()},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&7989&&(l=o[5],te(),e=er(e,a,s,1,o,l,t,n.parentNode,zr,w8,n,h8),ne())},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 Coe(r){let e,t;return e=new koe({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 v8(r){let e,t;return e=new M1({props:{level:1,components:r[4].props._children,currentComponent:r[9],dragDropStore:r[11]}}),{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&512&&(l.currentComponent=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 w8(r,e){var u,f;let t,n,i,l,s;function o(){return e[20](e[23])}n=new Al({props:{icon:"WebPage",indentLevel:e[2]||1,selected:e[8].selectedScreenId===e[23].id,opened:e[8].selectedScreenId===e[23].id,text:((u=e[10][e[23].route])==null?void 0:u[e[23].role])||e[23].route,withArrow:e[0].subpaths,$$slots:{default:[Coe]},$$scope:{ctx:e}}}),n.$on("click",o);let a=((f=e[4])==null?void 0:f._id)===e[23].id&&v8(e);return{key:r,first:null,c(){t=Oe(),S(n.$$.fragment),i=R(),a&&a.c(),l=Oe(),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&288&&(d.selected=e[8].selectedScreenId===e[23].id),p&288&&(d.opened=e[8].selectedScreenId===e[23].id),p&32&&(d.text=((g=e[10][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=v8(e),a.c(),m(a,1),a.m(l.parentNode,l)):a&&(te(),_(a,1,1,()=>{a=null}),ne())},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 Soe(r){let e,t,n=!r[7]&&$8(r);return{c(){n&&n.c(),e=Oe()},m(i,l){n&&n.m(i,l),$(i,e,l),t=!0},p(i,[l]){i[7]?n&&(te(),_(n,1,1,()=>{n=null}),ne()):n?(n.p(i,l),l&128&&m(n,1)):(n=$8(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 Aoe(r,e,t){let n,i,l,s,o,a,u,f,c,p,d;ue(r,Yf,z=>t(18,f=z)),ue(r,mn,z=>t(19,c=z)),ue(r,Ge,z=>t(8,p=z)),ue(r,li,z=>t(9,d=z));const g={"/":{BASIC:"Home",PUBLIC:"Home",ADMIN:"Home",POWER:"Home"}},h=f8();let{route:v}=e,{path:C}=e,{indent:w}=e,{border:I}=e,T=!1;const O=z=>{Ge.actions.screens.select(z)},P=z=>{let q=[];return Object.entries(z.subpaths).forEach(([V,Y])=>{Object.entries(Y.screens).forEach(([F,W])=>{q.push({id:W,route:V,role:F})})}),q},M=(z,q)=>z.filter(V=>!q||V.route.includes(q)),H=()=>{lt(Yf)||t(14,T=!T)},j=z=>O(z.id);return r.$$set=z=>{"route"in z&&t(0,v=z.route),"path"in z&&t(1,C=z.path),"indent"in z&&t(2,w=z.indent),"border"in z&&t(3,I=z.border)},r.$$.update=()=>{var z;r.$$.dirty&524288&&t(4,n=c),r.$$.dirty&1&&t(17,i=P(v)),r.$$.dirty&393216&&t(5,l=M(i,f)),r.$$.dirty&262176&&t(15,s=f&&l.length>0),r.$$.dirty&262176&&t(7,o=f&&!l.length),r.$$.dirty&17&&t(16,a=v.subpaths[(z=n==null?void 0:n.routing)==null?void 0:z.route]!==void 0),r.$$.dirty&114688&&t(6,u=T||a||s)},[v,C,w,I,n,l,u,o,p,d,g,h,O,H,T,s,a,i,f,c,j]}class Eoe extends ie{constructor(e){super();le(this,e,Aoe,Soe,re,{route:0,path:1,indent:2,border:3})}}function y8(r,e,t){const n=r.slice();return n[4]=e[t],n[6]=t,n}function k8(r,e){let t,n,i;return n=new Eoe({props:{border:e[6]>0,path:e[4],route:e[0][e[4]]}}),{key:r,first:null,c(){t=Oe(),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 C8(r){let e;return{c(){e=D("div"),e.textContent="There aren't any screens configured with this access role.",y(e,"class","empty svelte-9rt57y")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ooe(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=y8(r,s,u),c=o(f);n.set(c,t[u]=k8(c,f))}let a=!r[1].length&&C8();return{c(){e=D("div");for(let u=0;u<t.length;u+=1)t[u].c();i=R(),a&&a.c(),y(e,"class","root")},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]){f&3&&(s=u[1],te(),t=er(t,f,o,1,u,s,n,e,zr,k8,i,y8),ne()),u[1].length?a&&(a.d(1),a=null):a||(a=C8(),a.c(),a.m(e,null))},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 Toe(r,e,t){let n,i,l;ue(r,Ge,o=>t(2,i=o)),ue(r,Zl,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,w])=>{Object.entries(w.screens).forEach(([I,T])=>{T===f&&(g=I,c=I===u),I===u&&(p||(p=T),d[h]||(d[h]={subpaths:{}}),d[h].subpaths[C]={screens:{[u]:T}})})})}),t(0,s=d),!c&&g?Zl.set(g):!c&&p&&Ge.actions.screens.select(p)}r.$$.dirty&1&&t(1,n=Object.keys(s||{}).sort())},[s,n,i,l]}class Ioe extends ie{constructor(e){super();le(this,e,Toe,Ooe,re,{})}}function Loe(r){let e;return{c(){e=U("Edit")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Poe(r){let e;return{c(){e=U("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Noe(r){let e,t,n,i;return e=new Zt({props:{icon:"Edit",$$slots:{default:[Loe]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[1].show)&&r[1].show.apply(this,arguments)}),n=new Zt({props:{icon:"Delete",$$slots:{default:[Poe]},$$scope:{ctx:r}}}),n.$on("click",function(){mt(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 Roe(r){let e,t,n;return t=new ct({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),S(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon")},m(i,l){$(i,e,l),A(t,e,null),n=!0},p:Te,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),E(t)}}}function Moe(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 et({props:l}),K.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 Doe(r){let e,t;return e=new Dt({props:{title:"Edit Layout Name",confirmText:"Save",onConfirm:r[4],disabled:!r[2],$$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&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 joe(r){let e,t,n,i,l,s;e=new Tr({props:{$$slots:{control:[Roe],default:[Noe]},$$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 Cr({props:o}),r[6](n);let a={$$slots:{default:[Doe]},$$scope:{ctx:r}};return l=new Et({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 Boe(r,e,t){let{layout:n}=e,i,l,s=n.name;const o=async()=>{try{await Ge.actions.layouts.delete(n),we.success("Layout deleted successfully")}catch{we.error("Error deleting layout")}},a=async()=>{try{const p=bn.cloneDeep(n);p.name=s,await Ge.actions.layouts.save(p),we.success("Layout saved successfully")}catch{we.error("Error saving layout")}};function u(p){K[p?"unshift":"push"](()=>{i=p,t(0,i)})}function f(p){s=p,t(2,s)}function c(p){K[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 zoe extends ie{constructor(e){super();le(this,e,Boe,joe,re,{layout:5})}}function qoe(r){let e,t;return e=new zoe({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 S8(r){let e,t;return e=new M1({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 Foe(r){var s;let e,t,n,i;e=new Al({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:[qoe]},$$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)&&S8(r);return{c(){S(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},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=S8(o),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(te(),_(l,1,1,()=>{l=null}),ne())},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 Uoe(r,e,t){let n,i;ue(r,Ge,u=>t(2,n=u)),ue(r,li,u=>t(3,i=u));let{layout:l}=e,{border:s}=e;const o=f8(),a=()=>{Ge.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 Voe extends ie{constructor(e){super();le(this,e,Uoe,Foe,re,{layout:0,border:1})}}function Hoe(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 et({props:l}),K.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 Woe(r){let e,t;return e=new Dt({props:{title:"Create Layout",confirmText:"Create",onConfirm:r[1],$$slots:{default:[Hoe]},$$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 Goe(r,e,t){let n="";async function i(){try{await Ge.actions.layouts.save({name:n}),we.success(`Layout ${n} created successfully`)}catch{we.error("Error creating layout")}}function l(s){n=s,t(0,n)}return[n,i,l]}class Yoe extends ie{constructor(e){super();le(this,e,Goe,Woe,re,{})}}function A8(r,e,t){const n=r.slice();return n[15]=e[t],n[17]=t,n}function Joe(r){let e,t,n,i,l,s,o,a,u,f;n=new Je({props:{value:r[3],label:"Filter by Access",getOptionLabel:xoe,getOptionValue:eae,options:r[4]}}),n.$on("change",r[8]);function c(d){r[10](d)}let p={placeholder:"Enter a route to search",label:"Search Screens"};return r[5]!==void 0&&(p.value=r[5]),l=new Bf({props:p}),K.push(()=>ce(l,"value",c)),u=new Ioe({}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),S(l.$$.fragment),o=R(),a=D("div"),S(u.$$.fragment),y(t,"class","role-select svelte-1m5uhpn"),y(a,"class","nav-items-container"),y(e,"class","tab-content-padding svelte-1m5uhpn")},m(d,g){$(d,e,g),N(e,t),A(n,t,null),N(t,i),A(l,t,null),N(e,o),N(e,a),A(u,a,null),f=!0},p(d,g){const h={};g&8&&(h.value=d[3]),g&16&&(h.options=d[4]),n.$set(h);const v={};!s&&g&32&&(s=!0,v.value=d[5],pe(()=>s=!1)),l.$set(v)},i(d){f||(m(n.$$.fragment,d),m(l.$$.fragment,d),m(u.$$.fragment,d),f=!0)},o(d){_(n.$$.fragment,d),_(l.$$.fragment,d),_(u.$$.fragment,d),f=!1},d(d){d&&b(e),E(n),E(l),E(u)}}}function E8(r,e){let t,n,i;return n=new Voe({props:{layout:e[15],border:e[17]>0}}),{key:r,first:null,c(){t=Oe(),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&64&&(o.layout=e[15]),s&64&&(o.border=e[17]>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 Qoe(r){let e,t;return e=new Yoe({}),{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 Xoe(r){let e,t=[],n=new Map,i,l,s,o=r[6].layouts;const a=f=>f[15]._id;for(let f=0;f<o.length;f+=1){let c=A8(r,o,f),p=a(c);n.set(p,t[f]=E8(p,c))}let u={$$slots:{default:[Qoe]},$$scope:{ctx:r}};return l=new Et({props:u}),r[11](l),{c(){e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();i=R(),S(l.$$.fragment),y(e,"class","tab-content-padding svelte-1m5uhpn")},m(f,c){$(f,e,c);for(let p=0;p<t.length;p+=1)t[p].m(e,null);N(e,i),A(l,e,null),s=!0},p(f,c){c&64&&(o=f[6].layouts,te(),t=er(t,c,a,1,f,o,n,e,zr,E8,i,A8),ne());const p={};c&262144&&(p.$$scope={dirty:c,ctx:f}),l.$set(p)},i(f){if(!s){for(let c=0;c<o.length;c+=1)m(t[c]);m(l.$$.fragment,f),s=!0}},o(f){for(let c=0;c<t.length;c+=1)_(t[c]);_(l.$$.fragment,f),s=!1},d(f){f&&b(e);for(let c=0;c<t.length;c+=1)t[c].d();r[11](null),E(l)}}}function Koe(r){let e,t,n,i;return e=new $n({props:{title:"Screens",$$slots:{default:[Joe]},$$scope:{ctx:r}}}),n=new $n({props:{title:"Layouts",$$slots:{default:[Xoe]},$$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&262200&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&262210&&(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 Zoe(r){let e,t,n,i,l,s;return t=new Wr({props:{selected:r[2],$$slots:{default:[Koe]},$$scope:{ctx:r}}}),t.$on("select",r[7]),l=new ct({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){mt(r[2]==="Layouts"?r[1].show():r[0]())&&(r[2]==="Layouts"?r[1].show():r[0]()).apply(this,arguments)}),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),y(i,"class","add-button svelte-1m5uhpn"),y(e,"class","title svelte-1m5uhpn")},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&4&&(u.selected=r[2]),a&262266&&(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 xoe=r=>r.name,eae=r=>r._id;function tae(r,e,t){let n,i,l,s,o,a,u,f;ue(r,Kl,w=>t(12,i=w)),ue(r,qt,w=>t(13,l=w)),ue(r,tr,w=>t(9,s=w)),ue(r,Zl,w=>t(3,o=w)),ue(r,Zi,w=>t(4,a=w)),ue(r,Yf,w=>t(5,u=w)),ue(r,Ge,w=>t(6,f=w));let{showModal:c}=e;const p=[{title:"Screens",key:"screen"},{title:"Layouts",key:"layout"}];let d;const g=({detail:w})=>{const{key:I}=p.find(T=>T.title===w);l(`../${I}`)},h=w=>{var O;const I=w.detail,T=(O=i.find(P=>P.routing.roleId===I))==null?void 0:O._id;T?Ge.actions.screens.select(T):Ge.update(P=>(P.selectedScreenId=null,P)),Zl.set(I)};Gt(async()=>{try{await Ge.actions.routing.fetch()}catch{we.error("Error fetching routes")}});function v(w){u=w,Yf.set(u)}function C(w){K[w?"unshift":"push"](()=>{d=w,t(1,d)})}return r.$$set=w=>{"showModal"in w&&t(0,c=w.showModal)},r.$$.update=()=>{var w;r.$$.dirty&512&&t(2,n=((w=p.find(I=>I.key===s.assetType))==null?void 0:w.title)||"Screens")},[c,d,n,o,a,u,f,g,h,s,v,C]}class nae extends ie{constructor(e){super();le(this,e,tae,Zoe,re,{showModal:0})}}function rae(r){let e,t,n;return t=new Je({props:{value:r[0].theme,options:r[1],placeholder:null}}),t.$on("change",r[3]),{c(){e=D("div"),S(t.$$.fragment),y(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 iae(r,e,t){let n;ue(r,Ge,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 Ge.actions.theme.save(o),await Ge.actions.customTheme.save(rt(Ae({},lt(Ge).customTheme),{navBackground:o==="spectrum--light"?"var(--spectrum-global-color-gray-50)":"var(--spectrum-global-color-gray-100)"}))}catch{we.error("Error updating theme")}};return[n,i,l,o=>l(o.detail)]}class O8 extends ie{constructor(e){super();le(this,e,iae,rae,re,{})}}function lae(r){let e;return{c(){e=U("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function sae(r){let e;return{c(){e=U("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function oae(r){let e;return{c(){e=U("Button roundness")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function aae(r){let e;return{c(){e=U("Accent color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function uae(r){let e;return{c(){e=U("Accent color (hover)")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function fae(r){let e;return{c(){e=U("Navigation bar background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cae(r){let e;return{c(){e=U("Navigation bar text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pae(r){var G,Q,fe,Z,ee;let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,C,w,I,T,O,P,M,H,j,z,q,V,Y,F,W;return t=new Ke({props:{size:"L",$$slots:{default:[sae]},$$scope:{ctx:r}}}),i=new O8({}),o=new Ke({props:{size:"L",$$slots:{default:[oae]},$$scope:{ctx:r}}}),f=new Je({props:{placeholder:null,value:((G=r[1].customTheme)==null?void 0:G.buttonBorderRadius)||r[2].buttonBorderRadius,options:r[3]}}),f.$on("change",r[4]("buttonBorderRadius")),d=new Ke({props:{size:"L",$$slots:{default:[aae]},$$scope:{ctx:r}}}),h=new Wl({props:{spectrumTheme:r[1].theme,value:((Q=r[1].customTheme)==null?void 0:Q.primaryColor)||r[2].primaryColor}}),h.$on("change",r[4]("primaryColor")),w=new Ke({props:{size:"L",$$slots:{default:[uae]},$$scope:{ctx:r}}}),T=new Wl({props:{spectrumTheme:r[1].theme,value:((fe=r[1].customTheme)==null?void 0:fe.primaryColorHover)||r[2].primaryColorHover}}),T.$on("change",r[4]("primaryColorHover")),M=new Ke({props:{size:"L",$$slots:{default:[fae]},$$scope:{ctx:r}}}),j=new Wl({props:{spectrumTheme:r[1].theme,value:((Z=r[1].customTheme)==null?void 0:Z.navBackground)||r[2].navBackground}}),j.$on("change",r[4]("navBackground")),V=new Ke({props:{size:"L",$$slots:{default:[cae]},$$scope:{ctx:r}}}),F=new Wl({props:{spectrumTheme:r[1].theme,value:((ee=r[1].customTheme)==null?void 0:ee.navTextColor)||r[2].navTextColor}}),F.$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(w.$$.fragment),I=R(),S(T.$$.fragment),O=R(),P=D("div"),S(M.$$.fragment),H=R(),S(j.$$.fragment),z=R(),q=D("div"),S(V.$$.fragment),Y=R(),S(F.$$.fragment),y(e,"class","setting svelte-16s1p8l"),y(u,"class","select-wrapper svelte-16s1p8l"),y(s,"class","setting svelte-16s1p8l"),y(p,"class","setting svelte-16s1p8l"),y(C,"class","setting svelte-16s1p8l"),y(P,"class","setting svelte-16s1p8l"),y(q,"class","setting svelte-16s1p8l")},m(ae,he){$(ae,e,he),A(t,e,null),N(e,n),A(i,e,null),$(ae,l,he),$(ae,s,he),A(o,s,null),N(s,a),N(s,u),A(f,u,null),$(ae,c,he),$(ae,p,he),A(d,p,null),N(p,g),A(h,p,null),$(ae,v,he),$(ae,C,he),A(w,C,null),N(C,I),A(T,C,null),$(ae,O,he),$(ae,P,he),A(M,P,null),N(P,H),A(j,P,null),$(ae,z,he),$(ae,q,he),A(V,q,null),N(q,Y),A(F,q,null),W=!0},p(ae,he){var ke,Ye,Nt,Fe,pt;const Re={};he&128&&(Re.$$scope={dirty:he,ctx:ae}),t.$set(Re);const $e={};he&128&&($e.$$scope={dirty:he,ctx:ae}),o.$set($e);const be={};he&2&&(be.value=((ke=ae[1].customTheme)==null?void 0:ke.buttonBorderRadius)||ae[2].buttonBorderRadius),f.$set(be);const _e={};he&128&&(_e.$$scope={dirty:he,ctx:ae}),d.$set(_e);const Ne={};he&2&&(Ne.spectrumTheme=ae[1].theme),he&2&&(Ne.value=((Ye=ae[1].customTheme)==null?void 0:Ye.primaryColor)||ae[2].primaryColor),h.$set(Ne);const Ue={};he&128&&(Ue.$$scope={dirty:he,ctx:ae}),w.$set(Ue);const se={};he&2&&(se.spectrumTheme=ae[1].theme),he&2&&(se.value=((Nt=ae[1].customTheme)==null?void 0:Nt.primaryColorHover)||ae[2].primaryColorHover),T.$set(se);const Se={};he&128&&(Se.$$scope={dirty:he,ctx:ae}),M.$set(Se);const me={};he&2&&(me.spectrumTheme=ae[1].theme),he&2&&(me.value=((Fe=ae[1].customTheme)==null?void 0:Fe.navBackground)||ae[2].navBackground),j.$set(me);const Ce={};he&128&&(Ce.$$scope={dirty:he,ctx:ae}),V.$set(Ce);const qe={};he&2&&(qe.spectrumTheme=ae[1].theme),he&2&&(qe.value=((pt=ae[1].customTheme)==null?void 0:pt.navTextColor)||ae[2].navTextColor),F.$set(qe)},i(ae){W||(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(w.$$.fragment,ae),m(T.$$.fragment,ae),m(M.$$.fragment,ae),m(j.$$.fragment,ae),m(V.$$.fragment,ae),m(F.$$.fragment,ae),W=!0)},o(ae){_(t.$$.fragment,ae),_(i.$$.fragment,ae),_(o.$$.fragment,ae),_(f.$$.fragment,ae),_(d.$$.fragment,ae),_(h.$$.fragment,ae),_(w.$$.fragment,ae),_(T.$$.fragment,ae),_(M.$$.fragment,ae),_(j.$$.fragment,ae),_(V.$$.fragment,ae),_(F.$$.fragment,ae),W=!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(w),E(T),ae&&b(O),ae&&b(P),E(M),E(j),ae&&b(z),ae&&b(q),E(V),E(F)}}}function dae(r){let e,t;return e=new Xe({props:{noPadding:!0,gap:"S",$$slots:{default:[pae]},$$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 mae(r){let e;return{c(){e=U("Reset")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gae(r){let e,t,n;return t=new ut({props:{secondary:!0,quiet:!0,$$slots:{default:[mae]},$$scope:{ctx:r}}}),t.$on("click",r[5]),{c(){e=D("div"),S(t.$$.fragment),y(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 _ae(r){let e,t;return e=new Dt({props:{showConfirmButton:!1,cancelText:"View changes",showCloseIcon:!1,title:"Theme settings",$$slots:{footer:[gae],default:[dae]},$$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 hae(r){let e,t,n,i,l;t=new Yt({props:{icon:"Brush",$$slots:{default:[lae]},$$scope:{ctx:r}}}),t.$on("click",function(){mt(r[0].show)&&r[0].show.apply(this,arguments)});let s={$$slots:{default:[_ae]},$$scope:{ctx:r}};return i=new Et({props:s}),r[6](i),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),y(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 $ae(r,e,t){let n;ue(r,Ge,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{Ge.actions.customTheme.save(rt(Ae({},lt(Ge).customTheme),{[f]:c.detail}))}catch{we.error("Error updating custom theme")}},a=()=>{try{const f=lt(Ge).theme;Ge.actions.customTheme.save(rt(Ae({},l),{navBackground:f==="spectrum--light"?"var(--spectrum-global-color-gray-50)":"var(--spectrum-global-color-gray-100)"}))}catch{we.error("Error saving custom theme")}};function u(f){K[f?"unshift":"push"](()=>{i=f,t(0,i)})}return[i,n,l,s,o,a,u]}class bae extends ie{constructor(e){super();le(this,e,$ae,hae,re,{})}}function vae(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 wae(r){let e,t;return e=new hh({props:{compact:!0,$$slots:{default:[vae]},$$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 yae(r,e,t){let n;return ue(r,Ge,o=>t(0,n=o)),[n,()=>Ge.actions.preview.setDevice("desktop"),()=>Ge.actions.preview.setDevice("tablet"),()=>Ge.actions.preview.setDevice("mobile")]}class kae extends ie{constructor(e){super();le(this,e,yae,wae,re,{})}}var T8="/builder/assets/bb-space-man.5be51a45.svg";function Cae(r){let e,t,n,i,l,s;function o(c){r[7](c)}let a={label:"Name"};r[0]!==void 0&&(a.value=r[0]),e=new et({props:a}),K.push(()=>ce(e,"value",o));function u(c){r[8](c)}let f={label:"URL",error:r[5]};return r[1]!==void 0&&(f.value=r[1]),i=new et({props:f}),K.push(()=>ce(i,"value",u)),i.$on("change",r[6]),{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 I8(r){let e,t,n;return t=new Gs({props:{size:"S"}}),{c(){e=D("div"),S(t.$$.fragment),y(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 Sae(r){let e,t,n=r[4]&&I8();return{c(){e=D("div"),n&&n.c(),y(e,"slot","footer")},m(i,l){$(i,e,l),n&&n.m(e,null),t=!0},p(i,l){i[4]?n?l&16&&m(n,1):(n=I8(),n.c(),m(n,1),n.m(e,null)):n&&(te(),_(n,1,1,()=>{n=null}),ne())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){i&&b(e),n&&n.d()}}}function Aae(r){let e,t;return e=new Dt({props:{size:"M",title:"Enter details",confirmText:"Continue",onCancel:r[9],onConfirm:r[10],cancelText:"Back",disabled:!r[0]||!r[1]||r[5],$$slots:{footer:[Sae],default:[Cae]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&4&&(l.onCancel=n[9]),i&8&&(l.onConfirm=n[10]),i&35&&(l.disabled=!n[0]||!n[1]||n[5]),i&32819&&(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 n,i;ue(r,Kl,w=>t(11,n=w)),ue(r,Zl,w=>t(12,i=w));let{screenName:l}=e,{url:s}=e,{chooseModal:o}=e,{save:a}=e,{showProgressCircle:u=!1}=e,f,c=i||"BASIC";const p=w=>{w.detail.startsWith("/")||t(1,s="/"+w.detail),t(1,s=ho(s)),d(s,c)?t(5,f="This URL is already taken for this access role"):t(5,f="")},d=(w,I)=>n.some(T=>T.routing.route.toLowerCase()===w.toLowerCase()&&T.routing.roleId===I);Bo(()=>{t(0,l=""),t(1,s="")});function g(w){l=w,t(0,l)}function h(w){s=w,t(1,s)}const v=()=>o(0),C=()=>a();return r.$$set=w=>{"screenName"in w&&t(0,l=w.screenName),"url"in w&&t(1,s=w.url),"chooseModal"in w&&t(2,o=w.chooseModal),"save"in w&&t(3,a=w.save),"showProgressCircle"in w&&t(4,u=w.showProgressCircle)},[l,s,o,a,u,f,p,g,h,v,C]}class Oae extends ie{constructor(e){super();le(this,e,Eae,Aae,re,{screenName:0,url:1,chooseModal:2,save:3,showProgressCircle:4})}}function Tae(r){return r.map(e=>({name:`${e.name} - Detail`,create:()=>Nae(e),id:Iae,table:e.name}))}const Iae="ROW_DETAIL_TEMPLATE",Lae=r=>ho(`/${r.name}/:id`);function Pae(r,e,t,n){const i=c6(r,t),l=new Jn("@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:xf(r)},"##eventHandlerType":"Navigate To"}]}).instanceName("Delete Button"),s=new Jn("@budibase/standard-components/container").instanceName("Button Container").customProps({direction:"row",hAlign:"right",vAlign:"middle",size:"shrink",gap:"M"}).addChild(l).addChild(i);return p6(e).addChild(s)}const Nae=r=>{const e=new Jn("@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 Jn("@budibase/standard-components/repeater").instanceName("Repeater").customProps({dataProvider:`{{ literal ${hn(e._json._id)} }}`,noRowsMessage:"We couldn't find a row to display"}),n=u6().instanceName("Form").customProps({actionType:"Update",size:"spectrum--medium",dataSource:{label:r.name,tableId:r._id,type:"table"}}),i=new Jn("@budibase/standard-components/fieldgroup").instanceName("Field Group").customProps({labelPosition:"left"}),l={type:"table",tableId:r._id};A1(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(f6(r.name,a||"Edit")).addChild(Pae(r,a||"Edit Row",s,o)).addChild(i),t.addChild(n),e.addChild(t),new Ia().instanceName(`${r.name} - Detail`).route(Lae(r)).customProps({hAlign:"center"}).addChild(e).json()};var Rae={name:"Create from scratch",id:"createFromScratch",create:()=>Mae(),table:"Create from scratch"};const Mae=()=>new Ia().instanceName("New Screen").json(),Dae=r=>[...Xx(r),...Tae(r),...eee(r)],jae=(r,e)=>()=>{const t=e();return t.name=t.props._id,t.routing.route=t.routing.route.toLowerCase(),t};var L8=(r,e)=>{const t=l=>rt(Ae({},l),{create:jae(r,l.create)}),n=t(Rae),i=Dae(e).map(t);return[n,...i.sort((l,s)=>l.name>s.name?1:-1)]};function P8(r,e,t){const n=r.slice();return n[20]=e[t],n}function Bae(r){let e;return{c(){e=U(`Please select the screens you would like to add to your application.
|
|
@@ -1241,7 +1241,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1241
1241
|
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+"")&&Le(i,n)},d(o){o&&b(e),o&&b(t),o&&b(s)}}}function Cpe(r){let e,t,n,i,l,s;e=new Tr({props:{$$slots:{control:[ype],default:[wpe]},$$scope:{ctx:r}}});let o={okText:"Delete Automation",onOk:r[3],title:"Confirm Deletion",$$slots:{default:[kpe]},$$scope:{ctx:r}};n=new Cr({props:o}),r[4](n);let a={automation:r[0]};return l=new $pe({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 Spe(r,e,t){let n;ue(r,qt,f=>t(6,n=f));let{automation:i}=e,l,s;async function o(){try{await Xt.actions.delete(i),we.success("Automation deleted successfully"),n("../automate")}catch{we.error("Error deleting automation")}}function a(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}function u(f){K[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 Ape extends ie{constructor(e){super();le(this,e,Spe,Cpe,re,{automation:0})}}function Oy(r,e,t){const n=r.slice();return n[5]=e[t],n[7]=t,n}function Epe(r){let e,t,n;return e=new Ape({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 Ty(r){let e,t;function n(){return r[3](r[5])}return e=new Al({props:{border:r[7]>0,icon:"ShareAndroid",text:r[5].name,selected:r[5]._id===r[1],$$slots:{default:[Epe]},$$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 Ope(r){let e,t,n=r[0].automations,i=[];for(let s=0;s<n.length;s+=1)i[s]=Ty(Oy(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();y(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=Oy(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Ty(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},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 Tpe(r,e,t){let n,i,l;ue(r,qt,a=>t(4,i=a)),ue(r,Xt,a=>t(0,l=a)),Gt(async()=>{try{await Xt.actions.fetch()}catch{we.error("Error getting automations list")}});function s(a){Xt.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 Ipe extends ie{constructor(e){super();le(this,e,Tpe,Ope,re,{})}}function Iy(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n}function Lpe(r){let e;return{c(){e=U(`Please name your automation, then select a trigger. Every automation must
|
|
1242
1242
|
start with a trigger.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ppe(r){let e;return{c(){e=U("Triggers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Npe(r){let e=r[18].name+"",t;return{c(){t=U(e)},m(n,i){$(n,t,i)},p(n,i){i&8&&e!==(e=n[18].name+"")&&Le(t,e)},d(n){n&&b(t)}}}function Ly(r){let e,t,n,i,l,s,o,a,u,f;n=new ct({props:{name:r[18].icon}}),s=new Qe({props:{size:"S",$$slots:{default:[Npe]},$$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(),y(l,"class","icon-spacing svelte-d3iboa"),y(t,"class","item-body svelte-d3iboa"),y(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 Rpe(r){let e,t,n,i;e=new Qe({props:{size:"S",$$slots:{default:[Ppe]},$$scope:{ctx:r}}});let l=r[3],s=[];for(let a=0;a<l.length;a+=1)s[a]=Ly(Iy(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();y(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=Iy(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=Ly(p),s[c].c(),m(s[c],1),s[c].m(n,null))}for(te(),c=l.length;c<s.length;c+=1)o(c);ne()}},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 Mpe(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 Qe({props:{size:"XS",$$slots:{default:[Lpe]},$$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 et({props:d}),K.push(()=>ce(l,"value",c)),K.push(()=>ce(l,"error",p)),l.$on("change",r[12]),u=new Xe({props:{noPadding:!0,$$slots:{default:[Rpe]},$$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 w={};h&2097164&&(w.$$scope={dirty:h,ctx:g}),u.$set(w)},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 Dpe(r){let e,t;return e=new Dt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:r[5],disabled:!r[2]||!r[0],$$slots:{default:[Mpe]},$$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 jpe(r,e,t){let n,i,l,s,o,a;ue(r,Xt,T=>t(8,s=T)),ue(r,qt,T=>t(16,o=T)),ue(r,Cs,T=>t(9,a=T));let u,f,c=!1,p,{webhookModal:d}=e;async function g(){var T;try{await Xt.actions.create({name:u,instanceId:n});const O=s.selectedAutomation.constructBlock("TRIGGER",p.stepId,p);Xt.actions.addBlockToAutomation(O),p.stepId==="WEBHOOK"&&d.show,await Xt.actions.save((T=s.selectedAutomation)==null?void 0:T.automation),we.success(`Automation ${u} created`),o(`./${s.selectedAutomation.automation._id}`),qn.captureEvent(Kn.AUTOMATION.CREATED,{name:u})}catch{we.error("Error creating automation")}}const h=T=>{p=T,t(2,f=T.name)};function v(T){u=T,t(0,u)}function C(T){i=T,t(4,i),t(1,c),t(0,u)}const w=()=>t(1,c=!0),I=T=>h(T);return r.$$set=T=>{"webhookModal"in T&&t(7,d=T.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,w,I]}class Py extends ie{constructor(e){super();le(this,e,jpe,Dpe,re,{webhookModal:7})}}function Bpe(r){let e,t;return e=new Py({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 zpe(r){let e,t,n,i,l;t=new Ipe({});let s={$$slots:{default:[Bpe]},$$scope:{ctx:r}};return i=new Et({props:s}),r[2](i),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),y(e,"class","tab-content-padding svelte-1r2f9up")},m(o,a){$(o,e,a),A(t,e,null),N(e,n),A(i,e,null),l=!0},p(o,a){const u={};a&10&&(u.$$scope={dirty:a,ctx:o}),i.$set(u)},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[2](null),E(i)}}}function qpe(r){let e,t;return e=new $n({props:{title:"Automations",$$slots:{default:[zpe]},$$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 Fpe(r){let e,t,n,i,l,s;return t=new Wr({props:{selected:"Automations",$$slots:{default:[qpe]},$$scope:{ctx:r}}}),l=new ct({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){mt(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),y(i,"class","add-button svelte-1r2f9up"),y(i,"data-cy","new-screen"),y(e,"class","title svelte-1r2f9up")},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 Upe(r,e,t){let{modal:n}=e,{webhookModal:i}=e;function l(s){K[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 Vpe extends ie{constructor(e){super();le(this,e,Upe,Fpe,re,{modal:0,webhookModal:1})}}function Hpe(r){let e,t,n,i;return n=new Xe({props:{gap:"S",justifyItems:"center",$$slots:{default:[Qpe]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),y(t,"class","main svelte-16gumu0"),y(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 Wpe(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 Gpe(r){let e;return{c(){e=U("You have no automations")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ype(r){let e;return{c(){e=U("Let's fix that. Call the bots!")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jpe(r){let e;return{c(){e=U("Create automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qpe(r){let e,t,n,i,l,s,o,a,u;return i=new kt({props:{size:"M",$$slots:{default:[Gpe]},$$scope:{ctx:r}}}),s=new Qe({props:{size:"M",$$slots:{default:[Ype]},$$scope:{ctx:r}}}),a=new ut({props:{size:"M",cta:!0,$$slots:{default:[Jpe]},$$scope:{ctx:r}}}),a.$on("click",r[5]),{c(){e=ge("svg"),t=ge("use"),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),Ht(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),y(e,"width","60px"),y(e,"height","60px"),y(e,"class","spectrum-Icon"),y(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 Xpe(r){let e,t;return e=new Py({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 Kpe(r){let e,t;return e=new j1({}),{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 Zpe(r){let e,t,n,i,l,s,o,a,u,f,c,p;n=new Vpe({props:{modal:r[0],webhookModal:r[1]}});const d=[Wpe,Hpe],g=[];function h(w,I){return w[2]?0:1}s=h(r),o=g[s]=d[s](r);let v={$$slots:{default:[Xpe]},$$scope:{ctx:r}};u=new Et({props:v}),r[6](u);let C={width:"30%",$$slots:{default:[Kpe]},$$scope:{ctx:r}};return c=new Et({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),y(t,"class","nav svelte-16gumu0"),y(l,"class","content svelte-16gumu0"),y(e,"class","root svelte-16gumu0")},m(w,I){$(w,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(w,[I]){const T={};I&1&&(T.modal=w[0]),I&2&&(T.webhookModal=w[1]),n.$set(T);let O=s;s=h(w),s===O?g[s].p(w,I):(te(),_(g[O],1,1,()=>{g[O]=null}),ne(),o=g[s],o?o.p(w,I):(o=g[s]=d[s](w),o.c()),m(o,1),o.m(l,null));const P={};I&258&&(P.$$scope={dirty:I,ctx:w}),u.$set(P);const M={};I&256&&(M.$$scope={dirty:I,ctx:w}),c.$set(M)},i(w){p||(m(n.$$.fragment,w),m(o),m(u.$$.fragment,w),m(c.$$.fragment,w),p=!0)},o(w){_(n.$$.fragment,w),_(o),_(u.$$.fragment,w),_(c.$$.fragment,w),p=!1},d(w){w&&b(e),E(n),g[s].d(),r[6](null),E(u),r[7](null),E(c)}}}function xpe(r,e,t){let n,i;ue(r,Xt,p=>t(3,i=p));let{$$slots:l={},$$scope:s}=e,o,a;const u=()=>o.show();function f(p){K[p?"unshift":"push"](()=>{o=p,t(0,o)})}function c(p){K[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 ede extends ie{constructor(e){super();le(this,e,xpe,Zpe,re,{})}}function tde(r){let e;return{c(){e=U("Publish")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function nde(r){let e,t;return e=new Dt({props:{title:"Enjoying Budibase?",size:"L",showConfirmButton:!1,showCancelButton:!1}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Te,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function rde(r){let e;return{c(){e=D("span"),e.textContent=`The changes you have made will be published to the production version of
|
|
1243
1243
|
the application.`},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ide(r){let e,t;return e=new Dt({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:r[2],$$slots:{default:[rde]},$$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 lde(r){let e,t,n,i,l,s;e=new ut({props:{secondary:!0,$$slots:{default:[tde]},$$scope:{ctx:r}}}),e.$on("click",function(){mt(r[1].show)&&r[1].show.apply(this,arguments)});let o={$$slots:{default:[nde]},$$scope:{ctx:r}};n=new Et({props:o}),r[3](n);let a={$$slots:{default:[ide]},$$scope:{ctx:r}};return l=new Et({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 sde(r,e,t){let n;ue(r,Ge,u=>t(5,n=u));let i,l;async function s(){try{await Ze.deployAppChanges(),qn.captureEvent(Kn.APP.PUBLISHED,{appId:n.appId}),we.success("Application published successfully")}catch(u){qn.captureException(u),we.error("Error publishing app")}}function o(u){K[u?"unshift":"push"](()=>{i=u,t(0,i)})}function a(u){K[u?"unshift":"push"](()=>{l=u,t(1,l)})}return[i,l,s,o,a]}class ode extends ie{constructor(e){super();le(this,e,sde,lde,re,{})}}function ade(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 et({props:u}),K.push(()=>ce(l,"value",a)),{c(){e=D("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
1244
|
-
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 ude(r){let e,t;return e=new Dt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[ade]},$$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 fde(r){let e,t,n,i;e=new ct({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){mt(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[ude]},$$scope:{ctx:r}};return n=new Et({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 cde(r,e,t){let n,i;ue(r,Ge,f=>t(0,i=f));let l,s;const o=async()=>{try{await Ze.revertAppChanges(n);const f=await Ze.fetchAppPackage(n);await Ge.actions.initialise(f),we.info("Changes reverted successfully")}catch(f){we.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class pde extends ie{constructor(e){super();le(this,e,cde,fde,re,{})}}const dde="@budibase/client",mde="1.0.91-alpha.
|
|
1244
|
+
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 ude(r){let e,t;return e=new Dt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[ade]},$$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 fde(r){let e,t,n,i;e=new ct({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){mt(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[ude]},$$scope:{ctx:r}};return n=new Et({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 cde(r,e,t){let n,i;ue(r,Ge,f=>t(0,i=f));let l,s;const o=async()=>{try{await Ze.revertAppChanges(n);const f=await Ze.fetchAppPackage(n);await Ge.actions.initialise(f),we.info("Changes reverted successfully")}catch(f){we.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){K[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class pde extends ie{constructor(e){super();le(this,e,cde,fde,re,{})}}const dde="@budibase/client",mde="1.0.91-alpha.3",gde="MPL-2.0",_de="dist/budibase-client.js",hde="dist/budibase-client.js",$de="module",bde="src/index.js",vde={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},wde={build:"rollup -c","dev:builder":"rollup -cw"},yde={"@budibase/bbui":"^1.0.91-alpha.3","@budibase/frontend-core":"^1.0.91-alpha.3","@budibase/string-templates":"^1.0.91-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",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0",shortid:"^2.2.15",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},kde={"@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"},Cde="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var B1={name:dde,version:mde,license:gde,module:_de,main:hde,type:$de,svelte:bde,exports:vde,scripts:wde,dependencies:yde,devDependencies:kde,gitHead:Cde};function Sde(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[Ede]},$$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 Ade(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[Ode]},$$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 Ede(r){let e,t,n=r[0].version+"",i,l;return{c(){e=U("This app is currently using version "),t=D("b"),i=U(n),l=U(` which is the
|
|
1245
1245
|
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+"")&&Le(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function Ode(r){let e,t,n=r[0].version+"",i,l,s,o;return{c(){e=U("This app is currently using version "),t=D("b"),i=U(n),l=U(`, but version
|
|
1246
1246
|
`),s=D("b"),s.textContent=`${B1.version}`,o=U(` is available. Updates can contain new features,
|
|
1247
1247
|
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+"")&&Le(i,n)},d(a){a&&b(e),a&&b(t),a&&b(l),a&&b(s),a&&b(o)}}}function Ny(r){let e,t;return e=new Qe({props:{size:"S",$$slots:{default:[Tde]},$$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 Tde(r){let e,t,n=r[0].revertableVersion+"",i,l;return{c(){e=U(`You can revert this app to version
|