cft-builder 0.2.74 → 0.2.75
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-BdMYGG4m.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
|
`}}),G8=b.forwardRef(function(t,e){var n=Un(),r=b.useContext(nr),i=I3.getProps(t,r),a=b.useState(i.id),s=__(a,2),l=s[0],c=s[1],u=b.useState(i.collapsed),d=__(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",E=I3.setMetaData({props:i,state:{id:l,collapsed:g}}),x=E.ptm,C=E.cx,S=E.isUnstyled;ci(I3.css.styles,S,{name:"fieldset"});var _=function(Q){i.toggleable&&(g?I(Q):F(Q),i.onToggle&&i.onToggle({originalEvent:Q,value:!g})),Q.preventDefault()},I=function(Q){i.onToggle||h(!1),i.onExpand&&i.onExpand(Q)},F=function(Q){i.onToggle||h(!0),i.onCollapse&&i.onCollapse(Q)};Pi(function(){i.id||c(el())});var M=function(Q){(Q.code==="Enter"||Q.code==="NumpadEnter"||Q.code==="Space")&&(_(Q),Q.preventDefault())},L=function(){var Q=n({className:C("content")},x("content")),ce=n({ref:m,id:w,role:"region","aria-labelledby":A,className:C("toggleableContent")},x("toggleableContent")),K=n({classNames:C("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",Q,i.children)))},V=function(){if(i.toggleable){var Q=n({className:C("togglericon")},x("togglericon")),ce=g?i.expandIcon||b.createElement(A3,Q):i.collapseIcon||b.createElement(R8,Q),K=Wn.getJSXIcon(ce,Q,{props:i});return K}return null},U=function(){var Q=n({className:C("legendTitle")},x("legendTitle")),ce=n({id:A,role:"button","aria-expanded":!g,"aria-controls":w,onKeyDown:M,onClick:_,"aria-label":i.legend,tabIndex:0},x("toggler"));if(i.toggleable){var K=V();return b.createElement("a",ce,K,b.createElement("span",Q,i.legend),b.createElement(tn,null))}return b.createElement("span",E3({},Q,{id:A}),i.legend)},O=function(){var Q=n({className:C("legend")},x("legend"));if(i.legend!=null||i.toggleable){var ce=U();return b.createElement("legend",Q,ce)}};b.useImperativeHandle(e,function(){return{props:i,getElement:function(){return v.current},getContent:function(){return m.current}}});var q=n({id:l,ref:v,style:i.style,className:dt(i.className,C("root")),onClick:i.onClick},I3.getOtherProps(i),x("root")),ie=O(),ge=L();return b.createElement("fieldset",q,ie,ge)});G8.displayName="Fieldset";const hQ=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(G8,{children:[o.jsx("div",{className:"pi pi-circle",children:" Option 1"}),o.jsx("br",{})]}),o.jsx("br",{}),o.jsx(G8,{children:o.jsx("div",{className:"pi pi-circle",children:" Option 2"})})]})]})]})}),pQ=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"]})]})]})}),gQ=[{label:"Free form inputs",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"Text",icon:"pi pi-fw pi-plus",element:"input",schema:nK,uuid:et(),type:Rn,toolTip:t=>kX(t)},{label:"Number",icon:"pi pi-fw pi-trash",element:"number",schema:tK,uuid:et(),type:Rn,toolTip:t=>PX(t)},{label:"Email",icon:"pi pi-fw pi-external-link",element:"email",schema:eK,uuid:et(),type:Rn,toolTip:t=>MX(t)},{label:"Text Area",icon:"pi pi-fw pi-external-link",element:"textArea",schema:lK,uuid:et(),type:Rn,toolTip:t=>LX(t)},{label:"Text Editor",icon:"pi pi-fw pi-external-link",element:"textHtmlEditor",schema:ZY,uuid:et(),type:Rn,toolTip:t=>BX(t)},{label:"Date Picker",icon:"pi pi-fw pi-user-plus",element:"date-picker",schema:KY,uuid:et(),type:Rn,toolTip:t=>LR(t)},{label:"Draw Signature",icon:"pi pi-fw pi-trash",element:"signature",schema:OT,uuid:et(),type:Rn,toolTip:t=>$R(t)},{label:"Type Signature",icon:"pi pi-fw pi-trash",element:"type-signature",schema:cK,uuid:et(),type:Rn,toolTip:t=>jR(t)},{label:"File Upload",icon:"pi pi-fw pi-trash",element:"file-upload",schema:WY,uuid:et(),type:Rn,toolTip:t=>zR(t)},{label:"Phone Number",icon:"pi pi-fw pi-trash",element:"phone",schema:iK,uuid:et(),type:Rn,PhoneNumberToolTip:PE,toolTip:t=>PE(t)},{label:"Website Url",icon:"pi pi-fw pi-trash",element:"web-url",schema:dK,uuid:et(),type:Rn,toolTip:t=>YR(t)},{label:"Hidden Field",icon:"pi pi-fw pi-trash",element:"hidden-field",schema:JY,uuid:et(),type:Rn,toolTip:t=>xG(t)},{label:"Address",icon:"pi pi-fw pi-trash",element:"address",schema:HY,uuid:et(),type:Rn,toolTip:t=>CG(t)},{label:"Grid Component",icon:"pi pi-fw pi-trash",element:"grid-component",schema:QY,uuid:et(),type:Rn,toolTip:t=>oQ(t)},{label:"Matrix Dropdown",icon:"pi pi-fw pi-trash",element:"matrix-dropdown",schema:rK,uuid:et(),type:Rn,toolTip:t=>lQ(t)}]},{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:bT,uuid:et(),type:Rn,toolTip:t=>x_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:NT,uuid:et(),type:Rn,toolTip:t=>C_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:ET,uuid:et(),type:Rn,toolTip:t=>T_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:vT,uuid:et(),type:Rn,toolTip:t=>E_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:_T,uuid:et(),type:Rn,toolTip:t=>K8(t)},{label:"Hierarchal Radio",icon:"pi pi-fw pi-align-left",element:"radio-hierarchal",schema:sK,uuid:et(),type:Rn,toolTip:t=>K8(t)},{label:"Dynamic Radio",icon:"pi pi-fw pi-align-left",element:"dynamic-listing",schema:XY,uuid:et(),type:Rn,toolTip:t=>hQ(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:TT,uuid:et(),type:Rn,toolTip:t=>v8(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:FT,uuid:et(),type:Rn,toolTip:t=>HE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:DT,uuid:et(),type:Rn,toolTip:t=>$E(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:kT,uuid:et(),type:Rn,toolTip:t=>wG(t)},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:CT,uuid:et(),type:Rn,toolTip:t=>SG(t)}]},{label:"Social Logins",icon:"pi pi-fw pi-pencil",items:[{label:"Facebook Login",icon:"pi pi-fw pi-trash",element:"facebook-login",schema:GY,uuid:et(),type:Rn,toolTip:t=>v8(t)}]},{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:yT,uuid:et(),type:Rn,toolTip:t=>pQ(t)}]}],mQ=[{label:"HTML",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"<a>",icon:"pi pi-fw pi-plus",element:"a",schema:ST,uuid:et(),type:Rn},{label:"<p>",icon:"pi pi-fw pi-trash",element:"paragraph",schema:IT,uuid:et(),type:Rn},{label:"<heading>",icon:"pi pi-fw pi-external-link",element:"h",schema:AT,uuid:et(),type:Rn},{label:"<li>",icon:"pi pi-fw pi-external-link",element:"list",schema:uK,uuid:et(),type:Rn},{label:"divider",icon:"pi pi-fw pi-external-link",element:"hr",schema:wT,uuid:et(),type:Rn},{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:v9,uuid:et(),type:Rn},{label:"Image Gallery",icon:"pi pi-fw pi-user-plus",element:"image-gallery",schema:xT,uuid:et(),type:Rn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:b9,uuid:et(),type:Rn}]}],vQ=[{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:bT,uuid:et(),type:Rn,toolTip:t=>x_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:NT,uuid:et(),type:Rn,toolTip:t=>C_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:ET,uuid:et(),type:Rn,toolTip:t=>T_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:vT,uuid:et(),type:Rn,toolTip:t=>E_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:_T,uuid:et(),type:Rn,toolTip:t=>K8(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:TT,uuid:et(),type:Rn,toolTip:t=>v8(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:FT,uuid:et(),type:Rn,toolTip:t=>HE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:DT,uuid:et(),type:Rn,toolTip:t=>$E(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:kT,uuid:et(),type:Rn},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:CT,uuid:et(),type:Rn}]}],bQ=[{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:v9,uuid:et(),type:Rn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:b9,uuid:et(),type:Rn},{label:"Quiz",icon:"pi pi-fw pi-trash",element:"quiz",schema:aK,uuid:et(),type:Rn},{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:yT,uuid:et(),type:Rn}]}],yQ=[{label:"Left",icon:"pi pi-align-left",value:"left"},{label:"Right",icon:"pi pi-align-right",value:"right"}],AQ=[{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"}],wQ=[{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:fT,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},SQ=t=>{let e=t;e={...e,uuid:et()};const n=e.children.map(r=>({...r,uuid:et(),children:r.children.map(i=>({...i,uuid:et(),children:i.children.map(a=>{var s;return{...a,uuid:et(),...((s=a==null?void 0:a.children)==null?void 0:s.length)>0?{children:a.children.map(l=>{var c;return{...l,uuid:et(),...((c=l.options)==null?void 0:c.length)>0?{options:l.options.map(u=>({...u,uuid:et()}))}:{}}})}:{}}})}))}));return e={...e,children:n},e};function xQ(t){return e=>{const n={..._3,uuid:et(),title:{english:`Page ${t+1}`},children:[{...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[]}]}]}]};e({type:HC,payLoad:n})}}function CQ(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:cT,payLoad:{tableFields:n}})}}function TQ(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=SQ(a),n({type:RC,payLoad:{page:a,pageIndex:e}})}}function EQ(t,e){return n=>{n({type:lT,payLoad:{pageIndex:t,page:e}})}}function IQ(t){return e=>{e({type:BC,payLoad:{pageIndex:t}})}}const D_=t=>{let e=t;e={...e,uuid:et()};const n=e.children.map(r=>({...r,uuid:et(),children:r.children.map(i=>{var a;return{...i,uuid:et(),...((a=i==null?void 0:i.children)==null?void 0:a.length)>0?{children:i.children.map(s=>{var l;return{...s,uuid:et(),...((l=s.options)==null?void 0:l.length)>0?{options:s.options.map(c=>({...c,uuid:et()}))}:{}}})}:{}}})}));return e={...e,children:n},e};function _Q(t,e){return n=>{n({type:VC,payLoad:{pageIndex:t,sectionIndex:e}})}}function DQ(t){return e=>{const n={...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[]}]}]};e({type:YC,payLoad:{pageIndex:t,section:n}})}}function NQ(t,e,n){return r=>{r({type:zC,payLoad:{pageIndex:t,sectionIndex:e,section:n}})}}function OQ(t,e,n){return r=>{const i=t;let a=It.cloneDeep(i);a=D_(a),r({type:GC,payLoad:{section:a,pageIndex:e,sectionIndex:n}})}}function FQ(t,e){return n=>{const r=t;let i=It.cloneDeep(r);i=D_(i),n({type:WC,payLoad:{section:i,pageIndex:e}})}}const kQ=t=>{let e=t;e={...e,uuid:et()};const n=e.children.map(r=>{var i;return{...r,uuid:et(),...((i=r==null?void 0:r.children)==null?void 0:i.length)>0?{children:r.children.map(a=>{var s;return{...a,uuid:et(),...((s=a.options)==null?void 0:s.length)>0?{options:a.options.map(l=>({...l,uuid:et()}))}:{}}})}:{}}});return e={...e,children:n},e};function PQ(t,e,n,r){return i=>{const a=t;let s=It.cloneDeep(a);s=kQ(s),i({type:QC,payLoad:{row:s,pageIndex:e,sectionIndex:n,rowIndex:r}})}}function MQ(t,e,n,r){return i=>{i({type:h9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function LQ(t,e,n){return r=>{r({type:UC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n}})}}function BQ(t,e){return n=>{const r={...mu,uuid:et(),isCollapsed:!1,children:[{...Bc,uuid:et(),children:[]}]};n({type:KC,payLoad:{pageIndex:t,sectionIndex:e,row:r}})}}function VQ(t,e,n,r){return i=>{i({type:tT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,fieldItem:r}})}}const UQ=t=>{var r;let e=t;e={...e,uuid:et()};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:et(),...((s=i.options)==null?void 0:s.length)>0?{options:i.options.map((l,c)=>({...l,uuid:et()}))}:{}}}):[];return e={...e,children:n},e};function qQ(t,e,n){return r=>{const i={...Bc,uuid:et(),children:[]};r({type:XC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,column:i}})}}function $Q(t,e,n,r,i){return a=>{const s=t;let l=It.cloneDeep(s);l=UQ(l),a({type:JC,payLoad:{column:l,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i}})}}function jQ(t,e,n,r){return i=>{i({type:qC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r}})}}function N_(t,e,n,r){return i=>{i({type:h9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function zQ(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],E=It.findIndex(w,function(x){return x.uuid===(d==null?void 0:d.uuid)});w.splice(E,1),u={...u,repeatableFields:w},a(N_(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:$C,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i}})}}function HQ(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],E=[...d.repeatableFields],x=It.findIndex(E,function(C){return C.uuid===(w==null?void 0:w.uuid)});x===-1?E.splice(i,0,a):E[x]=a,E[x]=a,d={...d,repeatableFields:E},s(N_(t,e,n,d))}const f={type:jC,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 YQ(t,e,n,r,i,a){return s=>{var d;const l=t;let c=It.cloneDeep(l);if(c={...c,uuid:et()},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:et()}));c={...c,options:f}}s({type:ZC,payLoad:{field:c,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i,fieldIndex:a}})}}function KQ(t,e,n,r,i,a,s,l){return c=>{c({type:nT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,field:l}})}}function XQ(t,e,n,r,i,a,s,l){return c=>{c({type:rT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridColumnIndex:s,gridRowIndex:a,field:l}})}}function RQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:sT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l,field:c}})}}function GQ(t,e,n,r,i,a,s,l){return c=>{c({type:oT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l}})}}function WQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:iT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l,field:c}})}}function QQ(t,e,n,r,i,a,s,l){return c=>{c({type:aT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l}})}}function JQ(t){return e=>{e({type:pf,payLoad:{formSchema:t}})}}function ZQ(t){return e=>{e({type:pf,payLoad:{layout:t}})}}function eJ(t){return(e,n)=>{const{languages:r}=n,i={type:pf,payLoad:{languages:[...r,t]}};e(i)}}function tJ(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:pf,payLoad:{languages:a}})}}function nJ(t){return e=>{const n={type:pf,payLoad:{userSelectedLanguage:t.value}};e(n)}}function rJ(t){return e=>{e({type:Bm,payLoad:{formType:t}})}}function iJ(t){return e=>{e({type:Bm,payLoad:t})}}function aJ(t){return e=>{e({type:Bm,payLoad:{editing_by:t}})}}function sJ(){return t=>{t({type:eT,payLoad:null})}}const W8={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:et(),..._3,children:[{uuid:et(),...kf,children:[{uuid:et(),...mu,children:[{uuid:et(),...Bc,children:[]}]}]}]}],conditionalTabsRules:[],conditionalSectionsRules:[]},oJ=(t=W8,e)=>{var n,r;switch(e.type){case $Y:return{...t,...e.payLoad};case qY:return{...t,...e.payLoad};case eT:return{...t,...W8};case pf:return{...t,...e.payLoad};case Bm:return{...t,...e.payLoad};case BC:{const{pageIndex:i}=e.payLoad;return{...t,layout:t.layout.filter((a,s)=>s!==i)}}case HC:return{...t,layout:[...t.layout,e.payLoad]};case YC:{const{pageIndex:i,section:a}=e.payLoad,s=[...t.layout];return s[i].children=[...s[i].children,a],{...t,layout:s}}case tT:{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 jY:{const{fieldItem:i}=e.payLoad;let a=[...t.tableFields];return a=[...a,i],{...t,tableFields:a}}case cT:return{...t,...e.payLoad};case KC:{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 XC:{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 nT:{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 rT:{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 iT:{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 sT:{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 aT:{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 oT:{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 VC:{const{pageIndex:i,sectionIndex:a}=e.payLoad,s=[...t.layout];return s[i].children.splice(a,1),{...t,layout:s}}case UC:{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 qC:{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 $C:{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 jC:{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 zC:{const{pageIndex:i,sectionIndex:a,section:s}=e.payLoad,l=[...t.layout];return l[i].children[a]=s,{...t,layout:l}}case h9:{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 lT:{const{pageIndex:i,page:a}=e.payLoad,s=[...t.layout];return s[i]=a,{...t,layout:s}}case RC:{const{page:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s.splice(a+1,0,i),{...t,layout:s}}case GC:{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 WC:{const{section:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s[a].children.push(i),{...t,layout:s}}case QC:{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 JC:{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 ZC:{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},O_=P.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 lJ(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 cJ(t){var e=lJ(t,"string");return vu(e)=="symbol"?e:e+""}function uJ(t,e,n){return(e=cJ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F_(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 k_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F_(Object(n),!0).forEach(function(r){uJ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F_(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 P_=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Q8=function(){return Math.random().toString(36).substring(7).split("").join(".")},M_={INIT:"@@redux/INIT"+Q8(),REPLACE:"@@redux/REPLACE"+Q8(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Q8()}};function dJ(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 fJ(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(gJ(t))return"date";if(pJ(t))return"error";var n=hJ(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 hJ(t){return typeof t.constructor=="function"?t.constructor.name:null}function pJ(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function gJ(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=fJ(t)),e}function L_(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(L_)(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 E=l.indexOf(m);l.splice(E,1),s=null}}}function h(m){if(!dJ(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 E=A[w];E()}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:M_.REPLACE})}function v(){var m,A=f;return m={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?rc(11):"Expected the observer to be an object. Instead, received: '"+Pf(E)+"'");function x(){E.next&&E.next(d())}x();var C=A(x);return{unsubscribe:C}}},m[P_]=function(){return this},m}return h({type:M_.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:g},r[P_]=v,r}function zr(t,e,...n){if(mJ()&&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 mJ(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function vJ(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function bJ(t,e){return t.filter(n=>n!==e)}function B_(t){return typeof t=="object"}function yJ(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 AJ(t,e){return t.filter(n=>e.indexOf(n)>-1)}const J8="dnd-core/INIT_COORDS",D3="dnd-core/BEGIN_DRAG",Z8="dnd-core/PUBLISH_DRAG_SOURCE",N3="dnd-core/HOVER",O3="dnd-core/DROP",F3="dnd-core/END_DRAG";function V_(t,e){return{type:J8,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const wJ={type:J8,payload:{clientOffset:null,sourceClientOffset:null}};function SJ(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:a,getSourceClientOffset:s}=r,l=t.getMonitor(),c=t.getRegistry();t.dispatch(V_(a)),xJ(n,l,c);const u=EJ(n,l);if(u==null){t.dispatch(wJ);return}let d=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");CJ(s),d=s(u)}t.dispatch(V_(a,d));const h=c.getSource(u).beginDrag(l,u);if(h==null)return;TJ(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 xJ(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 CJ(t){zr(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function TJ(t){zr(B_(t),"Item must be an object.")}function EJ(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 IJ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _J(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){IJ(t,i,n[i])})}return t}function DJ(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();NJ(r),kJ(r).forEach((s,l)=>{const c=OJ(s,l,i,r),u={type:O3,payload:{dropResult:_J({},n,c)}};t.dispatch(u)})}}function NJ(t){zr(t.isDragging(),"Cannot call drop while not dragging."),zr(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function OJ(t,e,n,r){const i=n.getTarget(t);let a=i?i.drop(r,t):void 0;return FJ(a),typeof a>"u"&&(a=e===0?{}:r.getDropResult()),a}function FJ(t){zr(typeof t>"u"||B_(t),"Drop result must either be an object or undefined.")}function kJ(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function PJ(t){return function(){const n=t.getMonitor(),r=t.getRegistry();MJ(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:F3}}}function MJ(t){zr(t.isDragging(),"Cannot call endDrag while not dragging.")}function e7(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function LJ(t){return function(n,{clientOffset:r}={}){BJ(n);const i=n.slice(0),a=t.getMonitor(),s=t.getRegistry(),l=a.getItemType();return UJ(i,s,l),VJ(i,a,s),qJ(i,a,s),{type:N3,payload:{targetIds:i,clientOffset:r||null}}}}function BJ(t){zr(Array.isArray(t),"Expected targetIds to be an array.")}function VJ(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 UJ(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],a=e.getTargetType(i);e7(a,n)||t.splice(r,1)}}function qJ(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function $J(t){return function(){if(t.getMonitor().isDragging())return{type:Z8}}}function jJ(t){return{beginDrag:SJ(t),publishDragSource:$J(t),hover:LJ(t),drop:DJ(t),endDrag:PJ(t)}}class zJ{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=jJ(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 HJ(t,e){return{x:t.x+e.x,y:t.y+e.y}}function U_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function YJ(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:U_(HJ(e,r),n)}function KJ(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:U_(e,n)}const t2=[],t7=[];t2.__IS_NONE__=!0,t7.__IS_ALL__=!0;function XJ(t,e){return t===t2?!1:t===t7||typeof e>"u"?!0:AJ(e,t).length>0}class RJ{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&&!XJ(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 e7(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&&!e7(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 YJ(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return KJ(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const q_=typeof global<"u"?global:self,$_=q_.MutationObserver||q_.WebKitMutationObserver;function j_(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function GJ(t){let e=1;const n=new $_(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const WJ=typeof $_=="function"?GJ:j_;class QJ{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=WJ(this.flush),this.requestErrorThrow=j_(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class JJ{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 ZJ{create(e){const n=this.freeTasks,r=n.length?n.pop():new JJ(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const z_=new QJ,eZ=new ZJ(z_.registerPendingError);function tZ(t){z_.enqueueTask(eZ.create(t))}const n7="dnd-core/ADD_SOURCE",r7="dnd-core/ADD_TARGET",i7="dnd-core/REMOVE_SOURCE",k3="dnd-core/REMOVE_TARGET";function nZ(t){return{type:n7,payload:{sourceId:t}}}function rZ(t){return{type:r7,payload:{targetId:t}}}function iZ(t){return{type:i7,payload:{sourceId:t}}}function aZ(t){return{type:k3,payload:{targetId:t}}}function sZ(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 oZ(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 a7(t,e){if(e&&Array.isArray(t)){t.forEach(n=>a7(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 lZ=0;function cZ(){return lZ++}function uZ(t){const e=cZ().toString();switch(t){case ic.SOURCE:return`S${e}`;case ic.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function H_(t){switch(t[0]){case"S":return ic.SOURCE;case"T":return ic.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Y_(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 dZ{addSource(e,n){a7(e),sZ(n);const r=this.addHandler(ic.SOURCE,e,n);return this.store.dispatch(nZ(r)),r}addTarget(e,n){a7(e,!0),oZ(n);const r=this.addHandler(ic.TARGET,e,n);return this.store.dispatch(rZ(r)),r}containsHandler(e){return Y_(this.dragSources,e)||Y_(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 H_(e)===ic.SOURCE}isTargetId(e){return H_(e)===ic.TARGET}removeSource(e){zr(this.getSource(e),"Expected an existing source."),this.store.dispatch(iZ(e)),tZ(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){zr(this.getTarget(e),"Expected an existing target."),this.store.dispatch(aZ(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=uZ(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 fZ=(t,e)=>t===e;function hZ(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function pZ(t,e,n=fZ){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 gZ(t=t2,e){switch(e.type){case N3:break;case n7:case r7:case k3:case i7:return t2;case D3:case Z8:case F3:case O3:default:return t7}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=yJ(n,r);if(!(i.length>0||!pZ(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 mZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vZ(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){mZ(t,i,n[i])})}return t}const K_={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function bZ(t=K_,e){const{payload:n}=e;switch(e.type){case J8:case D3:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case N3:return hZ(t.clientOffset,n.clientOffset)?t:vZ({},t,{clientOffset:n.clientOffset});case F3:case O3:return K_;default:return t}}function yZ(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){yZ(t,i,n[i])})}return t}const AZ={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function wZ(t=AZ,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 Z8: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:bJ(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 SZ(t=0,e){switch(e.type){case n7:case r7:return t+1;case i7:case k3:return t-1;default:return t}}function xZ(t=0){return t+1}function CZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TZ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CZ(t,i,n[i])})}return t}function EZ(t={},e){return{dirtyHandlerIds:gZ(t.dirtyHandlerIds,{type:e.type,payload:TZ({},e.payload,{prevTargetIds:vJ(t,"dragOperation.targetIds",[])})}),dragOffset:bZ(t.dragOffset,e),refCount:SZ(t.refCount,e),dragOperation:wZ(t.dragOperation,e),stateId:xZ(t.stateId)}}function IZ(t,e=void 0,n={},r=!1){const i=_Z(r),a=new RJ(i,new dZ(i)),s=new zJ(i,a),l=t(s,e,n);return s.receiveBackend(l),s}function _Z(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return L_(EZ,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function DZ(t,e){if(t==null)return{};var n=NZ(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 NZ(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 X_=0;const P3=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Lf=P.memo(function(e){var{children:n}=e,r=DZ(e,["children"]);const[i,a]=OZ(r);return P.useEffect(()=>{if(a){const s=R_();return++X_,()=>{--X_===0&&(s[P3]=null)}}},[]),o.jsx(O_.Provider,{value:i,children:n})});function OZ(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=FZ(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function FZ(t,e=R_(),n,r){const i=e;return i[P3]||(i[P3]={dragDropManager:IZ(t,e,n,r)}),i[P3]}function R_(){return typeof global<"u"?global:window}var G_=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 kZ=ao(G_),s1=typeof window<"u"?P.useLayoutEffect:P.useEffect;function PZ(t,e,n){const[r,i]=P.useState(()=>e(t)),a=P.useCallback(()=>{const s=e(t);kZ(r,s)||(i(s),n&&n())},[r,t,n]);return s1(a),[r,a]}function MZ(t,e,n){const[r,i]=PZ(t,e,n);return s1(function(){const s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(i,{handlerIds:[s]})},[t,i]),r}function W_(t,e,n){return MZ(e,t||(()=>({})),()=>n.reconnect())}function Q_(t,e){const n=[];return typeof t!="function"&&n.push(t),P.useMemo(()=>typeof t=="function"?t():t,n)}function LZ(t){return P.useMemo(()=>t.hooks.dragSource(),[t])}function BZ(t){return P.useMemo(()=>t.hooks.dragPreview(),[t])}let s7=!1,o7=!1;class VZ{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){zr(!s7,"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 s7=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{s7=!1}}isDragging(){if(!this.sourceId)return!1;zr(!o7,"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 o7=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{o7=!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 l7=!1;class UZ{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(!l7,"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 l7=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{l7=!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 qZ(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function $Z(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function c7(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 u7(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function jZ(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 zZ(t){return(e=null,n=null)=>{if(!P.isValidElement(e)){const a=e;return t(a,n),a}const r=e;return jZ(r),HZ(r,n?a=>t(a,n):t)}}function J_(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=zZ(r);e[n]=()=>i}}),e}function Z_(t,e){typeof t=="function"?t(e):t.current=e}function HZ(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?P.cloneElement(t,{ref:r=>{Z_(n,r),Z_(e,r)}}):P.cloneElement(t,{ref:e})}class YZ{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!c7(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!c7(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=J_({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,u7(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,u7(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 KZ{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!c7(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=J_({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,u7(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}=P.useContext(O_);return zr(t!=null,"Expected drag drop context"),t}function XZ(t,e){const n=Bf(),r=P.useMemo(()=>new YZ(n.getBackend()),[n]);return s1(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),s1(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function RZ(){const t=Bf();return P.useMemo(()=>new VZ(t),[t])}class GZ{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 WZ(t,e,n){const r=P.useMemo(()=>new GZ(t,e,n),[e,n]);return P.useEffect(()=>{r.spec=t},[t]),r}function QZ(t){return P.useMemo(()=>{const e=t.type;return zr(e!=null,"spec.type must be defined"),e},[t])}function JZ(t,e,n){const r=Bf(),i=WZ(t,e,n),a=QZ(t);s1(function(){if(a!=null){const[l,c]=$Z(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,e,n,i,a])}function ia(t,e){const n=Q_(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=RZ(),i=XZ(n.options,n.previewOptions);return JZ(n,r,i),[W_(n.collect,r,i),LZ(i),BZ(i)]}function ZZ(t){return P.useMemo(()=>t.hooks.dropTarget(),[t])}function eee(t){const e=Bf(),n=P.useMemo(()=>new KZ(e.getBackend()),[e]);return s1(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function tee(){const t=Bf();return P.useMemo(()=>new UZ(t),[t])}function nee(t){const{accept:e}=t;return P.useMemo(()=>(zr(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class ree{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 iee(t,e){const n=P.useMemo(()=>new ree(t,e),[e]);return P.useEffect(()=>{n.spec=t},[t]),n}function aee(t,e,n){const r=Bf(),i=iee(t,e),a=nee(t);s1(function(){const[l,c]=qZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,e,i,n,a.map(s=>s.toString()).join("|")])}function see(t,e){const n=Q_(t),r=tee(),i=eee(n.options);return aee(n,r,i),[W_(n.collect,r,i),ZZ(i)]}function eD(t){let e=null;return()=>(e==null&&(e=t()),e)}function oee(t,e){return t.filter(n=>n!==e)}function lee(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 cee{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=lee(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=oee(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class uee{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 tD="__NATIVE_FILE__",nD="__NATIVE_URL__",rD="__NATIVE_TEXT__",iD="__NATIVE_HTML__",aD=Object.freeze(Object.defineProperty({__proto__:null,FILE:tD,HTML:iD,TEXT:rD,URL:nD},Symbol.toStringTag,{value:"Module"}));function d7(t,e,n){const r=e.reduce((i,a)=>i||t.getData(a),"");return r??n}const f7={[tD]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[iD]:{exposeProperties:{html:(t,e)=>d7(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[nD]:{exposeProperties:{urls:(t,e)=>d7(t,e,"").split(`
|
|
1601
|
-
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[rD]:{exposeProperties:{text:(t,e)=>d7(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function dee(t,e){const n=f7[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new uee(n);return r.loadDataTransfer(e),r}function h7(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(f7).filter(n=>{const r=f7[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const fee=eD(()=>/firefox/i.test(navigator.userAgent)),sD=eD(()=>!!window.safari);class oD{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 hee=1;function lD(t){const e=t.nodeType===hee?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 pee(t){var e;return t.nodeName==="IMG"&&(fee()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function gee(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return sD()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function mee(t,e,n,r,i){const a=pee(e),l=lD(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}=gee(a,e,u,d),m=()=>{let _=new oD([0,.5,1],[c.y,c.y/d*v,c.y+v-d]).interpolate(h);return sD()&&a&&(_+=(window.devicePixelRatio-1)*v),_},A=()=>new oD([0,.5,1],[c.x,c.x/u*g,c.x+g-u]).interpolate(f),{offsetX:w,offsetY:E}=i,x=w===0||w,C=E===0||E;return{x:x?w:A(),y:C?E:m()}}class vee{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 bee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cD(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){bee(t,i,n[i])})}return t}class yee{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 cD({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 cD({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(aD).some(n=>aD[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=dee(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&&lD(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=h7(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=mee(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=h7(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 h7(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 vee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new cee(this.isNodeInDocument)}}const Vf=function(e,n,r){return new yee(e,n,r)},uD=P.createContext(void 0),dD=({children:t,option:e,saveFormBuilderSchema:n,templateSchema:r,onChange:i,isHTML5BackendDisabled:a=!1})=>{const s={...W8,...r},[l,c]=P.useReducer(oJ,s);P.useEffect(()=>{n&&n(l)},[l]);const{isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v="ltr",emitSocketData:m,media:A,exam:w={},reusableComponent:E,saveFormProgress:x,showSettings:C,training:S}=e;return o.jsx(uD.Provider,{value:{media:A,isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v,emitSocketData:m,reusableComponent:E,state:l,dispatch:c,onChange:i,saveFormProgress:x,showSettings:C,training:S},children:a?o.jsx(o.Fragment,{children:t}):o.jsx(Lf,{backend:Vf,children:t})})},fD=()=>P.useContext(uD),Aee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},wee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],See=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],hD=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return Aee(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:hD(l.children,a,s)},r},pD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return wee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:pD(a.children,i)},n},p7=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return See(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:p7(s.children,a,n)},r},xee=(t,e,n)=>{let r=[...t],i=r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children[n[Fo]];return r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children.splice([n[Fo]],1),r[e[ma]].children[e[va]].children[e[Ca]].children[e[Ta]].children[e[Ea]].inlineConditionalRules.rules[e[Oa]].conditions[e[Zo]].children.splice(e[Fo],0,i),r},Cee=(t,e,n)=>hD(t,e,n),Tee=t=>{const e=[...t],n={type:ws,uuid:et(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},gD=(t,e,n,r)=>{var h,g,v,m,A,w;let i;const a={...Bc,uuid:et(),children:[r]},s={...mu,uuid:et()},l={...mu,uuid:et(),children:[a]},c={...kf,uuid:et(),children:[l]},u={..._3,uuid:et(),children:[c]};switch(e.length){case 1:{r.type===fT?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:et(),children:[{...Bc,uuid:et(),children:[r]}]};break}case 4:{r.type===gf?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[Ca]])==null?void 0:v.children[n[Ta]])==null?void 0:m.children[n[Ea]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Oa]].conditions[n[Zo]].children.splice(n[Fo],1):d=pD(d,n),d=Tee(d),d=p7(d,e,i),d},Eee=(t,e,n)=>{let r;switch(e.length){case 1:{r={..._3,uuid:et(),children:[{...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]}]};break}case 2:{r={...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]};break}case 3:{r={...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]};break}case 4:{r={...Bc,uuid:et(),children:[n]};break}default:r=n}return p7(t,e,r)},on=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=fD(),{updateGlobalToast:i,emitSocketData:a}=Qt();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,E=P.useCallback(me=>JQ(me)(e),[e]),x=P.useCallback(me=>CQ(me)(e),[e]),C=P.useCallback(me=>ZQ(me)(e),[e]),S=P.useCallback((me,Se)=>{var yt,qt,dn,mn,En,Vn,hn,Jt;const De=me.path.split("-"),j=De.slice(0,-1).join("-"),oe={uuid:Se.uuid,type:Se.type,reviewerChecklist:[]},pe=0,ue=1,le=2,se=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){U(JSON.parse(Se==null?void 0:Se.schema),parseInt(De[pe]));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 tt,ht,jt;return((tt=Xe==null?void 0:Xe.questionText)==null?void 0:tt[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===Rn){let Xe={type:gf,reviewerChecklist:[],...It.cloneDeep(Se.schema)};if(Xe!=null&&Xe.options&&(Xe={...Xe,options:[{uuid:et(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:et(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),Xe.componentType==="grid-component"&&(Xe={...Xe,children:[],options:[{uuid:et(),custom_values:{}}]}),Xe.componentType==="radio-hierarchal"&&(Xe={...Xe,type:"radio",children:[],options:[{uuid:et(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:et(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),Xe={...Xe,uuid:et()},De.length===ut){W(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[Ne]),parseInt(De[Ke]),Xe),a();return}if(De.length===pt){de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),a();return}if((Jt=(hn=w[De[pe]].children[De[ue]])==null?void 0:hn.children[De[le]])!=null&&Jt.rowIsRepeatable&&(Xe==null?void 0:Xe.componentType)==="editor"){i({showToast:!0,toastMessage:"Forbidden",toastDetail:"This Field cannot be applied in repeatable",toastType:"error"});return}C(Eee(w,De,Xe)),a(),De.length>1&&ye(De[pe],De[ue],De[le],Xe);return}const Vt=Se.path.split("-"),Nt=Vt.slice(0,-1).join("-");if(Vt.length===De.length){if(Nt===j){if((Vt==null?void 0:Vt.length)===Sn){C(xee(w,De,Vt));return}C(Cee(w,De,Vt));return}const Xe={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&(Xe.id=et()),C(gD(w,De,Vt,Xe));return}if((Vt==null?void 0:Vt.length)===8){const Xe={type:gf,reviewerChecklist:[],...Se};de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),$(Vt[ma],Vt[va],Vt[Ca],Vt[Ta],Vt[Ea],Vt[ft],Vt[kt],Vt[tc]);return}const $e={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&($e.id=et()),C(gD(w,De,Vt,$e))},[w,m.type]),_=P.useCallback(()=>sJ()(e),[e]),I=P.useCallback(me=>eJ(me)(e,t),[e]),F=P.useCallback(me=>tJ(me)(e,t),[e]),M=P.useCallback(me=>nJ(me)(e),[e]),L=P.useCallback(me=>xQ(me)(e),[e]),V=P.useCallback(me=>DQ(me)(e),[e]),U=P.useCallback((me,Se)=>FQ(me,Se)(e),[e]),O=P.useCallback((me,Se)=>BQ(me,Se)(e),[e]),q=P.useCallback((me,Se,De)=>qQ(me,Se,De)(e),[e]),ie=P.useCallback(me=>IQ(me)(e),[e]),ge=P.useCallback((me,Se)=>_Q(me,Se)(e),[e]),Z=P.useCallback((me,Se,De)=>LQ(me,Se,De)(e),[e]),Q=P.useCallback((me,Se,De,j)=>jQ(me,Se,De,j)(e),[e]),ce=P.useCallback((me,Se,De,j,oe)=>zQ(me,Se,De,j,oe)(e,t),[e]),K=P.useCallback((me,Se,De,j,oe,pe)=>HQ(me,Se,De,j,oe,pe)(e,t),[e]),he=P.useCallback((me,Se,De)=>NQ(me,Se,De)(e),[e]),ee=P.useCallback((me,Se,De,j)=>MQ(me,Se,De,j)(e),[e]),te=P.useCallback((me,Se)=>EQ(me,Se)(e),[e]),Y=P.useCallback((me,Se,De,j,oe,pe)=>YQ(me,Se,De,j,oe,pe)(e),[e]),R=P.useCallback((me,Se,De,j,oe)=>$Q(me,Se,De,j,oe)(e),[e]),fe=P.useCallback((me,Se,De,j)=>PQ(me,Se,De,j)(e),[e]),be=P.useCallback((me,Se,De)=>OQ(me,Se,De)(e),[e]),Te=P.useCallback((me,Se)=>TQ(me,Se)(e,t),[e]),ye=P.useCallback((me,Se,De,j)=>VQ(me,Se,De,j)(e),[e]),Ae=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>WQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),ne=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>RQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),$=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>GQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),re=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>QQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),W=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>KQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),de=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>XQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),Ie=P.useCallback(me=>rJ(me)(e),[e]),Ee=P.useCallback(me=>iJ(me)(e),[e]),ve=P.useCallback(me=>aJ(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:E,removePage:ie,removeSection:ge,removeRow:Z,removeColumn:Q,removeField:ce,updateEditingBy:ve,addTabs:L,addSection:V,addRow:O,addColumn:q,cloneField:Y,cloneColumn:R,cloneRow:fe,cloneSection:be,clonePage:Te,sectionImport:U,setLayout:C,fieldSettingUpdate:K,selectFormBuilderLanguage:I,unselectFormBuilderLanguage:F,updateUserFormSelectedLanguage:M,updateFormType:Ie,schemaBuilderUpdate:Ee,pageSettingUpdate:te,saveFormProgress:r,sectionSettingUpdate:he,rowSettingUpdate:ee,clearBuilderSchema:_,addFieldToRowRepeaptable:ye,addFieldToInlineRuleCondtionFields:W,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:de,gridComponentFieldSettingUpdate:ne,gridComponentFieldDelete:$}},Qt=()=>{var x,C,S;const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,exam:s,globalAlignment:l,reusableComponent:c,showSettings:u,training:d}=fD();if(t===void 0)throw new Error("Must be wrapped in builder provider");const f=r==null?void 0:r.key,{saveComponent:h,componentList:g,sectionsList:v}=c,m=()=>{},A=_=>{u!=null&&u.showToast&&(u==null||u.showToast(_))},w=((x=d==null?void 0:d.quiz)==null?void 0:x.quizList)||[],E=(C=d==null?void 0:d.quiz)!=null&&C.getQuizList?(S=d==null?void 0:d.quiz)==null?void 0:S.getQuizList:()=>{};return{quizlist:w,getQuizList:E,isPreview:t,isAdmin:e,isRenderView:n,renderType:f,isAdvanceView:i,globalAlignment:l,media:a,exam:s,saveComponent:h,componentList:g,sectionsList:v,emitSocketData:m,updateGlobalToast:A}},Iee="TASKS_LOADING",_ee="TASKS_ADD",Dee="TASKS_GET_PAGINATED_LIST",Nee="TASKS_DELETE",Oee="TASKS_PAGNIATION_UPDATE",Fee="TASKS_UPDATE",kee="TASKS_SUCCESS_GET",Pee="TASK_GET_TEMPLATE",Mee="TASK_SET_DATA",Lee="TASKS_FORM_SUBMIT",Bee="TASKS_FORM_HTTP_REQUEST",g7="TASK_SET_PROGRESS_VALUE",mD="TASK_SET_MAX_PROGRESS_VALUE",vD="TASK_SET_REGISTER_DATA",bD="TASK_SET_SCHEMA",m7="TASK_UPDATE_USER_FORM_SUBMIT_DATA",yD="CLEAR_TASK",AD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",wD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",SD="TASK_USER_TRAINING_DATA",xD="TASK_FIELD_UPDATE",Vee=6,L3=1,n2="DISPLAY_TYPE_START_DETAILS",B3="DISPLAY_TYPE_QUIZ",v7="DISPLAY_TYPE_START_TIMER";function Uee(t,e,n,r,i,a){return s=>{s({type:xD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function CD(t){return(e,n)=>{const r={type:m7,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function qee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:m7,payLoad:{taskData:{...i,...t}}};e(a)}}function $ee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:wD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function jee(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,repeatableData:e}})}}function zee(){return t=>{t({type:yD,payLoad:null})}}const TD=t=>e=>{console.log("updateProgresValue",t),e({type:g7,payLoad:{progressValue:t}})},Hee=t=>e=>{e({type:g7,payLoad:t})},Yee=t=>e=>{e({type:SD,payLoad:{userTrainingSaveData:t}})},ED=t=>e=>{e({type:vD,payLoad:{registerData:t}})},Kee=(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(CD(l))},Xee=(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(ED(u));const d=Object.keys(u).length;r(TD(d))},Ree=t=>e=>{e({type:mD,payLoad:{progressMaxValue:t}})},b7={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},Gee=(t=b7,e)=>{switch(e.type){case yD:return{...t,...b7,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case kee:return{...t,...e.payLoad};case m7:return{...t,...e.payLoad};case bD:return{...t,...e.payLoad};case g7:return{...t,...e.payLoad};case vD:return{...t,registerData:e.payLoad.registerData};case mD:return{...t,...e.payLoad};case Iee:return{...t,...e.payLoad};case Lee:return{...t,...e.payLoad};case Bee:return{...t,...e.payLoad};case _ee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case Dee:return{...t,...e.payLoad};case Mee:return{...t,taskData:e.payLoad};case Oee:return{...t,...e.payLoad};case Nee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case SD:return{...t,...e.payLoad};case xD:{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 AD:{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 wD:{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 Fee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case Pee:return{...t,...e.payLoad}}return t},ID=P.createContext(void 0),Wee=({option:t,taskOptions:e,saveFormBuilderSchema:n,templateSchema:r,taskValue:i,children:a,isHTML5BackendDisabled:s=!1})=>{const[l,c]=P.useReducer(Gee,{...b7,...i}),{progressMaxValue:u=0,progressValue:d=0,registerData:f=null,...h}=i||{};return P.useEffect(()=>{c({type:bD,payLoad:h})},[i]),o.jsx(ID.Provider,{value:{taskOptions:e,state:l,dispatch:c},children:o.jsx(dD,{isHTML5BackendDisabled:s,option:t,saveFormBuilderSchema:n,templateSchema:r,onChange:()=>{},children:a})})},Qee=()=>P.useContext(ID),yr=()=>{var Ae,ne,$,re,W,de,Ie,Ee;const{taskOptions:n,state:r,dispatch:i}=Qee();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,E=r.registerData,x=r.progressValue,C=r.noOfTotalElements,S=r.menuList,_=r.loading,I=r.submitting,F=r.success,M=r.success_message,L=(Ae=n==null?void 0:n.exam)!=null&&Ae.startQuiz?(ne=n==null?void 0:n.exam)==null?void 0:ne.startQuiz:()=>{},V=($=n==null?void 0:n.exam)!=null&&$.AddUserAssessmentAnswer?(re=n==null?void 0:n.exam)==null?void 0:re.AddUserAssessmentAnswer:()=>{},U=(W=n==null?void 0:n.exam)!=null&&W.endQuiz?(de=n==null?void 0:n.exam)==null?void 0:de.endQuiz:()=>{},O=(Ie=n==null?void 0:n.exam)!=null&&Ie.examComplete?(Ee=n==null?void 0:n.exam)==null?void 0:Ee.examComplete:ve=>{},q=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ve,me,Se,De,j,oe)=>{},ie=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ve,me,Se)=>{},ge=P.useCallback(ve=>i(qee(ve)),[i]),Z=P.useCallback((ve,me,Se)=>{},[i]),Q=P.useCallback(()=>i(zee()),[i]),ce=P.useCallback((ve,me)=>i(jee(ve,me)),[i]),K=P.useCallback((ve,me)=>i($ee(ve,me)),[i]),he=P.useCallback(ve=>{TD(ve)(i)},[i]),ee=P.useCallback(ve=>i(Hee(ve)),[i]),te=P.useCallback(ve=>i(ED(ve)),[i]),Y=P.useCallback(ve=>i(CD(ve)),[i]),R=P.useCallback(ve=>i(Ree(ve)),[i]),fe=P.useCallback(ve=>i(Yee(ve)),[i]),be=P.useCallback((ve,me,Se)=>i(Kee(ve,me,Se)),[i]),Te=P.useCallback((ve,me,Se)=>i(Xee(ve,me,Se)),[i]),ye=P.useCallback((ve,me,Se,De,j,oe)=>i(Uee(ve,me,Se,De,j,oe)),[i]);return{examComplete:O,taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:v,TasksList:S,TasksLoading:_,TasksSuccess:F,TasksSuccessMessage:M,taskProgressMaxValue:m,taskRegisterData:E,taskProgressValue:x,taskMaxTabs:A,noOfTotalElements:C,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:I,updateTaskDataSchema:ge,submitTaskFormData:ie,updateTaskFormData:q,TasksSubmit:h,TasksHTTPRequest:g,updateTaskRegisterData:te,updateTaskProgressValue:he,updateTaskProgressMaxValue:R,updateUserFormDataSubmit:Y,removeUserDataFormSectionRepeatableData:K,addUserDataFormSectionRepeatableData:ce,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Te,clearTaskSchema:Q,taskProgressLoading:f,task_status:a,startQuiz:L,endQuiz:U,AddUserAssessmentAnswer:V,updateUserTraining:fe,taskFieldUpdateHook:ye,updateProgressDataValuesHook:ee,saveProgressDataHook:Z}};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",{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"}))}));_D.displayName="ExclamationTriangleIcon";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 DD=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:"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"}))}));DD.displayName="InfoCircleIcon";function w7(){return w7=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},w7.apply(null,arguments)}var S7=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",w7({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"}))}));S7.displayName="TimesCircleIcon";function x7(){return x7=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},x7.apply(null,arguments)}function C7(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 Jee(t){if(Array.isArray(t))return C7(t)}function Zee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ND(t,e){if(t){if(typeof t=="string")return C7(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)?C7(t,e):void 0}}function ete(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1601
|
+
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[rD]:{exposeProperties:{text:(t,e)=>d7(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function dee(t,e){const n=f7[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new uee(n);return r.loadDataTransfer(e),r}function h7(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(f7).filter(n=>{const r=f7[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const fee=eD(()=>/firefox/i.test(navigator.userAgent)),sD=eD(()=>!!window.safari);class oD{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 hee=1;function lD(t){const e=t.nodeType===hee?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 pee(t){var e;return t.nodeName==="IMG"&&(fee()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function gee(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return sD()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function mee(t,e,n,r,i){const a=pee(e),l=lD(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}=gee(a,e,u,d),m=()=>{let _=new oD([0,.5,1],[c.y,c.y/d*v,c.y+v-d]).interpolate(h);return sD()&&a&&(_+=(window.devicePixelRatio-1)*v),_},A=()=>new oD([0,.5,1],[c.x,c.x/u*g,c.x+g-u]).interpolate(f),{offsetX:w,offsetY:E}=i,x=w===0||w,C=E===0||E;return{x:x?w:A(),y:C?E:m()}}class vee{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 bee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cD(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){bee(t,i,n[i])})}return t}class yee{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 cD({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 cD({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(aD).some(n=>aD[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=dee(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&&lD(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=h7(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=mee(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=h7(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 h7(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 vee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new cee(this.isNodeInDocument)}}const Vf=function(e,n,r){return new yee(e,n,r)},uD=P.createContext(void 0),dD=({children:t,option:e,saveFormBuilderSchema:n,templateSchema:r,onChange:i,isHTML5BackendDisabled:a=!1})=>{const s={...W8,...r},[l,c]=P.useReducer(oJ,s);P.useEffect(()=>{n&&n(l)},[l]);const{isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v="ltr",emitSocketData:m,media:A,exam:w={},reusableComponent:E,saveFormProgress:x,showSettings:C,training:S}=e;return o.jsx(uD.Provider,{value:{media:A,isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v,exam:w,emitSocketData:m,reusableComponent:E,state:l,dispatch:c,onChange:i,saveFormProgress:x,showSettings:C,training:S},children:a?o.jsx(o.Fragment,{children:t}):o.jsx(Lf,{backend:Vf,children:t})})},fD=()=>P.useContext(uD),Aee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},wee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],See=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],hD=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return Aee(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:hD(l.children,a,s)},r},pD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return wee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:pD(a.children,i)},n},p7=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return See(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:p7(s.children,a,n)},r},xee=(t,e,n)=>{let r=[...t],i=r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children[n[Fo]];return r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children.splice([n[Fo]],1),r[e[ma]].children[e[va]].children[e[Ca]].children[e[Ta]].children[e[Ea]].inlineConditionalRules.rules[e[Oa]].conditions[e[Zo]].children.splice(e[Fo],0,i),r},Cee=(t,e,n)=>hD(t,e,n),Tee=t=>{const e=[...t],n={type:ws,uuid:et(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},gD=(t,e,n,r)=>{var h,g,v,m,A,w;let i;const a={...Bc,uuid:et(),children:[r]},s={...mu,uuid:et()},l={...mu,uuid:et(),children:[a]},c={...kf,uuid:et(),children:[l]},u={..._3,uuid:et(),children:[c]};switch(e.length){case 1:{r.type===fT?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:et(),children:[{...Bc,uuid:et(),children:[r]}]};break}case 4:{r.type===gf?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[Ca]])==null?void 0:v.children[n[Ta]])==null?void 0:m.children[n[Ea]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Oa]].conditions[n[Zo]].children.splice(n[Fo],1):d=pD(d,n),d=Tee(d),d=p7(d,e,i),d},Eee=(t,e,n)=>{let r;switch(e.length){case 1:{r={..._3,uuid:et(),children:[{...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]}]};break}case 2:{r={...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]};break}case 3:{r={...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]};break}case 4:{r={...Bc,uuid:et(),children:[n]};break}default:r=n}return p7(t,e,r)},on=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=fD(),{updateGlobalToast:i,emitSocketData:a}=Qt();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,E=P.useCallback(me=>JQ(me)(e),[e]),x=P.useCallback(me=>CQ(me)(e),[e]),C=P.useCallback(me=>ZQ(me)(e),[e]),S=P.useCallback((me,Se)=>{var yt,qt,dn,mn,En,Vn,hn,Jt;const De=me.path.split("-"),j=De.slice(0,-1).join("-"),oe={uuid:Se.uuid,type:Se.type,reviewerChecklist:[]},pe=0,ue=1,le=2,se=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){U(JSON.parse(Se==null?void 0:Se.schema),parseInt(De[pe]));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 tt,ht,jt;return((tt=Xe==null?void 0:Xe.questionText)==null?void 0:tt[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===Rn){let Xe={type:gf,reviewerChecklist:[],...It.cloneDeep(Se.schema)};if(Xe!=null&&Xe.options&&(Xe={...Xe,options:[{uuid:et(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:et(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),Xe.componentType==="grid-component"&&(Xe={...Xe,children:[],options:[{uuid:et(),custom_values:{}}]}),Xe.componentType==="radio-hierarchal"&&(Xe={...Xe,type:"radio",children:[],options:[{uuid:et(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:et(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),Xe={...Xe,uuid:et()},De.length===ut){W(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[Ne]),parseInt(De[Ke]),Xe),a();return}if(De.length===pt){de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),a();return}if((Jt=(hn=w[De[pe]].children[De[ue]])==null?void 0:hn.children[De[le]])!=null&&Jt.rowIsRepeatable&&(Xe==null?void 0:Xe.componentType)==="editor"){i({showToast:!0,toastMessage:"Forbidden",toastDetail:"This Field cannot be applied in repeatable",toastType:"error"});return}C(Eee(w,De,Xe)),a(),De.length>1&&ye(De[pe],De[ue],De[le],Xe);return}const Vt=Se.path.split("-"),Nt=Vt.slice(0,-1).join("-");if(Vt.length===De.length){if(Nt===j){if((Vt==null?void 0:Vt.length)===Sn){C(xee(w,De,Vt));return}C(Cee(w,De,Vt));return}const Xe={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&(Xe.id=et()),C(gD(w,De,Vt,Xe));return}if((Vt==null?void 0:Vt.length)===8){const Xe={type:gf,reviewerChecklist:[],...Se};de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),$(Vt[ma],Vt[va],Vt[Ca],Vt[Ta],Vt[Ea],Vt[ft],Vt[kt],Vt[tc]);return}const $e={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&($e.id=et()),C(gD(w,De,Vt,$e))},[w,m.type]),_=P.useCallback(()=>sJ()(e),[e]),I=P.useCallback(me=>eJ(me)(e,t),[e]),F=P.useCallback(me=>tJ(me)(e,t),[e]),M=P.useCallback(me=>nJ(me)(e),[e]),L=P.useCallback(me=>xQ(me)(e),[e]),V=P.useCallback(me=>DQ(me)(e),[e]),U=P.useCallback((me,Se)=>FQ(me,Se)(e),[e]),O=P.useCallback((me,Se)=>BQ(me,Se)(e),[e]),q=P.useCallback((me,Se,De)=>qQ(me,Se,De)(e),[e]),ie=P.useCallback(me=>IQ(me)(e),[e]),ge=P.useCallback((me,Se)=>_Q(me,Se)(e),[e]),Z=P.useCallback((me,Se,De)=>LQ(me,Se,De)(e),[e]),Q=P.useCallback((me,Se,De,j)=>jQ(me,Se,De,j)(e),[e]),ce=P.useCallback((me,Se,De,j,oe)=>zQ(me,Se,De,j,oe)(e,t),[e]),K=P.useCallback((me,Se,De,j,oe,pe)=>HQ(me,Se,De,j,oe,pe)(e,t),[e]),he=P.useCallback((me,Se,De)=>NQ(me,Se,De)(e),[e]),ee=P.useCallback((me,Se,De,j)=>MQ(me,Se,De,j)(e),[e]),te=P.useCallback((me,Se)=>EQ(me,Se)(e),[e]),Y=P.useCallback((me,Se,De,j,oe,pe)=>YQ(me,Se,De,j,oe,pe)(e),[e]),R=P.useCallback((me,Se,De,j,oe)=>$Q(me,Se,De,j,oe)(e),[e]),fe=P.useCallback((me,Se,De,j)=>PQ(me,Se,De,j)(e),[e]),be=P.useCallback((me,Se,De)=>OQ(me,Se,De)(e),[e]),Te=P.useCallback((me,Se)=>TQ(me,Se)(e,t),[e]),ye=P.useCallback((me,Se,De,j)=>VQ(me,Se,De,j)(e),[e]),Ae=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>WQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),ne=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>RQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),$=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>GQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),re=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>QQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),W=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>KQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),de=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>XQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),Ie=P.useCallback(me=>rJ(me)(e),[e]),Ee=P.useCallback(me=>iJ(me)(e),[e]),ve=P.useCallback(me=>aJ(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:E,removePage:ie,removeSection:ge,removeRow:Z,removeColumn:Q,removeField:ce,updateEditingBy:ve,addTabs:L,addSection:V,addRow:O,addColumn:q,cloneField:Y,cloneColumn:R,cloneRow:fe,cloneSection:be,clonePage:Te,sectionImport:U,setLayout:C,fieldSettingUpdate:K,selectFormBuilderLanguage:I,unselectFormBuilderLanguage:F,updateUserFormSelectedLanguage:M,updateFormType:Ie,schemaBuilderUpdate:Ee,pageSettingUpdate:te,saveFormProgress:r,sectionSettingUpdate:he,rowSettingUpdate:ee,clearBuilderSchema:_,addFieldToRowRepeaptable:ye,addFieldToInlineRuleCondtionFields:W,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:de,gridComponentFieldSettingUpdate:ne,gridComponentFieldDelete:$}},Qt=()=>{var x,C,S;const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,exam:s,globalAlignment:l,reusableComponent:c,showSettings:u,training:d}=fD();if(t===void 0)throw new Error("Must be wrapped in builder provider");const f=r==null?void 0:r.key,{saveComponent:h,componentList:g,sectionsList:v}=c,m=()=>{},A=_=>{u!=null&&u.showToast&&(u==null||u.showToast(_))},w=((x=d==null?void 0:d.quiz)==null?void 0:x.quizList)||[],E=(C=d==null?void 0:d.quiz)!=null&&C.getQuizList?(S=d==null?void 0:d.quiz)==null?void 0:S.getQuizList:()=>{};return{quizlist:w,getQuizList:E,isPreview:t,isAdmin:e,isRenderView:n,renderType:f,isAdvanceView:i,globalAlignment:l,media:a,exam:s,saveComponent:h,componentList:g,sectionsList:v,emitSocketData:m,updateGlobalToast:A}},Iee="TASKS_LOADING",_ee="TASKS_ADD",Dee="TASKS_GET_PAGINATED_LIST",Nee="TASKS_DELETE",Oee="TASKS_PAGNIATION_UPDATE",Fee="TASKS_UPDATE",kee="TASKS_SUCCESS_GET",Pee="TASK_GET_TEMPLATE",Mee="TASK_SET_DATA",Lee="TASKS_FORM_SUBMIT",Bee="TASKS_FORM_HTTP_REQUEST",g7="TASK_SET_PROGRESS_VALUE",mD="TASK_SET_MAX_PROGRESS_VALUE",vD="TASK_SET_REGISTER_DATA",bD="TASK_SET_SCHEMA",m7="TASK_UPDATE_USER_FORM_SUBMIT_DATA",yD="CLEAR_TASK",AD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",wD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",SD="TASK_USER_TRAINING_DATA",xD="TASK_FIELD_UPDATE",Vee=6,L3=1,n2="DISPLAY_TYPE_START_DETAILS",B3="DISPLAY_TYPE_QUIZ",v7="DISPLAY_TYPE_START_TIMER";function Uee(t,e,n,r,i,a){return s=>{s({type:xD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function CD(t){return(e,n)=>{const r={type:m7,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function qee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:m7,payLoad:{taskData:{...i,...t}}};e(a)}}function $ee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:wD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function jee(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,repeatableData:e}})}}function zee(){return t=>{t({type:yD,payLoad:null})}}const TD=t=>e=>{console.log("updateProgresValue",t),e({type:g7,payLoad:{progressValue:t}})},Hee=t=>e=>{e({type:g7,payLoad:t})},Yee=t=>e=>{e({type:SD,payLoad:{userTrainingSaveData:t}})},ED=t=>e=>{e({type:vD,payLoad:{registerData:t}})},Kee=(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(CD(l))},Xee=(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(ED(u));const d=Object.keys(u).length;r(TD(d))},Ree=t=>e=>{e({type:mD,payLoad:{progressMaxValue:t}})},b7={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},Gee=(t=b7,e)=>{switch(e.type){case yD:return{...t,...b7,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case kee:return{...t,...e.payLoad};case m7:return{...t,...e.payLoad};case bD:return{...t,...e.payLoad};case g7:return{...t,...e.payLoad};case vD:return{...t,registerData:e.payLoad.registerData};case mD:return{...t,...e.payLoad};case Iee:return{...t,...e.payLoad};case Lee:return{...t,...e.payLoad};case Bee:return{...t,...e.payLoad};case _ee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case Dee:return{...t,...e.payLoad};case Mee:return{...t,taskData:e.payLoad};case Oee:return{...t,...e.payLoad};case Nee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case SD:return{...t,...e.payLoad};case xD:{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 AD:{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 wD:{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 Fee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case Pee:return{...t,...e.payLoad}}return t},ID=P.createContext(void 0),Wee=({option:t,taskOptions:e,saveFormBuilderSchema:n,templateSchema:r,taskValue:i,children:a,isHTML5BackendDisabled:s=!1})=>{const[l,c]=P.useReducer(Gee,{...b7,...i}),{progressMaxValue:u=0,progressValue:d=0,registerData:f=null,...h}=i||{};return P.useEffect(()=>{c({type:bD,payLoad:h})},[i]),o.jsx(ID.Provider,{value:{taskOptions:e,state:l,dispatch:c},children:o.jsx(dD,{isHTML5BackendDisabled:s,option:t,saveFormBuilderSchema:n,templateSchema:r,onChange:()=>{},children:a})})},Qee=()=>P.useContext(ID),yr=()=>{var Ae,ne,$,re,W,de,Ie,Ee;const{taskOptions:n,state:r,dispatch:i}=Qee();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,E=r.registerData,x=r.progressValue,C=r.noOfTotalElements,S=r.menuList,_=r.loading,I=r.submitting,F=r.success,M=r.success_message,L=(Ae=n==null?void 0:n.exam)!=null&&Ae.startQuiz?(ne=n==null?void 0:n.exam)==null?void 0:ne.startQuiz:()=>{},V=($=n==null?void 0:n.exam)!=null&&$.AddUserAssessmentAnswer?(re=n==null?void 0:n.exam)==null?void 0:re.AddUserAssessmentAnswer:()=>{},U=(W=n==null?void 0:n.exam)!=null&&W.endQuiz?(de=n==null?void 0:n.exam)==null?void 0:de.endQuiz:()=>{},O=(Ie=n==null?void 0:n.exam)!=null&&Ie.examComplete?(Ee=n==null?void 0:n.exam)==null?void 0:Ee.examComplete:ve=>{},q=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ve,me,Se,De,j,oe)=>{},ie=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ve,me,Se)=>{},ge=P.useCallback(ve=>i(qee(ve)),[i]),Z=P.useCallback((ve,me,Se)=>{},[i]),Q=P.useCallback(()=>i(zee()),[i]),ce=P.useCallback((ve,me)=>i(jee(ve,me)),[i]),K=P.useCallback((ve,me)=>i($ee(ve,me)),[i]),he=P.useCallback(ve=>{TD(ve)(i)},[i]),ee=P.useCallback(ve=>i(Hee(ve)),[i]),te=P.useCallback(ve=>i(ED(ve)),[i]),Y=P.useCallback(ve=>i(CD(ve)),[i]),R=P.useCallback(ve=>i(Ree(ve)),[i]),fe=P.useCallback(ve=>i(Yee(ve)),[i]),be=P.useCallback((ve,me,Se)=>i(Kee(ve,me,Se)),[i]),Te=P.useCallback((ve,me,Se)=>i(Xee(ve,me,Se)),[i]),ye=P.useCallback((ve,me,Se,De,j,oe)=>i(Uee(ve,me,Se,De,j,oe)),[i]);return{examComplete:O,taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:v,TasksList:S,TasksLoading:_,TasksSuccess:F,TasksSuccessMessage:M,taskProgressMaxValue:m,taskRegisterData:E,taskProgressValue:x,taskMaxTabs:A,noOfTotalElements:C,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:I,updateTaskDataSchema:ge,submitTaskFormData:ie,updateTaskFormData:q,TasksSubmit:h,TasksHTTPRequest:g,updateTaskRegisterData:te,updateTaskProgressValue:he,updateTaskProgressMaxValue:R,updateUserFormDataSubmit:Y,removeUserDataFormSectionRepeatableData:K,addUserDataFormSectionRepeatableData:ce,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Te,clearTaskSchema:Q,taskProgressLoading:f,task_status:a,startQuiz:L,endQuiz:U,AddUserAssessmentAnswer:V,updateUserTraining:fe,taskFieldUpdateHook:ye,updateProgressDataValuesHook:ee,saveProgressDataHook:Z}};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",{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"}))}));_D.displayName="ExclamationTriangleIcon";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 DD=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:"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"}))}));DD.displayName="InfoCircleIcon";function w7(){return w7=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},w7.apply(null,arguments)}var S7=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",w7({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"}))}));S7.displayName="TimesCircleIcon";function x7(){return x7=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},x7.apply(null,arguments)}function C7(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 Jee(t){if(Array.isArray(t))return C7(t)}function Zee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ND(t,e){if(t){if(typeof t=="string")return C7(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)?C7(t,e):void 0}}function ete(){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 T7(t){return Jee(t)||Zee(t)||ND(t)||ete()}function tte(t){if(Array.isArray(t))return t}function nte(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 rte(){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 E7(t,e){return tte(t)||nte(t,e)||ND(t,e)||rte()}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 ite(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 ate(t){var e=ite(t,"string");return r2(e)=="symbol"?e:e+""}function Lo(t,e,n){return(e=ate(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ste=`
|
|
1604
1604
|
@layer primereact {
|
|
@@ -32544,7 +32544,7 @@ const yf = function(e, n, r) {
|
|
|
32544
32544
|
n && n(o);
|
|
32545
32545
|
}, [o]);
|
|
32546
32546
|
const { isPreview: u, isAdmin: d, isRenderView: f, renderType: p, isAdvanceView: g, globalAlignment: v = "ltr", emitSocketData: m, media: w, exam: x = {}, reusableComponent: E, saveFormProgress: S, showSettings: T, training: A } = e;
|
|
32547
|
-
return /* @__PURE__ */ c(Tk.Provider, { value: { media: w, isPreview: u, isAdmin: d, isRenderView: f, renderType: p, isAdvanceView: g, globalAlignment: v, emitSocketData: m, reusableComponent: E, state: o, dispatch: l, onChange: i, saveFormProgress: S, showSettings: T, training: A }, children: a ? /* @__PURE__ */ c(we, { children: t }) : /* @__PURE__ */ c(bf, { backend: yf, children: t }) });
|
|
32547
|
+
return /* @__PURE__ */ c(Tk.Provider, { value: { media: w, isPreview: u, isAdmin: d, isRenderView: f, renderType: p, isAdvanceView: g, globalAlignment: v, exam: x, emitSocketData: m, reusableComponent: E, state: o, dispatch: l, onChange: i, saveFormProgress: S, showSettings: T, training: A }, children: a ? /* @__PURE__ */ c(we, { children: t }) : /* @__PURE__ */ c(bf, { backend: yf, children: t }) });
|
|
32548
32548
|
}, Ek = () => a1(Tk), Qte = (t, e, n) => {
|
|
32549
32549
|
const r = Array.from(t), [i] = r.splice(e, 1);
|
|
32550
32550
|
return r.splice(n, 0, i), r;
|
|
@@ -58136,7 +58136,7 @@ var que = function() {
|
|
|
58136
58136
|
theme: i.theme,
|
|
58137
58137
|
formats: i.formats
|
|
58138
58138
|
};
|
|
58139
|
-
que ? A(new Quill(d.current, V)) : import("./quill-
|
|
58139
|
+
que ? A(new Quill(d.current, V)) : import("./quill-Qnv1Kq3O.js").then(function(B) {
|
|
58140
58140
|
if (B && Se.isExist(d.current)) {
|
|
58141
58141
|
var F;
|
|
58142
58142
|
B.default ? F = new B.default(d.current, V) : F = new B(d.current, V), A(F);
|
|
@@ -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-BdMYGG4m.js";
|
|
5
5
|
function Ki(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|