@budibase/server 1.0.212-alpha.10 → 1.0.212-alpha.11
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.c6912819.css → index.969c2236.css} +1 -1
- package/builder/assets/{index.88005d52.js → index.a7550206.js} +4 -4
- package/builder/index.html +2 -2
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/api/controllers/apikeys.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/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/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/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/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/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/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.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/delay.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/loop.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/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/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/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/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/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.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/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 +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -373,7 +373,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
373
373
|
`},stringify:{args:["obj"],numArgs:1,description:`<p>Stringify an object using <code>JSON.stringify</code>.</p>
|
|
374
374
|
`}},date:{date:{args:["datetime","format"],numArgs:2,example:'{{date now "DD-MM-YYYY" "America/New_York" }} -> 21-01-2021',description:`<p>Format a date using moment.js date formatting - the timezone is optional and uses the tz database.</p>
|
|
375
375
|
`},duration:{args:["time","durationType"],numArgs:2,example:'{{duration timeLeft "seconds"}} -> a few seconds',description:`<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>
|
|
376
|
-
`}}},Gr=$t(function(r,e){const{registerAll:t,registerMinimum:n}=Vb,{atob:i,btoa:l}=Ma,{FIND_HBS_REGEX:s,FIND_ANY_HBS_REGEX:o,findDoubleHbsInstances:a}=Ma,u=pa.create();t(u);const f=pa.create();n(f);const c={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function p(h){try{JSON.stringify(h)}catch{throw"Unable to process inputs to JSON, cannot recurse"}}let d={};function g(h,v){v=Ae(Ae({},c),v);const w=`${h}-${JSON.stringify(v)}`;if(v.cacheTemplates&&d[w])return d[w];h=VD(h,v),v.noEscaping&&(h=e.disableEscaping(h));const k=(v.noHelpers?f:u).compile(h,{strict:!1});return d[w]=k,k}r.exports.processObject=async(h,v,w)=>{p(h);for(let k of Object.keys(h||{}))if(h[k]!=null){let I=h[k];typeof I=="string"?h[k]=await r.exports.processString(h[k],v,w):typeof I=="object"&&(h[k]=await r.exports.processObject(h[k],v,w))}return h},r.exports.processString=async(h,v,w)=>r.exports.processStringSync(h,v,w),r.exports.processObjectSync=(h,v,w)=>{p(h);for(let k of Object.keys(h||{})){let I=h[k];typeof I=="string"?h[k]=r.exports.processStringSync(h[k],v,w):typeof I=="object"&&(h[k]=r.exports.processObjectSync(h[k],v,w))}return h},r.exports.processStringSync=(h,v,w)=>{const k=h;if(typeof h!="string")throw"Cannot process non-string types.";try{const I=g(h,w),T=1e3*Math.floor(Date.now()/1e3);return HD(I(Ae({now:new Date(T).toISOString(),__opts:w},v)))}catch{return k}},r.exports.disableEscaping=h=>{const v=a(h);if(v==null)return h;const w=[...new Set(v)];for(let k of w){const I=new RegExp(`${k}(?!})`,"g");h=h.replace(I,`{${k}}`)}return h},r.exports.makePropSafe=h=>`[${h}]`.replace("[[","[").replace("]]","]"),r.exports.isValid=(h,v)=>{const w=["string","number","object","array","cannot read property","undefined","json at position 0"],k=["expecting '"],I={};try{return g(h,it(Ae({},v),{noFinalise:!0}))(I),!0}catch(T){const E=T&&T.message?T.message:T;if(!E)return!1;const L=k.some(M=>E.toLowerCase().includes(M));return w.some(M=>E.toLowerCase().includes(M))&&!L}},r.exports.getManifest=()=>WD,r.exports.isJSBinding=h=>r.exports.decodeJSBinding(h)!=null,r.exports.encodeJSBinding=h=>`{{ js "${l(h)}" }}`,r.exports.decodeJSBinding=h=>{if(!h||typeof h!="string"||!h.trim().startsWith("{{ js "))return null;const v=new RegExp(/{{ js "(.*)" }}/),w=h.match(v);return!w||w.length<2?null:i(w[1])},r.exports.doesContainStrings=(h,v)=>{let w=new RegExp(s),k=h.match(w);if(k==null)return!1;for(let I of k){let T=I;e.isJSBinding(I)&&(T=e.decodeJSBinding(I));let E=!0;for(let L of v)T.includes(L)||(E=!1);if(E)return!0}return!1},r.exports.findHBSBlocks=h=>{let v=new RegExp(o),w=h.match(v);return w==null?[]:w},r.exports.doesContainString=(h,v)=>e.doesContainStrings(h,[v])});const Xb=Gr.isValid,$n=Gr.makePropSafe,GD=Gr.getManifest,Xf=Gr.isJSBinding,Qf=Gr.encodeJSBinding,Da=Gr.decodeJSBinding,Lr=Gr.processStringSync;Gr.processObjectSync;Gr.processString;Gr.processObject;Gr.doesContainStrings;Gr.doesContainString;Gr.disableEscaping;const YD=Gr.findHBSBlocks;Fb((r,e)=>(e=it(Ae({},e),{alert:void 0,setInterval:void 0,setTimeout:void 0}),L0.createContext(e),L0.runInNewContext(r,e,{timeout:1e3})));function Qb(r){let e,t,n;var i=r[3];function l(s){return{props:{row:s[0],schema:s[1],value:s[4],$$slots:{default:[JD]},$$scope:{ctx:s}}}}return i&&(t=new i(l(r)),t.$on("clickrelationship",r[9])),{c(){e=D("div"),t&&C(t.$$.fragment),ht(e,"--max-cell-width",r[1].width?"none":"200px"),y(e,"class","svelte-16j2cvj")},m(s,o){$(s,e,o),t&&S(t,e,null),n=!0},p(s,o){const a={};if(o&1&&(a.row=s[0]),o&2&&(a.schema=s[1]),o&16&&(a.value=s[4]),o&1024&&(a.$$scope={dirty:o,ctx:s}),i!==(i=s[3])){if(t){x();const u=t;_(u.$$.fragment,1,0,()=>{A(u,1)}),ee()}i?(t=new i(l(s)),t.$on("clickrelationship",s[9]),C(t.$$.fragment),m(t.$$.fragment,1),S(t,e,null)):t=null}else i&&t.$set(a);(!n||o&2)&&ht(e,"--max-cell-width",s[1].width?"none":"200px")},i(s){n||(t&&m(t.$$.fragment,s),n=!0)},o(s){t&&_(t.$$.fragment,s),n=!1},d(s){s&&b(e),t&&A(t)}}}function JD(r){let e;const t=r[8].default,n=bt(t,r,r[10],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&1024)&&vt(n,t,i,i[10],e?yt(t,i[10],l,null):wt(i[10]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function XD(r){let e,t,n=r[3]&&(r[2]||r[4]!=null&&r[4]!=="")&&Qb(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[3]&&(i[2]||i[4]!=null&&i[4]!=="")?n?(n.p(i,l),l&28&&m(n,1)):(n=Qb(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function QD(r,e,t){let n,i,l,{$$slots:s={},$$scope:o}=e,{row:a}=e,{schema:u}=e,{value:f}=e,{customRenderers:c=[]}=e,p;const d={boolean:zI,datetime:FI,link:GI,attachment:tL,string:sa,options:sa,number:sa,longform:sa,array:aL,internal:cL},g=(v,w)=>w?Lr(w,{value:v}):v;function h(v){dt.call(this,r,v)}return r.$$set=v=>{"row"in v&&t(0,a=v.row),"schema"in v&&t(1,u=v.schema),"value"in v&&t(5,f=v.value),"customRenderers"in v&&t(6,c=v.customRenderers),"$$scope"in v&&t(10,o=v.$$scope)},r.$$.update=()=>{var v,w,k;r.$$.dirty&2&&t(7,n=(v=u==null?void 0:u.type)!=null?v:"string"),r.$$.dirty&66&&t(2,i=c==null?void 0:c.find(I=>I.column===(u==null?void 0:u.name))),r.$$.dirty&132&&t(3,p=(k=(w=i==null?void 0:i.component)!=null?w:d[n])!=null?k:sa),r.$$.dirty&2&&(u==null||u.width),r.$$.dirty&34&&t(4,l=g(f,u.template))},[a,u,i,p,l,f,c,n,s,h,o]}class KD extends se{constructor(e){super();oe(this,e,QD,XD,ie,{row:0,schema:1,value:5,customRenderers:6})}}function Kb(r){let e,t;return e=new ni({props:{value:r[0]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.value=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Zb(r){let e,t;return e=new Ut({props:{size:"S",$$slots:{default:[ZD]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1])&&r[1].apply(this,arguments)}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){r=n;const l={};i&16&&(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){A(e,n)}}}function ZD(r){let e;return{c(){e=F("Edit")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xD(r){let e,t,n,i=r[2]&&Kb(r),l=r[3]&&Zb(r);return{c(){e=D("div"),i&&i.c(),t=R(),l&&l.c(),y(e,"class","svelte-1fa8hd3")},m(s,o){$(s,e,o),i&&i.m(e,null),P(e,t),l&&l.m(e,null),n=!0},p(s,[o]){s[2]?i?(i.p(s,o),o&4&&m(i,1)):(i=Kb(s),i.c(),m(i,1),i.m(e,t)):i&&(x(),_(i,1,1,()=>{i=null}),ee()),s[3]?l?(l.p(s,o),o&8&&m(l,1)):(l=Zb(s),l.c(),m(l,1),l.m(e,null)):l&&(x(),_(l,1,1,()=>{l=null}),ee())},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 ej(r,e,t){let{selected:n}=e,{onEdit:i}=e,{allowSelectRows:l=!1}=e,{allowEditRows:s=!1}=e;return r.$$set=o=>{"selected"in o&&t(0,n=o.selected),"onEdit"in o&&t(1,i=o.onEdit),"allowSelectRows"in o&&t(2,l=o.allowSelectRows),"allowEditRows"in o&&t(3,s=o.allowEditRows)},[n,i,l,s]}class tj extends se{constructor(e){super();oe(this,e,ej,xD,ie,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}const nj=r=>({}),xb=r=>({});function ev(r,e,t){const n=r.slice();return n[55]=e[t],n[57]=t,n}function tv(r,e,t){const n=r.slice();return n[58]=e[t],n}function nv(r,e,t){const n=r.slice();return n[58]=e[t],n}function rj(r){let e,t,n,i,l,s,o=r[14].length&&rv(r);const a=[aj,oj],u=[];function f(c,p){var d;return((d=c[19])==null?void 0:d.length)?0:1}return n=f(r),i=u[n]=a[n](r),{c(){e=D("div"),o&&o.c(),t=R(),i.c(),y(e,"class","spectrum-Table svelte-6mqswq"),y(e,"style",l=`${r[20]}${r[18]}`)},m(c,p){$(c,e,p),o&&o.m(e,null),P(e,t),u[n].m(e,null),s=!0},p(c,p){c[14].length?o?(o.p(c,p),p[0]&16384&&m(o,1)):(o=rv(c),o.c(),m(o,1),o.m(e,t)):o&&(x(),_(o,1,1,()=>{o=null}),ee());let d=n;n=f(c),n===d?u[n].p(c,p):(x(),_(u[d],1,1,()=>{u[d]=null}),ee(),i=u[n],i?i.p(c,p):(i=u[n]=a[n](c),i.c()),m(i,1),i.m(e,null)),(!s||p[0]&1310720&&l!==(l=`${c[20]}${c[18]}`))&&y(e,"style",l)},i(c){s||(m(o),m(i),s=!0)},o(c){_(o),_(i),s=!1},d(c){c&&b(e),o&&o.d(),u[n].d()}}}function ij(r){let e,t,n;return t=new Ul({}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","loading svelte-6mqswq"),y(e,"style",r[20])},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,l){(!n||l[0]&1048576)&&y(e,"style",i[20])},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function rv(r){let e,t,n,i=r[13]&&iv(r),l=r[14],s=[];for(let o=0;o<l.length;o+=1)s[o]=av(nv(r,l,o));return{c(){e=D("div"),i&&i.c(),t=R();for(let o=0;o<s.length;o+=1)s[o].c();y(e,"class","spectrum-Table-head svelte-6mqswq")},m(o,a){$(o,e,a),i&&i.m(e,null),P(e,t);for(let u=0;u<s.length;u+=1)s[u].m(e,null);n=!0},p(o,a){if(o[13]?i?(i.p(o,a),a[0]&8192&&m(i,1)):(i=iv(o),i.c(),m(i,1),i.m(e,t)):i&&(x(),_(i,1,1,()=>{i=null}),ee()),a[0]&29378081){l=o[14];let u;for(u=0;u<l.length;u+=1){const f=nv(o,l,u);s[u]?s[u].p(f,a):(s[u]=av(f),s[u].c(),s[u].m(e,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=l.length}},i(o){n||(m(i),n=!0)},o(o){_(i),n=!1},d(o){o&&b(e),i&&i.d(),mt(s,o)}}}function iv(r){let e,t,n,i;const l=[sj,lj],s=[];function o(a,u){return a[3]?0:1}return t=o(r),n=s[t]=l[t](r),{c(){e=D("div"),n.c(),y(e,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-6mqswq")},m(a,u){$(a,e,u),s[t].m(e,null),i=!0},p(a,u){let f=t;t=o(a),t===f?s[t].p(a,u):(x(),_(s[f],1,1,()=>{s[f]=null}),ee(),n=s[t],n?n.p(a,u):(n=s[t]=l[t](a),n.c()),m(n,1),n.m(e,null))},i(a){i||(m(n),i=!0)},o(a){_(n),i=!1},d(a){a&&b(e),s[t].d()}}}function lj(r){let e;return{c(){e=F("Edit")},m(t,n){$(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&b(e)}}}function sj(r){let e,t,n;function i(s){r[38](s)}let l={};return r[16]!==void 0&&(l.value=r[16]),e=new ni({props:l}),K.push(()=>ce(e,"value",i)),e.$on("change",r[27]),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};!t&&o[0]&65536&&(t=!0,a.value=s[16],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function lv(r){let e,t;return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href","#spectrum-icon-18-MagicWand"),y(e,"class","spectrum-Icon spectrum-Table-autoIcon svelte-6mqswq"),y(e,"focusable","false")},m(n,i){$(n,e,i),P(e,t)},d(n){n&&b(e)}}}function sv(r){let e,t;return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href","#spectrum-css-icon-Arrow100"),y(e,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-6mqswq"),y(e,"focusable","false"),y(e,"aria-hidden","true")},m(n,i){$(n,e,i),P(e,t)},d(n){n&&b(e)}}}function ov(r){let e,t,n,i;function l(...s){return r[39](r[58],...s)}return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href","#spectrum-icon-18-Edit"),y(e,"class","spectrum-Icon spectrum-Table-editIcon svelte-6mqswq"),y(e,"focusable","false")},m(s,o){$(s,e,o),P(e,t),n||(i=Le(e,"click",l),n=!0)},p(s,o){r=s},d(s){s&&b(e),n=!1,i()}}}function av(r){var h,v;let e,t,n=r[23](r[0][r[58]])+"",i,l,s,o,a,u,f,c=((h=r[0][r[58]])==null?void 0:h.autocolumn)&&lv(),p=r[9]===r[58]&&sv(),d=r[5]&&((v=r[0][r[58]])==null?void 0:v.editable)!==!1&&ov(r);function g(){return r[40](r[58])}return{c(){e=D("div"),t=D("div"),i=F(n),l=R(),c&&c.c(),s=R(),p&&p.c(),o=R(),d&&d.c(),a=R(),y(t,"class","title svelte-6mqswq"),y(e,"class","spectrum-Table-headCell svelte-6mqswq"),le(e,"spectrum-Table-headCell--alignCenter",r[0][r[58]].align==="Center"),le(e,"spectrum-Table-headCell--alignRight",r[0][r[58]].align==="Right"),le(e,"is-sortable",r[0][r[58]].sortable!==!1),le(e,"is-sorted-desc",r[9]===r[58]&&r[10]==="Descending"),le(e,"is-sorted-asc",r[9]===r[58]&&r[10]==="Ascending")},m(w,k){$(w,e,k),P(e,t),P(t,i),P(e,l),c&&c.m(e,null),P(e,s),p&&p.m(e,null),P(e,o),d&&d.m(e,null),P(e,a),u||(f=Le(e,"click",g),u=!0)},p(w,k){var I,T;r=w,k[0]&16385&&n!==(n=r[23](r[0][r[58]])+"")&&Ce(i,n),((I=r[0][r[58]])==null?void 0:I.autocolumn)?c||(c=lv(),c.c(),c.m(e,s)):c&&(c.d(1),c=null),r[9]===r[58]?p||(p=sv(),p.c(),p.m(e,o)):p&&(p.d(1),p=null),r[5]&&((T=r[0][r[58]])==null?void 0:T.editable)!==!1?d?d.p(r,k):(d=ov(r),d.c(),d.m(e,a)):d&&(d.d(1),d=null),k[0]&16385&&le(e,"spectrum-Table-headCell--alignCenter",r[0][r[58]].align==="Center"),k[0]&16385&&le(e,"spectrum-Table-headCell--alignRight",r[0][r[58]].align==="Right"),k[0]&16385&&le(e,"is-sortable",r[0][r[58]].sortable!==!1),k[0]&17920&&le(e,"is-sorted-desc",r[9]===r[58]&&r[10]==="Descending"),k[0]&17920&&le(e,"is-sorted-asc",r[9]===r[58]&&r[10]==="Ascending")},d(w){w&&b(e),c&&c.d(),p&&p.d(),d&&d.d(),u=!1,f()}}}function oj(r){let e,t,n,i;const l=[fj,uj],s=[];function o(a,u){return a[8]?0:1}return t=o(r),n=s[t]=l[t](r),{c(){var a;e=D("div"),n.c(),y(e,"class","placeholder svelte-6mqswq"),le(e,"placeholder--custom",r[8]),le(e,"placeholder--no-fields",!((a=r[14])==null?void 0:a.length))},m(a,u){$(a,e,u),s[t].m(e,null),i=!0},p(a,u){var c;let f=t;t=o(a),t===f?s[t].p(a,u):(x(),_(s[f],1,1,()=>{s[f]=null}),ee(),n=s[t],n?n.p(a,u):(n=s[t]=l[t](a),n.c()),m(n,1),n.m(e,null)),u[0]&256&&le(e,"placeholder--custom",a[8]),u[0]&16384&&le(e,"placeholder--no-fields",!((c=a[14])==null?void 0:c.length))},i(a){i||(m(n),i=!0)},o(a){_(n),i=!1},d(a){a&&b(e),s[t].d()}}}function aj(r){let e,t,n=r[19],i=[];for(let s=0;s<n.length;s+=1)i[s]=cv(ev(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[0]&103440475|o[1]&65536){n=s[19];let a;for(a=0;a<n.length;a+=1){const u=ev(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=cv(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function uj(r){let e;return{c(){e=D("div"),e.innerHTML=`<svg class="spectrum-Icon spectrum-Icon--sizeXXL" focusable="false"><use xlink:href="#spectrum-icon-18-Table"></use></svg>
|
|
376
|
+
`}}},Gr=$t(function(r,e){const{registerAll:t,registerMinimum:n}=Vb,{atob:i,btoa:l}=Ma,{FIND_HBS_REGEX:s,FIND_ANY_HBS_REGEX:o,findDoubleHbsInstances:a}=Ma,u=pa.create();t(u);const f=pa.create();n(f);const c={noHelpers:!1,cacheTemplates:!1,noEscaping:!1,escapeNewlines:!1,noFinalise:!1};function p(h){try{JSON.stringify(h)}catch{throw"Unable to process inputs to JSON, cannot recurse"}}let d={};function g(h,v){v=Ae(Ae({},c),v);const w=`${h}-${JSON.stringify(v)}`;if(v.cacheTemplates&&d[w])return d[w];h=VD(h,v),v.noEscaping&&(h=e.disableEscaping(h));const k=(v.noHelpers?f:u).compile(h,{strict:!1});return d[w]=k,k}r.exports.processObject=async(h,v,w)=>{p(h);for(let k of Object.keys(h||{}))if(h[k]!=null){let I=h[k];typeof I=="string"?h[k]=await r.exports.processString(h[k],v,w):typeof I=="object"&&(h[k]=await r.exports.processObject(h[k],v,w))}return h},r.exports.processString=async(h,v,w)=>r.exports.processStringSync(h,v,w),r.exports.processObjectSync=(h,v,w)=>{p(h);for(let k of Object.keys(h||{})){let I=h[k];typeof I=="string"?h[k]=r.exports.processStringSync(h[k],v,w):typeof I=="object"&&(h[k]=r.exports.processObjectSync(h[k],v,w))}return h},r.exports.processStringSync=(h,v,w)=>{const k=h;if(typeof h!="string")throw"Cannot process non-string types.";try{const I=g(h,w),T=1e3*Math.floor(Date.now()/1e3);return HD(I(Ae({now:new Date(T).toISOString(),__opts:w},v)))}catch{return k}},r.exports.disableEscaping=h=>{const v=a(h);if(v==null)return h;const w=[...new Set(v)];for(let k of w){const I=new RegExp(`${k}(?!})`,"g");h=h.replace(I,`{${k}}`)}return h},r.exports.makePropSafe=h=>`[${h}]`.replace("[[","[").replace("]]","]"),r.exports.isValid=(h,v)=>{const w=["string","number","object","array","cannot read property","undefined","json at position 0"],k=["expecting '"],I={};try{return g(h,it(Ae({},v),{noFinalise:!0}))(I),!0}catch(T){const E=T&&T.message?T.message:T;if(!E)return!1;const L=k.some(M=>E.toLowerCase().includes(M));return w.some(M=>E.toLowerCase().includes(M))&&!L}},r.exports.getManifest=()=>WD,r.exports.isJSBinding=h=>r.exports.decodeJSBinding(h)!=null,r.exports.encodeJSBinding=h=>`{{ js "${l(h)}" }}`,r.exports.decodeJSBinding=h=>{if(!h||typeof h!="string"||!h.trim().startsWith("{{ js "))return null;const v=new RegExp(/{{ js "(.*)" }}/),w=h.match(v);return!w||w.length<2?null:i(w[1])},r.exports.doesContainStrings=(h,v)=>{let w=new RegExp(s),k=h.match(w);if(k==null)return!1;for(let I of k){let T=I;e.isJSBinding(I)&&(T=e.decodeJSBinding(I));let E=!0;for(let L of v)T.includes(L)||(E=!1);if(E)return!0}return!1},r.exports.findHBSBlocks=h=>{let v=new RegExp(o),w=h.match(v);return w==null?[]:w},r.exports.doesContainString=(h,v)=>e.doesContainStrings(h,[v])});const Xb=Gr.isValid,$n=Gr.makePropSafe,GD=Gr.getManifest,Xf=Gr.isJSBinding,Qf=Gr.encodeJSBinding,Da=Gr.decodeJSBinding,Lr=Gr.processStringSync;Gr.processObjectSync;Gr.processString;Gr.processObject;Gr.doesContainStrings;Gr.doesContainString;Gr.disableEscaping;const YD=Gr.findHBSBlocks;Fb((r,e)=>(e=it(Ae({},e),{alert:void 0,setInterval:void 0,setTimeout:void 0}),L0.createContext(e),L0.runInNewContext(r,e,{timeout:1e3})));function Qb(r){let e,t,n;var i=r[3];function l(s){return{props:{row:s[0],schema:s[1],value:s[4],$$slots:{default:[JD]},$$scope:{ctx:s}}}}return i&&(t=new i(l(r)),t.$on("clickrelationship",r[9])),{c(){e=D("div"),t&&C(t.$$.fragment),ht(e,"--max-cell-width",r[1].width?"none":"200px"),y(e,"class","svelte-16j2cvj")},m(s,o){$(s,e,o),t&&S(t,e,null),n=!0},p(s,o){const a={};if(o&1&&(a.row=s[0]),o&2&&(a.schema=s[1]),o&16&&(a.value=s[4]),o&1024&&(a.$$scope={dirty:o,ctx:s}),i!==(i=s[3])){if(t){x();const u=t;_(u.$$.fragment,1,0,()=>{A(u,1)}),ee()}i?(t=new i(l(s)),t.$on("clickrelationship",s[9]),C(t.$$.fragment),m(t.$$.fragment,1),S(t,e,null)):t=null}else i&&t.$set(a);(!n||o&2)&&ht(e,"--max-cell-width",s[1].width?"none":"200px")},i(s){n||(t&&m(t.$$.fragment,s),n=!0)},o(s){t&&_(t.$$.fragment,s),n=!1},d(s){s&&b(e),t&&A(t)}}}function JD(r){let e;const t=r[8].default,n=bt(t,r,r[10],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&1024)&&vt(n,t,i,i[10],e?yt(t,i[10],l,null):wt(i[10]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function XD(r){let e,t,n=r[3]&&(r[2]||r[4]!=null&&r[4]!=="")&&Qb(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[3]&&(i[2]||i[4]!=null&&i[4]!=="")?n?(n.p(i,l),l&28&&m(n,1)):(n=Qb(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function QD(r,e,t){let n,i,l,{$$slots:s={},$$scope:o}=e,{row:a}=e,{schema:u}=e,{value:f}=e,{customRenderers:c=[]}=e,p;const d={boolean:zI,datetime:FI,link:GI,attachment:tL,string:sa,options:sa,number:sa,longform:sa,array:aL,internal:cL},g=w=>(w==null?void 0:w.type)==="datetime"&&(w==null?void 0:w.template)?"string":(w==null?void 0:w.type)||"string",h=(w,k)=>k?Lr(k,{value:w}):w;function v(w){dt.call(this,r,w)}return r.$$set=w=>{"row"in w&&t(0,a=w.row),"schema"in w&&t(1,u=w.schema),"value"in w&&t(5,f=w.value),"customRenderers"in w&&t(6,c=w.customRenderers),"$$scope"in w&&t(10,o=w.$$scope)},r.$$.update=()=>{var w,k;r.$$.dirty&2&&t(7,n=g(u)),r.$$.dirty&66&&t(2,i=c==null?void 0:c.find(I=>I.column===(u==null?void 0:u.name))),r.$$.dirty&132&&t(3,p=(k=(w=i==null?void 0:i.component)!=null?w:d[n])!=null?k:sa),r.$$.dirty&2&&(u==null||u.width),r.$$.dirty&34&&t(4,l=h(f,u.template))},[a,u,i,p,l,f,c,n,s,v,o]}class KD extends se{constructor(e){super();oe(this,e,QD,XD,ie,{row:0,schema:1,value:5,customRenderers:6})}}function Kb(r){let e,t;return e=new ni({props:{value:r[0]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.value=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Zb(r){let e,t;return e=new Ut({props:{size:"S",$$slots:{default:[ZD]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1])&&r[1].apply(this,arguments)}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){r=n;const l={};i&16&&(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){A(e,n)}}}function ZD(r){let e;return{c(){e=F("Edit")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xD(r){let e,t,n,i=r[2]&&Kb(r),l=r[3]&&Zb(r);return{c(){e=D("div"),i&&i.c(),t=R(),l&&l.c(),y(e,"class","svelte-1fa8hd3")},m(s,o){$(s,e,o),i&&i.m(e,null),P(e,t),l&&l.m(e,null),n=!0},p(s,[o]){s[2]?i?(i.p(s,o),o&4&&m(i,1)):(i=Kb(s),i.c(),m(i,1),i.m(e,t)):i&&(x(),_(i,1,1,()=>{i=null}),ee()),s[3]?l?(l.p(s,o),o&8&&m(l,1)):(l=Zb(s),l.c(),m(l,1),l.m(e,null)):l&&(x(),_(l,1,1,()=>{l=null}),ee())},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 ej(r,e,t){let{selected:n}=e,{onEdit:i}=e,{allowSelectRows:l=!1}=e,{allowEditRows:s=!1}=e;return r.$$set=o=>{"selected"in o&&t(0,n=o.selected),"onEdit"in o&&t(1,i=o.onEdit),"allowSelectRows"in o&&t(2,l=o.allowSelectRows),"allowEditRows"in o&&t(3,s=o.allowEditRows)},[n,i,l,s]}class tj extends se{constructor(e){super();oe(this,e,ej,xD,ie,{selected:0,onEdit:1,allowSelectRows:2,allowEditRows:3})}}const nj=r=>({}),xb=r=>({});function ev(r,e,t){const n=r.slice();return n[55]=e[t],n[57]=t,n}function tv(r,e,t){const n=r.slice();return n[58]=e[t],n}function nv(r,e,t){const n=r.slice();return n[58]=e[t],n}function rj(r){let e,t,n,i,l,s,o=r[14].length&&rv(r);const a=[aj,oj],u=[];function f(c,p){var d;return((d=c[19])==null?void 0:d.length)?0:1}return n=f(r),i=u[n]=a[n](r),{c(){e=D("div"),o&&o.c(),t=R(),i.c(),y(e,"class","spectrum-Table svelte-6mqswq"),y(e,"style",l=`${r[20]}${r[18]}`)},m(c,p){$(c,e,p),o&&o.m(e,null),P(e,t),u[n].m(e,null),s=!0},p(c,p){c[14].length?o?(o.p(c,p),p[0]&16384&&m(o,1)):(o=rv(c),o.c(),m(o,1),o.m(e,t)):o&&(x(),_(o,1,1,()=>{o=null}),ee());let d=n;n=f(c),n===d?u[n].p(c,p):(x(),_(u[d],1,1,()=>{u[d]=null}),ee(),i=u[n],i?i.p(c,p):(i=u[n]=a[n](c),i.c()),m(i,1),i.m(e,null)),(!s||p[0]&1310720&&l!==(l=`${c[20]}${c[18]}`))&&y(e,"style",l)},i(c){s||(m(o),m(i),s=!0)},o(c){_(o),_(i),s=!1},d(c){c&&b(e),o&&o.d(),u[n].d()}}}function ij(r){let e,t,n;return t=new Ul({}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","loading svelte-6mqswq"),y(e,"style",r[20])},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,l){(!n||l[0]&1048576)&&y(e,"style",i[20])},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function rv(r){let e,t,n,i=r[13]&&iv(r),l=r[14],s=[];for(let o=0;o<l.length;o+=1)s[o]=av(nv(r,l,o));return{c(){e=D("div"),i&&i.c(),t=R();for(let o=0;o<s.length;o+=1)s[o].c();y(e,"class","spectrum-Table-head svelte-6mqswq")},m(o,a){$(o,e,a),i&&i.m(e,null),P(e,t);for(let u=0;u<s.length;u+=1)s[u].m(e,null);n=!0},p(o,a){if(o[13]?i?(i.p(o,a),a[0]&8192&&m(i,1)):(i=iv(o),i.c(),m(i,1),i.m(e,t)):i&&(x(),_(i,1,1,()=>{i=null}),ee()),a[0]&29378081){l=o[14];let u;for(u=0;u<l.length;u+=1){const f=nv(o,l,u);s[u]?s[u].p(f,a):(s[u]=av(f),s[u].c(),s[u].m(e,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=l.length}},i(o){n||(m(i),n=!0)},o(o){_(i),n=!1},d(o){o&&b(e),i&&i.d(),mt(s,o)}}}function iv(r){let e,t,n,i;const l=[sj,lj],s=[];function o(a,u){return a[3]?0:1}return t=o(r),n=s[t]=l[t](r),{c(){e=D("div"),n.c(),y(e,"class","spectrum-Table-headCell spectrum-Table-headCell--divider spectrum-Table-headCell--edit svelte-6mqswq")},m(a,u){$(a,e,u),s[t].m(e,null),i=!0},p(a,u){let f=t;t=o(a),t===f?s[t].p(a,u):(x(),_(s[f],1,1,()=>{s[f]=null}),ee(),n=s[t],n?n.p(a,u):(n=s[t]=l[t](a),n.c()),m(n,1),n.m(e,null))},i(a){i||(m(n),i=!0)},o(a){_(n),i=!1},d(a){a&&b(e),s[t].d()}}}function lj(r){let e;return{c(){e=F("Edit")},m(t,n){$(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&b(e)}}}function sj(r){let e,t,n;function i(s){r[38](s)}let l={};return r[16]!==void 0&&(l.value=r[16]),e=new ni({props:l}),K.push(()=>ce(e,"value",i)),e.$on("change",r[27]),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};!t&&o[0]&65536&&(t=!0,a.value=s[16],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function lv(r){let e,t;return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href","#spectrum-icon-18-MagicWand"),y(e,"class","spectrum-Icon spectrum-Table-autoIcon svelte-6mqswq"),y(e,"focusable","false")},m(n,i){$(n,e,i),P(e,t)},d(n){n&&b(e)}}}function sv(r){let e,t;return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href","#spectrum-css-icon-Arrow100"),y(e,"class","spectrum-Icon spectrum-UIIcon-ArrowDown100 spectrum-Table-sortedIcon svelte-6mqswq"),y(e,"focusable","false"),y(e,"aria-hidden","true")},m(n,i){$(n,e,i),P(e,t)},d(n){n&&b(e)}}}function ov(r){let e,t,n,i;function l(...s){return r[39](r[58],...s)}return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href","#spectrum-icon-18-Edit"),y(e,"class","spectrum-Icon spectrum-Table-editIcon svelte-6mqswq"),y(e,"focusable","false")},m(s,o){$(s,e,o),P(e,t),n||(i=Le(e,"click",l),n=!0)},p(s,o){r=s},d(s){s&&b(e),n=!1,i()}}}function av(r){var h,v;let e,t,n=r[23](r[0][r[58]])+"",i,l,s,o,a,u,f,c=((h=r[0][r[58]])==null?void 0:h.autocolumn)&&lv(),p=r[9]===r[58]&&sv(),d=r[5]&&((v=r[0][r[58]])==null?void 0:v.editable)!==!1&&ov(r);function g(){return r[40](r[58])}return{c(){e=D("div"),t=D("div"),i=F(n),l=R(),c&&c.c(),s=R(),p&&p.c(),o=R(),d&&d.c(),a=R(),y(t,"class","title svelte-6mqswq"),y(e,"class","spectrum-Table-headCell svelte-6mqswq"),le(e,"spectrum-Table-headCell--alignCenter",r[0][r[58]].align==="Center"),le(e,"spectrum-Table-headCell--alignRight",r[0][r[58]].align==="Right"),le(e,"is-sortable",r[0][r[58]].sortable!==!1),le(e,"is-sorted-desc",r[9]===r[58]&&r[10]==="Descending"),le(e,"is-sorted-asc",r[9]===r[58]&&r[10]==="Ascending")},m(w,k){$(w,e,k),P(e,t),P(t,i),P(e,l),c&&c.m(e,null),P(e,s),p&&p.m(e,null),P(e,o),d&&d.m(e,null),P(e,a),u||(f=Le(e,"click",g),u=!0)},p(w,k){var I,T;r=w,k[0]&16385&&n!==(n=r[23](r[0][r[58]])+"")&&Ce(i,n),((I=r[0][r[58]])==null?void 0:I.autocolumn)?c||(c=lv(),c.c(),c.m(e,s)):c&&(c.d(1),c=null),r[9]===r[58]?p||(p=sv(),p.c(),p.m(e,o)):p&&(p.d(1),p=null),r[5]&&((T=r[0][r[58]])==null?void 0:T.editable)!==!1?d?d.p(r,k):(d=ov(r),d.c(),d.m(e,a)):d&&(d.d(1),d=null),k[0]&16385&&le(e,"spectrum-Table-headCell--alignCenter",r[0][r[58]].align==="Center"),k[0]&16385&&le(e,"spectrum-Table-headCell--alignRight",r[0][r[58]].align==="Right"),k[0]&16385&&le(e,"is-sortable",r[0][r[58]].sortable!==!1),k[0]&17920&&le(e,"is-sorted-desc",r[9]===r[58]&&r[10]==="Descending"),k[0]&17920&&le(e,"is-sorted-asc",r[9]===r[58]&&r[10]==="Ascending")},d(w){w&&b(e),c&&c.d(),p&&p.d(),d&&d.d(),u=!1,f()}}}function oj(r){let e,t,n,i;const l=[fj,uj],s=[];function o(a,u){return a[8]?0:1}return t=o(r),n=s[t]=l[t](r),{c(){var a;e=D("div"),n.c(),y(e,"class","placeholder svelte-6mqswq"),le(e,"placeholder--custom",r[8]),le(e,"placeholder--no-fields",!((a=r[14])==null?void 0:a.length))},m(a,u){$(a,e,u),s[t].m(e,null),i=!0},p(a,u){var c;let f=t;t=o(a),t===f?s[t].p(a,u):(x(),_(s[f],1,1,()=>{s[f]=null}),ee(),n=s[t],n?n.p(a,u):(n=s[t]=l[t](a),n.c()),m(n,1),n.m(e,null)),u[0]&256&&le(e,"placeholder--custom",a[8]),u[0]&16384&&le(e,"placeholder--no-fields",!((c=a[14])==null?void 0:c.length))},i(a){i||(m(n),i=!0)},o(a){_(n),i=!1},d(a){a&&b(e),s[t].d()}}}function aj(r){let e,t,n=r[19],i=[];for(let s=0;s<n.length;s+=1)i[s]=cv(ev(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[0]&103440475|o[1]&65536){n=s[19];let a;for(a=0;a<n.length;a+=1){const u=ev(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=cv(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function uj(r){let e;return{c(){e=D("div"),e.innerHTML=`<svg class="spectrum-Icon spectrum-Icon--sizeXXL" focusable="false"><use xlink:href="#spectrum-icon-18-Table"></use></svg>
|
|
377
377
|
<div class="svelte-6mqswq">No rows found</div>`,y(e,"class","placeholder-content svelte-6mqswq")},m(t,n){$(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&b(e)}}}function fj(r){let e;const t=r[37].placeholder,n=bt(t,r,r[47],xb);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l[1]&65536)&&vt(n,t,i,i[47],e?yt(t,i[47],l,nj):wt(i[47]),xb)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function uv(r){let e,t,n,i,l;function s(...u){return r[41](r[55],...u)}function o(...u){return r[42](r[55],...u)}t=new tj({props:{data:r[55],selected:r[1].findIndex(s)!==-1,onEdit:o,allowSelectRows:r[3],allowEditRows:r[4]}});function a(...u){return r[43](r[55],...u)}return{c(){e=D("div"),C(t.$$.fragment),y(e,"class","spectrum-Table-cell spectrum-Table-cell--divider spectrum-Table-cell--edit svelte-6mqswq")},m(u,f){$(u,e,f),S(t,e,null),n=!0,i||(l=Le(e,"click",a),i=!0)},p(u,f){r=u;const c={};f[0]&524288&&(c.data=r[55]),f[0]&524290&&(c.selected=r[1].findIndex(s)!==-1),f[0]&524288&&(c.onEdit=o),f[0]&8&&(c.allowSelectRows=r[3]),f[0]&16&&(c.allowEditRows=r[4]),t.$set(c)},i(u){n||(m(t.$$.fragment,u),n=!0)},o(u){_(t.$$.fragment,u),n=!1},d(u){u&&b(e),A(t),i=!1,l()}}}function cj(r){let e;const t=r[37].default,n=bt(t,r,r[47],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l[1]&65536)&&vt(n,t,i,i[47],e?yt(t,i[47],l,null):wt(i[47]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function fv(r){let e,t,n,i,l,s;t=new KD({props:{customRenderers:r[6],row:r[55],schema:r[0][r[58]],value:Ep(r[55],r[58]),$$slots:{default:[cj]},$$scope:{ctx:r}}}),t.$on("clickrelationship",r[44]);function o(){return r[45](r[58],r[55])}return{c(){e=D("div"),C(t.$$.fragment),y(e,"class","spectrum-Table-cell svelte-6mqswq"),y(e,"style",n=r[17][r[58]]),le(e,"spectrum-Table-cell--divider",!!r[0][r[58]].divider)},m(a,u){$(a,e,u),S(t,e,null),i=!0,l||(s=Le(e,"click",o),l=!0)},p(a,u){r=a;const f={};u[0]&64&&(f.customRenderers=r[6]),u[0]&524288&&(f.row=r[55]),u[0]&16385&&(f.schema=r[0][r[58]]),u[0]&540672&&(f.value=Ep(r[55],r[58])),u[1]&65536&&(f.$$scope={dirty:u,ctx:r}),t.$set(f),(!i||u[0]&147456&&n!==(n=r[17][r[58]]))&&y(e,"style",n),u[0]&16385&&le(e,"spectrum-Table-cell--divider",!!r[0][r[58]].divider)},i(a){i||(m(t.$$.fragment,a),i=!0)},o(a){_(t.$$.fragment,a),i=!1},d(a){a&&b(e),A(t),l=!1,s()}}}function cv(r){let e,t,n,i,l=r[13]&&uv(r),s=r[14],o=[];for(let u=0;u<s.length;u+=1)o[u]=fv(tv(r,s,u));const a=u=>_(o[u],1,1,()=>{o[u]=null});return{c(){e=D("div"),l&&l.c(),t=R();for(let u=0;u<o.length;u+=1)o[u].c();n=R(),y(e,"class","spectrum-Table-row svelte-6mqswq")},m(u,f){$(u,e,f),l&&l.m(e,null),P(e,t);for(let c=0;c<o.length;c+=1)o[c].m(e,null);P(e,n),i=!0},p(u,f){if(u[13]?l?(l.p(u,f),f[0]&8192&&m(l,1)):(l=uv(u),l.c(),m(l,1),l.m(e,t)):l&&(x(),_(l,1,1,()=>{l=null}),ee()),f[0]&69877825|f[1]&65536){s=u[14];let c;for(c=0;c<s.length;c+=1){const p=tv(u,s,c);o[c]?(o[c].p(p,f),m(o[c],1)):(o[c]=fv(p),o[c].c(),m(o[c],1),o[c].m(e,n))}for(x(),c=s.length;c<o.length;c+=1)a(c);ee()}},i(u){if(!i){m(l);for(let f=0;f<s.length;f+=1)m(o[f]);i=!0}},o(u){_(l),o=o.filter(Boolean);for(let f=0;f<o.length;f+=1)_(o[f]);i=!1},d(u){u&&b(e),l&&l.d(),mt(o,u)}}}function pj(r){let e,t,n,i,l,s;const o=[ij,rj],a=[];function u(f,c){return f[12]?1:0}return t=u(r),n=a[t]=o[t](r),{c(){e=D("div"),n.c(),y(e,"class","wrapper svelte-6mqswq"),y(e,"style",i=`--row-height: ${r[15]}px; --header-height: ${fm}px;`),Kr(()=>r[46].call(e)),le(e,"wrapper--quiet",r[2]),le(e,"wrapper--compact",r[7])},m(f,c){$(f,e,c),a[t].m(e,null),l=LA(e,r[46].bind(e)),s=!0},p(f,c){let p=t;t=u(f),t===p?a[t].p(f,c):(x(),_(a[p],1,1,()=>{a[p]=null}),ee(),n=a[t],n?n.p(f,c):(n=a[t]=o[t](f),n.c()),m(n,1),n.m(e,null)),(!s||c[0]&32768&&i!==(i=`--row-height: ${f[15]}px; --header-height: ${fm}px;`))&&y(e,"style",i),c[0]&4&&le(e,"wrapper--quiet",f[2]),c[0]&128&&le(e,"wrapper--compact",f[7])},i(f){s||(m(n),s=!0)},o(f){_(n),s=!1},d(f){f&&b(e),a[t].d(),l()}}}const fm=36;function dj(r,e,t){let n,i,l,s,o,a,u,f,c,p,{$$slots:d={},$$scope:g}=e,{data:h=[]}=e,{schema:v={}}=e,{showAutoColumns:w=!1}=e,{rowCount:k=0}=e,{quiet:I=!1}=e,{loading:T=!1}=e,{allowSelectRows:E}=e,{allowEditRows:L=!0}=e,{allowEditColumns:M=!0}=e,{selectedRows:B=[]}=e,{customRenderers:j=[]}=e,{disableSorting:U=!1}=e,{autoSortColumns:q=!0}=e,{compact:G=!1}=e,{customPlaceholder:Y=!1}=e;const W=_t();let H,V,J=0,fe=!1,re=!1;const Q=We=>{let ot={};return Object.entries(We||{}).forEach(([Pe,Lt])=>{typeof Lt=="string"?ot[Pe]={type:Lt,name:Pe}:ot[Pe]=it(Ae({},Lt),{name:Pe})}),ot},te=(We,ot,Pe,Lt,cn)=>We?Lt?Math.min(Pe,Lt):Math.min(Pe,Math.ceil(ot/cn)):Lt||0,_e=(We,ot,Pe,Lt)=>!ot||!We||Pe<=ot?"":`height: ${fm+We*Lt}px;`,Re=(We,ot,Pe)=>{let Lt="grid-template-columns:";return Pe&&(Lt+=" auto"),We==null||We.forEach(cn=>{const un=ot[cn];un.width?Lt+=` ${un.width}`:Lt+=" minmax(auto, 1fr)"}),Lt+=";",Lt},be=(We,ot,Pe)=>!ot||!Pe||U?We:We.slice().sort((Lt,cn)=>{const un=Lt[ot],xt=cn[ot];return Pe==="Descending"?un>xt?-1:1:un>xt?1:-1}),he=We=>{We.sortable!==!1&&(We.name===H?t(10,V=V==="Descending"?"Ascending":"Descending"):(t(9,H=We.name),t(10,V="Descending")),W("sort",{column:H,order:V}))},ve=We=>{let ot=We==null?void 0:We.displayName;return We&&ot===void 0&&(ot=We.name),ot||""},Ie=(We,ot,Pe)=>{let Lt=[],cn=[];return Object.entries(We||{}).forEach(([un,xt])=>{!un||!xt||(!Pe||!(xt==null?void 0:xt.autocolumn)?Lt.push(xt):ot&&cn.push(xt))}),Lt.sort((un,xt)=>{const xn=un.order||Number.MAX_SAFE_INTEGER,Ln=xt.order||Number.MAX_SAFE_INTEGER,Qn=ve(un),ar=ve(xt);return xn!==Ln?xn<Ln?xn:Ln:Qn<ar?un:xt}).concat(cn).map(un=>un.name)},Be=(We,ot)=>{We.stopPropagation(),W("editcolumn",ot)},ue=(We,ot)=>{We.stopPropagation(),W("editrow",Tp(ot))},Ve=We=>{!E||(B.some(ot=>ot._id===We._id)?t(1,B=B.filter(ot=>ot._id!==We._id)):t(1,B=[...B,We]))},de=We=>{!!We.detail?l.forEach(Pe=>{B.findIndex(Lt=>Lt._id===Pe._id)===-1&&B.push(Pe)}):t(1,B=B.filter(Pe=>l.every(Lt=>Lt._id!==Pe._id)))},$e=We=>{let ot={};return Object.keys(We||{}).forEach(Pe=>{ot[Pe]="",We[Pe].color&&(ot[Pe]+=`color: ${We[Pe].color};`),We[Pe].background&&(ot[Pe]+=`background-color: ${We[Pe].background};`),We[Pe].align==="Center"&&(ot[Pe]+="justify-content: center; text-align: center;"),We[Pe].align==="Right"&&(ot[Pe]+="justify-content: flex-end; text-align: right;")}),ot};function Ee(We){re=We,t(16,re),t(34,l),t(1,B),t(14,i),t(28,h),t(0,v),t(29,w),t(33,q)}const ke=(We,ot)=>Be(ot,We),Ke=We=>he(v[We]),Nt=(We,ot)=>ot._id===We._id,zt=(We,ot)=>ue(ot,We),qt=(We,ot)=>{Ve(We),ot.stopPropagation()};function Xt(We){dt.call(this,r,We)}const Ne=(We,ot)=>{var Pe;((Pe=v[We])==null?void 0:Pe.preventSelectRow)||(W("click",ot),Ve(ot))};function rt(){J=this.offsetHeight,t(11,J)}return r.$$set=We=>{"data"in We&&t(28,h=We.data),"schema"in We&&t(0,v=We.schema),"showAutoColumns"in We&&t(29,w=We.showAutoColumns),"rowCount"in We&&t(30,k=We.rowCount),"quiet"in We&&t(2,I=We.quiet),"loading"in We&&t(31,T=We.loading),"allowSelectRows"in We&&t(3,E=We.allowSelectRows),"allowEditRows"in We&&t(4,L=We.allowEditRows),"allowEditColumns"in We&&t(5,M=We.allowEditColumns),"selectedRows"in We&&t(1,B=We.selectedRows),"customRenderers"in We&&t(6,j=We.customRenderers),"disableSorting"in We&&t(32,U=We.disableSorting),"autoSortColumns"in We&&t(33,q=We.autoSortColumns),"compact"in We&&t(7,G=We.compact),"customPlaceholder"in We&&t(8,Y=We.customPlaceholder),"$$scope"in We&&t(47,g=We.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&128&&t(15,n=G?46:55),r.$$.dirty[0]&1&&t(0,v=Q(v)),r.$$.dirty[1]&1&&(T||t(12,fe=!0)),r.$$.dirty[0]&536870913|r.$$.dirty[1]&4&&t(14,i=Ie(v,w,q)),r.$$.dirty[0]&268451840&&t(34,l=(i==null?void 0:i.length)?h||[]:[]),r.$$.dirty[1]&8&&t(35,s=(l==null?void 0:l.length)||0),r.$$.dirty[0]&1073780736|r.$$.dirty[1]&8&&t(36,o=te(fe,J,l.length,k,n)),r.$$.dirty[0]&1073774592|r.$$.dirty[1]&48&&t(20,a=_e(o,k,s,n)),r.$$.dirty[0]&1536|r.$$.dirty[1]&8&&t(19,u=be(l,H,V)),r.$$.dirty[0]&24&&t(13,c=L||E),r.$$.dirty[0]&24577&&t(18,f=Re(i,v,c)),r.$$.dirty[0]&1&&t(17,p=$e(v)),r.$$.dirty[0]&2|r.$$.dirty[1]&8&&l.filter(ot=>B.some(Pe=>ot._id===Pe._id)).length===0&&t(16,re=!1)},[v,B,I,E,L,M,j,G,Y,H,V,J,fe,c,i,n,re,p,f,u,a,W,he,ve,Be,ue,Ve,de,h,w,k,T,U,q,l,s,o,d,Ee,ke,Ke,Nt,zt,qt,Xt,Ne,rt,g]}class qi extends se{constructor(e){super();oe(this,e,dj,pj,ie,{data:28,schema:0,showAutoColumns:29,rowCount:30,quiet:2,loading:31,allowSelectRows:3,allowEditRows:4,allowEditColumns:5,selectedRows:1,customRenderers:6,disableSorting:32,autoSortColumns:33,compact:7,customPlaceholder:8},null,[-1,-1,-1])}}function pv(r){let e,t;return{c(){e=D("div"),y(e,"class","spectrum-Tabs-selectionIndicator indicator-transition svelte-14e5lpv"),y(e,"style",t=""+((r[4]&&"background-color: var(--spectrum-global-color-blue-400)")+"; width: "+r[10]+"; height: "+r[11]+"; left: "+r[9]+"; top: "+r[8]+";"))},m(n,i){$(n,e,i)},p(n,i){i&3856&&t!==(t=""+((n[4]&&"background-color: var(--spectrum-global-color-blue-400)")+"; width: "+n[10]+"; height: "+n[11]+"; left: "+n[9]+"; top: "+n[8]+";"))&&y(e,"style",t)},d(n){n&&b(e)}}}function mj(r){let e,t,n,i,l,s;const o=r[17].default,a=bt(o,r,r[16],null);let u=r[6].info&&pv(r);return{c(){e=D("div"),a&&a.c(),t=R(),u&&u.c(),i=R(),l=D("div"),y(e,"class",n="selected-border spectrum-Tabs "+(r[3]&&"spectrum-Tabs--quiet")+" spectrum-Tabs--"+(r[0]?"vertical":"horizontal")+" svelte-14e5lpv"),le(e,"quiet",r[3]),le(e,"noHorizPadding",r[2]),le(e,"onTop",r[5]),y(l,"class","spectrum-Tabs-content spectrum-Tabs-content-"+r[12]+" svelte-14e5lpv"),le(l,"noPadding",r[1])},m(f,c){$(f,e,c),a&&a.m(e,null),P(e,t),u&&u.m(e,null),r[18](e),$(f,i,c),$(f,l,c),s=!0},p(f,[c]){a&&a.p&&(!s||c&65536)&&vt(a,o,f,f[16],s?yt(o,f[16],c,null):wt(f[16]),null),f[6].info?u?u.p(f,c):(u=pv(f),u.c(),u.m(e,null)):u&&(u.d(1),u=null),(!s||c&9&&n!==(n="selected-border spectrum-Tabs "+(f[3]&&"spectrum-Tabs--quiet")+" spectrum-Tabs--"+(f[0]?"vertical":"horizontal")+" svelte-14e5lpv"))&&y(e,"class",n),c&9&&le(e,"quiet",f[3]),c&13&&le(e,"noHorizPadding",f[2]),c&41&&le(e,"onTop",f[5]),c&2&&le(l,"noPadding",f[1])},i(f){s||(m(a,f),s=!0)},o(f){_(a,f),s=!1},d(f){f&&b(e),a&&a.d(f),u&&u.d(),r[18](null),f&&b(i),f&&b(l)}}}function gj(){return"_"+Math.random().toString(36).slice(2,9)}function _j(r,e,t){let n,{$$slots:i={},$$scope:l}=e,{selected:s}=e,{vertical:o=!1}=e,{noPadding:a=!1}=e,{noHorizPadding:u=!1}=e,{quiet:f=!1}=e,{emphasized:c=!1}=e,{onTop:p=!1}=e,d,g=gj();const h=fn({title:s,id:g,emphasized:c});ae(r,h,j=>t(6,n=j)),Qo("tab",h);let v;const w=_t();let k,I,T,E;function L(){var j,U,q,G;o?(t(11,E=((q=n.info)==null?void 0:q.height)+4+"px"),t(10,T=(G=n.info)==null?void 0:G.width)):(t(10,T=((j=n.info)==null?void 0:j.width)+"px"),t(11,E=(U=n.info)==null?void 0:U.height))}function M(){var j,U;o?t(8,k=((U=n.info)==null?void 0:U.top)-(v==null?void 0:v.getBoundingClientRect().top)+"px"):t(9,I=((j=n.info)==null?void 0:j.left)-(v==null?void 0:v.getBoundingClientRect().left)+"px")}Pt(()=>{L(),M()});function B(j){K[j?"unshift":"push"](()=>{v=j,t(7,v)})}return r.$$set=j=>{"selected"in j&&t(14,s=j.selected),"vertical"in j&&t(0,o=j.vertical),"noPadding"in j&&t(1,a=j.noPadding),"noHorizPadding"in j&&t(2,u=j.noHorizPadding),"quiet"in j&&t(3,f=j.quiet),"emphasized"in j&&t(4,c=j.emphasized),"onTop"in j&&t(5,p=j.onTop),"$$scope"in j&&t(16,l=j.$$scope)},r.$$.update=()=>{r.$$.dirty&49216&&(d!==s?(t(15,d=s),w("select",d)):n.title!==d&&(t(15,d=n.title),t(14,s=n.title),w("select",d)),n.title!==d&&h.update(j=>(j.title=d,j))),r.$$.dirty&64&&L(),r.$$.dirty&64&&M()},[o,a,u,f,c,p,n,v,k,I,T,E,g,h,s,d,l,i,B]}class Sr extends se{constructor(e){super();oe(this,e,_j,mj,ie,{selected:14,vertical:0,noPadding:1,noHorizPadding:2,quiet:3,emphasized:4,onTop:5})}}function dv(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href",n="#spectrum-icon-18-"+r[1]),y(e,"class","spectrum-Icon spectrum-Icon--sizeM"),y(e,"focusable","false"),y(e,"aria-hidden","true"),y(e,"aria-label","Folder")},m(i,l){$(i,e,l),P(e,t)},p(i,l){l&2&&n!==(n="#spectrum-icon-18-"+i[1])&&Wt(t,"xlink:href",n)},d(i){i&&b(e)}}}function mv(r){let e,t;return e=new eo({props:{target:".spectrum-Tabs-content-"+r[3].id,$$slots:{default:[hj]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&8&&(l.target=".spectrum-Tabs-content-"+n[3].id),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){A(e,n)}}}function hj(r){let e;const t=r[6].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 $j(r){let e,t,n,i,l,s,o,a,u,f=r[1]&&dv(r),c=r[3].title===r[0]&&mv(r);return{c(){e=D("div"),f&&f.c(),t=R(),n=D("span"),i=F(r[0]),l=R(),c&&c.c(),s=Oe(),y(n,"class","spectrum-Tabs-itemLabel"),y(e,"class","spectrum-Tabs-item svelte-1urx9zy"),y(e,"tabindex","0"),le(e,"is-selected",r[3].title===r[0]),le(e,"emphasized",r[3].title===r[0]&&r[3].emphasized)},m(p,d){$(p,e,d),f&&f.m(e,null),P(e,t),P(e,n),P(n,i),r[7](e),$(p,l,d),c&&c.m(p,d),$(p,s,d),o=!0,a||(u=Le(e,"click",r[5]),a=!0)},p(p,[d]){p[1]?f?f.p(p,d):(f=dv(p),f.c(),f.m(e,t)):f&&(f.d(1),f=null),(!o||d&1)&&Ce(i,p[0]),d&9&&le(e,"is-selected",p[3].title===p[0]),d&9&&le(e,"emphasized",p[3].title===p[0]&&p[3].emphasized),p[3].title===p[0]?c?(c.p(p,d),d&9&&m(c,1)):(c=mv(p),c.c(),m(c,1),c.m(s.parentNode,s)):c&&(x(),_(c,1,1,()=>{c=null}),ee())},i(p){o||(m(c),o=!0)},o(p){_(c),o=!1},d(p){p&&b(e),f&&f.d(),r[7](null),p&&b(l),c&&c.d(p),p&&b(s),a=!1,u()}}}function bj(r,e,t){let n,{$$slots:i={},$$scope:l}=e,{title:s}=e,{icon:o=""}=e;const a=_t();let u=to("tab");ae(r,u,h=>t(3,n=h));let f,c;const p=()=>{setTimeout(()=>{c=f==null?void 0:f.getBoundingClientRect(),c&&n.title===s&&Cn(u,n.info=c,n)},0)};Pt(()=>{p()});const d=()=>{Cn(u,n=it(Ae({},n),{title:s,info:f.getBoundingClientRect()}),n),a("click")};function g(h){K[h?"unshift":"push"](()=>{f=h,t(2,f)})}return r.$$set=h=>{"title"in h&&t(0,s=h.title),"icon"in h&&t(1,o=h.icon),"$$scope"in h&&t(8,l=h.$$scope)},r.$$.update=()=>{var h;r.$$.dirty&13&&n.title===s&&f&&((h=n.info)==null?void 0:h.left)!==f.getBoundingClientRect().left&&Cn(u,n=it(Ae({},n),{info:f.getBoundingClientRect()}),n)},[s,o,f,n,u,d,i,g,l]}class _n extends se{constructor(e){super();oe(this,e,bj,$j,ie,{title:0,icon:1})}}function vj(r){let e,t;return e=new U_({props:{updateOnChange:r[5],disabled:r[4],value:r[0],placeholder:r[3],quiet:r[6]}}),e.$on("change",r[7]),e.$on("click",r[8]),e.$on("input",r[9]),e.$on("focus",r[10]),e.$on("blur",r[11]),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.updateOnChange=n[5]),i&16&&(l.disabled=n[4]),i&1&&(l.value=n[0]),i&8&&(l.placeholder=n[3]),i&64&&(l.quiet=n[6]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function wj(r){let e,t;return e=new ei({props:{label:r[1],labelPosition:r[2],$$slots:{default:[vj]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&4&&(l.labelPosition=n[2]),i&8313&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function yj(r,e,t){let{value:n=null}=e,{label:i=null}=e,{labelPosition:l="above"}=e,{placeholder:s=null}=e,{disabled:o=!1}=e,{updateOnChange:a=!0}=e,{quiet:u=!1}=e;const f=_t(),c=v=>{t(0,n=v.detail),f("change",v.detail)};function p(v){dt.call(this,r,v)}function d(v){dt.call(this,r,v)}function g(v){dt.call(this,r,v)}function h(v){dt.call(this,r,v)}return r.$$set=v=>{"value"in v&&t(0,n=v.value),"label"in v&&t(1,i=v.label),"labelPosition"in v&&t(2,l=v.labelPosition),"placeholder"in v&&t(3,s=v.placeholder),"disabled"in v&&t(4,o=v.disabled),"updateOnChange"in v&&t(5,a=v.updateOnChange),"quiet"in v&&t(6,u=v.quiet)},[n,i,l,s,o,a,u,c,p,d,g,h]}class Kf extends se{constructor(e){super();oe(this,e,yj,wj,ie,{value:0,label:1,labelPosition:2,placeholder:3,disabled:4,updateOnChange:5,quiet:6})}}function kj(r){let e,t,n,i,l,s,o,a,u,f;return{c(){e=D("nav"),t=D("div"),t.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronLeft100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',n=R(),i=D("span"),l=F("Page "),s=F(r[0]),o=R(),a=D("div"),a.innerHTML='<svg class="spectrum-Icon spectrum-UIIcon-ChevronRight100" focusable="false" aria-hidden="true" aria-label="ChevronLeft"><use xlink:href="#spectrum-css-icon-Chevron100"></use></svg>',y(t,"href","#"),y(t,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-prevButton svelte-1w0vi9g"),le(t,"is-disabled",!r[3]),y(i,"class","spectrum-Body--secondary spectrum-Pagination-counter svelte-1w0vi9g"),y(a,"href","#"),y(a,"class","spectrum-ActionButton spectrum-ActionButton--sizeM spectrum-ActionButton--quiet spectrum-Pagination-nextButton svelte-1w0vi9g"),le(a,"is-disabled",!r[4]),y(e,"class","spectrum-Pagination spectrum-Pagination--explicit")},m(c,p){$(c,e,p),P(e,t),P(e,n),P(e,i),P(i,l),P(i,s),P(e,o),P(e,a),u||(f=[Le(t,"click",function(){ft(r[3]?r[1]:null)&&(r[3]?r[1]:null).apply(this,arguments)}),Le(a,"click",function(){ft(r[4]?r[2]:null)&&(r[4]?r[2]:null).apply(this,arguments)})],u=!0)},p(c,[p]){r=c,p&8&&le(t,"is-disabled",!r[3]),p&1&&Ce(s,r[0]),p&16&&le(a,"is-disabled",!r[4])},i:Se,o:Se,d(c){c&&b(e),u=!1,Tn(f)}}}function Cj(r,e,t){let{page:n}=e,{goToPrevPage:i}=e,{goToNextPage:l}=e,{hasPrevPage:s=!0}=e,{hasNextPage:o=!0}=e;return r.$$set=a=>{"page"in a&&t(0,n=a.page),"goToPrevPage"in a&&t(1,i=a.goToPrevPage),"goToNextPage"in a&&t(2,l=a.goToNextPage),"hasPrevPage"in a&&t(3,s=a.hasPrevPage),"hasNextPage"in a&&t(4,o=a.hasNextPage)},[n,i,l,s,o]}class gv extends se{constructor(e){super();oe(this,e,Cj,kj,ie,{page:0,goToPrevPage:1,goToNextPage:2,hasPrevPage:3,hasNextPage:4})}}function Sj(r){let e,t,n;const i=r[17].default,l=bt(i,r,r[16],null);return{c(){e=D("div"),l&&l.c(),y(e,"class",t="spectrum-StatusLight spectrum-StatusLight--size"+r[0]),le(e,"spectrum-StatusLight--celery",r[1]),le(e,"spectrum-StatusLight--yellow",r[2]),le(e,"spectrum-StatusLight--fuchsia",r[3]),le(e,"spectrum-StatusLight--indigo",r[4]),le(e,"spectrum-StatusLight--seafoam",r[5]),le(e,"spectrum-StatusLight--chartreuse",r[6]),le(e,"spectrum-StatusLight--magenta",r[7]),le(e,"spectrum-StatusLight--purple",r[8]),le(e,"spectrum-StatusLight--neutral",r[9]),le(e,"spectrum-StatusLight--info",r[10]),le(e,"spectrum-StatusLight--positive",r[11]),le(e,"spectrum-StatusLight--notice",r[12]),le(e,"spectrum-StatusLight--negative",r[13]),le(e,"spectrum-StatusLight--disabled",r[14]),le(e,"spectrum-StatusLight--active",r[15])},m(s,o){$(s,e,o),l&&l.m(e,null),n=!0},p(s,[o]){l&&l.p&&(!n||o&65536)&&vt(l,i,s,s[16],n?yt(i,s[16],o,null):wt(s[16]),null),(!n||o&1&&t!==(t="spectrum-StatusLight spectrum-StatusLight--size"+s[0]))&&y(e,"class",t),o&3&&le(e,"spectrum-StatusLight--celery",s[1]),o&5&&le(e,"spectrum-StatusLight--yellow",s[2]),o&9&&le(e,"spectrum-StatusLight--fuchsia",s[3]),o&17&&le(e,"spectrum-StatusLight--indigo",s[4]),o&33&&le(e,"spectrum-StatusLight--seafoam",s[5]),o&65&&le(e,"spectrum-StatusLight--chartreuse",s[6]),o&129&&le(e,"spectrum-StatusLight--magenta",s[7]),o&257&&le(e,"spectrum-StatusLight--purple",s[8]),o&513&&le(e,"spectrum-StatusLight--neutral",s[9]),o&1025&&le(e,"spectrum-StatusLight--info",s[10]),o&2049&&le(e,"spectrum-StatusLight--positive",s[11]),o&4097&&le(e,"spectrum-StatusLight--notice",s[12]),o&8193&&le(e,"spectrum-StatusLight--negative",s[13]),o&16385&&le(e,"spectrum-StatusLight--disabled",s[14]),o&32769&&le(e,"spectrum-StatusLight--active",s[15])},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Aj(r,e,t){let{$$slots:n={},$$scope:i}=e,{size:l="M"}=e,{celery:s=!1}=e,{yellow:o=!1}=e,{fuchsia:a=!1}=e,{indigo:u=!1}=e,{seafoam:f=!1}=e,{chartreuse:c=!1}=e,{magenta:p=!1}=e,{purple:d=!1}=e,{neutral:g=!1}=e,{info:h=!1}=e,{positive:v=!1}=e,{notice:w=!1}=e,{negative:k=!1}=e,{disabled:I=!1}=e,{active:T=!1}=e;return r.$$set=E=>{"size"in E&&t(0,l=E.size),"celery"in E&&t(1,s=E.celery),"yellow"in E&&t(2,o=E.yellow),"fuchsia"in E&&t(3,a=E.fuchsia),"indigo"in E&&t(4,u=E.indigo),"seafoam"in E&&t(5,f=E.seafoam),"chartreuse"in E&&t(6,c=E.chartreuse),"magenta"in E&&t(7,p=E.magenta),"purple"in E&&t(8,d=E.purple),"neutral"in E&&t(9,g=E.neutral),"info"in E&&t(10,h=E.info),"positive"in E&&t(11,v=E.positive),"notice"in E&&t(12,w=E.notice),"negative"in E&&t(13,k=E.negative),"disabled"in E&&t(14,I=E.disabled),"active"in E&&t(15,T=E.active),"$$scope"in E&&t(16,i=E.$$scope)},[l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,i,n]}class Oj extends se{constructor(e){super();oe(this,e,Aj,Sj,ie,{size:0,celery:1,yellow:2,fuchsia:3,indigo:4,seafoam:5,chartreuse:6,magenta:7,purple:8,neutral:9,info:10,positive:11,notice:12,negative:13,disabled:14,active:15})}}function _v(r,e,t){const n=r.slice();return n[18]=e[t],n}function hv(r,e,t){const n=r.slice();return n[21]=e[t],n}function $v(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h=r[7],v=[];for(let k=0;k<h.length;k+=1)v[k]=wv(_v(r,h,k));const w=k=>_(v[k],1,1,()=>{v[k]=null});return o=new et({props:{updateOnChange:!1,quiet:!0,placeholder:"Hex, RGB, HSL...",value:r[6]}}),o.$on("change",r[12]),u=new at({props:{size:"S",name:"Close",hoverable:!0}}),u.$on("click",r[13]),{c(){e=D("div");for(let k=0;k<v.length;k+=1)v[k].c();t=R(),n=D("div"),i=D("div"),i.textContent="Custom",l=R(),s=D("div"),C(o.$$.fragment),a=R(),C(u.$$.fragment),y(i,"class","heading svelte-bfns6y"),y(s,"class","custom svelte-bfns6y"),y(n,"class","category category--custom svelte-bfns6y"),y(e,"class","spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open svelte-bfns6y"),le(e,"spectrum-Popover--align-right",r[3])},m(k,I){$(k,e,I);for(let T=0;T<v.length;T+=1)v[T].m(e,null);P(e,t),P(e,n),P(n,i),P(n,l),P(n,s),S(o,s,null),P(s,a),S(u,s,null),p=!0,d||(g=yr(f=Yu.call(null,e,r[14])),d=!0)},p(k,I){if(I&933){h=k[7];let E;for(E=0;E<h.length;E+=1){const L=_v(k,h,E);v[E]?(v[E].p(L,I),m(v[E],1)):(v[E]=wv(L),v[E].c(),m(v[E],1),v[E].m(e,t))}for(x(),E=h.length;E<v.length;E+=1)w(E);ee()}const T={};I&64&&(T.value=k[6]),o.$set(T),f&&ft(f.update)&&I&16&&f.update.call(null,k[14]),I&8&&le(e,"spectrum-Popover--align-right",k[3])},i(k){if(!p){for(let I=0;I<h.length;I+=1)m(v[I]);m(o.$$.fragment,k),m(u.$$.fragment,k),Kr(()=>{c||(c=zr(e,qr,{y:-20,duration:200},!0)),c.run(1)}),p=!0}},o(k){v=v.filter(Boolean);for(let I=0;I<v.length;I+=1)_(v[I]);_(o.$$.fragment,k),_(u.$$.fragment,k),c||(c=zr(e,qr,{y:-20,duration:200},!1)),c.run(0),p=!1},d(k){k&&b(e),mt(v,k),A(o),A(u),k&&c&&c.end(),d=!1,g()}}}function bv(r){let e,t;return e=new at({props:{name:"Checkmark",size:"S"}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function vv(r){let e,t,n,i,l,s,o=r[0]===`var(--spectrum-global-color-${r[21]})`&&bv();function a(){return r[11](r[21])}return{c(){e=D("div"),t=D("div"),o&&o.c(),y(t,"class",n="fill "+(r[2]||"")+" svelte-bfns6y"),ht(t,"background","var(--spectrum-global-color-"+r[21]+")"),ht(t,"color",r[5]),y(e,"class","color svelte-bfns6y"),y(e,"title",r[9](r[21]))},m(u,f){$(u,e,f),P(e,t),o&&o.m(t,null),i=!0,l||(s=Le(e,"click",a),l=!0)},p(u,f){r=u,r[0]===`var(--spectrum-global-color-${r[21]})`?o?f&1&&m(o,1):(o=bv(),o.c(),m(o,1),o.m(t,null)):o&&(x(),_(o,1,1,()=>{o=null}),ee()),(!i||f&4&&n!==(n="fill "+(r[2]||"")+" svelte-bfns6y"))&&y(t,"class",n),(!i||f&32)&&ht(t,"color",r[5])},i(u){i||(m(o),i=!0)},o(u){_(o),i=!1},d(u){u&&b(e),o&&o.d(),l=!1,s()}}}function wv(r){let e,t,n=r[18].label+"",i,l,s,o,a=r[18].colors,u=[];for(let c=0;c<a.length;c+=1)u[c]=vv(hv(r,a,c));const f=c=>_(u[c],1,1,()=>{u[c]=null});return{c(){e=D("div"),t=D("div"),i=F(n),l=R(),s=D("div");for(let c=0;c<u.length;c+=1)u[c].c();y(t,"class","heading svelte-bfns6y"),y(s,"class","colors svelte-bfns6y"),y(e,"class","category")},m(c,p){$(c,e,p),P(e,t),P(t,i),P(e,l),P(e,s);for(let d=0;d<u.length;d+=1)u[d].m(s,null);o=!0},p(c,p){if(p&933){a=c[18].colors;let d;for(d=0;d<a.length;d+=1){const g=hv(c,a,d);u[d]?(u[d].p(g,p),m(u[d],1)):(u[d]=vv(g),u[d].c(),m(u[d],1),u[d].m(s,null))}for(x(),d=a.length;d<u.length;d+=1)f(d);ee()}},i(c){if(!o){for(let p=0;p<a.length;p+=1)m(u[p]);o=!0}},o(c){u=u.filter(Boolean);for(let p=0;p<u.length;p+=1)_(u[p]);o=!1},d(c){c&&b(e),mt(u,c)}}}function Ej(r){let e,t,n,i,l,s,o,a,u,f,c=r[4]&&$v(r);return{c(){e=D("div"),t=D("div"),n=D("div"),o=R(),c&&c.c(),y(n,"class",i="fill "+(r[2]||"")+" svelte-bfns6y"),y(n,"style",l=r[0]?`background: ${r[0]};`:""),le(n,"placeholder",!r[0]),y(t,"class",s="preview size--"+(r[1]||"M")+" svelte-bfns6y"),y(e,"class","container svelte-bfns6y")},m(p,d){$(p,e,d),P(e,t),P(t,n),P(e,o),c&&c.m(e,null),a=!0,u||(f=Le(t,"click",r[10]),u=!0)},p(p,[d]){(!a||d&4&&i!==(i="fill "+(p[2]||"")+" svelte-bfns6y"))&&y(n,"class",i),(!a||d&1&&l!==(l=p[0]?`background: ${p[0]};`:""))&&y(n,"style",l),d&5&&le(n,"placeholder",!p[0]),(!a||d&2&&s!==(s="preview size--"+(p[1]||"M")+" svelte-bfns6y"))&&y(t,"class",s),p[4]?c?(c.p(p,d),d&16&&m(c,1)):(c=$v(p),c.c(),m(c,1),c.m(e,null)):c&&(x(),_(c,1,1,()=>{c=null}),ee())},i(p){a||(m(c),a=!0)},o(p){_(c),a=!1},d(p){p&&b(e),c&&c.d(),u=!1,f()}}}function Tj(r,e,t){let n,i,{value:l}=e,{size:s="M"}=e,{spectrumTheme:o}=e,{alignRight:a=!1}=e,u=!1;const f=_t(),c=[{label:"Theme",colors:["gray-50","gray-75","gray-100","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-900"]},{label:"Colors",colors:["red-400","orange-400","yellow-400","green-400","seafoam-400","blue-400","indigo-400","magenta-400","red-500","orange-500","yellow-500","green-500","seafoam-500","blue-500","indigo-500","magenta-500","red-600","orange-600","yellow-600","green-600","seafoam-600","blue-600","indigo-600","magenta-600","red-700","orange-700","yellow-700","green-700","seafoam-700","blue-700","indigo-700","magenta-700","static-white","static-black"]}],p=E=>{f("change",E),t(4,u=!1)},d=E=>{if(!E)return E;let L=!1;const M=E.substring(28,E.length-1);for(let B of c)if(L=B.colors.includes(M),L)break;return L?null:E},g=E=>WO(E.split("-").join(" ")),h=E=>(E==null?void 0:E.includes("gray"))?/^.*(gray-(50|75|100|200|300|400|500))\)$/.test(E)?"var(--spectrum-global-color-gray-900)":"var(--spectrum-global-color-gray-50)":(E==null?void 0:E.includes("static-black"))?"var(--spectrum-global-color-static-gray-50)":"var(--spectrum-global-color-static-gray-900)",v=()=>t(4,u=!0),w=E=>{p(`var(--spectrum-global-color-${E})`)};function k(E){dt.call(this,r,E)}const I=()=>p(null),T=()=>t(4,u=!1);return r.$$set=E=>{"value"in E&&t(0,l=E.value),"size"in E&&t(1,s=E.size),"spectrumTheme"in E&&t(2,o=E.spectrumTheme),"alignRight"in E&&t(3,a=E.alignRight)},r.$$.update=()=>{r.$$.dirty&1&&t(6,n=d(l)),r.$$.dirty&1&&t(5,i=h(l))},[l,s,o,a,u,i,n,c,p,g,v,w,k,I,T]}class xl extends se{constructor(e){super();oe(this,e,Tj,Ej,ie,{value:0,size:1,spectrumTheme:2,alignRight:3})}}function yv(r,e,t){const n=r.slice();return n[6]=e[t],n}function kv(r){let e,t=r[6]+"",n;return{c(){e=D("div"),n=F(t),y(e,"class","spectrum-InLineAlert-content")},m(i,l){$(i,e,l),P(e,n)},p(i,l){l&8&&t!==(t=i[6]+"")&&Ce(n,t)},d(i){i&&b(e)}}}function Cv(r){let e,t,n;return t=new lt({props:{secondary:!0,$$slots:{default:[Ij]},$$scope:{ctx:r}}}),t.$on("click",function(){ft(r[2])&&r[2].apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","spectrum-InLineAlert-footer")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,l){r=i;const s={};l&512&&(s.$$scope={dirty:l,ctx:r}),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function Ij(r){let e;return{c(){e=F("OK")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lj(r){let e,t,n,i,l,s,o,a,u,f,c,p=r[3],d=[];for(let h=0;h<p.length;h+=1)d[h]=kv(yv(r,p,h));let g=r[2]&&Cv(r);return{c(){e=D("div"),t=me("svg"),n=me("use"),l=R(),s=D("div"),o=F(r[1]),a=R();for(let h=0;h<d.length;h+=1)d[h].c();u=R(),g&&g.c(),Wt(n,"xlink:href",i="#spectrum-icon-18-"+r[4]),y(t,"class","spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"),y(t,"focusable","false"),y(t,"aria-hidden","true"),y(s,"class","spectrum-InLineAlert-header"),y(e,"class",f="spectrum-InLineAlert spectrum-InLineAlert--"+r[0]+" svelte-1ofhl9j")},m(h,v){$(h,e,v),P(e,t),P(t,n),P(e,l),P(e,s),P(s,o),P(e,a);for(let w=0;w<d.length;w+=1)d[w].m(e,null);P(e,u),g&&g.m(e,null),c=!0},p(h,[v]){if((!c||v&16&&i!==(i="#spectrum-icon-18-"+h[4]))&&Wt(n,"xlink:href",i),(!c||v&2)&&Ce(o,h[1]),v&8){p=h[3];let w;for(w=0;w<p.length;w+=1){const k=yv(h,p,w);d[w]?d[w].p(k,v):(d[w]=kv(k),d[w].c(),d[w].m(e,u))}for(;w<d.length;w+=1)d[w].d(1);d.length=p.length}h[2]?g?(g.p(h,v),v&4&&m(g,1)):(g=Cv(h),g.c(),m(g,1),g.m(e,null)):g&&(x(),_(g,1,1,()=>{g=null}),ee()),(!c||v&1&&f!==(f="spectrum-InLineAlert spectrum-InLineAlert--"+h[0]+" svelte-1ofhl9j"))&&y(e,"class",f)},i(h){c||(m(g),c=!0)},o(h){_(g),c=!1},d(h){h&&b(e),mt(d,h),g&&g.d()}}}function Pj(r){switch(r){case"error":case"negative":return"Alert";case"success":return"CheckmarkCircle";case"help":return"Help";default:return"Info"}}function Nj(r,e,t){let n,i,{type:l="info"}=e,{header:s=""}=e,{message:o=""}=e,{onConfirm:a=void 0}=e;return r.$$set=u=>{"type"in u&&t(0,l=u.type),"header"in u&&t(1,s=u.header),"message"in u&&t(5,o=u.message),"onConfirm"in u&&t(2,a=u.onConfirm)},r.$$.update=()=>{r.$$.dirty&1&&t(4,n=Pj(l)),r.$$.dirty&32&&t(3,i=o.split(`
|
|
378
378
|
`))},[l,s,a,i,n,o]}class cm extends se{constructor(e){super();oe(this,e,Nj,Lj,ie,{type:0,header:1,message:5,onConfirm:2})}}function Sv(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k;const I=r[8].default,T=bt(I,r,r[7],null);let E=r[3]&&r[4]&&Av(r);return{c(){e=D("div"),t=me("svg"),n=me("use"),s=R(),o=D("div"),a=D("div"),T&&T.c(),u=R(),E&&E.c(),f=R(),c=D("div"),p=D("button"),d=D("div"),d.innerHTML='<svg class="spectrum-ClearButton-icon spectrum-Icon spectrum-UIIcon-Cross100" focusable="false" aria-hidden="true"><use xlink:href="#spectrum-css-icon-Cross100"></use></svg>',Wt(n,"xlink:href",i="#spectrum-icon-18-"+r[1]),y(t,"class",l="spectrum-Icon spectrum-Icon--size"+r[2]+" spectrum-Toast-typeIcon svelte-5w5398"),y(t,"focusable","false"),y(t,"aria-hidden","true"),y(a,"class","spectrum-Toast-content"),y(o,"class","spectrum-Toast-body"),y(d,"class","spectrum-ClearButton-fill"),y(p,"class",g="spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--size"+r[2]+" svelte-5w5398"),y(c,"class","spectrum-Toast-buttons"),y(e,"class",h="spectrum-Toast spectrum-Toast--"+r[0]+" svelte-5w5398")},m(L,M){$(L,e,M),P(e,t),P(t,n),P(e,s),P(e,o),P(o,a),T&&T.m(a,null),P(o,u),E&&E.m(o,null),P(e,f),P(e,c),P(c,p),P(p,d),v=!0,w||(k=Le(p,"click",r[6]),w=!0)},p(L,M){(!v||M&2&&i!==(i="#spectrum-icon-18-"+L[1]))&&Wt(n,"xlink:href",i),(!v||M&4&&l!==(l="spectrum-Icon spectrum-Icon--size"+L[2]+" spectrum-Toast-typeIcon svelte-5w5398"))&&y(t,"class",l),T&&T.p&&(!v||M&128)&&vt(T,I,L,L[7],v?yt(I,L[7],M,null):wt(L[7]),null),L[3]&&L[4]?E?E.p(L,M):(E=Av(L),E.c(),E.m(o,null)):E&&(E.d(1),E=null),(!v||M&4&&g!==(g="spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--size"+L[2]+" svelte-5w5398"))&&y(p,"class",g),(!v||M&1&&h!==(h="spectrum-Toast spectrum-Toast--"+L[0]+" svelte-5w5398"))&&y(e,"class",h)},i(L){v||(m(T,L),v=!0)},o(L){_(T,L),v=!1},d(L){L&&b(e),T&&T.d(L),E&&E.d(),w=!1,k()}}}function Av(r){let e,t,n,i,l;return{c(){e=D("button"),t=D("span"),n=F(r[3]),y(t,"class","spectrum-Button-label"),y(e,"class","spectrum-Button spectrum-Button--sizeM spectrum-Button--overBackground spectrum-Button--quiet")},m(s,o){$(s,e,o),P(e,t),P(t,n),i||(l=Le(e,"click",function(){ft(r[4])&&r[4].apply(this,arguments)}),i=!0)},p(s,o){r=s,o&8&&Ce(n,r[3])},d(s){s&&b(e),i=!1,l()}}}function Rj(r){let e,t,n=r[5]&&Sv(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[5]?n?(n.p(i,l),l&32&&m(n,1)):(n=Sv(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function Mj(r,e,t){let{$$slots:n={},$$scope:i}=e,l=_t(),{type:s="info"}=e,{icon:o="Info"}=e,{size:a="S"}=e,{extraButtonText:u}=e,{extraButtonAction:f}=e,c=!0;function p(){t(5,c=!1),l("change")}return r.$$set=d=>{"type"in d&&t(0,s=d.type),"icon"in d&&t(1,o=d.icon),"size"in d&&t(2,a=d.size),"extraButtonText"in d&&t(3,u=d.extraButtonText),"extraButtonAction"in d&&t(4,f=d.extraButtonAction),"$$scope"in d&&t(7,i=d.$$scope)},[s,o,a,u,f,c,p,i,n]}class pm extends se{constructor(e){super();oe(this,e,Mj,Rj,ie,{type:0,icon:1,size:2,extraButtonText:3,extraButtonAction:4})}}function Dj(){const e=fn({}),t=async(i={message,type,extraButtonText,extraButtonAction,onChange})=>{e.update(l=>Ae(Ae({},l),i))},n=async()=>{await t({message:"Some systems are experiencing issues",type:"negative",extraButtonText:"View Status",extraButtonAction:()=>window.open("https://status.budibase.com/")})};return{subscribe:e.subscribe,showStatus:n}}const Ov=Dj();function Ev(r){let e,t,n,i;return t=new pm({props:{type:r[0].type,extraButtonText:r[0].extraButtonText,extraButtonAction:r[0].extraButtonAction,$$slots:{default:[jj]},$$scope:{ctx:r}}}),t.$on("change",function(){ft(r[0].onChange)&&r[0].onChange.apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment)},m(l,s){$(l,e,s),S(t,e,null),i=!0},p(l,s){r=l;const o={};s&1&&(o.type=r[0].type),s&1&&(o.extraButtonText=r[0].extraButtonText),s&1&&(o.extraButtonAction=r[0].extraButtonAction),s&3&&(o.$$scope={dirty:s,ctx:r}),t.$set(o)},i(l){i||(m(t.$$.fragment,l),Kr(()=>{n||(n=zr(e,qr,{y:-30},!0)),n.run(1)}),i=!0)},o(l){_(t.$$.fragment,l),n||(n=zr(e,qr,{y:-30},!1)),n.run(0),i=!1},d(l){l&&b(e),A(t),l&&n&&n.end()}}}function jj(r){let e=r[0].message+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[0].message+"")&&Ce(t,e)},d(n){n&&b(t)}}}function Bj(r){let e,t,n=r[0].message&&Ev(r);return{c(){e=D("div"),n&&n.c(),y(e,"class","banner svelte-j1ssay")},m(i,l){$(i,e,l),n&&n.m(e,null),t=!0},p(i,l){i[0].message?n?(n.p(i,l),l&1&&m(n,1)):(n=Ev(i),n.c(),m(n,1),n.m(e,null)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){i&&b(e),n&&n.d()}}}function zj(r){let e,t;return e=new eo({props:{target:".banner-container",$$slots:{default:[Bj]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&3&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function qj(r,e,t){let n;return ae(r,Ov,i=>t(0,n=i)),[n]}class Uj extends se{constructor(e){super();oe(this,e,qj,zj,ie,{})}}function Fj(r){let e,t;return{c(){e=D("div"),t=D("textarea"),t.disabled=!0,y(t,"id",r[0]),y(e,"style",r[3]),y(e,"class","svelte-1gaj2sn"),le(e,"disabled",r[1])},m(n,i){$(n,e,i),P(e,t),r[9](t)},p(n,[i]){i&1&&y(t,"id",n[0]),i&8&&y(e,"style",n[3]),i&2&&le(e,"disabled",n[1])},i:Se,o:Se,d(n){n&&b(e),r[9](null)}}}function Vj(r,e,t){let n,{height:i=null}=e,{scroll:l=!0}=e,{easyMDEOptions:s=null}=e,{mde:o=null}=e,{id:a=null}=e,{fullScreenOffset:u=null}=e,{disabled:f=!1}=e,c;Pt(()=>(t(4,i=i||"200px"),t(5,o=new PA(Ae({element:c,spellChecker:!1,status:!1,unorderedListStyle:"-",maxHeight:l?i:void 0,minHeight:l?void 0:i},s))),()=>{o.toTextArea()}));const p=g=>{let h="";return h+=`--fullscreen-offset-x:${(g==null?void 0:g.x)||"0px"};`,h+=`--fullscreen-offset-y:${(g==null?void 0:g.y)||"0px"};`,h};function d(g){K[g?"unshift":"push"](()=>{c=g,t(2,c)})}return r.$$set=g=>{"height"in g&&t(4,i=g.height),"scroll"in g&&t(6,l=g.scroll),"easyMDEOptions"in g&&t(7,s=g.easyMDEOptions),"mde"in g&&t(5,o=g.mde),"id"in g&&t(0,a=g.id),"fullScreenOffset"in g&&t(8,u=g.fullScreenOffset),"disabled"in g&&t(1,f=g.disabled)},r.$$.update=()=>{r.$$.dirty&256&&t(3,n=p(u))},[a,f,c,n,i,o,l,s,u,d]}class Hj extends se{constructor(e){super();oe(this,e,Vj,Fj,ie,{height:4,scroll:6,easyMDEOptions:7,mde:5,id:0,fullScreenOffset:8,disabled:1})}}function Tv(r){let e,t,n;function i(s){r[8](s)}let l={scroll:!0,height:r[1],id:r[3],fullScreenOffset:r[4],disabled:r[5],easyMDEOptions:Ae({initialValue:r[0],placeholder:r[2]},r[6])};return r[7]!==void 0&&(l.mde=r[7]),e=new Hj({props:l}),K.push(()=>ce(e,"mde",i)),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.height=s[1]),o&8&&(a.id=s[3]),o&16&&(a.fullScreenOffset=s[4]),o&32&&(a.disabled=s[5]),o&69&&(a.easyMDEOptions=Ae({initialValue:s[0],placeholder:s[2]},s[6])),!t&&o&128&&(t=!0,a.mde=s[7],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function Wj(r){let e=r[1],t,n,i=Tv(r);return{c(){i.c(),t=Oe()},m(l,s){i.m(l,s),$(l,t,s),n=!0},p(l,[s]){s&2&&ie(e,e=l[1])?(x(),_(i,1,1,Se),ee(),i=Tv(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 Gj(r,e,t){let{value:n=null}=e,{height:i=null}=e,{placeholder:l=null}=e,{id:s=null}=e,{fullScreenOffset:o=0}=e,{disabled:a=!1}=e,{easyMDEOptions:u}=e;const f=_t();let c,p;const d=k=>{p&&k!==c&&p.value(k)},v=((k,I)=>{let T;return()=>{clearTimeout(T),T=setTimeout(k,I)}})(()=>{c=p.value(),f("change",c)},250);function w(k){p=k,t(7,p)}return r.$$set=k=>{"value"in k&&t(0,n=k.value),"height"in k&&t(1,i=k.height),"placeholder"in k&&t(2,l=k.placeholder),"id"in k&&t(3,s=k.id),"fullScreenOffset"in k&&t(4,o=k.fullScreenOffset),"disabled"in k&&t(5,a=k.disabled),"easyMDEOptions"in k&&t(6,u=k.easyMDEOptions)},r.$$.update=()=>{r.$$.dirty&1&&d(n),r.$$.dirty&128&&(p==null||p.codemirror.on("change",v))},[n,i,l,s,o,a,u,p,w]}class Yj extends se{constructor(e){super();oe(this,e,Gj,Wj,ie,{value:0,height:1,placeholder:2,id:3,fullScreenOffset:4,disabled:5,easyMDEOptions:6})}}function Jj(r){let e,t,n;return t=new Yj({props:{value:r[0],placeholder:r[1],height:r[4],id:r[5],fullScreenOffset:r[6],disabled:r[2],easyMDEOptions:r[7]}}),t.$on("change",r[8]),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","svelte-rs8sig"),le(e,"error",r[3])},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.value=i[0]),l&2&&(s.placeholder=i[1]),l&16&&(s.height=i[4]),l&32&&(s.id=i[5]),l&64&&(s.fullScreenOffset=i[6]),l&4&&(s.disabled=i[2]),l&128&&(s.easyMDEOptions=i[7]),t.$set(s),l&8&&le(e,"error",i[3])},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function Xj(r,e,t){let{value:n=""}=e,{placeholder:i=null}=e,{disabled:l=!1}=e,{error:s=null}=e,{height:o=null}=e,{id:a=null}=e,{fullScreenOffset:u=null}=e,{easyMDEOptions:f=null}=e;function c(p){dt.call(this,r,p)}return r.$$set=p=>{"value"in p&&t(0,n=p.value),"placeholder"in p&&t(1,i=p.placeholder),"disabled"in p&&t(2,l=p.disabled),"error"in p&&t(3,s=p.error),"height"in p&&t(4,o=p.height),"id"in p&&t(5,a=p.id),"fullScreenOffset"in p&&t(6,u=p.fullScreenOffset),"easyMDEOptions"in p&&t(7,f=p.easyMDEOptions)},[n,i,l,s,o,a,u,f,c]}class Qj extends se{constructor(e){super();oe(this,e,Xj,Jj,ie,{value:0,placeholder:1,disabled:2,error:3,height:4,id:5,fullScreenOffset:6,easyMDEOptions:7})}}function Kj(r){let e,t;return e=new Qj({props:{error:r[5],disabled:r[4],value:r[0],placeholder:r[3],height:r[6],id:r[7],fullScreenOffset:r[8],easyMDEOptions:r[9]}}),e.$on("change",r[10]),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.error=n[5]),i&16&&(l.disabled=n[4]),i&1&&(l.value=n[0]),i&8&&(l.placeholder=n[3]),i&64&&(l.height=n[6]),i&128&&(l.id=n[7]),i&256&&(l.fullScreenOffset=n[8]),i&512&&(l.easyMDEOptions=n[9]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Zj(r){let e,t;return e=new ei({props:{label:r[1],labelPosition:r[2],error:r[5],$$slots:{default:[Kj]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&2&&(l.label=n[1]),i&4&&(l.labelPosition=n[2]),i&32&&(l.error=n[5]),i&5113&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function xj(r,e,t){let{value:n=null}=e,{label:i=null}=e,{labelPosition:l="above"}=e,{placeholder:s=null}=e,{disabled:o=!1}=e,{error:a=null}=e,{height:u=null}=e,{id:f=null}=e,{fullScreenOffset:c=null}=e,{easyMDEOptions:p=null}=e;const d=_t(),g=h=>{t(0,n=h.detail),d("change",h.detail)};return r.$$set=h=>{"value"in h&&t(0,n=h.value),"label"in h&&t(1,i=h.label),"labelPosition"in h&&t(2,l=h.labelPosition),"placeholder"in h&&t(3,s=h.placeholder),"disabled"in h&&t(4,o=h.disabled),"error"in h&&t(5,a=h.error),"height"in h&&t(6,u=h.height),"id"in h&&t(7,f=h.id),"fullScreenOffset"in h&&t(8,c=h.fullScreenOffset),"easyMDEOptions"in h&&t(9,p=h.easyMDEOptions)},[n,i,l,s,o,a,u,f,c,p,g]}class eB extends se{constructor(e){super();oe(this,e,xj,Zj,ie,{value:0,label:1,labelPosition:2,placeholder:3,disabled:4,error:5,height:6,id:7,fullScreenOffset:8,easyMDEOptions:9})}}function tB(r){let e,t;return{c(){e=D("div"),t=F(r[0]),y(e,"class","bold svelte-9amtlb")},m(n,i){$(n,e,i),P(e,t)},p(n,[i]){i&1&&Ce(t,n[0])},i:Se,o:Se,d(n){n&&b(e)}}}function nB(r,e,t){let{value:n}=e;return r.$$set=i=>{"value"in i&&t(0,n=i.value)},[n]}class rB extends se{constructor(e){super();oe(this,e,nB,tB,ie,{value:0})}}function iB(r){let e,t;return{c(){e=D("code"),t=F(r[0]),y(e,"class","svelte-e82i3")},m(n,i){$(n,e,i),P(e,t)},p(n,[i]){i&1&&Ce(t,n[0])},i:Se,o:Se,d(n){n&&b(e)}}}function lB(r,e,t){let{value:n}=e;return r.$$set=i=>{"value"in i&&t(0,n=i.value)},[n]}class sB extends se{constructor(e){super();oe(this,e,lB,iB,ie,{value:0})}}function oB(r){let e,t,n;const i=r[3].default,l=bt(i,r,r[2],null);return{c(){e=D("p"),l&&l.c(),y(e,"class",t="spectrum-Detail spectrum-Detail--size"+r[0]+" svelte-129iykg"),le(e,"spectrum-Detail--serif",r[1])},m(s,o){$(s,e,o),l&&l.m(e,null),n=!0},p(s,[o]){l&&l.p&&(!n||o&4)&&vt(l,i,s,s[2],n?yt(i,s[2],o,null):wt(s[2]),null),(!n||o&1&&t!==(t="spectrum-Detail spectrum-Detail--size"+s[0]+" svelte-129iykg"))&&y(e,"class",t),o&3&&le(e,"spectrum-Detail--serif",s[1])},i(s){n||(m(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function aB(r,e,t){let{$$slots:n={},$$scope:i}=e,{size:l="M"}=e,{serif:s=!1}=e;return r.$$set=o=>{"size"in o&&t(0,l=o.size),"serif"in o&&t(1,s=o.serif),"$$scope"in o&&t(2,i=o.$$scope)},[l,s,i,n]}class oi extends se{constructor(e){super();oe(this,e,aB,oB,ie,{size:0,serif:1})}}const Pr={Equals:{value:"equal",label:"Equals"},NotEquals:{value:"notEqual",label:"Not equals"},Empty:{value:"empty",label:"Is empty"},NotEmpty:{value:"notEmpty",label:"Is not empty"},StartsWith:{value:"string",label:"Starts with"},Like:{value:"fuzzy",label:"Like"},MoreThan:{value:"rangeLow",label:"More than"},LessThan:{value:"rangeHigh",label:"Less than"},Contains:{value:"equal",label:"Contains"},NotContains:{value:"notEqual",label:"Does Not Contain"},In:{value:"oneOf",label:"Is in"}},ja={Auth:"budibase:auth",CurrentApp:"budibase:currentapp",ReturnUrl:"budibase:returnurl"},uB="1",Iv={integer:{max:2147483647,min:-2147483648},int:{max:2147483647,min:-2147483648},smallint:{max:32767,min:-32768},mediumint:{max:8388607,min:-8388608}},fB=r=>({getAnalyticsStatus:async()=>await r.get({url:"/api/bbtel"})}),cB=r=>({fetchAppPackage:async e=>await r.get({url:`/api/applications/${e}/appPackage`}),saveAppMetadata:async({appId:e,metadata:t})=>await r.put({url:`/api/applications/${e}`,body:t}),deployAppChanges:async()=>await r.post({url:"/api/deploy"}),revertAppChanges:async e=>await r.post({url:`/api/dev/${e}/revert`}),updateAppClientVersion:async e=>await r.post({url:`/api/applications/${e}/client/update`}),revertAppClientVersion:async e=>await r.post({url:`/api/applications/${e}/client/revert`}),getAppDeployments:async()=>await r.get({url:"/api/deployments"}),createApp:async e=>await r.post({url:"/api/applications",body:e,json:!1}),importApps:async e=>await r.post({url:"/api/cloud/import",body:e,json:!1}),unpublishApp:async e=>await r.delete({url:`/api/applications/${e}?unpublish=1`}),deleteApp:async e=>await r.delete({url:`/api/applications/${e}`}),releaseAppLock:async e=>await r.delete({url:`/api/dev/${e}/lock`}),syncApp:async e=>await r.post({url:`/api/applications/${e}/sync`}),getApps:async()=>await r.get({url:"/api/applications?status=all"}),fetchComponentLibDefinitions:async e=>await r.get({url:`/api/${e}/components/definitions`})}),pB=r=>{const e=async({datasourceId:t,bucket:n,key:i})=>await r.post({url:`/api/attachments/${t}/url`,body:{bucket:n,key:i}});return{getSignedDatasourceURL:e,uploadAttachment:async({data:t,tableId:n})=>await r.post({url:`/api/attachments/${n}/upload`,body:t,json:!1}),uploadBuilderAttachment:async t=>await r.post({url:"/api/attachments/process",body:t,json:!1}),externalUpload:async({datasourceId:t,bucket:n,key:i,data:l})=>{console.log(r);const{signedUrl:s,publicUrl:o}=await e({datasourceId:t,bucket:n,key:i});return await r.put({url:s,body:l,json:!1,external:!0}),{publicUrl:o}}}},dB=r=>({logIn:async({tenantId:e,username:t,password:n})=>await r.post({url:`/api/global/auth/${e}/login`,body:{username:t,password:n}}),logOut:async()=>await r.post({url:"/api/global/auth/logout"}),setInitInfo:async e=>await r.post({url:"/api/global/auth/init",body:e}),getInitInfo:async()=>await r.get({url:"/api/global/auth/init"}),requestForgotPassword:async({tenantId:e,email:t})=>await r.post({url:`/api/global/auth/${e}/reset`,body:{email:t}}),resetPassword:async({tenantId:e,password:t,resetCode:n})=>await r.post({url:`/api/global/auth/${e}/reset/update`,body:{password:t,resetCode:n}})}),mB=r=>({triggerAutomation:async({automationId:e,fields:t})=>await r.post({url:`/api/automations/${e}/trigger`,body:{fields:t}}),testAutomation:async({automationId:e,testData:t})=>await r.post({url:`/api/automations/${e}/test`,body:t}),getAutomations:async()=>await r.get({url:"/api/automations"}),getAutomationDefinitions:async()=>await r.get({url:"/api/automations/definitions/list"}),createAutomation:async e=>await r.post({url:"/api/automations",body:e}),updateAutomation:async e=>await r.put({url:"/api/automations",body:e}),deleteAutomation:async({automationId:e,automationRev:t})=>await r.delete({url:`/api/automations/${e}/${t}`})}),gB=r=>({saveConfig:async e=>await r.post({url:"/api/global/configs",body:e}),getConfig:async e=>await r.get({url:`/api/global/configs/${e}`}),deleteConfig:async({id:e,rev:t})=>await r.delete({url:`/api/global/configs/${e}/${t}`}),getTenantConfig:async e=>await r.get({url:`/api/global/configs/public?tenantId=${e}`}),getOIDCConfig:async e=>await r.get({url:`/api/global/configs/public/oidc?tenantId=${e}`}),getChecklist:async e=>await r.get({url:`/api/global/configs/checklist?tenantId=${e}`}),uploadLogo:async e=>await r.post({url:"/api/global/configs/upload/settings/logoUrl",body:e,json:!1}),uploadOIDCLogo:async({name:e,data:t})=>await r.post({url:`/api/global/configs/upload/logos_oidc/${e}`,body:t,json:!1}),getOIDCLogos:async()=>await r.get({url:"/api/global/configs/logos_oidc"})}),_B=r=>({getDatasources:async()=>await r.get({url:"/api/datasources"}),buildDatasourceSchema:async e=>await r.post({url:`/api/datasources/${e}/schema`}),createDatasource:async({datasource:e,fetchSchema:t})=>await r.post({url:"/api/datasources",body:{datasource:e,fetchSchema:t}}),updateDatasource:async e=>await r.put({url:`/api/datasources/${e._id}`,body:e}),deleteDatasource:async({datasourceId:e,datasourceRev:t})=>await r.delete({url:`/api/datasources/${e}/${t}`})}),hB=r=>({getFlags:async()=>await r.get({url:"/api/users/flags"}),updateFlag:async({flag:e,value:t})=>await r.post({url:"/api/users/flags",body:{flag:e,value:t}}),toggleUiFeature:async({value:e})=>await r.post({url:`/api/beta/${e}`})}),$B=r=>({getHostingURLs:async()=>await r.get({url:"/api/hosting/urls"}),getDeployedApps:async()=>await r.get({url:"/api/hosting/apps"})}),bB=r=>({saveLayout:async e=>await r.post({url:"/api/layouts",body:e}),deleteLayout:async({layoutId:e,layoutRev:t})=>await r.delete({url:`/api/layouts/${e}/${t}`})}),vB=r=>({checkImportComplete:async()=>await r.get({url:"/api/cloud/import/complete"}),getEnvironment:async()=>await r.get({url:"/api/system/environment"}),getSystemStatus:async()=>await r.get({url:"/api/system/status"}),getIntegrations:async()=>await r.get({url:"/api/integrations"}),getBudibaseVersion:async()=>(await r.get({url:"/api/dev/version"})).version,getBasePermissions:async()=>await r.get({url:"/api/permission/builtin"}),checkBetaAccess:async e=>await r.get({url:`/api/beta/access?email=${e}`,external:!0})}),wB=r=>({getPermissionForResource:async e=>await r.get({url:`/api/permission/${e}`}),updatePermissionForResource:async({resourceId:e,roleId:t,level:n})=>await r.post({url:`/api/permission/${t}/${e}/${n}`})}),yB=r=>({executeQuery:async({queryId:e,pagination:t,parameters:n})=>await r.post({url:`/api/v2/queries/${e}`,body:{parameters:n,pagination:t}}),fetchQueryDefinition:async e=>await r.get({url:`/api/queries/${e}`,cache:!0}),getQueries:async()=>await r.get({url:"/api/queries"}),saveQuery:async e=>await r.post({url:"/api/queries",body:e}),deleteQuery:async({queryId:e,queryRev:t})=>await r.delete({url:`/api/queries/${e}/${t}`}),importQueries:async({datasourceId:e,data:t})=>await r.post({url:"/api/queries/import",body:{datasourceId:e,data:t}}),previewQuery:async e=>await r.post({url:"/api/queries/preview",body:e})}),kB=r=>({fetchRelationshipData:async({tableId:e,rowId:t,fieldName:n})=>{if(!e||!t)return[];const i=await r.get({url:`/api/${e}/${t}/enrich`});return n?i[n]||[]:i||[]}}),CB=r=>({deleteRole:async({roleId:e,roleRev:t})=>await r.delete({url:`/api/roles/${e}/${t}`}),saveRole:async e=>await r.post({url:"/api/roles",body:e}),getRoles:async()=>await r.get({url:"/api/roles"})}),SB=r=>({fetchClientAppRoutes:async()=>await r.get({url:"/api/routing/client"}),fetchAppRoutes:async()=>await r.get({url:"/api/routing"})}),AB=r=>({fetchRow:async({tableId:e,rowId:t})=>{if(!e||!t)return null;const n=await r.get({url:`/api/${e}/rows/${t}`});return(await r.enrichRows([n],e))[0]},saveRow:async e=>{if(!!(e==null?void 0:e.tableId))return await r.post({url:`/api/${e.tableId}/rows`,body:e})},deleteRow:async({tableId:e,rowId:t,revId:n})=>{if(!(!e||!t))return await r.delete({url:`/api/${e}/rows`,body:{_id:t,_rev:n}})},deleteRows:async({tableId:e,rows:t})=>await r.delete({url:`/api/${e}/rows`,body:{rows:t}}),exportRows:async({tableId:e,rows:t,format:n,columns:i})=>await r.post({url:`/api/${e}/rows/exportRows?format=${n}`,body:{rows:t,columns:i},parseResponse:async l=>await l.text()})}),OB=r=>({saveScreen:async e=>await r.post({url:"/api/screens",body:e}),deleteScreen:async({screenId:e,screenRev:t})=>await r.delete({url:`/api/screens/${e}/${t}`})}),EB=r=>({fetchTableDefinition:async e=>await r.get({url:`/api/tables/${e}`,cache:!0}),fetchTableData:async e=>await r.get({url:`/api/${e}/rows`}),searchTable:async({tableId:e,query:t,bookmark:n,limit:i,sort:l,sortOrder:s,sortType:o,paginate:a})=>!e||!t?{rows:[]}:await r.post({url:`/api/${e}/search`,body:{query:t,bookmark:n,limit:i,sort:l,sortOrder:s,sortType:o,paginate:a}}),importTableData:async({tableId:e,data:t})=>await r.post({url:`/api/tables/${e}/import`,body:{dataImport:t}}),validateTableCSV:async({tableId:e,csvString:t,schema:n})=>await r.post({url:"/api/tables/csv/validate",body:{csvString:t,schema:n,tableId:e}}),getTables:async()=>await r.get({url:"/api/tables"}),saveTable:async e=>await r.post({url:"/api/tables",body:e}),deleteTable:async({tableId:e,tableRev:t})=>await r.delete({url:`/api/tables/${e}/${t}`})}),TB=r=>({getEmailTemplateDefinitions:async()=>await r.get({url:"/api/global/template/definitions"}),getEmailTemplates:async()=>await r.get({url:"/api/global/template/email"}),saveEmailTemplate:async e=>await r.post({url:"/api/global/template",body:e}),getAppTemplates:async()=>await r.get({url:"/api/templates"})}),IB=r=>({getUsers:async()=>await r.get({url:"/api/global/users"}),searchUsers:async({page:e,search:t}={})=>{const n={};return e&&(n.page=e),t&&(n.search=t),await r.post({url:"/api/global/users/search",body:n})},getUser:async e=>await r.get({url:`/api/global/users/${e}`}),createAppUser:async e=>await r.post({url:"/api/users/metadata",body:e}),updateOwnMetadata:async e=>await r.post({url:"/api/users/metadata/self",body:e}),createAdminUser:async e=>await r.post({url:"/api/global/users/init",body:e}),saveUser:async e=>await r.post({url:"/api/global/users",body:e}),deleteUser:async e=>await r.delete({url:`/api/global/users/${e}`}),inviteUser:async({email:e,builder:t,admin:n})=>await r.post({url:"/api/global/users/invite",body:{email:e,userInfo:{admin:n?{global:!0}:void 0,builder:t?{global:!0}:void 0}}}),acceptInvite:async({inviteCode:e,password:t})=>await r.post({url:"/api/global/users/invite/accept",body:{inviteCode:e,password:t}})}),LB=r=>({generateAPIKey:async()=>{const e=await r.post({url:"/api/global/self/api_key"});return e==null?void 0:e.apiKey},fetchDeveloperInfo:async()=>r.get({url:"/api/global/self/api_key"}),fetchSelf:async()=>await r.get({url:"/api/self"}),fetchBuilderSelf:async()=>await r.get({url:"/api/global/self"}),updateSelf:async e=>await r.post({url:"/api/global/self",body:e})}),PB=r=>({fetchViewData:async({name:e,field:t,groupBy:n,calculation:i})=>{const l=new URLSearchParams;i&&(l.set("field",t),l.set("calculation",i)),n&&l.set("group",n);const s=t?`/api/views/${e}?${l}`:`/api/views/${e}`;return await r.get({url:s})},exportView:async({viewName:e,format:t})=>{const n=encodeURIComponent(e);return await r.get({url:`/api/views/export?view=${n}&format=${t}`,parseResponse:async i=>await i.text()})},saveView:async e=>await r.post({url:"/api/views",body:e}),deleteView:async e=>await r.delete({url:`/api/views/${e}`})}),NB=r=>({activateLicenseKey:async e=>r.post({url:"/api/global/license/activate",body:e}),getLicenseInfo:async()=>r.get({url:"/api/global/license/info"}),refreshLicense:async()=>r.post({url:"/api/global/license/refresh"}),getQuotaUsage:async()=>r.get({url:"/api/global/license/usage"})}),RB={enableCaching:!1,attachHeaders:null,onError:null},MB=r=>{r=Ae(Ae({},RB),r);const e=async(a,u)=>{let f=a.statusText,c=null;try{c=await a.json(),(c==null?void 0:c.message)?f=c.message:(c==null?void 0:c.error)&&(f=c.error)}catch{}return{message:f,json:c,status:a.status,url:a.url,method:u,handled:!0}},t=(a,u)=>({message:a,json:null,status:400,url:u==null?void 0:u.url,method:u==null?void 0:u.method,handled:!0}),n=async({method:a,url:u,body:f,json:c=!0,external:p=!1,parseResponse:d})=>{c=c&&a!=="GET";let g={Accept:"application/json"};p||(g["x-budibase-api-version"]=uB),c&&(g["Content-Type"]="application/json"),(r==null?void 0:r.attachHeaders)&&r.attachHeaders(g);let h=f;if(c)try{h=JSON.stringify(f)}catch{throw t("Invalid JSON body",{url:u,method:a})}let v;try{v=await fetch(u,{method:a,headers:g,body:h,credentials:"same-origin"})}catch{throw t("Failed to send request",{url:u,method:a})}if(v.status>=200&&v.status<400)try{return d?await d(v):await v.json()}catch{return null}else throw await e(v,a)};let i={};const l=async a=>{const u=a.url;return u?(i[u]||(i[u]=n(a),i[u]=await i[u]),await i[u]):null},s=a=>async u=>{try{let{url:f,cache:c=!1,external:p=!1}=u;p||(f=`/${f}`.replace("//","/"));const g=c&&(r==null?void 0:r.enableCaching)?l:n,h=it(Ae({},u),{method:a,url:f});return await g(h)}catch(f){throw(r==null?void 0:r.onError)&&r.onError(f),f}};let o={post:s("POST"),get:s("GET"),patch:s("PATCH"),delete:s("DELETE"),put:s("PUT"),error:a=>{throw t(a)}};return Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae(Ae({},o),fB(o)),cB(o)),pB(o)),dB(o)),mB(o)),gB(o)),_B(o)),hB(o)),$B(o)),bB(o)),vB(o)),wB(o)),yB(o)),kB(o)),CB(o)),SB(o)),AB(o)),OB(o)),EB(o)),TB(o)),IB(o)),PB(o)),LB(o)),NB(o))},Ba=r=>{const e=Pr,t=[e.Equals,e.NotEquals,e.StartsWith,e.Like,e.Empty,e.NotEmpty,e.In],n=[e.Equals,e.NotEquals,e.MoreThan,e.LessThan,e.Empty,e.NotEmpty,e.In];return r==="string"?t:r==="number"?n:r==="options"?[e.Equals,e.NotEquals,e.Empty,e.NotEmpty]:r==="array"?[e.Contains,e.NotContains,e.Empty,e.NotEmpty]:r==="boolean"?[e.Equals,e.NotEquals,e.Empty,e.NotEmpty]:r==="longform"?t:r==="datetime"?n:r==="formula"?t.concat([e.MoreThan,e.LessThan]):[]},DB=[Pr.StartsWith.value,Pr.Like.value,Pr.Equals.value,Pr.NotEquals.value,Pr.Contains.value,Pr.NotContains.value],jB=r=>{if(!r)return r;for(let e of DB)if(!!r[e])for(let[t,n]of Object.entries(r[e]))(!n||n==="")&&delete r[e][t];return r},Lv=r=>{let e={string:{},fuzzy:{},range:{},equal:{},notEqual:{},empty:{},notEmpty:{},contains:{},notContains:{},oneOf:{}};return Array.isArray(r)&&r.forEach(t=>{var a,u,f;let{operator:n,field:i,type:l,value:s,externalType:o}=t;if(l==="datetime"&&s&&(s=new Date(s).toISOString()),l==="number"&&!Array.isArray(s)&&(n==="oneOf"?s=s.split(",").map(c=>parseFloat(c)):s=parseFloat(s)),l==="boolean"&&(s=((a=`${s}`)==null?void 0:a.toLowerCase())==="true"),n.startsWith("range")){const c=((u=Iv[o])==null?void 0:u.min)||Number.MIN_SAFE_INTEGER,p=((f=Iv[o])==null?void 0:f.max)||Number.MAX_SAFE_INTEGER;e.range[i]||(e.range[i]={low:l==="number"?c:"0000-00-00T00:00:00.000Z",high:l==="number"?p:"9999-00-00T00:00:00.000Z"}),n==="rangeLow"&&s!=null&&s!==""?e.range[i].low=s:n==="rangeHigh"&&s!=null&&s!==""&&(e.range[i].high=s)}else e[n]&&(l==="boolean"?n==="equal"&&s===!1?e.notEqual[i]=!0:n==="notEqual"&&s===!1?e.equal[i]=!0:e[n][i]=s:e[n][i]=s)}),e},BB=(r,e)=>{if(!r||!Array.isArray(r))return[];if(!e)return r;e=jB(e);const t=(p,d)=>g=>{const h=Object.entries(e[p]||{});for(let v=0;v<h.length;v++){const[w,k]=h[v],I=Ep(g,w);if(d(I,k))return!1}return!0},n=t("string",(p,d)=>!p||!(p==null?void 0:p.toLowerCase().startsWith(d==null?void 0:d.toLowerCase()))),i=t("fuzzy",(p,d)=>!p||!(p==null?void 0:p.toLowerCase().startsWith(d==null?void 0:d.toLowerCase()))),l=t("range",(p,d)=>!p||p<d.low||p>d.high),s=t("equal",(p,d)=>d!=null&&d!==""&&p!==d),o=t("notEqual",(p,d)=>d!=null&&d!==""&&p===d),a=t("empty",p=>p!=null&&p!==""),u=t("notEmpty",p=>p==null||p===""),f=t("oneOf",(p,d)=>(typeof d=="string"&&(d=d.split(","),typeof p=="number"&&(d=d.map(g=>parseFloat(g)))),!(d==null?void 0:d.includes(p)))),c=p=>n(p)&&i(p)&&l(p)&&s(p)&&o(p)&&a(p)&&u(p)&&f(p);return r.filter(c)},zB=(r,e,t,n="string")=>{if(!e||!t||!n)return r;const i=n==="string"?l=>`${l}`:l=>parseFloat(l);return r.slice().sort((l,s)=>{const o=i(l[e]),a=i(s[e]);return t==="Descending"?o>a?-1:1:o>a?1:-1})},qB=(r,e)=>{const t=parseFloat(e);return isNaN(t)?r:r.slice(0,t)},Pv=(r,e)=>{let t=r,n=[];e.prefixKeys&&(n=e.prefixKeys.concat(["schema"])),n=n.concat(e.label.split(".").slice(2));for(let i=0;i<n.length;i++)t=t==null?void 0:t[n[i]],(t==null?void 0:t.schema)&&(t=t.schema);return dm(t,{squashObjects:!0,prefixKeys:n})},dm=(r,e)=>{if(!r)return null;e=Ae({squashObjects:!1,prefixKeys:null},e),r.schema?r=r.schema:r={value:r};const t=Nv(r,e.squashObjects);let n={};return t.forEach(({key:i,type:l})=>{n[i]={type:l,name:i,prefixKeys:e.prefixKeys}}),n},Nv=(r,e=!1)=>{if(!r||!Object.keys(r).length)return[];let t=[];return Object.keys(r).forEach(n=>{const i=r[n].type;if(i==="json"&&e){const l=Nv(r[n].schema,e);t=t.concat(l.map(s=>({key:`${n}.${s.key}`,type:s.type})))}else t.push({key:n,type:i==="array"?"jsonarray":i})}),t};class ko{constructor(e){Yo(this,"API",null);Yo(this,"featureStore",fn({supportsSearch:!1,supportsSort:!1,supportsPagination:!1}));Yo(this,"options",{datasource:null,limit:10,filter:null,query:null,sortColumn:null,sortOrder:"ascending",sortType:null,paginate:!0});Yo(this,"store",fn({rows:[],info:null,schema:null,loading:!1,loaded:!1,query:null,pageNumber:0,cursor:null,cursors:[]}));if(this.API=e==null?void 0:e.API,this.options=Ae(Ae({},this.options),e),!this.API)throw"An API client is required for fetching data";if(this.getData=this.getData.bind(this),this.getPage=this.getPage.bind(this),this.getInitialData=this.getInitialData.bind(this),this.determineFeatureFlags=this.determineFeatureFlags.bind(this),this.refresh=this.refresh.bind(this),this.update=this.update.bind(this),this.hasNextPage=this.hasNextPage.bind(this),this.hasPrevPage=this.hasPrevPage.bind(this),this.nextPage=this.nextPage.bind(this),this.prevPage=this.prevPage.bind(this),this.derivedStore=Pi([this.store,this.featureStore],([t,n])=>it(Ae(Ae({},t),n),{hasNextPage:this.hasNextPage(t),hasPrevPage:this.hasPrevPage(t)})),!this.options.datasource){this.store.update(t=>it(Ae({},t),{loaded:!0}));return}this.getInitialData()}get subscribe(){return this.derivedStore.subscribe}async getInitialData(){var f;const{datasource:e,filter:t,sortColumn:n,paginate:i}=this.options,l=await this.getDefinition(e),s=this.determineFeatureFlags(l);this.featureStore.set({supportsSearch:!!(s==null?void 0:s.supportsSearch),supportsSort:!!(s==null?void 0:s.supportsSort),supportsPagination:i&&!!(s==null?void 0:s.supportsPagination)});let o=this.getSchema(e,l);if(o=this.enrichSchema(o),!o)return;if(!this.options.sortType){let c="string";n&&(c=((f=o==null?void 0:o[n])==null?void 0:f.type)==="number"?"number":"string"),this.options.sortType=c}let a=this.options.query;a||(a=Lv(t)),this.store.update(c=>it(Ae({},c),{definition:l,schema:o,query:a,loading:!0}));const u=await this.getPage();this.store.update(c=>it(Ae({},c),{loading:!1,loaded:!0,pageNumber:0,rows:u.rows,info:u.info,cursors:i&&u.hasNextPage?[null,u.cursor]:[null]}))}async getPage(){const{sortColumn:e,sortOrder:t,sortType:n,limit:i}=this.options,{query:l}=xe(this.store),s=xe(this.featureStore);let{rows:o,info:a,hasNextPage:u,cursor:f}=await this.getData();return s.supportsSearch||(o=BB(o,l)),s.supportsSort||(o=zB(o,e,t,n)),s.supportsPagination||(o=qB(o,i)),{rows:o,info:a,hasNextPage:u,cursor:f}}async getData(){return{rows:[],info:null,hasNextPage:!1,cursor:null}}async getDefinition(e){if(!(e==null?void 0:e.tableId))return null;try{return await this.API.fetchTableDefinition(e.tableId)}catch{return null}}getSchema(e,t){return t==null?void 0:t.schema}enrichSchema(e){if(e==null)return null;let t={};Object.keys(e).forEach(i=>{const l=e[i];if((l==null?void 0:l.type)==="json"){const s=dm(l,{squashObjects:!0});Object.keys(s).forEach(o=>{t[`${i}.${o}`]={type:s[o].type,nestedJSON:!0}})}}),e=Ae(Ae({},e),t);let n={};return Object.entries(e).forEach(([i,l])=>{typeof l=="string"?n[i]={type:l,name:i}:n[i]=it(Ae({},l),{name:i})}),n}determineFeatureFlags(e){return{supportsSearch:!1,supportsSort:!1,supportsPagination:!1}}async update(e){let t=!1;const n=Object.entries(e||{});for(let[i,l]of n)if(JSON.stringify(l)!==JSON.stringify(this.options[i])){t=!0;break}!t||(this.options=Ae(Ae({},this.options),NA.cloneDeep(e)),await this.getInitialData())}async refresh(){if(xe(this.store).loading)return;this.store.update(n=>it(Ae({},n),{loading:!0}));const{rows:e,info:t}=await this.getPage();this.store.update(n=>it(Ae({},n),{rows:e,info:t,loading:!1}))}hasNextPage(e){return e.cursors[e.pageNumber+1]!=null}hasPrevPage(e){return e.pageNumber>0}async nextPage(){const e=xe(this.derivedStore);if(e.loading||!this.options.paginate||!e.hasNextPage)return;const t=e.cursors[e.pageNumber+1];this.store.update(o=>it(Ae({},o),{loading:!0,cursor:t,pageNumber:o.pageNumber+1}));const{rows:n,info:i,hasNextPage:l,cursor:s}=await this.getPage();this.store.update(o=>{let{cursors:a,pageNumber:u}=o;return l&&(a[u+1]=s),it(Ae({},o),{rows:n,info:i,cursors:a,loading:!1})})}async prevPage(){const e=xe(this.derivedStore);if(e.loading||!this.options.paginate||!e.hasPrevPage)return;const t=e.cursors[e.pageNumber-1];this.store.update(l=>it(Ae({},l),{loading:!0,cursor:t,pageNumber:l.pageNumber-1}));const{rows:n,info:i}=await this.getPage();this.store.update(l=>it(Ae({},l),{rows:n,info:i,loading:!1}))}}class Rv extends ko{determineFeatureFlags(){return{supportsSearch:!0,supportsSort:!0,supportsPagination:!0}}async getData(){var f;const{datasource:e,limit:t,sortColumn:n,sortOrder:i,sortType:l,paginate:s}=this.options,{tableId:o}=e,{cursor:a,query:u}=xe(this.store);try{const c=await this.API.searchTable({tableId:o,query:u,limit:t,sort:n,sortOrder:(f=i==null?void 0:i.toLowerCase())!=null?f:"ascending",sortType:l,paginate:s,bookmark:a});return{rows:(c==null?void 0:c.rows)||[],hasNextPage:(c==null?void 0:c.hasNextPage)||!1,cursor:(c==null?void 0:c.bookmark)||null}}catch{return{rows:[],hasNextPage:!1}}}}class UB extends ko{getSchema(e,t){var n,i;return(i=(n=t==null?void 0:t.views)==null?void 0:n[e.name])==null?void 0:i.schema}async getData(){const{datasource:e}=this.options;try{return{rows:await this.API.fetchViewData(e)||[]}}catch{return{rows:[]}}}}class FB extends ko{determineFeatureFlags(e){var n,i,l,s,o,a;return{supportsPagination:!!((i=(n=e==null?void 0:e.fields)==null?void 0:n.pagination)==null?void 0:i.type)&&!!((s=(l=e==null?void 0:e.fields)==null?void 0:l.pagination)==null?void 0:s.location)&&!!((a=(o=e==null?void 0:e.fields)==null?void 0:o.pagination)==null?void 0:a.pageParam)}}async getDefinition(e){if(!(e==null?void 0:e._id))return null;try{const t=await this.API.fetchQueryDefinition(e._id);return t.fields||(t.fields=e.fields),t}catch{return null}}async getData(){var f,c;const{datasource:e,limit:t,paginate:n}=this.options,{supportsPagination:i}=xe(this.featureStore),{cursor:l,definition:s}=xe(this.store),o=(c=(f=s==null?void 0:s.fields)==null?void 0:f.pagination)==null?void 0:c.type;let a=Tp((e==null?void 0:e.queryParams)||{});for(let d of(e==null?void 0:e.parameters)||{})a[d.name]||(a[d.name]=d.default);let u={queryId:e==null?void 0:e._id,parameters:a};if(n&&i){const d=o==="page"?parseInt(l||1):l;u.pagination={page:d,limit:t}}try{const p=await this.API.executeQuery(u),{data:g,pagination:h}=p,v=w_(p,["data","pagination"]);let w=null,k=!1;return n&&i&&(o==="page"?(w=u.pagination.page+1,k=(g==null?void 0:g.length)===t&&t>0):(w=h==null?void 0:h.cursor,k=w!=null)),{rows:g||[],info:v,cursor:w,hasNextPage:k}}catch{return{rows:[],hasNextPage:!1}}}}class VB extends ko{async getData(){const{datasource:e}=this.options;try{return{rows:await this.API.fetchRelationshipData({rowId:e==null?void 0:e.rowId,tableId:e==null?void 0:e.rowTableId,fieldName:e==null?void 0:e.fieldName})||[]}}catch{return{rows:[]}}}}class HB extends ko{async getDefinition(e){var t;return{schema:(t=e==null?void 0:e.value)==null?void 0:t.schema}}async getData(){var t;const{datasource:e}=this.options;return{rows:((t=e==null?void 0:e.value)==null?void 0:t.rows)||[],hasNextPage:!1,cursor:null}}}class Mv extends ko{async getDefinition(e){let t;return e.fieldType==="attachment"?t={url:{type:"string"},name:{type:"string"}}:e.fieldType==="array"&&(t={value:{type:"string"}}),{schema:t}}async getData(){const{datasource:e}=this.options,t=(e==null?void 0:e.value)||[];let n;return Array.isArray(t)&&t[0]&&typeof t[0]!="object"?n=t.map(i=>({value:i})):n=t,{rows:n||[],hasNextPage:!1,cursor:null}}}class WB extends Mv{async getDefinition(e){try{const t=await this.API.fetchTableDefinition(e.tableId);return{schema:Pv(t==null?void 0:t.schema,e)}}catch{return null}}}const GB={table:Rv,view:UB,query:FB,link:VB,provider:HB,field:Mv,jsonarray:WB},YB=({API:r,datasource:e,options:t})=>{const n=GB[e==null?void 0:e.type]||Rv;return new n(Ae({API:r,datasource:e},t))},JB=(r,e)=>{const t=fn(e,()=>{l();const s=({key:o})=>o===r&&l();return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)}),n=s=>{t.set(s),localStorage.setItem(r,JSON.stringify(s))},i=s=>n(s(xe(t))),l=()=>{const s=localStorage.getItem(r);if(s==null)n(e);else try{t.set(JSON.parse(s))}catch{n(e)}};return it(Ae({},t),{set:n,update:i})};function XB(r,e){Zf(r)&&mm(r),window.document.cookie=`${r}=${e}; Path=/;`}function Zf(r){const t=`; ${document.cookie}`.split(`; ${r}=`);if(t.length===2)return t[1].split(";").shift()}function mm(r){Zf(r)&&(document.cookie=`${r}=; Max-Age=-99999999; Path=/;`)}const Dv=r=>{let e;return async(...t)=>{e&&await e,e=r(...t),await e,e=null}},Ps=fn({}),Bt={STRING:{name:"Text",type:"string",constraints:{type:"string",length:{},presence:!1}},LONGFORM:{name:"Long Form Text",type:"longform",constraints:{type:"string",length:{},presence:!1}},OPTIONS:{name:"Options",type:"options",constraints:{type:"string",presence:!1,inclusion:[]}},ARRAY:{name:"Multi-select",type:"array",constraints:{type:"array",presence:!1,inclusion:[]}},NUMBER:{name:"Number",type:"number",constraints:{type:"number",presence:!1,numericality:{greaterThanOrEqualTo:"",lessThanOrEqualTo:""}}},BOOLEAN:{name:"Boolean",type:"boolean",constraints:{type:"boolean",presence:!1}},DATETIME:{name:"Date/Time",type:"datetime",constraints:{type:"string",length:{},presence:!1,datetime:{latest:"",earliest:""}}},ATTACHMENT:{name:"Attachment",type:"attachment",constraints:{type:"array",presence:!1}},LINK:{name:"Relationship",type:"link",constraints:{type:"array",presence:!1}},FORMULA:{name:"Formula",type:"formula",constraints:{}},JSON:{name:"JSON",type:"json",constraints:{type:"object",presence:!1}}},Ui={AUTO_ID:"autoID",CREATED_BY:"createdBy",CREATED_AT:"createdAt",UPDATED_BY:"updatedBy",UPDATED_AT:"updatedAt"},QB={AUTO_ID:"Auto ID",CREATED_BY:"Created By",CREATED_AT:"Created At",UPDATED_BY:"Updated By",UPDATED_AT:"Updated At"},gm={ADMIN:"ADMIN",POWER:"POWER",BASIC:"BASIC",PUBLIC:"PUBLIC",BUILDER:"BUILDER"};function KB(r){return r===Ui.CREATED_BY||r===Ui.UPDATED_BY}const Nr={MANY_TO_MANY:"many-to-many",ONE_TO_MANY:"one-to-many",MANY_TO_ONE:"many-to-one"},jv=[Bt.STRING,Bt.OPTIONS,Bt.LONGFORM],Bv=jv.map(r=>r.type),zv=[Bt.NUMBER,Bt.BOOLEAN],qv=zv.map(r=>r.type),Uv=[Bt.JSON,Bt.ARRAY],Fv=Uv.map(r=>r.type),Vv=[...Bv,...qv,...Fv],bn={POSTGRES:"POSTGRES",MONGODB:"MONGODB",COUCHDB:"COUCHDB",S3:"S3",MYSQL:"MYSQL",REST:"REST",DYNAMODB:"DYNAMODB",ELASTICSEARCH:"ELASTICSEARCH",SQL_SERVER:"SQL_SERVER",AIRTABLE:"AIRTABLE",ARANGODB:"ARANGODB",ORACLE:"ORACLE",INTERNAL:"INTERNAL",GOOGLE_SHEETS:"GOOGLE_SHEETS",FIRESTORE:"FIRESTORE",REDIS:"REDIS",SNOWFLAKE:"SNOWFLAKE"},za={[bn.POSTGRES]:"PostgreSQL",[bn.MONGODB]:"MongoDB",[bn.COUCHDB]:"CouchDB",[bn.S3]:"S3",[bn.MYSQL]:"MySQL",[bn.REST]:"REST",[bn.DYNAMODB]:"DynamoDB",[bn.ELASTICSEARCH]:"ElasticSearch",[bn.SQL_SERVER]:"SQL Server",[bn.AIRTABLE]:"Airtable",[bn.ARANGODB]:"ArangoDB",[bn.ORACLE]:"Oracle",[bn.INTERNAL]:"Internal",[bn.GOOGLE_SHEETS]:"Google Sheets",[bn.FIRESTORE]:"Firestore",[bn.REDIS]:"Redis",[bn.SNOWFLAKE]:"Snowflake"},Hv=[{label:"Text",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Datetime",value:"datetime"}],yi={NONE:"none",FORM:"form",ENCODED:"encoded",JSON:"json",TEXT:"text",XML:"xml"},xf=[{name:"none",value:"none"},{name:"form-data",value:"form"},{name:"x-www-form-encoded",value:"encoded"},{name:"raw (JSON)",value:"json"},{name:"raw (XML)",value:"xml"},{name:"raw (Text)",value:"text"}],ZB=[{label:"Page number based",value:"page"},{label:"Cursor based",value:"cursor"}],xB=[{label:"Query parameters",value:"query"},{label:"Request body",value:"body"}],ez=["link","attachment","formula","json","jsonarray"];function tz(){const r=fn({}),{subscribe:e,update:t,set:n}=r;async function i(){const o=await He.getTables();return t(a=>it(Ae({},a),{list:o})),o}async function l(o){o?(t(a=>it(Ae({},a),{selected:o,draft:Sn.cloneDeep(o)})),hr.unselect(),kn.unselect(),Zt.unselect()):t(a=>it(Ae({},a),{selected:{}}))}async function s(o){const a=Sn.cloneDeep(o),u=xe(r).list.filter(p=>p._id===o._id)[0],f=[];for(let p of Object.keys(a.schema)){if(f.indexOf(p.toLowerCase())!==-1){delete a.schema[p];continue}const d=a.schema[p],g=u==null?void 0:u.schema[p];g!=null&&(g==null?void 0:g.type)!==d.type&&Vv.indexOf(g==null?void 0:g.type)===-1&&(a.schema[p]=g),d.name&&d.name!==p&&(a.schema[d.name]=d,a._rename={old:p,updated:d.name},delete a.schema[p]),f.push(p.toLowerCase())}const c=await He.saveTable(a);return await i(),o.type==="external"&&await Zt.fetch(),await l(c),c}return{subscribe:e,update:t,fetch:i,select:l,unselect:()=>{t(o=>it(Ae({},o),{selected:null}))},save:s,init:async()=>{const o=await He.getTables();n({list:o,selected:{},draft:{}})},delete:async o=>{await He.deleteTable({tableId:o==null?void 0:o._id,tableRev:o==null?void 0:o._rev}),t(a=>it(Ae({},a),{list:a.list.filter(u=>u._id!==o._id),selected:{}}))},saveField:async({originalName:o,field:a,primaryDisplay:u=!1,indexes:f})=>{let c;t(p=>{if(o!=null&&o!==a.name&&(delete p.draft.schema[o],p.draft._rename={old:o,updated:a.name}),u)p.draft.primaryDisplay=a.name;else if(p.draft.primaryDisplay===o){const d=Object.keys(p.draft.schema);p.draft.primaryDisplay=d.filter(g=>g!==o||g!==a)[0]}return f&&(p.draft.indexes=f),p.draft.schema=it(Ae({},p.draft.schema),{[a.name]:Sn.cloneDeep(a)}),c=s(p.draft),p}),c&&await c},deleteField:async o=>{let a;t(u=>(delete u.draft.schema[o.name],a=s(u.draft),u)),a&&await a}}}const Ot=tz();function nz(){const{subscribe:r,update:e}=fn({list:[],selected:null});return{subscribe:r,update:e,select:t=>{e(n=>it(Ae({},n),{selected:t})),Ot.unselect(),kn.unselect(),Zt.unselect()},unselect:()=>{e(t=>it(Ae({},t),{selected:null}))},delete:async t=>{await He.deleteView(t),await Ot.fetch()},save:async t=>{const n=await He.saveView(t),i=Ae({name:t.name},n),l=xe(Ot).list.find(s=>s._id===t.tableId);t.originalName&&delete l.views[t.originalName],l.views[t.name]=i,await Ot.save(l),e(s=>it(Ae({},s),{selected:i}))}}}const hr=nz();function rz(){const{subscribe:r}=fn([]);return{subscribe:r,save:()=>Ot.select(xe(Ot).selected),delete:()=>Ot.select(xe(Ot).selected)}}const Wv=rz();function iz(){const{subscribe:r}=fn([]);return{subscribe:r,save:async({level:e,role:t,resource:n})=>await He.updatePermissionForResource({resourceId:n,roleId:t,level:e}),forResource:async e=>await He.getPermissionForResource(e)}}const Co=iz();function lz(){const{subscribe:r,update:e,set:t}=fn([]),n={fetch:async()=>{const i=await He.getRoles();t(i)},delete:async i=>{await He.deleteRole({roleId:i==null?void 0:i._id,roleRev:i==null?void 0:i._rev}),e(l=>l.filter(s=>s._id!==i._id))},save:async i=>{const l=await He.saveRole(i);return await n.fetch(),l}};return Ae({subscribe:r},n)}const ki=lz(),sz={list:[],selected:null,schemaError:null};function oz(){const r=fn(sz),{subscribe:e,update:t,set:n}=r;async function i(l){const{datasource:s,error:o}=l;return t(a=>{const u=a.list.findIndex(c=>c._id===s._id),f=a.list;return u>=0?f.splice(u,1,s):f.push(s),{list:f,selected:s._id,schemaError:o}}),s}return{subscribe:e,update:t,init:async()=>{const l=await He.getDatasources();n({list:l,selected:null})},fetch:async()=>{const l=await He.getDatasources(),s=xe(r).selected;let o=null;s&&l.find(a=>a._id===s)&&(o=s),t(a=>it(Ae({},a),{list:l,selected:o}))},select:l=>{t(s=>it(Ae({},s),{selected:l})),kn.unselect(),Ot.unselect(),hr.unselect()},unselect:()=>{t(l=>it(Ae({},l),{selected:null}))},updateSchema:async l=>{const s=await He.buildDatasourceSchema(l==null?void 0:l._id);return await i(s)},save:async(l,s=!1)=>{let o;return l._id?o=await He.updateDatasource(l):o=await He.createDatasource({datasource:l,fetchSchema:s}),i(o)},delete:async l=>{await He.deleteDatasource({datasourceId:l==null?void 0:l._id,datasourceRev:l==null?void 0:l._rev}),t(s=>({list:s.list.filter(a=>a._id!==l._id),selected:null})),await kn.fetch()},removeSchemaError:()=>{t(l=>it(Ae({},l),{schemaError:null}))}}}const Zt=oz(),az=()=>{const r=fn(null);return it(Ae({},r),{init:async()=>{const e=await He.getIntegrations();r.set(e)}})},es=az(),uz=(r,e)=>{const t=r.split(" (")[0],n=new RegExp(`${t}\\s\\((\\d+)\\)$`),i=[];e.filter(s=>{if(s===t)return!0;const o=s.match(n);return o?(i.push(parseInt(o[1])),!0):!1}),i.sort((s,o)=>s-o);let l;if(i.length===0)l=1;else{for(let s=0;s<i.length;s++)if(i[s]!==s+1){l=s+1;break}l||(l=i.length+1)}return`${t} (${l})`},Gv=r=>{r.sort((e,t)=>e.name.localeCompare(t.name))};function fz(){const r=fn({list:[],selected:null}),{subscribe:e,set:t,update:n}=r,i={init:async()=>{const l=await He.getQueries();t({list:l,selected:null})},fetch:async()=>{const l=await He.getQueries();Gv(l),n(s=>it(Ae({},s),{list:l}))},save:async(l,s)=>{const o=xe(es),a=xe(Zt).list.filter(f=>f._id===l);if(a.length!==0){const c=o[a[0].source].query[s.queryVerb].readable;c&&(s.readable=c)}s.datasourceId=l;const u=await He.saveQuery(s);return n(f=>{const c=f.list.findIndex(d=>d._id===u._id),p=f.list;return c>=0?p.splice(c,1,u):p.push(u),Gv(p),{list:p,selected:u._id}}),u},import:async({data:l,datasourceId:s})=>await He.importQueries({datasourceId:s,data:l}),select:l=>{n(s=>it(Ae({},s),{selected:l._id})),hr.unselect(),Ot.unselect(),Zt.unselect()},unselect:()=>{n(l=>it(Ae({},l),{selected:null}))},preview:async l=>{const s=l.parameters.reduce((u,f)=>it(Ae({},u),{[f.name]:f.default}),{}),o=await He.previewQuery(it(Ae({},l),{parameters:s})),a={};for(let u of o.schemaFields)a[u]="string";return it(Ae({},o),{schema:a,rows:o.rows||[]})},delete:async l=>{await He.deleteQuery({queryId:l==null?void 0:l._id,queryRev:l==null?void 0:l._rev}),n(s=>(s.list=s.list.filter(o=>o._id!==l._id),s.selected===l._id&&(s.selected=null),s))},duplicate:async l=>{let s=xe(r).list;const o=Ae({},l),a=l.datasourceId;return delete o._id,delete o._rev,o.name=uz(l.name,s.map(u=>u.name)),i.save(a,o)}};return Ae({subscribe:e,set:t,update:n},i)}const kn=fz();function cz(){const{subscribe:r,set:e}=fn({}),t={fetch:async()=>{const n=await He.getFlags();e(n)},updateFlag:async(n,i)=>{await He.updateFlag({flag:n,value:i}),await t.fetch()},toggleUiFeature:async n=>{await He.toggleUiFeature({value:n})}};return Ae({subscribe:r},t)}const ec=cz(),El={USERS:"ta_users"},Zn={PAGE:"page",SCREEN:"screen",LAYOUT:"layout",NONE:"none"},ts={ALL:"all",DEV:"development",DEPLOYED:"published"},pz={POSTGRES:"PostgreSQL",MONGODB:"MongoDB",COUCHDB:"CouchDB",S3:"S3",MYSQL:"MySQL",REST:"REST",DYNAMODB:"DynamoDB",ELASTICSEARCH:"ElasticSearch",SQL_SERVER:"SQL Server",AIRTABLE:"Airtable",ARANGODB:"ArangoDB",ORACLE:"Oracle",GOOGLE_SHEETS:"Google Sheets"},Yv=["email","password","roleId","status","firstName","lastName"],dz=["formula","attachment","array","link"],mz={MASTER:{PRIVATE:"layout_private_master",PUBLIC:"layout_private_master"}},_m="bb_internal",gz=/^[\w\s]+$/,_z=/^\S*$/,So={COMPONENT_CREATED:"component:created",APP_VIEW_PUBLISHED:"app:view_published"},hm={PORTAL:"portal",URL:"url",NOTIFICATION:"notification"};class hz{constructor(e){this.token=e}init(){!this.token||(hs.init(this.token,{autocapture:!1,capture_pageview:!0}),hs.set_config({persistence:"cookie"}),this.initialised=!0)}identify(e){!this.initialised||hs.identify(e)}updateUser(e){!this.initialised||hs.people.set(e)}captureEvent(e,t){!this.initialised||(t.sourceApp="builder",hs.capture(e,t))}npsFeedback(e){if(!this.initialised)return;localStorage.setItem(So.NPS.SUBMITTED,Date.now());const t={};for(let n in e)t[`feedback_${n}`]=e[n];hs.capture(So.NPS.SUBMITTED,t)}logout(){!this.initialised||hs.reset()}}class $z{constructor(e){this.token=e}init(){if(!this.token)return;const e=this.token;var t=window,n=t.Intercom;if(typeof n=="function")n("reattach_activator"),n("update",t.intercomSettings);else{var i=document,l=function(){l.c(arguments)};l.q=[],l.c=function(o){l.q.push(o)},t.Intercom=l;var s=function(){var o=i.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://widget.intercom.io/widget/"+e;var a=i.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};document.readyState==="complete"?s():t.attachEvent?t.attachEvent("onload",s):t.addEventListener("load",s,!1),this.initialised=!0}}show(e={}){if(!!this.initialised)return window.Intercom("boot",Ae({app_id:this.token},e))}update(){if(!!this.initialised)return window.Intercom("update")}captureEvent(e,t={}){if(!!this.initialised)return window.Intercom("trackEvent",e,t)}logout(){if(!!this.initialised)return window.Intercom("shutdown")}}class bz{constructor(e){this.dsn=e}init(){this.dsn&&(RA({dsn:this.dsn}),this.initalised=!0)}captureException(e){!this.initalised||MA(e)}identify(e){!this.initalised||DA(t=>{t.setUser({id:e})})}}const tc=new hz("phc_uDYOfnFt6wAbBAXkC6STjcrTpAFiWIhqgFcsC1UVO5F"),$m=new bz(void 0),nc=new $z("qz2sxfuv");class vz{constructor(){this.clients=[tc,$m,nc]}async activate(){(await He.getAnalyticsStatus()).enabled&&this.clients.forEach(t=>t.init())}identify(e){tc.identify(e),$m.identify(e)}captureException(e){$m.captureException(e)}captureEvent(e,t={}){tc.captureEvent(e,t),nc.captureEvent(e,t)}showChat(e){nc.show(e)}async logout(){tc.logout(),nc.logout()}}const ns=new vz,Ci=(r,e)=>bm(r,t=>t._id===e),wz=(r,e)=>bm(r,t=>t._component===e),rs=(r,e,t)=>{if(!r||!e)return null;if(r._id===e)return t;if(!r._children)return null;for(const n of r._children){const i=rs(n,e,r);if(i)return i}return null},Tl=(r,e,t=[])=>{if(!r||!e)return[];if(r._id===e)return[...t,r];if(!r._children)return[];for(const n of r._children){const i=[...t,r],l=Tl(n,e,i);if(l==null?void 0:l.length)return l}return[]},is=(r,e)=>{if(!r||!e)return[];let t=[];return r._children&&r._children.forEach(n=>{t=[...t,...is(n,e)]}),e(r)&&t.push(r),t.reverse()},rc=(r,e,t)=>{if(!t)return null;const n=Tl(r,e).reverse();for(let i of n)if(t(i))return i;return null},bm=(r,e)=>{if(!r||!e)return null;if(e(r))return r;if(!r._children)return null;for(const t of r._children){const n=bm(t,e);if(n)return n}return null};let vm={};const Ao=r=>{var n,i,l;if(!r)return[];if(r.startsWith("@budibase")||(r=`@budibase/standard-components/${r}`),vm[r])return vm[r];const e=qe.actions.components.getDefinition(r);let t=[];return e&&(t=(i=(n=e.settings)==null?void 0:n.filter(s=>!s.section))!=null?i:[],(l=e.settings)==null||l.filter(s=>s.section).forEach(s=>{t=t.concat(s.settings||[])})),vm[r]=t,t},wm=r=>{var n;if(!r)return;const e=r._id,t=gl();if(r._id=t,(n=r._children)==null?void 0:n.length){let i=JSON.stringify(r._children);i=i.replace(new RegExp(e,"g"),t),YD(i).forEach(s=>{let o=s.replace(/\\"/g,'"'),a=Da(o);if(a!=null){a=a.replace(new RegExp(e,"g"),t);let u=Qf(a);u=u.replace(/"/g,'\\"'),i=i.replace(s,u)}}),r._children=JSON.parse(i),r._children.forEach(wm)}},ym={apps:[],name:"",url:"",description:"",layouts:[],screens:[],components:[],clientFeatures:{spectrumThemes:!1,intelligentLoading:!1,deviceAwareness:!1,state:!1,rowSelection:!1,customThemes:!1,devicePreview:!1,messagePassing:!1,continueIfAction:!1},currentFrontEndType:"none",selectedScreenId:"",selectedLayoutId:"",selectedComponentId:"",errors:[],hasAppPackage:!1,libraries:null,appId:"",routes:{},clientLibPath:"",theme:"",customTheme:{},previewDevice:"desktop",highlightedSettingKey:null},yz=()=>{const r=fn(Ae({},ym));return r.actions={reset:()=>{r.set(Ae({},ym))},initialise:async e=>{const{layouts:t,screens:n,application:i,clientLibPath:l}=e;let s=await He.fetchComponentLibDefinitions(i.appId);r.update(o=>it(Ae({},o),{libraries:i.componentLibraries,components:s,clientFeatures:Ae(Ae({},ym.clientFeatures),s.features),name:i.name,description:i.description,appId:i.appId,url:i.url,layouts:t||[],screens:n||[],theme:i.theme||"spectrum--light",customTheme:i.customTheme,hasAppPackage:!0,appInstance:i.instance,clientLibPath:l,previousTopNavPath:{},version:i.version,revertableVersion:i.revertableVersion})),Ps.set(i.instance),await Zt.init(),await es.init(),await kn.init(),await Ot.init()},theme:{save:async e=>{const t=xe(r).appId;await He.saveAppMetadata({appId:t,metadata:{theme:e}}),r.update(n=>(n.theme=e,n))}},customTheme:{save:async e=>{const t=xe(r).appId;await He.saveAppMetadata({appId:t,metadata:{customTheme:e}}),r.update(n=>(n.customTheme=e,n))}},routing:{fetch:async()=>{const e=await He.fetchAppRoutes();r.update(t=>(t.routes=e.routes,t))}},screens:{select:e=>{r.update(t=>{var l;let n=xe(Il),i=n.find(s=>s._id===e)||n[0];return i&&(Si.set(i.routing.roleId),t.currentFrontEndType=Zn.SCREEN,t.selectedScreenId=i._id,t.currentView="detail",t.selectedComponentId=(l=i.props)==null?void 0:l._id),t})},save:async e=>{const t=e._id===void 0,n=await He.saveScreen(e);return r.update(i=>{const l=i.screens.findIndex(s=>s._id===n._id);return l!==-1?i.screens.splice(l,1,n):i.screens.push(n),i}),await r.actions.routing.fetch(),t&&r.actions.screens.select(n._id),n},delete:async e=>{const t=Array.isArray(e)?e:[e],n=[];let i=[];t.forEach(s=>{n.push(He.deleteScreen({screenId:s._id,screenRev:s._rev})),i.push(s.routing.route)}),n.push(r.actions.links.delete(i)),await Promise.all(n);const l=t.map(s=>s._id);r.update(s=>(s.screens=s.screens.filter(o=>!l.includes(o._id)),l.includes(s.selectedScreenId)&&(s.selectedScreenId=null),s)),await r.actions.routing.fetch()}},preview:{saveSelected:async()=>{const e=xe(r),t=xe(nn);return e.currentFrontEndType!==Zn.LAYOUT?await r.actions.screens.save(t):await r.actions.layouts.save(t)},setDevice:e=>{r.update(t=>(t.previewDevice=e,t))}},layouts:{select:e=>{r.update(t=>{var i;const n=r.actions.layouts.find(e)||xe(r).layouts[0];if(!!n)return t.currentFrontEndType=Zn.LAYOUT,t.currentView="detail",t.selectedLayoutId=n._id,t.selectedComponentId=(i=n.props)==null?void 0:i._id,t})},save:async e=>{const t=e._id===void 0,n=await He.saveLayout(e);return r.update(i=>{const l=i.layouts.findIndex(s=>s._id===n._id);return l!==-1?i.layouts.splice(l,1,n):i.layouts.push(n),i}),t&&r.actions.layouts.select(n._id),n},find:e=>e?xe(r).layouts.find(n=>n._id===e):xe(lc),delete:async e=>{!(e==null?void 0:e._id)||(await He.deleteLayout({layoutId:e._id,layoutRev:e._rev}),r.update(t=>(e._id===t.selectedLayoutId&&(t.selectedLayoutId=xe(lc)._id),t.layouts=t.layouts.filter(n=>n._id!==e._id),t)))}},components:{select:e=>{const t=xe(nn);if(!t||!e)return;if(rs(t.props,e._id)==null){xe(r).currentFrontEndType===Zn.LAYOUT?r.actions.layouts.select(t._id):r.actions.screens.select(t._id);return}r.update(i=>(i.selectedComponentId=e._id,i.currentView="component",i))},getDefinition:e=>e?(e.startsWith("@budibase")||(e=`@budibase/standard-components/${e}`),xe(r).components[e]):null,createInstance:(e,t)=>{const n=r.actions.components.getDefinition(e);if(!n)return null;const i=Ao(e);let l=Ae({},t);i.forEach(o=>{o.defaultValue!==void 0&&(l[o.key]=o.defaultValue)});let s={};if(n.hasChildren&&(s._children=[]),e.endsWith("/formstep")){const o=rc(xe(nn).props,xe(ai)._id,u=>u._component.endsWith("/form")),a=is(o,u=>u._component.endsWith("/formstep"));s.step=a.length+1,s._instanceName=`Step ${a.length+1}`}return Ae(Ae({_id:gl(),_component:n.component,_styles:{normal:{},hover:{},active:{}},_instanceName:`New ${n.name}`},Sn.cloneDeep(l)),s)},create:async(e,t)=>{const n=xe(ai),i=xe(nn),l=r.actions.components.createInstance(e,t);if(!l||!i)return;let s;if(n){const o=r.actions.components.getDefinition(n._component);(o==null?void 0:o.hasChildren)?s=n:s=rs(i==null?void 0:i.props,n._id)}else s=i==null?void 0:i.props;if(!!s)return s._children||(s._children=[]),s._children.push(l),await r.actions.preview.saveSelected(),r.update(o=>(o.currentView="component",o.selectedComponentId=l._id,o)),ns.captureEvent(So.COMPONENT_CREATED,{name:l._component}),l},delete:async e=>{var l;if(!e)return;const t=xe(nn);if(!t)return;if(e=Ci(t.props,e._id),(l=e._component)==null?void 0:l.endsWith("/screenslot"))throw"You can't delete the screen slot";if(wz(e,"@budibase/standard-components/screenslot")!=null)throw"You can't delete a component that contains the screen slot";const i=rs(t.props,e._id);i&&(i._children=i._children.filter(s=>s._id!==e._id),r.actions.components.select(i)),await r.actions.preview.saveSelected()},copy:(e,t=!1)=>{const n=xe(nn);if(!n)return null;if(r.update(i=>(i.componentToPaste=Sn.cloneDeep(e),i.componentToPaste.isCut=t,i)),t){const i=rs(n.props,e._id);i&&(i._children=i._children.filter(l=>l._id!==e._id),r.actions.components.select(i))}},paste:async(e,t)=>{let n=[];r.update(i=>{if(!i.componentToPaste)return i;const l=i.componentToPaste.isCut;delete i.componentToPaste.isCut;let s=Sn.cloneDeep(i.componentToPaste);if(l?i.componentToPaste=null:wm(s),t==="inside")e._children||(e._children=[]),e._children.push(s);else{const o=xe(nn);if(!o)return i;const a=rs(o.props,e._id);if(!a)return i;const u=a._children.indexOf(e),f=t==="above"?u:u+1;a._children.splice(f,0,Sn.cloneDeep(s))}return n.push(r.actions.preview.saveSelected()),r.actions.components.select(s),i}),await Promise.all(n)},updateStyle:async(e,t)=>{const n=xe(ai);t==null||t===""?delete n._styles.normal[e]:n._styles.normal[e]=t,await r.actions.preview.saveSelected()},updateCustomStyle:async e=>{const t=xe(ai);t._styles.custom=e,await r.actions.preview.saveSelected()},updateConditions:async e=>{const t=xe(ai);t._conditions=e,await r.actions.preview.saveSelected()},updateProp:async(e,t)=>{let n=xe(ai);!e||!n||n[e]!==t&&(n[e]=t,r.update(i=>(i.selectedComponentId=n._id,i)),await r.actions.preview.saveSelected())}},links:{save:async(e,t)=>{const n=xe(lc);!n||(n.props.links||(n.props.links=[]),n.props.links.push({text:t,url:e}),await r.actions.layouts.save(n))},delete:async e=>{var n;const t=xe(lc);!((n=t==null?void 0:t.props.links)==null?void 0:n.length)||(e=Array.isArray(e)?e:[e],t.props.links=t.props.links.filter(i=>!e.includes(i.url)),await r.actions.layouts.save(t))}},settings:{highlight:e=>{r.update(t=>it(Ae({},t),{highlightedSettingKey:e}))}}},r};class Jv{constructor(e){this.automation=e}hasTrigger(){return this.automation.definition.trigger}addTestData(e){this.automation.testData=Ae(Ae({},this.automation.testData),e)}addBlock(e,t){if(!this.hasTrigger()&&e.type==="TRIGGER"){const i=Ae({id:Fr.generate()},e);return this.automation.definition.trigger=i,i}const n=Ae({id:Fr.generate()},e);return this.automation.definition.steps.splice(t,0,n),n}updateBlock(e,t){const{steps:n,trigger:i}=this.automation.definition;if(i&&i.id===t){this.automation.definition.trigger=e;return}const l=n.findIndex(s=>s.id===t);if(l<0)throw new Error("Block not found.");n.splice(l,1,e),this.automation.definition.steps=n}deleteBlock(e){const{steps:t,trigger:n}=this.automation.definition;if(n&&n.id===e){this.automation.definition.trigger=null;return}const i=t.findIndex(l=>l.id===e);if(i<0)throw new Error("Block not found.");t.splice(i,1),this.automation.definition.steps=t}constructBlock(e,t,n){return it(Ae({},n),{inputs:n.inputs||{},stepId:t,type:e})}}const kz={automations:[],blockDefinitions:{TRIGGER:[],ACTION:[]},selectedAutomation:null},Cz=()=>{const r=fn(kz);return r.actions=Sz(r),r},Sz=r=>({fetch:async()=>{const e=await Promise.all([He.getAutomations(),He.getAutomationDefinitions()]);r.update(t=>{var i;let n=(i=t.selectedAutomation)==null?void 0:i.automation;return t.automations=e[0],t.blockDefinitions={TRIGGER:e[1].trigger,ACTION:e[1].action},n&&(n=e[0].filter(l=>l._id===n._id),t.selectedAutomation=new Jv(n[0])),t})},create:async({name:e})=>{const t={name:e,type:"automation",definition:{steps:[]}},n=await He.createAutomation(t);r.update(i=>(i.automations=[...i.automations,n.automation],r.actions.select(n.automation),i))},save:async e=>{const t=await He.updateAutomation(e);r.update(n=>{const i=t.automation,l=n.automations.findIndex(s=>s._id===e._id);if(l!==-1)return n.automations.splice(l,1,i),n.automations=[...n.automations],r.actions.select(i),n})},delete:async e=>{await He.deleteAutomation({automationId:e==null?void 0:e._id,automationRev:e==null?void 0:e._rev}),r.update(t=>{const n=t.automations.findIndex(i=>i._id===(e==null?void 0:e._id));return t.automations.splice(n,1),t.automations=[...t.automations],t.selectedAutomation=null,t.selectedBlock=null,t})},test:async(e,t)=>{r.update(i=>(i.selectedAutomation.testResults=null,i));const n=await He.testAutomation({automationId:e==null?void 0:e._id,testData:t});r.update(i=>(i.selectedAutomation.testResults=n,i))},select:e=>{r.update(t=>(t.selectedAutomation=new Jv(Sn.cloneDeep(e)),t.selectedBlock=null,t))},addTestDataToAutomation:e=>{r.update(t=>(t.selectedAutomation.addTestData(e),t))},addBlockToAutomation:(e,t)=>{r.update(n=>{const i=n.selectedAutomation.addBlock(Sn.cloneDeep(e),t);return n.selectedBlock=i,n})},toggleFieldControl:e=>{r.update(t=>(t.selectedBlock.rowControl=e,t))},deleteAutomationBlock:e=>{r.update(t=>{const n=t.selectedAutomation.automation.definition.steps.findIndex(s=>s.id===e.id);t.selectedAutomation.deleteBlock(e.id);const i=t.selectedAutomation.automation.definition.steps;let l;return i[n]!=null?l=i[n]:i[n-1]!=null?l=i[n-1]:l=t.selectedAutomation.automation.definition.trigger||null,t.selectedBlock=l,t})}}),Az=()=>{const r=document.documentElement,e={theme:"darkest",options:["lightest","light","dark","darkest","nord"]},t=JB("bb-theme",e);return t.subscribe(n=>{if(n.darkMode!==void 0){t.set(e);return}n.options.forEach(i=>{r.classList.toggle(`spectrum--${i}`,i===n.theme),r.classList.add("spectrum--darkest")})}),t},qe=yz(),Ft=Cz(),ic=Az(),nn=Pi(qe,r=>{const e=r.currentFrontEndType;return e===Zn.SCREEN?r.screens.find(t=>t._id===r.selectedScreenId):e===Zn.LAYOUT?r.layouts.find(t=>t._id===r.selectedLayoutId):null}),ai=Pi([qe,nn],([r,e])=>!e||!r.selectedComponentId?null:Ci(e==null?void 0:e.props,r.selectedComponentId)),Oz=Pi([qe,nn],([r,e])=>Tl(e==null?void 0:e.props,r.selectedComponentId).map(t=>t._id));Pi(qe,r=>r.currentFrontEndType===Zn.SCREEN?r.selectedScreenId:r.selectedLayoutId);const Ez=Pi(nn,r=>r==null?void 0:r.name),Il=Pi(qe,r=>r.screens),lc=Pi(qe,r=>{var e;return(e=r.layouts)==null?void 0:e.find(t=>t._id===mz.MASTER.PRIVATE)}),Si=fn("BASIC"),sc=fn(null),Xv={platformUrl:"",logoUrl:void 0,docsUrl:void 0,company:"Budibase",oidc:void 0,google:void 0,oidcCallbackUrl:"",googleCallbackUrl:""};function Tz(){const r=fn(Xv),{subscribe:e,set:t}=r;async function n(){const l=xe(It).tenantId,s=await He.getTenantConfig(l);t(it(Ae(Ae({},Xv),s.config),{_rev:s._rev}))}async function i(l){const s=xe(r);delete s.oidc,delete s.google,delete s.oidcCallbackUrl,delete s.googleCallbackUrl,await He.saveConfig({type:"settings",config:Ae(Ae({},xe(r)),l),_rev:xe(r)._rev}),await n()}return{subscribe:e,set:t,save:i,init:n}}const $r=Tz();function Iz(){const{subscribe:r,set:e}=fn({});async function t(u={}){const f=await He.searchUsers(u);return e(Ae(Ae({},f),u)),f}async function n(u){try{return await He.getUser(u)}catch{return null}}async function i({email:u,builder:f,admin:c}){return He.inviteUser({email:u,builder:f,admin:c})}async function l(u,f){return He.acceptInvite({inviteCode:u,password:f})}async function s({email:u,password:f,admin:c,builder:p,forceResetPassword:d}){const g={email:u,password:f,roles:{}};d&&(g.forceResetPassword=d),p&&(g.builder={global:!0}),c&&(g.admin={global:!0}),await He.saveUser(g),await t()}async function o(u){await He.deleteUser(u),$s.exports.update(f=>f.filter(c=>c._id!==u))}async function a(u){await He.saveUser(u)}return{subscribe:r,search:t,get:n,invite:i,acceptInvite:l,create:s,save:a,delete:o}}const ui=Iz();function Lz(){const e=fn({loaded:!1,multiTenancy:!1,cloud:!1,isDev:!1,disableAccountPortal:!1,accountPortalUrl:"",importComplete:!1,onboardingProgress:0,checklist:{apps:{checked:!1},smtp:{checked:!1},adminUser:{checked:!1},sso:{checked:!1}}});async function t(){await o(),await i(),xe(e).cloud&&(await s(),l()),e.update(u=>(u.loaded=!0,u))}async function n(){const u=await He.checkImportComplete();e.update(f=>(f.importComplete=u?u.imported:!1,f))}async function i(){const u=await He.getEnvironment();e.update(f=>(f.multiTenancy=u.multiTenancy,f.cloud=u.cloud,f.disableAccountPortal=u.disableAccountPortal,f.accountPortalUrl=u.accountPortalUrl,f.isDev=u.isDev,f))}const l=async()=>{var f,c;const u=(c=(f=xe(e))==null?void 0:f.status)==null?void 0:c.health;(u==null?void 0:u.passing)||await Ov.showStatus()};async function s(){const u=await He.getSystemStatus();e.update(f=>(f.status=u,f))}async function o(){const u=xe(It).tenantId,f=await He.getChecklist(u),c=Object.keys(f).length,p=Object.values(f).filter(d=>d==null?void 0:d.checked).length;e.update(d=>(d.checklist=f,d.onboardingProgress=p/c*100,d))}function a(){e.update(u=>(u.loaded=!1,u))}return{subscribe:e.subscribe,init:t,checkImportComplete:n,unload:a,getChecklist:o}}const vn=Lz(),km=r=>{const e=(r==null?void 0:r.split("_"))||[];return e.length?e[e.length-1]:null};function Pz(){const r=fn([]);async function e(){const n=await He.getApps();if(Array.isArray(n)){let i={},l=n.filter(a=>a.status===ts.DEV),s=n.filter(a=>a.status===ts.DEPLOYED);l.forEach(a=>{const u=km(a.appId);i[u]=it(Ae({},a),{devId:a.appId,devRev:a._rev})}),s.forEach(a=>{const u=km(a.appId);!i[u]||(i[u]=it(Ae(Ae({},i[u]),a),{prodId:a.appId,prodRev:a._rev}))});const o=Object.values(i);o.forEach(a=>{a.appId=km(a.devId),delete a._id,delete a._rev}),r.set(o)}else r.set([])}async function t(n,i){await He.saveAppMetadata({appId:n,metadata:i}),r.update(l=>{const s=l.findIndex(o=>o.instance._id===n);if(s!==-1){let o=l[s];o=Ae(Ae({},o),i),l.apps=l.splice(s,1,o)}return l})}return{subscribe:r.subscribe,load:e,update:t}}const br=Pz();function Nz(){const r=fn({});return{subscribe:r.subscribe,templates:{fetch:async()=>{const e=await He.getEmailTemplateDefinitions(),t=await He.getEmailTemplates();r.set({definitions:e,templates:t})},save:async e=>{const t=await He.saveEmailTemplate(e);e._rev=t._rev,e._id=t._id,r.update(n=>{const i=n.templates.findIndex(l=>l.purpose===t.purpose);return n.templates.splice(i,1,e),n})}}}}const oc=Nz();function Rz(){const r=fn({user:null,tenantId:"default",tenantSet:!1,loaded:!1,postLogout:!1}),e=Pi(r,a=>{var p,d;let u=null,f=!1,c=!1;if(a.user){const g=a.user;g.firstName?(u=g.firstName[0],g.lastName&&(u+=g.lastName[0])):g.email?u=g.email[0]:u="Unknown",f=!!((p=g.admin)==null?void 0:p.global),c=!!((d=g.builder)==null?void 0:d.global)}return{user:a.user,tenantId:a.tenantId,tenantSet:a.tenantSet,loaded:a.loaded,postLogout:a.postLogout,initials:u,isAdmin:f,isBuilder:c}});function t(a){r.update(u=>(u.loaded=!0,u.user=a,a&&(u.tenantId=a.tenantId||"default",u.tenantSet=!0),u)),a&&ns.activate().then(()=>{var u,f,c;ns.identify(a._id),ns.showChat({email:a.email,created_at:(a.createdAt||Date.now())/1e3,name:(u=a.account)==null?void 0:u.name,user_id:a._id,tenant:a.tenantId,"Company size":(f=a.account)==null?void 0:f.size,"Job role":(c=a.account)==null?void 0:c.profession})}).catch(()=>{})}async function n(a){const u=xe(e).tenantId;r.update(f=>(f.tenantId=a,f.tenantSet=!!a,f)),u!==a&&await vn.init()}async function i(a){return await He.setInitInfo(a),r.update(u=>(u.initInfo=a,u)),a}function l(){r.update(a=>(a.postLogout=!0,a))}async function s(){const a=await He.getInitInfo();return r.update(u=>(u.initInfo=a,u)),a}const o={checkQueryString:async()=>{const a=new URLSearchParams(window.location.search);if(a.has("tenantId")){const u=a.get("tenantId");await n(u)}},setOrg:async a=>{await n(a)},getSelf:async()=>{try{const a=await He.fetchBuilderSelf();t(a)}catch{t(null)}},login:async a=>{const u=xe(e).tenantId;await He.logIn({username:a.username,password:a.password,tenantId:u}),await o.getSelf()},logout:async()=>{t(null),l(),await He.logOut(),await i({})},updateSelf:async a=>{const u=Ae(Ae({},xe(r).user),a);await He.updateSelf(u),t(u)},forgotPassword:async a=>{const u=xe(e).tenantId;await He.requestForgotPassword({tenantId:u,email:a})},resetPassword:async(a,u)=>{const f=xe(e).tenantId;await He.resetPassword({tenantId:f,password:a,resetCode:u})},generateAPIKey:async()=>He.generateAPIKey(),fetchAPIKey:async()=>{const a=await He.fetchDeveloperInfo();return a==null?void 0:a.apiKey}};return Ae({subscribe:e.subscribe,setOrganisation:n,getInitInfo:s,setInitInfo:i},o)}const It=Rz(),Qv={logo:void 0,name:void 0,uuid:void 0};function Mz(){const r=fn(Qv),{set:e,subscribe:t}=r;return{subscribe:t,set:e,init:async()=>{const n=xe(It).tenantId,i=await He.getOIDCConfig(n);Object.keys(i||{}).length?e(...i):e(Qv)}}}const Cm=Mz();function Dz(){const{subscribe:r,set:e}=fn([]);return{subscribe:r,load:async()=>{const t=await He.getAppTemplates();e(t)}}}const Oo=Dz(),jz=()=>{const e=fn({plans:{}}),t={getQuotaUsage:async()=>{const n=await He.getQuotaUsage();e.update(i=>it(Ae({},i),{quotaUsage:n}))}};return Ae({subscribe:e.subscribe},t)},Kv=jz(),He=MB({attachHeaders:r=>{r["x-budibase-app-id"]=xe(qe).appId;const e=xe(It).user;(e==null?void 0:e.csrfToken)&&(r["x-csrf-token"]=e.csrfToken)},onError:r=>{const{url:e,message:t,status:n,method:i,handled:l}=r||{};if(!l){console.error("Unhandled error from API client",r);return}console.warn(`[Builder] HTTP ${n} on ${i}:${e}
|
|
379
379
|
${t}`),n===403&&(mm(ja.Auth),!e.includes("self")&&!e.includes("login")&&location.reload())}});function Bz(r){return r&&!!r.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)||"Please enter a valid email"}function Zv(r){return r!=null&&r!==""||"This field is required"}function Sm(r,...e){let t=!1;const n=fn(r||""),i=Pi(n,s=>zz(s,e)),l=Pi(n,()=>t||(t=!0,!1));return[n,i,l]}function zz(r,e){const t=e.find(n=>n(r)!==!0);return t&&t(r)}function qz(r){let e,t,n,i,l,s;function o(c){r[12](c)}let a={label:"Password",type:"password",error:r[3]&&r[4]};r[1]!==void 0&&(a.value=r[1]),e=new et({props:a}),K.push(()=>ce(e,"value",o));function u(c){r[13](c)}let f={label:"Repeat Password",type:"password",error:r[2]&&r[1]!==r[0]&&"Passwords must match"};return r[0]!==void 0&&(f.value=r[0]),i=new et({props:f}),K.push(()=>ce(i,"value",u)),{c(){C(e.$$.fragment),n=R(),C(i.$$.fragment)},m(c,p){S(e,c,p),$(c,n,p),S(i,c,p),s=!0},p(c,p){const d={};p&24&&(d.error=c[3]&&c[4]),!t&&p&2&&(t=!0,d.value=c[1],pe(()=>t=!1)),e.$set(d);const g={};p&7&&(g.error=c[2]&&c[1]!==c[0]&&"Passwords must match"),!l&&p&1&&(l=!0,g.value=c[0],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){A(e,c),c&&b(n),A(i,c)}}}function Uz(r){let e,t;return e=new ze({props:{gap:"XS",noPadding:!0,$$slots:{default:[qz]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&32799&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Fz(r,e,t){let n,i,l,s,o,{password:a}=e,{error:u}=e;const[f,c,p]=Sm("",Zv);ae(r,f,k=>t(1,i=k)),ae(r,c,k=>t(4,o=k)),ae(r,p,k=>t(3,s=k));const[d,g,h]=Sm("",Zv);ae(r,d,k=>t(0,n=k)),ae(r,h,k=>t(2,l=k));function v(k){i=k,f.set(i)}function w(k){n=k,d.set(n)}return r.$$set=k=>{"password"in k&&t(10,a=k.password),"error"in k&&t(11,u=k.error)},r.$$.update=()=>{r.$$.dirty&2&&t(10,a=i),r.$$.dirty&15&&t(11,u=!i||!s||!l||i!==n)},[n,i,l,s,o,f,c,p,d,h,a,u,v,w]}class ac extends se{constructor(e){super();oe(this,e,Fz,Uz,ie,{password:10,error:11})}}function Vz(r){let e;return{c(){e=F(`Please upload the file that was exported from your Cloud environment to get
|
|
@@ -892,10 +892,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
892
892
|
from.
|
|
893
893
|
`),t=D("br"),n=F(`
|
|
894
894
|
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 Die(r){let e;return{c(){e=F("Table")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function jie(r){let e;return{c(){e=F("Export as")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Bie(r){let e;return{c(){e=F("Export columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function zie(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I;t=new Ue({props:{size:"S",$$slots:{default:[Mie]},$$scope:{ctx:r}}}),l=new Je({props:{small:!0,$$slots:{default:[Die]},$$scope:{ctx:r}}});function T(U){r[7](U)}let E={options:r[2]};r[0].tableComponentId!==void 0&&(E.value=r[0].tableComponentId),o=new Ye({props:E}),K.push(()=>ce(o,"value",T)),o.$on("change",r[8]),f=new Je({props:{small:!0,$$slots:{default:[jie]},$$scope:{ctx:r}}});function L(U){r[9](U)}let M={options:r[3]};r[0].type!==void 0&&(M.value=r[0].type),p=new Ye({props:M}),K.push(()=>ce(p,"value",L)),h=new Je({props:{small:!0,$$slots:{default:[Bie]},$$scope:{ctx:r}}});function B(U){r[10](U)}let j={placeholder:"All columns",options:r[1]};return r[0].columns!==void 0&&(j.value=r[0].columns),w=new ro({props:j}),K.push(()=>ce(w,"value",B)),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),s=R(),C(o.$$.fragment),u=R(),C(f.$$.fragment),c=R(),C(p.$$.fragment),g=R(),C(h.$$.fragment),v=R(),C(w.$$.fragment),y(i,"class","params svelte-zv65u9"),y(e,"class","root svelte-zv65u9")},m(U,q){$(U,e,q),S(t,e,null),P(e,n),P(e,i),S(l,i,null),P(i,s),S(o,i,null),P(i,u),S(f,i,null),P(i,c),S(p,i,null),P(i,g),S(h,i,null),P(i,v),S(w,i,null),I=!0},p(U,[q]){const G={};q&4096&&(G.$$scope={dirty:q,ctx:U}),t.$set(G);const Y={};q&4096&&(Y.$$scope={dirty:q,ctx:U}),l.$set(Y);const W={};q&4&&(W.options=U[2]),!a&&q&1&&(a=!0,W.value=U[0].tableComponentId,pe(()=>a=!1)),o.$set(W);const H={};q&4096&&(H.$$scope={dirty:q,ctx:U}),f.$set(H);const V={};!d&&q&1&&(d=!0,V.value=U[0].type,pe(()=>d=!1)),p.$set(V);const J={};q&4096&&(J.$$scope={dirty:q,ctx:U}),h.$set(J);const fe={};q&2&&(fe.options=U[1]),!k&&q&1&&(k=!0,fe.value=U[0].columns,pe(()=>k=!1)),w.$set(fe)},i(U){I||(m(t.$$.fragment,U),m(l.$$.fragment,U),m(o.$$.fragment,U),m(f.$$.fragment,U),m(p.$$.fragment,U),m(h.$$.fragment,U),m(w.$$.fragment,U),I=!0)},o(U){_(t.$$.fragment,U),_(l.$$.fragment,U),_(o.$$.fragment,U),_(f.$$.fragment,U),_(p.$$.fragment,U),_(h.$$.fragment,U),_(w.$$.fragment,U),I=!1},d(U){U&&b(e),A(t),A(l),A(o),A(f),A(p),A(h),A(w)}}}function qie(r,e,t){let n,i,l,s,o;ae(r,nn,h=>t(6,o=h));let{parameters:a}=e;const u=[{label:"CSV",value:"csv"},{label:"JSON",value:"json"}],f=h=>{(h==null?void 0:h.includes("-"))&&(h=h.split("-")[0]);const v=Ci(o==null?void 0:o.props,h),w=rl(o,v),{schema:k}=Oi(o,w);return Object.keys(k||{})};Pt(()=>{a.type||t(0,a.type="csv",a)});function c(h){r.$$.not_equal(a.tableComponentId,h)&&(a.tableComponentId=h,t(0,a))}const p=()=>t(0,a.columns=[],a);function d(h){r.$$.not_equal(a.type,h)&&(a.type=h,t(0,a))}function g(h){r.$$.not_equal(a.columns,h)&&(a.columns=h,t(0,a))}return r.$$set=h=>{"parameters"in h&&t(0,a=h.parameters)},r.$$.update=()=>{r.$$.dirty&64&&t(5,n=is(o==null?void 0:o.props,h=>h._component.endsWith("table")).map(h=>({label:h._instanceName,value:h._id}))),r.$$.dirty&64&&t(4,i=is(o==null?void 0:o.props,h=>h._component.endsWith("tableblock")).map(h=>({label:h._instanceName,value:`${h._id}-table`}))),r.$$.dirty&48&&t(2,l=n.concat(i)),r.$$.dirty&1&&t(1,s=f(a.tableComponentId))},[a,s,l,u,i,n,o,c,p,d,g]}class Uie extends se{constructor(e){super();oe(this,e,qie,zie,ie,{parameters:0})}}function Fie(r){let e;return{c(){e=F(`Configure a condition to be evaluated which can stop further actions from
|
|
895
|
-
being executed.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Vie(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;t=new Ue({props:{size:"S",$$slots:{default:[Fie]},$$scope:{ctx:r}}});function h(E){r[4](E)}let v={options:r[2],placeholder:null};r[0].type!==void 0&&(v.value=r[0].type),i=new Ye({props:v}),K.push(()=>ce(i,"value",h)),o=new Rn({props:{placeholder:"Value",value:r[0].value,bindings:r[1]}}),o.$on("change",r[5]);function w(E){r[6](E)}let k={options:r[3],placeholder:null};r[0].operator!==void 0&&(k.value=r[0].operator),u=new Ye({props:k}),K.push(()=>ce(u,"value",w));function I(E){r[7](E)}let T={placeholder:"Reference value",bindings:r[1]};return r[0].referenceValue!==void 0&&(T.value=r[0].referenceValue),p=new Rn({props:T}),K.push(()=>ce(p,"value",I)),p.$on("change",r[8]),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),c=R(),C(p.$$.fragment),y(e,"class","root svelte-1yfkfsp")},m(E,L){$(E,e,L),S(t,e,null),P(e,n),S(i,e,null),P(e,s),S(o,e,null),P(e,a),S(u,e,null),P(e,c),S(p,e,null),g=!0},p(E,[L]){const M={};L&512&&(M.$$scope={dirty:L,ctx:E}),t.$set(M);const B={};!l&&L&1&&(l=!0,B.value=E[0].type,pe(()=>l=!1)),i.$set(B);const j={};L&1&&(j.value=E[0].value),L&2&&(j.bindings=E[1]),o.$set(j);const U={};!f&&L&1&&(f=!0,U.value=E[0].operator,pe(()=>f=!1)),u.$set(U);const q={};L&2&&(q.bindings=E[1]),!d&&L&1&&(d=!0,q.value=E[0].referenceValue,pe(()=>d=!1)),p.$set(q)},i(E){g||(m(t.$$.fragment,E),m(i.$$.fragment,E),m(o.$$.fragment,E),m(u.$$.fragment,E),m(p.$$.fragment,E),g=!0)},o(E){_(t.$$.fragment,E),_(i.$$.fragment,E),_(o.$$.fragment,E),_(u.$$.fragment,E),_(p.$$.fragment,E),g=!1},d(E){E&&b(e),A(t),A(i),A(o),A(u),A(p)}}}function Hie(r,e,t){let{parameters:n}=e,{bindings:i}=e;const l=[{label:"Continue if",value:"continue"},{label:"Stop if",value:"stop"}],s=[{label:"Equals",value:"equal"},{label:"Not equals",value:"notEqual"}];Pt(()=>{n.type||t(0,n.type="continue",n),n.operator||t(0,n.operator="equal",n)});function o(p){r.$$.not_equal(n.type,p)&&(n.type=p,t(0,n))}const a=p=>t(0,n.value=p.detail,n);function u(p){r.$$.not_equal(n.operator,p)&&(n.operator=p,t(0,n))}function f(p){r.$$.not_equal(n.referenceValue,p)&&(n.referenceValue=p,t(0,n))}const c=p=>t(0,n.referenceValue=p.detail,n);return r.$$set=p=>{"parameters"in p&&t(0,n=p.parameters),"bindings"in p&&t(1,i=p.bindings)},[n,i,l,s,o,a,u,f,c]}class Wie extends se{constructor(e){super();oe(this,e,Hie,Vie,ie,{parameters:0,bindings:1})}}function Gie(r){let e;return{c(){e=F("Form")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Yie(r){let e;return{c(){e=F("Type")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jie(r){let e;return{c(){e=F("Field")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yy(r){let e,t,n,i;return e=new Je({props:{small:!0,$$slots:{default:[Xie]},$$scope:{ctx:r}}}),n=new Rn({props:{bindings:r[1],value:r[0].value}}),n.$on("change",r[12]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(n,l,s),i=!0},p(l,s){const o={};s&8192&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&2&&(a.bindings=l[1]),s&1&&(a.value=l[0].value),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){A(e,l),l&&b(t),A(n,l)}}}function Xie(r){let e;return{c(){e=F("Value")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qie(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w;t=new Je({props:{small:!0,$$slots:{default:[Gie]},$$scope:{ctx:r}}});function k(j){r[9](j)}let I={options:r[2],getOptionLabel:Kie,getOptionValue:Zie};r[0].componentId!==void 0&&(I.value=r[0].componentId),i=new Ye({props:I}),K.push(()=>ce(i,"value",k)),o=new Je({props:{small:!0,$$slots:{default:[Yie]},$$scope:{ctx:r}}});function T(j){r[10](j)}let E={placeholder:null,options:r[4]};r[0].type!==void 0&&(E.value=r[0].type),u=new Ye({props:E}),K.push(()=>ce(u,"value",T)),p=new Je({props:{small:!0,$$slots:{default:[Jie]},$$scope:{ctx:r}}});function L(j){r[11](j)}let M={options:r[3]};r[0].field!==void 0&&(M.value=r[0].field),g=new bs({props:M}),K.push(()=>ce(g,"value",L));let B=r[0].type==="set"&&yy(r);return{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),c=R(),C(p.$$.fragment),d=R(),C(g.$$.fragment),v=R(),B&&B.c(),y(e,"class","root svelte-ss4wgk")},m(j,U){$(j,e,U),S(t,e,null),P(e,n),S(i,e,null),P(e,s),S(o,e,null),P(e,a),S(u,e,null),P(e,c),S(p,e,null),P(e,d),S(g,e,null),P(e,v),B&&B.m(e,null),w=!0},p(j,[U]){const q={};U&8192&&(q.$$scope={dirty:U,ctx:j}),t.$set(q);const G={};U&4&&(G.options=j[2]),!l&&U&1&&(l=!0,G.value=j[0].componentId,pe(()=>l=!1)),i.$set(G);const Y={};U&8192&&(Y.$$scope={dirty:U,ctx:j}),o.$set(Y);const W={};!f&&U&1&&(f=!0,W.value=j[0].type,pe(()=>f=!1)),u.$set(W);const H={};U&8192&&(H.$$scope={dirty:U,ctx:j}),p.$set(H);const V={};U&8&&(V.options=j[3]),!h&&U&1&&(h=!0,V.value=j[0].field,pe(()=>h=!1)),g.$set(V),j[0].type==="set"?B?(B.p(j,U),U&1&&m(B,1)):(B=yy(j),B.c(),m(B,1),B.m(e,null)):B&&(x(),_(B,1,1,()=>{B=null}),ee())},i(j){w||(m(t.$$.fragment,j),m(i.$$.fragment,j),m(o.$$.fragment,j),m(u.$$.fragment,j),m(p.$$.fragment,j),m(g.$$.fragment,j),m(B),w=!0)},o(j){_(t.$$.fragment,j),_(i.$$.fragment,j),_(o.$$.fragment,j),_(u.$$.fragment,j),_(p.$$.fragment,j),_(g.$$.fragment,j),_(B),w=!1},d(j){j&&b(e),A(t),A(i),A(o),A(u),A(p),A(g),B&&B.d()}}}const Kie=r=>r._instanceName,Zie=r=>r._id;function xie(r,e,t){let n,i,l,s,o,a;ae(r,qe,v=>t(7,o=v)),ae(r,nn,v=>t(8,a=v));let{parameters:u}=e,{bindings:f=[]}=e;const c=[{label:"Set value",value:"set"},{label:"Reset to default value",value:"reset"}];Pt(()=>{u.type||t(0,u.type="set",u)});function p(v){r.$$.not_equal(u.componentId,v)&&(u.componentId=v,t(0,u))}function d(v){r.$$.not_equal(u.type,v)&&(u.type=v,t(0,u))}function g(v){r.$$.not_equal(u.field,v)&&(u.field=v,t(0,u))}const h=v=>t(0,u.value=v.detail,u);return r.$$set=v=>{"parameters"in v&&t(0,u=v.parameters),"bindings"in v&&t(1,f=v.bindings)},r.$$.update=()=>{r.$$.dirty&257&&t(6,n=Ci(a.props,u.componentId)),r.$$.dirty&64&&t(5,i=Tm(n)),r.$$.dirty&32&&t(3,l=Object.keys(i||{})),r.$$.dirty&384&&t(2,s=Ua(a,o.selectedComponentId,"ValidateForm"))},[u,f,s,l,c,i,n,o,a,p,d,g,h]}class ele extends se{constructor(e){super();oe(this,e,xie,Qie,ie,{parameters:0,bindings:1})}}var tle=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",NavigateTo:Une,SaveRow:rre,DeleteRow:cre,ExecuteQuery:bre,TriggerAutomation:Ire,ValidateForm:Dre,LogOut:Fre,ClearForm:Jre,CloseScreenModal:Zre,ChangeFormStep:sie,UpdateState:die,RefreshDataProvider:bie,DuplicateRow:Eie,S3Upload:Rie,ExportData:Uie,ContinueIf:Wie,UpdateFieldValue:ele});const nle=(r=!1)=>z3.actions.filter(e=>{var t;return r||!e.dependsOnFeature?!0:((t=xe(qe).clientFeatures)==null?void 0:t[e.dependsOnFeature])===!0}).map(e=>it(Ae({},e),{component:tle[e.component]})).filter(e=>e.component!=null);function ky(r,e,t){const n=r.slice();return n[16]=e[t],n}function Cy(r,e,t){const n=r.slice();return n[19]=e[t],n[21]=t,n}function Sy(r){let e=r[1].id,t,n,i=Ay(r);return{c(){i.c(),t=Oe()},m(l,s){i.m(l,s),$(l,t,s),n=!0},p(l,s){s&2&&ie(e,e=l[1].id)?(x(),_(i,1,1,Se),ee(),i=Ay(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 Ay(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&&C(t.$$.fragment),y(e,"class","selected-action-container")},m(s,o){$(s,e,o),t&&S(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){x();const u=t;_(u.$$.fragment,1,0,()=>{A(u,1)}),ee()}i?(t=new i(l(s)),C(t.$$.fragment),m(t.$$.fragment,1),S(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&&A(t)}}}function rle(r){let e,t,n=r[2]&&Sy(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=Sy(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function ile(r){let e,t;return e=new ze({props:{noPadding:!0,$$slots:{default:[rle]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4194318&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Oy(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[19].id;for(let f=0;f<a.length;f+=1){let c=Cy(r,a,f),p=u(c);n.set(p,t[f]=Ey(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=[yr(i=Wu.call(null,e,{items:r[0],flipDurationMs:zm,dropTargetStyle:{outline:"none"}})),Le(e,"consider",r[8]),Le(e,"finalize",r[9])],s=!0)},p(f,c){if(c&163){a=f[0],x();for(let p=0;p<t.length;p+=1)t[p].r();t=rr(t,c,u,1,f,a,n,e,Zo,Ey,null,Cy);for(let p=0;p<t.length;p+=1)t[p].a();ee()}i&&ft(i.update)&&c&1&&i.update.call(null,{items:f[0],flipDurationMs:zm,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 Ey(r,e){let t,n,i,l,s=e[21]+1+"",o,a,u=e[19][dc]+"",f,c,p,d,g,h=Se,v,w,k;n=new at({props:{name:"DragHandle",size:"XL"}});function I(){return e[15](e[21])}return p=new at({props:{name:"Close",hoverable:!0,size:"S"}}),p.$on("click",I),{key:r,first:null,c(){t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),o=F(s),a=F(".\xA0"),f=F(u),c=R(),C(p.$$.fragment),d=R(),y(l,"class","action-header svelte-1dgx8bt"),y(t,"class","action-container svelte-1dgx8bt"),le(t,"selected",e[19]===e[1]),this.first=t},m(T,E){$(T,t,E),S(n,t,null),P(t,i),P(t,l),P(l,o),P(l,a),P(l,f),P(t,c),S(p,t,null),P(t,d),v=!0,w||(k=Le(t,"click",function(){ft(e[7](e[19]))&&e[7](e[19]).apply(this,arguments)}),w=!0)},p(T,E){e=T,(!v||E&1)&&s!==(s=e[21]+1+"")&&Ce(o,s),(!v||E&1)&&u!==(u=e[19][dc]+"")&&Ce(f,u),E&3&&le(t,"selected",e[19]===e[1])},r(){g=t.getBoundingClientRect()},f(){xo(t),h()},a(){h(),h=ea(t,g,ta,{duration:zm})},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),A(n),A(p),w=!1,k()}}}function lle(r){let e=r[16].name+"",t,n;return{c(){t=F(e),n=R()},m(i,l){$(i,t,l),$(i,n,l)},p:Se,d(i){i&&b(t),i&&b(n)}}}function Ty(r){let e,t;return e=new ln({props:{$$slots:{default:[lle]},$$scope:{ctx:r}}}),e.$on("click",r[6](r[16])),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function sle(r){let e,t,n=r[4],i=[];for(let s=0;s<n.length;s+=1)i[s]=Ty(ky(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=ky(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.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function ole(r){let e;return{c(){e=F("Add Action")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ale(r){let e,t;return e=new lt({props:{slot:"control",secondary:!0,$$slots:{default:[ole]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function ule(r){let e,t,n,i=r[0]&&r[0].length>0&&Oy(r);return t=new kr({props:{$$slots:{control:[ale],default:[sle]},$$scope:{ctx:r}}}),{c(){i&&i.c(),e=R(),C(t.$$.fragment)},m(l,s){i&&i.m(l,s),$(l,e,s),S(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=Oy(l),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(x(),_(i,1,1,()=>{i=null}),ee());const o={};s&4194304&&(o.$$scope={dirty:s,ctx:l}),t.$set(o)},i(l){n||(m(i),m(t.$$.fragment,l),n=!0)},o(l){_(i),_(t.$$.fragment,l),n=!1},d(l){i&&i.d(l),l&&b(e),A(t,l)}}}function fle(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[ule]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function cle(r){let e,t;return e=new Ni({props:{$$slots:{sidebar:[fle],default:[ile]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&4194319&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}const zm=150,dc="##eventHandlerType";function ple(r,e,t){let n,i,l,s,o;ae(r,qe,I=>t(13,s=I)),ae(r,nn,I=>t(14,o=I));const a=nle();let{key:u}=e,{actions:f}=e,{bindings:c=[]}=e,p=(f==null?void 0:f.length)?f[0]:null;const d=I=>{f.splice(I,1),t(0,f)},g=I=>()=>{const T={parameters:{},[dc]:I.name,id:Fr.generate()};f||t(0,f=[]),t(0,f=[...f,T]),t(1,p=T)},h=I=>()=>{t(1,p=I)};function v(I){t(0,f=I.detail.items)}function w(I){t(0,f=I.detail.items)}const k=I=>d(I);return r.$$set=I=>{"key"in I&&t(10,u=I.key),"actions"in I&&t(0,f=I.actions),"bindings"in I&&t(11,c=I.bindings)},r.$$.update=()=>{var I;r.$$.dirty&3&&p&&!(f==null?void 0:f.includes(p))&&t(1,p=f==null?void 0:f[0]),r.$$.dirty&25603&&t(12,n=rF(o,s.selectedComponentId,u,f,p==null?void 0:p.id)),r.$$.dirty&6144&&t(3,i=n.concat(c)),r.$$.dirty&1&&f&&f.forEach(T=>{T.id||(T.id=Fr.generate())}),r.$$.dirty&2&&t(2,l=p&&((I=a.find(T=>T.name===p[dc]))==null?void 0:I.component))},[f,p,l,i,a,d,g,h,v,w,u,c,n,s,o,k]}class dle extends se{constructor(e){super();oe(this,e,ple,cle,ie,{key:10,actions:0,bindings:11})}}function mle(r){let e;return{c(){e=F("Define actions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gle(r){let e;return{c(){e=F("Define what actions to run.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function _le(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hle(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[_le]},$$scope:{ctx:r}}}),e.$on("click",r[6]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function $le(r){let e,t,n;function i(s){r[8](s)}let l={slot:"body",eventType:r[1],bindings:r[2],key:r[0]};return r[4]!==void 0&&(l.actions=r[4]),e=new dle({props:l}),K.push(()=>ce(e,"actions",i)),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.eventType=s[1]),o&4&&(a.bindings=s[2]),o&1&&(a.key=s[0]),!t&&o&16&&(t=!0,a.actions=s[4],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function ble(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[mle]},$$scope:{ctx:r}}}),e.$on("click",r[5]);let l={title:"Actions",$$slots:{body:[$le],buttons:[hle],description:[gle]},$$scope:{ctx:r}};return n=new ti({props:l}),r[9](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,[o]){const a={};o&8192&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&8215&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[9](null),A(n,s)}}}function vle(r,e,t){let n;ae(r,Ft,v=>t(10,n=v));const i=_t();let{key:l}=e,{value:s=[]}=e,{name:o}=e,{bindings:a}=e,u,f;const c=()=>{t(4,f=Sn.cloneDeep(s)),u.show()},p=async()=>{const v=f.filter(w=>w["##eventHandlerType"]==="Trigger Automation");for(let w of v)await d(w.parameters);i("change",f),we.success("Component actions saved."),u.hide()},d=async v=>{var w;if(!(v.automationId||!v.newAutomationName))try{await Ft.actions.create({name:v.newAutomationName});const k=n.blockDefinitions.TRIGGER.APP,I=n.selectedAutomation.constructBlock("TRIGGER","APP",k);I.inputs={fields:Object.keys(v.fields).reduce((T,E)=>(T[E]="string",T),{})},Ft.actions.addBlockToAutomation(I),await Ft.actions.save((w=n.selectedAutomation)==null?void 0:w.automation),v.automationId=n.selectedAutomation.automation._id,delete v.newAutomationName}catch{we.error("Error creating automation")}};function g(v){f=v,t(4,f)}function h(v){K[v?"unshift":"push"](()=>{u=v,t(3,u)})}return r.$$set=v=>{"key"in v&&t(0,l=v.key),"value"in v&&t(7,s=v.value),"name"in v&&t(1,o=v.name),"bindings"in v&&t(2,a=v.bindings)},[l,o,a,u,f,c,p,s,g,h]}class wle extends se{constructor(e){super();oe(this,e,vle,ble,ie,{key:0,value:7,name:1,bindings:2})}}function Iy(r,e,t){const n=r.slice();return n[3]=e[t],n}function Ly(r){let e,t=r[3].name+"",n,i;return{c(){e=D("option"),n=F(t),e.__value=i=r[3]._id,e.value=e.__value},m(l,s){$(l,e,s),P(e,n)},p(l,s){s&2&&t!==(t=l[3].name+"")&&Ce(n,t),s&2&&i!==(i=l[3]._id)&&(e.__value=i,e.value=e.__value)},d(l){l&&b(e)}}}function yle(r){let e,t,n,i=r[1].list,l=[];for(let s=0;s<i.length;s+=1)l[s]=Ly(Iy(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=Iy(s,i,a);l[a]?l[a].p(u,o):(l[a]=Ly(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),mt(l,s),s&&b(n)}}}function kle(r){let e,t,n;return t=new Ye({props:{extraThin:!0,secondary:!0,wide:!0,value:r[0],$$slots:{default:[yle]},$$scope:{ctx:r}}}),t.$on("change",r[2]),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","svelte-16jzcsd")},m(i,l){$(i,e,l),S(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),A(t)}}}function Cle(r,e,t){let n;ae(r,Ot,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class Sle extends se{constructor(e){super();oe(this,e,Cle,kle,ie,{value:0})}}function Ale(r){let e,t;return e=new xl({props:{value:r[0],spectrumTheme:r[1].theme}}),e.$on("change",r[2]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Ole(r,e,t){let n;ae(r,qe,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class qm extends se{constructor(e){super();oe(this,e,Ole,Ale,ie,{value:0})}}var Py={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 Ny(r,e,t){const n=r.slice();return n[29]=e[t],n}function Ry(r,e,t){const n=r.slice();return n[32]=e[t],n[34]=t,n}function Ele(r){let e;return{c(){e=F(r[8])},m(t,n){$(t,e,n)},p(t,n){n[0]&256&&Ce(e,t[8])},d(t){t&&b(e)}}}function Tle(r){let e;return{c(){e=D("span"),e.textContent="-"},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function My(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&&Tle();return{c(){e=D("span"),n=F(t),i=R(),u&&u.c(),l=Oe(),y(e,"class","letter svelte-vhpvzd"),le(e,"letter-selected",r[32]===r[2])},m(f,c){$(f,e,c),P(e,n),$(f,i,c),u&&u.m(f,c),$(f,l,c),s||(o=Le(e,"click",a),s=!0)},p(f,c){r=f,c[0]&516&&le(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 Ile(r){let e;return{c(){e=F("Search")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lle(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=F(n),y(e,"class","no-icons svelte-vhpvzd")},m(l,s){$(l,e,s),P(e,t),P(t,i)},p(l,s){s[0]&2&&n!==(n=`There is no icons for this ${l[1]?"search":"page"}`)&&Ce(i,n)},d(l){l&&b(e)}}}function Ple(r){let e,t=!r[5]&&Dy(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=Dy(n),t.c(),t.m(e,null))},d(n){n&&b(e),t&&t.d()}}}function Dy(r){let e,t=r[7],n=[];for(let i=0;i<t.length;i+=1)n[i]=jy(Ny(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=Ny(i,t,s);n[s]?n[s].p(o,l):(n[s]=jy(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){mt(n,i),i&&b(e)}}}function jy(r){let e,t,n,i,l,s,o=r[29]+"",a,u,f,c,p,d,g,h,v,w=r[29]+"",k,I,T,E,L;function M(){return r[24](r[29])}function B(){return r[25](r[29])}return{c(){e=D("div"),t=D("div"),n=D("i"),l=R(),s=D("div"),a=F(o),u=F("-fill"),f=R(),c=D("div"),p=D("div"),d=D("i"),h=R(),v=D("div"),k=F(w),I=F("-line"),T=R(),y(n,"class",i=""+(Wn(`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"),le(e,"selected",r[0]===`ri-${r[29]}-fill`),y(d,"class",g=""+(Wn(`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"),le(c,"selected",r[0]===`ri-${r[29]}-line`)},m(j,U){$(j,e,U),P(e,t),P(t,n),P(e,l),P(e,s),P(s,a),P(s,u),$(j,f,U),$(j,c,U),P(c,p),P(p,d),P(c,h),P(c,v),P(v,k),P(v,I),P(c,T),E||(L=[Le(e,"click",M),Le(c,"click",B)],E=!0)},p(j,U){r=j,U[0]&128&&i!==(i=""+(Wn(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd"))&&y(n,"class",i),U[0]&128&&o!==(o=r[29]+"")&&Ce(a,o),U[0]&129&&le(e,"selected",r[0]===`ri-${r[29]}-fill`),U[0]&128&&g!==(g=""+(Wn(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd"))&&y(d,"class",g),U[0]&128&&w!==(w=r[29]+"")&&Ce(k,w),U[0]&129&&le(c,"selected",r[0]===`ri-${r[29]}-line`)},d(j){j&&b(e),j&&b(f),j&&b(c),E=!1,Tn(L)}}}function Nle(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,E,L,M,B=r[9],j=[];for(let H=0;H<B.length;H+=1)j[H]=My(Ry(r,B,H));function U(H){r[21](H)}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",U)),f=new lt({props:{secondary:!0,$$slots:{default:[Ile]},$$scope:{ctx:r}}}),f.$on("click",r[13]);function G(H,V){return H[7].length>0?Ple:Lle}let Y=G(r),W=Y(r);return{c(){e=D("div"),t=D("div"),n=D("div");for(let H=0;H<j.length;H+=1)j[H].c();i=R(),l=D("div"),s=D("div"),C(o.$$.fragment),u=R(),C(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"),w=F(r[6]),k=R(),I=D("span"),I.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',T=R(),W.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(H,V){$(H,e,V),P(e,t),P(t,n);for(let J=0;J<j.length;J+=1)j[J].m(n,null);P(t,i),P(t,l),P(l,s),S(o,s,null),P(l,u),S(f,l,null),P(t,c),P(t,p),P(p,d),P(d,g),P(d,h),P(d,v),P(v,w),P(d,k),P(d,I),P(e,T),W.m(e,null),E=!0,L||(M=[Le(g,"click",r[22]),Le(I,"click",r[23])],L=!0)},p(H,V){if(V[0]&1540){B=H[9];let re;for(re=0;re<B.length;re+=1){const Q=Ry(H,B,re);j[re]?j[re].p(Q,V):(j[re]=My(Q),j[re].c(),j[re].m(n,null))}for(;re<j.length;re+=1)j[re].d(1);j.length=B.length}const J={};!a&&V[0]&2&&(a=!0,J.value=H[1],pe(()=>a=!1)),o.$set(J);const fe={};V[1]&16&&(fe.$$scope={dirty:V,ctx:H}),f.$set(fe),(!E||V[0]&64)&&Ce(w,H[6]),Y===(Y=G(H))&&W?W.p(H,V):(W.d(1),W=Y(H),W&&(W.c(),W.m(e,null)))},i(H){E||(m(o.$$.fragment,H),m(f.$$.fragment,H),E=!0)},o(H){_(o.$$.fragment,H),_(f.$$.fragment,H),E=!1},d(H){H&&b(e),mt(j,H),A(o),A(f),W.d(),L=!1,Tn(M)}}}function Rle(r){let e,t,n,i,l;t=new Ut({props:{$$slots:{default:[Ele]},$$scope:{ctx:r}}}),t.$on("click",function(){ft(r[4].show)&&r[4].show.apply(this,arguments)});let s={anchor:r[3],dataCy:"icon-popover",$$slots:{default:[Nle]},$$scope:{ctx:r}};return i=new Xu({props:s}),r[26](i),i.$on("open",r[11]),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment)},m(o,a){$(o,e,a),S(t,e,null),r[19](e),$(o,n,a),S(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),A(t),r[19](null),o&&b(n),r[26](null),A(i,o)}}}const Mle=Object.keys(Py).reduce((r,e)=>[...r,...Object.keys(Py[e])],[]);function Um(r){const e=new RegExp(`^${r}`,"i");return Mle.filter(t=>e.test(t))}function Dle(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=Um(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,w,k=!1;async function I(V){t(15,d=1),t(1,c=""),t(5,k=!0),t(2,p=V),t(16,g=Um(V)),await no(),t(5,k=!1)}async function T(){t(5,k=!0);const V=g.findIndex(J=>J.value===u);V!==-1&&t(15,d=Math.ceil(V/f)),await no(),t(5,k=!1)}async function E(){if(u){const V=n.substring(0,1);await I(V),await T()}}async function L(V){t(5,k=!0),V&&d<i?t(15,d++,d):!V&&d>1&&t(15,d--,d),await no(),t(5,k=!1)}async function M(){t(15,d=1),t(5,k=!0),t(16,g=Um(c)),await no(),t(5,k=!1)}function B(V){K[V?"unshift":"push"](()=>{v=V,t(3,v)})}const j=V=>I(V);function U(V){c=V,t(1,c)}const q=()=>L(!1),G=()=>L(!0),Y=V=>t(0,u=`ri-${V}-fill`),W=V=>t(0,u=`ri-${V}-line`);function H(V){K[V?"unshift":"push"](()=>{w=V,t(4,w)})}return r.$$set=V=>{"value"in V&&t(0,u=V.value),"maxIconsPerPage"in V&&t(14,f=V.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,w,k,o,s,n,h,I,E,L,M,f,d,g,i,l,B,j,U,q,G,Y,W,H]}class jle extends se{constructor(e){super();oe(this,e,Dle,Rle,ie,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function Ble(r){let e,t;return e=new Ye({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function zle(r,e,t){let n,i,l,s,o;ae(r,nn,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=rl(o,a)),r.$$.dirty&384&&t(6,i=Oi(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 qle extends se{constructor(e){super();oe(this,e,zle,Ble,ie,{componentInstance:4,value:5,placeholder:0})}}function Ule(r){let e,t;return e=new ro({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Fle(r,e,t){let n,i,l,s,o;ae(r,nn,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=rl(o,a)),r.$$.dirty&384&&t(6,i=Oi(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 Vle extends se{constructor(e){super();oe(this,e,Fle,Ule,ie,{componentInstance:4,value:5,placeholder:0})}}function Hle(r){let e,t;return e=new ro({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function By(r,e){return Array.isArray(r)||(r=[]),r.filter(t=>e.indexOf(t)!==-1)}function Wle(r,e,t){let n,i,l,s,o,a;ae(r,Ot,h=>t(9,o=h)),ae(r,nn,h=>t(8,a=h));let{componentInstance:u={}}=e,{value:f=""}=e,{placeholder:c}=e;const p=_t();function d(h,v){let w=Object.values(v);if(!(h==null?void 0:h.tableId))return w.map(I=>I.name);const k=o.list.find(I=>I._id===h.tableId);return Rm(w,{allowLinks:k==null?void 0:k.sql}).map(I=>I.name)}const g=h=>{t(2,s=By(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=rl(a,u)),r.$$.dirty&384&&t(6,i=Oi(a,n).schema),r.$$.dirty&192&&t(1,l=d(n,i||{})),r.$$.dirty&34&&t(2,s=By(f,l))},[c,l,s,g,u,f,i,n,a]}class Gle extends se{constructor(e){super();oe(this,e,Wle,Hle,ie,{componentInstance:4,value:5,placeholder:0})}}function Yle(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=Yi(i,n[l]);return e=new iy({props:i}),e.$on("change",r[2]),{c(){C(e.$$.fragment)},m(l,s){S(e,l,s),t=!0},p(l,[s]){const o=s&3?qu(n,[s&2&&Uu(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){A(e,l)}}}function Jle(r,e,t){const n=[{name:"Custom",label:"Custom"}];function i(l){dt.call(this,r,l)}return r.$$set=l=>{t(1,e=Yi(Yi({},e),Vu(l)))},e=Vu(e),[n,e,i]}class Xle extends se{constructor(e){super();oe(this,e,Jle,Yle,ie,{})}}function zy(r,e,t){const n=r.slice();return n[8]=e[t][0],n[0]=e[t][1],n}function Qle(r){let e=r[4][r[0]].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[4][n[0]].name+"")&&Ce(t,e)},d(n){n&&b(t)}}}function Kle(r){let e=r[0].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p:Se,d(n){n&&b(t)}}}function qy(r){let e,t,n,i,l,s,o,a;t=new at({props:{color:"white",size:"L",name:r[0].icon}}),i=new Ue({props:{size:"XS",$$slots:{default:[Kle]},$$scope:{ctx:r}}});function u(){return r[5](r[8])}return{c(){e=D("button"),C(t.$$.fragment),n=R(),C(i.$$.fragment),l=R(),y(e,"class","layout svelte-dl48fo"),le(e,"selected",r[1]===r[8])},m(f,c){$(f,e,c),S(t,e,null),P(e,n),S(i,e,null),P(e,l),s=!0,o||(a=Le(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&&le(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),A(t),A(i),o=!1,a()}}}function Zle(r){let e,t,n=Object.entries(r[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=qy(zy(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=zy(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=qy(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function xle(r){let e,t;return e=new Tt({props:{onConfirm:r[6],size:"L",title:"Select layout",$$slots:{default:[Zle]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function ese(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[Qle]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[2].show)&&r[2].show.apply(this,arguments)});let l={$$slots:{default:[xle]},$$scope:{ctx:r}};return n=new kt({props:l}),r[7](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[7](null),A(n,s)}}}function tse(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 nse extends se{constructor(e){super();oe(this,e,tse,ese,ie,{value:0})}}function Uy(r,e,t){const n=r.slice();return n[12]=e[t],n[13]=e,n[14]=t,n}function Fy(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=Uy(r,a,f),p=u(c);n.set(p,t[f]=Vy(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=[yr(i=Wu.call(null,e,{items:r[0],flipDurationMs:Fm,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Le(e,"finalize",r[6]),Le(e,"consider",r[5])],s=!0)},p(f,c){if(c&23){a=f[0],x();for(let p=0;p<t.length;p+=1)t[p].r();t=rr(t,c,u,1,f,a,n,e,Zo,Vy,null,Uy);for(let p=0;p<t.length;p+=1)t[p].a();ee()}i&&ft(i.update)&&c&3&&i.update.call(null,{items:f[0],flipDurationMs:Fm,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 Vy(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v=Se,w,k,I;i=new at({props:{name:"DragHandle",size:"XL"}});function T(j){e[9](j,e[12])}let E={placeholder:"Text"};e[12].text!==void 0&&(E.value=e[12].text),o=new et({props:E}),K.push(()=>ce(o,"value",T));function L(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 bs({props:M}),K.push(()=>ce(f,"value",L));function B(){return e[11](e[12])}return d=new at({props:{name:"Close",hoverable:!0,size:"S"}}),d.$on("click",B),{key:r,first:null,c(){t=D("div"),n=D("div"),C(i.$$.fragment),s=R(),C(o.$$.fragment),u=R(),C(f.$$.fragment),p=R(),C(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,U){$(j,t,U),P(t,n),S(i,n,null),P(t,s),S(o,t,null),P(t,u),S(f,t,null),P(t,p),S(d,t,null),P(t,g),w=!0,k||(I=Le(n,"mousedown",e[8]),k=!0)},p(j,U){e=j,(!w||U&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const q={};!a&&U&1&&(a=!0,q.value=e[12].text,pe(()=>a=!1)),o.$set(q);const G={};U&4&&(G.options=e[2]),!c&&U&1&&(c=!0,G.value=e[12].url,pe(()=>c=!1)),f.$set(G)},r(){h=t.getBoundingClientRect()},f(){xo(t),v()},a(){v(),v=ea(t,h,ta,{duration:Fm})},i(j){w||(m(i.$$.fragment,j),m(o.$$.fragment,j),m(f.$$.fragment,j),m(d.$$.fragment,j),w=!0)},o(j){_(i.$$.fragment,j),_(o.$$.fragment,j),_(f.$$.fragment,j),_(d.$$.fragment,j),w=!1},d(j){j&&b(t),A(i),A(o),A(f),A(d),k=!1,I()}}}function rse(r){let e;return{c(){e=F("Add Link")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ise(r){var s;let e,t,n,i,l=((s=r[0])==null?void 0:s.length)&&Fy(r);return n=new lt({props:{secondary:!0,icon:"Add",$$slots:{default:[rse]},$$scope:{ctx:r}}}),n.$on("click",r[3]),{c(){l&&l.c(),e=R(),t=D("div"),C(n.$$.fragment)},m(o,a){l&&l.m(o,a),$(o,e,a),$(o,t,a),S(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=Fy(o),l.c(),m(l,1),l.m(e.parentNode,e)):l&&(x(),_(l,1,1,()=>{l=null}),ee());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),A(n)}}}function lse(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[ise]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-1mnha07")},m(i,l){$(i,e,l),S(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),A(t)}}}function sse(r){let e,t;return e=new Ni({props:{$$slots:{default:[lse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const Fm=150;function ose(r,e,t){let n,i;ae(r,qe,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=Fr.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 ase extends se{constructor(e){super();oe(this,e,ose,sse,ie,{links:0})}}function use(r){let e;return{c(){e=F("Configure links")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function fse(r){let e;return{c(){e=F("Configure the links in your navigation bar.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cse(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pse(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[cse]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function dse(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 ase({props:l}),K.push(()=>ce(e,"links",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function mse(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[use]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Navigation Links",$$slots:{body:[dse],buttons:[pse],description:[fse]},$$scope:{ctx:r}};return n=new ti({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function gse(r,e,t){let{value:n=[]}=e,i,l=Sn.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 _se extends se{constructor(e){super();oe(this,e,gse,mse,ie,{value:3})}}function hse(r){let e;return{c(){e=F("Define filters")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $se(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function bse(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[$se]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function vse(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 Mm({props:l}),K.push(()=>ce(e,"filters",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function wse(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[hse]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)});let l={title:"Filtering",$$slots:{body:[vse],buttons:[bse]},$$scope:{ctx:r}};return n=new ti({props:l}),r[11](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[11](null),A(n,s)}}}function yse(r,e,t){let n,i,l,s;ae(r,nn,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=rl(s,u)),r.$$.dirty&768&&t(7,i=(v=Oi(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 kse extends se{constructor(e){super();oe(this,e,yse,wse,ie,{value:5,componentInstance:6,bindings:0})}}function Hy(r){let e,t,n,i,l;return t=new at({props:{size:"S",name:"FlashOn"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","icon svelte-11tgeq8"),y(e,"data-cy","text-binding-button")},m(s,o){$(s,e,o),S(t,e,null),n=!0,i||(l=Le(e,"click",function(){ft(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),A(t),i=!1,l()}}}function Cse(r){let e;return{c(){e=F("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sse(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ase(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Sse]},$$scope:{ctx:r}}}),e.$on("click",r[12]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Ose(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&&C(e.$$.fragment),t=Oe()},m(s,o){e&&S(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){x();const u=e;_(u.$$.fragment,1,0,()=>{A(u,1)}),ee()}i?(e=new i(l(s)),e.$on("change",s[19]),C(e.$$.fragment),m(e.$$.fragment,1),S(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&&A(e,s)}}}function Ese(r){let e,t,n,i,l,s;t=new bs({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]&&Hy(r),a={title:r[2],$$slots:{body:[Ose],buttons:[Ase],description:[Cse]},$$scope:{ctx:r}};return l=new ti({props:a}),r[20](l),{c(){e=D("div"),C(t.$$.fragment),n=R(),o&&o.c(),i=R(),C(l.$$.fragment),y(e,"class","control svelte-11tgeq8"),le(e,"disabled",r[5])},m(u,f){$(u,e,f),S(t,e,null),P(e,n),o&&o.m(e,null),$(u,i,f),S(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&&(x(),_(o,1,1,()=>{o=null}),ee()):o?(o.p(u,f),f&32&&m(o,1)):(o=Hy(u),o.c(),m(o,1),o.m(e,null)),f&32&&le(e,"disabled",u[5]);const p={};f&4&&(p.title=u[2]),f&8389315&&(p.$$scope={dirty:f,ctx:u}),l.$set(p)},i(u){s||(m(t.$$.fragment,u),m(o),m(l.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(o),_(l.$$.fragment,u),s=!1},d(u){u&&b(e),A(t),o&&o.d(),u&&b(i),r[20](null),A(l,u)}}}function Tse(r,e,t){let n,i,l,s,{panel:o=Lm}=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 w=_t();let k;const I=()=>{T(i),k.hide()},T=(U,q)=>{q&&!(g==null?void 0:g.includes(U))&&(U=`{{ ${U} }}`),w("change",Ns(u,U))},E=(U,q,G)=>G?[].concat(U||[]).concat((q==null?void 0:q.map(Y=>Y.readableBinding))||[]):U,L=U=>T(U.detail,!1),M=U=>T(U.detail,!0),B=U=>t(9,i=U.detail);function j(U){K[U?"unshift":"push"](()=>{k=U,t(8,k)})}return r.$$set=U=>{"panel"in U&&t(0,o=U.panel),"value"in U&&t(14,a=U.value),"bindings"in U&&t(1,u=U.bindings),"title"in U&&t(2,f=U.title),"placeholder"in U&&t(3,c=U.placeholder),"label"in U&&t(4,p=U.label),"disabled"in U&&t(5,d=U.disabled),"options"in U&&t(15,g=U.options),"allowJS"in U&&t(6,h=U.allowJS),"appendBindingsAsOptions"in U&&t(16,v=U.appendBindingsAsOptions)},r.$$.update=()=>{r.$$.dirty&16386&&t(7,n=To(u,a)),r.$$.dirty&128&&t(9,i=n),r.$$.dirty&16384&&t(11,l=Xf(a)),r.$$.dirty&98306&&t(10,s=E(g,u,v))},[o,u,f,c,p,d,h,n,k,i,s,l,I,T,a,g,v,L,M,B,j]}class Wy extends se{constructor(e){super();oe(this,e,Tse,Ese,ie,{panel:0,value:14,bindings:1,title:2,placeholder:3,label:4,disabled:5,options:15,allowJS:6,appendBindingsAsOptions:16})}}function Ise(r){let e,t;return e=new Wy({props:{value:r[0],bindings:r[1],options:r[2],appendBindingsAsOptions:!1}}),e.$on("change",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Lse(r,e,t){let n,i;ae(r,qe,a=>t(3,i=a));let{value:l}=e,{bindings:s}=e;function o(a){dt.call(this,r,a)}return r.$$set=a=>{"value"in a&&t(0,l=a.value),"bindings"in a&&t(1,s=a.bindings)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=i.screens.map(a=>{var u;return(u=a.routing)==null?void 0:u.route}).filter(a=>a!=null))},[l,s,n,i,o]}class Pse extends se{constructor(e){super();oe(this,e,Lse,Ise,ie,{value:0,bindings:1})}}function Gy(r,e,t){const n=r.slice();return n[6]=e[t],n[7]=e,n[8]=t,n}function Yy(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[Nse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Nse(r){let e;return{c(){e=F("Add an option to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jy(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=Gy(r,l,o),u=s(a);n.set(u,t[o]=Xy(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],x(),t=rr(t,a,s,1,o,l,n,e,Ur,Xy,null,Gy),ee())},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 Xy(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 at({props:{name:"Close",hoverable:!0,size:"S"}}),u.$on("click",h),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),l=R(),C(s.$$.fragment),a=R(),C(u.$$.fragment),this.first=t},m(v,w){$(v,t,w),S(n,v,w),$(v,l,w),S(s,v,w),$(v,a,w),S(u,v,w),f=!0},p(v,w){e=v;const k={};!i&&w&1&&(i=!0,k.value=e[6].label,pe(()=>i=!1)),n.$set(k);const I={};!o&&w&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),A(n,v),v&&b(l),A(s,v),v&&b(a),A(u,v)}}}function Rse(r){let e;return{c(){e=F("Add Option")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Mse(r){var a;let e,t,n,i,l,s=!r[0].length&&Yy(r),o=((a=r[0])==null?void 0:a.length)&&Jy(r);return i=new lt({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[Rse]},$$scope:{ctx:r}}}),i.$on("click",r[2]),{c(){s&&s.c(),e=R(),o&&o.c(),t=R(),n=D("div"),C(i.$$.fragment)},m(u,f){s&&s.m(u,f),$(u,e,f),o&&o.m(u,f),$(u,t,f),$(u,n,f),S(i,n,null),l=!0},p(u,f){var p;u[0].length?s&&(x(),_(s,1,1,()=>{s=null}),ee()):s?f&1&&m(s,1):(s=Yy(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=Jy(u),o.c(),m(o,1),o.m(t.parentNode,t)):o&&(x(),_(o,1,1,()=>{o=null}),ee());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),A(i)}}}function Dse(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Mse]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-12ls1u")},m(i,l){$(i,e,l),S(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),A(t)}}}function jse(r){let e,t;return e=new Ni({props:{$$slots:{default:[Dse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Bse(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:Fr.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 zse extends se{constructor(e){super();oe(this,e,Bse,jse,ie,{options:0})}}function qse(r){let e;return{c(){e=F("Define Options")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Use(r){let e;return{c(){e=F("Define the options for this picker.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Fse(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Vse(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Fse]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Hse(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 zse({props:l}),K.push(()=>ce(e,"options",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Wse(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[qse]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Options",$$slots:{body:[Hse],buttons:[Vse],description:[Use]},$$scope:{ctx:r}};return n=new ti({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function Gse(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));for(let f=0;f<s.length;f++){let c=s[f];c.label=c.label?c.label:c.value,c.value=c.value?c.value:c.label,t(1,s[f]=c,s)}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 Yse extends se{constructor(e){super();oe(this,e,Gse,Wse,ie,{value:3})}}function Jse(r){let e,t;return e=new bs({props:{value:r[0],options:r[1]}}),e.$on("change",r[8]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Xse(r,e,t){let n,i,l,s,o;ae(r,nn,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(w=>w.split("/")[1]),h=h.filter(w=>v.includes(w[1].type)),h.map(w=>w[0])};function p(d){dt.call(this,r,d)}return r.$$set=d=>{"componentInstance"in d&&t(2,a=d.componentInstance),"value"in d&&t(0,u=d.value),"type"in d&&t(3,f=d.type)},r.$$.update=()=>{r.$$.dirty&132&&t(6,n=rc(o==null?void 0:o.props,a._id,d=>d._component==="@budibase/standard-components/form")),r.$$.dirty&192&&t(5,i=rl(o,n)),r.$$.dirty&160&&t(4,l=Oi(o,i,{formSchema:!0}).schema),r.$$.dirty&24&&t(1,s=c(l,f))},[u,s,a,f,l,i,n,o,p]}class il extends se{constructor(e){super();oe(this,e,Xse,Jse,ie,{componentInstance:2,value:0,type:3})}}function Qy(r,e,t){const n=r.slice();return n[29]=e[t],n[30]=e,n[31]=t,n}function Ky(r,e,t){const n=r.slice();return n[29]=e[t],n}function Qse(r){let e;return{c(){e=F("Schema validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Kse(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[xse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Zse(r){let e,t,n=r[5],i=[];for(let s=0;s<n.length;s+=1)i[s]=Zy(Ky(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=Ky(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Zy(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function xse(r){let e;return{c(){e=F("There are no built-in validation rules from the schema.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Zy(r){let e,t,n,i,l,s,o,a,u,f,c,p;return t=new Ye({props:{placeholder:"Constraint",value:r[29].constraint,options:r[4],disabled:!0}}),i=new Ye({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),s=new Rn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:!0}}),a=new Rn({props:{placeholder:"Error message",value:r[29].error,bindings:r[1],disabled:!0}}),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),l=R(),C(s.$$.fragment),o=R(),C(a.$$.fragment),u=R(),f=D("div"),c=R(),y(e,"class","rule schema svelte-lcp0nr")},m(d,g){$(d,e,g),S(t,e,null),P(e,n),S(i,e,null),P(e,l),S(s,e,null),P(e,o),S(a,e,null),P(e,u),P(e,f),P(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 w={};g[0]&32&&(w.value=d[29].error),g[0]&2&&(w.bindings=d[1]),a.$set(w)},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),A(t),A(i),A(s),A(a)}}}function eoe(r){let e,t,n,i,l,s;e=new ct({props:{size:"XS",$$slots:{default:[Qse]},$$scope:{ctx:r}}});const o=[Zse,Kse],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(){C(e.$$.fragment),t=R(),i.c(),l=Oe()},m(f,c){S(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):(x(),_(a[d],1,1,()=>{a[d]=null}),ee(),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){A(e,f),f&&b(t),a[n].d(f),f&&b(l)}}}function toe(r){let e;return{c(){e=F("Custom validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xy(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=Qy(r,l,o),u=s(a);n.set(u,t[o]=e6(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],x(),t=rr(t,a,s,1,o,l,n,e,Ur,e6,null,Qy),ee())},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 noe(r){let e,t,n,i,l;const s=[uoe,aoe,ooe,soe,loe],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):(x(),_(o[c],1,1,()=>{o[c]=null}),ee(),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 roe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function ioe(r){let e,t;function n(...i){return r[15](r[29],r[30],r[31],...i)}return e=new Rn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:r[29].constraint==="required"}}),e.$on("change",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function loe(r){let e,t;return e=new Rn({props:{disabled:!0}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p:Se,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function soe(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 Vl({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function ooe(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 Ye({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function aoe(r){let e,t;return e=new Ye({props:{disabled:r[29].constraint==="required",options:r[2].schema[r[3]].constraints.inclusion,getOptionLabel:goe,getOptionValue:_oe,value:r[29].value}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function uoe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function e6(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I;function T(W){e[13](W,e[29])}let E={options:e[4],placeholder:"Constraint"};e[29].constraint!==void 0&&(E.value=e[29].constraint),n=new Ye({props:E}),K.push(()=>ce(n,"value",T));function L(W){e[14](W,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 Ye({props:M}),K.push(()=>ce(s,"value",L));const B=[ioe,roe,noe],j=[];function U(W,H){return W[29].valueType==="Binding"?0:((u==null||H[0]&1)&&(u=!!(W[29].type!=="array"&&["maxLength","minLength","regex","notRegex","contains","notContains"].includes(W[29].constraint))),u?1:2)}f=U(e,[-1,-1]),c=j[f]=B[f](e);function q(...W){return e[20](e[29],e[30],e[31],...W)}d=new Rn({props:{placeholder:"Error message",value:e[29].error,bindings:e[1]}}),d.$on("change",q);function G(){return e[21](e[29])}h=new at({props:{name:"Duplicate",hoverable:!0,size:"S"}}),h.$on("click",G);function Y(){return e[22](e[29])}return w=new at({props:{name:"Close",hoverable:!0,size:"S"}}),w.$on("click",Y),{key:r,first:null,c(){t=D("div"),C(n.$$.fragment),l=R(),C(s.$$.fragment),a=R(),c.c(),p=R(),C(d.$$.fragment),g=R(),C(h.$$.fragment),v=R(),C(w.$$.fragment),k=R(),y(t,"class","rule svelte-lcp0nr"),this.first=t},m(W,H){$(W,t,H),S(n,t,null),P(t,l),S(s,t,null),P(t,a),j[f].m(t,null),P(t,p),S(d,t,null),P(t,g),S(h,t,null),P(t,v),S(w,t,null),P(t,k),I=!0},p(W,H){e=W;const V={};H[0]&16&&(V.options=e[4]),!i&&H[0]&1&&(i=!0,V.value=e[29].constraint,pe(()=>i=!1)),n.$set(V);const J={};H[0]&1&&(J.disabled=e[29].constraint==="required"),!o&&H[0]&1&&(o=!0,J.value=e[29].valueType,pe(()=>o=!1)),s.$set(J);let fe=f;f=U(e,H),f===fe?j[f].p(e,H):(x(),_(j[fe],1,1,()=>{j[fe]=null}),ee(),c=j[f],c?c.p(e,H):(c=j[f]=B[f](e),c.c()),m(c,1),c.m(t,p));const re={};H[0]&1&&(re.value=e[29].error),H[0]&2&&(re.bindings=e[1]),d.$set(re)},i(W){I||(m(n.$$.fragment,W),m(s.$$.fragment,W),m(c),m(d.$$.fragment,W),m(h.$$.fragment,W),m(w.$$.fragment,W),I=!0)},o(W){_(n.$$.fragment,W),_(s.$$.fragment,W),_(c),_(d.$$.fragment,W),_(h.$$.fragment,W),_(w.$$.fragment,W),I=!1},d(W){W&&b(t),A(n),A(s),j[f].d(),A(d),A(h),A(w)}}}function foe(r){let e;return{c(){e=F("Add Rule")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function coe(r){var a;let e,t,n,i,l,s;e=new ct({props:{size:"XS",$$slots:{default:[toe]},$$scope:{ctx:r}}});let o=((a=r[0])==null?void 0:a.length)&&xy(r);return l=new lt({props:{secondary:!0,icon:"Add",$$slots:{default:[foe]},$$scope:{ctx:r}}}),l.$on("click",r[6]),{c(){C(e.$$.fragment),t=R(),o&&o.c(),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","button")},m(u,f){S(e,u,f),$(u,t,f),o&&o.m(u,f),$(u,n,f),$(u,i,f),S(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=xy(u),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(x(),_(o,1,1,()=>{o=null}),ee());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){A(e,u),u&&b(t),o&&o.d(u),u&&b(n),u&&b(i),A(l)}}}function poe(r){var l;let e,t,n,i;return e=new ze({props:{noPadding:!0,gap:((l=r[5])==null?void 0:l.length)?"S":"XS",$$slots:{default:[eoe]},$$scope:{ctx:r}}}),n=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[coe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),A(n,s)}}}function doe(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"M",$$slots:{default:[poe]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-lcp0nr")},m(i,l){$(i,e,l),S(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),A(t)}}}function moe(r){let e,t;return e=new Ni({props:{$$slots:{default:[doe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const goe=r=>r,_oe=r=>r;function hoe(r,e,t){let n,i,l,s,o,a,u;ae(r,ai,V=>t(11,a=V)),ae(r,nn,V=>t(12,u=V));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=V=>g[V],v=(V,J)=>{if(!V||!J)return null;const fe=rc(V.props,J._id,re=>re._component.endsWith("/form"));return Oi(V,fe==null?void 0:fe.dataSource)},w=(V,J)=>{var te,_e,Re,be,he,ve;if(!V||!J)return[];const fe=(te=J.schema)==null?void 0:te[V],re=fe==null?void 0:fe.constraints;if(!re)return[];let Q=[];if((V===((_e=J==null?void 0:J.table)==null?void 0:_e.primaryDisplay)||((Re=re.presence)==null?void 0:Re.allowEmpty)===!1)&&Q.push({constraint:"required",error:"Required field"}),k((be=re.length)==null?void 0:be.maximum)){const Ie=re.length.maximum;Q.push({constraint:"maxLength",value:Ie,error:`Maximum ${Ie} characters`})}if(k((he=re.numericality)==null?void 0:he.greaterThanOrEqualTo)){const Ie=re.numericality.greaterThanOrEqualTo;Q.push({constraint:"minValue",value:Ie,error:`Minimum value is ${Ie}`})}if(k((ve=re.numericality)==null?void 0:ve.lessThanOrEqualTo)){const Ie=re.numericality.lessThanOrEqualTo;Q.push({constraint:"maxValue",value:Ie,error:`Maximum value is ${Ie}`})}return Q},k=V=>V!=null&&V!=="",I=()=>{t(0,f=[...f||[],{valueType:"Binding",type:s,id:Fr.generate(),value:s=="array"?[]:null}])},T=V=>{t(0,f=f.filter(J=>J.id!==V))},E=V=>{const J=f.find(re=>re.id===V),fe=it(Ae({},J),{id:Fr.generate()});t(0,f=[...f,fe])};function L(V,J){r.$$.not_equal(J.constraint,V)&&(J.constraint=V,t(0,f))}function M(V,J){r.$$.not_equal(J.valueType,V)&&(J.valueType=V,t(0,f))}const B=(V,J,fe,re)=>t(0,J[fe].value=re.detail,f);function j(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}function U(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}function q(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}function G(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}const Y=(V,J,fe,re)=>t(0,J[fe].error=re.detail,f),W=V=>E(V.id),H=V=>T(V.id);return r.$$set=V=>{"rules"in V&&t(0,f=V.rules),"bindings"in V&&t(1,c=V.bindings),"type"in V&&t(9,p=V.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=w(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,E,p,s,a,u,L,M,B,j,U,q,G,Y,W,H]}class $oe extends se{constructor(e){super();oe(this,e,hoe,moe,ie,{rules:0,bindings:1,type:9},null,[-1,-1])}}function boe(r){let e;return{c(){e=F("Configure validation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function voe(r){let e;return{c(){e=F("Configure validation rules for this field.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function woe(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yoe(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[woe]},$$scope:{ctx:r}}}),e.$on("click",r[5]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function koe(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 $oe({props:l}),K.push(()=>ce(e,"rules",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Coe(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[boe]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[4].show)&&r[4].show.apply(this,arguments)});let l={title:"Validation Rules",$$slots:{body:[koe],buttons:[yoe],description:[voe]},$$scope:{ctx:r}};return n=new ti({props:l}),r[7](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[7](null),A(n,s)}}}function Soe(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 Ds extends se{constructor(e){super();oe(this,e,Soe,Coe,ie,{value:0,bindings:1,componentDefinition:2,type:3})}}function Aoe(r){let e;return{c(){e=F("Background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ooe(r){let e,t,n,i;return e=new Je({props:{$$slots:{default:[Aoe]},$$scope:{ctx:r}}}),n=new xl({props:{value:r[0].background,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[5]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(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){A(e,l),l&&b(t),A(n,l)}}}function Eoe(r){let e;return{c(){e=F("Text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Toe(r){let e,t,n,i;return e=new Je({props:{$$slots:{default:[Eoe]},$$scope:{ctx:r}}}),n=new xl({props:{value:r[0].color,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[6]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(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){A(e,l),l&&b(t),A(n,l)}}}function Ioe(r){let e,t,n,i,l,s,o,a,u,f,c,p;function d(w){r[2](w)}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(w){r[3](w)}let v={label:"Alignment",options:["Left","Center","Right"],placeholder:"Default"};return r[0].align!==void 0&&(v.value=r[0].align),i=new Ye({props:v}),K.push(()=>ce(i,"value",h)),o=new Rn({props:{label:"Value",value:r[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]"}]}}),o.$on("change",r[4]),u=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Ooe]},$$scope:{ctx:r}}}),c=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Toe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),n=R(),C(i.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),f=R(),C(c.$$.fragment)},m(w,k){S(e,w,k),$(w,n,k),S(i,w,k),$(w,s,k),S(o,w,k),$(w,a,k),S(u,w,k),$(w,f,k),S(c,w,k),p=!0},p(w,k){const I={};!t&&k&1&&(t=!0,I.value=w[0].width,pe(()=>t=!1)),e.$set(I);const T={};!l&&k&1&&(l=!0,T.value=w[0].align,pe(()=>l=!1)),i.$set(T);const E={};k&1&&(E.value=w[0].template),o.$set(E);const L={};k&131&&(L.$$scope={dirty:k,ctx:w}),u.$set(L);const M={};k&131&&(M.$$scope={dirty:k,ctx:w}),c.$set(M)},i(w){p||(m(e.$$.fragment,w),m(i.$$.fragment,w),m(o.$$.fragment,w),m(u.$$.fragment,w),m(c.$$.fragment,w),p=!0)},o(w){_(e.$$.fragment,w),_(i.$$.fragment,w),_(o.$$.fragment,w),_(u.$$.fragment,w),_(c.$$.fragment,w),p=!1},d(w){A(e,w),w&&b(n),A(i,w),w&&b(s),A(o,w),w&&b(a),A(u,w),w&&b(f),A(c,w)}}}function Loe(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Ioe]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-4eq5in")},m(i,l){$(i,e,l),S(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),A(t)}}}function Poe(r){let e,t;return e=new Ni({props:{$$slots:{default:[Loe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Noe(r,e,t){let n;ae(r,qe,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 Roe extends se{constructor(e){super();oe(this,e,Noe,Poe,ie,{column:0})}}function Moe(r){let e,t=r[0].name+"",n,i;return{c(){e=F('"'),n=F(t),i=F('" column settings')},m(l,s){$(l,e,s),$(l,n,s),$(l,i,s)},p(l,s){s&1&&t!==(t=l[0].name+"")&&Ce(n,t)},d(l){l&&b(e),l&&b(n),l&&b(i)}}}function Doe(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function joe(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Doe]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Boe(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 Roe({props:l}),K.push(()=>ce(e,"column",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function zoe(r){let e,t,n,i;e=new at({props:{name:"Settings",hoverable:!0,size:"S"}}),e.$on("click",r[3]);let l={title:"Table Columns",$$slots:{body:[Boe],buttons:[joe],description:[Moe]},$$scope:{ctx:r}};return n=new ti({props:l}),r[6](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[6](null),A(n,s)}}}function qoe(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 Uoe extends se{constructor(e){super();oe(this,e,qoe,zoe,ie,{column:0})}}function t6(r,e,t){const n=r.slice();return n[19]=e[t],n[20]=e,n[21]=t,n}function Foe(r){let e,t,n,i;return n=new Ue({props:{size:"S",$$slots:{default:[Hoe]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),y(t,"class","wide svelte-r88m8w"),y(e,"class","column svelte-r88m8w")},m(l,s){$(l,e,s),P(e,t),S(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),A(n)}}}function Voe(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Yoe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Hoe(r){let e,t,n;return{c(){e=F(`By default, all table columns will automatically be shown.
|
|
895
|
+
being executed.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Vie(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g;t=new Ue({props:{size:"S",$$slots:{default:[Fie]},$$scope:{ctx:r}}});function h(E){r[4](E)}let v={options:r[2],placeholder:null};r[0].type!==void 0&&(v.value=r[0].type),i=new Ye({props:v}),K.push(()=>ce(i,"value",h)),o=new Rn({props:{placeholder:"Value",value:r[0].value,bindings:r[1]}}),o.$on("change",r[5]);function w(E){r[6](E)}let k={options:r[3],placeholder:null};r[0].operator!==void 0&&(k.value=r[0].operator),u=new Ye({props:k}),K.push(()=>ce(u,"value",w));function I(E){r[7](E)}let T={placeholder:"Reference value",bindings:r[1]};return r[0].referenceValue!==void 0&&(T.value=r[0].referenceValue),p=new Rn({props:T}),K.push(()=>ce(p,"value",I)),p.$on("change",r[8]),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),c=R(),C(p.$$.fragment),y(e,"class","root svelte-1yfkfsp")},m(E,L){$(E,e,L),S(t,e,null),P(e,n),S(i,e,null),P(e,s),S(o,e,null),P(e,a),S(u,e,null),P(e,c),S(p,e,null),g=!0},p(E,[L]){const M={};L&512&&(M.$$scope={dirty:L,ctx:E}),t.$set(M);const B={};!l&&L&1&&(l=!0,B.value=E[0].type,pe(()=>l=!1)),i.$set(B);const j={};L&1&&(j.value=E[0].value),L&2&&(j.bindings=E[1]),o.$set(j);const U={};!f&&L&1&&(f=!0,U.value=E[0].operator,pe(()=>f=!1)),u.$set(U);const q={};L&2&&(q.bindings=E[1]),!d&&L&1&&(d=!0,q.value=E[0].referenceValue,pe(()=>d=!1)),p.$set(q)},i(E){g||(m(t.$$.fragment,E),m(i.$$.fragment,E),m(o.$$.fragment,E),m(u.$$.fragment,E),m(p.$$.fragment,E),g=!0)},o(E){_(t.$$.fragment,E),_(i.$$.fragment,E),_(o.$$.fragment,E),_(u.$$.fragment,E),_(p.$$.fragment,E),g=!1},d(E){E&&b(e),A(t),A(i),A(o),A(u),A(p)}}}function Hie(r,e,t){let{parameters:n}=e,{bindings:i}=e;const l=[{label:"Continue if",value:"continue"},{label:"Stop if",value:"stop"}],s=[{label:"Equals",value:"equal"},{label:"Not equals",value:"notEqual"}];Pt(()=>{n.type||t(0,n.type="continue",n),n.operator||t(0,n.operator="equal",n)});function o(p){r.$$.not_equal(n.type,p)&&(n.type=p,t(0,n))}const a=p=>t(0,n.value=p.detail,n);function u(p){r.$$.not_equal(n.operator,p)&&(n.operator=p,t(0,n))}function f(p){r.$$.not_equal(n.referenceValue,p)&&(n.referenceValue=p,t(0,n))}const c=p=>t(0,n.referenceValue=p.detail,n);return r.$$set=p=>{"parameters"in p&&t(0,n=p.parameters),"bindings"in p&&t(1,i=p.bindings)},[n,i,l,s,o,a,u,f,c]}class Wie extends se{constructor(e){super();oe(this,e,Hie,Vie,ie,{parameters:0,bindings:1})}}function Gie(r){let e;return{c(){e=F("Form")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Yie(r){let e;return{c(){e=F("Type")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jie(r){let e;return{c(){e=F("Field")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yy(r){let e,t,n,i;return e=new Je({props:{small:!0,$$slots:{default:[Xie]},$$scope:{ctx:r}}}),n=new Rn({props:{bindings:r[1],value:r[0].value}}),n.$on("change",r[12]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(n,l,s),i=!0},p(l,s){const o={};s&8192&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&2&&(a.bindings=l[1]),s&1&&(a.value=l[0].value),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){A(e,l),l&&b(t),A(n,l)}}}function Xie(r){let e;return{c(){e=F("Value")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Qie(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w;t=new Je({props:{small:!0,$$slots:{default:[Gie]},$$scope:{ctx:r}}});function k(j){r[9](j)}let I={options:r[2],getOptionLabel:Kie,getOptionValue:Zie};r[0].componentId!==void 0&&(I.value=r[0].componentId),i=new Ye({props:I}),K.push(()=>ce(i,"value",k)),o=new Je({props:{small:!0,$$slots:{default:[Yie]},$$scope:{ctx:r}}});function T(j){r[10](j)}let E={placeholder:null,options:r[4]};r[0].type!==void 0&&(E.value=r[0].type),u=new Ye({props:E}),K.push(()=>ce(u,"value",T)),p=new Je({props:{small:!0,$$slots:{default:[Jie]},$$scope:{ctx:r}}});function L(j){r[11](j)}let M={options:r[3]};r[0].field!==void 0&&(M.value=r[0].field),g=new bs({props:M}),K.push(()=>ce(g,"value",L));let B=r[0].type==="set"&&yy(r);return{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),c=R(),C(p.$$.fragment),d=R(),C(g.$$.fragment),v=R(),B&&B.c(),y(e,"class","root svelte-ss4wgk")},m(j,U){$(j,e,U),S(t,e,null),P(e,n),S(i,e,null),P(e,s),S(o,e,null),P(e,a),S(u,e,null),P(e,c),S(p,e,null),P(e,d),S(g,e,null),P(e,v),B&&B.m(e,null),w=!0},p(j,[U]){const q={};U&8192&&(q.$$scope={dirty:U,ctx:j}),t.$set(q);const G={};U&4&&(G.options=j[2]),!l&&U&1&&(l=!0,G.value=j[0].componentId,pe(()=>l=!1)),i.$set(G);const Y={};U&8192&&(Y.$$scope={dirty:U,ctx:j}),o.$set(Y);const W={};!f&&U&1&&(f=!0,W.value=j[0].type,pe(()=>f=!1)),u.$set(W);const H={};U&8192&&(H.$$scope={dirty:U,ctx:j}),p.$set(H);const V={};U&8&&(V.options=j[3]),!h&&U&1&&(h=!0,V.value=j[0].field,pe(()=>h=!1)),g.$set(V),j[0].type==="set"?B?(B.p(j,U),U&1&&m(B,1)):(B=yy(j),B.c(),m(B,1),B.m(e,null)):B&&(x(),_(B,1,1,()=>{B=null}),ee())},i(j){w||(m(t.$$.fragment,j),m(i.$$.fragment,j),m(o.$$.fragment,j),m(u.$$.fragment,j),m(p.$$.fragment,j),m(g.$$.fragment,j),m(B),w=!0)},o(j){_(t.$$.fragment,j),_(i.$$.fragment,j),_(o.$$.fragment,j),_(u.$$.fragment,j),_(p.$$.fragment,j),_(g.$$.fragment,j),_(B),w=!1},d(j){j&&b(e),A(t),A(i),A(o),A(u),A(p),A(g),B&&B.d()}}}const Kie=r=>r._instanceName,Zie=r=>r._id;function xie(r,e,t){let n,i,l,s,o,a;ae(r,qe,v=>t(7,o=v)),ae(r,nn,v=>t(8,a=v));let{parameters:u}=e,{bindings:f=[]}=e;const c=[{label:"Set value",value:"set"},{label:"Reset to default value",value:"reset"}];Pt(()=>{u.type||t(0,u.type="set",u)});function p(v){r.$$.not_equal(u.componentId,v)&&(u.componentId=v,t(0,u))}function d(v){r.$$.not_equal(u.type,v)&&(u.type=v,t(0,u))}function g(v){r.$$.not_equal(u.field,v)&&(u.field=v,t(0,u))}const h=v=>t(0,u.value=v.detail,u);return r.$$set=v=>{"parameters"in v&&t(0,u=v.parameters),"bindings"in v&&t(1,f=v.bindings)},r.$$.update=()=>{r.$$.dirty&257&&t(6,n=Ci(a.props,u.componentId)),r.$$.dirty&64&&t(5,i=Tm(n)),r.$$.dirty&32&&t(3,l=Object.keys(i||{})),r.$$.dirty&384&&t(2,s=Ua(a,o.selectedComponentId,"ValidateForm"))},[u,f,s,l,c,i,n,o,a,p,d,g,h]}class ele extends se{constructor(e){super();oe(this,e,xie,Qie,ie,{parameters:0,bindings:1})}}var tle=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",NavigateTo:Une,SaveRow:rre,DeleteRow:cre,ExecuteQuery:bre,TriggerAutomation:Ire,ValidateForm:Dre,LogOut:Fre,ClearForm:Jre,CloseScreenModal:Zre,ChangeFormStep:sie,UpdateState:die,RefreshDataProvider:bie,DuplicateRow:Eie,S3Upload:Rie,ExportData:Uie,ContinueIf:Wie,UpdateFieldValue:ele});const nle=(r=!1)=>z3.actions.filter(e=>{var t;return r||!e.dependsOnFeature?!0:((t=xe(qe).clientFeatures)==null?void 0:t[e.dependsOnFeature])===!0}).map(e=>it(Ae({},e),{component:tle[e.component]})).filter(e=>e.component!=null);function ky(r,e,t){const n=r.slice();return n[16]=e[t],n}function Cy(r,e,t){const n=r.slice();return n[19]=e[t],n[21]=t,n}function Sy(r){let e=r[1].id,t,n,i=Ay(r);return{c(){i.c(),t=Oe()},m(l,s){i.m(l,s),$(l,t,s),n=!0},p(l,s){s&2&&ie(e,e=l[1].id)?(x(),_(i,1,1,Se),ee(),i=Ay(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 Ay(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&&C(t.$$.fragment),y(e,"class","selected-action-container")},m(s,o){$(s,e,o),t&&S(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){x();const u=t;_(u.$$.fragment,1,0,()=>{A(u,1)}),ee()}i?(t=new i(l(s)),C(t.$$.fragment),m(t.$$.fragment,1),S(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&&A(t)}}}function rle(r){let e,t,n=r[2]&&Sy(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=Sy(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function ile(r){let e,t;return e=new ze({props:{noPadding:!0,$$slots:{default:[rle]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4194318&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Oy(r){let e,t=[],n=new Map,i,l,s,o,a=r[0];const u=f=>f[19].id;for(let f=0;f<a.length;f+=1){let c=Cy(r,a,f),p=u(c);n.set(p,t[f]=Ey(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=[yr(i=Wu.call(null,e,{items:r[0],flipDurationMs:zm,dropTargetStyle:{outline:"none"}})),Le(e,"consider",r[8]),Le(e,"finalize",r[9])],s=!0)},p(f,c){if(c&163){a=f[0],x();for(let p=0;p<t.length;p+=1)t[p].r();t=rr(t,c,u,1,f,a,n,e,Zo,Ey,null,Cy);for(let p=0;p<t.length;p+=1)t[p].a();ee()}i&&ft(i.update)&&c&1&&i.update.call(null,{items:f[0],flipDurationMs:zm,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 Ey(r,e){let t,n,i,l,s=e[21]+1+"",o,a,u=e[19][dc]+"",f,c,p,d,g,h=Se,v,w,k;n=new at({props:{name:"DragHandle",size:"XL"}});function I(){return e[15](e[21])}return p=new at({props:{name:"Close",hoverable:!0,size:"S"}}),p.$on("click",I),{key:r,first:null,c(){t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),o=F(s),a=F(".\xA0"),f=F(u),c=R(),C(p.$$.fragment),d=R(),y(l,"class","action-header svelte-1dgx8bt"),y(t,"class","action-container svelte-1dgx8bt"),le(t,"selected",e[19]===e[1]),this.first=t},m(T,E){$(T,t,E),S(n,t,null),P(t,i),P(t,l),P(l,o),P(l,a),P(l,f),P(t,c),S(p,t,null),P(t,d),v=!0,w||(k=Le(t,"click",function(){ft(e[7](e[19]))&&e[7](e[19]).apply(this,arguments)}),w=!0)},p(T,E){e=T,(!v||E&1)&&s!==(s=e[21]+1+"")&&Ce(o,s),(!v||E&1)&&u!==(u=e[19][dc]+"")&&Ce(f,u),E&3&&le(t,"selected",e[19]===e[1])},r(){g=t.getBoundingClientRect()},f(){xo(t),h()},a(){h(),h=ea(t,g,ta,{duration:zm})},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),A(n),A(p),w=!1,k()}}}function lle(r){let e=r[16].name+"",t,n;return{c(){t=F(e),n=R()},m(i,l){$(i,t,l),$(i,n,l)},p:Se,d(i){i&&b(t),i&&b(n)}}}function Ty(r){let e,t;return e=new ln({props:{$$slots:{default:[lle]},$$scope:{ctx:r}}}),e.$on("click",r[6](r[16])),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function sle(r){let e,t,n=r[4],i=[];for(let s=0;s<n.length;s+=1)i[s]=Ty(ky(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=ky(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.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function ole(r){let e;return{c(){e=F("Add Action")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ale(r){let e,t;return e=new lt({props:{slot:"control",secondary:!0,$$slots:{default:[ole]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function ule(r){let e,t,n,i=r[0]&&r[0].length>0&&Oy(r);return t=new kr({props:{$$slots:{control:[ale],default:[sle]},$$scope:{ctx:r}}}),{c(){i&&i.c(),e=R(),C(t.$$.fragment)},m(l,s){i&&i.m(l,s),$(l,e,s),S(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=Oy(l),i.c(),m(i,1),i.m(e.parentNode,e)):i&&(x(),_(i,1,1,()=>{i=null}),ee());const o={};s&4194304&&(o.$$scope={dirty:s,ctx:l}),t.$set(o)},i(l){n||(m(i),m(t.$$.fragment,l),n=!0)},o(l){_(i),_(t.$$.fragment,l),n=!1},d(l){i&&i.d(l),l&&b(e),A(t,l)}}}function fle(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[ule]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function cle(r){let e,t;return e=new Ni({props:{$$slots:{sidebar:[fle],default:[ile]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&4194319&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}const zm=150,dc="##eventHandlerType";function ple(r,e,t){let n,i,l,s,o;ae(r,qe,I=>t(13,s=I)),ae(r,nn,I=>t(14,o=I));const a=nle();let{key:u}=e,{actions:f}=e,{bindings:c=[]}=e,p=(f==null?void 0:f.length)?f[0]:null;const d=I=>{f.splice(I,1),t(0,f)},g=I=>()=>{const T={parameters:{},[dc]:I.name,id:Fr.generate()};f||t(0,f=[]),t(0,f=[...f,T]),t(1,p=T)},h=I=>()=>{t(1,p=I)};function v(I){t(0,f=I.detail.items)}function w(I){t(0,f=I.detail.items)}const k=I=>d(I);return r.$$set=I=>{"key"in I&&t(10,u=I.key),"actions"in I&&t(0,f=I.actions),"bindings"in I&&t(11,c=I.bindings)},r.$$.update=()=>{var I;r.$$.dirty&3&&p&&!(f==null?void 0:f.includes(p))&&t(1,p=f==null?void 0:f[0]),r.$$.dirty&25603&&t(12,n=rF(o,s.selectedComponentId,u,f,p==null?void 0:p.id)),r.$$.dirty&6144&&t(3,i=n.concat(c)),r.$$.dirty&1&&f&&f.forEach(T=>{T.id||(T.id=Fr.generate())}),r.$$.dirty&2&&t(2,l=p&&((I=a.find(T=>T.name===p[dc]))==null?void 0:I.component))},[f,p,l,i,a,d,g,h,v,w,u,c,n,s,o,k]}class dle extends se{constructor(e){super();oe(this,e,ple,cle,ie,{key:10,actions:0,bindings:11})}}function mle(r){let e;return{c(){e=F("Define actions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gle(r){let e;return{c(){e=F("Define what actions to run.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function _le(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function hle(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[_le]},$$scope:{ctx:r}}}),e.$on("click",r[6]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function $le(r){let e,t,n;function i(s){r[8](s)}let l={slot:"body",eventType:r[1],bindings:r[2],key:r[0]};return r[4]!==void 0&&(l.actions=r[4]),e=new dle({props:l}),K.push(()=>ce(e,"actions",i)),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};o&2&&(a.eventType=s[1]),o&4&&(a.bindings=s[2]),o&1&&(a.key=s[0]),!t&&o&16&&(t=!0,a.actions=s[4],pe(()=>t=!1)),e.$set(a)},i(s){n||(m(e.$$.fragment,s),n=!0)},o(s){_(e.$$.fragment,s),n=!1},d(s){A(e,s)}}}function ble(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[mle]},$$scope:{ctx:r}}}),e.$on("click",r[5]);let l={title:"Actions",$$slots:{body:[$le],buttons:[hle],description:[gle]},$$scope:{ctx:r}};return n=new ti({props:l}),r[9](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,[o]){const a={};o&8192&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&8215&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[9](null),A(n,s)}}}function vle(r,e,t){let n;ae(r,Ft,v=>t(10,n=v));const i=_t();let{key:l}=e,{value:s=[]}=e,{name:o}=e,{bindings:a}=e,u,f;const c=()=>{t(4,f=Sn.cloneDeep(s)),u.show()},p=async()=>{const v=f.filter(w=>w["##eventHandlerType"]==="Trigger Automation");for(let w of v)await d(w.parameters);i("change",f),we.success("Component actions saved."),u.hide()},d=async v=>{var w;if(!(v.automationId||!v.newAutomationName))try{await Ft.actions.create({name:v.newAutomationName});const k=n.blockDefinitions.TRIGGER.APP,I=n.selectedAutomation.constructBlock("TRIGGER","APP",k);I.inputs={fields:Object.keys(v.fields).reduce((T,E)=>(T[E]="string",T),{})},Ft.actions.addBlockToAutomation(I),await Ft.actions.save((w=n.selectedAutomation)==null?void 0:w.automation),v.automationId=n.selectedAutomation.automation._id,delete v.newAutomationName}catch{we.error("Error creating automation")}};function g(v){f=v,t(4,f)}function h(v){K[v?"unshift":"push"](()=>{u=v,t(3,u)})}return r.$$set=v=>{"key"in v&&t(0,l=v.key),"value"in v&&t(7,s=v.value),"name"in v&&t(1,o=v.name),"bindings"in v&&t(2,a=v.bindings)},[l,o,a,u,f,c,p,s,g,h]}class wle extends se{constructor(e){super();oe(this,e,vle,ble,ie,{key:0,value:7,name:1,bindings:2})}}function Iy(r,e,t){const n=r.slice();return n[3]=e[t],n}function Ly(r){let e,t=r[3].name+"",n,i;return{c(){e=D("option"),n=F(t),e.__value=i=r[3]._id,e.value=e.__value},m(l,s){$(l,e,s),P(e,n)},p(l,s){s&2&&t!==(t=l[3].name+"")&&Ce(n,t),s&2&&i!==(i=l[3]._id)&&(e.__value=i,e.value=e.__value)},d(l){l&&b(e)}}}function yle(r){let e,t,n,i=r[1].list,l=[];for(let s=0;s<i.length;s+=1)l[s]=Ly(Iy(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=Iy(s,i,a);l[a]?l[a].p(u,o):(l[a]=Ly(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),mt(l,s),s&&b(n)}}}function kle(r){let e,t,n;return t=new Ye({props:{extraThin:!0,secondary:!0,wide:!0,value:r[0],$$slots:{default:[yle]},$$scope:{ctx:r}}}),t.$on("change",r[2]),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","svelte-16jzcsd")},m(i,l){$(i,e,l),S(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),A(t)}}}function Cle(r,e,t){let n;ae(r,Ot,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class Sle extends se{constructor(e){super();oe(this,e,Cle,kle,ie,{value:0})}}function Ale(r){let e,t;return e=new xl({props:{value:r[0],spectrumTheme:r[1].theme}}),e.$on("change",r[2]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Ole(r,e,t){let n;ae(r,qe,s=>t(1,n=s));let{value:i}=e;function l(s){dt.call(this,r,s)}return r.$$set=s=>{"value"in s&&t(0,i=s.value)},[i,n,l]}class qm extends se{constructor(e){super();oe(this,e,Ole,Ale,ie,{value:0})}}var Py={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 Ny(r,e,t){const n=r.slice();return n[29]=e[t],n}function Ry(r,e,t){const n=r.slice();return n[32]=e[t],n[34]=t,n}function Ele(r){let e;return{c(){e=F(r[8])},m(t,n){$(t,e,n)},p(t,n){n[0]&256&&Ce(e,t[8])},d(t){t&&b(e)}}}function Tle(r){let e;return{c(){e=D("span"),e.textContent="-"},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function My(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&&Tle();return{c(){e=D("span"),n=F(t),i=R(),u&&u.c(),l=Oe(),y(e,"class","letter svelte-vhpvzd"),le(e,"letter-selected",r[32]===r[2])},m(f,c){$(f,e,c),P(e,n),$(f,i,c),u&&u.m(f,c),$(f,l,c),s||(o=Le(e,"click",a),s=!0)},p(f,c){r=f,c[0]&516&&le(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 Ile(r){let e;return{c(){e=F("Search")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lle(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=F(n),y(e,"class","no-icons svelte-vhpvzd")},m(l,s){$(l,e,s),P(e,t),P(t,i)},p(l,s){s[0]&2&&n!==(n=`There is no icons for this ${l[1]?"search":"page"}`)&&Ce(i,n)},d(l){l&&b(e)}}}function Ple(r){let e,t=!r[5]&&Dy(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=Dy(n),t.c(),t.m(e,null))},d(n){n&&b(e),t&&t.d()}}}function Dy(r){let e,t=r[7],n=[];for(let i=0;i<t.length;i+=1)n[i]=jy(Ny(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=Ny(i,t,s);n[s]?n[s].p(o,l):(n[s]=jy(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){mt(n,i),i&&b(e)}}}function jy(r){let e,t,n,i,l,s,o=r[29]+"",a,u,f,c,p,d,g,h,v,w=r[29]+"",k,I,T,E,L;function M(){return r[24](r[29])}function B(){return r[25](r[29])}return{c(){e=D("div"),t=D("div"),n=D("i"),l=R(),s=D("div"),a=F(o),u=F("-fill"),f=R(),c=D("div"),p=D("div"),d=D("i"),h=R(),v=D("div"),k=F(w),I=F("-line"),T=R(),y(n,"class",i=""+(Wn(`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"),le(e,"selected",r[0]===`ri-${r[29]}-fill`),y(d,"class",g=""+(Wn(`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"),le(c,"selected",r[0]===`ri-${r[29]}-line`)},m(j,U){$(j,e,U),P(e,t),P(t,n),P(e,l),P(e,s),P(s,a),P(s,u),$(j,f,U),$(j,c,U),P(c,p),P(p,d),P(c,h),P(c,v),P(v,k),P(v,I),P(c,T),E||(L=[Le(e,"click",M),Le(c,"click",B)],E=!0)},p(j,U){r=j,U[0]&128&&i!==(i=""+(Wn(`ri-${r[29]}-fill ri-xl`)+" svelte-vhpvzd"))&&y(n,"class",i),U[0]&128&&o!==(o=r[29]+"")&&Ce(a,o),U[0]&129&&le(e,"selected",r[0]===`ri-${r[29]}-fill`),U[0]&128&&g!==(g=""+(Wn(`ri-${r[29]}-line ri-xl`)+" svelte-vhpvzd"))&&y(d,"class",g),U[0]&128&&w!==(w=r[29]+"")&&Ce(k,w),U[0]&129&&le(c,"selected",r[0]===`ri-${r[29]}-line`)},d(j){j&&b(e),j&&b(f),j&&b(c),E=!1,Tn(L)}}}function Nle(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,E,L,M,B=r[9],j=[];for(let H=0;H<B.length;H+=1)j[H]=My(Ry(r,B,H));function U(H){r[21](H)}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",U)),f=new lt({props:{secondary:!0,$$slots:{default:[Ile]},$$scope:{ctx:r}}}),f.$on("click",r[13]);function G(H,V){return H[7].length>0?Ple:Lle}let Y=G(r),W=Y(r);return{c(){e=D("div"),t=D("div"),n=D("div");for(let H=0;H<j.length;H+=1)j[H].c();i=R(),l=D("div"),s=D("div"),C(o.$$.fragment),u=R(),C(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"),w=F(r[6]),k=R(),I=D("span"),I.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',T=R(),W.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(H,V){$(H,e,V),P(e,t),P(t,n);for(let J=0;J<j.length;J+=1)j[J].m(n,null);P(t,i),P(t,l),P(l,s),S(o,s,null),P(l,u),S(f,l,null),P(t,c),P(t,p),P(p,d),P(d,g),P(d,h),P(d,v),P(v,w),P(d,k),P(d,I),P(e,T),W.m(e,null),E=!0,L||(M=[Le(g,"click",r[22]),Le(I,"click",r[23])],L=!0)},p(H,V){if(V[0]&1540){B=H[9];let re;for(re=0;re<B.length;re+=1){const Q=Ry(H,B,re);j[re]?j[re].p(Q,V):(j[re]=My(Q),j[re].c(),j[re].m(n,null))}for(;re<j.length;re+=1)j[re].d(1);j.length=B.length}const J={};!a&&V[0]&2&&(a=!0,J.value=H[1],pe(()=>a=!1)),o.$set(J);const fe={};V[1]&16&&(fe.$$scope={dirty:V,ctx:H}),f.$set(fe),(!E||V[0]&64)&&Ce(w,H[6]),Y===(Y=G(H))&&W?W.p(H,V):(W.d(1),W=Y(H),W&&(W.c(),W.m(e,null)))},i(H){E||(m(o.$$.fragment,H),m(f.$$.fragment,H),E=!0)},o(H){_(o.$$.fragment,H),_(f.$$.fragment,H),E=!1},d(H){H&&b(e),mt(j,H),A(o),A(f),W.d(),L=!1,Tn(M)}}}function Rle(r){let e,t,n,i,l;t=new Ut({props:{$$slots:{default:[Ele]},$$scope:{ctx:r}}}),t.$on("click",function(){ft(r[4].show)&&r[4].show.apply(this,arguments)});let s={anchor:r[3],dataCy:"icon-popover",$$slots:{default:[Nle]},$$scope:{ctx:r}};return i=new Xu({props:s}),r[26](i),i.$on("open",r[11]),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment)},m(o,a){$(o,e,a),S(t,e,null),r[19](e),$(o,n,a),S(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),A(t),r[19](null),o&&b(n),r[26](null),A(i,o)}}}const Mle=Object.keys(Py).reduce((r,e)=>[...r,...Object.keys(Py[e])],[]);function Um(r){const e=new RegExp(`^${r}`,"i");return Mle.filter(t=>e.test(t))}function Dle(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=Um(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,w,k=!1;async function I(V){t(15,d=1),t(1,c=""),t(5,k=!0),t(2,p=V),t(16,g=Um(V)),await no(),t(5,k=!1)}async function T(){t(5,k=!0);const V=g.findIndex(J=>J.value===u);V!==-1&&t(15,d=Math.ceil(V/f)),await no(),t(5,k=!1)}async function E(){if(u){const V=n.substring(0,1);await I(V),await T()}}async function L(V){t(5,k=!0),V&&d<i?t(15,d++,d):!V&&d>1&&t(15,d--,d),await no(),t(5,k=!1)}async function M(){t(15,d=1),t(5,k=!0),t(16,g=Um(c)),await no(),t(5,k=!1)}function B(V){K[V?"unshift":"push"](()=>{v=V,t(3,v)})}const j=V=>I(V);function U(V){c=V,t(1,c)}const q=()=>L(!1),G=()=>L(!0),Y=V=>t(0,u=`ri-${V}-fill`),W=V=>t(0,u=`ri-${V}-line`);function H(V){K[V?"unshift":"push"](()=>{w=V,t(4,w)})}return r.$$set=V=>{"value"in V&&t(0,u=V.value),"maxIconsPerPage"in V&&t(14,f=V.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,w,k,o,s,n,h,I,E,L,M,f,d,g,i,l,B,j,U,q,G,Y,W,H]}class jle extends se{constructor(e){super();oe(this,e,Dle,Rle,ie,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function Ble(r){let e,t;return e=new Ye({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function zle(r,e,t){let n,i,l,s,o;ae(r,nn,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=rl(o,a)),r.$$.dirty&384&&t(6,i=Oi(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 qle extends se{constructor(e){super();oe(this,e,zle,Ble,ie,{componentInstance:4,value:5,placeholder:0})}}function Ule(r){let e,t;return e=new ro({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Fle(r,e,t){let n,i,l,s,o;ae(r,nn,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=rl(o,a)),r.$$.dirty&384&&t(6,i=Oi(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 Vle extends se{constructor(e){super();oe(this,e,Fle,Ule,ie,{componentInstance:4,value:5,placeholder:0})}}function Hle(r){let e,t;return e=new ro({props:{placeholder:r[0],value:r[2],options:r[1]}}),e.$on("change",r[3]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function By(r,e){return Array.isArray(r)||(r=[]),r.filter(t=>e.indexOf(t)!==-1)}function Wle(r,e,t){let n,i,l,s,o,a;ae(r,Ot,h=>t(9,o=h)),ae(r,nn,h=>t(8,a=h));let{componentInstance:u={}}=e,{value:f=""}=e,{placeholder:c}=e;const p=_t();function d(h,v){let w=Object.values(v);if(!(h==null?void 0:h.tableId))return w.map(I=>I.name);const k=o.list.find(I=>I._id===h.tableId);return Rm(w,{allowLinks:k==null?void 0:k.sql}).map(I=>I.name)}const g=h=>{t(2,s=By(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=rl(a,u)),r.$$.dirty&384&&t(6,i=Oi(a,n).schema),r.$$.dirty&192&&t(1,l=d(n,i||{})),r.$$.dirty&34&&t(2,s=By(f,l))},[c,l,s,g,u,f,i,n,a]}class Gle extends se{constructor(e){super();oe(this,e,Wle,Hle,ie,{componentInstance:4,value:5,placeholder:0})}}function Yle(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=Yi(i,n[l]);return e=new iy({props:i}),e.$on("change",r[2]),{c(){C(e.$$.fragment)},m(l,s){S(e,l,s),t=!0},p(l,[s]){const o=s&3?qu(n,[s&2&&Uu(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){A(e,l)}}}function Jle(r,e,t){const n=[{name:"Custom",label:"Custom"}];function i(l){dt.call(this,r,l)}return r.$$set=l=>{t(1,e=Yi(Yi({},e),Vu(l)))},e=Vu(e),[n,e,i]}class Xle extends se{constructor(e){super();oe(this,e,Jle,Yle,ie,{})}}function zy(r,e,t){const n=r.slice();return n[8]=e[t][0],n[0]=e[t][1],n}function Qle(r){let e=r[4][r[0]].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[4][n[0]].name+"")&&Ce(t,e)},d(n){n&&b(t)}}}function Kle(r){let e=r[0].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p:Se,d(n){n&&b(t)}}}function qy(r){let e,t,n,i,l,s,o,a;t=new at({props:{color:"white",size:"L",name:r[0].icon}}),i=new Ue({props:{size:"XS",$$slots:{default:[Kle]},$$scope:{ctx:r}}});function u(){return r[5](r[8])}return{c(){e=D("button"),C(t.$$.fragment),n=R(),C(i.$$.fragment),l=R(),y(e,"class","layout svelte-dl48fo"),le(e,"selected",r[1]===r[8])},m(f,c){$(f,e,c),S(t,e,null),P(e,n),S(i,e,null),P(e,l),s=!0,o||(a=Le(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&&le(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),A(t),A(i),o=!1,a()}}}function Zle(r){let e,t,n=Object.entries(r[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=qy(zy(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=zy(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=qy(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function xle(r){let e,t;return e=new Tt({props:{onConfirm:r[6],size:"L",title:"Select layout",$$slots:{default:[Zle]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function ese(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[Qle]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[2].show)&&r[2].show.apply(this,arguments)});let l={$$slots:{default:[xle]},$$scope:{ctx:r}};return n=new kt({props:l}),r[7](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[7](null),A(n,s)}}}function tse(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 nse extends se{constructor(e){super();oe(this,e,tse,ese,ie,{value:0})}}function Uy(r,e,t){const n=r.slice();return n[12]=e[t],n[13]=e,n[14]=t,n}function Fy(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=Uy(r,a,f),p=u(c);n.set(p,t[f]=Vy(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=[yr(i=Wu.call(null,e,{items:r[0],flipDurationMs:Fm,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Le(e,"finalize",r[6]),Le(e,"consider",r[5])],s=!0)},p(f,c){if(c&23){a=f[0],x();for(let p=0;p<t.length;p+=1)t[p].r();t=rr(t,c,u,1,f,a,n,e,Zo,Vy,null,Uy);for(let p=0;p<t.length;p+=1)t[p].a();ee()}i&&ft(i.update)&&c&3&&i.update.call(null,{items:f[0],flipDurationMs:Fm,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 Vy(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v=Se,w,k,I;i=new at({props:{name:"DragHandle",size:"XL"}});function T(j){e[9](j,e[12])}let E={placeholder:"Text"};e[12].text!==void 0&&(E.value=e[12].text),o=new et({props:E}),K.push(()=>ce(o,"value",T));function L(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 bs({props:M}),K.push(()=>ce(f,"value",L));function B(){return e[11](e[12])}return d=new at({props:{name:"Close",hoverable:!0,size:"S"}}),d.$on("click",B),{key:r,first:null,c(){t=D("div"),n=D("div"),C(i.$$.fragment),s=R(),C(o.$$.fragment),u=R(),C(f.$$.fragment),p=R(),C(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,U){$(j,t,U),P(t,n),S(i,n,null),P(t,s),S(o,t,null),P(t,u),S(f,t,null),P(t,p),S(d,t,null),P(t,g),w=!0,k||(I=Le(n,"mousedown",e[8]),k=!0)},p(j,U){e=j,(!w||U&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const q={};!a&&U&1&&(a=!0,q.value=e[12].text,pe(()=>a=!1)),o.$set(q);const G={};U&4&&(G.options=e[2]),!c&&U&1&&(c=!0,G.value=e[12].url,pe(()=>c=!1)),f.$set(G)},r(){h=t.getBoundingClientRect()},f(){xo(t),v()},a(){v(),v=ea(t,h,ta,{duration:Fm})},i(j){w||(m(i.$$.fragment,j),m(o.$$.fragment,j),m(f.$$.fragment,j),m(d.$$.fragment,j),w=!0)},o(j){_(i.$$.fragment,j),_(o.$$.fragment,j),_(f.$$.fragment,j),_(d.$$.fragment,j),w=!1},d(j){j&&b(t),A(i),A(o),A(f),A(d),k=!1,I()}}}function rse(r){let e;return{c(){e=F("Add Link")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ise(r){var s;let e,t,n,i,l=((s=r[0])==null?void 0:s.length)&&Fy(r);return n=new lt({props:{secondary:!0,icon:"Add",$$slots:{default:[rse]},$$scope:{ctx:r}}}),n.$on("click",r[3]),{c(){l&&l.c(),e=R(),t=D("div"),C(n.$$.fragment)},m(o,a){l&&l.m(o,a),$(o,e,a),$(o,t,a),S(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=Fy(o),l.c(),m(l,1),l.m(e.parentNode,e)):l&&(x(),_(l,1,1,()=>{l=null}),ee());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),A(n)}}}function lse(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[ise]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-1mnha07")},m(i,l){$(i,e,l),S(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),A(t)}}}function sse(r){let e,t;return e=new Ni({props:{$$slots:{default:[lse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const Fm=150;function ose(r,e,t){let n,i;ae(r,qe,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=Fr.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 ase extends se{constructor(e){super();oe(this,e,ose,sse,ie,{links:0})}}function use(r){let e;return{c(){e=F("Configure links")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function fse(r){let e;return{c(){e=F("Configure the links in your navigation bar.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cse(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pse(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[cse]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function dse(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 ase({props:l}),K.push(()=>ce(e,"links",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function mse(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[use]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Navigation Links",$$slots:{body:[dse],buttons:[pse],description:[fse]},$$scope:{ctx:r}};return n=new ti({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function gse(r,e,t){let{value:n=[]}=e,i,l=Sn.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 _se extends se{constructor(e){super();oe(this,e,gse,mse,ie,{value:3})}}function hse(r){let e;return{c(){e=F("Define filters")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $se(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function bse(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[$se]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function vse(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 Mm({props:l}),K.push(()=>ce(e,"filters",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function wse(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[hse]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)});let l={title:"Filtering",$$slots:{body:[vse],buttons:[bse]},$$scope:{ctx:r}};return n=new ti({props:l}),r[11](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[11](null),A(n,s)}}}function yse(r,e,t){let n,i,l,s;ae(r,nn,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=rl(s,u)),r.$$.dirty&768&&t(7,i=(v=Oi(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 kse extends se{constructor(e){super();oe(this,e,yse,wse,ie,{value:5,componentInstance:6,bindings:0})}}function Hy(r){let e,t,n,i,l;return t=new at({props:{size:"S",name:"FlashOn"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","icon svelte-11tgeq8"),y(e,"data-cy","text-binding-button")},m(s,o){$(s,e,o),S(t,e,null),n=!0,i||(l=Le(e,"click",function(){ft(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),A(t),i=!1,l()}}}function Cse(r){let e;return{c(){e=F("Add the objects on the left to enrich your text.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sse(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ase(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Sse]},$$scope:{ctx:r}}}),e.$on("click",r[12]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Ose(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&&C(e.$$.fragment),t=Oe()},m(s,o){e&&S(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){x();const u=e;_(u.$$.fragment,1,0,()=>{A(u,1)}),ee()}i?(e=new i(l(s)),e.$on("change",s[19]),C(e.$$.fragment),m(e.$$.fragment,1),S(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&&A(e,s)}}}function Ese(r){let e,t,n,i,l,s;t=new bs({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]&&Hy(r),a={title:r[2],$$slots:{body:[Ose],buttons:[Ase],description:[Cse]},$$scope:{ctx:r}};return l=new ti({props:a}),r[20](l),{c(){e=D("div"),C(t.$$.fragment),n=R(),o&&o.c(),i=R(),C(l.$$.fragment),y(e,"class","control svelte-11tgeq8"),le(e,"disabled",r[5])},m(u,f){$(u,e,f),S(t,e,null),P(e,n),o&&o.m(e,null),$(u,i,f),S(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&&(x(),_(o,1,1,()=>{o=null}),ee()):o?(o.p(u,f),f&32&&m(o,1)):(o=Hy(u),o.c(),m(o,1),o.m(e,null)),f&32&&le(e,"disabled",u[5]);const p={};f&4&&(p.title=u[2]),f&8389315&&(p.$$scope={dirty:f,ctx:u}),l.$set(p)},i(u){s||(m(t.$$.fragment,u),m(o),m(l.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(o),_(l.$$.fragment,u),s=!1},d(u){u&&b(e),A(t),o&&o.d(),u&&b(i),r[20](null),A(l,u)}}}function Tse(r,e,t){let n,i,l,s,{panel:o=Lm}=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 w=_t();let k;const I=()=>{T(i),k.hide()},T=(U,q)=>{q&&!(g==null?void 0:g.includes(U))&&(U=`{{ ${U} }}`),w("change",Ns(u,U))},E=(U,q,G)=>G?[].concat(U||[]).concat((q==null?void 0:q.map(Y=>Y.readableBinding))||[]):U,L=U=>T(U.detail,!1),M=U=>T(U.detail,!0),B=U=>t(9,i=U.detail);function j(U){K[U?"unshift":"push"](()=>{k=U,t(8,k)})}return r.$$set=U=>{"panel"in U&&t(0,o=U.panel),"value"in U&&t(14,a=U.value),"bindings"in U&&t(1,u=U.bindings),"title"in U&&t(2,f=U.title),"placeholder"in U&&t(3,c=U.placeholder),"label"in U&&t(4,p=U.label),"disabled"in U&&t(5,d=U.disabled),"options"in U&&t(15,g=U.options),"allowJS"in U&&t(6,h=U.allowJS),"appendBindingsAsOptions"in U&&t(16,v=U.appendBindingsAsOptions)},r.$$.update=()=>{r.$$.dirty&16386&&t(7,n=To(u,a)),r.$$.dirty&128&&t(9,i=n),r.$$.dirty&16384&&t(11,l=Xf(a)),r.$$.dirty&98306&&t(10,s=E(g,u,v))},[o,u,f,c,p,d,h,n,k,i,s,l,I,T,a,g,v,L,M,B,j]}class Wy extends se{constructor(e){super();oe(this,e,Tse,Ese,ie,{panel:0,value:14,bindings:1,title:2,placeholder:3,label:4,disabled:5,options:15,allowJS:6,appendBindingsAsOptions:16})}}function Ise(r){let e,t;return e=new Wy({props:{value:r[0],bindings:r[1],options:r[2],appendBindingsAsOptions:!1}}),e.$on("change",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Lse(r,e,t){let n,i;ae(r,qe,a=>t(3,i=a));let{value:l}=e,{bindings:s}=e;function o(a){dt.call(this,r,a)}return r.$$set=a=>{"value"in a&&t(0,l=a.value),"bindings"in a&&t(1,s=a.bindings)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=i.screens.map(a=>{var u;return(u=a.routing)==null?void 0:u.route}).filter(a=>a!=null))},[l,s,n,i,o]}class Pse extends se{constructor(e){super();oe(this,e,Lse,Ise,ie,{value:0,bindings:1})}}function Gy(r,e,t){const n=r.slice();return n[6]=e[t],n[7]=e,n[8]=t,n}function Yy(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[Nse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Nse(r){let e;return{c(){e=F("Add an option to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jy(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=Gy(r,l,o),u=s(a);n.set(u,t[o]=Xy(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],x(),t=rr(t,a,s,1,o,l,n,e,Ur,Xy,null,Gy),ee())},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 Xy(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 at({props:{name:"Close",hoverable:!0,size:"S"}}),u.$on("click",h),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),l=R(),C(s.$$.fragment),a=R(),C(u.$$.fragment),this.first=t},m(v,w){$(v,t,w),S(n,v,w),$(v,l,w),S(s,v,w),$(v,a,w),S(u,v,w),f=!0},p(v,w){e=v;const k={};!i&&w&1&&(i=!0,k.value=e[6].label,pe(()=>i=!1)),n.$set(k);const I={};!o&&w&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),A(n,v),v&&b(l),A(s,v),v&&b(a),A(u,v)}}}function Rse(r){let e;return{c(){e=F("Add Option")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Mse(r){var a;let e,t,n,i,l,s=!r[0].length&&Yy(r),o=((a=r[0])==null?void 0:a.length)&&Jy(r);return i=new lt({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[Rse]},$$scope:{ctx:r}}}),i.$on("click",r[2]),{c(){s&&s.c(),e=R(),o&&o.c(),t=R(),n=D("div"),C(i.$$.fragment)},m(u,f){s&&s.m(u,f),$(u,e,f),o&&o.m(u,f),$(u,t,f),$(u,n,f),S(i,n,null),l=!0},p(u,f){var p;u[0].length?s&&(x(),_(s,1,1,()=>{s=null}),ee()):s?f&1&&m(s,1):(s=Yy(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=Jy(u),o.c(),m(o,1),o.m(t.parentNode,t)):o&&(x(),_(o,1,1,()=>{o=null}),ee());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),A(i)}}}function Dse(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Mse]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-12ls1u")},m(i,l){$(i,e,l),S(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),A(t)}}}function jse(r){let e,t;return e=new Ni({props:{$$slots:{default:[Dse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Bse(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:Fr.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 zse extends se{constructor(e){super();oe(this,e,Bse,jse,ie,{options:0})}}function qse(r){let e;return{c(){e=F("Define Options")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Use(r){let e;return{c(){e=F("Define the options for this picker.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Fse(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Vse(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Fse]},$$scope:{ctx:r}}}),e.$on("click",r[2]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Hse(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 zse({props:l}),K.push(()=>ce(e,"options",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Wse(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[qse]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)});let l={title:"Options",$$slots:{body:[Hse],buttons:[Vse],description:[Use]},$$scope:{ctx:r}};return n=new ti({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function Gse(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));for(let f=0;f<s.length;f++){let c=s[f];c.label=c.label?c.label:c.value,c.value=c.value?c.value:c.label,t(1,s[f]=c,s)}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 Yse extends se{constructor(e){super();oe(this,e,Gse,Wse,ie,{value:3})}}function Jse(r){let e,t;return e=new bs({props:{value:r[0],options:r[1]}}),e.$on("change",r[8]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Xse(r,e,t){let n,i,l,s,o;ae(r,nn,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(w=>w.split("/")[1]),h=h.filter(w=>v.includes(w[1].type)),h.map(w=>w[0])};function p(d){dt.call(this,r,d)}return r.$$set=d=>{"componentInstance"in d&&t(2,a=d.componentInstance),"value"in d&&t(0,u=d.value),"type"in d&&t(3,f=d.type)},r.$$.update=()=>{r.$$.dirty&132&&t(6,n=rc(o==null?void 0:o.props,a._id,d=>d._component==="@budibase/standard-components/form")),r.$$.dirty&192&&t(5,i=rl(o,n)),r.$$.dirty&160&&t(4,l=Oi(o,i,{formSchema:!0}).schema),r.$$.dirty&24&&t(1,s=c(l,f))},[u,s,a,f,l,i,n,o,p]}class il extends se{constructor(e){super();oe(this,e,Xse,Jse,ie,{componentInstance:2,value:0,type:3})}}function Qy(r,e,t){const n=r.slice();return n[29]=e[t],n[30]=e,n[31]=t,n}function Ky(r,e,t){const n=r.slice();return n[29]=e[t],n}function Qse(r){let e;return{c(){e=F("Schema validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Kse(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[xse]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Zse(r){let e,t,n=r[5],i=[];for(let s=0;s<n.length;s+=1)i[s]=Zy(Ky(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=Ky(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Zy(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function xse(r){let e;return{c(){e=F("There are no built-in validation rules from the schema.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Zy(r){let e,t,n,i,l,s,o,a,u,f,c,p;return t=new Ye({props:{placeholder:"Constraint",value:r[29].constraint,options:r[4],disabled:!0}}),i=new Ye({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),s=new Rn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:!0}}),a=new Rn({props:{placeholder:"Error message",value:r[29].error,bindings:r[1],disabled:!0}}),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),l=R(),C(s.$$.fragment),o=R(),C(a.$$.fragment),u=R(),f=D("div"),c=R(),y(e,"class","rule schema svelte-lcp0nr")},m(d,g){$(d,e,g),S(t,e,null),P(e,n),S(i,e,null),P(e,l),S(s,e,null),P(e,o),S(a,e,null),P(e,u),P(e,f),P(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 w={};g[0]&32&&(w.value=d[29].error),g[0]&2&&(w.bindings=d[1]),a.$set(w)},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),A(t),A(i),A(s),A(a)}}}function eoe(r){let e,t,n,i,l,s;e=new ct({props:{size:"XS",$$slots:{default:[Qse]},$$scope:{ctx:r}}});const o=[Zse,Kse],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(){C(e.$$.fragment),t=R(),i.c(),l=Oe()},m(f,c){S(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):(x(),_(a[d],1,1,()=>{a[d]=null}),ee(),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){A(e,f),f&&b(t),a[n].d(f),f&&b(l)}}}function toe(r){let e;return{c(){e=F("Custom validation rules")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function xy(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=Qy(r,l,o),u=s(a);n.set(u,t[o]=e6(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],x(),t=rr(t,a,s,1,o,l,n,e,Ur,e6,null,Qy),ee())},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 noe(r){let e,t,n,i,l;const s=[uoe,aoe,ooe,soe,loe],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):(x(),_(o[c],1,1,()=>{o[c]=null}),ee(),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 roe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function ioe(r){let e,t;function n(...i){return r[15](r[29],r[30],r[31],...i)}return e=new Rn({props:{placeholder:"Constraint value",value:r[29].value,bindings:r[1],disabled:r[29].constraint==="required"}}),e.$on("change",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function loe(r){let e,t;return e=new Rn({props:{disabled:!0}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p:Se,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function soe(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 Vl({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function ooe(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 Ye({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function aoe(r){let e,t;return e=new Ye({props:{disabled:r[29].constraint==="required",options:r[2].schema[r[3]].constraints.inclusion,getOptionLabel:goe,getOptionValue:_oe,value:r[29].value}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function uoe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function e6(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I;function T(W){e[13](W,e[29])}let E={options:e[4],placeholder:"Constraint"};e[29].constraint!==void 0&&(E.value=e[29].constraint),n=new Ye({props:E}),K.push(()=>ce(n,"value",T));function L(W){e[14](W,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 Ye({props:M}),K.push(()=>ce(s,"value",L));const B=[ioe,roe,noe],j=[];function U(W,H){return W[29].valueType==="Binding"?0:((u==null||H[0]&1)&&(u=!!(W[29].type!=="array"&&["maxLength","minLength","regex","notRegex","contains","notContains"].includes(W[29].constraint))),u?1:2)}f=U(e,[-1,-1]),c=j[f]=B[f](e);function q(...W){return e[20](e[29],e[30],e[31],...W)}d=new Rn({props:{placeholder:"Error message",value:e[29].error,bindings:e[1]}}),d.$on("change",q);function G(){return e[21](e[29])}h=new at({props:{name:"Duplicate",hoverable:!0,size:"S"}}),h.$on("click",G);function Y(){return e[22](e[29])}return w=new at({props:{name:"Close",hoverable:!0,size:"S"}}),w.$on("click",Y),{key:r,first:null,c(){t=D("div"),C(n.$$.fragment),l=R(),C(s.$$.fragment),a=R(),c.c(),p=R(),C(d.$$.fragment),g=R(),C(h.$$.fragment),v=R(),C(w.$$.fragment),k=R(),y(t,"class","rule svelte-lcp0nr"),this.first=t},m(W,H){$(W,t,H),S(n,t,null),P(t,l),S(s,t,null),P(t,a),j[f].m(t,null),P(t,p),S(d,t,null),P(t,g),S(h,t,null),P(t,v),S(w,t,null),P(t,k),I=!0},p(W,H){e=W;const V={};H[0]&16&&(V.options=e[4]),!i&&H[0]&1&&(i=!0,V.value=e[29].constraint,pe(()=>i=!1)),n.$set(V);const J={};H[0]&1&&(J.disabled=e[29].constraint==="required"),!o&&H[0]&1&&(o=!0,J.value=e[29].valueType,pe(()=>o=!1)),s.$set(J);let fe=f;f=U(e,H),f===fe?j[f].p(e,H):(x(),_(j[fe],1,1,()=>{j[fe]=null}),ee(),c=j[f],c?c.p(e,H):(c=j[f]=B[f](e),c.c()),m(c,1),c.m(t,p));const re={};H[0]&1&&(re.value=e[29].error),H[0]&2&&(re.bindings=e[1]),d.$set(re)},i(W){I||(m(n.$$.fragment,W),m(s.$$.fragment,W),m(c),m(d.$$.fragment,W),m(h.$$.fragment,W),m(w.$$.fragment,W),I=!0)},o(W){_(n.$$.fragment,W),_(s.$$.fragment,W),_(c),_(d.$$.fragment,W),_(h.$$.fragment,W),_(w.$$.fragment,W),I=!1},d(W){W&&b(t),A(n),A(s),j[f].d(),A(d),A(h),A(w)}}}function foe(r){let e;return{c(){e=F("Add Rule")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function coe(r){var a;let e,t,n,i,l,s;e=new ct({props:{size:"XS",$$slots:{default:[toe]},$$scope:{ctx:r}}});let o=((a=r[0])==null?void 0:a.length)&&xy(r);return l=new lt({props:{secondary:!0,icon:"Add",$$slots:{default:[foe]},$$scope:{ctx:r}}}),l.$on("click",r[6]),{c(){C(e.$$.fragment),t=R(),o&&o.c(),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","button")},m(u,f){S(e,u,f),$(u,t,f),o&&o.m(u,f),$(u,n,f),$(u,i,f),S(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=xy(u),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(x(),_(o,1,1,()=>{o=null}),ee());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){A(e,u),u&&b(t),o&&o.d(u),u&&b(n),u&&b(i),A(l)}}}function poe(r){var l;let e,t,n,i;return e=new ze({props:{noPadding:!0,gap:((l=r[5])==null?void 0:l.length)?"S":"XS",$$slots:{default:[eoe]},$$scope:{ctx:r}}}),n=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[coe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),A(n,s)}}}function doe(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"M",$$slots:{default:[poe]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-lcp0nr")},m(i,l){$(i,e,l),S(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),A(t)}}}function moe(r){let e,t;return e=new Ni({props:{$$slots:{default:[doe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const goe=r=>r,_oe=r=>r;function hoe(r,e,t){let n,i,l,s,o,a,u;ae(r,ai,V=>t(11,a=V)),ae(r,nn,V=>t(12,u=V));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=V=>g[V],v=(V,J)=>{if(!V||!J)return null;const fe=rc(V.props,J._id,re=>re._component.endsWith("/form"));return Oi(V,fe==null?void 0:fe.dataSource)},w=(V,J)=>{var te,_e,Re,be,he,ve;if(!V||!J)return[];const fe=(te=J.schema)==null?void 0:te[V],re=fe==null?void 0:fe.constraints;if(!re)return[];let Q=[];if((V===((_e=J==null?void 0:J.table)==null?void 0:_e.primaryDisplay)||((Re=re.presence)==null?void 0:Re.allowEmpty)===!1)&&Q.push({constraint:"required",error:"Required field"}),k((be=re.length)==null?void 0:be.maximum)){const Ie=re.length.maximum;Q.push({constraint:"maxLength",value:Ie,error:`Maximum ${Ie} characters`})}if(k((he=re.numericality)==null?void 0:he.greaterThanOrEqualTo)){const Ie=re.numericality.greaterThanOrEqualTo;Q.push({constraint:"minValue",value:Ie,error:`Minimum value is ${Ie}`})}if(k((ve=re.numericality)==null?void 0:ve.lessThanOrEqualTo)){const Ie=re.numericality.lessThanOrEqualTo;Q.push({constraint:"maxValue",value:Ie,error:`Maximum value is ${Ie}`})}return Q},k=V=>V!=null&&V!=="",I=()=>{t(0,f=[...f||[],{valueType:"Binding",type:s,id:Fr.generate(),value:s=="array"?[]:null}])},T=V=>{t(0,f=f.filter(J=>J.id!==V))},E=V=>{const J=f.find(re=>re.id===V),fe=it(Ae({},J),{id:Fr.generate()});t(0,f=[...f,fe])};function L(V,J){r.$$.not_equal(J.constraint,V)&&(J.constraint=V,t(0,f))}function M(V,J){r.$$.not_equal(J.valueType,V)&&(J.valueType=V,t(0,f))}const B=(V,J,fe,re)=>t(0,J[fe].value=re.detail,f);function j(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}function U(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}function q(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}function G(V,J){r.$$.not_equal(J.value,V)&&(J.value=V,t(0,f))}const Y=(V,J,fe,re)=>t(0,J[fe].error=re.detail,f),W=V=>E(V.id),H=V=>T(V.id);return r.$$set=V=>{"rules"in V&&t(0,f=V.rules),"bindings"in V&&t(1,c=V.bindings),"type"in V&&t(9,p=V.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=w(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,E,p,s,a,u,L,M,B,j,U,q,G,Y,W,H]}class $oe extends se{constructor(e){super();oe(this,e,hoe,moe,ie,{rules:0,bindings:1,type:9},null,[-1,-1])}}function boe(r){let e;return{c(){e=F("Configure validation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function voe(r){let e;return{c(){e=F("Configure validation rules for this field.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function woe(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yoe(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[woe]},$$scope:{ctx:r}}}),e.$on("click",r[5]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function koe(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 $oe({props:l}),K.push(()=>ce(e,"rules",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Coe(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[boe]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[4].show)&&r[4].show.apply(this,arguments)});let l={title:"Validation Rules",$$slots:{body:[koe],buttons:[yoe],description:[voe]},$$scope:{ctx:r}};return n=new ti({props:l}),r[7](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[7](null),A(n,s)}}}function Soe(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 Ds extends se{constructor(e){super();oe(this,e,Soe,Coe,ie,{value:0,bindings:1,componentDefinition:2,type:3})}}function Aoe(r){let e;return{c(){e=F("Background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ooe(r){let e,t,n,i;return e=new Je({props:{$$slots:{default:[Aoe]},$$scope:{ctx:r}}}),n=new xl({props:{value:r[0].background,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[5]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(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){A(e,l),l&&b(t),A(n,l)}}}function Eoe(r){let e;return{c(){e=F("Text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Toe(r){let e,t,n,i;return e=new Je({props:{$$slots:{default:[Eoe]},$$scope:{ctx:r}}}),n=new xl({props:{value:r[0].color,alignRight:!0,spectrumTheme:r[1].theme}}),n.$on("change",r[6]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(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){A(e,l),l&&b(t),A(n,l)}}}function Ioe(r){let e,t,n,i,l,s,o,a,u,f,c,p;function d(w){r[2](w)}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(w){r[3](w)}let v={label:"Alignment",options:["Left","Center","Right"],placeholder:"Default"};return r[0].align!==void 0&&(v.value=r[0].align),i=new Ye({props:v}),K.push(()=>ce(i,"value",h)),o=new Rn({props:{label:"Value",value:r[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]"}]}}),o.$on("change",r[4]),u=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Ooe]},$$scope:{ctx:r}}}),c=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Toe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),n=R(),C(i.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),f=R(),C(c.$$.fragment)},m(w,k){S(e,w,k),$(w,n,k),S(i,w,k),$(w,s,k),S(o,w,k),$(w,a,k),S(u,w,k),$(w,f,k),S(c,w,k),p=!0},p(w,k){const I={};!t&&k&1&&(t=!0,I.value=w[0].width,pe(()=>t=!1)),e.$set(I);const T={};!l&&k&1&&(l=!0,T.value=w[0].align,pe(()=>l=!1)),i.$set(T);const E={};k&1&&(E.value=w[0].template),o.$set(E);const L={};k&131&&(L.$$scope={dirty:k,ctx:w}),u.$set(L);const M={};k&131&&(M.$$scope={dirty:k,ctx:w}),c.$set(M)},i(w){p||(m(e.$$.fragment,w),m(i.$$.fragment,w),m(o.$$.fragment,w),m(u.$$.fragment,w),m(c.$$.fragment,w),p=!0)},o(w){_(e.$$.fragment,w),_(i.$$.fragment,w),_(o.$$.fragment,w),_(u.$$.fragment,w),_(c.$$.fragment,w),p=!1},d(w){A(e,w),w&&b(n),A(i,w),w&&b(s),A(o,w),w&&b(a),A(u,w),w&&b(f),A(c,w)}}}function Loe(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Ioe]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-4eq5in")},m(i,l){$(i,e,l),S(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),A(t)}}}function Poe(r){let e,t;return e=new Ni({props:{$$slots:{default:[Loe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Noe(r,e,t){let n;ae(r,qe,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 Roe extends se{constructor(e){super();oe(this,e,Noe,Poe,ie,{column:0})}}function Moe(r){let e,t=r[0].name+"",n,i;return{c(){e=F('"'),n=F(t),i=F('" column settings')},m(l,s){$(l,e,s),$(l,n,s),$(l,i,s)},p(l,s){s&1&&t!==(t=l[0].name+"")&&Ce(n,t)},d(l){l&&b(e),l&&b(n),l&&b(i)}}}function Doe(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function joe(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Doe]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Boe(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 Roe({props:l}),K.push(()=>ce(e,"column",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function zoe(r){let e,t,n,i;e=new at({props:{name:"Settings",hoverable:!0,size:"S"}}),e.$on("click",r[3]);let l={title:"Table Columns",$$slots:{body:[Boe],buttons:[joe],description:[Moe]},$$scope:{ctx:r}};return n=new ti({props:l}),r[6](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[6](null),A(n,s)}}}function qoe(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 Uoe extends se{constructor(e){super();oe(this,e,qoe,zoe,ie,{column:0})}}function t6(r,e,t){const n=r.slice();return n[19]=e[t],n[20]=e,n[21]=t,n}function Foe(r){let e,t,n,i;return n=new Ue({props:{size:"S",$$slots:{default:[Hoe]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),y(t,"class","wide svelte-17kmdew"),y(e,"class","column svelte-17kmdew")},m(l,s){$(l,e,s),P(e,t),S(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),A(n)}}}function Voe(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Yoe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Hoe(r){let e,t,n;return{c(){e=F(`By default, all table columns will automatically be shown.
|
|
896
896
|
`),t=D("br"),n=F(`
|
|
897
897
|
You can manually control which columns are included in your table,
|
|
898
|
-
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 Woe(r){let e;return{c(){e=F("Column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Goe(r){let e;return{c(){e=F("Label")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function n6(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I=Se,T,E,L;i=new at({props:{name:"DragHandle",size:"XL"}});function M(H){e[12](H,e[19])}function B(...H){return e[13](e[19],e[20],e[21],...H)}let j={placeholder:"Column",options:e[2](e[19].name)};e[19].name!==void 0&&(j.value=e[19].name),o=new Ye({props:j}),K.push(()=>ce(o,"value",M)),o.$on("change",B);function U(H){e[14](H,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",U));function G(H){e[15](H,e[19],e[20],e[21])}let Y={};e[19]!==void 0&&(Y.column=e[19]),d=new Uoe({props:Y}),K.push(()=>ce(d,"column",G));function W(){return e[16](e[19])}return v=new at({props:{name:"Close",hoverable:!0,size:"S",disabled:e[0].length===1}}),v.$on("click",W),{key:r,first:null,c(){t=D("div"),n=D("div"),C(i.$$.fragment),s=R(),C(o.$$.fragment),u=R(),C(f.$$.fragment),p=R(),C(d.$$.fragment),h=R(),C(v.$$.fragment),w=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(H,V){$(H,t,V),P(t,n),S(i,n,null),P(t,s),S(o,t,null),P(t,u),S(f,t,null),P(t,p),S(d,t,null),P(t,h),S(v,t,null),P(t,w),T=!0,E||(L=Le(n,"mousedown",e[11]),E=!0)},p(H,V){e=H,(!T||V&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const J={};V&1&&(J.options=e[2](e[19].name)),!a&&V&1&&(a=!0,J.value=e[19].name,pe(()=>a=!1)),o.$set(J);const fe={};!c&&V&1&&(c=!0,fe.value=e[19].displayName,pe(()=>c=!1)),f.$set(fe);const re={};!g&&V&1&&(g=!0,re.column=e[19],pe(()=>g=!1)),d.$set(re);const Q={};V&1&&(Q.disabled=e[0].length===1),v.$set(Q)},r(){k=t.getBoundingClientRect()},f(){xo(t),I()},a(){I(),I=ea(t,k,ta,{duration:Vm})},i(H){T||(m(i.$$.fragment,H),m(o.$$.fragment,H),m(f.$$.fragment,H),m(d.$$.fragment,H),m(v.$$.fragment,H),T=!0)},o(H){_(i.$$.fragment,H),_(o.$$.fragment,H),_(f.$$.fragment,H),_(d.$$.fragment,H),_(v.$$.fragment,H),T=!1},d(H){H&&b(t),A(i),A(o),A(f),A(d),A(v),E=!1,L()}}}function Yoe(r){let e,t,n,i,l,s,o,a,u,f,c,p,d=[],g=new Map,h,v,w,k;i=new Je({props:{size:"L",$$slots:{default:[Woe]},$$scope:{ctx:r}}}),s=new Je({props:{size:"L",$$slots:{default:[Goe]},$$scope:{ctx:r}}});let I=r[0];const T=E=>E[19].id;for(let E=0;E<I.length;E+=1){let L=t6(r,I,E),M=T(L);g.set(M,d[E]=n6(M,L))}return{c(){e=D("div"),t=D("div"),n=R(),C(i.$$.fragment),l=R(),C(s.$$.fragment),o=R(),a=D("div"),u=R(),f=D("div"),c=R(),p=D("div");for(let E=0;E<d.length;E+=1)d[E].c();y(e,"class","column svelte-r88m8w"),y(p,"class","columns svelte-r88m8w")},m(E,L){$(E,e,L),P(e,t),P(e,n),S(i,e,null),P(e,l),S(s,e,null),P(e,o),P(e,a),P(e,u),P(e,f),$(E,c,L),$(E,p,L);for(let M=0;M<d.length;M+=1)d[M].m(p,null);v=!0,w||(k=[yr(h=Wu.call(null,p,{items:r[0],flipDurationMs:Vm,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Le(p,"finalize",r[6]),Le(p,"consider",r[5])],w=!0)},p(E,L){const M={};L&4194304&&(M.$$scope={dirty:L,ctx:E}),i.$set(M);const B={};if(L&4194304&&(B.$$scope={dirty:L,ctx:E}),s.$set(B),L&23){I=E[0],x();for(let j=0;j<d.length;j+=1)d[j].r();d=rr(d,L,T,1,E,I,g,p,Zo,n6,null,t6);for(let j=0;j<d.length;j+=1)d[j].a();ee()}h&&ft(h.update)&&L&3&&h.update.call(null,{items:E[0],flipDurationMs:Vm,dropTargetStyle:{outline:"none"},dragDisabled:E[1]})},i(E){if(!v){m(i.$$.fragment,E),m(s.$$.fragment,E);for(let L=0;L<I.length;L+=1)m(d[L]);v=!0}},o(E){_(i.$$.fragment,E),_(s.$$.fragment,E);for(let L=0;L<d.length;L+=1)_(d[L]);v=!1},d(E){E&&b(e),A(i),A(s),E&&b(c),E&&b(p);for(let L=0;L<d.length;L+=1)d[L].d();w=!1,Tn(k)}}}function Joe(r){let e;return{c(){e=F("Add column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xoe(r){let e;return{c(){e=F("Add all columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function r6(r){let e,t;return e=new lt({props:{secondary:!0,quiet:!0,$$slots:{default:[Qoe]},$$scope:{ctx:r}}}),e.$on("click",r[8]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Qoe(r){let e;return{c(){e=F("Reset columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Koe(r){var h;let e,t,n,i,l,s,o,a,u,f;const c=[Voe,Foe],p=[];function d(v,w){var k;return((k=v[0])==null?void 0:k.length)?0:1}e=d(r),t=p[e]=c[e](r),s=new lt({props:{secondary:!0,icon:"Add",$$slots:{default:[Joe]},$$scope:{ctx:r}}}),s.$on("click",r[3]),a=new lt({props:{secondary:!0,quiet:!0,$$slots:{default:[Xoe]},$$scope:{ctx:r}}}),a.$on("click",r[7]);let g=((h=r[0])==null?void 0:h.length)&&r6(r);return{c(){t.c(),n=R(),i=D("div"),l=D("div"),C(s.$$.fragment),o=R(),C(a.$$.fragment),u=R(),g&&g.c(),y(l,"class","buttons wide svelte-r88m8w"),y(i,"class","column svelte-r88m8w")},m(v,w){p[e].m(v,w),$(v,n,w),$(v,i,w),P(i,l),S(s,l,null),P(l,o),S(a,l,null),P(l,u),g&&g.m(l,null),f=!0},p(v,w){var E;let k=e;e=d(v),e===k?p[e].p(v,w):(x(),_(p[k],1,1,()=>{p[k]=null}),ee(),t=p[e],t?t.p(v,w):(t=p[e]=c[e](v),t.c()),m(t,1),t.m(n.parentNode,n));const I={};w&4194304&&(I.$$scope={dirty:w,ctx:v}),s.$set(I);const T={};w&4194304&&(T.$$scope={dirty:w,ctx:v}),a.$set(T),((E=v[0])==null?void 0:E.length)?g?(g.p(v,w),w&1&&m(g,1)):(g=r6(v),g.c(),m(g,1),g.m(l,null)):g&&(x(),_(g,1,1,()=>{g=null}),ee())},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),A(s),A(a),g&&g.d()}}}function Zoe(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Koe]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-r88m8w")},m(i,l){$(i,e,l),S(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),A(t)}}}function xoe(r){let e,t;return e=new Ni({props:{$$slots:{default:[Zoe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const Vm=150;function eae(r,e,t){let n,{columns:i=[]}=e,{options:l=[]}=e,{schema:s={}}=e,o=!0;const a=(L,M)=>{let B={};return L.forEach(j=>{B[j]=!0}),M==null||M.forEach(j=>{delete B[j.name]}),Object.keys(B)},u=L=>!L||n.includes(L)?n:[L,...n],f=()=>{t(0,i=[...i,{}])},c=L=>{t(0,i=i.filter(M=>M.id!==L))},p=L=>{t(0,i=L.detail.items)},d=L=>{p(L),t(1,o=!0)},g=()=>{let L=i||[];l.forEach(M=>{const B=s[M],j=i&&i.findIndex(U=>U.name===M)!==-1;!(B==null?void 0:B.autocolumn)&&!j&&L.push({name:M,displayName:M})}),t(0,i=L)},h=()=>{t(0,i=[])},v=()=>t(1,o=!1);function w(L,M){r.$$.not_equal(M.name,L)&&(M.name=L,t(0,i))}const k=(L,M,B,j)=>t(0,M[B].displayName=j.detail,i);function I(L,M){r.$$.not_equal(M.displayName,L)&&(M.displayName=L,t(0,i))}function T(L,M,B,j){B[j]=L,t(0,i)}const E=L=>c(L.id);return r.$$set=L=>{"columns"in L&&t(0,i=L.columns),"options"in L&&t(9,l=L.options),"schema"in L&&t(10,s=L.schema)},r.$$.update=()=>{r.$$.dirty&513&&(n=a(l,i)),r.$$.dirty&1&&i.forEach(L=>{L.id||(L.id=Fr.generate())})},[i,o,u,f,c,p,d,g,h,l,s,v,w,k,I,T,E]}class tae extends se{constructor(e){super();oe(this,e,eae,xoe,ie,{columns:0,options:9,schema:10})}}function nae(r){let e;return{c(){e=F("Configure columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rae(r){let e;return{c(){e=F("Configure the columns in your table.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function iae(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function lae(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[iae]},$$scope:{ctx:r}}}),e.$on("click",r[5]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function sae(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 tae({props:l}),K.push(()=>ce(e,"columns",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function oae(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[nae]},$$scope:{ctx:r}}}),e.$on("click",r[4]);let l={title:"Table Columns",$$slots:{body:[sae],buttons:[lae],description:[rae]},$$scope:{ctx:r}};return n=new ti({props:l}),r[12](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[12](null),A(n,s)}}}function aae(r,e,t){let n,i,l,s,o;ae(r,nn,T=>t(10,o=T));let{componentInstance:a}=e,{value:u=[]}=e;const f=_t();let c,p;const d=(T,E)=>{const L=Oi(T,E).schema;return L&&(delete L._id,delete L._rev),L},g=T=>{t(3,p=Sn.cloneDeep(T))},h=(T,E)=>!Array.isArray(T)||!T.length?[]:(typeof T[0]=="string"&&(T=T.map(L=>({name:L,displayName:L}))),T.filter(L=>E.includes(L.name))),v=()=>{g(s),c.show()},w=()=>{f("change",h(p,l)),c.hide()};function k(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=rl(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,w,a,u,s,n,o,k,I]}class uae extends se{constructor(e){super();oe(this,e,aae,oae,ie,{componentInstance:6,value:7})}}const fae={text:Wy,select:Ye,dataSource:iy,"dataSource/s3":Nne,dataProvider:jne,boolean:ni,number:z_,event:wle,table:Sle,color:qm,icon:jle,field:qle,multifield:Vle,searchfield:Gle,options:Yse,schema:Xle,section:nse,navigation:_se,filter:kse,url:Pse,columns:uae,"field/string":il,"field/number":il,"field/options":il,"field/boolean":il,"field/longform":il,"field/datetime":il,"field/attachment":il,"field/link":il,"field/array":il,"field/json":il,"validation/string":Ds,"validation/array":Ds,"validation/number":Ds,"validation/boolean":Ds,"validation/datetime":Ds,"validation/attachment":Ds,"validation/link":Ds},mc=r=>fae[r];function i6(r,e,t){const n=r.slice();return n[11]=e[t],n[13]=t,n}function l6(r,e,t){const n=r.slice();return n[14]=e[t],n}function s6(r){let e,t;return e=new Wa({props:{control:et,label:"Name",key:"_instanceName",value:r[1]._instanceName,onChange:r[8]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function o6(r){let e,t;function n(...i){return r[9](r[14],...i)}return e=new Wa({props:{type:r[14].type,control:mc(r[14].type),label:r[14].label,key:r[14].key,value:r[1][r[14].key],defaultValue:r[14].defaultValue,nested:r[14].nested,onChange:n,highlighted:r[5].highlightedSettingKey===r[14].key,props:{options:r[14].options||[],placeholder:r[14].placeholder||null,min:r[14].min||null,max:r[14].max||null},bindings:r[2],componentBindings:r[3],componentInstance:r[1],componentDefinition:r[0]}}),{c(){C(e.$$.fragment)},m(i,l){S(e,i,l),t=!0},p(i,l){r=i;const s={};l&16&&(s.type=r[14].type),l&16&&(s.control=mc(r[14].type)),l&16&&(s.label=r[14].label),l&16&&(s.key=r[14].key),l&18&&(s.value=r[1][r[14].key]),l&16&&(s.defaultValue=r[14].defaultValue),l&16&&(s.nested=r[14].nested),l&16&&(s.onChange=n),l&48&&(s.highlighted=r[5].highlightedSettingKey===r[14].key),l&16&&(s.props={options:r[14].options||[],placeholder:r[14].placeholder||null,min:r[14].min||null,max:r[14].max||null}),l&4&&(s.bindings=r[2]),l&8&&(s.componentBindings=r[3]),l&2&&(s.componentInstance=r[1]),l&1&&(s.componentDefinition=r[0]),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){A(e,i)}}}function a6(r,e){let t,n=e[7](e[14]),i,l,s=n&&o6(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[7](e[14])),n?s?(s.p(e,a),a&16&&m(s,1)):(s=o6(e),s.c(),m(s,1),s.m(i.parentNode,i)):s&&(x(),_(s,1,1,()=>{s=null}),ee())},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 u6(r){let e,t;return e=new mne({props:{componentInstance:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function f6(r){let e,t=r[11].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[11].info+"")&&(e.innerHTML=t)},d(n){n&&b(e)}}}function cae(r){var h,v,w;let e=r[13]===0&&!r[1]._component.endsWith("/layout"),t,n=[],i=new Map,l,s=r[13]===0&&((v=(h=r[0])==null?void 0:h.component)==null?void 0:v.endsWith("/fieldgroup")),o,a,u,f=e&&s6(r),c=r[11].settings;const p=k=>k[14].key;for(let k=0;k<c.length;k+=1){let I=l6(r,c,k),T=p(I);i.set(T,n[k]=a6(T,I))}let d=s&&u6(r),g=((w=r[11])==null?void 0:w.info)&&f6(r);return{c(){f&&f.c(),t=R();for(let k=0;k<n.length;k+=1)n[k].c();l=R(),d&&d.c(),o=R(),g&&g.c(),a=R()},m(k,I){f&&f.m(k,I),$(k,t,I);for(let T=0;T<n.length;T+=1)n[T].m(k,I);$(k,l,I),d&&d.m(k,I),$(k,o,I),g&&g.m(k,I),$(k,a,I),u=!0},p(k,I){var T,E,L;I&18&&(e=k[13]===0&&!k[1]._component.endsWith("/layout")),e?f?(f.p(k,I),I&18&&m(f,1)):(f=s6(k),f.c(),m(f,1),f.m(t.parentNode,t)):f&&(x(),_(f,1,1,()=>{f=null}),ee()),I&255&&(c=k[11].settings,x(),n=rr(n,I,p,1,k,c,i,l.parentNode,Ur,a6,l,l6),ee()),I&17&&(s=k[13]===0&&((E=(T=k[0])==null?void 0:T.component)==null?void 0:E.endsWith("/fieldgroup"))),s?d?(d.p(k,I),I&17&&m(d,1)):(d=u6(k),d.c(),m(d,1),d.m(o.parentNode,o)):d&&(x(),_(d,1,1,()=>{d=null}),ee()),((L=k[11])==null?void 0:L.info)?g?g.p(k,I):(g=f6(k),g.c(),g.m(a.parentNode,a)):g&&(g.d(1),g=null)},i(k){if(!u){m(f);for(let I=0;I<c.length;I+=1)m(n[I]);m(d),u=!0}},o(k){_(f);for(let I=0;I<n.length;I+=1)_(n[I]);_(d),u=!1},d(k){f&&f.d(k),k&&b(t);for(let I=0;I<n.length;I+=1)n[I].d(k);k&&b(l),d&&d.d(k),k&&b(o),g&&g.d(k),k&&b(a)}}}function c6(r,e){let t,n,i;return n=new la({props:{name:e[11].name,collapsible:!1,$$slots:{default:[cae]},$$scope:{ctx:e}}}),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),S(n,l,s),i=!0},p(l,s){e=l;const o={};s&16&&(o.name=e[11].name),s&131135&&(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),A(n,l)}}}function pae(r){let e=[],t=new Map,n,i,l=r[4];const s=o=>o[11].name;for(let o=0;o<l.length;o+=1){let a=i6(r,l,o),u=s(a);t.set(u,e[o]=c6(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&255&&(l=o[4],x(),e=rr(e,a,s,1,o,l,t,n.parentNode,Ur,c6,n,i6),ee())},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 dae(r,e,t){let n,i;ae(r,qe,g=>t(5,i=g));let{componentDefinition:l}=e,{componentInstance:s}=e,{bindings:o}=e,{componentBindings:a}=e;const u=g=>{var k;const h=(k=g==null?void 0:g.settings)!=null?k:[],v=h.filter(I=>!I.section),w=h.filter(I=>I.section);return[{name:(l==null?void 0:l.name)||"General",info:l==null?void 0:l.info,settings:v},...w||[]]},f=Dv(async(g,h)=>{try{await qe.actions.components.updateProp(g,h)}catch{we.error("Error updating component prop")}}),c=g=>{if(!mc(g==null?void 0:g.type))return!1;if(g.dependsOn){let v=g.dependsOn,w=null;if(typeof g.dependsOn=="object"&&(v=g.dependsOn.setting,w=g.dependsOn.value),!v)return!1;if(w==null){const k=s[v];return k===!1?!1:k===!0?!0:!Sn.isEmpty(k)}return s[v]===w}return!0},p=g=>f("_instanceName",g),d=(g,h)=>f(g.key,h);return r.$$set=g=>{"componentDefinition"in g&&t(0,l=g.componentDefinition),"componentInstance"in g&&t(1,s=g.componentInstance),"bindings"in g&&t(2,o=g.bindings),"componentBindings"in g&&t(3,a=g.componentBindings)},r.$$.update=()=>{r.$$.dirty&1&&t(4,n=u(l))},[l,s,o,a,n,i,f,c,p,d]}class mae extends se{constructor(e){super();oe(this,e,dae,pae,ie,{componentDefinition:0,componentInstance:1,bindings:2,componentBindings:3})}}function p6(r,e,t){const n=r.slice();return n[11]=e[t],n}function d6(r,e){let t,n,i,l;function s(...o){return e[10](e[11],...o)}return n=new Wa({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"),C(n.$$.fragment),i=R(),ht(t,"grid-column",e[11].column||"auto"),this.first=t},m(o,a){$(o,t,a),S(n,t,null),P(t,i),l=!0},p(o,a){e=o;const u={};a&36&&(u.label=`${e[11].label}${e[7](e[5],e[11])?" *":""}`),a&4&&(u.control=e[11].control),a&4&&(u.key=e[11].key),a&36&&(u.value=e[5][e[11].key]),a&4&&(u.onChange=s),a&4&&(u.props=e[8](e[11])),a&16&&(u.bindings=e[4]),n.$set(u),(!l||a&4)&&ht(t,"grid-column",e[11].column||"auto")},i(o){l||(m(n.$$.fragment,o),l=!0)},o(o){_(n.$$.fragment,o),l=!1},d(o){o&&b(t),A(n)}}}function gae(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=p6(r,l,o),u=s(a);n.set(u,t[o]=d6(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"),ht(e,"grid-template-columns",r[1]||"1fr")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,a){a&956&&(l=o[2],x(),t=rr(t,a,s,1,o,l,n,e,Ur,d6,null,p6),ee()),(!i||a&2)&&ht(e,"grid-template-columns",o[1]||"1fr")},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function _ae(r){let e,t;return e=new la({props:{collapsible:!1,name:`${r[0]}${r[6]?" *":""}`,$$slots:{default:[gae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function hae(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 qe.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 $ae extends se{constructor(e){super();oe(this,e,hae,_ae,ie,{name:0,columns:1,properties:2,componentInstance:3,bindings:4})}}const m6={label:"Margin",columns:"1fr 1fr",settings:[{label:"Top",key:"margin-top",control:Ye,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:Ye,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:Ye,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:Ye,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%"}]}]},bae={label:"Padding",columns:"1fr 1fr",settings:[{label:"Top",key:"padding-top",control:Ye,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:Ye,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:Ye,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:Ye,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%"}]}]},vae={label:"Size",columns:"1fr 1fr",settings:[{label:"Width",key:"width",control:et,placeholder:"Auto"},{label:"Height",key:"height",control:et,placeholder:"Auto"}]},wae={label:"Background",columns:"auto 1fr",settings:[{label:"Color",key:"background",control:qm},{label:"Gradient",key:"background-image",control:Ye,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%);"}]}]},yae={label:"Border",columns:"1fr 1fr",settings:[{label:"Color",key:"border-color",control:qm},{label:"Width",key:"border-width",control:Ye,column:"1 / 2",placeholder:"None",options:[{label:"Small",value:"1px"},{label:"Medium",value:"2px"},{label:"Large",value:"4px"}]},{label:"Style",key:"border-style",control:Ye,column:"2 / 3",placeholder:"None",options:[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}]},{label:"Radius",key:"border-radius",control:Ye,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:Ye,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)"}]}]},Hm=[m6];var g6=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",margin:m6,padding:bae,size:vae,background:wae,border:yae,all:Hm});function _6(r,e,t){const n=r.slice();return n[5]=e[t],n}function h6(r){let e,t,n=r[2],i=[];for(let s=0;s<n.length;s+=1)i[s]=$6(_6(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=_6(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=$6(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function $6(r){let e,t;return e=new $ae({props:{style:r[5],name:r[5].label,columns:r[5].columns,properties:r[5].settings,componentInstance:r[0],bindings:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function kae(r){var i;let e,t,n=((i=r[2])==null?void 0:i.length)>0&&h6(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=h6(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(l){t||(m(n),t=!0)},o(l){_(n),t=!1},d(l){n&&n.d(l),l&&b(e)}}}function Cae(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[...Hm];let u=[...Hm];return a.styles.forEach(c=>{g6[c]&&u.push(g6[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 Sae extends se{constructor(e){super();oe(this,e,Cae,kae,ie,{componentDefinition:3,componentInstance:0,bindings:1})}}function Aae(r){let e;return{c(){e=F("Edit custom CSS")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Oae(r){let e,t,n;return t=new Ut({props:{$$slots:{default:[Aae]},$$scope:{ctx:r}}}),t.$on("click",r[3]),{c(){e=D("div"),C(t.$$.fragment)},m(i,l){$(i,e,l),S(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),A(t)}}}function Eae(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Tae(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Eae]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Iae(r){let e;return{c(){e=F("Custom CSS overrides all other component styles.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lae(r){let e,t,n,i,l;e=new Ue({props:{size:"S",$$slots:{default:[Iae]},$$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 _i({props:o}),K.push(()=>ce(n,"value",s)),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(a,u){S(e,a,u),$(a,t,u),S(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){A(e,a),a&&b(t),A(n,a)}}}function Pae(r){let e,t,n;return t=new ze({props:{gap:"S",noPadding:!0,$$slots:{default:[Lae]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","content svelte-ernmz2")},m(i,l){$(i,e,l),S(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),A(t)}}}function Nae(r){let e,t;return e=new Ni({props:{slot:"body",$$slots:{default:[Pae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function b6(r){let e,t,n={title:"Custom CSS",$$slots:{body:[Nae],buttons:[Tae]},$$scope:{ctx:r}};return e=new ti({props:n}),r[6](e),{c(){C(e.$$.fragment)},m(i,l){S(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),A(e,i)}}}function Rae(r){var o,a,u;let e,t,n=(o=r[0])==null?void 0:o._id,i,l;e=new la({props:{name:`Custom CSS${((u=(a=r[0])==null?void 0:a._styles)==null?void 0:u.custom)?" *":""}`,collapsible:!1,$$slots:{default:[Oae]},$$scope:{ctx:r}}});let s=b6(r);return{c(){C(e.$$.fragment),t=R(),s.c(),i=Oe()},m(f,c){S(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&&ie(n,n=(h=f[0])==null?void 0:h._id)?(x(),_(s,1,1,Se),ee(),s=b6(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){A(e,f),f&&b(t),f&&b(i),s.d(f)}}}function Mae(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 qe.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 Dae extends se{constructor(e){super();oe(this,e,Mae,Rae,ie,{componentInstance:0})}}function v6(r,e,t){const n=r.slice();return n[32]=e[t],n[33]=e,n[34]=t,n}function jae(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[zae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Bae(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=v6(r,a,f),p=u(c);n.set(p,t[f]=y6(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=[yr(i=Wu.call(null,e,{items:r[0],flipDurationMs:Wm,dropTargetStyle:{outline:"none"},dragDisabled:r[3]})),Le(e,"finalize",r[12]),Le(e,"consider",r[13])],s=!0)},p(f,c){if(c[0]&118271){a=f[0],x();for(let p=0;p<t.length;p+=1)t[p].r();t=rr(t,c,u,1,f,a,n,e,Zo,y6,null,v6);for(let p=0;p<t.length;p+=1)t[p].a();ee()}i&&ft(i.update)&&c[0]&9&&i.update.call(null,{items:f[0],flipDurationMs:Wm,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 zae(r){let e;return{c(){e=F("Add your first condition to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function w6(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 Ye({props:p}),K.push(()=>ce(e,"value",c));const d=[Uae,qae],g=[];function h(v,w){return(s==null||w[0]&1)&&(s=!!v[7](v[32].setting)),s?0:1}return o=h(r,[-1,-1]),a=g[o]=d[o](r),{c(){C(e.$$.fragment),n=R(),i=D("div"),i.textContent="TO",l=R(),a.c(),u=Oe()},m(v,w){S(e,v,w),$(v,n,w),$(v,i,w),$(v,l,w),g[o].m(v,w),$(v,u,w),f=!0},p(v,w){r=v;const k={};w[0]&16&&(k.options=r[4]),!t&&w[0]&1&&(t=!0,k.value=r[32].setting,pe(()=>t=!1)),e.$set(k);let I=o;o=h(r,w),o===I?g[o].p(r,w):(x(),_(g[I],1,1,()=>{g[I]=null}),ee(),a=g[o],a?a.p(r,w):(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){A(e,v),v&&b(n),v&&b(i),v&&b(l),g[o].d(v),v&&b(u)}}}function qae(r){let e,t;return e=new Ye({props:{disabled:!0,placeholder:" "}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p:Se,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Uae(r){let e,t;function n(...i){return r[21](r[32],r[33],r[34],...i)}return e=new Wa({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(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function Fae(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 Ye({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Vae(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 Vl({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Hae(r){let e,t;function n(...i){return r[27](r[32],r[33],r[34],...i)}return e=new Rn({props:{disabled:r[32].noValue,bindings:r[1],placeholder:"Value",value:r[32].referenceValue}}),e.$on("change",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function y6(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,E,L,M,B,j,U,q,G,Y,W=Se,H,V,J;i=new at({props:{name:"DragHandle",size:"XL"}});function fe(Ee){e[19](Ee,e[32])}let re={placeholder:null,options:e[5]};e[32].action!==void 0&&(re.value=e[32].action),o=new Ye({props:re}),K.push(()=>ce(o,"value",fe));let Q=e[32].action==="update"&&w6(e);function te(...Ee){return e[22](e[32],e[33],e[34],...Ee)}d=new Rn({props:{bindings:e[1],placeholder:"Value",value:e[32].newValue}}),d.$on("change",te);function _e(Ee){e[23](Ee,e[32])}function Re(...Ee){return e[24](e[32],...Ee)}let be={placeholder:null,options:e[14](e[32])};e[32].operator!==void 0&&(be.value=e[32].operator),h=new Ye({props:be}),K.push(()=>ce(h,"value",_e)),h.$on("change",Re);function he(Ee){e[25](Ee,e[32])}function ve(...Ee){return e[26](e[32],...Ee)}let Ie={disabled:e[32].noValue,options:e[6],placeholder:null};e[32].valueType!==void 0&&(Ie.value=e[32].valueType),k=new Ye({props:Ie}),K.push(()=>ce(k,"value",he)),k.$on("change",ve);const Be=[Hae,Vae,Fae],ue=[];function Ve(Ee,ke){return(E==null||ke[0]&1)&&(E=!!["string","number"].includes(Ee[32].valueType)),E?0:Ee[32].valueType==="datetime"?1:Ee[32].valueType==="boolean"?2:-1}~(L=Ve(e,[-1,-1]))&&(M=ue[L]=Be[L](e));function de(){return e[30](e[32])}j=new at({props:{name:"Duplicate",hoverable:!0,size:"S"}}),j.$on("click",de);function $e(){return e[31](e[32])}return q=new at({props:{name:"Close",hoverable:!0,size:"S"}}),q.$on("click",$e),{key:r,first:null,c(){t=D("div"),n=D("div"),C(i.$$.fragment),s=R(),C(o.$$.fragment),u=R(),Q&&Q.c(),f=R(),c=D("div"),c.textContent="IF",p=R(),C(d.$$.fragment),g=R(),C(h.$$.fragment),w=R(),C(k.$$.fragment),T=R(),M&&M.c(),B=R(),C(j.$$.fragment),U=R(),C(q.$$.fragment),G=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"),le(t,"update",e[32].action==="update"),this.first=t},m(Ee,ke){$(Ee,t,ke),P(t,n),S(i,n,null),P(t,s),S(o,t,null),P(t,u),Q&&Q.m(t,null),P(t,f),P(t,c),P(t,p),S(d,t,null),P(t,g),S(h,t,null),P(t,w),S(k,t,null),P(t,T),~L&&ue[L].m(t,null),P(t,B),S(j,t,null),P(t,U),S(q,t,null),P(t,G),H=!0,V||(J=Le(n,"mousedown",e[18]),V=!0)},p(Ee,ke){e=Ee,(!H||ke[0]&8&&l!==(l=e[3]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const Ke={};!a&&ke[0]&1&&(a=!0,Ke.value=e[32].action,pe(()=>a=!1)),o.$set(Ke),e[32].action==="update"?Q?(Q.p(e,ke),ke[0]&1&&m(Q,1)):(Q=w6(e),Q.c(),m(Q,1),Q.m(t,f)):Q&&(x(),_(Q,1,1,()=>{Q=null}),ee());const Nt={};ke[0]&2&&(Nt.bindings=e[1]),ke[0]&1&&(Nt.value=e[32].newValue),d.$set(Nt);const zt={};ke[0]&1&&(zt.options=e[14](e[32])),!v&&ke[0]&1&&(v=!0,zt.value=e[32].operator,pe(()=>v=!1)),h.$set(zt);const qt={};ke[0]&1&&(qt.disabled=e[32].noValue),!I&&ke[0]&1&&(I=!0,qt.value=e[32].valueType,pe(()=>I=!1)),k.$set(qt);let Xt=L;L=Ve(e,ke),L===Xt?~L&&ue[L].p(e,ke):(M&&(x(),_(ue[Xt],1,1,()=>{ue[Xt]=null}),ee()),~L?(M=ue[L],M?M.p(e,ke):(M=ue[L]=Be[L](e),M.c()),m(M,1),M.m(t,B)):M=null),ke[0]&1&&le(t,"update",e[32].action==="update")},r(){Y=t.getBoundingClientRect()},f(){xo(t),W()},a(){W(),W=ea(t,Y,ta,{duration:Wm})},i(Ee){H||(m(i.$$.fragment,Ee),m(o.$$.fragment,Ee),m(Q),m(d.$$.fragment,Ee),m(h.$$.fragment,Ee),m(k.$$.fragment,Ee),m(M),m(j.$$.fragment,Ee),m(q.$$.fragment,Ee),H=!0)},o(Ee){_(i.$$.fragment,Ee),_(o.$$.fragment,Ee),_(Q),_(d.$$.fragment,Ee),_(h.$$.fragment,Ee),_(k.$$.fragment,Ee),_(M),_(j.$$.fragment,Ee),_(q.$$.fragment,Ee),H=!1},d(Ee){Ee&&b(t),A(i),A(o),Q&&Q.d(),A(d),A(h),A(k),~L&&ue[L].d(),A(j),A(q),V=!1,J()}}}function Wae(r){let e;return{c(){e=F("Add condition")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Gae(r){let e,t,n,i,l,s;const o=[Bae,jae],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 lt({props:{secondary:!0,icon:"Add",$$slots:{default:[Wae]},$$scope:{ctx:r}}}),l.$on("click",r[9]),{c(){t.c(),n=R(),i=D("div"),C(l.$$.fragment)},m(f,c){a[e].m(f,c),$(f,n,c),$(f,i,c),S(l,i,null),s=!0},p(f,c){let p=e;e=u(f),e===p?a[e].p(f,c):(x(),_(a[p],1,1,()=>{a[p]=null}),ee(),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),A(l)}}}function Yae(r){let e,t,n;return t=new ze({props:{noPadding:!0,$$slots:{default:[Gae]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-1vod3ll")},m(i,l){$(i,e,l),S(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),A(t)}}}function Jae(r){let e,t;return e=new Ni({props:{$$slots:{default:[Yae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const Wm=150;function Xae(r,e,t){let n,i,l;ae(r,ai,re=>t(2,l=re));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=re=>n.find(Q=>Q.key===re),p=re=>{const Q=c(re);return mc((Q==null?void 0:Q.type)||"text")},d=()=>{t(0,s=[...s,{valueType:"string",id:Fr.generate(),action:"hide",operator:Pr.Equals.value}])},g=re=>{t(0,s=s.filter(Q=>Q.id!==re))},h=re=>{const Q=s.find(_e=>_e.id===re),te=it(Ae({},Q),{id:Fr.generate()});t(0,s=[...s,te])},v=re=>{w(re),t(3,f=!0)},w=re=>{t(0,s=re.detail.items)},k=re=>Ba(re.valueType),I=(re,Q)=>{const te=[Pr.Empty.value,Pr.NotEmpty.value];re.noValue=te.includes(Q),re.noValue&&(re.referenceValue=null,re.valueType="string")},T=(re,Q)=>{var _e;re.referenceValue=null;const te=Ba(Q).map(Re=>Re.value);te.includes(re.operator)||(re.operator=(_e=te[0])!=null?_e:Pr.Equals.value,I(re,re.operator))},E=()=>t(3,f=!1);function L(re,Q){r.$$.not_equal(Q.action,re)&&(Q.action=re,t(0,s))}function M(re,Q){r.$$.not_equal(Q.setting,re)&&(Q.setting=re,t(0,s))}const B=(re,Q,te,_e)=>t(0,Q[te].settingValue=_e,s),j=(re,Q,te,_e)=>t(0,Q[te].newValue=_e.detail,s);function U(re,Q){r.$$.not_equal(Q.operator,re)&&(Q.operator=re,t(0,s))}const q=(re,Q)=>I(re,Q.detail);function G(re,Q){r.$$.not_equal(Q.valueType,re)&&(Q.valueType=re,t(0,s))}const Y=(re,Q)=>T(re,Q.detail),W=(re,Q,te,_e)=>t(0,Q[te].referenceValue=_e.detail,s);function H(re,Q){r.$$.not_equal(Q.referenceValue,re)&&(Q.referenceValue=re,t(0,s))}function V(re,Q){r.$$.not_equal(Q.referenceValue,re)&&(Q.referenceValue=re,t(0,s))}const J=re=>h(re.id),fe=re=>g(re.id);return r.$$set=re=>{"conditions"in re&&t(0,s=re.conditions),"bindings"in re&&t(1,o=re.bindings)},r.$$.update=()=>{r.$$.dirty[0]&4&&t(17,n=Ao(l==null?void 0:l._component)),r.$$.dirty[0]&131072&&t(4,i=n.map(re=>({label:re.label,value:re.key}))),r.$$.dirty[0]&1&&s.forEach(re=>{re.id||(re.id=Fr.generate())})},[s,o,l,f,i,a,u,c,p,d,g,h,v,w,k,I,T,n,E,L,M,B,j,U,q,G,Y,W,H,V,J,fe]}class Qae extends se{constructor(e){super();oe(this,e,Xae,Jae,ie,{conditions:0,bindings:1},null,[-1,-1])}}function Kae(r){let e;return{c(){e=F("Configure conditions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Zae(r){let e,t,n;return t=new Ut({props:{$$slots:{default:[Kae]},$$scope:{ctx:r}}}),t.$on("click",r[4]),{c(){e=D("div"),C(t.$$.fragment)},m(i,l){$(i,e,l),S(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),A(t)}}}function xae(r){let e;return{c(){e=F("Show, hide and update components in response to conditions being met.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function eue(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tue(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[eue]},$$scope:{ctx:r}}}),e.$on("click",r[7]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function nue(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 Qae({props:l}),K.push(()=>ce(e,"conditions",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function rue(r){var s;let e,t,n,i;e=new la({props:{name:`Conditions${((s=r[0])==null?void 0:s._conditions)?" *":""}`,collapsible:!1,$$slots:{default:[Zae]},$$scope:{ctx:r}}});let l={title:"Conditions",$$slots:{body:[nue],buttons:[tue],description:[xae]},$$scope:{ctx:r}};return n=new ti({props:l}),r[8](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(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){A(e,o),o&&b(t),r[8](null),A(n,o)}}}function iue(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 qe.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 lue extends se{constructor(e){super();oe(this,e,iue,rue,ie,{componentInstance:0,bindings:1})}}function k6(r){let e,t,n,i,l,s,o,a,u,f;return e=new ene({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),n=new mae({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1],componentBindings:r[0]}}),l=new Sae({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),o=new Dae({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),u=new lue({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment)},m(c,p){S(e,c,p),$(c,t,p),S(n,c,p),$(c,i,p),S(l,c,p),$(c,s,p),S(o,c,p),$(c,a,p),S(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 w={};p&8&&(w.componentInstance=c[3]),p&4&&(w.componentDefinition=c[2]),p&2&&(w.bindings=c[1]),u.$set(w)},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){A(e,c),c&&b(t),A(n,c),c&&b(i),A(l,c),c&&b(s),A(o,c),c&&b(a),A(u,c)}}}function sue(r){var l;let e,t=(l=r[3])==null?void 0:l._id,n,i=k6(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&&ie(t,t=(a=s[3])==null?void 0:a._id)?(x(),_(i,1,1,Se),ee(),i=k6(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 oue(r){let e,t;return e=new _n({props:{title:"Settings",$$slots:{default:[sue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function aue(r){let e,t;return e=new Sr({props:{selected:"Settings",noPadding:!0,$$slots:{default:[oue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function uue(r,e,t){let n,i,l,s,o,a,u;return ae(r,qe,f=>t(4,o=f)),ae(r,nn,f=>t(5,a=f)),ae(r,ai,f=>t(6,u=f)),r.$$.update=()=>{r.$$.dirty&64&&t(3,n=u),r.$$.dirty&64&&t(2,i=qe.actions.components.getDefinition(u==null?void 0:u._component)),r.$$.dirty&48&&t(1,l=JU(a,o.selectedComponentId)),r.$$.dirty&48&&t(0,s=XU(a,o.selectedComponentId))},[s,l,i,n,o,a,u]}class fue extends se{constructor(e){super();oe(this,e,uue,aue,ie,{})}}var cue=[{name:"Blocks",icon:"Article",children:["tableblock","cardsblock","repeaterblock"]},{name:"Layout",icon:"ClassicGridView",children:["container","section"]},{name:"Data",icon:"Data",children:["dataprovider","repeater","table","dynamicfilter"]},{name:"Form",icon:"Form",children:["form","formstep","fieldgroup","stringfield","numberfield","passwordfield","optionsfield","booleanfield","longformfield","datetimefield","attachmentfield","relationshipfield","daterangepicker","multifieldselect","jsonfield","s3upload"]},{name:"Card",icon:"Card",children:["spectrumcard","cardstat"]},{name:"Chart",icon:"GraphBarVertical",children:["bar","line","area","pie","donut","candlestick"]},{name:"Elements",icon:"TextParagraph",children:["heading","text","button","tag","divider","image","backgroundimage","link","icon","embed","markdownviewer","embeddedmap"]}];function C6(r,e,t){const n=r.slice();return n[9]=e[t],n}function S6(r,e,t){const n=r.slice();return n[9]=e[t],n}function A6(r){let e,t;function n(){return r[7](r[9])}return e=new ln({props:{dataCy:`component-${r[9].name}`,icon:r[9].icon,disabled:r[3](r[9],r[1]),$$slots:{default:[pue]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function pue(r){let e=r[9].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[9].name+"")&&Ce(t,e)},d(n){n&&b(t)}}}function O6(r){let e=!r[9].showOnAsset||r[9].showOnAsset.includes(r[2]),t,n,i=e&&A6(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=A6(l),i.c(),m(i,1),i.m(t.parentNode,t)):i&&(x(),_(i,1,1,()=>{i=null}),ee())},i(l){n||(m(i),n=!0)},o(l){_(i),n=!1},d(l){i&&i.d(l),l&&b(t)}}}function due(r){let e,t,n=r[9].children||[],i=[];for(let s=0;s<n.length;s+=1)i[s]=O6(S6(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=S6(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=O6(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function E6(r){let e,t;return e=new at({props:{size:"S",name:"ChevronDown"}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function mue(r){let e,t=r[9].name+"",n,i,l,s,o=r[9].isCategory&&E6();return{c(){e=D("div"),n=F(t),i=R(),o&&o.c(),l=R(),y(e,"class","buttonContent svelte-15cdrfq")},m(a,u){$(a,e,u),P(e,n),P(e,i),o&&o.m(e,null),$(a,l,u),s=!0},p(a,u){(!s||u&1)&&t!==(t=a[9].name+"")&&Ce(n,t),a[9].isCategory?o?u&1&&m(o,1):(o=E6(),o.c(),m(o,1),o.m(e,null)):o&&(x(),_(o,1,1,()=>{o=null}),ee())},i(a){s||(m(o),s=!0)},o(a){_(o),s=!1},d(a){a&&b(e),o&&o.d(),a&&b(l)}}}function gue(r){let e,t;function n(){return r[6](r[9])}return e=new Ut({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:[mue]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function T6(r){let e,t;return e=new kr({props:{disabled:!r[9].isCategory,$$slots:{control:[gue],default:[due]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function _ue(r){let e,t,n=r[0],i=[];for(let s=0;s<n.length;s+=1)i[s]=T6(C6(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=C6(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=T6(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function hue(r,e,t){let n,i,l,s;ae(r,qe,p=>t(5,i=p)),ae(r,ai,p=>t(1,l=p)),ae(r,Ez,p=>t(2,s=p));const o=({name:p},d)=>{var h;const g=qe.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(it(Ae({},v),{isCategory:!1}))}else g.push(it(Ae({},h),{isCategory:!0,children:a(h.children||[],d)}))}),g},u=async p=>{if(!p.isCategory)try{await qe.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(cue,i.components))},[n,l,s,o,u,i,f,c]}class $ue extends se{constructor(e){super();oe(this,e,hue,_ue,ie,{})}}const I6={MOVE:"move",COPY:"copy"},Yr={ABOVE:"above",BELOW:"below",INSIDE:"inside"};function L6(){const r=fn({});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=Yr.ABOVE),i>.8&&(l.dropPosition=Yr.BELOW),i>.4&&i<.8&&(l.dropPosition=Yr.INSIDE),l):(i>.5?l.dropPosition=Yr.BELOW:l.dropPosition=n?Yr.INSIDE:Yr.ABOVE,l)))},reset:()=>{r.update(e=>(e.dropPosition="",e.targetComponent=null,e.dragged=null,e))},drop:async()=>{const e=xe(r);e.targetComponent===e.dragged||!e.targetComponent||!e.dragged||Tl(e.dragged,e.targetComponent._id).map(i=>i._id).includes(e.targetComponent._id)||(qe.actions.components.copy(e.dragged,!0),await qe.actions.components.paste(e.targetComponent,e.dropPosition),r.actions.reset())}},r}function P6(r){var s;let e,t,n,i;e=new kr({props:{$$slots:{control:[Tue],default:[Eue]},$$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(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(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){A(e,o),o&&b(t),r[18](null),A(n,o)}}}function bue(r){let e;return{c(){e=F("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function vue(r){let e;return{c(){e=F("Move up")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function wue(r){let e;return{c(){e=F("Move down")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yue(r){let e;return{c(){e=F("Duplicate")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function kue(r){let e;return{c(){e=F("Cut")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cue(r){let e;return{c(){e=F("Copy")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sue(r){let e;return{c(){e=F("Paste above")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Aue(r){let e;return{c(){e=F("Paste below")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Oue(r){let e;return{c(){e=F("Paste inside")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Eue(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k;return e=new ln({props:{icon:"Delete",$$slots:{default:[bue]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)}),n=new ln({props:{noClose:!0,icon:"ChevronUp",$$slots:{default:[vue]},$$scope:{ctx:r}}}),n.$on("click",r[5]),l=new ln({props:{noClose:!0,icon:"ChevronDown",$$slots:{default:[wue]},$$scope:{ctx:r}}}),l.$on("click",r[6]),o=new ln({props:{noClose:!0,icon:"Duplicate",$$slots:{default:[yue]},$$scope:{ctx:r}}}),o.$on("click",r[7]),u=new ln({props:{icon:"Cut",$$slots:{default:[kue]},$$scope:{ctx:r}}}),u.$on("click",r[13]),c=new ln({props:{icon:"Copy",$$slots:{default:[Cue]},$$scope:{ctx:r}}}),c.$on("click",r[14]),d=new ln({props:{icon:"LayersBringToFront",disabled:r[3],$$slots:{default:[Sue]},$$scope:{ctx:r}}}),d.$on("click",r[15]),h=new ln({props:{icon:"LayersSendToBack",disabled:r[3],$$slots:{default:[Aue]},$$scope:{ctx:r}}}),h.$on("click",r[16]),w=new ln({props:{icon:"ShowOneLayer",disabled:r[3]||r[4],$$slots:{default:[Oue]},$$scope:{ctx:r}}}),w.$on("click",r[17]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),f=R(),C(c.$$.fragment),p=R(),C(d.$$.fragment),g=R(),C(h.$$.fragment),v=R(),C(w.$$.fragment)},m(I,T){S(e,I,T),$(I,t,T),S(n,I,T),$(I,i,T),S(l,I,T),$(I,s,T),S(o,I,T),$(I,a,T),S(u,I,T),$(I,f,T),S(c,I,T),$(I,p,T),S(d,I,T),$(I,g,T),S(h,I,T),$(I,v,T),S(w,I,T),k=!0},p(I,T){r=I;const E={};T&524288&&(E.$$scope={dirty:T,ctx:r}),e.$set(E);const L={};T&524288&&(L.$$scope={dirty:T,ctx:r}),n.$set(L);const M={};T&524288&&(M.$$scope={dirty:T,ctx:r}),l.$set(M);const B={};T&524288&&(B.$$scope={dirty:T,ctx:r}),o.$set(B);const j={};T&524288&&(j.$$scope={dirty:T,ctx:r}),u.$set(j);const U={};T&524288&&(U.$$scope={dirty:T,ctx:r}),c.$set(U);const q={};T&8&&(q.disabled=r[3]),T&524288&&(q.$$scope={dirty:T,ctx:r}),d.$set(q);const G={};T&8&&(G.disabled=r[3]),T&524288&&(G.$$scope={dirty:T,ctx:r}),h.$set(G);const Y={};T&24&&(Y.disabled=r[3]||r[4]),T&524288&&(Y.$$scope={dirty:T,ctx:r}),w.$set(Y)},i(I){k||(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(w.$$.fragment,I),k=!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),_(w.$$.fragment,I),k=!1},d(I){A(e,I),I&&b(t),A(n,I),I&&b(i),A(l,I),I&&b(s),A(o,I),I&&b(a),A(u,I),I&&b(f),A(c,I),I&&b(p),A(d,I),I&&b(g),A(h,I),I&&b(v),A(w,I)}}}function Tue(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function Iue(r){let e,t,n=r[2]&&P6(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=P6(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function Lue(r,e,t){let n,i,l,s,o;ae(r,qe,L=>t(12,o=L));let{component:a}=e,u;const f=()=>{const L=xe(nn),M=rs(L==null?void 0:L.props,a._id);if(!M)return;const B=M._children.indexOf(a);if(B!==0)try{const j=M._children.filter(U=>U!==a);j.splice(B-1,0,a),M._children=j,qe.actions.preview.saveSelected()}catch{we.error("Error saving screen")}},c=()=>{const L=xe(nn),M=rs(L==null?void 0:L.props,a._id);if(!M)return;const B=M._children.indexOf(a);if(B!==M._children.length-1)try{const j=M._children.filter(U=>U!==a);j.splice(B+1,0,a),M._children=j,qe.actions.preview.saveSelected()}catch{we.error("Error saving screen")}},p=()=>{g(!1),h("below")},d=async()=>{try{await qe.actions.components.delete(a)}catch{we.error("Error deleting component")}},g=(L=!1)=>{qe.actions.components.copy(a,L)},h=L=>{try{qe.actions.components.paste(a,L)}catch{we.error("Error saving component")}},v=()=>g(!0),w=()=>g(!1),k=()=>h("above"),I=()=>h("below"),T=()=>h("inside");function E(L){K[L?"unshift":"push"](()=>{u=L,t(1,u)})}return r.$$set=L=>{"component"in L&&t(11,a=L.component)},r.$$.update=()=>{r.$$.dirty&2048&&t(0,n=qe.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,w,k,I,T,E]}class Pue extends se{constructor(e){super();oe(this,e,Lue,Iue,ie,{component:11})}}function N6(r,e,t){const n=r.slice();return n[18]=e[t],n[20]=t,n}function R6(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-1wboluz"),ht(e,"margin-left",(r[3]+1)*16+"px")},m(i,l){$(i,e,l),t||(n=Le(e,"drop",r[14]),t=!0)},p(i,l){l&8&&ht(e,"margin-left",(i[3]+1)*16+"px")},d(i){i&&b(e),t=!1,n()}}}function Nue(r){let e,t;return e=new Pue({props:{component:r[18]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.component=n[18]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M6(r){let e,t;return e=new Gm({props:{components:r[18]._children,currentComponent:r[1],onSelect:r[2],dragDropStore:r[4],level:r[3]+1}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.components=n[18]._children),i&2&&(l.currentComponent=n[1]),i&4&&(l.onSelect=n[2]),i&16&&(l.dragDropStore=n[4]),i&8&&(l.level=n[3]+1),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D6(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-1wboluz"),ht(e,"margin-left",(r[3]+(r[6].dropPosition===Yr.INSIDE?3:1))*16+"px")},m(i,l){$(i,e,l),t||(n=Le(e,"drop",r[14]),t=!0)},p(i,l){l&72&&ht(e,"margin-left",(i[3]+(i[6].dropPosition===Yr.INSIDE?3:1))*16+"px")},d(i){i&&b(e),t=!1,n()}}}function j6(r,e){var w,k;let t,n,i,l,s=e[15](e[18],e[8],e[5]),o,a,u,f,c,p=((w=e[6])==null?void 0:w.targetComponent)===e[18]&&e[6].dropPosition===Yr.ABOVE&&R6(e);function d(){return e[16](e[18])}i=new Nl({props:{draggable:!0,text:e[12](e[18]),withArrow:!0,indentLevel:e[3]+1,selected:e[7].selectedComponentId===e[18]._id,opened:e[15](e[18],e[8],e[5]),$$slots:{default:[Nue]},$$scope:{ctx:e}}}),i.$on("dragend",function(){ft(e[4].actions.reset)&&e[4].actions.reset.apply(this,arguments)}),i.$on("dragstart",function(){ft(e[10](e[18]))&&e[10](e[18]).apply(this,arguments)}),i.$on("dragover",function(){ft(e[11](e[18],e[20]))&&e[11](e[18],e[20]).apply(this,arguments)}),i.$on("iconClick",d),i.$on("drop",e[14]);let g=s&&M6(e),h=((k=e[6])==null?void 0:k.targetComponent)===e[18]&&(e[6].dropPosition===Yr.INSIDE||e[6].dropPosition===Yr.BELOW)&&D6(e);function v(){return e[17](e[18])}return{key:r,first:null,c(){t=D("li"),p&&p.c(),n=R(),C(i.$$.fragment),l=R(),g&&g.c(),o=R(),h&&h.c(),a=R(),y(t,"class","svelte-1wboluz"),this.first=t},m(I,T){$(I,t,T),p&&p.m(t,null),P(t,n),S(i,t,null),P(t,l),g&&g.m(t,null),P(t,o),h&&h.m(t,null),P(t,a),u=!0,f||(c=Le(t,"click",Cp(v)),f=!0)},p(I,T){var L,M;e=I,((L=e[6])==null?void 0:L.targetComponent)===e[18]&&e[6].dropPosition===Yr.ABOVE?p?p.p(e,T):(p=R6(e),p.c(),p.m(t,n)):p&&(p.d(1),p=null);const E={};T&1&&(E.text=e[12](e[18])),T&8&&(E.indentLevel=e[3]+1),T&129&&(E.selected=e[7].selectedComponentId===e[18]._id),T&289&&(E.opened=e[15](e[18],e[8],e[5])),T&2097153&&(E.$$scope={dirty:T,ctx:e}),i.$set(E),T&289&&(s=e[15](e[18],e[8],e[5])),s?g?(g.p(e,T),T&289&&m(g,1)):(g=M6(e),g.c(),m(g,1),g.m(t,o)):g&&(x(),_(g,1,1,()=>{g=null}),ee()),((M=e[6])==null?void 0:M.targetComponent)===e[18]&&(e[6].dropPosition===Yr.INSIDE||e[6].dropPosition===Yr.BELOW)?h?h.p(e,T):(h=D6(e),h.c(),h.m(t,a)):h&&(h.d(1),h=null)},i(I){u||(m(i.$$.fragment,I),m(g),u=!0)},o(I){_(i.$$.fragment,I),_(g),u=!1},d(I){I&&b(t),p&&p.d(),A(i),g&&g.d(),h&&h.d(),f=!1,c()}}}function Rue(r){let e,t=[],n=new Map,i,l=r[0]||[];const s=o=>o[18]._id;for(let o=0;o<l.length;o+=1){let a=N6(r,l,o),u=s(a);n.set(u,t[o]=j6(u,a))}return{c(){e=D("ul");for(let o=0;o<t.length;o+=1)t[o].c();y(e,"class","svelte-1wboluz")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,[a]){a&65535&&(l=o[0]||[],x(),t=rr(t,a,s,1,o,l,n,e,Ur,j6,null,N6),ee())},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 Mue(r,e,t){let n,i=Se,l=()=>(i(),i=O_(p,M=>t(6,n=M)),p),s,o;ae(r,qe,M=>t(7,s=M)),ae(r,Oz,M=>t(8,o=M)),r.$$.on_destroy.push(()=>i());let{components:a=[]}=e,{currentComponent:u}=e,{onSelect:f=()=>{}}=e,{level:c=0}=e,{dragDropStore:p}=e;l();let d={};const g=M=>{qe.actions.components.select(M)},h=M=>B=>{B.dataTransfer.dropEffect=I6.MOVE,p.actions.dragstart(M)},v=(M,B)=>j=>{var Y;const U=qe.actions.components.getDefinition(M._component),q=(U==null?void 0:U.hasChildren)&&!((Y=M._children)==null?void 0:Y.length);j.dataTransfer.dropEffect=I6.COPY;const G=j.offsetY/j.currentTarget.offsetHeight;return p.actions.dragover({component:M,index:B,canHaveChildrenButIsEmpty:q,mousePosition:G}),!1},w=M=>{if(M._instanceName)return M._instanceName;const B=M._component.replace("@budibase/standard-components/","")||"component";return Or(B)};function k(M){d[M]?delete d[M]:t(5,d[M]=!0,d),t(5,d)}const I=async()=>{try{await p.actions.drop()}catch{we.error("Error saving component")}},T=(M,B,j)=>{var U;return((U=M==null?void 0:M._children)==null?void 0:U.length)?B.includes(M._id)?!0:!j[M._id]:!1},E=M=>k(M._id),L=M=>g(M);return r.$$set=M=>{"components"in M&&t(0,a=M.components),"currentComponent"in M&&t(1,u=M.currentComponent),"onSelect"in M&&t(2,f=M.onSelect),"level"in M&&t(3,c=M.level),"dragDropStore"in M&&l(t(4,p=M.dragDropStore))},[a,u,f,c,p,d,n,s,o,g,h,v,w,k,I,T,E,L]}class Gm extends se{constructor(e){super();oe(this,e,Mue,Rue,ie,{components:0,currentComponent:1,onSelect:2,level:3,dragDropStore:4})}}function B6(r,e,t){const n=r.slice();return n[6]=e[t],n}function Due(r){let e;return{c(){e=F("Delete all screens")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function jue(r){let e,t;return e=new ln({props:{icon:"Delete",$$slots:{default:[Due]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[2].show)&&r[2].show.apply(this,arguments)}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){r=n;const l={};i&512&&(l.$$scope={dirty:i,ctx:r}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Bue(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-xzl76s")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function z6(r){let e,t=r[6].route+"",n;return{c(){e=D("div"),n=F(t)},m(i,l){$(i,e,l),P(e,n)},p(i,l){l&2&&t!==(t=i[6].route+"")&&Ce(n,t)},d(i){i&&b(e)}}}function zue(r){let e,t,n,i,l,s,o,a,u,f=r[1],c=[];for(let p=0;p<f.length;p+=1)c[p]=z6(B6(r,f,p));return{c(){e=D("div"),t=F("Are you sure you want to delete all screens under the "),n=D("b"),i=F(r[0]),l=F(" route?"),s=R(),o=D("div"),o.textContent="The following screens will be deleted:",a=R(),u=D("div");for(let p=0;p<c.length;p+=1)c[p].c();y(u,"class","to-delete svelte-xzl76s")},m(p,d){$(p,e,d),P(e,t),P(e,n),P(n,i),P(e,l),$(p,s,d),$(p,o,d),$(p,a,d),$(p,u,d);for(let g=0;g<c.length;g+=1)c[g].m(u,null)},p(p,d){if(d&1&&Ce(i,p[0]),d&2){f=p[1];let g;for(g=0;g<f.length;g+=1){const h=B6(p,f,g);c[g]?c[g].p(h,d):(c[g]=z6(h),c[g].c(),c[g].m(u,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=f.length}},d(p){p&&b(e),p&&b(s),p&&b(o),p&&b(a),p&&b(u),mt(c,p)}}}function que(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[zue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&515&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Uue(r){let e,t,n,i;e=new kr({props:{$$slots:{control:[Bue],default:[jue]},$$scope:{ctx:r}}});let l={title:"Confirm Deletion",okText:"Delete screens",onOk:r[3],$$slots:{default:[que]},$$scope:{ctx:r}};return n=new cr({props:l}),r[4](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,[o]){const a={};o&516&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&515&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[4](null),A(n,s)}}}function Fue(r,e,t){let n;ae(r,jt,u=>t(5,n=u));let{path:i}=e,{screens:l}=e,s;const o=async()=>{if(!!(l==null?void 0:l.length))try{for(let{id:u}of l){const f=xe(qe).screens.find(c=>c._id===u);!f||await qe.actions.screens.delete(f)}we.success("Screens deleted successfully"),n("../")}catch{we.error("Error deleting screens")}};function a(u){K[u?"unshift":"push"](()=>{s=u,t(2,s)})}return r.$$set=u=>{"path"in u&&t(0,i=u.path),"screens"in u&&t(1,l=u.screens)},[i,l,s,o,a]}class Vue extends se{constructor(e){super();oe(this,e,Fue,Uue,ie,{path:0,screens:1})}}function Hue(r){let e,t,n,i,l,s;function o(u){r[10](u)}let a={label:"Enter a URL for the new screen",error:r[3]};return r[0]!==void 0&&(a.value=r[0]),e=new et({props:a}),K.push(()=>ce(e,"value",o)),e.$on("change",r[7]),{c(){C(e.$$.fragment),n=R(),i=D("div"),l=F(r[5]),y(i,"class","app-server svelte-ygkcrb"),y(i,"title",r[5])},m(u,f){S(e,u,f),$(u,n,f),$(u,i,f),P(i,l),s=!0},p(u,f){const c={};f&8&&(c.error=u[3]),!t&&f&1&&(t=!0,c.value=u[0],pe(()=>t=!1)),e.$set(c),(!s||f&32)&&Ce(l,u[5]),(!s||f&32)&&y(i,"title",u[5])},i(u){s||(m(e.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),s=!1},d(u){A(e,u),u&&b(n),u&&b(i)}}}function Wue(r){let e,t;return e=new Tt({props:{size:"M",title:"Enter details",confirmText:r[2],onConfirm:r[8],onCancel:r[1],cancelText:"Back",disabled:!r[6]||!r[0]||r[3]||!r[4],$$slots:{default:[Hue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&4&&(l.confirmText=n[2]),i&2&&(l.onCancel=n[1]),i&25&&(l.disabled=!n[6]||!n[0]||n[3]||!n[4]),i&8233&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}const q6="/app";function Gue(r,e,t){let n,i;ae(r,Si,v=>t(11,i=v));let{onConfirm:l}=e,{onCancel:s}=e,{screenUrl:o}=e,{confirmText:a="Continue"}=e,u,f=!1,c=i+"";const p=v=>{v.detail.startsWith("/")||t(0,o="/"+v.detail),t(4,f=!0),t(0,o=Ms(o)),d(o)?t(3,u="This URL is already taken for this access role"):t(3,u=null)},d=v=>{const w=xe(Si)||"BASIC";return xe(Il).some(k=>k.routing.route.toLowerCase()===v.toLowerCase()&&k.routing.roleId===w)},g=async()=>{await l({screenUrl:o})};function h(v){o=v,t(0,o)}return r.$$set=v=>{"onConfirm"in v&&t(9,l=v.onConfirm),"onCancel"in v&&t(1,s=v.onCancel),"screenUrl"in v&&t(0,o=v.screenUrl),"confirmText"in v&&t(2,a=v.confirmText)},r.$$.update=()=>{r.$$.dirty&1&&t(5,n=o?`${window.location.origin}${q6}${o}`:`${window.location.origin}${q6}`)},[o,s,a,u,f,n,c,p,g,l,h]}class U6 extends se{constructor(e){super();oe(this,e,Gue,Wue,ie,{onConfirm:9,onCancel:1,screenUrl:0,confirmText:2})}}function Yue(r){let e;return{c(){e=F("Duplicate")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jue(r){let e;return{c(){e=F("Paste inside")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xue(r){let e;return{c(){e=F("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Que(r){let e,t,n,i,l,s;return e=new ln({props:{icon:"Duplicate",$$slots:{default:[Yue]},$$scope:{ctx:r}}}),e.$on("click",r[4]),n=new ln({props:{icon:"ShowOneLayer",disabled:!r[3].componentToPaste,$$slots:{default:[Jue]},$$scope:{ctx:r}}}),n.$on("click",r[10]),l=new ln({props:{icon:"Delete",$$slots:{default:[Xue]},$$scope:{ctx:r}}}),l.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(n,o,a),$(o,i,a),S(l,o,a),s=!0},p(o,a){r=o;const u={};a&16384&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a&8&&(f.disabled=!r[3].componentToPaste),a&16384&&(f.$$scope={dirty:a,ctx:r}),n.$set(f);const c={};a&16384&&(c.$$scope={dirty:a,ctx:r}),l.$set(c)},i(o){s||(m(e.$$.fragment,o),m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){A(e,o),o&&b(t),A(n,o),o&&b(i),A(l,o)}}}function Kue(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function Zue(r){var n,i;let e,t;return e=new U6({props:{onConfirm:r[5],screenName:(n=r[0])==null?void 0:n.props._instanceName,screenUrl:(i=r[0])==null?void 0:i.routing.route,confirmText:"Duplicate"}}),{c(){C(e.$$.fragment)},m(l,s){S(e,l,s),t=!0},p(l,s){var a,u;const o={};s&1&&(o.screenName=(a=l[0])==null?void 0:a.props._instanceName),s&1&&(o.screenUrl=(u=l[0])==null?void 0:u.routing.route),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){_(e.$$.fragment,l),t=!1},d(l){A(e,l)}}}function xue(r){let e,t,n,i,l,s;e=new kr({props:{$$slots:{control:[Kue],default:[Que]},$$scope:{ctx:r}}});let o={title:"Confirm Deletion",body:"Are you sure you wish to delete this screen?",okText:"Delete screen",onOk:r[6]};n=new cr({props:o}),r[11](n);let a={$$slots:{default:[Zue]},$$scope:{ctx:r}};return l=new kt({props:a}),r[12](l),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(u,f){S(e,u,f),$(u,t,f),S(n,u,f),$(u,i,f),S(l,u,f),s=!0},p(u,[f]){const c={};f&16394&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};n.$set(p);const d={};f&16385&&(d.$$scope={dirty:f,ctx:u}),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){A(e,u),u&&b(t),r[11](null),A(n,u),u&&b(i),r[12](null),A(l,u)}}}function efe(r,e,t){let n,i,l,s;ae(r,jt,w=>t(13,i=w)),ae(r,Il,w=>t(9,l=w)),ae(r,qe,w=>t(3,s=w));let{screenId:o}=e,a,u;const f=()=>{u.show()},c=async({screenName:w,screenUrl:k})=>{let I=Tp(n);delete I._id,delete I._rev,wm(I.props),I.routing.route=Ms(k),I.props._instanceName=w;try{await qe.actions.screens.save(I)}catch(T){we.error("Error duplicating screen"),console.log(T)}},p=async()=>{try{await qe.actions.screens.delete(n),i("../"),we.success("Deleted screen successfully.")}catch{we.error("Error deleting screen")}},d=w=>{try{qe.actions.components.paste(n==null?void 0:n.props,w)}catch{we.error("Error saving component")}},g=()=>d("inside");function h(w){K[w?"unshift":"push"](()=>{a=w,t(1,a)})}function v(w){K[w?"unshift":"push"](()=>{u=w,t(2,u)})}return r.$$set=w=>{"screenId"in w&&t(8,o=w.screenId)},r.$$.update=()=>{r.$$.dirty&768&&t(0,n=l.find(w=>w._id===o))},[n,a,u,s,f,c,p,d,o,l,g,h,v]}class tfe extends se{constructor(e){super();oe(this,e,efe,xue,ie,{screenId:8})}}function F6(r,e,t){const n=r.slice();return n[23]=e[t],n}function V6(r){let e,t,n,i;e=new Nl({props:{icon:"FolderOutline",text:r[1],opened:r[7],border:r[3],withArrow:r[0].subpaths,$$slots:{default:[nfe]},$$scope:{ctx:r}}}),e.$on("click",r[14]);let l=r[7]&&H6(r);return{c(){C(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},m(s,o){S(e,s,o),$(s,t,o),l&&l.m(s,o),$(s,n,o),i=!0},p(s,o){const a={};o&2&&(a.text=s[1]),o&128&&(a.opened=s[7]),o&8&&(a.border=s[3]),o&1&&(a.withArrow=s[0].subpaths),o&67108930&&(a.$$scope={dirty:o,ctx:s}),e.$set(a),s[7]?l?(l.p(s,o),o&128&&m(l,1)):(l=H6(s),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(x(),_(l,1,1,()=>{l=null}),ee())},i(s){i||(m(e.$$.fragment,s),m(l),i=!0)},o(s){_(e.$$.fragment,s),_(l),i=!1},d(s){A(e,s),s&&b(t),l&&l.d(s),s&&b(n)}}}function nfe(r){let e,t;return e=new Vue({props:{screens:r[6],path:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&64&&(l.screens=n[6]),i&2&&(l.path=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function H6(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=F6(r,l,o),u=s(a);t.set(u,e[o]=G6(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&15925&&(l=o[5],x(),e=rr(e,a,s,1,o,l,t,n.parentNode,Ur,G6,n,F6),ee())},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 rfe(r){let e,t;return e=new tfe({props:{screenId:r[23].id}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function W6(r){let e,t;return e=new Gm({props:{level:1,components:r[4].props._children,currentComponent:r[10],dragDropStore:r[12]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.components=n[4].props._children),i&1024&&(l.currentComponent=n[10]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function G6(r,e){var u,f;let t,n,i,l,s;function o(){return e[20](e[23])}n=new Nl({props:{icon:"WebPage",indentLevel:e[2]||1,selected:e[9].selectedScreenId===e[23].id&&e[9].currentView==="detail",opened:e[9].selectedScreenId===e[23].id,text:((u=e[11][e[23].route])==null?void 0:u[e[23].role])||e[23].route,withArrow:e[0].subpaths,$$slots:{default:[rfe]},$$scope:{ctx:e}}}),n.$on("click",o);let a=((f=e[4])==null?void 0:f._id)===e[23].id&&W6(e);return{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),i=R(),a&&a.c(),l=Oe(),this.first=t},m(c,p){$(c,t,p),S(n,c,p),$(c,i,p),a&&a.m(c,p),$(c,l,p),s=!0},p(c,p){var g,h;e=c;const d={};p&4&&(d.indentLevel=e[2]||1),p&544&&(d.selected=e[9].selectedScreenId===e[23].id&&e[9].currentView==="detail"),p&544&&(d.opened=e[9].selectedScreenId===e[23].id),p&32&&(d.text=((g=e[11][e[23].route])==null?void 0:g[e[23].role])||e[23].route),p&1&&(d.withArrow=e[0].subpaths),p&67108896&&(d.$$scope={dirty:p,ctx:e}),n.$set(d),((h=e[4])==null?void 0:h._id)===e[23].id?a?(a.p(e,p),p&48&&m(a,1)):(a=W6(e),a.c(),m(a,1),a.m(l.parentNode,l)):a&&(x(),_(a,1,1,()=>{a=null}),ee())},i(c){s||(m(n.$$.fragment,c),m(a),s=!0)},o(c){_(n.$$.fragment,c),_(a),s=!1},d(c){c&&b(t),A(n,c),c&&b(i),a&&a.d(c),c&&b(l)}}}function ife(r){let e,t,n=!r[8]&&V6(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[8]?n&&(x(),_(n,1,1,()=>{n=null}),ee()):n?(n.p(i,l),l&256&&m(n,1)):(n=V6(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 lfe(r,e,t){let n,i,l,s,o,a,u,f,c,p,d;ae(r,sc,U=>t(18,f=U)),ae(r,nn,U=>t(19,c=U)),ae(r,qe,U=>t(9,p=U)),ae(r,ai,U=>t(10,d=U));const g={"/":{BASIC:"Home",PUBLIC:"Home",ADMIN:"Home",POWER:"Home"}},h=L6();let{route:v}=e,{path:w}=e,{indent:k}=e,{border:I}=e,T=!1;const E=U=>{qe.actions.screens.select(U)},L=U=>{let q=[];return Object.entries(U.subpaths).forEach(([G,Y])=>{Object.entries(Y.screens).forEach(([W,H])=>{q.push({id:H,route:G,role:W})})}),q},M=(U,q)=>U.filter(G=>!q||G.route.includes(q)),B=()=>{xe(sc)||t(15,T=!T)},j=U=>E(U.id);return r.$$set=U=>{"route"in U&&t(0,v=U.route),"path"in U&&t(1,w=U.path),"indent"in U&&t(2,k=U.indent),"border"in U&&t(3,I=U.border)},r.$$.update=()=>{var U;r.$$.dirty&524288&&t(4,n=c),r.$$.dirty&1&&t(6,i=L(v)),r.$$.dirty&262208&&t(5,l=M(i,f)),r.$$.dirty&262176&&t(16,s=f&&l.length>0),r.$$.dirty&262176&&t(8,o=f&&!l.length),r.$$.dirty&17&&t(17,a=v.subpaths[(U=n==null?void 0:n.routing)==null?void 0:U.route]!==void 0),r.$$.dirty&229376&&t(7,u=T||a||s)},[v,w,k,I,n,l,i,u,o,p,d,g,h,E,B,T,s,a,f,c,j]}class sfe extends se{constructor(e){super();oe(this,e,lfe,ife,ie,{route:0,path:1,indent:2,border:3})}}function Y6(r,e,t){const n=r.slice();return n[7]=e[t],n[9]=t,n}function J6(r,e){let t,n,i;return n=new sfe({props:{border:e[9]>0,path:e[7],route:e[0][e[7]]}}),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),S(n,l,s),i=!0},p(l,s){e=l;const o={};s&2&&(o.border=e[9]>0),s&2&&(o.path=e[7]),s&3&&(o.route=e[0][e[7]]),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(t),A(n,l)}}}function X6(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-1xoqjkm")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ofe(r){let e,t=[],n=new Map,i,l,s=r[1];const o=u=>u[7];for(let u=0;u<s.length;u+=1){let f=Y6(r,s,u),c=o(f);n.set(c,t[u]=J6(c,f))}let a=!r[1].length&&X6();return{c(){var u;e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();i=R(),a&&a.c(),y(e,"class","root svelte-1xoqjkm"),le(e,"has-screens",!!((u=r[1])==null?void 0:u.length))},m(u,f){$(u,e,f);for(let c=0;c<t.length;c+=1)t[c].m(e,null);P(e,i),a&&a.m(e,null),l=!0},p(u,[f]){var c;f&3&&(s=u[1],x(),t=rr(t,f,o,1,u,s,n,e,Ur,J6,i,Y6),ee()),u[1].length?a&&(a.d(1),a=null):a||(a=X6(),a.c(),a.m(e,null)),f&2&&le(e,"has-screens",!!((c=u[1])==null?void 0:c.length))},i(u){if(!l){for(let f=0;f<s.length;f+=1)m(t[f]);l=!0}},o(u){for(let f=0;f<t.length;f+=1)_(t[f]);l=!1},d(u){u&&b(e);for(let f=0;f<t.length;f+=1)t[f].d();a&&a.d()}}}function afe(r,e,t){let n,i,l,s;ae(r,Si,f=>t(4,l=f)),ae(r,qe,f=>t(5,s=f));let o={},a=[];const u=(f,c,p)=>{const d=Object.keys(f||{}).sort();let g=!1,h,v={},w;d.forEach(k=>{const I=f[k];Object.entries(I.subpaths).forEach(([T,E])=>{Object.entries(E.screens).forEach(([L,M])=>{M===p&&(w=L,g=L===c),L===c&&(h||(h=M),v[k]||(v[k]={subpaths:{}}),v[k].subpaths[T]={screens:{[c]:M}})})})}),t(0,o=Ae({},v)),t(1,a=Object.keys(o||{}).sort()),!g&&w?(Si.set(w),w!==c&&u(f,w,p)):!g&&h&&qe.actions.screens.select(h)};return r.$$.update=()=>{r.$$.dirty&32&&t(3,n=s.routes),r.$$.dirty&32&&t(2,i=s.selectedScreenId),r.$$.dirty&28&&u(n,l,i)},[o,a,i,n,l,s]}class ufe extends se{constructor(e){super();oe(this,e,afe,ofe,ie,{})}}function ffe(r){let e;return{c(){e=F("Edit")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cfe(r){let e;return{c(){e=F("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pfe(r){let e,t,n,i;return e=new ln({props:{icon:"Edit",$$slots:{default:[ffe]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)}),n=new ln({props:{icon:"Delete",$$slots:{default:[cfe]},$$scope:{ctx:r}}}),n.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(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){A(e,l),l&&b(t),A(n,l)}}}function dfe(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function mfe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function gfe(r){let e,t;return e=new Tt({props:{title:"Edit Layout Name",confirmText:"Save",onConfirm:r[4],disabled:!r[2],$$slots:{default:[mfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function _fe(r){let e,t,n,i,l,s;e=new kr({props:{$$slots:{control:[dfe],default:[pfe]},$$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:[gfe]},$$scope:{ctx:r}};return l=new kt({props:a}),r[8](l),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(u,f){S(e,u,f),$(u,t,f),S(n,u,f),$(u,i,f),S(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){A(e,u),u&&b(t),r[6](null),A(n,u),u&&b(i),r[8](null),A(l,u)}}}function hfe(r,e,t){let{layout:n}=e,i,l,s=n.name;const o=async()=>{try{await qe.actions.layouts.delete(n),we.success("Layout deleted successfully")}catch{we.error("Error deleting layout")}},a=async()=>{try{const p=Sn.cloneDeep(n);p.name=s,await qe.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 $fe extends se{constructor(e){super();oe(this,e,hfe,_fe,ie,{layout:5})}}function bfe(r){let e,t;return e=new $fe({props:{layout:r[0]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Q6(r){let e,t;return e=new Gm({props:{components:r[0].props._children,currentComponent:r[3],dragDropStore:r[4]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function vfe(r){var s;let e,t,n,i;e=new Nl({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:[bfe]},$$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)&&Q6(r);return{c(){C(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},m(o,a){S(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=Q6(o),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(x(),_(l,1,1,()=>{l=null}),ee())},i(o){i||(m(e.$$.fragment,o),m(l),i=!0)},o(o){_(e.$$.fragment,o),_(l),i=!1},d(o){A(e,o),o&&b(t),l&&l.d(o),o&&b(n)}}}function wfe(r,e,t){let n,i;ae(r,qe,u=>t(2,n=u)),ae(r,ai,u=>t(3,i=u));let{layout:l}=e,{border:s}=e;const o=L6(),a=()=>{qe.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 yfe extends se{constructor(e){super();oe(this,e,wfe,vfe,ie,{layout:0,border:1})}}function kfe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Cfe(r){let e,t;return e=new Tt({props:{title:"Create Layout",confirmText:"Create",onConfirm:r[1],$$slots:{default:[kfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Sfe(r,e,t){let n="";async function i(){try{await qe.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 Afe extends se{constructor(e){super();oe(this,e,Sfe,Cfe,ie,{})}}function K6(r,e,t){const n=r.slice();return n[19]=e[t],n[21]=t,n}function Ofe(r){let e,t,n,i,l;e=new Ye({props:{value:r[4],label:"Filter by Access",getOptionLabel:Nfe,getOptionValue:Rfe,options:r[5]}}),e.$on("change",r[9]);function s(a){r[11](a)}let o={placeholder:"Enter a route to search",label:"Search Screens"};return r[6]!==void 0&&(o.value=r[6]),n=new Kf({props:o}),K.push(()=>ce(n,"value",s)),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(a,u){S(e,a,u),$(a,t,u),S(n,a,u),l=!0},p(a,u){const f={};u&16&&(f.value=a[4]),u&32&&(f.options=a[5]),e.$set(f);const c={};!i&&u&64&&(i=!0,c.value=a[6],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){A(e,a),a&&b(t),A(n,a)}}}function Efe(r){let e,t,n,i,l,s;return t=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Ofe]},$$scope:{ctx:r}}}),l=new ufe({}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","nav-items-container svelte-1laltek"),y(e,"class","tab-content-padding svelte-1laltek")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(l,i,null),r[12](i),s=!0},p(o,a){const u={};a&4194416&&(u.$$scope={dirty:a,ctx:o}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),A(t),A(l),r[12](null)}}}function Z6(r,e){let t,n,i;return n=new yfe({props:{layout:e[19],border:e[21]>0}}),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),S(n,l,s),i=!0},p(l,s){e=l;const o={};s&128&&(o.layout=e[19]),s&128&&(o.border=e[21]>0),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(t),A(n,l)}}}function Tfe(r){let e,t;return e=new Afe({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ife(r){let e,t,n,i=[],l=new Map,s,o,a,u=r[7].layouts;const f=p=>p[19]._id;for(let p=0;p<u.length;p+=1){let d=K6(r,u,p),g=f(d);l.set(g,i[p]=Z6(g,d))}let c={$$slots:{default:[Tfe]},$$scope:{ctx:r}};return o=new kt({props:c}),r[14](o),{c(){e=D("div"),t=D("div"),n=D("div");for(let p=0;p<i.length;p+=1)i[p].c();s=R(),C(o.$$.fragment),y(n,"class","layouts-container svelte-1laltek"),y(t,"class","nav-items-container nav-items-container--layouts svelte-1laltek"),y(e,"class","tab-content-padding svelte-1laltek")},m(p,d){$(p,e,d),P(e,t),P(t,n);for(let g=0;g<i.length;g+=1)i[g].m(n,null);r[13](t),P(e,s),S(o,e,null),a=!0},p(p,d){d&128&&(u=p[7].layouts,x(),i=rr(i,d,f,1,p,u,l,n,Ur,Z6,null,K6),ee());const g={};d&4194304&&(g.$$scope={dirty:d,ctx:p}),o.$set(g)},i(p){if(!a){for(let d=0;d<u.length;d+=1)m(i[d]);m(o.$$.fragment,p),a=!0}},o(p){for(let d=0;d<i.length;d+=1)_(i[d]);_(o.$$.fragment,p),a=!1},d(p){p&&b(e);for(let d=0;d<i.length;d+=1)i[d].d();r[13](null),r[14](null),A(o)}}}function Lfe(r){let e,t,n,i;return e=new _n({props:{title:"Screens",$$slots:{default:[Efe]},$$scope:{ctx:r}}}),n=new _n({props:{title:"Layouts",$$slots:{default:[Ife]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(n,l,s),i=!0},p(l,s){const o={};s&4194418&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&4194438&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){A(e,l),l&&b(t),A(n,l)}}}function Pfe(r){let e,t,n,i,l,s;return t=new Sr({props:{selected:r[3],$$slots:{default:[Lfe]},$$scope:{ctx:r}}}),t.$on("select",r[8]),l=new at({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ft(r[3]==="Layouts"?r[2].show():r[0]())&&(r[3]==="Layouts"?r[2].show():r[0]()).apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","add-button svelte-1laltek"),y(e,"class","title svelte-1laltek")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(l,i,null),s=!0},p(o,[a]){r=o;const u={};a&8&&(u.selected=r[3]),a&4194550&&(u.$$scope={dirty:a,ctx:r}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),A(t),A(l)}}}const Nfe=r=>r.name,Rfe=r=>r._id;function Mfe(r,e,t){let n,i,l,s,o,a,u,f;ae(r,Il,L=>t(15,i=L)),ae(r,jt,L=>t(16,l=L)),ae(r,ir,L=>t(10,s=L)),ae(r,Si,L=>t(4,o=L)),ae(r,ki,L=>t(5,a=L)),ae(r,sc,L=>t(6,u=L)),ae(r,qe,L=>t(7,f=L));let{showModal:c}=e,p;Qo("scroll",{scrollTo:L=>{if(!L)return;const M=259,B=32,{scrollLeft:j,scrollTop:U,offsetHeight:q}=p;let G=p.getBoundingClientRect(),Y={};const W=L.left+L.width+j+20;W>M?Y.left=W-M:Y.left=0,Y.left===j&&delete Y.left;const H=L.top-(G==null?void 0:G.top)+U;H>U+q-2*B?Y.top=H-q+2*B:H<U+B?Y.top=H-B:delete Y.top,!(Y.left==null&&Y.top==null)&&p.scroll(it(Ae({},Y),{behavior:"smooth"}))}});const g=[{title:"Screens",key:"screen"},{title:"Layouts",key:"layout"}];let h;const v=({detail:L})=>{const{key:M}=g.find(B=>B.title===L);l(`../${M}`)},w=L=>{var j;const M=L.detail,B=(j=i.find(U=>U.routing.roleId===M))==null?void 0:j._id;B?qe.actions.screens.select(B):qe.update(U=>(U.selectedScreenId=null,U)),Si.set(M)};Pt(async()=>{try{await qe.actions.routing.fetch()}catch{we.error("Error fetching routes")}});function k(L){u=L,sc.set(u)}function I(L){K[L?"unshift":"push"](()=>{p=L,t(1,p)})}function T(L){K[L?"unshift":"push"](()=>{p=L,t(1,p)})}function E(L){K[L?"unshift":"push"](()=>{h=L,t(2,h)})}return r.$$set=L=>{"showModal"in L&&t(0,c=L.showModal)},r.$$.update=()=>{var L;r.$$.dirty&1024&&t(3,n=((L=g.find(M=>M.key===s.assetType))==null?void 0:L.title)||"Screens")},[c,p,h,n,o,a,u,f,v,w,s,k,I,T,E]}class Dfe extends se{constructor(e){super();oe(this,e,Mfe,Pfe,ie,{showModal:0})}}function jfe(r){let e,t,n;return t=new Ye({props:{value:r[0].theme,options:r[1],placeholder:null}}),t.$on("change",r[3]),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","svelte-12k7lrs")},m(i,l){$(i,e,l),S(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),A(t)}}}function Bfe(r,e,t){let n;ae(r,qe,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 qe.actions.theme.save(o),await qe.actions.customTheme.save(it(Ae({},xe(qe).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 x6 extends se{constructor(e){super();oe(this,e,Bfe,jfe,ie,{})}}function zfe(r){let e;return{c(){e=F("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qfe(r){let e;return{c(){e=F("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ufe(r){let e;return{c(){e=F("Button roundness")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ffe(r){let e;return{c(){e=F("Accent color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Vfe(r){let e;return{c(){e=F("Accent color (hover)")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hfe(r){let e;return{c(){e=F("Navigation bar background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Wfe(r){let e;return{c(){e=F("Navigation bar text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Gfe(r){var V,J,fe,re,Q;let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,E,L,M,B,j,U,q,G,Y,W,H;return t=new Je({props:{size:"L",$$slots:{default:[qfe]},$$scope:{ctx:r}}}),i=new x6({}),o=new Je({props:{size:"L",$$slots:{default:[Ufe]},$$scope:{ctx:r}}}),f=new Ye({props:{placeholder:null,value:((V=r[1].customTheme)==null?void 0:V.buttonBorderRadius)||r[2].buttonBorderRadius,options:r[3]}}),f.$on("change",r[4]("buttonBorderRadius")),d=new Je({props:{size:"L",$$slots:{default:[Ffe]},$$scope:{ctx:r}}}),h=new xl({props:{spectrumTheme:r[1].theme,value:((J=r[1].customTheme)==null?void 0:J.primaryColor)||r[2].primaryColor}}),h.$on("change",r[4]("primaryColor")),k=new Je({props:{size:"L",$$slots:{default:[Vfe]},$$scope:{ctx:r}}}),T=new xl({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 Je({props:{size:"L",$$slots:{default:[Hfe]},$$scope:{ctx:r}}}),j=new xl({props:{spectrumTheme:r[1].theme,value:((re=r[1].customTheme)==null?void 0:re.navBackground)||r[2].navBackground}}),j.$on("change",r[4]("navBackground")),G=new Je({props:{size:"L",$$slots:{default:[Wfe]},$$scope:{ctx:r}}}),W=new xl({props:{spectrumTheme:r[1].theme,value:((Q=r[1].customTheme)==null?void 0:Q.navTextColor)||r[2].navTextColor}}),W.$on("change",r[4]("navTextColor")),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),l=R(),s=D("div"),C(o.$$.fragment),a=R(),u=D("div"),C(f.$$.fragment),c=R(),p=D("div"),C(d.$$.fragment),g=R(),C(h.$$.fragment),v=R(),w=D("div"),C(k.$$.fragment),I=R(),C(T.$$.fragment),E=R(),L=D("div"),C(M.$$.fragment),B=R(),C(j.$$.fragment),U=R(),q=D("div"),C(G.$$.fragment),Y=R(),C(W.$$.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(w,"class","setting svelte-16s1p8l"),y(L,"class","setting svelte-16s1p8l"),y(q,"class","setting svelte-16s1p8l")},m(te,_e){$(te,e,_e),S(t,e,null),P(e,n),S(i,e,null),$(te,l,_e),$(te,s,_e),S(o,s,null),P(s,a),P(s,u),S(f,u,null),$(te,c,_e),$(te,p,_e),S(d,p,null),P(p,g),S(h,p,null),$(te,v,_e),$(te,w,_e),S(k,w,null),P(w,I),S(T,w,null),$(te,E,_e),$(te,L,_e),S(M,L,null),P(L,B),S(j,L,null),$(te,U,_e),$(te,q,_e),S(G,q,null),P(q,Y),S(W,q,null),H=!0},p(te,_e){var ke,Ke,Nt,zt,qt;const Re={};_e&128&&(Re.$$scope={dirty:_e,ctx:te}),t.$set(Re);const be={};_e&128&&(be.$$scope={dirty:_e,ctx:te}),o.$set(be);const he={};_e&2&&(he.value=((ke=te[1].customTheme)==null?void 0:ke.buttonBorderRadius)||te[2].buttonBorderRadius),f.$set(he);const ve={};_e&128&&(ve.$$scope={dirty:_e,ctx:te}),d.$set(ve);const Ie={};_e&2&&(Ie.spectrumTheme=te[1].theme),_e&2&&(Ie.value=((Ke=te[1].customTheme)==null?void 0:Ke.primaryColor)||te[2].primaryColor),h.$set(Ie);const Be={};_e&128&&(Be.$$scope={dirty:_e,ctx:te}),k.$set(Be);const ue={};_e&2&&(ue.spectrumTheme=te[1].theme),_e&2&&(ue.value=((Nt=te[1].customTheme)==null?void 0:Nt.primaryColorHover)||te[2].primaryColorHover),T.$set(ue);const Ve={};_e&128&&(Ve.$$scope={dirty:_e,ctx:te}),M.$set(Ve);const de={};_e&2&&(de.spectrumTheme=te[1].theme),_e&2&&(de.value=((zt=te[1].customTheme)==null?void 0:zt.navBackground)||te[2].navBackground),j.$set(de);const $e={};_e&128&&($e.$$scope={dirty:_e,ctx:te}),G.$set($e);const Ee={};_e&2&&(Ee.spectrumTheme=te[1].theme),_e&2&&(Ee.value=((qt=te[1].customTheme)==null?void 0:qt.navTextColor)||te[2].navTextColor),W.$set(Ee)},i(te){H||(m(t.$$.fragment,te),m(i.$$.fragment,te),m(o.$$.fragment,te),m(f.$$.fragment,te),m(d.$$.fragment,te),m(h.$$.fragment,te),m(k.$$.fragment,te),m(T.$$.fragment,te),m(M.$$.fragment,te),m(j.$$.fragment,te),m(G.$$.fragment,te),m(W.$$.fragment,te),H=!0)},o(te){_(t.$$.fragment,te),_(i.$$.fragment,te),_(o.$$.fragment,te),_(f.$$.fragment,te),_(d.$$.fragment,te),_(h.$$.fragment,te),_(k.$$.fragment,te),_(T.$$.fragment,te),_(M.$$.fragment,te),_(j.$$.fragment,te),_(G.$$.fragment,te),_(W.$$.fragment,te),H=!1},d(te){te&&b(e),A(t),A(i),te&&b(l),te&&b(s),A(o),A(f),te&&b(c),te&&b(p),A(d),A(h),te&&b(v),te&&b(w),A(k),A(T),te&&b(E),te&&b(L),A(M),A(j),te&&b(U),te&&b(q),A(G),A(W)}}}function Yfe(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Gfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Jfe(r){let e;return{c(){e=F("Reset")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xfe(r){let e,t,n;return t=new lt({props:{secondary:!0,quiet:!0,$$slots:{default:[Jfe]},$$scope:{ctx:r}}}),t.$on("click",r[5]),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","footer")},m(i,l){$(i,e,l),S(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),A(t)}}}function Qfe(r){let e,t;return e=new Tt({props:{showConfirmButton:!1,cancelText:"View changes",showCloseIcon:!1,title:"Theme settings",$$slots:{footer:[Xfe],default:[Yfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Kfe(r){let e,t,n,i,l;t=new Ut({props:{icon:"Brush",$$slots:{default:[zfe]},$$scope:{ctx:r}}}),t.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)});let s={$$slots:{default:[Qfe]},$$scope:{ctx:r}};return i=new kt({props:s}),r[6](i),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),y(e,"class","container svelte-16s1p8l")},m(o,a){$(o,e,a),S(t,e,null),$(o,n,a),S(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),A(t),o&&b(n),r[6](null),A(i,o)}}}function Zfe(r,e,t){let n;ae(r,qe,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{qe.actions.customTheme.save(it(Ae({},xe(qe).customTheme),{[f]:c.detail}))}catch{we.error("Error updating custom theme")}},a=()=>{try{const f=xe(qe).theme;qe.actions.customTheme.save(it(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 xfe extends se{constructor(e){super();oe(this,e,Zfe,Kfe,ie,{})}}function ece(r){let e,t,n,i,l,s;return e=new Ut({props:{icon:"DeviceDesktop",selected:r[0].previewDevice==="desktop"}}),e.$on("click",r[1]),n=new Ut({props:{icon:"DeviceTablet",selected:r[0].previewDevice==="tablet"}}),n.$on("click",r[2]),l=new Ut({props:{icon:"DevicePhone",selected:r[0].previewDevice==="mobile"}}),l.$on("click",r[3]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(n,o,a),$(o,i,a),S(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){A(e,o),o&&b(t),A(n,o),o&&b(i),A(l,o)}}}function tce(r){let e,t;return e=new Lp({props:{compact:!0,$$slots:{default:[ece]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function nce(r,e,t){let n;return ae(r,qe,o=>t(0,n=o)),[n,()=>qe.actions.preview.setDevice("desktop"),()=>qe.actions.preview.setDevice("tablet"),()=>qe.actions.preview.setDevice("mobile")]}class rce extends se{constructor(e){super();oe(this,e,nce,tce,ie,{})}}var e8="/builder/assets/bb-space-man.5be51a45.svg";function ice(r){let e;return{c(){e=F("Blank screen")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function lce(r){let e;return{c(){e=F("Add a blank screen")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function t8(r){let e,t,n;return t=new at({props:{size:"S",name:"CheckmarkCircle"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","checkmark-spacing svelte-sdfa50")},m(i,l){$(i,e,l),S(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),A(t)}}}function sce(r){let e;return{c(){e=F("Autogenerated screens")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function oce(r){let e;return{c(){e=F(`Add autogenerated screens with CRUD functionality to get a working
|
|
898
|
+
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 Woe(r){let e;return{c(){e=F("Column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Goe(r){let e;return{c(){e=F("Label")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function n6(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I=Se,T,E,L;i=new at({props:{name:"DragHandle",size:"XL"}});function M(H){e[12](H,e[19])}function B(...H){return e[13](e[19],e[20],e[21],...H)}let j={placeholder:"Column",options:e[2](e[19].name)};e[19].name!==void 0&&(j.value=e[19].name),o=new Ye({props:j}),K.push(()=>ce(o,"value",M)),o.$on("change",B);function U(H){e[14](H,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",U));function G(H){e[15](H,e[19],e[20],e[21])}let Y={};e[19]!==void 0&&(Y.column=e[19]),d=new Uoe({props:Y}),K.push(()=>ce(d,"column",G));function W(){return e[16](e[19])}return v=new at({props:{name:"Close",hoverable:!0,size:"S",disabled:e[0].length===1}}),v.$on("click",W),{key:r,first:null,c(){t=D("div"),n=D("div"),C(i.$$.fragment),s=R(),C(o.$$.fragment),u=R(),C(f.$$.fragment),p=R(),C(d.$$.fragment),h=R(),C(v.$$.fragment),w=R(),y(n,"class","handle svelte-17kmdew"),y(n,"aria-label","drag-handle"),y(n,"style",l=e[1]?"cursor: grab":"cursor: grabbing"),y(t,"class","column svelte-17kmdew"),this.first=t},m(H,V){$(H,t,V),P(t,n),S(i,n,null),P(t,s),S(o,t,null),P(t,u),S(f,t,null),P(t,p),S(d,t,null),P(t,h),S(v,t,null),P(t,w),T=!0,E||(L=Le(n,"mousedown",e[11]),E=!0)},p(H,V){e=H,(!T||V&2&&l!==(l=e[1]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const J={};V&1&&(J.options=e[2](e[19].name)),!a&&V&1&&(a=!0,J.value=e[19].name,pe(()=>a=!1)),o.$set(J);const fe={};!c&&V&1&&(c=!0,fe.value=e[19].displayName,pe(()=>c=!1)),f.$set(fe);const re={};!g&&V&1&&(g=!0,re.column=e[19],pe(()=>g=!1)),d.$set(re);const Q={};V&1&&(Q.disabled=e[0].length===1),v.$set(Q)},r(){k=t.getBoundingClientRect()},f(){xo(t),I()},a(){I(),I=ea(t,k,ta,{duration:Vm})},i(H){T||(m(i.$$.fragment,H),m(o.$$.fragment,H),m(f.$$.fragment,H),m(d.$$.fragment,H),m(v.$$.fragment,H),T=!0)},o(H){_(i.$$.fragment,H),_(o.$$.fragment,H),_(f.$$.fragment,H),_(d.$$.fragment,H),_(v.$$.fragment,H),T=!1},d(H){H&&b(t),A(i),A(o),A(f),A(d),A(v),E=!1,L()}}}function Yoe(r){let e,t,n,i,l,s,o,a,u,f,c,p,d=[],g=new Map,h,v,w,k;i=new Je({props:{size:"L",$$slots:{default:[Woe]},$$scope:{ctx:r}}}),s=new Je({props:{size:"L",$$slots:{default:[Goe]},$$scope:{ctx:r}}});let I=r[0];const T=E=>E[19].id;for(let E=0;E<I.length;E+=1){let L=t6(r,I,E),M=T(L);g.set(M,d[E]=n6(M,L))}return{c(){e=D("div"),t=D("div"),n=R(),C(i.$$.fragment),l=R(),C(s.$$.fragment),o=R(),a=D("div"),u=R(),f=D("div"),c=R(),p=D("div");for(let E=0;E<d.length;E+=1)d[E].c();y(e,"class","column svelte-17kmdew"),y(p,"class","columns svelte-17kmdew")},m(E,L){$(E,e,L),P(e,t),P(e,n),S(i,e,null),P(e,l),S(s,e,null),P(e,o),P(e,a),P(e,u),P(e,f),$(E,c,L),$(E,p,L);for(let M=0;M<d.length;M+=1)d[M].m(p,null);v=!0,w||(k=[yr(h=Wu.call(null,p,{items:r[0],flipDurationMs:Vm,dropTargetStyle:{outline:"none"},dragDisabled:r[1]})),Le(p,"finalize",r[6]),Le(p,"consider",r[5])],w=!0)},p(E,L){const M={};L&4194304&&(M.$$scope={dirty:L,ctx:E}),i.$set(M);const B={};if(L&4194304&&(B.$$scope={dirty:L,ctx:E}),s.$set(B),L&23){I=E[0],x();for(let j=0;j<d.length;j+=1)d[j].r();d=rr(d,L,T,1,E,I,g,p,Zo,n6,null,t6);for(let j=0;j<d.length;j+=1)d[j].a();ee()}h&&ft(h.update)&&L&3&&h.update.call(null,{items:E[0],flipDurationMs:Vm,dropTargetStyle:{outline:"none"},dragDisabled:E[1]})},i(E){if(!v){m(i.$$.fragment,E),m(s.$$.fragment,E);for(let L=0;L<I.length;L+=1)m(d[L]);v=!0}},o(E){_(i.$$.fragment,E),_(s.$$.fragment,E);for(let L=0;L<d.length;L+=1)_(d[L]);v=!1},d(E){E&&b(e),A(i),A(s),E&&b(c),E&&b(p);for(let L=0;L<d.length;L+=1)d[L].d();w=!1,Tn(k)}}}function Joe(r){let e;return{c(){e=F("Add column")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xoe(r){let e;return{c(){e=F("Add all columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function r6(r){let e,t;return e=new lt({props:{secondary:!0,quiet:!0,$$slots:{default:[Qoe]},$$scope:{ctx:r}}}),e.$on("click",r[8]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Qoe(r){let e;return{c(){e=F("Reset columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Koe(r){var h;let e,t,n,i,l,s,o,a,u,f;const c=[Voe,Foe],p=[];function d(v,w){var k;return((k=v[0])==null?void 0:k.length)?0:1}e=d(r),t=p[e]=c[e](r),s=new lt({props:{secondary:!0,icon:"Add",$$slots:{default:[Joe]},$$scope:{ctx:r}}}),s.$on("click",r[3]),a=new lt({props:{secondary:!0,quiet:!0,$$slots:{default:[Xoe]},$$scope:{ctx:r}}}),a.$on("click",r[7]);let g=((h=r[0])==null?void 0:h.length)&&r6(r);return{c(){t.c(),n=R(),i=D("div"),l=D("div"),C(s.$$.fragment),o=R(),C(a.$$.fragment),u=R(),g&&g.c(),y(l,"class","buttons wide svelte-17kmdew"),y(i,"class","column svelte-17kmdew")},m(v,w){p[e].m(v,w),$(v,n,w),$(v,i,w),P(i,l),S(s,l,null),P(l,o),S(a,l,null),P(l,u),g&&g.m(l,null),f=!0},p(v,w){var E;let k=e;e=d(v),e===k?p[e].p(v,w):(x(),_(p[k],1,1,()=>{p[k]=null}),ee(),t=p[e],t?t.p(v,w):(t=p[e]=c[e](v),t.c()),m(t,1),t.m(n.parentNode,n));const I={};w&4194304&&(I.$$scope={dirty:w,ctx:v}),s.$set(I);const T={};w&4194304&&(T.$$scope={dirty:w,ctx:v}),a.$set(T),((E=v[0])==null?void 0:E.length)?g?(g.p(v,w),w&1&&m(g,1)):(g=r6(v),g.c(),m(g,1),g.m(l,null)):g&&(x(),_(g,1,1,()=>{g=null}),ee())},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),A(s),A(a),g&&g.d()}}}function Zoe(r){let e,t,n;return t=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Koe]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-17kmdew")},m(i,l){$(i,e,l),S(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),A(t)}}}function xoe(r){let e,t;return e=new Ni({props:{$$slots:{default:[Zoe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const Vm=150;function eae(r,e,t){let n,{columns:i=[]}=e,{options:l=[]}=e,{schema:s={}}=e,o=!0;const a=(L,M)=>{let B={};return L.forEach(j=>{B[j]=!0}),M==null||M.forEach(j=>{delete B[j.name]}),Object.keys(B)},u=L=>!L||n.includes(L)?n:[L,...n],f=()=>{t(0,i=[...i,{}])},c=L=>{t(0,i=i.filter(M=>M.id!==L))},p=L=>{t(0,i=L.detail.items)},d=L=>{p(L),t(1,o=!0)},g=()=>{let L=i||[];l.forEach(M=>{const B=s[M],j=i&&i.findIndex(U=>U.name===M)!==-1;!(B==null?void 0:B.autocolumn)&&!j&&L.push({name:M,displayName:M})}),t(0,i=L)},h=()=>{t(0,i=[])},v=()=>t(1,o=!1);function w(L,M){r.$$.not_equal(M.name,L)&&(M.name=L,t(0,i))}const k=(L,M,B,j)=>t(0,M[B].displayName=j.detail,i);function I(L,M){r.$$.not_equal(M.displayName,L)&&(M.displayName=L,t(0,i))}function T(L,M,B,j){B[j]=L,t(0,i)}const E=L=>c(L.id);return r.$$set=L=>{"columns"in L&&t(0,i=L.columns),"options"in L&&t(9,l=L.options),"schema"in L&&t(10,s=L.schema)},r.$$.update=()=>{r.$$.dirty&513&&(n=a(l,i)),r.$$.dirty&1&&i.forEach(L=>{L.id||(L.id=Fr.generate())})},[i,o,u,f,c,p,d,g,h,l,s,v,w,k,I,T,E]}class tae extends se{constructor(e){super();oe(this,e,eae,xoe,ie,{columns:0,options:9,schema:10})}}function nae(r){let e;return{c(){e=F("Configure columns")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function rae(r){let e;return{c(){e=F("Configure the columns in your table.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function iae(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function lae(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[iae]},$$scope:{ctx:r}}}),e.$on("click",r[5]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function sae(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 tae({props:l}),K.push(()=>ce(e,"columns",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function oae(r){let e,t,n,i;e=new Ut({props:{$$slots:{default:[nae]},$$scope:{ctx:r}}}),e.$on("click",r[4]);let l={title:"Table Columns",$$slots:{body:[sae],buttons:[lae],description:[rae]},$$scope:{ctx:r}};return n=new ti({props:l}),r[12](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[12](null),A(n,s)}}}function aae(r,e,t){let n,i,l,s,o;ae(r,nn,T=>t(10,o=T));let{componentInstance:a}=e,{value:u=[]}=e;const f=_t();let c,p;const d=(T,E)=>{const L=Oi(T,E).schema;return L&&(delete L._id,delete L._rev),L},g=T=>{t(3,p=Sn.cloneDeep(T))},h=(T,E)=>!Array.isArray(T)||!T.length?[]:(typeof T[0]=="string"&&(T=T.map(L=>({name:L,displayName:L}))),T.filter(L=>E.includes(L.name))),v=()=>{g(s),c.show()},w=()=>{f("change",h(p,l)),c.hide()};function k(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=rl(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,w,a,u,s,n,o,k,I]}class uae extends se{constructor(e){super();oe(this,e,aae,oae,ie,{componentInstance:6,value:7})}}const fae={text:Wy,select:Ye,dataSource:iy,"dataSource/s3":Nne,dataProvider:jne,boolean:ni,number:z_,event:wle,table:Sle,color:qm,icon:jle,field:qle,multifield:Vle,searchfield:Gle,options:Yse,schema:Xle,section:nse,navigation:_se,filter:kse,url:Pse,columns:uae,"field/string":il,"field/number":il,"field/options":il,"field/boolean":il,"field/longform":il,"field/datetime":il,"field/attachment":il,"field/link":il,"field/array":il,"field/json":il,"validation/string":Ds,"validation/array":Ds,"validation/number":Ds,"validation/boolean":Ds,"validation/datetime":Ds,"validation/attachment":Ds,"validation/link":Ds},mc=r=>fae[r];function i6(r,e,t){const n=r.slice();return n[11]=e[t],n[13]=t,n}function l6(r,e,t){const n=r.slice();return n[14]=e[t],n}function s6(r){let e,t;return e=new Wa({props:{control:et,label:"Name",key:"_instanceName",value:r[1]._instanceName,onChange:r[8]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function o6(r){let e,t;function n(...i){return r[9](r[14],...i)}return e=new Wa({props:{type:r[14].type,control:mc(r[14].type),label:r[14].label,key:r[14].key,value:r[1][r[14].key],defaultValue:r[14].defaultValue,nested:r[14].nested,onChange:n,highlighted:r[5].highlightedSettingKey===r[14].key,props:{options:r[14].options||[],placeholder:r[14].placeholder||null,min:r[14].min||null,max:r[14].max||null},bindings:r[2],componentBindings:r[3],componentInstance:r[1],componentDefinition:r[0]}}),{c(){C(e.$$.fragment)},m(i,l){S(e,i,l),t=!0},p(i,l){r=i;const s={};l&16&&(s.type=r[14].type),l&16&&(s.control=mc(r[14].type)),l&16&&(s.label=r[14].label),l&16&&(s.key=r[14].key),l&18&&(s.value=r[1][r[14].key]),l&16&&(s.defaultValue=r[14].defaultValue),l&16&&(s.nested=r[14].nested),l&16&&(s.onChange=n),l&48&&(s.highlighted=r[5].highlightedSettingKey===r[14].key),l&16&&(s.props={options:r[14].options||[],placeholder:r[14].placeholder||null,min:r[14].min||null,max:r[14].max||null}),l&4&&(s.bindings=r[2]),l&8&&(s.componentBindings=r[3]),l&2&&(s.componentInstance=r[1]),l&1&&(s.componentDefinition=r[0]),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){A(e,i)}}}function a6(r,e){let t,n=e[7](e[14]),i,l,s=n&&o6(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[7](e[14])),n?s?(s.p(e,a),a&16&&m(s,1)):(s=o6(e),s.c(),m(s,1),s.m(i.parentNode,i)):s&&(x(),_(s,1,1,()=>{s=null}),ee())},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 u6(r){let e,t;return e=new mne({props:{componentInstance:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function f6(r){let e,t=r[11].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[11].info+"")&&(e.innerHTML=t)},d(n){n&&b(e)}}}function cae(r){var h,v,w;let e=r[13]===0&&!r[1]._component.endsWith("/layout"),t,n=[],i=new Map,l,s=r[13]===0&&((v=(h=r[0])==null?void 0:h.component)==null?void 0:v.endsWith("/fieldgroup")),o,a,u,f=e&&s6(r),c=r[11].settings;const p=k=>k[14].key;for(let k=0;k<c.length;k+=1){let I=l6(r,c,k),T=p(I);i.set(T,n[k]=a6(T,I))}let d=s&&u6(r),g=((w=r[11])==null?void 0:w.info)&&f6(r);return{c(){f&&f.c(),t=R();for(let k=0;k<n.length;k+=1)n[k].c();l=R(),d&&d.c(),o=R(),g&&g.c(),a=R()},m(k,I){f&&f.m(k,I),$(k,t,I);for(let T=0;T<n.length;T+=1)n[T].m(k,I);$(k,l,I),d&&d.m(k,I),$(k,o,I),g&&g.m(k,I),$(k,a,I),u=!0},p(k,I){var T,E,L;I&18&&(e=k[13]===0&&!k[1]._component.endsWith("/layout")),e?f?(f.p(k,I),I&18&&m(f,1)):(f=s6(k),f.c(),m(f,1),f.m(t.parentNode,t)):f&&(x(),_(f,1,1,()=>{f=null}),ee()),I&255&&(c=k[11].settings,x(),n=rr(n,I,p,1,k,c,i,l.parentNode,Ur,a6,l,l6),ee()),I&17&&(s=k[13]===0&&((E=(T=k[0])==null?void 0:T.component)==null?void 0:E.endsWith("/fieldgroup"))),s?d?(d.p(k,I),I&17&&m(d,1)):(d=u6(k),d.c(),m(d,1),d.m(o.parentNode,o)):d&&(x(),_(d,1,1,()=>{d=null}),ee()),((L=k[11])==null?void 0:L.info)?g?g.p(k,I):(g=f6(k),g.c(),g.m(a.parentNode,a)):g&&(g.d(1),g=null)},i(k){if(!u){m(f);for(let I=0;I<c.length;I+=1)m(n[I]);m(d),u=!0}},o(k){_(f);for(let I=0;I<n.length;I+=1)_(n[I]);_(d),u=!1},d(k){f&&f.d(k),k&&b(t);for(let I=0;I<n.length;I+=1)n[I].d(k);k&&b(l),d&&d.d(k),k&&b(o),g&&g.d(k),k&&b(a)}}}function c6(r,e){let t,n,i;return n=new la({props:{name:e[11].name,collapsible:!1,$$slots:{default:[cae]},$$scope:{ctx:e}}}),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),S(n,l,s),i=!0},p(l,s){e=l;const o={};s&16&&(o.name=e[11].name),s&131135&&(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),A(n,l)}}}function pae(r){let e=[],t=new Map,n,i,l=r[4];const s=o=>o[11].name;for(let o=0;o<l.length;o+=1){let a=i6(r,l,o),u=s(a);t.set(u,e[o]=c6(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&255&&(l=o[4],x(),e=rr(e,a,s,1,o,l,t,n.parentNode,Ur,c6,n,i6),ee())},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 dae(r,e,t){let n,i;ae(r,qe,g=>t(5,i=g));let{componentDefinition:l}=e,{componentInstance:s}=e,{bindings:o}=e,{componentBindings:a}=e;const u=g=>{var k;const h=(k=g==null?void 0:g.settings)!=null?k:[],v=h.filter(I=>!I.section),w=h.filter(I=>I.section);return[{name:(l==null?void 0:l.name)||"General",info:l==null?void 0:l.info,settings:v},...w||[]]},f=Dv(async(g,h)=>{try{await qe.actions.components.updateProp(g,h)}catch{we.error("Error updating component prop")}}),c=g=>{if(!mc(g==null?void 0:g.type))return!1;if(g.dependsOn){let v=g.dependsOn,w=null;if(typeof g.dependsOn=="object"&&(v=g.dependsOn.setting,w=g.dependsOn.value),!v)return!1;if(w==null){const k=s[v];return k===!1?!1:k===!0?!0:!Sn.isEmpty(k)}return s[v]===w}return!0},p=g=>f("_instanceName",g),d=(g,h)=>f(g.key,h);return r.$$set=g=>{"componentDefinition"in g&&t(0,l=g.componentDefinition),"componentInstance"in g&&t(1,s=g.componentInstance),"bindings"in g&&t(2,o=g.bindings),"componentBindings"in g&&t(3,a=g.componentBindings)},r.$$.update=()=>{r.$$.dirty&1&&t(4,n=u(l))},[l,s,o,a,n,i,f,c,p,d]}class mae extends se{constructor(e){super();oe(this,e,dae,pae,ie,{componentDefinition:0,componentInstance:1,bindings:2,componentBindings:3})}}function p6(r,e,t){const n=r.slice();return n[11]=e[t],n}function d6(r,e){let t,n,i,l;function s(...o){return e[10](e[11],...o)}return n=new Wa({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"),C(n.$$.fragment),i=R(),ht(t,"grid-column",e[11].column||"auto"),this.first=t},m(o,a){$(o,t,a),S(n,t,null),P(t,i),l=!0},p(o,a){e=o;const u={};a&36&&(u.label=`${e[11].label}${e[7](e[5],e[11])?" *":""}`),a&4&&(u.control=e[11].control),a&4&&(u.key=e[11].key),a&36&&(u.value=e[5][e[11].key]),a&4&&(u.onChange=s),a&4&&(u.props=e[8](e[11])),a&16&&(u.bindings=e[4]),n.$set(u),(!l||a&4)&&ht(t,"grid-column",e[11].column||"auto")},i(o){l||(m(n.$$.fragment,o),l=!0)},o(o){_(n.$$.fragment,o),l=!1},d(o){o&&b(t),A(n)}}}function gae(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=p6(r,l,o),u=s(a);n.set(u,t[o]=d6(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"),ht(e,"grid-template-columns",r[1]||"1fr")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,a){a&956&&(l=o[2],x(),t=rr(t,a,s,1,o,l,n,e,Ur,d6,null,p6),ee()),(!i||a&2)&&ht(e,"grid-template-columns",o[1]||"1fr")},i(o){if(!i){for(let a=0;a<l.length;a+=1)m(t[a]);i=!0}},o(o){for(let a=0;a<t.length;a+=1)_(t[a]);i=!1},d(o){o&&b(e);for(let a=0;a<t.length;a+=1)t[a].d()}}}function _ae(r){let e,t;return e=new la({props:{collapsible:!1,name:`${r[0]}${r[6]?" *":""}`,$$slots:{default:[gae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function hae(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 qe.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 $ae extends se{constructor(e){super();oe(this,e,hae,_ae,ie,{name:0,columns:1,properties:2,componentInstance:3,bindings:4})}}const m6={label:"Margin",columns:"1fr 1fr",settings:[{label:"Top",key:"margin-top",control:Ye,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:Ye,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:Ye,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:Ye,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%"}]}]},bae={label:"Padding",columns:"1fr 1fr",settings:[{label:"Top",key:"padding-top",control:Ye,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:Ye,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:Ye,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:Ye,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%"}]}]},vae={label:"Size",columns:"1fr 1fr",settings:[{label:"Width",key:"width",control:et,placeholder:"Auto"},{label:"Height",key:"height",control:et,placeholder:"Auto"}]},wae={label:"Background",columns:"auto 1fr",settings:[{label:"Color",key:"background",control:qm},{label:"Gradient",key:"background-image",control:Ye,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%);"}]}]},yae={label:"Border",columns:"1fr 1fr",settings:[{label:"Color",key:"border-color",control:qm},{label:"Width",key:"border-width",control:Ye,column:"1 / 2",placeholder:"None",options:[{label:"Small",value:"1px"},{label:"Medium",value:"2px"},{label:"Large",value:"4px"}]},{label:"Style",key:"border-style",control:Ye,column:"2 / 3",placeholder:"None",options:[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}]},{label:"Radius",key:"border-radius",control:Ye,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:Ye,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)"}]}]},Hm=[m6];var g6=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",margin:m6,padding:bae,size:vae,background:wae,border:yae,all:Hm});function _6(r,e,t){const n=r.slice();return n[5]=e[t],n}function h6(r){let e,t,n=r[2],i=[];for(let s=0;s<n.length;s+=1)i[s]=$6(_6(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=_6(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=$6(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function $6(r){let e,t;return e=new $ae({props:{style:r[5],name:r[5].label,columns:r[5].columns,properties:r[5].settings,componentInstance:r[0],bindings:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function kae(r){var i;let e,t,n=((i=r[2])==null?void 0:i.length)>0&&h6(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=h6(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(l){t||(m(n),t=!0)},o(l){_(n),t=!1},d(l){n&&n.d(l),l&&b(e)}}}function Cae(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[...Hm];let u=[...Hm];return a.styles.forEach(c=>{g6[c]&&u.push(g6[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 Sae extends se{constructor(e){super();oe(this,e,Cae,kae,ie,{componentDefinition:3,componentInstance:0,bindings:1})}}function Aae(r){let e;return{c(){e=F("Edit custom CSS")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Oae(r){let e,t,n;return t=new Ut({props:{$$slots:{default:[Aae]},$$scope:{ctx:r}}}),t.$on("click",r[3]),{c(){e=D("div"),C(t.$$.fragment)},m(i,l){$(i,e,l),S(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),A(t)}}}function Eae(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Tae(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[Eae]},$$scope:{ctx:r}}}),e.$on("click",r[4]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Iae(r){let e;return{c(){e=F("Custom CSS overrides all other component styles.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Lae(r){let e,t,n,i,l;e=new Ue({props:{size:"S",$$slots:{default:[Iae]},$$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 _i({props:o}),K.push(()=>ce(n,"value",s)),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(a,u){S(e,a,u),$(a,t,u),S(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){A(e,a),a&&b(t),A(n,a)}}}function Pae(r){let e,t,n;return t=new ze({props:{gap:"S",noPadding:!0,$$slots:{default:[Lae]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","content svelte-ernmz2")},m(i,l){$(i,e,l),S(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),A(t)}}}function Nae(r){let e,t;return e=new Ni({props:{slot:"body",$$slots:{default:[Pae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function b6(r){let e,t,n={title:"Custom CSS",$$slots:{body:[Nae],buttons:[Tae]},$$scope:{ctx:r}};return e=new ti({props:n}),r[6](e),{c(){C(e.$$.fragment)},m(i,l){S(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),A(e,i)}}}function Rae(r){var o,a,u;let e,t,n=(o=r[0])==null?void 0:o._id,i,l;e=new la({props:{name:`Custom CSS${((u=(a=r[0])==null?void 0:a._styles)==null?void 0:u.custom)?" *":""}`,collapsible:!1,$$slots:{default:[Oae]},$$scope:{ctx:r}}});let s=b6(r);return{c(){C(e.$$.fragment),t=R(),s.c(),i=Oe()},m(f,c){S(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&&ie(n,n=(h=f[0])==null?void 0:h._id)?(x(),_(s,1,1,Se),ee(),s=b6(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){A(e,f),f&&b(t),f&&b(i),s.d(f)}}}function Mae(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 qe.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 Dae extends se{constructor(e){super();oe(this,e,Mae,Rae,ie,{componentInstance:0})}}function v6(r,e,t){const n=r.slice();return n[32]=e[t],n[33]=e,n[34]=t,n}function jae(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[zae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Bae(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=v6(r,a,f),p=u(c);n.set(p,t[f]=y6(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=[yr(i=Wu.call(null,e,{items:r[0],flipDurationMs:Wm,dropTargetStyle:{outline:"none"},dragDisabled:r[3]})),Le(e,"finalize",r[12]),Le(e,"consider",r[13])],s=!0)},p(f,c){if(c[0]&118271){a=f[0],x();for(let p=0;p<t.length;p+=1)t[p].r();t=rr(t,c,u,1,f,a,n,e,Zo,y6,null,v6);for(let p=0;p<t.length;p+=1)t[p].a();ee()}i&&ft(i.update)&&c[0]&9&&i.update.call(null,{items:f[0],flipDurationMs:Wm,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 zae(r){let e;return{c(){e=F("Add your first condition to get started.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function w6(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 Ye({props:p}),K.push(()=>ce(e,"value",c));const d=[Uae,qae],g=[];function h(v,w){return(s==null||w[0]&1)&&(s=!!v[7](v[32].setting)),s?0:1}return o=h(r,[-1,-1]),a=g[o]=d[o](r),{c(){C(e.$$.fragment),n=R(),i=D("div"),i.textContent="TO",l=R(),a.c(),u=Oe()},m(v,w){S(e,v,w),$(v,n,w),$(v,i,w),$(v,l,w),g[o].m(v,w),$(v,u,w),f=!0},p(v,w){r=v;const k={};w[0]&16&&(k.options=r[4]),!t&&w[0]&1&&(t=!0,k.value=r[32].setting,pe(()=>t=!1)),e.$set(k);let I=o;o=h(r,w),o===I?g[o].p(r,w):(x(),_(g[I],1,1,()=>{g[I]=null}),ee(),a=g[o],a?a.p(r,w):(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){A(e,v),v&&b(n),v&&b(i),v&&b(l),g[o].d(v),v&&b(u)}}}function qae(r){let e,t;return e=new Ye({props:{disabled:!0,placeholder:" "}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p:Se,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Uae(r){let e,t;function n(...i){return r[21](r[32],r[33],r[34],...i)}return e=new Wa({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(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function Fae(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 Ye({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Vae(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 Vl({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Hae(r){let e,t;function n(...i){return r[27](r[32],r[33],r[34],...i)}return e=new Rn({props:{disabled:r[32].noValue,bindings:r[1],placeholder:"Value",value:r[32].referenceValue}}),e.$on("change",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function y6(r,e){let t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,E,L,M,B,j,U,q,G,Y,W=Se,H,V,J;i=new at({props:{name:"DragHandle",size:"XL"}});function fe(Ee){e[19](Ee,e[32])}let re={placeholder:null,options:e[5]};e[32].action!==void 0&&(re.value=e[32].action),o=new Ye({props:re}),K.push(()=>ce(o,"value",fe));let Q=e[32].action==="update"&&w6(e);function te(...Ee){return e[22](e[32],e[33],e[34],...Ee)}d=new Rn({props:{bindings:e[1],placeholder:"Value",value:e[32].newValue}}),d.$on("change",te);function _e(Ee){e[23](Ee,e[32])}function Re(...Ee){return e[24](e[32],...Ee)}let be={placeholder:null,options:e[14](e[32])};e[32].operator!==void 0&&(be.value=e[32].operator),h=new Ye({props:be}),K.push(()=>ce(h,"value",_e)),h.$on("change",Re);function he(Ee){e[25](Ee,e[32])}function ve(...Ee){return e[26](e[32],...Ee)}let Ie={disabled:e[32].noValue,options:e[6],placeholder:null};e[32].valueType!==void 0&&(Ie.value=e[32].valueType),k=new Ye({props:Ie}),K.push(()=>ce(k,"value",he)),k.$on("change",ve);const Be=[Hae,Vae,Fae],ue=[];function Ve(Ee,ke){return(E==null||ke[0]&1)&&(E=!!["string","number"].includes(Ee[32].valueType)),E?0:Ee[32].valueType==="datetime"?1:Ee[32].valueType==="boolean"?2:-1}~(L=Ve(e,[-1,-1]))&&(M=ue[L]=Be[L](e));function de(){return e[30](e[32])}j=new at({props:{name:"Duplicate",hoverable:!0,size:"S"}}),j.$on("click",de);function $e(){return e[31](e[32])}return q=new at({props:{name:"Close",hoverable:!0,size:"S"}}),q.$on("click",$e),{key:r,first:null,c(){t=D("div"),n=D("div"),C(i.$$.fragment),s=R(),C(o.$$.fragment),u=R(),Q&&Q.c(),f=R(),c=D("div"),c.textContent="IF",p=R(),C(d.$$.fragment),g=R(),C(h.$$.fragment),w=R(),C(k.$$.fragment),T=R(),M&&M.c(),B=R(),C(j.$$.fragment),U=R(),C(q.$$.fragment),G=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"),le(t,"update",e[32].action==="update"),this.first=t},m(Ee,ke){$(Ee,t,ke),P(t,n),S(i,n,null),P(t,s),S(o,t,null),P(t,u),Q&&Q.m(t,null),P(t,f),P(t,c),P(t,p),S(d,t,null),P(t,g),S(h,t,null),P(t,w),S(k,t,null),P(t,T),~L&&ue[L].m(t,null),P(t,B),S(j,t,null),P(t,U),S(q,t,null),P(t,G),H=!0,V||(J=Le(n,"mousedown",e[18]),V=!0)},p(Ee,ke){e=Ee,(!H||ke[0]&8&&l!==(l=e[3]?"cursor: grab":"cursor: grabbing"))&&y(n,"style",l);const Ke={};!a&&ke[0]&1&&(a=!0,Ke.value=e[32].action,pe(()=>a=!1)),o.$set(Ke),e[32].action==="update"?Q?(Q.p(e,ke),ke[0]&1&&m(Q,1)):(Q=w6(e),Q.c(),m(Q,1),Q.m(t,f)):Q&&(x(),_(Q,1,1,()=>{Q=null}),ee());const Nt={};ke[0]&2&&(Nt.bindings=e[1]),ke[0]&1&&(Nt.value=e[32].newValue),d.$set(Nt);const zt={};ke[0]&1&&(zt.options=e[14](e[32])),!v&&ke[0]&1&&(v=!0,zt.value=e[32].operator,pe(()=>v=!1)),h.$set(zt);const qt={};ke[0]&1&&(qt.disabled=e[32].noValue),!I&&ke[0]&1&&(I=!0,qt.value=e[32].valueType,pe(()=>I=!1)),k.$set(qt);let Xt=L;L=Ve(e,ke),L===Xt?~L&&ue[L].p(e,ke):(M&&(x(),_(ue[Xt],1,1,()=>{ue[Xt]=null}),ee()),~L?(M=ue[L],M?M.p(e,ke):(M=ue[L]=Be[L](e),M.c()),m(M,1),M.m(t,B)):M=null),ke[0]&1&&le(t,"update",e[32].action==="update")},r(){Y=t.getBoundingClientRect()},f(){xo(t),W()},a(){W(),W=ea(t,Y,ta,{duration:Wm})},i(Ee){H||(m(i.$$.fragment,Ee),m(o.$$.fragment,Ee),m(Q),m(d.$$.fragment,Ee),m(h.$$.fragment,Ee),m(k.$$.fragment,Ee),m(M),m(j.$$.fragment,Ee),m(q.$$.fragment,Ee),H=!0)},o(Ee){_(i.$$.fragment,Ee),_(o.$$.fragment,Ee),_(Q),_(d.$$.fragment,Ee),_(h.$$.fragment,Ee),_(k.$$.fragment,Ee),_(M),_(j.$$.fragment,Ee),_(q.$$.fragment,Ee),H=!1},d(Ee){Ee&&b(t),A(i),A(o),Q&&Q.d(),A(d),A(h),A(k),~L&&ue[L].d(),A(j),A(q),V=!1,J()}}}function Wae(r){let e;return{c(){e=F("Add condition")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Gae(r){let e,t,n,i,l,s;const o=[Bae,jae],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 lt({props:{secondary:!0,icon:"Add",$$slots:{default:[Wae]},$$scope:{ctx:r}}}),l.$on("click",r[9]),{c(){t.c(),n=R(),i=D("div"),C(l.$$.fragment)},m(f,c){a[e].m(f,c),$(f,n,c),$(f,i,c),S(l,i,null),s=!0},p(f,c){let p=e;e=u(f),e===p?a[e].p(f,c):(x(),_(a[p],1,1,()=>{a[p]=null}),ee(),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),A(l)}}}function Yae(r){let e,t,n;return t=new ze({props:{noPadding:!0,$$slots:{default:[Gae]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","container svelte-1vod3ll")},m(i,l){$(i,e,l),S(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),A(t)}}}function Jae(r){let e,t;return e=new Ni({props:{$$slots:{default:[Yae]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}const Wm=150;function Xae(r,e,t){let n,i,l;ae(r,ai,re=>t(2,l=re));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=re=>n.find(Q=>Q.key===re),p=re=>{const Q=c(re);return mc((Q==null?void 0:Q.type)||"text")},d=()=>{t(0,s=[...s,{valueType:"string",id:Fr.generate(),action:"hide",operator:Pr.Equals.value}])},g=re=>{t(0,s=s.filter(Q=>Q.id!==re))},h=re=>{const Q=s.find(_e=>_e.id===re),te=it(Ae({},Q),{id:Fr.generate()});t(0,s=[...s,te])},v=re=>{w(re),t(3,f=!0)},w=re=>{t(0,s=re.detail.items)},k=re=>Ba(re.valueType),I=(re,Q)=>{const te=[Pr.Empty.value,Pr.NotEmpty.value];re.noValue=te.includes(Q),re.noValue&&(re.referenceValue=null,re.valueType="string")},T=(re,Q)=>{var _e;re.referenceValue=null;const te=Ba(Q).map(Re=>Re.value);te.includes(re.operator)||(re.operator=(_e=te[0])!=null?_e:Pr.Equals.value,I(re,re.operator))},E=()=>t(3,f=!1);function L(re,Q){r.$$.not_equal(Q.action,re)&&(Q.action=re,t(0,s))}function M(re,Q){r.$$.not_equal(Q.setting,re)&&(Q.setting=re,t(0,s))}const B=(re,Q,te,_e)=>t(0,Q[te].settingValue=_e,s),j=(re,Q,te,_e)=>t(0,Q[te].newValue=_e.detail,s);function U(re,Q){r.$$.not_equal(Q.operator,re)&&(Q.operator=re,t(0,s))}const q=(re,Q)=>I(re,Q.detail);function G(re,Q){r.$$.not_equal(Q.valueType,re)&&(Q.valueType=re,t(0,s))}const Y=(re,Q)=>T(re,Q.detail),W=(re,Q,te,_e)=>t(0,Q[te].referenceValue=_e.detail,s);function H(re,Q){r.$$.not_equal(Q.referenceValue,re)&&(Q.referenceValue=re,t(0,s))}function V(re,Q){r.$$.not_equal(Q.referenceValue,re)&&(Q.referenceValue=re,t(0,s))}const J=re=>h(re.id),fe=re=>g(re.id);return r.$$set=re=>{"conditions"in re&&t(0,s=re.conditions),"bindings"in re&&t(1,o=re.bindings)},r.$$.update=()=>{r.$$.dirty[0]&4&&t(17,n=Ao(l==null?void 0:l._component)),r.$$.dirty[0]&131072&&t(4,i=n.map(re=>({label:re.label,value:re.key}))),r.$$.dirty[0]&1&&s.forEach(re=>{re.id||(re.id=Fr.generate())})},[s,o,l,f,i,a,u,c,p,d,g,h,v,w,k,I,T,n,E,L,M,B,j,U,q,G,Y,W,H,V,J,fe]}class Qae extends se{constructor(e){super();oe(this,e,Xae,Jae,ie,{conditions:0,bindings:1},null,[-1,-1])}}function Kae(r){let e;return{c(){e=F("Configure conditions")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Zae(r){let e,t,n;return t=new Ut({props:{$$slots:{default:[Kae]},$$scope:{ctx:r}}}),t.$on("click",r[4]),{c(){e=D("div"),C(t.$$.fragment)},m(i,l){$(i,e,l),S(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),A(t)}}}function xae(r){let e;return{c(){e=F("Show, hide and update components in response to conditions being met.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function eue(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function tue(r){let e,t;return e=new lt({props:{cta:!0,slot:"buttons",$$slots:{default:[eue]},$$scope:{ctx:r}}}),e.$on("click",r[7]),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function nue(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 Qae({props:l}),K.push(()=>ce(e,"conditions",i)),{c(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function rue(r){var s;let e,t,n,i;e=new la({props:{name:`Conditions${((s=r[0])==null?void 0:s._conditions)?" *":""}`,collapsible:!1,$$slots:{default:[Zae]},$$scope:{ctx:r}}});let l={title:"Conditions",$$slots:{body:[nue],buttons:[tue],description:[xae]},$$scope:{ctx:r}};return n=new ti({props:l}),r[8](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(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){A(e,o),o&&b(t),r[8](null),A(n,o)}}}function iue(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 qe.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 lue extends se{constructor(e){super();oe(this,e,iue,rue,ie,{componentInstance:0,bindings:1})}}function k6(r){let e,t,n,i,l,s,o,a,u,f;return e=new ene({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),n=new mae({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1],componentBindings:r[0]}}),l=new Sae({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),o=new Dae({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),u=new lue({props:{componentInstance:r[3],componentDefinition:r[2],bindings:r[1]}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment)},m(c,p){S(e,c,p),$(c,t,p),S(n,c,p),$(c,i,p),S(l,c,p),$(c,s,p),S(o,c,p),$(c,a,p),S(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 w={};p&8&&(w.componentInstance=c[3]),p&4&&(w.componentDefinition=c[2]),p&2&&(w.bindings=c[1]),u.$set(w)},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){A(e,c),c&&b(t),A(n,c),c&&b(i),A(l,c),c&&b(s),A(o,c),c&&b(a),A(u,c)}}}function sue(r){var l;let e,t=(l=r[3])==null?void 0:l._id,n,i=k6(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&&ie(t,t=(a=s[3])==null?void 0:a._id)?(x(),_(i,1,1,Se),ee(),i=k6(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 oue(r){let e,t;return e=new _n({props:{title:"Settings",$$slots:{default:[sue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function aue(r){let e,t;return e=new Sr({props:{selected:"Settings",noPadding:!0,$$slots:{default:[oue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function uue(r,e,t){let n,i,l,s,o,a,u;return ae(r,qe,f=>t(4,o=f)),ae(r,nn,f=>t(5,a=f)),ae(r,ai,f=>t(6,u=f)),r.$$.update=()=>{r.$$.dirty&64&&t(3,n=u),r.$$.dirty&64&&t(2,i=qe.actions.components.getDefinition(u==null?void 0:u._component)),r.$$.dirty&48&&t(1,l=JU(a,o.selectedComponentId)),r.$$.dirty&48&&t(0,s=XU(a,o.selectedComponentId))},[s,l,i,n,o,a,u]}class fue extends se{constructor(e){super();oe(this,e,uue,aue,ie,{})}}var cue=[{name:"Blocks",icon:"Article",children:["tableblock","cardsblock","repeaterblock"]},{name:"Layout",icon:"ClassicGridView",children:["container","section"]},{name:"Data",icon:"Data",children:["dataprovider","repeater","table","dynamicfilter"]},{name:"Form",icon:"Form",children:["form","formstep","fieldgroup","stringfield","numberfield","passwordfield","optionsfield","booleanfield","longformfield","datetimefield","attachmentfield","relationshipfield","daterangepicker","multifieldselect","jsonfield","s3upload"]},{name:"Card",icon:"Card",children:["spectrumcard","cardstat"]},{name:"Chart",icon:"GraphBarVertical",children:["bar","line","area","pie","donut","candlestick"]},{name:"Elements",icon:"TextParagraph",children:["heading","text","button","tag","divider","image","backgroundimage","link","icon","embed","markdownviewer","embeddedmap"]}];function C6(r,e,t){const n=r.slice();return n[9]=e[t],n}function S6(r,e,t){const n=r.slice();return n[9]=e[t],n}function A6(r){let e,t;function n(){return r[7](r[9])}return e=new ln({props:{dataCy:`component-${r[9].name}`,icon:r[9].icon,disabled:r[3](r[9],r[1]),$$slots:{default:[pue]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function pue(r){let e=r[9].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[9].name+"")&&Ce(t,e)},d(n){n&&b(t)}}}function O6(r){let e=!r[9].showOnAsset||r[9].showOnAsset.includes(r[2]),t,n,i=e&&A6(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=A6(l),i.c(),m(i,1),i.m(t.parentNode,t)):i&&(x(),_(i,1,1,()=>{i=null}),ee())},i(l){n||(m(i),n=!0)},o(l){_(i),n=!1},d(l){i&&i.d(l),l&&b(t)}}}function due(r){let e,t,n=r[9].children||[],i=[];for(let s=0;s<n.length;s+=1)i[s]=O6(S6(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=S6(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=O6(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function E6(r){let e,t;return e=new at({props:{size:"S",name:"ChevronDown"}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function mue(r){let e,t=r[9].name+"",n,i,l,s,o=r[9].isCategory&&E6();return{c(){e=D("div"),n=F(t),i=R(),o&&o.c(),l=R(),y(e,"class","buttonContent svelte-15cdrfq")},m(a,u){$(a,e,u),P(e,n),P(e,i),o&&o.m(e,null),$(a,l,u),s=!0},p(a,u){(!s||u&1)&&t!==(t=a[9].name+"")&&Ce(n,t),a[9].isCategory?o?u&1&&m(o,1):(o=E6(),o.c(),m(o,1),o.m(e,null)):o&&(x(),_(o,1,1,()=>{o=null}),ee())},i(a){s||(m(o),s=!0)},o(a){_(o),s=!1},d(a){a&&b(e),o&&o.d(),a&&b(l)}}}function gue(r){let e,t;function n(){return r[6](r[9])}return e=new Ut({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:[mue]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function T6(r){let e,t;return e=new kr({props:{disabled:!r[9].isCategory,$$slots:{control:[gue],default:[due]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function _ue(r){let e,t,n=r[0],i=[];for(let s=0;s<n.length;s+=1)i[s]=T6(C6(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=C6(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=T6(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function hue(r,e,t){let n,i,l,s;ae(r,qe,p=>t(5,i=p)),ae(r,ai,p=>t(1,l=p)),ae(r,Ez,p=>t(2,s=p));const o=({name:p},d)=>{var h;const g=qe.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(it(Ae({},v),{isCategory:!1}))}else g.push(it(Ae({},h),{isCategory:!0,children:a(h.children||[],d)}))}),g},u=async p=>{if(!p.isCategory)try{await qe.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(cue,i.components))},[n,l,s,o,u,i,f,c]}class $ue extends se{constructor(e){super();oe(this,e,hue,_ue,ie,{})}}const I6={MOVE:"move",COPY:"copy"},Yr={ABOVE:"above",BELOW:"below",INSIDE:"inside"};function L6(){const r=fn({});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=Yr.ABOVE),i>.8&&(l.dropPosition=Yr.BELOW),i>.4&&i<.8&&(l.dropPosition=Yr.INSIDE),l):(i>.5?l.dropPosition=Yr.BELOW:l.dropPosition=n?Yr.INSIDE:Yr.ABOVE,l)))},reset:()=>{r.update(e=>(e.dropPosition="",e.targetComponent=null,e.dragged=null,e))},drop:async()=>{const e=xe(r);e.targetComponent===e.dragged||!e.targetComponent||!e.dragged||Tl(e.dragged,e.targetComponent._id).map(i=>i._id).includes(e.targetComponent._id)||(qe.actions.components.copy(e.dragged,!0),await qe.actions.components.paste(e.targetComponent,e.dropPosition),r.actions.reset())}},r}function P6(r){var s;let e,t,n,i;e=new kr({props:{$$slots:{control:[Tue],default:[Eue]},$$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(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(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){A(e,o),o&&b(t),r[18](null),A(n,o)}}}function bue(r){let e;return{c(){e=F("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function vue(r){let e;return{c(){e=F("Move up")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function wue(r){let e;return{c(){e=F("Move down")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function yue(r){let e;return{c(){e=F("Duplicate")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function kue(r){let e;return{c(){e=F("Cut")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Cue(r){let e;return{c(){e=F("Copy")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Sue(r){let e;return{c(){e=F("Paste above")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Aue(r){let e;return{c(){e=F("Paste below")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Oue(r){let e;return{c(){e=F("Paste inside")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Eue(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k;return e=new ln({props:{icon:"Delete",$$slots:{default:[bue]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)}),n=new ln({props:{noClose:!0,icon:"ChevronUp",$$slots:{default:[vue]},$$scope:{ctx:r}}}),n.$on("click",r[5]),l=new ln({props:{noClose:!0,icon:"ChevronDown",$$slots:{default:[wue]},$$scope:{ctx:r}}}),l.$on("click",r[6]),o=new ln({props:{noClose:!0,icon:"Duplicate",$$slots:{default:[yue]},$$scope:{ctx:r}}}),o.$on("click",r[7]),u=new ln({props:{icon:"Cut",$$slots:{default:[kue]},$$scope:{ctx:r}}}),u.$on("click",r[13]),c=new ln({props:{icon:"Copy",$$slots:{default:[Cue]},$$scope:{ctx:r}}}),c.$on("click",r[14]),d=new ln({props:{icon:"LayersBringToFront",disabled:r[3],$$slots:{default:[Sue]},$$scope:{ctx:r}}}),d.$on("click",r[15]),h=new ln({props:{icon:"LayersSendToBack",disabled:r[3],$$slots:{default:[Aue]},$$scope:{ctx:r}}}),h.$on("click",r[16]),w=new ln({props:{icon:"ShowOneLayer",disabled:r[3]||r[4],$$slots:{default:[Oue]},$$scope:{ctx:r}}}),w.$on("click",r[17]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment),s=R(),C(o.$$.fragment),a=R(),C(u.$$.fragment),f=R(),C(c.$$.fragment),p=R(),C(d.$$.fragment),g=R(),C(h.$$.fragment),v=R(),C(w.$$.fragment)},m(I,T){S(e,I,T),$(I,t,T),S(n,I,T),$(I,i,T),S(l,I,T),$(I,s,T),S(o,I,T),$(I,a,T),S(u,I,T),$(I,f,T),S(c,I,T),$(I,p,T),S(d,I,T),$(I,g,T),S(h,I,T),$(I,v,T),S(w,I,T),k=!0},p(I,T){r=I;const E={};T&524288&&(E.$$scope={dirty:T,ctx:r}),e.$set(E);const L={};T&524288&&(L.$$scope={dirty:T,ctx:r}),n.$set(L);const M={};T&524288&&(M.$$scope={dirty:T,ctx:r}),l.$set(M);const B={};T&524288&&(B.$$scope={dirty:T,ctx:r}),o.$set(B);const j={};T&524288&&(j.$$scope={dirty:T,ctx:r}),u.$set(j);const U={};T&524288&&(U.$$scope={dirty:T,ctx:r}),c.$set(U);const q={};T&8&&(q.disabled=r[3]),T&524288&&(q.$$scope={dirty:T,ctx:r}),d.$set(q);const G={};T&8&&(G.disabled=r[3]),T&524288&&(G.$$scope={dirty:T,ctx:r}),h.$set(G);const Y={};T&24&&(Y.disabled=r[3]||r[4]),T&524288&&(Y.$$scope={dirty:T,ctx:r}),w.$set(Y)},i(I){k||(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(w.$$.fragment,I),k=!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),_(w.$$.fragment,I),k=!1},d(I){A(e,I),I&&b(t),A(n,I),I&&b(i),A(l,I),I&&b(s),A(o,I),I&&b(a),A(u,I),I&&b(f),A(c,I),I&&b(p),A(d,I),I&&b(g),A(h,I),I&&b(v),A(w,I)}}}function Tue(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function Iue(r){let e,t,n=r[2]&&P6(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=P6(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function Lue(r,e,t){let n,i,l,s,o;ae(r,qe,L=>t(12,o=L));let{component:a}=e,u;const f=()=>{const L=xe(nn),M=rs(L==null?void 0:L.props,a._id);if(!M)return;const B=M._children.indexOf(a);if(B!==0)try{const j=M._children.filter(U=>U!==a);j.splice(B-1,0,a),M._children=j,qe.actions.preview.saveSelected()}catch{we.error("Error saving screen")}},c=()=>{const L=xe(nn),M=rs(L==null?void 0:L.props,a._id);if(!M)return;const B=M._children.indexOf(a);if(B!==M._children.length-1)try{const j=M._children.filter(U=>U!==a);j.splice(B+1,0,a),M._children=j,qe.actions.preview.saveSelected()}catch{we.error("Error saving screen")}},p=()=>{g(!1),h("below")},d=async()=>{try{await qe.actions.components.delete(a)}catch{we.error("Error deleting component")}},g=(L=!1)=>{qe.actions.components.copy(a,L)},h=L=>{try{qe.actions.components.paste(a,L)}catch{we.error("Error saving component")}},v=()=>g(!0),w=()=>g(!1),k=()=>h("above"),I=()=>h("below"),T=()=>h("inside");function E(L){K[L?"unshift":"push"](()=>{u=L,t(1,u)})}return r.$$set=L=>{"component"in L&&t(11,a=L.component)},r.$$.update=()=>{r.$$.dirty&2048&&t(0,n=qe.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,w,k,I,T,E]}class Pue extends se{constructor(e){super();oe(this,e,Lue,Iue,ie,{component:11})}}function N6(r,e,t){const n=r.slice();return n[18]=e[t],n[20]=t,n}function R6(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-1wboluz"),ht(e,"margin-left",(r[3]+1)*16+"px")},m(i,l){$(i,e,l),t||(n=Le(e,"drop",r[14]),t=!0)},p(i,l){l&8&&ht(e,"margin-left",(i[3]+1)*16+"px")},d(i){i&&b(e),t=!1,n()}}}function Nue(r){let e,t;return e=new Pue({props:{component:r[18]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.component=n[18]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M6(r){let e,t;return e=new Gm({props:{components:r[18]._children,currentComponent:r[1],onSelect:r[2],dragDropStore:r[4],level:r[3]+1}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&1&&(l.components=n[18]._children),i&2&&(l.currentComponent=n[1]),i&4&&(l.onSelect=n[2]),i&16&&(l.dragDropStore=n[4]),i&8&&(l.level=n[3]+1),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function D6(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-1wboluz"),ht(e,"margin-left",(r[3]+(r[6].dropPosition===Yr.INSIDE?3:1))*16+"px")},m(i,l){$(i,e,l),t||(n=Le(e,"drop",r[14]),t=!0)},p(i,l){l&72&&ht(e,"margin-left",(i[3]+(i[6].dropPosition===Yr.INSIDE?3:1))*16+"px")},d(i){i&&b(e),t=!1,n()}}}function j6(r,e){var w,k;let t,n,i,l,s=e[15](e[18],e[8],e[5]),o,a,u,f,c,p=((w=e[6])==null?void 0:w.targetComponent)===e[18]&&e[6].dropPosition===Yr.ABOVE&&R6(e);function d(){return e[16](e[18])}i=new Nl({props:{draggable:!0,text:e[12](e[18]),withArrow:!0,indentLevel:e[3]+1,selected:e[7].selectedComponentId===e[18]._id,opened:e[15](e[18],e[8],e[5]),$$slots:{default:[Nue]},$$scope:{ctx:e}}}),i.$on("dragend",function(){ft(e[4].actions.reset)&&e[4].actions.reset.apply(this,arguments)}),i.$on("dragstart",function(){ft(e[10](e[18]))&&e[10](e[18]).apply(this,arguments)}),i.$on("dragover",function(){ft(e[11](e[18],e[20]))&&e[11](e[18],e[20]).apply(this,arguments)}),i.$on("iconClick",d),i.$on("drop",e[14]);let g=s&&M6(e),h=((k=e[6])==null?void 0:k.targetComponent)===e[18]&&(e[6].dropPosition===Yr.INSIDE||e[6].dropPosition===Yr.BELOW)&&D6(e);function v(){return e[17](e[18])}return{key:r,first:null,c(){t=D("li"),p&&p.c(),n=R(),C(i.$$.fragment),l=R(),g&&g.c(),o=R(),h&&h.c(),a=R(),y(t,"class","svelte-1wboluz"),this.first=t},m(I,T){$(I,t,T),p&&p.m(t,null),P(t,n),S(i,t,null),P(t,l),g&&g.m(t,null),P(t,o),h&&h.m(t,null),P(t,a),u=!0,f||(c=Le(t,"click",Cp(v)),f=!0)},p(I,T){var L,M;e=I,((L=e[6])==null?void 0:L.targetComponent)===e[18]&&e[6].dropPosition===Yr.ABOVE?p?p.p(e,T):(p=R6(e),p.c(),p.m(t,n)):p&&(p.d(1),p=null);const E={};T&1&&(E.text=e[12](e[18])),T&8&&(E.indentLevel=e[3]+1),T&129&&(E.selected=e[7].selectedComponentId===e[18]._id),T&289&&(E.opened=e[15](e[18],e[8],e[5])),T&2097153&&(E.$$scope={dirty:T,ctx:e}),i.$set(E),T&289&&(s=e[15](e[18],e[8],e[5])),s?g?(g.p(e,T),T&289&&m(g,1)):(g=M6(e),g.c(),m(g,1),g.m(t,o)):g&&(x(),_(g,1,1,()=>{g=null}),ee()),((M=e[6])==null?void 0:M.targetComponent)===e[18]&&(e[6].dropPosition===Yr.INSIDE||e[6].dropPosition===Yr.BELOW)?h?h.p(e,T):(h=D6(e),h.c(),h.m(t,a)):h&&(h.d(1),h=null)},i(I){u||(m(i.$$.fragment,I),m(g),u=!0)},o(I){_(i.$$.fragment,I),_(g),u=!1},d(I){I&&b(t),p&&p.d(),A(i),g&&g.d(),h&&h.d(),f=!1,c()}}}function Rue(r){let e,t=[],n=new Map,i,l=r[0]||[];const s=o=>o[18]._id;for(let o=0;o<l.length;o+=1){let a=N6(r,l,o),u=s(a);n.set(u,t[o]=j6(u,a))}return{c(){e=D("ul");for(let o=0;o<t.length;o+=1)t[o].c();y(e,"class","svelte-1wboluz")},m(o,a){$(o,e,a);for(let u=0;u<t.length;u+=1)t[u].m(e,null);i=!0},p(o,[a]){a&65535&&(l=o[0]||[],x(),t=rr(t,a,s,1,o,l,n,e,Ur,j6,null,N6),ee())},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 Mue(r,e,t){let n,i=Se,l=()=>(i(),i=O_(p,M=>t(6,n=M)),p),s,o;ae(r,qe,M=>t(7,s=M)),ae(r,Oz,M=>t(8,o=M)),r.$$.on_destroy.push(()=>i());let{components:a=[]}=e,{currentComponent:u}=e,{onSelect:f=()=>{}}=e,{level:c=0}=e,{dragDropStore:p}=e;l();let d={};const g=M=>{qe.actions.components.select(M)},h=M=>B=>{B.dataTransfer.dropEffect=I6.MOVE,p.actions.dragstart(M)},v=(M,B)=>j=>{var Y;const U=qe.actions.components.getDefinition(M._component),q=(U==null?void 0:U.hasChildren)&&!((Y=M._children)==null?void 0:Y.length);j.dataTransfer.dropEffect=I6.COPY;const G=j.offsetY/j.currentTarget.offsetHeight;return p.actions.dragover({component:M,index:B,canHaveChildrenButIsEmpty:q,mousePosition:G}),!1},w=M=>{if(M._instanceName)return M._instanceName;const B=M._component.replace("@budibase/standard-components/","")||"component";return Or(B)};function k(M){d[M]?delete d[M]:t(5,d[M]=!0,d),t(5,d)}const I=async()=>{try{await p.actions.drop()}catch{we.error("Error saving component")}},T=(M,B,j)=>{var U;return((U=M==null?void 0:M._children)==null?void 0:U.length)?B.includes(M._id)?!0:!j[M._id]:!1},E=M=>k(M._id),L=M=>g(M);return r.$$set=M=>{"components"in M&&t(0,a=M.components),"currentComponent"in M&&t(1,u=M.currentComponent),"onSelect"in M&&t(2,f=M.onSelect),"level"in M&&t(3,c=M.level),"dragDropStore"in M&&l(t(4,p=M.dragDropStore))},[a,u,f,c,p,d,n,s,o,g,h,v,w,k,I,T,E,L]}class Gm extends se{constructor(e){super();oe(this,e,Mue,Rue,ie,{components:0,currentComponent:1,onSelect:2,level:3,dragDropStore:4})}}function B6(r,e,t){const n=r.slice();return n[6]=e[t],n}function Due(r){let e;return{c(){e=F("Delete all screens")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function jue(r){let e,t;return e=new ln({props:{icon:"Delete",$$slots:{default:[Due]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[2].show)&&r[2].show.apply(this,arguments)}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){r=n;const l={};i&512&&(l.$$scope={dirty:i,ctx:r}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Bue(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-xzl76s")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function z6(r){let e,t=r[6].route+"",n;return{c(){e=D("div"),n=F(t)},m(i,l){$(i,e,l),P(e,n)},p(i,l){l&2&&t!==(t=i[6].route+"")&&Ce(n,t)},d(i){i&&b(e)}}}function zue(r){let e,t,n,i,l,s,o,a,u,f=r[1],c=[];for(let p=0;p<f.length;p+=1)c[p]=z6(B6(r,f,p));return{c(){e=D("div"),t=F("Are you sure you want to delete all screens under the "),n=D("b"),i=F(r[0]),l=F(" route?"),s=R(),o=D("div"),o.textContent="The following screens will be deleted:",a=R(),u=D("div");for(let p=0;p<c.length;p+=1)c[p].c();y(u,"class","to-delete svelte-xzl76s")},m(p,d){$(p,e,d),P(e,t),P(e,n),P(n,i),P(e,l),$(p,s,d),$(p,o,d),$(p,a,d),$(p,u,d);for(let g=0;g<c.length;g+=1)c[g].m(u,null)},p(p,d){if(d&1&&Ce(i,p[0]),d&2){f=p[1];let g;for(g=0;g<f.length;g+=1){const h=B6(p,f,g);c[g]?c[g].p(h,d):(c[g]=z6(h),c[g].c(),c[g].m(u,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=f.length}},d(p){p&&b(e),p&&b(s),p&&b(o),p&&b(a),p&&b(u),mt(c,p)}}}function que(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[zue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&515&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Uue(r){let e,t,n,i;e=new kr({props:{$$slots:{control:[Bue],default:[jue]},$$scope:{ctx:r}}});let l={title:"Confirm Deletion",okText:"Delete screens",onOk:r[3],$$slots:{default:[que]},$$scope:{ctx:r}};return n=new cr({props:l}),r[4](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,[o]){const a={};o&516&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&515&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[4](null),A(n,s)}}}function Fue(r,e,t){let n;ae(r,jt,u=>t(5,n=u));let{path:i}=e,{screens:l}=e,s;const o=async()=>{if(!!(l==null?void 0:l.length))try{for(let{id:u}of l){const f=xe(qe).screens.find(c=>c._id===u);!f||await qe.actions.screens.delete(f)}we.success("Screens deleted successfully"),n("../")}catch{we.error("Error deleting screens")}};function a(u){K[u?"unshift":"push"](()=>{s=u,t(2,s)})}return r.$$set=u=>{"path"in u&&t(0,i=u.path),"screens"in u&&t(1,l=u.screens)},[i,l,s,o,a]}class Vue extends se{constructor(e){super();oe(this,e,Fue,Uue,ie,{path:0,screens:1})}}function Hue(r){let e,t,n,i,l,s;function o(u){r[10](u)}let a={label:"Enter a URL for the new screen",error:r[3]};return r[0]!==void 0&&(a.value=r[0]),e=new et({props:a}),K.push(()=>ce(e,"value",o)),e.$on("change",r[7]),{c(){C(e.$$.fragment),n=R(),i=D("div"),l=F(r[5]),y(i,"class","app-server svelte-ygkcrb"),y(i,"title",r[5])},m(u,f){S(e,u,f),$(u,n,f),$(u,i,f),P(i,l),s=!0},p(u,f){const c={};f&8&&(c.error=u[3]),!t&&f&1&&(t=!0,c.value=u[0],pe(()=>t=!1)),e.$set(c),(!s||f&32)&&Ce(l,u[5]),(!s||f&32)&&y(i,"title",u[5])},i(u){s||(m(e.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),s=!1},d(u){A(e,u),u&&b(n),u&&b(i)}}}function Wue(r){let e,t;return e=new Tt({props:{size:"M",title:"Enter details",confirmText:r[2],onConfirm:r[8],onCancel:r[1],cancelText:"Back",disabled:!r[6]||!r[0]||r[3]||!r[4],$$slots:{default:[Hue]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&4&&(l.confirmText=n[2]),i&2&&(l.onCancel=n[1]),i&25&&(l.disabled=!n[6]||!n[0]||n[3]||!n[4]),i&8233&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}const q6="/app";function Gue(r,e,t){let n,i;ae(r,Si,v=>t(11,i=v));let{onConfirm:l}=e,{onCancel:s}=e,{screenUrl:o}=e,{confirmText:a="Continue"}=e,u,f=!1,c=i+"";const p=v=>{v.detail.startsWith("/")||t(0,o="/"+v.detail),t(4,f=!0),t(0,o=Ms(o)),d(o)?t(3,u="This URL is already taken for this access role"):t(3,u=null)},d=v=>{const w=xe(Si)||"BASIC";return xe(Il).some(k=>k.routing.route.toLowerCase()===v.toLowerCase()&&k.routing.roleId===w)},g=async()=>{await l({screenUrl:o})};function h(v){o=v,t(0,o)}return r.$$set=v=>{"onConfirm"in v&&t(9,l=v.onConfirm),"onCancel"in v&&t(1,s=v.onCancel),"screenUrl"in v&&t(0,o=v.screenUrl),"confirmText"in v&&t(2,a=v.confirmText)},r.$$.update=()=>{r.$$.dirty&1&&t(5,n=o?`${window.location.origin}${q6}${o}`:`${window.location.origin}${q6}`)},[o,s,a,u,f,n,c,p,g,l,h]}class U6 extends se{constructor(e){super();oe(this,e,Gue,Wue,ie,{onConfirm:9,onCancel:1,screenUrl:0,confirmText:2})}}function Yue(r){let e;return{c(){e=F("Duplicate")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Jue(r){let e;return{c(){e=F("Paste inside")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xue(r){let e;return{c(){e=F("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Que(r){let e,t,n,i,l,s;return e=new ln({props:{icon:"Duplicate",$$slots:{default:[Yue]},$$scope:{ctx:r}}}),e.$on("click",r[4]),n=new ln({props:{icon:"ShowOneLayer",disabled:!r[3].componentToPaste,$$slots:{default:[Jue]},$$scope:{ctx:r}}}),n.$on("click",r[10]),l=new ln({props:{icon:"Delete",$$slots:{default:[Xue]},$$scope:{ctx:r}}}),l.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(n,o,a),$(o,i,a),S(l,o,a),s=!0},p(o,a){r=o;const u={};a&16384&&(u.$$scope={dirty:a,ctx:r}),e.$set(u);const f={};a&8&&(f.disabled=!r[3].componentToPaste),a&16384&&(f.$$scope={dirty:a,ctx:r}),n.$set(f);const c={};a&16384&&(c.$$scope={dirty:a,ctx:r}),l.$set(c)},i(o){s||(m(e.$$.fragment,o),m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){A(e,o),o&&b(t),A(n,o),o&&b(i),A(l,o)}}}function Kue(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function Zue(r){var n,i;let e,t;return e=new U6({props:{onConfirm:r[5],screenName:(n=r[0])==null?void 0:n.props._instanceName,screenUrl:(i=r[0])==null?void 0:i.routing.route,confirmText:"Duplicate"}}),{c(){C(e.$$.fragment)},m(l,s){S(e,l,s),t=!0},p(l,s){var a,u;const o={};s&1&&(o.screenName=(a=l[0])==null?void 0:a.props._instanceName),s&1&&(o.screenUrl=(u=l[0])==null?void 0:u.routing.route),e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){_(e.$$.fragment,l),t=!1},d(l){A(e,l)}}}function xue(r){let e,t,n,i,l,s;e=new kr({props:{$$slots:{control:[Kue],default:[Que]},$$scope:{ctx:r}}});let o={title:"Confirm Deletion",body:"Are you sure you wish to delete this screen?",okText:"Delete screen",onOk:r[6]};n=new cr({props:o}),r[11](n);let a={$$slots:{default:[Zue]},$$scope:{ctx:r}};return l=new kt({props:a}),r[12](l),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(u,f){S(e,u,f),$(u,t,f),S(n,u,f),$(u,i,f),S(l,u,f),s=!0},p(u,[f]){const c={};f&16394&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};n.$set(p);const d={};f&16385&&(d.$$scope={dirty:f,ctx:u}),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){A(e,u),u&&b(t),r[11](null),A(n,u),u&&b(i),r[12](null),A(l,u)}}}function efe(r,e,t){let n,i,l,s;ae(r,jt,w=>t(13,i=w)),ae(r,Il,w=>t(9,l=w)),ae(r,qe,w=>t(3,s=w));let{screenId:o}=e,a,u;const f=()=>{u.show()},c=async({screenName:w,screenUrl:k})=>{let I=Tp(n);delete I._id,delete I._rev,wm(I.props),I.routing.route=Ms(k),I.props._instanceName=w;try{await qe.actions.screens.save(I)}catch(T){we.error("Error duplicating screen"),console.log(T)}},p=async()=>{try{await qe.actions.screens.delete(n),i("../"),we.success("Deleted screen successfully.")}catch{we.error("Error deleting screen")}},d=w=>{try{qe.actions.components.paste(n==null?void 0:n.props,w)}catch{we.error("Error saving component")}},g=()=>d("inside");function h(w){K[w?"unshift":"push"](()=>{a=w,t(1,a)})}function v(w){K[w?"unshift":"push"](()=>{u=w,t(2,u)})}return r.$$set=w=>{"screenId"in w&&t(8,o=w.screenId)},r.$$.update=()=>{r.$$.dirty&768&&t(0,n=l.find(w=>w._id===o))},[n,a,u,s,f,c,p,d,o,l,g,h,v]}class tfe extends se{constructor(e){super();oe(this,e,efe,xue,ie,{screenId:8})}}function F6(r,e,t){const n=r.slice();return n[23]=e[t],n}function V6(r){let e,t,n,i;e=new Nl({props:{icon:"FolderOutline",text:r[1],opened:r[7],border:r[3],withArrow:r[0].subpaths,$$slots:{default:[nfe]},$$scope:{ctx:r}}}),e.$on("click",r[14]);let l=r[7]&&H6(r);return{c(){C(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},m(s,o){S(e,s,o),$(s,t,o),l&&l.m(s,o),$(s,n,o),i=!0},p(s,o){const a={};o&2&&(a.text=s[1]),o&128&&(a.opened=s[7]),o&8&&(a.border=s[3]),o&1&&(a.withArrow=s[0].subpaths),o&67108930&&(a.$$scope={dirty:o,ctx:s}),e.$set(a),s[7]?l?(l.p(s,o),o&128&&m(l,1)):(l=H6(s),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(x(),_(l,1,1,()=>{l=null}),ee())},i(s){i||(m(e.$$.fragment,s),m(l),i=!0)},o(s){_(e.$$.fragment,s),_(l),i=!1},d(s){A(e,s),s&&b(t),l&&l.d(s),s&&b(n)}}}function nfe(r){let e,t;return e=new Vue({props:{screens:r[6],path:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&64&&(l.screens=n[6]),i&2&&(l.path=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function H6(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=F6(r,l,o),u=s(a);t.set(u,e[o]=G6(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&15925&&(l=o[5],x(),e=rr(e,a,s,1,o,l,t,n.parentNode,Ur,G6,n,F6),ee())},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 rfe(r){let e,t;return e=new tfe({props:{screenId:r[23].id}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function W6(r){let e,t;return e=new Gm({props:{level:1,components:r[4].props._children,currentComponent:r[10],dragDropStore:r[12]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&16&&(l.components=n[4].props._children),i&1024&&(l.currentComponent=n[10]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function G6(r,e){var u,f;let t,n,i,l,s;function o(){return e[20](e[23])}n=new Nl({props:{icon:"WebPage",indentLevel:e[2]||1,selected:e[9].selectedScreenId===e[23].id&&e[9].currentView==="detail",opened:e[9].selectedScreenId===e[23].id,text:((u=e[11][e[23].route])==null?void 0:u[e[23].role])||e[23].route,withArrow:e[0].subpaths,$$slots:{default:[rfe]},$$scope:{ctx:e}}}),n.$on("click",o);let a=((f=e[4])==null?void 0:f._id)===e[23].id&&W6(e);return{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),i=R(),a&&a.c(),l=Oe(),this.first=t},m(c,p){$(c,t,p),S(n,c,p),$(c,i,p),a&&a.m(c,p),$(c,l,p),s=!0},p(c,p){var g,h;e=c;const d={};p&4&&(d.indentLevel=e[2]||1),p&544&&(d.selected=e[9].selectedScreenId===e[23].id&&e[9].currentView==="detail"),p&544&&(d.opened=e[9].selectedScreenId===e[23].id),p&32&&(d.text=((g=e[11][e[23].route])==null?void 0:g[e[23].role])||e[23].route),p&1&&(d.withArrow=e[0].subpaths),p&67108896&&(d.$$scope={dirty:p,ctx:e}),n.$set(d),((h=e[4])==null?void 0:h._id)===e[23].id?a?(a.p(e,p),p&48&&m(a,1)):(a=W6(e),a.c(),m(a,1),a.m(l.parentNode,l)):a&&(x(),_(a,1,1,()=>{a=null}),ee())},i(c){s||(m(n.$$.fragment,c),m(a),s=!0)},o(c){_(n.$$.fragment,c),_(a),s=!1},d(c){c&&b(t),A(n,c),c&&b(i),a&&a.d(c),c&&b(l)}}}function ife(r){let e,t,n=!r[8]&&V6(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[8]?n&&(x(),_(n,1,1,()=>{n=null}),ee()):n?(n.p(i,l),l&256&&m(n,1)):(n=V6(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 lfe(r,e,t){let n,i,l,s,o,a,u,f,c,p,d;ae(r,sc,U=>t(18,f=U)),ae(r,nn,U=>t(19,c=U)),ae(r,qe,U=>t(9,p=U)),ae(r,ai,U=>t(10,d=U));const g={"/":{BASIC:"Home",PUBLIC:"Home",ADMIN:"Home",POWER:"Home"}},h=L6();let{route:v}=e,{path:w}=e,{indent:k}=e,{border:I}=e,T=!1;const E=U=>{qe.actions.screens.select(U)},L=U=>{let q=[];return Object.entries(U.subpaths).forEach(([G,Y])=>{Object.entries(Y.screens).forEach(([W,H])=>{q.push({id:H,route:G,role:W})})}),q},M=(U,q)=>U.filter(G=>!q||G.route.includes(q)),B=()=>{xe(sc)||t(15,T=!T)},j=U=>E(U.id);return r.$$set=U=>{"route"in U&&t(0,v=U.route),"path"in U&&t(1,w=U.path),"indent"in U&&t(2,k=U.indent),"border"in U&&t(3,I=U.border)},r.$$.update=()=>{var U;r.$$.dirty&524288&&t(4,n=c),r.$$.dirty&1&&t(6,i=L(v)),r.$$.dirty&262208&&t(5,l=M(i,f)),r.$$.dirty&262176&&t(16,s=f&&l.length>0),r.$$.dirty&262176&&t(8,o=f&&!l.length),r.$$.dirty&17&&t(17,a=v.subpaths[(U=n==null?void 0:n.routing)==null?void 0:U.route]!==void 0),r.$$.dirty&229376&&t(7,u=T||a||s)},[v,w,k,I,n,l,i,u,o,p,d,g,h,E,B,T,s,a,f,c,j]}class sfe extends se{constructor(e){super();oe(this,e,lfe,ife,ie,{route:0,path:1,indent:2,border:3})}}function Y6(r,e,t){const n=r.slice();return n[7]=e[t],n[9]=t,n}function J6(r,e){let t,n,i;return n=new sfe({props:{border:e[9]>0,path:e[7],route:e[0][e[7]]}}),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),S(n,l,s),i=!0},p(l,s){e=l;const o={};s&2&&(o.border=e[9]>0),s&2&&(o.path=e[7]),s&3&&(o.route=e[0][e[7]]),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(t),A(n,l)}}}function X6(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-1xoqjkm")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ofe(r){let e,t=[],n=new Map,i,l,s=r[1];const o=u=>u[7];for(let u=0;u<s.length;u+=1){let f=Y6(r,s,u),c=o(f);n.set(c,t[u]=J6(c,f))}let a=!r[1].length&&X6();return{c(){var u;e=D("div");for(let f=0;f<t.length;f+=1)t[f].c();i=R(),a&&a.c(),y(e,"class","root svelte-1xoqjkm"),le(e,"has-screens",!!((u=r[1])==null?void 0:u.length))},m(u,f){$(u,e,f);for(let c=0;c<t.length;c+=1)t[c].m(e,null);P(e,i),a&&a.m(e,null),l=!0},p(u,[f]){var c;f&3&&(s=u[1],x(),t=rr(t,f,o,1,u,s,n,e,Ur,J6,i,Y6),ee()),u[1].length?a&&(a.d(1),a=null):a||(a=X6(),a.c(),a.m(e,null)),f&2&&le(e,"has-screens",!!((c=u[1])==null?void 0:c.length))},i(u){if(!l){for(let f=0;f<s.length;f+=1)m(t[f]);l=!0}},o(u){for(let f=0;f<t.length;f+=1)_(t[f]);l=!1},d(u){u&&b(e);for(let f=0;f<t.length;f+=1)t[f].d();a&&a.d()}}}function afe(r,e,t){let n,i,l,s;ae(r,Si,f=>t(4,l=f)),ae(r,qe,f=>t(5,s=f));let o={},a=[];const u=(f,c,p)=>{const d=Object.keys(f||{}).sort();let g=!1,h,v={},w;d.forEach(k=>{const I=f[k];Object.entries(I.subpaths).forEach(([T,E])=>{Object.entries(E.screens).forEach(([L,M])=>{M===p&&(w=L,g=L===c),L===c&&(h||(h=M),v[k]||(v[k]={subpaths:{}}),v[k].subpaths[T]={screens:{[c]:M}})})})}),t(0,o=Ae({},v)),t(1,a=Object.keys(o||{}).sort()),!g&&w?(Si.set(w),w!==c&&u(f,w,p)):!g&&h&&qe.actions.screens.select(h)};return r.$$.update=()=>{r.$$.dirty&32&&t(3,n=s.routes),r.$$.dirty&32&&t(2,i=s.selectedScreenId),r.$$.dirty&28&&u(n,l,i)},[o,a,i,n,l,s]}class ufe extends se{constructor(e){super();oe(this,e,afe,ofe,ie,{})}}function ffe(r){let e;return{c(){e=F("Edit")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function cfe(r){let e;return{c(){e=F("Delete")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function pfe(r){let e,t,n,i;return e=new ln({props:{icon:"Edit",$$slots:{default:[ffe]},$$scope:{ctx:r}}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)}),n=new ln({props:{icon:"Delete",$$slots:{default:[cfe]},$$scope:{ctx:r}}}),n.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(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){A(e,l),l&&b(t),A(n,l)}}}function dfe(r){let e,t,n;return t=new at({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","control"),y(e,"class","icon svelte-u6s22l")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p:Se,i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function mfe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function gfe(r){let e,t;return e=new Tt({props:{title:"Edit Layout Name",confirmText:"Save",onConfirm:r[4],disabled:!r[2],$$slots:{default:[mfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function _fe(r){let e,t,n,i,l,s;e=new kr({props:{$$slots:{control:[dfe],default:[pfe]},$$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:[gfe]},$$scope:{ctx:r}};return l=new kt({props:a}),r[8](l),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(u,f){S(e,u,f),$(u,t,f),S(n,u,f),$(u,i,f),S(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){A(e,u),u&&b(t),r[6](null),A(n,u),u&&b(i),r[8](null),A(l,u)}}}function hfe(r,e,t){let{layout:n}=e,i,l,s=n.name;const o=async()=>{try{await qe.actions.layouts.delete(n),we.success("Layout deleted successfully")}catch{we.error("Error deleting layout")}},a=async()=>{try{const p=Sn.cloneDeep(n);p.name=s,await qe.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 $fe extends se{constructor(e){super();oe(this,e,hfe,_fe,ie,{layout:5})}}function bfe(r){let e,t;return e=new $fe({props:{layout:r[0]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Q6(r){let e,t;return e=new Gm({props:{components:r[0].props._children,currentComponent:r[3],dragDropStore:r[4]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function vfe(r){var s;let e,t,n,i;e=new Nl({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:[bfe]},$$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)&&Q6(r);return{c(){C(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},m(o,a){S(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=Q6(o),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(x(),_(l,1,1,()=>{l=null}),ee())},i(o){i||(m(e.$$.fragment,o),m(l),i=!0)},o(o){_(e.$$.fragment,o),_(l),i=!1},d(o){A(e,o),o&&b(t),l&&l.d(o),o&&b(n)}}}function wfe(r,e,t){let n,i;ae(r,qe,u=>t(2,n=u)),ae(r,ai,u=>t(3,i=u));let{layout:l}=e,{border:s}=e;const o=L6(),a=()=>{qe.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 yfe extends se{constructor(e){super();oe(this,e,wfe,vfe,ie,{layout:0,border:1})}}function kfe(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(){C(e.$$.fragment)},m(s,o){S(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){A(e,s)}}}function Cfe(r){let e,t;return e=new Tt({props:{title:"Create Layout",confirmText:"Create",onConfirm:r[1],$$slots:{default:[kfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Sfe(r,e,t){let n="";async function i(){try{await qe.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 Afe extends se{constructor(e){super();oe(this,e,Sfe,Cfe,ie,{})}}function K6(r,e,t){const n=r.slice();return n[19]=e[t],n[21]=t,n}function Ofe(r){let e,t,n,i,l;e=new Ye({props:{value:r[4],label:"Filter by Access",getOptionLabel:Nfe,getOptionValue:Rfe,options:r[5]}}),e.$on("change",r[9]);function s(a){r[11](a)}let o={placeholder:"Enter a route to search",label:"Search Screens"};return r[6]!==void 0&&(o.value=r[6]),n=new Kf({props:o}),K.push(()=>ce(n,"value",s)),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(a,u){S(e,a,u),$(a,t,u),S(n,a,u),l=!0},p(a,u){const f={};u&16&&(f.value=a[4]),u&32&&(f.options=a[5]),e.$set(f);const c={};!i&&u&64&&(i=!0,c.value=a[6],pe(()=>i=!1)),n.$set(c)},i(a){l||(m(e.$$.fragment,a),m(n.$$.fragment,a),l=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),l=!1},d(a){A(e,a),a&&b(t),A(n,a)}}}function Efe(r){let e,t,n,i,l,s;return t=new ze({props:{noPadding:!0,gap:"XS",$$slots:{default:[Ofe]},$$scope:{ctx:r}}}),l=new ufe({}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","nav-items-container svelte-1laltek"),y(e,"class","tab-content-padding svelte-1laltek")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(l,i,null),r[12](i),s=!0},p(o,a){const u={};a&4194416&&(u.$$scope={dirty:a,ctx:o}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),A(t),A(l),r[12](null)}}}function Z6(r,e){let t,n,i;return n=new yfe({props:{layout:e[19],border:e[21]>0}}),{key:r,first:null,c(){t=Oe(),C(n.$$.fragment),this.first=t},m(l,s){$(l,t,s),S(n,l,s),i=!0},p(l,s){e=l;const o={};s&128&&(o.layout=e[19]),s&128&&(o.border=e[21]>0),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(t),A(n,l)}}}function Tfe(r){let e,t;return e=new Afe({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ife(r){let e,t,n,i=[],l=new Map,s,o,a,u=r[7].layouts;const f=p=>p[19]._id;for(let p=0;p<u.length;p+=1){let d=K6(r,u,p),g=f(d);l.set(g,i[p]=Z6(g,d))}let c={$$slots:{default:[Tfe]},$$scope:{ctx:r}};return o=new kt({props:c}),r[14](o),{c(){e=D("div"),t=D("div"),n=D("div");for(let p=0;p<i.length;p+=1)i[p].c();s=R(),C(o.$$.fragment),y(n,"class","layouts-container svelte-1laltek"),y(t,"class","nav-items-container nav-items-container--layouts svelte-1laltek"),y(e,"class","tab-content-padding svelte-1laltek")},m(p,d){$(p,e,d),P(e,t),P(t,n);for(let g=0;g<i.length;g+=1)i[g].m(n,null);r[13](t),P(e,s),S(o,e,null),a=!0},p(p,d){d&128&&(u=p[7].layouts,x(),i=rr(i,d,f,1,p,u,l,n,Ur,Z6,null,K6),ee());const g={};d&4194304&&(g.$$scope={dirty:d,ctx:p}),o.$set(g)},i(p){if(!a){for(let d=0;d<u.length;d+=1)m(i[d]);m(o.$$.fragment,p),a=!0}},o(p){for(let d=0;d<i.length;d+=1)_(i[d]);_(o.$$.fragment,p),a=!1},d(p){p&&b(e);for(let d=0;d<i.length;d+=1)i[d].d();r[13](null),r[14](null),A(o)}}}function Lfe(r){let e,t,n,i;return e=new _n({props:{title:"Screens",$$slots:{default:[Efe]},$$scope:{ctx:r}}}),n=new _n({props:{title:"Layouts",$$slots:{default:[Ife]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(n,l,s),i=!0},p(l,s){const o={};s&4194418&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&4194438&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){A(e,l),l&&b(t),A(n,l)}}}function Pfe(r){let e,t,n,i,l,s;return t=new Sr({props:{selected:r[3],$$slots:{default:[Lfe]},$$scope:{ctx:r}}}),t.$on("select",r[8]),l=new at({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ft(r[3]==="Layouts"?r[2].show():r[0]())&&(r[3]==="Layouts"?r[2].show():r[0]()).apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","add-button svelte-1laltek"),y(e,"class","title svelte-1laltek")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(l,i,null),s=!0},p(o,[a]){r=o;const u={};a&8&&(u.selected=r[3]),a&4194550&&(u.$$scope={dirty:a,ctx:r}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),A(t),A(l)}}}const Nfe=r=>r.name,Rfe=r=>r._id;function Mfe(r,e,t){let n,i,l,s,o,a,u,f;ae(r,Il,L=>t(15,i=L)),ae(r,jt,L=>t(16,l=L)),ae(r,ir,L=>t(10,s=L)),ae(r,Si,L=>t(4,o=L)),ae(r,ki,L=>t(5,a=L)),ae(r,sc,L=>t(6,u=L)),ae(r,qe,L=>t(7,f=L));let{showModal:c}=e,p;Qo("scroll",{scrollTo:L=>{if(!L)return;const M=259,B=32,{scrollLeft:j,scrollTop:U,offsetHeight:q}=p;let G=p.getBoundingClientRect(),Y={};const W=L.left+L.width+j+20;W>M?Y.left=W-M:Y.left=0,Y.left===j&&delete Y.left;const H=L.top-(G==null?void 0:G.top)+U;H>U+q-2*B?Y.top=H-q+2*B:H<U+B?Y.top=H-B:delete Y.top,!(Y.left==null&&Y.top==null)&&p.scroll(it(Ae({},Y),{behavior:"smooth"}))}});const g=[{title:"Screens",key:"screen"},{title:"Layouts",key:"layout"}];let h;const v=({detail:L})=>{const{key:M}=g.find(B=>B.title===L);l(`../${M}`)},w=L=>{var j;const M=L.detail,B=(j=i.find(U=>U.routing.roleId===M))==null?void 0:j._id;B?qe.actions.screens.select(B):qe.update(U=>(U.selectedScreenId=null,U)),Si.set(M)};Pt(async()=>{try{await qe.actions.routing.fetch()}catch{we.error("Error fetching routes")}});function k(L){u=L,sc.set(u)}function I(L){K[L?"unshift":"push"](()=>{p=L,t(1,p)})}function T(L){K[L?"unshift":"push"](()=>{p=L,t(1,p)})}function E(L){K[L?"unshift":"push"](()=>{h=L,t(2,h)})}return r.$$set=L=>{"showModal"in L&&t(0,c=L.showModal)},r.$$.update=()=>{var L;r.$$.dirty&1024&&t(3,n=((L=g.find(M=>M.key===s.assetType))==null?void 0:L.title)||"Screens")},[c,p,h,n,o,a,u,f,v,w,s,k,I,T,E]}class Dfe extends se{constructor(e){super();oe(this,e,Mfe,Pfe,ie,{showModal:0})}}function jfe(r){let e,t,n;return t=new Ye({props:{value:r[0].theme,options:r[1],placeholder:null}}),t.$on("change",r[3]),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","svelte-12k7lrs")},m(i,l){$(i,e,l),S(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),A(t)}}}function Bfe(r,e,t){let n;ae(r,qe,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 qe.actions.theme.save(o),await qe.actions.customTheme.save(it(Ae({},xe(qe).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 x6 extends se{constructor(e){super();oe(this,e,Bfe,jfe,ie,{})}}function zfe(r){let e;return{c(){e=F("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qfe(r){let e;return{c(){e=F("Theme")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ufe(r){let e;return{c(){e=F("Button roundness")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Ffe(r){let e;return{c(){e=F("Accent color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Vfe(r){let e;return{c(){e=F("Accent color (hover)")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Hfe(r){let e;return{c(){e=F("Navigation bar background color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Wfe(r){let e;return{c(){e=F("Navigation bar text color")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Gfe(r){var V,J,fe,re,Q;let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,E,L,M,B,j,U,q,G,Y,W,H;return t=new Je({props:{size:"L",$$slots:{default:[qfe]},$$scope:{ctx:r}}}),i=new x6({}),o=new Je({props:{size:"L",$$slots:{default:[Ufe]},$$scope:{ctx:r}}}),f=new Ye({props:{placeholder:null,value:((V=r[1].customTheme)==null?void 0:V.buttonBorderRadius)||r[2].buttonBorderRadius,options:r[3]}}),f.$on("change",r[4]("buttonBorderRadius")),d=new Je({props:{size:"L",$$slots:{default:[Ffe]},$$scope:{ctx:r}}}),h=new xl({props:{spectrumTheme:r[1].theme,value:((J=r[1].customTheme)==null?void 0:J.primaryColor)||r[2].primaryColor}}),h.$on("change",r[4]("primaryColor")),k=new Je({props:{size:"L",$$slots:{default:[Vfe]},$$scope:{ctx:r}}}),T=new xl({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 Je({props:{size:"L",$$slots:{default:[Hfe]},$$scope:{ctx:r}}}),j=new xl({props:{spectrumTheme:r[1].theme,value:((re=r[1].customTheme)==null?void 0:re.navBackground)||r[2].navBackground}}),j.$on("change",r[4]("navBackground")),G=new Je({props:{size:"L",$$slots:{default:[Wfe]},$$scope:{ctx:r}}}),W=new xl({props:{spectrumTheme:r[1].theme,value:((Q=r[1].customTheme)==null?void 0:Q.navTextColor)||r[2].navTextColor}}),W.$on("change",r[4]("navTextColor")),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),l=R(),s=D("div"),C(o.$$.fragment),a=R(),u=D("div"),C(f.$$.fragment),c=R(),p=D("div"),C(d.$$.fragment),g=R(),C(h.$$.fragment),v=R(),w=D("div"),C(k.$$.fragment),I=R(),C(T.$$.fragment),E=R(),L=D("div"),C(M.$$.fragment),B=R(),C(j.$$.fragment),U=R(),q=D("div"),C(G.$$.fragment),Y=R(),C(W.$$.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(w,"class","setting svelte-16s1p8l"),y(L,"class","setting svelte-16s1p8l"),y(q,"class","setting svelte-16s1p8l")},m(te,_e){$(te,e,_e),S(t,e,null),P(e,n),S(i,e,null),$(te,l,_e),$(te,s,_e),S(o,s,null),P(s,a),P(s,u),S(f,u,null),$(te,c,_e),$(te,p,_e),S(d,p,null),P(p,g),S(h,p,null),$(te,v,_e),$(te,w,_e),S(k,w,null),P(w,I),S(T,w,null),$(te,E,_e),$(te,L,_e),S(M,L,null),P(L,B),S(j,L,null),$(te,U,_e),$(te,q,_e),S(G,q,null),P(q,Y),S(W,q,null),H=!0},p(te,_e){var ke,Ke,Nt,zt,qt;const Re={};_e&128&&(Re.$$scope={dirty:_e,ctx:te}),t.$set(Re);const be={};_e&128&&(be.$$scope={dirty:_e,ctx:te}),o.$set(be);const he={};_e&2&&(he.value=((ke=te[1].customTheme)==null?void 0:ke.buttonBorderRadius)||te[2].buttonBorderRadius),f.$set(he);const ve={};_e&128&&(ve.$$scope={dirty:_e,ctx:te}),d.$set(ve);const Ie={};_e&2&&(Ie.spectrumTheme=te[1].theme),_e&2&&(Ie.value=((Ke=te[1].customTheme)==null?void 0:Ke.primaryColor)||te[2].primaryColor),h.$set(Ie);const Be={};_e&128&&(Be.$$scope={dirty:_e,ctx:te}),k.$set(Be);const ue={};_e&2&&(ue.spectrumTheme=te[1].theme),_e&2&&(ue.value=((Nt=te[1].customTheme)==null?void 0:Nt.primaryColorHover)||te[2].primaryColorHover),T.$set(ue);const Ve={};_e&128&&(Ve.$$scope={dirty:_e,ctx:te}),M.$set(Ve);const de={};_e&2&&(de.spectrumTheme=te[1].theme),_e&2&&(de.value=((zt=te[1].customTheme)==null?void 0:zt.navBackground)||te[2].navBackground),j.$set(de);const $e={};_e&128&&($e.$$scope={dirty:_e,ctx:te}),G.$set($e);const Ee={};_e&2&&(Ee.spectrumTheme=te[1].theme),_e&2&&(Ee.value=((qt=te[1].customTheme)==null?void 0:qt.navTextColor)||te[2].navTextColor),W.$set(Ee)},i(te){H||(m(t.$$.fragment,te),m(i.$$.fragment,te),m(o.$$.fragment,te),m(f.$$.fragment,te),m(d.$$.fragment,te),m(h.$$.fragment,te),m(k.$$.fragment,te),m(T.$$.fragment,te),m(M.$$.fragment,te),m(j.$$.fragment,te),m(G.$$.fragment,te),m(W.$$.fragment,te),H=!0)},o(te){_(t.$$.fragment,te),_(i.$$.fragment,te),_(o.$$.fragment,te),_(f.$$.fragment,te),_(d.$$.fragment,te),_(h.$$.fragment,te),_(k.$$.fragment,te),_(T.$$.fragment,te),_(M.$$.fragment,te),_(j.$$.fragment,te),_(G.$$.fragment,te),_(W.$$.fragment,te),H=!1},d(te){te&&b(e),A(t),A(i),te&&b(l),te&&b(s),A(o),A(f),te&&b(c),te&&b(p),A(d),A(h),te&&b(v),te&&b(w),A(k),A(T),te&&b(E),te&&b(L),A(M),A(j),te&&b(U),te&&b(q),A(G),A(W)}}}function Yfe(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[Gfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Jfe(r){let e;return{c(){e=F("Reset")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Xfe(r){let e,t,n;return t=new lt({props:{secondary:!0,quiet:!0,$$slots:{default:[Jfe]},$$scope:{ctx:r}}}),t.$on("click",r[5]),{c(){e=D("div"),C(t.$$.fragment),y(e,"slot","footer")},m(i,l){$(i,e,l),S(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),A(t)}}}function Qfe(r){let e,t;return e=new Tt({props:{showConfirmButton:!1,cancelText:"View changes",showCloseIcon:!1,title:"Theme settings",$$slots:{footer:[Xfe],default:[Yfe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function Kfe(r){let e,t,n,i,l;t=new Ut({props:{icon:"Brush",$$slots:{default:[zfe]},$$scope:{ctx:r}}}),t.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)});let s={$$slots:{default:[Qfe]},$$scope:{ctx:r}};return i=new kt({props:s}),r[6](i),{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),y(e,"class","container svelte-16s1p8l")},m(o,a){$(o,e,a),S(t,e,null),$(o,n,a),S(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),A(t),o&&b(n),r[6](null),A(i,o)}}}function Zfe(r,e,t){let n;ae(r,qe,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{qe.actions.customTheme.save(it(Ae({},xe(qe).customTheme),{[f]:c.detail}))}catch{we.error("Error updating custom theme")}},a=()=>{try{const f=xe(qe).theme;qe.actions.customTheme.save(it(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 xfe extends se{constructor(e){super();oe(this,e,Zfe,Kfe,ie,{})}}function ece(r){let e,t,n,i,l,s;return e=new Ut({props:{icon:"DeviceDesktop",selected:r[0].previewDevice==="desktop"}}),e.$on("click",r[1]),n=new Ut({props:{icon:"DeviceTablet",selected:r[0].previewDevice==="tablet"}}),n.$on("click",r[2]),l=new Ut({props:{icon:"DevicePhone",selected:r[0].previewDevice==="mobile"}}),l.$on("click",r[3]),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(o,a){S(e,o,a),$(o,t,a),S(n,o,a),$(o,i,a),S(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){A(e,o),o&&b(t),A(n,o),o&&b(i),A(l,o)}}}function tce(r){let e,t;return e=new Lp({props:{compact:!0,$$slots:{default:[ece]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function nce(r,e,t){let n;return ae(r,qe,o=>t(0,n=o)),[n,()=>qe.actions.preview.setDevice("desktop"),()=>qe.actions.preview.setDevice("tablet"),()=>qe.actions.preview.setDevice("mobile")]}class rce extends se{constructor(e){super();oe(this,e,nce,tce,ie,{})}}var e8="/builder/assets/bb-space-man.5be51a45.svg";function ice(r){let e;return{c(){e=F("Blank screen")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function lce(r){let e;return{c(){e=F("Add a blank screen")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function t8(r){let e,t,n;return t=new at({props:{size:"S",name:"CheckmarkCircle"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","checkmark-spacing svelte-sdfa50")},m(i,l){$(i,e,l),S(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),A(t)}}}function sce(r){let e;return{c(){e=F("Autogenerated screens")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function oce(r){let e;return{c(){e=F(`Add autogenerated screens with CRUD functionality to get a working
|
|
899
899
|
app quickly! (Requires a data source)`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function n8(r){let e,t,n;return t=new at({props:{size:"S",name:"CheckmarkCircle"}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","checkmark-spacing svelte-sdfa50")},m(i,l){$(i,e,l),S(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),A(t)}}}function ace(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w,k,I,T,E,L,M,B;n=new at({props:{name:"WebPage"}}),s=new ct({props:{size:"XS",$$slots:{default:[ice]},$$scope:{ctx:r}}}),a=new Ue({props:{size:"S",$$slots:{default:[lce]},$$scope:{ctx:r}}});let j=r[1]==Ya&&t8();g=new at({props:{name:"WebPages"}}),w=new ct({props:{size:"XS",$$slots:{default:[sce]},$$scope:{ctx:r}}}),I=new Ue({props:{size:"S",$$slots:{default:[oce]},$$scope:{ctx:r}}});let U=r[1]==Ga&&n8();return{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),C(s.$$.fragment),o=R(),C(a.$$.fragment),u=R(),f=D("div"),j&&j.c(),c=R(),p=D("div"),d=D("div"),C(g.$$.fragment),h=R(),v=D("div"),C(w.$$.fragment),k=R(),C(I.$$.fragment),T=R(),E=D("div"),U&&U.c(),y(l,"class","screen-type-text svelte-sdfa50"),y(t,"data-cy","blank-screen"),y(t,"class","content screen-type-wrap svelte-sdfa50"),ht(f,"color","var(--spectrum-global-color-green-600)"),ht(f,"float","right"),y(e,"class","screen-type item svelte-sdfa50"),le(e,"selected",r[1]==Ya),y(v,"class","screen-type-text svelte-sdfa50"),y(d,"data-cy","autogenerated-screens"),y(d,"class","content screen-type-wrap svelte-sdfa50"),ht(E,"color","var(--spectrum-global-color-green-600)"),ht(E,"float","right"),y(p,"class","screen-type item svelte-sdfa50"),le(p,"selected",r[1]==Ga),le(p,"disabled",!r[2].list.filter(r8).length)},m(q,G){$(q,e,G),P(e,t),S(n,t,null),P(t,i),P(t,l),S(s,l,null),P(l,o),S(a,l,null),P(e,u),P(e,f),j&&j.m(f,null),$(q,c,G),$(q,p,G),P(p,d),S(g,d,null),P(d,h),P(d,v),S(w,v,null),P(v,k),S(I,v,null),P(p,T),P(p,E),U&&U.m(E,null),L=!0,M||(B=[Le(e,"click",r[5]),Le(p,"click",r[6])],M=!0)},p(q,G){const Y={};G&128&&(Y.$$scope={dirty:G,ctx:q}),s.$set(Y);const W={};G&128&&(W.$$scope={dirty:G,ctx:q}),a.$set(W),q[1]==Ya?j?G&2&&m(j,1):(j=t8(),j.c(),m(j,1),j.m(f,null)):j&&(x(),_(j,1,1,()=>{j=null}),ee()),G&2&&le(e,"selected",q[1]==Ya);const H={};G&128&&(H.$$scope={dirty:G,ctx:q}),w.$set(H);const V={};G&128&&(V.$$scope={dirty:G,ctx:q}),I.$set(V),q[1]==Ga?U?G&2&&m(U,1):(U=n8(),U.c(),m(U,1),U.m(E,null)):U&&(x(),_(U,1,1,()=>{U=null}),ee()),G&2&&le(p,"selected",q[1]==Ga),G&4&&le(p,"disabled",!q[2].list.filter(r8).length)},i(q){L||(m(n.$$.fragment,q),m(s.$$.fragment,q),m(a.$$.fragment,q),m(j),m(g.$$.fragment,q),m(w.$$.fragment,q),m(I.$$.fragment,q),m(U),L=!0)},o(q){_(n.$$.fragment,q),_(s.$$.fragment,q),_(a.$$.fragment,q),_(j),_(g.$$.fragment,q),_(w.$$.fragment,q),_(I.$$.fragment,q),_(U),L=!1},d(q){q&&b(e),A(n),A(s),A(a),j&&j.d(),q&&b(c),q&&b(p),A(g),A(w),A(I),U&&U.d(),M=!1,Tn(B)}}}function uce(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[ace]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&134&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function fce(r){let e,t,n;return t=new Tt({props:{title:"Add screens",confirmText:"Continue",cancelText:"Cancel",onConfirm:r[3],onCancel:r[0],disabled:!r[1],size:"L",$$slots:{default:[uce]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment)},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.onCancel=i[0]),l&2&&(s.disabled=!i[1]),l&134&&(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),A(t)}}}let Ga="autoCreate",Ya="blankScreen";const r8=r=>r._id!=="ta_users";function cce(r,e,t){let n;ae(r,Ot,f=>t(2,n=f));let{onConfirm:i}=e,{onCancel:l}=e,s;const o=async()=>{await i(s)},a=()=>{t(1,s=Ya)},u=()=>{t(1,s=Ga)};return r.$$set=f=>{"onConfirm"in f&&t(4,i=f.onConfirm),"onCancel"in f&&t(0,l=f.onCancel)},[l,s,n,o,i,a,u]}class pce extends se{constructor(e){super();oe(this,e,cce,fce,ie,{onConfirm:4,onCancel:0})}}function dce(r){return r.map(e=>({name:`${e.name} - Detail`,create:()=>hce(e),id:mce,table:e._id}))}const mce="ROW_DETAIL_TEMPLATE",gce=r=>Ms(`/${r.name}/:id`);function _ce(r,e,t,n){const i=L5(r,t),l=new Xn("@budibase/standard-components/button").text("Delete").customProps({type:"secondary",quiet:!0,size:"M",onClick:[{parameters:{tableId:r._id,rowId:`{{ ${$n(n)}.${$n("_id")} }}`,revId:`{{ ${$n(n)}.${$n("_rev")} }}`,confirm:!0},"##eventHandlerType":"Delete Row"},{parameters:{url:pc(r)},"##eventHandlerType":"Navigate To"}]}).instanceName("Delete Button"),s=new Xn("@budibase/standard-components/container").instanceName("Button Container").customProps({direction:"row",hAlign:"right",vAlign:"middle",size:"shrink",gap:"M"}).addChild(l).addChild(i);return P5(e).addChild(s)}const hce=r=>{const e=new Xn("@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:`{{ ${$n("url")}.${$n("id")} }}`,valueType:"Binding"}],limit:1,paginate:!1}),t=new Xn("@budibase/standard-components/repeater").instanceName("Repeater").customProps({dataProvider:`{{ literal ${$n(e._json._id)} }}`,noRowsMessage:"We couldn't find a row to display"}),n=T5().instanceName("Form").customProps({actionType:"Update",size:"spectrum--medium",dataSource:{label:r.name,tableId:r._id,type:"table"}}),i=new Xn("@budibase/standard-components/fieldgroup").instanceName("Field Group").customProps({labelPosition:"left"}),l={type:"table",tableId:r._id};jm(l).forEach(u=>{i.addChild(u)});const s=n._json._id,o=t._json._id,a=r.primaryDisplay?`{{ ${$n(o)}.${$n(r.primaryDisplay)} }}`:null;return n.addChild(I5(r.name,a||"Edit")).addChild(_ce(r,a||"Edit Row",s,o)).addChild(i),t.addChild(n),e.addChild(t),new Ha().instanceName(`${r.name} - Detail`).route(gce(r)).customProps({hAlign:"center"}).addChild(e).json()};var i8={name:"Create from scratch",id:"createFromScratch",create:()=>$ce(),table:"Create from scratch"};const $ce=()=>new Ha().instanceName("New Screen").json(),bce=r=>[...tne(r),...dce(r),...lne(r)],vce=(r,e)=>()=>{const t=e.create();return t.name=t.props._id,t.routing.route=t.routing.route.toLowerCase(),t.template=e.id,t};var l8=(r,e)=>{const t=l=>it(Ae({},l),{create:vce(r,l)}),n=t(i8),i=bce(e).map(t);return[n,...i.sort((l,s)=>l.name>s.name?1:-1)]};function s8(r,e,t){const n=r.slice();return n[16]=e[t],n}function o8(r,e,t){const n=r.slice();return n[19]=e[t],n}function a8(r,e,t){const n=r.slice();return n[22]=e[t],n}function u8(r){let e,t,n=r[16].entities.filter(_8),i=[];for(let s=0;s<n.length;s+=1)i[s]=c8(a8(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&14){n=s[16].entities.filter(_8);let a;for(a=0;a<n.length;a+=1){const u=a8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=c8(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function f8(r){let e,t,n;return t=new at({props:{size:"S",name:"CheckmarkCircle"}}),{c(){e=D("span"),C(t.$$.fragment),y(e,"class","data-source-check svelte-cjcrll")},m(i,l){$(i,e,l),S(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),A(t)}}}function c8(r){let e,t,n,i,l=r[22].name+"",s,o,a=r[1].find(d),u,f,c,p;function d(...w){return r[9](r[22],...w)}let g=a&&f8();function h(){return r[10](r[22],r[16])}function v(...w){return r[11](r[22],...w)}return{c(){e=D("div"),t=me("svg"),n=me("use"),i=R(),s=F(l),o=R(),g&&g.c(),u=R(),Wt(n,"xlink:href","#spectrum-icon-18-Table"),y(t,"width","16px"),y(t,"height","16px"),y(t,"class","spectrum-Icon"),ht(t,"color","white"),y(t,"focusable","false"),y(e,"class","data-source-entry svelte-cjcrll"),le(e,"selected",r[1].find(v))},m(w,k){$(w,e,k),P(e,t),P(t,n),P(e,i),P(e,s),P(e,o),g&&g.m(e,null),P(e,u),f=!0,c||(p=Le(e,"click",h),c=!0)},p(w,k){r=w,(!f||k&4)&&l!==(l=r[22].name+"")&&Ce(s,l),k&6&&(a=r[1].find(d)),a?g?k&6&&m(g,1):(g=f8(),g.c(),m(g,1),g.m(e,u)):g&&(x(),_(g,1,1,()=>{g=null}),ee()),k&6&&le(e,"selected",r[1].find(v))},i(w){f||(m(g),f=!0)},o(w){_(g),f=!1},d(w){w&&b(e),g&&g.d(),c=!1,p()}}}function p8(r){let e,t,n=Object.keys(r[16].entities).filter(h8),i=[];for(let s=0;s<n.length;s+=1)i[s]=m8(o8(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&14){n=Object.keys(s[16].entities).filter(h8);let a;for(a=0;a<n.length;a+=1){const u=o8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=m8(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function d8(r){let e,t,n;return t=new at({props:{size:"S",name:"CheckmarkCircle"}}),{c(){e=D("span"),C(t.$$.fragment),y(e,"class","data-source-check svelte-cjcrll")},m(i,l){$(i,e,l),S(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),A(t)}}}function m8(r){let e,t,n,i,l=r[16].entities[r[19]].name+"",s,o,a=r[1].find(d),u,f,c,p;function d(...w){return r[8](r[16],r[19],...w)}let g=a&&d8();function h(){return r[12](r[16],r[19])}function v(...w){return r[13](r[16],r[19],...w)}return{c(){e=D("div"),t=me("svg"),n=me("use"),i=R(),s=F(l),o=R(),g&&g.c(),u=R(),Wt(n,"xlink:href","#spectrum-icon-18-Table"),y(t,"width","16px"),y(t,"height","16px"),y(t,"class","spectrum-Icon"),ht(t,"color","white"),y(t,"focusable","false"),y(e,"class","data-source-entry svelte-cjcrll"),le(e,"selected",r[1].find(v))},m(w,k){$(w,e,k),P(e,t),P(t,n),P(e,i),P(e,s),P(e,o),g&&g.m(e,null),P(e,u),f=!0,c||(p=Le(e,"click",h),c=!0)},p(w,k){r=w,(!f||k&4)&&l!==(l=r[16].entities[r[19]].name+"")&&Ce(s,l),k&6&&(a=r[1].find(d)),a?g?k&6&&m(g,1):(g=d8(),g.c(),m(g,1),g.m(e,u)):g&&(x(),_(g,1,1,()=>{g=null}),ee()),k&6&&le(e,"selected",r[1].find(v))},i(w){f||(m(g),f=!0)},o(w){_(g),f=!1},d(w){w&&b(e),g&&g.d(),c=!1,p()}}}function g8(r){let e,t,n,i,l,s,o=r[16].name+"",a,u,f=Array.isArray(r[16].entities),c,p=r[16].entities&&!Array.isArray(r[16].entities),d,g;var h=Ti[r[16].source];function v(I){return{props:{height:"24",width:"24"}}}h&&(i=new h(v()));let w=f&&u8(r),k=p&&p8(r);return{c(){e=D("div"),t=D("div"),n=D("div"),i&&C(i.$$.fragment),l=R(),s=D("div"),a=F(o),u=R(),w&&w.c(),c=R(),k&&k.c(),d=R(),y(n,"class","datasource-icon"),y(s,"class","data-source-name svelte-cjcrll"),y(t,"class","data-source-header svelte-cjcrll"),y(e,"class","data-source-wrap svelte-cjcrll")},m(I,T){$(I,e,T),P(e,t),P(t,n),i&&S(i,n,null),P(t,l),P(t,s),P(s,a),P(e,u),w&&w.m(e,null),P(e,c),k&&k.m(e,null),P(e,d),g=!0},p(I,T){if(h!==(h=Ti[I[16].source])){if(i){x();const E=i;_(E.$$.fragment,1,0,()=>{A(E,1)}),ee()}h?(i=new h(v()),C(i.$$.fragment),m(i.$$.fragment,1),S(i,n,null)):i=null}(!g||T&4)&&o!==(o=I[16].name+"")&&Ce(a,o),T&4&&(f=Array.isArray(I[16].entities)),f?w?(w.p(I,T),T&4&&m(w,1)):(w=u8(I),w.c(),m(w,1),w.m(e,c)):w&&(x(),_(w,1,1,()=>{w=null}),ee()),T&4&&(p=I[16].entities&&!Array.isArray(I[16].entities)),p?k?(k.p(I,T),T&4&&m(k,1)):(k=p8(I),k.c(),m(k,1),k.m(e,d)):k&&(x(),_(k,1,1,()=>{k=null}),ee())},i(I){g||(i&&m(i.$$.fragment,I),m(w),m(k),g=!0)},o(I){i&&_(i.$$.fragment,I),_(w),_(k),g=!1},d(I){I&&b(e),i&&A(i),w&&w.d(),k&&k.d()}}}function wce(r){let e,t,n=r[2],i=[];for(let s=0;s<n.length;s+=1)i[s]=g8(s8(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&14){n=s[2];let a;for(a=0;a<n.length;a+=1){const u=s8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=g8(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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){mt(i,s),s&&b(e)}}}function yce(r){let e,t;return e=new ze({props:{noPadding:!0,gap:"S",$$slots:{default:[wce]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&33554438&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function kce(r){let e,t,n;return t=new Tt({props:{title:"Create CRUD Screens",confirmText:"Confirm",cancelText:"Back",onConfirm:r[4],onCancel:r[0],disabled:!r[1].length,size:"L",$$slots:{default:[yce]},$$scope:{ctx:r}}}),{c(){e=D("span"),C(t.$$.fragment),y(e,"data-cy","data-source-modal")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,[l]){const s={};l&1&&(s.onCancel=i[0]),l&2&&(s.disabled=!i[1].length),l&33554438&&(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),A(t)}}}const _8=r=>r._id!=="ta_users",h8=r=>r._id!=="ta_users";function Cce(r,e,t){let n,i,l,s;ae(r,Zt,I=>t(7,i=I)),ae(r,Ot,I=>t(14,l=I)),ae(r,qe,I=>t(15,s=I));let{onCancel:o}=e,{onConfirm:a}=e,{initalScreens:u=[]}=e,f=[...u];const c=(I,T)=>{if(f.find(E=>E.table===I._id))t(1,f=f.filter(E=>E.table!==I._id));else{let E=l8(s,l.list).reduce((L,M)=>(M.table===I._id&&(M.datasource=T.name,L.push(M)),L),[]);t(1,f=[...E,...f])}},p=async()=>{await a({templates:f})};Pt(async()=>{try{await Zt.fetch()}catch{we.error("Error fetching datasources")}});const d=(I,T,E)=>E.table===I.entities[T]._id,g=(I,T)=>T.table===I._id,h=(I,T)=>c(I,T),v=(I,T)=>T.table===I._id,w=(I,T)=>c(I.entities[T],I),k=(I,T,E)=>E.table===I.entities[T]._id;return r.$$set=I=>{"onCancel"in I&&t(0,o=I.onCancel),"onConfirm"in I&&t(5,a=I.onConfirm),"initalScreens"in I&&t(6,u=I.initalScreens)},r.$$.update=()=>{r.$$.dirty&128&&t(2,n=Array.isArray(i.list)?i.list.reduce((I,T)=>(T.source!==pz.REST&&T.entities&&I.push(T),I),[]):[])},[o,f,n,c,p,a,u,i,d,g,h,v,w,k]}class Sce extends se{constructor(e){super();oe(this,e,Cce,kce,ie,{onCancel:0,onConfirm:5,initalScreens:6})}}function Ace(r){let e,t;return e=new pce({props:{onConfirm:r[8]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p:Se,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Oce(r){let e,t;return e=new Sce({props:{onConfirm:r[9],onCancel:r[15],initalScreens:r[5]?[...r[5]]:[]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i[0]&1&&(l.onCancel=n[15]),i[0]&32&&(l.initalScreens=n[5]?[...n[5]]:[]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ece(r){let e,t,n,i;function l(o){r[17](o)}let s={label:"Access",getOptionLabel:Pce,getOptionValue:Nce,getOptionColor:Rce,options:r[7]};return r[4]!==void 0&&(s.value=r[4]),t=new Ye({props:s}),K.push(()=>ce(t,"value",l)),{c(){e=F(`Select which level of access you want your screens to have
|
|
900
900
|
`),C(t.$$.fragment)},m(o,a){$(o,e,a),S(t,o,a),i=!0},p(o,a){const u={};a[0]&128&&(u.options=o[7]),!n&&a[0]&16&&(n=!0,u.value=o[4],pe(()=>n=!1)),t.$set(u)},i(o){i||(m(t.$$.fragment,o),i=!0)},o(o){_(t.$$.fragment,o),i=!1},d(o){o&&b(e),A(t,o)}}}function Tce(r){let e,t;return e=new Tt({props:{title:"Create CRUD Screens",confirmText:"Done",cancelText:"Back",onConfirm:r[11],onCancel:r[12],$$slots:{default:[Ece]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i[0]&144|i[1]&1&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Ice(r){let e,t;return e=new U6({props:{onConfirm:r[10],onCancel:r[19],initialUrl:r[6]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i[0]&1&&(l.onCancel=n[19]),i[0]&64&&(l.initialUrl=n[6]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Lce(r){let e,t,n,i,l,s,o,a,u={$$slots:{default:[Ace]},$$scope:{ctx:r}};e=new kt({props:u}),r[14](e);let f={$$slots:{default:[Oce]},$$scope:{ctx:r}};n=new kt({props:f}),r[16](n);let c={$$slots:{default:[Tce]},$$scope:{ctx:r}};l=new kt({props:c}),r[18](l);let p={$$slots:{default:[Ice]},$$scope:{ctx:r}};return o=new kt({props:p}),r[20](o),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment),s=R(),C(o.$$.fragment)},m(d,g){S(e,d,g),$(d,t,g),S(n,d,g),$(d,i,g),S(l,d,g),$(d,s,g),S(o,d,g),a=!0},p(d,g){const h={};g[1]&1&&(h.$$scope={dirty:g,ctx:d}),e.$set(h);const v={};g[0]&33|g[1]&1&&(v.$$scope={dirty:g,ctx:d}),n.$set(v);const w={};g[0]&144|g[1]&1&&(w.$$scope={dirty:g,ctx:d}),l.$set(w);const k={};g[0]&65|g[1]&1&&(k.$$scope={dirty:g,ctx:d}),o.$set(k)},i(d){a||(m(e.$$.fragment,d),m(n.$$.fragment,d),m(l.$$.fragment,d),m(o.$$.fragment,d),a=!0)},o(d){_(e.$$.fragment,d),_(n.$$.fragment,d),_(l.$$.fragment,d),_(o.$$.fragment,d),a=!1},d(d){r[14](null),A(e,d),d&&b(t),r[16](null),A(n,d),d&&b(i),r[18](null),A(l,d),d&&b(s),r[20](null),A(o,d)}}}const Pce=r=>r.name,Nce=r=>r._id,Rce=r=>r.color;function Mce(r,e,t){let n,i,l,s;ae(r,Ot,fe=>t(23,n=fe)),ae(r,qe,fe=>t(24,i=fe)),ae(r,Si,fe=>t(25,l=fe)),ae(r,ki,fe=>t(7,s=fe));let o,a,u,f,c,p=l+"",d=null,g=null,h=null;const v=()=>{t(5,d=null),t(6,g=null),h=null,a.show(),o=null},w=async({screens:fe,screenAccessRole:re})=>{if(!!(fe==null?void 0:fe.length))try{for(let Q of fe){if(k(Q.routing.route)){let te=2,_e=I(Q,te);for(;k(_e);)_e=I(Q,++te);Q.routing.route=_e}Q.routing.route=Ms(Q.routing.route),Q.routing.roleId=re||xe(Si)||"BASIC",await qe.actions.screens.save(Q),Q.props._instanceName.endsWith("List")&&await qe.actions.links.save(Q.routing.route,Q.routing.route.split("/")[1])}}catch{we.error("Error creating screens")}},k=fe=>{const re=xe(Si)||"BASIC";return!!xe(qe).screens.filter(te=>te.routing.roleId===re).find(te=>{var _e;return((_e=te.routing)==null?void 0:_e.route)===fe})},I=(fe,re)=>{var te;let Q=((te=fe.routing)==null?void 0:te.route)||"";if(Q.startsWith("/")&&(Q=Q.slice(1)),Q.includes("/")){const _e=Q.split("/");return`/${_e[0]}-${re}/${_e.slice(1).join("/")}`}else return`/${Q}-${re}`},T=async fe=>{h=fe,fe=="autoCreate"?f.show():(o=l8(i,n.list).find(te=>te.id==="createFromScratch").create(),u.show())},E=async({templates:fe})=>{t(5,d=fe),c.show()},L=async()=>{if((d==null?void 0:d.length)>1){const fe=d.map(re=>{let Q=re.create();return Q.datasource=re.datasource,Q.autoTableId=re.table,Q});await w({screens:fe,screenAccessRole:p})}},M=async({screenUrl:fe})=>{t(6,g=fe),c.show()},B=async({screenUrl:fe,screenAccessRole:re})=>{!o||(o.routing.route=fe,await w({screens:[o],screenAccessRole:re}))},j=async()=>{h==="blankScreen"?B({screenUrl:g,screenAccessRole:p}):L()},U=()=>{h==="blankScreen"?u.show():f.show()};function q(fe){K[fe?"unshift":"push"](()=>{a=fe,t(0,a)})}const G=()=>a.show();function Y(fe){K[fe?"unshift":"push"](()=>{f=fe,t(2,f)})}function W(fe){p=fe,t(4,p)}function H(fe){K[fe?"unshift":"push"](()=>{c=fe,t(3,c)})}const V=()=>a.show();function J(fe){K[fe?"unshift":"push"](()=>{u=fe,t(1,u)})}return[a,u,f,c,p,d,g,s,T,E,M,j,U,v,q,G,Y,W,H,V,J]}class Dce extends se{constructor(e){super();oe(this,e,Mce,Lce,ie,{showModal:13},null,[-1,-1])}get showModal(){return this.$$.ctx[13]}}function jce(r){let e,t,n,i;return n=new ze({props:{gap:"S",justifyItems:"center",$$slots:{default:[Uce]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),y(t,"class","main svelte-jf0zwc"),y(e,"class","centered svelte-jf0zwc")},m(l,s){$(l,e,s),P(e,t),S(n,t,null),i=!0},p(l,s){const o={};s&516&&(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),A(n)}}}function Bce(r){let e,t,n,i,l,s,o,a,u=r[0].version,f;t=new $ue({});let c=r[0].clientFeatures.devicePreview&&$8();const p=[Vce,Fce],d=[];function g(v,w){return v[0].clientFeatures.customThemes?0:v[0].clientFeatures.spectrumThemes?1:-1}~(l=g(r))&&(s=d[l]=p[l](r));let h=b8();return{c(){e=D("div"),C(t.$$.fragment),n=R(),c&&c.c(),i=R(),s&&s.c(),o=R(),a=D("div"),h.c(),y(e,"class","preview-header svelte-jf0zwc"),y(a,"class","preview-content svelte-jf0zwc")},m(v,w){$(v,e,w),S(t,e,null),P(e,n),c&&c.m(e,null),P(e,i),~l&&d[l].m(e,null),$(v,o,w),$(v,a,w),h.m(a,null),f=!0},p(v,w){v[0].clientFeatures.devicePreview?c?w&1&&m(c,1):(c=$8(),c.c(),m(c,1),c.m(e,i)):c&&(x(),_(c,1,1,()=>{c=null}),ee());let k=l;l=g(v),l!==k&&(s&&(x(),_(d[k],1,1,()=>{d[k]=null}),ee()),~l?(s=d[l],s||(s=d[l]=p[l](v),s.c()),m(s,1),s.m(e,null)):s=null),w&1&&ie(u,u=v[0].version)&&(x(),_(h,1,1,Se),ee(),h=b8(),h.c(),m(h),h.m(a,null))},i(v){f||(m(t.$$.fragment,v),m(c),m(s),m(h),f=!0)},o(v){_(t.$$.fragment,v),_(c),_(s),_(h),f=!1},d(v){v&&b(e),A(t),c&&c.d(),~l&&d[l].d(),v&&b(o),v&&b(a),h.d(v)}}}function zce(r){let e;return{c(){e=F("LET\u2019S BRING THIS APP TO LIFE")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function qce(r){let e,t,n,i,l;return n=new at({props:{name:"Add"}}),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=F(`
|
|
901
901
|
Add Screen`),y(t,"class","background-icon svelte-jf0zwc"),ht(t,"color","white"),y(e,"class","new-screen-button svelte-jf0zwc")},m(s,o){$(s,e,o),P(e,t),S(n,t,null),P(e,i),l=!0},p:Se,i(s){l||(m(n.$$.fragment,s),l=!0)},o(s){_(n.$$.fragment,s),l=!1},d(s){s&&b(e),A(n)}}}function Uce(r){let e,t,n,i,l,s,o,a;return l=new oi({props:{size:"M",$$slots:{default:[zce]},$$scope:{ctx:r}}}),o=new lt({props:{size:"M",cta:!0,$$slots:{default:[qce]},$$scope:{ctx:r}}}),o.$on("click",r[7]),{c(){e=D("img"),n=R(),i=D("div"),C(l.$$.fragment),s=R(),C(o.$$.fragment),y(e,"class","img-size svelte-jf0zwc"),y(e,"alt","logo"),dn(e.src,t=e8)||y(e,"src",t),y(i,"class","new-screen-text svelte-jf0zwc")},m(u,f){$(u,e,f),$(u,n,f),$(u,i,f),S(l,i,null),$(u,s,f),S(o,u,f),a=!0},p(u,f){const c={};f&512&&(c.$$scope={dirty:f,ctx:u}),l.$set(c);const p={};f&512&&(p.$$scope={dirty:f,ctx:u}),o.$set(p)},i(u){a||(m(l.$$.fragment,u),m(o.$$.fragment,u),a=!0)},o(u){_(l.$$.fragment,u),_(o.$$.fragment,u),a=!1},d(u){u&&b(e),u&&b(n),u&&b(i),A(l),u&&b(s),A(o,u)}}}function $8(r){let e,t;return e=new rce({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Fce(r){let e,t;return e=new x6({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Vce(r){let e,t;return e=new xfe({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function b8(r){let e,t;return e=new jte({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function v8(r){let e,t,n;return t=new fue({}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","components-pane svelte-jf0zwc")},m(i,l){$(i,e,l),S(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),A(t)}}}function Hce(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new Dfe({props:{showModal:r[2]}});const g=[Bce,jce],h=[];function v(L,M){return L[1]?0:1}s=v(r),o=h[s]=g[s](r);let w=r[3]!=null&&v8();const k=r[6].default,I=bt(k,r,r[9],null);function T(L){r[8](L)}let E={};return r[2]!==void 0&&(E.showModal=r[2]),c=new Dce({props:E}),K.push(()=>ce(c,"showModal",T)),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),o.c(),a=R(),w&&w.c(),u=R(),I&&I.c(),f=R(),C(c.$$.fragment),y(t,"class","ui-nav svelte-jf0zwc"),y(l,"class","preview-pane svelte-jf0zwc"),y(e,"class","root svelte-jf0zwc")},m(L,M){$(L,e,M),P(e,t),S(n,t,null),P(e,i),P(e,l),h[s].m(l,null),P(e,a),w&&w.m(e,null),$(L,u,M),I&&I.m(L,M),$(L,f,M),S(c,L,M),d=!0},p(L,[M]){const B={};M&4&&(B.showModal=L[2]),n.$set(B);let j=s;s=v(L),s===j?h[s].p(L,M):(x(),_(h[j],1,1,()=>{h[j]=null}),ee(),o=h[s],o?o.p(L,M):(o=h[s]=g[s](L),o.c()),m(o,1),o.m(l,null)),L[3]!=null?w?M&8&&m(w,1):(w=v8(),w.c(),m(w,1),w.m(e,null)):w&&(x(),_(w,1,1,()=>{w=null}),ee()),I&&I.p&&(!d||M&512)&&vt(I,k,L,L[9],d?yt(k,L[9],M,null):wt(L[9]),null);const U={};!p&&M&4&&(p=!0,U.showModal=L[2],pe(()=>p=!1)),c.$set(U)},i(L){d||(m(n.$$.fragment,L),m(o),m(w),m(I,L),m(c.$$.fragment,L),d=!0)},o(L){_(n.$$.fragment,L),_(o),_(w),_(I,L),_(c.$$.fragment,L),d=!1},d(L){L&&b(e),A(n),h[s].d(),w&&w.d(),L&&b(u),I&&I.d(L),L&&b(f),A(c,L)}}}function Wce(r,e,t){let n,i,l,s,o,a;ae(r,jt,T=>t(14,n=T)),ae(r,qe,T=>t(0,i=T)),ae(r,nn,T=>t(1,l=T)),ae(r,Hu,T=>t(4,s=T)),ae(r,ir,T=>t(5,o=T)),ae(r,ai,T=>t(3,a=T));let{$$slots:u={},$$scope:f}=e,c,p,d,g=!1,h;const v=(T,E)=>{if(g||(g=!0,!T.assetType))return;const L=xe(qe),M=xe(nn);let B=T.assetType;[Zn.LAYOUT,Zn.SCREEN].includes(B)||(B=Zn.SCREEN),B!==L.currentFrontEndType&&qe.update(G=>(G.currentFrontEndType=B,G));const j=decodeURI(T.asset);let U;if(j){let G,Y;B===Zn.SCREEN?(G=xe(Il),Y=qe.actions.screens):(G=L.layouts,Y=qe.actions.layouts),U=G.find(W=>W._id===j),U&&U._id!==(M==null?void 0:M._id)&&Y.select(j)}const q=E.split("/").pop();if(U&&q){const G=Ci(U.props,q);G&&G._id!==L.selectedComponentId&&qe.actions.components.select(G)}},w=(T,E,L)=>{if(T===c&&E===p&&L===d)return;c=T,p=E,d=L;const M=xe(ir),B=xe(Hu),j=M.assetType,U=M.asset,q=B.split("/").pop();if(T!==j||(E==null?void 0:E._id)!==U||L!==q){let G="../";[Zn.SCREEN,Zn.LAYOUT].includes(T)&&(G+=`${T}`,(E==null?void 0:E._id)&&(G+=`/${E._id}`,L&&(G+=`/${Tl(E==null?void 0:E.props,L).slice(1).map(H=>H._id).join("/")}`))),n(G)}},k=()=>h();function I(T){h=T,t(2,h)}return r.$$set=T=>{"$$scope"in T&&t(9,f=T.$$scope)},r.$$.update=()=>{r.$$.dirty&48&&v(o,s),r.$$.dirty&3&&w(i.currentFrontEndType,l,i.selectedComponentId)},[i,l,h,a,s,o,u,k,I,f]}class Gce extends se{constructor(e){super();oe(this,e,Wce,Hce,ie,{})}}function Yce(r,e,t){let n;return ae(r,jt,i=>t(0,n=i)),n(`./${Zn.SCREEN}`),[]}class Jce extends se{constructor(e){super();oe(this,e,Yce,null,ie,{})}}function Xce(r){let e;const t=r[1].default,n=bt(t,r,r[0],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,[l]){n&&n.p&&(!e||l&1)&&vt(n,t,i,i[0],e?yt(t,i[0],l,null):wt(i[0]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function Qce(r,e,t){let{$$slots:n={},$$scope:i}=e;return r.$$set=l=>{"$$scope"in l&&t(0,i=l.$$scope)},[i,n]}class Kce extends se{constructor(e){super();oe(this,e,Qce,Xce,ie,{})}}var Zce="/builder/assets/discord.c14881e9.svg",xce="/builder/assets/zapier.3fbd8f5c.png",epe="/builder/assets/integromat.42212f11.png",tpe="/builder/assets/slack.1e1f7cfb.svg";const Io={zapier:{name:"zapier",icon:xce},discord:{name:"discord",icon:Zce},slack:{name:"slack",icon:tpe},integromat:{name:"integromat",icon:epe}};function npe(r){let e,t,n;return{c(){e=me("svg"),t=me("use"),Wt(t,"xlink:href",n="#spectrum-icon-18-"+r[2].icon),y(e,"width","28px"),y(e,"height","28px"),y(e,"class","spectrum-Icon"),ht(e,"color","grey"),y(e,"focusable","false")},m(i,l){$(i,e,l),P(e,t)},p(i,l){l&4&&n!==(n="#spectrum-icon-18-"+i[2].icon)&&Wt(t,"xlink:href",n)},d(i){i&&b(e)}}}function rpe(r){let e,t,n;return{c(){e=D("img"),y(e,"alt",t=Io[r[2].stepId].name),y(e,"width","28px"),y(e,"height","28px"),dn(e.src,n=Io[r[2].stepId].icon)||y(e,"src",n)},m(i,l){$(i,e,l)},p(i,l){l&4&&t!==(t=Io[i[2].stepId].name)&&y(e,"alt",t),l&4&&!dn(e.src,n=Io[i[2].stepId].icon)&&y(e,"src",n)},d(i){i&&b(e)}}}function ipe(r){let e,t;return e=new Ue({props:{size:"XS",$$slots:{default:[spe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function lpe(r){let e,t;return e=new Ue({props:{size:"XS",$$slots:{default:[ope]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function spe(r){let e;return{c(){e=F("Do this:")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ope(r){let e;return{c(){e=F("When this happens:")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function ape(r){var n,i;let e=(((i=(n=r[2])==null?void 0:n.name)==null?void 0:i.toUpperCase())||"")+"",t;return{c(){t=F(e)},m(l,s){$(l,t,s)},p(l,s){var o,a;s&4&&e!==(e=(((a=(o=l[2])==null?void 0:o.name)==null?void 0:a.toUpperCase())||"")+"")&&Ce(t,e)},d(l){l&&b(t)}}}function w8(r){var i,l;let e,t,n;return t=new Oj({props:{positive:r[4]||((i=r[5][0].outputs)==null?void 0:i.success),negative:!((l=r[5][0].outputs)==null?void 0:l.success),$$slots:{default:[fpe]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),ht(e,"float","right")},m(s,o){$(s,e,o),S(t,e,null),n=!0},p(s,o){var u,f;const a={};o&48&&(a.positive=s[4]||((u=s[5][0].outputs)==null?void 0:u.success)),o&32&&(a.negative=!((f=s[5][0].outputs)==null?void 0:f.success)),o&1072&&(a.$$scope={dirty:o,ctx:s}),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t)}}}function upe(r){var n;let e=(((n=r[5][0].outputs)==null?void 0:n.success)||r[4]?"Success":"Error")+"",t;return{c(){t=F(e)},m(i,l){$(i,t,l)},p(i,l){var s;l&48&&e!==(e=(((s=i[5][0].outputs)==null?void 0:s.success)||i[4]?"Success":"Error")+"")&&Ce(t,e)},d(i){i&&b(t)}}}function fpe(r){let e,t;return e=new Ue({props:{size:"XS",$$slots:{default:[upe]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&1072&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function cpe(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,w;function k(j,U){return Io[j[2].stepId]?rpe:npe}let I=k(r),T=I(r);const E=[lpe,ipe],L=[];function M(j,U){return j[4]?0:1}s=M(r),o=L[s]=E[s](r),u=new oi({props:{size:"S",$$slots:{default:[ape]},$$scope:{ctx:r}}});let B=r[3]&&r[5]&&r[5][0]&&w8(r);return g=new at({props:{name:r[0]?"ChevronUp":"ChevronDown"}}),{c(){e=D("div"),t=D("div"),n=D("div"),T.c(),i=R(),l=D("div"),o.c(),a=R(),C(u.$$.fragment),f=R(),c=D("div"),B&&B.c(),p=R(),d=D("div"),C(g.$$.fragment),y(l,"class","iconAlign svelte-1xyptxc"),y(n,"class","center-items svelte-1xyptxc"),ht(d,"margin-left","10px"),ht(d,"margin-bottom","var(--spacing-xs)"),y(c,"class","blockTitle svelte-1xyptxc"),y(t,"class","splitHeader svelte-1xyptxc"),y(e,"class","blockSection svelte-1xyptxc")},m(j,U){$(j,e,U),P(e,t),P(t,n),T.m(n,null),P(n,i),P(n,l),L[s].m(l,null),P(l,a),S(u,l,null),P(t,f),P(t,c),B&&B.m(c,null),P(c,p),P(c,d),S(g,d,null),h=!0,v||(w=[Le(d,"click",r[8]),Le(t,"click",r[9])],v=!0)},p(j,[U]){I===(I=k(j))&&T?T.p(j,U):(T.d(1),T=I(j),T&&(T.c(),T.m(n,i)));let q=s;s=M(j),s!==q&&(x(),_(L[q],1,1,()=>{L[q]=null}),ee(),o=L[s],o||(o=L[s]=E[s](j),o.c()),m(o,1),o.m(l,a));const G={};U&1028&&(G.$$scope={dirty:U,ctx:j}),u.$set(G),j[3]&&j[5]&&j[5][0]?B?(B.p(j,U),U&40&&m(B,1)):(B=w8(j),B.c(),m(B,1),B.m(c,p)):B&&(x(),_(B,1,1,()=>{B=null}),ee());const Y={};U&1&&(Y.name=j[0]?"ChevronUp":"ChevronDown"),g.$set(Y)},i(j){h||(m(o),m(u.$$.fragment,j),m(B),m(g.$$.fragment,j),h=!0)},o(j){_(o),_(u.$$.fragment,j),_(B),_(g.$$.fragment,j),h=!1},d(j){j&&b(e),T.d(),L[s].d(),A(u),B&&B.d(),A(g),v=!1,Tn(w)}}}function ppe(r,e,t){let n,i,l;ae(r,Ft,d=>t(7,l=d));let{block:s}=e,{blockComplete:o}=e,{showTestStatus:a=!1}=e,{showParameters:u={}}=e;async function f(d){await Ft.update(g=>(g.selectedBlock=d,g))}const c=()=>{f(s)},p=()=>{t(0,o=!o),t(1,u[s.id]=o,u)};return r.$$set=d=>{"block"in d&&t(2,s=d.block),"blockComplete"in d&&t(0,o=d.blockComplete),"showTestStatus"in d&&t(3,a=d.showTestStatus),"showParameters"in d&&t(1,u=d.showParameters)},r.$$.update=()=>{var d,g;r.$$.dirty&132&&t(5,n=(g=(d=l.selectedAutomation)==null?void 0:d.testResults)==null?void 0:g.steps.filter(h=>s.id?h.id===s.id:h.stepId===s.stepId)),r.$$.dirty&4&&t(4,i=s.type==="TRIGGER")},[o,u,s,a,i,n,f,l,c,p]}class y8 extends se{constructor(e){super();oe(this,e,ppe,cpe,ie,{block:2,blockComplete:0,showTestStatus:3,showParameters:1})}}function dpe(r){let e,t,n;function i(s){r[3](s)}let l={options:r[1].list,getOptionLabel:mpe,getOptionValue:gpe};return r[0]!==void 0&&(l.value=r[0]),e=new Ye({props:l}),K.push(()=>ce(e,"value",i)),e.$on("change",r[2]),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,[o]){const a={};o&2&&(a.options=s[1].list),!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){A(e,s)}}}const mpe=r=>r.name,gpe=r=>r._id;function _pe(r,e,t){let n;ae(r,Ot,a=>t(1,n=a));const i=_t();let{value:l}=e;const s=a=>{t(0,l=a.detail),i("change",a.detail)};function o(a){l=a,t(0,l)}return r.$$set=a=>{"value"in a&&t(0,l=a.value)},[l,n,s,o]}class hpe extends se{constructor(e){super();oe(this,e,_pe,dpe,ie,{value:0})}}function $pe(r){let e,t,n;var i=r[5]?Rs:Rn;function l(s){return{props:{panel:Ll,value:s[0][s[2]],label:s[2],type:"string",bindings:s[4],fillWidth:!0,allowJS:!0,updateOnChange:!1}}}return i&&(e=new i(l(r)),e.$on("change",r[12])),{c(){e&&C(e.$$.fragment),t=Oe()},m(s,o){e&&S(e,s,o),$(s,t,o),n=!0},p(s,o){const a={};if(o&5&&(a.value=s[0][s[2]]),o&4&&(a.label=s[2]),o&16&&(a.bindings=s[4]),i!==(i=s[5]?Rs:Rn)){if(e){x();const u=e;_(u.$$.fragment,1,0,()=>{A(u,1)}),ee()}i?(e=new i(l(s)),e.$on("change",s[12]),C(e.$$.fragment),m(e.$$.fragment,1),S(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&&A(e,s)}}}function bpe(r){let e,t,n;function i(s){r[11](s)}let l={schema:r[3]};return r[0][r[2]]!==void 0&&(l.linkedRows=r[0][r[2]]),e=new A3({props:l}),K.push(()=>ce(e,"linkedRows",i)),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};o&8&&(a.schema=s[3]),!t&&o&5&&(t=!0,a.linkedRows=s[0][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){A(e,s)}}}function vpe(r){let e,t,n;function i(s){r[10](s)}let l={label:r[2]};return r[0][r[2]]!==void 0&&(l.value=r[0][r[2]]),e=new _i({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};o&4&&(a.label=s[2]),!t&&o&5&&(t=!0,a.value=s[0][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){A(e,s)}}}function wpe(r){let e,t,n;function i(s){r[9](s)}let l={label:r[2],options:r[3].constraints.inclusion};return r[0][r[2]]!==void 0&&(l.value=r[0][r[2]]),e=new ro({props:l}),K.push(()=>ce(e,"value",i)),{c(){C(e.$$.fragment)},m(s,o){S(e,s,o),n=!0},p(s,o){const a={};o&4&&(a.label=s[2]),o&8&&(a.options=s[3].constraints.inclusion),!t&&o&5&&(t=!0,a.value=s[0][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){A(e,s)}}}function ype(r){let e,t;return e=new Fn({props:{text:r[2],value:r[0][r[2]]}}),e.$on("change",r[8]),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.text=n[2]),i&5&&(l.value=n[0][n[2]]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function kpe(r){let e,t;return e=new Vl({props:{label:r[2],value:r[0][r[2]]}}),e.$on("change",r[7]),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.label=n[2]),i&5&&(l.value=n[0][n[2]]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Cpe(r){let e,t;return e=new Ye({props:{label:r[2],value:r[0][r[2]],options:r[3].constraints.inclusion}}),e.$on("change",r[6]),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.label=n[2]),i&5&&(l.value=n[0][n[2]]),i&8&&(l.options=n[3].constraints.inclusion),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function Spe(r){let e,t,n,i,l;const s=[Cpe,kpe,ype,wpe,vpe,bpe,$pe],o=[];function a(u,f){return(e==null||f&8)&&(e=!!(Ape(u[3])&&u[3].type!=="array")),e?0:u[3].type==="datetime"?1:u[3].type==="boolean"?2:u[3].type==="array"?3:u[3].type==="longform"?4:u[3].type==="link"?5:u[3].type==="string"||u[3].type==="number"?6:-1}return~(t=a(r,-1))&&(n=o[t]=s[t](r)),{c(){n&&n.c(),i=Oe()},m(u,f){~t&&o[t].m(u,f),$(u,i,f),l=!0},p(u,[f]){let c=t;t=a(u,f),t===c?~t&&o[t].p(u,f):(n&&(x(),_(o[c],1,1,()=>{o[c]=null}),ee()),~t?(n=o[t],n?n.p(u,f):(n=o[t]=s[t](u),n.c()),m(n,1),n.m(i.parentNode,i)):n=null)},i(u){l||(m(n),l=!0)},o(u){_(n),l=!1},d(u){~t&&o[t].d(u),u&&b(i)}}}function Ape(r){var e,t;return!!((t=(e=r.constraints)==null?void 0:e.inclusion)==null?void 0:t.length)}function Ope(r,e,t){let{onChange:n}=e,{field:i}=e,{schema:l}=e,{value:s}=e,{bindings:o}=e,{isTestModal:a}=e;const u=v=>n(v,i),f=v=>n(v,i),c=v=>n(v,i);function p(v){r.$$.not_equal(s[i],v)&&(s[i]=v,t(0,s))}function d(v){r.$$.not_equal(s[i],v)&&(s[i]=v,t(0,s))}function g(v){r.$$.not_equal(s[i],v)&&(s[i]=v,t(0,s))}const h=v=>n(v,i);return r.$$set=v=>{"onChange"in v&&t(1,n=v.onChange),"field"in v&&t(2,i=v.field),"schema"in v&&t(3,l=v.schema),"value"in v&&t(0,s=v.value),"bindings"in v&&t(4,o=v.bindings),"isTestModal"in v&&t(5,a=v.isTestModal)},[s,n,i,l,o,a,u,f,c,p,d,g,h]}class Epe extends se{constructor(e){super();oe(this,e,Ope,Spe,ie,{onChange:1,field:2,schema:3,value:0,bindings:4,isTestModal:5})}}function k8(r,e,t){const n=r.slice();return n[14]=e[t][0],n[15]=e[t][1],n}function C8(r){let e,t,n=r[3],i=[];for(let s=0;s<n.length;s+=1)i[s]=O8(k8(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","schema-fields svelte-qnw5bo")},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&367){n=s[3];let a;for(a=0;a<n.length;a+=1){const u=k8(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=O8(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function S8(r){let e,t,n=r[15].type!=="attachment"&&A8(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[15].type!=="attachment"?n?(n.p(i,l),l&8&&m(n,1)):(n=A8(i),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(x(),_(n,1,1,()=>{n=null}),ee())},i(i){t||(m(n),t=!0)},o(i){_(n),t=!1},d(i){n&&n.d(i),i&&b(e)}}}function A8(r){let e,t,n,i;const l=[Ipe,Tpe],s=[];function o(a,u){return a[5]?1:0}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):(x(),_(s[f],1,1,()=>{s[f]=null}),ee(),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 Tpe(r){let e,t,n;function i(...o){return r[11](r[14],r[15],...o)}var l=r[2]?Rs:Rn;function s(o){return{props:{placeholder:o[6][o[15].type],panel:Ll,value:Array.isArray(o[0][o[14]])?o[0][o[14]].join(" "):o[0][o[14]],label:o[14],type:"string",bindings:o[1],fillWidth:!0,allowJS:!0,updateOnChange:!1}}}return l&&(e=new l(s(r)),e.$on("change",i)),{c(){e&&C(e.$$.fragment),t=Oe()},m(o,a){e&&S(e,o,a),$(o,t,a),n=!0},p(o,a){r=o;const u={};if(a&8&&(u.placeholder=r[6][r[15].type]),a&9&&(u.value=Array.isArray(r[0][r[14]])?r[0][r[14]].join(" "):r[0][r[14]]),a&8&&(u.label=r[14]),a&2&&(u.bindings=r[1]),l!==(l=r[2]?Rs:Rn)){if(e){x();const f=e;_(f.$$.fragment,1,0,()=>{A(f,1)}),ee()}l?(e=new l(s(r)),e.$on("change",i),C(e.$$.fragment),m(e.$$.fragment,1),S(e,t.parentNode,t)):e=null}else l&&e.$set(u)},i(o){n||(e&&m(e.$$.fragment,o),n=!0)},o(o){e&&_(e.$$.fragment,o),n=!1},d(o){o&&b(t),e&&A(e,o)}}}function Ipe(r){let e,t;return e=new Epe({props:{isTestModal:r[2],field:r[14],schema:r[15],bindings:r[1],value:r[0],onChange:r[8]}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4&&(l.isTestModal=n[2]),i&8&&(l.field=n[14]),i&8&&(l.schema=n[15]),i&2&&(l.bindings=n[1]),i&1&&(l.value=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function O8(r){let e,t,n=!r[15].autocolumn&&S8(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[15].autocolumn?n&&(x(),_(n,1,1,()=>{n=null}),ee()):n?(n.p(i,l),l&8&&m(n,1)):(n=S8(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 Lpe(r){let e,t,n,i;e=new Ye({props:{value:r[0].tableId,options:r[4].list,getOptionLabel:Ppe,getOptionValue:Npe}}),e.$on("change",r[7]);let l=r[3].length&&C8(r);return{c(){C(e.$$.fragment),t=R(),l&&l.c(),n=Oe()},m(s,o){S(e,s,o),$(s,t,o),l&&l.m(s,o),$(s,n,o),i=!0},p(s,[o]){const a={};o&1&&(a.value=s[0].tableId),o&16&&(a.options=s[4].list),e.$set(a),s[3].length?l?(l.p(s,o),o&8&&m(l,1)):(l=C8(s),l.c(),m(l,1),l.m(n.parentNode,n)):l&&(x(),_(l,1,1,()=>{l=null}),ee())},i(s){i||(m(e.$$.fragment,s),m(l),i=!0)},o(s){_(e.$$.fragment,s),_(l),i=!1},d(s){A(e,s),s&&b(t),l&&l.d(s),s&&b(n)}}}const Ppe=r=>r.name,Npe=r=>r._id;function Rpe(r,e,t){let n,i;ae(r,Ot,w=>t(4,i=w));const l=_t();let{value:s}=e,{bindings:o}=e,{block:a}=e,{isTestModal:u}=e,f,c,p={number:10,boolean:"true",datetime:"2022-02-16T12:00:00.000Z ",options:"1",array:"1 2 3 4",link:"ro_ta_123_456",longform:"long form text"};const d=w=>{t(0,s.tableId=w.detail,s),l("change",s)},g=(w,k)=>new RegExp(/{{([^{].*?)}}/g).test(w)?w:k==="boolean"?typeof w=="boolean"?w:w==="true":k==="number"?typeof w=="number"?w:Number(w):k==="options"?[w]:k==="array"?Array.isArray(w)?w:w.split(",").map(T=>T.trim()):k==="link"?Array.isArray(w)?w:[w]:w,h=(w,k,I)=>{t(0,s[k]=g(w.detail,I),s),l("change",s)},v=(w,k,I)=>h(I,w,k.type);return r.$$set=w=>{"value"in w&&t(0,s=w.value),"bindings"in w&&t(1,o=w.bindings),"block"in w&&t(9,a=w.block),"isTestModal"in w&&t(2,u=w.isTestModal)},r.$$.update=()=>{var w;r.$$.dirty&512&&t(5,n=a.rowControl),r.$$.dirty&1049&&(t(10,f=i.list.find(k=>k._id===(s==null?void 0:s.tableId))),t(3,c=Object.entries((w=f==null?void 0:f.schema)!=null?w:{})),c.map(([,k])=>{!k.autocolumn&&!s[k.name]&&t(0,s[k.name]="",s)})),r.$$.dirty&1&&(s==null?void 0:s.tableId)==null&&t(0,s={tableId:""})},[s,o,u,c,i,n,p,d,h,a,f,v]}class Mpe extends se{constructor(e){super();oe(this,e,Rpe,Lpe,ie,{value:0,bindings:1,block:9,isTestModal:2})}}function E8(r,e,t){const n=r.slice();return n[9]=e[t],n}function T8(r){let e,t,n,i,l,s,o,a,u;t=new et({props:{value:r[9].name,secondary:!0,placeholder:"Enter field name",updateOnChange:!1}}),t.$on("change",function(){ft(r[6](r[9].name))&&r[6](r[9].name).apply(this,arguments)});function f(...p){return r[7](r[9],...p)}i=new Ye({props:{value:r[9].type,options:r[3]}}),i.$on("change",f);function c(){return r[8](r[9])}return{c(){e=D("div"),C(t.$$.fragment),n=R(),C(i.$$.fragment),l=R(),s=D("i"),y(s,"class","remove-field ri-delete-bin-line"),y(e,"class","field svelte-12q6c1o")},m(p,d){$(p,e,d),S(t,e,null),P(e,n),S(i,e,null),P(e,l),P(e,s),o=!0,a||(u=Le(s,"click",c),a=!0)},p(p,d){r=p;const g={};d&2&&(g.value=r[9].name),t.$set(g);const h={};d&2&&(h.value=r[9].type),i.$set(h)},i(p){o||(m(t.$$.fragment,p),m(i.$$.fragment,p),o=!0)},o(p){_(t.$$.fragment,p),_(i.$$.fragment,p),o=!1},d(p){p&&b(e),A(t),A(i),a=!1,u()}}}function Dpe(r){let e;return{c(){e=F("Add field")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function jpe(r){let e,t,n,i,l,s,o=r[1],a=[];for(let f=0;f<o.length;f+=1)a[f]=T8(E8(r,o,f));const u=f=>_(a[f],1,1,()=>{a[f]=null});return l=new lt({props:{quiet:!0,secondary:!0,icon:"Add",$$slots:{default:[Dpe]},$$scope:{ctx:r}}}),l.$on("click",r[4]),{c(){e=D("div"),t=D("div"),n=R();for(let f=0;f<a.length;f+=1)a[f].c();i=R(),C(l.$$.fragment),y(t,"class","spacer svelte-12q6c1o"),y(e,"class","root svelte-12q6c1o")},m(f,c){$(f,e,c),P(e,t),P(e,n);for(let p=0;p<a.length;p+=1)a[p].m(e,null);P(e,i),S(l,e,null),s=!0},p(f,[c]){if(c&111){o=f[1];let d;for(d=0;d<o.length;d+=1){const g=E8(f,o,d);a[d]?(a[d].p(g,c),m(a[d],1)):(a[d]=T8(g),a[d].c(),m(a[d],1),a[d].m(e,i))}for(x(),d=o.length;d<a.length;d+=1)u(d);ee()}const p={};c&4096&&(p.$$scope={dirty:c,ctx:f}),l.$set(p)},i(f){if(!s){for(let c=0;c<o.length;c+=1)m(a[c]);m(l.$$.fragment,f),s=!0}},o(f){a=a.filter(Boolean);for(let c=0;c<a.length;c+=1)_(a[c]);_(l.$$.fragment,f),s=!1},d(f){f&&b(e),mt(a,f),A(l)}}}function Bpe(r,e,t){let n;const i=_t();let{value:l={}}=e;const s=[{label:"Text",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"DateTime",value:"datetime"},{label:"Array",value:"array"}];function o(){const p=Ae({},l);p[""]="string",i("change",p)}function a(p){const d=Ae({},l);delete d[p],i("change",d)}const u=p=>d=>{let g=[...n];const h=d.detail;h?g.find(v=>v.name===p).name=h:g=g.filter(v=>v.name!==p),t(0,l=g.reduce((v,w)=>(v[w.name]=w.type,v),{})),i("change",l)},f=(p,d)=>{t(0,l[p.name]=d.detail,l),i("change",l)},c=p=>a(p.name);return r.$$set=p=>{"value"in p&&t(0,l=p.value)},r.$$.update=()=>{r.$$.dirty&1&&t(1,n=l?Object.entries(l).map(([p,d])=>({name:p,type:d})):[])},[l,n,i,s,o,a,u,f,c]}class zpe extends se{constructor(e){super();oe(this,e,Bpe,jpe,ie,{value:0})}}function qpe(r){let e,t,n,i,l,s,o,a;return t=new et({props:{readonly:!0,value:r[1],label:r[0]}}),l=new at({props:{size:"S",name:"Copy"}}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","icon svelte-bmyadj"),y(e,"data-cy",r[2]),y(e,"class","svelte-bmyadj")},m(u,f){$(u,e,f),S(t,e,null),P(e,n),P(e,i),S(l,i,null),s=!0,o||(a=Le(i,"click",r[4]),o=!0)},p(u,[f]){const c={};f&2&&(c.value=u[1]),f&1&&(c.label=u[0]),t.$set(c),(!s||f&4)&&y(e,"data-cy",u[2])},i(u){s||(m(t.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){u&&b(e),A(t),A(l),o=!1,a()}}}function Upe(r,e,t){let{label:n=null}=e,{value:i}=e,{dataCy:l=null}=e;const s=a=>{const u=document.createElement("textarea");document.body.appendChild(u),u.value=a,u.select(),document.execCommand("copy"),document.body.removeChild(u),we.success("URL copied to clipboard")},o=()=>s(i);return r.$$set=a=>{"label"in a&&t(0,n=a.label),"value"in a&&t(1,i=a.value),"dataCy"in a&&t(2,l=a.dataCy)},[n,i,l,s,o]}class Ym extends se{constructor(e){super();oe(this,e,Upe,qpe,ie,{label:0,value:1,dataCy:2})}}function Fpe(r){let e,t;return e=new Ym({props:{value:I8(r[0])}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,[i]){const l={};i&1&&(l.value=I8(n[0])),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function I8(r){return r?`${window.location.origin}/${r}`:""}function Vpe(r,e,t){let{value:n}=e;return r.$$set=i=>{"value"in i&&t(0,n=i.value)},[n]}class L8 extends se{constructor(e){super();oe(this,e,Vpe,Fpe,ie,{value:0})}}function P8(r){let e,t,n,i,l=(r[2]>1?"s":"")+"",s,o;return{c(){e=D("p"),t=F(`Request received! We found
|
|
@@ -911,7 +911,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
911
911
|
`),t=D("i"),i=F(n),l=F("?"),s=F(`
|
|
912
912
|
This action cannot be undone.`)},m(o,a){$(o,e,a),$(o,t,a),P(t,i),P(t,l),$(o,s,a)},p(o,a){a&1&&n!==(n=o[0].name+"")&&Ce(i,n)},d(o){o&&b(e),o&&b(t),o&&b(s)}}}function e1e(r){let e,t,n,i,l,s;e=new kr({props:{$$slots:{control:[Zme],default:[Kme]},$$scope:{ctx:r}}});let o={okText:"Delete Automation",onOk:r[3],title:"Confirm Deletion",$$slots:{default:[xme]},$$scope:{ctx:r}};n=new cr({props:o}),r[4](n);let a={automation:r[0]};return l=new Jme({props:a}),r[5](l),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment)},m(u,f){S(e,u,f),$(u,t,f),S(n,u,f),$(u,i,f),S(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){A(e,u),u&&b(t),r[4](null),A(n,u),u&&b(i),r[5](null),A(l,u)}}}function t1e(r,e,t){let n;ae(r,jt,f=>t(6,n=f));let{automation:i}=e,l,s;async function o(){try{await Ft.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 n1e extends se{constructor(e){super();oe(this,e,t1e,e1e,ie,{automation:0})}}function lk(r,e,t){const n=r.slice();return n[5]=e[t],n[7]=t,n}function r1e(r){let e,t,n;return e=new n1e({props:{automation:r[5]}}),{c(){C(e.$$.fragment),t=R()},m(i,l){S(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){A(e,i),i&&b(t)}}}function sk(r){let e,t;function n(){return r[3](r[5])}return e=new Nl({props:{border:r[7]>0,icon:"ShareAndroid",text:r[5].name,selected:r[5]._id===r[1],$$slots:{default:[r1e]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){C(e.$$.fragment)},m(i,l){S(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){A(e,i)}}}function i1e(r){let e,t,n=r[0].automations,i=[];for(let s=0;s<n.length;s+=1)i[s]=sk(lk(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=lk(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=sk(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(x(),a=n.length;a<i.length;a+=1)l(a);ee()}},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),mt(i,s)}}}function l1e(r,e,t){let n,i,l;ae(r,jt,a=>t(4,i=a)),ae(r,Ft,a=>t(0,l=a)),Pt(async()=>{try{await Ft.actions.fetch()}catch{we.error("Error getting automations list")}});function s(a){Ft.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 s1e extends se{constructor(e){super();oe(this,e,l1e,i1e,ie,{})}}function ok(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n}function o1e(r){let e;return{c(){e=F(`Please name your automation, then select a trigger. Every automation must
|
|
913
913
|
start with a trigger.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function a1e(r){let e;return{c(){e=F("Triggers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function u1e(r){let e=r[18].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&8&&e!==(e=n[18].name+"")&&Ce(t,e)},d(n){n&&b(t)}}}function ak(r){let e,t,n,i,l,s,o,a,u,f;n=new at({props:{name:r[18].icon}}),s=new Ue({props:{size:"S",$$slots:{default:[u1e]},$$scope:{ctx:r}}});function c(){return r[13](r[18])}return{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("span"),C(s.$$.fragment),o=R(),y(l,"class","icon-spacing svelte-d3iboa"),y(t,"class","item-body svelte-d3iboa"),y(e,"class","item svelte-d3iboa"),le(e,"selected",r[2]===r[18].name)},m(p,d){$(p,e,d),P(e,t),S(n,t,null),P(t,i),P(t,l),S(s,l,null),P(e,o),a=!0,u||(f=Le(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&&le(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),A(n),A(s),u=!1,f()}}}function f1e(r){let e,t,n,i;e=new Ue({props:{size:"S",$$slots:{default:[a1e]},$$scope:{ctx:r}}});let l=r[3],s=[];for(let a=0;a<l.length;a+=1)s[a]=ak(ok(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){C(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){S(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=ok(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=ak(p),s[c].c(),m(s[c],1),s[c].m(n,null))}for(x(),c=l.length;c<s.length;c+=1)o(c);ee()}},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){A(e,a),a&&b(t),a&&b(n),mt(s,a)}}}function c1e(r){let e,t,n,i,l,s,o,a,u,f;e=new cm({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 Ue({props:{size:"XS",$$slots:{default:[o1e]},$$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 ze({props:{noPadding:!0,$$slots:{default:[f1e]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment),i=R(),C(l.$$.fragment),a=R(),C(u.$$.fragment)},m(g,h){S(e,g,h),$(g,t,h),S(n,g,h),$(g,i,h),S(l,g,h),$(g,a,h),S(u,g,h),f=!0},p(g,h){const v={};h&2097152&&(v.$$scope={dirty:h,ctx:g}),n.$set(v);const w={};!s&&h&1&&(s=!0,w.value=g[0],pe(()=>s=!1)),!o&&h&16&&(o=!0,w.error=g[4],pe(()=>o=!1)),l.$set(w);const k={};h&2097164&&(k.$$scope={dirty:h,ctx:g}),u.$set(k)},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){A(e,g),g&&b(t),A(n,g),g&&b(i),A(l,g),g&&b(a),A(u,g)}}}function p1e(r){let e,t;return e=new Tt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:r[5],disabled:!r[2]||!r[0],$$slots:{default:[c1e]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function d1e(r,e,t){let n,i,l,s,o,a;ae(r,Ft,T=>t(8,s=T)),ae(r,jt,T=>t(16,o=T)),ae(r,Ps,T=>t(9,a=T));let u,f,c=!1,p,{webhookModal:d}=e;async function g(){var T;try{await Ft.actions.create({name:u,instanceId:n});const E=s.selectedAutomation.constructBlock("TRIGGER",p.stepId,p);Ft.actions.addBlockToAutomation(E),p.stepId==="WEBHOOK"&&d.show,await Ft.actions.save((T=s.selectedAutomation)==null?void 0:T.automation),we.success(`Automation ${u} created`),o(`./${s.selectedAutomation.automation._id}`)}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 w(T){i=T,t(4,i),t(1,c),t(0,u)}const k=()=>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,w,k,I]}class uk extends se{constructor(e){super();oe(this,e,d1e,p1e,ie,{webhookModal:7})}}function m1e(r){let e,t;return e=new uk({props:{webhookModal:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function g1e(r){let e,t,n,i;e=new s1e({});let l={$$slots:{default:[m1e]},$$scope:{ctx:r}};return n=new kt({props:l}),r[2](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(n,s,o),i=!0},p(s,o){const a={};o&10&&(a.$$scope={dirty:o,ctx:s}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){A(e,s),s&&b(t),r[2](null),A(n,s)}}}function _1e(r){let e,t;return e=new _n({props:{title:"Automations",$$slots:{default:[g1e]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function h1e(r){let e,t,n,i,l,s;return t=new Sr({props:{selected:"Automations",$$slots:{default:[_1e]},$$scope:{ctx:r}}}),l=new at({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ft(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","add-button svelte-mcmub4"),y(e,"class","title svelte-mcmub4")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(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),A(t),A(l)}}}function $1e(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 b1e extends se{constructor(e){super();oe(this,e,$1e,h1e,ie,{modal:0,webhookModal:1})}}function fk(r,e,t){const n=r.slice();return n[7]=e[t],n[9]=t,n}function ck(r){let e,t,n,i,l;function s(u){r[6](u)}let o={showTestStatus:!0,block:r[7]};r[2]!==void 0&&(o.showParameters=r[2]),e=new y8({props:o}),K.push(()=>ce(e,"showParameters",s));let a=r[2]&&r[2][r[7].id]&&pk(r);return{c(){C(e.$$.fragment),n=R(),a&&a.c(),i=Oe()},m(u,f){S(e,u,f),$(u,n,f),a&&a.m(u,f),$(u,i,f),l=!0},p(u,f){const c={};f&1&&(c.block=u[7]),!t&&f&4&&(t=!0,c.showParameters=u[2],pe(()=>t=!1)),e.$set(c),u[2]&&u[2][u[7].id]?a?(a.p(u,f),f&5&&m(a,1)):(a=pk(u),a.c(),m(a,1),a.m(i.parentNode,i)):a&&(x(),_(a,1,1,()=>{a=null}),ee())},i(u){l||(m(e.$$.fragment,u),m(a),l=!0)},o(u){_(e.$$.fragment,u),_(a),l=!1},d(u){A(e,u),u&&b(n),a&&a.d(u),u&&b(i)}}}function pk(r){var a,u;let e,t,n,i,l,s;e=new Yt({props:{noMargin:!0}});let o=((u=(a=r[3])==null?void 0:a[r[9]])==null?void 0:u.outputs.iterations)&&dk(r);return l=new Sr({props:{quiet:!0,noPadding:!0,selected:"Input",$$slots:{default:[k1e]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),o&&o.c(),n=R(),i=D("div"),C(l.$$.fragment),y(i,"class","tabs svelte-1mnmi2e")},m(f,c){S(e,f,c),$(f,t,c),o&&o.m(f,c),$(f,n,c),$(f,i,c),S(l,i,null),s=!0},p(f,c){var d,g;((g=(d=f[3])==null?void 0:d[f[9]])==null?void 0:g.outputs.iterations)?o?(o.p(f,c),c&8&&m(o,1)):(o=dk(f),o.c(),m(o,1),o.m(n.parentNode,n)):o&&(x(),_(o,1,1,()=>{o=null}),ee());const p={};c&1032&&(p.$$scope={dirty:c,ctx:f}),l.$set(p)},i(f){s||(m(e.$$.fragment,f),m(o),m(l.$$.fragment,f),s=!0)},o(f){_(e.$$.fragment,f),_(o),_(l.$$.fragment,f),s=!1},d(f){A(e,f),f&&b(t),o&&o.d(f),f&&b(n),f&&b(i),A(l)}}}function dk(r){let e,t,n,i,l,s;return t=new at({props:{name:"Reuse"}}),l=new Je({props:{$$slots:{default:[v1e]},$$scope:{ctx:r}}}),{c(){e=D("div"),C(t.$$.fragment),n=R(),i=D("div"),C(l.$$.fragment),ht(i,"margin-left","10px"),ht(e,"display","flex"),ht(e,"padding","10px 10px 0px 12px")},m(o,a){$(o,e,a),S(t,e,null),P(e,n),P(e,i),S(l,i,null),s=!0},p(o,a){const u={};a&1032&&(u.$$scope={dirty:a,ctx:o}),l.$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),A(t),A(l)}}}function v1e(r){var l,s;let e,t=((s=(l=r[3])==null?void 0:l[r[9]])==null?void 0:s.outputs.iterations)+"",n,i;return{c(){e=F("This loop ran "),n=F(t),i=F(" times.")},m(o,a){$(o,e,a),$(o,n,a),$(o,i,a)},p(o,a){var u,f;a&8&&t!==(t=((f=(u=o[3])==null?void 0:u[o[9]])==null?void 0:f.outputs.iterations)+"")&&Ce(n,t)},d(o){o&&b(e),o&&b(n),o&&b(i)}}}function w1e(r){var i,l;let e,t,n;return t=new _i({props:{minHeight:"80px",disabled:!0,value:JSON.stringify((l=(i=r[3])==null?void 0:i[r[9]])==null?void 0:l.inputs,null,2)}}),{c(){e=D("div"),C(t.$$.fragment),ht(e,"padding","10px 10px 10px 10px")},m(s,o){$(s,e,o),S(t,e,null),n=!0},p(s,o){var u,f;const a={};o&8&&(a.value=JSON.stringify((f=(u=s[3])==null?void 0:u[s[9]])==null?void 0:f.inputs,null,2)),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t)}}}function y1e(r){var i,l;let e,t,n;return t=new _i({props:{minHeight:"100px",disabled:!0,value:JSON.stringify((l=(i=r[3])==null?void 0:i[r[9]])==null?void 0:l.outputs,null,2)}}),{c(){e=D("div"),C(t.$$.fragment),ht(e,"padding","10px 10px 10px 10px")},m(s,o){$(s,e,o),S(t,e,null),n=!0},p(s,o){var u,f;const a={};o&8&&(a.value=JSON.stringify((f=(u=s[3])==null?void 0:u[s[9]])==null?void 0:f.outputs,null,2)),t.$set(a)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){_(t.$$.fragment,s),n=!1},d(s){s&&b(e),A(t)}}}function k1e(r){let e,t,n,i;return e=new _n({props:{title:"Input",$$slots:{default:[w1e]},$$scope:{ctx:r}}}),n=new _n({props:{title:"Output",$$slots:{default:[y1e]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(l,s){S(e,l,s),$(l,t,s),S(n,l,s),i=!0},p(l,s){const o={};s&1032&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&1032&&(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){A(e,l),l&&b(t),A(n,l)}}}function mk(r){let e;return{c(){e=D("div"),y(e,"class","separator svelte-1mnmi2e")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function gk(r){let e,t,n,i,l=r[7].stepId!=="LOOP"&&ck(r),s=r[0].length-1!==r[9]&&mk();return{c(){e=D("div"),l&&l.c(),t=R(),s&&s.c(),n=Oe(),y(e,"class","block svelte-1mnmi2e")},m(o,a){$(o,e,a),l&&l.m(e,null),$(o,t,a),s&&s.m(o,a),$(o,n,a),i=!0},p(o,a){o[7].stepId!=="LOOP"?l?(l.p(o,a),a&1&&m(l,1)):(l=ck(o),l.c(),m(l,1),l.m(e,null)):l&&(x(),_(l,1,1,()=>{l=null}),ee()),o[0].length-1!==o[9]?s||(s=mk(),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(o){i||(m(l),i=!0)},o(o){_(l),i=!1},d(o){o&&b(e),l&&l.d(),o&&b(t),s&&s.d(o),o&&b(n)}}}function C1e(r){let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new at({props:{name:"MultipleCheck"}}),a=new at({props:{hoverable:!0,name:"Close"}}),a.$on("click",r[5]),f=new Yt({});let g=r[0],h=[];for(let w=0;w<g.length;w+=1)h[w]=gk(fk(r,g,w));const v=w=>_(h[w],1,1,()=>{h[w]=null});return{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),l.textContent="Test Details",s=R(),o=D("div"),C(a.$$.fragment),u=R(),C(f.$$.fragment),c=R(),p=D("div");for(let w=0;w<h.length;w+=1)h[w].c();ht(l,"padding-left","var(--spacing-l)"),y(t,"class","title-text svelte-1mnmi2e"),ht(o,"padding-right","var(--spacing-xl)"),y(e,"class","title svelte-1mnmi2e"),y(p,"class","container svelte-1mnmi2e")},m(w,k){$(w,e,k),P(e,t),S(n,t,null),P(t,i),P(t,l),P(e,s),P(e,o),S(a,o,null),$(w,u,k),S(f,w,k),$(w,c,k),$(w,p,k);for(let I=0;I<h.length;I+=1)h[I].m(p,null);d=!0},p(w,[k]){if(k&13){g=w[0];let I;for(I=0;I<g.length;I+=1){const T=fk(w,g,I);h[I]?(h[I].p(T,k),m(h[I],1)):(h[I]=gk(T),h[I].c(),m(h[I],1),h[I].m(p,null))}for(x(),I=g.length;I<h.length;I+=1)v(I);ee()}},i(w){if(!d){m(n.$$.fragment,w),m(a.$$.fragment,w),m(f.$$.fragment,w);for(let k=0;k<g.length;k+=1)m(h[k]);d=!0}},o(w){_(n.$$.fragment,w),_(a.$$.fragment,w),_(f.$$.fragment,w),h=h.filter(Boolean);for(let k=0;k<h.length;k+=1)_(h[k]);d=!1},d(w){w&&b(e),A(n),A(a),w&&b(u),A(f,w),w&&b(c),w&&b(p),mt(h,w)}}}function S1e(r,e,t){let n,i;ae(r,Ft,f=>t(1,i=f));let{automation:l}=e,s,o;const a=async()=>{Cn(Ft,i.selectedAutomation.automation.showTestPanel=!1,i)};function u(f){s=f,t(2,s)}return r.$$set=f=>{"automation"in f&&t(4,l=f.automation)},r.$$.update=()=>{var f,c;r.$$.dirty&17&&(t(0,o=[]),l&&(l.definition.trigger&&o.push(l.definition.trigger),t(0,o=o.concat(l.definition.steps||[]).filter(p=>p.stepId!=="LOOP")))),r.$$.dirty&2&&t(3,n=(c=(f=i.selectedAutomation)==null?void 0:f.testResults)==null?void 0:c.steps.filter(p=>p.stepId!=="LOOP"||[]))},[o,i,s,n,l,a,u]}class A1e extends se{constructor(e){super();oe(this,e,S1e,C1e,ie,{automation:4})}}function O1e(r){let e,t,n,i;return n=new ze({props:{gap:"S",justifyItems:"center",$$slots:{default:[P1e]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),y(t,"class","main svelte-374m3f"),y(e,"class","centered svelte-374m3f")},m(l,s){$(l,e,s),P(e,t),S(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),A(n)}}}function E1e(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 T1e(r){let e;return{c(){e=F("You have no automations")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function I1e(r){let e;return{c(){e=F("Let's fix that. Call the bots!")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function L1e(r){let e;return{c(){e=F("Create automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function P1e(r){let e,t,n,i,l,s,o,a,u;return i=new ct({props:{size:"M",$$slots:{default:[T1e]},$$scope:{ctx:r}}}),s=new Ue({props:{size:"M",$$slots:{default:[I1e]},$$scope:{ctx:r}}}),a=new lt({props:{size:"M",cta:!0,$$slots:{default:[L1e]},$$scope:{ctx:r}}}),a.$on("click",r[5]),{c(){e=me("svg"),t=me("use"),n=R(),C(i.$$.fragment),l=R(),C(s.$$.fragment),o=R(),C(a.$$.fragment),Wt(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),P(e,t),$(f,n,c),S(i,f,c),$(f,l,c),S(s,f,c),$(f,o,c),S(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),A(i,f),f&&b(l),A(s,f),f&&b(o),A(a,f)}}}function _k(r){let e,t,n;return t=new A1e({props:{automation:r[2]}}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","setup svelte-374m3f")},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,l){const s={};l&4&&(s.automation=i[2]),t.$set(s)},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function N1e(r){let e,t;return e=new uk({props:{webhookModal:r[1]}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function R1e(r){let e,t;return e=new Jm({}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function M1e(r){var T;let e,t,n,i,l,s,o,a,u,f,c,p,d;n=new b1e({props:{modal:r[0],webhookModal:r[1]}});const g=[E1e,O1e],h=[];function v(E,L){return E[2]?0:1}s=v(r),o=h[s]=g[s](r);let w=((T=r[2])==null?void 0:T.showTestPanel)&&_k(r),k={$$slots:{default:[N1e]},$$scope:{ctx:r}};f=new kt({props:k}),r[6](f);let I={width:"30%",$$slots:{default:[R1e]},$$scope:{ctx:r}};return p=new kt({props:I}),r[7](p),{c(){e=D("div"),t=D("div"),C(n.$$.fragment),i=R(),l=D("div"),o.c(),a=R(),w&&w.c(),u=R(),C(f.$$.fragment),c=R(),C(p.$$.fragment),y(t,"class","nav svelte-374m3f"),y(l,"class","content svelte-374m3f"),y(e,"class","root svelte-374m3f")},m(E,L){$(E,e,L),P(e,t),S(n,t,null),P(e,i),P(e,l),h[s].m(l,null),P(e,a),w&&w.m(e,null),P(e,u),S(f,e,null),P(e,c),S(p,e,null),d=!0},p(E,[L]){var q;const M={};L&1&&(M.modal=E[0]),L&2&&(M.webhookModal=E[1]),n.$set(M);let B=s;s=v(E),s===B?h[s].p(E,L):(x(),_(h[B],1,1,()=>{h[B]=null}),ee(),o=h[s],o?o.p(E,L):(o=h[s]=g[s](E),o.c()),m(o,1),o.m(l,null)),((q=E[2])==null?void 0:q.showTestPanel)?w?(w.p(E,L),L&4&&m(w,1)):(w=_k(E),w.c(),m(w,1),w.m(e,u)):w&&(x(),_(w,1,1,()=>{w=null}),ee());const j={};L&258&&(j.$$scope={dirty:L,ctx:E}),f.$set(j);const U={};L&256&&(U.$$scope={dirty:L,ctx:E}),p.$set(U)},i(E){d||(m(n.$$.fragment,E),m(o),m(w),m(f.$$.fragment,E),m(p.$$.fragment,E),d=!0)},o(E){_(n.$$.fragment,E),_(o),_(w),_(f.$$.fragment,E),_(p.$$.fragment,E),d=!1},d(E){E&&b(e),A(n),h[s].d(),w&&w.d(),r[6](null),A(f),r[7](null),A(p)}}}function D1e(r,e,t){let n,i;ae(r,Ft,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=()=>{var p;r.$$.dirty&8&&t(2,n=((p=i.selectedAutomation)==null?void 0:p.automation)||i.automations[0])},[o,a,n,i,l,u,f,c,s]}class j1e extends se{constructor(e){super();oe(this,e,D1e,M1e,ie,{})}}function B1e(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
|
|
914
|
-
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),C(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),S(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),A(l,f)}}}function z1e(r){let e,t;return e=new Tt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[B1e]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function q1e(r){let e,t,n,i;e=new at({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[z1e]},$$scope:{ctx:r}};return n=new kt({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function U1e(r,e,t){let n,i;ae(r,qe,f=>t(0,i=f));let l,s;const o=async()=>{try{await He.revertAppChanges(n);const f=await He.fetchAppPackage(n);await qe.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 F1e extends se{constructor(e){super();oe(this,e,U1e,q1e,ie,{})}}const V1e="@budibase/client",H1e="1.0.212-alpha.
|
|
914
|
+
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),C(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),S(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),A(l,f)}}}function z1e(r){let e,t;return e=new Tt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[B1e]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(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){A(e,n)}}}function q1e(r){let e,t,n,i;e=new at({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ft(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[z1e]},$$scope:{ctx:r}};return n=new kt({props:l}),r[5](n),{c(){C(e.$$.fragment),t=R(),C(n.$$.fragment)},m(s,o){S(e,s,o),$(s,t,o),S(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){A(e,s),s&&b(t),r[5](null),A(n,s)}}}function U1e(r,e,t){let n,i;ae(r,qe,f=>t(0,i=f));let l,s;const o=async()=>{try{await He.revertAppChanges(n);const f=await He.fetchAppPackage(n);await qe.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 F1e extends se{constructor(e){super();oe(this,e,U1e,q1e,ie,{})}}const V1e="@budibase/client",H1e="1.0.212-alpha.10",W1e="MPL-2.0",G1e="dist/budibase-client.js",Y1e="dist/budibase-client.js",J1e="module",X1e="src/index.js",Q1e={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},K1e={build:"rollup -c","dev:builder":"rollup -cw"},Z1e={"@budibase/bbui":"^1.0.212-alpha.10","@budibase/frontend-core":"^1.0.212-alpha.10","@budibase/string-templates":"^1.0.212-alpha.10","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7",leaflet:"^1.7.1",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},x1e={"@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"},ege="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var js={name:V1e,version:H1e,license:W1e,module:G1e,main:Y1e,type:J1e,svelte:X1e,exports:Q1e,scripts:K1e,dependencies:Z1e,devDependencies:x1e,gitHead:ege};function hk(r){let e,t,n;return t=new at({props:{name:"Refresh",hoverable:!0}}),t.$on("click",function(){ft(r[2].show)&&r[2].show.apply(this,arguments)}),{c(){e=D("div"),C(t.$$.fragment),y(e,"class","icon-wrapper svelte-18djg2h"),le(e,"highlight",r[4])},m(i,l){$(i,e,l),S(t,e,null),n=!0},p(i,l){r=i,l&16&&le(e,"highlight",r[4])},i(i){n||(m(t.$$.fragment,i),n=!0)},o(i){_(t.$$.fragment,i),n=!1},d(i){i&&b(e),A(t)}}}function tge(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[rge]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function nge(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[ige]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function rge(r){let e,t,n=r[1].version+"",i,l;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(` which is the
|
|
915
915
|
latest version available.`)},m(s,o){$(s,e,o),$(s,t,o),P(t,i),$(s,l,o)},p(s,o){o&2&&n!==(n=s[1].version+"")&&Ce(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function ige(r){let e,t,n=r[1].version+"",i,l,s,o;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(`, but version
|
|
916
916
|
`),s=D("b"),s.textContent=`${js.version}`,o=F(` is available. Updates can contain new features,
|
|
917
917
|
performance improvements and bug fixes.`)},m(a,u){$(a,e,u),$(a,t,u),P(t,i),$(a,l,u),$(a,s,u),$(a,o,u)},p(a,u){u&2&&n!==(n=a[1].version+"")&&Ce(i,n)},d(a){a&&b(e),a&&b(t),a&&b(l),a&&b(s),a&&b(o)}}}function $k(r){let e,t;return e=new Ue({props:{size:"S",$$slots:{default:[lge]},$$scope:{ctx:r}}}),{c(){C(e.$$.fragment)},m(n,i){S(e,n,i),t=!0},p(n,i){const l={};i&4098&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function lge(r){let e,t,n=r[1].revertableVersion+"",i,l;return{c(){e=F(`You can revert this app to version
|