@budibase/server 2.8.6-alpha.3 → 2.8.6-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1696,10 +1696,10 @@ Use Save As... to download, then click back to return to this page.`)&&(location
1696
1696
  from.
1697
1697
  `),t1=element("br"),r1=text(`
1698
1698
  Please ensure you have enabled row selection in the table settings.`)},m(o1,i1){insert$1(o1,e1,i1),insert$1(o1,t1,i1),insert$1(o1,r1,i1)},p:noop$5,d(o1){o1&&detach(e1),o1&&detach(t1),o1&&detach(r1)}}}function create_default_slot_2$1E(n1){let e1;return{c(){e1=text("Table")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$2c(n1){let e1;return{c(){e1=text("Export as")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2L(n1){let e1;return{c(){e1=text("Export columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$40(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1;t1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_3$1l]},$$scope:{ctx:n1}}}),i1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_2$1E]},$$scope:{ctx:n1}}});function k1(I1){n1[7](I1)}let S1={options:n1[2]};n1[0].tableComponentId!==void 0&&(S1.value=n1[0].tableComponentId),s1=new Select_1$1({props:S1}),binding_callbacks.push(()=>bind$3(s1,"value",k1)),s1.$on("change",n1[8]),u1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_1$2c]},$$scope:{ctx:n1}}});function C1(I1){n1[9](I1)}let A1={options:n1[3]};n1[0].type!==void 0&&(A1.value=n1[0].type),p1=new Select_1$1({props:A1}),binding_callbacks.push(()=>bind$3(p1,"value",C1)),_1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2L]},$$scope:{ctx:n1}}});function E1(I1){n1[10](I1)}let z1={placeholder:"All columns",options:n1[1]};return n1[0].columns!==void 0&&(z1.value=n1[0].columns),b1=new Multiselect_1({props:z1}),binding_callbacks.push(()=>bind$3(b1,"value",E1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment),m1=space$1(),create_component(_1.$$.fragment),h1=space$1(),create_component(b1.$$.fragment),attr(o1,"class","params svelte-zv65u9"),attr(e1,"class","root svelte-zv65u9")},m(I1,N1){insert$1(I1,e1,N1),mount_component(t1,e1,null),append$1(e1,r1),append$1(e1,o1),mount_component(i1,o1,null),append$1(o1,a1),mount_component(s1,o1,null),append$1(o1,c1),mount_component(u1,o1,null),append$1(o1,f1),mount_component(p1,o1,null),append$1(o1,m1),mount_component(_1,o1,null),append$1(o1,h1),mount_component(b1,o1,null),y1=!0},p(I1,[N1]){const U1={};N1&4096&&(U1.$$scope={dirty:N1,ctx:I1}),t1.$set(U1);const F1={};N1&4096&&(F1.$$scope={dirty:N1,ctx:I1}),i1.$set(F1);const R1={};N1&4&&(R1.options=I1[2]),!l1&&N1&1&&(l1=!0,R1.value=I1[0].tableComponentId,add_flush_callback(()=>l1=!1)),s1.$set(R1);const D1={};N1&4096&&(D1.$$scope={dirty:N1,ctx:I1}),u1.$set(D1);const V1={};!d1&&N1&1&&(d1=!0,V1.value=I1[0].type,add_flush_callback(()=>d1=!1)),p1.$set(V1);const j1={};N1&4096&&(j1.$$scope={dirty:N1,ctx:I1}),_1.$set(j1);const K1={};N1&2&&(K1.options=I1[1]),!$1&&N1&1&&($1=!0,K1.value=I1[0].columns,add_flush_callback(()=>$1=!1)),b1.$set(K1)},i(I1){y1||(transition_in(t1.$$.fragment,I1),transition_in(i1.$$.fragment,I1),transition_in(s1.$$.fragment,I1),transition_in(u1.$$.fragment,I1),transition_in(p1.$$.fragment,I1),transition_in(_1.$$.fragment,I1),transition_in(b1.$$.fragment,I1),y1=!0)},o(I1){transition_out(t1.$$.fragment,I1),transition_out(i1.$$.fragment,I1),transition_out(s1.$$.fragment,I1),transition_out(u1.$$.fragment,I1),transition_out(p1.$$.fragment,I1),transition_out(_1.$$.fragment,I1),transition_out(b1.$$.fragment,I1),y1=!1},d(I1){I1&&detach(e1),destroy_component(t1),destroy_component(i1),destroy_component(s1),destroy_component(u1),destroy_component(p1),destroy_component(_1),destroy_component(b1)}}}function instance$41(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,_1=>t1(6,s1=_1));let{parameters:l1}=e1;const c1=[{label:"CSV",value:"csv"},{label:"JSON",value:"json"}],u1=_1=>{_1!=null&&_1.includes("-")&&(_1=_1.split("-")[0]);const h1=findComponent(s1==null?void 0:s1.props,_1),b1=getDatasourceForProvider(s1,h1),{schema:$1}=getSchemaForDatasource(s1,b1);return Object.keys($1||{})};onMount(()=>{l1.type||t1(0,l1.type="csv",l1)});function f1(_1){n1.$$.not_equal(l1.tableComponentId,_1)&&(l1.tableComponentId=_1,t1(0,l1))}const p1=()=>t1(0,l1.columns=[],l1);function d1(_1){n1.$$.not_equal(l1.type,_1)&&(l1.type=_1,t1(0,l1))}function m1(_1){n1.$$.not_equal(l1.columns,_1)&&(l1.columns=_1,t1(0,l1))}return n1.$$set=_1=>{"parameters"in _1&&t1(0,l1=_1.parameters)},n1.$$.update=()=>{n1.$$.dirty&64&&t1(5,r1=findAllMatchingComponents(s1==null?void 0:s1.props,_1=>_1._component.endsWith("table")).map(_1=>({label:_1._instanceName,value:_1._id}))),n1.$$.dirty&64&&t1(4,o1=findAllMatchingComponents(s1==null?void 0:s1.props,_1=>_1._component.endsWith("tableblock")).map(_1=>({label:_1._instanceName,value:`${_1._id}-table`}))),n1.$$.dirty&48&&t1(2,i1=r1.concat(o1)),n1.$$.dirty&1&&t1(1,a1=u1(l1.tableComponentId))},[l1,a1,i1,c1,o1,r1,s1,f1,p1,d1,m1]}class ExportData extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$41,create_fragment$40,safe_not_equal,{parameters:0})}}const ContinueIf_svelte_svelte_type_style_lang="";function create_default_slot$2K(n1){let e1;return{c(){e1=text(`Configure a condition to be evaluated which can stop further actions from
1699
- being executed.`)},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3$(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1;t1=new Body({props:{size:"S",$$slots:{default:[create_default_slot$2K]},$$scope:{ctx:n1}}});function _1(S1){n1[4](S1)}let h1={options:n1[2],placeholder:null};n1[0].type!==void 0&&(h1.value=n1[0].type),o1=new Select_1$1({props:h1}),binding_callbacks.push(()=>bind$3(o1,"value",_1)),s1=new DrawerBindableInput({props:{placeholder:"Value",value:n1[0].value,bindings:n1[1]}}),s1.$on("change",n1[5]);function b1(S1){n1[6](S1)}let $1={options:n1[3],placeholder:null};n1[0].operator!==void 0&&($1.value=n1[0].operator),c1=new Select_1$1({props:$1}),binding_callbacks.push(()=>bind$3(c1,"value",b1));function y1(S1){n1[7](S1)}let k1={placeholder:"Reference value",bindings:n1[1]};return n1[0].referenceValue!==void 0&&(k1.value=n1[0].referenceValue),p1=new DrawerBindableInput({props:k1}),binding_callbacks.push(()=>bind$3(p1,"value",y1)),p1.$on("change",n1[8]),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment),attr(e1,"class","root svelte-1yfkfsp")},m(S1,C1){insert$1(S1,e1,C1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),append$1(e1,f1),mount_component(p1,e1,null),m1=!0},p(S1,[C1]){const A1={};C1&512&&(A1.$$scope={dirty:C1,ctx:S1}),t1.$set(A1);const E1={};!i1&&C1&1&&(i1=!0,E1.value=S1[0].type,add_flush_callback(()=>i1=!1)),o1.$set(E1);const z1={};C1&1&&(z1.value=S1[0].value),C1&2&&(z1.bindings=S1[1]),s1.$set(z1);const I1={};!u1&&C1&1&&(u1=!0,I1.value=S1[0].operator,add_flush_callback(()=>u1=!1)),c1.$set(I1);const N1={};C1&2&&(N1.bindings=S1[1]),!d1&&C1&1&&(d1=!0,N1.value=S1[0].referenceValue,add_flush_callback(()=>d1=!1)),p1.$set(N1)},i(S1){m1||(transition_in(t1.$$.fragment,S1),transition_in(o1.$$.fragment,S1),transition_in(s1.$$.fragment,S1),transition_in(c1.$$.fragment,S1),transition_in(p1.$$.fragment,S1),m1=!0)},o(S1){transition_out(t1.$$.fragment,S1),transition_out(o1.$$.fragment,S1),transition_out(s1.$$.fragment,S1),transition_out(c1.$$.fragment,S1),transition_out(p1.$$.fragment,S1),m1=!1},d(S1){S1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1),destroy_component(p1)}}}function instance$40(n1,e1,t1){let{parameters:r1}=e1,{bindings:o1}=e1;const i1=[{label:"Continue if",value:"continue"},{label:"Stop if",value:"stop"}],a1=[{label:"Equals",value:"equal"},{label:"Not equals",value:"notEqual"}];onMount(()=>{r1.type||t1(0,r1.type="continue",r1),r1.operator||t1(0,r1.operator="equal",r1)});function s1(p1){n1.$$.not_equal(r1.type,p1)&&(r1.type=p1,t1(0,r1))}const l1=p1=>t1(0,r1.value=p1.detail,r1);function c1(p1){n1.$$.not_equal(r1.operator,p1)&&(r1.operator=p1,t1(0,r1))}function u1(p1){n1.$$.not_equal(r1.referenceValue,p1)&&(r1.referenceValue=p1,t1(0,r1))}const f1=p1=>t1(0,r1.referenceValue=p1.detail,r1);return n1.$$set=p1=>{"parameters"in p1&&t1(0,r1=p1.parameters),"bindings"in p1&&t1(1,o1=p1.bindings)},[r1,o1,i1,a1,s1,l1,c1,u1,f1]}class ContinueIf extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$40,create_fragment$3$,safe_not_equal,{parameters:0,bindings:1})}}const UpdateFieldValue_svelte_svelte_type_style_lang="";function create_default_slot_3$1k(n1){let e1;return{c(){e1=text("Form")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1D(n1){let e1;return{c(){e1=text("Type")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$2b(n1){let e1;return{c(){e1=text("Field")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1L(n1){let e1,t1,r1,o1;return e1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2J]},$$scope:{ctx:n1}}}),r1=new DrawerBindableInput({props:{bindings:n1[1],value:n1[0].value}}),r1.$on("change",n1[12]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&8192&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&2&&(l1.bindings=i1[1]),a1&1&&(l1.value=i1[0].value),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot$2J(n1){let e1;return{c(){e1=text("Value")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3_(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1;t1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_3$1k]},$$scope:{ctx:n1}}});function $1(z1){n1[9](z1)}let y1={options:n1[2],getOptionLabel:func$k,getOptionValue:func_1$g};n1[0].componentId!==void 0&&(y1.value=n1[0].componentId),o1=new Select_1$1({props:y1}),binding_callbacks.push(()=>bind$3(o1,"value",$1)),s1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_2$1D]},$$scope:{ctx:n1}}});function k1(z1){n1[10](z1)}let S1={placeholder:null,options:n1[4]};n1[0].type!==void 0&&(S1.value=n1[0].type),c1=new Select_1$1({props:S1}),binding_callbacks.push(()=>bind$3(c1,"value",k1)),p1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_1$2b]},$$scope:{ctx:n1}}});function C1(z1){n1[11](z1)}let A1={options:n1[3]};n1[0].field!==void 0&&(A1.value=n1[0].field),m1=new Combobox_1({props:A1}),binding_callbacks.push(()=>bind$3(m1,"value",C1));let E1=n1[0].type==="set"&&create_if_block$1L(n1);return{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment),d1=space$1(),create_component(m1.$$.fragment),h1=space$1(),E1&&E1.c(),attr(e1,"class","root svelte-ss4wgk")},m(z1,I1){insert$1(z1,e1,I1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),append$1(e1,f1),mount_component(p1,e1,null),append$1(e1,d1),mount_component(m1,e1,null),append$1(e1,h1),E1&&E1.m(e1,null),b1=!0},p(z1,[I1]){const N1={};I1&8192&&(N1.$$scope={dirty:I1,ctx:z1}),t1.$set(N1);const U1={};I1&4&&(U1.options=z1[2]),!i1&&I1&1&&(i1=!0,U1.value=z1[0].componentId,add_flush_callback(()=>i1=!1)),o1.$set(U1);const F1={};I1&8192&&(F1.$$scope={dirty:I1,ctx:z1}),s1.$set(F1);const R1={};!u1&&I1&1&&(u1=!0,R1.value=z1[0].type,add_flush_callback(()=>u1=!1)),c1.$set(R1);const D1={};I1&8192&&(D1.$$scope={dirty:I1,ctx:z1}),p1.$set(D1);const V1={};I1&8&&(V1.options=z1[3]),!_1&&I1&1&&(_1=!0,V1.value=z1[0].field,add_flush_callback(()=>_1=!1)),m1.$set(V1),z1[0].type==="set"?E1?(E1.p(z1,I1),I1&1&&transition_in(E1,1)):(E1=create_if_block$1L(z1),E1.c(),transition_in(E1,1),E1.m(e1,null)):E1&&(group_outros(),transition_out(E1,1,1,()=>{E1=null}),check_outros())},i(z1){b1||(transition_in(t1.$$.fragment,z1),transition_in(o1.$$.fragment,z1),transition_in(s1.$$.fragment,z1),transition_in(c1.$$.fragment,z1),transition_in(p1.$$.fragment,z1),transition_in(m1.$$.fragment,z1),transition_in(E1),b1=!0)},o(z1){transition_out(t1.$$.fragment,z1),transition_out(o1.$$.fragment,z1),transition_out(s1.$$.fragment,z1),transition_out(c1.$$.fragment,z1),transition_out(p1.$$.fragment,z1),transition_out(m1.$$.fragment,z1),transition_out(E1),b1=!1},d(z1){z1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1),destroy_component(p1),destroy_component(m1),E1&&E1.d()}}}const func$k=n1=>n1._instanceName,func_1$g=n1=>n1._id;function instance$3$(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,store,h1=>t1(7,s1=h1)),component_subscribe(n1,currentAsset,h1=>t1(8,l1=h1));let{parameters:c1}=e1,{bindings:u1=[]}=e1;const f1=[{label:"Set value",value:"set"},{label:"Reset to default value",value:"reset"}];onMount(()=>{c1.type||t1(0,c1.type="set",c1)});function p1(h1){n1.$$.not_equal(c1.componentId,h1)&&(c1.componentId=h1,t1(0,c1))}function d1(h1){n1.$$.not_equal(c1.type,h1)&&(c1.type=h1,t1(0,c1))}function m1(h1){n1.$$.not_equal(c1.field,h1)&&(c1.field=h1,t1(0,c1))}const _1=h1=>t1(0,c1.value=h1.detail,c1);return n1.$$set=h1=>{"parameters"in h1&&t1(0,c1=h1.parameters),"bindings"in h1&&t1(1,u1=h1.bindings)},n1.$$.update=()=>{n1.$$.dirty&257&&t1(6,r1=findComponent(l1.props,c1.componentId)),n1.$$.dirty&64&&t1(5,o1=buildFormSchema(r1)),n1.$$.dirty&32&&t1(3,i1=Object.keys(o1||{})),n1.$$.dirty&384&&t1(2,a1=getActionProviderComponents(l1,s1.selectedComponentId,"ValidateForm"))},[c1,u1,a1,i1,f1,o1,r1,s1,l1,p1,d1,m1,_1]}class UpdateFieldValue extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3$,create_fragment$3_,safe_not_equal,{parameters:0,bindings:1})}}const ScrollTo_svelte_svelte_type_style_lang="";function create_default_slot_1$2a(n1){let e1;return{c(){e1=text("Form")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2I(n1){let e1;return{c(){e1=text("Field")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3Z(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1;t1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_1$2a]},$$scope:{ctx:n1}}});function p1(h1){n1[7](h1)}let d1={options:n1[1],getOptionLabel:func$j,getOptionValue:func_1$f};n1[0].componentId!==void 0&&(d1.value=n1[0].componentId),o1=new Select_1$1({props:d1}),binding_callbacks.push(()=>bind$3(o1,"value",p1)),s1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2I]},$$scope:{ctx:n1}}});function m1(h1){n1[8](h1)}let _1={options:n1[2]};return n1[0].field!==void 0&&(_1.value=n1[0].field),c1=new Combobox_1({props:_1}),binding_callbacks.push(()=>bind$3(c1,"value",m1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),attr(e1,"class","root svelte-ijgk9v")},m(h1,b1){insert$1(h1,e1,b1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),f1=!0},p(h1,[b1]){const $1={};b1&512&&($1.$$scope={dirty:b1,ctx:h1}),t1.$set($1);const y1={};b1&2&&(y1.options=h1[1]),!i1&&b1&1&&(i1=!0,y1.value=h1[0].componentId,add_flush_callback(()=>i1=!1)),o1.$set(y1);const k1={};b1&512&&(k1.$$scope={dirty:b1,ctx:h1}),s1.$set(k1);const S1={};b1&4&&(S1.options=h1[2]),!u1&&b1&1&&(u1=!0,S1.value=h1[0].field,add_flush_callback(()=>u1=!1)),c1.$set(S1)},i(h1){f1||(transition_in(t1.$$.fragment,h1),transition_in(o1.$$.fragment,h1),transition_in(s1.$$.fragment,h1),transition_in(c1.$$.fragment,h1),f1=!0)},o(h1){transition_out(t1.$$.fragment,h1),transition_out(o1.$$.fragment,h1),transition_out(s1.$$.fragment,h1),transition_out(c1.$$.fragment,h1),f1=!1},d(h1){h1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1)}}}const func$j=n1=>n1._instanceName,func_1$f=n1=>n1._id;function instance$3_(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,store,p1=>t1(5,s1=p1)),component_subscribe(n1,currentAsset,p1=>t1(6,l1=p1));let{parameters:c1}=e1;onMount(()=>{c1.type||t1(0,c1.type="top",c1)});function u1(p1){n1.$$.not_equal(c1.componentId,p1)&&(c1.componentId=p1,t1(0,c1))}function f1(p1){n1.$$.not_equal(c1.field,p1)&&(c1.field=p1,t1(0,c1))}return n1.$$set=p1=>{"parameters"in p1&&t1(0,c1=p1.parameters)},n1.$$.update=()=>{n1.$$.dirty&65&&t1(4,r1=findComponent(l1.props,c1.componentId)),n1.$$.dirty&16&&t1(3,o1=buildFormSchema(r1)),n1.$$.dirty&8&&t1(2,i1=Object.keys(o1||{})),n1.$$.dirty&96&&t1(1,a1=getActionProviderComponents(l1,s1.selectedComponentId,"ScrollTo"))},[c1,a1,i1,o1,r1,s1,l1,u1,f1]}class ScrollTo extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3_,create_fragment$3Z,safe_not_equal,{parameters:0})}}const ShowNotification_svelte_svelte_type_style_lang="";function create_default_slot_1$29(n1){let e1;return{c(){e1=text("Type")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2H(n1){let e1;return{c(){e1=text("Message")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3Y(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1;t1=new Label({props:{$$slots:{default:[create_default_slot_1$29]},$$scope:{ctx:n1}}});function h1(k1){n1[3](k1)}let b1={options:n1[2],placeholder:null};n1[0].type!==void 0&&(b1.value=n1[0].type),o1=new Select_1$1({props:b1}),binding_callbacks.push(()=>bind$3(o1,"value",h1)),s1=new Label({props:{$$slots:{default:[create_default_slot$2H]},$$scope:{ctx:n1}}}),c1=new DrawerBindableInput({props:{bindings:n1[1],value:n1[0].message}}),c1.$on("change",n1[4]),f1=new Label({});function $1(k1){n1[5](k1)}let y1={text:"Auto dismiss"};return n1[0].autoDismiss!==void 0&&(y1.value=n1[0].autoDismiss),d1=new Checkbox_1({props:y1}),binding_callbacks.push(()=>bind$3(d1,"value",$1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),u1=space$1(),create_component(f1.$$.fragment),p1=space$1(),create_component(d1.$$.fragment),attr(e1,"class","root svelte-ss4wgk")},m(k1,S1){insert$1(k1,e1,S1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),append$1(e1,u1),mount_component(f1,e1,null),append$1(e1,p1),mount_component(d1,e1,null),_1=!0},p(k1,[S1]){const C1={};S1&64&&(C1.$$scope={dirty:S1,ctx:k1}),t1.$set(C1);const A1={};!i1&&S1&1&&(i1=!0,A1.value=k1[0].type,add_flush_callback(()=>i1=!1)),o1.$set(A1);const E1={};S1&64&&(E1.$$scope={dirty:S1,ctx:k1}),s1.$set(E1);const z1={};S1&2&&(z1.bindings=k1[1]),S1&1&&(z1.value=k1[0].message),c1.$set(z1);const I1={};!m1&&S1&1&&(m1=!0,I1.value=k1[0].autoDismiss,add_flush_callback(()=>m1=!1)),d1.$set(I1)},i(k1){_1||(transition_in(t1.$$.fragment,k1),transition_in(o1.$$.fragment,k1),transition_in(s1.$$.fragment,k1),transition_in(c1.$$.fragment,k1),transition_in(f1.$$.fragment,k1),transition_in(d1.$$.fragment,k1),_1=!0)},o(k1){transition_out(t1.$$.fragment,k1),transition_out(o1.$$.fragment,k1),transition_out(s1.$$.fragment,k1),transition_out(c1.$$.fragment,k1),transition_out(f1.$$.fragment,k1),transition_out(d1.$$.fragment,k1),_1=!1},d(k1){k1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1),destroy_component(f1),destroy_component(d1)}}}function instance$3Z(n1,e1,t1){let{parameters:r1}=e1,{bindings:o1=[]}=e1;const i1=[{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"},{label:"Info",value:"info"}];onMount(()=>{r1.type||t1(0,r1.type="success",r1),r1.autoDismiss==null&&t1(0,r1.autoDismiss=!0,r1)});function a1(c1){n1.$$.not_equal(r1.type,c1)&&(r1.type=c1,t1(0,r1))}const s1=c1=>t1(0,r1.message=c1.detail,r1);function l1(c1){n1.$$.not_equal(r1.autoDismiss,c1)&&(r1.autoDismiss=c1,t1(0,r1))}return n1.$$set=c1=>{"parameters"in c1&&t1(0,r1=c1.parameters),"bindings"in c1&&t1(1,o1=c1.bindings)},[r1,o1,i1,a1,s1,l1]}class ShowNotification extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3Z,create_fragment$3Y,safe_not_equal,{parameters:0,bindings:1})}}const PromptUser_svelte_svelte_type_style_lang="";function create_default_slot_2$1C(n1){let e1;return{c(){e1=text("Enter the message you wish to display to the user.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$28(n1){let e1;return{c(){e1=text("Title")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2G(n1){let e1;return{c(){e1=text("Message")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3X(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1;t1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_2$1C]},$$scope:{ctx:n1}}}),i1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_1$28]},$$scope:{ctx:n1}}});function _1(y1){n1[1](y1)}let h1={placeholder:"Prompt User"};n1[0].customTitleText!==void 0&&(h1.value=n1[0].customTitleText),s1=new Input$5({props:h1}),binding_callbacks.push(()=>bind$3(s1,"value",_1)),u1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2G]},$$scope:{ctx:n1}}});function b1(y1){n1[2](y1)}let $1={placeholder:"Are you sure you want to continue?"};return n1[0].confirmText!==void 0&&($1.value=n1[0].confirmText),p1=new Input$5({props:$1}),binding_callbacks.push(()=>bind$3(p1,"value",b1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment),attr(o1,"class","params svelte-hvj292"),attr(e1,"class","root svelte-hvj292")},m(y1,k1){insert$1(y1,e1,k1),mount_component(t1,e1,null),append$1(e1,r1),append$1(e1,o1),mount_component(i1,o1,null),append$1(o1,a1),mount_component(s1,o1,null),append$1(o1,c1),mount_component(u1,o1,null),append$1(o1,f1),mount_component(p1,o1,null),m1=!0},p(y1,[k1]){const S1={};k1&8&&(S1.$$scope={dirty:k1,ctx:y1}),t1.$set(S1);const C1={};k1&8&&(C1.$$scope={dirty:k1,ctx:y1}),i1.$set(C1);const A1={};!l1&&k1&1&&(l1=!0,A1.value=y1[0].customTitleText,add_flush_callback(()=>l1=!1)),s1.$set(A1);const E1={};k1&8&&(E1.$$scope={dirty:k1,ctx:y1}),u1.$set(E1);const z1={};!d1&&k1&1&&(d1=!0,z1.value=y1[0].confirmText,add_flush_callback(()=>d1=!1)),p1.$set(z1)},i(y1){m1||(transition_in(t1.$$.fragment,y1),transition_in(i1.$$.fragment,y1),transition_in(s1.$$.fragment,y1),transition_in(u1.$$.fragment,y1),transition_in(p1.$$.fragment,y1),m1=!0)},o(y1){transition_out(t1.$$.fragment,y1),transition_out(i1.$$.fragment,y1),transition_out(s1.$$.fragment,y1),transition_out(u1.$$.fragment,y1),transition_out(p1.$$.fragment,y1),m1=!1},d(y1){y1&&detach(e1),destroy_component(t1),destroy_component(i1),destroy_component(s1),destroy_component(u1),destroy_component(p1)}}}function instance$3Y(n1,e1,t1){let{parameters:r1}=e1;onMount(()=>{r1.confirm||t1(0,r1.confirm=!0,r1)});function o1(a1){n1.$$.not_equal(r1.customTitleText,a1)&&(r1.customTitleText=a1,t1(0,r1))}function i1(a1){n1.$$.not_equal(r1.confirmText,a1)&&(r1.confirmText=a1,t1(0,r1))}return n1.$$set=a1=>{"parameters"in a1&&t1(0,r1=a1.parameters)},[r1,o1,i1]}class PromptUser extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3Y,create_fragment$3X,safe_not_equal,{parameters:0})}}const OpenSidePanel_svelte_svelte_type_style_lang="";function create_default_slot$2F(n1){let e1;return{c(){e1=text("Side Panel")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3W(n1){let e1,t1,r1,o1,i1,a1;t1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2F]},$$scope:{ctx:n1}}});function s1(c1){n1[3](c1)}let l1={options:n1[1]};return n1[0].id!==void 0&&(l1.value=n1[0].id),o1=new Select_1$1({props:l1}),binding_callbacks.push(()=>bind$3(o1,"value",s1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","root svelte-ss4wgk")},m(c1,u1){insert$1(c1,e1,u1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),a1=!0},p(c1,[u1]){const f1={};u1&32&&(f1.$$scope={dirty:u1,ctx:c1}),t1.$set(f1);const p1={};u1&2&&(p1.options=c1[1]),!i1&&u1&1&&(i1=!0,p1.value=c1[0].id,add_flush_callback(()=>i1=!1)),o1.$set(p1)},i(c1){a1||(transition_in(t1.$$.fragment,c1),transition_in(o1.$$.fragment,c1),a1=!0)},o(c1){transition_out(t1.$$.fragment,c1),transition_out(o1.$$.fragment,c1),a1=!1},d(c1){c1&&detach(e1),destroy_component(t1),destroy_component(o1)}}}function instance$3X(n1,e1,t1){let r1,o1;component_subscribe(n1,selectedScreen,l1=>t1(2,o1=l1));let{parameters:i1}=e1;const a1=l1=>findAllMatchingComponents(l1.props,u1=>u1._component.endsWith("/sidepanel")).map(u1=>({label:u1._instanceName,value:u1._id}));function s1(l1){n1.$$.not_equal(i1.id,l1)&&(i1.id=l1,t1(0,i1))}return n1.$$set=l1=>{"parameters"in l1&&t1(0,i1=l1.parameters)},n1.$$.update=()=>{n1.$$.dirty&4&&t1(1,r1=a1(o1))},[i1,r1,o1,s1]}class OpenSidePanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3X,create_fragment$3W,safe_not_equal,{parameters:0})}}const CloseSidePanel_svelte_svelte_type_style_lang="";function create_fragment$3V(n1){let e1;return{c(){e1=element("div"),e1.textContent="This action doesn't require any settings.",attr(e1,"class","root svelte-1kwxn4d")},m(t1,r1){insert$1(t1,e1,r1)},p:noop$5,i:noop$5,o:noop$5,d(t1){t1&&detach(e1)}}}class CloseSidePanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,null,create_fragment$3V,safe_not_equal,{})}}const ActionComponents=Object.freeze(Object.defineProperty({__proto__:null,FetchRow,NavigateTo,SaveRow,DeleteRow,ExecuteQuery,TriggerAutomation,ValidateForm,LogOut,ClearForm,CloseScreenModal,ChangeFormStep,UpdateState,RefreshDataProvider,DuplicateRow,S3Upload,ExportData,ContinueIf,UpdateFieldValue,ScrollTo,ShowNotification,PromptUser,OpenSidePanel,CloseSidePanel},Symbol.toStringTag,{value:"Module"})),getAvailableActions=(n1=!1)=>ActionDefinitions.actions.filter(e1=>{var t1;return n1||!e1.dependsOnFeature?!0:((t1=get_store_value(store).clientFeatures)==null?void 0:t1[e1.dependsOnFeature])===!0}).map(e1=>({...e1,component:ActionComponents[e1.component]})).filter(e1=>e1.component!=null),ButtonActionDrawer_svelte_svelte_type_style_lang="";function get_each_context$Q(n1,e1,t1){const r1=n1.slice();return r1[28]=e1[t1],r1[30]=t1,r1}function get_each_context_1$d(n1,e1,t1){const r1=n1.slice();return r1[31]=e1[t1][0],r1[32]=e1[t1][1],r1[34]=t1,r1}function get_each_context_2$5(n1,e1,t1){const r1=n1.slice();return r1[35]=e1[t1],r1}function create_if_block_3$p(n1){let e1=n1[3].id,t1,r1,o1=create_key_block$7(n1);return{c(){o1.c(),t1=empty$1()},m(i1,a1){o1.m(i1,a1),insert$1(i1,t1,a1),r1=!0},p(i1,a1){a1[0]&8&&safe_not_equal(e1,e1=i1[3].id)?(group_outros(),transition_out(o1,1,1,noop$5),check_outros(),o1=create_key_block$7(i1),o1.c(),transition_in(o1,1),o1.m(t1.parentNode,t1)):o1.p(i1,a1)},i(i1){r1||(transition_in(o1),r1=!0)},o(i1){transition_out(o1),r1=!1},d(i1){i1&&detach(t1),o1.d(i1)}}}function create_key_block$7(n1){let e1,t1,r1,o1;function i1(l1){n1[22](l1)}var a1=n1[5];function s1(l1){let c1={bindings:l1[6],nested:l1[1]};return l1[3].parameters!==void 0&&(c1.parameters=l1[3].parameters),{props:c1}}return a1&&(t1=construct_svelte_component(a1,s1(n1)),binding_callbacks.push(()=>bind$3(t1,"parameters",i1))),{c(){e1=element("div"),t1&&create_component(t1.$$.fragment),attr(e1,"class","selected-action-container")},m(l1,c1){insert$1(l1,e1,c1),t1&&mount_component(t1,e1,null),o1=!0},p(l1,c1){const u1={};if(c1[0]&64&&(u1.bindings=l1[6]),c1[0]&2&&(u1.nested=l1[1]),!r1&&c1[0]&8&&(r1=!0,u1.parameters=l1[3].parameters,add_flush_callback(()=>r1=!1)),a1!==(a1=l1[5])){if(t1){group_outros();const f1=t1;transition_out(f1.$$.fragment,1,0,()=>{destroy_component(f1,1)}),check_outros()}a1?(t1=construct_svelte_component(a1,s1(l1)),binding_callbacks.push(()=>bind$3(t1,"parameters",i1)),create_component(t1.$$.fragment),transition_in(t1.$$.fragment,1),mount_component(t1,e1,null)):t1=null}else a1&&t1.$set(u1)},i(l1){o1||(t1&&transition_in(t1.$$.fragment,l1),o1=!0)},o(l1){t1&&transition_out(t1.$$.fragment,l1),o1=!1},d(l1){l1&&detach(e1),t1&&destroy_component(t1)}}}function create_default_slot_4$12(n1){let e1,t1,r1=n1[5]&&!n1[4]&&create_if_block_3$p(n1);return{c(){r1&&r1.c(),e1=empty$1()},m(o1,i1){r1&&r1.m(o1,i1),insert$1(o1,e1,i1),t1=!0},p(o1,i1){o1[5]&&!o1[4]?r1?(r1.p(o1,i1),i1[0]&48&&transition_in(r1,1)):(r1=create_if_block_3$p(o1),r1.c(),transition_in(r1,1),r1.m(e1.parentNode,e1)):r1&&(group_outros(),transition_out(r1,1,1,()=>{r1=null}),check_outros())},i(o1){t1||(transition_in(r1),t1=!0)},o(o1){transition_out(r1),t1=!1},d(o1){r1&&r1.d(o1),o1&&detach(e1)}}}function create_default_slot_3$1j(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,$$slots:{default:[create_default_slot_4$12]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&122|o1[1]&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_1$11(n1){var d1;let e1,t1,r1,o1,i1,a1,s1,l1=((d1=n1[0])==null?void 0:d1.length)>0&&create_if_block_2$F(n1);function c1(m1){n1[20](m1)}let u1={placeholder:"Search"};n1[2]!==void 0&&(u1.value=n1[2]),o1=new Search_1({props:u1}),binding_callbacks.push(()=>bind$3(o1,"value",c1));let f1=Object.entries(n1[7]),p1=[];for(let m1=0;m1<f1.length;m1+=1)p1[m1]=create_each_block_1$d(get_each_context_1$d(n1,f1,m1));return{c(){e1=element("div"),l1&&l1.c(),t1=space$1(),r1=element("div"),create_component(o1.$$.fragment),a1=space$1();for(let m1=0;m1<p1.length;m1+=1)p1[m1].c();attr(r1,"class","search-wrap svelte-28n6ts"),attr(e1,"class","actions-list svelte-28n6ts")},m(m1,_1){insert$1(m1,e1,_1),l1&&l1.m(e1,null),append$1(e1,t1),append$1(e1,r1),mount_component(o1,r1,null),append$1(e1,a1);for(let h1=0;h1<p1.length;h1+=1)p1[h1].m(e1,null);s1=!0},p(m1,_1){var b1;((b1=m1[0])==null?void 0:b1.length)>0?l1?(l1.p(m1,_1),_1[0]&1&&transition_in(l1,1)):(l1=create_if_block_2$F(m1),l1.c(),transition_in(l1,1),l1.m(e1,t1)):l1&&(group_outros(),transition_out(l1,1,1,()=>{l1=null}),check_outros());const h1={};if(!i1&&_1[0]&4&&(i1=!0,h1.value=m1[2],add_flush_callback(()=>i1=!1)),o1.$set(h1),_1[0]&2176){f1=Object.entries(m1[7]);let $1;for($1=0;$1<f1.length;$1+=1){const y1=get_each_context_1$d(m1,f1,$1);p1[$1]?p1[$1].p(y1,_1):(p1[$1]=create_each_block_1$d(y1),p1[$1].c(),p1[$1].m(e1,null))}for(;$1<p1.length;$1+=1)p1[$1].d(1);p1.length=f1.length}},i(m1){s1||(transition_in(l1),transition_in(o1.$$.fragment,m1),s1=!0)},o(m1){transition_out(l1),transition_out(o1.$$.fragment,m1),s1=!1},d(m1){m1&&detach(e1),l1&&l1.d(),destroy_component(o1),destroy_each(p1,m1)}}}function create_if_block_2$F(n1){let e1,t1,r1;return t1=new ActionButton({props:{secondary:!0,icon:"ArrowLeft",$$slots:{default:[create_default_slot_2$1B]},$$scope:{ctx:n1}}}),t1.$on("click",n1[9]),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","svelte-28n6ts")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1[1]&128&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_default_slot_2$1B(n1){let e1;return{c(){e1=text("Back")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block_2$5(n1){let e1,t1,r1=n1[35].name+"",o1,i1,a1;return{c(){e1=element("li"),t1=element("span"),o1=text(r1),attr(t1,"class","action-name svelte-28n6ts"),attr(e1,"class","svelte-28n6ts")},m(s1,l1){insert$1(s1,e1,l1),append$1(e1,t1),append$1(t1,o1),i1||(a1=listen(e1,"click",function(){is_function(n1[11](n1[35]))&&n1[11](n1[35]).apply(this,arguments)}),i1=!0)},p(s1,l1){n1=s1,l1[0]&128&&r1!==(r1=n1[35].name+"")&&set_data(o1,r1)},d(s1){s1&&detach(e1),i1=!1,a1()}}}function create_each_block_1$d(n1){let e1,t1=n1[31]+"",r1,o1,i1,a1,s1=n1[32],l1=[];for(let c1=0;c1<s1.length;c1+=1)l1[c1]=create_each_block_2$5(get_each_context_2$5(n1,s1,c1));return{c(){e1=element("div"),r1=text(t1),o1=space$1(),i1=element("ul");for(let c1=0;c1<l1.length;c1+=1)l1[c1].c();a1=space$1(),attr(e1,"class","heading svelte-28n6ts"),toggle_class(e1,"top-entry",n1[34]===0),attr(i1,"class","svelte-28n6ts")},m(c1,u1){insert$1(c1,e1,u1),append$1(e1,r1),insert$1(c1,o1,u1),insert$1(c1,i1,u1);for(let f1=0;f1<l1.length;f1+=1)l1[f1].m(i1,null);append$1(i1,a1)},p(c1,u1){if(u1[0]&128&&t1!==(t1=c1[31]+"")&&set_data(r1,t1),u1[0]&2176){s1=c1[32];let f1;for(f1=0;f1<s1.length;f1+=1){const p1=get_each_context_2$5(c1,s1,f1);l1[f1]?l1[f1].p(p1,u1):(l1[f1]=create_each_block_2$5(p1),l1[f1].c(),l1[f1].m(i1,a1))}for(;f1<l1.length;f1+=1)l1[f1].d(1);l1.length=s1.length}},d(c1){c1&&detach(e1),c1&&detach(o1),c1&&detach(i1),destroy_each(l1,c1)}}}function create_if_block$1K(n1){let e1,t1,r1,o1,i1=[],a1=new Map,s1,l1,c1,u1;t1=new Button({props:{secondary:!0,$$slots:{default:[create_default_slot_1$27]},$$scope:{ctx:n1}}}),t1.$on("click",n1[9]);let f1=n1[0];const p1=d1=>d1[28].id;for(let d1=0;d1<f1.length;d1+=1){let m1=get_each_context$Q(n1,f1,d1),_1=p1(m1);a1.set(_1,i1[d1]=create_each_block$Q(_1,m1))}return{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),o1=element("div");for(let d1=0;d1<i1.length;d1+=1)i1[d1].c();attr(o1,"class","actions svelte-28n6ts")},m(d1,m1){insert$1(d1,e1,m1),mount_component(t1,e1,null),insert$1(d1,r1,m1),insert$1(d1,o1,m1);for(let _1=0;_1<i1.length;_1+=1)i1[_1].m(o1,null);l1=!0,c1||(u1=[action_destroyer(s1=dndzone.call(null,o1,{items:n1[0],flipDurationMs:flipDurationMs$4,dropTargetStyle:{outline:"none"}})),listen(o1,"consider",n1[12]),listen(o1,"finalize",n1[13])],c1=!0)},p(d1,m1){const _1={};if(m1[1]&128&&(_1.$$scope={dirty:m1,ctx:d1}),t1.$set(_1),m1[0]&1289){f1=d1[0],group_outros();for(let h1=0;h1<i1.length;h1+=1)i1[h1].r();i1=update_keyed_each(i1,m1,p1,1,d1,f1,a1,o1,fix_and_outro_and_destroy_block,create_each_block$Q,null,get_each_context$Q);for(let h1=0;h1<i1.length;h1+=1)i1[h1].a();check_outros()}s1&&is_function(s1.update)&&m1[0]&1&&s1.update.call(null,{items:d1[0],flipDurationMs:flipDurationMs$4,dropTargetStyle:{outline:"none"}})},i(d1){if(!l1){transition_in(t1.$$.fragment,d1);for(let m1=0;m1<f1.length;m1+=1)transition_in(i1[m1]);l1=!0}},o(d1){transition_out(t1.$$.fragment,d1);for(let m1=0;m1<i1.length;m1+=1)transition_out(i1[m1]);l1=!1},d(d1){d1&&detach(e1),destroy_component(t1),d1&&detach(r1),d1&&detach(o1);for(let m1=0;m1<i1.length;m1+=1)i1[m1].d();c1=!1,run_all(u1)}}}function create_default_slot_1$27(n1){let e1;return{c(){e1=text("Add Action")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block$Q(n1,e1){let t1,r1,o1,i1,a1=e1[30]+1+"",s1,l1,c1=e1[28][EVENT_TYPE_KEY]+"",u1,f1,p1,d1,m1,_1=noop$5,h1,b1,$1;r1=new Icon({props:{name:"DragHandle",size:"XL"}});function y1(){return e1[21](e1[30])}return p1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),p1.$on("click",y1),{key:n1,first:null,c(){t1=element("div"),create_component(r1.$$.fragment),o1=space$1(),i1=element("div"),s1=text(a1),l1=text(".\xA0"),u1=text(c1),f1=space$1(),create_component(p1.$$.fragment),d1=space$1(),attr(i1,"class","action-header svelte-28n6ts"),attr(t1,"class","action-container svelte-28n6ts"),toggle_class(t1,"selected",e1[28]===e1[3]),this.first=t1},m(k1,S1){insert$1(k1,t1,S1),mount_component(r1,t1,null),append$1(t1,o1),append$1(t1,i1),append$1(i1,s1),append$1(i1,l1),append$1(i1,u1),append$1(t1,f1),mount_component(p1,t1,null),append$1(t1,d1),h1=!0,b1||($1=listen(t1,"click",function(){is_function(e1[10](e1[28]))&&e1[10](e1[28]).apply(this,arguments)}),b1=!0)},p(k1,S1){e1=k1,(!h1||S1[0]&1)&&a1!==(a1=e1[30]+1+"")&&set_data(s1,a1),(!h1||S1[0]&1)&&c1!==(c1=e1[28][EVENT_TYPE_KEY]+"")&&set_data(u1,c1),(!h1||S1[0]&9)&&toggle_class(t1,"selected",e1[28]===e1[3])},r(){m1=t1.getBoundingClientRect()},f(){fix_position(t1),_1()},a(){_1(),_1=create_animation(t1,m1,flip,{duration:flipDurationMs$4})},i(k1){h1||(transition_in(r1.$$.fragment,k1),transition_in(p1.$$.fragment,k1),h1=!0)},o(k1){transition_out(r1.$$.fragment,k1),transition_out(p1.$$.fragment,k1),h1=!1},d(k1){k1&&detach(t1),destroy_component(r1),destroy_component(p1),b1=!1,$1()}}}function create_default_slot$2E(n1){var a1;let e1,t1,r1,o1=(n1[4]||!((a1=n1[0])!=null&&a1.length))&&create_if_block_1$11(n1),i1=n1[0]&&n1[0].length>0&&!n1[4]&&create_if_block$1K(n1);return{c(){o1&&o1.c(),e1=space$1(),i1&&i1.c(),t1=empty$1()},m(s1,l1){o1&&o1.m(s1,l1),insert$1(s1,e1,l1),i1&&i1.m(s1,l1),insert$1(s1,t1,l1),r1=!0},p(s1,l1){var c1;s1[4]||!((c1=s1[0])!=null&&c1.length)?o1?(o1.p(s1,l1),l1[0]&17&&transition_in(o1,1)):(o1=create_if_block_1$11(s1),o1.c(),transition_in(o1,1),o1.m(e1.parentNode,e1)):o1&&(group_outros(),transition_out(o1,1,1,()=>{o1=null}),check_outros()),s1[0]&&s1[0].length>0&&!s1[4]?i1?(i1.p(s1,l1),l1[0]&17&&transition_in(i1,1)):(i1=create_if_block$1K(s1),i1.c(),transition_in(i1,1),i1.m(t1.parentNode,t1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros())},i(s1){r1||(transition_in(o1),transition_in(i1),r1=!0)},o(s1){transition_out(o1),transition_out(i1),r1=!1},d(s1){o1&&o1.d(s1),s1&&detach(e1),i1&&i1.d(s1),s1&&detach(t1)}}}function create_sidebar_slot(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[create_default_slot$2E]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&157|o1[1]&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3U(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{sidebar:[create_sidebar_slot],default:[create_default_slot_3$1j]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&255|o1[1]&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$4=150,EVENT_TYPE_KEY="##eventHandlerType";function instance$3W(n1,e1,t1){let r1,o1,i1,a1,s1,l1,c1,u1;component_subscribe(n1,store,D1=>t1(18,c1=D1)),component_subscribe(n1,currentAsset,D1=>t1(19,u1=D1));const f1=getAvailableActions();let{key:p1}=e1,{actions:d1}=e1,{bindings:m1=[]}=e1,{nested:_1}=e1,h1,b1=d1!=null&&d1.length?d1[0]:null,y1=(D1=>D1?fp.cloneDeep(D1).filter(V1=>{var j1;return V1[EVENT_TYPE_KEY]==="Update State"&&((j1=V1.parameters)==null?void 0:j1.type)==="set"&&V1.parameters.key}).reduce((V1,j1)=>(V1[j1.id]=j1,V1),{}):[])(d1);const k1=D1=>{const V1=d1.indexOf(b1),j1=D1===V1;d1.splice(D1,1),t1(0,d1),j1&&t1(3,b1=d1!=null&&d1.length?d1[0]:null)},S1=()=>{t1(2,h1=null),t1(4,o1=!o1)},C1=D1=>{const V1={parameters:{},[EVENT_TYPE_KEY]:D1.name,id:shortid.exports.generate()};d1||t1(0,d1=[]),t1(0,d1=[...d1,V1]),t1(3,b1=V1)},A1=D1=>()=>{t1(3,b1=D1)},E1=D1=>{C1(D1),S1()};function z1(D1){t1(0,d1=D1.detail.items)}function I1(D1){t1(0,d1=D1.detail.items)}const N1=(D1,V1,j1)=>{let K1=[],G1=fp.cloneDeep(D1);if(!j1)return[];j1.filter(X1=>{var Q1;return X1[EVENT_TYPE_KEY]==="Update State"&&((Q1=X1.parameters)==null?void 0:Q1.type)==="set"&&X1.parameters.key}).forEach(X1=>{const Q1=makeStateBinding(X1.parameters.key);if(!D1.some(n0=>n0.runtimeBinding===Q1.runtimeBinding)){let n0=y1[X1.id];if(n0){const d0=makeStateBinding(n0.parameters.key);G1=G1.filter(u0=>u0.runtimeBinding!==d0.runtimeBinding)}K1.push(Q1)}});const q1=j1.map((X1,Q1)=>{var a0;if(X1[EVENT_TYPE_KEY]==="Trigger Automation"&&!((a0=X1.parameters)!=null&&a0.synchronous))return Q1}).filter(X1=>X1!==void 0);return K1=(q1?V1.filter((X1,Q1)=>!q1.includes(Q1)):V1).concat(G1).concat(K1),K1};function U1(D1){h1=D1,t1(2,h1)}const F1=D1=>k1(D1);function R1(D1){n1.$$.not_equal(b1.parameters,D1)&&(b1.parameters=D1,t1(3,b1),t1(0,d1))}return n1.$$set=D1=>{"key"in D1&&t1(14,p1=D1.key),"actions"in D1&&t1(0,d1=D1.actions),"bindings"in D1&&t1(15,m1=D1.bindings),"nested"in D1&&t1(1,_1=D1.nested)},n1.$$.update=()=>{var D1;n1.$$.dirty[0]&8&&b1&&!b1.parameters&&t1(3,b1.parameters={},b1),n1.$$.dirty[0]&4&&t1(17,r1=typeof h1=="string"?h1.toLowerCase().trim():""),n1.$$.dirty[0]&1&&t1(4,o1=!(d1!=null&&d1.length)),n1.$$.dirty[0]&131072&&t1(7,i1=f1.reduce((V1,j1)=>{let K1=j1.name.toLowerCase().trim();return r1.length&&K1.indexOf(r1)<0||(V1[j1.type]=V1[j1.type]||[],V1[j1.type].push(j1)),V1},{})),n1.$$.dirty[0]&9&&b1&&!(d1!=null&&d1.includes(b1))&&t1(3,b1=d1==null?void 0:d1[0]),n1.$$.dirty[0]&802825&&t1(16,a1=getEventContextBindings(u1,c1.selectedComponentId,p1,d1,b1==null?void 0:b1.id)),n1.$$.dirty[0]&98305&&t1(6,s1=N1(m1,a1,d1)),n1.$$.dirty[0]&1&&d1&&d1.forEach(V1=>{V1.id||(V1.id=shortid.exports.generate())}),n1.$$.dirty[0]&8&&t1(5,l1=b1&&((D1=f1.find(V1=>V1.name===b1[EVENT_TYPE_KEY]))==null?void 0:D1.component))},[d1,_1,h1,b1,o1,l1,s1,i1,k1,S1,A1,E1,z1,I1,p1,m1,a1,r1,c1,u1,U1,F1,R1]}class ButtonActionDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3W,create_fragment$3U,safe_not_equal,{key:14,actions:0,bindings:15,nested:1},null,[-1,-1])}}const ButtonActionEditor_svelte_svelte_type_style_lang="";function create_default_slot_1$26(n1){let e1;return{c(){e1=text("Define actions")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_description_slot$8(n1){let e1;return{c(){e1=text("Define what actions to run.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2D(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$c(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2D]},$$scope:{ctx:n1}}}),e1.$on("click",n1[8]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&65536&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$b(n1){let e1,t1,r1;function o1(a1){n1[11](a1)}let i1={slot:"body",eventType:n1[1],bindings:n1[2],key:n1[0],nested:n1[3]};return n1[5]!==void 0&&(i1.actions=n1[5]),e1=new ButtonActionDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"actions",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&2&&(l1.eventType=a1[1]),s1&4&&(l1.bindings=a1[2]),s1&1&&(l1.key=a1[0]),s1&8&&(l1.nested=a1[3]),!t1&&s1&32&&(t1=!0,l1.actions=a1[5],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3T(n1){let e1,t1,r1,o1,i1,a1,s1;o1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$26]},$$scope:{ctx:n1}}}),o1.$on("click",n1[7]);let l1={title:"Actions",$$slots:{body:[create_body_slot$b],buttons:[create_buttons_slot$c],description:[create_description_slot$8]},$$scope:{ctx:n1}};return a1=new Drawer({props:l1}),n1[12](a1),{c(){e1=element("div"),t1=text(n1[6]),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),attr(e1,"class","action-count svelte-19enyv5")},m(c1,u1){insert$1(c1,e1,u1),append$1(e1,t1),insert$1(c1,r1,u1),mount_component(o1,c1,u1),insert$1(c1,i1,u1),mount_component(a1,c1,u1),s1=!0},p(c1,[u1]){(!s1||u1&64)&&set_data(t1,c1[6]);const f1={};u1&65536&&(f1.$$scope={dirty:u1,ctx:c1}),o1.$set(f1);const p1={};u1&65583&&(p1.$$scope={dirty:u1,ctx:c1}),a1.$set(p1)},i(c1){s1||(transition_in(o1.$$.fragment,c1),transition_in(a1.$$.fragment,c1),s1=!0)},o(c1){transition_out(o1.$$.fragment,c1),transition_out(a1.$$.fragment,c1),s1=!1},d(c1){c1&&detach(e1),c1&&detach(r1),destroy_component(o1,c1),c1&&detach(i1),n1[12](null),destroy_component(a1,c1)}}}function instance$3V(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,automationStore,y1=>t1(13,i1=y1));const a1=createEventDispatcher();let{key:s1}=e1,{value:l1=[]}=e1,{name:c1}=e1,{bindings:u1}=e1,{nested:f1}=e1,p1,d1;const m1=()=>{t1(5,d1=fp.cloneDeep(l1)),p1.show()},_1=async()=>{const y1=d1.filter(k1=>k1["##eventHandlerType"]==="Trigger Automation");for(let k1 of y1)await h1(k1.parameters);a1("change",d1),notifications.success("Component actions saved."),p1.hide()},h1=async y1=>{var k1;if(!(y1.automationId||!y1.newAutomationName))try{let S1=automationStore.actions.constructBlock("TRIGGER","APP",i1.blockDefinitions.TRIGGER.APP);S1.inputs={fields:Object.keys((k1=y1.fields)!=null?k1:{}).reduce((A1,E1)=>(A1[E1]="string",A1),{})};const C1=await automationStore.actions.create(y1.newAutomationName,S1);y1.automationId=C1._id,delete y1.newAutomationName}catch{notifications.error("Error creating automation")}};function b1(y1){d1=y1,t1(5,d1)}function $1(y1){binding_callbacks[y1?"unshift":"push"](()=>{p1=y1,t1(4,p1)})}return n1.$$set=y1=>{"key"in y1&&t1(0,s1=y1.key),"value"in y1&&t1(9,l1=y1.value),"name"in y1&&t1(1,c1=y1.name),"bindings"in y1&&t1(2,u1=y1.bindings),"nested"in y1&&t1(3,f1=y1.nested)},n1.$$.update=()=>{n1.$$.dirty&512&&t1(10,r1=l1==null?void 0:l1.length),n1.$$.dirty&1024&&t1(6,o1=`${r1||"No"} action${r1!==1?"s":""} set`)},[s1,c1,u1,f1,p1,d1,o1,m1,_1,l1,r1,b1,$1]}class ButtonActionEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3V,create_fragment$3T,safe_not_equal,{key:0,value:9,name:1,bindings:2,nested:3})}}function create_fragment$3S(n1){var r1;let e1,t1;return e1=new Select_1$1({props:{value:(r1=n1[0])==null?void 0:r1.tableId,options:n1[1],getOptionValue:func$i,getOptionLabel:func_1$e}}),e1.$on("change",n1[2]),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,[i1]){var s1;const a1={};i1&1&&(a1.value=(s1=o1[0])==null?void 0:s1.tableId),i1&2&&(a1.options=o1[1]),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}const func$i=n1=>n1.tableId,func_1$e=n1=>n1.label;function instance$3U(n1,e1,t1){let r1,o1;component_subscribe(n1,tables,l1=>t1(3,o1=l1));let{value:i1}=e1;const a1=createEventDispatcher(),s1=l1=>{const c1=r1==null?void 0:r1.find(u1=>u1.tableId===l1.detail);a1("change",c1)};return n1.$$set=l1=>{"value"in l1&&t1(0,i1=l1.value)},n1.$$.update=()=>{n1.$$.dirty&8&&t1(1,r1=o1.list.map(l1=>({label:l1.name,tableId:l1._id,type:"table"})))},[i1,r1,s1,o1]}class TableSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3U,create_fragment$3S,safe_not_equal,{value:0})}}function create_fragment$3R(n1){let e1,t1;return e1=new ColorPicker({props:{value:n1[0],spectrumTheme:n1[1].theme}}),e1.$on("change",n1[2]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.value=r1[0]),o1&2&&(i1.spectrumTheme=r1[1].theme),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3T(n1,e1,t1){let r1;component_subscribe(n1,store,a1=>t1(1,r1=a1));let{value:o1}=e1;function i1(a1){bubble.call(this,n1,a1)}return n1.$$set=a1=>{"value"in a1&&t1(0,o1=a1.value)},[o1,r1,i1]}class ColorPicker_1 extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3T,create_fragment$3R,safe_not_equal,{value:0})}}const iconData={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"]}},IconSelect_svelte_svelte_type_style_lang="";function get_each_context$P(n1,e1,t1){const r1=n1.slice();return r1[29]=e1[t1],r1}function get_each_context_1$c(n1,e1,t1){const r1=n1.slice();return r1[32]=e1[t1],r1[34]=t1,r1}function create_default_slot_2$1A(n1){let e1;return{c(){e1=text(n1[8])},m(t1,r1){insert$1(t1,e1,r1)},p(t1,r1){r1[0]&256&&set_data(e1,t1[8])},d(t1){t1&&detach(e1)}}}function create_if_block_2$E(n1){let e1;return{c(){e1=element("span"),e1.textContent="-"},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block_1$c(n1){let e1,t1=n1[32]+"",r1,o1,i1,a1,s1;function l1(){return n1[20](n1[32])}let c1=n1[34]!==n1[9].length-1&&create_if_block_2$E();return{c(){e1=element("span"),r1=text(t1),o1=space$1(),c1&&c1.c(),i1=empty$1(),attr(e1,"class","letter svelte-vhpvzd"),toggle_class(e1,"letter-selected",n1[32]===n1[2])},m(u1,f1){insert$1(u1,e1,f1),append$1(e1,r1),insert$1(u1,o1,f1),c1&&c1.m(u1,f1),insert$1(u1,i1,f1),a1||(s1=listen(e1,"click",l1),a1=!0)},p(u1,f1){n1=u1,f1[0]&516&&toggle_class(e1,"letter-selected",n1[32]===n1[2])},d(u1){u1&&detach(e1),u1&&detach(o1),c1&&c1.d(u1),u1&&detach(i1),a1=!1,s1()}}}function create_default_slot_1$25(n1){let e1;return{c(){e1=text("Search")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_else_block$C(n1){let e1,t1,r1=`There is no icons for this ${n1[1]?"search":"page"}`,o1;return{c(){e1=element("div"),t1=element("h5"),o1=text(r1),attr(e1,"class","no-icons svelte-vhpvzd")},m(i1,a1){insert$1(i1,e1,a1),append$1(e1,t1),append$1(t1,o1)},p(i1,a1){a1[0]&2&&r1!==(r1=`There is no icons for this ${i1[1]?"search":"page"}`)&&set_data(o1,r1)},d(i1){i1&&detach(e1)}}}function create_if_block$1J(n1){let e1,t1=!n1[5]&&create_if_block_1$10(n1);return{c(){e1=element("div"),t1&&t1.c(),attr(e1,"class","icon-area svelte-vhpvzd")},m(r1,o1){insert$1(r1,e1,o1),t1&&t1.m(e1,null)},p(r1,o1){r1[5]?t1&&(t1.d(1),t1=null):t1?t1.p(r1,o1):(t1=create_if_block_1$10(r1),t1.c(),t1.m(e1,null))},d(r1){r1&&detach(e1),t1&&t1.d()}}}function create_if_block_1$10(n1){let e1,t1=n1[7],r1=[];for(let o1=0;o1<t1.length;o1+=1)r1[o1]=create_each_block$P(get_each_context$P(n1,t1,o1));return{c(){for(let o1=0;o1<r1.length;o1+=1)r1[o1].c();e1=empty$1()},m(o1,i1){for(let a1=0;a1<r1.length;a1+=1)r1[a1].m(o1,i1);insert$1(o1,e1,i1)},p(o1,i1){if(i1[0]&129){t1=o1[7];let a1;for(a1=0;a1<t1.length;a1+=1){const s1=get_each_context$P(o1,t1,a1);r1[a1]?r1[a1].p(s1,i1):(r1[a1]=create_each_block$P(s1),r1[a1].c(),r1[a1].m(e1.parentNode,e1))}for(;a1<r1.length;a1+=1)r1[a1].d(1);r1.length=t1.length}},d(o1){destroy_each(r1,o1),o1&&detach(e1)}}}function create_each_block$P(n1){let e1,t1,r1,o1,i1,a1,s1=n1[29]+"",l1,c1,u1,f1,p1,d1,m1,_1,h1,b1=n1[29]+"",$1,y1,k1,S1,C1;function A1(){return n1[24](n1[29])}function E1(){return n1[25](n1[29])}return{c(){e1=element("div"),t1=element("div"),r1=element("i"),i1=space$1(),a1=element("div"),l1=text(s1),c1=text("-fill"),u1=space$1(),f1=element("div"),p1=element("div"),d1=element("i"),_1=space$1(),h1=element("div"),$1=text(b1),y1=text("-line"),k1=space$1(),attr(r1,"class",o1=null_to_empty(`ri-${n1[29]}-fill ri-xl`)+" svelte-vhpvzd"),attr(t1,"class","icon-preview svelte-vhpvzd"),attr(a1,"class","icon-label svelte-vhpvzd"),attr(e1,"class","icon-container svelte-vhpvzd"),toggle_class(e1,"selected",n1[0]===`ri-${n1[29]}-fill`),attr(d1,"class",m1=null_to_empty(`ri-${n1[29]}-line ri-xl`)+" svelte-vhpvzd"),attr(p1,"class","icon-preview svelte-vhpvzd"),attr(h1,"class","icon-label svelte-vhpvzd"),attr(f1,"class","icon-container svelte-vhpvzd"),toggle_class(f1,"selected",n1[0]===`ri-${n1[29]}-line`)},m(z1,I1){insert$1(z1,e1,I1),append$1(e1,t1),append$1(t1,r1),append$1(e1,i1),append$1(e1,a1),append$1(a1,l1),append$1(a1,c1),insert$1(z1,u1,I1),insert$1(z1,f1,I1),append$1(f1,p1),append$1(p1,d1),append$1(f1,_1),append$1(f1,h1),append$1(h1,$1),append$1(h1,y1),append$1(f1,k1),S1||(C1=[listen(e1,"click",A1),listen(f1,"click",E1)],S1=!0)},p(z1,I1){n1=z1,I1[0]&128&&o1!==(o1=null_to_empty(`ri-${n1[29]}-fill ri-xl`)+" svelte-vhpvzd")&&attr(r1,"class",o1),I1[0]&128&&s1!==(s1=n1[29]+"")&&set_data(l1,s1),I1[0]&129&&toggle_class(e1,"selected",n1[0]===`ri-${n1[29]}-fill`),I1[0]&128&&m1!==(m1=null_to_empty(`ri-${n1[29]}-line ri-xl`)+" svelte-vhpvzd")&&attr(d1,"class",m1),I1[0]&128&&b1!==(b1=n1[29]+"")&&set_data($1,b1),I1[0]&129&&toggle_class(f1,"selected",n1[0]===`ri-${n1[29]}-line`)},d(z1){z1&&detach(e1),z1&&detach(u1),z1&&detach(f1),S1=!1,run_all(C1)}}}function create_default_slot$2C(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1,k1,S1,C1,A1,E1=n1[9],z1=[];for(let D1=0;D1<E1.length;D1+=1)z1[D1]=create_each_block_1$c(get_each_context_1$c(n1,E1,D1));function I1(D1){n1[21](D1)}let N1={thin:!0,placeholder:"Search Icon"};n1[1]!==void 0&&(N1.value=n1[1]),s1=new Input$5({props:N1}),binding_callbacks.push(()=>bind$3(s1,"value",I1)),u1=new Button({props:{secondary:!0,$$slots:{default:[create_default_slot_1$25]},$$scope:{ctx:n1}}}),u1.$on("click",n1[13]);function U1(D1,V1){return D1[7].length>0?create_if_block$1J:create_else_block$C}let F1=U1(n1),R1=F1(n1);return{c(){e1=element("div"),t1=element("div"),r1=element("div");for(let D1=0;D1<z1.length;D1+=1)z1[D1].c();o1=space$1(),i1=element("div"),a1=element("div"),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),f1=space$1(),p1=element("div"),d1=element("div"),m1=element("span"),m1.innerHTML='<i class="page-btn ri-arrow-left-line ri-sm svelte-vhpvzd"></i>',_1=space$1(),h1=element("span"),b1=text(n1[6]),$1=space$1(),y1=element("span"),y1.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',k1=space$1(),R1.c(),attr(r1,"class","alphabet-area svelte-vhpvzd"),attr(a1,"class","input-wrapper svelte-vhpvzd"),attr(i1,"class","search-input svelte-vhpvzd"),attr(d1,"class","pager"),attr(p1,"class","page-area svelte-vhpvzd"),attr(t1,"class","search-area svelte-vhpvzd"),attr(e1,"class","container svelte-vhpvzd")},m(D1,V1){insert$1(D1,e1,V1),append$1(e1,t1),append$1(t1,r1);for(let j1=0;j1<z1.length;j1+=1)z1[j1].m(r1,null);append$1(t1,o1),append$1(t1,i1),append$1(i1,a1),mount_component(s1,a1,null),append$1(i1,c1),mount_component(u1,i1,null),append$1(t1,f1),append$1(t1,p1),append$1(p1,d1),append$1(d1,m1),append$1(d1,_1),append$1(d1,h1),append$1(h1,b1),append$1(d1,$1),append$1(d1,y1),append$1(e1,k1),R1.m(e1,null),S1=!0,C1||(A1=[listen(m1,"click",n1[22]),listen(y1,"click",n1[23])],C1=!0)},p(D1,V1){if(V1[0]&1540){E1=D1[9];let G1;for(G1=0;G1<E1.length;G1+=1){const q1=get_each_context_1$c(D1,E1,G1);z1[G1]?z1[G1].p(q1,V1):(z1[G1]=create_each_block_1$c(q1),z1[G1].c(),z1[G1].m(r1,null))}for(;G1<z1.length;G1+=1)z1[G1].d(1);z1.length=E1.length}const j1={};!l1&&V1[0]&2&&(l1=!0,j1.value=D1[1],add_flush_callback(()=>l1=!1)),s1.$set(j1);const K1={};V1[1]&16&&(K1.$$scope={dirty:V1,ctx:D1}),u1.$set(K1),(!S1||V1[0]&64)&&set_data(b1,D1[6]),F1===(F1=U1(D1))&&R1?R1.p(D1,V1):(R1.d(1),R1=F1(D1),R1&&(R1.c(),R1.m(e1,null)))},i(D1){S1||(transition_in(s1.$$.fragment,D1),transition_in(u1.$$.fragment,D1),S1=!0)},o(D1){transition_out(s1.$$.fragment,D1),transition_out(u1.$$.fragment,D1),S1=!1},d(D1){D1&&detach(e1),destroy_each(z1,D1),destroy_component(s1),destroy_component(u1),R1.d(),C1=!1,run_all(A1)}}}function create_fragment$3Q(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_2$1A]},$$scope:{ctx:n1}}}),t1.$on("click",function(){is_function(n1[4].show)&&n1[4].show.apply(this,arguments)});let a1={anchor:n1[3],$$slots:{default:[create_default_slot$2C]},$$scope:{ctx:n1}};return o1=new Popover({props:a1}),n1[26](o1),o1.$on("open",n1[11]),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment)},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),n1[19](e1),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,l1){n1=s1;const c1={};l1[0]&256|l1[1]&16&&(c1.$$scope={dirty:l1,ctx:n1}),t1.$set(c1);const u1={};l1[0]&8&&(u1.anchor=n1[3]),l1[0]&231|l1[1]&16&&(u1.$$scope={dirty:l1,ctx:n1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),n1[19](null),s1&&detach(r1),n1[26](null),destroy_component(o1,s1)}}}const icons=Object.keys(iconData).reduce((n1,e1)=>[...n1,...Object.keys(iconData[e1])],[]);function findIconByTerm(n1){const e1=new RegExp(`^${n1}`,"i");return icons.filter(t1=>e1.test(t1))}function instance$3S(n1,e1,t1){let r1,o1,i1,a1,s1;const l1=createEventDispatcher();let{value:c1=""}=e1,{maxIconsPerPage:u1=30}=e1,f1="",p1="A",d1=1,m1=findIconByTerm(p1);const _1=["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 h1,b1,$1=!1;async function y1(V1){t1(15,d1=1),t1(1,f1=""),t1(5,$1=!0),t1(2,p1=V1),t1(16,m1=findIconByTerm(V1)),await tick(),t1(5,$1=!1)}async function k1(){t1(5,$1=!0);const V1=m1.findIndex(j1=>j1.value===c1);V1!==-1&&t1(15,d1=Math.ceil(V1/u1)),await tick(),t1(5,$1=!1)}async function S1(){if(c1){const V1=r1.substring(0,1);await y1(V1),await k1()}}async function C1(V1){t1(5,$1=!0),V1&&d1<o1?t1(15,d1++,d1):!V1&&d1>1&&t1(15,d1--,d1),await tick(),t1(5,$1=!1)}async function A1(){t1(15,d1=1),t1(5,$1=!0),t1(16,m1=findIconByTerm(f1)),await tick(),t1(5,$1=!1)}function E1(V1){binding_callbacks[V1?"unshift":"push"](()=>{h1=V1,t1(3,h1)})}const z1=V1=>y1(V1);function I1(V1){f1=V1,t1(1,f1)}const N1=()=>C1(!1),U1=()=>C1(!0),F1=V1=>t1(0,c1=`ri-${V1}-fill`),R1=V1=>t1(0,c1=`ri-${V1}-line`);function D1(V1){binding_callbacks[V1?"unshift":"push"](()=>{b1=V1,t1(4,b1)})}return n1.$$set=V1=>{"value"in V1&&t1(0,c1=V1.value),"maxIconsPerPage"in V1&&t1(14,u1=V1.maxIconsPerPage)},n1.$$.update=()=>{n1.$$.dirty[0]&1&&l1("change",c1),n1.$$.dirty[0]&1&&t1(8,r1=c1?c1.substring(3):"Pick icon"),n1.$$.dirty[0]&81920&&t1(17,o1=Math.ceil(m1.length/u1)),n1.$$.dirty[0]&49152&&t1(18,i1=u1*d1),n1.$$.dirty[0]&344064&&t1(7,a1=m1.slice(i1-u1,i1)),n1.$$.dirty[0]&163840&&t1(6,s1=`Page ${d1} of ${o1}`)},[c1,f1,p1,h1,b1,$1,s1,a1,r1,_1,y1,S1,C1,A1,u1,d1,m1,o1,i1,E1,z1,I1,N1,U1,F1,R1,D1]}class IconSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3S,create_fragment$3Q,safe_not_equal,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function create_fragment$3P(n1){let e1,t1;return e1=new Select_1$1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3R(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,m1=>t1(8,s1=m1));let{componentInstance:l1={}}=e1,{value:c1=""}=e1,{placeholder:u1}=e1;const f1=createEventDispatcher(),p1=(m1,_1)=>!Array.isArray(_1)||_1.indexOf(m1)===-1?null:m1,d1=m1=>{t1(2,a1=p1(m1.detail,i1)),f1("change",a1)};return n1.$$set=m1=>{"componentInstance"in m1&&t1(4,l1=m1.componentInstance),"value"in m1&&t1(5,c1=m1.value),"placeholder"in m1&&t1(0,u1=m1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(s1,l1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(s1,r1).schema),n1.$$.dirty&64&&t1(1,i1=Object.keys(o1||{})),n1.$$.dirty&34&&t1(2,a1=p1(c1,i1))},[u1,i1,a1,d1,l1,c1,o1,r1,s1]}class FieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3R,create_fragment$3P,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3O(n1){let e1,t1;return e1=new Select_1$1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3Q(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,_1=>t1(8,s1=_1));let{componentInstance:l1={}}=e1,{value:c1=""}=e1,{placeholder:u1}=e1;const f1=createEventDispatcher(),p1=_1=>Object.entries(_1||{}).filter(h1=>!UNSORTABLE_TYPES.includes(h1[1].type)).map(h1=>h1[0]),d1=(_1,h1)=>!Array.isArray(h1)||h1.indexOf(_1)===-1?null:_1,m1=_1=>{t1(2,a1=d1(_1.detail,i1)),f1("change",a1)};return n1.$$set=_1=>{"componentInstance"in _1&&t1(4,l1=_1.componentInstance),"value"in _1&&t1(5,c1=_1.value),"placeholder"in _1&&t1(0,u1=_1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(s1,l1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(s1,r1).schema),n1.$$.dirty&64&&t1(1,i1=p1(o1)),n1.$$.dirty&34&&t1(2,a1=d1(c1,i1))},[u1,i1,a1,m1,l1,c1,o1,r1,s1]}class SortableFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3Q,create_fragment$3O,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3N(n1){let e1,t1;return e1=new Multiselect_1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3P(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,m1=>t1(8,s1=m1));let{componentInstance:l1={}}=e1,{value:c1=""}=e1,{placeholder:u1}=e1;const f1=createEventDispatcher(),p1=(m1,_1)=>(Array.isArray(m1)||(m1=[]),m1.filter(h1=>_1.indexOf(h1)!==-1)),d1=m1=>{t1(2,a1=p1(m1.detail,i1)),f1("change",a1)};return n1.$$set=m1=>{"componentInstance"in m1&&t1(4,l1=m1.componentInstance),"value"in m1&&t1(5,c1=m1.value),"placeholder"in m1&&t1(0,u1=m1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(s1,l1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(s1,r1).schema),n1.$$.dirty&64&&t1(1,i1=Object.keys(o1||{})),n1.$$.dirty&34&&t1(2,a1=p1(c1,i1))},[u1,i1,a1,d1,l1,c1,o1,r1,s1]}class MultiFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3P,create_fragment$3N,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3M(n1){let e1,t1;return e1=new Multiselect_1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function getSelectedOption(n1,e1){return Array.isArray(n1)||(n1=[]),n1.filter(t1=>e1.indexOf(t1)!==-1)}function instance$3O(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,tables,_1=>t1(9,s1=_1)),component_subscribe(n1,currentAsset,_1=>t1(8,l1=_1));let{componentInstance:c1={}}=e1,{value:u1=""}=e1,{placeholder:f1}=e1;const p1=createEventDispatcher();function d1(_1,h1){let b1=Object.values(h1);if(!(_1!=null&&_1.tableId))return b1.map(y1=>y1.name);const $1=s1.list.find(y1=>y1._id===_1.tableId);return getFields(b1,{allowLinks:$1==null?void 0:$1.sql}).map(y1=>y1.name)}const m1=_1=>{t1(2,a1=getSelectedOption(_1.detail,i1)),p1("change",a1)};return n1.$$set=_1=>{"componentInstance"in _1&&t1(4,c1=_1.componentInstance),"value"in _1&&t1(5,u1=_1.value),"placeholder"in _1&&t1(0,f1=_1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(l1,c1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(l1,r1).schema),n1.$$.dirty&192&&t1(1,i1=d1(r1,o1||{})),n1.$$.dirty&34&&t1(2,a1=getSelectedOption(u1,i1))},[f1,i1,a1,m1,c1,u1,o1,r1,l1]}class SearchFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3O,create_fragment$3M,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3L(n1){let e1,t1;const r1=[n1[1],{showAllQueries:!0},{showDataProviders:!1},{otherSources:n1[0]}];let o1={};for(let i1=0;i1<r1.length;i1+=1)o1=assign$1(o1,r1[i1]);return e1=new DataSourceSelect({props:o1}),e1.$on("change",n1[2]),{c(){create_component(e1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),t1=!0},p(i1,[a1]){const s1=a1&3?get_spread_update(r1,[a1&2&&get_spread_object(i1[1]),r1[1],r1[2],a1&1&&{otherSources:i1[0]}]):{};e1.$set(s1)},i(i1){t1||(transition_in(e1.$$.fragment,i1),t1=!0)},o(i1){transition_out(e1.$$.fragment,i1),t1=!1},d(i1){destroy_component(e1,i1)}}}function instance$3N(n1,e1,t1){const r1=[{name:"Custom",label:"Custom"}];function o1(i1){bubble.call(this,n1,i1)}return n1.$$set=i1=>{t1(1,e1=assign$1(assign$1({},e1),exclude_internal_props(i1)))},e1=exclude_internal_props(e1),[r1,e1,o1]}class SchemaSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3N,create_fragment$3L,safe_not_equal,{})}}const SectionSelect_svelte_svelte_type_style_lang="";function get_each_context$O(n1,e1,t1){const r1=n1.slice();return r1[8]=e1[t1][0],r1[0]=e1[t1][1],r1}function create_default_slot_3$1i(n1){let e1=n1[4][n1[0]].name+"",t1;return{c(){t1=text(e1)},m(r1,o1){insert$1(r1,t1,o1)},p(r1,o1){o1&1&&e1!==(e1=r1[4][r1[0]].name+"")&&set_data(t1,e1)},d(r1){r1&&detach(t1)}}}function create_default_slot_2$1z(n1){let e1=n1[0].name+"",t1;return{c(){t1=text(e1)},m(r1,o1){insert$1(r1,t1,o1)},p:noop$5,d(r1){r1&&detach(t1)}}}function create_each_block$O(n1){let e1,t1,r1,o1,i1,a1,s1,l1;t1=new Icon({props:{color:"white",size:"L",name:n1[0].icon}}),o1=new Body({props:{size:"XS",$$slots:{default:[create_default_slot_2$1z]},$$scope:{ctx:n1}}});function c1(){return n1[5](n1[8])}return{c(){e1=element("button"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),attr(e1,"class","layout svelte-dl48fo"),toggle_class(e1,"selected",n1[1]===n1[8])},m(u1,f1){insert$1(u1,e1,f1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),a1=!0,s1||(l1=listen(e1,"click",c1),s1=!0)},p(u1,f1){n1=u1;const p1={};f1&2048&&(p1.$$scope={dirty:f1,ctx:n1}),o1.$set(p1),(!a1||f1&18)&&toggle_class(e1,"selected",n1[1]===n1[8])},i(u1){a1||(transition_in(t1.$$.fragment,u1),transition_in(o1.$$.fragment,u1),a1=!0)},o(u1){transition_out(t1.$$.fragment,u1),transition_out(o1.$$.fragment,u1),a1=!1},d(u1){u1&&detach(e1),destroy_component(t1),destroy_component(o1),s1=!1,l1()}}}function create_default_slot_1$24(n1){let e1,t1,r1=Object.entries(n1[4]),o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block$O(get_each_context$O(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){e1=element("div");for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();attr(e1,"class","container svelte-dl48fo")},m(a1,s1){insert$1(a1,e1,s1);for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(e1,null);t1=!0},p(a1,s1){if(s1&18){r1=Object.entries(a1[4]);let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context$O(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block$O(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1,null))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){a1&&detach(e1),destroy_each(o1,a1)}}}function create_default_slot$2B(n1){let e1,t1;return e1=new ModalContent({props:{onConfirm:n1[6],size:"L",title:"Select layout",$$slots:{default:[create_default_slot_1$24]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2&&(i1.onConfirm=r1[6]),o1&2050&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3K(n1){let e1,t1,r1,o1;e1=new ActionButton({props:{$$slots:{default:[create_default_slot_3$1i]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[2].show)&&n1[2].show.apply(this,arguments)});let i1={$$slots:{default:[create_default_slot$2B]},$$scope:{ctx:n1}};return r1=new Modal({props:i1}),n1[7](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&2049&&(l1.$$scope={dirty:s1,ctx:n1}),e1.$set(l1);const c1={};s1&2050&&(c1.$$scope={dirty:s1,ctx:n1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[7](null),destroy_component(r1,a1)}}}function instance$3M(n1,e1,t1){const r1=createEventDispatcher();let{value:o1=""}=e1,i1=o1,a1,s1={mainSidebar:{name:"Main with Sidebar",icon:"ColumnTwoB"},sidebarMain:{name:"Sidebar with Main",icon:"ColumnTwoC"},oneColumn:{name:"One column",icon:"LoupeView"},twoColumns:{name:"Two columns",icon:"ColumnTwoA"},threeColumns:{name:"Three columns",icon:"ViewColumn"}};const l1=f1=>t1(1,i1=f1),c1=()=>r1("change",i1);function u1(f1){binding_callbacks[f1?"unshift":"push"](()=>{a1=f1,t1(2,a1)})}return n1.$$set=f1=>{"value"in f1&&t1(0,o1=f1.value)},[o1,i1,a1,r1,s1,l1,c1,u1]}class SectionSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3M,create_fragment$3K,safe_not_equal,{value:0})}}const FilterEditor_svelte_svelte_type_style_lang="";function create_default_slot_1$23(n1){let e1;return{c(){e1=text(n1[5])},m(t1,r1){insert$1(t1,e1,r1)},p(t1,r1){r1&32&&set_data(e1,t1[5])},d(t1){t1&&detach(e1)}}}function create_default_slot$2A(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$b(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2A]},$$scope:{ctx:n1}}}),e1.$on("click",n1[7]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&32768&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$a(n1){let e1,t1;return e1=new FilterDrawer({props:{slot:"body",filters:n1[0],bindings:n1[1],schemaFields:n1[6],datasource:n1[2]}}),e1.$on("change",n1[11]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1&&(i1.filters=r1[0]),o1&2&&(i1.bindings=r1[1]),o1&64&&(i1.schemaFields=r1[6]),o1&4&&(i1.datasource=r1[2]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3J(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$23]},$$scope:{ctx:n1}}}),t1.$on("click",function(){is_function(n1[3].show)&&n1[3].show.apply(this,arguments)});let a1={title:"Filtering",$$slots:{body:[create_body_slot$a],buttons:[create_buttons_slot$b]},$$scope:{ctx:n1}};return o1=new Drawer({props:a1}),n1[12](o1),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","filter-editor svelte-vu03nw")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,[l1]){n1=s1;const c1={};l1&32800&&(c1.$$scope={dirty:l1,ctx:n1}),t1.$set(c1);const u1={};l1&32855&&(u1.$$scope={dirty:l1,ctx:n1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),s1&&detach(r1),n1[12](null),destroy_component(o1,s1)}}}function instance$3L(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,currentAsset,$1=>t1(10,l1=$1));const c1=createEventDispatcher();let{value:u1=[]}=e1,{componentInstance:f1}=e1,{bindings:p1=[]}=e1,d1;async function m1(){c1("change",r1),notifications.success("Filters saved"),d1.hide()}const _1=$1=>$1!=null&&$1.length?`${$1.length} filter${$1.length===1?"":"s"} set`:"No filters set",h1=$1=>t1(4,r1=$1.detail);function b1($1){binding_callbacks[$1?"unshift":"push"](()=>{d1=$1,t1(3,d1)})}return n1.$$set=$1=>{"value"in $1&&t1(0,u1=$1.value),"componentInstance"in $1&&t1(8,f1=$1.componentInstance),"bindings"in $1&&t1(1,p1=$1.bindings)},n1.$$.update=()=>{var $1;n1.$$.dirty&1&&t1(4,r1=u1),n1.$$.dirty&1280&&t1(2,o1=getDatasourceForProvider(l1,f1)),n1.$$.dirty&1028&&t1(9,i1=($1=getSchemaForDatasource(l1,o1))==null?void 0:$1.schema),n1.$$.dirty&512&&t1(6,a1=Object.values(i1||{})),n1.$$.dirty&1&&t1(5,s1=_1(u1))},[u1,p1,o1,d1,r1,s1,a1,m1,f1,i1,l1,h1,b1]}class FilterEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3L,create_fragment$3J,safe_not_equal,{value:0,componentInstance:8,bindings:1})}}function create_fragment$3I(n1){let e1,t1;return e1=new DrawerBindableCombobox({props:{value:n1[0],bindings:n1[1],placeholder:n1[2],options:n1[3],appendBindingsAsOptions:!1}}),e1.$on("change",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.value=r1[0]),o1&2&&(i1.bindings=r1[1]),o1&4&&(i1.placeholder=r1[2]),o1&8&&(i1.options=r1[3]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3K(n1,e1,t1){let r1,o1;component_subscribe(n1,store,c1=>t1(4,o1=c1));let{value:i1}=e1,{bindings:a1}=e1,{placeholder:s1}=e1;function l1(c1){bubble.call(this,n1,c1)}return n1.$$set=c1=>{"value"in c1&&t1(0,i1=c1.value),"bindings"in c1&&t1(1,a1=c1.bindings),"placeholder"in c1&&t1(2,s1=c1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&16&&t1(3,r1=o1.screens.map(c1=>{var u1;return(u1=c1.routing)==null?void 0:u1.route}).filter(c1=>c1!=null))},[i1,a1,s1,r1,o1,l1]}class URLSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3K,create_fragment$3I,safe_not_equal,{value:0,bindings:1,placeholder:2})}}const OptionsDrawer_svelte_svelte_type_style_lang="";function get_each_context$N(n1,e1,t1){const r1=n1.slice();return r1[6]=e1[t1],r1[7]=e1,r1[8]=t1,r1}function create_if_block_1$$(n1){let e1,t1;return e1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_5$U]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_5$U(n1){let e1;return{c(){e1=text("Add an option to get started.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1I(n1){let e1,t1,r1,o1,i1,a1,s1,l1=[],c1=new Map,u1;t1=new Label({props:{$$slots:{default:[create_default_slot_4$11]},$$scope:{ctx:n1}}}),o1=new Label({props:{$$slots:{default:[create_default_slot_3$1h]},$$scope:{ctx:n1}}});let f1=n1[0];const p1=d1=>d1[6].id;for(let d1=0;d1<f1.length;d1+=1){let m1=get_each_context$N(n1,f1,d1),_1=p1(m1);c1.set(_1,l1[d1]=create_each_block$N(_1,m1))}return{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),a1=element("div"),s1=space$1();for(let d1=0;d1<l1.length;d1+=1)l1[d1].c();attr(e1,"class","options svelte-12ls1u")},m(d1,m1){insert$1(d1,e1,m1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),append$1(e1,a1),append$1(e1,s1);for(let _1=0;_1<l1.length;_1+=1)l1[_1].m(e1,null);u1=!0},p(d1,m1){const _1={};m1&512&&(_1.$$scope={dirty:m1,ctx:d1}),t1.$set(_1);const h1={};m1&512&&(h1.$$scope={dirty:m1,ctx:d1}),o1.$set(h1),m1&3&&(f1=d1[0],group_outros(),l1=update_keyed_each(l1,m1,p1,1,d1,f1,c1,e1,outro_and_destroy_block,create_each_block$N,null,get_each_context$N),check_outros())},i(d1){if(!u1){transition_in(t1.$$.fragment,d1),transition_in(o1.$$.fragment,d1);for(let m1=0;m1<f1.length;m1+=1)transition_in(l1[m1]);u1=!0}},o(d1){transition_out(t1.$$.fragment,d1),transition_out(o1.$$.fragment,d1);for(let m1=0;m1<l1.length;m1+=1)transition_out(l1[m1]);u1=!1},d(d1){d1&&detach(e1),destroy_component(t1),destroy_component(o1);for(let m1=0;m1<l1.length;m1+=1)l1[m1].d()}}}function create_default_slot_4$11(n1){let e1;return{c(){e1=text("Label")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$1h(n1){let e1;return{c(){e1=text("Value")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block$N(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1;function f1(h1){e1[3](h1,e1[6])}let p1={placeholder:"Label"};e1[6].label!==void 0&&(p1.value=e1[6].label),r1=new Input$5({props:p1}),binding_callbacks.push(()=>bind$3(r1,"value",f1));function d1(h1){e1[4](h1,e1[6])}let m1={placeholder:"Value"};e1[6].value!==void 0&&(m1.value=e1[6].value),a1=new Input$5({props:m1}),binding_callbacks.push(()=>bind$3(a1,"value",d1));function _1(){return e1[5](e1[6])}return c1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),c1.$on("click",_1),{key:n1,first:null,c(){t1=empty$1(),create_component(r1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),this.first=t1},m(h1,b1){insert$1(h1,t1,b1),mount_component(r1,h1,b1),insert$1(h1,i1,b1),mount_component(a1,h1,b1),insert$1(h1,l1,b1),mount_component(c1,h1,b1),u1=!0},p(h1,b1){e1=h1;const $1={};!o1&&b1&1&&(o1=!0,$1.value=e1[6].label,add_flush_callback(()=>o1=!1)),r1.$set($1);const y1={};!s1&&b1&1&&(s1=!0,y1.value=e1[6].value,add_flush_callback(()=>s1=!1)),a1.$set(y1)},i(h1){u1||(transition_in(r1.$$.fragment,h1),transition_in(a1.$$.fragment,h1),transition_in(c1.$$.fragment,h1),u1=!0)},o(h1){transition_out(r1.$$.fragment,h1),transition_out(a1.$$.fragment,h1),transition_out(c1.$$.fragment,h1),u1=!1},d(h1){h1&&detach(t1),destroy_component(r1,h1),h1&&detach(i1),destroy_component(a1,h1),h1&&detach(l1),destroy_component(c1,h1)}}}function create_default_slot_2$1y(n1){let e1;return{c(){e1=text("Add Option")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$22(n1){var l1;let e1,t1,r1,o1,i1,a1=!n1[0].length&&create_if_block_1$$(n1),s1=((l1=n1[0])==null?void 0:l1.length)&&create_if_block$1I(n1);return o1=new Button({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[create_default_slot_2$1y]},$$scope:{ctx:n1}}}),o1.$on("click",n1[2]),{c(){a1&&a1.c(),e1=space$1(),s1&&s1.c(),t1=space$1(),r1=element("div"),create_component(o1.$$.fragment)},m(c1,u1){a1&&a1.m(c1,u1),insert$1(c1,e1,u1),s1&&s1.m(c1,u1),insert$1(c1,t1,u1),insert$1(c1,r1,u1),mount_component(o1,r1,null),i1=!0},p(c1,u1){var p1;c1[0].length?a1&&(group_outros(),transition_out(a1,1,1,()=>{a1=null}),check_outros()):a1?u1&1&&transition_in(a1,1):(a1=create_if_block_1$$(c1),a1.c(),transition_in(a1,1),a1.m(e1.parentNode,e1)),(p1=c1[0])!=null&&p1.length?s1?(s1.p(c1,u1),u1&1&&transition_in(s1,1)):(s1=create_if_block$1I(c1),s1.c(),transition_in(s1,1),s1.m(t1.parentNode,t1)):s1&&(group_outros(),transition_out(s1,1,1,()=>{s1=null}),check_outros());const f1={};u1&512&&(f1.$$scope={dirty:u1,ctx:c1}),o1.$set(f1)},i(c1){i1||(transition_in(a1),transition_in(s1),transition_in(o1.$$.fragment,c1),i1=!0)},o(c1){transition_out(a1),transition_out(s1),transition_out(o1.$$.fragment,c1),i1=!1},d(c1){a1&&a1.d(c1),c1&&detach(e1),s1&&s1.d(c1),c1&&detach(t1),c1&&detach(r1),destroy_component(o1)}}}function create_default_slot$2z(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$22]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-12ls1u")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&513&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3H(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2z]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&513&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3J(n1,e1,t1){let{options:r1=[]}=e1;const o1=c1=>{t1(0,r1=r1.filter(u1=>u1.id!==c1))},i1=()=>{t1(0,r1=[...r1,{id:shortid.exports.generate(),label:null,value:null}])};function a1(c1,u1){n1.$$.not_equal(u1.label,c1)&&(u1.label=c1,t1(0,r1))}function s1(c1,u1){n1.$$.not_equal(u1.value,c1)&&(u1.value=c1,t1(0,r1))}const l1=c1=>o1(c1.id);return n1.$$set=c1=>{"options"in c1&&t1(0,r1=c1.options)},[r1,o1,i1,a1,s1,l1]}class OptionsDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3J,create_fragment$3H,safe_not_equal,{options:0})}}function create_default_slot_1$21(n1){let e1;return{c(){e1=text("Define Options")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_description_slot$7(n1){let e1;return{c(){e1=text("Define the options for this picker.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2y(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$a(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2y]},$$scope:{ctx:n1}}}),e1.$on("click",n1[2]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$9(n1){let e1,t1,r1;function o1(a1){n1[4](a1)}let i1={slot:"body"};return n1[1]!==void 0&&(i1.options=n1[1]),e1=new OptionsDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"options",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};!t1&&s1&2&&(t1=!0,l1.options=a1[1],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3G(n1){let e1,t1,r1,o1;e1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$21]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[0].show)&&n1[0].show.apply(this,arguments)});let i1={title:"Options",$$slots:{body:[create_body_slot$9],buttons:[create_buttons_slot$a],description:[create_description_slot$7]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[5](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&128&&(l1.$$scope={dirty:s1,ctx:n1}),e1.$set(l1);const c1={};s1&130&&(c1.$$scope={dirty:s1,ctx:n1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[5](null),destroy_component(r1,a1)}}}function instance$3I(n1,e1,t1){const r1=createEventDispatcher();let{value:o1}=e1,i1,a1=o1||[];const s1=async()=>{t1(1,a1=a1.filter(u1=>u1.value||u1.label));for(let u1=0;u1<a1.length;u1++){let f1=a1[u1];f1.label=f1.label?f1.label:f1.value,f1.value=f1.value?f1.value:f1.label,t1(1,a1[u1]=f1,a1)}r1("change",a1),i1.hide()};function l1(u1){a1=u1,t1(1,a1)}function c1(u1){binding_callbacks[u1?"unshift":"push"](()=>{i1=u1,t1(0,i1)})}return n1.$$set=u1=>{"value"in u1&&t1(3,o1=u1.value)},[i1,a1,s1,o1,l1,c1]}class OptionsEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3I,create_fragment$3G,safe_not_equal,{value:3})}}function create_fragment$3F(n1){let e1,t1;return e1=new Combobox_1({props:{value:n1[0],options:n1[1]}}),e1.$on("change",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.value=r1[0]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3H(n1,e1,t1){let r1,o1;component_subscribe(n1,currentAsset,c1=>t1(4,o1=c1));let{componentInstance:i1}=e1,{value:a1}=e1,{type:s1}=e1;function l1(c1){bubble.call(this,n1,c1)}return n1.$$set=c1=>{"componentInstance"in c1&&t1(2,i1=c1.componentInstance),"value"in c1&&t1(0,a1=c1.value),"type"in c1&&t1(3,s1=c1.type)},n1.$$.update=()=>{n1.$$.dirty&28&&t1(1,r1=getComponentFieldOptions(o1==null?void 0:o1.props,i1==null?void 0:i1._id,s1))},[a1,r1,i1,s1,o1,l1]}class FormFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3H,create_fragment$3F,safe_not_equal,{componentInstance:2,value:0,type:3})}}const ValidationDrawer_svelte_svelte_type_style_lang="";function get_each_context$M(n1,e1,t1){const r1=n1.slice();return r1[31]=e1[t1],r1[32]=e1,r1[33]=t1,r1}function get_each_context_1$b(n1,e1,t1){const r1=n1.slice();return r1[31]=e1[t1],r1}function create_default_slot_7$C(n1){let e1;return{c(){e1=text("Schema validation rules")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_else_block_2$1(n1){let e1,t1;return e1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_6$J]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_7$4(n1){let e1,t1,r1=n1[5],o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block_1$b(get_each_context_1$b(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){e1=element("div");for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();attr(e1,"class","links svelte-1wicvgv")},m(a1,s1){insert$1(a1,e1,s1);for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(e1,null);t1=!0},p(a1,s1){if(s1[0]&50){r1=a1[5];let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context_1$b(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block_1$b(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1,null))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){a1&&detach(e1),destroy_each(o1,a1)}}}function create_default_slot_6$J(n1){let e1;return{c(){e1=text("There are no built-in validation rules from the schema.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block_1$b(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1;return t1=new Select_1$1({props:{placeholder:"Constraint",value:n1[31].constraint,options:n1[4],disabled:!0}}),o1=new Select_1$1({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),a1=new DrawerBindableInput({props:{placeholder:"Constraint value",value:n1[31].value,bindings:n1[1],disabled:!0}}),l1=new DrawerBindableInput({props:{placeholder:"Error message",value:n1[31].error,bindings:n1[1],disabled:!0}}),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),s1=space$1(),create_component(l1.$$.fragment),c1=space$1(),u1=element("div"),f1=space$1(),attr(e1,"class","rule schema svelte-1wicvgv")},m(d1,m1){insert$1(d1,e1,m1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),mount_component(a1,e1,null),append$1(e1,s1),mount_component(l1,e1,null),append$1(e1,c1),append$1(e1,u1),append$1(e1,f1),p1=!0},p(d1,m1){const _1={};m1[0]&32&&(_1.value=d1[31].constraint),m1[0]&16&&(_1.options=d1[4]),t1.$set(_1);const h1={};m1[0]&32&&(h1.value=d1[31].value),m1[0]&2&&(h1.bindings=d1[1]),a1.$set(h1);const b1={};m1[0]&32&&(b1.value=d1[31].error),m1[0]&2&&(b1.bindings=d1[1]),l1.$set(b1)},i(d1){p1||(transition_in(t1.$$.fragment,d1),transition_in(o1.$$.fragment,d1),transition_in(a1.$$.fragment,d1),transition_in(l1.$$.fragment,d1),p1=!0)},o(d1){transition_out(t1.$$.fragment,d1),transition_out(o1.$$.fragment,d1),transition_out(a1.$$.fragment,d1),transition_out(l1.$$.fragment,d1),p1=!1},d(d1){d1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(a1),destroy_component(l1)}}}function create_default_slot_5$T(n1){let e1,t1,r1,o1,i1,a1;e1=new Heading({props:{size:"XS",$$slots:{default:[create_default_slot_7$C]},$$scope:{ctx:n1}}});const s1=[create_if_block_7$4,create_else_block_2$1],l1=[];function c1(u1,f1){var p1;return(p1=u1[5])!=null&&p1.length?0:1}return r1=c1(n1),o1=l1[r1]=s1[r1](n1),{c(){create_component(e1.$$.fragment),t1=space$1(),o1.c(),i1=empty$1()},m(u1,f1){mount_component(e1,u1,f1),insert$1(u1,t1,f1),l1[r1].m(u1,f1),insert$1(u1,i1,f1),a1=!0},p(u1,f1){const p1={};f1[1]&32&&(p1.$$scope={dirty:f1,ctx:u1}),e1.$set(p1);let d1=r1;r1=c1(u1),r1===d1?l1[r1].p(u1,f1):(group_outros(),transition_out(l1[d1],1,1,()=>{l1[d1]=null}),check_outros(),o1=l1[r1],o1?o1.p(u1,f1):(o1=l1[r1]=s1[r1](u1),o1.c()),transition_in(o1,1),o1.m(i1.parentNode,i1))},i(u1){a1||(transition_in(e1.$$.fragment,u1),transition_in(o1),a1=!0)},o(u1){transition_out(e1.$$.fragment,u1),transition_out(o1),a1=!1},d(u1){destroy_component(e1,u1),u1&&detach(t1),l1[r1].d(u1),u1&&detach(i1)}}}function create_default_slot_4$10(n1){let e1;return{c(){e1=text("Custom validation rules")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1H(n1){let e1,t1=[],r1=new Map,o1,i1=n1[0];const a1=s1=>s1[31].id;for(let s1=0;s1<i1.length;s1+=1){let l1=get_each_context$M(n1,i1,s1),c1=a1(l1);r1.set(c1,t1[s1]=create_each_block$M(c1,l1))}return{c(){e1=element("div");for(let s1=0;s1<t1.length;s1+=1)t1[s1].c();attr(e1,"class","links svelte-1wicvgv")},m(s1,l1){insert$1(s1,e1,l1);for(let c1=0;c1<t1.length;c1+=1)t1[c1].m(e1,null);o1=!0},p(s1,l1){l1[0]&415&&(i1=s1[0],group_outros(),t1=update_keyed_each(t1,l1,a1,1,s1,i1,r1,e1,outro_and_destroy_block,create_each_block$M,null,get_each_context$M),check_outros())},i(s1){if(!o1){for(let l1=0;l1<i1.length;l1+=1)transition_in(t1[l1]);o1=!0}},o(s1){for(let l1=0;l1<t1.length;l1+=1)transition_out(t1[l1]);o1=!1},d(s1){s1&&detach(e1);for(let l1=0;l1<t1.length;l1+=1)t1[l1].d()}}}function create_else_block$B(n1){let e1,t1,r1,o1,i1;const a1=[create_if_block_3$o,create_if_block_4$h,create_if_block_5$9,create_if_block_6$4,create_else_block_1$8],s1=[];function l1(c1,u1){return u1[0]&1&&(e1=null),e1==null&&(e1=!!["string","number","options","longform"].includes(c1[31].type)),e1?0:c1[31].type==="array"?1:c1[31].type==="boolean"?2:c1[31].type==="datetime"?3:4}return t1=l1(n1,[-1,-1]),r1=s1[t1]=a1[t1](n1),{c(){r1.c(),o1=empty$1()},m(c1,u1){s1[t1].m(c1,u1),insert$1(c1,o1,u1),i1=!0},p(c1,u1){let f1=t1;t1=l1(c1,u1),t1===f1?s1[t1].p(c1,u1):(group_outros(),transition_out(s1[f1],1,1,()=>{s1[f1]=null}),check_outros(),r1=s1[t1],r1?r1.p(c1,u1):(r1=s1[t1]=a1[t1](c1),r1.c()),transition_in(r1,1),r1.m(o1.parentNode,o1))},i(c1){i1||(transition_in(r1),i1=!0)},o(c1){transition_out(r1),i1=!1},d(c1){s1[t1].d(c1),c1&&detach(o1)}}}function create_if_block_2$D(n1){let e1,t1,r1;function o1(a1){n1[17](a1,n1[31])}let i1={placeholder:"Constraint value"};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new Input$5({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_1$_(n1){let e1,t1;function r1(...o1){return n1[16](n1[31],n1[32],n1[33],...o1)}return e1=new DrawerBindableInput({props:{placeholder:"Constraint value",value:n1[31].value,bindings:n1[1],disabled:n1[31].constraint==="required"}}),e1.$on("change",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.value=n1[31].value),i1[0]&2&&(a1.bindings=n1[1]),i1[0]&1&&(a1.disabled=n1[31].constraint==="required"),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_else_block_1$8(n1){let e1,t1;return e1=new DrawerBindableInput({props:{disabled:!0}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p:noop$5,i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_6$4(n1){let e1,t1,r1;function o1(a1){n1[21](a1,n1[31])}let i1={enableTime:!1,disabled:n1[31].constraint==="required"};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new DatePicker_1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[31].constraint==="required"),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_5$9(n1){let e1,t1,r1;function o1(a1){n1[20](a1,n1[31])}let i1={disabled:n1[31].constraint==="required",options:[{label:"True",value:"true"},{label:"False",value:"false"}]};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new Select_1$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[31].constraint==="required"),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_4$h(n1){let e1,t1;function r1(...o1){return n1[19](n1[31],n1[32],n1[33],...o1)}return e1=new Select_1$1({props:{disabled:n1[31].constraint==="required",options:n1[2].schema[n1[3]].constraints.inclusion,getOptionLabel:func$h,getOptionValue:func_1$d,value:n1[31].value}}),e1.$on("change",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.disabled=n1[31].constraint==="required"),i1[0]&12&&(a1.options=n1[2].schema[n1[3]].constraints.inclusion),i1[0]&1&&(a1.value=n1[31].value),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_if_block_3$o(n1){let e1,t1,r1;function o1(a1){n1[18](a1,n1[31])}let i1={disabled:n1[31].constraint==="required",placeholder:"Constraint value"};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new Input$5({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[31].constraint==="required"),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_each_block$M(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1;function k1(R1){e1[14](R1,e1[31])}let S1={options:e1[4],placeholder:"Constraint"};e1[31].constraint!==void 0&&(S1.value=e1[31].constraint),r1=new Select_1$1({props:S1}),binding_callbacks.push(()=>bind$3(r1,"value",k1));function C1(R1){e1[15](R1,e1[31])}let A1={disabled:e1[31].constraint==="required",placeholder:null,options:["Binding","Value"]};e1[31].valueType!==void 0&&(A1.value=e1[31].valueType),a1=new Select_1$1({props:A1}),binding_callbacks.push(()=>bind$3(a1,"value",C1));const E1=[create_if_block_1$_,create_if_block_2$D,create_else_block$B],z1=[];function I1(R1,D1){return D1[0]&1&&(c1=null),R1[31].valueType==="Binding"?0:(c1==null&&(c1=!!(R1[31].type!=="array"&&["maxUploadSize","maxFileSize","maxLength","minLength","regex","notRegex","contains","notContains"].includes(R1[31].constraint))),c1?1:2)}u1=I1(e1,[-1,-1]),f1=z1[u1]=E1[u1](e1);function N1(...R1){return e1[22](e1[31],e1[32],e1[33],...R1)}d1=new DrawerBindableInput({props:{placeholder:"Error message",value:e1[31].error,bindings:e1[1]}}),d1.$on("change",N1);function U1(){return e1[23](e1[31])}_1=new Icon({props:{name:"Duplicate",hoverable:!0,size:"S"}}),_1.$on("click",U1);function F1(){return e1[24](e1[31])}return b1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),b1.$on("click",F1),{key:n1,first:null,c(){t1=element("div"),create_component(r1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),l1=space$1(),f1.c(),p1=space$1(),create_component(d1.$$.fragment),m1=space$1(),create_component(_1.$$.fragment),h1=space$1(),create_component(b1.$$.fragment),$1=space$1(),attr(t1,"class","rule svelte-1wicvgv"),this.first=t1},m(R1,D1){insert$1(R1,t1,D1),mount_component(r1,t1,null),append$1(t1,i1),mount_component(a1,t1,null),append$1(t1,l1),z1[u1].m(t1,null),append$1(t1,p1),mount_component(d1,t1,null),append$1(t1,m1),mount_component(_1,t1,null),append$1(t1,h1),mount_component(b1,t1,null),append$1(t1,$1),y1=!0},p(R1,D1){e1=R1;const V1={};D1[0]&16&&(V1.options=e1[4]),!o1&&D1[0]&1&&(o1=!0,V1.value=e1[31].constraint,add_flush_callback(()=>o1=!1)),r1.$set(V1);const j1={};D1[0]&1&&(j1.disabled=e1[31].constraint==="required"),!s1&&D1[0]&1&&(s1=!0,j1.value=e1[31].valueType,add_flush_callback(()=>s1=!1)),a1.$set(j1);let K1=u1;u1=I1(e1,D1),u1===K1?z1[u1].p(e1,D1):(group_outros(),transition_out(z1[K1],1,1,()=>{z1[K1]=null}),check_outros(),f1=z1[u1],f1?f1.p(e1,D1):(f1=z1[u1]=E1[u1](e1),f1.c()),transition_in(f1,1),f1.m(t1,p1));const G1={};D1[0]&1&&(G1.value=e1[31].error),D1[0]&2&&(G1.bindings=e1[1]),d1.$set(G1)},i(R1){y1||(transition_in(r1.$$.fragment,R1),transition_in(a1.$$.fragment,R1),transition_in(f1),transition_in(d1.$$.fragment,R1),transition_in(_1.$$.fragment,R1),transition_in(b1.$$.fragment,R1),y1=!0)},o(R1){transition_out(r1.$$.fragment,R1),transition_out(a1.$$.fragment,R1),transition_out(f1),transition_out(d1.$$.fragment,R1),transition_out(_1.$$.fragment,R1),transition_out(b1.$$.fragment,R1),y1=!1},d(R1){R1&&detach(t1),destroy_component(r1),destroy_component(a1),z1[u1].d(),destroy_component(d1),destroy_component(_1),destroy_component(b1)}}}function create_default_slot_3$1g(n1){let e1;return{c(){e1=text("Add Rule")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1x(n1){var l1;let e1,t1,r1,o1,i1,a1;e1=new Heading({props:{size:"XS",$$slots:{default:[create_default_slot_4$10]},$$scope:{ctx:n1}}});let s1=((l1=n1[0])==null?void 0:l1.length)&&create_if_block$1H(n1);return i1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_3$1g]},$$scope:{ctx:n1}}}),i1.$on("click",n1[6]),{c(){create_component(e1.$$.fragment),t1=space$1(),s1&&s1.c(),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment),attr(o1,"class","button")},m(c1,u1){mount_component(e1,c1,u1),insert$1(c1,t1,u1),s1&&s1.m(c1,u1),insert$1(c1,r1,u1),insert$1(c1,o1,u1),mount_component(i1,o1,null),a1=!0},p(c1,u1){var d1;const f1={};u1[1]&32&&(f1.$$scope={dirty:u1,ctx:c1}),e1.$set(f1),(d1=c1[0])!=null&&d1.length?s1?(s1.p(c1,u1),u1[0]&1&&transition_in(s1,1)):(s1=create_if_block$1H(c1),s1.c(),transition_in(s1,1),s1.m(r1.parentNode,r1)):s1&&(group_outros(),transition_out(s1,1,1,()=>{s1=null}),check_outros());const p1={};u1[1]&32&&(p1.$$scope={dirty:u1,ctx:c1}),i1.$set(p1)},i(c1){a1||(transition_in(e1.$$.fragment,c1),transition_in(s1),transition_in(i1.$$.fragment,c1),a1=!0)},o(c1){transition_out(e1.$$.fragment,c1),transition_out(s1),transition_out(i1.$$.fragment,c1),a1=!1},d(c1){destroy_component(e1,c1),c1&&detach(t1),s1&&s1.d(c1),c1&&detach(r1),c1&&detach(o1),destroy_component(i1)}}}function create_default_slot_1$20(n1){var i1;let e1,t1,r1,o1;return e1=new Layout$n({props:{noPadding:!0,gap:(i1=n1[5])!=null&&i1.length?"S":"XS",$$slots:{default:[create_default_slot_5$T]},$$scope:{ctx:n1}}}),r1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_2$1x]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,s1){var u1;const l1={};s1[0]&32&&(l1.gap=(u1=a1[5])!=null&&u1.length?"S":"XS"),s1[0]&50|s1[1]&32&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};s1[0]&31|s1[1]&32&&(c1.$$scope={dirty:s1,ctx:a1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),destroy_component(r1,a1)}}}function create_default_slot$2x(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"M",$$slots:{default:[create_default_slot_1$20]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-1wicvgv")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1[0]&63|i1[1]&32&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3E(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2x]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&63|o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const func$h=n1=>n1,func_1$d=n1=>n1;function instance$3G(n1,e1,t1){let r1,o1,i1,a1,s1,l1,c1;component_subscribe(n1,selectedComponent,K1=>t1(12,l1=K1)),component_subscribe(n1,currentAsset,K1=>t1(13,c1=K1));let{fieldName:u1=null}=e1,{rules:f1=[]}=e1,{bindings:p1=[]}=e1,{type:d1}=e1;const m1={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"},MaxFileSize:{label:"Max file size (MB)",value:"maxFileSize"},MaxUploadSize:{label:"Max total upload size (MB)",value:"maxUploadSize"}},_1={string:[m1.Required,m1.MaxLength,m1.Equal,m1.NotEqual,m1.Regex,m1.NotRegex],number:[m1.Required,m1.MaxValue,m1.MinValue,m1.Equal,m1.NotEqual],boolean:[m1.Required,m1.Equal,m1.NotEqual],datetime:[m1.Required,m1.MaxValue,m1.MinValue,m1.Equal,m1.NotEqual],attachment:[m1.Required,m1.MaxFileSize,m1.MaxUploadSize],link:[m1.Required,m1.Contains,m1.NotContains,m1.MinLength,m1.MaxLength],array:[m1.Required,m1.MinLength,m1.MaxLength,m1.Contains,m1.NotContains]},h1=K1=>_1[K1],b1=(K1,G1)=>{if(!K1||!G1)return null;const q1=findClosestMatchingComponent(K1.props,G1._id,J1=>J1._component.endsWith("/form")||J1._component.endsWith("/formblock")||J1._component.endsWith("/tableblock"));return getSchemaForDatasource(K1,q1==null?void 0:q1.dataSource)},$1=(K1,G1)=>{var Q1,a0,n0,d0,u0,e0;if(!K1||!G1)return[];const q1=(Q1=G1.schema)==null?void 0:Q1[K1],J1=q1==null?void 0:q1.constraints;if(!J1)return[];let X1=[];if((K1===((a0=G1==null?void 0:G1.table)==null?void 0:a0.primaryDisplay)||((n0=J1.presence)==null?void 0:n0.allowEmpty)===!1)&&X1.push({constraint:"required",error:"Required field"}),y1((d0=J1.length)==null?void 0:d0.maximum)){const v0=J1.length.maximum;X1.push({constraint:"maxLength",value:v0,error:`Maximum ${v0} characters`})}if(y1((u0=J1.numericality)==null?void 0:u0.greaterThanOrEqualTo)){const v0=J1.numericality.greaterThanOrEqualTo;X1.push({constraint:"minValue",value:v0,error:`Minimum value is ${v0}`})}if(y1((e0=J1.numericality)==null?void 0:e0.lessThanOrEqualTo)){const v0=J1.numericality.lessThanOrEqualTo;X1.push({constraint:"maxValue",value:v0,error:`Maximum value is ${v0}`})}return X1},y1=K1=>K1!=null&&K1!=="",k1=()=>{t1(0,f1=[...f1||[],{valueType:"Binding",type:a1,id:shortid.exports.generate(),value:a1=="array"?[]:null}])},S1=K1=>{t1(0,f1=f1.filter(G1=>G1.id!==K1))},C1=K1=>{const q1={...f1.find(J1=>J1.id===K1),id:shortid.exports.generate()};t1(0,f1=[...f1,q1])};function A1(K1,G1){n1.$$.not_equal(G1.constraint,K1)&&(G1.constraint=K1,t1(0,f1))}function E1(K1,G1){n1.$$.not_equal(G1.valueType,K1)&&(G1.valueType=K1,t1(0,f1))}const z1=(K1,G1,q1,J1)=>t1(0,G1[q1].value=J1.detail,f1);function I1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}function N1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}const U1=(K1,G1,q1,J1)=>{t1(0,G1[q1].value=J1.detail,f1)};function F1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}function R1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}const D1=(K1,G1,q1,J1)=>t1(0,G1[q1].error=J1.detail,f1),V1=K1=>C1(K1.id),j1=K1=>S1(K1.id);return n1.$$set=K1=>{"fieldName"in K1&&t1(9,u1=K1.fieldName),"rules"in K1&&t1(0,f1=K1.rules),"bindings"in K1&&t1(1,p1=K1.bindings),"type"in K1&&t1(10,d1=K1.type)},n1.$$.update=()=>{n1.$$.dirty[0]&12288&&t1(2,r1=b1(c1,l1)),n1.$$.dirty[0]&4608&&t1(3,o1=u1||(l1==null?void 0:l1.field)),n1.$$.dirty[0]&12&&t1(5,i1=$1(o1,r1||{})),n1.$$.dirty[0]&1024&&t1(11,a1=(d1==null?void 0:d1.split("/")[1])||"string"),n1.$$.dirty[0]&2048&&t1(4,s1=h1(a1))},[f1,p1,r1,o1,s1,i1,k1,S1,C1,u1,d1,a1,l1,c1,A1,E1,z1,I1,N1,U1,F1,R1,D1,V1,j1]}class ValidationDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3G,create_fragment$3E,safe_not_equal,{fieldName:9,rules:0,bindings:1,type:10},null,[-1,-1])}}function create_default_slot_1$1$(n1){let e1;return{c(){e1=text("Configure validation")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_description_slot$6(n1){let e1;return{c(){e1=text("Configure validation rules for this field.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2w(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$9(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2w]},$$scope:{ctx:n1}}}),e1.$on("click",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&512&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$8(n1){let e1,t1,r1;function o1(a1){n1[6](a1)}let i1={slot:"body",type:n1[3],bindings:n1[1],componentDefinition:n1[2]};return n1[0]!==void 0&&(i1.rules=n1[0]),e1=new ValidationDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"rules",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&8&&(l1.type=a1[3]),s1&2&&(l1.bindings=a1[1]),s1&4&&(l1.componentDefinition=a1[2]),!t1&&s1&1&&(t1=!0,l1.rules=a1[0],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3D(n1){let e1,t1,r1,o1;e1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$1$]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[4].show)&&n1[4].show.apply(this,arguments)});let i1={title:"Validation Rules",$$slots:{body:[create_body_slot$8],buttons:[create_buttons_slot$9],description:[create_description_slot$6]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[7](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&512&&(l1.$$scope={dirty:s1,ctx:n1}),e1.$set(l1);const c1={};s1&527&&(c1.$$scope={dirty:s1,ctx:n1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[7](null),destroy_component(r1,a1)}}}function instance$3F(n1,e1,t1){let{value:r1=[]}=e1,{bindings:o1=[]}=e1,{componentDefinition:i1}=e1,{type:a1}=e1,s1;const l1=createEventDispatcher(),c1=()=>{l1("change",r1),s1.hide()};function u1(p1){r1=p1,t1(0,r1)}function f1(p1){binding_callbacks[p1?"unshift":"push"](()=>{s1=p1,t1(4,s1)})}return n1.$$set=p1=>{"value"in p1&&t1(0,r1=p1.value),"bindings"in p1&&t1(1,o1=p1.bindings),"componentDefinition"in p1&&t1(2,i1=p1.componentDefinition),"type"in p1&&t1(3,a1=p1.type)},[r1,o1,i1,a1,s1,c1,u1,f1]}class ValidationEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3F,create_fragment$3D,safe_not_equal,{value:0,bindings:1,componentDefinition:2,type:3})}}const CellDrawer_svelte_svelte_type_style_lang="";function create_default_slot_5$S(n1){let e1;return{c(){e1=text("Background color")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_4$$(n1){let e1,t1,r1,o1;return e1=new Label({props:{$$slots:{default:[create_default_slot_5$S]},$$scope:{ctx:n1}}}),r1=new ColorPicker({props:{value:n1[0].background,alignRight:!0,spectrumTheme:n1[1].theme}}),r1.$on("change",n1[5]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&128&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&1&&(l1.value=i1[0].background),a1&2&&(l1.spectrumTheme=i1[1].theme),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot_3$1f(n1){let e1;return{c(){e1=text("Text color")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1w(n1){let e1,t1,r1,o1;return e1=new Label({props:{$$slots:{default:[create_default_slot_3$1f]},$$scope:{ctx:n1}}}),r1=new ColorPicker({props:{value:n1[0].color,alignRight:!0,spectrumTheme:n1[1].theme}}),r1.$on("change",n1[6]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&128&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&1&&(l1.value=i1[0].color),a1&2&&(l1.spectrumTheme=i1[1].theme),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot_1$1_(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1;function d1(b1){n1[2](b1)}let m1={label:"Width",placeholder:"Auto"};n1[0].width!==void 0&&(m1.value=n1[0].width),e1=new Input$5({props:m1}),binding_callbacks.push(()=>bind$3(e1,"value",d1));function _1(b1){n1[3](b1)}let h1={label:"Alignment",options:["Left","Center","Right"],placeholder:"Default"};return n1[0].align!==void 0&&(h1.value=n1[0].align),o1=new Select_1$1({props:h1}),binding_callbacks.push(()=>bind$3(o1,"value",_1)),s1=new DrawerBindableInput({props:{label:"Value",value:n1[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]",category:`Column: ${n1[0].name}`,icon:"TableColumnMerge"}]}}),s1.$on("change",n1[4]),c1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_4$$]},$$scope:{ctx:n1}}}),f1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_2$1w]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),u1=space$1(),create_component(f1.$$.fragment)},m(b1,$1){mount_component(e1,b1,$1),insert$1(b1,r1,$1),mount_component(o1,b1,$1),insert$1(b1,a1,$1),mount_component(s1,b1,$1),insert$1(b1,l1,$1),mount_component(c1,b1,$1),insert$1(b1,u1,$1),mount_component(f1,b1,$1),p1=!0},p(b1,$1){const y1={};!t1&&$1&1&&(t1=!0,y1.value=b1[0].width,add_flush_callback(()=>t1=!1)),e1.$set(y1);const k1={};!i1&&$1&1&&(i1=!0,k1.value=b1[0].align,add_flush_callback(()=>i1=!1)),o1.$set(k1);const S1={};$1&1&&(S1.value=b1[0].template),$1&1&&(S1.bindings=[{readableBinding:"Value",runtimeBinding:"[value]",category:`Column: ${b1[0].name}`,icon:"TableColumnMerge"}]),s1.$set(S1);const C1={};$1&131&&(C1.$$scope={dirty:$1,ctx:b1}),c1.$set(C1);const A1={};$1&131&&(A1.$$scope={dirty:$1,ctx:b1}),f1.$set(A1)},i(b1){p1||(transition_in(e1.$$.fragment,b1),transition_in(o1.$$.fragment,b1),transition_in(s1.$$.fragment,b1),transition_in(c1.$$.fragment,b1),transition_in(f1.$$.fragment,b1),p1=!0)},o(b1){transition_out(e1.$$.fragment,b1),transition_out(o1.$$.fragment,b1),transition_out(s1.$$.fragment,b1),transition_out(c1.$$.fragment,b1),transition_out(f1.$$.fragment,b1),p1=!1},d(b1){destroy_component(e1,b1),b1&&detach(r1),destroy_component(o1,b1),b1&&detach(a1),destroy_component(s1,b1),b1&&detach(l1),destroy_component(c1,b1),b1&&detach(u1),destroy_component(f1,b1)}}}function create_default_slot$2v(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$1_]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-4eq5in")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&131&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3C(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2v]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&131&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3E(n1,e1,t1){let r1;component_subscribe(n1,store,u1=>t1(1,r1=u1));let{column:o1}=e1;function i1(u1){n1.$$.not_equal(o1.width,u1)&&(o1.width=u1,t1(0,o1))}function a1(u1){n1.$$.not_equal(o1.align,u1)&&(o1.align=u1,t1(0,o1))}const s1=u1=>t1(0,o1.template=u1.detail,o1),l1=u1=>t1(0,o1.background=u1.detail,o1),c1=u1=>t1(0,o1.color=u1.detail,o1);return n1.$$set=u1=>{"column"in u1&&t1(0,o1=u1.column)},[o1,r1,i1,a1,s1,l1,c1]}class CellDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3E,create_fragment$3C,safe_not_equal,{column:0})}}function create_description_slot$5(n1){let e1,t1=n1[0].name+"",r1,o1;return{c(){e1=text('"'),r1=text(t1),o1=text('" column settings')},m(i1,a1){insert$1(i1,e1,a1),insert$1(i1,r1,a1),insert$1(i1,o1,a1)},p(i1,a1){a1&1&&t1!==(t1=i1[0].name+"")&&set_data(r1,t1)},d(i1){i1&&detach(e1),i1&&detach(r1),i1&&detach(o1)}}}function create_default_slot$2u(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$8(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2u]},$$scope:{ctx:n1}}}),e1.$on("click",n1[4]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&256&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$7(n1){let e1,t1,r1;function o1(a1){n1[5](a1)}let i1={slot:"body"};return n1[1]!==void 0&&(i1.column=n1[1]),e1=new CellDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"column",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};!t1&&s1&2&&(t1=!0,l1.column=a1[1],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3B(n1){let e1,t1,r1,o1;e1=new Icon({props:{name:"Settings",hoverable:!0,size:"S"}}),e1.$on("click",n1[3]);let i1={title:"Table Columns",$$slots:{body:[create_body_slot$7],buttons:[create_buttons_slot$8],description:[create_description_slot$5]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[6](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&259&&(l1.$$scope={dirty:s1,ctx:a1}),r1.$set(l1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[6](null),destroy_component(r1,a1)}}}function instance$3D(n1,e1,t1){let{column:r1}=e1,o1,i1;const a1=f1=>{t1(1,o1={...f1})},s1=()=>{a1(r1),i1.show()},l1=()=>{t1(0,r1=o1),i1.hide()};function c1(f1){o1=f1,t1(1,o1)}function u1(f1){binding_callbacks[f1?"unshift":"push"](()=>{i1=f1,t1(2,i1)})}return n1.$$set=f1=>{"column"in f1&&t1(0,r1=f1.column)},n1.$$.update=()=>{n1.$$.dirty&1&&a1(r1)},[r1,o1,i1,s1,l1,c1,u1]}class CellEditor$1 extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3D,create_fragment$3B,safe_not_equal,{column:0})}}const ColumnDrawer_svelte_svelte_type_style_lang$1="";function get_each_context$L(n1,e1,t1){const r1=n1.slice();return r1[21]=e1[t1],r1[22]=e1,r1[23]=t1,r1}function create_else_block$A(n1){let e1,t1,r1,o1;return r1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_8$q]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),t1=element("div"),create_component(r1.$$.fragment),attr(t1,"class","wide svelte-1rhj4t1"),attr(e1,"class","column svelte-1rhj4t1")},m(i1,a1){insert$1(i1,e1,a1),append$1(e1,t1),mount_component(r1,t1,null),o1=!0},p(i1,a1){const s1={};a1&16777216&&(s1.$$scope={dirty:a1,ctx:i1}),r1.$set(s1)},i(i1){o1||(transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(r1.$$.fragment,i1),o1=!1},d(i1){i1&&detach(e1),destroy_component(r1)}}}function create_if_block_1$Z(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_5$R]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&16777231&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_8$q(n1){let e1,t1,r1;return{c(){e1=text(`By default, all columns will automatically be shown.
1699
+ being executed.`)},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3$(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1;t1=new Body({props:{size:"S",$$slots:{default:[create_default_slot$2K]},$$scope:{ctx:n1}}});function _1(S1){n1[4](S1)}let h1={options:n1[2],placeholder:null};n1[0].type!==void 0&&(h1.value=n1[0].type),o1=new Select_1$1({props:h1}),binding_callbacks.push(()=>bind$3(o1,"value",_1)),s1=new DrawerBindableInput({props:{placeholder:"Value",value:n1[0].value,bindings:n1[1]}}),s1.$on("change",n1[5]);function b1(S1){n1[6](S1)}let $1={options:n1[3],placeholder:null};n1[0].operator!==void 0&&($1.value=n1[0].operator),c1=new Select_1$1({props:$1}),binding_callbacks.push(()=>bind$3(c1,"value",b1));function y1(S1){n1[7](S1)}let k1={placeholder:"Reference value",bindings:n1[1]};return n1[0].referenceValue!==void 0&&(k1.value=n1[0].referenceValue),p1=new DrawerBindableInput({props:k1}),binding_callbacks.push(()=>bind$3(p1,"value",y1)),p1.$on("change",n1[8]),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment),attr(e1,"class","root svelte-1yfkfsp")},m(S1,C1){insert$1(S1,e1,C1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),append$1(e1,f1),mount_component(p1,e1,null),m1=!0},p(S1,[C1]){const A1={};C1&512&&(A1.$$scope={dirty:C1,ctx:S1}),t1.$set(A1);const E1={};!i1&&C1&1&&(i1=!0,E1.value=S1[0].type,add_flush_callback(()=>i1=!1)),o1.$set(E1);const z1={};C1&1&&(z1.value=S1[0].value),C1&2&&(z1.bindings=S1[1]),s1.$set(z1);const I1={};!u1&&C1&1&&(u1=!0,I1.value=S1[0].operator,add_flush_callback(()=>u1=!1)),c1.$set(I1);const N1={};C1&2&&(N1.bindings=S1[1]),!d1&&C1&1&&(d1=!0,N1.value=S1[0].referenceValue,add_flush_callback(()=>d1=!1)),p1.$set(N1)},i(S1){m1||(transition_in(t1.$$.fragment,S1),transition_in(o1.$$.fragment,S1),transition_in(s1.$$.fragment,S1),transition_in(c1.$$.fragment,S1),transition_in(p1.$$.fragment,S1),m1=!0)},o(S1){transition_out(t1.$$.fragment,S1),transition_out(o1.$$.fragment,S1),transition_out(s1.$$.fragment,S1),transition_out(c1.$$.fragment,S1),transition_out(p1.$$.fragment,S1),m1=!1},d(S1){S1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1),destroy_component(p1)}}}function instance$40(n1,e1,t1){let{parameters:r1}=e1,{bindings:o1}=e1;const i1=[{label:"Continue if",value:"continue"},{label:"Stop if",value:"stop"}],a1=[{label:"Equals",value:"equal"},{label:"Not equals",value:"notEqual"}];onMount(()=>{r1.type||t1(0,r1.type="continue",r1),r1.operator||t1(0,r1.operator="equal",r1)});function s1(p1){n1.$$.not_equal(r1.type,p1)&&(r1.type=p1,t1(0,r1))}const l1=p1=>t1(0,r1.value=p1.detail,r1);function c1(p1){n1.$$.not_equal(r1.operator,p1)&&(r1.operator=p1,t1(0,r1))}function u1(p1){n1.$$.not_equal(r1.referenceValue,p1)&&(r1.referenceValue=p1,t1(0,r1))}const f1=p1=>t1(0,r1.referenceValue=p1.detail,r1);return n1.$$set=p1=>{"parameters"in p1&&t1(0,r1=p1.parameters),"bindings"in p1&&t1(1,o1=p1.bindings)},[r1,o1,i1,a1,s1,l1,c1,u1,f1]}class ContinueIf extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$40,create_fragment$3$,safe_not_equal,{parameters:0,bindings:1})}}const UpdateFieldValue_svelte_svelte_type_style_lang="";function create_default_slot_3$1k(n1){let e1;return{c(){e1=text("Form")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1D(n1){let e1;return{c(){e1=text("Type")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$2b(n1){let e1;return{c(){e1=text("Field")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1L(n1){let e1,t1,r1,o1;return e1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2J]},$$scope:{ctx:n1}}}),r1=new DrawerBindableInput({props:{bindings:n1[1],value:n1[0].value}}),r1.$on("change",n1[12]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&8192&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&2&&(l1.bindings=i1[1]),a1&1&&(l1.value=i1[0].value),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot$2J(n1){let e1;return{c(){e1=text("Value")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3_(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1;t1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_3$1k]},$$scope:{ctx:n1}}});function $1(z1){n1[9](z1)}let y1={options:n1[2],getOptionLabel:func$k,getOptionValue:func_1$g};n1[0].componentId!==void 0&&(y1.value=n1[0].componentId),o1=new Select_1$1({props:y1}),binding_callbacks.push(()=>bind$3(o1,"value",$1)),s1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_2$1D]},$$scope:{ctx:n1}}});function k1(z1){n1[10](z1)}let S1={placeholder:null,options:n1[4]};n1[0].type!==void 0&&(S1.value=n1[0].type),c1=new Select_1$1({props:S1}),binding_callbacks.push(()=>bind$3(c1,"value",k1)),p1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_1$2b]},$$scope:{ctx:n1}}});function C1(z1){n1[11](z1)}let A1={options:n1[3]};n1[0].field!==void 0&&(A1.value=n1[0].field),m1=new Combobox_1({props:A1}),binding_callbacks.push(()=>bind$3(m1,"value",C1));let E1=n1[0].type==="set"&&create_if_block$1L(n1);return{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment),d1=space$1(),create_component(m1.$$.fragment),h1=space$1(),E1&&E1.c(),attr(e1,"class","root svelte-ss4wgk")},m(z1,I1){insert$1(z1,e1,I1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),append$1(e1,f1),mount_component(p1,e1,null),append$1(e1,d1),mount_component(m1,e1,null),append$1(e1,h1),E1&&E1.m(e1,null),b1=!0},p(z1,[I1]){const N1={};I1&8192&&(N1.$$scope={dirty:I1,ctx:z1}),t1.$set(N1);const U1={};I1&4&&(U1.options=z1[2]),!i1&&I1&1&&(i1=!0,U1.value=z1[0].componentId,add_flush_callback(()=>i1=!1)),o1.$set(U1);const F1={};I1&8192&&(F1.$$scope={dirty:I1,ctx:z1}),s1.$set(F1);const R1={};!u1&&I1&1&&(u1=!0,R1.value=z1[0].type,add_flush_callback(()=>u1=!1)),c1.$set(R1);const D1={};I1&8192&&(D1.$$scope={dirty:I1,ctx:z1}),p1.$set(D1);const V1={};I1&8&&(V1.options=z1[3]),!_1&&I1&1&&(_1=!0,V1.value=z1[0].field,add_flush_callback(()=>_1=!1)),m1.$set(V1),z1[0].type==="set"?E1?(E1.p(z1,I1),I1&1&&transition_in(E1,1)):(E1=create_if_block$1L(z1),E1.c(),transition_in(E1,1),E1.m(e1,null)):E1&&(group_outros(),transition_out(E1,1,1,()=>{E1=null}),check_outros())},i(z1){b1||(transition_in(t1.$$.fragment,z1),transition_in(o1.$$.fragment,z1),transition_in(s1.$$.fragment,z1),transition_in(c1.$$.fragment,z1),transition_in(p1.$$.fragment,z1),transition_in(m1.$$.fragment,z1),transition_in(E1),b1=!0)},o(z1){transition_out(t1.$$.fragment,z1),transition_out(o1.$$.fragment,z1),transition_out(s1.$$.fragment,z1),transition_out(c1.$$.fragment,z1),transition_out(p1.$$.fragment,z1),transition_out(m1.$$.fragment,z1),transition_out(E1),b1=!1},d(z1){z1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1),destroy_component(p1),destroy_component(m1),E1&&E1.d()}}}const func$k=n1=>n1._instanceName,func_1$g=n1=>n1._id;function instance$3$(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,store,h1=>t1(7,s1=h1)),component_subscribe(n1,currentAsset,h1=>t1(8,l1=h1));let{parameters:c1}=e1,{bindings:u1=[]}=e1;const f1=[{label:"Set value",value:"set"},{label:"Reset to default value",value:"reset"}];onMount(()=>{c1.type||t1(0,c1.type="set",c1)});function p1(h1){n1.$$.not_equal(c1.componentId,h1)&&(c1.componentId=h1,t1(0,c1))}function d1(h1){n1.$$.not_equal(c1.type,h1)&&(c1.type=h1,t1(0,c1))}function m1(h1){n1.$$.not_equal(c1.field,h1)&&(c1.field=h1,t1(0,c1))}const _1=h1=>t1(0,c1.value=h1.detail,c1);return n1.$$set=h1=>{"parameters"in h1&&t1(0,c1=h1.parameters),"bindings"in h1&&t1(1,u1=h1.bindings)},n1.$$.update=()=>{n1.$$.dirty&257&&t1(6,r1=findComponent(l1.props,c1.componentId)),n1.$$.dirty&64&&t1(5,o1=buildFormSchema(r1)),n1.$$.dirty&32&&t1(3,i1=Object.keys(o1||{})),n1.$$.dirty&384&&t1(2,a1=getActionProviderComponents(l1,s1.selectedComponentId,"ValidateForm"))},[c1,u1,a1,i1,f1,o1,r1,s1,l1,p1,d1,m1,_1]}class UpdateFieldValue extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3$,create_fragment$3_,safe_not_equal,{parameters:0,bindings:1})}}const ScrollTo_svelte_svelte_type_style_lang="";function create_default_slot_1$2a(n1){let e1;return{c(){e1=text("Form")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2I(n1){let e1;return{c(){e1=text("Field")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3Z(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1;t1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_1$2a]},$$scope:{ctx:n1}}});function p1(h1){n1[7](h1)}let d1={options:n1[1],getOptionLabel:func$j,getOptionValue:func_1$f};n1[0].componentId!==void 0&&(d1.value=n1[0].componentId),o1=new Select_1$1({props:d1}),binding_callbacks.push(()=>bind$3(o1,"value",p1)),s1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2I]},$$scope:{ctx:n1}}});function m1(h1){n1[8](h1)}let _1={options:n1[2]};return n1[0].field!==void 0&&(_1.value=n1[0].field),c1=new Combobox_1({props:_1}),binding_callbacks.push(()=>bind$3(c1,"value",m1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),attr(e1,"class","root svelte-ijgk9v")},m(h1,b1){insert$1(h1,e1,b1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),f1=!0},p(h1,[b1]){const $1={};b1&512&&($1.$$scope={dirty:b1,ctx:h1}),t1.$set($1);const y1={};b1&2&&(y1.options=h1[1]),!i1&&b1&1&&(i1=!0,y1.value=h1[0].componentId,add_flush_callback(()=>i1=!1)),o1.$set(y1);const k1={};b1&512&&(k1.$$scope={dirty:b1,ctx:h1}),s1.$set(k1);const S1={};b1&4&&(S1.options=h1[2]),!u1&&b1&1&&(u1=!0,S1.value=h1[0].field,add_flush_callback(()=>u1=!1)),c1.$set(S1)},i(h1){f1||(transition_in(t1.$$.fragment,h1),transition_in(o1.$$.fragment,h1),transition_in(s1.$$.fragment,h1),transition_in(c1.$$.fragment,h1),f1=!0)},o(h1){transition_out(t1.$$.fragment,h1),transition_out(o1.$$.fragment,h1),transition_out(s1.$$.fragment,h1),transition_out(c1.$$.fragment,h1),f1=!1},d(h1){h1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1)}}}const func$j=n1=>n1._instanceName,func_1$f=n1=>n1._id;function instance$3_(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,store,p1=>t1(5,s1=p1)),component_subscribe(n1,currentAsset,p1=>t1(6,l1=p1));let{parameters:c1}=e1;onMount(()=>{c1.type||t1(0,c1.type="top",c1)});function u1(p1){n1.$$.not_equal(c1.componentId,p1)&&(c1.componentId=p1,t1(0,c1))}function f1(p1){n1.$$.not_equal(c1.field,p1)&&(c1.field=p1,t1(0,c1))}return n1.$$set=p1=>{"parameters"in p1&&t1(0,c1=p1.parameters)},n1.$$.update=()=>{n1.$$.dirty&65&&t1(4,r1=findComponent(l1.props,c1.componentId)),n1.$$.dirty&16&&t1(3,o1=buildFormSchema(r1)),n1.$$.dirty&8&&t1(2,i1=Object.keys(o1||{})),n1.$$.dirty&96&&t1(1,a1=getActionProviderComponents(l1,s1.selectedComponentId,"ScrollTo"))},[c1,a1,i1,o1,r1,s1,l1,u1,f1]}class ScrollTo extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3_,create_fragment$3Z,safe_not_equal,{parameters:0})}}const ShowNotification_svelte_svelte_type_style_lang="";function create_default_slot_1$29(n1){let e1;return{c(){e1=text("Type")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2H(n1){let e1;return{c(){e1=text("Message")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3Y(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1;t1=new Label({props:{$$slots:{default:[create_default_slot_1$29]},$$scope:{ctx:n1}}});function h1(k1){n1[3](k1)}let b1={options:n1[2],placeholder:null};n1[0].type!==void 0&&(b1.value=n1[0].type),o1=new Select_1$1({props:b1}),binding_callbacks.push(()=>bind$3(o1,"value",h1)),s1=new Label({props:{$$slots:{default:[create_default_slot$2H]},$$scope:{ctx:n1}}}),c1=new DrawerBindableInput({props:{bindings:n1[1],value:n1[0].message}}),c1.$on("change",n1[4]),f1=new Label({});function $1(k1){n1[5](k1)}let y1={text:"Auto dismiss"};return n1[0].autoDismiss!==void 0&&(y1.value=n1[0].autoDismiss),d1=new Checkbox_1({props:y1}),binding_callbacks.push(()=>bind$3(d1,"value",$1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),u1=space$1(),create_component(f1.$$.fragment),p1=space$1(),create_component(d1.$$.fragment),attr(e1,"class","root svelte-ss4wgk")},m(k1,S1){insert$1(k1,e1,S1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,a1),mount_component(s1,e1,null),append$1(e1,l1),mount_component(c1,e1,null),append$1(e1,u1),mount_component(f1,e1,null),append$1(e1,p1),mount_component(d1,e1,null),_1=!0},p(k1,[S1]){const C1={};S1&64&&(C1.$$scope={dirty:S1,ctx:k1}),t1.$set(C1);const A1={};!i1&&S1&1&&(i1=!0,A1.value=k1[0].type,add_flush_callback(()=>i1=!1)),o1.$set(A1);const E1={};S1&64&&(E1.$$scope={dirty:S1,ctx:k1}),s1.$set(E1);const z1={};S1&2&&(z1.bindings=k1[1]),S1&1&&(z1.value=k1[0].message),c1.$set(z1);const I1={};!m1&&S1&1&&(m1=!0,I1.value=k1[0].autoDismiss,add_flush_callback(()=>m1=!1)),d1.$set(I1)},i(k1){_1||(transition_in(t1.$$.fragment,k1),transition_in(o1.$$.fragment,k1),transition_in(s1.$$.fragment,k1),transition_in(c1.$$.fragment,k1),transition_in(f1.$$.fragment,k1),transition_in(d1.$$.fragment,k1),_1=!0)},o(k1){transition_out(t1.$$.fragment,k1),transition_out(o1.$$.fragment,k1),transition_out(s1.$$.fragment,k1),transition_out(c1.$$.fragment,k1),transition_out(f1.$$.fragment,k1),transition_out(d1.$$.fragment,k1),_1=!1},d(k1){k1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(s1),destroy_component(c1),destroy_component(f1),destroy_component(d1)}}}function instance$3Z(n1,e1,t1){let{parameters:r1}=e1,{bindings:o1=[]}=e1;const i1=[{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"},{label:"Info",value:"info"}];onMount(()=>{r1.type||t1(0,r1.type="success",r1),r1.autoDismiss==null&&t1(0,r1.autoDismiss=!0,r1)});function a1(c1){n1.$$.not_equal(r1.type,c1)&&(r1.type=c1,t1(0,r1))}const s1=c1=>t1(0,r1.message=c1.detail,r1);function l1(c1){n1.$$.not_equal(r1.autoDismiss,c1)&&(r1.autoDismiss=c1,t1(0,r1))}return n1.$$set=c1=>{"parameters"in c1&&t1(0,r1=c1.parameters),"bindings"in c1&&t1(1,o1=c1.bindings)},[r1,o1,i1,a1,s1,l1]}class ShowNotification extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3Z,create_fragment$3Y,safe_not_equal,{parameters:0,bindings:1})}}const PromptUser_svelte_svelte_type_style_lang="";function create_default_slot_2$1C(n1){let e1;return{c(){e1=text("Enter the message you wish to display to the user.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$28(n1){let e1;return{c(){e1=text("Title")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2G(n1){let e1;return{c(){e1=text("Message")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3X(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1;t1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_2$1C]},$$scope:{ctx:n1}}}),i1=new Label({props:{small:!0,$$slots:{default:[create_default_slot_1$28]},$$scope:{ctx:n1}}});function _1(y1){n1[1](y1)}let h1={placeholder:"Prompt User"};n1[0].customTitleText!==void 0&&(h1.value=n1[0].customTitleText),s1=new Input$5({props:h1}),binding_callbacks.push(()=>bind$3(s1,"value",_1)),u1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2G]},$$scope:{ctx:n1}}});function b1(y1){n1[2](y1)}let $1={placeholder:"Are you sure you want to continue?"};return n1[0].confirmText!==void 0&&($1.value=n1[0].confirmText),p1=new Input$5({props:$1}),binding_callbacks.push(()=>bind$3(p1,"value",b1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment),attr(o1,"class","params svelte-hvj292"),attr(e1,"class","root svelte-hvj292")},m(y1,k1){insert$1(y1,e1,k1),mount_component(t1,e1,null),append$1(e1,r1),append$1(e1,o1),mount_component(i1,o1,null),append$1(o1,a1),mount_component(s1,o1,null),append$1(o1,c1),mount_component(u1,o1,null),append$1(o1,f1),mount_component(p1,o1,null),m1=!0},p(y1,[k1]){const S1={};k1&8&&(S1.$$scope={dirty:k1,ctx:y1}),t1.$set(S1);const C1={};k1&8&&(C1.$$scope={dirty:k1,ctx:y1}),i1.$set(C1);const A1={};!l1&&k1&1&&(l1=!0,A1.value=y1[0].customTitleText,add_flush_callback(()=>l1=!1)),s1.$set(A1);const E1={};k1&8&&(E1.$$scope={dirty:k1,ctx:y1}),u1.$set(E1);const z1={};!d1&&k1&1&&(d1=!0,z1.value=y1[0].confirmText,add_flush_callback(()=>d1=!1)),p1.$set(z1)},i(y1){m1||(transition_in(t1.$$.fragment,y1),transition_in(i1.$$.fragment,y1),transition_in(s1.$$.fragment,y1),transition_in(u1.$$.fragment,y1),transition_in(p1.$$.fragment,y1),m1=!0)},o(y1){transition_out(t1.$$.fragment,y1),transition_out(i1.$$.fragment,y1),transition_out(s1.$$.fragment,y1),transition_out(u1.$$.fragment,y1),transition_out(p1.$$.fragment,y1),m1=!1},d(y1){y1&&detach(e1),destroy_component(t1),destroy_component(i1),destroy_component(s1),destroy_component(u1),destroy_component(p1)}}}function instance$3Y(n1,e1,t1){let{parameters:r1}=e1;onMount(()=>{r1.confirm||t1(0,r1.confirm=!0,r1)});function o1(a1){n1.$$.not_equal(r1.customTitleText,a1)&&(r1.customTitleText=a1,t1(0,r1))}function i1(a1){n1.$$.not_equal(r1.confirmText,a1)&&(r1.confirmText=a1,t1(0,r1))}return n1.$$set=a1=>{"parameters"in a1&&t1(0,r1=a1.parameters)},[r1,o1,i1]}class PromptUser extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3Y,create_fragment$3X,safe_not_equal,{parameters:0})}}const OpenSidePanel_svelte_svelte_type_style_lang="";function create_default_slot$2F(n1){let e1;return{c(){e1=text("Side Panel")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_fragment$3W(n1){let e1,t1,r1,o1,i1,a1;t1=new Label({props:{small:!0,$$slots:{default:[create_default_slot$2F]},$$scope:{ctx:n1}}});function s1(c1){n1[3](c1)}let l1={options:n1[1]};return n1[0].id!==void 0&&(l1.value=n1[0].id),o1=new Select_1$1({props:l1}),binding_callbacks.push(()=>bind$3(o1,"value",s1)),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","root svelte-ss4wgk")},m(c1,u1){insert$1(c1,e1,u1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),a1=!0},p(c1,[u1]){const f1={};u1&32&&(f1.$$scope={dirty:u1,ctx:c1}),t1.$set(f1);const p1={};u1&2&&(p1.options=c1[1]),!i1&&u1&1&&(i1=!0,p1.value=c1[0].id,add_flush_callback(()=>i1=!1)),o1.$set(p1)},i(c1){a1||(transition_in(t1.$$.fragment,c1),transition_in(o1.$$.fragment,c1),a1=!0)},o(c1){transition_out(t1.$$.fragment,c1),transition_out(o1.$$.fragment,c1),a1=!1},d(c1){c1&&detach(e1),destroy_component(t1),destroy_component(o1)}}}function instance$3X(n1,e1,t1){let r1,o1;component_subscribe(n1,selectedScreen,l1=>t1(2,o1=l1));let{parameters:i1}=e1;const a1=l1=>findAllMatchingComponents(l1.props,u1=>u1._component.endsWith("/sidepanel")).map(u1=>({label:u1._instanceName,value:u1._id}));function s1(l1){n1.$$.not_equal(i1.id,l1)&&(i1.id=l1,t1(0,i1))}return n1.$$set=l1=>{"parameters"in l1&&t1(0,i1=l1.parameters)},n1.$$.update=()=>{n1.$$.dirty&4&&t1(1,r1=a1(o1))},[i1,r1,o1,s1]}class OpenSidePanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3X,create_fragment$3W,safe_not_equal,{parameters:0})}}const CloseSidePanel_svelte_svelte_type_style_lang="";function create_fragment$3V(n1){let e1;return{c(){e1=element("div"),e1.textContent="This action doesn't require any settings.",attr(e1,"class","root svelte-1kwxn4d")},m(t1,r1){insert$1(t1,e1,r1)},p:noop$5,i:noop$5,o:noop$5,d(t1){t1&&detach(e1)}}}class CloseSidePanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,null,create_fragment$3V,safe_not_equal,{})}}const ActionComponents=Object.freeze(Object.defineProperty({__proto__:null,FetchRow,NavigateTo,SaveRow,DeleteRow,ExecuteQuery,TriggerAutomation,ValidateForm,LogOut,ClearForm,CloseScreenModal,ChangeFormStep,UpdateState,RefreshDataProvider,DuplicateRow,S3Upload,ExportData,ContinueIf,UpdateFieldValue,ScrollTo,ShowNotification,PromptUser,OpenSidePanel,CloseSidePanel},Symbol.toStringTag,{value:"Module"})),getAvailableActions=(n1=!1)=>ActionDefinitions.actions.filter(e1=>{var t1;return n1||!e1.dependsOnFeature?!0:((t1=get_store_value(store).clientFeatures)==null?void 0:t1[e1.dependsOnFeature])===!0}).map(e1=>({...e1,component:ActionComponents[e1.component]})).filter(e1=>e1.component!=null),ButtonActionDrawer_svelte_svelte_type_style_lang="";function get_each_context$Q(n1,e1,t1){const r1=n1.slice();return r1[28]=e1[t1],r1[30]=t1,r1}function get_each_context_1$d(n1,e1,t1){const r1=n1.slice();return r1[31]=e1[t1][0],r1[32]=e1[t1][1],r1[34]=t1,r1}function get_each_context_2$5(n1,e1,t1){const r1=n1.slice();return r1[35]=e1[t1],r1}function create_if_block_3$p(n1){let e1=n1[3].id,t1,r1,o1=create_key_block$7(n1);return{c(){o1.c(),t1=empty$1()},m(i1,a1){o1.m(i1,a1),insert$1(i1,t1,a1),r1=!0},p(i1,a1){a1[0]&8&&safe_not_equal(e1,e1=i1[3].id)?(group_outros(),transition_out(o1,1,1,noop$5),check_outros(),o1=create_key_block$7(i1),o1.c(),transition_in(o1,1),o1.m(t1.parentNode,t1)):o1.p(i1,a1)},i(i1){r1||(transition_in(o1),r1=!0)},o(i1){transition_out(o1),r1=!1},d(i1){i1&&detach(t1),o1.d(i1)}}}function create_key_block$7(n1){let e1,t1,r1,o1;function i1(l1){n1[22](l1)}var a1=n1[5];function s1(l1){let c1={bindings:l1[6],nested:l1[1]};return l1[3].parameters!==void 0&&(c1.parameters=l1[3].parameters),{props:c1}}return a1&&(t1=construct_svelte_component(a1,s1(n1)),binding_callbacks.push(()=>bind$3(t1,"parameters",i1))),{c(){e1=element("div"),t1&&create_component(t1.$$.fragment),attr(e1,"class","selected-action-container")},m(l1,c1){insert$1(l1,e1,c1),t1&&mount_component(t1,e1,null),o1=!0},p(l1,c1){const u1={};if(c1[0]&64&&(u1.bindings=l1[6]),c1[0]&2&&(u1.nested=l1[1]),!r1&&c1[0]&8&&(r1=!0,u1.parameters=l1[3].parameters,add_flush_callback(()=>r1=!1)),a1!==(a1=l1[5])){if(t1){group_outros();const f1=t1;transition_out(f1.$$.fragment,1,0,()=>{destroy_component(f1,1)}),check_outros()}a1?(t1=construct_svelte_component(a1,s1(l1)),binding_callbacks.push(()=>bind$3(t1,"parameters",i1)),create_component(t1.$$.fragment),transition_in(t1.$$.fragment,1),mount_component(t1,e1,null)):t1=null}else a1&&t1.$set(u1)},i(l1){o1||(t1&&transition_in(t1.$$.fragment,l1),o1=!0)},o(l1){t1&&transition_out(t1.$$.fragment,l1),o1=!1},d(l1){l1&&detach(e1),t1&&destroy_component(t1)}}}function create_default_slot_4$12(n1){let e1,t1,r1=n1[5]&&!n1[4]&&create_if_block_3$p(n1);return{c(){r1&&r1.c(),e1=empty$1()},m(o1,i1){r1&&r1.m(o1,i1),insert$1(o1,e1,i1),t1=!0},p(o1,i1){o1[5]&&!o1[4]?r1?(r1.p(o1,i1),i1[0]&48&&transition_in(r1,1)):(r1=create_if_block_3$p(o1),r1.c(),transition_in(r1,1),r1.m(e1.parentNode,e1)):r1&&(group_outros(),transition_out(r1,1,1,()=>{r1=null}),check_outros())},i(o1){t1||(transition_in(r1),t1=!0)},o(o1){transition_out(r1),t1=!1},d(o1){r1&&r1.d(o1),o1&&detach(e1)}}}function create_default_slot_3$1j(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,$$slots:{default:[create_default_slot_4$12]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&122|o1[1]&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_1$11(n1){var d1;let e1,t1,r1,o1,i1,a1,s1,l1=((d1=n1[0])==null?void 0:d1.length)>0&&create_if_block_2$F(n1);function c1(m1){n1[20](m1)}let u1={placeholder:"Search"};n1[2]!==void 0&&(u1.value=n1[2]),o1=new Search_1({props:u1}),binding_callbacks.push(()=>bind$3(o1,"value",c1));let f1=Object.entries(n1[7]),p1=[];for(let m1=0;m1<f1.length;m1+=1)p1[m1]=create_each_block_1$d(get_each_context_1$d(n1,f1,m1));return{c(){e1=element("div"),l1&&l1.c(),t1=space$1(),r1=element("div"),create_component(o1.$$.fragment),a1=space$1();for(let m1=0;m1<p1.length;m1+=1)p1[m1].c();attr(r1,"class","search-wrap svelte-28n6ts"),attr(e1,"class","actions-list svelte-28n6ts")},m(m1,_1){insert$1(m1,e1,_1),l1&&l1.m(e1,null),append$1(e1,t1),append$1(e1,r1),mount_component(o1,r1,null),append$1(e1,a1);for(let h1=0;h1<p1.length;h1+=1)p1[h1].m(e1,null);s1=!0},p(m1,_1){var b1;((b1=m1[0])==null?void 0:b1.length)>0?l1?(l1.p(m1,_1),_1[0]&1&&transition_in(l1,1)):(l1=create_if_block_2$F(m1),l1.c(),transition_in(l1,1),l1.m(e1,t1)):l1&&(group_outros(),transition_out(l1,1,1,()=>{l1=null}),check_outros());const h1={};if(!i1&&_1[0]&4&&(i1=!0,h1.value=m1[2],add_flush_callback(()=>i1=!1)),o1.$set(h1),_1[0]&2176){f1=Object.entries(m1[7]);let $1;for($1=0;$1<f1.length;$1+=1){const y1=get_each_context_1$d(m1,f1,$1);p1[$1]?p1[$1].p(y1,_1):(p1[$1]=create_each_block_1$d(y1),p1[$1].c(),p1[$1].m(e1,null))}for(;$1<p1.length;$1+=1)p1[$1].d(1);p1.length=f1.length}},i(m1){s1||(transition_in(l1),transition_in(o1.$$.fragment,m1),s1=!0)},o(m1){transition_out(l1),transition_out(o1.$$.fragment,m1),s1=!1},d(m1){m1&&detach(e1),l1&&l1.d(),destroy_component(o1),destroy_each(p1,m1)}}}function create_if_block_2$F(n1){let e1,t1,r1;return t1=new ActionButton({props:{secondary:!0,icon:"ArrowLeft",$$slots:{default:[create_default_slot_2$1B]},$$scope:{ctx:n1}}}),t1.$on("click",n1[9]),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","svelte-28n6ts")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1[1]&128&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_default_slot_2$1B(n1){let e1;return{c(){e1=text("Back")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block_2$5(n1){let e1,t1,r1=n1[35].name+"",o1,i1,a1;return{c(){e1=element("li"),t1=element("span"),o1=text(r1),attr(t1,"class","action-name svelte-28n6ts"),attr(e1,"class","svelte-28n6ts")},m(s1,l1){insert$1(s1,e1,l1),append$1(e1,t1),append$1(t1,o1),i1||(a1=listen(e1,"click",function(){is_function(n1[11](n1[35]))&&n1[11](n1[35]).apply(this,arguments)}),i1=!0)},p(s1,l1){n1=s1,l1[0]&128&&r1!==(r1=n1[35].name+"")&&set_data(o1,r1)},d(s1){s1&&detach(e1),i1=!1,a1()}}}function create_each_block_1$d(n1){let e1,t1=n1[31]+"",r1,o1,i1,a1,s1=n1[32],l1=[];for(let c1=0;c1<s1.length;c1+=1)l1[c1]=create_each_block_2$5(get_each_context_2$5(n1,s1,c1));return{c(){e1=element("div"),r1=text(t1),o1=space$1(),i1=element("ul");for(let c1=0;c1<l1.length;c1+=1)l1[c1].c();a1=space$1(),attr(e1,"class","heading svelte-28n6ts"),toggle_class(e1,"top-entry",n1[34]===0),attr(i1,"class","svelte-28n6ts")},m(c1,u1){insert$1(c1,e1,u1),append$1(e1,r1),insert$1(c1,o1,u1),insert$1(c1,i1,u1);for(let f1=0;f1<l1.length;f1+=1)l1[f1].m(i1,null);append$1(i1,a1)},p(c1,u1){if(u1[0]&128&&t1!==(t1=c1[31]+"")&&set_data(r1,t1),u1[0]&2176){s1=c1[32];let f1;for(f1=0;f1<s1.length;f1+=1){const p1=get_each_context_2$5(c1,s1,f1);l1[f1]?l1[f1].p(p1,u1):(l1[f1]=create_each_block_2$5(p1),l1[f1].c(),l1[f1].m(i1,a1))}for(;f1<l1.length;f1+=1)l1[f1].d(1);l1.length=s1.length}},d(c1){c1&&detach(e1),c1&&detach(o1),c1&&detach(i1),destroy_each(l1,c1)}}}function create_if_block$1K(n1){let e1,t1,r1,o1,i1=[],a1=new Map,s1,l1,c1,u1;t1=new Button({props:{secondary:!0,$$slots:{default:[create_default_slot_1$27]},$$scope:{ctx:n1}}}),t1.$on("click",n1[9]);let f1=n1[0];const p1=d1=>d1[28].id;for(let d1=0;d1<f1.length;d1+=1){let m1=get_each_context$Q(n1,f1,d1),_1=p1(m1);a1.set(_1,i1[d1]=create_each_block$Q(_1,m1))}return{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),o1=element("div");for(let d1=0;d1<i1.length;d1+=1)i1[d1].c();attr(o1,"class","actions svelte-28n6ts")},m(d1,m1){insert$1(d1,e1,m1),mount_component(t1,e1,null),insert$1(d1,r1,m1),insert$1(d1,o1,m1);for(let _1=0;_1<i1.length;_1+=1)i1[_1].m(o1,null);l1=!0,c1||(u1=[action_destroyer(s1=dndzone.call(null,o1,{items:n1[0],flipDurationMs:flipDurationMs$4,dropTargetStyle:{outline:"none"}})),listen(o1,"consider",n1[12]),listen(o1,"finalize",n1[13])],c1=!0)},p(d1,m1){const _1={};if(m1[1]&128&&(_1.$$scope={dirty:m1,ctx:d1}),t1.$set(_1),m1[0]&1289){f1=d1[0],group_outros();for(let h1=0;h1<i1.length;h1+=1)i1[h1].r();i1=update_keyed_each(i1,m1,p1,1,d1,f1,a1,o1,fix_and_outro_and_destroy_block,create_each_block$Q,null,get_each_context$Q);for(let h1=0;h1<i1.length;h1+=1)i1[h1].a();check_outros()}s1&&is_function(s1.update)&&m1[0]&1&&s1.update.call(null,{items:d1[0],flipDurationMs:flipDurationMs$4,dropTargetStyle:{outline:"none"}})},i(d1){if(!l1){transition_in(t1.$$.fragment,d1);for(let m1=0;m1<f1.length;m1+=1)transition_in(i1[m1]);l1=!0}},o(d1){transition_out(t1.$$.fragment,d1);for(let m1=0;m1<i1.length;m1+=1)transition_out(i1[m1]);l1=!1},d(d1){d1&&detach(e1),destroy_component(t1),d1&&detach(r1),d1&&detach(o1);for(let m1=0;m1<i1.length;m1+=1)i1[m1].d();c1=!1,run_all(u1)}}}function create_default_slot_1$27(n1){let e1;return{c(){e1=text("Add Action")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block$Q(n1,e1){let t1,r1,o1,i1,a1=e1[30]+1+"",s1,l1,c1=e1[28][EVENT_TYPE_KEY]+"",u1,f1,p1,d1,m1,_1=noop$5,h1,b1,$1;r1=new Icon({props:{name:"DragHandle",size:"XL"}});function y1(){return e1[21](e1[30])}return p1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),p1.$on("click",y1),{key:n1,first:null,c(){t1=element("div"),create_component(r1.$$.fragment),o1=space$1(),i1=element("div"),s1=text(a1),l1=text(".\xA0"),u1=text(c1),f1=space$1(),create_component(p1.$$.fragment),d1=space$1(),attr(i1,"class","action-header svelte-28n6ts"),attr(t1,"class","action-container svelte-28n6ts"),toggle_class(t1,"selected",e1[28]===e1[3]),this.first=t1},m(k1,S1){insert$1(k1,t1,S1),mount_component(r1,t1,null),append$1(t1,o1),append$1(t1,i1),append$1(i1,s1),append$1(i1,l1),append$1(i1,u1),append$1(t1,f1),mount_component(p1,t1,null),append$1(t1,d1),h1=!0,b1||($1=listen(t1,"click",function(){is_function(e1[10](e1[28]))&&e1[10](e1[28]).apply(this,arguments)}),b1=!0)},p(k1,S1){e1=k1,(!h1||S1[0]&1)&&a1!==(a1=e1[30]+1+"")&&set_data(s1,a1),(!h1||S1[0]&1)&&c1!==(c1=e1[28][EVENT_TYPE_KEY]+"")&&set_data(u1,c1),(!h1||S1[0]&9)&&toggle_class(t1,"selected",e1[28]===e1[3])},r(){m1=t1.getBoundingClientRect()},f(){fix_position(t1),_1()},a(){_1(),_1=create_animation(t1,m1,flip,{duration:flipDurationMs$4})},i(k1){h1||(transition_in(r1.$$.fragment,k1),transition_in(p1.$$.fragment,k1),h1=!0)},o(k1){transition_out(r1.$$.fragment,k1),transition_out(p1.$$.fragment,k1),h1=!1},d(k1){k1&&detach(t1),destroy_component(r1),destroy_component(p1),b1=!1,$1()}}}function create_default_slot$2E(n1){var a1;let e1,t1,r1,o1=(n1[4]||!((a1=n1[0])!=null&&a1.length))&&create_if_block_1$11(n1),i1=n1[0]&&n1[0].length>0&&!n1[4]&&create_if_block$1K(n1);return{c(){o1&&o1.c(),e1=space$1(),i1&&i1.c(),t1=empty$1()},m(s1,l1){o1&&o1.m(s1,l1),insert$1(s1,e1,l1),i1&&i1.m(s1,l1),insert$1(s1,t1,l1),r1=!0},p(s1,l1){var c1;s1[4]||!((c1=s1[0])!=null&&c1.length)?o1?(o1.p(s1,l1),l1[0]&17&&transition_in(o1,1)):(o1=create_if_block_1$11(s1),o1.c(),transition_in(o1,1),o1.m(e1.parentNode,e1)):o1&&(group_outros(),transition_out(o1,1,1,()=>{o1=null}),check_outros()),s1[0]&&s1[0].length>0&&!s1[4]?i1?(i1.p(s1,l1),l1[0]&17&&transition_in(i1,1)):(i1=create_if_block$1K(s1),i1.c(),transition_in(i1,1),i1.m(t1.parentNode,t1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros())},i(s1){r1||(transition_in(o1),transition_in(i1),r1=!0)},o(s1){transition_out(o1),transition_out(i1),r1=!1},d(s1){o1&&o1.d(s1),s1&&detach(e1),i1&&i1.d(s1),s1&&detach(t1)}}}function create_sidebar_slot(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,gap:"S",slot:"sidebar",$$slots:{default:[create_default_slot$2E]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&157|o1[1]&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3U(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{sidebar:[create_sidebar_slot],default:[create_default_slot_3$1j]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&255|o1[1]&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$4=150,EVENT_TYPE_KEY="##eventHandlerType";function instance$3W(n1,e1,t1){let r1,o1,i1,a1,s1,l1,c1,u1;component_subscribe(n1,store,D1=>t1(18,c1=D1)),component_subscribe(n1,currentAsset,D1=>t1(19,u1=D1));const f1=getAvailableActions();let{key:p1}=e1,{actions:d1}=e1,{bindings:m1=[]}=e1,{nested:_1}=e1,h1,b1=d1!=null&&d1.length?d1[0]:null,y1=(D1=>D1?fp.cloneDeep(D1).filter(V1=>{var j1;return V1[EVENT_TYPE_KEY]==="Update State"&&((j1=V1.parameters)==null?void 0:j1.type)==="set"&&V1.parameters.key}).reduce((V1,j1)=>(V1[j1.id]=j1,V1),{}):[])(d1);const k1=D1=>{const V1=d1.indexOf(b1),j1=D1===V1;d1.splice(D1,1),t1(0,d1),j1&&t1(3,b1=d1!=null&&d1.length?d1[0]:null)},S1=()=>{t1(2,h1=null),t1(4,o1=!o1)},C1=D1=>{const V1={parameters:{},[EVENT_TYPE_KEY]:D1.name,id:shortid.exports.generate()};d1||t1(0,d1=[]),t1(0,d1=[...d1,V1]),t1(3,b1=V1)},A1=D1=>()=>{t1(3,b1=D1)},E1=D1=>{C1(D1),S1()};function z1(D1){t1(0,d1=D1.detail.items)}function I1(D1){t1(0,d1=D1.detail.items)}const N1=(D1,V1,j1)=>{let K1=[],G1=fp.cloneDeep(D1);if(!j1)return[];j1.filter(X1=>{var Q1;return X1[EVENT_TYPE_KEY]==="Update State"&&((Q1=X1.parameters)==null?void 0:Q1.type)==="set"&&X1.parameters.key}).forEach(X1=>{const Q1=makeStateBinding(X1.parameters.key);if(!D1.some(n0=>n0.runtimeBinding===Q1.runtimeBinding)){let n0=y1[X1.id];if(n0){const d0=makeStateBinding(n0.parameters.key);G1=G1.filter(u0=>u0.runtimeBinding!==d0.runtimeBinding)}K1.push(Q1)}});const q1=j1.map((X1,Q1)=>{var a0;if(X1[EVENT_TYPE_KEY]==="Trigger Automation"&&!((a0=X1.parameters)!=null&&a0.synchronous))return Q1}).filter(X1=>X1!==void 0);return K1=(q1?V1.filter((X1,Q1)=>!q1.includes(Q1)):V1).concat(G1).concat(K1),K1};function U1(D1){h1=D1,t1(2,h1)}const F1=D1=>k1(D1);function R1(D1){n1.$$.not_equal(b1.parameters,D1)&&(b1.parameters=D1,t1(3,b1),t1(0,d1))}return n1.$$set=D1=>{"key"in D1&&t1(14,p1=D1.key),"actions"in D1&&t1(0,d1=D1.actions),"bindings"in D1&&t1(15,m1=D1.bindings),"nested"in D1&&t1(1,_1=D1.nested)},n1.$$.update=()=>{var D1;n1.$$.dirty[0]&8&&b1&&!b1.parameters&&t1(3,b1.parameters={},b1),n1.$$.dirty[0]&4&&t1(17,r1=typeof h1=="string"?h1.toLowerCase().trim():""),n1.$$.dirty[0]&1&&t1(4,o1=!(d1!=null&&d1.length)),n1.$$.dirty[0]&131072&&t1(7,i1=f1.reduce((V1,j1)=>{let K1=j1.name.toLowerCase().trim();return r1.length&&K1.indexOf(r1)<0||(V1[j1.type]=V1[j1.type]||[],V1[j1.type].push(j1)),V1},{})),n1.$$.dirty[0]&9&&b1&&!(d1!=null&&d1.includes(b1))&&t1(3,b1=d1==null?void 0:d1[0]),n1.$$.dirty[0]&802825&&t1(16,a1=getEventContextBindings(u1,c1.selectedComponentId,p1,d1,b1==null?void 0:b1.id)),n1.$$.dirty[0]&98305&&t1(6,s1=N1(m1,a1,d1)),n1.$$.dirty[0]&1&&d1&&d1.forEach(V1=>{V1.id||(V1.id=shortid.exports.generate())}),n1.$$.dirty[0]&8&&t1(5,l1=b1&&((D1=f1.find(V1=>V1.name===b1[EVENT_TYPE_KEY]))==null?void 0:D1.component))},[d1,_1,h1,b1,o1,l1,s1,i1,k1,S1,A1,E1,z1,I1,p1,m1,a1,r1,c1,u1,U1,F1,R1]}class ButtonActionDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3W,create_fragment$3U,safe_not_equal,{key:14,actions:0,bindings:15,nested:1},null,[-1,-1])}}const ButtonActionEditor_svelte_svelte_type_style_lang="";function create_default_slot_1$26(n1){let e1;return{c(){e1=text(n1[6])},m(t1,r1){insert$1(t1,e1,r1)},p(t1,r1){r1&64&&set_data(e1,t1[6])},d(t1){t1&&detach(e1)}}}function create_description_slot$8(n1){let e1;return{c(){e1=text("Define what actions to run.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2D(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$c(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2D]},$$scope:{ctx:n1}}}),e1.$on("click",n1[8]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&65536&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$b(n1){let e1,t1,r1;function o1(a1){n1[11](a1)}let i1={slot:"body",eventType:n1[1],bindings:n1[2],key:n1[0],nested:n1[3]};return n1[5]!==void 0&&(i1.actions=n1[5]),e1=new ButtonActionDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"actions",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&2&&(l1.eventType=a1[1]),s1&4&&(l1.bindings=a1[2]),s1&1&&(l1.key=a1[0]),s1&8&&(l1.nested=a1[3]),!t1&&s1&32&&(t1=!0,l1.actions=a1[5],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3T(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$26]},$$scope:{ctx:n1}}}),t1.$on("click",n1[7]);let a1={title:"Actions",$$slots:{body:[create_body_slot$b],buttons:[create_buttons_slot$c],description:[create_description_slot$8]},$$scope:{ctx:n1}};return o1=new Drawer({props:a1}),n1[12](o1),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","action-editor svelte-g1wuu0")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,[l1]){const c1={};l1&65600&&(c1.$$scope={dirty:l1,ctx:s1}),t1.$set(c1);const u1={};l1&65583&&(u1.$$scope={dirty:l1,ctx:s1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),s1&&detach(r1),n1[12](null),destroy_component(o1,s1)}}}function instance$3V(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,automationStore,y1=>t1(13,i1=y1));const a1=createEventDispatcher();let{key:s1}=e1,{value:l1=[]}=e1,{name:c1}=e1,{bindings:u1}=e1,{nested:f1}=e1,p1,d1;const m1=()=>{t1(5,d1=fp.cloneDeep(l1)),p1.show()},_1=async()=>{const y1=d1.filter(k1=>k1["##eventHandlerType"]==="Trigger Automation");for(let k1 of y1)await h1(k1.parameters);a1("change",d1),notifications.success("Component actions saved."),p1.hide()},h1=async y1=>{var k1;if(!(y1.automationId||!y1.newAutomationName))try{let S1=automationStore.actions.constructBlock("TRIGGER","APP",i1.blockDefinitions.TRIGGER.APP);S1.inputs={fields:Object.keys((k1=y1.fields)!=null?k1:{}).reduce((A1,E1)=>(A1[E1]="string",A1),{})};const C1=await automationStore.actions.create(y1.newAutomationName,S1);y1.automationId=C1._id,delete y1.newAutomationName}catch{notifications.error("Error creating automation")}};function b1(y1){d1=y1,t1(5,d1)}function $1(y1){binding_callbacks[y1?"unshift":"push"](()=>{p1=y1,t1(4,p1)})}return n1.$$set=y1=>{"key"in y1&&t1(0,s1=y1.key),"value"in y1&&t1(9,l1=y1.value),"name"in y1&&t1(1,c1=y1.name),"bindings"in y1&&t1(2,u1=y1.bindings),"nested"in y1&&t1(3,f1=y1.nested)},n1.$$.update=()=>{n1.$$.dirty&512&&t1(10,r1=l1==null?void 0:l1.length),n1.$$.dirty&1024&&t1(6,o1=`${r1||"No"} action${r1!==1?"s":""} set`)},[s1,c1,u1,f1,p1,d1,o1,m1,_1,l1,r1,b1,$1]}class ButtonActionEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3V,create_fragment$3T,safe_not_equal,{key:0,value:9,name:1,bindings:2,nested:3})}}function create_fragment$3S(n1){var r1;let e1,t1;return e1=new Select_1$1({props:{value:(r1=n1[0])==null?void 0:r1.tableId,options:n1[1],getOptionValue:func$i,getOptionLabel:func_1$e}}),e1.$on("change",n1[2]),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,[i1]){var s1;const a1={};i1&1&&(a1.value=(s1=o1[0])==null?void 0:s1.tableId),i1&2&&(a1.options=o1[1]),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}const func$i=n1=>n1.tableId,func_1$e=n1=>n1.label;function instance$3U(n1,e1,t1){let r1,o1;component_subscribe(n1,tables,l1=>t1(3,o1=l1));let{value:i1}=e1;const a1=createEventDispatcher(),s1=l1=>{const c1=r1==null?void 0:r1.find(u1=>u1.tableId===l1.detail);a1("change",c1)};return n1.$$set=l1=>{"value"in l1&&t1(0,i1=l1.value)},n1.$$.update=()=>{n1.$$.dirty&8&&t1(1,r1=o1.list.map(l1=>({label:l1.name,tableId:l1._id,type:"table"})))},[i1,r1,s1,o1]}class TableSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3U,create_fragment$3S,safe_not_equal,{value:0})}}function create_fragment$3R(n1){let e1,t1;return e1=new ColorPicker({props:{value:n1[0],spectrumTheme:n1[1].theme}}),e1.$on("change",n1[2]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.value=r1[0]),o1&2&&(i1.spectrumTheme=r1[1].theme),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3T(n1,e1,t1){let r1;component_subscribe(n1,store,a1=>t1(1,r1=a1));let{value:o1}=e1;function i1(a1){bubble.call(this,n1,a1)}return n1.$$set=a1=>{"value"in a1&&t1(0,o1=a1.value)},[o1,r1,i1]}class ColorPicker_1 extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3T,create_fragment$3R,safe_not_equal,{value:0})}}const iconData={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"]}},IconSelect_svelte_svelte_type_style_lang="";function get_each_context$P(n1,e1,t1){const r1=n1.slice();return r1[29]=e1[t1],r1}function get_each_context_1$c(n1,e1,t1){const r1=n1.slice();return r1[32]=e1[t1],r1[34]=t1,r1}function create_default_slot_2$1A(n1){let e1;return{c(){e1=text(n1[8])},m(t1,r1){insert$1(t1,e1,r1)},p(t1,r1){r1[0]&256&&set_data(e1,t1[8])},d(t1){t1&&detach(e1)}}}function create_if_block_2$E(n1){let e1;return{c(){e1=element("span"),e1.textContent="-"},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block_1$c(n1){let e1,t1=n1[32]+"",r1,o1,i1,a1,s1;function l1(){return n1[20](n1[32])}let c1=n1[34]!==n1[9].length-1&&create_if_block_2$E();return{c(){e1=element("span"),r1=text(t1),o1=space$1(),c1&&c1.c(),i1=empty$1(),attr(e1,"class","letter svelte-vhpvzd"),toggle_class(e1,"letter-selected",n1[32]===n1[2])},m(u1,f1){insert$1(u1,e1,f1),append$1(e1,r1),insert$1(u1,o1,f1),c1&&c1.m(u1,f1),insert$1(u1,i1,f1),a1||(s1=listen(e1,"click",l1),a1=!0)},p(u1,f1){n1=u1,f1[0]&516&&toggle_class(e1,"letter-selected",n1[32]===n1[2])},d(u1){u1&&detach(e1),u1&&detach(o1),c1&&c1.d(u1),u1&&detach(i1),a1=!1,s1()}}}function create_default_slot_1$25(n1){let e1;return{c(){e1=text("Search")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_else_block$C(n1){let e1,t1,r1=`There is no icons for this ${n1[1]?"search":"page"}`,o1;return{c(){e1=element("div"),t1=element("h5"),o1=text(r1),attr(e1,"class","no-icons svelte-vhpvzd")},m(i1,a1){insert$1(i1,e1,a1),append$1(e1,t1),append$1(t1,o1)},p(i1,a1){a1[0]&2&&r1!==(r1=`There is no icons for this ${i1[1]?"search":"page"}`)&&set_data(o1,r1)},d(i1){i1&&detach(e1)}}}function create_if_block$1J(n1){let e1,t1=!n1[5]&&create_if_block_1$10(n1);return{c(){e1=element("div"),t1&&t1.c(),attr(e1,"class","icon-area svelte-vhpvzd")},m(r1,o1){insert$1(r1,e1,o1),t1&&t1.m(e1,null)},p(r1,o1){r1[5]?t1&&(t1.d(1),t1=null):t1?t1.p(r1,o1):(t1=create_if_block_1$10(r1),t1.c(),t1.m(e1,null))},d(r1){r1&&detach(e1),t1&&t1.d()}}}function create_if_block_1$10(n1){let e1,t1=n1[7],r1=[];for(let o1=0;o1<t1.length;o1+=1)r1[o1]=create_each_block$P(get_each_context$P(n1,t1,o1));return{c(){for(let o1=0;o1<r1.length;o1+=1)r1[o1].c();e1=empty$1()},m(o1,i1){for(let a1=0;a1<r1.length;a1+=1)r1[a1].m(o1,i1);insert$1(o1,e1,i1)},p(o1,i1){if(i1[0]&129){t1=o1[7];let a1;for(a1=0;a1<t1.length;a1+=1){const s1=get_each_context$P(o1,t1,a1);r1[a1]?r1[a1].p(s1,i1):(r1[a1]=create_each_block$P(s1),r1[a1].c(),r1[a1].m(e1.parentNode,e1))}for(;a1<r1.length;a1+=1)r1[a1].d(1);r1.length=t1.length}},d(o1){destroy_each(r1,o1),o1&&detach(e1)}}}function create_each_block$P(n1){let e1,t1,r1,o1,i1,a1,s1=n1[29]+"",l1,c1,u1,f1,p1,d1,m1,_1,h1,b1=n1[29]+"",$1,y1,k1,S1,C1;function A1(){return n1[24](n1[29])}function E1(){return n1[25](n1[29])}return{c(){e1=element("div"),t1=element("div"),r1=element("i"),i1=space$1(),a1=element("div"),l1=text(s1),c1=text("-fill"),u1=space$1(),f1=element("div"),p1=element("div"),d1=element("i"),_1=space$1(),h1=element("div"),$1=text(b1),y1=text("-line"),k1=space$1(),attr(r1,"class",o1=null_to_empty(`ri-${n1[29]}-fill ri-xl`)+" svelte-vhpvzd"),attr(t1,"class","icon-preview svelte-vhpvzd"),attr(a1,"class","icon-label svelte-vhpvzd"),attr(e1,"class","icon-container svelte-vhpvzd"),toggle_class(e1,"selected",n1[0]===`ri-${n1[29]}-fill`),attr(d1,"class",m1=null_to_empty(`ri-${n1[29]}-line ri-xl`)+" svelte-vhpvzd"),attr(p1,"class","icon-preview svelte-vhpvzd"),attr(h1,"class","icon-label svelte-vhpvzd"),attr(f1,"class","icon-container svelte-vhpvzd"),toggle_class(f1,"selected",n1[0]===`ri-${n1[29]}-line`)},m(z1,I1){insert$1(z1,e1,I1),append$1(e1,t1),append$1(t1,r1),append$1(e1,i1),append$1(e1,a1),append$1(a1,l1),append$1(a1,c1),insert$1(z1,u1,I1),insert$1(z1,f1,I1),append$1(f1,p1),append$1(p1,d1),append$1(f1,_1),append$1(f1,h1),append$1(h1,$1),append$1(h1,y1),append$1(f1,k1),S1||(C1=[listen(e1,"click",A1),listen(f1,"click",E1)],S1=!0)},p(z1,I1){n1=z1,I1[0]&128&&o1!==(o1=null_to_empty(`ri-${n1[29]}-fill ri-xl`)+" svelte-vhpvzd")&&attr(r1,"class",o1),I1[0]&128&&s1!==(s1=n1[29]+"")&&set_data(l1,s1),I1[0]&129&&toggle_class(e1,"selected",n1[0]===`ri-${n1[29]}-fill`),I1[0]&128&&m1!==(m1=null_to_empty(`ri-${n1[29]}-line ri-xl`)+" svelte-vhpvzd")&&attr(d1,"class",m1),I1[0]&128&&b1!==(b1=n1[29]+"")&&set_data($1,b1),I1[0]&129&&toggle_class(f1,"selected",n1[0]===`ri-${n1[29]}-line`)},d(z1){z1&&detach(e1),z1&&detach(u1),z1&&detach(f1),S1=!1,run_all(C1)}}}function create_default_slot$2C(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1,k1,S1,C1,A1,E1=n1[9],z1=[];for(let D1=0;D1<E1.length;D1+=1)z1[D1]=create_each_block_1$c(get_each_context_1$c(n1,E1,D1));function I1(D1){n1[21](D1)}let N1={thin:!0,placeholder:"Search Icon"};n1[1]!==void 0&&(N1.value=n1[1]),s1=new Input$5({props:N1}),binding_callbacks.push(()=>bind$3(s1,"value",I1)),u1=new Button({props:{secondary:!0,$$slots:{default:[create_default_slot_1$25]},$$scope:{ctx:n1}}}),u1.$on("click",n1[13]);function U1(D1,V1){return D1[7].length>0?create_if_block$1J:create_else_block$C}let F1=U1(n1),R1=F1(n1);return{c(){e1=element("div"),t1=element("div"),r1=element("div");for(let D1=0;D1<z1.length;D1+=1)z1[D1].c();o1=space$1(),i1=element("div"),a1=element("div"),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),f1=space$1(),p1=element("div"),d1=element("div"),m1=element("span"),m1.innerHTML='<i class="page-btn ri-arrow-left-line ri-sm svelte-vhpvzd"></i>',_1=space$1(),h1=element("span"),b1=text(n1[6]),$1=space$1(),y1=element("span"),y1.innerHTML='<i class="page-btn ri-arrow-right-line ri-sm svelte-vhpvzd"></i>',k1=space$1(),R1.c(),attr(r1,"class","alphabet-area svelte-vhpvzd"),attr(a1,"class","input-wrapper svelte-vhpvzd"),attr(i1,"class","search-input svelte-vhpvzd"),attr(d1,"class","pager"),attr(p1,"class","page-area svelte-vhpvzd"),attr(t1,"class","search-area svelte-vhpvzd"),attr(e1,"class","container svelte-vhpvzd")},m(D1,V1){insert$1(D1,e1,V1),append$1(e1,t1),append$1(t1,r1);for(let j1=0;j1<z1.length;j1+=1)z1[j1].m(r1,null);append$1(t1,o1),append$1(t1,i1),append$1(i1,a1),mount_component(s1,a1,null),append$1(i1,c1),mount_component(u1,i1,null),append$1(t1,f1),append$1(t1,p1),append$1(p1,d1),append$1(d1,m1),append$1(d1,_1),append$1(d1,h1),append$1(h1,b1),append$1(d1,$1),append$1(d1,y1),append$1(e1,k1),R1.m(e1,null),S1=!0,C1||(A1=[listen(m1,"click",n1[22]),listen(y1,"click",n1[23])],C1=!0)},p(D1,V1){if(V1[0]&1540){E1=D1[9];let G1;for(G1=0;G1<E1.length;G1+=1){const q1=get_each_context_1$c(D1,E1,G1);z1[G1]?z1[G1].p(q1,V1):(z1[G1]=create_each_block_1$c(q1),z1[G1].c(),z1[G1].m(r1,null))}for(;G1<z1.length;G1+=1)z1[G1].d(1);z1.length=E1.length}const j1={};!l1&&V1[0]&2&&(l1=!0,j1.value=D1[1],add_flush_callback(()=>l1=!1)),s1.$set(j1);const K1={};V1[1]&16&&(K1.$$scope={dirty:V1,ctx:D1}),u1.$set(K1),(!S1||V1[0]&64)&&set_data(b1,D1[6]),F1===(F1=U1(D1))&&R1?R1.p(D1,V1):(R1.d(1),R1=F1(D1),R1&&(R1.c(),R1.m(e1,null)))},i(D1){S1||(transition_in(s1.$$.fragment,D1),transition_in(u1.$$.fragment,D1),S1=!0)},o(D1){transition_out(s1.$$.fragment,D1),transition_out(u1.$$.fragment,D1),S1=!1},d(D1){D1&&detach(e1),destroy_each(z1,D1),destroy_component(s1),destroy_component(u1),R1.d(),C1=!1,run_all(A1)}}}function create_fragment$3Q(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_2$1A]},$$scope:{ctx:n1}}}),t1.$on("click",function(){is_function(n1[4].show)&&n1[4].show.apply(this,arguments)});let a1={anchor:n1[3],$$slots:{default:[create_default_slot$2C]},$$scope:{ctx:n1}};return o1=new Popover({props:a1}),n1[26](o1),o1.$on("open",n1[11]),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment)},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),n1[19](e1),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,l1){n1=s1;const c1={};l1[0]&256|l1[1]&16&&(c1.$$scope={dirty:l1,ctx:n1}),t1.$set(c1);const u1={};l1[0]&8&&(u1.anchor=n1[3]),l1[0]&231|l1[1]&16&&(u1.$$scope={dirty:l1,ctx:n1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),n1[19](null),s1&&detach(r1),n1[26](null),destroy_component(o1,s1)}}}const icons=Object.keys(iconData).reduce((n1,e1)=>[...n1,...Object.keys(iconData[e1])],[]);function findIconByTerm(n1){const e1=new RegExp(`^${n1}`,"i");return icons.filter(t1=>e1.test(t1))}function instance$3S(n1,e1,t1){let r1,o1,i1,a1,s1;const l1=createEventDispatcher();let{value:c1=""}=e1,{maxIconsPerPage:u1=30}=e1,f1="",p1="A",d1=1,m1=findIconByTerm(p1);const _1=["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 h1,b1,$1=!1;async function y1(V1){t1(15,d1=1),t1(1,f1=""),t1(5,$1=!0),t1(2,p1=V1),t1(16,m1=findIconByTerm(V1)),await tick(),t1(5,$1=!1)}async function k1(){t1(5,$1=!0);const V1=m1.findIndex(j1=>j1.value===c1);V1!==-1&&t1(15,d1=Math.ceil(V1/u1)),await tick(),t1(5,$1=!1)}async function S1(){if(c1){const V1=r1.substring(0,1);await y1(V1),await k1()}}async function C1(V1){t1(5,$1=!0),V1&&d1<o1?t1(15,d1++,d1):!V1&&d1>1&&t1(15,d1--,d1),await tick(),t1(5,$1=!1)}async function A1(){t1(15,d1=1),t1(5,$1=!0),t1(16,m1=findIconByTerm(f1)),await tick(),t1(5,$1=!1)}function E1(V1){binding_callbacks[V1?"unshift":"push"](()=>{h1=V1,t1(3,h1)})}const z1=V1=>y1(V1);function I1(V1){f1=V1,t1(1,f1)}const N1=()=>C1(!1),U1=()=>C1(!0),F1=V1=>t1(0,c1=`ri-${V1}-fill`),R1=V1=>t1(0,c1=`ri-${V1}-line`);function D1(V1){binding_callbacks[V1?"unshift":"push"](()=>{b1=V1,t1(4,b1)})}return n1.$$set=V1=>{"value"in V1&&t1(0,c1=V1.value),"maxIconsPerPage"in V1&&t1(14,u1=V1.maxIconsPerPage)},n1.$$.update=()=>{n1.$$.dirty[0]&1&&l1("change",c1),n1.$$.dirty[0]&1&&t1(8,r1=c1?c1.substring(3):"Pick icon"),n1.$$.dirty[0]&81920&&t1(17,o1=Math.ceil(m1.length/u1)),n1.$$.dirty[0]&49152&&t1(18,i1=u1*d1),n1.$$.dirty[0]&344064&&t1(7,a1=m1.slice(i1-u1,i1)),n1.$$.dirty[0]&163840&&t1(6,s1=`Page ${d1} of ${o1}`)},[c1,f1,p1,h1,b1,$1,s1,a1,r1,_1,y1,S1,C1,A1,u1,d1,m1,o1,i1,E1,z1,I1,N1,U1,F1,R1,D1]}class IconSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3S,create_fragment$3Q,safe_not_equal,{value:0,maxIconsPerPage:14},null,[-1,-1])}}function create_fragment$3P(n1){let e1,t1;return e1=new Select_1$1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3R(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,m1=>t1(8,s1=m1));let{componentInstance:l1={}}=e1,{value:c1=""}=e1,{placeholder:u1}=e1;const f1=createEventDispatcher(),p1=(m1,_1)=>!Array.isArray(_1)||_1.indexOf(m1)===-1?null:m1,d1=m1=>{t1(2,a1=p1(m1.detail,i1)),f1("change",a1)};return n1.$$set=m1=>{"componentInstance"in m1&&t1(4,l1=m1.componentInstance),"value"in m1&&t1(5,c1=m1.value),"placeholder"in m1&&t1(0,u1=m1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(s1,l1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(s1,r1).schema),n1.$$.dirty&64&&t1(1,i1=Object.keys(o1||{})),n1.$$.dirty&34&&t1(2,a1=p1(c1,i1))},[u1,i1,a1,d1,l1,c1,o1,r1,s1]}class FieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3R,create_fragment$3P,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3O(n1){let e1,t1;return e1=new Select_1$1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3Q(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,_1=>t1(8,s1=_1));let{componentInstance:l1={}}=e1,{value:c1=""}=e1,{placeholder:u1}=e1;const f1=createEventDispatcher(),p1=_1=>Object.entries(_1||{}).filter(h1=>!UNSORTABLE_TYPES.includes(h1[1].type)).map(h1=>h1[0]),d1=(_1,h1)=>!Array.isArray(h1)||h1.indexOf(_1)===-1?null:_1,m1=_1=>{t1(2,a1=d1(_1.detail,i1)),f1("change",a1)};return n1.$$set=_1=>{"componentInstance"in _1&&t1(4,l1=_1.componentInstance),"value"in _1&&t1(5,c1=_1.value),"placeholder"in _1&&t1(0,u1=_1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(s1,l1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(s1,r1).schema),n1.$$.dirty&64&&t1(1,i1=p1(o1)),n1.$$.dirty&34&&t1(2,a1=d1(c1,i1))},[u1,i1,a1,m1,l1,c1,o1,r1,s1]}class SortableFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3Q,create_fragment$3O,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3N(n1){let e1,t1;return e1=new Multiselect_1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3P(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,m1=>t1(8,s1=m1));let{componentInstance:l1={}}=e1,{value:c1=""}=e1,{placeholder:u1}=e1;const f1=createEventDispatcher(),p1=(m1,_1)=>(Array.isArray(m1)||(m1=[]),m1.filter(h1=>_1.indexOf(h1)!==-1)),d1=m1=>{t1(2,a1=p1(m1.detail,i1)),f1("change",a1)};return n1.$$set=m1=>{"componentInstance"in m1&&t1(4,l1=m1.componentInstance),"value"in m1&&t1(5,c1=m1.value),"placeholder"in m1&&t1(0,u1=m1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(s1,l1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(s1,r1).schema),n1.$$.dirty&64&&t1(1,i1=Object.keys(o1||{})),n1.$$.dirty&34&&t1(2,a1=p1(c1,i1))},[u1,i1,a1,d1,l1,c1,o1,r1,s1]}class MultiFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3P,create_fragment$3N,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3M(n1){let e1,t1;return e1=new Multiselect_1({props:{placeholder:n1[0],value:n1[2],options:n1[1]}}),e1.$on("change",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.placeholder=r1[0]),o1&4&&(i1.value=r1[2]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function getSelectedOption(n1,e1){return Array.isArray(n1)||(n1=[]),n1.filter(t1=>e1.indexOf(t1)!==-1)}function instance$3O(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,tables,_1=>t1(9,s1=_1)),component_subscribe(n1,currentAsset,_1=>t1(8,l1=_1));let{componentInstance:c1={}}=e1,{value:u1=""}=e1,{placeholder:f1}=e1;const p1=createEventDispatcher();function d1(_1,h1){let b1=Object.values(h1);if(!(_1!=null&&_1.tableId))return b1.map(y1=>y1.name);const $1=s1.list.find(y1=>y1._id===_1.tableId);return getFields(b1,{allowLinks:$1==null?void 0:$1.sql}).map(y1=>y1.name)}const m1=_1=>{t1(2,a1=getSelectedOption(_1.detail,i1)),p1("change",a1)};return n1.$$set=_1=>{"componentInstance"in _1&&t1(4,c1=_1.componentInstance),"value"in _1&&t1(5,u1=_1.value),"placeholder"in _1&&t1(0,f1=_1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&272&&t1(7,r1=getDatasourceForProvider(l1,c1)),n1.$$.dirty&384&&t1(6,o1=getSchemaForDatasource(l1,r1).schema),n1.$$.dirty&192&&t1(1,i1=d1(r1,o1||{})),n1.$$.dirty&34&&t1(2,a1=getSelectedOption(u1,i1))},[f1,i1,a1,m1,c1,u1,o1,r1,l1]}class SearchFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3O,create_fragment$3M,safe_not_equal,{componentInstance:4,value:5,placeholder:0})}}function create_fragment$3L(n1){let e1,t1;const r1=[n1[1],{showAllQueries:!0},{showDataProviders:!1},{otherSources:n1[0]}];let o1={};for(let i1=0;i1<r1.length;i1+=1)o1=assign$1(o1,r1[i1]);return e1=new DataSourceSelect({props:o1}),e1.$on("change",n1[2]),{c(){create_component(e1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),t1=!0},p(i1,[a1]){const s1=a1&3?get_spread_update(r1,[a1&2&&get_spread_object(i1[1]),r1[1],r1[2],a1&1&&{otherSources:i1[0]}]):{};e1.$set(s1)},i(i1){t1||(transition_in(e1.$$.fragment,i1),t1=!0)},o(i1){transition_out(e1.$$.fragment,i1),t1=!1},d(i1){destroy_component(e1,i1)}}}function instance$3N(n1,e1,t1){const r1=[{name:"Custom",label:"Custom"}];function o1(i1){bubble.call(this,n1,i1)}return n1.$$set=i1=>{t1(1,e1=assign$1(assign$1({},e1),exclude_internal_props(i1)))},e1=exclude_internal_props(e1),[r1,e1,o1]}class SchemaSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3N,create_fragment$3L,safe_not_equal,{})}}const SectionSelect_svelte_svelte_type_style_lang="";function get_each_context$O(n1,e1,t1){const r1=n1.slice();return r1[8]=e1[t1][0],r1[0]=e1[t1][1],r1}function create_default_slot_3$1i(n1){let e1=n1[4][n1[0]].name+"",t1;return{c(){t1=text(e1)},m(r1,o1){insert$1(r1,t1,o1)},p(r1,o1){o1&1&&e1!==(e1=r1[4][r1[0]].name+"")&&set_data(t1,e1)},d(r1){r1&&detach(t1)}}}function create_default_slot_2$1z(n1){let e1=n1[0].name+"",t1;return{c(){t1=text(e1)},m(r1,o1){insert$1(r1,t1,o1)},p:noop$5,d(r1){r1&&detach(t1)}}}function create_each_block$O(n1){let e1,t1,r1,o1,i1,a1,s1,l1;t1=new Icon({props:{color:"white",size:"L",name:n1[0].icon}}),o1=new Body({props:{size:"XS",$$slots:{default:[create_default_slot_2$1z]},$$scope:{ctx:n1}}});function c1(){return n1[5](n1[8])}return{c(){e1=element("button"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),attr(e1,"class","layout svelte-dl48fo"),toggle_class(e1,"selected",n1[1]===n1[8])},m(u1,f1){insert$1(u1,e1,f1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),a1=!0,s1||(l1=listen(e1,"click",c1),s1=!0)},p(u1,f1){n1=u1;const p1={};f1&2048&&(p1.$$scope={dirty:f1,ctx:n1}),o1.$set(p1),(!a1||f1&18)&&toggle_class(e1,"selected",n1[1]===n1[8])},i(u1){a1||(transition_in(t1.$$.fragment,u1),transition_in(o1.$$.fragment,u1),a1=!0)},o(u1){transition_out(t1.$$.fragment,u1),transition_out(o1.$$.fragment,u1),a1=!1},d(u1){u1&&detach(e1),destroy_component(t1),destroy_component(o1),s1=!1,l1()}}}function create_default_slot_1$24(n1){let e1,t1,r1=Object.entries(n1[4]),o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block$O(get_each_context$O(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){e1=element("div");for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();attr(e1,"class","container svelte-dl48fo")},m(a1,s1){insert$1(a1,e1,s1);for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(e1,null);t1=!0},p(a1,s1){if(s1&18){r1=Object.entries(a1[4]);let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context$O(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block$O(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1,null))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){a1&&detach(e1),destroy_each(o1,a1)}}}function create_default_slot$2B(n1){let e1,t1;return e1=new ModalContent({props:{onConfirm:n1[6],size:"L",title:"Select layout",$$slots:{default:[create_default_slot_1$24]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2&&(i1.onConfirm=r1[6]),o1&2050&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3K(n1){let e1,t1,r1,o1;e1=new ActionButton({props:{$$slots:{default:[create_default_slot_3$1i]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[2].show)&&n1[2].show.apply(this,arguments)});let i1={$$slots:{default:[create_default_slot$2B]},$$scope:{ctx:n1}};return r1=new Modal({props:i1}),n1[7](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&2049&&(l1.$$scope={dirty:s1,ctx:n1}),e1.$set(l1);const c1={};s1&2050&&(c1.$$scope={dirty:s1,ctx:n1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[7](null),destroy_component(r1,a1)}}}function instance$3M(n1,e1,t1){const r1=createEventDispatcher();let{value:o1=""}=e1,i1=o1,a1,s1={mainSidebar:{name:"Main with Sidebar",icon:"ColumnTwoB"},sidebarMain:{name:"Sidebar with Main",icon:"ColumnTwoC"},oneColumn:{name:"One column",icon:"LoupeView"},twoColumns:{name:"Two columns",icon:"ColumnTwoA"},threeColumns:{name:"Three columns",icon:"ViewColumn"}};const l1=f1=>t1(1,i1=f1),c1=()=>r1("change",i1);function u1(f1){binding_callbacks[f1?"unshift":"push"](()=>{a1=f1,t1(2,a1)})}return n1.$$set=f1=>{"value"in f1&&t1(0,o1=f1.value)},[o1,i1,a1,r1,s1,l1,c1,u1]}class SectionSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3M,create_fragment$3K,safe_not_equal,{value:0})}}const FilterEditor_svelte_svelte_type_style_lang="";function create_default_slot_1$23(n1){let e1;return{c(){e1=text(n1[5])},m(t1,r1){insert$1(t1,e1,r1)},p(t1,r1){r1&32&&set_data(e1,t1[5])},d(t1){t1&&detach(e1)}}}function create_default_slot$2A(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$b(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2A]},$$scope:{ctx:n1}}}),e1.$on("click",n1[7]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&32768&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$a(n1){let e1,t1;return e1=new FilterDrawer({props:{slot:"body",filters:n1[0],bindings:n1[1],schemaFields:n1[6],datasource:n1[2]}}),e1.$on("change",n1[11]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1&&(i1.filters=r1[0]),o1&2&&(i1.bindings=r1[1]),o1&64&&(i1.schemaFields=r1[6]),o1&4&&(i1.datasource=r1[2]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3J(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$23]},$$scope:{ctx:n1}}}),t1.$on("click",function(){is_function(n1[3].show)&&n1[3].show.apply(this,arguments)});let a1={title:"Filtering",$$slots:{body:[create_body_slot$a],buttons:[create_buttons_slot$b]},$$scope:{ctx:n1}};return o1=new Drawer({props:a1}),n1[12](o1),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","filter-editor svelte-vu03nw")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,[l1]){n1=s1;const c1={};l1&32800&&(c1.$$scope={dirty:l1,ctx:n1}),t1.$set(c1);const u1={};l1&32855&&(u1.$$scope={dirty:l1,ctx:n1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),s1&&detach(r1),n1[12](null),destroy_component(o1,s1)}}}function instance$3L(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,currentAsset,$1=>t1(10,l1=$1));const c1=createEventDispatcher();let{value:u1=[]}=e1,{componentInstance:f1}=e1,{bindings:p1=[]}=e1,d1;async function m1(){c1("change",r1),notifications.success("Filters saved"),d1.hide()}const _1=$1=>$1!=null&&$1.length?`${$1.length} filter${$1.length===1?"":"s"} set`:"No filters set",h1=$1=>t1(4,r1=$1.detail);function b1($1){binding_callbacks[$1?"unshift":"push"](()=>{d1=$1,t1(3,d1)})}return n1.$$set=$1=>{"value"in $1&&t1(0,u1=$1.value),"componentInstance"in $1&&t1(8,f1=$1.componentInstance),"bindings"in $1&&t1(1,p1=$1.bindings)},n1.$$.update=()=>{var $1;n1.$$.dirty&1&&t1(4,r1=u1),n1.$$.dirty&1280&&t1(2,o1=getDatasourceForProvider(l1,f1)),n1.$$.dirty&1028&&t1(9,i1=($1=getSchemaForDatasource(l1,o1))==null?void 0:$1.schema),n1.$$.dirty&512&&t1(6,a1=Object.values(i1||{})),n1.$$.dirty&1&&t1(5,s1=_1(u1))},[u1,p1,o1,d1,r1,s1,a1,m1,f1,i1,l1,h1,b1]}class FilterEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3L,create_fragment$3J,safe_not_equal,{value:0,componentInstance:8,bindings:1})}}function create_fragment$3I(n1){let e1,t1;return e1=new DrawerBindableCombobox({props:{value:n1[0],bindings:n1[1],placeholder:n1[2],options:n1[3],appendBindingsAsOptions:!1}}),e1.$on("change",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.value=r1[0]),o1&2&&(i1.bindings=r1[1]),o1&4&&(i1.placeholder=r1[2]),o1&8&&(i1.options=r1[3]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3K(n1,e1,t1){let r1,o1;component_subscribe(n1,store,c1=>t1(4,o1=c1));let{value:i1}=e1,{bindings:a1}=e1,{placeholder:s1}=e1;function l1(c1){bubble.call(this,n1,c1)}return n1.$$set=c1=>{"value"in c1&&t1(0,i1=c1.value),"bindings"in c1&&t1(1,a1=c1.bindings),"placeholder"in c1&&t1(2,s1=c1.placeholder)},n1.$$.update=()=>{n1.$$.dirty&16&&t1(3,r1=o1.screens.map(c1=>{var u1;return(u1=c1.routing)==null?void 0:u1.route}).filter(c1=>c1!=null))},[i1,a1,s1,r1,o1,l1]}class URLSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3K,create_fragment$3I,safe_not_equal,{value:0,bindings:1,placeholder:2})}}const OptionsDrawer_svelte_svelte_type_style_lang="";function get_each_context$N(n1,e1,t1){const r1=n1.slice();return r1[6]=e1[t1],r1[7]=e1,r1[8]=t1,r1}function create_if_block_1$$(n1){let e1,t1;return e1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_5$U]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_5$U(n1){let e1;return{c(){e1=text("Add an option to get started.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1I(n1){let e1,t1,r1,o1,i1,a1,s1,l1=[],c1=new Map,u1;t1=new Label({props:{$$slots:{default:[create_default_slot_4$11]},$$scope:{ctx:n1}}}),o1=new Label({props:{$$slots:{default:[create_default_slot_3$1h]},$$scope:{ctx:n1}}});let f1=n1[0];const p1=d1=>d1[6].id;for(let d1=0;d1<f1.length;d1+=1){let m1=get_each_context$N(n1,f1,d1),_1=p1(m1);c1.set(_1,l1[d1]=create_each_block$N(_1,m1))}return{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),a1=element("div"),s1=space$1();for(let d1=0;d1<l1.length;d1+=1)l1[d1].c();attr(e1,"class","options svelte-12ls1u")},m(d1,m1){insert$1(d1,e1,m1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),append$1(e1,a1),append$1(e1,s1);for(let _1=0;_1<l1.length;_1+=1)l1[_1].m(e1,null);u1=!0},p(d1,m1){const _1={};m1&512&&(_1.$$scope={dirty:m1,ctx:d1}),t1.$set(_1);const h1={};m1&512&&(h1.$$scope={dirty:m1,ctx:d1}),o1.$set(h1),m1&3&&(f1=d1[0],group_outros(),l1=update_keyed_each(l1,m1,p1,1,d1,f1,c1,e1,outro_and_destroy_block,create_each_block$N,null,get_each_context$N),check_outros())},i(d1){if(!u1){transition_in(t1.$$.fragment,d1),transition_in(o1.$$.fragment,d1);for(let m1=0;m1<f1.length;m1+=1)transition_in(l1[m1]);u1=!0}},o(d1){transition_out(t1.$$.fragment,d1),transition_out(o1.$$.fragment,d1);for(let m1=0;m1<l1.length;m1+=1)transition_out(l1[m1]);u1=!1},d(d1){d1&&detach(e1),destroy_component(t1),destroy_component(o1);for(let m1=0;m1<l1.length;m1+=1)l1[m1].d()}}}function create_default_slot_4$11(n1){let e1;return{c(){e1=text("Label")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$1h(n1){let e1;return{c(){e1=text("Value")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block$N(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1;function f1(h1){e1[3](h1,e1[6])}let p1={placeholder:"Label"};e1[6].label!==void 0&&(p1.value=e1[6].label),r1=new Input$5({props:p1}),binding_callbacks.push(()=>bind$3(r1,"value",f1));function d1(h1){e1[4](h1,e1[6])}let m1={placeholder:"Value"};e1[6].value!==void 0&&(m1.value=e1[6].value),a1=new Input$5({props:m1}),binding_callbacks.push(()=>bind$3(a1,"value",d1));function _1(){return e1[5](e1[6])}return c1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),c1.$on("click",_1),{key:n1,first:null,c(){t1=empty$1(),create_component(r1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),this.first=t1},m(h1,b1){insert$1(h1,t1,b1),mount_component(r1,h1,b1),insert$1(h1,i1,b1),mount_component(a1,h1,b1),insert$1(h1,l1,b1),mount_component(c1,h1,b1),u1=!0},p(h1,b1){e1=h1;const $1={};!o1&&b1&1&&(o1=!0,$1.value=e1[6].label,add_flush_callback(()=>o1=!1)),r1.$set($1);const y1={};!s1&&b1&1&&(s1=!0,y1.value=e1[6].value,add_flush_callback(()=>s1=!1)),a1.$set(y1)},i(h1){u1||(transition_in(r1.$$.fragment,h1),transition_in(a1.$$.fragment,h1),transition_in(c1.$$.fragment,h1),u1=!0)},o(h1){transition_out(r1.$$.fragment,h1),transition_out(a1.$$.fragment,h1),transition_out(c1.$$.fragment,h1),u1=!1},d(h1){h1&&detach(t1),destroy_component(r1,h1),h1&&detach(i1),destroy_component(a1,h1),h1&&detach(l1),destroy_component(c1,h1)}}}function create_default_slot_2$1y(n1){let e1;return{c(){e1=text("Add Option")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$22(n1){var l1;let e1,t1,r1,o1,i1,a1=!n1[0].length&&create_if_block_1$$(n1),s1=((l1=n1[0])==null?void 0:l1.length)&&create_if_block$1I(n1);return o1=new Button({props:{icon:"AddCircle",size:"M",secondary:!0,$$slots:{default:[create_default_slot_2$1y]},$$scope:{ctx:n1}}}),o1.$on("click",n1[2]),{c(){a1&&a1.c(),e1=space$1(),s1&&s1.c(),t1=space$1(),r1=element("div"),create_component(o1.$$.fragment)},m(c1,u1){a1&&a1.m(c1,u1),insert$1(c1,e1,u1),s1&&s1.m(c1,u1),insert$1(c1,t1,u1),insert$1(c1,r1,u1),mount_component(o1,r1,null),i1=!0},p(c1,u1){var p1;c1[0].length?a1&&(group_outros(),transition_out(a1,1,1,()=>{a1=null}),check_outros()):a1?u1&1&&transition_in(a1,1):(a1=create_if_block_1$$(c1),a1.c(),transition_in(a1,1),a1.m(e1.parentNode,e1)),(p1=c1[0])!=null&&p1.length?s1?(s1.p(c1,u1),u1&1&&transition_in(s1,1)):(s1=create_if_block$1I(c1),s1.c(),transition_in(s1,1),s1.m(t1.parentNode,t1)):s1&&(group_outros(),transition_out(s1,1,1,()=>{s1=null}),check_outros());const f1={};u1&512&&(f1.$$scope={dirty:u1,ctx:c1}),o1.$set(f1)},i(c1){i1||(transition_in(a1),transition_in(s1),transition_in(o1.$$.fragment,c1),i1=!0)},o(c1){transition_out(a1),transition_out(s1),transition_out(o1.$$.fragment,c1),i1=!1},d(c1){a1&&a1.d(c1),c1&&detach(e1),s1&&s1.d(c1),c1&&detach(t1),c1&&detach(r1),destroy_component(o1)}}}function create_default_slot$2z(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$22]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-12ls1u")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&513&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3H(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2z]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&513&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3J(n1,e1,t1){let{options:r1=[]}=e1;const o1=c1=>{t1(0,r1=r1.filter(u1=>u1.id!==c1))},i1=()=>{t1(0,r1=[...r1,{id:shortid.exports.generate(),label:null,value:null}])};function a1(c1,u1){n1.$$.not_equal(u1.label,c1)&&(u1.label=c1,t1(0,r1))}function s1(c1,u1){n1.$$.not_equal(u1.value,c1)&&(u1.value=c1,t1(0,r1))}const l1=c1=>o1(c1.id);return n1.$$set=c1=>{"options"in c1&&t1(0,r1=c1.options)},[r1,o1,i1,a1,s1,l1]}class OptionsDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3J,create_fragment$3H,safe_not_equal,{options:0})}}function create_default_slot_1$21(n1){let e1;return{c(){e1=text("Define Options")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_description_slot$7(n1){let e1;return{c(){e1=text("Define the options for this picker.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2y(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$a(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2y]},$$scope:{ctx:n1}}}),e1.$on("click",n1[2]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$9(n1){let e1,t1,r1;function o1(a1){n1[4](a1)}let i1={slot:"body"};return n1[1]!==void 0&&(i1.options=n1[1]),e1=new OptionsDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"options",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};!t1&&s1&2&&(t1=!0,l1.options=a1[1],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3G(n1){let e1,t1,r1,o1;e1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$21]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[0].show)&&n1[0].show.apply(this,arguments)});let i1={title:"Options",$$slots:{body:[create_body_slot$9],buttons:[create_buttons_slot$a],description:[create_description_slot$7]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[5](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&128&&(l1.$$scope={dirty:s1,ctx:n1}),e1.$set(l1);const c1={};s1&130&&(c1.$$scope={dirty:s1,ctx:n1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[5](null),destroy_component(r1,a1)}}}function instance$3I(n1,e1,t1){const r1=createEventDispatcher();let{value:o1}=e1,i1,a1=o1||[];const s1=async()=>{t1(1,a1=a1.filter(u1=>u1.value||u1.label));for(let u1=0;u1<a1.length;u1++){let f1=a1[u1];f1.label=f1.label?f1.label:f1.value,f1.value=f1.value?f1.value:f1.label,t1(1,a1[u1]=f1,a1)}r1("change",a1),i1.hide()};function l1(u1){a1=u1,t1(1,a1)}function c1(u1){binding_callbacks[u1?"unshift":"push"](()=>{i1=u1,t1(0,i1)})}return n1.$$set=u1=>{"value"in u1&&t1(3,o1=u1.value)},[i1,a1,s1,o1,l1,c1]}class OptionsEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3I,create_fragment$3G,safe_not_equal,{value:3})}}function create_fragment$3F(n1){let e1,t1;return e1=new Combobox_1({props:{value:n1[0],options:n1[1]}}),e1.$on("change",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&1&&(i1.value=r1[0]),o1&2&&(i1.options=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3H(n1,e1,t1){let r1,o1;component_subscribe(n1,currentAsset,c1=>t1(4,o1=c1));let{componentInstance:i1}=e1,{value:a1}=e1,{type:s1}=e1;function l1(c1){bubble.call(this,n1,c1)}return n1.$$set=c1=>{"componentInstance"in c1&&t1(2,i1=c1.componentInstance),"value"in c1&&t1(0,a1=c1.value),"type"in c1&&t1(3,s1=c1.type)},n1.$$.update=()=>{n1.$$.dirty&28&&t1(1,r1=getComponentFieldOptions(o1==null?void 0:o1.props,i1==null?void 0:i1._id,s1))},[a1,r1,i1,s1,o1,l1]}class FormFieldSelect extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3H,create_fragment$3F,safe_not_equal,{componentInstance:2,value:0,type:3})}}const ValidationDrawer_svelte_svelte_type_style_lang="";function get_each_context$M(n1,e1,t1){const r1=n1.slice();return r1[31]=e1[t1],r1[32]=e1,r1[33]=t1,r1}function get_each_context_1$b(n1,e1,t1){const r1=n1.slice();return r1[31]=e1[t1],r1}function create_default_slot_7$C(n1){let e1;return{c(){e1=text("Schema validation rules")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_else_block_2$1(n1){let e1,t1;return e1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_6$J]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_7$4(n1){let e1,t1,r1=n1[5],o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block_1$b(get_each_context_1$b(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){e1=element("div");for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();attr(e1,"class","links svelte-1wicvgv")},m(a1,s1){insert$1(a1,e1,s1);for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(e1,null);t1=!0},p(a1,s1){if(s1[0]&50){r1=a1[5];let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context_1$b(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block_1$b(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1,null))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){a1&&detach(e1),destroy_each(o1,a1)}}}function create_default_slot_6$J(n1){let e1;return{c(){e1=text("There are no built-in validation rules from the schema.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block_1$b(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1;return t1=new Select_1$1({props:{placeholder:"Constraint",value:n1[31].constraint,options:n1[4],disabled:!0}}),o1=new Select_1$1({props:{placeholder:null,value:"Value",options:["Binding","Value"],disabled:!0}}),a1=new DrawerBindableInput({props:{placeholder:"Constraint value",value:n1[31].value,bindings:n1[1],disabled:!0}}),l1=new DrawerBindableInput({props:{placeholder:"Error message",value:n1[31].error,bindings:n1[1],disabled:!0}}),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),s1=space$1(),create_component(l1.$$.fragment),c1=space$1(),u1=element("div"),f1=space$1(),attr(e1,"class","rule schema svelte-1wicvgv")},m(d1,m1){insert$1(d1,e1,m1),mount_component(t1,e1,null),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),mount_component(a1,e1,null),append$1(e1,s1),mount_component(l1,e1,null),append$1(e1,c1),append$1(e1,u1),append$1(e1,f1),p1=!0},p(d1,m1){const _1={};m1[0]&32&&(_1.value=d1[31].constraint),m1[0]&16&&(_1.options=d1[4]),t1.$set(_1);const h1={};m1[0]&32&&(h1.value=d1[31].value),m1[0]&2&&(h1.bindings=d1[1]),a1.$set(h1);const b1={};m1[0]&32&&(b1.value=d1[31].error),m1[0]&2&&(b1.bindings=d1[1]),l1.$set(b1)},i(d1){p1||(transition_in(t1.$$.fragment,d1),transition_in(o1.$$.fragment,d1),transition_in(a1.$$.fragment,d1),transition_in(l1.$$.fragment,d1),p1=!0)},o(d1){transition_out(t1.$$.fragment,d1),transition_out(o1.$$.fragment,d1),transition_out(a1.$$.fragment,d1),transition_out(l1.$$.fragment,d1),p1=!1},d(d1){d1&&detach(e1),destroy_component(t1),destroy_component(o1),destroy_component(a1),destroy_component(l1)}}}function create_default_slot_5$T(n1){let e1,t1,r1,o1,i1,a1;e1=new Heading({props:{size:"XS",$$slots:{default:[create_default_slot_7$C]},$$scope:{ctx:n1}}});const s1=[create_if_block_7$4,create_else_block_2$1],l1=[];function c1(u1,f1){var p1;return(p1=u1[5])!=null&&p1.length?0:1}return r1=c1(n1),o1=l1[r1]=s1[r1](n1),{c(){create_component(e1.$$.fragment),t1=space$1(),o1.c(),i1=empty$1()},m(u1,f1){mount_component(e1,u1,f1),insert$1(u1,t1,f1),l1[r1].m(u1,f1),insert$1(u1,i1,f1),a1=!0},p(u1,f1){const p1={};f1[1]&32&&(p1.$$scope={dirty:f1,ctx:u1}),e1.$set(p1);let d1=r1;r1=c1(u1),r1===d1?l1[r1].p(u1,f1):(group_outros(),transition_out(l1[d1],1,1,()=>{l1[d1]=null}),check_outros(),o1=l1[r1],o1?o1.p(u1,f1):(o1=l1[r1]=s1[r1](u1),o1.c()),transition_in(o1,1),o1.m(i1.parentNode,i1))},i(u1){a1||(transition_in(e1.$$.fragment,u1),transition_in(o1),a1=!0)},o(u1){transition_out(e1.$$.fragment,u1),transition_out(o1),a1=!1},d(u1){destroy_component(e1,u1),u1&&detach(t1),l1[r1].d(u1),u1&&detach(i1)}}}function create_default_slot_4$10(n1){let e1;return{c(){e1=text("Custom validation rules")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1H(n1){let e1,t1=[],r1=new Map,o1,i1=n1[0];const a1=s1=>s1[31].id;for(let s1=0;s1<i1.length;s1+=1){let l1=get_each_context$M(n1,i1,s1),c1=a1(l1);r1.set(c1,t1[s1]=create_each_block$M(c1,l1))}return{c(){e1=element("div");for(let s1=0;s1<t1.length;s1+=1)t1[s1].c();attr(e1,"class","links svelte-1wicvgv")},m(s1,l1){insert$1(s1,e1,l1);for(let c1=0;c1<t1.length;c1+=1)t1[c1].m(e1,null);o1=!0},p(s1,l1){l1[0]&415&&(i1=s1[0],group_outros(),t1=update_keyed_each(t1,l1,a1,1,s1,i1,r1,e1,outro_and_destroy_block,create_each_block$M,null,get_each_context$M),check_outros())},i(s1){if(!o1){for(let l1=0;l1<i1.length;l1+=1)transition_in(t1[l1]);o1=!0}},o(s1){for(let l1=0;l1<t1.length;l1+=1)transition_out(t1[l1]);o1=!1},d(s1){s1&&detach(e1);for(let l1=0;l1<t1.length;l1+=1)t1[l1].d()}}}function create_else_block$B(n1){let e1,t1,r1,o1,i1;const a1=[create_if_block_3$o,create_if_block_4$h,create_if_block_5$9,create_if_block_6$4,create_else_block_1$8],s1=[];function l1(c1,u1){return u1[0]&1&&(e1=null),e1==null&&(e1=!!["string","number","options","longform"].includes(c1[31].type)),e1?0:c1[31].type==="array"?1:c1[31].type==="boolean"?2:c1[31].type==="datetime"?3:4}return t1=l1(n1,[-1,-1]),r1=s1[t1]=a1[t1](n1),{c(){r1.c(),o1=empty$1()},m(c1,u1){s1[t1].m(c1,u1),insert$1(c1,o1,u1),i1=!0},p(c1,u1){let f1=t1;t1=l1(c1,u1),t1===f1?s1[t1].p(c1,u1):(group_outros(),transition_out(s1[f1],1,1,()=>{s1[f1]=null}),check_outros(),r1=s1[t1],r1?r1.p(c1,u1):(r1=s1[t1]=a1[t1](c1),r1.c()),transition_in(r1,1),r1.m(o1.parentNode,o1))},i(c1){i1||(transition_in(r1),i1=!0)},o(c1){transition_out(r1),i1=!1},d(c1){s1[t1].d(c1),c1&&detach(o1)}}}function create_if_block_2$D(n1){let e1,t1,r1;function o1(a1){n1[17](a1,n1[31])}let i1={placeholder:"Constraint value"};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new Input$5({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_1$_(n1){let e1,t1;function r1(...o1){return n1[16](n1[31],n1[32],n1[33],...o1)}return e1=new DrawerBindableInput({props:{placeholder:"Constraint value",value:n1[31].value,bindings:n1[1],disabled:n1[31].constraint==="required"}}),e1.$on("change",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.value=n1[31].value),i1[0]&2&&(a1.bindings=n1[1]),i1[0]&1&&(a1.disabled=n1[31].constraint==="required"),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_else_block_1$8(n1){let e1,t1;return e1=new DrawerBindableInput({props:{disabled:!0}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p:noop$5,i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_6$4(n1){let e1,t1,r1;function o1(a1){n1[21](a1,n1[31])}let i1={enableTime:!1,disabled:n1[31].constraint==="required"};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new DatePicker_1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[31].constraint==="required"),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_5$9(n1){let e1,t1,r1;function o1(a1){n1[20](a1,n1[31])}let i1={disabled:n1[31].constraint==="required",options:[{label:"True",value:"true"},{label:"False",value:"false"}]};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new Select_1$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[31].constraint==="required"),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_4$h(n1){let e1,t1;function r1(...o1){return n1[19](n1[31],n1[32],n1[33],...o1)}return e1=new Select_1$1({props:{disabled:n1[31].constraint==="required",options:n1[2].schema[n1[3]].constraints.inclusion,getOptionLabel:func$h,getOptionValue:func_1$d,value:n1[31].value}}),e1.$on("change",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.disabled=n1[31].constraint==="required"),i1[0]&12&&(a1.options=n1[2].schema[n1[3]].constraints.inclusion),i1[0]&1&&(a1.value=n1[31].value),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_if_block_3$o(n1){let e1,t1,r1;function o1(a1){n1[18](a1,n1[31])}let i1={disabled:n1[31].constraint==="required",placeholder:"Constraint value"};return n1[31].value!==void 0&&(i1.value=n1[31].value),e1=new Input$5({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[31].constraint==="required"),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[31].value,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_each_block$M(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1;function k1(R1){e1[14](R1,e1[31])}let S1={options:e1[4],placeholder:"Constraint"};e1[31].constraint!==void 0&&(S1.value=e1[31].constraint),r1=new Select_1$1({props:S1}),binding_callbacks.push(()=>bind$3(r1,"value",k1));function C1(R1){e1[15](R1,e1[31])}let A1={disabled:e1[31].constraint==="required",placeholder:null,options:["Binding","Value"]};e1[31].valueType!==void 0&&(A1.value=e1[31].valueType),a1=new Select_1$1({props:A1}),binding_callbacks.push(()=>bind$3(a1,"value",C1));const E1=[create_if_block_1$_,create_if_block_2$D,create_else_block$B],z1=[];function I1(R1,D1){return D1[0]&1&&(c1=null),R1[31].valueType==="Binding"?0:(c1==null&&(c1=!!(R1[31].type!=="array"&&["maxUploadSize","maxFileSize","maxLength","minLength","regex","notRegex","contains","notContains"].includes(R1[31].constraint))),c1?1:2)}u1=I1(e1,[-1,-1]),f1=z1[u1]=E1[u1](e1);function N1(...R1){return e1[22](e1[31],e1[32],e1[33],...R1)}d1=new DrawerBindableInput({props:{placeholder:"Error message",value:e1[31].error,bindings:e1[1]}}),d1.$on("change",N1);function U1(){return e1[23](e1[31])}_1=new Icon({props:{name:"Duplicate",hoverable:!0,size:"S"}}),_1.$on("click",U1);function F1(){return e1[24](e1[31])}return b1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),b1.$on("click",F1),{key:n1,first:null,c(){t1=element("div"),create_component(r1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),l1=space$1(),f1.c(),p1=space$1(),create_component(d1.$$.fragment),m1=space$1(),create_component(_1.$$.fragment),h1=space$1(),create_component(b1.$$.fragment),$1=space$1(),attr(t1,"class","rule svelte-1wicvgv"),this.first=t1},m(R1,D1){insert$1(R1,t1,D1),mount_component(r1,t1,null),append$1(t1,i1),mount_component(a1,t1,null),append$1(t1,l1),z1[u1].m(t1,null),append$1(t1,p1),mount_component(d1,t1,null),append$1(t1,m1),mount_component(_1,t1,null),append$1(t1,h1),mount_component(b1,t1,null),append$1(t1,$1),y1=!0},p(R1,D1){e1=R1;const V1={};D1[0]&16&&(V1.options=e1[4]),!o1&&D1[0]&1&&(o1=!0,V1.value=e1[31].constraint,add_flush_callback(()=>o1=!1)),r1.$set(V1);const j1={};D1[0]&1&&(j1.disabled=e1[31].constraint==="required"),!s1&&D1[0]&1&&(s1=!0,j1.value=e1[31].valueType,add_flush_callback(()=>s1=!1)),a1.$set(j1);let K1=u1;u1=I1(e1,D1),u1===K1?z1[u1].p(e1,D1):(group_outros(),transition_out(z1[K1],1,1,()=>{z1[K1]=null}),check_outros(),f1=z1[u1],f1?f1.p(e1,D1):(f1=z1[u1]=E1[u1](e1),f1.c()),transition_in(f1,1),f1.m(t1,p1));const G1={};D1[0]&1&&(G1.value=e1[31].error),D1[0]&2&&(G1.bindings=e1[1]),d1.$set(G1)},i(R1){y1||(transition_in(r1.$$.fragment,R1),transition_in(a1.$$.fragment,R1),transition_in(f1),transition_in(d1.$$.fragment,R1),transition_in(_1.$$.fragment,R1),transition_in(b1.$$.fragment,R1),y1=!0)},o(R1){transition_out(r1.$$.fragment,R1),transition_out(a1.$$.fragment,R1),transition_out(f1),transition_out(d1.$$.fragment,R1),transition_out(_1.$$.fragment,R1),transition_out(b1.$$.fragment,R1),y1=!1},d(R1){R1&&detach(t1),destroy_component(r1),destroy_component(a1),z1[u1].d(),destroy_component(d1),destroy_component(_1),destroy_component(b1)}}}function create_default_slot_3$1g(n1){let e1;return{c(){e1=text("Add Rule")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1x(n1){var l1;let e1,t1,r1,o1,i1,a1;e1=new Heading({props:{size:"XS",$$slots:{default:[create_default_slot_4$10]},$$scope:{ctx:n1}}});let s1=((l1=n1[0])==null?void 0:l1.length)&&create_if_block$1H(n1);return i1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_3$1g]},$$scope:{ctx:n1}}}),i1.$on("click",n1[6]),{c(){create_component(e1.$$.fragment),t1=space$1(),s1&&s1.c(),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment),attr(o1,"class","button")},m(c1,u1){mount_component(e1,c1,u1),insert$1(c1,t1,u1),s1&&s1.m(c1,u1),insert$1(c1,r1,u1),insert$1(c1,o1,u1),mount_component(i1,o1,null),a1=!0},p(c1,u1){var d1;const f1={};u1[1]&32&&(f1.$$scope={dirty:u1,ctx:c1}),e1.$set(f1),(d1=c1[0])!=null&&d1.length?s1?(s1.p(c1,u1),u1[0]&1&&transition_in(s1,1)):(s1=create_if_block$1H(c1),s1.c(),transition_in(s1,1),s1.m(r1.parentNode,r1)):s1&&(group_outros(),transition_out(s1,1,1,()=>{s1=null}),check_outros());const p1={};u1[1]&32&&(p1.$$scope={dirty:u1,ctx:c1}),i1.$set(p1)},i(c1){a1||(transition_in(e1.$$.fragment,c1),transition_in(s1),transition_in(i1.$$.fragment,c1),a1=!0)},o(c1){transition_out(e1.$$.fragment,c1),transition_out(s1),transition_out(i1.$$.fragment,c1),a1=!1},d(c1){destroy_component(e1,c1),c1&&detach(t1),s1&&s1.d(c1),c1&&detach(r1),c1&&detach(o1),destroy_component(i1)}}}function create_default_slot_1$20(n1){var i1;let e1,t1,r1,o1;return e1=new Layout$n({props:{noPadding:!0,gap:(i1=n1[5])!=null&&i1.length?"S":"XS",$$slots:{default:[create_default_slot_5$T]},$$scope:{ctx:n1}}}),r1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_2$1x]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,s1){var u1;const l1={};s1[0]&32&&(l1.gap=(u1=a1[5])!=null&&u1.length?"S":"XS"),s1[0]&50|s1[1]&32&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};s1[0]&31|s1[1]&32&&(c1.$$scope={dirty:s1,ctx:a1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),destroy_component(r1,a1)}}}function create_default_slot$2x(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"M",$$slots:{default:[create_default_slot_1$20]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-1wicvgv")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1[0]&63|i1[1]&32&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3E(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2x]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&63|o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const func$h=n1=>n1,func_1$d=n1=>n1;function instance$3G(n1,e1,t1){let r1,o1,i1,a1,s1,l1,c1;component_subscribe(n1,selectedComponent,K1=>t1(12,l1=K1)),component_subscribe(n1,currentAsset,K1=>t1(13,c1=K1));let{fieldName:u1=null}=e1,{rules:f1=[]}=e1,{bindings:p1=[]}=e1,{type:d1}=e1;const m1={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"},MaxFileSize:{label:"Max file size (MB)",value:"maxFileSize"},MaxUploadSize:{label:"Max total upload size (MB)",value:"maxUploadSize"}},_1={string:[m1.Required,m1.MaxLength,m1.Equal,m1.NotEqual,m1.Regex,m1.NotRegex],number:[m1.Required,m1.MaxValue,m1.MinValue,m1.Equal,m1.NotEqual],boolean:[m1.Required,m1.Equal,m1.NotEqual],datetime:[m1.Required,m1.MaxValue,m1.MinValue,m1.Equal,m1.NotEqual],attachment:[m1.Required,m1.MaxFileSize,m1.MaxUploadSize],link:[m1.Required,m1.Contains,m1.NotContains,m1.MinLength,m1.MaxLength],array:[m1.Required,m1.MinLength,m1.MaxLength,m1.Contains,m1.NotContains]},h1=K1=>_1[K1],b1=(K1,G1)=>{if(!K1||!G1)return null;const q1=findClosestMatchingComponent(K1.props,G1._id,J1=>J1._component.endsWith("/form")||J1._component.endsWith("/formblock")||J1._component.endsWith("/tableblock"));return getSchemaForDatasource(K1,q1==null?void 0:q1.dataSource)},$1=(K1,G1)=>{var Q1,a0,n0,d0,u0,e0;if(!K1||!G1)return[];const q1=(Q1=G1.schema)==null?void 0:Q1[K1],J1=q1==null?void 0:q1.constraints;if(!J1)return[];let X1=[];if((K1===((a0=G1==null?void 0:G1.table)==null?void 0:a0.primaryDisplay)||((n0=J1.presence)==null?void 0:n0.allowEmpty)===!1)&&X1.push({constraint:"required",error:"Required field"}),y1((d0=J1.length)==null?void 0:d0.maximum)){const v0=J1.length.maximum;X1.push({constraint:"maxLength",value:v0,error:`Maximum ${v0} characters`})}if(y1((u0=J1.numericality)==null?void 0:u0.greaterThanOrEqualTo)){const v0=J1.numericality.greaterThanOrEqualTo;X1.push({constraint:"minValue",value:v0,error:`Minimum value is ${v0}`})}if(y1((e0=J1.numericality)==null?void 0:e0.lessThanOrEqualTo)){const v0=J1.numericality.lessThanOrEqualTo;X1.push({constraint:"maxValue",value:v0,error:`Maximum value is ${v0}`})}return X1},y1=K1=>K1!=null&&K1!=="",k1=()=>{t1(0,f1=[...f1||[],{valueType:"Binding",type:a1,id:shortid.exports.generate(),value:a1=="array"?[]:null}])},S1=K1=>{t1(0,f1=f1.filter(G1=>G1.id!==K1))},C1=K1=>{const q1={...f1.find(J1=>J1.id===K1),id:shortid.exports.generate()};t1(0,f1=[...f1,q1])};function A1(K1,G1){n1.$$.not_equal(G1.constraint,K1)&&(G1.constraint=K1,t1(0,f1))}function E1(K1,G1){n1.$$.not_equal(G1.valueType,K1)&&(G1.valueType=K1,t1(0,f1))}const z1=(K1,G1,q1,J1)=>t1(0,G1[q1].value=J1.detail,f1);function I1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}function N1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}const U1=(K1,G1,q1,J1)=>{t1(0,G1[q1].value=J1.detail,f1)};function F1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}function R1(K1,G1){n1.$$.not_equal(G1.value,K1)&&(G1.value=K1,t1(0,f1))}const D1=(K1,G1,q1,J1)=>t1(0,G1[q1].error=J1.detail,f1),V1=K1=>C1(K1.id),j1=K1=>S1(K1.id);return n1.$$set=K1=>{"fieldName"in K1&&t1(9,u1=K1.fieldName),"rules"in K1&&t1(0,f1=K1.rules),"bindings"in K1&&t1(1,p1=K1.bindings),"type"in K1&&t1(10,d1=K1.type)},n1.$$.update=()=>{n1.$$.dirty[0]&12288&&t1(2,r1=b1(c1,l1)),n1.$$.dirty[0]&4608&&t1(3,o1=u1||(l1==null?void 0:l1.field)),n1.$$.dirty[0]&12&&t1(5,i1=$1(o1,r1||{})),n1.$$.dirty[0]&1024&&t1(11,a1=(d1==null?void 0:d1.split("/")[1])||"string"),n1.$$.dirty[0]&2048&&t1(4,s1=h1(a1))},[f1,p1,r1,o1,s1,i1,k1,S1,C1,u1,d1,a1,l1,c1,A1,E1,z1,I1,N1,U1,F1,R1,D1,V1,j1]}class ValidationDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3G,create_fragment$3E,safe_not_equal,{fieldName:9,rules:0,bindings:1,type:10},null,[-1,-1])}}function create_default_slot_1$1$(n1){let e1;return{c(){e1=text("Configure validation")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_description_slot$6(n1){let e1;return{c(){e1=text("Configure validation rules for this field.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2w(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$9(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2w]},$$scope:{ctx:n1}}}),e1.$on("click",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&512&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$8(n1){let e1,t1,r1;function o1(a1){n1[6](a1)}let i1={slot:"body",type:n1[3],bindings:n1[1],componentDefinition:n1[2]};return n1[0]!==void 0&&(i1.rules=n1[0]),e1=new ValidationDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"rules",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&8&&(l1.type=a1[3]),s1&2&&(l1.bindings=a1[1]),s1&4&&(l1.componentDefinition=a1[2]),!t1&&s1&1&&(t1=!0,l1.rules=a1[0],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3D(n1){let e1,t1,r1,o1;e1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$1$]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[4].show)&&n1[4].show.apply(this,arguments)});let i1={title:"Validation Rules",$$slots:{body:[create_body_slot$8],buttons:[create_buttons_slot$9],description:[create_description_slot$6]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[7](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&512&&(l1.$$scope={dirty:s1,ctx:n1}),e1.$set(l1);const c1={};s1&527&&(c1.$$scope={dirty:s1,ctx:n1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[7](null),destroy_component(r1,a1)}}}function instance$3F(n1,e1,t1){let{value:r1=[]}=e1,{bindings:o1=[]}=e1,{componentDefinition:i1}=e1,{type:a1}=e1,s1;const l1=createEventDispatcher(),c1=()=>{l1("change",r1),s1.hide()};function u1(p1){r1=p1,t1(0,r1)}function f1(p1){binding_callbacks[p1?"unshift":"push"](()=>{s1=p1,t1(4,s1)})}return n1.$$set=p1=>{"value"in p1&&t1(0,r1=p1.value),"bindings"in p1&&t1(1,o1=p1.bindings),"componentDefinition"in p1&&t1(2,i1=p1.componentDefinition),"type"in p1&&t1(3,a1=p1.type)},[r1,o1,i1,a1,s1,c1,u1,f1]}class ValidationEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3F,create_fragment$3D,safe_not_equal,{value:0,bindings:1,componentDefinition:2,type:3})}}const CellDrawer_svelte_svelte_type_style_lang="";function create_default_slot_5$S(n1){let e1;return{c(){e1=text("Background color")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_4$$(n1){let e1,t1,r1,o1;return e1=new Label({props:{$$slots:{default:[create_default_slot_5$S]},$$scope:{ctx:n1}}}),r1=new ColorPicker({props:{value:n1[0].background,alignRight:!0,spectrumTheme:n1[1].theme}}),r1.$on("change",n1[5]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&128&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&1&&(l1.value=i1[0].background),a1&2&&(l1.spectrumTheme=i1[1].theme),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot_3$1f(n1){let e1;return{c(){e1=text("Text color")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1w(n1){let e1,t1,r1,o1;return e1=new Label({props:{$$slots:{default:[create_default_slot_3$1f]},$$scope:{ctx:n1}}}),r1=new ColorPicker({props:{value:n1[0].color,alignRight:!0,spectrumTheme:n1[1].theme}}),r1.$on("change",n1[6]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&128&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&1&&(l1.value=i1[0].color),a1&2&&(l1.spectrumTheme=i1[1].theme),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot_1$1_(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1;function d1(b1){n1[2](b1)}let m1={label:"Width",placeholder:"Auto"};n1[0].width!==void 0&&(m1.value=n1[0].width),e1=new Input$5({props:m1}),binding_callbacks.push(()=>bind$3(e1,"value",d1));function _1(b1){n1[3](b1)}let h1={label:"Alignment",options:["Left","Center","Right"],placeholder:"Default"};return n1[0].align!==void 0&&(h1.value=n1[0].align),o1=new Select_1$1({props:h1}),binding_callbacks.push(()=>bind$3(o1,"value",_1)),s1=new DrawerBindableInput({props:{label:"Value",value:n1[0].template,placeholder:"{{ Value }}",bindings:[{readableBinding:"Value",runtimeBinding:"[value]",category:`Column: ${n1[0].name}`,icon:"TableColumnMerge"}]}}),s1.$on("change",n1[4]),c1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_4$$]},$$scope:{ctx:n1}}}),f1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_2$1w]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),l1=space$1(),create_component(c1.$$.fragment),u1=space$1(),create_component(f1.$$.fragment)},m(b1,$1){mount_component(e1,b1,$1),insert$1(b1,r1,$1),mount_component(o1,b1,$1),insert$1(b1,a1,$1),mount_component(s1,b1,$1),insert$1(b1,l1,$1),mount_component(c1,b1,$1),insert$1(b1,u1,$1),mount_component(f1,b1,$1),p1=!0},p(b1,$1){const y1={};!t1&&$1&1&&(t1=!0,y1.value=b1[0].width,add_flush_callback(()=>t1=!1)),e1.$set(y1);const k1={};!i1&&$1&1&&(i1=!0,k1.value=b1[0].align,add_flush_callback(()=>i1=!1)),o1.$set(k1);const S1={};$1&1&&(S1.value=b1[0].template),$1&1&&(S1.bindings=[{readableBinding:"Value",runtimeBinding:"[value]",category:`Column: ${b1[0].name}`,icon:"TableColumnMerge"}]),s1.$set(S1);const C1={};$1&131&&(C1.$$scope={dirty:$1,ctx:b1}),c1.$set(C1);const A1={};$1&131&&(A1.$$scope={dirty:$1,ctx:b1}),f1.$set(A1)},i(b1){p1||(transition_in(e1.$$.fragment,b1),transition_in(o1.$$.fragment,b1),transition_in(s1.$$.fragment,b1),transition_in(c1.$$.fragment,b1),transition_in(f1.$$.fragment,b1),p1=!0)},o(b1){transition_out(e1.$$.fragment,b1),transition_out(o1.$$.fragment,b1),transition_out(s1.$$.fragment,b1),transition_out(c1.$$.fragment,b1),transition_out(f1.$$.fragment,b1),p1=!1},d(b1){destroy_component(e1,b1),b1&&detach(r1),destroy_component(o1,b1),b1&&detach(a1),destroy_component(s1,b1),b1&&detach(l1),destroy_component(c1,b1),b1&&detach(u1),destroy_component(f1,b1)}}}function create_default_slot$2v(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$1_]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-4eq5in")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&131&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3C(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2v]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&131&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3E(n1,e1,t1){let r1;component_subscribe(n1,store,u1=>t1(1,r1=u1));let{column:o1}=e1;function i1(u1){n1.$$.not_equal(o1.width,u1)&&(o1.width=u1,t1(0,o1))}function a1(u1){n1.$$.not_equal(o1.align,u1)&&(o1.align=u1,t1(0,o1))}const s1=u1=>t1(0,o1.template=u1.detail,o1),l1=u1=>t1(0,o1.background=u1.detail,o1),c1=u1=>t1(0,o1.color=u1.detail,o1);return n1.$$set=u1=>{"column"in u1&&t1(0,o1=u1.column)},[o1,r1,i1,a1,s1,l1,c1]}class CellDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3E,create_fragment$3C,safe_not_equal,{column:0})}}function create_description_slot$5(n1){let e1,t1=n1[0].name+"",r1,o1;return{c(){e1=text('"'),r1=text(t1),o1=text('" column settings')},m(i1,a1){insert$1(i1,e1,a1),insert$1(i1,r1,a1),insert$1(i1,o1,a1)},p(i1,a1){a1&1&&t1!==(t1=i1[0].name+"")&&set_data(r1,t1)},d(i1){i1&&detach(e1),i1&&detach(r1),i1&&detach(o1)}}}function create_default_slot$2u(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$8(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2u]},$$scope:{ctx:n1}}}),e1.$on("click",n1[4]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&256&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$7(n1){let e1,t1,r1;function o1(a1){n1[5](a1)}let i1={slot:"body"};return n1[1]!==void 0&&(i1.column=n1[1]),e1=new CellDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"column",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};!t1&&s1&2&&(t1=!0,l1.column=a1[1],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3B(n1){let e1,t1,r1,o1;e1=new Icon({props:{name:"Settings",hoverable:!0,size:"S"}}),e1.$on("click",n1[3]);let i1={title:"Table Columns",$$slots:{body:[create_body_slot$7],buttons:[create_buttons_slot$8],description:[create_description_slot$5]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[6](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&259&&(l1.$$scope={dirty:s1,ctx:a1}),r1.$set(l1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[6](null),destroy_component(r1,a1)}}}function instance$3D(n1,e1,t1){let{column:r1}=e1,o1,i1;const a1=f1=>{t1(1,o1={...f1})},s1=()=>{a1(r1),i1.show()},l1=()=>{t1(0,r1=o1),i1.hide()};function c1(f1){o1=f1,t1(1,o1)}function u1(f1){binding_callbacks[f1?"unshift":"push"](()=>{i1=f1,t1(2,i1)})}return n1.$$set=f1=>{"column"in f1&&t1(0,r1=f1.column)},n1.$$.update=()=>{n1.$$.dirty&1&&a1(r1)},[r1,o1,i1,s1,l1,c1,u1]}class CellEditor$1 extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3D,create_fragment$3B,safe_not_equal,{column:0})}}const ColumnDrawer_svelte_svelte_type_style_lang$1="";function get_each_context$L(n1,e1,t1){const r1=n1.slice();return r1[21]=e1[t1],r1[22]=e1,r1[23]=t1,r1}function create_else_block$A(n1){let e1,t1,r1,o1;return r1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_8$q]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),t1=element("div"),create_component(r1.$$.fragment),attr(t1,"class","wide svelte-1rhj4t1"),attr(e1,"class","column svelte-1rhj4t1")},m(i1,a1){insert$1(i1,e1,a1),append$1(e1,t1),mount_component(r1,t1,null),o1=!0},p(i1,a1){const s1={};a1&16777216&&(s1.$$scope={dirty:a1,ctx:i1}),r1.$set(s1)},i(i1){o1||(transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(r1.$$.fragment,i1),o1=!1},d(i1){i1&&detach(e1),destroy_component(r1)}}}function create_if_block_1$Z(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_5$R]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&16777231&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_8$q(n1){let e1,t1,r1;return{c(){e1=text(`By default, all columns will automatically be shown.
1700
1700
  `),t1=element("br"),r1=text(`
1701
1701
  You can manually control which columns are included by adding them
1702
- below.`)},m(o1,i1){insert$1(o1,e1,i1),insert$1(o1,t1,i1),insert$1(o1,r1,i1)},p:noop$5,d(o1){o1&&detach(e1),o1&&detach(t1),o1&&detach(r1)}}}function create_default_slot_7$B(n1){let e1;return{c(){e1=text("Column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_6$I(n1){let e1;return{c(){e1=text("Label")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block_2$C(n1){let e1,t1,r1;function o1(a1){n1[17](a1,n1[21],n1[22],n1[23])}let i1={};return n1[21]!==void 0&&(i1.column=n1[21]),e1=new CellEditor$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"column",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};!t1&&s1&1&&(t1=!0,l1.column=n1[21],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_each_block$L(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1=noop$5,$1,y1,k1;o1=new Icon({props:{name:"DragHandle",size:"XL"}});function S1(U1){e1[14](U1,e1[21])}function C1(...U1){return e1[15](e1[21],e1[22],e1[23],...U1)}let A1={placeholder:"Column",options:e1[4](e1[21].name)};e1[21].name!==void 0&&(A1.value=e1[21].name),s1=new Select_1$1({props:A1}),binding_callbacks.push(()=>bind$3(s1,"value",S1)),s1.$on("change",C1);function E1(U1){e1[16](U1,e1[21])}let z1={placeholder:"Label"};e1[21].displayName!==void 0&&(z1.value=e1[21].displayName),u1=new Input$5({props:z1}),binding_callbacks.push(()=>bind$3(u1,"value",E1));let I1=e1[1]&&create_if_block_2$C(e1);function N1(){return e1[18](e1[21])}return m1=new Icon({props:{name:"Close",hoverable:!0,size:"S",disabled:e1[0].length===1}}),m1.$on("click",N1),{key:n1,first:null,c(){t1=element("div"),r1=element("div"),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),p1=space$1(),I1&&I1.c(),d1=space$1(),create_component(m1.$$.fragment),_1=space$1(),attr(r1,"class","handle svelte-1rhj4t1"),attr(r1,"aria-label","drag-handle"),attr(r1,"style",i1=e1[3]?"cursor: grab":"cursor: grabbing"),toggle_class(r1,"hide",!e1[2]),attr(t1,"class","column svelte-1rhj4t1"),this.first=t1},m(U1,F1){insert$1(U1,t1,F1),append$1(t1,r1),mount_component(o1,r1,null),append$1(t1,a1),mount_component(s1,t1,null),append$1(t1,c1),mount_component(u1,t1,null),append$1(t1,p1),I1&&I1.m(t1,null),append$1(t1,d1),mount_component(m1,t1,null),append$1(t1,_1),$1=!0,y1||(k1=listen(r1,"mousedown",e1[13]),y1=!0)},p(U1,F1){e1=U1,(!$1||F1&8&&i1!==(i1=e1[3]?"cursor: grab":"cursor: grabbing"))&&attr(r1,"style",i1),(!$1||F1&4)&&toggle_class(r1,"hide",!e1[2]);const R1={};F1&1&&(R1.options=e1[4](e1[21].name)),!l1&&F1&1&&(l1=!0,R1.value=e1[21].name,add_flush_callback(()=>l1=!1)),s1.$set(R1);const D1={};!f1&&F1&1&&(f1=!0,D1.value=e1[21].displayName,add_flush_callback(()=>f1=!1)),u1.$set(D1),e1[1]?I1?(I1.p(e1,F1),F1&2&&transition_in(I1,1)):(I1=create_if_block_2$C(e1),I1.c(),transition_in(I1,1),I1.m(t1,d1)):I1&&(group_outros(),transition_out(I1,1,1,()=>{I1=null}),check_outros());const V1={};F1&1&&(V1.disabled=e1[0].length===1),m1.$set(V1)},r(){h1=t1.getBoundingClientRect()},f(){fix_position(t1),b1()},a(){b1(),b1=create_animation(t1,h1,flip,{duration:flipDurationMs$3})},i(U1){$1||(transition_in(o1.$$.fragment,U1),transition_in(s1.$$.fragment,U1),transition_in(u1.$$.fragment,U1),transition_in(I1),transition_in(m1.$$.fragment,U1),$1=!0)},o(U1){transition_out(o1.$$.fragment,U1),transition_out(s1.$$.fragment,U1),transition_out(u1.$$.fragment,U1),transition_out(I1),transition_out(m1.$$.fragment,U1),$1=!1},d(U1){U1&&detach(t1),destroy_component(o1),destroy_component(s1),destroy_component(u1),I1&&I1.d(),destroy_component(m1),y1=!1,k1()}}}function create_default_slot_5$R(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1=[],m1=new Map,_1,h1,b1,$1;o1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_7$B]},$$scope:{ctx:n1}}}),a1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_6$I]},$$scope:{ctx:n1}}});let y1=n1[0];const k1=S1=>S1[21].id;for(let S1=0;S1<y1.length;S1+=1){let C1=get_each_context$L(n1,y1,S1),A1=k1(C1);m1.set(A1,d1[S1]=create_each_block$L(A1,C1))}return{c(){e1=element("div"),t1=element("div"),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),s1=space$1(),l1=element("div"),c1=space$1(),u1=element("div"),f1=space$1(),p1=element("div");for(let S1=0;S1<d1.length;S1+=1)d1[S1].c();attr(e1,"class","column svelte-1rhj4t1"),attr(p1,"class","columns svelte-1rhj4t1")},m(S1,C1){insert$1(S1,e1,C1),append$1(e1,t1),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),mount_component(a1,e1,null),append$1(e1,s1),append$1(e1,l1),append$1(e1,c1),append$1(e1,u1),insert$1(S1,f1,C1),insert$1(S1,p1,C1);for(let A1=0;A1<d1.length;A1+=1)d1[A1].m(p1,null);h1=!0,b1||($1=[action_destroyer(_1=dndzone.call(null,p1,{items:n1[0],flipDurationMs:flipDurationMs$3,dropTargetStyle:{outline:"none"},dragDisabled:n1[3]})),listen(p1,"finalize",n1[8]),listen(p1,"consider",n1[7])],b1=!0)},p(S1,C1){const A1={};C1&16777216&&(A1.$$scope={dirty:C1,ctx:S1}),o1.$set(A1);const E1={};if(C1&16777216&&(E1.$$scope={dirty:C1,ctx:S1}),a1.$set(E1),C1&95){y1=S1[0],group_outros();for(let z1=0;z1<d1.length;z1+=1)d1[z1].r();d1=update_keyed_each(d1,C1,k1,1,S1,y1,m1,p1,fix_and_outro_and_destroy_block,create_each_block$L,null,get_each_context$L);for(let z1=0;z1<d1.length;z1+=1)d1[z1].a();check_outros()}_1&&is_function(_1.update)&&C1&9&&_1.update.call(null,{items:S1[0],flipDurationMs:flipDurationMs$3,dropTargetStyle:{outline:"none"},dragDisabled:S1[3]})},i(S1){if(!h1){transition_in(o1.$$.fragment,S1),transition_in(a1.$$.fragment,S1);for(let C1=0;C1<y1.length;C1+=1)transition_in(d1[C1]);h1=!0}},o(S1){transition_out(o1.$$.fragment,S1),transition_out(a1.$$.fragment,S1);for(let C1=0;C1<d1.length;C1+=1)transition_out(d1[C1]);h1=!1},d(S1){S1&&detach(e1),destroy_component(o1),destroy_component(a1),S1&&detach(f1),S1&&detach(p1);for(let C1=0;C1<d1.length;C1+=1)d1[C1].d();b1=!1,run_all($1)}}}function create_default_slot_4$_(n1){let e1;return{c(){e1=text("Add column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$1e(n1){let e1;return{c(){e1=text("Add all columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1G(n1){let e1,t1;return e1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_2$1v]},$$scope:{ctx:n1}}}),e1.$on("click",n1[10]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&16777216&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_2$1v(n1){let e1;return{c(){e1=text("Reset columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1Z(n1){var _1;let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1;const f1=[create_if_block_1$Z,create_else_block$A],p1=[];function d1(h1,b1){var $1;return($1=h1[0])!=null&&$1.length?0:1}e1=d1(n1),t1=p1[e1]=f1[e1](n1),a1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_4$_]},$$scope:{ctx:n1}}}),a1.$on("click",n1[5]),l1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_3$1e]},$$scope:{ctx:n1}}}),l1.$on("click",n1[9]);let m1=((_1=n1[0])==null?void 0:_1.length)&&create_if_block$1G(n1);return{c(){t1.c(),r1=space$1(),o1=element("div"),i1=element("div"),create_component(a1.$$.fragment),s1=space$1(),create_component(l1.$$.fragment),c1=space$1(),m1&&m1.c(),attr(i1,"class","buttons wide svelte-1rhj4t1"),attr(o1,"class","column svelte-1rhj4t1")},m(h1,b1){p1[e1].m(h1,b1),insert$1(h1,r1,b1),insert$1(h1,o1,b1),append$1(o1,i1),mount_component(a1,i1,null),append$1(i1,s1),mount_component(l1,i1,null),append$1(i1,c1),m1&&m1.m(i1,null),u1=!0},p(h1,b1){var S1;let $1=e1;e1=d1(h1),e1===$1?p1[e1].p(h1,b1):(group_outros(),transition_out(p1[$1],1,1,()=>{p1[$1]=null}),check_outros(),t1=p1[e1],t1?t1.p(h1,b1):(t1=p1[e1]=f1[e1](h1),t1.c()),transition_in(t1,1),t1.m(r1.parentNode,r1));const y1={};b1&16777216&&(y1.$$scope={dirty:b1,ctx:h1}),a1.$set(y1);const k1={};b1&16777216&&(k1.$$scope={dirty:b1,ctx:h1}),l1.$set(k1),(S1=h1[0])!=null&&S1.length?m1?(m1.p(h1,b1),b1&1&&transition_in(m1,1)):(m1=create_if_block$1G(h1),m1.c(),transition_in(m1,1),m1.m(i1,null)):m1&&(group_outros(),transition_out(m1,1,1,()=>{m1=null}),check_outros())},i(h1){u1||(transition_in(t1),transition_in(a1.$$.fragment,h1),transition_in(l1.$$.fragment,h1),transition_in(m1),u1=!0)},o(h1){transition_out(t1),transition_out(a1.$$.fragment,h1),transition_out(l1.$$.fragment,h1),transition_out(m1),u1=!1},d(h1){p1[e1].d(h1),h1&&detach(r1),h1&&detach(o1),destroy_component(a1),destroy_component(l1),m1&&m1.d()}}}function create_default_slot$2t(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$1Z]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-1rhj4t1")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&16777231&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3A(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2t]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&16777231&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$3=150;function instance$3C(n1,e1,t1){let r1,{columns:o1=[]}=e1,{options:i1=[]}=e1,{schema:a1={}}=e1,{allowCellEditing:s1=!0}=e1,{allowReorder:l1=!0}=e1,c1=!0;const u1=(E1,z1)=>{let I1={};return E1.forEach(N1=>{I1[N1]=!0}),z1==null||z1.forEach(N1=>{delete I1[N1.name]}),Object.keys(I1)},f1=E1=>!E1||r1.includes(E1)?r1:[E1,...r1],p1=()=>{t1(0,o1=[...o1,{}])},d1=E1=>{t1(0,o1=o1.filter(z1=>z1.id!==E1))},m1=E1=>{t1(0,o1=E1.detail.items)},_1=E1=>{m1(E1),t1(3,c1=!0)},h1=()=>{let E1=o1||[];i1.forEach(z1=>{const I1=a1[z1],N1=o1&&o1.findIndex(U1=>U1.name===z1)!==-1;!(I1!=null&&I1.autocolumn)&&!N1&&E1.push({name:z1,displayName:z1})}),t1(0,o1=E1)},b1=()=>{t1(0,o1=[])},$1=()=>t1(3,c1=!1);function y1(E1,z1){n1.$$.not_equal(z1.name,E1)&&(z1.name=E1,t1(0,o1))}const k1=(E1,z1,I1,N1)=>t1(0,z1[I1].displayName=N1.detail,o1);function S1(E1,z1){n1.$$.not_equal(z1.displayName,E1)&&(z1.displayName=E1,t1(0,o1))}function C1(E1,z1,I1,N1){I1[N1]=E1,t1(0,o1)}const A1=E1=>d1(E1.id);return n1.$$set=E1=>{"columns"in E1&&t1(0,o1=E1.columns),"options"in E1&&t1(11,i1=E1.options),"schema"in E1&&t1(12,a1=E1.schema),"allowCellEditing"in E1&&t1(1,s1=E1.allowCellEditing),"allowReorder"in E1&&t1(2,l1=E1.allowReorder)},n1.$$.update=()=>{n1.$$.dirty&2049&&(r1=u1(i1,o1)),n1.$$.dirty&1&&o1.forEach(E1=>{E1.id||(E1.id=shortid.exports.generate())})},[o1,s1,l1,c1,f1,p1,d1,m1,_1,h1,b1,i1,a1,$1,y1,k1,S1,C1,A1]}class ColumnDrawer$1 extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3C,create_fragment$3A,safe_not_equal,{columns:0,options:11,schema:12,allowCellEditing:1,allowReorder:2})}}const ColumnEditor_svelte_svelte_type_style_lang="";function create_default_slot_1$1Y(n1){let e1;return{c(){e1=text("Configure columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2s(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$7(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2s]},$$scope:{ctx:n1}}}),e1.$on("click",n1[7]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1048576&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$6(n1){let e1,t1,r1;function o1(a1){n1[14](a1)}let i1={slot:"body",options:n1[2],schema:n1[3],allowCellEditing:n1[0],allowReorder:n1[1]};return n1[5]!==void 0&&(i1.columns=n1[5]),e1=new ColumnDrawer$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"columns",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&4&&(l1.options=a1[2]),s1&8&&(l1.schema=a1[3]),s1&1&&(l1.allowCellEditing=a1[0]),s1&2&&(l1.allowReorder=a1[1]),!t1&&s1&32&&(t1=!0,l1.columns=a1[5],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3z(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$1Y]},$$scope:{ctx:n1}}}),t1.$on("click",n1[6]);let a1={title:"Columns",$$slots:{body:[create_body_slot$6],buttons:[create_buttons_slot$7]},$$scope:{ctx:n1}};return o1=new Drawer({props:a1}),n1[15](o1),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","column-editor svelte-1b43duw")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,[l1]){const c1={};l1&1048576&&(c1.$$scope={dirty:l1,ctx:s1}),t1.$set(c1);const u1={};l1&1048623&&(u1.$$scope={dirty:l1,ctx:s1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),s1&&detach(r1),n1[15](null),destroy_component(o1,s1)}}}function instance$3B(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,currentAsset,A1=>t1(13,l1=A1));let{componentInstance:c1}=e1,{value:u1=[]}=e1,{allowCellEditing:f1=!0}=e1,{allowReorder:p1=!0}=e1;const d1=createEventDispatcher();let m1,_1;const h1=(A1,E1)=>{const z1=getSchemaForDatasource(A1,E1).schema;return z1&&(delete z1._id,delete z1._rev),z1},b1=A1=>{t1(5,_1=fp.cloneDeep(A1))},$1=(A1,E1)=>!Array.isArray(A1)||!A1.length?[]:(typeof A1[0]=="string"&&(A1=A1.map(z1=>({name:z1,displayName:z1}))),A1.filter(z1=>E1.includes(z1.name))),y1=()=>{b1(a1),m1.show()},k1=()=>{d1("change",$1(_1,i1)),m1.hide()};function S1(A1){_1=A1,t1(5,_1)}function C1(A1){binding_callbacks[A1?"unshift":"push"](()=>{m1=A1,t1(4,m1)})}return n1.$$set=A1=>{"componentInstance"in A1&&t1(8,c1=A1.componentInstance),"value"in A1&&t1(9,u1=A1.value),"allowCellEditing"in A1&&t1(0,f1=A1.allowCellEditing),"allowReorder"in A1&&t1(1,p1=A1.allowReorder)},n1.$$.update=()=>{n1.$$.dirty&8448&&t1(12,r1=getDatasourceForProvider(l1,c1)),n1.$$.dirty&12288&&t1(3,o1=h1(l1,r1)),n1.$$.dirty&8&&t1(11,s1=getFields(Object.values(o1||{}),{allowLinks:!0})),n1.$$.dirty&2057&&t1(2,i1=f1?Object.keys(o1||{}):s1==null?void 0:s1.map(A1=>A1.name)),n1.$$.dirty&516&&t1(10,a1=$1(u1,i1)),n1.$$.dirty&1024&&b1(a1)},[f1,p1,i1,o1,m1,_1,y1,k1,c1,u1,a1,s1,r1,l1,S1,C1]}class ColumnEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3B,create_fragment$3z,safe_not_equal,{componentInstance:8,value:9,allowCellEditing:0,allowReorder:1})}}function create_fragment$3y(n1){let e1,t1;const r1=[n1[0],{allowCellEditing:!1}];let o1={};for(let i1=0;i1<r1.length;i1+=1)o1=assign$1(o1,r1[i1]);return e1=new ColumnEditor({props:o1}),e1.$on("change",n1[1]),{c(){create_component(e1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),t1=!0},p(i1,[a1]){const s1=a1&1?get_spread_update(r1,[get_spread_object(i1[0]),r1[1]]):{};e1.$set(s1)},i(i1){t1||(transition_in(e1.$$.fragment,i1),t1=!0)},o(i1){transition_out(e1.$$.fragment,i1),t1=!1},d(i1){destroy_component(e1,i1)}}}function instance$3A(n1,e1,t1){function r1(o1){bubble.call(this,n1,o1)}return n1.$$set=o1=>{t1(0,e1=assign$1(assign$1({},e1),exclude_internal_props(o1)))},e1=exclude_internal_props(e1),[e1,r1]}class BasicColumnEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3A,create_fragment$3y,safe_not_equal,{})}}function create_fragment$3x(n1){let e1,t1;const r1=[n1[0],{allowCellEditing:!1},{allowReorder:!1}];let o1={};for(let i1=0;i1<r1.length;i1+=1)o1=assign$1(o1,r1[i1]);return e1=new ColumnEditor({props:o1}),e1.$on("change",n1[1]),{c(){create_component(e1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),t1=!0},p(i1,[a1]){const s1=a1&1?get_spread_update(r1,[get_spread_object(i1[0]),r1[1],r1[2]]):{};e1.$set(s1)},i(i1){t1||(transition_in(e1.$$.fragment,i1),t1=!0)},o(i1){transition_out(e1.$$.fragment,i1),t1=!1},d(i1){destroy_component(e1,i1)}}}function instance$3z(n1,e1,t1){function r1(o1){bubble.call(this,n1,o1)}return n1.$$set=o1=>{t1(0,e1=assign$1(assign$1({},e1),exclude_internal_props(o1)))},e1=exclude_internal_props(e1),[e1,r1]}class GridColumnEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3z,create_fragment$3x,safe_not_equal,{})}}function get_each_context$K(n1,e1,t1){const r1=n1.slice();return r1[4]=e1[t1],r1}function create_each_block$K(n1){let e1,t1;function r1(){return n1[3](n1[4])}return e1=new ActionButton({props:{icon:n1[4].barIcon,quiet:!0,selected:n1[4].value===n1[0]}}),e1.$on("click",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1&4&&(a1.icon=n1[4].barIcon),i1&5&&(a1.selected=n1[4].value===n1[0]),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_default_slot$2r(n1){let e1,t1,r1=n1[2],o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block$K(get_each_context$K(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();e1=empty$1()},m(a1,s1){for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(a1,s1);insert$1(a1,e1,s1),t1=!0},p(a1,s1){if(s1&7){r1=a1[2];let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context$K(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block$K(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1.parentNode,e1))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){destroy_each(o1,a1),a1&&detach(e1)}}}function create_fragment$3w(n1){let e1,t1;return e1=new ActionGroup({props:{$$slots:{default:[create_default_slot$2r]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&135&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3y(n1,e1,t1){let{value:r1}=e1,{onChange:o1}=e1,{options:i1}=e1;const a1=s1=>o1(s1.value);return n1.$$set=s1=>{"value"in s1&&t1(0,r1=s1.value),"onChange"in s1&&t1(1,o1=s1.onChange),"options"in s1&&t1(2,i1=s1.options)},[r1,o1,i1,a1]}class BarButtonList extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3y,create_fragment$3w,safe_not_equal,{value:0,onChange:1,options:2})}}function create_description_slot$4(n1){let e1,t1=n1[0].name+"",r1,o1;return{c(){e1=text('"'),r1=text(t1),o1=text('" field validation')},m(i1,a1){insert$1(i1,e1,a1),insert$1(i1,r1,a1),insert$1(i1,o1,a1)},p(i1,a1){a1&1&&t1!==(t1=i1[0].name+"")&&set_data(r1,t1)},d(i1){i1&&detach(e1),i1&&detach(r1),i1&&detach(o1)}}}function create_default_slot_1$1X(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$6(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot_1$1X]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[2].hide)&&n1[2].hide.apply(this,arguments)}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){n1=r1;const i1={};o1&32&&(i1.$$scope={dirty:o1,ctx:n1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot$2q(n1){let e1,t1,r1,o1;function i1(s1){n1[3](s1)}let a1={slot:"body",fieldName:n1[0].name,type:n1[1]};return n1[0].validation!==void 0&&(a1.rules=n1[0].validation),t1=new ValidationDrawer({props:a1}),binding_callbacks.push(()=>bind$3(t1,"rules",i1)),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),o1=!0},p(s1,l1){const c1={};l1&1&&(c1.fieldName=s1[0].name),l1&2&&(c1.type=s1[1]),!r1&&l1&1&&(r1=!0,c1.rules=s1[0].validation,add_flush_callback(()=>r1=!1)),t1.$set(c1)},i(s1){o1||(transition_in(t1.$$.fragment,s1),o1=!0)},o(s1){transition_out(t1.$$.fragment,s1),o1=!1},d(s1){s1&&detach(e1),destroy_component(t1)}}}function create_body_slot$5(n1){let e1,t1;return e1=new DrawerContent({props:{slot:"body",$$slots:{default:[create_default_slot$2q]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&35&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3v(n1){let e1,t1,r1,o1;e1=new Icon({props:{name:"Settings",hoverable:!0,size:"S"}}),e1.$on("click",function(){is_function(n1[2].show)&&n1[2].show.apply(this,arguments)});let i1={title:"Field Validation",$$slots:{body:[create_body_slot$5],buttons:[create_buttons_slot$6],description:[create_description_slot$4]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[4](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&39&&(l1.$$scope={dirty:s1,ctx:n1}),r1.$set(l1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[4](null),destroy_component(r1,a1)}}}function instance$3x(n1,e1,t1){let{column:r1}=e1,{type:o1}=e1,i1;function a1(l1){n1.$$.not_equal(r1.validation,l1)&&(r1.validation=l1,t1(0,r1))}function s1(l1){binding_callbacks[l1?"unshift":"push"](()=>{i1=l1,t1(2,i1)})}return n1.$$set=l1=>{"column"in l1&&t1(0,r1=l1.column),"type"in l1&&t1(1,o1=l1.type)},[r1,o1,i1,a1,s1]}class CellEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3x,create_fragment$3v,safe_not_equal,{column:0,type:1})}}const ColumnDrawer_svelte_svelte_type_style_lang="";function get_each_context$J(n1,e1,t1){const r1=n1.slice();return r1[20]=e1[t1],r1[21]=e1,r1[22]=t1,r1}function create_else_block$z(n1){let e1,t1,r1,o1;return r1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_8$p]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),t1=element("div"),create_component(r1.$$.fragment),attr(t1,"class","wide svelte-17kmdew"),attr(e1,"class","column svelte-17kmdew")},m(i1,a1){insert$1(i1,e1,a1),append$1(e1,t1),mount_component(r1,t1,null),o1=!0},p(i1,a1){const s1={};a1&8388608&&(s1.$$scope={dirty:a1,ctx:i1}),r1.$set(s1)},i(i1){o1||(transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(r1.$$.fragment,i1),o1=!1},d(i1){i1&&detach(e1),destroy_component(r1)}}}function create_if_block_1$Y(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_5$Q]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&8388611&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_8$p(n1){let e1;return{c(){e1=text("Add columns to be included in your form below.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_7$A(n1){let e1;return{c(){e1=text("Column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_6$H(n1){let e1;return{c(){e1=text("Label")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block$J(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1=noop$5,k1,S1,C1;o1=new Icon({props:{name:"DragHandle",size:"XL"}});function A1(D1){e1[13](D1,e1[20])}function E1(...D1){return e1[14](e1[20],e1[21],e1[22],...D1)}let z1={placeholder:"Column",options:e1[2](e1[20].name)};e1[20].name!==void 0&&(z1.value=e1[20].name),s1=new Select_1$1({props:z1}),binding_callbacks.push(()=>bind$3(s1,"value",A1)),s1.$on("change",E1);function I1(D1){e1[15](D1,e1[20])}let N1={placeholder:"Label"};e1[20].displayName!==void 0&&(N1.value=e1[20].displayName),u1=new Input$5({props:N1}),binding_callbacks.push(()=>bind$3(u1,"value",I1));function U1(D1){e1[16](D1,e1[20],e1[21],e1[22])}let F1={type:e1[9](e1[20])};e1[20]!==void 0&&(F1.column=e1[20]),d1=new CellEditor({props:F1}),binding_callbacks.push(()=>bind$3(d1,"column",U1));function R1(){return e1[17](e1[20])}return h1=new Icon({props:{name:"Close",hoverable:!0,size:"S",disabled:e1[0].length===1}}),h1.$on("click",R1),{key:n1,first:null,c(){t1=element("div"),r1=element("div"),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),p1=space$1(),create_component(d1.$$.fragment),_1=space$1(),create_component(h1.$$.fragment),b1=space$1(),attr(r1,"class","handle svelte-17kmdew"),attr(r1,"aria-label","drag-handle"),attr(r1,"style",i1=e1[1]?"cursor: grab":"cursor: grabbing"),attr(t1,"class","column svelte-17kmdew"),this.first=t1},m(D1,V1){insert$1(D1,t1,V1),append$1(t1,r1),mount_component(o1,r1,null),append$1(t1,a1),mount_component(s1,t1,null),append$1(t1,c1),mount_component(u1,t1,null),append$1(t1,p1),mount_component(d1,t1,null),append$1(t1,_1),mount_component(h1,t1,null),append$1(t1,b1),k1=!0,S1||(C1=listen(r1,"mousedown",e1[12]),S1=!0)},p(D1,V1){e1=D1,(!k1||V1&2&&i1!==(i1=e1[1]?"cursor: grab":"cursor: grabbing"))&&attr(r1,"style",i1);const j1={};V1&1&&(j1.options=e1[2](e1[20].name)),!l1&&V1&1&&(l1=!0,j1.value=e1[20].name,add_flush_callback(()=>l1=!1)),s1.$set(j1);const K1={};!f1&&V1&1&&(f1=!0,K1.value=e1[20].displayName,add_flush_callback(()=>f1=!1)),u1.$set(K1);const G1={};V1&1&&(G1.type=e1[9](e1[20])),!m1&&V1&1&&(m1=!0,G1.column=e1[20],add_flush_callback(()=>m1=!1)),d1.$set(G1);const q1={};V1&1&&(q1.disabled=e1[0].length===1),h1.$set(q1)},r(){$1=t1.getBoundingClientRect()},f(){fix_position(t1),y1()},a(){y1(),y1=create_animation(t1,$1,flip,{duration:flipDurationMs$2})},i(D1){k1||(transition_in(o1.$$.fragment,D1),transition_in(s1.$$.fragment,D1),transition_in(u1.$$.fragment,D1),transition_in(d1.$$.fragment,D1),transition_in(h1.$$.fragment,D1),k1=!0)},o(D1){transition_out(o1.$$.fragment,D1),transition_out(s1.$$.fragment,D1),transition_out(u1.$$.fragment,D1),transition_out(d1.$$.fragment,D1),transition_out(h1.$$.fragment,D1),k1=!1},d(D1){D1&&detach(t1),destroy_component(o1),destroy_component(s1),destroy_component(u1),destroy_component(d1),destroy_component(h1),S1=!1,C1()}}}function create_default_slot_5$Q(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1=[],m1=new Map,_1,h1,b1,$1;o1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_7$A]},$$scope:{ctx:n1}}}),a1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_6$H]},$$scope:{ctx:n1}}});let y1=n1[0];const k1=S1=>S1[20].id;for(let S1=0;S1<y1.length;S1+=1){let C1=get_each_context$J(n1,y1,S1),A1=k1(C1);m1.set(A1,d1[S1]=create_each_block$J(A1,C1))}return{c(){e1=element("div"),t1=element("div"),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),s1=space$1(),l1=element("div"),c1=space$1(),u1=element("div"),f1=space$1(),p1=element("div");for(let S1=0;S1<d1.length;S1+=1)d1[S1].c();attr(e1,"class","column svelte-17kmdew"),attr(p1,"class","columns svelte-17kmdew")},m(S1,C1){insert$1(S1,e1,C1),append$1(e1,t1),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),mount_component(a1,e1,null),append$1(e1,s1),append$1(e1,l1),append$1(e1,c1),append$1(e1,u1),insert$1(S1,f1,C1),insert$1(S1,p1,C1);for(let A1=0;A1<d1.length;A1+=1)d1[A1].m(p1,null);h1=!0,b1||($1=[action_destroyer(_1=dndzone.call(null,p1,{items:n1[0],flipDurationMs:flipDurationMs$2,dropTargetStyle:{outline:"none"},dragDisabled:n1[1]})),listen(p1,"finalize",n1[6]),listen(p1,"consider",n1[5])],b1=!0)},p(S1,C1){const A1={};C1&8388608&&(A1.$$scope={dirty:C1,ctx:S1}),o1.$set(A1);const E1={};if(C1&8388608&&(E1.$$scope={dirty:C1,ctx:S1}),a1.$set(E1),C1&535){y1=S1[0],group_outros();for(let z1=0;z1<d1.length;z1+=1)d1[z1].r();d1=update_keyed_each(d1,C1,k1,1,S1,y1,m1,p1,fix_and_outro_and_destroy_block,create_each_block$J,null,get_each_context$J);for(let z1=0;z1<d1.length;z1+=1)d1[z1].a();check_outros()}_1&&is_function(_1.update)&&C1&3&&_1.update.call(null,{items:S1[0],flipDurationMs:flipDurationMs$2,dropTargetStyle:{outline:"none"},dragDisabled:S1[1]})},i(S1){if(!h1){transition_in(o1.$$.fragment,S1),transition_in(a1.$$.fragment,S1);for(let C1=0;C1<y1.length;C1+=1)transition_in(d1[C1]);h1=!0}},o(S1){transition_out(o1.$$.fragment,S1),transition_out(a1.$$.fragment,S1);for(let C1=0;C1<d1.length;C1+=1)transition_out(d1[C1]);h1=!1},d(S1){S1&&detach(e1),destroy_component(o1),destroy_component(a1),S1&&detach(f1),S1&&detach(p1);for(let C1=0;C1<d1.length;C1+=1)d1[C1].d();b1=!1,run_all($1)}}}function create_default_slot_4$Z(n1){let e1;return{c(){e1=text("Add column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$1d(n1){let e1;return{c(){e1=text("Add all columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1F(n1){let e1,t1;return e1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_2$1u]},$$scope:{ctx:n1}}}),e1.$on("click",n1[8]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&8388608&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_2$1u(n1){let e1;return{c(){e1=text("Reset columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1W(n1){var _1;let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1;const f1=[create_if_block_1$Y,create_else_block$z],p1=[];function d1(h1,b1){var $1;return($1=h1[0])!=null&&$1.length?0:1}e1=d1(n1),t1=p1[e1]=f1[e1](n1),a1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_4$Z]},$$scope:{ctx:n1}}}),a1.$on("click",n1[3]),l1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_3$1d]},$$scope:{ctx:n1}}}),l1.$on("click",n1[7]);let m1=((_1=n1[0])==null?void 0:_1.length)&&create_if_block$1F(n1);return{c(){t1.c(),r1=space$1(),o1=element("div"),i1=element("div"),create_component(a1.$$.fragment),s1=space$1(),create_component(l1.$$.fragment),c1=space$1(),m1&&m1.c(),attr(i1,"class","buttons wide svelte-17kmdew"),attr(o1,"class","column svelte-17kmdew")},m(h1,b1){p1[e1].m(h1,b1),insert$1(h1,r1,b1),insert$1(h1,o1,b1),append$1(o1,i1),mount_component(a1,i1,null),append$1(i1,s1),mount_component(l1,i1,null),append$1(i1,c1),m1&&m1.m(i1,null),u1=!0},p(h1,b1){var S1;let $1=e1;e1=d1(h1),e1===$1?p1[e1].p(h1,b1):(group_outros(),transition_out(p1[$1],1,1,()=>{p1[$1]=null}),check_outros(),t1=p1[e1],t1?t1.p(h1,b1):(t1=p1[e1]=f1[e1](h1),t1.c()),transition_in(t1,1),t1.m(r1.parentNode,r1));const y1={};b1&8388608&&(y1.$$scope={dirty:b1,ctx:h1}),a1.$set(y1);const k1={};b1&8388608&&(k1.$$scope={dirty:b1,ctx:h1}),l1.$set(k1),(S1=h1[0])!=null&&S1.length?m1?(m1.p(h1,b1),b1&1&&transition_in(m1,1)):(m1=create_if_block$1F(h1),m1.c(),transition_in(m1,1),m1.m(i1,null)):m1&&(group_outros(),transition_out(m1,1,1,()=>{m1=null}),check_outros())},i(h1){u1||(transition_in(t1),transition_in(a1.$$.fragment,h1),transition_in(l1.$$.fragment,h1),transition_in(m1),u1=!0)},o(h1){transition_out(t1),transition_out(a1.$$.fragment,h1),transition_out(l1.$$.fragment,h1),transition_out(m1),u1=!1},d(h1){p1[e1].d(h1),h1&&detach(r1),h1&&detach(o1),destroy_component(a1),destroy_component(l1),m1&&m1.d()}}}function create_default_slot$2p(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$1W]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-17kmdew")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&8388611&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3u(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2p]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&8388611&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$2=150;function instance$3w(n1,e1,t1){let r1,{columns:o1=[]}=e1,{options:i1=[]}=e1,{schema:a1={}}=e1,s1=!0;const l1=(A1,E1)=>{let z1={};return A1.forEach(I1=>{z1[I1]=!0}),E1==null||E1.forEach(I1=>{delete z1[I1.name]}),Object.keys(z1)},c1=A1=>!A1||r1.includes(A1)?r1:[A1,...r1],u1=()=>{t1(0,o1=[...o1,{}])},f1=A1=>{t1(0,o1=o1.filter(E1=>E1.id!==A1))},p1=A1=>{t1(0,o1=A1.detail.items)},d1=A1=>{p1(A1),t1(1,s1=!0)},m1=()=>{let A1=o1||[];i1.forEach(E1=>{const z1=a1[E1],I1=o1&&o1.findIndex(N1=>N1.name===E1)!==-1;!(z1!=null&&z1.autocolumn)&&!I1&&A1.push({name:E1,displayName:E1})}),t1(0,o1=A1)},_1=()=>{t1(0,o1=[])},h1=A1=>{var E1;return`validation/${(E1=a1[A1.name])==null?void 0:E1.type}`},b1=()=>t1(1,s1=!1);function $1(A1,E1){n1.$$.not_equal(E1.name,A1)&&(E1.name=A1,t1(0,o1))}const y1=(A1,E1,z1,I1)=>t1(0,E1[z1].displayName=I1.detail,o1);function k1(A1,E1){n1.$$.not_equal(E1.displayName,A1)&&(E1.displayName=A1,t1(0,o1))}function S1(A1,E1,z1,I1){z1[I1]=A1,t1(0,o1)}const C1=A1=>f1(A1.id);return n1.$$set=A1=>{"columns"in A1&&t1(0,o1=A1.columns),"options"in A1&&t1(10,i1=A1.options),"schema"in A1&&t1(11,a1=A1.schema)},n1.$$.update=()=>{n1.$$.dirty&1025&&(r1=l1(i1,o1)),n1.$$.dirty&1&&o1.forEach(A1=>{A1.id||(A1.id=shortid.exports.generate())})},[o1,s1,c1,u1,f1,p1,d1,m1,_1,h1,i1,a1,b1,$1,y1,k1,S1,C1]}class ColumnDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3w,create_fragment$3u,safe_not_equal,{columns:0,options:10,schema:11})}}function create_default_slot_1$1V(n1){let e1;return{c(){e1=text("Configure fields")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_description_slot$3(n1){let e1;return{c(){e1=text("Configure the fields in your form.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2o(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$5(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2o]},$$scope:{ctx:n1}}}),e1.$on("click",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&262144&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$4(n1){let e1,t1,r1;function o1(a1){n1[11](a1)}let i1={slot:"body",options:n1[0],schema:n1[1]};return n1[3]!==void 0&&(i1.columns=n1[3]),e1=new ColumnDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"columns",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&1&&(l1.options=a1[0]),s1&2&&(l1.schema=a1[1]),!t1&&s1&8&&(t1=!0,l1.columns=a1[3],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3t(n1){let e1,t1,r1,o1;e1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$1V]},$$scope:{ctx:n1}}}),e1.$on("click",n1[4]);let i1={title:"Form Fields",$$slots:{body:[create_body_slot$4],buttons:[create_buttons_slot$5],description:[create_description_slot$3]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[12](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&262144&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};s1&262155&&(c1.$$scope={dirty:s1,ctx:a1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[12](null),destroy_component(r1,a1)}}}function instance$3v(n1,e1,t1){let r1,o1,i1,a1,s1;component_subscribe(n1,currentAsset,S1=>t1(10,s1=S1));let{componentInstance:l1}=e1,{value:c1=[]}=e1;const u1=S1=>{typeof(S1==null?void 0:S1[0])=="string"&&t1(6,c1=S1.map(C1=>({name:C1,displayName:C1})))},f1=createEventDispatcher();let p1,d1;const m1=(S1,C1)=>{const A1=getSchemaForDatasource(S1,C1).schema;return A1&&(delete A1._id,delete A1._rev),A1},_1=S1=>{t1(3,d1=fp.cloneDeep(S1))},h1=(S1,C1)=>!Array.isArray(S1)||!S1.length?[]:(typeof S1[0]=="string"&&(S1=S1.map(A1=>({name:A1,displayName:A1}))),S1.filter(A1=>C1.includes(A1.name))),b1=()=>{_1(a1),p1.show()},$1=()=>{f1("change",h1(d1,i1)),p1.hide()};function y1(S1){d1=S1,t1(3,d1)}function k1(S1){binding_callbacks[S1?"unshift":"push"](()=>{p1=S1,t1(2,p1)})}return n1.$$set=S1=>{"componentInstance"in S1&&t1(7,l1=S1.componentInstance),"value"in S1&&t1(6,c1=S1.value)},n1.$$.update=()=>{n1.$$.dirty&64&&u1(c1),n1.$$.dirty&1152&&t1(9,r1=getDatasourceForProvider(s1,l1)),n1.$$.dirty&1536&&t1(1,o1=m1(s1,r1)),n1.$$.dirty&2&&t1(0,i1=Object.keys(o1||{})),n1.$$.dirty&65&&t1(8,a1=h1(c1,i1)),n1.$$.dirty&256&&_1(a1)},[i1,o1,p1,d1,b1,$1,c1,l1,a1,r1,s1,y1,k1]}class FieldConfiguration extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3v,create_fragment$3t,safe_not_equal,{componentInstance:7,value:6})}}const componentMap={text:DrawerBindableInput,select:Select_1$1,radio:RadioGroup_1,dataSource:DataSourceSelect,"dataSource/s3":S3DataSourceSelect,dataProvider:DataProviderSelect,boolean:Checkbox_1,number:Stepper_1,event:ButtonActionEditor,table:TableSelect,color:ColorPicker_1,icon:IconSelect,field:FieldSelect,multifield:MultiFieldSelect,searchfield:SearchFieldSelect,options:OptionsEditor,schema:SchemaSelect,section:SectionSelect,filter:FilterEditor,url:URLSelect,fieldConfiguration:FieldConfiguration,columns:ColumnEditor,"columns/basic":BasicColumnEditor,"columns/grid":GridColumnEditor,"field/sortable":SortableFieldSelect,"field/string":FormFieldSelect,"field/number":FormFieldSelect,"field/bigint":FormFieldSelect,"field/options":FormFieldSelect,"field/boolean":FormFieldSelect,"field/longform":FormFieldSelect,"field/datetime":FormFieldSelect,"field/attachment":FormFieldSelect,"field/link":FormFieldSelect,"field/array":FormFieldSelect,"field/json":FormFieldSelect,"field/barcodeqr":FormFieldSelect,"validation/string":ValidationEditor,"validation/array":ValidationEditor,"validation/number":ValidationEditor,"validation/boolean":ValidationEditor,"validation/datetime":ValidationEditor,"validation/attachment":ValidationEditor,"validation/link":ValidationEditor},getComponentForSetting=n1=>{const{type:e1,showInBar:t1,barStyle:r1}=n1||{};return e1?t1&&e1==="select"&&r1==="buttons"?BarButtonList:componentMap[e1]:null},ComponentSettingsSection_svelte_svelte_type_style_lang="";function get_each_context$I(n1,e1,t1){const r1=n1.slice();return r1[13]=e1[t1],r1[15]=t1,r1}function get_each_context_1$a(n1,e1,t1){const r1=n1.slice();return r1[16]=e1[t1],r1}function create_if_block_1$X(n1){let e1,t1;return e1=new DetailSummary({props:{name:n1[13].name,collapsible:!1,$$slots:{default:[create_default_slot_1$1U]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&32&&(i1.name=r1[13].name),o1&524415&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_4$g(n1){let e1,t1;return e1=new PropertyControl({props:{control:Input$5,label:"Name",key:"_instanceName",value:n1[1]._instanceName,onChange:n1[8]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2&&(i1.value=r1[1]._instanceName),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_3$n(n1){var o1,i1;let e1,t1;function r1(...a1){return n1[9](n1[16],...a1)}return e1=new PropertyControl({props:{type:n1[16].type,control:getComponentForSetting(n1[16]),label:n1[16].label,labelHidden:n1[16].labelHidden,key:n1[16].key,value:n1[1][n1[16].key],defaultValue:n1[16].defaultValue,nested:n1[16].nested,onChange:r1,highlighted:n1[6].highlightedSettingKey===n1[16].key,propertyFocus:n1[6].propertyFocus===n1[16].key,info:n1[16].info,props:{placeholder:n1[16].placeholder||null,options:n1[16].options||[],min:(o1=n1[16].min)!=null?o1:null,max:(i1=n1[16].max)!=null?i1:null},bindings:n1[2],componentBindings:n1[3],componentInstance:n1[1],componentDefinition:n1[0]}}),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),t1=!0},p(a1,s1){var c1,u1;n1=a1;const l1={};s1&32&&(l1.type=n1[16].type),s1&32&&(l1.control=getComponentForSetting(n1[16])),s1&32&&(l1.label=n1[16].label),s1&32&&(l1.labelHidden=n1[16].labelHidden),s1&32&&(l1.key=n1[16].key),s1&34&&(l1.value=n1[1][n1[16].key]),s1&32&&(l1.defaultValue=n1[16].defaultValue),s1&32&&(l1.nested=n1[16].nested),s1&32&&(l1.onChange=r1),s1&96&&(l1.highlighted=n1[6].highlightedSettingKey===n1[16].key),s1&96&&(l1.propertyFocus=n1[6].propertyFocus===n1[16].key),s1&32&&(l1.info=n1[16].info),s1&32&&(l1.props={placeholder:n1[16].placeholder||null,options:n1[16].options||[],min:(c1=n1[16].min)!=null?c1:null,max:(u1=n1[16].max)!=null?u1:null}),s1&4&&(l1.bindings=n1[2]),s1&8&&(l1.componentBindings=n1[3]),s1&2&&(l1.componentInstance=n1[1]),s1&1&&(l1.componentDefinition=n1[0]),e1.$set(l1)},i(a1){t1||(transition_in(e1.$$.fragment,a1),t1=!0)},o(a1){transition_out(e1.$$.fragment,a1),t1=!1},d(a1){destroy_component(e1,a1)}}}function create_each_block_1$a(n1,e1){let t1,r1,o1,i1=e1[16].visible&&create_if_block_3$n(e1);return{key:n1,first:null,c(){t1=empty$1(),i1&&i1.c(),r1=empty$1(),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),i1&&i1.m(a1,s1),insert$1(a1,r1,s1),o1=!0},p(a1,s1){e1=a1,e1[16].visible?i1?(i1.p(e1,s1),s1&32&&transition_in(i1,1)):(i1=create_if_block_3$n(e1),i1.c(),transition_in(i1,1),i1.m(r1.parentNode,r1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros())},i(a1){o1||(transition_in(i1),o1=!0)},o(a1){transition_out(i1),o1=!1},d(a1){a1&&detach(t1),i1&&i1.d(a1),a1&&detach(r1)}}}function create_if_block_2$B(n1){let e1,t1;return e1=new ResetFieldsButton({props:{componentInstance:n1[1]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2&&(i1.componentInstance=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_1$1U(n1){var d1,m1;let e1,t1=n1[15]===0&&!n1[1]._component.endsWith("/layout")&&!n1[4],r1,o1=[],i1=new Map,a1,s1=n1[15]===0&&((m1=(d1=n1[0])==null?void 0:d1.component)==null?void 0:m1.endsWith("/fieldgroup")),l1,c1=t1&&create_if_block_4$g(n1),u1=n1[13].settings;const f1=_1=>_1[16].key;for(let _1=0;_1<u1.length;_1+=1){let h1=get_each_context_1$a(n1,u1,_1),b1=f1(h1);i1.set(b1,o1[_1]=create_each_block_1$a(b1,h1))}let p1=s1&&create_if_block_2$B(n1);return{c(){e1=element("div"),c1&&c1.c(),r1=space$1();for(let _1=0;_1<o1.length;_1+=1)o1[_1].c();a1=space$1(),p1&&p1.c(),attr(e1,"class","settings svelte-1dtzlsg")},m(_1,h1){insert$1(_1,e1,h1),c1&&c1.m(e1,null),append$1(e1,r1);for(let b1=0;b1<o1.length;b1+=1)o1[b1].m(e1,null);append$1(e1,a1),p1&&p1.m(e1,null),l1=!0},p(_1,h1){var b1,$1;h1&50&&(t1=_1[15]===0&&!_1[1]._component.endsWith("/layout")&&!_1[4]),t1?c1?(c1.p(_1,h1),h1&50&&transition_in(c1,1)):(c1=create_if_block_4$g(_1),c1.c(),transition_in(c1,1),c1.m(e1,r1)):c1&&(group_outros(),transition_out(c1,1,1,()=>{c1=null}),check_outros()),h1&239&&(u1=_1[13].settings,group_outros(),o1=update_keyed_each(o1,h1,f1,1,_1,u1,i1,e1,outro_and_destroy_block,create_each_block_1$a,a1,get_each_context_1$a),check_outros()),h1&33&&(s1=_1[15]===0&&(($1=(b1=_1[0])==null?void 0:b1.component)==null?void 0:$1.endsWith("/fieldgroup"))),s1?p1?(p1.p(_1,h1),h1&33&&transition_in(p1,1)):(p1=create_if_block_2$B(_1),p1.c(),transition_in(p1,1),p1.m(e1,null)):p1&&(group_outros(),transition_out(p1,1,1,()=>{p1=null}),check_outros())},i(_1){if(!l1){transition_in(c1);for(let h1=0;h1<u1.length;h1+=1)transition_in(o1[h1]);transition_in(p1),l1=!0}},o(_1){transition_out(c1);for(let h1=0;h1<o1.length;h1+=1)transition_out(o1[h1]);transition_out(p1),l1=!1},d(_1){_1&&detach(e1),c1&&c1.d();for(let h1=0;h1<o1.length;h1+=1)o1[h1].d();p1&&p1.d()}}}function create_each_block$I(n1,e1){let t1,r1,o1,i1=e1[13].visible&&create_if_block_1$X(e1);return{key:n1,first:null,c(){t1=empty$1(),i1&&i1.c(),r1=empty$1(),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),i1&&i1.m(a1,s1),insert$1(a1,r1,s1),o1=!0},p(a1,s1){e1=a1,e1[13].visible?i1?(i1.p(e1,s1),s1&32&&transition_in(i1,1)):(i1=create_if_block_1$X(e1),i1.c(),transition_in(i1,1),i1.m(r1.parentNode,r1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros())},i(a1){o1||(transition_in(i1),o1=!0)},o(a1){transition_out(i1),o1=!1},d(a1){a1&&detach(t1),i1&&i1.d(a1),a1&&detach(r1)}}}function create_if_block$1E(n1){let e1,t1;return e1=new DetailSummary({props:{name:"Eject",collapsible:!1,$$slots:{default:[create_default_slot$2n]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot$2n(n1){let e1,t1;return e1=new EjectBlockButton({}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3s(n1){var c1;let e1=[],t1=new Map,r1,o1,i1,a1=n1[5];const s1=u1=>u1[13].name;for(let u1=0;u1<a1.length;u1+=1){let f1=get_each_context$I(n1,a1,u1),p1=s1(f1);t1.set(p1,e1[u1]=create_each_block$I(p1,f1))}let l1=((c1=n1[0])==null?void 0:c1.block)&&create_if_block$1E(n1);return{c(){for(let u1=0;u1<e1.length;u1+=1)e1[u1].c();r1=space$1(),l1&&l1.c(),o1=empty$1()},m(u1,f1){for(let p1=0;p1<e1.length;p1+=1)e1[p1].m(u1,f1);insert$1(u1,r1,f1),l1&&l1.m(u1,f1),insert$1(u1,o1,f1),i1=!0},p(u1,[f1]){var p1;f1&255&&(a1=u1[5],group_outros(),e1=update_keyed_each(e1,f1,s1,1,u1,a1,t1,r1.parentNode,outro_and_destroy_block,create_each_block$I,r1,get_each_context$I),check_outros()),(p1=u1[0])!=null&&p1.block?l1?f1&1&&transition_in(l1,1):(l1=create_if_block$1E(u1),l1.c(),transition_in(l1,1),l1.m(o1.parentNode,o1)):l1&&(group_outros(),transition_out(l1,1,1,()=>{l1=null}),check_outros())},i(u1){if(!i1){for(let f1=0;f1<a1.length;f1+=1)transition_in(e1[f1]);transition_in(l1),i1=!0}},o(u1){for(let f1=0;f1<e1.length;f1+=1)transition_out(e1[f1]);transition_out(l1),i1=!1},d(u1){for(let f1=0;f1<e1.length;f1+=1)e1[f1].d(u1);u1&&detach(r1),l1&&l1.d(u1),u1&&detach(o1)}}}function instance$3u(n1,e1,t1){let r1,o1;component_subscribe(n1,store,h1=>t1(6,o1=h1));let{componentDefinition:i1}=e1,{componentInstance:a1}=e1,{bindings:s1}=e1,{componentBindings:l1}=e1,{isScreen:c1=!1}=e1;const u1=(h1,b1,$1)=>{var A1;const y1=(A1=b1==null?void 0:b1.settings)!=null?A1:[],k1=y1.filter(E1=>!E1.section),S1=y1.filter(E1=>E1.section);let C1=[{name:"General",settings:k1},...S1||[]];return C1.forEach(E1=>{E1.visible=p1(h1,E1),E1.visible&&(E1.settings.forEach(z1=>{z1.visible=d1(h1,z1,$1)}),E1.visible=E1.name==="General"||E1.settings.some(z1=>z1.visible))}),C1},f1=async(h1,b1)=>{try{await store.actions.components.updateSetting(h1.key,b1),h1.sendEvents&&analytics.captureEvent(Events.COMPONENT_UPDATED,{name:a1._component,setting:h1.key,value:b1})}catch{notifications.error("Error updating component prop")}},p1=(h1,b1)=>{if(b1.dependsOn){let $1=b1.dependsOn,y1=null,k1=!!b1.dependsOn.invert;if(typeof b1.dependsOn=="object"&&($1=b1.dependsOn.setting,y1=b1.dependsOn.value),!$1)return!1;if(y1==null){const S1=h1[$1];return S1===!1?!1:S1===!0?!0:!fp.isEmpty(S1)}return k1?h1[$1]!==y1:h1[$1]===y1}return!0},d1=(h1,b1,$1)=>(b1==null?void 0:b1.type)==="event"&&$1||!getComponentForSetting(b1)?!1:p1(h1,b1),m1=h1=>f1({key:"_instanceName"},h1),_1=(h1,b1)=>f1(h1,b1);return n1.$$set=h1=>{"componentDefinition"in h1&&t1(0,i1=h1.componentDefinition),"componentInstance"in h1&&t1(1,a1=h1.componentInstance),"bindings"in h1&&t1(2,s1=h1.bindings),"componentBindings"in h1&&t1(3,l1=h1.componentBindings),"isScreen"in h1&&t1(4,c1=h1.isScreen)},n1.$$.update=()=>{n1.$$.dirty&19&&t1(5,r1=u1(a1,i1,c1))},[i1,a1,s1,l1,c1,r1,o1,f1,m1,_1]}class ComponentSettingsSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3u,create_fragment$3s,safe_not_equal,{componentDefinition:0,componentInstance:1,bindings:2,componentBindings:3,isScreen:4})}}const StyleSection_svelte_svelte_type_style_lang="";function get_each_context$H(n1,e1,t1){const r1=n1.slice();return r1[10]=e1[t1],r1}function create_each_block$H(n1,e1){let t1,r1,o1;function i1(...a1){return e1[9](e1[10],...a1)}return r1=new PropertyControl({props:{label:`${e1[10].label}${e1[6](e1[4],e1[10])?" *":""}`,control:e1[10].control,key:e1[10].key,value:e1[4][e1[10].key],onChange:i1,props:e1[7](e1[10]),bindings:e1[3]}}),{key:n1,first:null,c(){t1=empty$1(),create_component(r1.$$.fragment),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,s1){e1=a1;const l1={};s1&18&&(l1.label=`${e1[10].label}${e1[6](e1[4],e1[10])?" *":""}`),s1&2&&(l1.control=e1[10].control),s1&2&&(l1.key=e1[10].key),s1&18&&(l1.value=e1[4][e1[10].key]),s1&2&&(l1.onChange=i1),s1&2&&(l1.props=e1[7](e1[10])),s1&8&&(l1.bindings=e1[3]),r1.$set(l1)},i(a1){o1||(transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(r1.$$.fragment,a1),o1=!1},d(a1){a1&&detach(t1),destroy_component(r1,a1)}}}function create_default_slot$2m(n1){let e1,t1=[],r1=new Map,o1,i1=n1[1];const a1=s1=>`${s1[2]._id}-${s1[10].key}-${s1[10].label}`;for(let s1=0;s1<i1.length;s1+=1){let l1=get_each_context$H(n1,i1,s1),c1=a1(l1);r1.set(c1,t1[s1]=create_each_block$H(c1,l1))}return{c(){e1=element("div");for(let s1=0;s1<t1.length;s1+=1)t1[s1].c();attr(e1,"class","styles svelte-1l36n8j")},m(s1,l1){insert$1(s1,e1,l1);for(let c1=0;c1<t1.length;c1+=1)t1[c1].m(e1,null);o1=!0},p(s1,l1){l1&478&&(i1=s1[1],group_outros(),t1=update_keyed_each(t1,l1,a1,1,s1,i1,r1,e1,outro_and_destroy_block,create_each_block$H,null,get_each_context$H),check_outros())},i(s1){if(!o1){for(let l1=0;l1<i1.length;l1+=1)transition_in(t1[l1]);o1=!0}},o(s1){for(let l1=0;l1<t1.length;l1+=1)transition_out(t1[l1]);o1=!1},d(s1){s1&&detach(e1);for(let l1=0;l1<t1.length;l1+=1)t1[l1].d()}}}function create_fragment$3r(n1){let e1,t1;return e1=new DetailSummary({props:{collapsible:!1,name:`${n1[0]}${n1[5]?" *":""}`,$$slots:{default:[create_default_slot$2m]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&33&&(i1.name=`${r1[0]}${r1[5]?" *":""}`),o1&8218&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3t(n1,e1,t1){let r1,o1,{name:i1}=e1,{properties:a1}=e1,{componentInstance:s1}=e1,{bindings:l1=[]}=e1;const c1=(d1,m1)=>d1[m1.key]!=null&&d1[m1.key]!=="",u1=d1=>{let m1={...d1||{}};return delete m1.label,delete m1.key,delete m1.control,m1},f1=async(d1,m1)=>{try{await store.actions.components.updateStyle(d1,m1)}catch{notifications.error("Error updating style")}},p1=(d1,m1)=>f1(d1.key,m1);return n1.$$set=d1=>{"name"in d1&&t1(0,i1=d1.name),"properties"in d1&&t1(1,a1=d1.properties),"componentInstance"in d1&&t1(2,s1=d1.componentInstance),"bindings"in d1&&t1(3,l1=d1.bindings)},n1.$$.update=()=>{var d1;n1.$$.dirty&4&&t1(4,r1=s1._styles.normal||{}),n1.$$.dirty&18&&t1(5,o1=(d1=a1==null?void 0:a1.some(m1=>c1(r1,m1)))!=null?d1:!1)},[i1,a1,s1,l1,r1,o1,c1,u1,f1,p1]}class StyleSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3t,create_fragment$3r,safe_not_equal,{name:0,properties:1,componentInstance:2,bindings:3})}}const margin={label:"Margin",settings:[{label:"Top",key:"margin-top",control:Select_1$1,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:Select_1$1,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:Select_1$1,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:Select_1$1,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%"}]}]},padding={label:"Padding",settings:[{label:"Top",key:"padding-top",control:Select_1$1,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:Select_1$1,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:Select_1$1,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:Select_1$1,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%"}]}]},size={label:"Size",settings:[{label:"Width",key:"width",control:Input$5,placeholder:"Auto"},{label:"Height",key:"height",control:Input$5,placeholder:"Auto"}]},background={label:"Background",settings:[{label:"Color",key:"background",control:ColorPicker_1},{label:"Gradient",key:"background-image",control:Select_1$1,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%);"}]}]},border={label:"Border",settings:[{label:"Color",key:"border-color",control:ColorPicker_1},{label:"Width",key:"border-width",control:Select_1$1,column:"1 / 2",placeholder:"None",options:[{label:"Small",value:"1px"},{label:"Medium",value:"2px"},{label:"Large",value:"4px"}]},{label:"Style",key:"border-style",control:Select_1$1,column:"2 / 3",placeholder:"None",options:[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}]},{label:"Radius",key:"border-radius",control:Select_1$1,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:Select_1$1,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)"}]}]},all=[margin],ComponentStyles=Object.freeze(Object.defineProperty({__proto__:null,margin,padding,size,background,border,all},Symbol.toStringTag,{value:"Module"}));function get_each_context$G(n1,e1,t1){const r1=n1.slice();return r1[5]=e1[t1],r1}function create_if_block$1D(n1){let e1,t1,r1=n1[2],o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block$G(get_each_context$G(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();e1=empty$1()},m(a1,s1){for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(a1,s1);insert$1(a1,e1,s1),t1=!0},p(a1,s1){if(s1&7){r1=a1[2];let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context$G(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block$G(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1.parentNode,e1))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){destroy_each(o1,a1),a1&&detach(e1)}}}function create_each_block$G(n1){let e1,t1;return e1=new StyleSection({props:{style:n1[5],name:n1[5].label,properties:n1[5].settings,componentInstance:n1[0],bindings:n1[1]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&4&&(i1.style=r1[5]),o1&4&&(i1.name=r1[5].label),o1&4&&(i1.properties=r1[5].settings),o1&1&&(i1.componentInstance=r1[0]),o1&2&&(i1.bindings=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3q(n1){var o1;let e1,t1,r1=((o1=n1[2])==null?void 0:o1.length)>0&&create_if_block$1D(n1);return{c(){r1&&r1.c(),e1=empty$1()},m(i1,a1){r1&&r1.m(i1,a1),insert$1(i1,e1,a1),t1=!0},p(i1,[a1]){var s1;((s1=i1[2])==null?void 0:s1.length)>0?r1?(r1.p(i1,a1),a1&4&&transition_in(r1,1)):(r1=create_if_block$1D(i1),r1.c(),transition_in(r1,1),r1.m(e1.parentNode,e1)):r1&&(group_outros(),transition_out(r1,1,1,()=>{r1=null}),check_outros())},i(i1){t1||(transition_in(r1),t1=!0)},o(i1){transition_out(r1),t1=!1},d(i1){r1&&r1.d(i1),i1&&detach(e1)}}}function instance$3s(n1,e1,t1){let r1,{componentDefinition:o1}=e1,{componentInstance:i1}=e1,{bindings:a1}=e1;const s1=l1=>{var u1;if(!((u1=l1==null?void 0:l1.styles)!=null&&u1.length))return[...all];let c1=[...all];return l1.styles.forEach(f1=>{ComponentStyles[f1]&&c1.push(ComponentStyles[f1])}),c1};return n1.$$set=l1=>{"componentDefinition"in l1&&t1(3,o1=l1.componentDefinition),"componentInstance"in l1&&t1(0,i1=l1.componentInstance),"bindings"in l1&&t1(1,a1=l1.bindings)},n1.$$.update=()=>{n1.$$.dirty&8&&t1(2,r1=s1(o1))},[i1,a1,r1,o1]}class DesignSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3s,create_fragment$3q,safe_not_equal,{componentDefinition:3,componentInstance:0,bindings:1})}}function create_default_slot_2$1t(n1){let e1;return{c(){e1=text("Edit custom CSS")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1T(n1){let e1,t1,r1;return t1=new ActionButton({props:{$$slots:{default:[create_default_slot_2$1t]},$$scope:{ctx:n1}}}),t1.$on("click",n1[4]),{c(){e1=element("div"),create_component(t1.$$.fragment)},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&1024&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_description_slot$2(n1){let e1;return{c(){e1=text("Custom CSS overrides all other component styles.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2l(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$4(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2l]},$$scope:{ctx:n1}}}),e1.$on("click",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1024&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$3(n1){let e1,t1,r1;var o1=ClientBindingPanel;function i1(a1){return{props:{slot:"body",value:a1[1],allowJS:!0,bindings:a1[3]}}}return o1&&(e1=construct_svelte_component(o1,i1(n1)),e1.$on("change",n1[8])),{c(){e1&&create_component(e1.$$.fragment),t1=empty$1()},m(a1,s1){e1&&mount_component(e1,a1,s1),insert$1(a1,t1,s1),r1=!0},p(a1,s1){const l1={};if(s1&2&&(l1.value=a1[1]),s1&8&&(l1.bindings=a1[3]),o1!==(o1=ClientBindingPanel)){if(e1){group_outros();const c1=e1;transition_out(c1.$$.fragment,1,0,()=>{destroy_component(c1,1)}),check_outros()}o1?(e1=construct_svelte_component(o1,i1(a1)),e1.$on("change",a1[8]),create_component(e1.$$.fragment),transition_in(e1.$$.fragment,1),mount_component(e1,t1.parentNode,t1)):e1=null}else o1&&e1.$set(l1)},i(a1){r1||(e1&&transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){e1&&transition_out(e1.$$.fragment,a1),r1=!1},d(a1){a1&&detach(t1),e1&&destroy_component(e1,a1)}}}function create_key_block$6(n1){let e1,t1,r1={title:"Custom CSS",$$slots:{body:[create_body_slot$3],buttons:[create_buttons_slot$4],description:[create_description_slot$2]},$$scope:{ctx:n1}};return e1=new Drawer({props:r1}),n1[9](e1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){const a1={};i1&1034&&(a1.$$scope={dirty:i1,ctx:o1}),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){n1[9](null),destroy_component(e1,o1)}}}function create_fragment$3p(n1){var s1,l1,c1;let e1,t1,r1=(s1=n1[0])==null?void 0:s1._id,o1,i1;e1=new DetailSummary({props:{name:`Custom CSS${(c1=(l1=n1[0])==null?void 0:l1._styles)!=null&&c1.custom?" *":""}`,collapsible:!1,$$slots:{default:[create_default_slot_1$1T]},$$scope:{ctx:n1}}});let a1=create_key_block$6(n1);return{c(){create_component(e1.$$.fragment),t1=space$1(),a1.c(),o1=empty$1()},m(u1,f1){mount_component(e1,u1,f1),insert$1(u1,t1,f1),a1.m(u1,f1),insert$1(u1,o1,f1),i1=!0},p(u1,[f1]){var d1,m1,_1;const p1={};f1&1&&(p1.name=`Custom CSS${(m1=(d1=u1[0])==null?void 0:d1._styles)!=null&&m1.custom?" *":""}`),f1&1024&&(p1.$$scope={dirty:f1,ctx:u1}),e1.$set(p1),f1&1&&safe_not_equal(r1,r1=(_1=u1[0])==null?void 0:_1._id)?(group_outros(),transition_out(a1,1,1,noop$5),check_outros(),a1=create_key_block$6(u1),a1.c(),transition_in(a1,1),a1.m(o1.parentNode,o1)):a1.p(u1,f1)},i(u1){i1||(transition_in(e1.$$.fragment,u1),transition_in(a1),i1=!0)},o(u1){transition_out(e1.$$.fragment,u1),transition_out(a1),i1=!1},d(u1){destroy_component(e1,u1),u1&&detach(t1),u1&&detach(o1),a1.d(u1)}}}function instance$3r(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,store,d1=>t1(6,o1=d1)),component_subscribe(n1,selectedScreen,d1=>t1(7,i1=d1));let{componentInstance:a1}=e1,s1,l1;const c1=()=>{var d1;t1(1,s1=runtimeToReadableBinding(r1,(d1=a1==null?void 0:a1._styles)==null?void 0:d1.custom)),l1.show()},u1=async()=>{try{const d1=readableToRuntimeBinding(r1,s1);await store.actions.components.updateCustomStyle(d1)}catch{notifications.error("Error updating custom style")}l1.hide()},f1=d1=>t1(1,s1=d1.detail);function p1(d1){binding_callbacks[d1?"unshift":"push"](()=>{l1=d1,t1(2,l1)})}return n1.$$set=d1=>{"componentInstance"in d1&&t1(0,a1=d1.componentInstance)},n1.$$.update=()=>{n1.$$.dirty&192&&t1(3,r1=getBindableProperties(i1,o1.selectedComponentId))},[a1,s1,l1,r1,c1,u1,o1,i1,f1,p1]}class CustomStylesSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3r,create_fragment$3p,safe_not_equal,{componentInstance:0})}}const ConditionalUIDrawer_svelte_svelte_type_style_lang="";function get_each_context$F(n1,e1,t1){const r1=n1.slice();r1[32]=e1[t1],r1[34]=e1,r1[35]=t1;const o1=r1[7](r1[32].setting);return r1[33]=o1,r1}function create_else_block_1$7(n1){let e1,t1;return e1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_3$1c]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block$1C(n1){let e1,t1=[],r1=new Map,o1,i1,a1,s1,l1=n1[0];const c1=u1=>u1[32].id;for(let u1=0;u1<l1.length;u1+=1){let f1=get_each_context$F(n1,l1,u1),p1=c1(f1);r1.set(p1,t1[u1]=create_each_block$F(p1,f1))}return{c(){e1=element("div");for(let u1=0;u1<t1.length;u1+=1)t1[u1].c();attr(e1,"class","conditions svelte-69vx2r")},m(u1,f1){insert$1(u1,e1,f1);for(let p1=0;p1<t1.length;p1+=1)t1[p1].m(e1,null);i1=!0,a1||(s1=[action_destroyer(o1=dndzone.call(null,e1,{items:n1[0],flipDurationMs:flipDurationMs$1,dropTargetStyle:{outline:"none"},dragDisabled:n1[3]})),listen(e1,"finalize",n1[11]),listen(e1,"consider",n1[12])],a1=!0)},p(u1,f1){if(f1[0]&59135){l1=u1[0],group_outros();for(let p1=0;p1<t1.length;p1+=1)t1[p1].r();t1=update_keyed_each(t1,f1,c1,1,u1,l1,r1,e1,fix_and_outro_and_destroy_block,create_each_block$F,null,get_each_context$F);for(let p1=0;p1<t1.length;p1+=1)t1[p1].a();check_outros()}o1&&is_function(o1.update)&&f1[0]&9&&o1.update.call(null,{items:u1[0],flipDurationMs:flipDurationMs$1,dropTargetStyle:{outline:"none"},dragDisabled:u1[3]})},i(u1){if(!i1){for(let f1=0;f1<l1.length;f1+=1)transition_in(t1[f1]);i1=!0}},o(u1){for(let f1=0;f1<t1.length;f1+=1)transition_out(t1[f1]);i1=!1},d(u1){u1&&detach(e1);for(let f1=0;f1<t1.length;f1+=1)t1[f1].d();a1=!1,run_all(s1)}}}function create_default_slot_3$1c(n1){let e1;return{c(){e1=text("Add your first condition to get started.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block_4$f(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1;function u1(_1){n1[19](_1,n1[32])}let f1={options:n1[4]};n1[32].setting!==void 0&&(f1.value=n1[32].setting),e1=new Select_1$1({props:f1}),binding_callbacks.push(()=>bind$3(e1,"value",u1));const p1=[create_if_block_5$8,create_else_block$y],d1=[];function m1(_1,h1){return _1[33]?0:1}return a1=m1(n1),s1=d1[a1]=p1[a1](n1),{c(){create_component(e1.$$.fragment),r1=space$1(),o1=element("div"),o1.textContent="TO",i1=space$1(),s1.c(),l1=empty$1()},m(_1,h1){mount_component(e1,_1,h1),insert$1(_1,r1,h1),insert$1(_1,o1,h1),insert$1(_1,i1,h1),d1[a1].m(_1,h1),insert$1(_1,l1,h1),c1=!0},p(_1,h1){n1=_1;const b1={};h1[0]&16&&(b1.options=n1[4]),!t1&&h1[0]&1&&(t1=!0,b1.value=n1[32].setting,add_flush_callback(()=>t1=!1)),e1.$set(b1);let $1=a1;a1=m1(n1),a1===$1?d1[a1].p(n1,h1):(group_outros(),transition_out(d1[$1],1,1,()=>{d1[$1]=null}),check_outros(),s1=d1[a1],s1?s1.p(n1,h1):(s1=d1[a1]=p1[a1](n1),s1.c()),transition_in(s1,1),s1.m(l1.parentNode,l1))},i(_1){c1||(transition_in(e1.$$.fragment,_1),transition_in(s1),c1=!0)},o(_1){transition_out(e1.$$.fragment,_1),transition_out(s1),c1=!1},d(_1){destroy_component(e1,_1),_1&&detach(r1),_1&&detach(o1),_1&&detach(i1),d1[a1].d(_1),_1&&detach(l1)}}}function create_else_block$y(n1){let e1,t1;return e1=new Select_1$1({props:{disabled:!0,placeholder:" "}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p:noop$5,i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_5$8(n1){let e1,t1;function r1(...o1){return n1[20](n1[32],n1[34],n1[35],...o1)}return e1=new PropertyControl({props:{type:n1[33].type,control:getComponentForSetting(n1[33]),key:n1[33].key,value:n1[32].settingValue,componentInstance:n1[2],onChange:r1,props:{options:n1[33].options,placeholder:n1[33].placeholder},bindings:n1[1]}}),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.type=n1[33].type),i1[0]&1&&(a1.control=getComponentForSetting(n1[33])),i1[0]&1&&(a1.key=n1[33].key),i1[0]&1&&(a1.value=n1[32].settingValue),i1[0]&4&&(a1.componentInstance=n1[2]),i1[0]&1&&(a1.onChange=r1),i1[0]&1&&(a1.props={options:n1[33].options,placeholder:n1[33].placeholder}),i1[0]&2&&(a1.bindings=n1[1]),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_if_block_3$m(n1){let e1,t1,r1;function o1(a1){n1[28](a1,n1[32])}let i1={placeholder:"Value",disabled:n1[32].noValue,options:["True","False"]};return n1[32].referenceValue!==void 0&&(i1.value=n1[32].referenceValue),e1=new Select_1$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[32].noValue),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[32].referenceValue,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_2$A(n1){let e1,t1,r1;function o1(a1){n1[27](a1,n1[32])}let i1={placeholder:"Value",disabled:n1[32].noValue};return n1[32].referenceValue!==void 0&&(i1.value=n1[32].referenceValue),e1=new DatePicker_1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[32].noValue),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[32].referenceValue,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_1$W(n1){let e1,t1;function r1(...o1){return n1[26](n1[32],n1[34],n1[35],...o1)}return e1=new DrawerBindableInput({props:{disabled:n1[32].noValue,bindings:n1[1],placeholder:"Value",value:n1[32].referenceValue}}),e1.$on("change",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.disabled=n1[32].noValue),i1[0]&2&&(a1.bindings=n1[1]),i1[0]&1&&(a1.value=n1[32].referenceValue),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_each_block$F(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1,k1,S1,C1,A1,E1,z1,I1,N1,U1,F1,R1=noop$5,D1,V1,j1;o1=new Icon({props:{name:"DragHandle",size:"XL"}});function K1(R0){e1[18](R0,e1[32])}let G1={placeholder:null,options:e1[5]};e1[32].action!==void 0&&(G1.value=e1[32].action),s1=new Select_1$1({props:G1}),binding_callbacks.push(()=>bind$3(s1,"value",K1));let q1=e1[32].action==="update"&&create_if_block_4$f(e1);function J1(...R0){return e1[21](e1[32],e1[34],e1[35],...R0)}d1=new DrawerBindableInput({props:{bindings:e1[1],placeholder:"Value",value:e1[32].newValue}}),d1.$on("change",J1);function X1(R0){e1[22](R0,e1[32])}function Q1(...R0){return e1[23](e1[32],...R0)}let a0={placeholder:null,options:e1[13](e1[32])};e1[32].operator!==void 0&&(a0.value=e1[32].operator),_1=new Select_1$1({props:a0}),binding_callbacks.push(()=>bind$3(_1,"value",X1)),_1.$on("change",Q1);function n0(R0){e1[24](R0,e1[32])}function d0(...R0){return e1[25](e1[32],...R0)}let u0={disabled:e1[32].noValue||e1[32].operator==="oneOf",options:e1[6],placeholder:null};e1[32].valueType!==void 0&&(u0.value=e1[32].valueType),$1=new Select_1$1({props:u0}),binding_callbacks.push(()=>bind$3($1,"value",n0)),$1.$on("change",d0);const e0=[create_if_block_1$W,create_if_block_2$A,create_if_block_3$m],v0=[];function M0(R0,N0){return N0[0]&1&&(S1=null),S1==null&&(S1=!!["string","number"].includes(R0[32].valueType)),S1?0:R0[32].valueType==="datetime"?1:R0[32].valueType==="boolean"?2:-1}~(C1=M0(e1,[-1,-1]))&&(A1=v0[C1]=e0[C1](e1));function r0(){return e1[29](e1[32])}z1=new Icon({props:{name:"Duplicate",hoverable:!0,size:"S"}}),z1.$on("click",r0);function S0(){return e1[30](e1[32])}return N1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),N1.$on("click",S0),{key:n1,first:null,c(){t1=element("div"),r1=element("div"),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),q1&&q1.c(),u1=space$1(),f1=element("div"),f1.textContent="IF",p1=space$1(),create_component(d1.$$.fragment),m1=space$1(),create_component(_1.$$.fragment),b1=space$1(),create_component($1.$$.fragment),k1=space$1(),A1&&A1.c(),E1=space$1(),create_component(z1.$$.fragment),I1=space$1(),create_component(N1.$$.fragment),U1=space$1(),attr(r1,"class","handle svelte-69vx2r"),attr(r1,"aria-label","drag-handle"),attr(r1,"style",i1=e1[3]?"cursor: grab":"cursor: grabbing"),attr(t1,"class","condition svelte-69vx2r"),toggle_class(t1,"update",e1[32].action==="update"),this.first=t1},m(R0,N0){insert$1(R0,t1,N0),append$1(t1,r1),mount_component(o1,r1,null),append$1(t1,a1),mount_component(s1,t1,null),append$1(t1,c1),q1&&q1.m(t1,null),append$1(t1,u1),append$1(t1,f1),append$1(t1,p1),mount_component(d1,t1,null),append$1(t1,m1),mount_component(_1,t1,null),append$1(t1,b1),mount_component($1,t1,null),append$1(t1,k1),~C1&&v0[C1].m(t1,null),append$1(t1,E1),mount_component(z1,t1,null),append$1(t1,I1),mount_component(N1,t1,null),append$1(t1,U1),D1=!0,V1||(j1=listen(r1,"mousedown",e1[17]),V1=!0)},p(R0,N0){e1=R0,(!D1||N0[0]&8&&i1!==(i1=e1[3]?"cursor: grab":"cursor: grabbing"))&&attr(r1,"style",i1);const e2={};!l1&&N0[0]&1&&(l1=!0,e2.value=e1[32].action,add_flush_callback(()=>l1=!1)),s1.$set(e2),e1[32].action==="update"?q1?(q1.p(e1,N0),N0[0]&1&&transition_in(q1,1)):(q1=create_if_block_4$f(e1),q1.c(),transition_in(q1,1),q1.m(t1,u1)):q1&&(group_outros(),transition_out(q1,1,1,()=>{q1=null}),check_outros());const $2={};N0[0]&2&&($2.bindings=e1[1]),N0[0]&1&&($2.value=e1[32].newValue),d1.$set($2);const p2={};N0[0]&1&&(p2.options=e1[13](e1[32])),!h1&&N0[0]&1&&(h1=!0,p2.value=e1[32].operator,add_flush_callback(()=>h1=!1)),_1.$set(p2);const t2={};N0[0]&1&&(t2.disabled=e1[32].noValue||e1[32].operator==="oneOf"),!y1&&N0[0]&1&&(y1=!0,t2.value=e1[32].valueType,add_flush_callback(()=>y1=!1)),$1.$set(t2);let $0=C1;C1=M0(e1,N0),C1===$0?~C1&&v0[C1].p(e1,N0):(A1&&(group_outros(),transition_out(v0[$0],1,1,()=>{v0[$0]=null}),check_outros()),~C1?(A1=v0[C1],A1?A1.p(e1,N0):(A1=v0[C1]=e0[C1](e1),A1.c()),transition_in(A1,1),A1.m(t1,E1)):A1=null),(!D1||N0[0]&1)&&toggle_class(t1,"update",e1[32].action==="update")},r(){F1=t1.getBoundingClientRect()},f(){fix_position(t1),R1()},a(){R1(),R1=create_animation(t1,F1,flip,{duration:flipDurationMs$1})},i(R0){D1||(transition_in(o1.$$.fragment,R0),transition_in(s1.$$.fragment,R0),transition_in(q1),transition_in(d1.$$.fragment,R0),transition_in(_1.$$.fragment,R0),transition_in($1.$$.fragment,R0),transition_in(A1),transition_in(z1.$$.fragment,R0),transition_in(N1.$$.fragment,R0),D1=!0)},o(R0){transition_out(o1.$$.fragment,R0),transition_out(s1.$$.fragment,R0),transition_out(q1),transition_out(d1.$$.fragment,R0),transition_out(_1.$$.fragment,R0),transition_out($1.$$.fragment,R0),transition_out(A1),transition_out(z1.$$.fragment,R0),transition_out(N1.$$.fragment,R0),D1=!1},d(R0){R0&&detach(t1),destroy_component(o1),destroy_component(s1),q1&&q1.d(),destroy_component(d1),destroy_component(_1),destroy_component($1),~C1&&v0[C1].d(),destroy_component(z1),destroy_component(N1),V1=!1,j1()}}}function create_default_slot_2$1s(n1){let e1;return{c(){e1=text("Add condition")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1S(n1){let e1,t1,r1,o1,i1,a1;const s1=[create_if_block$1C,create_else_block_1$7],l1=[];function c1(u1,f1){var p1;return(p1=u1[0])!=null&&p1.length?0:1}return e1=c1(n1),t1=l1[e1]=s1[e1](n1),i1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_2$1s]},$$scope:{ctx:n1}}}),i1.$on("click",n1[8]),{c(){t1.c(),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment)},m(u1,f1){l1[e1].m(u1,f1),insert$1(u1,r1,f1),insert$1(u1,o1,f1),mount_component(i1,o1,null),a1=!0},p(u1,f1){let p1=e1;e1=c1(u1),e1===p1?l1[e1].p(u1,f1):(group_outros(),transition_out(l1[p1],1,1,()=>{l1[p1]=null}),check_outros(),t1=l1[e1],t1?t1.p(u1,f1):(t1=l1[e1]=s1[e1](u1),t1.c()),transition_in(t1,1),t1.m(r1.parentNode,r1));const d1={};f1[1]&32&&(d1.$$scope={dirty:f1,ctx:u1}),i1.$set(d1)},i(u1){a1||(transition_in(t1),transition_in(i1.$$.fragment,u1),a1=!0)},o(u1){transition_out(t1),transition_out(i1.$$.fragment,u1),a1=!1},d(u1){l1[e1].d(u1),u1&&detach(r1),u1&&detach(o1),destroy_component(i1)}}}function create_default_slot$2k(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,$$slots:{default:[create_default_slot_1$1S]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-69vx2r")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1[0]&31|i1[1]&32&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3o(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2k]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&31|o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$1=150;function instance$3q(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,selectedComponent,G1=>t1(2,i1=G1));let{conditions:a1=[]}=e1,{bindings:s1=[]}=e1;const l1=[{label:"Hide component",value:"hide"},{label:"Show component",value:"show"},{label:"Update setting",value:"update"}],c1=[{value:"string",label:"Binding"},{value:"number",label:"Number"},{value:"datetime",label:"Date"},{value:"boolean",label:"Boolean"}];let u1=!0;const f1=G1=>{const{section:q1,label:J1}=G1;return q1?J1?`${q1} - ${J1}`:q1:J1},p1=G1=>r1.find(q1=>q1.key===G1),d1=()=>{t1(0,a1=[...a1,{valueType:"string",id:shortid.exports.generate(),action:"hide",operator:OperatorOptions.Equals.value}])},m1=G1=>{t1(0,a1=a1.filter(q1=>q1.id!==G1))},_1=G1=>{const J1={...a1.find(X1=>X1.id===G1),id:shortid.exports.generate()};t1(0,a1=[...a1,J1])},h1=G1=>{b1(G1),t1(3,u1=!0)},b1=G1=>{t1(0,a1=G1.detail.items)},$1=G1=>getValidOperatorsForType(G1.valueType),y1=(G1,q1)=>{const J1=[OperatorOptions.Empty.value,OperatorOptions.NotEmpty.value];G1.noValue=J1.includes(q1),(G1.noValue||q1==="oneOf")&&(G1.referenceValue=null,G1.valueType="string")},k1=(G1,q1)=>{var X1;G1.referenceValue=null;const J1=getValidOperatorsForType(q1).map(Q1=>Q1.value);J1.includes(G1.operator)||(G1.operator=(X1=J1[0])!=null?X1:OperatorOptions.Equals.value,y1(G1,G1.operator))},S1=()=>t1(3,u1=!1);function C1(G1,q1){n1.$$.not_equal(q1.action,G1)&&(q1.action=G1,t1(0,a1))}function A1(G1,q1){n1.$$.not_equal(q1.setting,G1)&&(q1.setting=G1,t1(0,a1))}const E1=(G1,q1,J1,X1)=>t1(0,q1[J1].settingValue=X1,a1),z1=(G1,q1,J1,X1)=>t1(0,q1[J1].newValue=X1.detail,a1);function I1(G1,q1){n1.$$.not_equal(q1.operator,G1)&&(q1.operator=G1,t1(0,a1))}const N1=(G1,q1)=>y1(G1,q1.detail);function U1(G1,q1){n1.$$.not_equal(q1.valueType,G1)&&(q1.valueType=G1,t1(0,a1))}const F1=(G1,q1)=>k1(G1,q1.detail),R1=(G1,q1,J1,X1)=>t1(0,q1[J1].referenceValue=X1.detail,a1);function D1(G1,q1){n1.$$.not_equal(q1.referenceValue,G1)&&(q1.referenceValue=G1,t1(0,a1))}function V1(G1,q1){n1.$$.not_equal(q1.referenceValue,G1)&&(q1.referenceValue=G1,t1(0,a1))}const j1=G1=>_1(G1.id),K1=G1=>m1(G1.id);return n1.$$set=G1=>{"conditions"in G1&&t1(0,a1=G1.conditions),"bindings"in G1&&t1(1,s1=G1.bindings)},n1.$$.update=()=>{var G1;n1.$$.dirty[0]&4&&t1(16,r1=(G1=getComponentSettings(i1==null?void 0:i1._component))==null?void 0:G1.concat({label:"Custom CSS",key:"_css",type:"text"})),n1.$$.dirty[0]&65536&&t1(4,o1=r1.map(q1=>({label:f1(q1),value:q1.key}))),n1.$$.dirty[0]&1&&a1.forEach(q1=>{q1.id||(q1.id=shortid.exports.generate())})},[a1,s1,i1,u1,o1,l1,c1,p1,d1,m1,_1,h1,b1,$1,y1,k1,r1,S1,C1,A1,E1,z1,I1,N1,U1,F1,R1,D1,V1,j1,K1]}class ConditionalUIDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3q,create_fragment$3o,safe_not_equal,{conditions:0,bindings:1},null,[-1,-1])}}const ConditionalUISection_svelte_svelte_type_style_lang="";function create_default_slot_2$1r(n1){let e1;return{c(){e1=text("Configure conditions")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1R(n1){let e1,t1,r1,o1,i1,a1;return i1=new ActionButton({props:{$$slots:{default:[create_default_slot_2$1r]},$$scope:{ctx:n1}}}),i1.$on("click",n1[4]),{c(){e1=element("div"),t1=text(n1[3]),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment),attr(e1,"class","conditionCount svelte-gl19jt")},m(s1,l1){insert$1(s1,e1,l1),append$1(e1,t1),insert$1(s1,r1,l1),insert$1(s1,o1,l1),mount_component(i1,o1,null),a1=!0},p(s1,l1){(!a1||l1&8)&&set_data(t1,s1[3]);const c1={};l1&2048&&(c1.$$scope={dirty:l1,ctx:s1}),i1.$set(c1)},i(s1){a1||(transition_in(i1.$$.fragment,s1),a1=!0)},o(s1){transition_out(i1.$$.fragment,s1),a1=!1},d(s1){s1&&detach(e1),s1&&detach(r1),s1&&detach(o1),destroy_component(i1)}}}function create_description_slot$1(n1){let e1;return{c(){e1=text("Show, hide and update components in response to conditions being met.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2j(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$3(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2j]},$$scope:{ctx:n1}}}),e1.$on("click",n1[9]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2048&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$2(n1){let e1,t1,r1;function o1(a1){n1[8](a1)}let i1={slot:"body",bindings:n1[0]};return n1[1]!==void 0&&(i1.conditions=n1[1]),e1=new ConditionalUIDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"conditions",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&1&&(l1.bindings=a1[0]),!t1&&s1&2&&(t1=!0,l1.conditions=a1[1],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3n(n1){let e1,t1,r1,o1;e1=new DetailSummary({props:{name:"Conditions",collapsible:!1,$$slots:{default:[create_default_slot_1$1R]},$$scope:{ctx:n1}}});let i1={title:"Conditions",$$slots:{body:[create_body_slot$2],buttons:[create_buttons_slot$3],description:[create_description_slot$1]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[10](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&2056&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};s1&2051&&(c1.$$scope={dirty:s1,ctx:a1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[10](null),destroy_component(r1,a1)}}}function instance$3p(n1,e1,t1){let r1,o1,{componentInstance:i1}=e1,{bindings:a1}=e1,s1,l1;const c1=()=>{var m1;t1(1,s1=JSON.parse(JSON.stringify((m1=i1==null?void 0:i1._conditions)!=null?m1:[]))),l1.show()},u1=async()=>{try{await store.actions.components.updateConditions(s1)}catch{notifications.error("Error updating conditions")}l1.hide()};function f1(m1){s1=m1,t1(1,s1)}const p1=()=>u1();function d1(m1){binding_callbacks[m1?"unshift":"push"](()=>{l1=m1,t1(2,l1)})}return n1.$$set=m1=>{"componentInstance"in m1&&t1(6,i1=m1.componentInstance),"bindings"in m1&&t1(0,a1=m1.bindings)},n1.$$.update=()=>{var m1;n1.$$.dirty&64&&t1(7,r1=(m1=i1==null?void 0:i1._conditions)==null?void 0:m1.length),n1.$$.dirty&128&&t1(3,o1=`${r1||"No"} condition${r1!==1?"s":""} set`)},[a1,s1,l1,o1,c1,u1,i1,r1,f1,p1,d1]}class ConditionalUISection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3p,create_fragment$3n,safe_not_equal,{componentInstance:6,bindings:0})}}const ComponentInfoSection_svelte_svelte_type_style_lang="";function create_default_slot$2i(n1){let e1,t1,r1,o1,i1=n1[0].name+"",a1,s1,l1=n1[0].info+"",c1,u1;return r1=new Icon({props:{name:"HelpOutline"}}),{c(){e1=element("div"),t1=element("div"),create_component(r1.$$.fragment),o1=space$1(),a1=text(i1),s1=space$1(),c1=text(l1),attr(t1,"class","title svelte-1qbj35w"),attr(e1,"class","info svelte-1qbj35w")},m(f1,p1){insert$1(f1,e1,p1),append$1(e1,t1),mount_component(r1,t1,null),append$1(t1,o1),append$1(t1,a1),append$1(e1,s1),append$1(e1,c1),u1=!0},p(f1,p1){(!u1||p1&1)&&i1!==(i1=f1[0].name+"")&&set_data(a1,i1),(!u1||p1&1)&&l1!==(l1=f1[0].info+"")&&set_data(c1,l1)},i(f1){u1||(transition_in(r1.$$.fragment,f1),u1=!0)},o(f1){transition_out(r1.$$.fragment,f1),u1=!1},d(f1){f1&&detach(e1),destroy_component(r1)}}}function create_fragment$3m(n1){let e1,t1;return e1=new DetailSummary({props:{collapsible:!1,$$slots:{default:[create_default_slot$2i]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&3&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3o(n1,e1,t1){let{componentDefinition:r1}=e1;return n1.$$set=o1=>{"componentDefinition"in o1&&t1(0,r1=o1.componentDefinition)},[r1]}class ComponentInfoSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3o,create_fragment$3m,safe_not_equal,{componentDefinition:0})}}const ComponentSettingsPanel_svelte_svelte_type_style_lang="";function get_each_context$E(n1,e1,t1){const r1=n1.slice();return r1[13]=e1[t1],r1}function create_if_block$1B(n1){let e1=n1[1]._id,t1,r1,o1=create_key_block$5(n1);return{c(){o1.c(),t1=empty$1()},m(i1,a1){o1.m(i1,a1),insert$1(i1,t1,a1),r1=!0},p(i1,a1){a1&2&&safe_not_equal(e1,e1=i1[1]._id)?(group_outros(),transition_out(o1,1,1,noop$5),check_outros(),o1=create_key_block$5(i1),o1.c(),transition_in(o1,1),o1.m(t1.parentNode,t1)):o1.p(i1,a1)},i(i1){r1||(transition_in(o1),r1=!0)},o(i1){transition_out(o1),r1=!1},d(i1){i1&&detach(t1),o1.d(i1)}}}function create_if_block_3$l(n1){var i1;let e1,t1,r1,o1=((i1=n1[6])==null?void 0:i1.info)&&create_if_block_4$e(n1);return t1=new ComponentSettingsSection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5],componentBindings:n1[4],isScreen:n1[0]}}),{c(){o1&&o1.c(),e1=space$1(),create_component(t1.$$.fragment)},m(a1,s1){o1&&o1.m(a1,s1),insert$1(a1,e1,s1),mount_component(t1,a1,s1),r1=!0},p(a1,s1){var c1;(c1=a1[6])!=null&&c1.info?o1?(o1.p(a1,s1),s1&64&&transition_in(o1,1)):(o1=create_if_block_4$e(a1),o1.c(),transition_in(o1,1),o1.m(e1.parentNode,e1)):o1&&(group_outros(),transition_out(o1,1,1,()=>{o1=null}),check_outros());const l1={};s1&128&&(l1.componentInstance=a1[7]),s1&64&&(l1.componentDefinition=a1[6]),s1&32&&(l1.bindings=a1[5]),s1&16&&(l1.componentBindings=a1[4]),s1&1&&(l1.isScreen=a1[0]),t1.$set(l1)},i(a1){r1||(transition_in(o1),transition_in(t1.$$.fragment,a1),r1=!0)},o(a1){transition_out(o1),transition_out(t1.$$.fragment,a1),r1=!1},d(a1){o1&&o1.d(a1),a1&&detach(e1),destroy_component(t1,a1)}}}function create_if_block_4$e(n1){let e1,t1;return e1=new ComponentInfoSection({props:{componentDefinition:n1[6]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&64&&(i1.componentDefinition=r1[6]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_2$z(n1){let e1,t1,r1,o1;return e1=new DesignSection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5]}}),r1=new CustomStylesSection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5]}}),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&128&&(s1.componentInstance=i1[7]),a1&64&&(s1.componentDefinition=i1[6]),a1&32&&(s1.bindings=i1[5]),e1.$set(s1);const l1={};a1&128&&(l1.componentInstance=i1[7]),a1&64&&(l1.componentDefinition=i1[6]),a1&32&&(l1.bindings=i1[5]),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_if_block_1$V(n1){let e1,t1;return e1=new ConditionalUISection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&128&&(i1.componentInstance=r1[7]),o1&64&&(i1.componentDefinition=r1[6]),o1&32&&(i1.bindings=r1[5]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_1$1Q(n1){let e1,t1,r1,o1,i1=n1[2]=="settings"&&create_if_block_3$l(n1),a1=n1[2]=="styles"&&create_if_block_2$z(n1),s1=n1[2]=="conditions"&&create_if_block_1$V(n1);return{c(){i1&&i1.c(),e1=space$1(),a1&&a1.c(),t1=space$1(),s1&&s1.c(),r1=empty$1()},m(l1,c1){i1&&i1.m(l1,c1),insert$1(l1,e1,c1),a1&&a1.m(l1,c1),insert$1(l1,t1,c1),s1&&s1.m(l1,c1),insert$1(l1,r1,c1),o1=!0},p(l1,c1){l1[2]=="settings"?i1?(i1.p(l1,c1),c1&4&&transition_in(i1,1)):(i1=create_if_block_3$l(l1),i1.c(),transition_in(i1,1),i1.m(e1.parentNode,e1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros()),l1[2]=="styles"?a1?(a1.p(l1,c1),c1&4&&transition_in(a1,1)):(a1=create_if_block_2$z(l1),a1.c(),transition_in(a1,1),a1.m(t1.parentNode,t1)):a1&&(group_outros(),transition_out(a1,1,1,()=>{a1=null}),check_outros()),l1[2]=="conditions"?s1?(s1.p(l1,c1),c1&4&&transition_in(s1,1)):(s1=create_if_block_1$V(l1),s1.c(),transition_in(s1,1),s1.m(r1.parentNode,r1)):s1&&(group_outros(),transition_out(s1,1,1,()=>{s1=null}),check_outros())},i(l1){o1||(transition_in(i1),transition_in(a1),transition_in(s1),o1=!0)},o(l1){transition_out(i1),transition_out(a1),transition_out(s1),o1=!1},d(l1){i1&&i1.d(l1),l1&&detach(e1),a1&&a1.d(l1),l1&&detach(t1),s1&&s1.d(l1),l1&&detach(r1)}}}function create_default_slot$2h(n1){let e1=capitalise(n1[13])+"",t1,r1;return{c(){t1=text(e1),r1=space$1()},m(o1,i1){insert$1(o1,t1,i1),insert$1(o1,r1,i1)},p:noop$5,d(o1){o1&&detach(t1),o1&&detach(r1)}}}function create_each_block$E(n1){let e1,t1;function r1(){return n1[12](n1[13])}return e1=new ActionButton({props:{size:"M",quiet:!0,selected:n1[2]===n1[13],$$slots:{default:[create_default_slot$2h]},$$scope:{ctx:n1}}}),e1.$on("click",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1&4&&(a1.selected=n1[2]===n1[13]),i1&65536&&(a1.$$scope={dirty:i1,ctx:n1}),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_panel_header_content_slot(n1){let e1,t1,r1,o1=n1[8],i1=[];for(let s1=0;s1<o1.length;s1+=1)i1[s1]=create_each_block$E(get_each_context$E(n1,o1,s1));const a1=s1=>transition_out(i1[s1],1,1,()=>{i1[s1]=null});return{c(){e1=element("span"),t1=element("div");for(let s1=0;s1<i1.length;s1+=1)i1[s1].c();attr(t1,"class","settings-tabs svelte-2iq92p"),attr(e1,"slot","panel-header-content")},m(s1,l1){insert$1(s1,e1,l1),append$1(e1,t1);for(let c1=0;c1<i1.length;c1+=1)i1[c1].m(t1,null);r1=!0},p(s1,l1){if(l1&260){o1=s1[8];let c1;for(c1=0;c1<o1.length;c1+=1){const u1=get_each_context$E(s1,o1,c1);i1[c1]?(i1[c1].p(u1,l1),transition_in(i1[c1],1)):(i1[c1]=create_each_block$E(u1),i1[c1].c(),transition_in(i1[c1],1),i1[c1].m(t1,null))}for(group_outros(),c1=o1.length;c1<i1.length;c1+=1)a1(c1);check_outros()}},i(s1){if(!r1){for(let l1=0;l1<o1.length;l1+=1)transition_in(i1[l1]);r1=!0}},o(s1){i1=i1.filter(Boolean);for(let l1=0;l1<i1.length;l1+=1)transition_out(i1[l1]);r1=!1},d(s1){s1&&detach(e1),destroy_each(i1,s1)}}}function create_key_block$5(n1){var r1;let e1,t1;return e1=new Panel({props:{title:n1[3],icon:(r1=n1[6])==null?void 0:r1.icon,borderLeft:!0,wide:!0,$$slots:{"panel-header-content":[create_panel_header_content_slot],default:[create_default_slot_1$1Q]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){var s1;const a1={};i1&8&&(a1.title=o1[3]),i1&64&&(a1.icon=(s1=o1[6])==null?void 0:s1.icon),i1&65781&&(a1.$$scope={dirty:i1,ctx:o1}),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_fragment$3l(n1){let e1,t1,r1=n1[1]&&create_if_block$1B(n1);return{c(){r1&&r1.c(),e1=empty$1()},m(o1,i1){r1&&r1.m(o1,i1),insert$1(o1,e1,i1),t1=!0},p(o1,[i1]){o1[1]?r1?(r1.p(o1,i1),i1&2&&transition_in(r1,1)):(r1=create_if_block$1B(o1),r1.c(),transition_in(r1,1),r1.m(e1.parentNode,e1)):r1&&(group_outros(),transition_out(r1,1,1,()=>{r1=null}),check_outros())},i(o1){t1||(transition_in(r1),t1=!0)},o(o1){transition_out(r1),t1=!1},d(o1){r1&&r1.d(o1),o1&&detach(e1)}}}function instance$3n(n1,e1,t1){let r1,o1,i1,a1,s1,l1,c1,u1,f1,p1;component_subscribe(n1,selectedComponent,h1=>t1(1,u1=h1)),component_subscribe(n1,selectedScreen,h1=>t1(10,f1=h1)),component_subscribe(n1,store,h1=>t1(11,p1=h1));let d1="settings";const m1=["settings","styles","conditions"],_1=h1=>{t1(2,d1=h1)};return n1.$$.update=()=>{n1.$$.dirty&2&&t1(7,r1=u1),n1.$$.dirty&2&&t1(6,o1=store.actions.components.getDefinition(u1==null?void 0:u1._component)),n1.$$.dirty&3072&&t1(5,i1=getBindableProperties(f1,p1.selectedComponentId)),n1.$$.dirty&3072&&t1(4,a1=getComponentBindableProperties(f1,p1.selectedComponentId)),n1.$$.dirty&1026&&t1(0,s1=(u1==null?void 0:u1._id)===(f1==null?void 0:f1.props._id)),n1.$$.dirty&3&&t1(3,l1=s1?"Screen":u1==null?void 0:u1._instanceName),n1.$$.dirty&2&&t1(9,c1=u1==null?void 0:u1._id),n1.$$.dirty&512&&t1(2,d1=m1[0])},[s1,u1,d1,l1,a1,i1,o1,r1,m1,c1,f1,p1,_1]}class ComponentSettingsPanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3n,create_fragment$3l,safe_not_equal,{})}}function create_fragment$3k(n1){let e1,t1,r1,o1,i1;e1=new ComponentListPanel({}),r1=new ComponentSettingsPanel({});const a1=n1[3].default,s1=create_slot(a1,n1,n1[2],null);return{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment),o1=space$1(),s1&&s1.c()},m(l1,c1){mount_component(e1,l1,c1),insert$1(l1,t1,c1),mount_component(r1,l1,c1),insert$1(l1,o1,c1),s1&&s1.m(l1,c1),i1=!0},p(l1,[c1]){s1&&s1.p&&(!i1||c1&4)&&update_slot_base(s1,a1,l1,l1[2],i1?get_slot_changes(a1,l1[2],c1,null):get_all_dirty_from_scope(l1[2]),null)},i(l1){i1||(transition_in(e1.$$.fragment,l1),transition_in(r1.$$.fragment,l1),transition_in(s1,l1),i1=!0)},o(l1){transition_out(e1.$$.fragment,l1),transition_out(r1.$$.fragment,l1),transition_out(s1,l1),i1=!1},d(l1){destroy_component(e1,l1),l1&&detach(t1),destroy_component(r1,l1),l1&&detach(o1),s1&&s1.d(l1)}}}function instance$3m(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,selectedScreen,u1=>t1(4,o1=u1)),component_subscribe(n1,store,u1=>t1(1,i1=u1));let{$$slots:a1={},$$scope:s1}=e1;const c1=syncURLToState({urlParam:"componentId",stateKey:"selectedComponentId",validate:u1=>!!findComponent(o1.props,u1),fallbackUrl:"../",store,routify:routify$1,beforeNavigate:u1=>(u1!=null&&u1.endsWith("/index")&&(u1=u1.replace("/index","")),u1!=null&&u1.endsWith("/new")&&(u1=u1.replace("/new","")),{url:u1})});return onDestroy(c1),n1.$$set=u1=>{"$$scope"in u1&&t1(2,s1=u1.$$scope)},n1.$$.update=()=>{n1.$$.dirty&2&&t1(0,r1=i1.selectedComponentId),n1.$$.dirty&1&&store.actions.websocket.selectResource(r1)},[r1,i1,s1,a1]}class Layout$g extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3m,create_fragment$3k,safe_not_equal,{})}}function instance$3l(n1,e1,t1){let r1,o1,i1;return component_subscribe(n1,redirect,a1=>t1(0,r1=a1)),component_subscribe(n1,selectedScreen,a1=>t1(1,o1=a1)),component_subscribe(n1,selectedComponent,a1=>t1(2,i1=a1)),onMount(()=>{r1(i1?`./${i1._id}`:o1?`./${o1.props._id}`:"../")}),[]}class Components extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3l,null,safe_not_equal,{})}}function instance$3k(n1,e1,t1){let r1;return component_subscribe(n1,redirect,o1=>t1(0,r1=o1)),r1("./screens"),[]}class U5BscreenIdu5D extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3k,null,safe_not_equal,{})}}const LayoutDropdownMenu_svelte_svelte_type_style_lang="";function create_default_slot_1$1P(n1){let e1;return{c(){e1=text("Delete")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2g(n1){let e1,t1;return e1=new Item({props:{icon:"Delete",$$slots:{default:[create_default_slot_1$1P]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[0].show)&&n1[0].show.apply(this,arguments)}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){n1=r1;const i1={};o1&16&&(i1.$$scope={dirty:o1,ctx:n1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_control_slot$7(n1){let e1,t1,r1;return t1=new Icon({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"slot","control"),attr(e1,"class","icon svelte-u6s22l")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p:noop$5,i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3j(n1){let e1,t1,r1,o1;e1=new ActionMenu({props:{$$slots:{control:[create_control_slot$7],default:[create_default_slot$2g]},$$scope:{ctx:n1}}});let i1={title:"Confirm Deletion",body:"Are you sure you wish to delete this layout?",okText:"Delete layout",onOk:n1[1]};return r1=new ConfirmDialog({props:i1}),n1[3](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&17&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[3](null),destroy_component(r1,a1)}}}function instance$3j(n1,e1,t1){let{layout:r1}=e1,o1;const i1=async()=>{try{await store.actions.layouts.delete(r1),notifications.success("Layout deleted successfully")}catch(s1){notifications.error((s1==null?void 0:s1.message)||"Error deleting layout")}};function a1(s1){binding_callbacks[s1?"unshift":"push"](()=>{o1=s1,t1(0,o1)})}return n1.$$set=s1=>{"layout"in s1&&t1(2,r1=s1.layout)},[o1,i1,r1,a1]}class LayoutDropdownMenu extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3j,create_fragment$3j,safe_not_equal,{layout:2})}}const LayoutListPanel_svelte_svelte_type_style_lang="";function get_each_context$D(n1,e1,t1){const r1=n1.slice();return r1[2]=e1[t1],r1}function create_default_slot_1$1O(n1){let e1,t1,r1;return e1=new LayoutDropdownMenu({props:{layout:n1[2]}}),{c(){create_component(e1.$$.fragment),t1=space$1()},m(o1,i1){mount_component(e1,o1,i1),insert$1(o1,t1,i1),r1=!0},p(o1,i1){const a1={};i1&1&&(a1.layout=o1[2]),e1.$set(a1)},i(o1){r1||(transition_in(e1.$$.fragment,o1),r1=!0)},o(o1){transition_out(e1.$$.fragment,o1),r1=!1},d(o1){destroy_component(e1,o1),o1&&detach(t1)}}}function create_each_block$D(n1,e1){let t1,r1,o1;function i1(){return e1[1](e1[2])}return r1=new NavItem({props:{icon:"Experience",indentLevel:0,selected:e1[0].selectedLayoutId===e1[2]._id,text:e1[2].name,$$slots:{default:[create_default_slot_1$1O]},$$scope:{ctx:e1}}}),r1.$on("click",i1),{key:n1,first:null,c(){t1=empty$1(),create_component(r1.$$.fragment),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,s1){e1=a1;const l1={};s1&1&&(l1.selected=e1[0].selectedLayoutId===e1[2]._id),s1&1&&(l1.text=e1[2].name),s1&33&&(l1.$$scope={dirty:s1,ctx:e1}),r1.$set(l1)},i(a1){o1||(transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(r1.$$.fragment,a1),o1=!1},d(a1){a1&&detach(t1),destroy_component(r1,a1)}}}function create_default_slot$2f(n1){let e1,t1=[],r1=new Map,o1,i1=n1[0].layouts;const a1=s1=>s1[2]._id;for(let s1=0;s1<i1.length;s1+=1){let l1=get_each_context$D(n1,i1,s1),c1=a1(l1);r1.set(c1,t1[s1]=create_each_block$D(c1,l1))}return{c(){e1=element("div");for(let s1=0;s1<t1.length;s1+=1)t1[s1].c();attr(e1,"class","layouts svelte-1yaxv10")},m(s1,l1){insert$1(s1,e1,l1);for(let c1=0;c1<t1.length;c1+=1)t1[c1].m(e1,null);o1=!0},p(s1,l1){l1&1&&(i1=s1[0].layouts,group_outros(),t1=update_keyed_each(t1,l1,a1,1,s1,i1,r1,e1,outro_and_destroy_block,create_each_block$D,null,get_each_context$D),check_outros())},i(s1){if(!o1){for(let l1=0;l1<i1.length;l1+=1)transition_in(t1[l1]);o1=!0}},o(s1){for(let l1=0;l1<t1.length;l1+=1)transition_out(t1[l1]);o1=!1},d(s1){s1&&detach(e1);for(let l1=0;l1<t1.length;l1+=1)t1[l1].d()}}}function create_fragment$3i(n1){let e1,t1;return e1=new Panel({props:{title:"Layouts",borderRight:!0,$$slots:{default:[create_default_slot$2f]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&33&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3i(n1,e1,t1){let r1;return component_subscribe(n1,store,i1=>t1(0,r1=i1)),[r1,i1=>store.actions.layouts.select(i1._id)]}class LayoutListPanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3i,create_fragment$3i,safe_not_equal,{})}}function create_default_slot_5$P(n1){let e1;return{c(){e1=text(`Custom layouts are being deprecated. They will be removed in a future
1702
+ below.`)},m(o1,i1){insert$1(o1,e1,i1),insert$1(o1,t1,i1),insert$1(o1,r1,i1)},p:noop$5,d(o1){o1&&detach(e1),o1&&detach(t1),o1&&detach(r1)}}}function create_default_slot_7$B(n1){let e1;return{c(){e1=text("Column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_6$I(n1){let e1;return{c(){e1=text("Label")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block_2$C(n1){let e1,t1,r1;function o1(a1){n1[17](a1,n1[21],n1[22],n1[23])}let i1={};return n1[21]!==void 0&&(i1.column=n1[21]),e1=new CellEditor$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"column",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};!t1&&s1&1&&(t1=!0,l1.column=n1[21],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_each_block$L(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1=noop$5,$1,y1,k1;o1=new Icon({props:{name:"DragHandle",size:"XL"}});function S1(U1){e1[14](U1,e1[21])}function C1(...U1){return e1[15](e1[21],e1[22],e1[23],...U1)}let A1={placeholder:"Column",options:e1[4](e1[21].name)};e1[21].name!==void 0&&(A1.value=e1[21].name),s1=new Select_1$1({props:A1}),binding_callbacks.push(()=>bind$3(s1,"value",S1)),s1.$on("change",C1);function E1(U1){e1[16](U1,e1[21])}let z1={placeholder:"Label"};e1[21].displayName!==void 0&&(z1.value=e1[21].displayName),u1=new Input$5({props:z1}),binding_callbacks.push(()=>bind$3(u1,"value",E1));let I1=e1[1]&&create_if_block_2$C(e1);function N1(){return e1[18](e1[21])}return m1=new Icon({props:{name:"Close",hoverable:!0,size:"S",disabled:e1[0].length===1}}),m1.$on("click",N1),{key:n1,first:null,c(){t1=element("div"),r1=element("div"),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),p1=space$1(),I1&&I1.c(),d1=space$1(),create_component(m1.$$.fragment),_1=space$1(),attr(r1,"class","handle svelte-1rhj4t1"),attr(r1,"aria-label","drag-handle"),attr(r1,"style",i1=e1[3]?"cursor: grab":"cursor: grabbing"),toggle_class(r1,"hide",!e1[2]),attr(t1,"class","column svelte-1rhj4t1"),this.first=t1},m(U1,F1){insert$1(U1,t1,F1),append$1(t1,r1),mount_component(o1,r1,null),append$1(t1,a1),mount_component(s1,t1,null),append$1(t1,c1),mount_component(u1,t1,null),append$1(t1,p1),I1&&I1.m(t1,null),append$1(t1,d1),mount_component(m1,t1,null),append$1(t1,_1),$1=!0,y1||(k1=listen(r1,"mousedown",e1[13]),y1=!0)},p(U1,F1){e1=U1,(!$1||F1&8&&i1!==(i1=e1[3]?"cursor: grab":"cursor: grabbing"))&&attr(r1,"style",i1),(!$1||F1&4)&&toggle_class(r1,"hide",!e1[2]);const R1={};F1&1&&(R1.options=e1[4](e1[21].name)),!l1&&F1&1&&(l1=!0,R1.value=e1[21].name,add_flush_callback(()=>l1=!1)),s1.$set(R1);const D1={};!f1&&F1&1&&(f1=!0,D1.value=e1[21].displayName,add_flush_callback(()=>f1=!1)),u1.$set(D1),e1[1]?I1?(I1.p(e1,F1),F1&2&&transition_in(I1,1)):(I1=create_if_block_2$C(e1),I1.c(),transition_in(I1,1),I1.m(t1,d1)):I1&&(group_outros(),transition_out(I1,1,1,()=>{I1=null}),check_outros());const V1={};F1&1&&(V1.disabled=e1[0].length===1),m1.$set(V1)},r(){h1=t1.getBoundingClientRect()},f(){fix_position(t1),b1()},a(){b1(),b1=create_animation(t1,h1,flip,{duration:flipDurationMs$3})},i(U1){$1||(transition_in(o1.$$.fragment,U1),transition_in(s1.$$.fragment,U1),transition_in(u1.$$.fragment,U1),transition_in(I1),transition_in(m1.$$.fragment,U1),$1=!0)},o(U1){transition_out(o1.$$.fragment,U1),transition_out(s1.$$.fragment,U1),transition_out(u1.$$.fragment,U1),transition_out(I1),transition_out(m1.$$.fragment,U1),$1=!1},d(U1){U1&&detach(t1),destroy_component(o1),destroy_component(s1),destroy_component(u1),I1&&I1.d(),destroy_component(m1),y1=!1,k1()}}}function create_default_slot_5$R(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1=[],m1=new Map,_1,h1,b1,$1;o1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_7$B]},$$scope:{ctx:n1}}}),a1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_6$I]},$$scope:{ctx:n1}}});let y1=n1[0];const k1=S1=>S1[21].id;for(let S1=0;S1<y1.length;S1+=1){let C1=get_each_context$L(n1,y1,S1),A1=k1(C1);m1.set(A1,d1[S1]=create_each_block$L(A1,C1))}return{c(){e1=element("div"),t1=element("div"),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),s1=space$1(),l1=element("div"),c1=space$1(),u1=element("div"),f1=space$1(),p1=element("div");for(let S1=0;S1<d1.length;S1+=1)d1[S1].c();attr(e1,"class","column svelte-1rhj4t1"),attr(p1,"class","columns svelte-1rhj4t1")},m(S1,C1){insert$1(S1,e1,C1),append$1(e1,t1),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),mount_component(a1,e1,null),append$1(e1,s1),append$1(e1,l1),append$1(e1,c1),append$1(e1,u1),insert$1(S1,f1,C1),insert$1(S1,p1,C1);for(let A1=0;A1<d1.length;A1+=1)d1[A1].m(p1,null);h1=!0,b1||($1=[action_destroyer(_1=dndzone.call(null,p1,{items:n1[0],flipDurationMs:flipDurationMs$3,dropTargetStyle:{outline:"none"},dragDisabled:n1[3]})),listen(p1,"finalize",n1[8]),listen(p1,"consider",n1[7])],b1=!0)},p(S1,C1){const A1={};C1&16777216&&(A1.$$scope={dirty:C1,ctx:S1}),o1.$set(A1);const E1={};if(C1&16777216&&(E1.$$scope={dirty:C1,ctx:S1}),a1.$set(E1),C1&95){y1=S1[0],group_outros();for(let z1=0;z1<d1.length;z1+=1)d1[z1].r();d1=update_keyed_each(d1,C1,k1,1,S1,y1,m1,p1,fix_and_outro_and_destroy_block,create_each_block$L,null,get_each_context$L);for(let z1=0;z1<d1.length;z1+=1)d1[z1].a();check_outros()}_1&&is_function(_1.update)&&C1&9&&_1.update.call(null,{items:S1[0],flipDurationMs:flipDurationMs$3,dropTargetStyle:{outline:"none"},dragDisabled:S1[3]})},i(S1){if(!h1){transition_in(o1.$$.fragment,S1),transition_in(a1.$$.fragment,S1);for(let C1=0;C1<y1.length;C1+=1)transition_in(d1[C1]);h1=!0}},o(S1){transition_out(o1.$$.fragment,S1),transition_out(a1.$$.fragment,S1);for(let C1=0;C1<d1.length;C1+=1)transition_out(d1[C1]);h1=!1},d(S1){S1&&detach(e1),destroy_component(o1),destroy_component(a1),S1&&detach(f1),S1&&detach(p1);for(let C1=0;C1<d1.length;C1+=1)d1[C1].d();b1=!1,run_all($1)}}}function create_default_slot_4$_(n1){let e1;return{c(){e1=text("Add column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$1e(n1){let e1;return{c(){e1=text("Add all columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1G(n1){let e1,t1;return e1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_2$1v]},$$scope:{ctx:n1}}}),e1.$on("click",n1[10]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&16777216&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_2$1v(n1){let e1;return{c(){e1=text("Reset columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1Z(n1){var _1;let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1;const f1=[create_if_block_1$Z,create_else_block$A],p1=[];function d1(h1,b1){var $1;return($1=h1[0])!=null&&$1.length?0:1}e1=d1(n1),t1=p1[e1]=f1[e1](n1),a1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_4$_]},$$scope:{ctx:n1}}}),a1.$on("click",n1[5]),l1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_3$1e]},$$scope:{ctx:n1}}}),l1.$on("click",n1[9]);let m1=((_1=n1[0])==null?void 0:_1.length)&&create_if_block$1G(n1);return{c(){t1.c(),r1=space$1(),o1=element("div"),i1=element("div"),create_component(a1.$$.fragment),s1=space$1(),create_component(l1.$$.fragment),c1=space$1(),m1&&m1.c(),attr(i1,"class","buttons wide svelte-1rhj4t1"),attr(o1,"class","column svelte-1rhj4t1")},m(h1,b1){p1[e1].m(h1,b1),insert$1(h1,r1,b1),insert$1(h1,o1,b1),append$1(o1,i1),mount_component(a1,i1,null),append$1(i1,s1),mount_component(l1,i1,null),append$1(i1,c1),m1&&m1.m(i1,null),u1=!0},p(h1,b1){var S1;let $1=e1;e1=d1(h1),e1===$1?p1[e1].p(h1,b1):(group_outros(),transition_out(p1[$1],1,1,()=>{p1[$1]=null}),check_outros(),t1=p1[e1],t1?t1.p(h1,b1):(t1=p1[e1]=f1[e1](h1),t1.c()),transition_in(t1,1),t1.m(r1.parentNode,r1));const y1={};b1&16777216&&(y1.$$scope={dirty:b1,ctx:h1}),a1.$set(y1);const k1={};b1&16777216&&(k1.$$scope={dirty:b1,ctx:h1}),l1.$set(k1),(S1=h1[0])!=null&&S1.length?m1?(m1.p(h1,b1),b1&1&&transition_in(m1,1)):(m1=create_if_block$1G(h1),m1.c(),transition_in(m1,1),m1.m(i1,null)):m1&&(group_outros(),transition_out(m1,1,1,()=>{m1=null}),check_outros())},i(h1){u1||(transition_in(t1),transition_in(a1.$$.fragment,h1),transition_in(l1.$$.fragment,h1),transition_in(m1),u1=!0)},o(h1){transition_out(t1),transition_out(a1.$$.fragment,h1),transition_out(l1.$$.fragment,h1),transition_out(m1),u1=!1},d(h1){p1[e1].d(h1),h1&&detach(r1),h1&&detach(o1),destroy_component(a1),destroy_component(l1),m1&&m1.d()}}}function create_default_slot$2t(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$1Z]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-1rhj4t1")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&16777231&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3A(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2t]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&16777231&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$3=150;function instance$3C(n1,e1,t1){let r1,{columns:o1=[]}=e1,{options:i1=[]}=e1,{schema:a1={}}=e1,{allowCellEditing:s1=!0}=e1,{allowReorder:l1=!0}=e1,c1=!0;const u1=(E1,z1)=>{let I1={};return E1.forEach(N1=>{I1[N1]=!0}),z1==null||z1.forEach(N1=>{delete I1[N1.name]}),Object.keys(I1)},f1=E1=>!E1||r1.includes(E1)?r1:[E1,...r1],p1=()=>{t1(0,o1=[...o1,{}])},d1=E1=>{t1(0,o1=o1.filter(z1=>z1.id!==E1))},m1=E1=>{t1(0,o1=E1.detail.items)},_1=E1=>{m1(E1),t1(3,c1=!0)},h1=()=>{let E1=o1||[];i1.forEach(z1=>{const I1=a1[z1],N1=o1&&o1.findIndex(U1=>U1.name===z1)!==-1;!(I1!=null&&I1.autocolumn)&&!N1&&E1.push({name:z1,displayName:z1})}),t1(0,o1=E1)},b1=()=>{t1(0,o1=[])},$1=()=>t1(3,c1=!1);function y1(E1,z1){n1.$$.not_equal(z1.name,E1)&&(z1.name=E1,t1(0,o1))}const k1=(E1,z1,I1,N1)=>t1(0,z1[I1].displayName=N1.detail,o1);function S1(E1,z1){n1.$$.not_equal(z1.displayName,E1)&&(z1.displayName=E1,t1(0,o1))}function C1(E1,z1,I1,N1){I1[N1]=E1,t1(0,o1)}const A1=E1=>d1(E1.id);return n1.$$set=E1=>{"columns"in E1&&t1(0,o1=E1.columns),"options"in E1&&t1(11,i1=E1.options),"schema"in E1&&t1(12,a1=E1.schema),"allowCellEditing"in E1&&t1(1,s1=E1.allowCellEditing),"allowReorder"in E1&&t1(2,l1=E1.allowReorder)},n1.$$.update=()=>{n1.$$.dirty&2049&&(r1=u1(i1,o1)),n1.$$.dirty&1&&o1.forEach(E1=>{E1.id||(E1.id=shortid.exports.generate())})},[o1,s1,l1,c1,f1,p1,d1,m1,_1,h1,b1,i1,a1,$1,y1,k1,S1,C1,A1]}class ColumnDrawer$1 extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3C,create_fragment$3A,safe_not_equal,{columns:0,options:11,schema:12,allowCellEditing:1,allowReorder:2})}}const ColumnEditor_svelte_svelte_type_style_lang="";function create_default_slot_1$1Y(n1){let e1;return{c(){e1=text(n1[6])},m(t1,r1){insert$1(t1,e1,r1)},p(t1,r1){r1&64&&set_data(e1,t1[6])},d(t1){t1&&detach(e1)}}}function create_default_slot$2s(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$7(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2s]},$$scope:{ctx:n1}}}),e1.$on("click",n1[8]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&4194304&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$6(n1){let e1,t1,r1;function o1(a1){n1[15](a1)}let i1={slot:"body",options:n1[2],schema:n1[3],allowCellEditing:n1[0],allowReorder:n1[1]};return n1[5]!==void 0&&(i1.columns=n1[5]),e1=new ColumnDrawer$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"columns",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&4&&(l1.options=a1[2]),s1&8&&(l1.schema=a1[3]),s1&1&&(l1.allowCellEditing=a1[0]),s1&2&&(l1.allowReorder=a1[1]),!t1&&s1&32&&(t1=!0,l1.columns=a1[5],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3z(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$1Y]},$$scope:{ctx:n1}}}),t1.$on("click",n1[7]);let a1={title:"Columns",$$slots:{body:[create_body_slot$6],buttons:[create_buttons_slot$7]},$$scope:{ctx:n1}};return o1=new Drawer({props:a1}),n1[16](o1),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","column-editor svelte-1b43duw")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,[l1]){const c1={};l1&4194368&&(c1.$$scope={dirty:l1,ctx:s1}),t1.$set(c1);const u1={};l1&4194351&&(u1.$$scope={dirty:l1,ctx:s1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),s1&&detach(r1),n1[16](null),destroy_component(o1,s1)}}}function instance$3B(n1,e1,t1){let r1,o1,i1,a1,s1,l1,c1;component_subscribe(n1,currentAsset,z1=>t1(14,c1=z1));let{componentInstance:u1}=e1,{value:f1=[]}=e1,{allowCellEditing:p1=!0}=e1,{allowReorder:d1=!0}=e1;const m1=createEventDispatcher();let _1,h1;const b1=z1=>{if(!(z1!=null&&z1.length))return"All columns";let I1=`${z1.length} column`;return z1.length!==1&&(I1+="s"),I1},$1=(z1,I1)=>{const N1=getSchemaForDatasource(z1,I1).schema;return N1&&(delete N1._id,delete N1._rev),N1},y1=z1=>{t1(5,h1=fp.cloneDeep(z1))},k1=(z1,I1)=>!Array.isArray(z1)||!z1.length?[]:(typeof z1[0]=="string"&&(z1=z1.map(N1=>({name:N1,displayName:N1}))),z1.filter(N1=>I1.includes(N1.name))),S1=()=>{y1(s1),_1.show()},C1=()=>{m1("change",k1(h1,a1)),_1.hide()};function A1(z1){h1=z1,t1(5,h1)}function E1(z1){binding_callbacks[z1?"unshift":"push"](()=>{_1=z1,t1(4,_1)})}return n1.$$set=z1=>{"componentInstance"in z1&&t1(9,u1=z1.componentInstance),"value"in z1&&t1(10,f1=z1.value),"allowCellEditing"in z1&&t1(0,p1=z1.allowCellEditing),"allowReorder"in z1&&t1(1,d1=z1.allowReorder)},n1.$$.update=()=>{n1.$$.dirty&1024&&t1(6,r1=b1(f1)),n1.$$.dirty&16896&&t1(13,o1=getDatasourceForProvider(c1,u1)),n1.$$.dirty&24576&&t1(3,i1=$1(c1,o1)),n1.$$.dirty&8&&t1(12,l1=getFields(Object.values(i1||{}),{allowLinks:!0})),n1.$$.dirty&4105&&t1(2,a1=p1?Object.keys(i1||{}):l1==null?void 0:l1.map(z1=>z1.name)),n1.$$.dirty&1028&&t1(11,s1=k1(f1,a1)),n1.$$.dirty&2048&&y1(s1)},[p1,d1,a1,i1,_1,h1,r1,S1,C1,u1,f1,s1,l1,o1,c1,A1,E1]}class ColumnEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3B,create_fragment$3z,safe_not_equal,{componentInstance:9,value:10,allowCellEditing:0,allowReorder:1})}}function create_fragment$3y(n1){let e1,t1;const r1=[n1[0],{allowCellEditing:!1}];let o1={};for(let i1=0;i1<r1.length;i1+=1)o1=assign$1(o1,r1[i1]);return e1=new ColumnEditor({props:o1}),e1.$on("change",n1[1]),{c(){create_component(e1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),t1=!0},p(i1,[a1]){const s1=a1&1?get_spread_update(r1,[get_spread_object(i1[0]),r1[1]]):{};e1.$set(s1)},i(i1){t1||(transition_in(e1.$$.fragment,i1),t1=!0)},o(i1){transition_out(e1.$$.fragment,i1),t1=!1},d(i1){destroy_component(e1,i1)}}}function instance$3A(n1,e1,t1){function r1(o1){bubble.call(this,n1,o1)}return n1.$$set=o1=>{t1(0,e1=assign$1(assign$1({},e1),exclude_internal_props(o1)))},e1=exclude_internal_props(e1),[e1,r1]}class BasicColumnEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3A,create_fragment$3y,safe_not_equal,{})}}function create_fragment$3x(n1){let e1,t1;const r1=[n1[0],{allowCellEditing:!1},{allowReorder:!1}];let o1={};for(let i1=0;i1<r1.length;i1+=1)o1=assign$1(o1,r1[i1]);return e1=new ColumnEditor({props:o1}),e1.$on("change",n1[1]),{c(){create_component(e1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),t1=!0},p(i1,[a1]){const s1=a1&1?get_spread_update(r1,[get_spread_object(i1[0]),r1[1],r1[2]]):{};e1.$set(s1)},i(i1){t1||(transition_in(e1.$$.fragment,i1),t1=!0)},o(i1){transition_out(e1.$$.fragment,i1),t1=!1},d(i1){destroy_component(e1,i1)}}}function instance$3z(n1,e1,t1){function r1(o1){bubble.call(this,n1,o1)}return n1.$$set=o1=>{t1(0,e1=assign$1(assign$1({},e1),exclude_internal_props(o1)))},e1=exclude_internal_props(e1),[e1,r1]}class GridColumnEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3z,create_fragment$3x,safe_not_equal,{})}}function get_each_context$K(n1,e1,t1){const r1=n1.slice();return r1[4]=e1[t1],r1}function create_each_block$K(n1){let e1,t1;function r1(){return n1[3](n1[4])}return e1=new ActionButton({props:{icon:n1[4].barIcon,quiet:!0,selected:n1[4].value===n1[0]}}),e1.$on("click",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1&4&&(a1.icon=n1[4].barIcon),i1&5&&(a1.selected=n1[4].value===n1[0]),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_default_slot$2r(n1){let e1,t1,r1=n1[2],o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block$K(get_each_context$K(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();e1=empty$1()},m(a1,s1){for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(a1,s1);insert$1(a1,e1,s1),t1=!0},p(a1,s1){if(s1&7){r1=a1[2];let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context$K(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block$K(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1.parentNode,e1))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){destroy_each(o1,a1),a1&&detach(e1)}}}function create_fragment$3w(n1){let e1,t1;return e1=new ActionGroup({props:{$$slots:{default:[create_default_slot$2r]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&135&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3y(n1,e1,t1){let{value:r1}=e1,{onChange:o1}=e1,{options:i1}=e1;const a1=s1=>o1(s1.value);return n1.$$set=s1=>{"value"in s1&&t1(0,r1=s1.value),"onChange"in s1&&t1(1,o1=s1.onChange),"options"in s1&&t1(2,i1=s1.options)},[r1,o1,i1,a1]}class BarButtonList extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3y,create_fragment$3w,safe_not_equal,{value:0,onChange:1,options:2})}}function create_description_slot$4(n1){let e1,t1=n1[0].name+"",r1,o1;return{c(){e1=text('"'),r1=text(t1),o1=text('" field validation')},m(i1,a1){insert$1(i1,e1,a1),insert$1(i1,r1,a1),insert$1(i1,o1,a1)},p(i1,a1){a1&1&&t1!==(t1=i1[0].name+"")&&set_data(r1,t1)},d(i1){i1&&detach(e1),i1&&detach(r1),i1&&detach(o1)}}}function create_default_slot_1$1X(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$6(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot_1$1X]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[2].hide)&&n1[2].hide.apply(this,arguments)}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){n1=r1;const i1={};o1&32&&(i1.$$scope={dirty:o1,ctx:n1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot$2q(n1){let e1,t1,r1,o1;function i1(s1){n1[3](s1)}let a1={slot:"body",fieldName:n1[0].name,type:n1[1]};return n1[0].validation!==void 0&&(a1.rules=n1[0].validation),t1=new ValidationDrawer({props:a1}),binding_callbacks.push(()=>bind$3(t1,"rules",i1)),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),o1=!0},p(s1,l1){const c1={};l1&1&&(c1.fieldName=s1[0].name),l1&2&&(c1.type=s1[1]),!r1&&l1&1&&(r1=!0,c1.rules=s1[0].validation,add_flush_callback(()=>r1=!1)),t1.$set(c1)},i(s1){o1||(transition_in(t1.$$.fragment,s1),o1=!0)},o(s1){transition_out(t1.$$.fragment,s1),o1=!1},d(s1){s1&&detach(e1),destroy_component(t1)}}}function create_body_slot$5(n1){let e1,t1;return e1=new DrawerContent({props:{slot:"body",$$slots:{default:[create_default_slot$2q]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&35&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3v(n1){let e1,t1,r1,o1;e1=new Icon({props:{name:"Settings",hoverable:!0,size:"S"}}),e1.$on("click",function(){is_function(n1[2].show)&&n1[2].show.apply(this,arguments)});let i1={title:"Field Validation",$$slots:{body:[create_body_slot$5],buttons:[create_buttons_slot$6],description:[create_description_slot$4]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[4](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){n1=a1;const l1={};s1&39&&(l1.$$scope={dirty:s1,ctx:n1}),r1.$set(l1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[4](null),destroy_component(r1,a1)}}}function instance$3x(n1,e1,t1){let{column:r1}=e1,{type:o1}=e1,i1;function a1(l1){n1.$$.not_equal(r1.validation,l1)&&(r1.validation=l1,t1(0,r1))}function s1(l1){binding_callbacks[l1?"unshift":"push"](()=>{i1=l1,t1(2,i1)})}return n1.$$set=l1=>{"column"in l1&&t1(0,r1=l1.column),"type"in l1&&t1(1,o1=l1.type)},[r1,o1,i1,a1,s1]}class CellEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3x,create_fragment$3v,safe_not_equal,{column:0,type:1})}}const ColumnDrawer_svelte_svelte_type_style_lang="";function get_each_context$J(n1,e1,t1){const r1=n1.slice();return r1[20]=e1[t1],r1[21]=e1,r1[22]=t1,r1}function create_else_block$z(n1){let e1,t1,r1,o1;return r1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_8$p]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),t1=element("div"),create_component(r1.$$.fragment),attr(t1,"class","wide svelte-17kmdew"),attr(e1,"class","column svelte-17kmdew")},m(i1,a1){insert$1(i1,e1,a1),append$1(e1,t1),mount_component(r1,t1,null),o1=!0},p(i1,a1){const s1={};a1&8388608&&(s1.$$scope={dirty:a1,ctx:i1}),r1.$set(s1)},i(i1){o1||(transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(r1.$$.fragment,i1),o1=!1},d(i1){i1&&detach(e1),destroy_component(r1)}}}function create_if_block_1$Y(n1){let e1,t1;return e1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_5$Q]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&8388611&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_8$p(n1){let e1;return{c(){e1=text("Add columns to be included in your form below.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_7$A(n1){let e1;return{c(){e1=text("Column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_6$H(n1){let e1;return{c(){e1=text("Label")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_each_block$J(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1=noop$5,k1,S1,C1;o1=new Icon({props:{name:"DragHandle",size:"XL"}});function A1(D1){e1[13](D1,e1[20])}function E1(...D1){return e1[14](e1[20],e1[21],e1[22],...D1)}let z1={placeholder:"Column",options:e1[2](e1[20].name)};e1[20].name!==void 0&&(z1.value=e1[20].name),s1=new Select_1$1({props:z1}),binding_callbacks.push(()=>bind$3(s1,"value",A1)),s1.$on("change",E1);function I1(D1){e1[15](D1,e1[20])}let N1={placeholder:"Label"};e1[20].displayName!==void 0&&(N1.value=e1[20].displayName),u1=new Input$5({props:N1}),binding_callbacks.push(()=>bind$3(u1,"value",I1));function U1(D1){e1[16](D1,e1[20],e1[21],e1[22])}let F1={type:e1[9](e1[20])};e1[20]!==void 0&&(F1.column=e1[20]),d1=new CellEditor({props:F1}),binding_callbacks.push(()=>bind$3(d1,"column",U1));function R1(){return e1[17](e1[20])}return h1=new Icon({props:{name:"Close",hoverable:!0,size:"S",disabled:e1[0].length===1}}),h1.$on("click",R1),{key:n1,first:null,c(){t1=element("div"),r1=element("div"),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),p1=space$1(),create_component(d1.$$.fragment),_1=space$1(),create_component(h1.$$.fragment),b1=space$1(),attr(r1,"class","handle svelte-17kmdew"),attr(r1,"aria-label","drag-handle"),attr(r1,"style",i1=e1[1]?"cursor: grab":"cursor: grabbing"),attr(t1,"class","column svelte-17kmdew"),this.first=t1},m(D1,V1){insert$1(D1,t1,V1),append$1(t1,r1),mount_component(o1,r1,null),append$1(t1,a1),mount_component(s1,t1,null),append$1(t1,c1),mount_component(u1,t1,null),append$1(t1,p1),mount_component(d1,t1,null),append$1(t1,_1),mount_component(h1,t1,null),append$1(t1,b1),k1=!0,S1||(C1=listen(r1,"mousedown",e1[12]),S1=!0)},p(D1,V1){e1=D1,(!k1||V1&2&&i1!==(i1=e1[1]?"cursor: grab":"cursor: grabbing"))&&attr(r1,"style",i1);const j1={};V1&1&&(j1.options=e1[2](e1[20].name)),!l1&&V1&1&&(l1=!0,j1.value=e1[20].name,add_flush_callback(()=>l1=!1)),s1.$set(j1);const K1={};!f1&&V1&1&&(f1=!0,K1.value=e1[20].displayName,add_flush_callback(()=>f1=!1)),u1.$set(K1);const G1={};V1&1&&(G1.type=e1[9](e1[20])),!m1&&V1&1&&(m1=!0,G1.column=e1[20],add_flush_callback(()=>m1=!1)),d1.$set(G1);const q1={};V1&1&&(q1.disabled=e1[0].length===1),h1.$set(q1)},r(){$1=t1.getBoundingClientRect()},f(){fix_position(t1),y1()},a(){y1(),y1=create_animation(t1,$1,flip,{duration:flipDurationMs$2})},i(D1){k1||(transition_in(o1.$$.fragment,D1),transition_in(s1.$$.fragment,D1),transition_in(u1.$$.fragment,D1),transition_in(d1.$$.fragment,D1),transition_in(h1.$$.fragment,D1),k1=!0)},o(D1){transition_out(o1.$$.fragment,D1),transition_out(s1.$$.fragment,D1),transition_out(u1.$$.fragment,D1),transition_out(d1.$$.fragment,D1),transition_out(h1.$$.fragment,D1),k1=!1},d(D1){D1&&detach(t1),destroy_component(o1),destroy_component(s1),destroy_component(u1),destroy_component(d1),destroy_component(h1),S1=!1,C1()}}}function create_default_slot_5$Q(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1=[],m1=new Map,_1,h1,b1,$1;o1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_7$A]},$$scope:{ctx:n1}}}),a1=new Label({props:{size:"L",$$slots:{default:[create_default_slot_6$H]},$$scope:{ctx:n1}}});let y1=n1[0];const k1=S1=>S1[20].id;for(let S1=0;S1<y1.length;S1+=1){let C1=get_each_context$J(n1,y1,S1),A1=k1(C1);m1.set(A1,d1[S1]=create_each_block$J(A1,C1))}return{c(){e1=element("div"),t1=element("div"),r1=space$1(),create_component(o1.$$.fragment),i1=space$1(),create_component(a1.$$.fragment),s1=space$1(),l1=element("div"),c1=space$1(),u1=element("div"),f1=space$1(),p1=element("div");for(let S1=0;S1<d1.length;S1+=1)d1[S1].c();attr(e1,"class","column svelte-17kmdew"),attr(p1,"class","columns svelte-17kmdew")},m(S1,C1){insert$1(S1,e1,C1),append$1(e1,t1),append$1(e1,r1),mount_component(o1,e1,null),append$1(e1,i1),mount_component(a1,e1,null),append$1(e1,s1),append$1(e1,l1),append$1(e1,c1),append$1(e1,u1),insert$1(S1,f1,C1),insert$1(S1,p1,C1);for(let A1=0;A1<d1.length;A1+=1)d1[A1].m(p1,null);h1=!0,b1||($1=[action_destroyer(_1=dndzone.call(null,p1,{items:n1[0],flipDurationMs:flipDurationMs$2,dropTargetStyle:{outline:"none"},dragDisabled:n1[1]})),listen(p1,"finalize",n1[6]),listen(p1,"consider",n1[5])],b1=!0)},p(S1,C1){const A1={};C1&8388608&&(A1.$$scope={dirty:C1,ctx:S1}),o1.$set(A1);const E1={};if(C1&8388608&&(E1.$$scope={dirty:C1,ctx:S1}),a1.$set(E1),C1&535){y1=S1[0],group_outros();for(let z1=0;z1<d1.length;z1+=1)d1[z1].r();d1=update_keyed_each(d1,C1,k1,1,S1,y1,m1,p1,fix_and_outro_and_destroy_block,create_each_block$J,null,get_each_context$J);for(let z1=0;z1<d1.length;z1+=1)d1[z1].a();check_outros()}_1&&is_function(_1.update)&&C1&3&&_1.update.call(null,{items:S1[0],flipDurationMs:flipDurationMs$2,dropTargetStyle:{outline:"none"},dragDisabled:S1[1]})},i(S1){if(!h1){transition_in(o1.$$.fragment,S1),transition_in(a1.$$.fragment,S1);for(let C1=0;C1<y1.length;C1+=1)transition_in(d1[C1]);h1=!0}},o(S1){transition_out(o1.$$.fragment,S1),transition_out(a1.$$.fragment,S1);for(let C1=0;C1<d1.length;C1+=1)transition_out(d1[C1]);h1=!1},d(S1){S1&&detach(e1),destroy_component(o1),destroy_component(a1),S1&&detach(f1),S1&&detach(p1);for(let C1=0;C1<d1.length;C1+=1)d1[C1].d();b1=!1,run_all($1)}}}function create_default_slot_4$Z(n1){let e1;return{c(){e1=text("Add column")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$1d(n1){let e1;return{c(){e1=text("Add all columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block$1F(n1){let e1,t1;return e1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_2$1u]},$$scope:{ctx:n1}}}),e1.$on("click",n1[8]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&8388608&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_2$1u(n1){let e1;return{c(){e1=text("Reset columns")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1W(n1){var _1;let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1;const f1=[create_if_block_1$Y,create_else_block$z],p1=[];function d1(h1,b1){var $1;return($1=h1[0])!=null&&$1.length?0:1}e1=d1(n1),t1=p1[e1]=f1[e1](n1),a1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_4$Z]},$$scope:{ctx:n1}}}),a1.$on("click",n1[3]),l1=new Button({props:{secondary:!0,quiet:!0,$$slots:{default:[create_default_slot_3$1d]},$$scope:{ctx:n1}}}),l1.$on("click",n1[7]);let m1=((_1=n1[0])==null?void 0:_1.length)&&create_if_block$1F(n1);return{c(){t1.c(),r1=space$1(),o1=element("div"),i1=element("div"),create_component(a1.$$.fragment),s1=space$1(),create_component(l1.$$.fragment),c1=space$1(),m1&&m1.c(),attr(i1,"class","buttons wide svelte-17kmdew"),attr(o1,"class","column svelte-17kmdew")},m(h1,b1){p1[e1].m(h1,b1),insert$1(h1,r1,b1),insert$1(h1,o1,b1),append$1(o1,i1),mount_component(a1,i1,null),append$1(i1,s1),mount_component(l1,i1,null),append$1(i1,c1),m1&&m1.m(i1,null),u1=!0},p(h1,b1){var S1;let $1=e1;e1=d1(h1),e1===$1?p1[e1].p(h1,b1):(group_outros(),transition_out(p1[$1],1,1,()=>{p1[$1]=null}),check_outros(),t1=p1[e1],t1?t1.p(h1,b1):(t1=p1[e1]=f1[e1](h1),t1.c()),transition_in(t1,1),t1.m(r1.parentNode,r1));const y1={};b1&8388608&&(y1.$$scope={dirty:b1,ctx:h1}),a1.$set(y1);const k1={};b1&8388608&&(k1.$$scope={dirty:b1,ctx:h1}),l1.$set(k1),(S1=h1[0])!=null&&S1.length?m1?(m1.p(h1,b1),b1&1&&transition_in(m1,1)):(m1=create_if_block$1F(h1),m1.c(),transition_in(m1,1),m1.m(i1,null)):m1&&(group_outros(),transition_out(m1,1,1,()=>{m1=null}),check_outros())},i(h1){u1||(transition_in(t1),transition_in(a1.$$.fragment,h1),transition_in(l1.$$.fragment,h1),transition_in(m1),u1=!0)},o(h1){transition_out(t1),transition_out(a1.$$.fragment,h1),transition_out(l1.$$.fragment,h1),transition_out(m1),u1=!1},d(h1){p1[e1].d(h1),h1&&detach(r1),h1&&detach(o1),destroy_component(a1),destroy_component(l1),m1&&m1.d()}}}function create_default_slot$2p(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$1W]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-17kmdew")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&8388611&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3u(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2p]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&8388611&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$2=150;function instance$3w(n1,e1,t1){let r1,{columns:o1=[]}=e1,{options:i1=[]}=e1,{schema:a1={}}=e1,s1=!0;const l1=(A1,E1)=>{let z1={};return A1.forEach(I1=>{z1[I1]=!0}),E1==null||E1.forEach(I1=>{delete z1[I1.name]}),Object.keys(z1)},c1=A1=>!A1||r1.includes(A1)?r1:[A1,...r1],u1=()=>{t1(0,o1=[...o1,{}])},f1=A1=>{t1(0,o1=o1.filter(E1=>E1.id!==A1))},p1=A1=>{t1(0,o1=A1.detail.items)},d1=A1=>{p1(A1),t1(1,s1=!0)},m1=()=>{let A1=o1||[];i1.forEach(E1=>{const z1=a1[E1],I1=o1&&o1.findIndex(N1=>N1.name===E1)!==-1;!(z1!=null&&z1.autocolumn)&&!I1&&A1.push({name:E1,displayName:E1})}),t1(0,o1=A1)},_1=()=>{t1(0,o1=[])},h1=A1=>{var E1;return`validation/${(E1=a1[A1.name])==null?void 0:E1.type}`},b1=()=>t1(1,s1=!1);function $1(A1,E1){n1.$$.not_equal(E1.name,A1)&&(E1.name=A1,t1(0,o1))}const y1=(A1,E1,z1,I1)=>t1(0,E1[z1].displayName=I1.detail,o1);function k1(A1,E1){n1.$$.not_equal(E1.displayName,A1)&&(E1.displayName=A1,t1(0,o1))}function S1(A1,E1,z1,I1){z1[I1]=A1,t1(0,o1)}const C1=A1=>f1(A1.id);return n1.$$set=A1=>{"columns"in A1&&t1(0,o1=A1.columns),"options"in A1&&t1(10,i1=A1.options),"schema"in A1&&t1(11,a1=A1.schema)},n1.$$.update=()=>{n1.$$.dirty&1025&&(r1=l1(i1,o1)),n1.$$.dirty&1&&o1.forEach(A1=>{A1.id||(A1.id=shortid.exports.generate())})},[o1,s1,c1,u1,f1,p1,d1,m1,_1,h1,i1,a1,b1,$1,y1,k1,S1,C1]}class ColumnDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3w,create_fragment$3u,safe_not_equal,{columns:0,options:10,schema:11})}}const FieldConfiguration_svelte_svelte_type_style_lang="";function create_default_slot_1$1V(n1){let e1;return{c(){e1=text(n1[4])},m(t1,r1){insert$1(t1,e1,r1)},p(t1,r1){r1&16&&set_data(e1,t1[4])},d(t1){t1&&detach(e1)}}}function create_description_slot$3(n1){let e1;return{c(){e1=text("Configure the fields in your form.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2o(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$5(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2o]},$$scope:{ctx:n1}}}),e1.$on("click",n1[6]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1048576&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$4(n1){let e1,t1,r1;function o1(a1){n1[12](a1)}let i1={slot:"body",options:n1[0],schema:n1[1]};return n1[3]!==void 0&&(i1.columns=n1[3]),e1=new ColumnDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"columns",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&1&&(l1.options=a1[0]),s1&2&&(l1.schema=a1[1]),!t1&&s1&8&&(t1=!0,l1.columns=a1[3],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3t(n1){let e1,t1,r1,o1,i1;t1=new ActionButton({props:{$$slots:{default:[create_default_slot_1$1V]},$$scope:{ctx:n1}}}),t1.$on("click",n1[5]);let a1={title:"Form Fields",$$slots:{body:[create_body_slot$4],buttons:[create_buttons_slot$5],description:[create_description_slot$3]},$$scope:{ctx:n1}};return o1=new Drawer({props:a1}),n1[13](o1),{c(){e1=element("div"),create_component(t1.$$.fragment),r1=space$1(),create_component(o1.$$.fragment),attr(e1,"class","field-configuration svelte-1cy26w5")},m(s1,l1){insert$1(s1,e1,l1),mount_component(t1,e1,null),insert$1(s1,r1,l1),mount_component(o1,s1,l1),i1=!0},p(s1,[l1]){const c1={};l1&1048592&&(c1.$$scope={dirty:l1,ctx:s1}),t1.$set(c1);const u1={};l1&1048587&&(u1.$$scope={dirty:l1,ctx:s1}),o1.$set(u1)},i(s1){i1||(transition_in(t1.$$.fragment,s1),transition_in(o1.$$.fragment,s1),i1=!0)},o(s1){transition_out(t1.$$.fragment,s1),transition_out(o1.$$.fragment,s1),i1=!1},d(s1){s1&&detach(e1),destroy_component(t1),s1&&detach(r1),n1[13](null),destroy_component(o1,s1)}}}function instance$3v(n1,e1,t1){let r1,o1,i1,a1,s1,l1;component_subscribe(n1,currentAsset,A1=>t1(11,l1=A1));let{componentInstance:c1}=e1,{value:u1=[]}=e1;const f1=createEventDispatcher();let p1,d1;const m1=A1=>{if(!(A1!=null&&A1.length))return"All fields";let E1=`${A1.length} field`;return A1.length!==1&&(E1+="s"),E1},_1=A1=>{typeof(A1==null?void 0:A1[0])=="string"&&t1(7,u1=A1.map(E1=>({name:E1,displayName:E1})))},h1=(A1,E1)=>{const z1=getSchemaForDatasource(A1,E1).schema;return z1&&(delete z1._id,delete z1._rev),z1},b1=A1=>{t1(3,d1=fp.cloneDeep(A1))},$1=(A1,E1)=>!Array.isArray(A1)||!A1.length?[]:(typeof A1[0]=="string"&&(A1=A1.map(z1=>({name:z1,displayName:z1}))),A1.filter(z1=>E1.includes(z1.name))),y1=()=>{b1(s1),p1.show()},k1=()=>{f1("change",$1(d1,a1)),p1.hide()};function S1(A1){d1=A1,t1(3,d1)}function C1(A1){binding_callbacks[A1?"unshift":"push"](()=>{p1=A1,t1(2,p1)})}return n1.$$set=A1=>{"componentInstance"in A1&&t1(8,c1=A1.componentInstance),"value"in A1&&t1(7,u1=A1.value)},n1.$$.update=()=>{n1.$$.dirty&128&&t1(4,r1=m1(u1)),n1.$$.dirty&128&&_1(u1),n1.$$.dirty&2304&&t1(10,o1=getDatasourceForProvider(l1,c1)),n1.$$.dirty&3072&&t1(1,i1=h1(l1,o1)),n1.$$.dirty&2&&t1(0,a1=Object.keys(i1||{})),n1.$$.dirty&129&&t1(9,s1=$1(u1,a1)),n1.$$.dirty&512&&b1(s1)},[a1,i1,p1,d1,r1,y1,k1,u1,c1,s1,o1,l1,S1,C1]}class FieldConfiguration extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3v,create_fragment$3t,safe_not_equal,{componentInstance:8,value:7})}}const componentMap={text:DrawerBindableInput,select:Select_1$1,radio:RadioGroup_1,dataSource:DataSourceSelect,"dataSource/s3":S3DataSourceSelect,dataProvider:DataProviderSelect,boolean:Checkbox_1,number:Stepper_1,event:ButtonActionEditor,table:TableSelect,color:ColorPicker_1,icon:IconSelect,field:FieldSelect,multifield:MultiFieldSelect,searchfield:SearchFieldSelect,options:OptionsEditor,schema:SchemaSelect,section:SectionSelect,filter:FilterEditor,url:URLSelect,fieldConfiguration:FieldConfiguration,columns:ColumnEditor,"columns/basic":BasicColumnEditor,"columns/grid":GridColumnEditor,"field/sortable":SortableFieldSelect,"field/string":FormFieldSelect,"field/number":FormFieldSelect,"field/bigint":FormFieldSelect,"field/options":FormFieldSelect,"field/boolean":FormFieldSelect,"field/longform":FormFieldSelect,"field/datetime":FormFieldSelect,"field/attachment":FormFieldSelect,"field/link":FormFieldSelect,"field/array":FormFieldSelect,"field/json":FormFieldSelect,"field/barcodeqr":FormFieldSelect,"validation/string":ValidationEditor,"validation/array":ValidationEditor,"validation/number":ValidationEditor,"validation/boolean":ValidationEditor,"validation/datetime":ValidationEditor,"validation/attachment":ValidationEditor,"validation/link":ValidationEditor},getComponentForSetting=n1=>{const{type:e1,showInBar:t1,barStyle:r1}=n1||{};return e1?t1&&e1==="select"&&r1==="buttons"?BarButtonList:componentMap[e1]:null},ComponentSettingsSection_svelte_svelte_type_style_lang="";function get_each_context$I(n1,e1,t1){const r1=n1.slice();return r1[13]=e1[t1],r1[15]=t1,r1}function get_each_context_1$a(n1,e1,t1){const r1=n1.slice();return r1[16]=e1[t1],r1}function create_if_block_1$X(n1){let e1,t1;return e1=new DetailSummary({props:{name:n1[13].name,collapsible:!1,$$slots:{default:[create_default_slot_1$1U]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&32&&(i1.name=r1[13].name),o1&524415&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_4$g(n1){let e1,t1;return e1=new PropertyControl({props:{control:Input$5,label:"Name",key:"_instanceName",value:n1[1]._instanceName,onChange:n1[8]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2&&(i1.value=r1[1]._instanceName),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_3$n(n1){var o1,i1;let e1,t1;function r1(...a1){return n1[9](n1[16],...a1)}return e1=new PropertyControl({props:{type:n1[16].type,control:getComponentForSetting(n1[16]),label:n1[16].label,labelHidden:n1[16].labelHidden,key:n1[16].key,value:n1[1][n1[16].key],defaultValue:n1[16].defaultValue,nested:n1[16].nested,onChange:r1,highlighted:n1[6].highlightedSettingKey===n1[16].key,propertyFocus:n1[6].propertyFocus===n1[16].key,info:n1[16].info,props:{placeholder:n1[16].placeholder||null,options:n1[16].options||[],min:(o1=n1[16].min)!=null?o1:null,max:(i1=n1[16].max)!=null?i1:null},bindings:n1[2],componentBindings:n1[3],componentInstance:n1[1],componentDefinition:n1[0]}}),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),t1=!0},p(a1,s1){var c1,u1;n1=a1;const l1={};s1&32&&(l1.type=n1[16].type),s1&32&&(l1.control=getComponentForSetting(n1[16])),s1&32&&(l1.label=n1[16].label),s1&32&&(l1.labelHidden=n1[16].labelHidden),s1&32&&(l1.key=n1[16].key),s1&34&&(l1.value=n1[1][n1[16].key]),s1&32&&(l1.defaultValue=n1[16].defaultValue),s1&32&&(l1.nested=n1[16].nested),s1&32&&(l1.onChange=r1),s1&96&&(l1.highlighted=n1[6].highlightedSettingKey===n1[16].key),s1&96&&(l1.propertyFocus=n1[6].propertyFocus===n1[16].key),s1&32&&(l1.info=n1[16].info),s1&32&&(l1.props={placeholder:n1[16].placeholder||null,options:n1[16].options||[],min:(c1=n1[16].min)!=null?c1:null,max:(u1=n1[16].max)!=null?u1:null}),s1&4&&(l1.bindings=n1[2]),s1&8&&(l1.componentBindings=n1[3]),s1&2&&(l1.componentInstance=n1[1]),s1&1&&(l1.componentDefinition=n1[0]),e1.$set(l1)},i(a1){t1||(transition_in(e1.$$.fragment,a1),t1=!0)},o(a1){transition_out(e1.$$.fragment,a1),t1=!1},d(a1){destroy_component(e1,a1)}}}function create_each_block_1$a(n1,e1){let t1,r1,o1,i1=e1[16].visible&&create_if_block_3$n(e1);return{key:n1,first:null,c(){t1=empty$1(),i1&&i1.c(),r1=empty$1(),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),i1&&i1.m(a1,s1),insert$1(a1,r1,s1),o1=!0},p(a1,s1){e1=a1,e1[16].visible?i1?(i1.p(e1,s1),s1&32&&transition_in(i1,1)):(i1=create_if_block_3$n(e1),i1.c(),transition_in(i1,1),i1.m(r1.parentNode,r1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros())},i(a1){o1||(transition_in(i1),o1=!0)},o(a1){transition_out(i1),o1=!1},d(a1){a1&&detach(t1),i1&&i1.d(a1),a1&&detach(r1)}}}function create_if_block_2$B(n1){let e1,t1;return e1=new ResetFieldsButton({props:{componentInstance:n1[1]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2&&(i1.componentInstance=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_1$1U(n1){var d1,m1;let e1,t1=n1[15]===0&&!n1[1]._component.endsWith("/layout")&&!n1[4],r1,o1=[],i1=new Map,a1,s1=n1[15]===0&&((m1=(d1=n1[0])==null?void 0:d1.component)==null?void 0:m1.endsWith("/fieldgroup")),l1,c1=t1&&create_if_block_4$g(n1),u1=n1[13].settings;const f1=_1=>_1[16].key;for(let _1=0;_1<u1.length;_1+=1){let h1=get_each_context_1$a(n1,u1,_1),b1=f1(h1);i1.set(b1,o1[_1]=create_each_block_1$a(b1,h1))}let p1=s1&&create_if_block_2$B(n1);return{c(){e1=element("div"),c1&&c1.c(),r1=space$1();for(let _1=0;_1<o1.length;_1+=1)o1[_1].c();a1=space$1(),p1&&p1.c(),attr(e1,"class","settings svelte-1dtzlsg")},m(_1,h1){insert$1(_1,e1,h1),c1&&c1.m(e1,null),append$1(e1,r1);for(let b1=0;b1<o1.length;b1+=1)o1[b1].m(e1,null);append$1(e1,a1),p1&&p1.m(e1,null),l1=!0},p(_1,h1){var b1,$1;h1&50&&(t1=_1[15]===0&&!_1[1]._component.endsWith("/layout")&&!_1[4]),t1?c1?(c1.p(_1,h1),h1&50&&transition_in(c1,1)):(c1=create_if_block_4$g(_1),c1.c(),transition_in(c1,1),c1.m(e1,r1)):c1&&(group_outros(),transition_out(c1,1,1,()=>{c1=null}),check_outros()),h1&239&&(u1=_1[13].settings,group_outros(),o1=update_keyed_each(o1,h1,f1,1,_1,u1,i1,e1,outro_and_destroy_block,create_each_block_1$a,a1,get_each_context_1$a),check_outros()),h1&33&&(s1=_1[15]===0&&(($1=(b1=_1[0])==null?void 0:b1.component)==null?void 0:$1.endsWith("/fieldgroup"))),s1?p1?(p1.p(_1,h1),h1&33&&transition_in(p1,1)):(p1=create_if_block_2$B(_1),p1.c(),transition_in(p1,1),p1.m(e1,null)):p1&&(group_outros(),transition_out(p1,1,1,()=>{p1=null}),check_outros())},i(_1){if(!l1){transition_in(c1);for(let h1=0;h1<u1.length;h1+=1)transition_in(o1[h1]);transition_in(p1),l1=!0}},o(_1){transition_out(c1);for(let h1=0;h1<o1.length;h1+=1)transition_out(o1[h1]);transition_out(p1),l1=!1},d(_1){_1&&detach(e1),c1&&c1.d();for(let h1=0;h1<o1.length;h1+=1)o1[h1].d();p1&&p1.d()}}}function create_each_block$I(n1,e1){let t1,r1,o1,i1=e1[13].visible&&create_if_block_1$X(e1);return{key:n1,first:null,c(){t1=empty$1(),i1&&i1.c(),r1=empty$1(),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),i1&&i1.m(a1,s1),insert$1(a1,r1,s1),o1=!0},p(a1,s1){e1=a1,e1[13].visible?i1?(i1.p(e1,s1),s1&32&&transition_in(i1,1)):(i1=create_if_block_1$X(e1),i1.c(),transition_in(i1,1),i1.m(r1.parentNode,r1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros())},i(a1){o1||(transition_in(i1),o1=!0)},o(a1){transition_out(i1),o1=!1},d(a1){a1&&detach(t1),i1&&i1.d(a1),a1&&detach(r1)}}}function create_if_block$1E(n1){let e1,t1;return e1=new DetailSummary({props:{name:"Eject",collapsible:!1,$$slots:{default:[create_default_slot$2n]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot$2n(n1){let e1,t1;return e1=new EjectBlockButton({}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3s(n1){var c1;let e1=[],t1=new Map,r1,o1,i1,a1=n1[5];const s1=u1=>u1[13].name;for(let u1=0;u1<a1.length;u1+=1){let f1=get_each_context$I(n1,a1,u1),p1=s1(f1);t1.set(p1,e1[u1]=create_each_block$I(p1,f1))}let l1=((c1=n1[0])==null?void 0:c1.block)&&create_if_block$1E(n1);return{c(){for(let u1=0;u1<e1.length;u1+=1)e1[u1].c();r1=space$1(),l1&&l1.c(),o1=empty$1()},m(u1,f1){for(let p1=0;p1<e1.length;p1+=1)e1[p1].m(u1,f1);insert$1(u1,r1,f1),l1&&l1.m(u1,f1),insert$1(u1,o1,f1),i1=!0},p(u1,[f1]){var p1;f1&255&&(a1=u1[5],group_outros(),e1=update_keyed_each(e1,f1,s1,1,u1,a1,t1,r1.parentNode,outro_and_destroy_block,create_each_block$I,r1,get_each_context$I),check_outros()),(p1=u1[0])!=null&&p1.block?l1?f1&1&&transition_in(l1,1):(l1=create_if_block$1E(u1),l1.c(),transition_in(l1,1),l1.m(o1.parentNode,o1)):l1&&(group_outros(),transition_out(l1,1,1,()=>{l1=null}),check_outros())},i(u1){if(!i1){for(let f1=0;f1<a1.length;f1+=1)transition_in(e1[f1]);transition_in(l1),i1=!0}},o(u1){for(let f1=0;f1<e1.length;f1+=1)transition_out(e1[f1]);transition_out(l1),i1=!1},d(u1){for(let f1=0;f1<e1.length;f1+=1)e1[f1].d(u1);u1&&detach(r1),l1&&l1.d(u1),u1&&detach(o1)}}}function instance$3u(n1,e1,t1){let r1,o1;component_subscribe(n1,store,h1=>t1(6,o1=h1));let{componentDefinition:i1}=e1,{componentInstance:a1}=e1,{bindings:s1}=e1,{componentBindings:l1}=e1,{isScreen:c1=!1}=e1;const u1=(h1,b1,$1)=>{var A1;const y1=(A1=b1==null?void 0:b1.settings)!=null?A1:[],k1=y1.filter(E1=>!E1.section),S1=y1.filter(E1=>E1.section);let C1=[{name:"General",settings:k1},...S1||[]];return C1.forEach(E1=>{E1.visible=p1(h1,E1),E1.visible&&(E1.settings.forEach(z1=>{z1.visible=d1(h1,z1,$1)}),E1.visible=E1.name==="General"||E1.settings.some(z1=>z1.visible))}),C1},f1=async(h1,b1)=>{try{await store.actions.components.updateSetting(h1.key,b1),h1.sendEvents&&analytics.captureEvent(Events.COMPONENT_UPDATED,{name:a1._component,setting:h1.key,value:b1})}catch{notifications.error("Error updating component prop")}},p1=(h1,b1)=>{if(b1.dependsOn){let $1=b1.dependsOn,y1=null,k1=!!b1.dependsOn.invert;if(typeof b1.dependsOn=="object"&&($1=b1.dependsOn.setting,y1=b1.dependsOn.value),!$1)return!1;if(y1==null){const S1=h1[$1];return S1===!1?!1:S1===!0?!0:!fp.isEmpty(S1)}return k1?h1[$1]!==y1:h1[$1]===y1}return!0},d1=(h1,b1,$1)=>(b1==null?void 0:b1.type)==="event"&&$1||!getComponentForSetting(b1)?!1:p1(h1,b1),m1=h1=>f1({key:"_instanceName"},h1),_1=(h1,b1)=>f1(h1,b1);return n1.$$set=h1=>{"componentDefinition"in h1&&t1(0,i1=h1.componentDefinition),"componentInstance"in h1&&t1(1,a1=h1.componentInstance),"bindings"in h1&&t1(2,s1=h1.bindings),"componentBindings"in h1&&t1(3,l1=h1.componentBindings),"isScreen"in h1&&t1(4,c1=h1.isScreen)},n1.$$.update=()=>{n1.$$.dirty&19&&t1(5,r1=u1(a1,i1,c1))},[i1,a1,s1,l1,c1,r1,o1,f1,m1,_1]}class ComponentSettingsSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3u,create_fragment$3s,safe_not_equal,{componentDefinition:0,componentInstance:1,bindings:2,componentBindings:3,isScreen:4})}}const StyleSection_svelte_svelte_type_style_lang="";function get_each_context$H(n1,e1,t1){const r1=n1.slice();return r1[10]=e1[t1],r1}function create_each_block$H(n1,e1){let t1,r1,o1;function i1(...a1){return e1[9](e1[10],...a1)}return r1=new PropertyControl({props:{label:`${e1[10].label}${e1[6](e1[4],e1[10])?" *":""}`,control:e1[10].control,key:e1[10].key,value:e1[4][e1[10].key],onChange:i1,props:e1[7](e1[10]),bindings:e1[3]}}),{key:n1,first:null,c(){t1=empty$1(),create_component(r1.$$.fragment),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,s1){e1=a1;const l1={};s1&18&&(l1.label=`${e1[10].label}${e1[6](e1[4],e1[10])?" *":""}`),s1&2&&(l1.control=e1[10].control),s1&2&&(l1.key=e1[10].key),s1&18&&(l1.value=e1[4][e1[10].key]),s1&2&&(l1.onChange=i1),s1&2&&(l1.props=e1[7](e1[10])),s1&8&&(l1.bindings=e1[3]),r1.$set(l1)},i(a1){o1||(transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(r1.$$.fragment,a1),o1=!1},d(a1){a1&&detach(t1),destroy_component(r1,a1)}}}function create_default_slot$2m(n1){let e1,t1=[],r1=new Map,o1,i1=n1[1];const a1=s1=>`${s1[2]._id}-${s1[10].key}-${s1[10].label}`;for(let s1=0;s1<i1.length;s1+=1){let l1=get_each_context$H(n1,i1,s1),c1=a1(l1);r1.set(c1,t1[s1]=create_each_block$H(c1,l1))}return{c(){e1=element("div");for(let s1=0;s1<t1.length;s1+=1)t1[s1].c();attr(e1,"class","styles svelte-1l36n8j")},m(s1,l1){insert$1(s1,e1,l1);for(let c1=0;c1<t1.length;c1+=1)t1[c1].m(e1,null);o1=!0},p(s1,l1){l1&478&&(i1=s1[1],group_outros(),t1=update_keyed_each(t1,l1,a1,1,s1,i1,r1,e1,outro_and_destroy_block,create_each_block$H,null,get_each_context$H),check_outros())},i(s1){if(!o1){for(let l1=0;l1<i1.length;l1+=1)transition_in(t1[l1]);o1=!0}},o(s1){for(let l1=0;l1<t1.length;l1+=1)transition_out(t1[l1]);o1=!1},d(s1){s1&&detach(e1);for(let l1=0;l1<t1.length;l1+=1)t1[l1].d()}}}function create_fragment$3r(n1){let e1,t1;return e1=new DetailSummary({props:{collapsible:!1,name:`${n1[0]}${n1[5]?" *":""}`,$$slots:{default:[create_default_slot$2m]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&33&&(i1.name=`${r1[0]}${r1[5]?" *":""}`),o1&8218&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3t(n1,e1,t1){let r1,o1,{name:i1}=e1,{properties:a1}=e1,{componentInstance:s1}=e1,{bindings:l1=[]}=e1;const c1=(d1,m1)=>d1[m1.key]!=null&&d1[m1.key]!=="",u1=d1=>{let m1={...d1||{}};return delete m1.label,delete m1.key,delete m1.control,m1},f1=async(d1,m1)=>{try{await store.actions.components.updateStyle(d1,m1)}catch{notifications.error("Error updating style")}},p1=(d1,m1)=>f1(d1.key,m1);return n1.$$set=d1=>{"name"in d1&&t1(0,i1=d1.name),"properties"in d1&&t1(1,a1=d1.properties),"componentInstance"in d1&&t1(2,s1=d1.componentInstance),"bindings"in d1&&t1(3,l1=d1.bindings)},n1.$$.update=()=>{var d1;n1.$$.dirty&4&&t1(4,r1=s1._styles.normal||{}),n1.$$.dirty&18&&t1(5,o1=(d1=a1==null?void 0:a1.some(m1=>c1(r1,m1)))!=null?d1:!1)},[i1,a1,s1,l1,r1,o1,c1,u1,f1,p1]}class StyleSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3t,create_fragment$3r,safe_not_equal,{name:0,properties:1,componentInstance:2,bindings:3})}}const margin={label:"Margin",settings:[{label:"Top",key:"margin-top",control:Select_1$1,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:Select_1$1,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:Select_1$1,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:Select_1$1,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%"}]}]},padding={label:"Padding",settings:[{label:"Top",key:"padding-top",control:Select_1$1,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:Select_1$1,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:Select_1$1,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:Select_1$1,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%"}]}]},size={label:"Size",settings:[{label:"Width",key:"width",control:Input$5,placeholder:"Auto"},{label:"Height",key:"height",control:Input$5,placeholder:"Auto"}]},background={label:"Background",settings:[{label:"Color",key:"background",control:ColorPicker_1},{label:"Gradient",key:"background-image",control:Select_1$1,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%);"}]}]},border={label:"Border",settings:[{label:"Color",key:"border-color",control:ColorPicker_1},{label:"Width",key:"border-width",control:Select_1$1,column:"1 / 2",placeholder:"None",options:[{label:"Small",value:"1px"},{label:"Medium",value:"2px"},{label:"Large",value:"4px"}]},{label:"Style",key:"border-style",control:Select_1$1,column:"2 / 3",placeholder:"None",options:[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}]},{label:"Radius",key:"border-radius",control:Select_1$1,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:Select_1$1,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)"}]}]},all=[margin],ComponentStyles=Object.freeze(Object.defineProperty({__proto__:null,margin,padding,size,background,border,all},Symbol.toStringTag,{value:"Module"}));function get_each_context$G(n1,e1,t1){const r1=n1.slice();return r1[5]=e1[t1],r1}function create_if_block$1D(n1){let e1,t1,r1=n1[2],o1=[];for(let a1=0;a1<r1.length;a1+=1)o1[a1]=create_each_block$G(get_each_context$G(n1,r1,a1));const i1=a1=>transition_out(o1[a1],1,1,()=>{o1[a1]=null});return{c(){for(let a1=0;a1<o1.length;a1+=1)o1[a1].c();e1=empty$1()},m(a1,s1){for(let l1=0;l1<o1.length;l1+=1)o1[l1].m(a1,s1);insert$1(a1,e1,s1),t1=!0},p(a1,s1){if(s1&7){r1=a1[2];let l1;for(l1=0;l1<r1.length;l1+=1){const c1=get_each_context$G(a1,r1,l1);o1[l1]?(o1[l1].p(c1,s1),transition_in(o1[l1],1)):(o1[l1]=create_each_block$G(c1),o1[l1].c(),transition_in(o1[l1],1),o1[l1].m(e1.parentNode,e1))}for(group_outros(),l1=r1.length;l1<o1.length;l1+=1)i1(l1);check_outros()}},i(a1){if(!t1){for(let s1=0;s1<r1.length;s1+=1)transition_in(o1[s1]);t1=!0}},o(a1){o1=o1.filter(Boolean);for(let s1=0;s1<o1.length;s1+=1)transition_out(o1[s1]);t1=!1},d(a1){destroy_each(o1,a1),a1&&detach(e1)}}}function create_each_block$G(n1){let e1,t1;return e1=new StyleSection({props:{style:n1[5],name:n1[5].label,properties:n1[5].settings,componentInstance:n1[0],bindings:n1[1]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&4&&(i1.style=r1[5]),o1&4&&(i1.name=r1[5].label),o1&4&&(i1.properties=r1[5].settings),o1&1&&(i1.componentInstance=r1[0]),o1&2&&(i1.bindings=r1[1]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3q(n1){var o1;let e1,t1,r1=((o1=n1[2])==null?void 0:o1.length)>0&&create_if_block$1D(n1);return{c(){r1&&r1.c(),e1=empty$1()},m(i1,a1){r1&&r1.m(i1,a1),insert$1(i1,e1,a1),t1=!0},p(i1,[a1]){var s1;((s1=i1[2])==null?void 0:s1.length)>0?r1?(r1.p(i1,a1),a1&4&&transition_in(r1,1)):(r1=create_if_block$1D(i1),r1.c(),transition_in(r1,1),r1.m(e1.parentNode,e1)):r1&&(group_outros(),transition_out(r1,1,1,()=>{r1=null}),check_outros())},i(i1){t1||(transition_in(r1),t1=!0)},o(i1){transition_out(r1),t1=!1},d(i1){r1&&r1.d(i1),i1&&detach(e1)}}}function instance$3s(n1,e1,t1){let r1,{componentDefinition:o1}=e1,{componentInstance:i1}=e1,{bindings:a1}=e1;const s1=l1=>{var u1;if(!((u1=l1==null?void 0:l1.styles)!=null&&u1.length))return[...all];let c1=[...all];return l1.styles.forEach(f1=>{ComponentStyles[f1]&&c1.push(ComponentStyles[f1])}),c1};return n1.$$set=l1=>{"componentDefinition"in l1&&t1(3,o1=l1.componentDefinition),"componentInstance"in l1&&t1(0,i1=l1.componentInstance),"bindings"in l1&&t1(1,a1=l1.bindings)},n1.$$.update=()=>{n1.$$.dirty&8&&t1(2,r1=s1(o1))},[i1,a1,r1,o1]}class DesignSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3s,create_fragment$3q,safe_not_equal,{componentDefinition:3,componentInstance:0,bindings:1})}}function create_default_slot_2$1t(n1){let e1;return{c(){e1=text("Edit custom CSS")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1T(n1){let e1,t1,r1;return t1=new ActionButton({props:{$$slots:{default:[create_default_slot_2$1t]},$$scope:{ctx:n1}}}),t1.$on("click",n1[4]),{c(){e1=element("div"),create_component(t1.$$.fragment)},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&1024&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_description_slot$2(n1){let e1;return{c(){e1=text("Custom CSS overrides all other component styles.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2l(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$4(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2l]},$$scope:{ctx:n1}}}),e1.$on("click",n1[5]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1024&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$3(n1){let e1,t1,r1;var o1=ClientBindingPanel;function i1(a1){return{props:{slot:"body",value:a1[1],allowJS:!0,bindings:a1[3]}}}return o1&&(e1=construct_svelte_component(o1,i1(n1)),e1.$on("change",n1[8])),{c(){e1&&create_component(e1.$$.fragment),t1=empty$1()},m(a1,s1){e1&&mount_component(e1,a1,s1),insert$1(a1,t1,s1),r1=!0},p(a1,s1){const l1={};if(s1&2&&(l1.value=a1[1]),s1&8&&(l1.bindings=a1[3]),o1!==(o1=ClientBindingPanel)){if(e1){group_outros();const c1=e1;transition_out(c1.$$.fragment,1,0,()=>{destroy_component(c1,1)}),check_outros()}o1?(e1=construct_svelte_component(o1,i1(a1)),e1.$on("change",a1[8]),create_component(e1.$$.fragment),transition_in(e1.$$.fragment,1),mount_component(e1,t1.parentNode,t1)):e1=null}else o1&&e1.$set(l1)},i(a1){r1||(e1&&transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){e1&&transition_out(e1.$$.fragment,a1),r1=!1},d(a1){a1&&detach(t1),e1&&destroy_component(e1,a1)}}}function create_key_block$6(n1){let e1,t1,r1={title:"Custom CSS",$$slots:{body:[create_body_slot$3],buttons:[create_buttons_slot$4],description:[create_description_slot$2]},$$scope:{ctx:n1}};return e1=new Drawer({props:r1}),n1[9](e1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){const a1={};i1&1034&&(a1.$$scope={dirty:i1,ctx:o1}),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){n1[9](null),destroy_component(e1,o1)}}}function create_fragment$3p(n1){var s1,l1,c1;let e1,t1,r1=(s1=n1[0])==null?void 0:s1._id,o1,i1;e1=new DetailSummary({props:{name:`Custom CSS${(c1=(l1=n1[0])==null?void 0:l1._styles)!=null&&c1.custom?" *":""}`,collapsible:!1,$$slots:{default:[create_default_slot_1$1T]},$$scope:{ctx:n1}}});let a1=create_key_block$6(n1);return{c(){create_component(e1.$$.fragment),t1=space$1(),a1.c(),o1=empty$1()},m(u1,f1){mount_component(e1,u1,f1),insert$1(u1,t1,f1),a1.m(u1,f1),insert$1(u1,o1,f1),i1=!0},p(u1,[f1]){var d1,m1,_1;const p1={};f1&1&&(p1.name=`Custom CSS${(m1=(d1=u1[0])==null?void 0:d1._styles)!=null&&m1.custom?" *":""}`),f1&1024&&(p1.$$scope={dirty:f1,ctx:u1}),e1.$set(p1),f1&1&&safe_not_equal(r1,r1=(_1=u1[0])==null?void 0:_1._id)?(group_outros(),transition_out(a1,1,1,noop$5),check_outros(),a1=create_key_block$6(u1),a1.c(),transition_in(a1,1),a1.m(o1.parentNode,o1)):a1.p(u1,f1)},i(u1){i1||(transition_in(e1.$$.fragment,u1),transition_in(a1),i1=!0)},o(u1){transition_out(e1.$$.fragment,u1),transition_out(a1),i1=!1},d(u1){destroy_component(e1,u1),u1&&detach(t1),u1&&detach(o1),a1.d(u1)}}}function instance$3r(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,store,d1=>t1(6,o1=d1)),component_subscribe(n1,selectedScreen,d1=>t1(7,i1=d1));let{componentInstance:a1}=e1,s1,l1;const c1=()=>{var d1;t1(1,s1=runtimeToReadableBinding(r1,(d1=a1==null?void 0:a1._styles)==null?void 0:d1.custom)),l1.show()},u1=async()=>{try{const d1=readableToRuntimeBinding(r1,s1);await store.actions.components.updateCustomStyle(d1)}catch{notifications.error("Error updating custom style")}l1.hide()},f1=d1=>t1(1,s1=d1.detail);function p1(d1){binding_callbacks[d1?"unshift":"push"](()=>{l1=d1,t1(2,l1)})}return n1.$$set=d1=>{"componentInstance"in d1&&t1(0,a1=d1.componentInstance)},n1.$$.update=()=>{n1.$$.dirty&192&&t1(3,r1=getBindableProperties(i1,o1.selectedComponentId))},[a1,s1,l1,r1,c1,u1,o1,i1,f1,p1]}class CustomStylesSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3r,create_fragment$3p,safe_not_equal,{componentInstance:0})}}const ConditionalUIDrawer_svelte_svelte_type_style_lang="";function get_each_context$F(n1,e1,t1){const r1=n1.slice();r1[32]=e1[t1],r1[34]=e1,r1[35]=t1;const o1=r1[7](r1[32].setting);return r1[33]=o1,r1}function create_else_block_1$7(n1){let e1,t1;return e1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_3$1c]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block$1C(n1){let e1,t1=[],r1=new Map,o1,i1,a1,s1,l1=n1[0];const c1=u1=>u1[32].id;for(let u1=0;u1<l1.length;u1+=1){let f1=get_each_context$F(n1,l1,u1),p1=c1(f1);r1.set(p1,t1[u1]=create_each_block$F(p1,f1))}return{c(){e1=element("div");for(let u1=0;u1<t1.length;u1+=1)t1[u1].c();attr(e1,"class","conditions svelte-69vx2r")},m(u1,f1){insert$1(u1,e1,f1);for(let p1=0;p1<t1.length;p1+=1)t1[p1].m(e1,null);i1=!0,a1||(s1=[action_destroyer(o1=dndzone.call(null,e1,{items:n1[0],flipDurationMs:flipDurationMs$1,dropTargetStyle:{outline:"none"},dragDisabled:n1[3]})),listen(e1,"finalize",n1[11]),listen(e1,"consider",n1[12])],a1=!0)},p(u1,f1){if(f1[0]&59135){l1=u1[0],group_outros();for(let p1=0;p1<t1.length;p1+=1)t1[p1].r();t1=update_keyed_each(t1,f1,c1,1,u1,l1,r1,e1,fix_and_outro_and_destroy_block,create_each_block$F,null,get_each_context$F);for(let p1=0;p1<t1.length;p1+=1)t1[p1].a();check_outros()}o1&&is_function(o1.update)&&f1[0]&9&&o1.update.call(null,{items:u1[0],flipDurationMs:flipDurationMs$1,dropTargetStyle:{outline:"none"},dragDisabled:u1[3]})},i(u1){if(!i1){for(let f1=0;f1<l1.length;f1+=1)transition_in(t1[f1]);i1=!0}},o(u1){for(let f1=0;f1<t1.length;f1+=1)transition_out(t1[f1]);i1=!1},d(u1){u1&&detach(e1);for(let f1=0;f1<t1.length;f1+=1)t1[f1].d();a1=!1,run_all(s1)}}}function create_default_slot_3$1c(n1){let e1;return{c(){e1=text("Add your first condition to get started.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_if_block_4$f(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1;function u1(_1){n1[19](_1,n1[32])}let f1={options:n1[4]};n1[32].setting!==void 0&&(f1.value=n1[32].setting),e1=new Select_1$1({props:f1}),binding_callbacks.push(()=>bind$3(e1,"value",u1));const p1=[create_if_block_5$8,create_else_block$y],d1=[];function m1(_1,h1){return _1[33]?0:1}return a1=m1(n1),s1=d1[a1]=p1[a1](n1),{c(){create_component(e1.$$.fragment),r1=space$1(),o1=element("div"),o1.textContent="TO",i1=space$1(),s1.c(),l1=empty$1()},m(_1,h1){mount_component(e1,_1,h1),insert$1(_1,r1,h1),insert$1(_1,o1,h1),insert$1(_1,i1,h1),d1[a1].m(_1,h1),insert$1(_1,l1,h1),c1=!0},p(_1,h1){n1=_1;const b1={};h1[0]&16&&(b1.options=n1[4]),!t1&&h1[0]&1&&(t1=!0,b1.value=n1[32].setting,add_flush_callback(()=>t1=!1)),e1.$set(b1);let $1=a1;a1=m1(n1),a1===$1?d1[a1].p(n1,h1):(group_outros(),transition_out(d1[$1],1,1,()=>{d1[$1]=null}),check_outros(),s1=d1[a1],s1?s1.p(n1,h1):(s1=d1[a1]=p1[a1](n1),s1.c()),transition_in(s1,1),s1.m(l1.parentNode,l1))},i(_1){c1||(transition_in(e1.$$.fragment,_1),transition_in(s1),c1=!0)},o(_1){transition_out(e1.$$.fragment,_1),transition_out(s1),c1=!1},d(_1){destroy_component(e1,_1),_1&&detach(r1),_1&&detach(o1),_1&&detach(i1),d1[a1].d(_1),_1&&detach(l1)}}}function create_else_block$y(n1){let e1,t1;return e1=new Select_1$1({props:{disabled:!0,placeholder:" "}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p:noop$5,i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_5$8(n1){let e1,t1;function r1(...o1){return n1[20](n1[32],n1[34],n1[35],...o1)}return e1=new PropertyControl({props:{type:n1[33].type,control:getComponentForSetting(n1[33]),key:n1[33].key,value:n1[32].settingValue,componentInstance:n1[2],onChange:r1,props:{options:n1[33].options,placeholder:n1[33].placeholder},bindings:n1[1]}}),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.type=n1[33].type),i1[0]&1&&(a1.control=getComponentForSetting(n1[33])),i1[0]&1&&(a1.key=n1[33].key),i1[0]&1&&(a1.value=n1[32].settingValue),i1[0]&4&&(a1.componentInstance=n1[2]),i1[0]&1&&(a1.onChange=r1),i1[0]&1&&(a1.props={options:n1[33].options,placeholder:n1[33].placeholder}),i1[0]&2&&(a1.bindings=n1[1]),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_if_block_3$m(n1){let e1,t1,r1;function o1(a1){n1[28](a1,n1[32])}let i1={placeholder:"Value",disabled:n1[32].noValue,options:["True","False"]};return n1[32].referenceValue!==void 0&&(i1.value=n1[32].referenceValue),e1=new Select_1$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[32].noValue),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[32].referenceValue,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_2$A(n1){let e1,t1,r1;function o1(a1){n1[27](a1,n1[32])}let i1={placeholder:"Value",disabled:n1[32].noValue};return n1[32].referenceValue!==void 0&&(i1.value=n1[32].referenceValue),e1=new DatePicker_1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){n1=a1;const l1={};s1[0]&1&&(l1.disabled=n1[32].noValue),!t1&&s1[0]&1&&(t1=!0,l1.value=n1[32].referenceValue,add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_if_block_1$W(n1){let e1,t1;function r1(...o1){return n1[26](n1[32],n1[34],n1[35],...o1)}return e1=new DrawerBindableInput({props:{disabled:n1[32].noValue,bindings:n1[1],placeholder:"Value",value:n1[32].referenceValue}}),e1.$on("change",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1[0]&1&&(a1.disabled=n1[32].noValue),i1[0]&2&&(a1.bindings=n1[1]),i1[0]&1&&(a1.value=n1[32].referenceValue),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_each_block$F(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1,k1,S1,C1,A1,E1,z1,I1,N1,U1,F1,R1=noop$5,D1,V1,j1;o1=new Icon({props:{name:"DragHandle",size:"XL"}});function K1(R0){e1[18](R0,e1[32])}let G1={placeholder:null,options:e1[5]};e1[32].action!==void 0&&(G1.value=e1[32].action),s1=new Select_1$1({props:G1}),binding_callbacks.push(()=>bind$3(s1,"value",K1));let q1=e1[32].action==="update"&&create_if_block_4$f(e1);function J1(...R0){return e1[21](e1[32],e1[34],e1[35],...R0)}d1=new DrawerBindableInput({props:{bindings:e1[1],placeholder:"Value",value:e1[32].newValue}}),d1.$on("change",J1);function X1(R0){e1[22](R0,e1[32])}function Q1(...R0){return e1[23](e1[32],...R0)}let a0={placeholder:null,options:e1[13](e1[32])};e1[32].operator!==void 0&&(a0.value=e1[32].operator),_1=new Select_1$1({props:a0}),binding_callbacks.push(()=>bind$3(_1,"value",X1)),_1.$on("change",Q1);function n0(R0){e1[24](R0,e1[32])}function d0(...R0){return e1[25](e1[32],...R0)}let u0={disabled:e1[32].noValue||e1[32].operator==="oneOf",options:e1[6],placeholder:null};e1[32].valueType!==void 0&&(u0.value=e1[32].valueType),$1=new Select_1$1({props:u0}),binding_callbacks.push(()=>bind$3($1,"value",n0)),$1.$on("change",d0);const e0=[create_if_block_1$W,create_if_block_2$A,create_if_block_3$m],v0=[];function M0(R0,N0){return N0[0]&1&&(S1=null),S1==null&&(S1=!!["string","number"].includes(R0[32].valueType)),S1?0:R0[32].valueType==="datetime"?1:R0[32].valueType==="boolean"?2:-1}~(C1=M0(e1,[-1,-1]))&&(A1=v0[C1]=e0[C1](e1));function r0(){return e1[29](e1[32])}z1=new Icon({props:{name:"Duplicate",hoverable:!0,size:"S"}}),z1.$on("click",r0);function S0(){return e1[30](e1[32])}return N1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),N1.$on("click",S0),{key:n1,first:null,c(){t1=element("div"),r1=element("div"),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),q1&&q1.c(),u1=space$1(),f1=element("div"),f1.textContent="IF",p1=space$1(),create_component(d1.$$.fragment),m1=space$1(),create_component(_1.$$.fragment),b1=space$1(),create_component($1.$$.fragment),k1=space$1(),A1&&A1.c(),E1=space$1(),create_component(z1.$$.fragment),I1=space$1(),create_component(N1.$$.fragment),U1=space$1(),attr(r1,"class","handle svelte-69vx2r"),attr(r1,"aria-label","drag-handle"),attr(r1,"style",i1=e1[3]?"cursor: grab":"cursor: grabbing"),attr(t1,"class","condition svelte-69vx2r"),toggle_class(t1,"update",e1[32].action==="update"),this.first=t1},m(R0,N0){insert$1(R0,t1,N0),append$1(t1,r1),mount_component(o1,r1,null),append$1(t1,a1),mount_component(s1,t1,null),append$1(t1,c1),q1&&q1.m(t1,null),append$1(t1,u1),append$1(t1,f1),append$1(t1,p1),mount_component(d1,t1,null),append$1(t1,m1),mount_component(_1,t1,null),append$1(t1,b1),mount_component($1,t1,null),append$1(t1,k1),~C1&&v0[C1].m(t1,null),append$1(t1,E1),mount_component(z1,t1,null),append$1(t1,I1),mount_component(N1,t1,null),append$1(t1,U1),D1=!0,V1||(j1=listen(r1,"mousedown",e1[17]),V1=!0)},p(R0,N0){e1=R0,(!D1||N0[0]&8&&i1!==(i1=e1[3]?"cursor: grab":"cursor: grabbing"))&&attr(r1,"style",i1);const e2={};!l1&&N0[0]&1&&(l1=!0,e2.value=e1[32].action,add_flush_callback(()=>l1=!1)),s1.$set(e2),e1[32].action==="update"?q1?(q1.p(e1,N0),N0[0]&1&&transition_in(q1,1)):(q1=create_if_block_4$f(e1),q1.c(),transition_in(q1,1),q1.m(t1,u1)):q1&&(group_outros(),transition_out(q1,1,1,()=>{q1=null}),check_outros());const $2={};N0[0]&2&&($2.bindings=e1[1]),N0[0]&1&&($2.value=e1[32].newValue),d1.$set($2);const p2={};N0[0]&1&&(p2.options=e1[13](e1[32])),!h1&&N0[0]&1&&(h1=!0,p2.value=e1[32].operator,add_flush_callback(()=>h1=!1)),_1.$set(p2);const t2={};N0[0]&1&&(t2.disabled=e1[32].noValue||e1[32].operator==="oneOf"),!y1&&N0[0]&1&&(y1=!0,t2.value=e1[32].valueType,add_flush_callback(()=>y1=!1)),$1.$set(t2);let $0=C1;C1=M0(e1,N0),C1===$0?~C1&&v0[C1].p(e1,N0):(A1&&(group_outros(),transition_out(v0[$0],1,1,()=>{v0[$0]=null}),check_outros()),~C1?(A1=v0[C1],A1?A1.p(e1,N0):(A1=v0[C1]=e0[C1](e1),A1.c()),transition_in(A1,1),A1.m(t1,E1)):A1=null),(!D1||N0[0]&1)&&toggle_class(t1,"update",e1[32].action==="update")},r(){F1=t1.getBoundingClientRect()},f(){fix_position(t1),R1()},a(){R1(),R1=create_animation(t1,F1,flip,{duration:flipDurationMs$1})},i(R0){D1||(transition_in(o1.$$.fragment,R0),transition_in(s1.$$.fragment,R0),transition_in(q1),transition_in(d1.$$.fragment,R0),transition_in(_1.$$.fragment,R0),transition_in($1.$$.fragment,R0),transition_in(A1),transition_in(z1.$$.fragment,R0),transition_in(N1.$$.fragment,R0),D1=!0)},o(R0){transition_out(o1.$$.fragment,R0),transition_out(s1.$$.fragment,R0),transition_out(q1),transition_out(d1.$$.fragment,R0),transition_out(_1.$$.fragment,R0),transition_out($1.$$.fragment,R0),transition_out(A1),transition_out(z1.$$.fragment,R0),transition_out(N1.$$.fragment,R0),D1=!1},d(R0){R0&&detach(t1),destroy_component(o1),destroy_component(s1),q1&&q1.d(),destroy_component(d1),destroy_component(_1),destroy_component($1),~C1&&v0[C1].d(),destroy_component(z1),destroy_component(N1),V1=!1,j1()}}}function create_default_slot_2$1s(n1){let e1;return{c(){e1=text("Add condition")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1S(n1){let e1,t1,r1,o1,i1,a1;const s1=[create_if_block$1C,create_else_block_1$7],l1=[];function c1(u1,f1){var p1;return(p1=u1[0])!=null&&p1.length?0:1}return e1=c1(n1),t1=l1[e1]=s1[e1](n1),i1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_2$1s]},$$scope:{ctx:n1}}}),i1.$on("click",n1[8]),{c(){t1.c(),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment)},m(u1,f1){l1[e1].m(u1,f1),insert$1(u1,r1,f1),insert$1(u1,o1,f1),mount_component(i1,o1,null),a1=!0},p(u1,f1){let p1=e1;e1=c1(u1),e1===p1?l1[e1].p(u1,f1):(group_outros(),transition_out(l1[p1],1,1,()=>{l1[p1]=null}),check_outros(),t1=l1[e1],t1?t1.p(u1,f1):(t1=l1[e1]=s1[e1](u1),t1.c()),transition_in(t1,1),t1.m(r1.parentNode,r1));const d1={};f1[1]&32&&(d1.$$scope={dirty:f1,ctx:u1}),i1.$set(d1)},i(u1){a1||(transition_in(t1),transition_in(i1.$$.fragment,u1),a1=!0)},o(u1){transition_out(t1),transition_out(i1.$$.fragment,u1),a1=!1},d(u1){l1[e1].d(u1),u1&&detach(r1),u1&&detach(o1),destroy_component(i1)}}}function create_default_slot$2k(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,$$slots:{default:[create_default_slot_1$1S]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-69vx2r")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1[0]&31|i1[1]&32&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3o(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2k]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1[0]&31|o1[1]&32&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs$1=150;function instance$3q(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,selectedComponent,G1=>t1(2,i1=G1));let{conditions:a1=[]}=e1,{bindings:s1=[]}=e1;const l1=[{label:"Hide component",value:"hide"},{label:"Show component",value:"show"},{label:"Update setting",value:"update"}],c1=[{value:"string",label:"Binding"},{value:"number",label:"Number"},{value:"datetime",label:"Date"},{value:"boolean",label:"Boolean"}];let u1=!0;const f1=G1=>{const{section:q1,label:J1}=G1;return q1?J1?`${q1} - ${J1}`:q1:J1},p1=G1=>r1.find(q1=>q1.key===G1),d1=()=>{t1(0,a1=[...a1,{valueType:"string",id:shortid.exports.generate(),action:"hide",operator:OperatorOptions.Equals.value}])},m1=G1=>{t1(0,a1=a1.filter(q1=>q1.id!==G1))},_1=G1=>{const J1={...a1.find(X1=>X1.id===G1),id:shortid.exports.generate()};t1(0,a1=[...a1,J1])},h1=G1=>{b1(G1),t1(3,u1=!0)},b1=G1=>{t1(0,a1=G1.detail.items)},$1=G1=>getValidOperatorsForType(G1.valueType),y1=(G1,q1)=>{const J1=[OperatorOptions.Empty.value,OperatorOptions.NotEmpty.value];G1.noValue=J1.includes(q1),(G1.noValue||q1==="oneOf")&&(G1.referenceValue=null,G1.valueType="string")},k1=(G1,q1)=>{var X1;G1.referenceValue=null;const J1=getValidOperatorsForType(q1).map(Q1=>Q1.value);J1.includes(G1.operator)||(G1.operator=(X1=J1[0])!=null?X1:OperatorOptions.Equals.value,y1(G1,G1.operator))},S1=()=>t1(3,u1=!1);function C1(G1,q1){n1.$$.not_equal(q1.action,G1)&&(q1.action=G1,t1(0,a1))}function A1(G1,q1){n1.$$.not_equal(q1.setting,G1)&&(q1.setting=G1,t1(0,a1))}const E1=(G1,q1,J1,X1)=>t1(0,q1[J1].settingValue=X1,a1),z1=(G1,q1,J1,X1)=>t1(0,q1[J1].newValue=X1.detail,a1);function I1(G1,q1){n1.$$.not_equal(q1.operator,G1)&&(q1.operator=G1,t1(0,a1))}const N1=(G1,q1)=>y1(G1,q1.detail);function U1(G1,q1){n1.$$.not_equal(q1.valueType,G1)&&(q1.valueType=G1,t1(0,a1))}const F1=(G1,q1)=>k1(G1,q1.detail),R1=(G1,q1,J1,X1)=>t1(0,q1[J1].referenceValue=X1.detail,a1);function D1(G1,q1){n1.$$.not_equal(q1.referenceValue,G1)&&(q1.referenceValue=G1,t1(0,a1))}function V1(G1,q1){n1.$$.not_equal(q1.referenceValue,G1)&&(q1.referenceValue=G1,t1(0,a1))}const j1=G1=>_1(G1.id),K1=G1=>m1(G1.id);return n1.$$set=G1=>{"conditions"in G1&&t1(0,a1=G1.conditions),"bindings"in G1&&t1(1,s1=G1.bindings)},n1.$$.update=()=>{var G1;n1.$$.dirty[0]&4&&t1(16,r1=(G1=getComponentSettings(i1==null?void 0:i1._component))==null?void 0:G1.concat({label:"Custom CSS",key:"_css",type:"text"})),n1.$$.dirty[0]&65536&&t1(4,o1=r1.map(q1=>({label:f1(q1),value:q1.key}))),n1.$$.dirty[0]&1&&a1.forEach(q1=>{q1.id||(q1.id=shortid.exports.generate())})},[a1,s1,i1,u1,o1,l1,c1,p1,d1,m1,_1,h1,b1,$1,y1,k1,r1,S1,C1,A1,E1,z1,I1,N1,U1,F1,R1,D1,V1,j1,K1]}class ConditionalUIDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3q,create_fragment$3o,safe_not_equal,{conditions:0,bindings:1},null,[-1,-1])}}const ConditionalUISection_svelte_svelte_type_style_lang="";function create_default_slot_2$1r(n1){let e1;return{c(){e1=text("Configure conditions")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1R(n1){let e1,t1,r1,o1,i1,a1;return i1=new ActionButton({props:{$$slots:{default:[create_default_slot_2$1r]},$$scope:{ctx:n1}}}),i1.$on("click",n1[4]),{c(){e1=element("div"),t1=text(n1[3]),r1=space$1(),o1=element("div"),create_component(i1.$$.fragment),attr(e1,"class","conditionCount svelte-gl19jt")},m(s1,l1){insert$1(s1,e1,l1),append$1(e1,t1),insert$1(s1,r1,l1),insert$1(s1,o1,l1),mount_component(i1,o1,null),a1=!0},p(s1,l1){(!a1||l1&8)&&set_data(t1,s1[3]);const c1={};l1&2048&&(c1.$$scope={dirty:l1,ctx:s1}),i1.$set(c1)},i(s1){a1||(transition_in(i1.$$.fragment,s1),a1=!0)},o(s1){transition_out(i1.$$.fragment,s1),a1=!1},d(s1){s1&&detach(e1),s1&&detach(r1),s1&&detach(o1),destroy_component(i1)}}}function create_description_slot$1(n1){let e1;return{c(){e1=text("Show, hide and update components in response to conditions being met.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2j(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$3(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2j]},$$scope:{ctx:n1}}}),e1.$on("click",n1[9]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&2048&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$2(n1){let e1,t1,r1;function o1(a1){n1[8](a1)}let i1={slot:"body",bindings:n1[0]};return n1[1]!==void 0&&(i1.conditions=n1[1]),e1=new ConditionalUIDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"conditions",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};s1&1&&(l1.bindings=a1[0]),!t1&&s1&2&&(t1=!0,l1.conditions=a1[1],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3n(n1){let e1,t1,r1,o1;e1=new DetailSummary({props:{name:"Conditions",collapsible:!1,$$slots:{default:[create_default_slot_1$1R]},$$scope:{ctx:n1}}});let i1={title:"Conditions",$$slots:{body:[create_body_slot$2],buttons:[create_buttons_slot$3],description:[create_description_slot$1]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[10](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&2056&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};s1&2051&&(c1.$$scope={dirty:s1,ctx:a1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[10](null),destroy_component(r1,a1)}}}function instance$3p(n1,e1,t1){let r1,o1,{componentInstance:i1}=e1,{bindings:a1}=e1,s1,l1;const c1=()=>{var m1;t1(1,s1=JSON.parse(JSON.stringify((m1=i1==null?void 0:i1._conditions)!=null?m1:[]))),l1.show()},u1=async()=>{try{await store.actions.components.updateConditions(s1)}catch{notifications.error("Error updating conditions")}l1.hide()};function f1(m1){s1=m1,t1(1,s1)}const p1=()=>u1();function d1(m1){binding_callbacks[m1?"unshift":"push"](()=>{l1=m1,t1(2,l1)})}return n1.$$set=m1=>{"componentInstance"in m1&&t1(6,i1=m1.componentInstance),"bindings"in m1&&t1(0,a1=m1.bindings)},n1.$$.update=()=>{var m1;n1.$$.dirty&64&&t1(7,r1=(m1=i1==null?void 0:i1._conditions)==null?void 0:m1.length),n1.$$.dirty&128&&t1(3,o1=`${r1||"No"} condition${r1!==1?"s":""} set`)},[a1,s1,l1,o1,c1,u1,i1,r1,f1,p1,d1]}class ConditionalUISection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3p,create_fragment$3n,safe_not_equal,{componentInstance:6,bindings:0})}}const ComponentInfoSection_svelte_svelte_type_style_lang="";function create_default_slot$2i(n1){let e1,t1,r1,o1,i1=n1[0].name+"",a1,s1,l1=n1[0].info+"",c1,u1;return r1=new Icon({props:{name:"HelpOutline"}}),{c(){e1=element("div"),t1=element("div"),create_component(r1.$$.fragment),o1=space$1(),a1=text(i1),s1=space$1(),c1=text(l1),attr(t1,"class","title svelte-1qbj35w"),attr(e1,"class","info svelte-1qbj35w")},m(f1,p1){insert$1(f1,e1,p1),append$1(e1,t1),mount_component(r1,t1,null),append$1(t1,o1),append$1(t1,a1),append$1(e1,s1),append$1(e1,c1),u1=!0},p(f1,p1){(!u1||p1&1)&&i1!==(i1=f1[0].name+"")&&set_data(a1,i1),(!u1||p1&1)&&l1!==(l1=f1[0].info+"")&&set_data(c1,l1)},i(f1){u1||(transition_in(r1.$$.fragment,f1),u1=!0)},o(f1){transition_out(r1.$$.fragment,f1),u1=!1},d(f1){f1&&detach(e1),destroy_component(r1)}}}function create_fragment$3m(n1){let e1,t1;return e1=new DetailSummary({props:{collapsible:!1,$$slots:{default:[create_default_slot$2i]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&3&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3o(n1,e1,t1){let{componentDefinition:r1}=e1;return n1.$$set=o1=>{"componentDefinition"in o1&&t1(0,r1=o1.componentDefinition)},[r1]}class ComponentInfoSection extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3o,create_fragment$3m,safe_not_equal,{componentDefinition:0})}}const ComponentSettingsPanel_svelte_svelte_type_style_lang="";function get_each_context$E(n1,e1,t1){const r1=n1.slice();return r1[13]=e1[t1],r1}function create_if_block$1B(n1){let e1=n1[1]._id,t1,r1,o1=create_key_block$5(n1);return{c(){o1.c(),t1=empty$1()},m(i1,a1){o1.m(i1,a1),insert$1(i1,t1,a1),r1=!0},p(i1,a1){a1&2&&safe_not_equal(e1,e1=i1[1]._id)?(group_outros(),transition_out(o1,1,1,noop$5),check_outros(),o1=create_key_block$5(i1),o1.c(),transition_in(o1,1),o1.m(t1.parentNode,t1)):o1.p(i1,a1)},i(i1){r1||(transition_in(o1),r1=!0)},o(i1){transition_out(o1),r1=!1},d(i1){i1&&detach(t1),o1.d(i1)}}}function create_if_block_3$l(n1){var i1;let e1,t1,r1,o1=((i1=n1[6])==null?void 0:i1.info)&&create_if_block_4$e(n1);return t1=new ComponentSettingsSection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5],componentBindings:n1[4],isScreen:n1[0]}}),{c(){o1&&o1.c(),e1=space$1(),create_component(t1.$$.fragment)},m(a1,s1){o1&&o1.m(a1,s1),insert$1(a1,e1,s1),mount_component(t1,a1,s1),r1=!0},p(a1,s1){var c1;(c1=a1[6])!=null&&c1.info?o1?(o1.p(a1,s1),s1&64&&transition_in(o1,1)):(o1=create_if_block_4$e(a1),o1.c(),transition_in(o1,1),o1.m(e1.parentNode,e1)):o1&&(group_outros(),transition_out(o1,1,1,()=>{o1=null}),check_outros());const l1={};s1&128&&(l1.componentInstance=a1[7]),s1&64&&(l1.componentDefinition=a1[6]),s1&32&&(l1.bindings=a1[5]),s1&16&&(l1.componentBindings=a1[4]),s1&1&&(l1.isScreen=a1[0]),t1.$set(l1)},i(a1){r1||(transition_in(o1),transition_in(t1.$$.fragment,a1),r1=!0)},o(a1){transition_out(o1),transition_out(t1.$$.fragment,a1),r1=!1},d(a1){o1&&o1.d(a1),a1&&detach(e1),destroy_component(t1,a1)}}}function create_if_block_4$e(n1){let e1,t1;return e1=new ComponentInfoSection({props:{componentDefinition:n1[6]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&64&&(i1.componentDefinition=r1[6]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_if_block_2$z(n1){let e1,t1,r1,o1;return e1=new DesignSection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5]}}),r1=new CustomStylesSection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5]}}),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&128&&(s1.componentInstance=i1[7]),a1&64&&(s1.componentDefinition=i1[6]),a1&32&&(s1.bindings=i1[5]),e1.$set(s1);const l1={};a1&128&&(l1.componentInstance=i1[7]),a1&64&&(l1.componentDefinition=i1[6]),a1&32&&(l1.bindings=i1[5]),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_if_block_1$V(n1){let e1,t1;return e1=new ConditionalUISection({props:{componentInstance:n1[7],componentDefinition:n1[6],bindings:n1[5]}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&128&&(i1.componentInstance=r1[7]),o1&64&&(i1.componentDefinition=r1[6]),o1&32&&(i1.bindings=r1[5]),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_1$1Q(n1){let e1,t1,r1,o1,i1=n1[2]=="settings"&&create_if_block_3$l(n1),a1=n1[2]=="styles"&&create_if_block_2$z(n1),s1=n1[2]=="conditions"&&create_if_block_1$V(n1);return{c(){i1&&i1.c(),e1=space$1(),a1&&a1.c(),t1=space$1(),s1&&s1.c(),r1=empty$1()},m(l1,c1){i1&&i1.m(l1,c1),insert$1(l1,e1,c1),a1&&a1.m(l1,c1),insert$1(l1,t1,c1),s1&&s1.m(l1,c1),insert$1(l1,r1,c1),o1=!0},p(l1,c1){l1[2]=="settings"?i1?(i1.p(l1,c1),c1&4&&transition_in(i1,1)):(i1=create_if_block_3$l(l1),i1.c(),transition_in(i1,1),i1.m(e1.parentNode,e1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros()),l1[2]=="styles"?a1?(a1.p(l1,c1),c1&4&&transition_in(a1,1)):(a1=create_if_block_2$z(l1),a1.c(),transition_in(a1,1),a1.m(t1.parentNode,t1)):a1&&(group_outros(),transition_out(a1,1,1,()=>{a1=null}),check_outros()),l1[2]=="conditions"?s1?(s1.p(l1,c1),c1&4&&transition_in(s1,1)):(s1=create_if_block_1$V(l1),s1.c(),transition_in(s1,1),s1.m(r1.parentNode,r1)):s1&&(group_outros(),transition_out(s1,1,1,()=>{s1=null}),check_outros())},i(l1){o1||(transition_in(i1),transition_in(a1),transition_in(s1),o1=!0)},o(l1){transition_out(i1),transition_out(a1),transition_out(s1),o1=!1},d(l1){i1&&i1.d(l1),l1&&detach(e1),a1&&a1.d(l1),l1&&detach(t1),s1&&s1.d(l1),l1&&detach(r1)}}}function create_default_slot$2h(n1){let e1=capitalise(n1[13])+"",t1,r1;return{c(){t1=text(e1),r1=space$1()},m(o1,i1){insert$1(o1,t1,i1),insert$1(o1,r1,i1)},p:noop$5,d(o1){o1&&detach(t1),o1&&detach(r1)}}}function create_each_block$E(n1){let e1,t1;function r1(){return n1[12](n1[13])}return e1=new ActionButton({props:{size:"M",quiet:!0,selected:n1[2]===n1[13],$$slots:{default:[create_default_slot$2h]},$$scope:{ctx:n1}}}),e1.$on("click",r1),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){n1=o1;const a1={};i1&4&&(a1.selected=n1[2]===n1[13]),i1&65536&&(a1.$$scope={dirty:i1,ctx:n1}),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_panel_header_content_slot(n1){let e1,t1,r1,o1=n1[8],i1=[];for(let s1=0;s1<o1.length;s1+=1)i1[s1]=create_each_block$E(get_each_context$E(n1,o1,s1));const a1=s1=>transition_out(i1[s1],1,1,()=>{i1[s1]=null});return{c(){e1=element("span"),t1=element("div");for(let s1=0;s1<i1.length;s1+=1)i1[s1].c();attr(t1,"class","settings-tabs svelte-2iq92p"),attr(e1,"slot","panel-header-content")},m(s1,l1){insert$1(s1,e1,l1),append$1(e1,t1);for(let c1=0;c1<i1.length;c1+=1)i1[c1].m(t1,null);r1=!0},p(s1,l1){if(l1&260){o1=s1[8];let c1;for(c1=0;c1<o1.length;c1+=1){const u1=get_each_context$E(s1,o1,c1);i1[c1]?(i1[c1].p(u1,l1),transition_in(i1[c1],1)):(i1[c1]=create_each_block$E(u1),i1[c1].c(),transition_in(i1[c1],1),i1[c1].m(t1,null))}for(group_outros(),c1=o1.length;c1<i1.length;c1+=1)a1(c1);check_outros()}},i(s1){if(!r1){for(let l1=0;l1<o1.length;l1+=1)transition_in(i1[l1]);r1=!0}},o(s1){i1=i1.filter(Boolean);for(let l1=0;l1<i1.length;l1+=1)transition_out(i1[l1]);r1=!1},d(s1){s1&&detach(e1),destroy_each(i1,s1)}}}function create_key_block$5(n1){var r1;let e1,t1;return e1=new Panel({props:{title:n1[3],icon:(r1=n1[6])==null?void 0:r1.icon,borderLeft:!0,wide:!0,$$slots:{"panel-header-content":[create_panel_header_content_slot],default:[create_default_slot_1$1Q]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,i1){var s1;const a1={};i1&8&&(a1.title=o1[3]),i1&64&&(a1.icon=(s1=o1[6])==null?void 0:s1.icon),i1&65781&&(a1.$$scope={dirty:i1,ctx:o1}),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function create_fragment$3l(n1){let e1,t1,r1=n1[1]&&create_if_block$1B(n1);return{c(){r1&&r1.c(),e1=empty$1()},m(o1,i1){r1&&r1.m(o1,i1),insert$1(o1,e1,i1),t1=!0},p(o1,[i1]){o1[1]?r1?(r1.p(o1,i1),i1&2&&transition_in(r1,1)):(r1=create_if_block$1B(o1),r1.c(),transition_in(r1,1),r1.m(e1.parentNode,e1)):r1&&(group_outros(),transition_out(r1,1,1,()=>{r1=null}),check_outros())},i(o1){t1||(transition_in(r1),t1=!0)},o(o1){transition_out(r1),t1=!1},d(o1){r1&&r1.d(o1),o1&&detach(e1)}}}function instance$3n(n1,e1,t1){let r1,o1,i1,a1,s1,l1,c1,u1,f1,p1;component_subscribe(n1,selectedComponent,h1=>t1(1,u1=h1)),component_subscribe(n1,selectedScreen,h1=>t1(10,f1=h1)),component_subscribe(n1,store,h1=>t1(11,p1=h1));let d1="settings";const m1=["settings","styles","conditions"],_1=h1=>{t1(2,d1=h1)};return n1.$$.update=()=>{n1.$$.dirty&2&&t1(7,r1=u1),n1.$$.dirty&2&&t1(6,o1=store.actions.components.getDefinition(u1==null?void 0:u1._component)),n1.$$.dirty&3072&&t1(5,i1=getBindableProperties(f1,p1.selectedComponentId)),n1.$$.dirty&3072&&t1(4,a1=getComponentBindableProperties(f1,p1.selectedComponentId)),n1.$$.dirty&1026&&t1(0,s1=(u1==null?void 0:u1._id)===(f1==null?void 0:f1.props._id)),n1.$$.dirty&3&&t1(3,l1=s1?"Screen":u1==null?void 0:u1._instanceName),n1.$$.dirty&2&&t1(9,c1=u1==null?void 0:u1._id),n1.$$.dirty&512&&t1(2,d1=m1[0])},[s1,u1,d1,l1,a1,i1,o1,r1,m1,c1,f1,p1,_1]}class ComponentSettingsPanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3n,create_fragment$3l,safe_not_equal,{})}}function create_fragment$3k(n1){let e1,t1,r1,o1,i1;e1=new ComponentListPanel({}),r1=new ComponentSettingsPanel({});const a1=n1[3].default,s1=create_slot(a1,n1,n1[2],null);return{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment),o1=space$1(),s1&&s1.c()},m(l1,c1){mount_component(e1,l1,c1),insert$1(l1,t1,c1),mount_component(r1,l1,c1),insert$1(l1,o1,c1),s1&&s1.m(l1,c1),i1=!0},p(l1,[c1]){s1&&s1.p&&(!i1||c1&4)&&update_slot_base(s1,a1,l1,l1[2],i1?get_slot_changes(a1,l1[2],c1,null):get_all_dirty_from_scope(l1[2]),null)},i(l1){i1||(transition_in(e1.$$.fragment,l1),transition_in(r1.$$.fragment,l1),transition_in(s1,l1),i1=!0)},o(l1){transition_out(e1.$$.fragment,l1),transition_out(r1.$$.fragment,l1),transition_out(s1,l1),i1=!1},d(l1){destroy_component(e1,l1),l1&&detach(t1),destroy_component(r1,l1),l1&&detach(o1),s1&&s1.d(l1)}}}function instance$3m(n1,e1,t1){let r1,o1,i1;component_subscribe(n1,selectedScreen,u1=>t1(4,o1=u1)),component_subscribe(n1,store,u1=>t1(1,i1=u1));let{$$slots:a1={},$$scope:s1}=e1;const c1=syncURLToState({urlParam:"componentId",stateKey:"selectedComponentId",validate:u1=>!!findComponent(o1.props,u1),fallbackUrl:"../",store,routify:routify$1,beforeNavigate:u1=>(u1!=null&&u1.endsWith("/index")&&(u1=u1.replace("/index","")),u1!=null&&u1.endsWith("/new")&&(u1=u1.replace("/new","")),{url:u1})});return onDestroy(c1),n1.$$set=u1=>{"$$scope"in u1&&t1(2,s1=u1.$$scope)},n1.$$.update=()=>{n1.$$.dirty&2&&t1(0,r1=i1.selectedComponentId),n1.$$.dirty&1&&store.actions.websocket.selectResource(r1)},[r1,i1,s1,a1]}class Layout$g extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3m,create_fragment$3k,safe_not_equal,{})}}function instance$3l(n1,e1,t1){let r1,o1,i1;return component_subscribe(n1,redirect,a1=>t1(0,r1=a1)),component_subscribe(n1,selectedScreen,a1=>t1(1,o1=a1)),component_subscribe(n1,selectedComponent,a1=>t1(2,i1=a1)),onMount(()=>{r1(i1?`./${i1._id}`:o1?`./${o1.props._id}`:"../")}),[]}class Components extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3l,null,safe_not_equal,{})}}function instance$3k(n1,e1,t1){let r1;return component_subscribe(n1,redirect,o1=>t1(0,r1=o1)),r1("./screens"),[]}class U5BscreenIdu5D extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3k,null,safe_not_equal,{})}}const LayoutDropdownMenu_svelte_svelte_type_style_lang="";function create_default_slot_1$1P(n1){let e1;return{c(){e1=text("Delete")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2g(n1){let e1,t1;return e1=new Item({props:{icon:"Delete",$$slots:{default:[create_default_slot_1$1P]},$$scope:{ctx:n1}}}),e1.$on("click",function(){is_function(n1[0].show)&&n1[0].show.apply(this,arguments)}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){n1=r1;const i1={};o1&16&&(i1.$$scope={dirty:o1,ctx:n1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_control_slot$7(n1){let e1,t1,r1;return t1=new Icon({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"slot","control"),attr(e1,"class","icon svelte-u6s22l")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p:noop$5,i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3j(n1){let e1,t1,r1,o1;e1=new ActionMenu({props:{$$slots:{control:[create_control_slot$7],default:[create_default_slot$2g]},$$scope:{ctx:n1}}});let i1={title:"Confirm Deletion",body:"Are you sure you wish to delete this layout?",okText:"Delete layout",onOk:n1[1]};return r1=new ConfirmDialog({props:i1}),n1[3](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&17&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[3](null),destroy_component(r1,a1)}}}function instance$3j(n1,e1,t1){let{layout:r1}=e1,o1;const i1=async()=>{try{await store.actions.layouts.delete(r1),notifications.success("Layout deleted successfully")}catch(s1){notifications.error((s1==null?void 0:s1.message)||"Error deleting layout")}};function a1(s1){binding_callbacks[s1?"unshift":"push"](()=>{o1=s1,t1(0,o1)})}return n1.$$set=s1=>{"layout"in s1&&t1(2,r1=s1.layout)},[o1,i1,r1,a1]}class LayoutDropdownMenu extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3j,create_fragment$3j,safe_not_equal,{layout:2})}}const LayoutListPanel_svelte_svelte_type_style_lang="";function get_each_context$D(n1,e1,t1){const r1=n1.slice();return r1[2]=e1[t1],r1}function create_default_slot_1$1O(n1){let e1,t1,r1;return e1=new LayoutDropdownMenu({props:{layout:n1[2]}}),{c(){create_component(e1.$$.fragment),t1=space$1()},m(o1,i1){mount_component(e1,o1,i1),insert$1(o1,t1,i1),r1=!0},p(o1,i1){const a1={};i1&1&&(a1.layout=o1[2]),e1.$set(a1)},i(o1){r1||(transition_in(e1.$$.fragment,o1),r1=!0)},o(o1){transition_out(e1.$$.fragment,o1),r1=!1},d(o1){destroy_component(e1,o1),o1&&detach(t1)}}}function create_each_block$D(n1,e1){let t1,r1,o1;function i1(){return e1[1](e1[2])}return r1=new NavItem({props:{icon:"Experience",indentLevel:0,selected:e1[0].selectedLayoutId===e1[2]._id,text:e1[2].name,$$slots:{default:[create_default_slot_1$1O]},$$scope:{ctx:e1}}}),r1.$on("click",i1),{key:n1,first:null,c(){t1=empty$1(),create_component(r1.$$.fragment),this.first=t1},m(a1,s1){insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,s1){e1=a1;const l1={};s1&1&&(l1.selected=e1[0].selectedLayoutId===e1[2]._id),s1&1&&(l1.text=e1[2].name),s1&33&&(l1.$$scope={dirty:s1,ctx:e1}),r1.$set(l1)},i(a1){o1||(transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(r1.$$.fragment,a1),o1=!1},d(a1){a1&&detach(t1),destroy_component(r1,a1)}}}function create_default_slot$2f(n1){let e1,t1=[],r1=new Map,o1,i1=n1[0].layouts;const a1=s1=>s1[2]._id;for(let s1=0;s1<i1.length;s1+=1){let l1=get_each_context$D(n1,i1,s1),c1=a1(l1);r1.set(c1,t1[s1]=create_each_block$D(c1,l1))}return{c(){e1=element("div");for(let s1=0;s1<t1.length;s1+=1)t1[s1].c();attr(e1,"class","layouts svelte-1yaxv10")},m(s1,l1){insert$1(s1,e1,l1);for(let c1=0;c1<t1.length;c1+=1)t1[c1].m(e1,null);o1=!0},p(s1,l1){l1&1&&(i1=s1[0].layouts,group_outros(),t1=update_keyed_each(t1,l1,a1,1,s1,i1,r1,e1,outro_and_destroy_block,create_each_block$D,null,get_each_context$D),check_outros())},i(s1){if(!o1){for(let l1=0;l1<i1.length;l1+=1)transition_in(t1[l1]);o1=!0}},o(s1){for(let l1=0;l1<t1.length;l1+=1)transition_out(t1[l1]);o1=!1},d(s1){s1&&detach(e1);for(let l1=0;l1<t1.length;l1+=1)t1[l1].d()}}}function create_fragment$3i(n1){let e1,t1;return e1=new Panel({props:{title:"Layouts",borderRight:!0,$$slots:{default:[create_default_slot$2f]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&33&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3i(n1,e1,t1){let r1;return component_subscribe(n1,store,i1=>t1(0,r1=i1)),[r1,i1=>store.actions.layouts.select(i1._id)]}class LayoutListPanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3i,create_fragment$3i,safe_not_equal,{})}}function create_default_slot_5$P(n1){let e1;return{c(){e1=text(`Custom layouts are being deprecated. They will be removed in a future
1703
1703
  release.`)},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_4$Y(n1){let e1;return{c(){e1=text("You can save the content of this layout by pressing the button below.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$1b(n1){let e1;return{c(){e1=text(`This will copy all components inside your layout, which you can then paste
1704
1704
  into a screen.`)},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1q(n1){let e1;return{c(){e1=text("Copy components")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1N(n1){let e1,t1,r1,o1,i1,a1,s1,l1;return e1=new Banner({props:{type:"warning",showCloseButton:!1,$$slots:{default:[create_default_slot_5$P]},$$scope:{ctx:n1}}}),r1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_4$Y]},$$scope:{ctx:n1}}}),i1=new Body({props:{size:"S",$$slots:{default:[create_default_slot_3$1b]},$$scope:{ctx:n1}}}),s1=new Button({props:{cta:!0,$$slots:{default:[create_default_slot_2$1q]},$$scope:{ctx:n1}}}),s1.$on("click",n1[1]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment),o1=space$1(),create_component(i1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment)},m(c1,u1){mount_component(e1,c1,u1),insert$1(c1,t1,u1),mount_component(r1,c1,u1),insert$1(c1,o1,u1),mount_component(i1,c1,u1),insert$1(c1,a1,u1),mount_component(s1,c1,u1),l1=!0},p(c1,u1){const f1={};u1&4&&(f1.$$scope={dirty:u1,ctx:c1}),e1.$set(f1);const p1={};u1&4&&(p1.$$scope={dirty:u1,ctx:c1}),r1.$set(p1);const d1={};u1&4&&(d1.$$scope={dirty:u1,ctx:c1}),i1.$set(d1);const m1={};u1&4&&(m1.$$scope={dirty:u1,ctx:c1}),s1.$set(m1)},i(c1){l1||(transition_in(e1.$$.fragment,c1),transition_in(r1.$$.fragment,c1),transition_in(i1.$$.fragment,c1),transition_in(s1.$$.fragment,c1),l1=!0)},o(c1){transition_out(e1.$$.fragment,c1),transition_out(r1.$$.fragment,c1),transition_out(i1.$$.fragment,c1),transition_out(s1.$$.fragment,c1),l1=!1},d(c1){destroy_component(e1,c1),c1&&detach(t1),destroy_component(r1,c1),c1&&detach(o1),destroy_component(i1,c1),c1&&detach(a1),destroy_component(s1,c1)}}}function create_default_slot$2e(n1){let e1,t1;return e1=new Layout$n({props:{paddingX:"L",paddingY:"XL",gap:"S",$$slots:{default:[create_default_slot_1$1N]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&4&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3h(n1){var r1;let e1,t1;return e1=new Panel({props:{title:(r1=n1[0])==null?void 0:r1.name,icon:"Experience",borderLeft:!0,wide:!0,$$slots:{default:[create_default_slot$2e]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(o1,i1){mount_component(e1,o1,i1),t1=!0},p(o1,[i1]){var s1;const a1={};i1&1&&(a1.title=(s1=o1[0])==null?void 0:s1.name),i1&4&&(a1.$$scope={dirty:i1,ctx:o1}),e1.$set(a1)},i(o1){t1||(transition_in(e1.$$.fragment,o1),t1=!0)},o(o1){transition_out(e1.$$.fragment,o1),t1=!1},d(o1){destroy_component(e1,o1)}}}function instance$3h(n1,e1,t1){let r1;return component_subscribe(n1,selectedLayout,i1=>t1(0,r1=i1)),[r1,()=>{let i1=new Component("@budibase/standard-components/container").instanceName(r1.name).customProps({gap:"M",direction:"column",hAlign:"stretch",vAlign:"top",size:"shrink"}).json();i1._children=r1.props._children,i1=JSON.parse(JSON.stringify(i1).replace("@budibase/standard-components/screenslot","@budibase/standard-components/container")),store.actions.components.copy(i1),notifications.success("Components copied successfully")}]}class LayoutSettingsPanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3h,create_fragment$3h,safe_not_equal,{})}}function create_fragment$3g(n1){let e1,t1,r1,o1;return e1=new LayoutListPanel({}),r1=new LayoutSettingsPanel({}),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p:noop$5,i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}class U5BlayoutIdu5D extends SvelteComponent{constructor(e1){super(),init$2(this,e1,null,create_fragment$3g,safe_not_equal,{})}}function create_fragment$3f(n1){let e1;const t1=n1[1].default,r1=create_slot(t1,n1,n1[0],null);return{c(){r1&&r1.c()},m(o1,i1){r1&&r1.m(o1,i1),e1=!0},p(o1,[i1]){r1&&r1.p&&(!e1||i1&1)&&update_slot_base(r1,t1,o1,o1[0],e1?get_slot_changes(t1,o1[0],i1,null):get_all_dirty_from_scope(o1[0]),null)},i(o1){e1||(transition_in(r1,o1),e1=!0)},o(o1){transition_out(r1,o1),e1=!1},d(o1){r1&&r1.d(o1)}}}function instance$3g(n1,e1,t1){let r1;component_subscribe(n1,store,s1=>t1(2,r1=s1));let{$$slots:o1={},$$scope:i1}=e1;const a1=syncURLToState({urlParam:"layoutId",stateKey:"selectedLayoutId",validate:s1=>{var l1;return(l1=r1.layouts)==null?void 0:l1.some(c1=>c1._id===s1)},fallbackUrl:"../",store,routify:routify$1});return onDestroy(a1),n1.$$set=s1=>{"$$scope"in s1&&t1(0,i1=s1.$$scope)},[i1,o1]}class Layout$f extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3g,create_fragment$3f,safe_not_equal,{})}}function instance$3f(n1,e1,t1){let r1,o1;return component_subscribe(n1,store,i1=>t1(0,r1=i1)),component_subscribe(n1,redirect,i1=>t1(1,o1=i1)),onMount(()=>{var i1;(i1=r1.layouts)!=null&&i1.length&&o1(`./${r1.layouts[0]._id}`)}),[]}class Layouts extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3f,null,safe_not_equal,{})}}function create_fragment$3e(n1){let e1;const t1=n1[3].default,r1=create_slot(t1,n1,n1[2],null);return{c(){r1&&r1.c()},m(o1,i1){r1&&r1.m(o1,i1),e1=!0},p(o1,[i1]){r1&&r1.p&&(!e1||i1&4)&&update_slot_base(r1,t1,o1,o1[2],e1?get_slot_changes(t1,o1[2],i1,null):get_all_dirty_from_scope(o1[2]),null)},i(o1){e1||(transition_in(r1,o1),e1=!0)},o(o1){transition_out(r1,o1),e1=!1},d(o1){r1&&r1.d(o1)}}}function instance$3e(n1,e1,t1){let r1,o1;component_subscribe(n1,redirect,s1=>t1(0,r1=s1)),component_subscribe(n1,store,s1=>t1(1,o1=s1));let{$$slots:i1={},$$scope:a1}=e1;return n1.$$set=s1=>{"$$scope"in s1&&t1(2,a1=s1.$$scope)},n1.$$.update=()=>{var s1;n1.$$.dirty&3&&((s1=o1.layouts)!=null&&s1.length||r1("../"))},[r1,o1,a1,i1]}class Layout$e extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3e,create_fragment$3e,safe_not_equal,{})}}function create_fragment$3d(n1){let e1,t1,r1;function o1(a1){n1[5](a1)}let i1={options:n1[3],getOptionLabel:func$g,getOptionValue:func_1$c,getOptionColour:n1[4],placeholder:n1[2],error:n1[1]};return n1[0]!==void 0&&(i1.value=n1[0]),e1=new Select_1$1({props:i1}),binding_callbacks.push(()=>bind$3(e1,"value",o1)),e1.$on("change",n1[6]),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,[s1]){const l1={};s1&8&&(l1.options=a1[3]),s1&4&&(l1.placeholder=a1[2]),s1&2&&(l1.error=a1[1]),!t1&&s1&1&&(t1=!0,l1.value=a1[0],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}const func$g=n1=>n1.name,func_1$c=n1=>n1._id;function instance$3d(n1,e1,t1){let r1;component_subscribe(n1,roles,u1=>t1(3,r1=u1));let{value:o1}=e1,{error:i1}=e1,{placeholder:a1=null}=e1;const s1=u1=>getRoleColour(u1._id);function l1(u1){o1=u1,t1(0,o1)}function c1(u1){bubble.call(this,n1,u1)}return n1.$$set=u1=>{"value"in u1&&t1(0,o1=u1.value),"error"in u1&&t1(1,i1=u1.error),"placeholder"in u1&&t1(2,a1=u1.placeholder)},[o1,i1,a1,r1,s1,l1,c1]}class RoleSelect$1 extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3d,create_fragment$3d,safe_not_equal,{value:0,error:1,placeholder:2})}}const NavigationLinksDrawer_svelte_svelte_type_style_lang="";function get_each_context$C(n1,e1,t1){const r1=n1.slice();return r1[13]=e1[t1],r1[14]=e1,r1[15]=t1,r1}function create_if_block$1A(n1){let e1,t1=[],r1=new Map,o1,i1,a1,s1,l1=n1[0];const c1=u1=>u1[13].id;for(let u1=0;u1<l1.length;u1+=1){let f1=get_each_context$C(n1,l1,u1),p1=c1(f1);r1.set(p1,t1[u1]=create_each_block$C(p1,f1))}return{c(){e1=element("div");for(let u1=0;u1<t1.length;u1+=1)t1[u1].c();attr(e1,"class","links svelte-1fwphm1")},m(u1,f1){insert$1(u1,e1,f1);for(let p1=0;p1<t1.length;p1+=1)t1[p1].m(e1,null);i1=!0,a1||(s1=[action_destroyer(o1=dndzone.call(null,e1,{items:n1[0],flipDurationMs,dropTargetStyle:{outline:"none"},dragDisabled:n1[1]})),listen(e1,"finalize",n1[6]),listen(e1,"consider",n1[5])],a1=!0)},p(u1,f1){if(f1&23){l1=u1[0],group_outros();for(let p1=0;p1<t1.length;p1+=1)t1[p1].r();t1=update_keyed_each(t1,f1,c1,1,u1,l1,r1,e1,fix_and_outro_and_destroy_block,create_each_block$C,null,get_each_context$C);for(let p1=0;p1<t1.length;p1+=1)t1[p1].a();check_outros()}o1&&is_function(o1.update)&&f1&3&&o1.update.call(null,{items:u1[0],flipDurationMs,dropTargetStyle:{outline:"none"},dragDisabled:u1[1]})},i(u1){if(!i1){for(let f1=0;f1<l1.length;f1+=1)transition_in(t1[f1]);i1=!0}},o(u1){for(let f1=0;f1<t1.length;f1+=1)transition_out(t1[f1]);i1=!1},d(u1){u1&&detach(e1);for(let f1=0;f1<t1.length;f1+=1)t1[f1].d();a1=!1,run_all(s1)}}}function create_each_block$C(n1,e1){let t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1,m1,_1,h1,b1,$1,y1=noop$5,k1,S1,C1;o1=new Icon({props:{name:"DragHandle",size:"XL"}});function A1(R1){e1[9](R1,e1[13])}let E1={placeholder:"Text"};e1[13].text!==void 0&&(E1.value=e1[13].text),s1=new Input$5({props:E1}),binding_callbacks.push(()=>bind$3(s1,"value",A1));function z1(R1){e1[10](R1,e1[13])}let I1={placeholder:"URL",options:e1[2]};e1[13].url!==void 0&&(I1.value=e1[13].url),u1=new Combobox_1({props:I1}),binding_callbacks.push(()=>bind$3(u1,"value",z1));function N1(R1){e1[11](R1,e1[13])}let U1={placeholder:"Minimum role"};e1[13].roleId!==void 0&&(U1.value=e1[13].roleId),d1=new RoleSelect$1({props:U1}),binding_callbacks.push(()=>bind$3(d1,"value",N1));function F1(){return e1[12](e1[13])}return h1=new Icon({props:{name:"Close",hoverable:!0,size:"S"}}),h1.$on("click",F1),{key:n1,first:null,c(){t1=element("div"),r1=element("div"),create_component(o1.$$.fragment),a1=space$1(),create_component(s1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),p1=space$1(),create_component(d1.$$.fragment),_1=space$1(),create_component(h1.$$.fragment),b1=space$1(),attr(r1,"class","handle svelte-1fwphm1"),attr(r1,"aria-label","drag-handle"),attr(r1,"style",i1=e1[1]?"cursor: grab":"cursor: grabbing"),attr(t1,"class","link svelte-1fwphm1"),this.first=t1},m(R1,D1){insert$1(R1,t1,D1),append$1(t1,r1),mount_component(o1,r1,null),append$1(t1,a1),mount_component(s1,t1,null),append$1(t1,c1),mount_component(u1,t1,null),append$1(t1,p1),mount_component(d1,t1,null),append$1(t1,_1),mount_component(h1,t1,null),append$1(t1,b1),k1=!0,S1||(C1=listen(r1,"mousedown",e1[8]),S1=!0)},p(R1,D1){e1=R1,(!k1||D1&2&&i1!==(i1=e1[1]?"cursor: grab":"cursor: grabbing"))&&attr(r1,"style",i1);const V1={};!l1&&D1&1&&(l1=!0,V1.value=e1[13].text,add_flush_callback(()=>l1=!1)),s1.$set(V1);const j1={};D1&4&&(j1.options=e1[2]),!f1&&D1&1&&(f1=!0,j1.value=e1[13].url,add_flush_callback(()=>f1=!1)),u1.$set(j1);const K1={};!m1&&D1&1&&(m1=!0,K1.value=e1[13].roleId,add_flush_callback(()=>m1=!1)),d1.$set(K1)},r(){$1=t1.getBoundingClientRect()},f(){fix_position(t1),y1()},a(){y1(),y1=create_animation(t1,$1,flip,{duration:flipDurationMs})},i(R1){k1||(transition_in(o1.$$.fragment,R1),transition_in(s1.$$.fragment,R1),transition_in(u1.$$.fragment,R1),transition_in(d1.$$.fragment,R1),transition_in(h1.$$.fragment,R1),k1=!0)},o(R1){transition_out(o1.$$.fragment,R1),transition_out(s1.$$.fragment,R1),transition_out(u1.$$.fragment,R1),transition_out(d1.$$.fragment,R1),transition_out(h1.$$.fragment,R1),k1=!1},d(R1){R1&&detach(t1),destroy_component(o1),destroy_component(s1),destroy_component(u1),destroy_component(d1),destroy_component(h1),S1=!1,C1()}}}function create_default_slot_2$1p(n1){let e1;return{c(){e1=text("Add Link")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_1$1M(n1){var a1;let e1,t1,r1,o1,i1=((a1=n1[0])==null?void 0:a1.length)&&create_if_block$1A(n1);return r1=new Button({props:{secondary:!0,icon:"Add",$$slots:{default:[create_default_slot_2$1p]},$$scope:{ctx:n1}}}),r1.$on("click",n1[3]),{c(){i1&&i1.c(),e1=space$1(),t1=element("div"),create_component(r1.$$.fragment)},m(s1,l1){i1&&i1.m(s1,l1),insert$1(s1,e1,l1),insert$1(s1,t1,l1),mount_component(r1,t1,null),o1=!0},p(s1,l1){var u1;(u1=s1[0])!=null&&u1.length?i1?(i1.p(s1,l1),l1&1&&transition_in(i1,1)):(i1=create_if_block$1A(s1),i1.c(),transition_in(i1,1),i1.m(e1.parentNode,e1)):i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros());const c1={};l1&65536&&(c1.$$scope={dirty:l1,ctx:s1}),r1.$set(c1)},i(s1){o1||(transition_in(i1),transition_in(r1.$$.fragment,s1),o1=!0)},o(s1){transition_out(i1),transition_out(r1.$$.fragment,s1),o1=!1},d(s1){i1&&i1.d(s1),s1&&detach(e1),s1&&detach(t1),destroy_component(r1)}}}function create_default_slot$2d(n1){let e1,t1,r1;return t1=new Layout$n({props:{noPadding:!0,gap:"S",$$slots:{default:[create_default_slot_1$1M]},$$scope:{ctx:n1}}}),{c(){e1=element("div"),create_component(t1.$$.fragment),attr(e1,"class","container svelte-1fwphm1")},m(o1,i1){insert$1(o1,e1,i1),mount_component(t1,e1,null),r1=!0},p(o1,i1){const a1={};i1&65543&&(a1.$$scope={dirty:i1,ctx:o1}),t1.$set(a1)},i(o1){r1||(transition_in(t1.$$.fragment,o1),r1=!0)},o(o1){transition_out(t1.$$.fragment,o1),r1=!1},d(o1){o1&&detach(e1),destroy_component(t1)}}}function create_fragment$3c(n1){let e1,t1;return e1=new DrawerContent({props:{$$slots:{default:[create_default_slot$2d]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&65543&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}const flipDurationMs=150;function instance$3c(n1,e1,t1){let r1,o1;component_subscribe(n1,store,h1=>t1(7,o1=h1));let{links:i1=[]}=e1,a1=!0;const s1=()=>{t1(0,i1=[...i1,{}])},l1=h1=>{t1(0,i1=i1.filter(b1=>b1.id!==h1))},c1=h1=>{t1(0,i1=h1.detail.items)},u1=h1=>{c1(h1),t1(1,a1=!0)},f1=()=>t1(1,a1=!1);function p1(h1,b1){n1.$$.not_equal(b1.text,h1)&&(b1.text=h1,t1(0,i1))}function d1(h1,b1){n1.$$.not_equal(b1.url,h1)&&(b1.url=h1,t1(0,i1))}function m1(h1,b1){n1.$$.not_equal(b1.roleId,h1)&&(b1.roleId=h1,t1(0,i1))}const _1=h1=>l1(h1.id);return n1.$$set=h1=>{"links"in h1&&t1(0,i1=h1.links)},n1.$$.update=()=>{n1.$$.dirty&1&&i1.forEach(h1=>{h1.id||(h1.id=shortid.exports.generate())}),n1.$$.dirty&128&&t1(2,r1=o1.screens.map(h1=>{var b1;return(b1=h1.routing)==null?void 0:b1.route}).filter(h1=>h1!=null))},[i1,a1,r1,s1,l1,c1,u1,o1,f1,p1,d1,m1,_1]}class NavigationLinksDrawer extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3c,create_fragment$3c,safe_not_equal,{links:0})}}function create_default_slot_1$1L(n1){let e1;return{c(){e1=text("Configure links")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_description_slot(n1){let e1;return{c(){e1=text("Configure the links in your navigation bar.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot$2c(n1){let e1;return{c(){e1=text("Save")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_buttons_slot$2(n1){let e1,t1;return e1=new Button({props:{cta:!0,slot:"buttons",$$slots:{default:[create_default_slot$2c]},$$scope:{ctx:n1}}}),e1.$on("click",n1[3]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&128&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_body_slot$1(n1){let e1,t1,r1;function o1(a1){n1[4](a1)}let i1={slot:"body"};return n1[1]!==void 0&&(i1.links=n1[1]),e1=new NavigationLinksDrawer({props:i1}),binding_callbacks.push(()=>bind$3(e1,"links",o1)),{c(){create_component(e1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),r1=!0},p(a1,s1){const l1={};!t1&&s1&2&&(t1=!0,l1.links=a1[1],add_flush_callback(()=>t1=!1)),e1.$set(l1)},i(a1){r1||(transition_in(e1.$$.fragment,a1),r1=!0)},o(a1){transition_out(e1.$$.fragment,a1),r1=!1},d(a1){destroy_component(e1,a1)}}}function create_fragment$3b(n1){let e1,t1,r1,o1;e1=new Button({props:{cta:!0,$$slots:{default:[create_default_slot_1$1L]},$$scope:{ctx:n1}}}),e1.$on("click",n1[2]);let i1={title:"Navigation Links",width:"calc(100% - 334px)",$$slots:{body:[create_body_slot$1],buttons:[create_buttons_slot$2],description:[create_description_slot]},$$scope:{ctx:n1}};return r1=new Drawer({props:i1}),n1[5](r1),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),mount_component(r1,a1,s1),o1=!0},p(a1,[s1]){const l1={};s1&128&&(l1.$$scope={dirty:s1,ctx:a1}),e1.$set(l1);const c1={};s1&130&&(c1.$$scope={dirty:s1,ctx:a1}),r1.$set(c1)},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(r1.$$.fragment,a1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(r1.$$.fragment,a1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),n1[5](null),destroy_component(r1,a1)}}}function instance$3b(n1,e1,t1){let r1;component_subscribe(n1,store,u1=>t1(6,r1=u1));let o1,i1;const a1=()=>{t1(1,i1=fp.cloneDeep(r1.navigation.links||[])),o1.show()},s1=async()=>{let u1=r1.navigation;u1.links=i1,await store.actions.navigation.save(u1),o1.hide()};function l1(u1){i1=u1,t1(1,i1)}function c1(u1){binding_callbacks[u1?"unshift":"push"](()=>{o1=u1,t1(0,o1)})}return[o1,i1,a1,s1,l1,c1]}class NavigationLinksEditor extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3b,create_fragment$3b,safe_not_equal,{})}}function create_default_slot_10$i(n1){let e1;return{c(){e1=text("Position")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_9$n(n1){let e1,t1,r1,o1;return e1=new ActionButton({props:{selected:n1[0].navigation.navigation==="Top",quiet:n1[0].navigation.navigation!=="Top",icon:"PaddingTop"}}),e1.$on("click",n1[2]),r1=new ActionButton({props:{selected:n1[0].navigation.navigation==="Left",quiet:n1[0].navigation.navigation!=="Left",icon:"PaddingLeft"}}),r1.$on("click",n1[3]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&1&&(s1.selected=i1[0].navigation.navigation==="Top"),a1&1&&(s1.quiet=i1[0].navigation.navigation!=="Top"),e1.$set(s1);const l1={};a1&1&&(l1.selected=i1[0].navigation.navigation==="Left"),a1&1&&(l1.quiet=i1[0].navigation.navigation!=="Left"),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot_8$o(n1){let e1,t1,r1,o1;return e1=new Label({props:{$$slots:{default:[create_default_slot_10$i]},$$scope:{ctx:n1}}}),r1=new ActionGroup({props:{quiet:!0,$$slots:{default:[create_default_slot_9$n]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&4096&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&4097&&(l1.$$scope={dirty:a1,ctx:i1}),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_if_block_2$y(n1){let e1,t1,r1,o1;return e1=new Checkbox_1({props:{text:"Sticky header",value:n1[0].navigation.sticky}}),e1.$on("change",n1[4]),r1=new Select_1$1({props:{label:"Width",options:["Max","Large","Medium","Small"],plaveholder:null,value:n1[0].navigation.navWidth}}),r1.$on("change",n1[5]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&1&&(s1.value=i1[0].navigation.sticky),e1.$set(s1);const l1={};a1&1&&(l1.value=i1[0].navigation.navWidth),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_if_block_1$U(n1){let e1,t1;return e1=new Input$5({props:{value:n1[0].navigation.logoUrl,placeholder:"Add logo URL",updateOnChange:!1}}),e1.$on("change",n1[7]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1&&(i1.value=r1[0].navigation.logoUrl),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_7$z(n1){let e1,t1,r1,o1;e1=new Checkbox_1({props:{text:"Logo",value:!n1[0].navigation.hideLogo}}),e1.$on("change",n1[6]);let i1=!n1[0].navigation.hideLogo&&create_if_block_1$U(n1);return{c(){create_component(e1.$$.fragment),t1=space$1(),i1&&i1.c(),r1=empty$1()},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),i1&&i1.m(a1,s1),insert$1(a1,r1,s1),o1=!0},p(a1,s1){const l1={};s1&1&&(l1.value=!a1[0].navigation.hideLogo),e1.$set(l1),a1[0].navigation.hideLogo?i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros()):i1?(i1.p(a1,s1),s1&1&&transition_in(i1,1)):(i1=create_if_block_1$U(a1),i1.c(),transition_in(i1,1),i1.m(r1.parentNode,r1))},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(i1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(i1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),i1&&i1.d(a1),a1&&detach(r1)}}}function create_if_block$1z(n1){let e1,t1;return e1=new Input$5({props:{value:n1[0].navigation.title,placeholder:"Add title",updateOnChange:!1}}),e1.$on("change",n1[9]),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&1&&(i1.value=r1[0].navigation.title),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_6$G(n1){let e1,t1,r1,o1;e1=new Checkbox_1({props:{text:"Title",value:!n1[0].navigation.hideTitle}}),e1.$on("change",n1[8]);let i1=!n1[0].navigation.hideTitle&&create_if_block$1z(n1);return{c(){create_component(e1.$$.fragment),t1=space$1(),i1&&i1.c(),r1=empty$1()},m(a1,s1){mount_component(e1,a1,s1),insert$1(a1,t1,s1),i1&&i1.m(a1,s1),insert$1(a1,r1,s1),o1=!0},p(a1,s1){const l1={};s1&1&&(l1.value=!a1[0].navigation.hideTitle),e1.$set(l1),a1[0].navigation.hideTitle?i1&&(group_outros(),transition_out(i1,1,1,()=>{i1=null}),check_outros()):i1?(i1.p(a1,s1),s1&1&&transition_in(i1,1)):(i1=create_if_block$1z(a1),i1.c(),transition_in(i1,1),i1.m(r1.parentNode,r1))},i(a1){o1||(transition_in(e1.$$.fragment,a1),transition_in(i1),o1=!0)},o(a1){transition_out(e1.$$.fragment,a1),transition_out(i1),o1=!1},d(a1){destroy_component(e1,a1),a1&&detach(t1),i1&&i1.d(a1),a1&&detach(r1)}}}function create_default_slot_5$O(n1){let e1;return{c(){e1=text("Background color")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_4$X(n1){let e1,t1,r1,o1;return e1=new Label({props:{$$slots:{default:[create_default_slot_5$O]},$$scope:{ctx:n1}}}),r1=new ColorPicker({props:{spectrumTheme:n1[0].theme,value:n1[0].navigation.navBackground||DefaultAppTheme.navBackground}}),r1.$on("change",n1[10]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&4096&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&1&&(l1.spectrumTheme=i1[0].theme),a1&1&&(l1.value=i1[0].navigation.navBackground||DefaultAppTheme.navBackground),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot_3$1a(n1){let e1;return{c(){e1=text("Text color")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1o(n1){let e1,t1,r1,o1;return e1=new Label({props:{$$slots:{default:[create_default_slot_3$1a]},$$scope:{ctx:n1}}}),r1=new ColorPicker({props:{spectrumTheme:n1[0].theme,value:n1[0].navigation.navTextColor||DefaultAppTheme.navTextColor}}),r1.$on("change",n1[11]),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment)},m(i1,a1){mount_component(e1,i1,a1),insert$1(i1,t1,a1),mount_component(r1,i1,a1),o1=!0},p(i1,a1){const s1={};a1&4096&&(s1.$$scope={dirty:a1,ctx:i1}),e1.$set(s1);const l1={};a1&1&&(l1.spectrumTheme=i1[0].theme),a1&1&&(l1.value=i1[0].navigation.navTextColor||DefaultAppTheme.navTextColor),r1.$set(l1)},i(i1){o1||(transition_in(e1.$$.fragment,i1),transition_in(r1.$$.fragment,i1),o1=!0)},o(i1){transition_out(e1.$$.fragment,i1),transition_out(r1.$$.fragment,i1),o1=!1},d(i1){destroy_component(e1,i1),i1&&detach(t1),destroy_component(r1,i1)}}}function create_default_slot_1$1K(n1){let e1,t1,r1,o1,i1,a1,s1,l1,c1,u1,f1,p1,d1;e1=new NavigationLinksEditor({}),r1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_8$o]},$$scope:{ctx:n1}}});let m1=n1[0].navigation.navigation==="Top"&&create_if_block_2$y(n1);return a1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_7$z]},$$scope:{ctx:n1}}}),l1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_6$G]},$$scope:{ctx:n1}}}),u1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_4$X]},$$scope:{ctx:n1}}}),p1=new Layout$n({props:{noPadding:!0,gap:"XS",$$slots:{default:[create_default_slot_2$1o]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment),t1=space$1(),create_component(r1.$$.fragment),o1=space$1(),m1&&m1.c(),i1=space$1(),create_component(a1.$$.fragment),s1=space$1(),create_component(l1.$$.fragment),c1=space$1(),create_component(u1.$$.fragment),f1=space$1(),create_component(p1.$$.fragment)},m(_1,h1){mount_component(e1,_1,h1),insert$1(_1,t1,h1),mount_component(r1,_1,h1),insert$1(_1,o1,h1),m1&&m1.m(_1,h1),insert$1(_1,i1,h1),mount_component(a1,_1,h1),insert$1(_1,s1,h1),mount_component(l1,_1,h1),insert$1(_1,c1,h1),mount_component(u1,_1,h1),insert$1(_1,f1,h1),mount_component(p1,_1,h1),d1=!0},p(_1,h1){const b1={};h1&4097&&(b1.$$scope={dirty:h1,ctx:_1}),r1.$set(b1),_1[0].navigation.navigation==="Top"?m1?(m1.p(_1,h1),h1&1&&transition_in(m1,1)):(m1=create_if_block_2$y(_1),m1.c(),transition_in(m1,1),m1.m(i1.parentNode,i1)):m1&&(group_outros(),transition_out(m1,1,1,()=>{m1=null}),check_outros());const $1={};h1&4097&&($1.$$scope={dirty:h1,ctx:_1}),a1.$set($1);const y1={};h1&4097&&(y1.$$scope={dirty:h1,ctx:_1}),l1.$set(y1);const k1={};h1&4097&&(k1.$$scope={dirty:h1,ctx:_1}),u1.$set(k1);const S1={};h1&4097&&(S1.$$scope={dirty:h1,ctx:_1}),p1.$set(S1)},i(_1){d1||(transition_in(e1.$$.fragment,_1),transition_in(r1.$$.fragment,_1),transition_in(m1),transition_in(a1.$$.fragment,_1),transition_in(l1.$$.fragment,_1),transition_in(u1.$$.fragment,_1),transition_in(p1.$$.fragment,_1),d1=!0)},o(_1){transition_out(e1.$$.fragment,_1),transition_out(r1.$$.fragment,_1),transition_out(m1),transition_out(a1.$$.fragment,_1),transition_out(l1.$$.fragment,_1),transition_out(u1.$$.fragment,_1),transition_out(p1.$$.fragment,_1),d1=!1},d(_1){destroy_component(e1,_1),_1&&detach(t1),destroy_component(r1,_1),_1&&detach(o1),m1&&m1.d(_1),_1&&detach(i1),destroy_component(a1,_1),_1&&detach(s1),destroy_component(l1,_1),_1&&detach(c1),destroy_component(u1,_1),_1&&detach(f1),destroy_component(p1,_1)}}}function create_default_slot$2b(n1){let e1,t1;return e1=new Layout$n({props:{paddingX:"L",paddingY:"XL",gap:"S",$$slots:{default:[create_default_slot_1$1K]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&4097&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_fragment$3a(n1){let e1,t1;return e1=new Panel({props:{title:"Navigation",borderRight:!0,$$slots:{default:[create_default_slot$2b]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,[o1]){const i1={};o1&4097&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function instance$3a(n1,e1,t1){let r1;component_subscribe(n1,store,_1=>t1(0,r1=_1));const o1=async(_1,h1)=>{try{let b1=r1.navigation;b1[_1]=h1,await store.actions.navigation.save(b1)}catch{notifications.error("Error updating navigation settings")}};return[r1,o1,()=>o1("navigation","Top"),()=>o1("navigation","Left"),_1=>o1("sticky",_1.detail),_1=>o1("navWidth",_1.detail),_1=>o1("hideLogo",!_1.detail),_1=>o1("logoUrl",_1.detail),_1=>o1("hideTitle",!_1.detail),_1=>o1("title",_1.detail),_1=>o1("navBackground",_1.detail),_1=>o1("navTextColor",_1.detail)]}class NavigationSettingsPanel extends SvelteComponent{constructor(e1){super(),init$2(this,e1,instance$3a,create_fragment$3a,safe_not_equal,{})}}function create_if_block$1y(n1){let e1,t1;return e1=new Banner({props:{type:"warning",extraButtonText:"Detach custom layout",extraButtonAction:n1[1],showCloseButton:!1,$$slots:{default:[create_default_slot_4$W]},$$scope:{ctx:n1}}}),{c(){create_component(e1.$$.fragment)},m(r1,o1){mount_component(e1,r1,o1),t1=!0},p(r1,o1){const i1={};o1&4&&(i1.$$scope={dirty:o1,ctx:r1}),e1.$set(i1)},i(r1){t1||(transition_in(e1.$$.fragment,r1),t1=!0)},o(r1){transition_out(e1.$$.fragment,r1),t1=!1},d(r1){destroy_component(e1,r1)}}}function create_default_slot_4$W(n1){let e1;return{c(){e1=text(`You can't preview your navigation settings using this screen as it uses
1705
1705
  a custom layout, which is deprecated`)},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_3$19(n1){let e1;return{c(){e1=text("Your navigation is configured for all the screens within your app.")},m(t1,r1){insert$1(t1,e1,r1)},d(t1){t1&&detach(e1)}}}function create_default_slot_2$1n(n1){let e1;return{c(){e1=text(`You can hide and show your navigation for each screen in the screen