@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
1 lines • 132 kB
JavaScript
(function(oe,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("lodash-es"),require("vue-i18n"),require("../locale/index.umd.js"),require("../common/index.umd.js"),require("@vueuse/core"),require("../data-view/index.umd.js"),require("../dynamic-resolver/index.umd.js"),require("../designer-canvas/index.umd.js"),require("../property-panel/index.umd.js"),require("../accordion/index.umd.js"),require("../avatar/index.umd.js"),require("../../designer/button-edit/index.umd.js"),require("../button-group/index.umd.js"),require("../calendar/index.umd.js"),require("../capsule/index.umd.js"),require("../../designer/checkbox/index.umd.js"),require("../../designer/checkbox-group/index.umd.js"),require("../combo-list/index.umd.js"),require("../combo-tree/index.umd.js"),require("../component/index.umd.js"),require("../color-picker/index.umd.js"),require("../content-container/index.umd.js"),require("../date-picker/index.umd.js"),require("../../designer/data-grid/index.umd.js"),require("../dropdown/index.umd.js"),require("../dynamic-form/index.umd.js"),require("../events-editor/index.umd.js"),require("../filter-bar/index.umd.js"),require("../field-selector/index.umd.js"),require("../binding-selector/index.umd.js"),require("../image-cropper/index.umd.js"),require("../../designer/input-group/index.umd.js"),require("../layout/index.umd.js"),require("../list-nav/index.umd.js"),require("../../designer/list-view/index.umd.js"),require("../lookup/index.umd.js"),require("../mapping-editor/index.umd.js"),require("../nav/index.umd.js"),require("../number-range/index.umd.js"),require("../number-spinner/index.umd.js"),require("../order/index.umd.js"),require("../page-header/index.umd.js"),require("../page-footer/index.umd.js"),require("../pagination/index.umd.js"),require("../progress/index.umd.js"),require("../query-solution/index.umd.js"),require("../../designer/radio-group/index.umd.js"),require("../rate/index.umd.js"),require("../response-toolbar/index.umd.js"),require("../response-layout/index.umd.js"),require("../response-layout-editor/index.umd.js"),require("../search-box/index.umd.js"),require("../section/index.umd.js"),require("../smoke-detector/index.umd.js"),require("../splitter/index.umd.js"),require("../step/index.umd.js"),require("../switch/index.umd.js"),require("../tabs/index.umd.js"),require("../tags/index.umd.js"),require("../text/index.umd.js"),require("../time-picker/index.umd.js"),require("../transfer/index.umd.js"),require("../tree-view/index.umd.js"),require("../uploader/index.umd.js"),require("../verify-detail/index.umd.js"),require("../video/index.umd.js"),require("../textarea/index.umd.js"),require("../schema-selector/index.umd.js"),require("../../designer/tree-grid/index.umd.js"),require("../event-parameter/index.umd.js"),require("../filter-condition-editor/index.umd.js"),require("../fieldset/index.umd.js"),require("../sort-condition-editor/index.umd.js"),require("../menu-lookup/index.umd.js"),require("../../designer/drawer/index.umd.js"),require("../json-editor/index.umd.js"),require("../property-editor/index.umd.js"),require("../expression-editor/index.umd.js"),require("../code-editor/index.umd.js"),require("../html-template/index.umd.js"),require("../collection-property-editor/index.umd.js"),require("../modal/index.umd.js"),require("../external-container/index.umd.js"),require("../language-textbox/index.umd.js"),require("../notify/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","vue-i18n","../locale/index.umd.js","../common/index.umd.js","@vueuse/core","../data-view/index.umd.js","../dynamic-resolver/index.umd.js","../designer-canvas/index.umd.js","../property-panel/index.umd.js","../accordion/index.umd.js","../avatar/index.umd.js","../../designer/button-edit/index.umd.js","../button-group/index.umd.js","../calendar/index.umd.js","../capsule/index.umd.js","../../designer/checkbox/index.umd.js","../../designer/checkbox-group/index.umd.js","../combo-list/index.umd.js","../combo-tree/index.umd.js","../component/index.umd.js","../color-picker/index.umd.js","../content-container/index.umd.js","../date-picker/index.umd.js","../../designer/data-grid/index.umd.js","../dropdown/index.umd.js","../dynamic-form/index.umd.js","../events-editor/index.umd.js","../filter-bar/index.umd.js","../field-selector/index.umd.js","../binding-selector/index.umd.js","../image-cropper/index.umd.js","../../designer/input-group/index.umd.js","../layout/index.umd.js","../list-nav/index.umd.js","../../designer/list-view/index.umd.js","../lookup/index.umd.js","../mapping-editor/index.umd.js","../nav/index.umd.js","../number-range/index.umd.js","../number-spinner/index.umd.js","../order/index.umd.js","../page-header/index.umd.js","../page-footer/index.umd.js","../pagination/index.umd.js","../progress/index.umd.js","../query-solution/index.umd.js","../../designer/radio-group/index.umd.js","../rate/index.umd.js","../response-toolbar/index.umd.js","../response-layout/index.umd.js","../response-layout-editor/index.umd.js","../search-box/index.umd.js","../section/index.umd.js","../smoke-detector/index.umd.js","../splitter/index.umd.js","../step/index.umd.js","../switch/index.umd.js","../tabs/index.umd.js","../tags/index.umd.js","../text/index.umd.js","../time-picker/index.umd.js","../transfer/index.umd.js","../tree-view/index.umd.js","../uploader/index.umd.js","../verify-detail/index.umd.js","../video/index.umd.js","../textarea/index.umd.js","../schema-selector/index.umd.js","../../designer/tree-grid/index.umd.js","../event-parameter/index.umd.js","../filter-condition-editor/index.umd.js","../fieldset/index.umd.js","../sort-condition-editor/index.umd.js","../menu-lookup/index.umd.js","../../designer/drawer/index.umd.js","../json-editor/index.umd.js","../property-editor/index.umd.js","../expression-editor/index.umd.js","../code-editor/index.umd.js","../html-template/index.umd.js","../collection-property-editor/index.umd.js","../modal/index.umd.js","../external-container/index.umd.js","../language-textbox/index.umd.js","../notify/index.umd.js"],r):(oe=typeof globalThis<"u"?globalThis:oe||self,r(oe["content-container"]={},oe.Vue,oe.LodashES,oe.vueI18n,oe.locale,oe.common,oe.VueUseCore,oe.dataView,oe.dynamicResolver))})(this,function(oe,r,ie,mt,rt,Ne,tn,Y,it){"use strict";var Wo=Object.defineProperty;var Go=(oe,r,ie)=>r in oe?Wo(oe,r,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[r]=ie;var Z=(oe,r,ie)=>Go(oe,typeof r!="symbol"?r+"":r,ie);function Vt(n,e){let t;function o(d){const{properties:h,title:m,ignore:f}=d,v=f&&Array.isArray(f),w=Object.keys(h).reduce((T,E)=>((!v||!f.find(q=>q===E))&&(T[E]=h[E].type==="object"&&h[E].properties?o(h[E]):ie.cloneDeep(h[E].default)),T),{});if(m&&(!v||!f.find(T=>T==="id"))){const T=m.toLowerCase().replace(/-/g,"_");w.id=`${T}_${Math.random().toString().slice(2,6)}`}return w}function i(d){const{properties:h,title:m,required:f}=d;if(f&&Array.isArray(f)){const v=f.reduce((w,T)=>(w[T]=h[T].type==="object"&&h[T].properties?o(h[T]):ie.cloneDeep(h[T].default),w),{});if(m&&f.find(w=>w==="id")){const w=m.toLowerCase().replace(/-/g,"_");v.id=`${w}_${Math.random().toString().slice(2,6)}`}return v}return{type:m}}function s(d,h={},m){const f=n[d];if(f){let v=i(f);const w=e[d];return v=w?w({getSchemaByType:s},v,h,m):v,t!=null&&t.appendIdentifyForNewControl&&t.appendIdentifyForNewControl(v),v}return null}function a(d,h){const m=o(h);return Object.keys(m).reduce((f,v)=>(Object.prototype.hasOwnProperty.call(d,v)&&(f[v]&&ie.isPlainObject(f[v])&&ie.isPlainObject(d[v]||!d[v])?Object.assign(f[v],d[v]||{}):f[v]=d[v]),f),m),m}function u(d,h){return Object.keys(d).filter(f=>d[f]!=null).reduce((f,v)=>{if(h.has(v)){const w=h.get(v);if(typeof w=="string")f[w]=d[v];else{const T=w(v,d[v],d);Object.assign(f,T)}}else f[v]=d[v];return f},{})}function l(d,h,m=new Map){const f=a(d,h);return u(f,m)}function c(d){var m;const h=d.type;if(h){const f=n[h];if(!f)return d;const v=a(d,f),w=((m=d.editor)==null?void 0:m.type)||"";if(w){const T=n[w],E=a(d.editor,T);v.editor=E}return v}return d}function p(d){t=d}return{getSchemaByType:s,resolveSchemaWithDefaultValue:c,resolveSchemaToProps:l,mappingSchemaToProps:u,setDesignerContext:p}}const Pt={},It={},{getSchemaByType:Yo,resolveSchemaWithDefaultValue:nn,resolveSchemaToProps:on,mappingSchemaToProps:rn,setDesignerContext:Xo}=Vt(Pt,It);function an(n={}){function e(c,p,d,h){if(typeof d=="number")return h[c].length===d;if(typeof d=="object"){const m=Object.keys(d)[0],f=d[m];if(m==="not")return Number(h[c].length)!==Number(f);if(m==="moreThan")return Number(h[c].length)>=Number(f);if(m==="lessThan")return Number(h[c].length)<=Number(f)}return!1}function t(c,p,d,h){return h[c]&&h[c].propertyValue&&String(h[c].propertyValue.value)===String(d)}const o=new Map([["length",e],["getProperty",t]]);Object.keys(n).reduce((c,p)=>(c.set(p,n[p]),c),o);function i(c,p){const d=c;return typeof p=="number"?[{target:d,operator:"length",param:null,value:Number(p)}]:typeof p=="boolean"?[{target:d,operator:"getProperty",param:c,value:!!p}]:typeof p=="object"?Object.keys(p).map(h=>{if(h==="length")return{target:d,operator:"length",param:null,value:p[h]};const m=h,f=p[h];return{target:d,operator:"getProperty",param:m,value:f}}):[]}function s(c){return Object.keys(c).reduce((d,h)=>{const m=i(h,c[h]);return d.push(...m),d},[])}function a(c,p){if(o.has(c.operator)){const d=o.get(c.operator);return d&&d(c.target,c.param,c.value,p)||!1}return!1}function u(c,p){return s(c).reduce((m,f)=>m&&a(f,p),!0)}function l(c,p){const d=Object.keys(c),h=d.includes("allOf"),m=d.includes("anyOf"),f=h||m,T=(f?c[f?h?"allOf":"anyOf":"allOf"]:[c]).map(q=>u(q,p));return h?!T.includes(!1):T.includes(!0)}return{parseValueSchema:l}}const sn={convertTo:(n,e,t,o)=>{n.appearance||(n.appearance={}),n.appearance[e]=t},convertFrom:(n,e,t)=>n.appearance?n.appearance[e]:n[e]},ln={convertFrom:(n,e,t)=>n.buttons&&n.buttons.length?`共 ${n.buttons.length} 项`:"无"},cn={convertTo:(n,e,t,o)=>{n.editor&&(n.editor[e]=t)},convertFrom:(n,e,t)=>n.editor&&Object.prototype.hasOwnProperty.call(n.editor,e)?n.editor[e]:n[e]},N={button:{type:"button",name:"按钮"},"response-toolbar":{type:"response-toolbar",name:"工具栏"},"response-toolbar-item":{type:"response-toolbar-item",name:"按钮"},"content-container":{type:"content-container",name:"容器"},"input-group":{type:"input-group",name:"文本"},textarea:{type:"textarea",name:"多行文本"},lookup:{type:"lookup",name:"帮助"},"number-spinner":{type:"number-spinner",name:"数值"},"date-picker":{type:"date-picker",name:"日期"},switch:{type:"switch",name:"开关"},"radio-group":{type:"radio-group",name:"单选组"},"check-box":{type:"check-box",name:"复选框"},"check-group":{type:"check-group",name:"复选框组"},"combo-list":{type:"combo-list",name:"下拉列表"},"response-form":{type:"response-form",name:"卡片面板"},"response-layout":{type:"response-layout",name:"布局容器",icon:"response-layout-3"},"response-layout-item":{type:"response-layout-item",name:"布局",icon:"response-layout-1"},"tree-grid":{type:"tree-grid",name:"树表格"},"tree-grid-column":{type:"tree-grid-column",name:"树表格列"},"data-grid":{type:"data-grid",name:"表格"},"data-grid-column":{type:"data-grid-column",name:"表格列"},module:{type:"Module",name:"模块"},component:{type:"component",name:"组件"},tabs:{type:"tabs",name:"标签页"},"tab-page":{type:"tab-page",name:"标签页项",dependentParentControl:"Tab"},"tab-toolbar-item":{type:"tab-toolbar-item",name:"标签页工具栏按钮"},"html-template":{type:"html-template",name:"模板容器"},"time-picker":{type:"time-picker",name:"时间选择"},section:{type:"section",name:"分组面板"},"section-toolbar":{type:"section-toolbar",name:"分组面板工具栏"},"section-toolbar-item":{type:"section-toolbar-item",name:"分组面板按钮"},splitter:{type:"splitter",name:"分栏面板"},"splitter-pane":{type:"splitter-pane",name:"分栏面板项",dependentParentControl:"Splitter"},"component-ref":{type:"component-ref",name:"组件引用节点"},uploader:{type:"uploader",name:"附件上传"},"page-header":{type:"page-header",name:"页头"},"page-footer":{type:"page-footer",name:"页脚"},"tab-toolbar":{type:"tab-toolbar",name:"标签页工具栏"},fieldset:{type:"fieldset",name:"分组"},"query-solution":{type:"query-solution",name:"筛选方案"},drawer:{type:"drawer",name:"抽屉"},"external-container":{type:"external-container",name:"外部容器",icon:"content-container"},"list-nav":{type:"list-nav",name:"列表导航"},"list-view":{type:"list-view",name:"列表"},"filter-bar":{type:"filter-bar",name:"筛选条"},"language-textbox":{type:"language-textbox",name:"多语输入框"}},un={convertFrom:(n,e,t)=>{var i;const o=n.editor&&n.editor[e]?n.editor[e]:n[e];return((i=N[o])==null?void 0:i.name)||o}},dn={convertTo:(n,e,t,o)=>{n[e]=n[e]},convertFrom:(n,e,t)=>n.editor?t.getRealEditorType(n.editor.type):""},fn={convertTo:(n,e,t,o)=>{(n.type==="data-grid-column"||n.type==="tree-grid-column")&&(n.formatter?n.formatter[e]=t:n.formatter={[e]:t})},convertFrom:(n,e,t)=>{if(n.formatter){if(e==="trueText")return n.formatter.trueText;if(e==="falseText")return n.formatter.falseText;if(e==="prefix")return n.formatter.prefix;if(e==="suffix")return n.formatter.suffix;if(e==="precision")return n.formatter.precision;if(e==="decimal")return n.formatter.decimal;if(e==="thousand")return n.formatter.thousand;if(e==="tempDateFormat")return n.formatter.dateFormat==="yyyy年MM月dd日"?"yearMonthDay":n.formatter.dateFormat==="yyyy-MM-dd HH:mm:ss"?"yyyy-MM-ddTHH:mm:ss":n.formatter.dateFormat==="yyyy/MM/dd HH:mm:ss"?"yyyy/MM/ddTHH:mm:ss":n.formatter.dateFormat==="yyyy年MM月dd日 HH时mm分ss秒"?"yearMonthDayHourMinuteSecond":n.formatter.tempDateFormat||n.formatter.dateFormat||"yyyy-MM-dd";if(e==="customFormat")return n.formatter.customFormat;if(e==="type")return n.formatter.type||"none"}return"none"}},pn={convertTo:(n,e,t,o)=>{n.command?n.command[e]=t:n.command={[e]:t},e==="enable"&&t&&(n.command.commands||(n.command.commands=[{text:"编辑",type:"primary",command:"edit"},{text:"删除",type:"danger",command:"remove"}]))},convertFrom:(n,e,t)=>n.command&&e==="enable"?n.command.enable:""},mn={convertTo:(n,e,t,o)=>{n.column?n.column[e]=t:n.column={[e]:t},e==="fitColumns"&&t&&(n.column.fitMode||(n.column.fitMode="average"))},convertFrom:(n,e,t)=>{if(n.column){if(e==="fitColumns")return n.column.fitColumns;if(e==="fitMode")return n.column.fitMode}return""}},hn={convertTo:(n,e,t,o)=>{n.summary?n.summary[e]=t:n.summary={[e]:t},e==="enable"&&t&&(n.summary?n.summary.groupFields||(n.summary.groupFields=[]):n.summary={enable:t,groupFields:[]})},convertFrom:(n,e,t)=>n.summary&&e==="enable"?n.summary.enable:n.type==="data-grid-column"?n.enableSummary===void 0?!1:n.enableSummary:""},vn={convertTo:(n,e,t,o)=>{n.group?n.group[e]=t:n.group={[e]:t},e==="enable"&&t&&(n.group?n.group.groupFields||(n.group.groupFields=[]):n.group={enable:t,groupFields:[],showSummary:!1})},convertFrom:(n,e,t)=>{if(n.group){if(e==="enable")return n.group.enable;if(e==="showSummary")return n.group.showSummary}}},gn={convertFrom:(n,e)=>n.binding?n.binding.path:"",convertTo:(n,e,t)=>{if(t&&t.length>0){const o=t[0];n.binding||(n.binding={}),n.binding.type="Form",n.binding.path=o.bindingField,n.binding.field=o.id,n.binding.fullPath=o.path,n.path=o.bindingPath}}},yn={convertTo:(n,e,t,o)=>{n.pagination||(n.pagination={}),n.pagination[e]=t},convertFrom:(n,e,t)=>n.pagination?n.pagination[e]:n[e]},bn={convertTo:(n,e,t,o)=>{n.rowNumber||(n.rowNumber={}),n.rowNumber[e]=t},convertFrom:(n,e,t)=>n.rowNumber?n.rowNumber[e]:n[e]},Cn={convertTo:(n,e,t,o)=>{n.selection||(n.selection={}),n.selection[e]=t},convertFrom:(n,e,t)=>n.selection?n.selection[e]:n[e]},wn={convertFrom:(n,e,t)=>n[e]&&n[e].length?`共 ${n[e].length} 项`:""},xn={convertFrom:(n,e)=>n[e]||"",convertTo:(n,e,t)=>{n[e]=t}},Sn={convertTo:(n,e,t,o)=>{n.size||(n.size={}),n.size[e]=t},convertFrom:(n,e,t)=>n.size?n.size[e]:n[e]},Tn={convertFrom:(n,e,t)=>{var o,i;return(o=n.formatter)!=null&&o.data&&e==="formatterEnumData"&&!n.formatterEnumData?(i=n.formatter)==null?void 0:i.data:n.formatterEnumData}},jn={convertTo:(n,e,t,o)=>{n.sort||(n.sort={}),n.sort[e]=t},convertFrom:(n,e,t)=>{var o,i;if(e==="mode")return((o=n.sort)==null?void 0:o.mode)||"client";if(e==="multiSort")return!!((i=n.sort)!=null&&i.multiSort)}},Mn={convertTo:(n,e,t,o)=>{n.filter||(n.filter={}),n.filter[e]=t},convertFrom:(n,e,t)=>{var o;if(e==="mode")return((o=n.filter)==null?void 0:o.mode)||"client"}},kn={convertTo:(n,e,t,o)=>{n.rowOption?n.rowOption[e]=t:n.rowOption={[e]:t}},convertFrom:(n,e,t)=>{if(n.rowOption){if(e==="customRowStyle")return n.rowOption.customRowStyle;if(e==="customCellStyle")return n.rowOption.customCellStyle}return""}};function $t(n,e,t){const o=new Map([["/converter/appearance.converter",sn],["/converter/buttons.converter",ln],["/converter/property-editor.converter",cn],["/converter/items-count.converter",wn],["/converter/type.converter",un],["/converter/change-editor.converter",dn],["/converter/change-formatter.converter",fn],["/converter/column-command.converter",pn],["/converter/column-option.converter",mn],["/converter/summary.converter",hn],["/converter/group.converter",vn],["/converter/form-group-label.converter",xn],["/converter/field-selector.converter",gn],["/converter/pagination.converter",yn],["/converter/row-number.converter",bn],["/converter/grid-selection.converter",Cn],["/converter/size.converter",Sn],["/converter/change-formatter-enum.converter",Tn],["/converter/grid-sort.converter",jn],["/converter/grid-filter.converter",Mn],["/converter/row-option.converter",kn]]),i=new Map([["string",{type:"input-group",enableClear:!1}],["boolean",{type:"combo-list",textField:"name",valueField:"value",idField:"value",enableClear:!1,editable:!1,data:[{value:!0,name:"是"},{value:!1,name:"否"}]}],["enum",{type:"combo-list",maxHeight:128,enableClear:!1,editable:!1}],["array",{type:"button-edit"}],["number",{type:"number-spinner",placeholder:""}],["events-editor",{type:"events-editor",hide:!0}]]),s=an();function a(f,v){return()=>s.parseValueSchema(f,v)}function u(f,v,w){return f.includes("visible")&&v.visible!==void 0?typeof v.visible=="boolean"?()=>!!v.visible:v.visible===void 0?!0:a(v.visible,w):()=>!0}function l(f,v,w){return f.includes("readonly")&&v.readonly!==void 0?typeof v.readonly=="boolean"?()=>!!v.readonly:a(v.readonly,w):()=>!1}function c(f,v){const w=f.$converter||v;return typeof w=="string"&&w&&o.has(w)?o.get(w)||null:w||null}function p(f,v,w,T,E,q="",S=""){return Object.keys(f).map(g=>{const k=r.ref(1),M=g,x=f[g],B=Object.keys(x),C=x.title,j=x.type,O=i.get(j)||{type:"input-group",enableClear:!1},P=x.editor?Object.assign({},O,x.editor):Object.assign({},O),D=u(B,x,v),U=l(B,x,v);P.readonly=P.readonly===void 0?U():P.readonly;const K=x.type==="cascade"?p(x.properties,v,w,T,E,q,S):[],I=!0;let V=c(x,S);const _=r.computed({get(){if(k.value){if(["class","style"].find(ce=>ce===M)&&!V&&(V=o.get("/converter/appearance.converter")||null),V&&V.convertFrom)return V.convertFrom(w,g,E,q);const re=w[g];return Object.prototype.hasOwnProperty.call(x,"defaultValue")&&(re===void 0||typeof re=="string"&&re==="")?x.type==="boolean"?x.defaultValue:x.defaultValue||"":re}return null},set(re){k.value+=1,V&&V.convertTo?(V.convertTo(T,g,re,E,q),V.convertTo(w,g,re,E,q)):(T[g]=re,w[g]=re)}}),{refreshPanelAfterChanged:L,description:ee,isExpand:ve,parentPropertyID:ge}=x,G={propertyID:M,propertyName:C,propertyType:j,propertyValue:_,editor:P,visible:D,readonly:U,cascadeConfig:K,hideCascadeTitle:I,refreshPanelAfterChanged:L,description:ee,isExpand:ve,parentPropertyID:ge};return v[M]=G,G})}function d(f,v,w={}){const T={},E=n[f];return E&&E.categories?Object.keys(E.categories).map(S=>{const y=E.categories[S],g=y==null?void 0:y.title,k=p(y.properties||{},T,{},w,v);return{categoryId:S,categoryName:g,properties:k}}):[]}function h(f,v,w,T,E=""){const q=v.$ref.schema,S=v.$ref.converter,y=w[q],g=y.type,k=t(y),M={},x=n[g];if(x&&x.categories){const B=x.categories[f],C=B==null?void 0:B.title;S&&Object.keys(B.properties).forEach(P=>{B.properties[P].$converter=S});const j=(B==null?void 0:B.properties)||{},O=p(j,M,k,y,T,E);return{categoryId:f,categoryName:C,properties:O}}return{categoryId:f,categoryName:"",properties:[]}}function m(f,v,w,T,E){const q=f.type,S=t(f),y={};let g=E||n[q];if(g&&Object.keys(g).length===0&&w&&w.getPropConfig&&(g=w.getPropConfig(T)),g&&g.categories){const k=[];return Object.keys(g.categories).map(M=>{const x=g.categories[M];if(x.$ref){k.push(h(M,x,f,v,T));return}const B=x==null?void 0:x.title,C=x==null?void 0:x.tabId,j=x==null?void 0:x.tabName,O=x==null?void 0:x.hide,P=x==null?void 0:x.hideTitle,D=p(x.properties||{},y,S,f,v,T,x.$converter),{setPropertyRelates:U}=x,K=x==null?void 0:x.parentPropertyID;k.push({categoryId:M,categoryName:B,tabId:C,tabName:j,hide:O,properties:D,hideTitle:P,setPropertyRelates:U,parentPropertyID:K})}),k}return[]}return{getPropertyConfigBySchema:m,getPropertyConfigByType:d,propertyConverterMap:o}}const Dt={},Rt={};$t(Dt,Rt,nn);const qt={},Lt={},{getSchemaByType:Qo,resolveSchemaWithDefaultValue:Nn,resolveSchemaToProps:Jo,mappingSchemaToProps:Zo,setDesignerContext:Ko}=Vt(qt,Lt),zt={},Ht={};$t(zt,Ht,Nn);function Qe(n,e,t=new Map,o=(a,u,l,c)=>u,i={},s=a=>a){return Pt[e.title]=e,It[e.title]=o,Dt[e.title]=i,Rt[e.title]=s,qt[e.title]=e,Lt[e.title]=o,zt[e.title]=i,Ht[e.title]=s,(a={},u=!0)=>{if(!u)return rn(a,t);const l=on(a,e,t),c=Object.keys(n).reduce((p,d)=>(p[d]=n[d].default,p),{});return Object.assign(c,l)}}function ht(n,e){return{customClass:e.class,customStyle:e.style}}const En=new Map([["appearance",ht]]),Fn={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/content-container.schema.json",title:"content-container",description:"A Farris Container Component",type:"object",properties:{id:{description:"The unique identifier for a Section",type:"string"},type:{description:"The type string of Section component",type:"string",default:"content-container"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},contents:{description:"",type:"array",default:[]},size:{description:"",type:"object",properties:{width:{type:"number"},height:{type:"number"}},default:null},visible:{description:"",type:"boolean",default:!0}},required:["id","type","contents"]};function Bn(n,e,t){return e}const at={customClass:{type:String,default:""},customStyle:{type:String,default:""},visible:{type:Boolean,default:!0}},vt=Qe(at,Fn,En,Bn),st=r.defineComponent({name:"FContentContainer",props:at,emits:[],setup(n,e){return()=>n.visible&&r.createVNode("div",{class:n.customClass,style:n.customStyle},[e.slots.default&&e.slots.default()])}});function On(){function n(e,t){var a;if(!e)return!1;const o=((a=e.targetContainer)==null?void 0:a.componentInstance)&&e.targetContainer.componentInstance.value;if(!o)return!1;const i=o.schema.type,s=t==null?void 0:t.formSchemaUtils.getComponentById(o.belongedComponentId);return!((e.componentCategory==="input"||e.componentType==="form-group")&&![N["response-layout-item"].type,N["response-form"].type,N.fieldset.type].includes(i)||(e.componentType===N.tabs.type||e.componentType===N.section.type)&&((s==null?void 0:s.componentType)!=="frame"||![N["content-container"].type,N["splitter-pane"].type,N["response-layout-item"].type].includes(i))||[N["query-solution"].type,N["filter-bar"].type].includes(e.componentType)||e.componentType===N.fieldset.type&&i!==N["response-form"].type)}return{basalDragulaRuleForContainer:n}}class Vn{getTemplateRule(e,t){const o=t==null?void 0:t.formSchemaUtils,i=o==null?void 0:o.getFormTemplateRule(),s={canAccept:!0,canDelete:!0,canMove:!0};if(!i)return s;const a=this.getComponentContext(e),{componentClassList:u}=a;return u.forEach(l=>{if(!l||!i[l])return;const{canMove:c,canDelete:p,canAccept:d}=i[l];s.canMove=s.canMove&&this.resolveRuleValue(c,a),s.canDelete=s.canDelete&&this.resolveRuleValue(p,a),s.canAccept=s.canAccept&&this.resolveRuleValue(d,a)}),s}resolveRuleValue(e,t){return typeof e=="boolean"?e:this.parseRuleValueSchema(e,t)}parseRuleValueSchema(e,t){const o=e.invalidContext||[];let i=!0;for(const s of o){const{firstLevelChild:a,secondLevelChild:u,parent:l,...c}=s;if(c&&t.component){let p=!0;for(const d of Object.keys(c))if(c[d]!==t.component[d]){p=!1;break}if(!p){i=!1;continue}}if(s.firstLevelChild){if(s.firstLevelChild.class){const{firstLevelChildClassList:p}=t;if(p&&!p.includes(s.firstLevelChild.class)){i=!1;continue}}if(s.firstLevelChild.type){const{firstLevelChildSchema:p}=t;if(!p||p.type!==s.firstLevelChild.type){i=!1;continue}}}if(s.secondLevelChild){if(s.secondLevelChild.class){const{secondLevelChildClassList:p}=t;if(p&&!p.includes(s.secondLevelChild.class)){i=!1;continue}}if(s.secondLevelChild.type){const{secondLevelChildSchema:p}=t;if(!p||p.type!==s.secondLevelChild.type){i=!1;continue}}}if(s.parent){if(s.parent.class){const{parentClassList:p}=t;if(p&&!p.includes(s.parent.class)){i=!1;continue}}if(s.parent.type){const{parentSchema:p}=t;if(p&&p.type!==s.parent.type){i=!1;continue}}}i=!0;break}return!i}getComponentContext(e){var v,w,T,E;const t=e.schema,o=t.appearance&&t.appearance.class||"",i=o.split(" ")||[],s=t.contents||[],a=s.length?s[0]:null,u=a&&a.appearance?a.appearance.class:"",l=u?u.split(" "):[],c=(v=a==null?void 0:a.contents)!=null&&v.length?a==null?void 0:a.contents[0]:null,p=c&&c.appearance?c.appearance.class:"",d=p?p.split(" "):[],h=t.type==="component"?(T=(w=e.parent)==null?void 0:w.parent)==null?void 0:T.schema:(E=e.parent)==null?void 0:E.schema,m=h&&h.appearance&&h.appearance.class||"",f=m?m.split(" "):[];return{componentClass:o,componentClassList:i,childContents:s,firstLevelChildSchema:a,firstLevelChildClass:u,firstLevelChildClassList:l,secondLevelChildSchema:c,secondLevelChildClass:p,secondLevelChildClassList:d,parentSchema:h,parentClass:m,parentClassList:f,component:t}}}const Pn=r.ref(0);var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lt(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var In={exports:{}};(function(n,e){(function(t){n.exports=t()})(function(){return function(){function t(o,i,s){function a(c,p){if(!i[c]){if(!o[c]){var d=typeof lt=="function"&<if(!p&&d)return d(c,!0);if(u)return u(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var m=i[c]={exports:{}};o[c][0].call(m.exports,function(f){var v=o[c][1][f];return a(v||f)},m,m.exports,t,o,i,s)}return i[c].exports}for(var u=typeof lt=="function"&<,l=0;l<s.length;l++)a(s[l]);return a}return t}()({1:[function(t,o,i){var s={},a="(?:^|\\s)",u="(?:\\s|$)";function l(d){var h=s[d];return h?h.lastIndex=0:s[d]=h=new RegExp(a+d+u,"g"),h}function c(d,h){var m=d.className;m.length?l(h).test(m)||(d.className+=" "+h):d.className=h}function p(d,h){d.className=d.className.replace(l(h)," ").trim()}o.exports={add:c,rm:p}},{}],2:[function(t,o,i){(function(s){var a=t("contra/emitter"),u=t("crossvent"),l=t("./classes"),c=document,p=c.documentElement;function d(C,j){var O=arguments.length;O===1&&Array.isArray(C)===!1&&(j=C,C=[]);var P,D,U,K,I,V,_,L,ee,ve=null,ge,G,re=!1,ce=0,te,H=j||{};H.moves===void 0&&(H.moves=E),H.accepts===void 0&&(H.accepts=E),H.invalid===void 0&&(H.invalid=Ze),H.containers===void 0&&(H.containers=C||[]),H.isContainer===void 0&&(H.isContainer=T),H.copy===void 0&&(H.copy=!1),H.copySortSource===void 0&&(H.copySortSource=!1),H.revertOnSpill===void 0&&(H.revertOnSpill=!1),H.removeOnSpill===void 0&&(H.removeOnSpill=!1),H.direction===void 0&&(H.direction="vertical"),H.ignoreInputTextSelection===void 0&&(H.ignoreInputTextSelection=!0),H.mirrorContainer===void 0&&(H.mirrorContainer=c.body);var ne=a({containers:H.containers,start:Ve,end:He,cancel:X,remove:F,destroy:Le,canMove:Oe,dragging:!1});return H.removeOnSpill===!0&&ne.on("over",xt).on("out",St),Be(),ne;function qe(b){return ne.containers.indexOf(b)!==-1||H.isContainer(b)}function Be(b){var $=b?"remove":"add";f(p,$,"mousedown",ue),f(p,$,"mouseup",Ie)}function Te(b){var $=b?"remove":"add";f(p,$,"mousemove",Je)}function Ye(b){var $=b?"remove":"add";u[$](p,"selectstart",ze),u[$](p,"click",ze)}function Le(){Be(!0),Ie({})}function ze(b){ge&&b.preventDefault()}function ue(b){K=b.clientX,I=b.clientY;var $=v(b)!==1||b.metaKey||b.ctrlKey;if(!$){var R=b.target,A=je(R);A&&(ge=A,Te(),b.type==="mousedown"&&(g(R)?R.focus():b.preventDefault()))}}function Je(b){if(ge){if(v(b)===0){Ie({});return}if(!(b.clientX!==void 0&&Math.abs(b.clientX-K)<=(H.slideFactorX||0)&&b.clientY!==void 0&&Math.abs(b.clientY-I)<=(H.slideFactorY||0))){if(H.ignoreInputTextSelection){var $=B("clientX",b)||0,R=B("clientY",b)||0,A=c.elementFromPoint($,R);if(g(A))return}var Q=ge;Te(!0),Ye(),He(),Pe(Q),l.add(L||U,"gu-transit"),jt(),Tt(),ce=0,Ke(b)}}}function je(b){if(!(ne.dragging&&P)&&!qe(b)){for(var $=b;y(b)&&qe(y(b))===!1;)if(H.invalid(b,$)||(b=y(b),!b))return;var R=y(b);if(R&&!H.invalid(b,$)){var A=H.moves(b,R,$,M(b));if(A)return{item:b,source:R}}}}function Oe(b){return!!je(b)}function Ve(b){var $=je(b);$&&Pe($)}function Pe(b){Ot(b.item,b.source)&&(L=b.item.cloneNode(!0),ne.emit("cloned",L,b.item,"copy")),D=b.source,U=b.item,V=_=M(b.item),ne.dragging=!0,ne.emit("drag",U,D)}function Ze(){return!1}function He(){if(ne.dragging){var b=L||U;Xe(b,y(b))}}function Ee(){ge=!1,Te(!0),Ye(!0)}function Ie(b){if(Ee(),!!ne.dragging){var $=L||U,R=B("clientX",b)||0,A=B("clientY",b)||0,Q=w(P,R,A),J=$e(Q,R,A);J&&(L&&H.copySortSource||!L||J!==D)?Xe($,J):H.removeOnSpill?F():X()}}function Xe(b,$){var R=y(b);L&&H.copySortSource&&$===D&&R.removeChild(U),le($)?ne.emit("cancel",b,D):ne.emit("drop",b,$,D,_),se()}function F(){if(ne.dragging){var b=L||U,$=y(b);$&&$.removeChild(b),ne.emit(L?"cancel":"remove",b,$,D),se()}}function X(b){if(ne.dragging){var $=arguments.length>0?b:H.revertOnSpill,R=L||U,A=y(R),Q=le(A);Q===!1&&$&&(L?A&&A.removeChild(L):D.insertBefore(R,V)),Q||$?ne.emit("cancel",R,D,D):ne.emit("drop",R,A,D,_),se()}}function se(){var b=L||U;Ee(),Mt(),kt(),b&&l.rm(b,"gu-transit"),ee&&clearTimeout(ee),ne.dragging=!1,ve&&ne.emit("out",b,ve,D),ne.emit("dragend",b,ce),D=U=L=V=_=ee=ve=null}function le(b,$){var R;return $!==void 0?R=$:P?R=_:R=M(L||U),b===D&&R===V}function $e(b,$,R){for(var A=b;A&&!Q();)A=y(A);return A;function Q(){var J=qe(A);if(J===!1)return!1;var xe=ft(A,b),ye=pt(A,xe,$,R),be=le(A,ye);return be?!0:H.accepts(U,A,D,ye)}}function Ke(b){if(!P)return;b.preventDefault();var $=B("clientX",b)||0,R=B("clientY",b)||0;P.style.left=$-2+"px",P.style.top=R-2+"px";var A=L||U,Q=w(P,$,R),J=$e(Q,$,R),xe=J!==null&&J!==ve;(xe||J===null)&&(Ce(),ve=J,ke()),Bt(Q,R);var ye=y(A);if(J===D&&L&&!H.copySortSource){ye&&ye.removeChild(A);return}var be,Me=ft(J,Q);if(re=et(Me,J),Me!==null)be=pt(J,Me,$,R);else if(H.revertOnSpill===!0&&!L)be=V,J=D;else{L&&ye&&ye.removeChild(A),L&&G&&(G.style.display="none");return}G.style.display="block",wt(be,A,xe),be?Et(Me,be):Ft(J);function de(me){ne.emit(me,A,ve,D)}function ke(){xe&&de("over")}function Ce(){ve&&de("out")}}function wt(b,$,R){(b===$||b===M($))&&(_=M($)),(b===null&&R||b!==$&&b!==M($))&&(_=b)}function xt(b){l.rm(b,"gu-hide")}function St(b){ne.dragging&&l.add(b,"gu-hide")}function Tt(){P||(P=document.createElement("div"),P.style="background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;",P.innerHTML=H.getMirrorText&&H.getMirrorText(U)||"控件",l.add(P,"gu-mirror"),H.mirrorContainer.appendChild(P),f(p,"add","mousemove",Ke),l.add(H.mirrorContainer,"gu-unselectable"),ne.emit("cloned",P,U,"mirror"))}function jt(){if(G=document.createElement("div"),l.add(G,"gu-insertion"),U){var b=U.getBoundingClientRect();G.style.left=b.left+"px",G.style.top=b.top+"px"}re=!1,H.mirrorContainer.appendChild(G)}function Mt(){P&&(l.rm(H.mirrorContainer,"gu-unselectable"),f(p,"remove","mousemove",Ke),y(P).removeChild(P),P=null)}function kt(){G&&(y(G).removeChild(G),G=null)}function ft(b,$){for(var R=$;R!==b&&y(R)!==b;)R=y(R);return R===p?null:R}function et(b,$){if(!$)return re;var R=b||$&&$.lastElementChild;if(!R)return!0;var A=getComputedStyle(b),Q=/^inline/.test(A.getPropertyValue("display"))||/^(left|right)$/.test(A.getPropertyValue("float"));if(Q)return!0;if($){var J=getComputedStyle($),xe=J.getPropertyValue("display");if(/flex$/.test(xe)){var ye=J.getPropertyValue("flex-direction")||"row";if(ye==="row"||ye==="row-reverse")return!Nt($)}return!1}return!0}function Nt(b){if(!b.children||!b.children.length)return!1;for(const $ of Array.from(b.children)){const A=($.className&&$.className.split(" ")||[]).filter(Q=>/^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Q));if(!A.length)return!1;for(const Q of A){const J=Q.slice(Q.lastIndexOf("-")+1);if(parseInt(J,10)!==12)return!1}}return!0}function Et(b,$){const R=$.getBoundingClientRect();if(G.style.left=R.left+"px",G.style.top=R.top+"px",re){if(G.style.height=R.height+"px",G.style.width="4px",b){const A=b.getBoundingClientRect();A.top!==R.top&&(G.style.left=A.right+"px",G.style.top=A.top+"px",G.style.height=A.height+"px")}}else if(G.style.height="4px",G.style.width=R.width+"px",te){const A=te.getBoundingClientRect();R.top<A.top&&(G.style.display="none")}$===U&&U&&(G.style.display="none")}function Ft(b){_=null;var $=b.lastElementChild;if($){var R=$.getBoundingClientRect();re?(G.style.left=R.right+"px",G.style.top=R.top+"px",G.style.height=R.height+"px",G.style.width="4px"):(G.style.left=R.left+"px",G.style.top=R.bottom+"px",G.style.height="4px",G.style.width=R.width+"px"),$===U&&U&&(G.style.display="none")}else G.style.display="none"}function Bt(b,$){if(!H.mirrorContainer.contains(b)||!window.scrollContainerList||!Array.from(window.scrollContainerList).length||(te=h(b),!te||!te.contains(b)))return;const R=document.querySelector(".dgComponentSelected"),A=te.getBoundingClientRect();if($-30<A.top&&te.scrollTop>0){let Q=te.scrollTop<10?te.scrollTop:10;te.scrollBy(0,-1*Q),R&&te.contains(R)&&(ce=ce+-1*Q)}if($+30>A.bottom&&te.scrollTop<te.scrollHeight-te.clientHeight){const Q=te.scrollHeight-te.clientHeight-te.scrollTop;let J=Q<10?Q:10;te.scrollBy(0,J),R&&te.contains(R)&&(ce=ce+J)}}function pt(b,$,R,A){var Q=H.direction==="horizontal",J=H.direction==="mixed",xe=$!==b?be():ye();return xe;function ye(){var de=b.children.length,ke,Ce,me;for(ke=0;ke<de;ke++)if(Ce=b.children[ke],me=Ce.getBoundingClientRect(),Q&&me.left+me.width/2>R||!J&&!Q&&me.top+me.height/2>A||J&&me.left+me.width>R&&me.top+me.height>A)return Ce;return null}function be(){var de=$.getBoundingClientRect();if(J){var ke=A-de.top,Ce=R-de.left,me=de.bottom-A,tt=de.right-R,nt=Math.min(Ce,tt,ke,me),ot;return re?ot=tt<Ce:ot=me===nt||tt===nt||Ce===nt,Me(ot)}return Me(Q?R>de.left+q(de)/2:A>de.top+S(de)/2)}function Me(de){return de?M($):$}}function Ot(b,$){return typeof H.copy=="boolean"?H.copy:H.copy(b,$)}}function h(C){const j=Array.from(window.scrollContainerList);if(j.length===1){const P=Array.from(window.scrollContainerList)[0];return document.getElementById(P)}const O=m(j);for(const P of O)if(P.contains(C))return P;return null}function m(C){const j=[];return C.forEach(O=>{const P=document.getElementById(O);P&&j.push(P)}),j.sort((O,P)=>O.contains(P)?1:P.contains(O)?-1:0),j}function f(C,j,O,P){var D={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},U={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},K={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};s.navigator.pointerEnabled?u[j](C,U[O],P):s.navigator.msPointerEnabled?u[j](C,K[O],P):(u[j](C,D[O],P),u[j](C,O,P))}function v(C){if(C.touches!==void 0)return C.touches.length;if(C.which!==void 0&&C.which!==0)return C.which;if(C.buttons!==void 0)return C.buttons;var j=C.button;if(j!==void 0)return j&1?1:j&2?3:j&4?2:0}function w(C,j,O){C=C||{};var P=C.className||"",D;return C.className+=" gu-hide",D=c.elementFromPoint(j,O),C.className=P,D}function T(){return!1}function E(){return!0}function q(C){return C.width||C.right-C.left}function S(C){return C.height||C.bottom-C.top}function y(C){return C.parentNode===c?null:C.parentNode}function g(C){return C.tagName==="INPUT"||C.tagName==="TEXTAREA"||C.tagName==="SELECT"||k(C)}function k(C){return!C||C.contentEditable==="false"?!1:C.contentEditable==="true"?!0:k(y(C))}function M(C){return C.nextElementSibling||j();function j(){var O=C;do O=O.nextSibling;while(O&&O.nodeType!==1);return O}}function x(C){return C.targetTouches&&C.targetTouches.length?C.targetTouches[0]:C.changedTouches&&C.changedTouches.length?C.changedTouches[0]:C}function B(C,j){var O=x(j),P={pageX:"clientX",pageY:"clientY"};return C in P&&!(C in O)&&P[C]in O&&(C=P[C]),O[C]}o.exports=d}).call(this,typeof Fe<"u"?Fe:typeof self<"u"?self:typeof window<"u"?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(t,o,i){o.exports=function(a,u){return Array.prototype.slice.call(a,u)}},{}],4:[function(t,o,i){var s=t("ticky");o.exports=function(u,l,c){u&&s(function(){u.apply(c||null,l||[])})}},{ticky:10}],5:[function(t,o,i){var s=t("atoa"),a=t("./debounce");o.exports=function(l,c){var p=c||{},d={};return l===void 0&&(l={}),l.on=function(h,m){return d[h]?d[h].push(m):d[h]=[m],l},l.once=function(h,m){return m._once=!0,l.on(h,m),l},l.off=function(h,m){var f=arguments.length;if(f===1)delete d[h];else if(f===0)d={};else{var v=d[h];if(!v)return l;v.splice(v.indexOf(m),1)}return l},l.emit=function(){var h=s(arguments);return l.emitterSnapshot(h.shift()).apply(this,h)},l.emitterSnapshot=function(h){var m=(d[h]||[]).slice(0);return function(){var f=s(arguments),v=this||l;if(h==="error"&&p.throws!==!1&&!m.length)throw f.length===1?f[0]:f;return m.forEach(function(T){p.async?a(T,f,v):T.apply(v,f),T._once&&l.off(h,T)}),l}},l}},{"./debounce":4,atoa:3}],6:[function(t,o,i){(function(s){var a=t("custom-event"),u=t("./eventmap"),l=s.document,c=h,p=f,d=[];s.addEventListener||(c=m,p=v),o.exports={add:c,remove:p,fabricate:w};function h(y,g,k,M){return y.addEventListener(g,k,M)}function m(y,g,k){return y.attachEvent("on"+g,E(y,g,k))}function f(y,g,k,M){return y.removeEventListener(g,k,M)}function v(y,g,k){var M=q(y,g,k);if(M)return y.detachEvent("on"+g,M)}function w(y,g,k){var M=u.indexOf(g)===-1?B():x();y.dispatchEvent?y.dispatchEvent(M):y.fireEvent("on"+g,M);function x(){var C;return l.createEvent?(C=l.createEvent("Event"),C.initEvent(g,!0,!0)):l.createEventObject&&(C=l.createEventObject()),C}function B(){return new a(g,{detail:k})}}function T(y,g,k){return function(x){var B=x||s.event;B.target=B.target||B.srcElement,B.preventDefault=B.preventDefault||function(){B.returnValue=!1},B.stopPropagation=B.stopPropagation||function(){B.cancelBubble=!0},B.which=B.which||B.keyCode,k.call(y,B)}}function E(y,g,k){var M=q(y,g,k)||T(y,g,k);return d.push({wrapper:M,element:y,type:g,fn:k}),M}function q(y,g,k){var M=S(y,g,k);if(M){var x=d[M].wrapper;return d.splice(M,1),x}}function S(y,g,k){var M,x;for(M=0;M<d.length;M++)if(x=d[M],x.element===y&&x.type===g&&x.fn===k)return M}}).call(this,typeof Fe<"u"?Fe:typeof self<"u"?self:typeof window<"u"?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(t,o,i){(function(s){var a=[],u="",l=/^on/;for(u in s)l.test(u)&&a.push(u.slice(2));o.exports=a}).call(this,typeof Fe<"u"?Fe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],8:[function(t,o,i){(function(s){var a=s.CustomEvent;function u(){try{var l=new a("cat",{detail:{foo:"bar"}});return l.type==="cat"&&l.detail.foo==="bar"}catch{}return!1}o.exports=u()?a:typeof document<"u"&&typeof document.createEvent=="function"?function(c,p){var d=document.createEvent("CustomEvent");return p?d.initCustomEvent(c,p.bubbles,p.cancelable,p.detail):d.initCustomEvent(c,!1,!1,void 0),d}:function(c,p){var d=document.createEventObject();return d.type=c,p?(d.bubbles=!!p.bubbles,d.cancelable=!!p.cancelable,d.detail=p.detail):(d.bubbles=!1,d.cancelable=!1,d.detail=void 0),d}}).call(this,typeof Fe<"u"?Fe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],9:[function(t,o,i){var s=o.exports={},a,u;function l(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a=setTimeout:a=l}catch{a=l}try{typeof clearTimeout=="function"?u=clearTimeout:u=c}catch{u=c}})();function p(S){if(a===setTimeout)return setTimeout(S,0);if((a===l||!a)&&setTimeout)return a=setTimeout,setTimeout(S,0);try{return a(S,0)}catch{try{return a.call(null,S,0)}catch{return a.call(this,S,0)}}}function d(S){if(u===clearTimeout)return clearTimeout(S);if((u===c||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(S);try{return u(S)}catch{try{return u.call(null,S)}catch{return u.call(this,S)}}}var h=[],m=!1,f,v=-1;function w(){!m||!f||(m=!1,f.length?h=f.concat(h):v=-1,h.length&&T())}function T(){if(!m){var S=p(w);m=!0;for(var y=h.length;y;){for(f=h,h=[];++v<y;)f&&f[v].run();v=-1,y=h.length}f=null,m=!1,d(S)}}s.nextTick=function(S){var y=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)y[g-1]=arguments[g];h.push(new E(S,y)),h.length===1&&!m&&p(T)};function E(S,y){this.fun=S,this.array=y}E.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function q(){}s.on=q,s.addListener=q,s.once=q,s.off=q,s.removeListener=q,s.removeAllListeners=q,s.emit=q,s.prependListener=q,s.prependOnceListener=q,s.listeners=function(S){return[]},s.binding=function(S){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(S){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],10:[function(t,o,i){(function(s){var a=typeof s=="function",u;a?u=function(l){s(l)}:u=function(l){setTimeout(l,0)},o.exports=u}).call(this,t("timers").setImmediate)},{timers:11}],11:[function(t,o,i){(function(s,a){var u=t("process/browser.js").nextTick,l=Function.prototype.apply,c=Array.prototype.slice,p={},d=0;i.setTimeout=function(){return new h(l.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new h(l.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(m){m.close()};function h(m,f){this._id=m,this._clearFn=f}h.prototype.unref=h.prototype.ref=function(){},h.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(m,f){clearTimeout(m._idleTimeoutId),m._idleTimeout=f},i.unenroll=function(m){clearTimeout(m._idleTimeoutId),m._idleTimeout=-1},i._unrefActive=i.active=function(m){clearTimeout(m._idleTimeoutId);var f=m._idleTimeout;f>=0&&(m._idleTimeoutId=setTimeout(function(){m._onTimeout&&m._onTimeout()},f))},i.setImmediate=typeof s=="function"?s:function(m){var f=d++,v=arguments.length<2?!1:c.call(arguments,1);return p[f]=!0,u(function(){p[f]&&(v?m.apply(null,v):m.call(null),i.clearImmediate(f))}),f},i.clearImmediate=typeof a=="function"?a:function(m){delete p[m]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)})})(In);const $n={showCloseButton:{type:Boolean,default:!0},position:{type:String,default:"top-center"},timeout:{type:Number,default:3e3},theme:{type:String,default:"bootstrap"},left:{type:Number},right:{type:Number},top:{type:Number},bottom:{type:Number},id:{type:String},animate:{type:String,default:"fadeIn"},options:{type:Object},safeHtml:{type:Boolean,default:!0}},Dn={showCloseButton:{type:Boolean,default:!0},animate:{type:String,default:"fadeIn"},options:{type:Object}},gt=r.defineComponent({name:"Toast",props:Dn,emits:["close","click"],setup:(n,e)=>{const{locale:t,t:o}=mt.useI18n(),i=r.ref(n.animate),s="fadeOut",a=r.computed(()=>n.options),u=r.ref(!1),l=r.computed(()=>a.value.title&&a.value.message),c=r.computed(()=>!a.value.title&&a.value.message),p=r.computed(()=>{const S={animated:u.value,toast:!0,"toast--only-content":c.value};return S[n.animate]=!1,S[s]=u.value,S["toasty-type-"+a.value.type]=!0,a.value.theme&&(S[a.value.theme]=!0),S}),d=r.computed(()=>{const g=`f-icon-${a.value&&a.value.type?a.value.type.replace("toasty-type-",""):"default"}`,k={"f-icon":!0};return k[g]=!0,k}),h=r.computed(()=>a.value.title||a.value.message),m=r.computed(()=>n.showCloseButton),f=r.computed(()=>!!a.value.buttons||!!e.slots.default),v=r.computed(()=>t.value==="en"?{wordBreak:"keep-all",overflowWrap:"break-word"}:{});function w(S){S.stopPropagation(),S.preventDefault(),u.value=!1,setTimeout(()=>{e.emit("close",a.value)},200)}function T(S,y){}function E(S){return`f-preten-link ${S.customClass?S.customClass:""}`}r.watch(i,()=>{i.value});const q=()=>{var S;return r.createVNode(r.Fragment,null,[r.createVNode("div",{class:"after-toast-msg text-right"},[!e.slots.default&&((S=a.value.buttons)==null?void 0:S.map(y=>r.createVNode("span",{class:E(y),onClick:g=>void 0},[y.text]))),e.slots.default&&e.slots.default()])])};return()=>r.createVNode("div",{class:p.value,style:"min-height:44px"},[m.value&&r.createVNode("button",{title:o("messageBox.close"),class:"toast-close f-btn-icon f-bare",onClick:w},[r.createVNode("span",{class:"f-icon modal_close"},null)]),h.value&&r.createVNode("section",{class:"modal-tips"},[r.createVNode("div",{class:"float-left modal-tips-iconwrap"},[r.createVNode("span",{class:d.value},null)]),r.createVNode("div",{class:"modal-tips-content"},[l.value&&r.createVNode(r.Fragment,null,[r.createVNode("h5",{class:"toast-title modal-tips-title",innerHTML:a.value.title},null),r.createVNode("p",{class:"toast-msg",innerHTML:a.value.message,style:v.value},null),f.value&&q()]),c.value&&(a.value.buttons?r.createVNode("div",{class:"toast-title-btns-wrapper d-flex"},[r.createVNode("h5",{class:"toast-title modal-tips-title only-toast-msg",style:v.value,innerHTML:a.value.message},null),r.createVNode("div",{class:"after-toast-title text-right ml-auto"},[q()])]):r.createVNode("h5",{class:"toast-title modal-tips-title only-toast-msg",style:v.value,innerHTML:a.value.message},null))])])])}}),ct=r.defineComponent({name:"Notify",props:$n,emits:["close","empty"],setup(n,e){const t=r.computed(()=>({"farris-notify":!0})),o={left:12,right:12,top:20,bottom:12},i=r.ref(),s=r.ref(n.options),a=r.ref(n.showCloseButton),u=r.computed(()=>n.position||"bottom-right"),l=r.computed(()=>n.timeout!=null?n.timeout:3e3),c=r.computed(()=>{const h=n.bottom?n.bottom:o.bottom,m=n.top?n.top:o.top,f={transition:"all 0.2s ease",left:u.value.indexOf("left")>-1?`${n.left?n.left:o.left}px`:"",right:u.value.indexOf("right")>-1?`${n.right?n.right:o.right}px`:"",top:u.value.indexOf("top")>-1?`${m}px`:"",bottom:u.value.indexOf("bottom")>-1?`${h}px`:""};return u.value.indexOf("center")>-1&&(f.left="50%",f.marginLeft="calc(-24rem / 2)",u.value==="center-center"&&(f.top="50%",f.transform="translate(-50%, -50%)")),f});function p(h){e.emit("close")}l.value&&setTimeout(()=>{p()},l.value),e.expose({closeToast:p,container:i,notifyPosition:u});function d(h,m){p()}return()=>r.createVNode("div",{class:t.value,style:c.value,ref:i},[r.createVNode(gt,{options:s.value,showCloseButton:a.value,animate:n.animate,onClose:h=>d(h,s.value)},null)])}});class Rn{constructor(){Z(this,"notifyRefs",[]);Z(this,"globalConfig",r.reactive({}))}escapeAllHtml(e){if(typeof e!="string"||!e)return"";const t=document.createElement("div");return t.textContent=e||"",t.innerHTML.replace(/\\n/g,"<br>").replace(/\\t/g," ").replace(/\\r/g,"")}createNotifyInstance(e){const t=this,i=Object.assign({timeout:3e3,position:"bottom-right",showCloseButton:!0,safeHtml:!0},this.globalConfig,{...e}),s=document.createElement("div");s.style.display="contents";const a=r.createApp({setup(){var c;const u=r.ref();function l(){u.value.container.style.transform="scale(0)",setTimeout(()=>{t.updateNotifyPositionForClose(i,u),a.unmount()},220)}if(i.position.indexOf("top")>-1){const p=t.getNotifyInstances(i.position),d=p[p.length-1];if(d){const h=d.value.container.getBoundingClientRect();i.top=h.bottom}}return i.safeHtml&&((c=i.options)!=null&&c.message)&&(i.options.message=t.escapeAllHtml(i.options.message)),r.onUnmounted(()=>{document.body.removeChild(s)}),r.onMounted(()=>{t.updateNotifyPositionForCreate(i,u)}),()=>r.createVNode(r.Transition,{mode:"out-in",name:"fade",appear:!0},{default:()=>[r.createVNode(ct,r.mergeProps({ref:u},i,{onClose:l}),null)]})}});return a.provide("NotifyService",this),document.body.appendChild(s),a.use(rt.LocaleService.i18n),a.mount(s),a}getNotifyInstances(e){return this.notifyRefs.filter(t=>t.value.notifyPosition===e)}updateNotifyPositionForCreate(e,t){if(this.notifyRefs&&this.notifyRefs.length){const o=window.innerHeight;e.position.indexOf("bottom")>-1&&this.getNotifyInstances(e.position).forEach(i=>{const s=i.value.container.getBoundingClientRect();i.value.container.style.bottom=s.height+o-s.bottom+"px"})}this.notifyRefs=[...this.notifyRefs,t]}updateNotifyPositionForClose(e,t){const o=this.notifyRefs.indexOf(t);if(e.position.indexOf("top")>-1){const i=this.getNotifyInstances(e.position),s=i.indexOf(t);i.slice(s+1).forEach(a=>{a.value.container.style.top=a.value.container.offsetTop-a.value.container.offsetHeight+"px"})}o>-1&&this.notifyRefs.splice(o,1)}show(e){return this.createNotifyInstance(e)}buildNotifyProps(e,t){let o="",i="",s,a,u;typeof t=="string"?o=t:t&&(o=t.message||"",i=t.title||"",a=t.position||null,u=t.showCloseButton!=null?t.showCloseButton:null,s=t.timeout!=null?t.timeout:null);const c={options:{type:e,message:o,title:i}};return a!=null&&(c.position=a),u!=null&&(c.showCloseButton=u),s!=null&&(c.timeout=s),c}info(e){const t=this.buildNotifyProps("info",e);return this.show(t)}success(e){const t=this.buildNotifyProps("success",e);return this.show(t)}warning(e){const t=this.buildNotifyProps("warning",e);return this.show(t)}error(e){const t=this.buildNotifyProps("error",e);return this.show(t)}close(e){e&&e.unmount()}closeAll(){this.notifyRefs.forEach(e=>{e==null||e.value.closeToast()}),this.notifyRefs.length=0}}const qn=Symbol("NOTIFY_SERVICE_TOKEN");ct.install=n=>{n.component(ct.name,ct),n.component(gt.name,gt);const e=new Rn;n.provide(qn,e),n.provide("FNotifyService",e)},`${rt.Lo