cft-builder 0.2.62 → 0.2.63
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as s, C as o, E as a, F as d, R as i, T as u, A as B, z as l, B as m } from "./main-
|
|
1
|
+
import { D as s, C as o, E as a, F as d, R as i, T as u, A as B, z as l, B as m } from "./main-DmTwdvcQ.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BuilderItems,
|
|
4
4
|
o as BuilderItemsRender,
|
package/dist/cft-builder.umd.cjs
CHANGED
|
@@ -1598,7 +1598,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
1600
|
`}}),R8=b.forwardRef(function(t,e){var n=zn(),r=b.useContext(nr),i=I3.getProps(t,r),a=b.useState(i.id),s=I_(a,2),l=s[0],c=s[1],u=b.useState(i.collapsed),d=I_(u,2),f=d[0],h=d[1],g=i.toggleable?i.onToggle?i.collapsed:f:!1,v=b.useRef(null),m=b.useRef(null),A=l+"_header",w=l+"_content",T=I3.setMetaData({props:i,state:{id:l,collapsed:g}}),x=T.ptm,E=T.cx,S=T.isUnstyled;hi(I3.css.styles,S,{name:"fieldset"});var I=function(W){i.toggleable&&(g?_(W):O(W),i.onToggle&&i.onToggle({originalEvent:W,value:!g})),W.preventDefault()},_=function(W){i.onToggle||h(!1),i.onExpand&&i.onExpand(W)},O=function(W){i.onToggle||h(!0),i.onCollapse&&i.onCollapse(W)};Pi(function(){i.id||c(el())});var P=function(W){(W.code==="Enter"||W.code==="NumpadEnter"||W.code==="Space")&&(I(W),W.preventDefault())},B=function(){var W=n({className:E("content")},x("content")),ce=n({ref:m,id:w,role:"region","aria-labelledby":A,className:E("toggleableContent")},x("toggleableContent")),K=n({classNames:E("transition"),timeout:{enter:1e3,exit:450},in:!g,unmountOnExit:!0,options:i.transitionOptions},x("transition"));return b.createElement(tl,E3({nodeRef:m},K),b.createElement("div",ce,b.createElement("div",W,i.children)))},V=function(){if(i.toggleable){var W=n({className:E("togglericon")},x("togglericon")),ce=g?i.expandIcon||b.createElement(A3,W):i.collapseIcon||b.createElement(X8,W),K=Wn.getJSXIcon(ce,W,{props:i});return K}return null},z=function(){var W=n({className:E("legendTitle")},x("legendTitle")),ce=n({id:A,role:"button","aria-expanded":!g,"aria-controls":w,onKeyDown:P,onClick:I,"aria-label":i.legend,tabIndex:0},x("toggler"));if(i.toggleable){var K=V();return b.createElement("a",ce,K,b.createElement("span",W,i.legend),b.createElement(tn,null))}return b.createElement("span",E3({},W,{id:A}),i.legend)},k=function(){var W=n({className:E("legend")},x("legend"));if(i.legend!=null||i.toggleable){var ce=z();return b.createElement("legend",W,ce)}};b.useImperativeHandle(e,function(){return{props:i,getElement:function(){return v.current},getContent:function(){return m.current}}});var j=n({id:l,ref:v,style:i.style,className:dt(i.className,E("root")),onClick:i.onClick},I3.getOtherProps(i),x("root")),le=k(),fe=B();return b.createElement("fieldset",j,le,fe)});R8.displayName="Fieldset";const dQ=t=>o.jsx(sn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"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(R8,{children:[o.jsx("div",{className:"pi pi-circle",children:" Option 1"}),o.jsx("br",{})]}),o.jsx("br",{}),o.jsx(R8,{children:o.jsx("div",{className:"pi pi-circle",children:" Option 2"})})]})]})]})}),fQ=t=>o.jsx(sn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"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"]})]})]})}),hQ=[{label:"Free form inputs",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"Text",icon:"pi pi-fw pi-plus",element:"input",schema:eK,uuid:tt(),type:Gn,toolTip:t=>OX(t)},{label:"Number",icon:"pi pi-fw pi-trash",element:"number",schema:ZY,uuid:tt(),type:Gn,toolTip:t=>FX(t)},{label:"Email",icon:"pi pi-fw pi-external-link",element:"email",schema:JY,uuid:tt(),type:Gn,toolTip:t=>kX(t)},{label:"Text Area",icon:"pi pi-fw pi-external-link",element:"textArea",schema:sK,uuid:tt(),type:Gn,toolTip:t=>PX(t)},{label:"Text Editor",icon:"pi pi-fw pi-external-link",element:"textHtmlEditor",schema:QY,uuid:tt(),type:Gn,toolTip:t=>MX(t)},{label:"Date Picker",icon:"pi pi-fw pi-user-plus",element:"date-picker",schema:HY,uuid:tt(),type:Gn,toolTip:t=>PR(t)},{label:"Draw Signature",icon:"pi pi-fw pi-trash",element:"signature",schema:NT,uuid:tt(),type:Gn,toolTip:t=>UR(t)},{label:"Type Signature",icon:"pi pi-fw pi-trash",element:"type-signature",schema:oK,uuid:tt(),type:Gn,toolTip:t=>qR(t)},{label:"File Upload",icon:"pi pi-fw pi-trash",element:"file-upload",schema:RY,uuid:tt(),type:Gn,toolTip:t=>$R(t)},{label:"Phone Number",icon:"pi pi-fw pi-trash",element:"phone",schema:nK,uuid:tt(),type:Gn,PhoneNumberToolTip:kE,toolTip:t=>kE(t)},{label:"Website Url",icon:"pi pi-fw pi-trash",element:"web-url",schema:cK,uuid:tt(),type:Gn,toolTip:t=>zR(t)},{label:"Hidden Field",icon:"pi pi-fw pi-trash",element:"hidden-field",schema:WY,uuid:tt(),type:Gn,toolTip:t=>wG(t)},{label:"Address",icon:"pi pi-fw pi-trash",element:"address",schema:jY,uuid:tt(),type:Gn,toolTip:t=>SG(t)},{label:"Grid Component",icon:"pi pi-fw pi-trash",element:"grid-component",schema:GY,uuid:tt(),type:Gn,toolTip:t=>aQ(t)},{label:"Matrix Dropdown",icon:"pi pi-fw pi-trash",element:"matrix-dropdown",schema:tK,uuid:tt(),type:Gn,toolTip:t=>sQ(t)}]},{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:vT,uuid:tt(),type:Gn,toolTip:t=>S_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:DT,uuid:tt(),type:Gn,toolTip:t=>x_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:TT,uuid:tt(),type:Gn,toolTip:t=>C_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:mT,uuid:tt(),type:Gn,toolTip:t=>T_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:IT,uuid:tt(),type:Gn,toolTip:t=>Y8(t)},{label:"Hierarchal Radio",icon:"pi pi-fw pi-align-left",element:"radio-hierarchal",schema:iK,uuid:tt(),type:Gn,toolTip:t=>Y8(t)},{label:"Dynamic Radio",icon:"pi pi-fw pi-align-left",element:"dynamic-listing",schema:YY,uuid:tt(),type:Gn,toolTip:t=>dQ(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:CT,uuid:tt(),type:Gn,toolTip:t=>m8(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:OT,uuid:tt(),type:Gn,toolTip:t=>zE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:_T,uuid:tt(),type:Gn,toolTip:t=>qE(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:FT,uuid:tt(),type:Gn,toolTip:t=>yG(t)},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:xT,uuid:tt(),type:Gn,toolTip:t=>AG(t)}]},{label:"Social Logins",icon:"pi pi-fw pi-pencil",items:[{label:"Facebook Login",icon:"pi pi-fw pi-trash",element:"facebook-login",schema:XY,uuid:tt(),type:Gn,toolTip:t=>m8(t)}]},{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:bT,uuid:tt(),type:Gn,toolTip:t=>fQ(t)}]}],pQ=[{label:"HTML",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"<a>",icon:"pi pi-fw pi-plus",element:"a",schema:wT,uuid:tt(),type:Gn},{label:"<p>",icon:"pi pi-fw pi-trash",element:"paragraph",schema:ET,uuid:tt(),type:Gn},{label:"<heading>",icon:"pi pi-fw pi-external-link",element:"h",schema:yT,uuid:tt(),type:Gn},{label:"<li>",icon:"pi pi-fw pi-external-link",element:"list",schema:lK,uuid:tt(),type:Gn},{label:"divider",icon:"pi pi-fw pi-external-link",element:"hr",schema:AT,uuid:tt(),type:Gn},{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:m9,uuid:tt(),type:Gn},{label:"Image Gallery",icon:"pi pi-fw pi-user-plus",element:"image-gallery",schema:ST,uuid:tt(),type:Gn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:v9,uuid:tt(),type:Gn}]}],gQ=[{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:vT,uuid:tt(),type:Gn,toolTip:t=>S_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:DT,uuid:tt(),type:Gn,toolTip:t=>x_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:TT,uuid:tt(),type:Gn,toolTip:t=>C_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:mT,uuid:tt(),type:Gn,toolTip:t=>T_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:IT,uuid:tt(),type:Gn,toolTip:t=>Y8(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:CT,uuid:tt(),type:Gn,toolTip:t=>m8(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:OT,uuid:tt(),type:Gn,toolTip:t=>zE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:_T,uuid:tt(),type:Gn,toolTip:t=>qE(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:FT,uuid:tt(),type:Gn},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:xT,uuid:tt(),type:Gn}]}],mQ=[{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:m9,uuid:tt(),type:Gn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:v9,uuid:tt(),type:Gn},{label:"Quiz",icon:"pi pi-fw pi-trash",element:"quiz",schema:rK,uuid:tt(),type:Gn},{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:bT,uuid:tt(),type:Gn}]}],vQ=[{label:"Left",icon:"pi pi-align-left",value:"left"},{label:"Right",icon:"pi pi-align-right",value:"right"}],bQ=[{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"}],yQ=[{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"}],_3={type:dT,isCoverPage:!1,margin:{left:0,right:0,top:0,bottom:0},isVisible:!0,isHidden:!1,isValid:!1,displayRules:[],title:{english:"Page 1"}},kf={type:na,showSectionHeader:!1,isVisible:!0,isHidden:!1,isValid:!1,showSectionTitle:!1,showSectionSubTitle:!1,heading:{english:"Section header"},subHeadingText:{english:""},isCollapsed:!1},mu={type:Oo,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:[]},Bc={type:ws,isCollapsed:!1},AQ=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 wQ(t){return e=>{const n={..._3,uuid:tt(),title:{english:`Page ${t+1}`},children:[{...kf,uuid:tt(),children:[{...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[]}]}]}]};e({type:zC,payLoad:n})}}function SQ(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:lT,payLoad:{tableFields:n}})}}function xQ(t,e){return(n,r)=>{const i=t;let a=It.cloneDeep(i);const{layout:s}=r;a={...a,title:{english:`Page ${(s==null?void 0:s.length)+1}`}},a=AQ(a),n({type:XC,payLoad:{page:a,pageIndex:e}})}}function CQ(t,e){return n=>{n({type:oT,payLoad:{pageIndex:t,page:e}})}}function TQ(t){return e=>{e({type:LC,payLoad:{pageIndex:t}})}}const __=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 EQ(t,e){return n=>{n({type:BC,payLoad:{pageIndex:t,sectionIndex:e}})}}function IQ(t){return e=>{const n={...kf,uuid:tt(),children:[{...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[]}]}]};e({type:HC,payLoad:{pageIndex:t,section:n}})}}function _Q(t,e,n){return r=>{r({type:jC,payLoad:{pageIndex:t,sectionIndex:e,section:n}})}}function DQ(t,e,n){return r=>{const i=t;let a=It.cloneDeep(i);a=__(a),r({type:RC,payLoad:{section:a,pageIndex:e,sectionIndex:n}})}}function NQ(t,e){return n=>{const r=t;let i=It.cloneDeep(r);i=__(i),n({type:GC,payLoad:{section:i,pageIndex:e}})}}const OQ=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 FQ(t,e,n,r){return i=>{const a=t;let s=It.cloneDeep(a);s=OQ(s),i({type:WC,payLoad:{row:s,pageIndex:e,sectionIndex:n,rowIndex:r}})}}function kQ(t,e,n,r){return i=>{i({type:f9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function PQ(t,e,n){return r=>{r({type:VC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n}})}}function MQ(t,e){return n=>{const r={...mu,uuid:tt(),isCollapsed:!1,children:[{...Bc,uuid:tt(),children:[]}]};n({type:YC,payLoad:{pageIndex:t,sectionIndex:e,row:r}})}}function LQ(t,e,n,r){return i=>{i({type:eT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,fieldItem:r}})}}const BQ=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 VQ(t,e,n){return r=>{const i={...Bc,uuid:tt(),children:[]};r({type:KC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,column:i}})}}function UQ(t,e,n,r,i){return a=>{const s=t;let l=It.cloneDeep(s);l=BQ(l),a({type:QC,payLoad:{column:l,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i}})}}function qQ(t,e,n,r){return i=>{i({type:UC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r}})}}function D_(t,e,n,r){return i=>{i({type:f9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function $Q(t,e,n,r,i){return(a,s)=>{var g,v,m,A;const{layout:l,tableFields:c}=s;let u=(g=l[t])==null?void 0:g.children[e].children[n];const d=(A=(m=(v=l[t])==null?void 0:v.children[e])==null?void 0:m.children[n])==null?void 0:A.children[r].children[i];if((u==null?void 0:u.rowIsRepeatable)===!0){const w=[...u.repeatableFields],T=It.findIndex(w,function(x){return x.uuid===(d==null?void 0:d.uuid)});w.splice(T,1),u={...u,repeatableFields:w},a(D_(t,e,n,u))}const f=It.findIndex(c,function(w){return w.uuid===(d==null?void 0:d.uuid)});c.splice(f,1),a({type:qC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i}})}}function jQ(t,e,n,r,i,a){return(s,l)=>{var g,v,m,A;const{layout:c,tableFields:u}=l;let d=(g=c[t])==null?void 0:g.children[e].children[n];if((d==null?void 0:d.rowIsRepeatable)===!0){const w=(A=(m=(v=c[t])==null?void 0:v.children[e])==null?void 0:m.children[n])==null?void 0:A.children[r].children[i],T=[...d.repeatableFields],x=It.findIndex(T,function(E){return E.uuid===(w==null?void 0:w.uuid)});x===-1?T.splice(i,0,a):T[x]=a,T[x]=a,d={...d,repeatableFields:T},s(D_(t,e,n,d))}const f={type:$C,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 zQ(t,e,n,r,i,a){return s=>{var d;const l=t;let c=It.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:JC,payLoad:{field:c,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i,fieldIndex:a}})}}function HQ(t,e,n,r,i,a,s,l){return c=>{c({type:tT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,field:l}})}}function YQ(t,e,n,r,i,a,s,l){return c=>{c({type:nT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridColumnIndex:s,gridRowIndex:a,field:l}})}}function KQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:aT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l,field:c}})}}function XQ(t,e,n,r,i,a,s,l){return c=>{c({type:sT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l}})}}function RQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:rT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l,field:c}})}}function GQ(t,e,n,r,i,a,s,l){return c=>{c({type:iT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l}})}}function WQ(t){return e=>{e({type:hf,payLoad:{formSchema:t}})}}function QQ(t){return e=>{e({type:hf,payLoad:{layout:t}})}}function JQ(t){return(e,n)=>{const{languages:r}=n,i={type:hf,payLoad:{languages:[...r,t]}};e(i)}}function ZQ(t){return(e,n)=>{const{languages:r}=n,i=It.findIndex(r,l=>l.key===t.key),a=[...r];a.splice(i,1),e({type:hf,payLoad:{languages:a}})}}function eJ(t){return e=>{const n={type:hf,payLoad:{userSelectedLanguage:t.value}};e(n)}}function tJ(t){return e=>{e({type:Bm,payLoad:{formType:t}})}}function nJ(t){return e=>{e({type:Bm,payLoad:t})}}function rJ(t){return e=>{e({type:Bm,payLoad:{editing_by:t}})}}function iJ(){return t=>{t({type:ZC,payLoad:null})}}const G8={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(),..._3,children:[{uuid:tt(),...kf,children:[{uuid:tt(),...mu,children:[{uuid:tt(),...Bc,children:[]}]}]}]}],conditionalTabsRules:[],conditionalSectionsRules:[]},aJ=(t=G8,e)=>{var n,r;switch(e.type){case UY:return{...t,...e.payLoad};case VY:return{...t,...e.payLoad};case ZC:return{...t,...G8};case hf:return{...t,...e.payLoad};case Bm:return{...t,...e.payLoad};case LC:{const{pageIndex:i}=e.payLoad;return{...t,layout:t.layout.filter((a,s)=>s!==i)}}case zC:return{...t,layout:[...t.layout,e.payLoad]};case HC:{const{pageIndex:i,section:a}=e.payLoad,s=[...t.layout];return s[i].children=[...s[i].children,a],{...t,layout:s}}case eT:{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 qY:{const{fieldItem:i}=e.payLoad;let a=[...t.tableFields];return a=[...a,i],{...t,tableFields:a}}case lT:return{...t,...e.payLoad};case YC:{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 KC:{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 tT:{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 nT:{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 rT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,inlineFieldIndex:f,field:h}=e.payLoad,g=[...t.layout];return g[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children[f]=h,{...t,layout:g}}case aT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,gridRowIndex:u,gridColumnIndex:d,fieldChildrenIndex:f,field:h}=e.payLoad,g=[...t.layout];return g[i].children[a].children[s].children[l].children[c].children[f]={[`${u}-${d}`]:h},{...t,layout:g}}case iT:{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 sT:{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 BC:{const{pageIndex:i,sectionIndex:a}=e.payLoad,s=[...t.layout];return s[i].children.splice(a,1),{...t,layout:s}}case VC:{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 UC:{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 qC:{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 $C:{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 jC:{const{pageIndex:i,sectionIndex:a,section:s}=e.payLoad,l=[...t.layout];return l[i].children[a]=s,{...t,layout:l}}case f9:{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 oT:{const{pageIndex:i,page:a}=e.payLoad,s=[...t.layout];return s[i]=a,{...t,layout:s}}case XC:{const{page:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s.splice(a+1,0,i),{...t,layout:s}}case RC:{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 GC:{const{section:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s[a].children.push(i),{...t,layout:s}}case WC:{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 QC:{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 JC:{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},N_=M.createContext({dragDropManager:void 0});function vu(t){"@babel/helpers - typeof";return vu=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},vu(t)}function sJ(t,e){if(vu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function oJ(t){var e=sJ(t,"string");return vu(e)=="symbol"?e:e+""}function lJ(t,e,n){return(e=oJ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O_(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 F_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O_(Object(n),!0).forEach(function(r){lJ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rc(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 k_=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),W8=function(){return Math.random().toString(36).substring(7).split("").join(".")},P_={INIT:"@@redux/INIT"+W8(),REPLACE:"@@redux/REPLACE"+W8(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+W8()}};function cJ(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 uJ(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(hJ(t))return"date";if(fJ(t))return"error";var n=dJ(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 dJ(t){return typeof t.constructor=="function"?t.constructor.name:null}function fJ(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function hJ(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Pf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=uJ(t)),e}function M_(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"?rc(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"?rc(1):"Expected the enhancer to be a function. Instead, received: '"+Pf(n)+"'");return n(M_)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?rc(2):"Expected the root reducer to be a function. Instead, received: '"+Pf(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"?rc(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(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?rc(4):"Expected the listener to be a function. Instead, received: '"+Pf(m)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?rc(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(m),function(){if(A){if(c)throw new Error(process.env.NODE_ENV==="production"?rc(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 T=l.indexOf(m);l.splice(T,1),s=null}}}function h(m){if(!cJ(m))throw new Error(process.env.NODE_ENV==="production"?rc(7):"Actions must be plain objects. Instead, the actual type was: '"+Pf(m)+"'. 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 m.type>"u")throw new Error(process.env.NODE_ENV==="production"?rc(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"?rc(9):"Reducers may not dispatch actions.");try{c=!0,a=i(a,m)}finally{c=!1}for(var A=s=l,w=0;w<A.length;w++){var T=A[w];T()}return m}function g(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?rc(10):"Expected the nextReducer to be a function. Instead, received: '"+Pf(m));i=m,h({type:P_.REPLACE})}function v(){var m,A=f;return m={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(process.env.NODE_ENV==="production"?rc(11):"Expected the observer to be an object. Instead, received: '"+Pf(T)+"'");function x(){T.next&&T.next(d())}x();var E=A(x);return{unsubscribe:E}}},m[k_]=function(){return this},m}return h({type:P_.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:g},r[k_]=v,r}function zr(t,e,...n){if(pJ()&&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 pJ(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function gJ(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function mJ(t,e){return t.filter(n=>n!==e)}function L_(t){return typeof t=="object"}function vJ(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 bJ(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Q8="dnd-core/INIT_COORDS",D3="dnd-core/BEGIN_DRAG",J8="dnd-core/PUBLISH_DRAG_SOURCE",N3="dnd-core/HOVER",O3="dnd-core/DROP",F3="dnd-core/END_DRAG";function B_(t,e){return{type:Q8,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const yJ={type:Q8,payload:{clientOffset:null,sourceClientOffset:null}};function AJ(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:a,getSourceClientOffset:s}=r,l=t.getMonitor(),c=t.getRegistry();t.dispatch(B_(a)),wJ(n,l,c);const u=CJ(n,l);if(u==null){t.dispatch(yJ);return}let d=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");SJ(s),d=s(u)}t.dispatch(B_(a,d));const h=c.getSource(u).beginDrag(l,u);if(h==null)return;xJ(h),c.pinSource(u);const g=c.getSourceType(u);return{type:D3,payload:{itemType:g,item:h,sourceId:u,clientOffset:a||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function wJ(t,e,n){zr(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){zr(n.getSource(r),"Expected sourceIds to be registered.")})}function SJ(t){zr(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function xJ(t){zr(L_(t),"Item must be an object.")}function CJ(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 TJ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function EJ(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){TJ(t,i,n[i])})}return t}function IJ(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();_J(r),OJ(r).forEach((s,l)=>{const c=DJ(s,l,i,r),u={type:O3,payload:{dropResult:EJ({},n,c)}};t.dispatch(u)})}}function _J(t){zr(t.isDragging(),"Cannot call drop while not dragging."),zr(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function DJ(t,e,n,r){const i=n.getTarget(t);let a=i?i.drop(r,t):void 0;return NJ(a),typeof a>"u"&&(a=e===0?{}:r.getDropResult()),a}function NJ(t){zr(typeof t>"u"||L_(t),"Drop result must either be an object or undefined.")}function OJ(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function FJ(t){return function(){const n=t.getMonitor(),r=t.getRegistry();kJ(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:F3}}}function kJ(t){zr(t.isDragging(),"Cannot call endDrag while not dragging.")}function Z8(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function PJ(t){return function(n,{clientOffset:r}={}){MJ(n);const i=n.slice(0),a=t.getMonitor(),s=t.getRegistry(),l=a.getItemType();return BJ(i,s,l),LJ(i,a,s),VJ(i,a,s),{type:N3,payload:{targetIds:i,clientOffset:r||null}}}}function MJ(t){zr(Array.isArray(t),"Expected targetIds to be an array.")}function LJ(t,e,n){zr(e.isDragging(),"Cannot call hover while not dragging."),zr(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];zr(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const a=n.getTarget(i);zr(a,"Expected targetIds to be registered.")}}function BJ(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],a=e.getTargetType(i);Z8(a,n)||t.splice(r,1)}}function VJ(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function UJ(t){return function(){if(t.getMonitor().isDragging())return{type:J8}}}function qJ(t){return{beginDrag:AJ(t),publishDragSource:UJ(t),hover:PJ(t),drop:IJ(t),endDrag:FJ(t)}}class $J{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=qJ(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 jJ(t,e){return{x:t.x+e.x,y:t.y+e.y}}function V_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zJ(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:V_(jJ(e,r),n)}function HJ(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:V_(e,n)}const t2=[],e7=[];t2.__IS_NONE__=!0,e7.__IS_ALL__=!0;function YJ(t,e){return t===t2?!1:t===e7||typeof e>"u"?!0:bJ(e,t).length>0}class KJ{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;zr(typeof e=="function","listener must be a function."),zr(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&&!YJ(s.dirtyHandlerIds,r)||e()}finally{i=l}};return this.store.subscribe(a)}subscribeToOffsetChange(e){zr(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 zr(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(zr(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 Z8(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(zr(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&&!Z8(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 zJ(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return HJ(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const U_=typeof global<"u"?global:self,q_=U_.MutationObserver||U_.WebKitMutationObserver;function $_(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function XJ(t){let e=1;const n=new q_(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const RJ=typeof q_=="function"?XJ:$_;class GJ{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=RJ(this.flush),this.requestErrorThrow=$_(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class WJ{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 QJ{create(e){const n=this.freeTasks,r=n.length?n.pop():new WJ(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const j_=new GJ,JJ=new QJ(j_.registerPendingError);function ZJ(t){j_.enqueueTask(JJ.create(t))}const t7="dnd-core/ADD_SOURCE",n7="dnd-core/ADD_TARGET",r7="dnd-core/REMOVE_SOURCE",k3="dnd-core/REMOVE_TARGET";function eZ(t){return{type:t7,payload:{sourceId:t}}}function tZ(t){return{type:n7,payload:{targetId:t}}}function nZ(t){return{type:r7,payload:{sourceId:t}}}function rZ(t){return{type:k3,payload:{targetId:t}}}function iZ(t){zr(typeof t.canDrag=="function","Expected canDrag to be a function."),zr(typeof t.beginDrag=="function","Expected beginDrag to be a function."),zr(typeof t.endDrag=="function","Expected endDrag to be a function.")}function aZ(t){zr(typeof t.canDrop=="function","Expected canDrop to be a function."),zr(typeof t.hover=="function","Expected hover to be a function."),zr(typeof t.drop=="function","Expected beginDrag to be a function.")}function i7(t,e){if(e&&Array.isArray(t)){t.forEach(n=>i7(n,!1));return}zr(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 ic;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(ic||(ic={}));let sZ=0;function oZ(){return sZ++}function lZ(t){const e=oZ().toString();switch(t){case ic.SOURCE:return`S${e}`;case ic.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function z_(t){switch(t[0]){case"S":return ic.SOURCE;case"T":return ic.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function H_(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 cZ{addSource(e,n){i7(e),iZ(n);const r=this.addHandler(ic.SOURCE,e,n);return this.store.dispatch(eZ(r)),r}addTarget(e,n){i7(e,!0),aZ(n);const r=this.addHandler(ic.TARGET,e,n);return this.store.dispatch(tZ(r)),r}containsHandler(e){return H_(this.dragSources,e)||H_(this.dropTargets,e)}getSource(e,n=!1){return zr(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return zr(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return zr(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return zr(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return z_(e)===ic.SOURCE}isTargetId(e){return z_(e)===ic.TARGET}removeSource(e){zr(this.getSource(e),"Expected an existing source."),this.store.dispatch(nZ(e)),ZJ(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){zr(this.getTarget(e),"Expected an existing target."),this.store.dispatch(rZ(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);zr(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){zr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=lZ(e);return this.types.set(i,n),e===ic.SOURCE?this.dragSources.set(i,r):e===ic.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 uZ=(t,e)=>t===e;function dZ(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function fZ(t,e,n=uZ){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 hZ(t=t2,e){switch(e.type){case N3:break;case t7:case n7:case k3:case r7:return t2;case D3:case J8:case F3:case O3:default:return e7}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=vJ(n,r);if(!(i.length>0||!fZ(n,r)))return t2;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function pZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gZ(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){pZ(t,i,n[i])})}return t}const Y_={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function mZ(t=Y_,e){const{payload:n}=e;switch(e.type){case Q8:case D3:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case N3:return dZ(t.clientOffset,n.clientOffset)?t:gZ({},t,{clientOffset:n.clientOffset});case F3:case O3:return Y_;default:return t}}function vZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mf(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){vZ(t,i,n[i])})}return t}const bZ={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function yZ(t=bZ,e){const{payload:n}=e;switch(e.type){case D3:return Mf({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case J8:return Mf({},t,{isSourcePublic:!0});case N3:return Mf({},t,{targetIds:n.targetIds});case k3:return t.targetIds.indexOf(n.targetId)===-1?t:Mf({},t,{targetIds:mJ(t.targetIds,n.targetId)});case O3:return Mf({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case F3:return Mf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function AZ(t=0,e){switch(e.type){case t7:case n7:return t+1;case r7:case k3:return t-1;default:return t}}function wZ(t=0){return t+1}function SZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xZ(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){SZ(t,i,n[i])})}return t}function CZ(t={},e){return{dirtyHandlerIds:hZ(t.dirtyHandlerIds,{type:e.type,payload:xZ({},e.payload,{prevTargetIds:gJ(t,"dragOperation.targetIds",[])})}),dragOffset:mZ(t.dragOffset,e),refCount:AZ(t.refCount,e),dragOperation:yZ(t.dragOperation,e),stateId:wZ(t.stateId)}}function TZ(t,e=void 0,n={},r=!1){const i=EZ(r),a=new KJ(i,new cZ(i)),s=new $J(i,a),l=t(s,e,n);return s.receiveBackend(l),s}function EZ(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M_(CZ,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function IZ(t,e){if(t==null)return{};var n=_Z(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 _Z(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 K_=0;const P3=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Lf=M.memo(function(e){var{children:n}=e,r=IZ(e,["children"]);const[i,a]=DZ(r);return M.useEffect(()=>{if(a){const s=X_();return++K_,()=>{--K_===0&&(s[P3]=null)}}},[]),o.jsx(N_.Provider,{value:i,children:n})});function DZ(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=NZ(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function NZ(t,e=X_(),n,r){const i=e;return i[P3]||(i[P3]={dragDropManager:TZ(t,e,n,r)}),i[P3]}function X_(){return typeof global<"u"?global:window}var R_=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 OZ=ao(R_),a1=typeof window<"u"?M.useLayoutEffect:M.useEffect;function FZ(t,e,n){const[r,i]=M.useState(()=>e(t)),a=M.useCallback(()=>{const s=e(t);OZ(r,s)||(i(s),n&&n())},[r,t,n]);return a1(a),[r,a]}function kZ(t,e,n){const[r,i]=FZ(t,e,n);return a1(function(){const s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(i,{handlerIds:[s]})},[t,i]),r}function G_(t,e,n){return kZ(e,t||(()=>({})),()=>n.reconnect())}function W_(t,e){const n=[];return typeof t!="function"&&n.push(t),M.useMemo(()=>typeof t=="function"?t():t,n)}function PZ(t){return M.useMemo(()=>t.hooks.dragSource(),[t])}function MZ(t){return M.useMemo(()=>t.hooks.dragPreview(),[t])}let a7=!1,s7=!1;class LZ{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){zr(!a7,"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 a7=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{a7=!1}}isDragging(){if(!this.sourceId)return!1;zr(!s7,"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 s7=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{s7=!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 o7=!1;class BZ{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;zr(!o7,"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 o7=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{o7=!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 VZ(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function UZ(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function l7(t,e,n,r){let i;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=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function c7(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function qZ(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 $Z(t){return(e=null,n=null)=>{if(!M.isValidElement(e)){const a=e;return t(a,n),a}const r=e;return qZ(r),jZ(r,n?a=>t(a,n):t)}}function Q_(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=$Z(r);e[n]=()=>i}}),e}function J_(t,e){typeof t=="function"?t(e):t.current=e}function jZ(t,e){const n=t.ref;return zr(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?M.cloneElement(t,{ref:r=>{J_(n,r),J_(e,r)}}):M.cloneElement(t,{ref:e})}class zZ{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!l7(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!l7(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=Q_({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,c7(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,c7(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 HZ{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!l7(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=Q_({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,c7(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 Bf(){const{dragDropManager:t}=M.useContext(N_);return zr(t!=null,"Expected drag drop context"),t}function YZ(t,e){const n=Bf(),r=M.useMemo(()=>new zZ(n.getBackend()),[n]);return a1(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),a1(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function KZ(){const t=Bf();return M.useMemo(()=>new LZ(t),[t])}class XZ{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 RZ(t,e,n){const r=M.useMemo(()=>new XZ(t,e,n),[e,n]);return M.useEffect(()=>{r.spec=t},[t]),r}function GZ(t){return M.useMemo(()=>{const e=t.type;return zr(e!=null,"spec.type must be defined"),e},[t])}function WZ(t,e,n){const r=Bf(),i=RZ(t,e,n),a=GZ(t);a1(function(){if(a!=null){const[l,c]=UZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,e,n,i,a])}function ia(t,e){const n=W_(t);zr(!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=KZ(),i=YZ(n.options,n.previewOptions);return WZ(n,r,i),[G_(n.collect,r,i),PZ(i),MZ(i)]}function QZ(t){return M.useMemo(()=>t.hooks.dropTarget(),[t])}function JZ(t){const e=Bf(),n=M.useMemo(()=>new HZ(e.getBackend()),[e]);return a1(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function ZZ(){const t=Bf();return M.useMemo(()=>new BZ(t),[t])}function eee(t){const{accept:e}=t;return M.useMemo(()=>(zr(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class tee{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 nee(t,e){const n=M.useMemo(()=>new tee(t,e),[e]);return M.useEffect(()=>{n.spec=t},[t]),n}function ree(t,e,n){const r=Bf(),i=nee(t,e),a=eee(t);a1(function(){const[l,c]=VZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,e,i,n,a.map(s=>s.toString()).join("|")])}function iee(t,e){const n=W_(t),r=ZZ(),i=JZ(n.options);return ree(n,r,i),[G_(n.collect,r,i),QZ(i)]}function Z_(t){let e=null;return()=>(e==null&&(e=t()),e)}function aee(t,e){return t.filter(n=>n!==e)}function see(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 oee{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=see(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=aee(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class lee{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 eD="__NATIVE_FILE__",tD="__NATIVE_URL__",nD="__NATIVE_TEXT__",rD="__NATIVE_HTML__",iD=Object.freeze(Object.defineProperty({__proto__:null,FILE:eD,HTML:rD,TEXT:nD,URL:tD},Symbol.toStringTag,{value:"Module"}));function u7(t,e,n){const r=e.reduce((i,a)=>i||t.getData(a),"");return r??n}const d7={[eD]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[rD]:{exposeProperties:{html:(t,e)=>u7(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[tD]:{exposeProperties:{urls:(t,e)=>u7(t,e,"").split(`
|
|
1601
|
-
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[nD]:{exposeProperties:{text:(t,e)=>u7(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function cee(t,e){const n=d7[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new lee(n);return r.loadDataTransfer(e),r}function f7(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(d7).filter(n=>{const r=d7[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const uee=Z_(()=>/firefox/i.test(navigator.userAgent)),aD=Z_(()=>!!window.safari);class sD{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 g=n[d];if(g<e)c=d+1;else if(g>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 g=0;g<r;g++)i.push(g);i.sort((g,v)=>e[g]<e[v]?-1:1);const a=[],s=[];let l,c;for(let g=0;g<r-1;g++)l=e[g+1]-e[g],c=n[g+1]-n[g],a.push(l),s.push(c/l);const u=[s[0]];for(let g=0;g<a.length-1;g++){const v=s[g],m=s[g+1];if(v*m<=0)u.push(0);else{l=a[g];const A=a[g+1],w=l+A;u.push(3*w/((w+A)/v+(w+l)/m))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let g=0;g<u.length-1;g++){h=s[g];const v=u[g],m=1/a[g],A=v+u[g+1]-h-h;d.push((h-v-A)*m),f.push(A*m*m)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const dee=1;function oD(t){const e=t.nodeType===dee?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function M3(t){return{x:t.clientX,y:t.clientY}}function fee(t){var e;return t.nodeName==="IMG"&&(uee()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function hee(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return aD()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function pee(t,e,n,r,i){const a=fee(e),l=oD(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:g,dragPreviewHeight:v}=hee(a,e,u,d),m=()=>{let I=new sD([0,.5,1],[c.y,c.y/d*v,c.y+v-d]).interpolate(h);return aD()&&a&&(I+=(window.devicePixelRatio-1)*v),I},A=()=>new sD([0,.5,1],[c.x,c.x/u*g,c.x+g-u]).interpolate(f),{offsetX:w,offsetY:T}=i,x=w===0||w,E=T===0||T;return{x:x?w:A(),y:E?T:m()}}class gee{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 mee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lD(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){mee(t,i,n[i])})}return t}class vee{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 lD({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 lD({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(iD).some(n=>iD[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=cee(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&&oD(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=M3(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=f7(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:g,anchorY:v,offsetX:m,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),x=pee(f,h,s,{anchorX:g,anchorY:v},{offsetX:m,offsetY:A});l.setDragImage(h,x.x,x.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=f7(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:M3(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=M3(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 f7(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:M3(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 gee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new oee(this.isNodeInDocument)}}const Vf=function(e,n,r){return new vee(e,n,r)},cD=M.createContext(void 0),uD=({children:t,option:e,saveFormBuilderSchema:n,templateSchema:r,onChange:i})=>{const a={...G8,...r},[s,l]=M.useReducer(aJ,a);M.useEffect(()=>{n&&n(s)},[s]);const{isPreview:c,isAdmin:u,isRenderView:d,renderType:f,isAdvanceView:h,globalAlignment:g="ltr",emitSocketData:v,media:m,reusableComponent:A,saveFormProgress:w,showSettings:T}=e;return o.jsx(cD.Provider,{value:{media:m,isPreview:c,isAdmin:u,isRenderView:d,renderType:f,isAdvanceView:h,globalAlignment:g,emitSocketData:v,reusableComponent:A,state:s,dispatch:l,onChange:i,saveFormProgress:w,showSettings:T},children:o.jsx(Lf,{backend:Vf,children:t})})},dD=()=>M.useContext(cD),bee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},yee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],Aee=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],fD=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return bee(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:fD(l.children,a,s)},r},hD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return yee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:hD(a.children,i)},n},h7=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return Aee(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:h7(s.children,a,n)},r},wee=(t,e,n)=>{let r=[...t],i=r[n[ma]].children[n[va]].children[n[xa]].children[n[Ca]].children[n[Ta]].inlineConditionalRules.rules[n[Na]].conditions[n[Zo]].children[n[Fo]];return r[n[ma]].children[n[va]].children[n[xa]].children[n[Ca]].children[n[Ta]].inlineConditionalRules.rules[n[Na]].conditions[n[Zo]].children.splice([n[Fo]],1),r[e[ma]].children[e[va]].children[e[xa]].children[e[Ca]].children[e[Ta]].inlineConditionalRules.rules[e[Na]].conditions[e[Zo]].children.splice(e[Fo],0,i),r},See=(t,e,n)=>fD(t,e,n),xee=t=>{const e=[...t],n={type:ws,uuid:tt(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},pD=(t,e,n,r)=>{var h,g,v,m,A,w;let i;const a={...Bc,uuid:tt(),children:[r]},s={...mu,uuid:tt()},l={...mu,uuid:tt(),children:[a]},c={...kf,uuid:tt(),children:[l]},u={..._3,uuid:tt(),children:[c]};switch(e.length){case 1:{r.type===dT?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===Oo?i={...c,children:[l]}:i={...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[r]}]};break}case 4:{r.type===pf?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(m=(v=(g=(h=d[n[ma]])==null?void 0:h.children[n[va]])==null?void 0:g.children[n[xa]])==null?void 0:v.children[n[Ca]])==null?void 0:m.children[n[Ta]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Na]].conditions[n[Zo]].children.splice(n[Fo],1):d=hD(d,n),d=xee(d),d=h7(d,e,i),d},Cee=(t,e,n)=>{let r;switch(e.length){case 1:{r={..._3,uuid:tt(),children:[{...kf,uuid:tt(),children:[{...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[n]}]}]}]};break}case 2:{r={...kf,uuid:tt(),children:[{...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[n]}]}]};break}case 3:{r={...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[n]}]};break}case 4:{r={...Bc,uuid:tt(),children:[n]};break}default:r=n}return h7(t,e,r)},cn=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=dD(),{updateGlobalToast:i,emitSocketData:a}=Jt();if(t===void 0)throw new Error("Must be wrapped in builder provider");const s=t.builderTemplateName,l=t.isChangesSaved,c=t.editing_by,u=t.version_name,d=t.loading,f=t.published_status,h=t,g=t,v=t.formType,m=t==null?void 0:t.userSelectedLanguage,A=t==null?void 0:t.languages,w=t.layout,T=M.useCallback(me=>WQ(me)(e),[e]),x=M.useCallback(me=>SQ(me)(e),[e]),E=M.useCallback(me=>QQ(me)(e),[e]),S=M.useCallback((me,Se)=>{var yt,qt,dn,mn,En,Vn,hn,Qt;const De=me.path.split("-"),q=De.slice(0,-1).join("-"),se={uuid:Se.uuid,type:Se.type,reviewerChecklist:[]},ge=0,ue=1,oe=2,ae=3,Oe=4,Ne=5,Ke=6,ut=8,pt=7,ft=5,kt=6,Sn=8;if(Se.type===na&&(Se==null?void 0:Se.schema)!==void 0){z(JSON.parse(Se==null?void 0:Se.schema),parseInt(De[ge]));return}if(((yt=Se==null?void 0:Se.schema)==null?void 0:yt.componentType)==="question"&&((Vn=(En=(mn=(dn=(qt=w[0])==null?void 0:qt.children[0])==null?void 0:dn.children[0])==null?void 0:mn.children[0])==null?void 0:En.children)!=null&&Vn.some(Xe=>{var et,ht,jt;return((et=Xe==null?void 0:Xe.questionText)==null?void 0:et[m.type])===((jt=(ht=Se==null?void 0:Se.schema)==null?void 0:ht.questionText)==null?void 0:jt[m.type])}))){i({showToast:!0,toastMessage:"Exist",toastDetail:"Question text cannot be same for more than one element",toastType:"warn"});return}if(Se.type===Gn){let Xe={type:pf,reviewerChecklist:[],...It.cloneDeep(Se.schema)};if(Xe!=null&&Xe.options&&(Xe={...Xe,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:{}}]}),Xe.componentType==="grid-component"&&(Xe={...Xe,children:[],options:[{uuid:tt(),custom_values:{}}]}),Xe.componentType==="radio-hierarchal"&&(Xe={...Xe,type:"radio",children:[],options:[{uuid:tt(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:tt(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),Xe={...Xe,uuid:tt()},De.length===ut){G(parseInt(De[ge]),parseInt(De[ue]),parseInt(De[oe]),parseInt(De[ae]),parseInt(De[Oe]),parseInt(De[Ne]),parseInt(De[Ke]),Xe),a();return}if(De.length===pt){de(parseInt(De[ge]),parseInt(De[ue]),parseInt(De[oe]),parseInt(De[ae]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),a();return}if((Qt=(hn=w[De[ge]].children[De[ue]])==null?void 0:hn.children[De[oe]])!=null&&Qt.rowIsRepeatable&&(Xe==null?void 0:Xe.componentType)==="editor"){i({showToast:!0,toastMessage:"Forbidden",toastDetail:"This Field cannot be applied in repeatable",toastType:"error"});return}E(Cee(w,De,Xe)),a(),De.length>1&&ye(De[ge],De[ue],De[oe],Xe);return}const Vt=Se.path.split("-"),Nt=Vt.slice(0,-1).join("-");if(Vt.length===De.length){if(Nt===q){if((Vt==null?void 0:Vt.length)===Sn){E(wee(w,De,Vt));return}E(See(w,De,Vt));return}const Xe={...se,...Se};(Se==null?void 0:Se.id)===void 0&&(Xe.id=tt()),E(pD(w,De,Vt,Xe));return}if((Vt==null?void 0:Vt.length)===8){const Xe={type:pf,reviewerChecklist:[],...Se};de(parseInt(De[ge]),parseInt(De[ue]),parseInt(De[oe]),parseInt(De[ae]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),U(Vt[ma],Vt[va],Vt[xa],Vt[Ca],Vt[Ta],Vt[ft],Vt[kt],Vt[tc]);return}const $e={...se,...Se};(Se==null?void 0:Se.id)===void 0&&($e.id=tt()),E(pD(w,De,Vt,$e))},[w,m.type]),I=M.useCallback(()=>iJ()(e),[e]),_=M.useCallback(me=>JQ(me)(e,t),[e]),O=M.useCallback(me=>ZQ(me)(e,t),[e]),P=M.useCallback(me=>eJ(me)(e),[e]),B=M.useCallback(me=>wQ(me)(e),[e]),V=M.useCallback(me=>IQ(me)(e),[e]),z=M.useCallback((me,Se)=>NQ(me,Se)(e),[e]),k=M.useCallback((me,Se)=>MQ(me,Se)(e),[e]),j=M.useCallback((me,Se,De)=>VQ(me,Se,De)(e),[e]),le=M.useCallback(me=>TQ(me)(e),[e]),fe=M.useCallback((me,Se)=>EQ(me,Se)(e),[e]),Z=M.useCallback((me,Se,De)=>PQ(me,Se,De)(e),[e]),W=M.useCallback((me,Se,De,q)=>qQ(me,Se,De,q)(e),[e]),ce=M.useCallback((me,Se,De,q,se)=>$Q(me,Se,De,q,se)(e,t),[e]),K=M.useCallback((me,Se,De,q,se,ge)=>jQ(me,Se,De,q,se,ge)(e,t),[e]),pe=M.useCallback((me,Se,De)=>_Q(me,Se,De)(e),[e]),te=M.useCallback((me,Se,De,q)=>kQ(me,Se,De,q)(e),[e]),ee=M.useCallback((me,Se)=>CQ(me,Se)(e),[e]),Y=M.useCallback((me,Se,De,q,se,ge)=>zQ(me,Se,De,q,se,ge)(e),[e]),J=M.useCallback((me,Se,De,q,se)=>UQ(me,Se,De,q,se)(e),[e]),he=M.useCallback((me,Se,De,q)=>FQ(me,Se,De,q)(e),[e]),be=M.useCallback((me,Se,De)=>DQ(me,Se,De)(e),[e]),Ee=M.useCallback((me,Se)=>xQ(me,Se)(e,t),[e]),ye=M.useCallback((me,Se,De,q)=>LQ(me,Se,De,q)(e),[e]),Ae=M.useCallback((me,Se,De,q,se,ge,ue,oe,ae)=>RQ(me,Se,De,q,se,ge,ue,oe,ae)(e),[e]),ne=M.useCallback((me,Se,De,q,se,ge,ue,oe,ae)=>KQ(me,Se,De,q,se,ge,ue,oe,ae)(e),[e]),U=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>XQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),re=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>GQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),G=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>HQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),de=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>YQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),Ie=M.useCallback(me=>tJ(me)(e),[e]),Te=M.useCallback(me=>nJ(me)(e),[e]),ve=M.useCallback(me=>rJ(me)(e),[e]);return{builderIsChangesSaved:l,builderTemplateName:s,formBuilderFormSchema:h,formBuilderFormLayout:w,formBuilderSchemaLanguages:A,saveFormTemplateNewVersion:g,userSelectedLanguage:m,formBuilderConfigurationType:v,formBuilderLoading:d,formBuilderPublishedStatus:f,builderEditingBy:c,builderVersionName:u,handleDrop:S,formatTableFieldsHook:x,saveFormBuilderSchema:T,removePage:le,removeSection:fe,removeRow:Z,removeColumn:W,removeField:ce,updateEditingBy:ve,addTabs:B,addSection:V,addRow:k,addColumn:j,cloneField:Y,cloneColumn:J,cloneRow:he,cloneSection:be,clonePage:Ee,sectionImport:z,setLayout:E,fieldSettingUpdate:K,selectFormBuilderLanguage:_,unselectFormBuilderLanguage:O,updateUserFormSelectedLanguage:P,updateFormType:Ie,schemaBuilderUpdate:Te,pageSettingUpdate:ee,saveFormProgress:r,sectionSettingUpdate:pe,rowSettingUpdate:te,clearBuilderSchema:I,addFieldToRowRepeaptable:ye,addFieldToInlineRuleCondtionFields:G,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:de,gridComponentFieldSettingUpdate:ne,gridComponentFieldDelete:U}},Jt=()=>{const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,globalAlignment:s,reusableComponent:l,showSettings:c}=dD();if(t===void 0)throw new Error("Must be wrapped in builder provider");const u=r==null?void 0:r.key,{saveComponent:d,componentList:f,sectionsList:h}=l;return{isPreview:t,isAdmin:e,isRenderView:n,renderType:u,isAdvanceView:i,globalAlignment:s,media:a,saveComponent:d,componentList:f,sectionsList:h,emitSocketData:()=>{},updateGlobalToast:m=>{c!=null&&c.showToast&&(c==null||c.showToast(m))}}},Tee="TASKS_LOADING",Eee="TASKS_ADD",Iee="TASKS_GET_PAGINATED_LIST",_ee="TASKS_DELETE",Dee="TASKS_PAGNIATION_UPDATE",Nee="TASKS_UPDATE",Oee="TASKS_SUCCESS_GET",Fee="TASK_GET_TEMPLATE",kee="TASK_SET_DATA",Pee="TASKS_FORM_SUBMIT",Mee="TASKS_FORM_HTTP_REQUEST",p7="TASK_SET_PROGRESS_VALUE",gD="TASK_SET_MAX_PROGRESS_VALUE",mD="TASK_SET_REGISTER_DATA",vD="TASK_SET_SCHEMA",g7="TASK_UPDATE_USER_FORM_SUBMIT_DATA",bD="CLEAR_TASK",yD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",AD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",wD="TASK_USER_TRAINING_DATA",SD="TASK_FIELD_UPDATE",Lee=6,L3=1,n2="DISPLAY_TYPE_START_DETAILS",B3="DISPLAY_TYPE_QUIZ",m7="DISPLAY_TYPE_START_TIMER";function Bee(t,e,n,r,i,a){return s=>{s({type:SD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function xD(t){return(e,n)=>{const r={type:g7,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function Vee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:g7,payLoad:{taskData:{...i,...t}}};e(a)}}function Uee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:AD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function qee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:yD,payLoad:{userSubmitFormIndex:s,repeatableData:e}})}}function $ee(){return t=>{t({type:bD,payLoad:null})}}const CD=t=>e=>{console.log("updateProgresValue",t),e({type:p7,payLoad:{progressValue:t}})},jee=t=>e=>{e({type:p7,payLoad:t})},zee=t=>e=>{e({type:wD,payLoad:{userTrainingSaveData:t}})},TD=t=>e=>{e({type:mD,payLoad:{registerData:t}})},Hee=(t,e,n)=>(r,i)=>{var d;const{TasksReducer:a}=i(),{userTaskSubmitFormData:s}=a,l=[...s],c=It.findIndex(l,function(f){var h;return f.rowId===((h=t==null?void 0:t.row)==null?void 0:h.uuid)});let u=(d=s[c])==null?void 0:d.repeatableFields;u={...u,[e==null?void 0:e.uuid]:`<div>${n}</div>`},l[c]={...l[c],repeatableFields:u},r(xD(l))},Yee=(t,e,n)=>(r,i)=>{const{TasksReducer:a}=i(),{userTaskSubmitFormData:s,registerData:l}=a,c=s,u=It.cloneDeep(l);if(n&&(c==null?void 0:c.length)>0){u[e==null?void 0:e.uuid]=n;for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:n})}else if((c==null?void 0:c.length)>0){for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:""});delete u[e==null?void 0:e.uuid]}r(TD(u));const d=Object.keys(u).length;r(CD(d))},Kee=t=>e=>{e({type:gD,payLoad:{progressMaxValue:t}})},v7={submitting:!1,httpRequest:!1,taskData:null,taskUpdateLoading:!1,loading:!1,progressLoading:!1,list:[],filter:"",sort:"task.created_at|desc",total_records:0,page:1,per_page:10,success:!1,success_message:"",userTaskSubmitFormData:null,taskSchema:null,progressMaxValue:0,maxTabs:0,registerData:{},progressValue:0,tabNoOfFieldsData:[],noOfTotalElements:0,sortField:null,sortOrder:null,userTrainingSaveData:null,assessmentData:null,task_status:1},Xee=(t=v7,e)=>{switch(e.type){case bD:return{...t,...v7,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case Oee:return{...t,...e.payLoad};case g7:return{...t,...e.payLoad};case vD:return{...t,...e.payLoad};case p7:return{...t,...e.payLoad};case mD:return{...t,registerData:e.payLoad.registerData};case gD:return{...t,...e.payLoad};case Tee:return{...t,...e.payLoad};case Pee:return{...t,...e.payLoad};case Mee:return{...t,...e.payLoad};case Eee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case Iee:return{...t,...e.payLoad};case kee:return{...t,taskData:e.payLoad};case Dee:return{...t,...e.payLoad};case _ee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case wD:return{...t,...e.payLoad};case SD:{const{pageIndex:n,sectionIndex:r,rowIndex:i,columnIndex:a,fieldIndex:s,field:l}=e.payLoad,c=[...t.taskSchema.layout];c[n].children[r].children[i].children[a].children[s]=l;const u={...t.taskSchema,layout:c};return{...t,taskSchema:u}}case yD:{const{userSubmitFormIndex:n,repeatableData:r}=e.payLoad,i=t.userTaskSubmitFormData[n].repeatableFieldsData?t.userTaskSubmitFormData[n].repeatableFieldsData:[];return i.push(r),t.userTaskSubmitFormData[n].repeatableFieldsData=i,t}case AD:{const{userSubmitFormIndex:n,repeatableDataRowIndex:r}=e.payLoad,i=[...t.userTaskSubmitFormData],a=[...i[n].repeatableFieldsData];return a.splice(r,1),i[n]={...i[n],repeatableFieldsData:a},{...t,userTaskSubmitFormData:i}}case Nee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case Fee:return{...t,...e.payLoad}}return t},ED=M.createContext(void 0),Ree=({option:t,taskOptions:e,saveFormBuilderSchema:n,templateSchema:r,taskValue:i,children:a})=>{const[s,l]=M.useReducer(Xee,{...v7,...i}),{progressMaxValue:c=0,progressValue:u=0,registerData:d=null,...f}=i||{};return M.useEffect(()=>{l({type:vD,payLoad:f})},[i]),o.jsx(ED.Provider,{value:{taskOptions:e,state:s,dispatch:l},children:o.jsx(uD,{option:t,saveFormBuilderSchema:n,templateSchema:r,onChange:()=>{},children:a})})},Gee=()=>M.useContext(ED),yr=()=>{var Ae,ne,U,re,G,de,Ie,Te;const{taskOptions:n,state:r,dispatch:i}=Gee();if(r===void 0)throw new Error("Must be wrapped in task render provider");const a=r.task_status,s=r.task_status,l=r.userTaskSubmitFormData,c=r.userTrainingSaveData,u=r.taskSchema,d=r.assessmentData,f=r.progressLoading,h=r.submitting,g=r.httpRequest,v=r.taskData,m=r.progressMaxValue,A=r.maxTabs,w=r.tabNoOfFieldsData,T=r.registerData,x=r.progressValue,E=r.noOfTotalElements,S=r.menuList,I=r.loading,_=r.submitting,O=r.success,P=r.success_message,B=(Ae=n==null?void 0:n.exam)!=null&&Ae.startQuiz?(ne=n==null?void 0:n.exam)==null?void 0:ne.startQuiz:()=>{},V=(U=n==null?void 0:n.exam)!=null&&U.AddUserAssessmentAnswer?(re=n==null?void 0:n.exam)==null?void 0:re.AddUserAssessmentAnswer:()=>{},z=(G=n==null?void 0:n.exam)!=null&&G.endQuiz?(de=n==null?void 0:n.exam)==null?void 0:de.endQuiz:()=>{},k=(Ie=n==null?void 0:n.exam)!=null&&Ie.examComplete?(Te=n==null?void 0:n.exam)==null?void 0:Te.examComplete:ve=>{},j=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ve,me,Se,De,q,se)=>{},le=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ve,me,Se)=>{},fe=M.useCallback(ve=>i(Vee(ve)),[i]),Z=M.useCallback((ve,me,Se)=>{},[i]),W=M.useCallback(()=>i($ee()),[i]),ce=M.useCallback((ve,me)=>i(qee(ve,me)),[i]),K=M.useCallback((ve,me)=>i(Uee(ve,me)),[i]),pe=M.useCallback(ve=>{CD(ve)(i)},[i]),te=M.useCallback(ve=>i(jee(ve)),[i]),ee=M.useCallback(ve=>i(TD(ve)),[i]),Y=M.useCallback(ve=>i(xD(ve)),[i]),J=M.useCallback(ve=>i(Kee(ve)),[i]),he=M.useCallback(ve=>i(zee(ve)),[i]),be=M.useCallback((ve,me,Se)=>i(Hee(ve,me,Se)),[i]),Ee=M.useCallback((ve,me,Se)=>i(Yee(ve,me,Se)),[i]),ye=M.useCallback((ve,me,Se,De,q,se)=>i(Bee(ve,me,Se,De,q,se)),[i]);return{examComplete:k,taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:v,TasksList:S,TasksLoading:I,TasksSuccess:O,TasksSuccessMessage:P,taskProgressMaxValue:m,taskRegisterData:T,taskProgressValue:x,taskMaxTabs:A,noOfTotalElements:E,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:_,updateTaskDataSchema:fe,submitTaskFormData:le,updateTaskFormData:j,TasksSubmit:h,TasksHTTPRequest:g,updateTaskRegisterData:ee,updateTaskProgressValue:pe,updateTaskProgressMaxValue:J,updateUserFormDataSubmit:Y,removeUserDataFormSectionRepeatableData:K,addUserDataFormSectionRepeatableData:ce,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Ee,clearTaskSchema:W,taskProgressLoading:f,task_status:a,startQuiz:B,endQuiz:z,AddUserAssessmentAnswer:V,updateUserTraining:he,taskFieldUpdateHook:ye,updateProgressDataValuesHook:te,saveProgressDataHook:Z}};function b7(){return b7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b7.apply(null,arguments)}var ID=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",b7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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"}),b.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"}),b.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"}))}));ID.displayName="ExclamationTriangleIcon";function y7(){return y7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y7.apply(null,arguments)}var _D=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",y7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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"}))}));_D.displayName="InfoCircleIcon";function A7(){return A7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A7.apply(null,arguments)}var w7=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",A7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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"}))}));w7.displayName="TimesCircleIcon";function S7(){return S7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},S7.apply(null,arguments)}function x7(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Wee(t){if(Array.isArray(t))return x7(t)}function Qee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function DD(t,e){if(t){if(typeof t=="string")return x7(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x7(t,e):void 0}}function Jee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1601
|
+
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[nD]:{exposeProperties:{text:(t,e)=>u7(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function cee(t,e){const n=d7[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new lee(n);return r.loadDataTransfer(e),r}function f7(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(d7).filter(n=>{const r=d7[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const uee=Z_(()=>/firefox/i.test(navigator.userAgent)),aD=Z_(()=>!!window.safari);class sD{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 g=n[d];if(g<e)c=d+1;else if(g>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 g=0;g<r;g++)i.push(g);i.sort((g,v)=>e[g]<e[v]?-1:1);const a=[],s=[];let l,c;for(let g=0;g<r-1;g++)l=e[g+1]-e[g],c=n[g+1]-n[g],a.push(l),s.push(c/l);const u=[s[0]];for(let g=0;g<a.length-1;g++){const v=s[g],m=s[g+1];if(v*m<=0)u.push(0);else{l=a[g];const A=a[g+1],w=l+A;u.push(3*w/((w+A)/v+(w+l)/m))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let g=0;g<u.length-1;g++){h=s[g];const v=u[g],m=1/a[g],A=v+u[g+1]-h-h;d.push((h-v-A)*m),f.push(A*m*m)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const dee=1;function oD(t){const e=t.nodeType===dee?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function M3(t){return{x:t.clientX,y:t.clientY}}function fee(t){var e;return t.nodeName==="IMG"&&(uee()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function hee(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return aD()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function pee(t,e,n,r,i){const a=fee(e),l=oD(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:g,dragPreviewHeight:v}=hee(a,e,u,d),m=()=>{let I=new sD([0,.5,1],[c.y,c.y/d*v,c.y+v-d]).interpolate(h);return aD()&&a&&(I+=(window.devicePixelRatio-1)*v),I},A=()=>new sD([0,.5,1],[c.x,c.x/u*g,c.x+g-u]).interpolate(f),{offsetX:w,offsetY:T}=i,x=w===0||w,E=T===0||T;return{x:x?w:A(),y:E?T:m()}}class gee{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 mee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lD(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){mee(t,i,n[i])})}return t}class vee{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 lD({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 lD({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(iD).some(n=>iD[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=cee(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&&oD(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=M3(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=f7(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:g,anchorY:v,offsetX:m,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),x=pee(f,h,s,{anchorX:g,anchorY:v},{offsetX:m,offsetY:A});l.setDragImage(h,x.x,x.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=f7(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:M3(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=M3(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 f7(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:M3(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 gee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new oee(this.isNodeInDocument)}}const Vf=function(e,n,r){return new vee(e,n,r)},cD=M.createContext(void 0),uD=({children:t,option:e,saveFormBuilderSchema:n,templateSchema:r,onChange:i,isHTML5BackendDisabled:a=!1})=>{const s={...G8,...r},[l,c]=M.useReducer(aJ,s);M.useEffect(()=>{n&&n(l)},[l]);const{isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v="ltr",emitSocketData:m,media:A,reusableComponent:w,saveFormProgress:T,showSettings:x}=e;return o.jsx(cD.Provider,{value:{media:A,isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v,emitSocketData:m,reusableComponent:w,state:l,dispatch:c,onChange:i,saveFormProgress:T,showSettings:x},children:a?o.jsx(o.Fragment,{children:t}):o.jsx(Lf,{backend:Vf,children:t})})},dD=()=>M.useContext(cD),bee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},yee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],Aee=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],fD=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return bee(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:fD(l.children,a,s)},r},hD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return yee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:hD(a.children,i)},n},h7=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return Aee(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:h7(s.children,a,n)},r},wee=(t,e,n)=>{let r=[...t],i=r[n[ma]].children[n[va]].children[n[xa]].children[n[Ca]].children[n[Ta]].inlineConditionalRules.rules[n[Na]].conditions[n[Zo]].children[n[Fo]];return r[n[ma]].children[n[va]].children[n[xa]].children[n[Ca]].children[n[Ta]].inlineConditionalRules.rules[n[Na]].conditions[n[Zo]].children.splice([n[Fo]],1),r[e[ma]].children[e[va]].children[e[xa]].children[e[Ca]].children[e[Ta]].inlineConditionalRules.rules[e[Na]].conditions[e[Zo]].children.splice(e[Fo],0,i),r},See=(t,e,n)=>fD(t,e,n),xee=t=>{const e=[...t],n={type:ws,uuid:tt(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},pD=(t,e,n,r)=>{var h,g,v,m,A,w;let i;const a={...Bc,uuid:tt(),children:[r]},s={...mu,uuid:tt()},l={...mu,uuid:tt(),children:[a]},c={...kf,uuid:tt(),children:[l]},u={..._3,uuid:tt(),children:[c]};switch(e.length){case 1:{r.type===dT?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===Oo?i={...c,children:[l]}:i={...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[r]}]};break}case 4:{r.type===pf?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(m=(v=(g=(h=d[n[ma]])==null?void 0:h.children[n[va]])==null?void 0:g.children[n[xa]])==null?void 0:v.children[n[Ca]])==null?void 0:m.children[n[Ta]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Na]].conditions[n[Zo]].children.splice(n[Fo],1):d=hD(d,n),d=xee(d),d=h7(d,e,i),d},Cee=(t,e,n)=>{let r;switch(e.length){case 1:{r={..._3,uuid:tt(),children:[{...kf,uuid:tt(),children:[{...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[n]}]}]}]};break}case 2:{r={...kf,uuid:tt(),children:[{...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[n]}]}]};break}case 3:{r={...mu,uuid:tt(),children:[{...Bc,uuid:tt(),children:[n]}]};break}case 4:{r={...Bc,uuid:tt(),children:[n]};break}default:r=n}return h7(t,e,r)},cn=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=dD(),{updateGlobalToast:i,emitSocketData:a}=Jt();if(t===void 0)throw new Error("Must be wrapped in builder provider");const s=t.builderTemplateName,l=t.isChangesSaved,c=t.editing_by,u=t.version_name,d=t.loading,f=t.published_status,h=t,g=t,v=t.formType,m=t==null?void 0:t.userSelectedLanguage,A=t==null?void 0:t.languages,w=t.layout,T=M.useCallback(me=>WQ(me)(e),[e]),x=M.useCallback(me=>SQ(me)(e),[e]),E=M.useCallback(me=>QQ(me)(e),[e]),S=M.useCallback((me,Se)=>{var yt,qt,dn,mn,En,Vn,hn,Qt;const De=me.path.split("-"),q=De.slice(0,-1).join("-"),se={uuid:Se.uuid,type:Se.type,reviewerChecklist:[]},ge=0,ue=1,oe=2,ae=3,Oe=4,Ne=5,Ke=6,ut=8,pt=7,ft=5,kt=6,Sn=8;if(Se.type===na&&(Se==null?void 0:Se.schema)!==void 0){z(JSON.parse(Se==null?void 0:Se.schema),parseInt(De[ge]));return}if(((yt=Se==null?void 0:Se.schema)==null?void 0:yt.componentType)==="question"&&((Vn=(En=(mn=(dn=(qt=w[0])==null?void 0:qt.children[0])==null?void 0:dn.children[0])==null?void 0:mn.children[0])==null?void 0:En.children)!=null&&Vn.some(Xe=>{var et,ht,jt;return((et=Xe==null?void 0:Xe.questionText)==null?void 0:et[m.type])===((jt=(ht=Se==null?void 0:Se.schema)==null?void 0:ht.questionText)==null?void 0:jt[m.type])}))){i({showToast:!0,toastMessage:"Exist",toastDetail:"Question text cannot be same for more than one element",toastType:"warn"});return}if(Se.type===Gn){let Xe={type:pf,reviewerChecklist:[],...It.cloneDeep(Se.schema)};if(Xe!=null&&Xe.options&&(Xe={...Xe,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:{}}]}),Xe.componentType==="grid-component"&&(Xe={...Xe,children:[],options:[{uuid:tt(),custom_values:{}}]}),Xe.componentType==="radio-hierarchal"&&(Xe={...Xe,type:"radio",children:[],options:[{uuid:tt(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:tt(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),Xe={...Xe,uuid:tt()},De.length===ut){G(parseInt(De[ge]),parseInt(De[ue]),parseInt(De[oe]),parseInt(De[ae]),parseInt(De[Oe]),parseInt(De[Ne]),parseInt(De[Ke]),Xe),a();return}if(De.length===pt){de(parseInt(De[ge]),parseInt(De[ue]),parseInt(De[oe]),parseInt(De[ae]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),a();return}if((Qt=(hn=w[De[ge]].children[De[ue]])==null?void 0:hn.children[De[oe]])!=null&&Qt.rowIsRepeatable&&(Xe==null?void 0:Xe.componentType)==="editor"){i({showToast:!0,toastMessage:"Forbidden",toastDetail:"This Field cannot be applied in repeatable",toastType:"error"});return}E(Cee(w,De,Xe)),a(),De.length>1&&ye(De[ge],De[ue],De[oe],Xe);return}const Vt=Se.path.split("-"),Nt=Vt.slice(0,-1).join("-");if(Vt.length===De.length){if(Nt===q){if((Vt==null?void 0:Vt.length)===Sn){E(wee(w,De,Vt));return}E(See(w,De,Vt));return}const Xe={...se,...Se};(Se==null?void 0:Se.id)===void 0&&(Xe.id=tt()),E(pD(w,De,Vt,Xe));return}if((Vt==null?void 0:Vt.length)===8){const Xe={type:pf,reviewerChecklist:[],...Se};de(parseInt(De[ge]),parseInt(De[ue]),parseInt(De[oe]),parseInt(De[ae]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),U(Vt[ma],Vt[va],Vt[xa],Vt[Ca],Vt[Ta],Vt[ft],Vt[kt],Vt[tc]);return}const $e={...se,...Se};(Se==null?void 0:Se.id)===void 0&&($e.id=tt()),E(pD(w,De,Vt,$e))},[w,m.type]),I=M.useCallback(()=>iJ()(e),[e]),_=M.useCallback(me=>JQ(me)(e,t),[e]),O=M.useCallback(me=>ZQ(me)(e,t),[e]),P=M.useCallback(me=>eJ(me)(e),[e]),B=M.useCallback(me=>wQ(me)(e),[e]),V=M.useCallback(me=>IQ(me)(e),[e]),z=M.useCallback((me,Se)=>NQ(me,Se)(e),[e]),k=M.useCallback((me,Se)=>MQ(me,Se)(e),[e]),j=M.useCallback((me,Se,De)=>VQ(me,Se,De)(e),[e]),le=M.useCallback(me=>TQ(me)(e),[e]),fe=M.useCallback((me,Se)=>EQ(me,Se)(e),[e]),Z=M.useCallback((me,Se,De)=>PQ(me,Se,De)(e),[e]),W=M.useCallback((me,Se,De,q)=>qQ(me,Se,De,q)(e),[e]),ce=M.useCallback((me,Se,De,q,se)=>$Q(me,Se,De,q,se)(e,t),[e]),K=M.useCallback((me,Se,De,q,se,ge)=>jQ(me,Se,De,q,se,ge)(e,t),[e]),pe=M.useCallback((me,Se,De)=>_Q(me,Se,De)(e),[e]),te=M.useCallback((me,Se,De,q)=>kQ(me,Se,De,q)(e),[e]),ee=M.useCallback((me,Se)=>CQ(me,Se)(e),[e]),Y=M.useCallback((me,Se,De,q,se,ge)=>zQ(me,Se,De,q,se,ge)(e),[e]),J=M.useCallback((me,Se,De,q,se)=>UQ(me,Se,De,q,se)(e),[e]),he=M.useCallback((me,Se,De,q)=>FQ(me,Se,De,q)(e),[e]),be=M.useCallback((me,Se,De)=>DQ(me,Se,De)(e),[e]),Ee=M.useCallback((me,Se)=>xQ(me,Se)(e,t),[e]),ye=M.useCallback((me,Se,De,q)=>LQ(me,Se,De,q)(e),[e]),Ae=M.useCallback((me,Se,De,q,se,ge,ue,oe,ae)=>RQ(me,Se,De,q,se,ge,ue,oe,ae)(e),[e]),ne=M.useCallback((me,Se,De,q,se,ge,ue,oe,ae)=>KQ(me,Se,De,q,se,ge,ue,oe,ae)(e),[e]),U=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>XQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),re=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>GQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),G=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>HQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),de=M.useCallback((me,Se,De,q,se,ge,ue,oe)=>YQ(me,Se,De,q,se,ge,ue,oe)(e),[e]),Ie=M.useCallback(me=>tJ(me)(e),[e]),Te=M.useCallback(me=>nJ(me)(e),[e]),ve=M.useCallback(me=>rJ(me)(e),[e]);return{builderIsChangesSaved:l,builderTemplateName:s,formBuilderFormSchema:h,formBuilderFormLayout:w,formBuilderSchemaLanguages:A,saveFormTemplateNewVersion:g,userSelectedLanguage:m,formBuilderConfigurationType:v,formBuilderLoading:d,formBuilderPublishedStatus:f,builderEditingBy:c,builderVersionName:u,handleDrop:S,formatTableFieldsHook:x,saveFormBuilderSchema:T,removePage:le,removeSection:fe,removeRow:Z,removeColumn:W,removeField:ce,updateEditingBy:ve,addTabs:B,addSection:V,addRow:k,addColumn:j,cloneField:Y,cloneColumn:J,cloneRow:he,cloneSection:be,clonePage:Ee,sectionImport:z,setLayout:E,fieldSettingUpdate:K,selectFormBuilderLanguage:_,unselectFormBuilderLanguage:O,updateUserFormSelectedLanguage:P,updateFormType:Ie,schemaBuilderUpdate:Te,pageSettingUpdate:ee,saveFormProgress:r,sectionSettingUpdate:pe,rowSettingUpdate:te,clearBuilderSchema:I,addFieldToRowRepeaptable:ye,addFieldToInlineRuleCondtionFields:G,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:de,gridComponentFieldSettingUpdate:ne,gridComponentFieldDelete:U}},Jt=()=>{const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,globalAlignment:s,reusableComponent:l,showSettings:c}=dD();if(t===void 0)throw new Error("Must be wrapped in builder provider");const u=r==null?void 0:r.key,{saveComponent:d,componentList:f,sectionsList:h}=l;return{isPreview:t,isAdmin:e,isRenderView:n,renderType:u,isAdvanceView:i,globalAlignment:s,media:a,saveComponent:d,componentList:f,sectionsList:h,emitSocketData:()=>{},updateGlobalToast:m=>{c!=null&&c.showToast&&(c==null||c.showToast(m))}}},Tee="TASKS_LOADING",Eee="TASKS_ADD",Iee="TASKS_GET_PAGINATED_LIST",_ee="TASKS_DELETE",Dee="TASKS_PAGNIATION_UPDATE",Nee="TASKS_UPDATE",Oee="TASKS_SUCCESS_GET",Fee="TASK_GET_TEMPLATE",kee="TASK_SET_DATA",Pee="TASKS_FORM_SUBMIT",Mee="TASKS_FORM_HTTP_REQUEST",p7="TASK_SET_PROGRESS_VALUE",gD="TASK_SET_MAX_PROGRESS_VALUE",mD="TASK_SET_REGISTER_DATA",vD="TASK_SET_SCHEMA",g7="TASK_UPDATE_USER_FORM_SUBMIT_DATA",bD="CLEAR_TASK",yD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",AD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",wD="TASK_USER_TRAINING_DATA",SD="TASK_FIELD_UPDATE",Lee=6,L3=1,n2="DISPLAY_TYPE_START_DETAILS",B3="DISPLAY_TYPE_QUIZ",m7="DISPLAY_TYPE_START_TIMER";function Bee(t,e,n,r,i,a){return s=>{s({type:SD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function xD(t){return(e,n)=>{const r={type:g7,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function Vee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:g7,payLoad:{taskData:{...i,...t}}};e(a)}}function Uee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:AD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function qee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:yD,payLoad:{userSubmitFormIndex:s,repeatableData:e}})}}function $ee(){return t=>{t({type:bD,payLoad:null})}}const CD=t=>e=>{console.log("updateProgresValue",t),e({type:p7,payLoad:{progressValue:t}})},jee=t=>e=>{e({type:p7,payLoad:t})},zee=t=>e=>{e({type:wD,payLoad:{userTrainingSaveData:t}})},TD=t=>e=>{e({type:mD,payLoad:{registerData:t}})},Hee=(t,e,n)=>(r,i)=>{var d;const{TasksReducer:a}=i(),{userTaskSubmitFormData:s}=a,l=[...s],c=It.findIndex(l,function(f){var h;return f.rowId===((h=t==null?void 0:t.row)==null?void 0:h.uuid)});let u=(d=s[c])==null?void 0:d.repeatableFields;u={...u,[e==null?void 0:e.uuid]:`<div>${n}</div>`},l[c]={...l[c],repeatableFields:u},r(xD(l))},Yee=(t,e,n)=>(r,i)=>{const{TasksReducer:a}=i(),{userTaskSubmitFormData:s,registerData:l}=a,c=s,u=It.cloneDeep(l);if(n&&(c==null?void 0:c.length)>0){u[e==null?void 0:e.uuid]=n;for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:n})}else if((c==null?void 0:c.length)>0){for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:""});delete u[e==null?void 0:e.uuid]}r(TD(u));const d=Object.keys(u).length;r(CD(d))},Kee=t=>e=>{e({type:gD,payLoad:{progressMaxValue:t}})},v7={submitting:!1,httpRequest:!1,taskData:null,taskUpdateLoading:!1,loading:!1,progressLoading:!1,list:[],filter:"",sort:"task.created_at|desc",total_records:0,page:1,per_page:10,success:!1,success_message:"",userTaskSubmitFormData:null,taskSchema:null,progressMaxValue:0,maxTabs:0,registerData:{},progressValue:0,tabNoOfFieldsData:[],noOfTotalElements:0,sortField:null,sortOrder:null,userTrainingSaveData:null,assessmentData:null,task_status:1},Xee=(t=v7,e)=>{switch(e.type){case bD:return{...t,...v7,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case Oee:return{...t,...e.payLoad};case g7:return{...t,...e.payLoad};case vD:return{...t,...e.payLoad};case p7:return{...t,...e.payLoad};case mD:return{...t,registerData:e.payLoad.registerData};case gD:return{...t,...e.payLoad};case Tee:return{...t,...e.payLoad};case Pee:return{...t,...e.payLoad};case Mee:return{...t,...e.payLoad};case Eee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case Iee:return{...t,...e.payLoad};case kee:return{...t,taskData:e.payLoad};case Dee:return{...t,...e.payLoad};case _ee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case wD:return{...t,...e.payLoad};case SD:{const{pageIndex:n,sectionIndex:r,rowIndex:i,columnIndex:a,fieldIndex:s,field:l}=e.payLoad,c=[...t.taskSchema.layout];c[n].children[r].children[i].children[a].children[s]=l;const u={...t.taskSchema,layout:c};return{...t,taskSchema:u}}case yD:{const{userSubmitFormIndex:n,repeatableData:r}=e.payLoad,i=t.userTaskSubmitFormData[n].repeatableFieldsData?t.userTaskSubmitFormData[n].repeatableFieldsData:[];return i.push(r),t.userTaskSubmitFormData[n].repeatableFieldsData=i,t}case AD:{const{userSubmitFormIndex:n,repeatableDataRowIndex:r}=e.payLoad,i=[...t.userTaskSubmitFormData],a=[...i[n].repeatableFieldsData];return a.splice(r,1),i[n]={...i[n],repeatableFieldsData:a},{...t,userTaskSubmitFormData:i}}case Nee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case Fee:return{...t,...e.payLoad}}return t},ED=M.createContext(void 0),Ree=({option:t,taskOptions:e,saveFormBuilderSchema:n,templateSchema:r,taskValue:i,children:a,isHTML5BackendDisabled:s=!1})=>{const[l,c]=M.useReducer(Xee,{...v7,...i}),{progressMaxValue:u=0,progressValue:d=0,registerData:f=null,...h}=i||{};return M.useEffect(()=>{c({type:vD,payLoad:h})},[i]),o.jsx(ED.Provider,{value:{taskOptions:e,state:l,dispatch:c},children:o.jsx(uD,{isHTML5BackendDisabled:s,option:t,saveFormBuilderSchema:n,templateSchema:r,onChange:()=>{},children:a})})},Gee=()=>M.useContext(ED),yr=()=>{var Ae,ne,U,re,G,de,Ie,Te;const{taskOptions:n,state:r,dispatch:i}=Gee();if(r===void 0)throw new Error("Must be wrapped in task render provider");const a=r.task_status,s=r.task_status,l=r.userTaskSubmitFormData,c=r.userTrainingSaveData,u=r.taskSchema,d=r.assessmentData,f=r.progressLoading,h=r.submitting,g=r.httpRequest,v=r.taskData,m=r.progressMaxValue,A=r.maxTabs,w=r.tabNoOfFieldsData,T=r.registerData,x=r.progressValue,E=r.noOfTotalElements,S=r.menuList,I=r.loading,_=r.submitting,O=r.success,P=r.success_message,B=(Ae=n==null?void 0:n.exam)!=null&&Ae.startQuiz?(ne=n==null?void 0:n.exam)==null?void 0:ne.startQuiz:()=>{},V=(U=n==null?void 0:n.exam)!=null&&U.AddUserAssessmentAnswer?(re=n==null?void 0:n.exam)==null?void 0:re.AddUserAssessmentAnswer:()=>{},z=(G=n==null?void 0:n.exam)!=null&&G.endQuiz?(de=n==null?void 0:n.exam)==null?void 0:de.endQuiz:()=>{},k=(Ie=n==null?void 0:n.exam)!=null&&Ie.examComplete?(Te=n==null?void 0:n.exam)==null?void 0:Te.examComplete:ve=>{},j=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ve,me,Se,De,q,se)=>{},le=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ve,me,Se)=>{},fe=M.useCallback(ve=>i(Vee(ve)),[i]),Z=M.useCallback((ve,me,Se)=>{},[i]),W=M.useCallback(()=>i($ee()),[i]),ce=M.useCallback((ve,me)=>i(qee(ve,me)),[i]),K=M.useCallback((ve,me)=>i(Uee(ve,me)),[i]),pe=M.useCallback(ve=>{CD(ve)(i)},[i]),te=M.useCallback(ve=>i(jee(ve)),[i]),ee=M.useCallback(ve=>i(TD(ve)),[i]),Y=M.useCallback(ve=>i(xD(ve)),[i]),J=M.useCallback(ve=>i(Kee(ve)),[i]),he=M.useCallback(ve=>i(zee(ve)),[i]),be=M.useCallback((ve,me,Se)=>i(Hee(ve,me,Se)),[i]),Ee=M.useCallback((ve,me,Se)=>i(Yee(ve,me,Se)),[i]),ye=M.useCallback((ve,me,Se,De,q,se)=>i(Bee(ve,me,Se,De,q,se)),[i]);return{examComplete:k,taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:v,TasksList:S,TasksLoading:I,TasksSuccess:O,TasksSuccessMessage:P,taskProgressMaxValue:m,taskRegisterData:T,taskProgressValue:x,taskMaxTabs:A,noOfTotalElements:E,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:_,updateTaskDataSchema:fe,submitTaskFormData:le,updateTaskFormData:j,TasksSubmit:h,TasksHTTPRequest:g,updateTaskRegisterData:ee,updateTaskProgressValue:pe,updateTaskProgressMaxValue:J,updateUserFormDataSubmit:Y,removeUserDataFormSectionRepeatableData:K,addUserDataFormSectionRepeatableData:ce,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Ee,clearTaskSchema:W,taskProgressLoading:f,task_status:a,startQuiz:B,endQuiz:z,AddUserAssessmentAnswer:V,updateUserTraining:he,taskFieldUpdateHook:ye,updateProgressDataValuesHook:te,saveProgressDataHook:Z}};function b7(){return b7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b7.apply(null,arguments)}var ID=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",b7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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"}),b.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"}),b.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"}))}));ID.displayName="ExclamationTriangleIcon";function y7(){return y7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y7.apply(null,arguments)}var _D=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",y7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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"}))}));_D.displayName="InfoCircleIcon";function A7(){return A7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A7.apply(null,arguments)}var w7=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",A7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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"}))}));w7.displayName="TimesCircleIcon";function S7(){return S7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},S7.apply(null,arguments)}function x7(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Wee(t){if(Array.isArray(t))return x7(t)}function Qee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function DD(t,e){if(t){if(typeof t=="string")return x7(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x7(t,e):void 0}}function Jee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1602
1602
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C7(t){return Wee(t)||Qee(t)||DD(t)||Jee()}function Zee(t){if(Array.isArray(t))return t}function ete(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 tte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1603
1603
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T7(t,e){return Zee(t)||ete(t,e)||DD(t,e)||tte()}function r2(t){"@babel/helpers - typeof";return r2=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},r2(t)}function nte(t,e){if(r2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(r2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rte(t){var e=nte(t,"string");return r2(e)=="symbol"?e:e+""}function Lo(t,e,n){return(e=rte(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ite=`
|
|
1604
1604
|
@layer primereact {
|
|
@@ -32538,13 +32538,13 @@ class Kte {
|
|
|
32538
32538
|
}
|
|
32539
32539
|
const yf = function(e, n, r) {
|
|
32540
32540
|
return new Kte(e, n, r);
|
|
32541
|
-
}, Sk = fh(void 0), Xte = ({ children: t, option: e, saveFormBuilderSchema: n, templateSchema: r, onChange: i }) => {
|
|
32542
|
-
const
|
|
32541
|
+
}, Sk = fh(void 0), Xte = ({ children: t, option: e, saveFormBuilderSchema: n, templateSchema: r, onChange: i, isHTML5BackendDisabled: a = !1 }) => {
|
|
32542
|
+
const s = { ...g7, ...r }, [o, l] = LO(MZ, s);
|
|
32543
32543
|
gn(() => {
|
|
32544
|
-
n && n(
|
|
32545
|
-
}, [
|
|
32546
|
-
const { isPreview:
|
|
32547
|
-
return /* @__PURE__ */ c(Sk.Provider, { value: { media:
|
|
32544
|
+
n && n(o);
|
|
32545
|
+
}, [o]);
|
|
32546
|
+
const { isPreview: u, isAdmin: d, isRenderView: f, renderType: p, isAdvanceView: g, globalAlignment: v = "ltr", emitSocketData: m, media: x, reusableComponent: C, saveFormProgress: E, showSettings: S } = e;
|
|
32547
|
+
return /* @__PURE__ */ c(Sk.Provider, { value: { media: x, isPreview: u, isAdmin: d, isRenderView: f, renderType: p, isAdvanceView: g, globalAlignment: v, emitSocketData: m, reusableComponent: C, state: o, dispatch: l, onChange: i, saveFormProgress: E, showSettings: S }, children: a ? /* @__PURE__ */ c(Ce, { children: t }) : /* @__PURE__ */ c(bf, { backend: yf, children: t }) });
|
|
32548
32548
|
}, Tk = () => i1(Sk), Gte = (t, e, n) => {
|
|
32549
32549
|
const r = Array.from(t), [i] = r.splice(e, 1);
|
|
32550
32550
|
return r.splice(n, 0, i), r;
|
|
@@ -33503,19 +33503,19 @@ const Lk = (t) => (e) => {
|
|
|
33503
33503
|
return { ...t, ...e.payLoad };
|
|
33504
33504
|
}
|
|
33505
33505
|
return t;
|
|
33506
|
-
}, Bk = fh(void 0), zEe = ({ option: t, taskOptions: e, saveFormBuilderSchema: n, templateSchema: r, taskValue: i, children: a }) => {
|
|
33507
|
-
const [
|
|
33508
|
-
progressMaxValue:
|
|
33509
|
-
progressValue:
|
|
33510
|
-
registerData:
|
|
33511
|
-
...
|
|
33506
|
+
}, Bk = fh(void 0), zEe = ({ option: t, taskOptions: e, saveFormBuilderSchema: n, templateSchema: r, taskValue: i, children: a, isHTML5BackendDisabled: s = !1 }) => {
|
|
33507
|
+
const [o, l] = LO(Sne, { ...w7, ...i }), {
|
|
33508
|
+
progressMaxValue: u = 0,
|
|
33509
|
+
progressValue: d = 0,
|
|
33510
|
+
registerData: f = null,
|
|
33511
|
+
...p
|
|
33512
33512
|
} = i || {};
|
|
33513
33513
|
return gn(() => {
|
|
33514
|
-
|
|
33514
|
+
l({
|
|
33515
33515
|
type: Ok,
|
|
33516
|
-
payLoad:
|
|
33516
|
+
payLoad: p
|
|
33517
33517
|
});
|
|
33518
|
-
}, [i]), /* @__PURE__ */ c(Bk.Provider, { value: { taskOptions: e, state:
|
|
33518
|
+
}, [i]), /* @__PURE__ */ c(Bk.Provider, { value: { taskOptions: e, state: o, dispatch: l }, children: /* @__PURE__ */ c(Xte, { isHTML5BackendDisabled: s, option: t, saveFormBuilderSchema: n, templateSchema: r, onChange: () => {
|
|
33519
33519
|
}, children: a }) });
|
|
33520
33520
|
}, Tne = () => i1(Bk), hr = () => {
|
|
33521
33521
|
var ye, Z, B, ee, W, ce, Ie, Te;
|
|
@@ -58129,7 +58129,7 @@ var Uue = function() {
|
|
|
58129
58129
|
theme: i.theme,
|
|
58130
58130
|
formats: i.formats
|
|
58131
58131
|
};
|
|
58132
|
-
Uue ? A(new Quill(d.current, V)) : import("./quill-
|
|
58132
|
+
Uue ? A(new Quill(d.current, V)) : import("./quill-DSe-30l5.js").then(function(q) {
|
|
58133
58133
|
if (q && Se.isExist(d.current)) {
|
|
58134
58134
|
var P;
|
|
58135
58135
|
q.default ? P = new q.default(d.current, V) : P = new q(d.current, V), A(P);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Bl = Object.defineProperty;
|
|
2
2
|
var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, 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 Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-
|
|
4
|
+
import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, 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 Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-DmTwdvcQ.js";
|
|
5
5
|
function Ki(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|