cft-builder 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cft-builder.js
CHANGED
package/dist/cft-builder.umd.cjs
CHANGED
|
@@ -1595,7 +1595,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
`}}),d8=y.forwardRef(function(t,e){var n=jn(),r=y.useContext(nr),i=Rm.getProps(t,r),a=y.useState(i.id),s=d_(a,2),l=s[0],c=s[1],u=y.useState(i.collapsed),d=d_(u,2),f=d[0],h=d[1],m=i.toggleable?i.onToggle?i.collapsed:f:!1,g=y.useRef(null),v=y.useRef(null),A=l+"_header",w=l+"_content",x=Rm.setMetaData({props:i,state:{id:l,collapsed:m}}),S=x.ptm,E=x.cx,C=x.isUnstyled;fi(Rm.css.styles,C,{name:"fieldset"});var _=function(W){i.toggleable&&(m?T(W):O(W),i.onToggle&&i.onToggle({originalEvent:W,value:!m})),W.preventDefault()},T=function(W){i.onToggle||h(!1),i.onExpand&&i.onExpand(W)},O=function(W){i.onToggle||h(!0),i.onCollapse&&i.onCollapse(W)};Mi(function(){i.id||c(Ho())});var F=function(W){(W.code==="Enter"||W.code==="NumpadEnter"||W.code==="Space")&&(_(W),W.preventDefault())},B=function(){var W=n({className:E("content")},S("content")),ae=n({ref:v,id:w,role:"region","aria-labelledby":A,className:E("toggleableContent")},S("toggleableContent")),Y=n({classNames:E("transition"),timeout:{enter:1e3,exit:450},in:!m,unmountOnExit:!0,options:i.transitionOptions},S("transition"));return y.createElement(zo,Xm({nodeRef:v},Y),y.createElement("div",ae,y.createElement("div",W,i.children)))},M=function(){if(i.toggleable){var W=n({className:E("togglericon")},S("togglericon")),ae=m?i.expandIcon||y.createElement(jm,W):i.collapseIcon||y.createElement(u8,W),Y=Wn.getJSXIcon(ae,W,{props:i});return Y}return null},z=function(){var W=n({className:E("legendTitle")},S("legendTitle")),ae=n({id:A,role:"button","aria-expanded":!m,"aria-controls":w,onKeyDown:F,onClick:_,"aria-label":i.legend,tabIndex:0},S("toggler"));if(i.toggleable){var Y=M();return y.createElement("a",ae,Y,y.createElement("span",W,i.legend),y.createElement(Qt,null))}return y.createElement("span",Xm({},W,{id:A}),i.legend)},P=function(){var W=n({className:E("legend")},S("legend"));if(i.legend!=null||i.toggleable){var ae=z();return y.createElement("legend",W,ae)}};y.useImperativeHandle(e,function(){return{props:i,getElement:function(){return g.current},getContent:function(){return v.current}}});var H=n({id:l,ref:g,style:i.style,className:pt(i.className,E("root")),onClick:i.onClick},Rm.getOtherProps(i),S("root")),de=P(),fe=B();return y.createElement("fieldset",H,de,fe)});d8.displayName="Fieldset";const QW=t=>o.jsx(rn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"card m-3",children:[o.jsx("div",{className:"text-900 font-medium text-2xl mb-2",children:t==null?void 0:t.label}),o.jsx("div",{children:"Dynamic Listing Component"}),o.jsx(ra,{}),o.jsxs("div",{className:"p-fluid",children:[o.jsx("label",{children:t==null?void 0:t.label}),o.jsxs("div",{children:[o.jsxs(d8,{children:[o.jsx("div",{className:"pi pi-circle",children:" Option 1"}),o.jsx("br",{})]}),o.jsx("br",{}),o.jsx(d8,{children:o.jsx("div",{className:"pi pi-circle",children:" Option 2"})})]})]})]})}),JW=t=>o.jsx(rn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"card m-3",children:[o.jsx("div",{className:"text-900 font-medium text-2xl mb-2",children:t==null?void 0:t.label}),o.jsx("div",{children:"Documents"}),o.jsx(ra,{}),o.jsxs("div",{className:"p-fluid",children:[o.jsx("label",{children:t==null?void 0:t.label}),o.jsxs("div",{children:["1.Hr Cv.docx",o.jsx("br",{}),"2.Readme.txt",o.jsx("br",{}),"3.Cover.jpg"]})]})]})}),ZW=[{label:"Free form inputs",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"Text",icon:"pi pi-fw pi-plus",element:"input",schema:BY,uuid:tt(),type:tr,toolTip:t=>vX(t)},{label:"Number",icon:"pi pi-fw pi-trash",element:"number",schema:LY,uuid:tt(),type:tr,toolTip:t=>bX(t)},{label:"Email",icon:"pi pi-fw pi-external-link",element:"email",schema:MY,uuid:tt(),type:tr,toolTip:t=>yX(t)},{label:"Text Area",icon:"pi pi-fw pi-external-link",element:"textArea",schema:HY,uuid:tt(),type:tr,toolTip:t=>AX(t)},{label:"Text Editor",icon:"pi pi-fw pi-external-link",element:"textHtmlEditor",schema:PY,uuid:tt(),type:tr,toolTip:t=>wX(t)},{label:"Date Picker",icon:"pi pi-fw pi-user-plus",element:"date-picker",schema:IY,uuid:tt(),type:tr,toolTip:t=>SR(t)},{label:"Draw Signature",icon:"pi pi-fw pi-trash",element:"signature",schema:aT,uuid:tt(),type:tr,toolTip:t=>IR(t)},{label:"Type Signature",icon:"pi pi-fw pi-trash",element:"type-signature",schema:zY,uuid:tt(),type:tr,toolTip:t=>_R(t)},{label:"File Upload",icon:"pi pi-fw pi-trash",element:"file-upload",schema:NY,uuid:tt(),type:tr,toolTip:t=>DR(t)},{label:"Phone Number",icon:"pi pi-fw pi-trash",element:"phone",schema:UY,uuid:tt(),type:tr,PhoneNumberToolTip:hE,toolTip:t=>hE(t)},{label:"Website Url",icon:"pi pi-fw pi-trash",element:"web-url",schema:KY,uuid:tt(),type:tr,toolTip:t=>NR(t)},{label:"Hidden Field",icon:"pi pi-fw pi-trash",element:"hidden-field",schema:kY,uuid:tt(),type:tr,toolTip:t=>cG(t)},{label:"Address",icon:"pi pi-fw pi-trash",element:"address",schema:TY,uuid:tt(),type:tr,toolTip:t=>uG(t)},{label:"Grid Component",icon:"pi pi-fw pi-trash",element:"grid-component",schema:FY,uuid:tt(),type:tr,toolTip:t=>YW(t)},{label:"Matrix Dropdown",icon:"pi pi-fw pi-trash",element:"matrix-dropdown",schema:VY,uuid:tt(),type:tr,toolTip:t=>KW(t)}]},{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:KC,uuid:tt(),type:tr,toolTip:t=>s_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:iT,uuid:tt(),type:tr,toolTip:t=>o_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:eT,uuid:tt(),type:tr,toolTip:t=>l_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:YC,uuid:tt(),type:tr,toolTip:t=>c_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:nT,uuid:tt(),type:tr,toolTip:t=>l8(t)},{label:"Hierarchal Radio",icon:"pi pi-fw pi-align-left",element:"radio-hierarchal",schema:jY,uuid:tt(),type:tr,toolTip:t=>l8(t)},{label:"Dynamic Radio",icon:"pi pi-fw pi-align-left",element:"dynamic-listing",schema:_Y,uuid:tt(),type:tr,toolTip:t=>QW(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:ZC,uuid:tt(),type:tr,toolTip:t=>F6(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:sT,uuid:tt(),type:tr,toolTip:t=>xE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:rT,uuid:tt(),type:tr,toolTip:t=>AE(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:oT,uuid:tt(),type:tr,toolTip:t=>oG(t)},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:JC,uuid:tt(),type:tr,toolTip:t=>lG(t)}]},{label:"Social Logins",icon:"pi pi-fw pi-pencil",items:[{label:"Facebook Login",icon:"pi pi-fw pi-trash",element:"facebook-login",schema:OY,uuid:tt(),type:tr,toolTip:t=>F6(t)}]},{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:XC,uuid:tt(),type:tr,toolTip:t=>JW(t)}]}],eQ=[{label:"HTML",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"<a>",icon:"pi pi-fw pi-plus",element:"a",schema:WC,uuid:tt(),type:tr},{label:"<p>",icon:"pi pi-fw pi-trash",element:"paragraph",schema:tT,uuid:tt(),type:tr},{label:"<heading>",icon:"pi pi-fw pi-external-link",element:"h",schema:RC,uuid:tt(),type:tr},{label:"<li>",icon:"pi pi-fw pi-external-link",element:"list",schema:YY,uuid:tt(),type:tr},{label:"divider",icon:"pi pi-fw pi-external-link",element:"hr",schema:GC,uuid:tt(),type:tr},{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:O9,uuid:tt(),type:tr},{label:"Image Gallery",icon:"pi pi-fw pi-user-plus",element:"image-gallery",schema:QC,uuid:tt(),type:tr},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:N9,uuid:tt(),type:tr}]}],tQ=[{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:KC,uuid:tt(),type:tr,toolTip:t=>s_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:iT,uuid:tt(),type:tr,toolTip:t=>o_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:eT,uuid:tt(),type:tr,toolTip:t=>l_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:YC,uuid:tt(),type:tr,toolTip:t=>c_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:nT,uuid:tt(),type:tr,toolTip:t=>l8(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:ZC,uuid:tt(),type:tr,toolTip:t=>F6(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:sT,uuid:tt(),type:tr,toolTip:t=>xE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:rT,uuid:tt(),type:tr,toolTip:t=>AE(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:oT,uuid:tt(),type:tr},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:JC,uuid:tt(),type:tr}]}],nQ=[{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:O9,uuid:tt(),type:tr},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:N9,uuid:tt(),type:tr},{label:"Quiz",icon:"pi pi-fw pi-trash",element:"quiz",schema:qY,uuid:tt(),type:tr},{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:XC,uuid:tt(),type:tr}]}],rQ=[{label:"Left",icon:"pi pi-align-left",value:"left"},{label:"Right",icon:"pi pi-align-right",value:"right"}],iQ=[{key:1,language:"English",type:"english"},{key:2,language:"Urdu",type:"urdu"},{key:3,language:"Hindi",type:"hindi"},{key:4,language:"Arabic",type:"arabic"},{key:5,language:"French",type:"french"},{key:6,language:"Italian",type:"italian"},{key:7,language:"Spanish",type:"spanish"}],aQ=[{name:"Bad Script",font:"bad-script"},{name:"Bilbo Swash Caps",font:"bilbo-swash-caps"},{name:"caveat",font:"caveat"},{name:"Covered By Your Grace",font:"covered-by-your-grace"},{name:"Dancing Script",font:"dancing-script"},{name:"Gochi Hand",font:"gochi-hand"},{name:"Great Vibes",font:"great-vibes"},{name:"Handlee",font:"handlee"},{name:"Just Another Hand",font:"just-another-hand"},{name:"Kalam",font:"kalam"},{name:"La Belle Aurore",font:"la-belle-aurore"},{name:"Marck Script",font:"marck-script"},{name:"Nothing You Could Do",font:"nothing-you-could-do"},{name:"Qwigley",font:"qwigley"},{name:"Sacramento",font:"sacramento"},{name:"Shadows Into Light",font:"shadows-into-light"},{name:"Stalemate",font:"stalemate"},{name:"Yellowtail",font:"yellowtail"}],Gm={type:UC,isCoverPage:!1,margin:{left:0,right:0,top:0,bottom:0},isVisible:!0,isHidden:!1,isValid:!1,displayRules:[],title:{english:"Page 1"}},nf={type:na,showSectionHeader:!1,isVisible:!0,isHidden:!1,isValid:!1,showSectionTitle:!1,showSectionSubTitle:!1,heading:{english:"Section header"},subHeadingText:{english:""},isCollapsed:!1},nu={type:bo,isHidden:!1,isValid:!1,isRequired:!1,isCollapsed:!1,showRowTitle:!0,showRowSubTitle:!0,heading:{english:""},subHeadingText:{english:""},rowIsRepeatable:!1,repeatableFields:[],repeatableFieldsData:[],isMinimumEntries:!1,minimumEntries:5,addToListButtonLabel:{english:"Add To List"},reviewerChecklist:[]},wc={type:vs,isCollapsed:!1},sQ=t=>{let e=t;e={...e,uuid:tt()};const n=e.children.map(r=>({...r,uuid:tt(),children:r.children.map(i=>({...i,uuid:tt(),children:i.children.map(a=>{var s;return{...a,uuid:tt(),...((s=a==null?void 0:a.children)==null?void 0:s.length)>0?{children:a.children.map(l=>{var c;return{...l,uuid:tt(),...((c=l.options)==null?void 0:c.length)>0?{options:l.options.map(u=>({...u,uuid:tt()}))}:{}}})}:{}}})}))}));return e={...e,children:n},e};function oQ(t){return e=>{const n={...Gm,uuid:tt(),title:{english:`Page ${t+1}`},children:[{...nf,uuid:tt(),children:[{...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[]}]}]}]};e({type:mC,payLoad:n})}}function lQ(t){return e=>{const n=[];for(const[,i]of t.entries())for(const[,a]of i.children.entries())for(const[,s]of a.children.entries())for(const[,l]of s.children.entries())for(const[,c]of l.children.entries())s!=null&&s.rowIsRepeatable||n.push(c);e({type:MC,payLoad:{tableFields:n}})}}function cQ(t,e){return(n,r)=>{const i=t;let a=Et.cloneDeep(i);const{layout:s}=r;a={...a,title:{english:`Page ${(s==null?void 0:s.length)+1}`}},a=sQ(a),n({type:AC,payLoad:{page:a,pageIndex:e}})}}function uQ(t,e){return n=>{n({type:PC,payLoad:{pageIndex:t,page:e}})}}function dQ(t){return e=>{e({type:cC,payLoad:{pageIndex:t}})}}const f_=t=>{let e=t;e={...e,uuid:tt()};const n=e.children.map(r=>({...r,uuid:tt(),children:r.children.map(i=>{var a;return{...i,uuid:tt(),...((a=i==null?void 0:i.children)==null?void 0:a.length)>0?{children:i.children.map(s=>{var l;return{...s,uuid:tt(),...((l=s.options)==null?void 0:l.length)>0?{options:s.options.map(c=>({...c,uuid:tt()}))}:{}}})}:{}}})}));return e={...e,children:n},e};function fQ(t,e){return n=>{n({type:uC,payLoad:{pageIndex:t,sectionIndex:e}})}}function hQ(t){return e=>{const n={...nf,uuid:tt(),children:[{...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[]}]}]};e({type:vC,payLoad:{pageIndex:t,section:n}})}}function pQ(t,e,n){return r=>{r({type:gC,payLoad:{pageIndex:t,sectionIndex:e,section:n}})}}function gQ(t,e,n){return r=>{const i=t;let a=Et.cloneDeep(i);a=f_(a),r({type:wC,payLoad:{section:a,pageIndex:e,sectionIndex:n}})}}function mQ(t,e){return n=>{const r=t;let i=Et.cloneDeep(r);i=f_(i),n({type:SC,payLoad:{section:i,pageIndex:e}})}}const vQ=t=>{let e=t;e={...e,uuid:tt()};const n=e.children.map(r=>{var i;return{...r,uuid:tt(),...((i=r==null?void 0:r.children)==null?void 0:i.length)>0?{children:r.children.map(a=>{var s;return{...a,uuid:tt(),...((s=a.options)==null?void 0:s.length)>0?{options:a.options.map(l=>({...l,uuid:tt()}))}:{}}})}:{}}});return e={...e,children:n},e};function bQ(t,e,n,r){return i=>{const a=t;let s=Et.cloneDeep(a);s=vQ(s),i({type:xC,payLoad:{row:s,pageIndex:e,sectionIndex:n,rowIndex:r}})}}function yQ(t,e,n,r){return i=>{i({type:T9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function AQ(t,e,n){return r=>{r({type:dC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n}})}}function wQ(t,e){return n=>{const r={...nu,uuid:tt(),isCollapsed:!1,children:[{...wc,uuid:tt(),children:[]}]};n({type:bC,payLoad:{pageIndex:t,sectionIndex:e,row:r}})}}function SQ(t,e,n,r){return i=>{i({type:IC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,fieldItem:r}})}}const xQ=t=>{var r;let e=t;e={...e,uuid:tt()};const n=((r=e==null?void 0:e.children)==null?void 0:r.length)>0?e.children.map((i,a)=>{var s;return{...i,uuid:tt(),...((s=i.options)==null?void 0:s.length)>0?{options:i.options.map((l,c)=>({...l,uuid:tt()}))}:{}}}):[];return e={...e,children:n},e};function CQ(t,e,n){return r=>{const i={...wc,uuid:tt(),children:[]};r({type:yC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,column:i}})}}function TQ(t,e,n,r,i){return a=>{const s=t;let l=Et.cloneDeep(s);l=xQ(l),a({type:CC,payLoad:{column:l,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i}})}}function EQ(t,e,n,r){return i=>{i({type:fC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r}})}}function h_(t,e,n,r){return i=>{i({type:T9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function IQ(t,e,n,r,i){return(a,s)=>{var m,g,v,A;const{layout:l,tableFields:c}=s;let u=(m=l[t])==null?void 0:m.children[e].children[n];const d=(A=(v=(g=l[t])==null?void 0:g.children[e])==null?void 0:v.children[n])==null?void 0:A.children[r].children[i];if((u==null?void 0:u.rowIsRepeatable)===!0){const w=[...u.repeatableFields],x=Et.findIndex(w,function(S){return S.uuid===(d==null?void 0:d.uuid)});w.splice(x,1),u={...u,repeatableFields:w},a(h_(t,e,n,u))}const f=Et.findIndex(c,function(w){return w.uuid===(d==null?void 0:d.uuid)});c.splice(f,1),a({type:hC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i}})}}function _Q(t,e,n,r,i,a){return(s,l)=>{var m,g,v,A;const{layout:c,tableFields:u}=l;let d=(m=c[t])==null?void 0:m.children[e].children[n];if((d==null?void 0:d.rowIsRepeatable)===!0){const w=(A=(v=(g=c[t])==null?void 0:g.children[e])==null?void 0:v.children[n])==null?void 0:A.children[r].children[i],x=[...d.repeatableFields],S=Et.findIndex(x,function(E){return E.uuid===(w==null?void 0:w.uuid)});S===-1?x.splice(i,0,a):x[S]=a,x[S]=a,d={...d,repeatableFields:x},s(h_(t,e,n,d))}const f={type:pC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}},h=u.findIndex(w=>w.uuid===a.uuid);h>=0&&(u[h]=a),s(f)}}function DQ(t,e,n,r,i,a){return s=>{var d;const l=t;let c=Et.cloneDeep(l);if(c={...c,uuid:tt()},c!=null&&c.options&&((d=c==null?void 0:c.options)==null?void 0:d.length)>0){const f=c==null?void 0:c.options.map(h=>({...h,uuid:tt()}));c={...c,options:f}}s({type:TC,payLoad:{field:c,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i,fieldIndex:a}})}}function OQ(t,e,n,r,i,a,s,l){return c=>{c({type:_C,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,field:l}})}}function NQ(t,e,n,r,i,a,s,l){return c=>{c({type:DC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridColumnIndex:s,gridRowIndex:a,field:l}})}}function FQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:FC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l,field:c}})}}function kQ(t,e,n,r,i,a,s,l){return c=>{c({type:kC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l}})}}function PQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:OC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l,field:c}})}}function MQ(t,e,n,r,i,a,s,l){return c=>{c({type:NC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l}})}}function LQ(t){return e=>{e({type:j1,payLoad:{formSchema:t}})}}function BQ(t){return e=>{e({type:j1,payLoad:{layout:t}})}}function VQ(t){return(e,n)=>{const{languages:r}=n,i={type:j1,payLoad:{languages:[...r,t]}};e(i)}}function UQ(t){return(e,n)=>{const{languages:r}=n,i=Et.findIndex(r,l=>l.key===t.key),a=[...r];a.splice(i,1),e({type:j1,payLoad:{languages:a}})}}function qQ(t){return e=>{const n={type:j1,payLoad:{userSelectedLanguage:t.value}};e(n)}}function jQ(t){return e=>{e({type:lm,payLoad:{formType:t}})}}function $Q(t){return e=>{e({type:lm,payLoad:t})}}function HQ(t){return e=>{e({type:lm,payLoad:{editing_by:t}})}}function zQ(){return t=>{t({type:EC,payLoad:null})}}const f8={loading:!1,intro:"",editing_by:0,isChangesSaved:!1,enableReviewTask:!1,enableAutoSave:!1,enableAutoSaveBuilderSetting:!1,surveyQuestionSlide:!1,enableFormFluid:!0,showConditionalFields:!0,isAdvanceView:!1,models:[],fieldMappings:[],version_name:null,showIntroTab:!1,published_status:!1,formType:null,randomiseQuestions:!1,randomiseAnswers:!1,enableNoOfAssessmentQuestions:!1,noOfAssessmentQuestions:null,tableFields:[],tableConfiguration:{stripedRows:!1,gridLines:!1,flexScroll:!1,isResponsive:!1,rowReorder:!1},builderTemplateName:"",quizConfiguration:{quizPassMark:75,quizTimeLimit:2,quizMaxAttempts:99,quizSequentialAnswer:0,isAllCorrectMandatory:!0,quizRandomiseQuestions:1,quizUniqueAnswersPerAttempt:"1"},header:[],languages:[{key:1,language:"English",type:"english"}],userSelectedLanguage:{key:1,language:"English",type:"english"},layout:[{uuid:tt(),...Gm,children:[{uuid:tt(),...nf,children:[{uuid:tt(),...nu,children:[{uuid:tt(),...wc,children:[]}]}]}]}],conditionalTabsRules:[],conditionalSectionsRules:[]},YQ=(t=f8,e)=>{var n,r;switch(e.type){case SY:return{...t,...e.payLoad};case wY:return{...t,...e.payLoad};case EC:return{...t,...f8};case j1:return{...t,...e.payLoad};case lm:return{...t,...e.payLoad};case cC:{const{pageIndex:i}=e.payLoad;return{...t,layout:t.layout.filter((a,s)=>s!==i)}}case mC:return{...t,layout:[...t.layout,e.payLoad]};case vC:{const{pageIndex:i,section:a}=e.payLoad,s=[...t.layout];return s[i].children=[...s[i].children,a],{...t,layout:s}}case IC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,fieldItem:l}=e.payLoad,c=[...t.layout],u=Array.isArray((n=c[i].children[a].children[s])==null?void 0:n.repeatableFields)?[...((r=c[i].children[a].children[s])==null?void 0:r.repeatableFields)||[],l]:l?[l]:[];return c[i].children[a].children[s]={...c[i].children[a].children[s],repeatableFields:u},{...t,layout:c}}case xY:{const{fieldItem:i}=e.payLoad;let a=[...t.tableFields];return a=[...a,i],{...t,tableFields:a}}case MC:return{...t,...e.payLoad};case bC:{const{pageIndex:i,sectionIndex:a,row:s}=e.payLoad,l=[...t.layout];return l[i].children[a].children=[...l[i].children[a].children,s],{...t,layout:l}}case yC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,column:l}=e.payLoad,c=[...t.layout];return c[i].children[a].children[s].children=[...c[i].children[a].children[s].children,l],{...t,layout:c}}case _C:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,field:f}=e.payLoad,h=[...t.layout];return h[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children=[...h[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children,f],{...t,layout:h}}case DC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,gridRowIndex:u,gridColumnIndex:d,field:f}=e.payLoad,h=[...t.layout];return h[i].children[a].children[s].children[l].children[c].children.push({[`${u}-${d}`]:f}),{...t,layout:h}}case OC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,inlineFieldIndex:f,field:h}=e.payLoad,m=[...t.layout];return m[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children[f]=h,{...t,layout:m}}case FC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,gridRowIndex:u,gridColumnIndex:d,fieldChildrenIndex:f,field:h}=e.payLoad,m=[...t.layout];return m[i].children[a].children[s].children[l].children[c].children[f]={[`${u}-${d}`]:h},{...t,layout:m}}case NC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,inlineFieldIndex:f}=e.payLoad,h=[...t.layout];return h[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children.splice(f,1),{...t,layout:h}}case kC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,fieldChildrenIndex:u}=e.payLoad,d=[...t.layout];return d[i].children[a].children[s].children[l].children[c].children.splice(u,1),{...t,layout:d}}case uC:{const{pageIndex:i,sectionIndex:a}=e.payLoad,s=[...t.layout];return s[i].children.splice(a,1),{...t,layout:s}}case dC:{const{pageIndex:i,sectionIndex:a,rowIndex:s}=e.payLoad,l=[...t.layout];return l[i].children[a].children.splice(s,1),{...t,layout:l}}case fC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l}=e.payLoad,c=[...t.layout];return c[i].children[a].children[s].children.splice(l,1),{...t,layout:c}}case hC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c}=e.payLoad,u=[...t.layout];return u[i].children[a].children[s].children[l].children.splice(c,1),{...t,layout:u}}case pC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,field:u}=e.payLoad,d=[...t.layout];return d[i].children[a].children[s].children[l].children[c]=u,{...t,layout:d}}case gC:{const{pageIndex:i,sectionIndex:a,section:s}=e.payLoad,l=[...t.layout];return l[i].children[a]=s,{...t,layout:l}}case T9:{const{pageIndex:i,sectionIndex:a,rowIndex:s,row:l}=e.payLoad,c=[...t.layout];return c[i].children[a].children[s]=l,{...t,layout:c}}case PC:{const{pageIndex:i,page:a}=e.payLoad,s=[...t.layout];return s[i]=a,{...t,layout:s}}case AC:{const{page:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s.splice(a+1,0,i),{...t,layout:s}}case wC:{const{section:i,pageIndex:a,sectionIndex:s}=e.payLoad,l=[...t.layout];return l[a].children.splice(s+1,0,i),{...t,layout:l}}case SC:{const{section:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s[a].children.push(i),{...t,layout:s}}case xC:{const{row:i,pageIndex:a,sectionIndex:s,rowIndex:l}=e.payLoad,c=[...t.layout];return c[a].children[s].children.splice(l+1,0,i),{...t,layout:c}}case CC:{const{column:i,pageIndex:a,sectionIndex:s,rowIndex:l,columnIndex:c}=e.payLoad,u=[...t.layout];return u[a].children[s].children[l].children.splice(c+1,0,i),{...t,layout:u}}case TC:{const{field:i,pageIndex:a,sectionIndex:s,rowIndex:l,columnIndex:c,fieldIndex:u}=e.payLoad,d=[...t.layout];return d[a].children[s].children[l].children[c].children.splice(u+1,0,i),{...t,layout:d}}}return t},p_=N.createContext({dragDropManager:void 0});function ru(t){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ru(t)}function KQ(t,e){if(ru(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function XQ(t){var e=KQ(t,"string");return ru(e)=="symbol"?e:e+""}function RQ(t,e,n){return(e=XQ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function m_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?g_(Object(n),!0).forEach(function(r){RQ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ql(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var v_=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),h8=function(){return Math.random().toString(36).substring(7).split("").join(".")},b_={INIT:"@@redux/INIT"+h8(),REPLACE:"@@redux/REPLACE"+h8(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h8()}};function GQ(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function WQ(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(ZQ(t))return"date";if(JQ(t))return"error";var n=QQ(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function QQ(t){return typeof t.constructor=="function"?t.constructor.name:null}function JQ(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function ZQ(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function rf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=WQ(t)),e}function y_(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ql(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?ql(1):"Expected the enhancer to be a function. Instead, received: '"+rf(n)+"'");return n(y_)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ql(2):"Expected the root reducer to be a function. Instead, received: '"+rf(t)+"'");var i=t,a=e,s=[],l=s,c=!1;function u(){l===s&&(l=s.slice())}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?ql(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ql(4):"Expected the listener to be a function. Instead, received: '"+rf(v)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?ql(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var A=!0;return u(),l.push(v),function(){if(A){if(c)throw new Error(process.env.NODE_ENV==="production"?ql(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");A=!1,u();var x=l.indexOf(v);l.splice(x,1),s=null}}}function h(v){if(!GQ(v))throw new Error(process.env.NODE_ENV==="production"?ql(7):"Actions must be plain objects. Instead, the actual type was: '"+rf(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?ql(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?ql(9):"Reducers may not dispatch actions.");try{c=!0,a=i(a,v)}finally{c=!1}for(var A=s=l,w=0;w<A.length;w++){var x=A[w];x()}return v}function m(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ql(10):"Expected the nextReducer to be a function. Instead, received: '"+rf(v));i=v,h({type:b_.REPLACE})}function g(){var v,A=f;return v={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?ql(11):"Expected the observer to be an object. Instead, received: '"+rf(x)+"'");function S(){x.next&&x.next(d())}S();var E=A(S);return{unsubscribe:E}}},v[v_]=function(){return this},v}return h({type:b_.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:m},r[v_]=g,r}function qr(t,e,...n){if(eJ()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function eJ(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function tJ(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function nJ(t,e){return t.filter(n=>n!==e)}function A_(t){return typeof t=="object"}function rJ(t,e){const n=new Map,r=a=>{n.set(a,n.has(a)?n.get(a)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((a,s)=>{a===1&&i.push(s)}),i}function iJ(t,e){return t.filter(n=>e.indexOf(n)>-1)}const p8="dnd-core/INIT_COORDS",Wm="dnd-core/BEGIN_DRAG",g8="dnd-core/PUBLISH_DRAG_SOURCE",Qm="dnd-core/HOVER",Jm="dnd-core/DROP",Zm="dnd-core/END_DRAG";function w_(t,e){return{type:p8,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const aJ={type:p8,payload:{clientOffset:null,sourceClientOffset:null}};function sJ(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:a,getSourceClientOffset:s}=r,l=t.getMonitor(),c=t.getRegistry();t.dispatch(w_(a)),oJ(n,l,c);const u=uJ(n,l);if(u==null){t.dispatch(aJ);return}let d=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");lJ(s),d=s(u)}t.dispatch(w_(a,d));const h=c.getSource(u).beginDrag(l,u);if(h==null)return;cJ(h),c.pinSource(u);const m=c.getSourceType(u);return{type:Wm,payload:{itemType:m,item:h,sourceId:u,clientOffset:a||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function oJ(t,e,n){qr(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){qr(n.getSource(r),"Expected sourceIds to be registered.")})}function lJ(t){qr(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function cJ(t){qr(A_(t),"Item must be an object.")}function uJ(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function dJ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fJ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){dJ(t,i,n[i])})}return t}function hJ(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();pJ(r),vJ(r).forEach((s,l)=>{const c=gJ(s,l,i,r),u={type:Jm,payload:{dropResult:fJ({},n,c)}};t.dispatch(u)})}}function pJ(t){qr(t.isDragging(),"Cannot call drop while not dragging."),qr(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function gJ(t,e,n,r){const i=n.getTarget(t);let a=i?i.drop(r,t):void 0;return mJ(a),typeof a>"u"&&(a=e===0?{}:r.getDropResult()),a}function mJ(t){qr(typeof t>"u"||A_(t),"Drop result must either be an object or undefined.")}function vJ(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function bJ(t){return function(){const n=t.getMonitor(),r=t.getRegistry();yJ(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Zm}}}function yJ(t){qr(t.isDragging(),"Cannot call endDrag while not dragging.")}function m8(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function AJ(t){return function(n,{clientOffset:r}={}){wJ(n);const i=n.slice(0),a=t.getMonitor(),s=t.getRegistry(),l=a.getItemType();return xJ(i,s,l),SJ(i,a,s),CJ(i,a,s),{type:Qm,payload:{targetIds:i,clientOffset:r||null}}}}function wJ(t){qr(Array.isArray(t),"Expected targetIds to be an array.")}function SJ(t,e,n){qr(e.isDragging(),"Cannot call hover while not dragging."),qr(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];qr(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const a=n.getTarget(i);qr(a,"Expected targetIds to be registered.")}}function xJ(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],a=e.getTargetType(i);m8(a,n)||t.splice(r,1)}}function CJ(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function TJ(t){return function(){if(t.getMonitor().isDragging())return{type:g8}}}function EJ(t){return{beginDrag:sJ(t),publishDragSource:TJ(t),hover:AJ(t),drop:hJ(t),endDrag:bJ(t)}}class IJ{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(a){return(...s)=>{const l=a.apply(e,s);typeof l<"u"&&n(l)}}const i=EJ(this);return Object.keys(i).reduce((a,s)=>{const l=i[s];return a[s]=r(l),a},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function _J(t,e){return{x:t.x+e.x,y:t.y+e.y}}function S_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function DJ(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:S_(_J(e,r),n)}function OJ(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:S_(e,n)}const Ep=[],v8=[];Ep.__IS_NONE__=!0,v8.__IS_ALL__=!0;function NJ(t,e){return t===Ep?!1:t===v8||typeof e>"u"?!0:iJ(e,t).length>0}class FJ{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;qr(typeof e=="function","listener must be a function."),qr(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const a=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!NJ(s.dirtyHandlerIds,r)||e()}finally{i=l}};return this.store.subscribe(a)}subscribeToOffsetChange(e){qr(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return qr(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(qr(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return m8(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(qr(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),a=this.getItemType();if(a&&!m8(i,a))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(e);return r?l===s.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return DJ(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return OJ(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const x_=typeof global<"u"?global:self,C_=x_.MutationObserver||x_.WebKitMutationObserver;function T_(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function kJ(t){let e=1;const n=new C_(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const PJ=typeof C_=="function"?kJ:T_;class MJ{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=PJ(this.flush),this.requestErrorThrow=T_(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class LJ{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class BJ{create(e){const n=this.freeTasks,r=n.length?n.pop():new LJ(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const E_=new MJ,VJ=new BJ(E_.registerPendingError);function UJ(t){E_.enqueueTask(VJ.create(t))}const b8="dnd-core/ADD_SOURCE",y8="dnd-core/ADD_TARGET",A8="dnd-core/REMOVE_SOURCE",e3="dnd-core/REMOVE_TARGET";function qJ(t){return{type:b8,payload:{sourceId:t}}}function jJ(t){return{type:y8,payload:{targetId:t}}}function $J(t){return{type:A8,payload:{sourceId:t}}}function HJ(t){return{type:e3,payload:{targetId:t}}}function zJ(t){qr(typeof t.canDrag=="function","Expected canDrag to be a function."),qr(typeof t.beginDrag=="function","Expected beginDrag to be a function."),qr(typeof t.endDrag=="function","Expected endDrag to be a function.")}function YJ(t){qr(typeof t.canDrop=="function","Expected canDrop to be a function."),qr(typeof t.hover=="function","Expected hover to be a function."),qr(typeof t.drop=="function","Expected beginDrag to be a function.")}function w8(t,e){if(e&&Array.isArray(t)){t.forEach(n=>w8(n,!1));return}qr(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var jl;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(jl||(jl={}));let KJ=0;function XJ(){return KJ++}function RJ(t){const e=XJ().toString();switch(t){case jl.SOURCE:return`S${e}`;case jl.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function I_(t){switch(t[0]){case"S":return jl.SOURCE;case"T":return jl.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function __(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,a]}=n.next();if(a===e)return!0;r=!!i}while(!r);return!1}class GJ{addSource(e,n){w8(e),zJ(n);const r=this.addHandler(jl.SOURCE,e,n);return this.store.dispatch(qJ(r)),r}addTarget(e,n){w8(e,!0),YJ(n);const r=this.addHandler(jl.TARGET,e,n);return this.store.dispatch(jJ(r)),r}containsHandler(e){return __(this.dragSources,e)||__(this.dropTargets,e)}getSource(e,n=!1){return qr(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return qr(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return qr(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return qr(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return I_(e)===jl.SOURCE}isTargetId(e){return I_(e)===jl.TARGET}removeSource(e){qr(this.getSource(e),"Expected an existing source."),this.store.dispatch($J(e)),UJ(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){qr(this.getTarget(e),"Expected an existing target."),this.store.dispatch(HJ(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);qr(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){qr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=RJ(e);return this.types.set(i,n),e===jl.SOURCE?this.dragSources.set(i,r):e===jl.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const WJ=(t,e)=>t===e;function QJ(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function JJ(t,e,n=WJ){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function ZJ(t=Ep,e){switch(e.type){case Qm:break;case b8:case y8:case e3:case A8:return Ep;case Wm:case g8:case Zm:case Jm:default:return v8}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=rJ(n,r);if(!(i.length>0||!JJ(n,r)))return Ep;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function eZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tZ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){eZ(t,i,n[i])})}return t}const D_={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function nZ(t=D_,e){const{payload:n}=e;switch(e.type){case p8:case Wm:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Qm:return QJ(t.clientOffset,n.clientOffset)?t:tZ({},t,{clientOffset:n.clientOffset});case Zm:case Jm:return D_;default:return t}}function rZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function af(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){rZ(t,i,n[i])})}return t}const iZ={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function aZ(t=iZ,e){const{payload:n}=e;switch(e.type){case Wm:return af({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case g8:return af({},t,{isSourcePublic:!0});case Qm:return af({},t,{targetIds:n.targetIds});case e3:return t.targetIds.indexOf(n.targetId)===-1?t:af({},t,{targetIds:nJ(t.targetIds,n.targetId)});case Jm:return af({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Zm:return af({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function sZ(t=0,e){switch(e.type){case b8:case y8:return t+1;case A8:case e3:return t-1;default:return t}}function oZ(t=0){return t+1}function lZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cZ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){lZ(t,i,n[i])})}return t}function uZ(t={},e){return{dirtyHandlerIds:ZJ(t.dirtyHandlerIds,{type:e.type,payload:cZ({},e.payload,{prevTargetIds:tJ(t,"dragOperation.targetIds",[])})}),dragOffset:nZ(t.dragOffset,e),refCount:sZ(t.refCount,e),dragOperation:aZ(t.dragOperation,e),stateId:oZ(t.stateId)}}function dZ(t,e=void 0,n={},r=!1){const i=fZ(r),a=new FJ(i,new GJ(i)),s=new IJ(i,a),l=t(s,e,n);return s.receiveBackend(l),s}function fZ(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return y_(uZ,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function hZ(t,e){if(t==null)return{};var n=pZ(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pZ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let O_=0;const t3=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var sf=N.memo(function(e){var{children:n}=e,r=hZ(e,["children"]);const[i,a]=gZ(r);return N.useEffect(()=>{if(a){const s=N_();return++O_,()=>{--O_===0&&(s[t3]=null)}}},[]),o.jsx(p_.Provider,{value:i,children:n})});function gZ(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=mZ(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function mZ(t,e=N_(),n,r){const i=e;return i[t3]||(i[t3]={dragDropManager:dZ(t,e,n,r)}),i[t3]}function N_(){return typeof global<"u"?global:window}var F_=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var s=a[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n};const vZ=ms(F_),j0=typeof window<"u"?N.useLayoutEffect:N.useEffect;function bZ(t,e,n){const[r,i]=N.useState(()=>e(t)),a=N.useCallback(()=>{const s=e(t);vZ(r,s)||(i(s),n&&n())},[r,t,n]);return j0(a),[r,a]}function yZ(t,e,n){const[r,i]=bZ(t,e,n);return j0(function(){const s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(i,{handlerIds:[s]})},[t,i]),r}function k_(t,e,n){return yZ(e,t||(()=>({})),()=>n.reconnect())}function P_(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),N.useMemo(()=>typeof t=="function"?t():t,n)}function AZ(t){return N.useMemo(()=>t.hooks.dragSource(),[t])}function wZ(t){return N.useMemo(()=>t.hooks.dragPreview(),[t])}let S8=!1,x8=!1;class SZ{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){qr(!S8,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return S8=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{S8=!1}}isDragging(){if(!this.sourceId)return!1;qr(!x8,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return x8=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{x8=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let C8=!1;class xZ{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;qr(!C8,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return C8=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{C8=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function CZ(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function TZ(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function T8(t,e,n,r){let i=n?n.call(r,t,e):void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(e);for(let c=0;c<a.length;c++){const u=a[c];if(!l(u))return!1;const d=t[u],f=e[u];if(i=n?n.call(r,d,f,u):void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function E8(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function EZ(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function IZ(t){return(e=null,n=null)=>{if(!N.isValidElement(e)){const a=e;return t(a,n),a}const r=e;return EZ(r),_Z(r,n?a=>t(a,n):t)}}function M_(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=IZ(r);e[n]=()=>i}}),e}function L_(t,e){typeof t=="function"?t(e):t.current=e}function _Z(t,e){const n=t.ref;return qr(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?N.cloneElement(t,{ref:r=>{L_(n,r),L_(e,r)}}):N.cloneElement(t,{ref:e})}class DZ{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!T8(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!T8(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=M_({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,E8(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,E8(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class OZ{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!T8(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=M_({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,E8(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function of(){const{dragDropManager:t}=N.useContext(p_);return qr(t!=null,"Expected drag drop context"),t}function NZ(t,e){const n=of(),r=N.useMemo(()=>new DZ(n.getBackend()),[n]);return j0(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),j0(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function FZ(){const t=of();return N.useMemo(()=>new SZ(t),[t])}class kZ{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:a}=r;return a?a(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function PZ(t,e,n){const r=N.useMemo(()=>new kZ(t,e,n),[e,n]);return N.useEffect(()=>{r.spec=t},[t]),r}function MZ(t){return N.useMemo(()=>{const e=t.type;return qr(e!=null,"spec.type must be defined"),e},[t])}function LZ(t,e,n){const r=of(),i=PZ(t,e,n),a=MZ(t);j0(function(){if(a!=null){const[l,c]=TZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,e,n,i,a])}function Ji(t,e){const n=P_(t,e);qr(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=FZ(),i=NZ(n.options,n.previewOptions);return LZ(n,r,i),[k_(n.collect,r,i),AZ(i),wZ(i)]}function BZ(t){return N.useMemo(()=>t.hooks.dropTarget(),[t])}function VZ(t){const e=of(),n=N.useMemo(()=>new OZ(e.getBackend()),[e]);return j0(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function UZ(){const t=of();return N.useMemo(()=>new xZ(t),[t])}function qZ(t){const{accept:e}=t;return N.useMemo(()=>(qr(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class jZ{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function $Z(t,e){const n=N.useMemo(()=>new jZ(t,e),[e]);return N.useEffect(()=>{n.spec=t},[t]),n}function HZ(t,e,n){const r=of(),i=$Z(t,e),a=qZ(t);j0(function(){const[l,c]=CZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,e,i,n,a.map(s=>s.toString()).join("|")])}function zZ(t,e){const n=P_(t,e),r=UZ(),i=VZ(n.options);return HZ(n,r,i),[k_(n.collect,r,i),BZ(i)]}function B_(t){let e=null;return()=>(e==null&&(e=t()),e)}function YZ(t,e){return t.filter(n=>n!==e)}function KZ(t,e){const n=new Set,r=a=>n.add(a);t.forEach(r),e.forEach(r);const i=[];return n.forEach(a=>i.push(a)),i}class XZ{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=KZ(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=YZ(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class RZ{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const V_="__NATIVE_FILE__",U_="__NATIVE_URL__",q_="__NATIVE_TEXT__",j_="__NATIVE_HTML__",$_=Object.freeze(Object.defineProperty({__proto__:null,FILE:V_,HTML:j_,TEXT:q_,URL:U_},Symbol.toStringTag,{value:"Module"}));function I8(t,e,n){const r=e.reduce((i,a)=>i||t.getData(a),"");return r??n}const _8={[V_]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[j_]:{exposeProperties:{html:(t,e)=>I8(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[U_]:{exposeProperties:{urls:(t,e)=>I8(t,e,"").split(`
|
|
1598
|
-
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[q_]:{exposeProperties:{text:(t,e)=>I8(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function GZ(t,e){const n=_8[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new RZ(n);return r.loadDataTransfer(e),r}function D8(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(_8).filter(n=>{const r=_8[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const WZ=B_(()=>/firefox/i.test(navigator.userAgent)),H_=B_(()=>!!window.safari);class z_{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const m=n[d];if(m<e)c=d+1;else if(m>e)u=d-1;else return r[d]}l=Math.max(0,u);const f=e-n[l],h=f*f;return r[l]+i[l]*f+a[l]*h+s[l]*f*h}constructor(e,n){const{length:r}=e,i=[];for(let m=0;m<r;m++)i.push(m);i.sort((m,g)=>e[m]<e[g]?-1:1);const a=[],s=[];let l,c;for(let m=0;m<r-1;m++)l=e[m+1]-e[m],c=n[m+1]-n[m],a.push(l),s.push(c/l);const u=[s[0]];for(let m=0;m<a.length-1;m++){const g=s[m],v=s[m+1];if(g*v<=0)u.push(0);else{l=a[m];const A=a[m+1],w=l+A;u.push(3*w/((w+A)/g+(w+l)/v))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let m=0;m<u.length-1;m++){h=s[m];const g=u[m],v=1/a[m],A=g+u[m+1]-h-h;d.push((h-g-A)*v),f.push(A*v*v)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const QZ=1;function Y_(t){const e=t.nodeType===QZ?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function n3(t){return{x:t.clientX,y:t.clientY}}function JZ(t){var e;return t.nodeName==="IMG"&&(WZ()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function ZZ(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return H_()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function eee(t,e,n,r,i){const a=JZ(e),l=Y_(a?t:e),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=t,{anchorX:f,anchorY:h}=r,{dragPreviewWidth:m,dragPreviewHeight:g}=ZZ(a,e,u,d),v=()=>{let _=new z_([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(h);return H_()&&a&&(_+=(window.devicePixelRatio-1)*g),_},A=()=>new z_([0,.5,1],[c.x,c.x/u*m,c.x+m-u]).interpolate(f),{offsetX:w,offsetY:x}=i,S=w===0||w,E=x===0||x;return{x:S?w:A(),y:E?x:v()}}class tee{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}}function nee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){nee(t,i,n[i])})}return t}class ree{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=s=>this.handleDragStart(s,e),a=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=s=>this.handleDragEnter(s,e),i=s=>this.handleDragOver(s,e),a=s=>this.handleDrop(s,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return K_({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return K_({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys($_).some(n=>$_[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=GZ(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const a=this.sourceNodes.get(i);return a&&Y_(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const s=n3(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=D8(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||f;if(h){const{anchorX:m,anchorY:g,offsetX:v,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),S=eee(f,h,s,{anchorX:m,anchorY:g},{offsetX:v,offsetY:A});l.setDragImage(h,S.x,S.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=D8(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,a.length>0&&this.actions.hover(a,{clientOffset:n3(i)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=n3(i),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;i.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}else D8(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:n3(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const a=i.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(i.preventDefault(),a.dragDrop()))},this.options=new tee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new XZ(this.isNodeInDocument)}}const lf=function(e,n,r){return new ree(e,n,r)},X_=N.createContext(void 0),R_=({children:t,option:e,templateSchema:n,onChange:r})=>{const i={...f8,...n},[a,s]=N.useReducer(YQ,i);N.useEffect(()=>{console.log("Update FormBuilderProvider here to check how many time it updates"),s({type:"FORM_UPDATE",payLoad:n})},[n]);const{isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h="ltr",emitSocketData:m,media:g,reusableComponent:v,saveFormProgress:A}=e;return o.jsx(X_.Provider,{value:{media:g,isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h,emitSocketData:m,reusableComponent:v,state:a,dispatch:s,onChange:r,saveFormProgress:A},children:o.jsx(bK,{children:o.jsx(sf,{backend:lf,children:t})})})},G_=()=>N.useContext(X_),iee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},aee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],see=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],W_=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return iee(t,u,c)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=n.slice(1),l=r[i];return r[i]={...l,children:W_(l.children,a,s)},r},Q_=(t,e)=>{if(e.length===1){const s=Number(e[0]);return aee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:Q_(a.children,i)},n},O8=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return see(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:O8(s.children,a,n)},r},oee=(t,e,n)=>{let r=[...t],i=r[n[la]].children[n[ca]].children[n[ha]].children[n[pa]].children[n[ga]].inlineConditionalRules.rules[n[Sa]].conditions[n[$o]].children[n[yo]];return r[n[la]].children[n[ca]].children[n[ha]].children[n[pa]].children[n[ga]].inlineConditionalRules.rules[n[Sa]].conditions[n[$o]].children.splice([n[yo]],1),r[e[la]].children[e[ca]].children[e[ha]].children[e[pa]].children[e[ga]].inlineConditionalRules.rules[e[Sa]].conditions[e[$o]].children.splice(e[yo],0,i),r},lee=(t,e,n)=>W_(t,e,n),cee=t=>{const e=[...t],n={type:vs,uuid:tt(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},J_=(t,e,n,r)=>{var h,m,g,v,A,w;let i;const a={...wc,uuid:tt(),children:[r]},s={...nu,uuid:tt()},l={...nu,uuid:tt(),children:[a]},c={...nf,uuid:tt(),children:[l]},u={...Gm,uuid:tt(),children:[c]};switch(e.length){case 1:{r.type===UC?i={...c,children:[r]}:i={...c,children:[s]};break}case 2:{r.type===na?i={...u,children:[c]}:i={...u,children:[c]};break}case 3:{r.type===bo?i={...c,children:[l]}:i={...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[r]}]};break}case 4:{r.type===$1?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(v=(g=(m=(h=d[n[la]])==null?void 0:h.children[n[ca]])==null?void 0:m.children[n[ha]])==null?void 0:g.children[n[pa]])==null?void 0:v.children[n[ga]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Sa]].conditions[n[$o]].children.splice(n[yo],1):d=Q_(d,n),d=cee(d),d=O8(d,e,i),d},uee=(t,e,n)=>{let r;switch(e.length){case 1:{r={...Gm,uuid:tt(),children:[{...nf,uuid:tt(),children:[{...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[n]}]}]}]};break}case 2:{r={...nf,uuid:tt(),children:[{...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[n]}]}]};break}case 3:{r={...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[n]}]};break}case 4:{r={...wc,uuid:tt(),children:[n]};break}default:r=n}return O8(t,e,r)},ln=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=G_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const i=t.builderTemplateName,a=t.isChangesSaved,s=t.editing_by,l=t.version_name,c=t.loading,u=t.published_status,d=t,f=t,h=t.formType,m=t==null?void 0:t.userSelectedLanguage,g=t==null?void 0:t.languages,v=t.layout,A=N.useCallback(ge=>LQ(ge)(e),[e]),w=N.useCallback(ge=>lQ(ge)(e),[e]),x=N.useCallback(ge=>BQ(ge)(e),[e]),S=N.useCallback((ge,ve)=>{var St,Kt,An,yn,vn,On,Jn,Cn;const Le=[...v],Ne=ge.path.split("-"),me=Ne.slice(0,-1).join("-"),V={uuid:ve.uuid,type:ve.type,reviewerChecklist:[]},te=0,X=1,se=2,ue=3,Se=4,De=5,je=6,ct=8,Dt=7,nt=5,xt=6,rt=8;if(ve.type===na&&(ve==null?void 0:ve.schema)!==void 0){B(JSON.parse(ve==null?void 0:ve.schema),parseInt(Ne[te]));return}if(((St=ve==null?void 0:ve.schema)==null?void 0:St.componentType)==="question"&&((On=(vn=(yn=(An=(Kt=Le[0])==null?void 0:Kt.children[0])==null?void 0:An.children[0])==null?void 0:yn.children[0])==null?void 0:vn.children)!=null&&On.some(jt=>{var st,et,dt;return((st=jt==null?void 0:jt.questionText)==null?void 0:st[m.type])===((dt=(et=ve==null?void 0:ve.schema)==null?void 0:et.questionText)==null?void 0:dt[m.type])})))return;if(ve.type===tr){let jt={type:$1,reviewerChecklist:[],...Et.cloneDeep(ve.schema)};if(jt!=null&&jt.options&&(jt={...jt,options:[{uuid:tt(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:tt(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),jt.componentType==="grid-component"&&(jt={...jt,children:[],options:[{uuid:tt(),custom_values:{}}]}),jt.componentType==="radio-hierarchal"&&(jt={...jt,type:"radio",children:[],options:[{uuid:tt(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:tt(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),jt={...jt,uuid:tt()},Ne.length===ct){U(parseInt(Ne[te]),parseInt(Ne[X]),parseInt(Ne[se]),parseInt(Ne[ue]),parseInt(Ne[Se]),parseInt(Ne[De]),parseInt(Ne[je]),jt);return}if(Ne.length===Dt){Z(parseInt(Ne[te]),parseInt(Ne[X]),parseInt(Ne[se]),parseInt(Ne[ue]),parseInt(Ne[Se]),parseInt(Ne[nt]),parseInt(Ne[xt]),jt);return}if((Cn=(Jn=Le[Ne[te]].children[Ne[X]])==null?void 0:Jn.children[Ne[se]])!=null&&Cn.rowIsRepeatable&&(jt==null?void 0:jt.componentType)==="editor")return;x(uee(Le,Ne,jt)),Ne.length>1&&Te(Ne[te],Ne[X],Ne[se],jt);return}const mt=ve.path.split("-"),Ot=mt.slice(0,-1).join("-");if(mt.length===Ne.length){if(Ot===me){if((mt==null?void 0:mt.length)===rt){x(oee(Le,Ne,mt));return}x(lee(Le,Ne,mt));return}const jt={...V,...ve};(ve==null?void 0:ve.id)===void 0&&(jt.id=tt()),x(J_(Le,Ne,mt,jt));return}if((mt==null?void 0:mt.length)===8){const jt={type:$1,reviewerChecklist:[],...ve};Z(parseInt(Ne[te]),parseInt(Ne[X]),parseInt(Ne[se]),parseInt(Ne[ue]),parseInt(Ne[Se]),parseInt(Ne[nt]),parseInt(Ne[xt]),jt),we(mt[la],mt[ca],mt[ha],mt[pa],mt[ga],mt[nt],mt[xt],mt[Vl]);return}const $e={...V,...ve};(ve==null?void 0:ve.id)===void 0&&($e.id=tt()),x(J_(Le,Ne,mt,$e))},[v,x,m.type]),E=N.useCallback(()=>zQ()(e),[e]),C=N.useCallback(ge=>VQ(ge)(e,t),[e]),_=N.useCallback(ge=>UQ(ge)(e,t),[e]),T=N.useCallback(ge=>qQ(ge)(e),[e]),O=N.useCallback(ge=>oQ(ge)(e),[e]),F=N.useCallback(ge=>hQ(ge)(e),[e]),B=N.useCallback((ge,ve)=>mQ(ge,ve)(e),[e]),M=N.useCallback((ge,ve)=>wQ(ge,ve)(e),[e]),z=N.useCallback((ge,ve,Le)=>CQ(ge,ve,Le)(e),[e]),P=N.useCallback(ge=>dQ(ge)(e),[e]),H=N.useCallback((ge,ve)=>fQ(ge,ve)(e),[e]),de=N.useCallback((ge,ve,Le)=>AQ(ge,ve,Le)(e),[e]),fe=N.useCallback((ge,ve,Le,Ne)=>EQ(ge,ve,Le,Ne)(e),[e]),ne=N.useCallback((ge,ve,Le,Ne,me)=>IQ(ge,ve,Le,Ne,me)(e,t),[e]),W=N.useCallback((ge,ve,Le,Ne,me,V)=>_Q(ge,ve,Le,Ne,me,V)(e,t),[e]),ae=N.useCallback((ge,ve,Le)=>pQ(ge,ve,Le)(e),[e]),Y=N.useCallback((ge,ve,Le,Ne)=>yQ(ge,ve,Le,Ne)(e),[e]),pe=N.useCallback((ge,ve)=>uQ(ge,ve)(e),[e]),ie=N.useCallback((ge,ve,Le,Ne,me,V)=>DQ(ge,ve,Le,Ne,me,V)(e),[e]),J=N.useCallback((ge,ve,Le,Ne,me)=>TQ(ge,ve,Le,Ne,me)(e),[e]),Q=N.useCallback((ge,ve,Le,Ne)=>bQ(ge,ve,Le,Ne)(e),[e]),oe=N.useCallback((ge,ve,Le)=>gQ(ge,ve,Le)(e),[e]),ye=N.useCallback((ge,ve)=>cQ(ge,ve)(e,t),[e]),Te=N.useCallback((ge,ve,Le,Ne)=>SQ(ge,ve,Le,Ne)(e),[e]),Ae=N.useCallback((ge,ve,Le,Ne,me,V,te,X,se)=>PQ(ge,ve,Le,Ne,me,V,te,X,se)(e),[e]),be=N.useCallback((ge,ve,Le,Ne,me,V,te,X,se)=>FQ(ge,ve,Le,Ne,me,V,te,X,se)(e),[e]),we=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>kQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),re=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>MQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),U=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>OQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),Z=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>NQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),K=N.useCallback(ge=>jQ(ge)(e),[e]),he=N.useCallback(ge=>$Q(ge)(e),[e]),_e=N.useCallback(ge=>HQ(ge)(e),[e]);return{builderIsChangesSaved:a,builderTemplateName:i,formBuilderFormSchema:d,formBuilderFormLayout:v,formBuilderSchemaLanguages:g,saveFormTemplateNewVersion:f,userSelectedLanguage:m,formBuilderConfigurationType:h,formBuilderLoading:c,formBuilderPublishedStatus:u,builderEditingBy:s,builderVersionName:l,handleDrop:S,formatTableFieldsHook:w,saveFormBuilderSchema:A,removePage:P,removeSection:H,removeRow:de,removeColumn:fe,removeField:ne,updateEditingBy:_e,addTabs:O,addSection:F,addRow:M,addColumn:z,cloneField:ie,cloneColumn:J,cloneRow:Q,cloneSection:oe,clonePage:ye,sectionImport:B,setLayout:x,fieldSettingUpdate:W,selectFormBuilderLanguage:C,unselectFormBuilderLanguage:_,updateUserFormSelectedLanguage:T,updateFormType:K,schemaBuilderUpdate:he,pageSettingUpdate:pe,saveFormProgress:r,sectionSettingUpdate:ae,rowSettingUpdate:Y,clearBuilderSchema:E,addFieldToRowRepeaptable:Te,addFieldToInlineRuleCondtionFields:U,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:Z,gridComponentFieldSettingUpdate:be,gridComponentFieldDelete:we}},tn=()=>{const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,globalAlignment:s,reusableComponent:l}=G_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const c=r==null?void 0:r.key,{saveComponent:u,componentList:d}=l;return{isPreview:t,isAdmin:e,isRenderView:n,renderType:c,isAdvanceView:i,globalAlignment:s,media:a,saveComponent:u,componentList:d,emitSocketData:()=>{},updateGlobalToast:m=>{console.log(m)}}};function N8(){return N8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},N8.apply(this,arguments)}var Z_=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",N8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));Z_.displayName="ExclamationTriangleIcon";function F8(){return F8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F8.apply(this,arguments)}var eD=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",F8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));eD.displayName="InfoCircleIcon";function k8(){return k8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},k8.apply(this,arguments)}var P8=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",k8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))}));P8.displayName="TimesCircleIcon";function M8(){return M8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},M8.apply(this,arguments)}function L8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dee(t){if(Array.isArray(t))return L8(t)}function fee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tD(t,e){if(t){if(typeof t=="string")return L8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L8(t,e)}}function hee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1598
|
+
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[q_]:{exposeProperties:{text:(t,e)=>I8(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function GZ(t,e){const n=_8[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new RZ(n);return r.loadDataTransfer(e),r}function D8(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(_8).filter(n=>{const r=_8[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const WZ=B_(()=>/firefox/i.test(navigator.userAgent)),H_=B_(()=>!!window.safari);class z_{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const m=n[d];if(m<e)c=d+1;else if(m>e)u=d-1;else return r[d]}l=Math.max(0,u);const f=e-n[l],h=f*f;return r[l]+i[l]*f+a[l]*h+s[l]*f*h}constructor(e,n){const{length:r}=e,i=[];for(let m=0;m<r;m++)i.push(m);i.sort((m,g)=>e[m]<e[g]?-1:1);const a=[],s=[];let l,c;for(let m=0;m<r-1;m++)l=e[m+1]-e[m],c=n[m+1]-n[m],a.push(l),s.push(c/l);const u=[s[0]];for(let m=0;m<a.length-1;m++){const g=s[m],v=s[m+1];if(g*v<=0)u.push(0);else{l=a[m];const A=a[m+1],w=l+A;u.push(3*w/((w+A)/g+(w+l)/v))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let m=0;m<u.length-1;m++){h=s[m];const g=u[m],v=1/a[m],A=g+u[m+1]-h-h;d.push((h-g-A)*v),f.push(A*v*v)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const QZ=1;function Y_(t){const e=t.nodeType===QZ?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function n3(t){return{x:t.clientX,y:t.clientY}}function JZ(t){var e;return t.nodeName==="IMG"&&(WZ()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function ZZ(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return H_()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function eee(t,e,n,r,i){const a=JZ(e),l=Y_(a?t:e),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=t,{anchorX:f,anchorY:h}=r,{dragPreviewWidth:m,dragPreviewHeight:g}=ZZ(a,e,u,d),v=()=>{let _=new z_([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(h);return H_()&&a&&(_+=(window.devicePixelRatio-1)*g),_},A=()=>new z_([0,.5,1],[c.x,c.x/u*m,c.x+m-u]).interpolate(f),{offsetX:w,offsetY:x}=i,S=w===0||w,E=x===0||x;return{x:S?w:A(),y:E?x:v()}}class tee{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}}function nee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){nee(t,i,n[i])})}return t}class ree{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=s=>this.handleDragStart(s,e),a=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=s=>this.handleDragEnter(s,e),i=s=>this.handleDragOver(s,e),a=s=>this.handleDrop(s,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return K_({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return K_({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys($_).some(n=>$_[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=GZ(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const a=this.sourceNodes.get(i);return a&&Y_(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const s=n3(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=D8(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||f;if(h){const{anchorX:m,anchorY:g,offsetX:v,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),S=eee(f,h,s,{anchorX:m,anchorY:g},{offsetX:v,offsetY:A});l.setDragImage(h,S.x,S.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=D8(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,a.length>0&&this.actions.hover(a,{clientOffset:n3(i)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=n3(i),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;i.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}else D8(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:n3(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const a=i.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(i.preventDefault(),a.dragDrop()))},this.options=new tee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new XZ(this.isNodeInDocument)}}const lf=function(e,n,r){return new ree(e,n,r)},X_=N.createContext(void 0),R_=({children:t,option:e,templateSchema:n,onChange:r})=>{const i={...f8,...n},[a,s]=N.useReducer(YQ,i);N.useEffect(()=>{console.log("Update FormBuilderProvider here to check how many time it updates -- commented")},[n]);const{isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h="ltr",emitSocketData:m,media:g,reusableComponent:v,saveFormProgress:A}=e;return o.jsx(X_.Provider,{value:{media:g,isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h,emitSocketData:m,reusableComponent:v,state:a,dispatch:s,onChange:r,saveFormProgress:A},children:o.jsx(bK,{children:o.jsx(sf,{backend:lf,children:t})})})},G_=()=>N.useContext(X_),iee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},aee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],see=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],W_=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return iee(t,u,c)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=n.slice(1),l=r[i];return r[i]={...l,children:W_(l.children,a,s)},r},Q_=(t,e)=>{if(e.length===1){const s=Number(e[0]);return aee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:Q_(a.children,i)},n},O8=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return see(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:O8(s.children,a,n)},r},oee=(t,e,n)=>{let r=[...t],i=r[n[la]].children[n[ca]].children[n[ha]].children[n[pa]].children[n[ga]].inlineConditionalRules.rules[n[Sa]].conditions[n[$o]].children[n[yo]];return r[n[la]].children[n[ca]].children[n[ha]].children[n[pa]].children[n[ga]].inlineConditionalRules.rules[n[Sa]].conditions[n[$o]].children.splice([n[yo]],1),r[e[la]].children[e[ca]].children[e[ha]].children[e[pa]].children[e[ga]].inlineConditionalRules.rules[e[Sa]].conditions[e[$o]].children.splice(e[yo],0,i),r},lee=(t,e,n)=>W_(t,e,n),cee=t=>{const e=[...t],n={type:vs,uuid:tt(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},J_=(t,e,n,r)=>{var h,m,g,v,A,w;let i;const a={...wc,uuid:tt(),children:[r]},s={...nu,uuid:tt()},l={...nu,uuid:tt(),children:[a]},c={...nf,uuid:tt(),children:[l]},u={...Gm,uuid:tt(),children:[c]};switch(e.length){case 1:{r.type===UC?i={...c,children:[r]}:i={...c,children:[s]};break}case 2:{r.type===na?i={...u,children:[c]}:i={...u,children:[c]};break}case 3:{r.type===bo?i={...c,children:[l]}:i={...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[r]}]};break}case 4:{r.type===$1?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(v=(g=(m=(h=d[n[la]])==null?void 0:h.children[n[ca]])==null?void 0:m.children[n[ha]])==null?void 0:g.children[n[pa]])==null?void 0:v.children[n[ga]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Sa]].conditions[n[$o]].children.splice(n[yo],1):d=Q_(d,n),d=cee(d),d=O8(d,e,i),d},uee=(t,e,n)=>{let r;switch(e.length){case 1:{r={...Gm,uuid:tt(),children:[{...nf,uuid:tt(),children:[{...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[n]}]}]}]};break}case 2:{r={...nf,uuid:tt(),children:[{...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[n]}]}]};break}case 3:{r={...nu,uuid:tt(),children:[{...wc,uuid:tt(),children:[n]}]};break}case 4:{r={...wc,uuid:tt(),children:[n]};break}default:r=n}return O8(t,e,r)},ln=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=G_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const i=t.builderTemplateName,a=t.isChangesSaved,s=t.editing_by,l=t.version_name,c=t.loading,u=t.published_status,d=t,f=t,h=t.formType,m=t==null?void 0:t.userSelectedLanguage,g=t==null?void 0:t.languages,v=t.layout,A=N.useCallback(ge=>LQ(ge)(e),[e]),w=N.useCallback(ge=>lQ(ge)(e),[e]),x=N.useCallback(ge=>BQ(ge)(e),[e]),S=N.useCallback((ge,ve)=>{var St,Kt,An,yn,vn,On,Jn,Cn;const Le=[...v],Ne=ge.path.split("-"),me=Ne.slice(0,-1).join("-"),V={uuid:ve.uuid,type:ve.type,reviewerChecklist:[]},te=0,X=1,se=2,ue=3,Se=4,De=5,je=6,ct=8,Dt=7,nt=5,xt=6,rt=8;if(ve.type===na&&(ve==null?void 0:ve.schema)!==void 0){B(JSON.parse(ve==null?void 0:ve.schema),parseInt(Ne[te]));return}if(((St=ve==null?void 0:ve.schema)==null?void 0:St.componentType)==="question"&&((On=(vn=(yn=(An=(Kt=Le[0])==null?void 0:Kt.children[0])==null?void 0:An.children[0])==null?void 0:yn.children[0])==null?void 0:vn.children)!=null&&On.some(jt=>{var st,et,dt;return((st=jt==null?void 0:jt.questionText)==null?void 0:st[m.type])===((dt=(et=ve==null?void 0:ve.schema)==null?void 0:et.questionText)==null?void 0:dt[m.type])})))return;if(ve.type===tr){let jt={type:$1,reviewerChecklist:[],...Et.cloneDeep(ve.schema)};if(jt!=null&&jt.options&&(jt={...jt,options:[{uuid:tt(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:tt(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),jt.componentType==="grid-component"&&(jt={...jt,children:[],options:[{uuid:tt(),custom_values:{}}]}),jt.componentType==="radio-hierarchal"&&(jt={...jt,type:"radio",children:[],options:[{uuid:tt(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:tt(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),jt={...jt,uuid:tt()},Ne.length===ct){U(parseInt(Ne[te]),parseInt(Ne[X]),parseInt(Ne[se]),parseInt(Ne[ue]),parseInt(Ne[Se]),parseInt(Ne[De]),parseInt(Ne[je]),jt);return}if(Ne.length===Dt){Z(parseInt(Ne[te]),parseInt(Ne[X]),parseInt(Ne[se]),parseInt(Ne[ue]),parseInt(Ne[Se]),parseInt(Ne[nt]),parseInt(Ne[xt]),jt);return}if((Cn=(Jn=Le[Ne[te]].children[Ne[X]])==null?void 0:Jn.children[Ne[se]])!=null&&Cn.rowIsRepeatable&&(jt==null?void 0:jt.componentType)==="editor")return;x(uee(Le,Ne,jt)),Ne.length>1&&Te(Ne[te],Ne[X],Ne[se],jt);return}const mt=ve.path.split("-"),Ot=mt.slice(0,-1).join("-");if(mt.length===Ne.length){if(Ot===me){if((mt==null?void 0:mt.length)===rt){x(oee(Le,Ne,mt));return}x(lee(Le,Ne,mt));return}const jt={...V,...ve};(ve==null?void 0:ve.id)===void 0&&(jt.id=tt()),x(J_(Le,Ne,mt,jt));return}if((mt==null?void 0:mt.length)===8){const jt={type:$1,reviewerChecklist:[],...ve};Z(parseInt(Ne[te]),parseInt(Ne[X]),parseInt(Ne[se]),parseInt(Ne[ue]),parseInt(Ne[Se]),parseInt(Ne[nt]),parseInt(Ne[xt]),jt),we(mt[la],mt[ca],mt[ha],mt[pa],mt[ga],mt[nt],mt[xt],mt[Vl]);return}const $e={...V,...ve};(ve==null?void 0:ve.id)===void 0&&($e.id=tt()),x(J_(Le,Ne,mt,$e))},[v,x,m.type]),E=N.useCallback(()=>zQ()(e),[e]),C=N.useCallback(ge=>VQ(ge)(e,t),[e]),_=N.useCallback(ge=>UQ(ge)(e,t),[e]),T=N.useCallback(ge=>qQ(ge)(e),[e]),O=N.useCallback(ge=>oQ(ge)(e),[e]),F=N.useCallback(ge=>hQ(ge)(e),[e]),B=N.useCallback((ge,ve)=>mQ(ge,ve)(e),[e]),M=N.useCallback((ge,ve)=>wQ(ge,ve)(e),[e]),z=N.useCallback((ge,ve,Le)=>CQ(ge,ve,Le)(e),[e]),P=N.useCallback(ge=>dQ(ge)(e),[e]),H=N.useCallback((ge,ve)=>fQ(ge,ve)(e),[e]),de=N.useCallback((ge,ve,Le)=>AQ(ge,ve,Le)(e),[e]),fe=N.useCallback((ge,ve,Le,Ne)=>EQ(ge,ve,Le,Ne)(e),[e]),ne=N.useCallback((ge,ve,Le,Ne,me)=>IQ(ge,ve,Le,Ne,me)(e,t),[e]),W=N.useCallback((ge,ve,Le,Ne,me,V)=>_Q(ge,ve,Le,Ne,me,V)(e,t),[e]),ae=N.useCallback((ge,ve,Le)=>pQ(ge,ve,Le)(e),[e]),Y=N.useCallback((ge,ve,Le,Ne)=>yQ(ge,ve,Le,Ne)(e),[e]),pe=N.useCallback((ge,ve)=>uQ(ge,ve)(e),[e]),ie=N.useCallback((ge,ve,Le,Ne,me,V)=>DQ(ge,ve,Le,Ne,me,V)(e),[e]),J=N.useCallback((ge,ve,Le,Ne,me)=>TQ(ge,ve,Le,Ne,me)(e),[e]),Q=N.useCallback((ge,ve,Le,Ne)=>bQ(ge,ve,Le,Ne)(e),[e]),oe=N.useCallback((ge,ve,Le)=>gQ(ge,ve,Le)(e),[e]),ye=N.useCallback((ge,ve)=>cQ(ge,ve)(e,t),[e]),Te=N.useCallback((ge,ve,Le,Ne)=>SQ(ge,ve,Le,Ne)(e),[e]),Ae=N.useCallback((ge,ve,Le,Ne,me,V,te,X,se)=>PQ(ge,ve,Le,Ne,me,V,te,X,se)(e),[e]),be=N.useCallback((ge,ve,Le,Ne,me,V,te,X,se)=>FQ(ge,ve,Le,Ne,me,V,te,X,se)(e),[e]),we=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>kQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),re=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>MQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),U=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>OQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),Z=N.useCallback((ge,ve,Le,Ne,me,V,te,X)=>NQ(ge,ve,Le,Ne,me,V,te,X)(e),[e]),K=N.useCallback(ge=>jQ(ge)(e),[e]),he=N.useCallback(ge=>$Q(ge)(e),[e]),_e=N.useCallback(ge=>HQ(ge)(e),[e]);return{builderIsChangesSaved:a,builderTemplateName:i,formBuilderFormSchema:d,formBuilderFormLayout:v,formBuilderSchemaLanguages:g,saveFormTemplateNewVersion:f,userSelectedLanguage:m,formBuilderConfigurationType:h,formBuilderLoading:c,formBuilderPublishedStatus:u,builderEditingBy:s,builderVersionName:l,handleDrop:S,formatTableFieldsHook:w,saveFormBuilderSchema:A,removePage:P,removeSection:H,removeRow:de,removeColumn:fe,removeField:ne,updateEditingBy:_e,addTabs:O,addSection:F,addRow:M,addColumn:z,cloneField:ie,cloneColumn:J,cloneRow:Q,cloneSection:oe,clonePage:ye,sectionImport:B,setLayout:x,fieldSettingUpdate:W,selectFormBuilderLanguage:C,unselectFormBuilderLanguage:_,updateUserFormSelectedLanguage:T,updateFormType:K,schemaBuilderUpdate:he,pageSettingUpdate:pe,saveFormProgress:r,sectionSettingUpdate:ae,rowSettingUpdate:Y,clearBuilderSchema:E,addFieldToRowRepeaptable:Te,addFieldToInlineRuleCondtionFields:U,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:Z,gridComponentFieldSettingUpdate:be,gridComponentFieldDelete:we}},tn=()=>{const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,globalAlignment:s,reusableComponent:l}=G_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const c=r==null?void 0:r.key,{saveComponent:u,componentList:d}=l;return{isPreview:t,isAdmin:e,isRenderView:n,renderType:c,isAdvanceView:i,globalAlignment:s,media:a,saveComponent:u,componentList:d,emitSocketData:()=>{},updateGlobalToast:m=>{console.log(m)}}};function N8(){return N8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},N8.apply(this,arguments)}var Z_=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",N8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));Z_.displayName="ExclamationTriangleIcon";function F8(){return F8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F8.apply(this,arguments)}var eD=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",F8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));eD.displayName="InfoCircleIcon";function k8(){return k8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},k8.apply(this,arguments)}var P8=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",k8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))}));P8.displayName="TimesCircleIcon";function M8(){return M8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},M8.apply(this,arguments)}function L8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dee(t){if(Array.isArray(t))return L8(t)}function fee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tD(t,e){if(t){if(typeof t=="string")return L8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L8(t,e)}}function hee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1599
1599
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B8(t){return dee(t)||fee(t)||tD(t)||hee()}function pee(t){if(Array.isArray(t))return t}function gee(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function mee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1600
1600
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V8(t,e){return pee(t)||gee(t,e)||tD(t,e)||mee()}function Ip(t){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(t)}function vee(t,e){if(Ip(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ip(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nD(t){var e=vee(t,"string");return Ip(e)==="symbol"?e:String(e)}function To(t,e,n){return e=nD(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bee=`
|
|
1601
1601
|
@layer primereact {
|
|
@@ -33032,7 +33032,7 @@ const z0 = function(e, n, r) {
|
|
|
33032
33032
|
}, gP = Mf(void 0), Jte = ({ children: t, option: e, templateSchema: n, onChange: r }) => {
|
|
33033
33033
|
const i = { ...I7, ...n }, [a, s] = CO(BZ, i);
|
|
33034
33034
|
gn(() => {
|
|
33035
|
-
console.log("Update FormBuilderProvider here to check how many time it updates
|
|
33035
|
+
console.log("Update FormBuilderProvider here to check how many time it updates -- commented");
|
|
33036
33036
|
}, [n]);
|
|
33037
33037
|
const { isPreview: o, isAdmin: l, isRenderView: u, renderType: d, isAdvanceView: f, globalAlignment: p = "ltr", emitSocketData: g, media: m, reusableComponent: v, saveFormProgress: A } = e;
|
|
33038
33038
|
return /* @__PURE__ */ c(gP.Provider, { value: { media: m, isPreview: o, isAdmin: l, isRenderView: u, renderType: d, isAdvanceView: f, globalAlignment: p, emitSocketData: g, reusableComponent: v, state: a, dispatch: s, onChange: r, saveFormProgress: A }, children: /* @__PURE__ */ c(dX, { children: /* @__PURE__ */ c(q0, { backend: z0, children: t }) }) });
|
|
@@ -61931,7 +61931,7 @@ var che = function() {
|
|
|
61931
61931
|
theme: i.theme,
|
|
61932
61932
|
formats: i.formats
|
|
61933
61933
|
};
|
|
61934
|
-
che ? C(new Quill(d.current, M)) : import("./quill-
|
|
61934
|
+
che ? C(new Quill(d.current, M)) : import("./quill-DVQjOSpb.js").then(function(z) {
|
|
61935
61935
|
if (z && Te.isExist(d.current)) {
|
|
61936
61936
|
var k;
|
|
61937
61937
|
z.default ? k = new z.default(d.current, M) : k = new z(d.current, M), C(k);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ml = Object.defineProperty;
|
|
2
2
|
var Dl = (n, t, e) => t in n ? Ml(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var T = (n, t, e) => (Dl(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-
|
|
4
|
+
import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-BniBJXj1.js";
|
|
5
5
|
function Ki(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|